From 67ec8abc61f6920f739da4c65c84c6bee81faa69 Mon Sep 17 00:00:00 2001 From: Gerardo Furtado Date: Fri, 6 Sep 2024 20:37:55 +1000 Subject: [PATCH] New build with image button --- assets/css/progress.css | 2 +- assets/js/progress.js | 59 +++++++++++++++++++++-------------------- progress.html | 8 +++--- 3 files changed, 35 insertions(+), 34 deletions(-) diff --git a/assets/css/progress.css b/assets/css/progress.css index df052b8..1096928 100644 --- a/assets/css/progress.css +++ b/assets/css/progress.css @@ -1 +1 @@ -#progressroot{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%;--ocha-blue: #1f69b3;--ocha-blue-lighter: #82b5e9;--ocha-blue-darker: #144372}.xAxisTopChart path,.yAxisTopChart path{stroke:none;fill:none}.xAxisTopChart line{stroke:#666;fill:none}.yAxisTopChart line{stroke:#ccc;fill:none;stroke-dasharray:3,3}.xAxisTopChart text,.yAxisTopChart text{font-size:10px;fill:#666}.topChartLabels{text-anchor:middle;fill:#333;font-size:10px;font-weight:700;letter-spacing:-.5px}.downloadIcon:focus{outline:none}.MuiButtonBase-root:focus{outline:none}.scrollSpyTab:hover{background-color:#f5f8ff} +#progressroot{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%;--ocha-blue: #1f69b3;--ocha-blue-lighter: #82b5e9;--ocha-blue-darker: #144372}.xAxisTopChart path,.yAxisTopChart path{stroke:none;fill:none}.xAxisTopChart line{stroke:#666;fill:none}.yAxisTopChart line{stroke:#ccc;fill:none;stroke-dasharray:3,3}.xAxisTopChart text,.yAxisTopChart text{font-size:10px;fill:#666}.topChartLabels{text-anchor:middle;fill:#333;font-size:10px;font-weight:700;letter-spacing:-.5px}.downloadIcon:focus{outline:none}.MuiButtonBase-root:focus{outline:none}.scrollSpyTab:hover{background-color:#f5f8ff}.hiddenElement{display:none!important} diff --git a/assets/js/progress.js b/assets/js/progress.js index 1aa3c23..0629962 100644 --- a/assets/js/progress.js +++ b/assets/js/progress.js @@ -1,4 +1,4 @@ -function ZR(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Tf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zo(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var w2={exports:{}},Ef={},C2={exports:{}},He={};/** +function EE(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Mf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Vo(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var W2={exports:{}},Of={},V2={exports:{}},He={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function ZR(e,t){for(var n=0;n>>1,ae=j[se];if(0>>1;seo(ce,W))Go(fe,ce)?(j[se]=fe,j[G]=W,se=G):(j[se]=ce,j[Y]=W,se=Y);else if(Go(fe,W))j[se]=fe,j[G]=W,se=G;else break e}}return N}function o(j,N){var W=j.sortIndex-N.sortIndex;return W!==0?W:j.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,d=null,p=3,h=!1,v=!1,m=!1,C=typeof setTimeout=="function"?setTimeout:null,g=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 x(j){for(var N=n(c);N!==null;){if(N.callback===null)r(c);else if(N.startTime<=j)r(c),N.sortIndex=N.expirationTime,t(l,N);else break;N=n(c)}}function w(j){if(m=!1,x(j),!v)if(n(l)!==null)v=!0,L(S);else{var N=n(c);N!==null&&D(w,N.startTime-j)}}function S(j,N){v=!1,m&&(m=!1,g(P),P=-1),h=!0;var W=p;try{for(x(N),d=n(l);d!==null&&(!(d.expirationTime>N)||j&&!E());){var se=d.callback;if(typeof se=="function"){d.callback=null,p=d.priorityLevel;var ae=se(d.expirationTime<=N);N=e.unstable_now(),typeof ae=="function"?d.callback=ae:d===n(l)&&r(l),x(N)}else r(l);d=n(l)}if(d!==null)var Re=!0;else{var Y=n(c);Y!==null&&D(w,Y.startTime-N),Re=!1}return Re}finally{d=null,p=W,h=!1}}var T=!1,R=null,P=-1,_=5,k=-1;function E(){return!(e.unstable_now()-k<_)}function M(){if(R!==null){var j=e.unstable_now();k=j;var N=!0;try{N=R(!0,j)}finally{N?$():(T=!1,R=null)}}else T=!1}var $;if(typeof y=="function")$=function(){y(M)};else if(typeof MessageChannel<"u"){var O=new MessageChannel,z=O.port2;O.port1.onmessage=M,$=function(){z.postMessage(null)}}else $=function(){C(M,0)};function L(j){R=j,T||(T=!0,$())}function D(j,N){P=C(function(){j(e.unstable_now())},N)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_continueExecution=function(){v||h||(v=!0,L(S))},e.unstable_forceFrameRate=function(j){0>j||125se?(j.sortIndex=W,t(c,j),n(l)===null&&j===n(c)&&(m?(g(P),P=-1):m=!0,D(w,W-se))):(j.sortIndex=ae,t(l,j),v||h||(v=!0,L(S))),j},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(j){var N=p;return function(){var W=p;p=N;try{return j.apply(this,arguments)}finally{p=W}}}})(O2);M2.exports=O2;var y4=M2.exports;/** + */(function(e){function t(j,L){var W=j.length;j.push(L);e:for(;0>>1,ae=j[se];if(0>>1;seo(ce,W))qo(fe,ce)?(j[se]=fe,j[q]=W,se=q):(j[se]=ce,j[Y]=W,se=Y);else if(qo(fe,W))j[se]=fe,j[q]=W,se=q;else break e}}return L}function o(j,L){var W=j.sortIndex-L.sortIndex;return W!==0?W:j.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,d=null,p=3,h=!1,v=!1,m=!1,w=typeof setTimeout=="function"?setTimeout:null,g=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 x(j){for(var L=n(c);L!==null;){if(L.callback===null)r(c);else if(L.startTime<=j)r(c),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(c)}}function S(j){if(m=!1,x(j),!v)if(n(l)!==null)v=!0,N(C);else{var L=n(c);L!==null&&D(S,L.startTime-j)}}function C(j,L){v=!1,m&&(m=!1,g(P),P=-1),h=!0;var W=p;try{for(x(L),d=n(l);d!==null&&(!(d.expirationTime>L)||j&&!T());){var se=d.callback;if(typeof se=="function"){d.callback=null,p=d.priorityLevel;var ae=se(d.expirationTime<=L);L=e.unstable_now(),typeof ae=="function"?d.callback=ae:d===n(l)&&r(l),x(L)}else r(l);d=n(l)}if(d!==null)var Re=!0;else{var Y=n(c);Y!==null&&D(S,Y.startTime-L),Re=!1}return Re}finally{d=null,p=W,h=!1}}var E=!1,k=null,P=-1,_=5,R=-1;function T(){return!(e.unstable_now()-R<_)}function M(){if(k!==null){var j=e.unstable_now();R=j;var L=!0;try{L=k(!0,j)}finally{L?$():(E=!1,k=null)}}else E=!1}var $;if(typeof y=="function")$=function(){y(M)};else if(typeof MessageChannel<"u"){var O=new MessageChannel,z=O.port2;O.port1.onmessage=M,$=function(){z.postMessage(null)}}else $=function(){w(M,0)};function N(j){k=j,E||(E=!0,$())}function D(j,L){P=w(function(){j(e.unstable_now())},L)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_continueExecution=function(){v||h||(v=!0,N(C))},e.unstable_forceFrameRate=function(j){0>j||125se?(j.sortIndex=W,t(c,j),n(l)===null&&j===n(c)&&(m?(g(P),P=-1):m=!0,D(S,W-se))):(j.sortIndex=ae,t(l,j),v||h||(v=!0,N(C))),j},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(j){var L=p;return function(){var W=p;p=L;try{return j.apply(this,arguments)}finally{p=W}}}})(tS);eS.exports=tS;var KE=eS.exports;/** * @license React * react-dom.production.min.js * @@ -30,30 +30,30 @@ function ZR(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Om=Object.prototype.hasOwnProperty,b4=/^[: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]*$/,Xy={},Jy={};function w4(e){return Om.call(Jy,e)?!0:Om.call(Xy,e)?!1:b4.test(e)?Jy[e]=!0:(Xy[e]=!0,!1)}function C4(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function S4(e,t,n,r){if(t===null||typeof t>"u"||C4(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function wn(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var on={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){on[e]=new wn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];on[t]=new wn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){on[e]=new wn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){on[e]=new wn(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){on[e]=new wn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){on[e]=new wn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){on[e]=new wn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){on[e]=new wn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){on[e]=new wn(e,5,!1,e.toLowerCase(),null,!1,!1)});var k0=/[\-:]([a-z])/g;function R0(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(k0,R0);on[t]=new wn(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(k0,R0);on[t]=new wn(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(k0,R0);on[t]=new wn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){on[e]=new wn(e,1,!1,e.toLowerCase(),null,!1,!1)});on.xlinkHref=new wn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){on[e]=new wn(e,1,!1,e.toLowerCase(),null,!0,!0)});function T0(e,t,n,r){var o=on.hasOwnProperty(t)?on[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wm=Object.prototype.hasOwnProperty,YE=/^[: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]*$/,u1={},d1={};function XE(e){return Wm.call(d1,e)?!0:Wm.call(u1,e)?!1:YE.test(e)?d1[e]=!0:(u1[e]=!0,!1)}function JE(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function eT(e,t,n,r){if(t===null||typeof t>"u"||JE(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Sn(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var on={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){on[e]=new Sn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];on[t]=new Sn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){on[e]=new Sn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){on[e]=new Sn(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){on[e]=new Sn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){on[e]=new Sn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){on[e]=new Sn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){on[e]=new Sn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){on[e]=new Sn(e,5,!1,e.toLowerCase(),null,!1,!1)});var O0=/[\-:]([a-z])/g;function $0(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(O0,$0);on[t]=new Sn(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(O0,$0);on[t]=new Sn(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(O0,$0);on[t]=new Sn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){on[e]=new Sn(e,1,!1,e.toLowerCase(),null,!1,!1)});on.xlinkHref=new Sn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){on[e]=new Sn(e,1,!1,e.toLowerCase(),null,!0,!0)});function L0(e,t,n,r){var o=on.hasOwnProperty(t)?on[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` -`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{fh=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?hl(e):""}function A4(e){switch(e.tag){case 5:return hl(e.type);case 16:return hl("Lazy");case 13:return hl("Suspense");case 19:return hl("SuspenseList");case 0:case 2:case 15:return e=ph(e.type,!1),e;case 11:return e=ph(e.type.render,!1),e;case 1:return e=ph(e.type,!0),e;default:return""}}function Dm(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 Ns:return"Fragment";case $s:return"Portal";case $m:return"Profiler";case E0:return"StrictMode";case Nm:return"Suspense";case Lm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case L2:return(e.displayName||"Context")+".Consumer";case N2:return(e._context.displayName||"Context")+".Provider";case P0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case I0:return t=e.displayName||null,t!==null?t:Dm(e.type)||"Memo";case Yo:t=e._payload,e=e._init;try{return Dm(e(t))}catch{}}return null}function k4(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 Dm(t);case 8:return t===E0?"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 xi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function z2(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function R4(e){var t=z2(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vu(e){e._valueTracker||(e._valueTracker=R4(e))}function B2(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=z2(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function kd(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 zm(e,t){var n=t.checked;return Et({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function t1(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=xi(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function F2(e,t){t=t.checked,t!=null&&T0(e,"checked",t,!1)}function Bm(e,t){F2(e,t);var n=xi(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Fm(e,t.type,n):t.hasOwnProperty("defaultValue")&&Fm(e,t.type,xi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function n1(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Fm(e,t,n){(t!=="number"||kd(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ml=Array.isArray;function Zs(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=yu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ul(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var kl={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},T4=["Webkit","ms","Moz","O"];Object.keys(kl).forEach(function(e){T4.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kl[t]=kl[e]})});function H2(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||kl.hasOwnProperty(e)&&kl[e]?(""+t).trim():t+"px"}function G2(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=H2(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var E4=Et({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 Um(e,t){if(t){if(E4[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Q(62))}}function Hm(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 Gm=null;function _0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qm=null,Ys=null,Xs=null;function i1(e){if(e=Qc(e)){if(typeof qm!="function")throw Error(Q(280));var t=e.stateNode;t&&(t=Mf(t),qm(e.stateNode,e.type,t))}}function q2(e){Ys?Xs?Xs.push(e):Xs=[e]:Ys=e}function Q2(){if(Ys){var e=Ys,t=Xs;if(Xs=Ys=null,i1(e),t)for(e=0;e>>=0,e===0?32:31-(z4(e)/B4|0)|0}var xu=64,bu=4194304;function gl(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 Pd(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=gl(a):(i&=s,i!==0&&(r=gl(i)))}else s=n&~o,s!==0?r=gl(s):i!==0&&(r=gl(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Gc(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Nr(t),e[t]=n}function U4(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Tl),h1=" ",m1=!1;function hC(e,t){switch(e){case"keyup":return yT.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ls=!1;function bT(e,t){switch(e){case"compositionend":return mC(t);case"keypress":return t.which!==32?null:(m1=!0,h1);case"textInput":return e=t.data,e===h1&&m1?null:e;default:return null}}function wT(e,t){if(Ls)return e==="compositionend"||!z0&&hC(e,t)?(e=fC(),ad=N0=ri=null,Ls=!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:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=x1(n)}}function xC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bC(){for(var e=window,t=kd();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=kd(e.document)}return t}function B0(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 IT(e){var t=bC(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xC(n.ownerDocument.documentElement,n)){if(r!==null&&B0(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=b1(n,i);var s=b1(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ds=null,Jm=null,Pl=null,eg=!1;function w1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;eg||Ds==null||Ds!==kd(r)||(r=Ds,"selectionStart"in r&&B0(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Pl&&Zl(Pl,r)||(Pl=r,r=jd(Jm,"onSelect"),0Fs||(e.current=sg[Fs],sg[Fs]=null,Fs--)}function vt(e,t){Fs++,sg[Fs]=e.current,e.current=t}var bi={},fn=Ii(bi),Mn=Ii(!1),ns=bi;function da(e,t){var n=e.type.contextTypes;if(!n)return bi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function On(e){return e=e.childContextTypes,e!=null}function Od(){bt(Mn),bt(fn)}function E1(e,t,n){if(fn.current!==bi)throw Error(Q(168));vt(fn,t),vt(Mn,n)}function PC(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Q(108,k4(e)||"Unknown",o));return Et({},n,r)}function $d(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||bi,ns=fn.current,vt(fn,e),vt(Mn,Mn.current),!0}function P1(e,t,n){var r=e.stateNode;if(!r)throw Error(Q(169));n?(e=PC(e,t,ns),r.__reactInternalMemoizedMergedChildContext=e,bt(Mn),bt(fn),vt(fn,e)):bt(Mn),vt(Mn,n)}var Ro=null,Of=!1,Th=!1;function IC(e){Ro===null?Ro=[e]:Ro.push(e)}function WT(e){Of=!0,IC(e)}function _i(){if(!Th&&Ro!==null){Th=!0;var e=0,t=lt;try{var n=Ro;for(lt=1;e>=s,o-=s,Eo=1<<32-Nr(t)+o|n<P?(_=R,R=null):_=R.sibling;var k=p(g,R,x[P],w);if(k===null){R===null&&(R=_);break}e&&R&&k.alternate===null&&t(g,R),y=i(k,y,P),T===null?S=k:T.sibling=k,T=k,R=_}if(P===x.length)return n(g,R),St&&$i(g,P),S;if(R===null){for(;PP?(_=R,R=null):_=R.sibling;var E=p(g,R,k.value,w);if(E===null){R===null&&(R=_);break}e&&R&&E.alternate===null&&t(g,R),y=i(E,y,P),T===null?S=E:T.sibling=E,T=E,R=_}if(k.done)return n(g,R),St&&$i(g,P),S;if(R===null){for(;!k.done;P++,k=x.next())k=d(g,k.value,w),k!==null&&(y=i(k,y,P),T===null?S=k:T.sibling=k,T=k);return St&&$i(g,P),S}for(R=r(g,R);!k.done;P++,k=x.next())k=h(R,g,P,k.value,w),k!==null&&(e&&k.alternate!==null&&R.delete(k.key===null?P:k.key),y=i(k,y,P),T===null?S=k:T.sibling=k,T=k);return e&&R.forEach(function(M){return t(g,M)}),St&&$i(g,P),S}function C(g,y,x,w){if(typeof x=="object"&&x!==null&&x.type===Ns&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case gu:e:{for(var S=x.key,T=y;T!==null;){if(T.key===S){if(S=x.type,S===Ns){if(T.tag===7){n(g,T.sibling),y=o(T,x.props.children),y.return=g,g=y;break e}}else if(T.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Yo&&j1(S)===T.type){n(g,T.sibling),y=o(T,x.props),y.ref=Za(g,T,x),y.return=g,g=y;break e}n(g,T);break}else t(g,T);T=T.sibling}x.type===Ns?(y=Qi(x.props.children,g.mode,w,x.key),y.return=g,g=y):(w=md(x.type,x.key,x.props,null,g.mode,w),w.ref=Za(g,y,x),w.return=g,g=w)}return s(g);case $s:e:{for(T=x.key;y!==null;){if(y.key===T)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){n(g,y.sibling),y=o(y,x.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=$h(x,g.mode,w),y.return=g,g=y}return s(g);case Yo:return T=x._init,C(g,y,T(x._payload),w)}if(ml(x))return v(g,y,x,w);if(Ha(x))return m(g,y,x,w);Tu(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(n(g,y.sibling),y=o(y,x),y.return=g,g=y):(n(g,y),y=Oh(x,g.mode,w),y.return=g,g=y),s(g)):n(g,y)}return C}var pa=OC(!0),$C=OC(!1),Dd=Ii(null),zd=null,Us=null,U0=null;function H0(){U0=Us=zd=null}function G0(e){var t=Dd.current;bt(Dd),e._currentValue=t}function cg(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ea(e,t){zd=e,U0=Us=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(In=!0),e.firstContext=null)}function gr(e){var t=e._currentValue;if(U0!==e)if(e={context:e,memoizedValue:t,next:null},Us===null){if(zd===null)throw Error(Q(308));Us=e,zd.dependencies={lanes:0,firstContext:e}}else Us=Us.next=e;return t}var Vi=null;function q0(e){Vi===null?Vi=[e]:Vi.push(e)}function NC(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,q0(t)):(n.next=o.next,o.next=n),t.interleaved=n,Mo(e,r)}function Mo(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Xo=!1;function Q0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function LC(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 Io(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function fi(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Xe&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Mo(e,n)}return o=r.interleaved,o===null?(t.next=t,q0(r)):(t.next=o.next,o.next=t),r.interleaved=t,Mo(e,n)}function cd(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,M0(e,n)}}function M1(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Bd(e,t,n,r){var o=e.updateQueue;Xo=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?i=c:s.next=c,s=l;var u=e.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==s&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,u=c=l=null,a=i;do{var p=a.lane,h=a.eventTime;if((r&p)===p){u!==null&&(u=u.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,m=a;switch(p=t,h=n,m.tag){case 1:if(v=m.payload,typeof v=="function"){d=v.call(h,d,p);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=m.payload,p=typeof v=="function"?v.call(h,d,p):v,p==null)break e;d=Et({},d,p);break e;case 2:Xo=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[a]:p.push(a))}else h={eventTime:h,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=h,l=d):u=u.next=h,s|=p;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;p=a,a=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(u===null&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);is|=s,e.lanes=s,e.memoizedState=d}}function O1(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ph.transition;Ph.transition={};try{e(!1),t()}finally{lt=n,Ph.transition=r}}function eS(){return vr().memoizedState}function GT(e,t,n){var r=hi(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},tS(e))nS(t,n);else if(n=NC(e,t,n,r),n!==null){var o=gn();Lr(n,e,r,o),rS(n,t,r)}}function qT(e,t,n){var r=hi(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(tS(e))nS(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,zr(a,s)){var l=t.interleaved;l===null?(o.next=o,q0(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=NC(e,t,o,r),n!==null&&(o=gn(),Lr(n,e,r,o),rS(n,t,r))}}function tS(e){var t=e.alternate;return e===Tt||t!==null&&t===Tt}function nS(e,t){Il=Wd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function rS(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,M0(e,n)}}var Vd={readContext:gr,useCallback:ln,useContext:ln,useEffect:ln,useImperativeHandle:ln,useInsertionEffect:ln,useLayoutEffect:ln,useMemo:ln,useReducer:ln,useRef:ln,useState:ln,useDebugValue:ln,useDeferredValue:ln,useTransition:ln,useMutableSource:ln,useSyncExternalStore:ln,useId:ln,unstable_isNewReconciler:!1},QT={readContext:gr,useCallback:function(e,t){return Xr().memoizedState=[e,t===void 0?null:t],e},useContext:gr,useEffect:N1,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,dd(4194308,4,KC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return dd(4194308,4,e,t)},useInsertionEffect:function(e,t){return dd(4,2,e,t)},useMemo:function(e,t){var n=Xr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=GT.bind(null,Tt,e),[r.memoizedState,e]},useRef:function(e){var t=Xr();return e={current:e},t.memoizedState=e},useState:$1,useDebugValue:nv,useDeferredValue:function(e){return Xr().memoizedState=e},useTransition:function(){var e=$1(!1),t=e[0];return e=HT.bind(null,e[1]),Xr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Tt,o=Xr();if(St){if(n===void 0)throw Error(Q(407));n=n()}else{if(n=t(),Kt===null)throw Error(Q(349));os&30||FC(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,N1(VC.bind(null,r,i,e),[e]),r.flags|=2048,oc(9,WC.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Xr(),t=Kt.identifierPrefix;if(St){var n=Po,r=Eo;n=(r&~(1<<32-Nr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=nc++,0")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{xh=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?gl(e):""}function tT(e){switch(e.tag){case 5:return gl(e.type);case 16:return gl("Lazy");case 13:return gl("Suspense");case 19:return gl("SuspenseList");case 0:case 2:case 15:return e=bh(e.type,!1),e;case 11:return e=bh(e.type.render,!1),e;case 1:return e=bh(e.type,!0),e;default:return""}}function Gm(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 zs:return"Fragment";case Ds:return"Portal";case Vm:return"Profiler";case N0:return"StrictMode";case Um:return"Suspense";case Hm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case oS:return(e.displayName||"Context")+".Consumer";case rS:return(e._context.displayName||"Context")+".Provider";case D0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case z0:return t=e.displayName||null,t!==null?t:Gm(e.type)||"Memo";case ti:t=e._payload,e=e._init;try{return Gm(e(t))}catch{}}return null}function nT(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 Gm(t);case 8:return t===N0?"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 Ci(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rT(e){var t=sS(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bu(e){e._valueTracker||(e._valueTracker=rT(e))}function aS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=sS(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Pd(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 qm(e,t){var n=t.checked;return Tt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function p1(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ci(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function lS(e,t){t=t.checked,t!=null&&L0(e,"checked",t,!1)}function Qm(e,t){lS(e,t);var n=Ci(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Km(e,t.type,n):t.hasOwnProperty("defaultValue")&&Km(e,t.type,Ci(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function h1(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Km(e,t,n){(t!=="number"||Pd(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var vl=Array.isArray;function Js(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=wu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Gl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var El={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},oT=["Webkit","ms","Moz","O"];Object.keys(El).forEach(function(e){oT.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),El[t]=El[e]})});function fS(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||El.hasOwnProperty(e)&&El[e]?(""+t).trim():t+"px"}function pS(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=fS(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var iT=Tt({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 Xm(e,t){if(t){if(iT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Q(62))}}function Jm(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 eg=null;function B0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var tg=null,ea=null,ta=null;function v1(e){if(e=Zc(e)){if(typeof tg!="function")throw Error(Q(280));var t=e.stateNode;t&&(t=zf(t),tg(e.stateNode,e.type,t))}}function hS(e){ea?ta?ta.push(e):ta=[e]:ea=e}function mS(){if(ea){var e=ea,t=ta;if(ta=ea=null,v1(e),t)for(e=0;e>>=0,e===0?32:31-(gT(e)/vT|0)|0}var Su=64,Cu=4194304;function yl(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 Md(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=yl(a):(i&=s,i!==0&&(r=yl(i)))}else s=n&~o,s!==0?r=yl(s):i!==0&&(r=yl(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Qc(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Dr(t),e[t]=n}function wT(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Pl),R1=" ",E1=!1;function $S(e,t){switch(e){case"keyup":return KT.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function LS(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bs=!1;function YT(e,t){switch(e){case"compositionend":return LS(t);case"keypress":return t.which!==32?null:(E1=!0,R1);case"textInput":return e=t.data,e===R1&&E1?null:e;default:return null}}function XT(e,t){if(Bs)return e==="compositionend"||!Q0&&$S(e,t)?(e=MS(),dd=H0=ai=null,Bs=!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:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_1(n)}}function BS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?BS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function FS(){for(var e=window,t=Pd();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Pd(e.document)}return t}function K0(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 a4(e){var t=FS(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&BS(n.ownerDocument.documentElement,n)){if(r!==null&&K0(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=j1(n,i);var s=j1(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Fs=null,ag=null,_l=null,lg=!1;function M1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;lg||Fs==null||Fs!==Pd(r)||(r=Fs,"selectionStart"in r&&K0(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),_l&&Xl(_l,r)||(_l=r,r=Ld(ag,"onSelect"),0Us||(e.current=hg[Us],hg[Us]=null,Us--)}function vt(e,t){Us++,hg[Us]=e.current,e.current=t}var Ai={},fn=Oi(Ai),Mn=Oi(!1),ss=Ai;function ha(e,t){var n=e.type.contextTypes;if(!n)return Ai;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function On(e){return e=e.childContextTypes,e!=null}function Dd(){bt(Mn),bt(fn)}function B1(e,t,n){if(fn.current!==Ai)throw Error(Q(168));vt(fn,t),vt(Mn,n)}function ZS(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Q(108,nT(e)||"Unknown",o));return Tt({},n,r)}function zd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ai,ss=fn.current,vt(fn,e),vt(Mn,Mn.current),!0}function F1(e,t,n){var r=e.stateNode;if(!r)throw Error(Q(169));n?(e=ZS(e,t,ss),r.__reactInternalMemoizedMergedChildContext=e,bt(Mn),bt(fn),vt(fn,e)):bt(Mn),vt(Mn,n)}var To=null,Bf=!1,Oh=!1;function YS(e){To===null?To=[e]:To.push(e)}function x4(e){Bf=!0,YS(e)}function $i(){if(!Oh&&To!==null){Oh=!0;var e=0,t=lt;try{var n=To;for(lt=1;e>=s,o-=s,Io=1<<32-Dr(t)+o|n<P?(_=k,k=null):_=k.sibling;var R=p(g,k,x[P],S);if(R===null){k===null&&(k=_);break}e&&k&&R.alternate===null&&t(g,k),y=i(R,y,P),E===null?C=R:E.sibling=R,E=R,k=_}if(P===x.length)return n(g,k),Ct&&zi(g,P),C;if(k===null){for(;PP?(_=k,k=null):_=k.sibling;var T=p(g,k,R.value,S);if(T===null){k===null&&(k=_);break}e&&k&&T.alternate===null&&t(g,k),y=i(T,y,P),E===null?C=T:E.sibling=T,E=T,k=_}if(R.done)return n(g,k),Ct&&zi(g,P),C;if(k===null){for(;!R.done;P++,R=x.next())R=d(g,R.value,S),R!==null&&(y=i(R,y,P),E===null?C=R:E.sibling=R,E=R);return Ct&&zi(g,P),C}for(k=r(g,k);!R.done;P++,R=x.next())R=h(k,g,P,R.value,S),R!==null&&(e&&R.alternate!==null&&k.delete(R.key===null?P:R.key),y=i(R,y,P),E===null?C=R:E.sibling=R,E=R);return e&&k.forEach(function(M){return t(g,M)}),Ct&&zi(g,P),C}function w(g,y,x,S){if(typeof x=="object"&&x!==null&&x.type===zs&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case xu:e:{for(var C=x.key,E=y;E!==null;){if(E.key===C){if(C=x.type,C===zs){if(E.tag===7){n(g,E.sibling),y=o(E,x.props.children),y.return=g,g=y;break e}}else if(E.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===ti&&U1(C)===E.type){n(g,E.sibling),y=o(E,x.props),y.ref=Xa(g,E,x),y.return=g,g=y;break e}n(g,E);break}else t(g,E);E=E.sibling}x.type===zs?(y=Xi(x.props.children,g.mode,S,x.key),y.return=g,g=y):(S=xd(x.type,x.key,x.props,null,g.mode,S),S.ref=Xa(g,y,x),S.return=g,g=S)}return s(g);case Ds:e:{for(E=x.key;y!==null;){if(y.key===E)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){n(g,y.sibling),y=o(y,x.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=Wh(x,g.mode,S),y.return=g,g=y}return s(g);case ti:return E=x._init,w(g,y,E(x._payload),S)}if(vl(x))return v(g,y,x,S);if(qa(x))return m(g,y,x,S);Iu(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(n(g,y.sibling),y=o(y,x),y.return=g,g=y):(n(g,y),y=Fh(x,g.mode,S),y.return=g,g=y),s(g)):n(g,y)}return w}var ga=tC(!0),nC=tC(!1),Wd=Oi(null),Vd=null,qs=null,J0=null;function ev(){J0=qs=Vd=null}function tv(e){var t=Wd.current;bt(Wd),e._currentValue=t}function vg(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ra(e,t){Vd=e,J0=qs=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(In=!0),e.firstContext=null)}function yr(e){var t=e._currentValue;if(J0!==e)if(e={context:e,memoizedValue:t,next:null},qs===null){if(Vd===null)throw Error(Q(308));qs=e,Vd.dependencies={lanes:0,firstContext:e}}else qs=qs.next=e;return t}var qi=null;function nv(e){qi===null?qi=[e]:qi.push(e)}function rC(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,nv(t)):(n.next=o.next,o.next=n),t.interleaved=n,Lo(e,r)}function Lo(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ni=!1;function rv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function oC(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 jo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gi(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Xe&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Lo(e,n)}return o=r.interleaved,o===null?(t.next=t,nv(r)):(t.next=o.next,o.next=t),r.interleaved=t,Lo(e,n)}function pd(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,W0(e,n)}}function H1(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ud(e,t,n,r){var o=e.updateQueue;ni=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?i=c:s.next=c,s=l;var u=e.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==s&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,u=c=l=null,a=i;do{var p=a.lane,h=a.eventTime;if((r&p)===p){u!==null&&(u=u.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,m=a;switch(p=t,h=n,m.tag){case 1:if(v=m.payload,typeof v=="function"){d=v.call(h,d,p);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=m.payload,p=typeof v=="function"?v.call(h,d,p):v,p==null)break e;d=Tt({},d,p);break e;case 2:ni=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[a]:p.push(a))}else h={eventTime:h,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=h,l=d):u=u.next=h,s|=p;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;p=a,a=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(u===null&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);cs|=s,e.lanes=s,e.memoizedState=d}}function G1(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Lh.transition;Lh.transition={};try{e(!1),t()}finally{lt=n,Lh.transition=r}}function wC(){return xr().memoizedState}function C4(e,t,n){var r=yi(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},SC(e))CC(t,n);else if(n=rC(e,t,n,r),n!==null){var o=vn();zr(n,e,r,o),AC(n,t,r)}}function A4(e,t,n){var r=yi(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(SC(e))CC(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Fr(a,s)){var l=t.interleaved;l===null?(o.next=o,nv(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=rC(e,t,o,r),n!==null&&(o=vn(),zr(n,e,r,o),AC(n,t,r))}}function SC(e){var t=e.alternate;return e===Et||t!==null&&t===Et}function CC(e,t){jl=Gd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function AC(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,W0(e,n)}}var qd={readContext:yr,useCallback:ln,useContext:ln,useEffect:ln,useImperativeHandle:ln,useInsertionEffect:ln,useLayoutEffect:ln,useMemo:ln,useReducer:ln,useRef:ln,useState:ln,useDebugValue:ln,useDeferredValue:ln,useTransition:ln,useMutableSource:ln,useSyncExternalStore:ln,useId:ln,unstable_isNewReconciler:!1},k4={readContext:yr,useCallback:function(e,t){return to().memoizedState=[e,t===void 0?null:t],e},useContext:yr,useEffect:Q1,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,md(4194308,4,gC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return md(4194308,4,e,t)},useInsertionEffect:function(e,t){return md(4,2,e,t)},useMemo:function(e,t){var n=to();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=to();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=C4.bind(null,Et,e),[r.memoizedState,e]},useRef:function(e){var t=to();return e={current:e},t.memoizedState=e},useState:q1,useDebugValue:dv,useDeferredValue:function(e){return to().memoizedState=e},useTransition:function(){var e=q1(!1),t=e[0];return e=S4.bind(null,e[1]),to().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Et,o=to();if(Ct){if(n===void 0)throw Error(Q(407));n=n()}else{if(n=t(),Kt===null)throw Error(Q(349));ls&30||lC(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Q1(uC.bind(null,r,i,e),[e]),r.flags|=2048,sc(9,cC.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=to(),t=Kt.identifierPrefix;if(Ct){var n=_o,r=Io;n=(r&~(1<<32-Dr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=oc++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[oo]=t,e[Jl]=r,pS(e,t,!1,!1),t.stateNode=e;e:{switch(s=Hm(n,r),n){case"dialog":xt("cancel",e),xt("close",e),o=r;break;case"iframe":case"object":case"embed":xt("load",e),o=r;break;case"video":case"audio":for(o=0;oga&&(t.flags|=128,r=!0,Ya(i,!1),t.lanes=4194304)}else{if(!r)if(e=Fd(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ya(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!St)return cn(t),null}else 2*$t()-i.renderingStartTime>ga&&n!==1073741824&&(t.flags|=128,r=!0,Ya(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=$t(),t.sibling=null,n=Rt.current,vt(Rt,r?n&1|2:n&1),t):(cn(t),null);case 22:case 23:return lv(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Wn&1073741824&&(cn(t),t.subtreeFlags&6&&(t.flags|=8192)):cn(t),null;case 24:return null;case 25:return null}throw Error(Q(156,t.tag))}function n5(e,t){switch(W0(t),t.tag){case 1:return On(t.type)&&Od(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ha(),bt(Mn),bt(fn),Y0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Z0(t),null;case 13:if(bt(Rt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Q(340));fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return bt(Rt),null;case 4:return ha(),null;case 10:return G0(t.type._context),null;case 22:case 23:return lv(),null;case 24:return null;default:return null}}var Pu=!1,dn=!1,r5=typeof WeakSet=="function"?WeakSet:Set,he=null;function Hs(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Mt(e,t,r)}else n.current=null}function yg(e,t,n){try{n()}catch(r){Mt(e,t,r)}}var q1=!1;function o5(e,t){if(tg=Id,e=bC(),B0(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,u=0,d=e,p=null;t:for(;;){for(var h;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)p=d,d=h;for(;;){if(d===e)break t;if(p===n&&++c===o&&(a=s),p===i&&++u===r&&(l=s),(h=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ng={focusedElem:e,selectionRange:n},Id=!1,he=t;he!==null;)if(t=he,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,he=e;else for(;he!==null;){t=he;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var m=v.memoizedProps,C=v.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:Er(t.type,m),C);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Q(163))}}catch(w){Mt(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,he=e;break}he=t.return}return v=q1,q1=!1,v}function _l(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&yg(t,n,i)}o=o.next}while(o!==r)}}function Lf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function xg(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function gS(e){var t=e.alternate;t!==null&&(e.alternate=null,gS(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[oo],delete t[Jl],delete t[ig],delete t[BT],delete t[FT])),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 vS(e){return e.tag===5||e.tag===3||e.tag===4}function Q1(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vS(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 bg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Md));else if(r!==4&&(e=e.child,e!==null))for(bg(e,t,n),e=e.sibling;e!==null;)bg(e,t,n),e=e.sibling}function wg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(wg(e,t,n),e=e.sibling;e!==null;)wg(e,t,n),e=e.sibling}var tn=null,Pr=!1;function qo(e,t,n){for(n=n.child;n!==null;)yS(e,t,n),n=n.sibling}function yS(e,t,n){if(io&&typeof io.onCommitFiberUnmount=="function")try{io.onCommitFiberUnmount(Pf,n)}catch{}switch(n.tag){case 5:dn||Hs(n,t);case 6:var r=tn,o=Pr;tn=null,qo(e,t,n),tn=r,Pr=o,tn!==null&&(Pr?(e=tn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):tn.removeChild(n.stateNode));break;case 18:tn!==null&&(Pr?(e=tn,n=n.stateNode,e.nodeType===8?Rh(e.parentNode,n):e.nodeType===1&&Rh(e,n),Ql(e)):Rh(tn,n.stateNode));break;case 4:r=tn,o=Pr,tn=n.stateNode.containerInfo,Pr=!0,qo(e,t,n),tn=r,Pr=o;break;case 0:case 11:case 14:case 15:if(!dn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&yg(n,t,s),o=o.next}while(o!==r)}qo(e,t,n);break;case 1:if(!dn&&(Hs(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Mt(n,t,a)}qo(e,t,n);break;case 21:qo(e,t,n);break;case 22:n.mode&1?(dn=(r=dn)||n.memoizedState!==null,qo(e,t,n),dn=r):qo(e,t,n);break;default:qo(e,t,n)}}function K1(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new r5),t.forEach(function(r){var o=p5.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Rr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=$t()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*s5(r/1960))-r,10e?16:e,oi===null)var r=!1;else{if(e=oi,oi=null,Gd=0,Xe&6)throw Error(Q(331));var o=Xe;for(Xe|=4,he=e.current;he!==null;){var i=he,s=i.child;if(he.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l$t()-sv?qi(e,0):iv|=n),$n(e,t)}function RS(e,t){t===0&&(e.mode&1?(t=bu,bu<<=1,!(bu&130023424)&&(bu=4194304)):t=1);var n=gn();e=Mo(e,t),e!==null&&(Gc(e,t,n),$n(e,n))}function f5(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),RS(e,n)}function p5(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Q(314))}r!==null&&r.delete(t),RS(e,n)}var TS;TS=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Mn.current)In=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return In=!1,e5(e,t,n);In=!!(e.flags&131072)}else In=!1,St&&t.flags&1048576&&_C(t,Ld,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;fd(e,t),e=t.pendingProps;var o=da(t,fn.current);ea(t,n),o=J0(null,t,r,e,o,n);var i=ev();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,On(r)?(i=!0,$d(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Q0(t),o.updater=Nf,t.stateNode=o,o._reactInternals=t,dg(t,r,e,n),t=hg(null,t,r,!0,i,n)):(t.tag=0,St&&i&&F0(t),mn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(fd(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=m5(r),e=Er(r,e),o){case 0:t=pg(null,t,r,e,n);break e;case 1:t=U1(null,t,r,e,n);break e;case 11:t=W1(null,t,r,e,n);break e;case 14:t=V1(null,t,r,Er(r.type,e),n);break e}throw Error(Q(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Er(r,o),pg(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Er(r,o),U1(e,t,r,o,n);case 3:e:{if(uS(t),e===null)throw Error(Q(387));r=t.pendingProps,i=t.memoizedState,o=i.element,LC(e,t),Bd(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ma(Error(Q(423)),t),t=H1(e,t,r,n,o);break e}else if(r!==o){o=ma(Error(Q(424)),t),t=H1(e,t,r,n,o);break e}else for(Gn=di(t.stateNode.containerInfo.firstChild),Qn=t,St=!0,Ir=null,n=$C(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(fa(),r===o){t=Oo(e,t,n);break e}mn(e,t,r,n)}t=t.child}return t;case 5:return DC(t),e===null&&lg(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,rg(r,o)?s=null:i!==null&&rg(r,i)&&(t.flags|=32),cS(e,t),mn(e,t,s,n),t.child;case 6:return e===null&&lg(t),null;case 13:return dS(e,t,n);case 4:return K0(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=pa(t,null,r,n):mn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Er(r,o),W1(e,t,r,o,n);case 7:return mn(e,t,t.pendingProps,n),t.child;case 8:return mn(e,t,t.pendingProps.children,n),t.child;case 12:return mn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,vt(Dd,r._currentValue),r._currentValue=s,i!==null)if(zr(i.value,s)){if(i.children===o.children&&!Mn.current){t=Oo(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Io(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),cg(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(Q(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),cg(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}mn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ea(t,n),o=gr(o),r=r(o),t.flags|=1,mn(e,t,r,n),t.child;case 14:return r=t.type,o=Er(r,t.pendingProps),o=Er(r.type,o),V1(e,t,r,o,n);case 15:return aS(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Er(r,o),fd(e,t),t.tag=1,On(r)?(e=!0,$d(t)):e=!1,ea(t,n),oS(t,r,o),dg(t,r,o,n),hg(null,t,r,!0,e,n);case 19:return fS(e,t,n);case 22:return lS(e,t,n)}throw Error(Q(156,t.tag))};function ES(e,t){return tC(e,t)}function h5(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fr(e,t,n,r){return new h5(e,t,n,r)}function uv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function m5(e){if(typeof e=="function")return uv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===P0)return 11;if(e===I0)return 14}return 2}function mi(e,t){var n=e.alternate;return n===null?(n=fr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function md(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")uv(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ns:return Qi(n.children,o,i,t);case E0:s=8,o|=8;break;case $m:return e=fr(12,n,t,o|2),e.elementType=$m,e.lanes=i,e;case Nm:return e=fr(13,n,t,o),e.elementType=Nm,e.lanes=i,e;case Lm:return e=fr(19,n,t,o),e.elementType=Lm,e.lanes=i,e;case D2:return zf(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case N2:s=10;break e;case L2:s=9;break e;case P0:s=11;break e;case I0:s=14;break e;case Yo:s=16,r=null;break e}throw Error(Q(130,e==null?e:typeof e,""))}return t=fr(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Qi(e,t,n,r){return e=fr(7,e,r,t),e.lanes=n,e}function zf(e,t,n,r){return e=fr(22,e,r,t),e.elementType=D2,e.lanes=n,e.stateNode={isHidden:!1},e}function Oh(e,t,n){return e=fr(6,e,null,t),e.lanes=n,e}function $h(e,t,n){return t=fr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function g5(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mh(0),this.expirationTimes=mh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mh(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function dv(e,t,n,r,o,i,s,a,l){return e=new g5(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=fr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Q0(i),e}function v5(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(jS)}catch(e){console.error(e)}}jS(),j2.exports=er;var Uf=j2.exports;const ju=Tf(Uf);var rx=Uf;Mm.createRoot=rx.createRoot,Mm.hydrateRoot=rx.hydrateRoot;function Ki(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function MS(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function OS(e){let t,n,r;e.length!==2?(t=Ki,n=(a,l)=>Ki(e(a),l),r=(a,l)=>e(a)-l):(t=e===Ki||e===MS?e:C5,n=e,r=e);function o(a,l,c=0,u=a.length){if(c>>1;n(a[d],l)<0?c=d+1:u=d}while(c>>1;n(a[d],l)<=0?c=d+1:u=d}while(cc&&r(a[d-1],l)>-r(a[d],l)?d-1:d}return{left:o,center:s,right:i}}function C5(){return 0}function S5(e){return e===null?NaN:+e}const A5=OS(Ki),k5=A5.right;OS(S5).center;function R5(e,t){return Array.from(t,n=>e[n])}function T5(e,...t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");e=Array.from(e);let[n]=t;if(n&&n.length!==2||t.length>1){const r=Uint32Array.from(e,(o,i)=>i);return t.length>1?(t=t.map(o=>e.map(o)),r.sort((o,i)=>{for(const s of t){const a=Rg(s[o],s[i]);if(a)return a}})):(n=e.map(n),r.sort((o,i)=>Rg(n[o],n[i]))),R5(e,r)}return e.sort(E5(n))}function E5(e=Ki){if(e===Ki)return Rg;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function Rg(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const P5=Math.sqrt(50),I5=Math.sqrt(10),_5=Math.sqrt(2);function Kd(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),s=i>=P5?10:i>=I5?5:i>=_5?2:1;let a,l,c;return o<0?(c=Math.pow(10,-o)/s,a=Math.round(e*c),l=Math.round(t*c),a/ct&&--l,c=-c):(c=Math.pow(10,o)*s,a=Math.round(e/c),l=Math.round(t/c),a*ct&&--l),l0))return[];if(e===t)return[e];const r=t=o))return[];const a=i-o+1,l=new Array(a);if(r)if(s<0)for(let c=0;c=r)&&(n=r);return n}function ox(e,t){let n=0,r=0;if(t===void 0)for(let o of e)o!=null&&(o=+o)>=o&&(++n,r+=o);else{let o=-1;for(let i of e)(i=t(i,++o,e))!=null&&(i=+i)>=i&&(++n,r+=i)}if(n)return r/n}function _r(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let o of e)(o=+t(o,++r,e))&&(n+=o)}return n}function gv(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function $S(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Zc(){}var sc=.7,Zd=1/sc,na="\\s*([+-]?\\d+)\\s*",ac="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ao="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",O5=/^#([0-9a-f]{3,8})$/,$5=new RegExp(`^rgb\\(${na},${na},${na}\\)$`),N5=new RegExp(`^rgb\\(${ao},${ao},${ao}\\)$`),L5=new RegExp(`^rgba\\(${na},${na},${na},${ac}\\)$`),D5=new RegExp(`^rgba\\(${ao},${ao},${ao},${ac}\\)$`),z5=new RegExp(`^hsl\\(${ac},${ao},${ao}\\)$`),B5=new RegExp(`^hsla\\(${ac},${ao},${ao},${ac}\\)$`),ix={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};gv(Zc,lc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:sx,formatHex:sx,formatHex8:F5,formatHsl:W5,formatRgb:ax,toString:ax});function sx(){return this.rgb().formatHex()}function F5(){return this.rgb().formatHex8()}function W5(){return NS(this).formatHsl()}function ax(){return this.rgb().formatRgb()}function lc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=O5.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?lx(t):n===3?new _n(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Mu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Mu(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=$5.exec(e))?new _n(t[1],t[2],t[3],1):(t=N5.exec(e))?new _n(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=L5.exec(e))?Mu(t[1],t[2],t[3],t[4]):(t=D5.exec(e))?Mu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=z5.exec(e))?dx(t[1],t[2]/100,t[3]/100,1):(t=B5.exec(e))?dx(t[1],t[2]/100,t[3]/100,t[4]):ix.hasOwnProperty(e)?lx(ix[e]):e==="transparent"?new _n(NaN,NaN,NaN,0):null}function lx(e){return new _n(e>>16&255,e>>8&255,e&255,1)}function Mu(e,t,n,r){return r<=0&&(e=t=n=NaN),new _n(e,t,n,r)}function V5(e){return e instanceof Zc||(e=lc(e)),e?(e=e.rgb(),new _n(e.r,e.g,e.b,e.opacity)):new _n}function Eg(e,t,n,r){return arguments.length===1?V5(e):new _n(e,t,n,r??1)}function _n(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}gv(_n,Eg,$S(Zc,{brighter(e){return e=e==null?Zd:Math.pow(Zd,e),new _n(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?sc:Math.pow(sc,e),new _n(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _n(Zi(this.r),Zi(this.g),Zi(this.b),Yd(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:cx,formatHex:cx,formatHex8:U5,formatRgb:ux,toString:ux}));function cx(){return`#${Hi(this.r)}${Hi(this.g)}${Hi(this.b)}`}function U5(){return`#${Hi(this.r)}${Hi(this.g)}${Hi(this.b)}${Hi((isNaN(this.opacity)?1:this.opacity)*255)}`}function ux(){const e=Yd(this.opacity);return`${e===1?"rgb(":"rgba("}${Zi(this.r)}, ${Zi(this.g)}, ${Zi(this.b)}${e===1?")":`, ${e})`}`}function Yd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Zi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Hi(e){return e=Zi(e),(e<16?"0":"")+e.toString(16)}function dx(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Mr(e,t,n,r)}function NS(e){if(e instanceof Mr)return new Mr(e.h,e.s,e.l,e.opacity);if(e instanceof Zc||(e=lc(e)),!e)return new Mr;if(e instanceof Mr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=NaN,a=i-o,l=(i+o)/2;return a?(t===i?s=(n-r)/a+(n0&&l<1?0:s,new Mr(s,a,l,e.opacity)}function H5(e,t,n,r){return arguments.length===1?NS(e):new Mr(e,t,n,r??1)}function Mr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}gv(Mr,H5,$S(Zc,{brighter(e){return e=e==null?Zd:Math.pow(Zd,e),new Mr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?sc:Math.pow(sc,e),new Mr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new _n(Nh(e>=240?e-240:e+120,o,r),Nh(e,o,r),Nh(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Mr(fx(this.h),Ou(this.s),Ou(this.l),Yd(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Yd(this.opacity);return`${e===1?"hsl(":"hsla("}${fx(this.h)}, ${Ou(this.s)*100}%, ${Ou(this.l)*100}%${e===1?")":`, ${e})`}`}}));function fx(e){return e=(e||0)%360,e<0?e+360:e}function Ou(e){return Math.max(0,Math.min(1,e||0))}function Nh(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const vv=e=>()=>e;function G5(e,t){return function(n){return e+n*t}}function q5(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Q5(e){return(e=+e)==1?LS:function(t,n){return n-t?q5(t,n,e):vv(isNaN(t)?n:t)}}function LS(e,t){var n=t-e;return n?G5(e,n):vv(isNaN(e)?t:e)}const px=function e(t){var n=Q5(t);function r(o,i){var s=n((o=Eg(o)).r,(i=Eg(i)).r),a=n(o.g,i.g),l=n(o.b,i.b),c=LS(o.opacity,i.opacity);return function(u){return o.r=s(u),o.g=a(u),o.b=l(u),o.opacity=c(u),o+""}}return r.gamma=e,r}(1);function K5(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(i){for(o=0;on&&(i=t.slice(n,i),a[s]?a[s]+=i:a[++s]=i),(r=r[0])===(o=o[0])?a[s]?a[s]+=o:a[++s]=o:(a[++s]=null,l.push({i:s,x:Xd(r,o)})),n=Lh.lastIndex;return n=0))throw new Error(`invalid digits: ${e}`);if(t>15)return DS;const n=10**t;return function(r){this._+=r[0];for(let o=1,i=r.length;oLi)if(!(Math.abs(d*l-c*u)>Li)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-s,v=o-a,m=l*l+c*c,C=h*h+v*v,g=Math.sqrt(m),y=Math.sqrt(p),x=i*Math.tan((Ig-Math.acos((m+p-C)/(2*g*y)))/2),w=x/y,S=x/g;Math.abs(w-1)>Li&&this._append`L${t+w*u},${n+w*d}`,this._append`A${i},${i},0,0,${+(d*h>u*v)},${this._x1=t+S*l},${this._y1=n+S*c}`}}arc(t,n,r,o,i,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(o),l=r*Math.sin(o),c=t+a,u=n+l,d=1^s,p=s?o-i:i-o;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Li||Math.abs(this._y1-u)>Li)&&this._append`L${c},${u}`,r&&(p<0&&(p=p%_g+_g),p>oE?this._append`A${r},${r},0,1,${d},${t-a},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:p>Li&&this._append`A${r},${r},0,${+(p>=Ig)},${d},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function BS(){return new zS}BS.prototype=zS.prototype;var hx={},Dh={},zh=34,Ja=10,Bh=13;function FS(e){return new Function("d","return {"+e.map(function(t,n){return JSON.stringify(t)+": d["+n+'] || ""'}).join(",")+"}")}function sE(e,t){var n=FS(e);return function(r,o){return t(n(r),o,e)}}function mx(e){var t=Object.create(null),n=[];return e.forEach(function(r){for(var o in r)o in t||n.push(t[o]=o)}),n}function Tn(e,t){var n=e+"",r=n.length;return r9999?"+"+Tn(e,6):Tn(e,4)}function lE(e){var t=e.getUTCHours(),n=e.getUTCMinutes(),r=e.getUTCSeconds(),o=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":aE(e.getUTCFullYear())+"-"+Tn(e.getUTCMonth()+1,2)+"-"+Tn(e.getUTCDate(),2)+(o?"T"+Tn(t,2)+":"+Tn(n,2)+":"+Tn(r,2)+"."+Tn(o,3)+"Z":r?"T"+Tn(t,2)+":"+Tn(n,2)+":"+Tn(r,2)+"Z":n||t?"T"+Tn(t,2)+":"+Tn(n,2)+"Z":"")}function cE(e){var t=new RegExp('["'+e+` -\r]`),n=e.charCodeAt(0);function r(d,p){var h,v,m=o(d,function(C,g){if(h)return h(C,g-1);v=C,h=p?sE(C,p):FS(C)});return m.columns=v||[],m}function o(d,p){var h=[],v=d.length,m=0,C=0,g,y=v<=0,x=!1;d.charCodeAt(v-1)===Ja&&--v,d.charCodeAt(v-1)===Bh&&--v;function w(){if(y)return Dh;if(x)return x=!1,hx;var T,R=m,P;if(d.charCodeAt(R)===zh){for(;m++=v?y=!0:(P=d.charCodeAt(m++))===Ja?x=!0:P===Bh&&(x=!0,d.charCodeAt(m)===Ja&&++m),d.slice(R+1,T-1).replace(/""/g,'"')}for(;m<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[ao]=t,e[tc]=r,OC(e,t,!1,!1),t.stateNode=e;e:{switch(s=Jm(n,r),n){case"dialog":xt("cancel",e),xt("close",e),o=r;break;case"iframe":case"object":case"embed":xt("load",e),o=r;break;case"video":case"audio":for(o=0;oxa&&(t.flags|=128,r=!0,Ja(i,!1),t.lanes=4194304)}else{if(!r)if(e=Hd(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ja(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Ct)return cn(t),null}else 2*$t()-i.renderingStartTime>xa&&n!==1073741824&&(t.flags|=128,r=!0,Ja(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=$t(),t.sibling=null,n=Rt.current,vt(Rt,r?n&1|2:n&1),t):(cn(t),null);case 22:case 23:return vv(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Hn&1073741824&&(cn(t),t.subtreeFlags&6&&(t.flags|=8192)):cn(t),null;case 24:return null;case 25:return null}throw Error(Q(156,t.tag))}function M4(e,t){switch(Y0(t),t.tag){case 1:return On(t.type)&&Dd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return va(),bt(Mn),bt(fn),sv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return iv(t),null;case 13:if(bt(Rt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Q(340));ma()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return bt(Rt),null;case 4:return va(),null;case 10:return tv(t.type._context),null;case 22:case 23:return vv(),null;case 24:return null;default:return null}}var ju=!1,dn=!1,O4=typeof WeakSet=="function"?WeakSet:Set,he=null;function Qs(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Mt(e,t,r)}else n.current=null}function Rg(e,t,n){try{n()}catch(r){Mt(e,t,r)}}var ix=!1;function $4(e,t){if(cg=Od,e=FS(),K0(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,u=0,d=e,p=null;t:for(;;){for(var h;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)p=d,d=h;for(;;){if(d===e)break t;if(p===n&&++c===o&&(a=s),p===i&&++u===r&&(l=s),(h=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ug={focusedElem:e,selectionRange:n},Od=!1,he=t;he!==null;)if(t=he,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,he=e;else for(;he!==null;){t=he;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var m=v.memoizedProps,w=v.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:Ir(t.type,m),w);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Q(163))}}catch(S){Mt(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,he=e;break}he=t.return}return v=ix,ix=!1,v}function Ml(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Rg(t,n,i)}o=o.next}while(o!==r)}}function Vf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Eg(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function NC(e){var t=e.alternate;t!==null&&(e.alternate=null,NC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ao],delete t[tc],delete t[pg],delete t[v4],delete t[y4])),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 DC(e){return e.tag===5||e.tag===3||e.tag===4}function sx(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||DC(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 Tg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Nd));else if(r!==4&&(e=e.child,e!==null))for(Tg(e,t,n),e=e.sibling;e!==null;)Tg(e,t,n),e=e.sibling}function Pg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Pg(e,t,n),e=e.sibling;e!==null;)Pg(e,t,n),e=e.sibling}var tn=null,_r=!1;function Yo(e,t,n){for(n=n.child;n!==null;)zC(e,t,n),n=n.sibling}function zC(e,t,n){if(lo&&typeof lo.onCommitFiberUnmount=="function")try{lo.onCommitFiberUnmount($f,n)}catch{}switch(n.tag){case 5:dn||Qs(n,t);case 6:var r=tn,o=_r;tn=null,Yo(e,t,n),tn=r,_r=o,tn!==null&&(_r?(e=tn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):tn.removeChild(n.stateNode));break;case 18:tn!==null&&(_r?(e=tn,n=n.stateNode,e.nodeType===8?Mh(e.parentNode,n):e.nodeType===1&&Mh(e,n),Zl(e)):Mh(tn,n.stateNode));break;case 4:r=tn,o=_r,tn=n.stateNode.containerInfo,_r=!0,Yo(e,t,n),tn=r,_r=o;break;case 0:case 11:case 14:case 15:if(!dn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Rg(n,t,s),o=o.next}while(o!==r)}Yo(e,t,n);break;case 1:if(!dn&&(Qs(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Mt(n,t,a)}Yo(e,t,n);break;case 21:Yo(e,t,n);break;case 22:n.mode&1?(dn=(r=dn)||n.memoizedState!==null,Yo(e,t,n),dn=r):Yo(e,t,n);break;default:Yo(e,t,n)}}function ax(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new O4),t.forEach(function(r){var o=U4.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Tr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=$t()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*N4(r/1960))-r,10e?16:e,li===null)var r=!1;else{if(e=li,li=null,Zd=0,Xe&6)throw Error(Q(331));var o=Xe;for(Xe|=4,he=e.current;he!==null;){var i=he,s=i.child;if(he.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l$t()-mv?Yi(e,0):hv|=n),$n(e,t)}function qC(e,t){t===0&&(e.mode&1?(t=Cu,Cu<<=1,!(Cu&130023424)&&(Cu=4194304)):t=1);var n=vn();e=Lo(e,t),e!==null&&(Qc(e,t,n),$n(e,n))}function V4(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qC(e,n)}function U4(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Q(314))}r!==null&&r.delete(t),qC(e,n)}var QC;QC=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Mn.current)In=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return In=!1,_4(e,t,n);In=!!(e.flags&131072)}else In=!1,Ct&&t.flags&1048576&&XS(t,Fd,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;gd(e,t),e=t.pendingProps;var o=ha(t,fn.current);ra(t,n),o=lv(null,t,r,e,o,n);var i=cv();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,On(r)?(i=!0,zd(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,rv(t),o.updater=Wf,t.stateNode=o,o._reactInternals=t,xg(t,r,e,n),t=Sg(null,t,r,!0,i,n)):(t.tag=0,Ct&&i&&Z0(t),gn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(gd(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=G4(r),e=Ir(r,e),o){case 0:t=wg(null,t,r,e,n);break e;case 1:t=nx(null,t,r,e,n);break e;case 11:t=ex(null,t,r,e,n);break e;case 14:t=tx(null,t,r,Ir(r.type,e),n);break e}throw Error(Q(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ir(r,o),wg(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ir(r,o),nx(e,t,r,o,n);case 3:e:{if(_C(t),e===null)throw Error(Q(387));r=t.pendingProps,i=t.memoizedState,o=i.element,oC(e,t),Ud(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ya(Error(Q(423)),t),t=rx(e,t,r,n,o);break e}else if(r!==o){o=ya(Error(Q(424)),t),t=rx(e,t,r,n,o);break e}else for(Kn=mi(t.stateNode.containerInfo.firstChild),Yn=t,Ct=!0,jr=null,n=nC(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ma(),r===o){t=No(e,t,n);break e}gn(e,t,r,n)}t=t.child}return t;case 5:return iC(t),e===null&&gg(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,dg(r,o)?s=null:i!==null&&dg(r,i)&&(t.flags|=32),IC(e,t),gn(e,t,s,n),t.child;case 6:return e===null&&gg(t),null;case 13:return jC(e,t,n);case 4:return ov(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ga(t,null,r,n):gn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ir(r,o),ex(e,t,r,o,n);case 7:return gn(e,t,t.pendingProps,n),t.child;case 8:return gn(e,t,t.pendingProps.children,n),t.child;case 12:return gn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,vt(Wd,r._currentValue),r._currentValue=s,i!==null)if(Fr(i.value,s)){if(i.children===o.children&&!Mn.current){t=No(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=jo(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),vg(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(Q(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),vg(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}gn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ra(t,n),o=yr(o),r=r(o),t.flags|=1,gn(e,t,r,n),t.child;case 14:return r=t.type,o=Ir(r,t.pendingProps),o=Ir(r.type,o),tx(e,t,r,o,n);case 15:return TC(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ir(r,o),gd(e,t),t.tag=1,On(r)?(e=!0,zd(t)):e=!1,ra(t,n),kC(t,r,o),xg(t,r,o,n),Sg(null,t,r,!0,e,n);case 19:return MC(e,t,n);case 22:return PC(e,t,n)}throw Error(Q(156,t.tag))};function KC(e,t){return SS(e,t)}function H4(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hr(e,t,n,r){return new H4(e,t,n,r)}function xv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function G4(e){if(typeof e=="function")return xv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===D0)return 11;if(e===z0)return 14}return 2}function xi(e,t){var n=e.alternate;return n===null?(n=hr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function xd(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")xv(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case zs:return Xi(n.children,o,i,t);case N0:s=8,o|=8;break;case Vm:return e=hr(12,n,t,o|2),e.elementType=Vm,e.lanes=i,e;case Um:return e=hr(13,n,t,o),e.elementType=Um,e.lanes=i,e;case Hm:return e=hr(19,n,t,o),e.elementType=Hm,e.lanes=i,e;case iS:return Hf(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case rS:s=10;break e;case oS:s=9;break e;case D0:s=11;break e;case z0:s=14;break e;case ti:s=16,r=null;break e}throw Error(Q(130,e==null?e:typeof e,""))}return t=hr(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Xi(e,t,n,r){return e=hr(7,e,r,t),e.lanes=n,e}function Hf(e,t,n,r){return e=hr(22,e,r,t),e.elementType=iS,e.lanes=n,e.stateNode={isHidden:!1},e}function Fh(e,t,n){return e=hr(6,e,null,t),e.lanes=n,e}function Wh(e,t,n){return t=hr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function q4(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Sh(0),this.expirationTimes=Sh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sh(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function bv(e,t,n,r,o,i,s,a,l){return e=new q4(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=hr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},rv(i),e}function Q4(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(JC)}catch(e){console.error(e)}}JC(),J2.exports=rr;var Zf=J2.exports;const $u=Mf(Zf);var mx=Zf;Fm.createRoot=mx.createRoot,Fm.hydrateRoot=mx.hydrateRoot;function Ji(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function eA(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function tA(e){let t,n,r;e.length!==2?(t=Ji,n=(a,l)=>Ji(e(a),l),r=(a,l)=>e(a)-l):(t=e===Ji||e===eA?e:J4,n=e,r=e);function o(a,l,c=0,u=a.length){if(c>>1;n(a[d],l)<0?c=d+1:u=d}while(c>>1;n(a[d],l)<=0?c=d+1:u=d}while(cc&&r(a[d-1],l)>-r(a[d],l)?d-1:d}return{left:o,center:s,right:i}}function J4(){return 0}function eP(e){return e===null?NaN:+e}const tP=tA(Ji),nP=tP.right;tA(eP).center;function rP(e,t){return Array.from(t,n=>e[n])}function oP(e,...t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");e=Array.from(e);let[n]=t;if(n&&n.length!==2||t.length>1){const r=Uint32Array.from(e,(o,i)=>i);return t.length>1?(t=t.map(o=>e.map(o)),r.sort((o,i)=>{for(const s of t){const a=Og(s[o],s[i]);if(a)return a}})):(n=e.map(n),r.sort((o,i)=>Og(n[o],n[i]))),rP(e,r)}return e.sort(iP(n))}function iP(e=Ji){if(e===Ji)return Og;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function Og(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const sP=Math.sqrt(50),aP=Math.sqrt(10),lP=Math.sqrt(2);function Jd(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),s=i>=sP?10:i>=aP?5:i>=lP?2:1;let a,l,c;return o<0?(c=Math.pow(10,-o)/s,a=Math.round(e*c),l=Math.round(t*c),a/ct&&--l,c=-c):(c=Math.pow(10,o)*s,a=Math.round(e/c),l=Math.round(t/c),a*ct&&--l),l0))return[];if(e===t)return[e];const r=t=o))return[];const a=i-o+1,l=new Array(a);if(r)if(s<0)for(let c=0;c=r)&&(n=r);return n}function gx(e,t){let n=0,r=0;if(t===void 0)for(let o of e)o!=null&&(o=+o)>=o&&(++n,r+=o);else{let o=-1;for(let i of e)(i=t(i,++o,e))!=null&&(i=+i)>=i&&(++n,r+=i)}if(n)return r/n}function Mr(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let o of e)(o=+t(o,++r,e))&&(n+=o)}return n}function kv(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function nA(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Xc(){}var lc=.7,ef=1/lc,ia="\\s*([+-]?\\d+)\\s*",cc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",uo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",dP=/^#([0-9a-f]{3,8})$/,fP=new RegExp(`^rgb\\(${ia},${ia},${ia}\\)$`),pP=new RegExp(`^rgb\\(${uo},${uo},${uo}\\)$`),hP=new RegExp(`^rgba\\(${ia},${ia},${ia},${cc}\\)$`),mP=new RegExp(`^rgba\\(${uo},${uo},${uo},${cc}\\)$`),gP=new RegExp(`^hsl\\(${cc},${uo},${uo}\\)$`),vP=new RegExp(`^hsla\\(${cc},${uo},${uo},${cc}\\)$`),vx={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};kv(Xc,uc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:yx,formatHex:yx,formatHex8:yP,formatHsl:xP,formatRgb:xx,toString:xx});function yx(){return this.rgb().formatHex()}function yP(){return this.rgb().formatHex8()}function xP(){return rA(this).formatHsl()}function xx(){return this.rgb().formatRgb()}function uc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=dP.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?bx(t):n===3?new _n(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Lu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Lu(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=fP.exec(e))?new _n(t[1],t[2],t[3],1):(t=pP.exec(e))?new _n(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=hP.exec(e))?Lu(t[1],t[2],t[3],t[4]):(t=mP.exec(e))?Lu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=gP.exec(e))?Cx(t[1],t[2]/100,t[3]/100,1):(t=vP.exec(e))?Cx(t[1],t[2]/100,t[3]/100,t[4]):vx.hasOwnProperty(e)?bx(vx[e]):e==="transparent"?new _n(NaN,NaN,NaN,0):null}function bx(e){return new _n(e>>16&255,e>>8&255,e&255,1)}function Lu(e,t,n,r){return r<=0&&(e=t=n=NaN),new _n(e,t,n,r)}function bP(e){return e instanceof Xc||(e=uc(e)),e?(e=e.rgb(),new _n(e.r,e.g,e.b,e.opacity)):new _n}function Lg(e,t,n,r){return arguments.length===1?bP(e):new _n(e,t,n,r??1)}function _n(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}kv(_n,Lg,nA(Xc,{brighter(e){return e=e==null?ef:Math.pow(ef,e),new _n(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?lc:Math.pow(lc,e),new _n(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _n(es(this.r),es(this.g),es(this.b),tf(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:wx,formatHex:wx,formatHex8:wP,formatRgb:Sx,toString:Sx}));function wx(){return`#${Ki(this.r)}${Ki(this.g)}${Ki(this.b)}`}function wP(){return`#${Ki(this.r)}${Ki(this.g)}${Ki(this.b)}${Ki((isNaN(this.opacity)?1:this.opacity)*255)}`}function Sx(){const e=tf(this.opacity);return`${e===1?"rgb(":"rgba("}${es(this.r)}, ${es(this.g)}, ${es(this.b)}${e===1?")":`, ${e})`}`}function tf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function es(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ki(e){return e=es(e),(e<16?"0":"")+e.toString(16)}function Cx(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new $r(e,t,n,r)}function rA(e){if(e instanceof $r)return new $r(e.h,e.s,e.l,e.opacity);if(e instanceof Xc||(e=uc(e)),!e)return new $r;if(e instanceof $r)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=NaN,a=i-o,l=(i+o)/2;return a?(t===i?s=(n-r)/a+(n0&&l<1?0:s,new $r(s,a,l,e.opacity)}function SP(e,t,n,r){return arguments.length===1?rA(e):new $r(e,t,n,r??1)}function $r(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}kv($r,SP,nA(Xc,{brighter(e){return e=e==null?ef:Math.pow(ef,e),new $r(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?lc:Math.pow(lc,e),new $r(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new _n(Vh(e>=240?e-240:e+120,o,r),Vh(e,o,r),Vh(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new $r(Ax(this.h),Nu(this.s),Nu(this.l),tf(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=tf(this.opacity);return`${e===1?"hsl(":"hsla("}${Ax(this.h)}, ${Nu(this.s)*100}%, ${Nu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ax(e){return e=(e||0)%360,e<0?e+360:e}function Nu(e){return Math.max(0,Math.min(1,e||0))}function Vh(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Rv=e=>()=>e;function CP(e,t){return function(n){return e+n*t}}function AP(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function kP(e){return(e=+e)==1?oA:function(t,n){return n-t?AP(t,n,e):Rv(isNaN(t)?n:t)}}function oA(e,t){var n=t-e;return n?CP(e,n):Rv(isNaN(e)?t:e)}const kx=function e(t){var n=kP(t);function r(o,i){var s=n((o=Lg(o)).r,(i=Lg(i)).r),a=n(o.g,i.g),l=n(o.b,i.b),c=oA(o.opacity,i.opacity);return function(u){return o.r=s(u),o.g=a(u),o.b=l(u),o.opacity=c(u),o+""}}return r.gamma=e,r}(1);function RP(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(i){for(o=0;on&&(i=t.slice(n,i),a[s]?a[s]+=i:a[++s]=i),(r=r[0])===(o=o[0])?a[s]?a[s]+=o:a[++s]=o:(a[++s]=null,l.push({i:s,x:nf(r,o)})),n=Uh.lastIndex;return n=0))throw new Error(`invalid digits: ${e}`);if(t>15)return iA;const n=10**t;return function(r){this._+=r[0];for(let o=1,i=r.length;oFi)if(!(Math.abs(d*l-c*u)>Fi)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-s,v=o-a,m=l*l+c*c,w=h*h+v*v,g=Math.sqrt(m),y=Math.sqrt(p),x=i*Math.tan((Dg-Math.acos((m+p-w)/(2*g*y)))/2),S=x/y,C=x/g;Math.abs(S-1)>Fi&&this._append`L${t+S*u},${n+S*d}`,this._append`A${i},${i},0,0,${+(d*h>u*v)},${this._x1=t+C*l},${this._y1=n+C*c}`}}arc(t,n,r,o,i,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(o),l=r*Math.sin(o),c=t+a,u=n+l,d=1^s,p=s?o-i:i-o;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Fi||Math.abs(this._y1-u)>Fi)&&this._append`L${c},${u}`,r&&(p<0&&(p=p%zg+zg),p>$P?this._append`A${r},${r},0,1,${d},${t-a},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:p>Fi&&this._append`A${r},${r},0,${+(p>=Dg)},${d},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function aA(){return new sA}aA.prototype=sA.prototype;var Rx={},Hh={},Gh=34,tl=10,qh=13;function lA(e){return new Function("d","return {"+e.map(function(t,n){return JSON.stringify(t)+": d["+n+'] || ""'}).join(",")+"}")}function NP(e,t){var n=lA(e);return function(r,o){return t(n(r),o,e)}}function Ex(e){var t=Object.create(null),n=[];return e.forEach(function(r){for(var o in r)o in t||n.push(t[o]=o)}),n}function En(e,t){var n=e+"",r=n.length;return r9999?"+"+En(e,6):En(e,4)}function zP(e){var t=e.getUTCHours(),n=e.getUTCMinutes(),r=e.getUTCSeconds(),o=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":DP(e.getUTCFullYear())+"-"+En(e.getUTCMonth()+1,2)+"-"+En(e.getUTCDate(),2)+(o?"T"+En(t,2)+":"+En(n,2)+":"+En(r,2)+"."+En(o,3)+"Z":r?"T"+En(t,2)+":"+En(n,2)+":"+En(r,2)+"Z":n||t?"T"+En(t,2)+":"+En(n,2)+"Z":"")}function BP(e){var t=new RegExp('["'+e+` +\r]`),n=e.charCodeAt(0);function r(d,p){var h,v,m=o(d,function(w,g){if(h)return h(w,g-1);v=w,h=p?NP(w,p):lA(w)});return m.columns=v||[],m}function o(d,p){var h=[],v=d.length,m=0,w=0,g,y=v<=0,x=!1;d.charCodeAt(v-1)===tl&&--v,d.charCodeAt(v-1)===qh&&--v;function S(){if(y)return Hh;if(x)return x=!1,Rx;var E,k=m,P;if(d.charCodeAt(k)===Gh){for(;m++=v?y=!0:(P=d.charCodeAt(m++))===tl?x=!0:P===qh&&(x=!0,d.charCodeAt(m)===tl&&++m),d.slice(k+1,E-1).replace(/""/g,'"')}for(;m=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Jd(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function va(e){return e=Jd(Math.abs(e)),e?e[1]:NaN}function mE(e,t){return function(n,r){for(var o=n.length,i=[],s=0,a=e[0],l=0;o>0&&a>0&&(l+a+1>r&&(a=Math.max(1,r-l)),i.push(n.substring(o-=a,o+a)),!((l+=a+1)>r));)a=e[s=(s+1)%e.length];return i.reverse().join(t)}}function gE(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var vE=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ef(e){if(!(t=vE.exec(e)))throw new Error("invalid format: "+e);var t;return new xv({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}ef.prototype=xv.prototype;function xv(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}xv.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function yE(e){e:for(var t=e.length,n=1,r=-1,o;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var GS;function xE(e,t){var n=Jd(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(GS=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,s=r.length;return i===s?r:i>s?r+new Array(i-s+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Jd(e,Math.max(0,t+i-1))[0]}function gx(e,t){var n=Jd(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const vx={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:hE,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>gx(e*100,t),r:gx,s:xE,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function yx(e){return e}var xx=Array.prototype.map,bx=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function bE(e){var t=e.grouping===void 0||e.thousands===void 0?yx:mE(xx.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?yx:gE(xx.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",a=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=ef(d);var p=d.fill,h=d.align,v=d.sign,m=d.symbol,C=d.zero,g=d.width,y=d.comma,x=d.precision,w=d.trim,S=d.type;S==="n"?(y=!0,S="g"):vx[S]||(x===void 0&&(x=12),w=!0,S="g"),(C||p==="0"&&h==="=")&&(C=!0,p="0",h="=");var T=m==="$"?n:m==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():"",R=m==="$"?r:/[%p]/.test(S)?s:"",P=vx[S],_=/[defgprs%]/.test(S);x=x===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function k(E){var M=T,$=R,O,z,L;if(S==="c")$=P(E)+$,E="";else{E=+E;var D=E<0||1/E<0;if(E=isNaN(E)?l:P(Math.abs(E),x),w&&(E=yE(E)),D&&+E==0&&v!=="+"&&(D=!1),M=(D?v==="("?v:a:v==="-"||v==="("?"":v)+M,$=(S==="s"?bx[8+GS/3]:"")+$+(D&&v==="("?")":""),_){for(O=-1,z=E.length;++OL||L>57){$=(L===46?o+E.slice(O+1):E.slice(O))+$,E=E.slice(0,O);break}}}y&&!C&&(E=t(E,1/0));var j=M.length+E.length+$.length,N=j>1)+M+E+$+N.slice(j);break;default:E=N+M+E+$;break}return i(E)}return k.toString=function(){return d+""},k}function u(d,p){var h=c((d=ef(d),d.type="f",d)),v=Math.max(-8,Math.min(8,Math.floor(va(p)/3)))*3,m=Math.pow(10,-v),C=bx[8+v/3];return function(g){return h(m*g)+C}}return{format:c,formatPrefix:u}}var $u,yn,bv;wE({thousands:",",grouping:[3],currency:["$",""]});function wE(e){return $u=bE(e),yn=$u.format,bv=$u.formatPrefix,$u}function CE(e){return Math.max(0,-va(Math.abs(e)))}function SE(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(va(t)/3)))*3-va(Math.abs(e)))}function AE(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,va(t)-va(e))+1}function kE(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function RE(e){return function(){return e}}function TE(e){return+e}var wx=[0,1];function qs(e){return e}function Mg(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:RE(isNaN(t)?NaN:.5)}function EE(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function PE(e,t,n){var r=e[0],o=e[1],i=t[0],s=t[1];return o2?IE:PE,l=c=null,d}function d(p){return p==null||isNaN(p=+p)?i:(l||(l=a(e.map(r),t,n)))(r(s(p)))}return d.invert=function(p){return s(o((c||(c=a(t,e.map(r),Xd)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,TE),u()):e.slice()},d.range=function(p){return arguments.length?(t=Array.from(p),u()):t.slice()},d.rangeRound=function(p){return t=Array.from(p),n=rE,u()},d.clamp=function(p){return arguments.length?(s=p?!0:qs,u()):s!==qs},d.interpolate=function(p){return arguments.length?(n=p,u()):n},d.unknown=function(p){return arguments.length?(i=p,d):i},function(p,h){return r=p,o=h,u()}}function ME(){return jE()(qs,qs)}function OE(e,t,n,r){var o=M5(e,t,n),i;switch(r=ef(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=SE(o,s))&&(r.precision=i),bv(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=AE(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=CE(o))&&(r.precision=i-(r.type==="%")*2);break}}return yn(r)}function $E(e){var t=e.domain;return e.ticks=function(n){var r=t();return j5(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return OE(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,i=r.length-1,s=r[o],a=r[i],l,c,u=10;for(a0;){if(c=Tg(s,a,n),c===l)return r[o]=s,r[i]=a,t(r);if(c>0)s=Math.floor(s/c)*c,a=Math.ceil(a/c)*c;else if(c<0)s=Math.ceil(s*c)/c,a=Math.floor(a*c)/c;else break;l=c}return e},e}function Yc(){var e=ME();return e.copy=function(){return _E(e,Yc())},kE.apply(e,arguments),$E(e)}function Oi(e){return function(){return e}}const NE=Math.PI,Fh=2*NE;function LE(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function DE(e,t){return te?1:t>=e?0:NaN}function zE(e){return e}function BE(){var e=zE,t=DE,n=null,r=Oi(0),o=Oi(Fh),i=Oi(0);function s(a){var l,c=(a=LE(a)).length,u,d,p=0,h=new Array(c),v=new Array(c),m=+r.apply(this,arguments),C=Math.min(Fh,Math.max(-Fh,o.apply(this,arguments)-m)),g,y=Math.min(Math.abs(C)/c,i.apply(this,arguments)),x=y*(C<0?-1:1),w;for(l=0;l0&&(p+=w);for(t!=null?h.sort(function(S,T){return t(v[S],v[T])}):n!=null&&h.sort(function(S,T){return n(a[S],a[T])}),l=0,d=p?(C-c*x)/p:0;l0?w*d:0)+x,v[u]={data:a[u],index:l,value:w,startAngle:m,endAngle:g,padAngle:y};return v}return s.value=function(a){return arguments.length?(e=typeof a=="function"?a:Oi(+a),s):e},s.sortValues=function(a){return arguments.length?(t=a,n=null,s):t},s.sort=function(a){return arguments.length?(n=a,t=null,s):n},s.startAngle=function(a){return arguments.length?(r=typeof a=="function"?a:Oi(+a),s):r},s.endAngle=function(a){return arguments.length?(o=typeof a=="function"?a:Oi(+a),s):o},s.padAngle=function(a){return arguments.length?(i=typeof a=="function"?a:Oi(+a),s):i},s}function yl(e,t,n){this.k=e,this.x=t,this.y=n}yl.prototype={constructor:yl,scale:function(e){return e===1?this:new yl(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new yl(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};yl.prototype;const FE=60*60*1e3,Cx=new Date,Sx="background-color: #0d6cb6; color: white; padding: 2px;";function wo(e,t,n){const r=localStorage.getItem(e);if(r&&JSON.parse(r).timeStamp>Cx.getTime()-FE){const o=VS(JSON.parse(r).data,jg);return console.info(`%cInfo: data file ${e} retrieved from localStorage`,Sx),Promise.resolve(o)}else return HS(t,jg).then(i=>{try{localStorage.setItem(e,JSON.stringify({data:n==="csv"?US(i):i,timeStamp:Cx.getTime()}))}catch(s){console.warn(`Error saving the file ${e} in localStorage. Error: ${s}.`)}return console.info(`%cInfo: data file ${e} obtained from API call`,Sx),i})}const Og=(e,t)=>t.some(n=>e instanceof n);let Ax,kx;function WE(){return Ax||(Ax=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function VE(){return kx||(kx=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const $g=new WeakMap,Wh=new WeakMap,Hf=new WeakMap;function UE(e){const t=new Promise((n,r)=>{const o=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{n(Yi(e.result)),o()},s=()=>{r(e.error),o()};e.addEventListener("success",i),e.addEventListener("error",s)});return Hf.set(t,e),t}function HE(e){if($g.has(e))return;const t=new Promise((n,r)=>{const o=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",s),e.removeEventListener("abort",s)},i=()=>{n(),o()},s=()=>{r(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",i),e.addEventListener("error",s),e.addEventListener("abort",s)});$g.set(e,t)}let Ng={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return $g.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Yi(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function qS(e){Ng=e(Ng)}function GE(e){return VE().includes(e)?function(...t){return e.apply(Lg(this),t),Yi(this.request)}:function(...t){return Yi(e.apply(Lg(this),t))}}function qE(e){return typeof e=="function"?GE(e):(e instanceof IDBTransaction&&HE(e),Og(e,WE())?new Proxy(e,Ng):e)}function Yi(e){if(e instanceof IDBRequest)return UE(e);if(Wh.has(e))return Wh.get(e);const t=qE(e);return t!==e&&(Wh.set(e,t),Hf.set(t,e)),t}const Lg=e=>Hf.get(e);function QE(e,t,{blocked:n,upgrade:r,blocking:o,terminated:i}={}){const s=indexedDB.open(e,t),a=Yi(s);return r&&s.addEventListener("upgradeneeded",l=>{r(Yi(s.result),l.oldVersion,l.newVersion,Yi(s.transaction),l)}),n&&s.addEventListener("blocked",l=>n(l.oldVersion,l.newVersion,l)),a.then(l=>{i&&l.addEventListener("close",()=>i()),o&&l.addEventListener("versionchange",c=>o(c.oldVersion,c.newVersion,c))}).catch(()=>{}),a}const KE=["get","getKey","getAll","getAllKeys","count"],ZE=["put","add","delete","clear"],Vh=new Map;function Rx(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Vh.get(t))return Vh.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,o=ZE.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(o||KE.includes(n)))return;const i=async function(s,...a){const l=this.transaction(s,o?"readwrite":"readonly");let c=l.store;return r&&(c=c.index(a.shift())),(await Promise.all([c[n](...a),o&&l.done]))[0]};return Vh.set(t,i),i}qS(e=>({...e,get:(t,n,r)=>Rx(t,n)||e.get(t,n,r),has:(t,n)=>!!Rx(t,n)||e.has(t,n)}));const YE=["continue","continuePrimaryKey","advance"],Tx={},Dg=new WeakMap,QS=new WeakMap,XE={get(e,t){if(!YE.includes(t))return e[t];let n=Tx[t];return n||(n=Tx[t]=function(...r){Dg.set(this,QS.get(this)[t](...r))}),n}};async function*JE(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;const n=new Proxy(t,XE);for(QS.set(n,t),Hf.set(n,Lg(t));t;)yield n,t=await(Dg.get(n)||t.continue()),Dg.delete(n)}function Ex(e,t){return t===Symbol.asyncIterator&&Og(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&Og(e,[IDBIndex,IDBObjectStore])}qS(e=>({...e,get(t,n,r){return Ex(t,n)?JE:e.get(t,n,r)},has(t,n){return Ex(t,n)||e.has(t,n)}}));const eP=60*60*1e3,Px=new Date,Ix="background-color: #0d6cb6; color: white; padding: 2px;",tP=QE("localDatabase",1,{upgrade(e){e.createObjectStore("files")}});async function Uh(e,t,n){const r=await tP,s=await r.transaction("files","readwrite").objectStore("files").get(e);if(s&&s.timeStamp>Px.getTime()-eP){const a=s.data;return console.info(`%cInfo: data file ${e} retrieved from indexedDB`,Ix),Promise.resolve(a)}else return HS(t,jg).then(l=>{try{r.transaction("files","readwrite").objectStore("files").put({data:l,timeStamp:Px.getTime()},e)}catch(c){console.warn(`Error saving the file ${e} in indexedDB. Error: ${c}.`)}return console.info(`%cInfo: data file ${e} obtained from API call`,Ix),l})}var Ze;(function(e){e.assertEqual=o=>o;function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{const i={};for(const s of o)i[s]=s;return i},e.getValidEnumValues=o=>{const i=e.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),s={};for(const a of i)s[a]=o[a];return e.objectValues(s)},e.objectValues=o=>e.objectKeys(o).map(function(i){return o[i]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const i=[];for(const s in o)Object.prototype.hasOwnProperty.call(o,s)&&i.push(s);return i},e.find=(o,i)=>{for(const s of o)if(i(s))return s},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&isFinite(o)&&Math.floor(o)===o;function r(o,i=" | "){return o.map(s=>typeof s=="string"?`'${s}'`:s).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(o,i)=>typeof i=="bigint"?i.toString():i})(Ze||(Ze={}));var zg;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(zg||(zg={}));const de=Ze.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ti=e=>{switch(typeof e){case"undefined":return de.undefined;case"string":return de.string;case"number":return isNaN(e)?de.nan:de.number;case"boolean":return de.boolean;case"function":return de.function;case"bigint":return de.bigint;case"symbol":return de.symbol;case"object":return Array.isArray(e)?de.array:e===null?de.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?de.promise:typeof Map<"u"&&e instanceof Map?de.map:typeof Set<"u"&&e instanceof Set?de.set:typeof Date<"u"&&e instanceof Date?de.date:de.object;default:return de.unknown}},K=Ze.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"]),nP=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Kn extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(i){return i.message},r={_errors:[]},o=i=>{for(const s of i.issues)if(s.code==="invalid_union")s.unionErrors.map(o);else if(s.code==="invalid_return_type")o(s.returnTypeError);else if(s.code==="invalid_arguments")o(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let a=r,l=0;for(;ln.message){const n={},r=[];for(const o of this.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Kn.create=e=>new Kn(e);const ya=(e,t)=>{let n;switch(e.code){case K.invalid_type:e.received===de.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case K.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Ze.jsonStringifyReplacer)}`;break;case K.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ze.joinValues(e.keys,", ")}`;break;case K.invalid_union:n="Invalid input";break;case K.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ze.joinValues(e.options)}`;break;case K.invalid_enum_value:n=`Invalid enum value. Expected ${Ze.joinValues(e.options)}, received '${e.received}'`;break;case K.invalid_arguments:n="Invalid function arguments";break;case K.invalid_return_type:n="Invalid function return type";break;case K.invalid_date:n="Invalid date";break;case K.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Ze.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case K.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case K.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case K.custom:n="Invalid input";break;case K.invalid_intersection_types:n="Intersection results could not be merged";break;case K.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case K.not_finite:n="Number must be finite";break;default:n=t.defaultError,Ze.assertNever(e)}return{message:n}};let KS=ya;function rP(e){KS=e}function tf(){return KS}const nf=e=>{const{data:t,path:n,errorMaps:r,issueData:o}=e,i=[...n,...o.path||[]],s={...o,path:i};if(o.message!==void 0)return{...o,path:i,message:o.message};let a="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)a=c(s,{data:t,defaultError:a}).message;return{...o,path:i,message:a}},oP=[];function ie(e,t){const n=tf(),r=nf({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===ya?void 0:ya].filter(o=>!!o)});e.common.issues.push(r)}class pn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const o of n){if(o.status==="aborted")return Me;o.status==="dirty"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const o of n){const i=await o.key,s=await o.value;r.push({key:i,value:s})}return pn.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const o of n){const{key:i,value:s}=o;if(i.status==="aborted"||s.status==="aborted")return Me;i.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof s.value<"u"||o.alwaysSet)&&(r[i.value]=s.value)}return{status:t.value,value:r}}}const Me=Object.freeze({status:"aborted"}),Qs=e=>({status:"dirty",value:e}),xn=e=>({status:"valid",value:e}),Bg=e=>e.status==="aborted",Fg=e=>e.status==="dirty",cc=e=>e.status==="valid",uc=e=>typeof Promise<"u"&&e instanceof Promise;function rf(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function ZS(e,t,n,r,o){if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var ke;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ke||(ke={}));var xl,bl;class po{constructor(t,n,r,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=o}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 _x=(e,t)=>{if(cc(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 n=new Kn(e.common.issues);return this._error=n,this._error}}};function Le(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(s,a)=>{var l,c;const{message:u}=e;return s.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:(l=u??r)!==null&&l!==void 0?l:a.defaultError}:s.code!=="invalid_type"?{message:a.defaultError}:{message:(c=u??n)!==null&&c!==void 0?c:a.defaultError}},description:o}}class We{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 ti(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:ti(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new pn,ctx:{common:t.parent.common,data:t.data,parsedType:ti(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(uc(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const o={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ti(t)},i=this._parseSync({data:t,path:o.path,parent:o});return _x(o,i)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ti(t)},o=this._parse({data:t,path:r.path,parent:r}),i=await(uc(o)?o:Promise.resolve(o));return _x(r,i)}refine(t,n){const r=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,i)=>{const s=t(o),a=()=>i.addIssue({code:K.custom,...r(o)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(a(),!1)):s?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof n=="function"?n(r,o):n),!1))}_refinement(t){return new Br({schema:this,typeName:je.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return lo.create(this,this._def)}nullable(){return Ai.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Dr.create(this,this._def)}promise(){return ba.create(this,this._def)}or(t){return hc.create([this,t],this._def)}and(t){return mc.create(this,t,this._def)}transform(t){return new Br({...Le(this._def),schema:this,typeName:je.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new bc({...Le(this._def),innerType:this,defaultValue:n,typeName:je.ZodDefault})}brand(){return new wv({typeName:je.ZodBranded,type:this,...Le(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new wc({...Le(this._def),innerType:this,catchValue:n,typeName:je.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Xc.create(this,t)}readonly(){return Cc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const iP=/^c[^\s-]{8,}$/i,sP=/^[0-9a-z]+$/,aP=/^[0-9A-HJKMNP-TV-Z]{26}$/,lP=/^[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,cP=/^[a-z0-9_-]{21}$/i,uP=/^[-+]?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)?)??$/,dP=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,fP="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Hh;const pP=/^(?:(?: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])$/,hP=/^(([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})))$/,mP=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,YS="((\\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])))",gP=new RegExp(`^${YS}$`);function XS(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 vP(e){return new RegExp(`^${XS(e)}$`)}function JS(e){let t=`${YS}T${XS(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function yP(e,t){return!!((t==="v4"||!t)&&pP.test(e)||(t==="v6"||!t)&&hP.test(e))}class Or extends We{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==de.string){const i=this._getOrReturnCtx(t);return ie(i,{code:K.invalid_type,expected:de.string,received:i.parsedType}),Me}const r=new pn;let o;for(const i of this._def.checks)if(i.kind==="min")t.data.lengthi.value&&(o=this._getOrReturnCtx(t,o),ie(o,{code:K.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const s=t.data.length>i.value,a=t.data.lengtht.test(o),{validation:n,code:K.invalid_string,...ke.errToObj(r)})}_addCheck(t){return new Or({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ke.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ke.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ke.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ke.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ke.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ke.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ke.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ke.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ke.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ke.errToObj(t)})}datetime(t){var n,r;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:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...ke.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,...ke.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ke.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ke.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ke.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ke.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ke.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ke.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ke.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ke.errToObj(n)})}nonempty(t){return this.min(1,ke.errToObj(t))}trim(){return new Or({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Or({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Or({...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 n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Or({checks:[],typeName:je.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Le(e)})};function xP(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r,i=parseInt(e.toFixed(o).replace(".","")),s=parseInt(t.toFixed(o).replace(".",""));return i%s/Math.pow(10,o)}class wi extends We{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)!==de.number){const i=this._getOrReturnCtx(t);return ie(i,{code:K.invalid_type,expected:de.number,received:i.parsedType}),Me}let r;const o=new pn;for(const i of this._def.checks)i.kind==="int"?Ze.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{code:K.invalid_type,expected:"integer",received:"float",message:i.message}),o.dirty()):i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:K.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="multipleOf"?xP(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),ie(r,{code:K.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{code:K.not_finite,message:i.message}),o.dirty()):Ze.assertNever(i);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ke.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ke.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ke.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ke.toString(n))}setLimit(t,n,r,o){return new wi({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ke.toString(o)}]})}_addCheck(t){return new wi({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ke.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ke.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ke.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ke.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ke.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ke.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ke.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ke.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ke.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuet.kind==="int"||t.kind==="multipleOf"&&Ze.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.valuenew wi({checks:[],typeName:je.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Le(e)});class Ci extends We{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)!==de.bigint){const i=this._getOrReturnCtx(t);return ie(i,{code:K.invalid_type,expected:de.bigint,received:i.parsedType}),Me}let r;const o=new pn;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:K.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:K.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):Ze.assertNever(i);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ke.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ke.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ke.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ke.toString(n))}setLimit(t,n,r,o){return new Ci({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ke.toString(o)}]})}_addCheck(t){return new Ci({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ke.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ke.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ke.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ke.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ke.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Ci({checks:[],typeName:je.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Le(e)})};class dc extends We{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==de.boolean){const r=this._getOrReturnCtx(t);return ie(r,{code:K.invalid_type,expected:de.boolean,received:r.parsedType}),Me}return xn(t.data)}}dc.create=e=>new dc({typeName:je.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Le(e)});class as extends We{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==de.date){const i=this._getOrReturnCtx(t);return ie(i,{code:K.invalid_type,expected:de.date,received:i.parsedType}),Me}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return ie(i,{code:K.invalid_date}),Me}const r=new pn;let o;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()i.value&&(o=this._getOrReturnCtx(t,o),ie(o,{code:K.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):Ze.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new as({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ke.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ke.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew as({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:je.ZodDate,...Le(e)});class of extends We{_parse(t){if(this._getType(t)!==de.symbol){const r=this._getOrReturnCtx(t);return ie(r,{code:K.invalid_type,expected:de.symbol,received:r.parsedType}),Me}return xn(t.data)}}of.create=e=>new of({typeName:je.ZodSymbol,...Le(e)});class fc extends We{_parse(t){if(this._getType(t)!==de.undefined){const r=this._getOrReturnCtx(t);return ie(r,{code:K.invalid_type,expected:de.undefined,received:r.parsedType}),Me}return xn(t.data)}}fc.create=e=>new fc({typeName:je.ZodUndefined,...Le(e)});class pc extends We{_parse(t){if(this._getType(t)!==de.null){const r=this._getOrReturnCtx(t);return ie(r,{code:K.invalid_type,expected:de.null,received:r.parsedType}),Me}return xn(t.data)}}pc.create=e=>new pc({typeName:je.ZodNull,...Le(e)});class xa extends We{constructor(){super(...arguments),this._any=!0}_parse(t){return xn(t.data)}}xa.create=e=>new xa({typeName:je.ZodAny,...Le(e)});class Xi extends We{constructor(){super(...arguments),this._unknown=!0}_parse(t){return xn(t.data)}}Xi.create=e=>new Xi({typeName:je.ZodUnknown,...Le(e)});class $o extends We{_parse(t){const n=this._getOrReturnCtx(t);return ie(n,{code:K.invalid_type,expected:de.never,received:n.parsedType}),Me}}$o.create=e=>new $o({typeName:je.ZodNever,...Le(e)});class sf extends We{_parse(t){if(this._getType(t)!==de.undefined){const r=this._getOrReturnCtx(t);return ie(r,{code:K.invalid_type,expected:de.void,received:r.parsedType}),Me}return xn(t.data)}}sf.create=e=>new sf({typeName:je.ZodVoid,...Le(e)});class Dr extends We{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==de.array)return ie(n,{code:K.invalid_type,expected:de.array,received:n.parsedType}),Me;if(o.exactLength!==null){const s=n.data.length>o.exactLength.value,a=n.data.lengtho.maxLength.value&&(ie(n,{code:K.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((s,a)=>o.type._parseAsync(new po(n,s,n.path,a)))).then(s=>pn.mergeArray(r,s));const i=[...n.data].map((s,a)=>o.type._parseSync(new po(n,s,n.path,a)));return pn.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new Dr({...this._def,minLength:{value:t,message:ke.toString(n)}})}max(t,n){return new Dr({...this._def,maxLength:{value:t,message:ke.toString(n)}})}length(t,n){return new Dr({...this._def,exactLength:{value:t,message:ke.toString(n)}})}nonempty(t){return this.min(1,t)}}Dr.create=(e,t)=>new Dr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:je.ZodArray,...Le(t)});function Ms(e){if(e instanceof kt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=lo.create(Ms(r))}return new kt({...e._def,shape:()=>t})}else return e instanceof Dr?new Dr({...e._def,type:Ms(e.element)}):e instanceof lo?lo.create(Ms(e.unwrap())):e instanceof Ai?Ai.create(Ms(e.unwrap())):e instanceof ho?ho.create(e.items.map(t=>Ms(t))):e}class kt extends We{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(),n=Ze.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==de.object){const c=this._getOrReturnCtx(t);return ie(c,{code:K.invalid_type,expected:de.object,received:c.parsedType}),Me}const{status:r,ctx:o}=this._processInputParams(t),{shape:i,keys:s}=this._getCached(),a=[];if(!(this._def.catchall instanceof $o&&this._def.unknownKeys==="strip"))for(const c in o.data)s.includes(c)||a.push(c);const l=[];for(const c of s){const u=i[c],d=o.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new po(o,d,o.path,c)),alwaysSet:c in o.data})}if(this._def.catchall instanceof $o){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of a)l.push({key:{status:"valid",value:u},value:{status:"valid",value:o.data[u]}});else if(c==="strict")a.length>0&&(ie(o,{code:K.unrecognized_keys,keys:a}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of a){const d=o.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new po(o,d,o.path,u)),alwaysSet:u in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const d=await u.key,p=await u.value;c.push({key:d,value:p,alwaysSet:u.alwaysSet})}return c}).then(c=>pn.mergeObjectSync(r,c)):pn.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return ke.errToObj,new kt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var o,i,s,a;const l=(s=(i=(o=this._def).errorMap)===null||i===void 0?void 0:i.call(o,n,r).message)!==null&&s!==void 0?s:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=ke.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new kt({...this._def,unknownKeys:"strip"})}passthrough(){return new kt({...this._def,unknownKeys:"passthrough"})}extend(t){return new kt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new kt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:je.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new kt({...this._def,catchall:t})}pick(t){const n={};return Ze.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new kt({...this._def,shape:()=>n})}omit(t){const n={};return Ze.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new kt({...this._def,shape:()=>n})}deepPartial(){return Ms(this)}partial(t){const n={};return Ze.objectKeys(this.shape).forEach(r=>{const o=this.shape[r];t&&!t[r]?n[r]=o:n[r]=o.optional()}),new kt({...this._def,shape:()=>n})}required(t){const n={};return Ze.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof lo;)i=i._def.innerType;n[r]=i}}),new kt({...this._def,shape:()=>n})}keyof(){return eA(Ze.objectKeys(this.shape))}}kt.create=(e,t)=>new kt({shape:()=>e,unknownKeys:"strip",catchall:$o.create(),typeName:je.ZodObject,...Le(t)});kt.strictCreate=(e,t)=>new kt({shape:()=>e,unknownKeys:"strict",catchall:$o.create(),typeName:je.ZodObject,...Le(t)});kt.lazycreate=(e,t)=>new kt({shape:e,unknownKeys:"strip",catchall:$o.create(),typeName:je.ZodObject,...Le(t)});class hc extends We{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function o(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const s=i.map(a=>new Kn(a.ctx.common.issues));return ie(n,{code:K.invalid_union,unionErrors:s}),Me}if(n.common.async)return Promise.all(r.map(async i=>{const s={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(o);{let i;const s=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:c}),c.common.issues.length&&s.push(c.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const a=s.map(l=>new Kn(l));return ie(n,{code:K.invalid_union,unionErrors:a}),Me}}get options(){return this._def.options}}hc.create=(e,t)=>new hc({options:e,typeName:je.ZodUnion,...Le(t)});const So=e=>e instanceof vc?So(e.schema):e instanceof Br?So(e.innerType()):e instanceof yc?[e.value]:e instanceof Si?e.options:e instanceof xc?Ze.objectValues(e.enum):e instanceof bc?So(e._def.innerType):e instanceof fc?[void 0]:e instanceof pc?[null]:e instanceof lo?[void 0,...So(e.unwrap())]:e instanceof Ai?[null,...So(e.unwrap())]:e instanceof wv||e instanceof Cc?So(e.unwrap()):e instanceof wc?So(e._def.innerType):[];class Gf extends We{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==de.object)return ie(n,{code:K.invalid_type,expected:de.object,received:n.parsedType}),Me;const r=this.discriminator,o=n.data[r],i=this.optionsMap.get(o);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(ie(n,{code:K.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Me)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const o=new Map;for(const i of n){const s=So(i.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of s){if(o.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);o.set(a,i)}}return new Gf({typeName:je.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...Le(r)})}}function Wg(e,t){const n=ti(e),r=ti(t);if(e===t)return{valid:!0,data:e};if(n===de.object&&r===de.object){const o=Ze.objectKeys(t),i=Ze.objectKeys(e).filter(a=>o.indexOf(a)!==-1),s={...e,...t};for(const a of i){const l=Wg(e[a],t[a]);if(!l.valid)return{valid:!1};s[a]=l.data}return{valid:!0,data:s}}else if(n===de.array&&r===de.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let i=0;i{if(Bg(i)||Bg(s))return Me;const a=Wg(i.value,s.value);return a.valid?((Fg(i)||Fg(s))&&n.dirty(),{status:n.value,value:a.data}):(ie(r,{code:K.invalid_intersection_types}),Me)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,s])=>o(i,s)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}mc.create=(e,t,n)=>new mc({left:e,right:t,typeName:je.ZodIntersection,...Le(n)});class ho extends We{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==de.array)return ie(r,{code:K.invalid_type,expected:de.array,received:r.parsedType}),Me;if(r.data.lengththis._def.items.length&&(ie(r,{code:K.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((s,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new po(r,s,r.path,a)):null}).filter(s=>!!s);return r.common.async?Promise.all(i).then(s=>pn.mergeArray(n,s)):pn.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new ho({...this._def,rest:t})}}ho.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ho({items:e,typeName:je.ZodTuple,rest:null,...Le(t)})};class gc extends We{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==de.object)return ie(r,{code:K.invalid_type,expected:de.object,received:r.parsedType}),Me;const o=[],i=this._def.keyType,s=this._def.valueType;for(const a in r.data)o.push({key:i._parse(new po(r,a,r.path,a)),value:s._parse(new po(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?pn.mergeObjectAsync(n,o):pn.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof We?new gc({keyType:t,valueType:n,typeName:je.ZodRecord,...Le(r)}):new gc({keyType:Or.create(),valueType:t,typeName:je.ZodRecord,...Le(n)})}}class af extends We{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==de.map)return ie(r,{code:K.invalid_type,expected:de.map,received:r.parsedType}),Me;const o=this._def.keyType,i=this._def.valueType,s=[...r.data.entries()].map(([a,l],c)=>({key:o._parse(new po(r,a,r.path,[c,"key"])),value:i._parse(new po(r,l,r.path,[c,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of s){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return Me;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of s){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return Me;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}}}}af.create=(e,t,n)=>new af({valueType:t,keyType:e,typeName:je.ZodMap,...Le(n)});class ls extends We{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==de.set)return ie(r,{code:K.invalid_type,expected:de.set,received:r.parsedType}),Me;const o=this._def;o.minSize!==null&&r.data.sizeo.maxSize.value&&(ie(r,{code:K.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());const i=this._def.valueType;function s(l){const c=new Set;for(const u of l){if(u.status==="aborted")return Me;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const a=[...r.data.values()].map((l,c)=>i._parse(new po(r,l,r.path,c)));return r.common.async?Promise.all(a).then(l=>s(l)):s(a)}min(t,n){return new ls({...this._def,minSize:{value:t,message:ke.toString(n)}})}max(t,n){return new ls({...this._def,maxSize:{value:t,message:ke.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}ls.create=(e,t)=>new ls({valueType:e,minSize:null,maxSize:null,typeName:je.ZodSet,...Le(t)});class ra extends We{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==de.function)return ie(n,{code:K.invalid_type,expected:de.function,received:n.parsedType}),Me;function r(a,l){return nf({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,tf(),ya].filter(c=>!!c),issueData:{code:K.invalid_arguments,argumentsError:l}})}function o(a,l){return nf({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,tf(),ya].filter(c=>!!c),issueData:{code:K.invalid_return_type,returnTypeError:l}})}const i={errorMap:n.common.contextualErrorMap},s=n.data;if(this._def.returns instanceof ba){const a=this;return xn(async function(...l){const c=new Kn([]),u=await a._def.args.parseAsync(l,i).catch(h=>{throw c.addIssue(r(l,h)),c}),d=await Reflect.apply(s,this,u);return await a._def.returns._def.type.parseAsync(d,i).catch(h=>{throw c.addIssue(o(d,h)),c})})}else{const a=this;return xn(function(...l){const c=a._def.args.safeParse(l,i);if(!c.success)throw new Kn([r(l,c.error)]);const u=Reflect.apply(s,this,c.data),d=a._def.returns.safeParse(u,i);if(!d.success)throw new Kn([o(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new ra({...this._def,args:ho.create(t).rest(Xi.create())})}returns(t){return new ra({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new ra({args:t||ho.create([]).rest(Xi.create()),returns:n||Xi.create(),typeName:je.ZodFunction,...Le(r)})}}class vc extends We{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}vc.create=(e,t)=>new vc({getter:e,typeName:je.ZodLazy,...Le(t)});class yc extends We{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ie(n,{received:n.data,code:K.invalid_literal,expected:this._def.value}),Me}return{status:"valid",value:t.data}}get value(){return this._def.value}}yc.create=(e,t)=>new yc({value:e,typeName:je.ZodLiteral,...Le(t)});function eA(e,t){return new Si({values:e,typeName:je.ZodEnum,...Le(t)})}class Si extends We{constructor(){super(...arguments),xl.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return ie(n,{expected:Ze.joinValues(r),received:n.parsedType,code:K.invalid_type}),Me}if(rf(this,xl)||ZS(this,xl,new Set(this._def.values)),!rf(this,xl).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return ie(n,{received:n.data,code:K.invalid_enum_value,options:r}),Me}return xn(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Si.create(t,{...this._def,...n})}exclude(t,n=this._def){return Si.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}xl=new WeakMap;Si.create=eA;class xc extends We{constructor(){super(...arguments),bl.set(this,void 0)}_parse(t){const n=Ze.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==de.string&&r.parsedType!==de.number){const o=Ze.objectValues(n);return ie(r,{expected:Ze.joinValues(o),received:r.parsedType,code:K.invalid_type}),Me}if(rf(this,bl)||ZS(this,bl,new Set(Ze.getValidEnumValues(this._def.values))),!rf(this,bl).has(t.data)){const o=Ze.objectValues(n);return ie(r,{received:r.data,code:K.invalid_enum_value,options:o}),Me}return xn(t.data)}get enum(){return this._def.values}}bl=new WeakMap;xc.create=(e,t)=>new xc({values:e,typeName:je.ZodNativeEnum,...Le(t)});class ba extends We{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==de.promise&&n.common.async===!1)return ie(n,{code:K.invalid_type,expected:de.promise,received:n.parsedType}),Me;const r=n.parsedType===de.promise?n.data:Promise.resolve(n.data);return xn(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}}ba.create=(e,t)=>new ba({type:e,typeName:je.ZodPromise,...Le(t)});class Br extends We{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===je.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),o=this._def.effect||null,i={addIssue:s=>{ie(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),o.type==="preprocess"){const s=o.transform(r.data,i);if(r.common.async)return Promise.resolve(s).then(async a=>{if(n.value==="aborted")return Me;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?Me:l.status==="dirty"||n.value==="dirty"?Qs(l.value):l});{if(n.value==="aborted")return Me;const a=this._def.schema._parseSync({data:s,path:r.path,parent:r});return a.status==="aborted"?Me:a.status==="dirty"||n.value==="dirty"?Qs(a.value):a}}if(o.type==="refinement"){const s=a=>{const l=o.refinement(a,i);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?Me:(a.status==="dirty"&&n.dirty(),s(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?Me:(a.status==="dirty"&&n.dirty(),s(a.value).then(()=>({status:n.value,value:a.value}))))}if(o.type==="transform")if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!cc(s))return s;const a=o.transform(s.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>cc(s)?Promise.resolve(o.transform(s.value,i)).then(a=>({status:n.value,value:a})):s);Ze.assertNever(o)}}Br.create=(e,t,n)=>new Br({schema:e,typeName:je.ZodEffects,effect:t,...Le(n)});Br.createWithPreprocess=(e,t,n)=>new Br({schema:t,effect:{type:"preprocess",transform:e},typeName:je.ZodEffects,...Le(n)});class lo extends We{_parse(t){return this._getType(t)===de.undefined?xn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}lo.create=(e,t)=>new lo({innerType:e,typeName:je.ZodOptional,...Le(t)});class Ai extends We{_parse(t){return this._getType(t)===de.null?xn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ai.create=(e,t)=>new Ai({innerType:e,typeName:je.ZodNullable,...Le(t)});class bc extends We{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===de.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}bc.create=(e,t)=>new bc({innerType:e,typeName:je.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Le(t)});class wc extends We{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return uc(o)?o.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Kn(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Kn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}wc.create=(e,t)=>new wc({innerType:e,typeName:je.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Le(t)});class lf extends We{_parse(t){if(this._getType(t)!==de.nan){const r=this._getOrReturnCtx(t);return ie(r,{code:K.invalid_type,expected:de.nan,received:r.parsedType}),Me}return{status:"valid",value:t.data}}}lf.create=e=>new lf({typeName:je.ZodNaN,...Le(e)});const bP=Symbol("zod_brand");class wv extends We{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Xc extends We{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?Me:i.status==="dirty"?(n.dirty(),Qs(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?Me:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,n){return new Xc({in:t,out:n,typeName:je.ZodPipeline})}}class Cc extends We{_parse(t){const n=this._def.innerType._parse(t),r=o=>(cc(o)&&(o.value=Object.freeze(o.value)),o);return uc(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}}Cc.create=(e,t)=>new Cc({innerType:e,typeName:je.ZodReadonly,...Le(t)});function tA(e,t={},n){return e?xa.create().superRefine((r,o)=>{var i,s;if(!e(r)){const a=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,l=(s=(i=a.fatal)!==null&&i!==void 0?i:n)!==null&&s!==void 0?s:!0,c=typeof a=="string"?{message:a}:a;o.addIssue({code:"custom",...c,fatal:l})}}):xa.create()}const wP={object:kt.lazycreate};var je;(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"})(je||(je={}));const CP=(e,t={message:`Input not instance of ${e.name}`})=>tA(n=>n instanceof e,t),nA=Or.create,rA=wi.create,SP=lf.create,AP=Ci.create,oA=dc.create,kP=as.create,RP=of.create,TP=fc.create,EP=pc.create,PP=xa.create,IP=Xi.create,_P=$o.create,jP=sf.create,MP=Dr.create,OP=kt.create,$P=kt.strictCreate,NP=hc.create,LP=Gf.create,DP=mc.create,zP=ho.create,BP=gc.create,FP=af.create,WP=ls.create,VP=ra.create,UP=vc.create,HP=yc.create,GP=Si.create,qP=xc.create,QP=ba.create,jx=Br.create,KP=lo.create,ZP=Ai.create,YP=Br.createWithPreprocess,XP=Xc.create,JP=()=>nA().optional(),e3=()=>rA().optional(),t3=()=>oA().optional(),n3={string:e=>Or.create({...e,coerce:!0}),number:e=>wi.create({...e,coerce:!0}),boolean:e=>dc.create({...e,coerce:!0}),bigint:e=>Ci.create({...e,coerce:!0}),date:e=>as.create({...e,coerce:!0})},r3=Me;var I=Object.freeze({__proto__:null,defaultErrorMap:ya,setErrorMap:rP,getErrorMap:tf,makeIssue:nf,EMPTY_PATH:oP,addIssueToContext:ie,ParseStatus:pn,INVALID:Me,DIRTY:Qs,OK:xn,isAborted:Bg,isDirty:Fg,isValid:cc,isAsync:uc,get util(){return Ze},get objectUtil(){return zg},ZodParsedType:de,getParsedType:ti,ZodType:We,datetimeRegex:JS,ZodString:Or,ZodNumber:wi,ZodBigInt:Ci,ZodBoolean:dc,ZodDate:as,ZodSymbol:of,ZodUndefined:fc,ZodNull:pc,ZodAny:xa,ZodUnknown:Xi,ZodNever:$o,ZodVoid:sf,ZodArray:Dr,ZodObject:kt,ZodUnion:hc,ZodDiscriminatedUnion:Gf,ZodIntersection:mc,ZodTuple:ho,ZodRecord:gc,ZodMap:af,ZodSet:ls,ZodFunction:ra,ZodLazy:vc,ZodLiteral:yc,ZodEnum:Si,ZodNativeEnum:xc,ZodPromise:ba,ZodEffects:Br,ZodTransformer:Br,ZodOptional:lo,ZodNullable:Ai,ZodDefault:bc,ZodCatch:wc,ZodNaN:lf,BRAND:bP,ZodBranded:wv,ZodPipeline:Xc,ZodReadonly:Cc,custom:tA,Schema:We,ZodSchema:We,late:wP,get ZodFirstPartyTypeKind(){return je},coerce:n3,any:PP,array:MP,bigint:AP,boolean:oA,date:kP,discriminatedUnion:LP,effect:jx,enum:GP,function:VP,instanceof:CP,intersection:DP,lazy:UP,literal:HP,map:FP,nan:SP,nativeEnum:qP,never:_P,null:EP,nullable:ZP,number:rA,object:OP,oboolean:t3,onumber:e3,optional:KP,ostring:JP,pipeline:XP,preprocess:YP,promise:QP,record:BP,set:WP,strictObject:$P,string:nA,symbol:RP,transformer:jx,tuple:zP,undefined:TP,union:NP,unknown:IP,void:jP,NEVER:r3,ZodIssueCode:K,quotelessJson:nP,ZodError:Kn});const Kr=/^(\d*\|\d*\|\d*\|\d*\|\d*)$/,Ji=/\b([1-9]|0[1-9]|1[012])\/([1-9]|0[1-9]|1[0-9]|2[0-9]|3[01])\/20\d\d\b/,o3=I.object({FundType:I.union([I.literal(1),I.literal(2)]),PooledFundId:I.number().int().nonnegative(),AllocationtypeId:I.number().int().nonnegative(),ChfId:I.number().int().nonnegative(),ChfProjectCode:I.string(),OrgId:I.number().int().nonnegative(),PrjDuration:I.string(),EndDate:I.string().regex(Ji,"Invalid date format"),Budget:I.number().nonnegative(),BenM:I.number().int().nonnegative(),BenW:I.number().int().nonnegative(),BenB:I.number().int().nonnegative(),BenG:I.number().int().nonnegative(),GMId:I.union([I.number(),I.string()]).nullable(),GAMId:I.number().nullable(),GlbPrjStatusId:I.number().int().nonnegative(),GlobalUniqueOrgId:I.number().int().nonnegative(),DisabilityMarkerId:I.number().int().nonnegative().nullable(),GenderEqualityMarkerId:I.number().int().nonnegative().nullable(),GBVMarkerId:I.number().int().nonnegative().nullable(),GAMRefNumber:I.string().nullable(),PartnerProjectRisk:I.string().nullable(),PartnerRisk:I.string().nullable(),DisabledM:I.number().int().nonnegative().nullable(),DisabledW:I.number().int().nonnegative().nullable(),DisabledB:I.number().int().nonnegative().nullable(),DisabledG:I.number().int().nonnegative().nullable(),AchM:I.number().int().nonnegative().nullable(),AchW:I.number().int().nonnegative().nullable(),AchB:I.number().int().nonnegative().nullable(),AchG:I.number().int().nonnegative().nullable(),BenMSplit:I.string().regex(Kr,"Invalid split string format").nullable(),BenWSplit:I.string().regex(Kr,"Invalid split string format").nullable(),BenBSplit:I.string().regex(Kr,"Invalid split string format").nullable(),BenGSplit:I.string().regex(Kr,"Invalid split string format").nullable(),BenTotSplit:I.string().regex(Kr,"Invalid split string format").nullable(),AchMSplit:I.string().regex(Kr,"Invalid split string format").nullable(),AchWSplit:I.string().regex(Kr,"Invalid split string format").nullable(),AchBSplit:I.string().regex(Kr,"Invalid split string format").nullable(),AchGSplit:I.string().regex(Kr,"Invalid split string format").nullable(),AchTotSplit:I.string().regex(Kr,"Invalid split string format").nullable(),AchDisabledM:I.number().int().nonnegative().nullable(),AchDisabledW:I.number().int().nonnegative().nullable(),AchDisabledB:I.number().int().nonnegative().nullable(),AchDisabledG:I.number().int().nonnegative().nullable(),GBVBudget:I.number().nonnegative().nullable(),AchGBVBudget:I.number().nonnegative().nullable(),GBVPeopleTgt:I.number().int().nonnegative().nullable(),AchGBVPeople:I.number().int().nonnegative().nullable(),GendEqBudget:I.number().nonnegative().nullable(),AchGendEqBudget:I.number().nonnegative().nullable(),GendEqPeopleTgt:I.number().int().nonnegative().nullable(),AchGendEqPeople:I.number().int().nonnegative().nullable(),ProtBudget:I.number().nonnegative().nullable(),AchProtBudget:I.number().nonnegative().nullable(),ProtPeopleTgt:I.number().int().nonnegative().nullable(),AchProtPeople:I.number().int().nonnegative().nullable(),RptCode:I.union([I.literal(1),I.literal(2)]).nullable()}),i3=I.object({PooledFundName:I.string(),PooledFundId:I.number().int().nonnegative(),AllocationTypeId:I.number().int().nonnegative(),ChfId:I.number().int().nonnegative(),ChfProjectCode:I.string(),CountryClusterId:I.number().int().nonnegative(),GlobalClusterId:I.number().int().nonnegative(),Percentage:I.number().nonnegative(),CALCBudgetByCluster:I.number().nonnegative(),TargetMen:I.number().int().nonnegative().nullable(),TargetWomen:I.number().int().nonnegative().nullable(),TargetBoys:I.number().int().nonnegative().nullable(),TargetGirls:I.number().int().nonnegative().nullable(),ActualMen:I.number().int().nonnegative().nullable(),ActualWomen:I.number().int().nonnegative().nullable(),ActualBoys:I.number().int().nonnegative().nullable(),ActualGirls:I.number().int().nonnegative().nullable(),GlobalInstanceStatusId:I.number().int().nonnegative().nullable(),SubmissionDate:I.string().regex(Ji,"Invalid date format").nullable()}),s3=I.object({AllocationTitle:I.string(),AllocationSummary:I.string().nullable(),AllocationSource:I.string(),AllocationSourceId:I.number().int().nonnegative(),TotalUSDPlanned:I.number().nonnegative().nullable(),PlannedStartDate:I.string().regex(Ji,"Invalid date format").nullable(),PlannedEndDate:I.string().regex(Ji,"Invalid date format").nullable(),Documents:I.string().nullable(),PooledFundId:I.number().int().nonnegative(),PooledFundName:I.string(),AllocationYear:I.number().int().nonnegative(),HRPPlans:I.string().nullable(),AllocationHCLastProjectApprovalDate:I.string().regex(Ji,"Invalid date format").nullable(),TotalProjectsunderApproval:I.number().int().nonnegative(),TotalUnderApprovalBudget:I.number().nonnegative(),TotalProjectsApproved:I.number().int().nonnegative(),TotalApprovedBudget:I.number().nonnegative(),AllocationTypeId:I.number().int().nonnegative(),FundTypeId:I.union([I.literal(1),I.literal(2)])}),a3=I.object({PooledFundId:I.number().int().nonnegative(),FundTypeId:I.union([I.literal(1),I.literal(2)]),OrganizationId:I.number().int().nonnegative(),PooledFundName:I.string(),OrganizationName:I.string(),OrganizationAcronym:I.string(),OrganizationTypeId:I.union([I.literal(1),I.literal(2),I.literal(3),I.literal(4)]),OrganizationTypeName:I.string(),AlternateName:I.string().nullable(),DueDiligenceStatus:I.string().nullable(),IsEligible:I.string().nullable(),EligibleSince:I.string().regex(Ji,"Invalid date format").nullable(),FirstAllocationDate:I.string().regex(Ji,"Invalid date format").nullable(),GlobalOrgId:I.number().int().nonnegative().nullable(),GlobalUniqueId:I.number().int().nonnegative(),LocalizationMarker:I.string().nullable(),OrgIsWLO:I.string().nullable(),OrgIsWRO:I.string().nullable(),OrgIsOPD:I.string().nullable(),OrgIsYLO:I.string().nullable(),UNPPId:I.union([I.number(),I.string()]).nullable()}),l3=I.object({GlobalInstanceStatusId:I.number().int().nonnegative(),StatusName:I.string(),StatusCode:I.string(),AllocSrc:I.union([I.literal(1),I.literal(2)]),InstanceTypeId:I.number().int().nonnegative(),PooledFundId:I.number().int().nonnegative()}),c3=I.object({BeneficiaryTypeId:I.number().int().nonnegative(),BeneficiaryType:I.string()}),u3=I.object({PFId:I.number().int().nonnegative(),PFName:I.string(),PFAbbrv:I.string(),PFLat:I.number(),PFLong:I.number(),PFCountryCode:I.string().length(2),MAAgent:I.string(),AAgent:I.string(),IsPublic:I.string()}),d3=I.object({AllSrcId:I.number().int().nonnegative(),AllNm:I.string(),AllSrcCode:I.string().length(1)}),f3=I.object({OrgTypeId:I.union([I.literal(1),I.literal(2),I.literal(3),I.literal(4)]),OrgTypeNm:I.string(),OrgTypeCode:I.string()}),p3=I.object({ClustId:I.number().int().nonnegative(),ClustNm:I.string(),ClustCode:I.string()});I.object({FundTypeId:I.union([I.literal(1),I.literal(2)]),PooledFundId:I.number().int().nonnegative(),CHFId:I.number().int().nonnegative(),CHFProjectCode:I.string(),ClstrId:I.number().int().nonnegative().nullable(),GlbClstrId:I.number().int().nonnegative(),GlbIndicId:I.number().int().nonnegative(),CommClstrId:I.number().int().nonnegative().nullable(),GlbIndicType:I.union([I.literal(1),I.literal(2)]).nullable(),TgtM:I.number().nonnegative().nullable(),TgtW:I.number().nonnegative().nullable(),TgtB:I.number().nonnegative().nullable(),TgtG:I.number().nonnegative().nullable(),TgtTotal:I.number().nonnegative(),AchM:I.number().nonnegative().nullable(),AchW:I.number().nonnegative().nullable(),AchB:I.number().nonnegative().nullable(),AchG:I.number().nonnegative().nullable(),AchTotal:I.number().nonnegative().nullable()});const h3=I.object({Id:I.number().int().nonnegative(),Name:I.string(),HasM:I.union([I.literal(0),I.literal(1)]),HasW:I.union([I.literal(0),I.literal(1)]),HasB:I.union([I.literal(0),I.literal(1)]),HasG:I.union([I.literal(0),I.literal(1)]),UnitNm:I.string(),UnitAb:I.string(),CommClstrId:I.number().int().nonnegative().nullable(),Active:I.number().int().nonnegative().nullable(),Code:I.string(),TypeId:I.number().int().nonnegative().nullable()});function Tr(e,t,n){console.warn(`File: ${e} +`)}function c(d){return d.map(u).join(e)}function u(d){return d==null?"":d instanceof Date?zP(d):t.test(d+="")?'"'+d.replace(/"/g,'""')+'"':d}return{parse:r,parseRows:o,format:s,formatBody:a,formatRows:l,formatRow:c,formatValue:u}}var cA=BP(","),uA=cA.parse,dA=cA.format;function Bg(e){for(var t in e){var n=e[t].trim(),r,o;if(!n)n=null;else if(n==="true")n=!0;else if(n==="false")n=!1;else if(n==="NaN")n=NaN;else if(!isNaN(r=+n))n=r;else if(o=n.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/))FP&&o[4]&&!o[7]&&(n=n.replace(/-/g,"/").replace(/T/," ")),n=new Date(n);else continue;e[t]=n}return e}const FP=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function WP(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.text()}function VP(e,t){return fetch(e,t).then(WP)}function UP(e){return function(t,n,r){return arguments.length===2&&typeof n=="function"&&(r=n,n=void 0),VP(t,n).then(function(o){return e(o,r)})}}var fA=UP(uA);function HP(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function rf(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ba(e){return e=rf(Math.abs(e)),e?e[1]:NaN}function GP(e,t){return function(n,r){for(var o=n.length,i=[],s=0,a=e[0],l=0;o>0&&a>0&&(l+a+1>r&&(a=Math.max(1,r-l)),i.push(n.substring(o-=a,o+a)),!((l+=a+1)>r));)a=e[s=(s+1)%e.length];return i.reverse().join(t)}}function qP(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var QP=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function of(e){if(!(t=QP.exec(e)))throw new Error("invalid format: "+e);var t;return new Tv({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}of.prototype=Tv.prototype;function Tv(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Tv.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function KP(e){e:for(var t=e.length,n=1,r=-1,o;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var pA;function ZP(e,t){var n=rf(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(pA=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,s=r.length;return i===s?r:i>s?r+new Array(i-s+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+rf(e,Math.max(0,t+i-1))[0]}function Tx(e,t){var n=rf(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const Px={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:HP,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Tx(e*100,t),r:Tx,s:ZP,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Ix(e){return e}var _x=Array.prototype.map,jx=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function YP(e){var t=e.grouping===void 0||e.thousands===void 0?Ix:GP(_x.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?Ix:qP(_x.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",a=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=of(d);var p=d.fill,h=d.align,v=d.sign,m=d.symbol,w=d.zero,g=d.width,y=d.comma,x=d.precision,S=d.trim,C=d.type;C==="n"?(y=!0,C="g"):Px[C]||(x===void 0&&(x=12),S=!0,C="g"),(w||p==="0"&&h==="=")&&(w=!0,p="0",h="=");var E=m==="$"?n:m==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():"",k=m==="$"?r:/[%p]/.test(C)?s:"",P=Px[C],_=/[defgprs%]/.test(C);x=x===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function R(T){var M=E,$=k,O,z,N;if(C==="c")$=P(T)+$,T="";else{T=+T;var D=T<0||1/T<0;if(T=isNaN(T)?l:P(Math.abs(T),x),S&&(T=KP(T)),D&&+T==0&&v!=="+"&&(D=!1),M=(D?v==="("?v:a:v==="-"||v==="("?"":v)+M,$=(C==="s"?jx[8+pA/3]:"")+$+(D&&v==="("?")":""),_){for(O=-1,z=T.length;++ON||N>57){$=(N===46?o+T.slice(O+1):T.slice(O))+$,T=T.slice(0,O);break}}}y&&!w&&(T=t(T,1/0));var j=M.length+T.length+$.length,L=j>1)+M+T+$+L.slice(j);break;default:T=L+M+T+$;break}return i(T)}return R.toString=function(){return d+""},R}function u(d,p){var h=c((d=of(d),d.type="f",d)),v=Math.max(-8,Math.min(8,Math.floor(ba(p)/3)))*3,m=Math.pow(10,-v),w=jx[8+v/3];return function(g){return h(m*g)+w}}return{format:c,formatPrefix:u}}var Du,xn,Pv;XP({thousands:",",grouping:[3],currency:["$",""]});function XP(e){return Du=YP(e),xn=Du.format,Pv=Du.formatPrefix,Du}function JP(e){return Math.max(0,-ba(Math.abs(e)))}function e5(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ba(t)/3)))*3-ba(Math.abs(e)))}function t5(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ba(t)-ba(e))+1}function n5(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function r5(e){return function(){return e}}function o5(e){return+e}var Mx=[0,1];function Zs(e){return e}function Fg(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:r5(isNaN(t)?NaN:.5)}function i5(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function s5(e,t,n){var r=e[0],o=e[1],i=t[0],s=t[1];return o2?a5:s5,l=c=null,d}function d(p){return p==null||isNaN(p=+p)?i:(l||(l=a(e.map(r),t,n)))(r(s(p)))}return d.invert=function(p){return s(o((c||(c=a(t,e.map(r),nf)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,o5),u()):e.slice()},d.range=function(p){return arguments.length?(t=Array.from(p),u()):t.slice()},d.rangeRound=function(p){return t=Array.from(p),n=OP,u()},d.clamp=function(p){return arguments.length?(s=p?!0:Zs,u()):s!==Zs},d.interpolate=function(p){return arguments.length?(n=p,u()):n},d.unknown=function(p){return arguments.length?(i=p,d):i},function(p,h){return r=p,o=h,u()}}function u5(){return c5()(Zs,Zs)}function d5(e,t,n,r){var o=uP(e,t,n),i;switch(r=of(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=e5(o,s))&&(r.precision=i),Pv(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=t5(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=JP(o))&&(r.precision=i-(r.type==="%")*2);break}}return xn(r)}function f5(e){var t=e.domain;return e.ticks=function(n){var r=t();return cP(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return d5(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,i=r.length-1,s=r[o],a=r[i],l,c,u=10;for(a0;){if(c=$g(s,a,n),c===l)return r[o]=s,r[i]=a,t(r);if(c>0)s=Math.floor(s/c)*c,a=Math.ceil(a/c)*c;else if(c<0)s=Math.ceil(s*c)/c,a=Math.floor(a*c)/c;else break;l=c}return e},e}function Jc(){var e=u5();return e.copy=function(){return l5(e,Jc())},n5.apply(e,arguments),f5(e)}function Di(e){return function(){return e}}const p5=Math.PI,Qh=2*p5;function h5(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function m5(e,t){return te?1:t>=e?0:NaN}function g5(e){return e}function v5(){var e=g5,t=m5,n=null,r=Di(0),o=Di(Qh),i=Di(0);function s(a){var l,c=(a=h5(a)).length,u,d,p=0,h=new Array(c),v=new Array(c),m=+r.apply(this,arguments),w=Math.min(Qh,Math.max(-Qh,o.apply(this,arguments)-m)),g,y=Math.min(Math.abs(w)/c,i.apply(this,arguments)),x=y*(w<0?-1:1),S;for(l=0;l0&&(p+=S);for(t!=null?h.sort(function(C,E){return t(v[C],v[E])}):n!=null&&h.sort(function(C,E){return n(a[C],a[E])}),l=0,d=p?(w-c*x)/p:0;l0?S*d:0)+x,v[u]={data:a[u],index:l,value:S,startAngle:m,endAngle:g,padAngle:y};return v}return s.value=function(a){return arguments.length?(e=typeof a=="function"?a:Di(+a),s):e},s.sortValues=function(a){return arguments.length?(t=a,n=null,s):t},s.sort=function(a){return arguments.length?(n=a,t=null,s):n},s.startAngle=function(a){return arguments.length?(r=typeof a=="function"?a:Di(+a),s):r},s.endAngle=function(a){return arguments.length?(o=typeof a=="function"?a:Di(+a),s):o},s.padAngle=function(a){return arguments.length?(i=typeof a=="function"?a:Di(+a),s):i},s}function bl(e,t,n){this.k=e,this.x=t,this.y=n}bl.prototype={constructor:bl,scale:function(e){return e===1?this:new bl(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new bl(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};bl.prototype;const y5=60*60*1e3,Ox=new Date,$x="background-color: #0d6cb6; color: white; padding: 2px;";function Co(e,t,n){const r=localStorage.getItem(e);if(r&&JSON.parse(r).timeStamp>Ox.getTime()-y5){const o=uA(JSON.parse(r).data,Bg);return console.info(`%cInfo: data file ${e} retrieved from localStorage`,$x),Promise.resolve(o)}else return fA(t,Bg).then(i=>{try{localStorage.setItem(e,JSON.stringify({data:n==="csv"?dA(i):i,timeStamp:Ox.getTime()}))}catch(s){console.warn(`Error saving the file ${e} in localStorage. Error: ${s}.`)}return console.info(`%cInfo: data file ${e} obtained from API call`,$x),i})}const Wg=(e,t)=>t.some(n=>e instanceof n);let Lx,Nx;function x5(){return Lx||(Lx=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function b5(){return Nx||(Nx=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Vg=new WeakMap,Kh=new WeakMap,Yf=new WeakMap;function w5(e){const t=new Promise((n,r)=>{const o=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{n(ts(e.result)),o()},s=()=>{r(e.error),o()};e.addEventListener("success",i),e.addEventListener("error",s)});return Yf.set(t,e),t}function S5(e){if(Vg.has(e))return;const t=new Promise((n,r)=>{const o=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",s),e.removeEventListener("abort",s)},i=()=>{n(),o()},s=()=>{r(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",i),e.addEventListener("error",s),e.addEventListener("abort",s)});Vg.set(e,t)}let Ug={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return Vg.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return ts(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function hA(e){Ug=e(Ug)}function C5(e){return b5().includes(e)?function(...t){return e.apply(Hg(this),t),ts(this.request)}:function(...t){return ts(e.apply(Hg(this),t))}}function A5(e){return typeof e=="function"?C5(e):(e instanceof IDBTransaction&&S5(e),Wg(e,x5())?new Proxy(e,Ug):e)}function ts(e){if(e instanceof IDBRequest)return w5(e);if(Kh.has(e))return Kh.get(e);const t=A5(e);return t!==e&&(Kh.set(e,t),Yf.set(t,e)),t}const Hg=e=>Yf.get(e);function k5(e,t,{blocked:n,upgrade:r,blocking:o,terminated:i}={}){const s=indexedDB.open(e,t),a=ts(s);return r&&s.addEventListener("upgradeneeded",l=>{r(ts(s.result),l.oldVersion,l.newVersion,ts(s.transaction),l)}),n&&s.addEventListener("blocked",l=>n(l.oldVersion,l.newVersion,l)),a.then(l=>{i&&l.addEventListener("close",()=>i()),o&&l.addEventListener("versionchange",c=>o(c.oldVersion,c.newVersion,c))}).catch(()=>{}),a}const R5=["get","getKey","getAll","getAllKeys","count"],E5=["put","add","delete","clear"],Zh=new Map;function Dx(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Zh.get(t))return Zh.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,o=E5.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(o||R5.includes(n)))return;const i=async function(s,...a){const l=this.transaction(s,o?"readwrite":"readonly");let c=l.store;return r&&(c=c.index(a.shift())),(await Promise.all([c[n](...a),o&&l.done]))[0]};return Zh.set(t,i),i}hA(e=>({...e,get:(t,n,r)=>Dx(t,n)||e.get(t,n,r),has:(t,n)=>!!Dx(t,n)||e.has(t,n)}));const T5=["continue","continuePrimaryKey","advance"],zx={},Gg=new WeakMap,mA=new WeakMap,P5={get(e,t){if(!T5.includes(t))return e[t];let n=zx[t];return n||(n=zx[t]=function(...r){Gg.set(this,mA.get(this)[t](...r))}),n}};async function*I5(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;const n=new Proxy(t,P5);for(mA.set(n,t),Yf.set(n,Hg(t));t;)yield n,t=await(Gg.get(n)||t.continue()),Gg.delete(n)}function Bx(e,t){return t===Symbol.asyncIterator&&Wg(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&Wg(e,[IDBIndex,IDBObjectStore])}hA(e=>({...e,get(t,n,r){return Bx(t,n)?I5:e.get(t,n,r)},has(t,n){return Bx(t,n)||e.has(t,n)}}));const _5=60*60*1e3,Fx=new Date,Wx="background-color: #0d6cb6; color: white; padding: 2px;",j5=k5("localDatabase",1,{upgrade(e){e.createObjectStore("files")}});async function Yh(e,t,n){const r=await j5,s=await r.transaction("files","readwrite").objectStore("files").get(e);if(s&&s.timeStamp>Fx.getTime()-_5){const a=s.data;return console.info(`%cInfo: data file ${e} retrieved from indexedDB`,Wx),Promise.resolve(a)}else return fA(t,Bg).then(l=>{try{r.transaction("files","readwrite").objectStore("files").put({data:l,timeStamp:Fx.getTime()},e)}catch(c){console.warn(`Error saving the file ${e} in indexedDB. Error: ${c}.`)}return console.info(`%cInfo: data file ${e} obtained from API call`,Wx),l})}var Ze;(function(e){e.assertEqual=o=>o;function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{const i={};for(const s of o)i[s]=s;return i},e.getValidEnumValues=o=>{const i=e.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),s={};for(const a of i)s[a]=o[a];return e.objectValues(s)},e.objectValues=o=>e.objectKeys(o).map(function(i){return o[i]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const i=[];for(const s in o)Object.prototype.hasOwnProperty.call(o,s)&&i.push(s);return i},e.find=(o,i)=>{for(const s of o)if(i(s))return s},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&isFinite(o)&&Math.floor(o)===o;function r(o,i=" | "){return o.map(s=>typeof s=="string"?`'${s}'`:s).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(o,i)=>typeof i=="bigint"?i.toString():i})(Ze||(Ze={}));var qg;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(qg||(qg={}));const de=Ze.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ii=e=>{switch(typeof e){case"undefined":return de.undefined;case"string":return de.string;case"number":return isNaN(e)?de.nan:de.number;case"boolean":return de.boolean;case"function":return de.function;case"bigint":return de.bigint;case"symbol":return de.symbol;case"object":return Array.isArray(e)?de.array:e===null?de.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?de.promise:typeof Map<"u"&&e instanceof Map?de.map:typeof Set<"u"&&e instanceof Set?de.set:typeof Date<"u"&&e instanceof Date?de.date:de.object;default:return de.unknown}},K=Ze.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"]),M5=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Xn extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(i){return i.message},r={_errors:[]},o=i=>{for(const s of i.issues)if(s.code==="invalid_union")s.unionErrors.map(o);else if(s.code==="invalid_return_type")o(s.returnTypeError);else if(s.code==="invalid_arguments")o(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let a=r,l=0;for(;ln.message){const n={},r=[];for(const o of this.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Xn.create=e=>new Xn(e);const wa=(e,t)=>{let n;switch(e.code){case K.invalid_type:e.received===de.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case K.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Ze.jsonStringifyReplacer)}`;break;case K.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ze.joinValues(e.keys,", ")}`;break;case K.invalid_union:n="Invalid input";break;case K.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ze.joinValues(e.options)}`;break;case K.invalid_enum_value:n=`Invalid enum value. Expected ${Ze.joinValues(e.options)}, received '${e.received}'`;break;case K.invalid_arguments:n="Invalid function arguments";break;case K.invalid_return_type:n="Invalid function return type";break;case K.invalid_date:n="Invalid date";break;case K.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Ze.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case K.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case K.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case K.custom:n="Invalid input";break;case K.invalid_intersection_types:n="Intersection results could not be merged";break;case K.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case K.not_finite:n="Number must be finite";break;default:n=t.defaultError,Ze.assertNever(e)}return{message:n}};let gA=wa;function O5(e){gA=e}function sf(){return gA}const af=e=>{const{data:t,path:n,errorMaps:r,issueData:o}=e,i=[...n,...o.path||[]],s={...o,path:i};if(o.message!==void 0)return{...o,path:i,message:o.message};let a="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)a=c(s,{data:t,defaultError:a}).message;return{...o,path:i,message:a}},$5=[];function ie(e,t){const n=sf(),r=af({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===wa?void 0:wa].filter(o=>!!o)});e.common.issues.push(r)}class pn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const o of n){if(o.status==="aborted")return Me;o.status==="dirty"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const o of n){const i=await o.key,s=await o.value;r.push({key:i,value:s})}return pn.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const o of n){const{key:i,value:s}=o;if(i.status==="aborted"||s.status==="aborted")return Me;i.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof s.value<"u"||o.alwaysSet)&&(r[i.value]=s.value)}return{status:t.value,value:r}}}const Me=Object.freeze({status:"aborted"}),Ys=e=>({status:"dirty",value:e}),bn=e=>({status:"valid",value:e}),Qg=e=>e.status==="aborted",Kg=e=>e.status==="dirty",dc=e=>e.status==="valid",fc=e=>typeof Promise<"u"&&e instanceof Promise;function lf(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function vA(e,t,n,r,o){if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var ke;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ke||(ke={}));var wl,Sl;class go{constructor(t,n,r,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=o}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 Vx=(e,t)=>{if(dc(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 n=new Xn(e.common.issues);return this._error=n,this._error}}};function Ne(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(s,a)=>{var l,c;const{message:u}=e;return s.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:(l=u??r)!==null&&l!==void 0?l:a.defaultError}:s.code!=="invalid_type"?{message:a.defaultError}:{message:(c=u??n)!==null&&c!==void 0?c:a.defaultError}},description:o}}class We{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 ii(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:ii(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new pn,ctx:{common:t.parent.common,data:t.data,parsedType:ii(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(fc(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const o={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ii(t)},i=this._parseSync({data:t,path:o.path,parent:o});return Vx(o,i)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ii(t)},o=this._parse({data:t,path:r.path,parent:r}),i=await(fc(o)?o:Promise.resolve(o));return Vx(r,i)}refine(t,n){const r=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,i)=>{const s=t(o),a=()=>i.addIssue({code:K.custom,...r(o)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(a(),!1)):s?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof n=="function"?n(r,o):n),!1))}_refinement(t){return new Wr({schema:this,typeName:je.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return fo.create(this,this._def)}nullable(){return Ti.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Br.create(this,this._def)}promise(){return Ca.create(this,this._def)}or(t){return gc.create([this,t],this._def)}and(t){return vc.create(this,t,this._def)}transform(t){return new Wr({...Ne(this._def),schema:this,typeName:je.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Sc({...Ne(this._def),innerType:this,defaultValue:n,typeName:je.ZodDefault})}brand(){return new Iv({typeName:je.ZodBranded,type:this,...Ne(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Cc({...Ne(this._def),innerType:this,catchValue:n,typeName:je.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return eu.create(this,t)}readonly(){return Ac.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const L5=/^c[^\s-]{8,}$/i,N5=/^[0-9a-z]+$/,D5=/^[0-9A-HJKMNP-TV-Z]{26}$/,z5=/^[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,B5=/^[a-z0-9_-]{21}$/i,F5=/^[-+]?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)?)??$/,W5=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,V5="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Xh;const U5=/^(?:(?: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])$/,H5=/^(([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})))$/,G5=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,yA="((\\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])))",q5=new RegExp(`^${yA}$`);function xA(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 Q5(e){return new RegExp(`^${xA(e)}$`)}function bA(e){let t=`${yA}T${xA(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function K5(e,t){return!!((t==="v4"||!t)&&U5.test(e)||(t==="v6"||!t)&&H5.test(e))}class Lr extends We{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==de.string){const i=this._getOrReturnCtx(t);return ie(i,{code:K.invalid_type,expected:de.string,received:i.parsedType}),Me}const r=new pn;let o;for(const i of this._def.checks)if(i.kind==="min")t.data.lengthi.value&&(o=this._getOrReturnCtx(t,o),ie(o,{code:K.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const s=t.data.length>i.value,a=t.data.lengtht.test(o),{validation:n,code:K.invalid_string,...ke.errToObj(r)})}_addCheck(t){return new Lr({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ke.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ke.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ke.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ke.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ke.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ke.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ke.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ke.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ke.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ke.errToObj(t)})}datetime(t){var n,r;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:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...ke.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,...ke.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ke.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ke.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ke.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ke.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ke.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ke.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ke.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ke.errToObj(n)})}nonempty(t){return this.min(1,ke.errToObj(t))}trim(){return new Lr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Lr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Lr({...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 n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Lr({checks:[],typeName:je.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ne(e)})};function Z5(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r,i=parseInt(e.toFixed(o).replace(".","")),s=parseInt(t.toFixed(o).replace(".",""));return i%s/Math.pow(10,o)}class ki extends We{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)!==de.number){const i=this._getOrReturnCtx(t);return ie(i,{code:K.invalid_type,expected:de.number,received:i.parsedType}),Me}let r;const o=new pn;for(const i of this._def.checks)i.kind==="int"?Ze.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{code:K.invalid_type,expected:"integer",received:"float",message:i.message}),o.dirty()):i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:K.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="multipleOf"?Z5(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),ie(r,{code:K.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{code:K.not_finite,message:i.message}),o.dirty()):Ze.assertNever(i);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ke.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ke.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ke.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ke.toString(n))}setLimit(t,n,r,o){return new ki({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ke.toString(o)}]})}_addCheck(t){return new ki({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ke.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ke.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ke.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ke.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ke.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ke.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ke.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ke.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ke.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuet.kind==="int"||t.kind==="multipleOf"&&Ze.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.valuenew ki({checks:[],typeName:je.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ne(e)});class Ri extends We{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)!==de.bigint){const i=this._getOrReturnCtx(t);return ie(i,{code:K.invalid_type,expected:de.bigint,received:i.parsedType}),Me}let r;const o=new pn;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:K.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:K.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):Ze.assertNever(i);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ke.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ke.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ke.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ke.toString(n))}setLimit(t,n,r,o){return new Ri({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ke.toString(o)}]})}_addCheck(t){return new Ri({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ke.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ke.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ke.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ke.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ke.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Ri({checks:[],typeName:je.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ne(e)})};class pc extends We{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==de.boolean){const r=this._getOrReturnCtx(t);return ie(r,{code:K.invalid_type,expected:de.boolean,received:r.parsedType}),Me}return bn(t.data)}}pc.create=e=>new pc({typeName:je.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ne(e)});class ds extends We{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==de.date){const i=this._getOrReturnCtx(t);return ie(i,{code:K.invalid_type,expected:de.date,received:i.parsedType}),Me}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return ie(i,{code:K.invalid_date}),Me}const r=new pn;let o;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()i.value&&(o=this._getOrReturnCtx(t,o),ie(o,{code:K.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):Ze.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new ds({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ke.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ke.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew ds({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:je.ZodDate,...Ne(e)});class cf extends We{_parse(t){if(this._getType(t)!==de.symbol){const r=this._getOrReturnCtx(t);return ie(r,{code:K.invalid_type,expected:de.symbol,received:r.parsedType}),Me}return bn(t.data)}}cf.create=e=>new cf({typeName:je.ZodSymbol,...Ne(e)});class hc extends We{_parse(t){if(this._getType(t)!==de.undefined){const r=this._getOrReturnCtx(t);return ie(r,{code:K.invalid_type,expected:de.undefined,received:r.parsedType}),Me}return bn(t.data)}}hc.create=e=>new hc({typeName:je.ZodUndefined,...Ne(e)});class mc extends We{_parse(t){if(this._getType(t)!==de.null){const r=this._getOrReturnCtx(t);return ie(r,{code:K.invalid_type,expected:de.null,received:r.parsedType}),Me}return bn(t.data)}}mc.create=e=>new mc({typeName:je.ZodNull,...Ne(e)});class Sa extends We{constructor(){super(...arguments),this._any=!0}_parse(t){return bn(t.data)}}Sa.create=e=>new Sa({typeName:je.ZodAny,...Ne(e)});class ns extends We{constructor(){super(...arguments),this._unknown=!0}_parse(t){return bn(t.data)}}ns.create=e=>new ns({typeName:je.ZodUnknown,...Ne(e)});class Do extends We{_parse(t){const n=this._getOrReturnCtx(t);return ie(n,{code:K.invalid_type,expected:de.never,received:n.parsedType}),Me}}Do.create=e=>new Do({typeName:je.ZodNever,...Ne(e)});class uf extends We{_parse(t){if(this._getType(t)!==de.undefined){const r=this._getOrReturnCtx(t);return ie(r,{code:K.invalid_type,expected:de.void,received:r.parsedType}),Me}return bn(t.data)}}uf.create=e=>new uf({typeName:je.ZodVoid,...Ne(e)});class Br extends We{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==de.array)return ie(n,{code:K.invalid_type,expected:de.array,received:n.parsedType}),Me;if(o.exactLength!==null){const s=n.data.length>o.exactLength.value,a=n.data.lengtho.maxLength.value&&(ie(n,{code:K.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((s,a)=>o.type._parseAsync(new go(n,s,n.path,a)))).then(s=>pn.mergeArray(r,s));const i=[...n.data].map((s,a)=>o.type._parseSync(new go(n,s,n.path,a)));return pn.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new Br({...this._def,minLength:{value:t,message:ke.toString(n)}})}max(t,n){return new Br({...this._def,maxLength:{value:t,message:ke.toString(n)}})}length(t,n){return new Br({...this._def,exactLength:{value:t,message:ke.toString(n)}})}nonempty(t){return this.min(1,t)}}Br.create=(e,t)=>new Br({type:e,minLength:null,maxLength:null,exactLength:null,typeName:je.ZodArray,...Ne(t)});function Ls(e){if(e instanceof kt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=fo.create(Ls(r))}return new kt({...e._def,shape:()=>t})}else return e instanceof Br?new Br({...e._def,type:Ls(e.element)}):e instanceof fo?fo.create(Ls(e.unwrap())):e instanceof Ti?Ti.create(Ls(e.unwrap())):e instanceof vo?vo.create(e.items.map(t=>Ls(t))):e}class kt extends We{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(),n=Ze.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==de.object){const c=this._getOrReturnCtx(t);return ie(c,{code:K.invalid_type,expected:de.object,received:c.parsedType}),Me}const{status:r,ctx:o}=this._processInputParams(t),{shape:i,keys:s}=this._getCached(),a=[];if(!(this._def.catchall instanceof Do&&this._def.unknownKeys==="strip"))for(const c in o.data)s.includes(c)||a.push(c);const l=[];for(const c of s){const u=i[c],d=o.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new go(o,d,o.path,c)),alwaysSet:c in o.data})}if(this._def.catchall instanceof Do){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of a)l.push({key:{status:"valid",value:u},value:{status:"valid",value:o.data[u]}});else if(c==="strict")a.length>0&&(ie(o,{code:K.unrecognized_keys,keys:a}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of a){const d=o.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new go(o,d,o.path,u)),alwaysSet:u in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const d=await u.key,p=await u.value;c.push({key:d,value:p,alwaysSet:u.alwaysSet})}return c}).then(c=>pn.mergeObjectSync(r,c)):pn.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return ke.errToObj,new kt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var o,i,s,a;const l=(s=(i=(o=this._def).errorMap)===null||i===void 0?void 0:i.call(o,n,r).message)!==null&&s!==void 0?s:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=ke.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new kt({...this._def,unknownKeys:"strip"})}passthrough(){return new kt({...this._def,unknownKeys:"passthrough"})}extend(t){return new kt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new kt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:je.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new kt({...this._def,catchall:t})}pick(t){const n={};return Ze.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new kt({...this._def,shape:()=>n})}omit(t){const n={};return Ze.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new kt({...this._def,shape:()=>n})}deepPartial(){return Ls(this)}partial(t){const n={};return Ze.objectKeys(this.shape).forEach(r=>{const o=this.shape[r];t&&!t[r]?n[r]=o:n[r]=o.optional()}),new kt({...this._def,shape:()=>n})}required(t){const n={};return Ze.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof fo;)i=i._def.innerType;n[r]=i}}),new kt({...this._def,shape:()=>n})}keyof(){return wA(Ze.objectKeys(this.shape))}}kt.create=(e,t)=>new kt({shape:()=>e,unknownKeys:"strip",catchall:Do.create(),typeName:je.ZodObject,...Ne(t)});kt.strictCreate=(e,t)=>new kt({shape:()=>e,unknownKeys:"strict",catchall:Do.create(),typeName:je.ZodObject,...Ne(t)});kt.lazycreate=(e,t)=>new kt({shape:e,unknownKeys:"strip",catchall:Do.create(),typeName:je.ZodObject,...Ne(t)});class gc extends We{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function o(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const s=i.map(a=>new Xn(a.ctx.common.issues));return ie(n,{code:K.invalid_union,unionErrors:s}),Me}if(n.common.async)return Promise.all(r.map(async i=>{const s={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(o);{let i;const s=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:c}),c.common.issues.length&&s.push(c.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const a=s.map(l=>new Xn(l));return ie(n,{code:K.invalid_union,unionErrors:a}),Me}}get options(){return this._def.options}}gc.create=(e,t)=>new gc({options:e,typeName:je.ZodUnion,...Ne(t)});const ko=e=>e instanceof xc?ko(e.schema):e instanceof Wr?ko(e.innerType()):e instanceof bc?[e.value]:e instanceof Ei?e.options:e instanceof wc?Ze.objectValues(e.enum):e instanceof Sc?ko(e._def.innerType):e instanceof hc?[void 0]:e instanceof mc?[null]:e instanceof fo?[void 0,...ko(e.unwrap())]:e instanceof Ti?[null,...ko(e.unwrap())]:e instanceof Iv||e instanceof Ac?ko(e.unwrap()):e instanceof Cc?ko(e._def.innerType):[];class Xf extends We{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==de.object)return ie(n,{code:K.invalid_type,expected:de.object,received:n.parsedType}),Me;const r=this.discriminator,o=n.data[r],i=this.optionsMap.get(o);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(ie(n,{code:K.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Me)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const o=new Map;for(const i of n){const s=ko(i.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of s){if(o.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);o.set(a,i)}}return new Xf({typeName:je.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...Ne(r)})}}function Zg(e,t){const n=ii(e),r=ii(t);if(e===t)return{valid:!0,data:e};if(n===de.object&&r===de.object){const o=Ze.objectKeys(t),i=Ze.objectKeys(e).filter(a=>o.indexOf(a)!==-1),s={...e,...t};for(const a of i){const l=Zg(e[a],t[a]);if(!l.valid)return{valid:!1};s[a]=l.data}return{valid:!0,data:s}}else if(n===de.array&&r===de.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let i=0;i{if(Qg(i)||Qg(s))return Me;const a=Zg(i.value,s.value);return a.valid?((Kg(i)||Kg(s))&&n.dirty(),{status:n.value,value:a.data}):(ie(r,{code:K.invalid_intersection_types}),Me)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,s])=>o(i,s)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}vc.create=(e,t,n)=>new vc({left:e,right:t,typeName:je.ZodIntersection,...Ne(n)});class vo extends We{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==de.array)return ie(r,{code:K.invalid_type,expected:de.array,received:r.parsedType}),Me;if(r.data.lengththis._def.items.length&&(ie(r,{code:K.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((s,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new go(r,s,r.path,a)):null}).filter(s=>!!s);return r.common.async?Promise.all(i).then(s=>pn.mergeArray(n,s)):pn.mergeArray(n,i)}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:je.ZodTuple,rest:null,...Ne(t)})};class yc extends We{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==de.object)return ie(r,{code:K.invalid_type,expected:de.object,received:r.parsedType}),Me;const o=[],i=this._def.keyType,s=this._def.valueType;for(const a in r.data)o.push({key:i._parse(new go(r,a,r.path,a)),value:s._parse(new go(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?pn.mergeObjectAsync(n,o):pn.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof We?new yc({keyType:t,valueType:n,typeName:je.ZodRecord,...Ne(r)}):new yc({keyType:Lr.create(),valueType:t,typeName:je.ZodRecord,...Ne(n)})}}class df extends We{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==de.map)return ie(r,{code:K.invalid_type,expected:de.map,received:r.parsedType}),Me;const o=this._def.keyType,i=this._def.valueType,s=[...r.data.entries()].map(([a,l],c)=>({key:o._parse(new go(r,a,r.path,[c,"key"])),value:i._parse(new go(r,l,r.path,[c,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of s){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return Me;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of s){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return Me;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}}}}df.create=(e,t,n)=>new df({valueType:t,keyType:e,typeName:je.ZodMap,...Ne(n)});class fs extends We{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==de.set)return ie(r,{code:K.invalid_type,expected:de.set,received:r.parsedType}),Me;const o=this._def;o.minSize!==null&&r.data.sizeo.maxSize.value&&(ie(r,{code:K.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());const i=this._def.valueType;function s(l){const c=new Set;for(const u of l){if(u.status==="aborted")return Me;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const a=[...r.data.values()].map((l,c)=>i._parse(new go(r,l,r.path,c)));return r.common.async?Promise.all(a).then(l=>s(l)):s(a)}min(t,n){return new fs({...this._def,minSize:{value:t,message:ke.toString(n)}})}max(t,n){return new fs({...this._def,maxSize:{value:t,message:ke.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}fs.create=(e,t)=>new fs({valueType:e,minSize:null,maxSize:null,typeName:je.ZodSet,...Ne(t)});class sa extends We{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==de.function)return ie(n,{code:K.invalid_type,expected:de.function,received:n.parsedType}),Me;function r(a,l){return af({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,sf(),wa].filter(c=>!!c),issueData:{code:K.invalid_arguments,argumentsError:l}})}function o(a,l){return af({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,sf(),wa].filter(c=>!!c),issueData:{code:K.invalid_return_type,returnTypeError:l}})}const i={errorMap:n.common.contextualErrorMap},s=n.data;if(this._def.returns instanceof Ca){const a=this;return bn(async function(...l){const c=new Xn([]),u=await a._def.args.parseAsync(l,i).catch(h=>{throw c.addIssue(r(l,h)),c}),d=await Reflect.apply(s,this,u);return await a._def.returns._def.type.parseAsync(d,i).catch(h=>{throw c.addIssue(o(d,h)),c})})}else{const a=this;return bn(function(...l){const c=a._def.args.safeParse(l,i);if(!c.success)throw new Xn([r(l,c.error)]);const u=Reflect.apply(s,this,c.data),d=a._def.returns.safeParse(u,i);if(!d.success)throw new Xn([o(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new sa({...this._def,args:vo.create(t).rest(ns.create())})}returns(t){return new sa({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new sa({args:t||vo.create([]).rest(ns.create()),returns:n||ns.create(),typeName:je.ZodFunction,...Ne(r)})}}class xc extends We{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}xc.create=(e,t)=>new xc({getter:e,typeName:je.ZodLazy,...Ne(t)});class bc extends We{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ie(n,{received:n.data,code:K.invalid_literal,expected:this._def.value}),Me}return{status:"valid",value:t.data}}get value(){return this._def.value}}bc.create=(e,t)=>new bc({value:e,typeName:je.ZodLiteral,...Ne(t)});function wA(e,t){return new Ei({values:e,typeName:je.ZodEnum,...Ne(t)})}class Ei extends We{constructor(){super(...arguments),wl.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return ie(n,{expected:Ze.joinValues(r),received:n.parsedType,code:K.invalid_type}),Me}if(lf(this,wl)||vA(this,wl,new Set(this._def.values)),!lf(this,wl).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return ie(n,{received:n.data,code:K.invalid_enum_value,options:r}),Me}return bn(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Ei.create(t,{...this._def,...n})}exclude(t,n=this._def){return Ei.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}wl=new WeakMap;Ei.create=wA;class wc extends We{constructor(){super(...arguments),Sl.set(this,void 0)}_parse(t){const n=Ze.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==de.string&&r.parsedType!==de.number){const o=Ze.objectValues(n);return ie(r,{expected:Ze.joinValues(o),received:r.parsedType,code:K.invalid_type}),Me}if(lf(this,Sl)||vA(this,Sl,new Set(Ze.getValidEnumValues(this._def.values))),!lf(this,Sl).has(t.data)){const o=Ze.objectValues(n);return ie(r,{received:r.data,code:K.invalid_enum_value,options:o}),Me}return bn(t.data)}get enum(){return this._def.values}}Sl=new WeakMap;wc.create=(e,t)=>new wc({values:e,typeName:je.ZodNativeEnum,...Ne(t)});class Ca extends We{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==de.promise&&n.common.async===!1)return ie(n,{code:K.invalid_type,expected:de.promise,received:n.parsedType}),Me;const r=n.parsedType===de.promise?n.data:Promise.resolve(n.data);return bn(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Ca.create=(e,t)=>new Ca({type:e,typeName:je.ZodPromise,...Ne(t)});class Wr extends We{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===je.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),o=this._def.effect||null,i={addIssue:s=>{ie(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),o.type==="preprocess"){const s=o.transform(r.data,i);if(r.common.async)return Promise.resolve(s).then(async a=>{if(n.value==="aborted")return Me;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?Me:l.status==="dirty"||n.value==="dirty"?Ys(l.value):l});{if(n.value==="aborted")return Me;const a=this._def.schema._parseSync({data:s,path:r.path,parent:r});return a.status==="aborted"?Me:a.status==="dirty"||n.value==="dirty"?Ys(a.value):a}}if(o.type==="refinement"){const s=a=>{const l=o.refinement(a,i);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?Me:(a.status==="dirty"&&n.dirty(),s(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?Me:(a.status==="dirty"&&n.dirty(),s(a.value).then(()=>({status:n.value,value:a.value}))))}if(o.type==="transform")if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!dc(s))return s;const a=o.transform(s.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>dc(s)?Promise.resolve(o.transform(s.value,i)).then(a=>({status:n.value,value:a})):s);Ze.assertNever(o)}}Wr.create=(e,t,n)=>new Wr({schema:e,typeName:je.ZodEffects,effect:t,...Ne(n)});Wr.createWithPreprocess=(e,t,n)=>new Wr({schema:t,effect:{type:"preprocess",transform:e},typeName:je.ZodEffects,...Ne(n)});class fo extends We{_parse(t){return this._getType(t)===de.undefined?bn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}fo.create=(e,t)=>new fo({innerType:e,typeName:je.ZodOptional,...Ne(t)});class Ti extends We{_parse(t){return this._getType(t)===de.null?bn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ti.create=(e,t)=>new Ti({innerType:e,typeName:je.ZodNullable,...Ne(t)});class Sc extends We{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===de.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Sc.create=(e,t)=>new Sc({innerType:e,typeName:je.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ne(t)});class Cc extends We{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return fc(o)?o.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Xn(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Xn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Cc.create=(e,t)=>new Cc({innerType:e,typeName:je.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ne(t)});class ff extends We{_parse(t){if(this._getType(t)!==de.nan){const r=this._getOrReturnCtx(t);return ie(r,{code:K.invalid_type,expected:de.nan,received:r.parsedType}),Me}return{status:"valid",value:t.data}}}ff.create=e=>new ff({typeName:je.ZodNaN,...Ne(e)});const Y5=Symbol("zod_brand");class Iv extends We{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class eu extends We{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?Me:i.status==="dirty"?(n.dirty(),Ys(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?Me:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,n){return new eu({in:t,out:n,typeName:je.ZodPipeline})}}class Ac extends We{_parse(t){const n=this._def.innerType._parse(t),r=o=>(dc(o)&&(o.value=Object.freeze(o.value)),o);return fc(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}}Ac.create=(e,t)=>new Ac({innerType:e,typeName:je.ZodReadonly,...Ne(t)});function SA(e,t={},n){return e?Sa.create().superRefine((r,o)=>{var i,s;if(!e(r)){const a=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,l=(s=(i=a.fatal)!==null&&i!==void 0?i:n)!==null&&s!==void 0?s:!0,c=typeof a=="string"?{message:a}:a;o.addIssue({code:"custom",...c,fatal:l})}}):Sa.create()}const X5={object:kt.lazycreate};var je;(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"})(je||(je={}));const J5=(e,t={message:`Input not instance of ${e.name}`})=>SA(n=>n instanceof e,t),CA=Lr.create,AA=ki.create,eI=ff.create,tI=Ri.create,kA=pc.create,nI=ds.create,rI=cf.create,oI=hc.create,iI=mc.create,sI=Sa.create,aI=ns.create,lI=Do.create,cI=uf.create,uI=Br.create,dI=kt.create,fI=kt.strictCreate,pI=gc.create,hI=Xf.create,mI=vc.create,gI=vo.create,vI=yc.create,yI=df.create,xI=fs.create,bI=sa.create,wI=xc.create,SI=bc.create,CI=Ei.create,AI=wc.create,kI=Ca.create,Ux=Wr.create,RI=fo.create,EI=Ti.create,TI=Wr.createWithPreprocess,PI=eu.create,II=()=>CA().optional(),_I=()=>AA().optional(),jI=()=>kA().optional(),MI={string:e=>Lr.create({...e,coerce:!0}),number:e=>ki.create({...e,coerce:!0}),boolean:e=>pc.create({...e,coerce:!0}),bigint:e=>Ri.create({...e,coerce:!0}),date:e=>ds.create({...e,coerce:!0})},OI=Me;var I=Object.freeze({__proto__:null,defaultErrorMap:wa,setErrorMap:O5,getErrorMap:sf,makeIssue:af,EMPTY_PATH:$5,addIssueToContext:ie,ParseStatus:pn,INVALID:Me,DIRTY:Ys,OK:bn,isAborted:Qg,isDirty:Kg,isValid:dc,isAsync:fc,get util(){return Ze},get objectUtil(){return qg},ZodParsedType:de,getParsedType:ii,ZodType:We,datetimeRegex:bA,ZodString:Lr,ZodNumber:ki,ZodBigInt:Ri,ZodBoolean:pc,ZodDate:ds,ZodSymbol:cf,ZodUndefined:hc,ZodNull:mc,ZodAny:Sa,ZodUnknown:ns,ZodNever:Do,ZodVoid:uf,ZodArray:Br,ZodObject:kt,ZodUnion:gc,ZodDiscriminatedUnion:Xf,ZodIntersection:vc,ZodTuple:vo,ZodRecord:yc,ZodMap:df,ZodSet:fs,ZodFunction:sa,ZodLazy:xc,ZodLiteral:bc,ZodEnum:Ei,ZodNativeEnum:wc,ZodPromise:Ca,ZodEffects:Wr,ZodTransformer:Wr,ZodOptional:fo,ZodNullable:Ti,ZodDefault:Sc,ZodCatch:Cc,ZodNaN:ff,BRAND:Y5,ZodBranded:Iv,ZodPipeline:eu,ZodReadonly:Ac,custom:SA,Schema:We,ZodSchema:We,late:X5,get ZodFirstPartyTypeKind(){return je},coerce:MI,any:sI,array:uI,bigint:tI,boolean:kA,date:nI,discriminatedUnion:hI,effect:Ux,enum:CI,function:bI,instanceof:J5,intersection:mI,lazy:wI,literal:SI,map:yI,nan:eI,nativeEnum:AI,never:lI,null:iI,nullable:EI,number:AA,object:dI,oboolean:jI,onumber:_I,optional:RI,ostring:II,pipeline:PI,preprocess:TI,promise:kI,record:vI,set:xI,strictObject:fI,string:CA,symbol:rI,transformer:Ux,tuple:gI,undefined:oI,union:pI,unknown:aI,void:cI,NEVER:OI,ZodIssueCode:K,quotelessJson:M5,ZodError:Xn});const Xr=/^(\d*\|\d*\|\d*\|\d*\|\d*)$/,rs=/\b([1-9]|0[1-9]|1[012])\/([1-9]|0[1-9]|1[0-9]|2[0-9]|3[01])\/20\d\d\b/,$I=I.object({FundType:I.union([I.literal(1),I.literal(2)]),PooledFundId:I.number().int().nonnegative(),AllocationtypeId:I.number().int().nonnegative(),ChfId:I.number().int().nonnegative(),ChfProjectCode:I.string(),OrgId:I.number().int().nonnegative(),PrjDuration:I.string(),EndDate:I.string().regex(rs,"Invalid date format"),Budget:I.number().nonnegative(),BenM:I.number().int().nonnegative(),BenW:I.number().int().nonnegative(),BenB:I.number().int().nonnegative(),BenG:I.number().int().nonnegative(),GMId:I.union([I.number(),I.string()]).nullable(),GAMId:I.number().nullable(),GlbPrjStatusId:I.number().int().nonnegative(),GlobalUniqueOrgId:I.number().int().nonnegative(),DisabilityMarkerId:I.number().int().nonnegative().nullable(),GenderEqualityMarkerId:I.number().int().nonnegative().nullable(),GBVMarkerId:I.number().int().nonnegative().nullable(),GAMRefNumber:I.string().nullable(),PartnerProjectRisk:I.string().nullable(),PartnerRisk:I.string().nullable(),DisabledM:I.number().int().nonnegative().nullable(),DisabledW:I.number().int().nonnegative().nullable(),DisabledB:I.number().int().nonnegative().nullable(),DisabledG:I.number().int().nonnegative().nullable(),AchM:I.number().int().nonnegative().nullable(),AchW:I.number().int().nonnegative().nullable(),AchB:I.number().int().nonnegative().nullable(),AchG:I.number().int().nonnegative().nullable(),BenMSplit:I.string().regex(Xr,"Invalid split string format").nullable(),BenWSplit:I.string().regex(Xr,"Invalid split string format").nullable(),BenBSplit:I.string().regex(Xr,"Invalid split string format").nullable(),BenGSplit:I.string().regex(Xr,"Invalid split string format").nullable(),BenTotSplit:I.string().regex(Xr,"Invalid split string format").nullable(),AchMSplit:I.string().regex(Xr,"Invalid split string format").nullable(),AchWSplit:I.string().regex(Xr,"Invalid split string format").nullable(),AchBSplit:I.string().regex(Xr,"Invalid split string format").nullable(),AchGSplit:I.string().regex(Xr,"Invalid split string format").nullable(),AchTotSplit:I.string().regex(Xr,"Invalid split string format").nullable(),AchDisabledM:I.number().int().nonnegative().nullable(),AchDisabledW:I.number().int().nonnegative().nullable(),AchDisabledB:I.number().int().nonnegative().nullable(),AchDisabledG:I.number().int().nonnegative().nullable(),GBVBudget:I.number().nonnegative().nullable(),AchGBVBudget:I.number().nonnegative().nullable(),GBVPeopleTgt:I.number().int().nonnegative().nullable(),AchGBVPeople:I.number().int().nonnegative().nullable(),GendEqBudget:I.number().nonnegative().nullable(),AchGendEqBudget:I.number().nonnegative().nullable(),GendEqPeopleTgt:I.number().int().nonnegative().nullable(),AchGendEqPeople:I.number().int().nonnegative().nullable(),ProtBudget:I.number().nonnegative().nullable(),AchProtBudget:I.number().nonnegative().nullable(),ProtPeopleTgt:I.number().int().nonnegative().nullable(),AchProtPeople:I.number().int().nonnegative().nullable(),RptCode:I.union([I.literal(1),I.literal(2)]).nullable()}),LI=I.object({PooledFundName:I.string(),PooledFundId:I.number().int().nonnegative(),AllocationTypeId:I.number().int().nonnegative(),ChfId:I.number().int().nonnegative(),ChfProjectCode:I.string(),CountryClusterId:I.number().int().nonnegative(),GlobalClusterId:I.number().int().nonnegative(),Percentage:I.number().nonnegative(),CALCBudgetByCluster:I.number().nonnegative(),TargetMen:I.number().int().nonnegative().nullable(),TargetWomen:I.number().int().nonnegative().nullable(),TargetBoys:I.number().int().nonnegative().nullable(),TargetGirls:I.number().int().nonnegative().nullable(),ActualMen:I.number().int().nonnegative().nullable(),ActualWomen:I.number().int().nonnegative().nullable(),ActualBoys:I.number().int().nonnegative().nullable(),ActualGirls:I.number().int().nonnegative().nullable(),GlobalInstanceStatusId:I.number().int().nonnegative().nullable(),SubmissionDate:I.string().regex(rs,"Invalid date format").nullable()}),NI=I.object({AllocationTitle:I.string(),AllocationSummary:I.string().nullable(),AllocationSource:I.string(),AllocationSourceId:I.number().int().nonnegative(),TotalUSDPlanned:I.number().nonnegative().nullable(),PlannedStartDate:I.string().regex(rs,"Invalid date format").nullable(),PlannedEndDate:I.string().regex(rs,"Invalid date format").nullable(),Documents:I.string().nullable(),PooledFundId:I.number().int().nonnegative(),PooledFundName:I.string(),AllocationYear:I.number().int().nonnegative(),HRPPlans:I.string().nullable(),AllocationHCLastProjectApprovalDate:I.string().regex(rs,"Invalid date format").nullable(),TotalProjectsunderApproval:I.number().int().nonnegative(),TotalUnderApprovalBudget:I.number().nonnegative(),TotalProjectsApproved:I.number().int().nonnegative(),TotalApprovedBudget:I.number().nonnegative(),AllocationTypeId:I.number().int().nonnegative(),FundTypeId:I.union([I.literal(1),I.literal(2)])}),DI=I.object({PooledFundId:I.number().int().nonnegative(),FundTypeId:I.union([I.literal(1),I.literal(2)]),OrganizationId:I.number().int().nonnegative(),PooledFundName:I.string(),OrganizationName:I.string(),OrganizationAcronym:I.string(),OrganizationTypeId:I.union([I.literal(1),I.literal(2),I.literal(3),I.literal(4)]),OrganizationTypeName:I.string(),AlternateName:I.string().nullable(),DueDiligenceStatus:I.string().nullable(),IsEligible:I.string().nullable(),EligibleSince:I.string().regex(rs,"Invalid date format").nullable(),FirstAllocationDate:I.string().regex(rs,"Invalid date format").nullable(),GlobalOrgId:I.number().int().nonnegative().nullable(),GlobalUniqueId:I.number().int().nonnegative(),LocalizationMarker:I.string().nullable(),OrgIsWLO:I.string().nullable(),OrgIsWRO:I.string().nullable(),OrgIsOPD:I.string().nullable(),OrgIsYLO:I.string().nullable(),UNPPId:I.union([I.number(),I.string()]).nullable()}),zI=I.object({GlobalInstanceStatusId:I.number().int().nonnegative(),StatusName:I.string(),StatusCode:I.string(),AllocSrc:I.union([I.literal(1),I.literal(2)]),InstanceTypeId:I.number().int().nonnegative(),PooledFundId:I.number().int().nonnegative()}),BI=I.object({BeneficiaryTypeId:I.number().int().nonnegative(),BeneficiaryType:I.string()}),FI=I.object({PFId:I.number().int().nonnegative(),PFName:I.string(),PFAbbrv:I.string(),PFLat:I.number(),PFLong:I.number(),PFCountryCode:I.string().length(2),MAAgent:I.string(),AAgent:I.string(),IsPublic:I.string()}),WI=I.object({AllSrcId:I.number().int().nonnegative(),AllNm:I.string(),AllSrcCode:I.string().length(1)}),VI=I.object({OrgTypeId:I.union([I.literal(1),I.literal(2),I.literal(3),I.literal(4)]),OrgTypeNm:I.string(),OrgTypeCode:I.string()}),UI=I.object({ClustId:I.number().int().nonnegative(),ClustNm:I.string(),ClustCode:I.string()});I.object({FundTypeId:I.union([I.literal(1),I.literal(2)]),PooledFundId:I.number().int().nonnegative(),CHFId:I.number().int().nonnegative(),CHFProjectCode:I.string(),ClstrId:I.number().int().nonnegative().nullable(),GlbClstrId:I.number().int().nonnegative(),GlbIndicId:I.number().int().nonnegative(),CommClstrId:I.number().int().nonnegative().nullable(),GlbIndicType:I.union([I.literal(1),I.literal(2)]).nullable(),TgtM:I.number().nonnegative().nullable(),TgtW:I.number().nonnegative().nullable(),TgtB:I.number().nonnegative().nullable(),TgtG:I.number().nonnegative().nullable(),TgtTotal:I.number().nonnegative(),AchM:I.number().nonnegative().nullable(),AchW:I.number().nonnegative().nullable(),AchB:I.number().nonnegative().nullable(),AchG:I.number().nonnegative().nullable(),AchTotal:I.number().nonnegative().nullable()});const HI=I.object({Id:I.number().int().nonnegative(),Name:I.string(),HasM:I.union([I.literal(0),I.literal(1)]),HasW:I.union([I.literal(0),I.literal(1)]),HasB:I.union([I.literal(0),I.literal(1)]),HasG:I.union([I.literal(0),I.literal(1)]),UnitNm:I.string(),UnitAb:I.string(),CommClstrId:I.number().int().nonnegative().nullable(),Active:I.number().int().nonnegative().nullable(),Code:I.string(),TypeId:I.number().int().nonnegative().nullable()});function Pr(e,t,n){console.warn(`File: ${e} ----- Row with incorrect value types: ${JSON.stringify(t)} ----- -Error description: ${n}`)}function Bi(e,t,n){console.warn(`${n}: ${e} -Row with project not found: ${JSON.stringify(t)}`)}function m3({allocationTypesMaster:e,organizationMaster:t,projectStatusMaster:n,beneficiaryTypesMaster:r,pooledFundsMaster:o,allocationSourcesMaster:i,organizationTypesMaster:s,sectorsMaster:a,globalIndicatorsMaster:l}){const c={fundNames:{},fundAbbreviatedNames:{},fundIsoCodes:{},beneficiaryTypes:{},allocationTypes:{},allocationTypesCompleteList:{},allocationSources:{},organizationTypes:{},organizations:{},organizationsCompleteList:{},sectors:{},statuses:{},globalIndicators:{},globalIndicatorsDetails:new Map,projectDetails:new Map};return o.forEach(u=>{const d=u3.safeParse(u);d.success?(c.fundNames[u.PFId]=u.PFName,c.fundAbbreviatedNames[u.PFId]=u.PFAbbrv,c.fundIsoCodes[u.PFId]=u.PFCountryCode):Tr("PooledFundsMaster",u,JSON.stringify(d.error))}),r.forEach(u=>{const d=c3.safeParse(u);d.success?c.beneficiaryTypes[u.BeneficiaryTypeId]=u.BeneficiaryType:Tr("BeneficiaryTypesMaster",u,JSON.stringify(d.error))}),e.forEach(u=>{const d=s3.safeParse(u);d.success?(c.allocationTypes[parseFloat(`${u.PooledFundId}.${u.AllocationTypeId}`)]=u.AllocationTitle,c.allocationTypesCompleteList[parseFloat(`${u.PooledFundId}.${u.AllocationTypeId}`)]=u):Tr("AllocationTypeMaster",u,JSON.stringify(d.error))}),i.forEach(u=>{const d=d3.safeParse(u);d.success?c.allocationSources[u.AllSrcId]=u.AllNm:Tr("AllocationSourcesMaster",u,JSON.stringify(d.error))}),s.forEach(u=>{const d=f3.safeParse(u);d.success?c.organizationTypes[u.OrgTypeId]=u.OrgTypeNm:Tr("OrganizationTypesMaster",u,JSON.stringify(d.error))}),a.forEach(u=>{const d=p3.safeParse(u);d.success?c.sectors[u.ClustId]=u.ClustNm:Tr("SectorsMaster",u,JSON.stringify(d.error))}),t.forEach(u=>{const d=a3.safeParse(u);d.success?(c.organizations[u.GlobalUniqueId]=u.OrganizationName,c.organizationsCompleteList[u.GlobalUniqueId]=u):Tr("OrganizationMaster",u,JSON.stringify(d.error))}),n.forEach(u=>{const d=l3.safeParse(u);d.success?c.statuses[u.GlobalInstanceStatusId]=u.StatusCode:Tr("ProjectStatusMaster",u,JSON.stringify(d.error))}),l.forEach(u=>{const d=h3.safeParse(u);d.success?(c.globalIndicators[u.Id]=u.Name,c.globalIndicatorsDetails.set(u.Id,{women:!!u.HasW,men:!!u.HasM,girls:!!u.HasG,boys:!!u.HasB,unit:u.UnitAb,unitName:u.UnitNm})):Tr("GlobalIndicatorsMaster",u,JSON.stringify(d.error))}),c}const Cn={closedStatusNames:["PRJ_PRJ_CLR","PRJ_UND_CLSR"],implementationStatuses:["Under Implementation","Programmatically Closed","Financially Closed"],beneficiariesSplitOrder:[3,5,6,2,4],isProdSite:window.location.hostname==="cbpf.data.unocha.org",charts:["summary","pictogram","beneficiaryTypes","sectors","organizations","disability","gbv","indicators"],filterTypes:["Fund","Year","Allocation Source","Allocation Type"],beneficiaryCategories:["women","girls","men","boys"],beneficiariesStatuses:["targeted","reached"],indicatorsHeader:["indicator","projects","targeted","reached"],columnWidths:["52%","8%","20%","20%"],columnWidthsExpanded:["26%","6%","34%","34%"],reportTypes:[0,1,2],reportsForDisability:[1,2],reportsForGBV:[2]},{beneficiariesSplitOrder:g3,beneficiaryCategories:pU,reportTypes:hU}=Cn;function v3({projectSummary:e,sectorsData:t,listsObj:n,setInDataLists:r}){const o=[],i=new Map,s=new Set,a=new Set,l=new Set,c=new Set,u=new Set,d=new Set,p=new Set;return t.forEach(h=>{const v=i3.safeParse(h);if(v.success)if(a.add(h.GlobalClusterId),!i.has(h.ChfProjectCode))i.set(h.ChfProjectCode,{projectCode:h.ChfProjectCode,projectId:h.ChfId,sectors:[{sectorId:h.GlobalClusterId,percentage:h.Percentage,reached:{girls:h.ActualGirls||0,boys:h.ActualBoys||0,women:h.ActualWomen||0,men:h.ActualMen||0},targeted:{girls:h.TargetGirls||0,boys:h.TargetBoys||0,women:h.TargetWomen||0,men:h.TargetMen||0}}]});else{const m=i.get(h.ChfProjectCode);m?m.sectors.push({sectorId:h.GlobalClusterId,percentage:h.Percentage,reached:{girls:h.ActualGirls||0,boys:h.ActualBoys||0,women:h.ActualWomen||0,men:h.ActualMen||0},targeted:{girls:h.TargetGirls||0,boys:h.TargetBoys||0,women:h.TargetWomen||0,men:h.TargetMen||0}}):Bi(h.ChfProjectCode,h,"Project not found in sectorsDataMap")}else Tr("sectorsData",h,JSON.stringify(v.error))}),e.forEach(h=>{const v=o3.safeParse(h);if(v.success){const m=n.allocationTypesCompleteList[parseFloat(`${h.PooledFundId}.${h.AllocationtypeId}`)],C=n.organizationsCompleteList[h.GlobalUniqueOrgId],g=n.statuses[h.GlbPrjStatusId],y=i.get(h.ChfProjectCode);if(m||Bi(h.ChfProjectCode,h,"Project not found in allocation types"),C||Bi(h.ChfProjectCode,h,"Project not found in organizations"),g||Bi(h.ChfProjectCode,h,"Project not found in statuses"),y||Bi(h.ChfProjectCode,h,"Project not found in sectors data"),m&&C&&g&&y){s.add(m.AllocationYear),u.add(h.PooledFundId),c.add(m.AllocationSourceId),d.add(C.OrganizationTypeId),p.add(C.GlobalUniqueId),l.add(parseFloat(`${h.PooledFundId}.${h.AllocationtypeId}`)),n.projectDetails.set(h.ChfId,{year:m.AllocationYear,fund:h.PooledFundId,allocationSource:m.AllocationSourceId,allocationType:parseFloat(`${h.PooledFundId}.${h.AllocationtypeId}`)});const x=Mx(h,"Ach"),w=Mx(h,"Ben"),S={fund:h.PooledFundId,year:m.AllocationYear,projectCode:h.ChfProjectCode,projectId:h.ChfId,allocationSource:m.AllocationSourceId,organizationType:C.OrganizationTypeId,organizationId:C.GlobalUniqueId,allocationType:parseFloat(`${h.PooledFundId}.${h.AllocationtypeId}`),allocationTypeId:h.AllocationtypeId,endDate:new Date(h.EndDate),budget:h.Budget,projectStatus:g,projectStatusId:h.GlbPrjStatusId,sectorData:y.sectors,reached:Nu(h,"reached"),targeted:Nu(h,"targeted"),disabledReached:Nu(h,"disabledReached"),disabledTargeted:Nu(h,"disabledTargeted"),reachedByBeneficiaryType:x,targetedByBeneficiaryType:w,budgetGBVPlanned:h.GBVBudget||0,budgetGBVReached:h.AchGBVBudget||0,targetedGBV:h.GBVPeopleTgt||0,reachedGBV:h.AchGBVPeople||0,reportType:h.RptCode??0};o.push(S)}}else Tr("projectSummary",h,JSON.stringify(v.error))}),r(()=>({years:s,sectors:a,allocationTypes:l,allocationSources:c,funds:u,organizationTypes:d,organizations:p})),o}function Mx(e,t){const n=[0,0,0,0,0],r=e[`${t}GSplit`],o=e[`${t}BSplit`],i=e[`${t}WSplit`],s=e[`${t}MSplit`],a=r!==null?r.split("|").map(Number):n,l=o!==null?o.split("|").map(Number):n,c=i!==null?i.split("|").map(Number):n,u=s!==null?s.split("|").map(Number):n,d={};return g3.forEach((p,h)=>{d[p]={girls:a[h],boys:l[h],women:c[h],men:u[h]}}),d}function Nu(e,t){let n=0,r=0,o=0,i=0;return t==="reached"&&(n=e.AchG||0,r=e.AchB||0,o=e.AchW||0,i=e.AchM||0),t==="targeted"&&(n=e.BenG||0,r=e.BenB||0,o=e.BenW||0,i=e.BenM||0),t==="disabledReached"&&(n=e.AchDisabledG||0,r=e.AchDisabledB||0,o=e.AchDisabledW||0,i=e.AchDisabledM||0),t==="disabledTargeted"&&(n=e.DisabledG||0,r=e.DisabledB||0,o=e.DisabledW||0,i=e.DisabledM||0),{girls:n,boys:r,women:o,men:i}}function y3(e,t){const n=e||"",r=t?`${t}_${new Date().getFullYear()}`:"",o=`https://cbpfapi.unocha.org/vo3/odata/GlobalGenericDataExtract?SPCode=PF_PROJ_SUMMARY&PoolfundCodeAbbrv=&ShowAllPooledFunds=&AllocationYears=${r}&FundTypeId=${n}&$format=csv`,i=`https://cbpfapi.unocha.org/vo3/odata/GlobalGenericDataExtract?SPCode=PF_RPT_CLST_BENEF&PoolfundCodeAbbrv=&ShowAllPooledFunds=&AllocationYears=${r}&FundTypeId=${n}&$format=csv`,s=`https://cbpfapi.unocha.org/vo3/odata/GlobalGenericDataExtract?SPCode=PF_GLB_INDIC&PoolfundCodeAbbrv=&ShowAllPooledFunds=&AllocationYears=&IndicatorTypeId=&FundTypeId=${e}&$format=csv`,a=`https://cbpfapi.unocha.org/vo2/odata/AllocationTypes?PoolfundCodeAbbrv=&AllocationYear=${r}&$format=csv`,l=`https://cbpfapi.unocha.org/vo3/odata/GlobalGenericDataExtract?SPCode=PF_ORG_SUMMARY&PoolfundCodeAbbrv=&FundTypeId=${n}&$format=csv`,c=`https://cbpfapi.unocha.org/vo3/odata/GlobalGenericDataExtract?SPCode=PF_GLB_STATUS&PoolfundCodeAbbrv=&InstanceTypeId=&FundTypeId=${n}&$format=csv`,u="https://cbpfgms.github.io/pfbi-data/cbpf/results/MstBeneficiaryType.csv",d="https://cbpfapi.unocha.org/vo2/odata/MstPooledFund?$format=csv",p="https://cbpfapi.unocha.org/vo2/odata/MstAllocationSource?$format=csv",h="https://cbpfapi.unocha.org/vo2/odata/MstOrgType?$format=csv",v="https://cbpfapi.unocha.org/vo2/odata/MstClusters?$format=csv",m="https://cbpfapi.unocha.org/vo3/odata/GlobalGenericDataExtract?SPCode=GLB_INDIC_MST&GlobalIndicatorType=&$format=csv",[C,g]=b.useState([]),[y,x]=b.useState([]),[w,S]=b.useState({}),[T,R]=b.useState({}),[P,_]=b.useState(!0),[k,E]=b.useState(null);return b.useEffect(()=>{Promise.all([Uh("projectSummary",o),Uh("sectorsData",i),Uh("globalIndicators",s),wo("allocationTypesMaster",a,"csv"),wo("organizationMaster",l,"csv"),wo("projectStatusMaster",c,"csv"),wo("beneficiaryTypesMaster",u,"csv"),wo("pooledFundsMaster",d,"csv"),wo("allocationSourcesMaster",p,"csv"),wo("organizationTypesMaster",h,"csv"),wo("sectorsMaster",v,"csv"),wo("globalIndicatorsMaster",m,"csv")]).then(M).catch($=>{$ instanceof Error?E($.message):E("An unknown error occurred"),_(!1)});function M([$,O,z,L,D,j,N,W,se,ae,Re,Y]){const ce=m3({allocationTypesMaster:L,organizationMaster:D,projectStatusMaster:j,beneficiaryTypesMaster:N,pooledFundsMaster:W,allocationSourcesMaster:se,organizationTypesMaster:ae,sectorsMaster:Re,globalIndicatorsMaster:Y}),G=v3({projectSummary:$,sectorsData:O,listsObj:ce,setInDataLists:R});g(G),x(z),S(ce),_(!1)}},[]),{data:C,dataIndicators:y,lists:w,inDataLists:T,loading:P,error:k}}function H(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}function cs(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?nn(Oa,--Dn):0,wa--,zt===10&&(wa=1,Qf--),zt}function Zn(){return zt=Dn2||Ac(zt)>3?"":" "}function B3(e,t){for(;--t&&Zn()&&!(zt<48||zt>102||zt>57&&zt<65||zt>70&&zt<97););return Jc(e,gd()+(t<6&&co()==32&&Zn()==32))}function Ug(e){for(;Zn();)switch(zt){case e:return Dn;case 34:case 39:e!==34&&e!==39&&Ug(zt);break;case 40:e===41&&Ug(e);break;case 92:Zn();break}return Dn}function F3(e,t){for(;Zn()&&e+zt!==57;)if(e+zt===84&&co()===47)break;return"/*"+Jc(t,Dn-1)+"*"+qf(e===47?e:Zn())}function W3(e){for(;!Ac(co());)Zn();return Jc(e,Dn)}function V3(e){return mA(yd("",null,null,null,[""],e=hA(e),0,[0],e))}function yd(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,p=0,h=0,v=0,m=1,C=1,g=1,y=0,x="",w=o,S=i,T=r,R=x;C;)switch(v=y,y=Zn()){case 40:if(v!=108&&nn(R,d-1)==58){Vg(R+=rt(vd(y),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:R+=vd(y);break;case 9:case 10:case 13:case 32:R+=z3(v);break;case 92:R+=B3(gd()-1,7);continue;case 47:switch(co()){case 42:case 47:Lu(U3(F3(Zn(),gd()),t,n),l);break;default:R+="/"}break;case 123*m:a[c++]=to(R)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:C=0;case 59+u:g==-1&&(R=rt(R,/\f/g,"")),h>0&&to(R)-d&&Lu(h>32?$x(R+";",r,n,d-1):$x(rt(R," ","")+";",r,n,d-2),l);break;case 59:R+=";";default:if(Lu(T=Ox(R,t,n,c,u,o,a,x,w=[],S=[],d),i),y===123)if(u===0)yd(R,t,T,T,w,i,d,a,S);else switch(p===99&&nn(R,3)===110?100:p){case 100:case 108:case 109:case 115:yd(e,T,T,r&&Lu(Ox(e,T,T,0,0,o,a,x,o,w=[],d),S),o,S,d,a,r?w:S);break;default:yd(R,T,T,T,[""],S,0,a,S)}}c=u=h=0,m=g=1,x=R="",d=s;break;case 58:d=1+to(R),h=v;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&D3()==125)continue}switch(R+=qf(y),y*m){case 38:g=u>0?1:(R+="\f",-1);break;case 44:a[c++]=(to(R)-1)*g,g=1;break;case 64:co()===45&&(R+=vd(Zn())),p=co(),u=d=to(x=R+=W3(gd())),y++;break;case 45:v===45&&to(R)==2&&(m=0)}}return i}function Ox(e,t,n,r,o,i,s,a,l,c,u){for(var d=o-1,p=o===0?i:[""],h=Av(p),v=0,m=0,C=0;v0?p[g]+" "+y:rt(y,/&\f/g,p[g])))&&(l[C++]=x);return Kf(e,t,n,o===0?Cv:a,l,c,u)}function U3(e,t,n){return Kf(e,t,n,uA,qf(L3()),Sc(e,2,-2),0)}function $x(e,t,n,r){return Kf(e,t,n,Sv,Sc(e,0,r),Sc(e,r+1,-1),r)}function oa(e,t){for(var n="",r=Av(e),o=0;o6)switch(nn(e,t+1)){case 109:if(nn(e,t+4)!==45)break;case 102:return rt(e,/(.+:)(.+)-([^]+)/,"$1"+nt+"$2-$3$1"+cf+(nn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Vg(e,"stretch")?gA(rt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(nn(e,t+1)!==115)break;case 6444:switch(nn(e,to(e)-3-(~Vg(e,"!important")&&10))){case 107:return rt(e,":",":"+nt)+e;case 101:return rt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+nt+(nn(e,14)===45?"inline-":"")+"box$3$1"+nt+"$2$3$1"+un+"$2box$3")+e}break;case 5936:switch(nn(e,t+11)){case 114:return nt+e+un+rt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return nt+e+un+rt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return nt+e+un+rt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return nt+e+un+e+e}return e}var J3=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Sv:t.return=gA(t.value,t.length);break;case dA:return oa([el(t,{value:rt(t.value,"@","@"+nt)})],o);case Cv:if(t.length)return N3(t.props,function(i){switch($3(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return oa([el(t,{props:[rt(i,/:(read-\w+)/,":"+cf+"$1")]})],o);case"::placeholder":return oa([el(t,{props:[rt(i,/:(plac\w+)/,":"+nt+"input-$1")]}),el(t,{props:[rt(i,/:(plac\w+)/,":"+cf+"$1")]}),el(t,{props:[rt(i,/:(plac\w+)/,un+"input-$1")]})],o)}return""})}},eI=[J3],vA=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var C=m.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||eI,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var C=m.getAttribute("data-emotion").split(" "),g=1;g{const d=FI.safeParse(u);d.success?(c.fundNames[u.PFId]=u.PFName,c.fundAbbreviatedNames[u.PFId]=u.PFAbbrv,c.fundIsoCodes[u.PFId]=u.PFCountryCode):Pr("PooledFundsMaster",u,JSON.stringify(d.error))}),r.forEach(u=>{const d=BI.safeParse(u);d.success?c.beneficiaryTypes[u.BeneficiaryTypeId]=u.BeneficiaryType:Pr("BeneficiaryTypesMaster",u,JSON.stringify(d.error))}),e.forEach(u=>{const d=NI.safeParse(u);d.success?(c.allocationTypes[parseFloat(`${u.PooledFundId}.${u.AllocationTypeId}`)]=u.AllocationTitle,c.allocationTypesCompleteList[parseFloat(`${u.PooledFundId}.${u.AllocationTypeId}`)]=u):Pr("AllocationTypeMaster",u,JSON.stringify(d.error))}),i.forEach(u=>{const d=WI.safeParse(u);d.success?c.allocationSources[u.AllSrcId]=u.AllNm:Pr("AllocationSourcesMaster",u,JSON.stringify(d.error))}),s.forEach(u=>{const d=VI.safeParse(u);d.success?c.organizationTypes[u.OrgTypeId]=u.OrgTypeNm:Pr("OrganizationTypesMaster",u,JSON.stringify(d.error))}),a.forEach(u=>{const d=UI.safeParse(u);d.success?c.sectors[u.ClustId]=u.ClustNm:Pr("SectorsMaster",u,JSON.stringify(d.error))}),t.forEach(u=>{const d=DI.safeParse(u);d.success?(c.organizations[u.GlobalUniqueId]=u.OrganizationName,c.organizationsCompleteList[u.GlobalUniqueId]=u):Pr("OrganizationMaster",u,JSON.stringify(d.error))}),n.forEach(u=>{const d=zI.safeParse(u);d.success?c.statuses[u.GlobalInstanceStatusId]=u.StatusCode:Pr("ProjectStatusMaster",u,JSON.stringify(d.error))}),l.forEach(u=>{const d=HI.safeParse(u);d.success?(c.globalIndicators[u.Id]=u.Name,c.globalIndicatorsDetails.set(u.Id,{women:!!u.HasW,men:!!u.HasM,girls:!!u.HasG,boys:!!u.HasB,unit:u.UnitAb,unitName:u.UnitNm})):Pr("GlobalIndicatorsMaster",u,JSON.stringify(d.error))}),c}const Cn={closedStatusNames:["PRJ_PRJ_CLR","PRJ_UND_CLSR"],implementationStatuses:["Under Implementation","Programmatically Closed","Financially Closed"],beneficiariesSplitOrder:[3,5,6,2,4],isProdSite:window.location.hostname==="cbpf.data.unocha.org",charts:["summary","pictogram","beneficiaryTypes","sectors","organizations","disability","gbv","indicators"],filterTypes:["Fund","Year","Allocation Source","Allocation Type"],beneficiaryCategories:["women","girls","men","boys"],beneficiariesStatuses:["targeted","reached"],indicatorsHeader:["indicator","projects","targeted","reached"],columnWidths:["52%","8%","20%","20%"],columnWidthsExpanded:["26%","6%","34%","34%"],reportTypes:[0,1,2],reportsForDisability:[1,2],reportsForGBV:[2]},{beneficiariesSplitOrder:qI,beneficiaryCategories:NH,reportTypes:DH}=Cn;function QI({projectSummary:e,sectorsData:t,listsObj:n,setInDataLists:r}){const o=[],i=new Map,s=new Set,a=new Set,l=new Set,c=new Set,u=new Set,d=new Set,p=new Set;return t.forEach(h=>{const v=LI.safeParse(h);if(v.success)if(a.add(h.GlobalClusterId),!i.has(h.ChfProjectCode))i.set(h.ChfProjectCode,{projectCode:h.ChfProjectCode,projectId:h.ChfId,sectors:[{sectorId:h.GlobalClusterId,percentage:h.Percentage,reached:{girls:h.ActualGirls||0,boys:h.ActualBoys||0,women:h.ActualWomen||0,men:h.ActualMen||0},targeted:{girls:h.TargetGirls||0,boys:h.TargetBoys||0,women:h.TargetWomen||0,men:h.TargetMen||0}}]});else{const m=i.get(h.ChfProjectCode);m?m.sectors.push({sectorId:h.GlobalClusterId,percentage:h.Percentage,reached:{girls:h.ActualGirls||0,boys:h.ActualBoys||0,women:h.ActualWomen||0,men:h.ActualMen||0},targeted:{girls:h.TargetGirls||0,boys:h.TargetBoys||0,women:h.TargetWomen||0,men:h.TargetMen||0}}):Ui(h.ChfProjectCode,h,"Project not found in sectorsDataMap")}else Pr("sectorsData",h,JSON.stringify(v.error))}),e.forEach(h=>{const v=$I.safeParse(h);if(v.success){const m=n.allocationTypesCompleteList[parseFloat(`${h.PooledFundId}.${h.AllocationtypeId}`)],w=n.organizationsCompleteList[h.GlobalUniqueOrgId],g=n.statuses[h.GlbPrjStatusId],y=i.get(h.ChfProjectCode);if(m||Ui(h.ChfProjectCode,h,"Project not found in allocation types"),w||Ui(h.ChfProjectCode,h,"Project not found in organizations"),g||Ui(h.ChfProjectCode,h,"Project not found in statuses"),y||Ui(h.ChfProjectCode,h,"Project not found in sectors data"),m&&w&&g&&y){s.add(m.AllocationYear),u.add(h.PooledFundId),c.add(m.AllocationSourceId),d.add(w.OrganizationTypeId),p.add(w.GlobalUniqueId),l.add(parseFloat(`${h.PooledFundId}.${h.AllocationtypeId}`)),n.projectDetails.set(h.ChfId,{year:m.AllocationYear,fund:h.PooledFundId,allocationSource:m.AllocationSourceId,allocationType:parseFloat(`${h.PooledFundId}.${h.AllocationtypeId}`),endDate:new Date(h.EndDate),projectStatusId:h.GlbPrjStatusId});const x=Hx(h,"Ach"),S=Hx(h,"Ben"),C={fund:h.PooledFundId,year:m.AllocationYear,projectCode:h.ChfProjectCode,projectId:h.ChfId,allocationSource:m.AllocationSourceId,organizationType:w.OrganizationTypeId,organizationId:w.GlobalUniqueId,allocationType:parseFloat(`${h.PooledFundId}.${h.AllocationtypeId}`),allocationTypeId:h.AllocationtypeId,endDate:new Date(h.EndDate),budget:h.Budget,projectStatus:g,projectStatusId:h.GlbPrjStatusId,sectorData:y.sectors,reached:zu(h,"reached"),targeted:zu(h,"targeted"),disabledReached:zu(h,"disabledReached"),disabledTargeted:zu(h,"disabledTargeted"),reachedByBeneficiaryType:x,targetedByBeneficiaryType:S,budgetGBVPlanned:h.GBVBudget||0,budgetGBVReached:h.AchGBVBudget||0,targetedGBV:h.GBVPeopleTgt||0,reachedGBV:h.AchGBVPeople||0,reportType:h.RptCode??0};o.push(C)}}else Pr("projectSummary",h,JSON.stringify(v.error))}),r(()=>({years:s,sectors:a,allocationTypes:l,allocationSources:c,funds:u,organizationTypes:d,organizations:p})),o}function Hx(e,t){const n=[0,0,0,0,0],r=e[`${t}GSplit`],o=e[`${t}BSplit`],i=e[`${t}WSplit`],s=e[`${t}MSplit`],a=r!==null?r.split("|").map(Number):n,l=o!==null?o.split("|").map(Number):n,c=i!==null?i.split("|").map(Number):n,u=s!==null?s.split("|").map(Number):n,d={};return qI.forEach((p,h)=>{d[p]={girls:a[h],boys:l[h],women:c[h],men:u[h]}}),d}function zu(e,t){let n=0,r=0,o=0,i=0;return t==="reached"&&(n=e.AchG||0,r=e.AchB||0,o=e.AchW||0,i=e.AchM||0),t==="targeted"&&(n=e.BenG||0,r=e.BenB||0,o=e.BenW||0,i=e.BenM||0),t==="disabledReached"&&(n=e.AchDisabledG||0,r=e.AchDisabledB||0,o=e.AchDisabledW||0,i=e.AchDisabledM||0),t==="disabledTargeted"&&(n=e.DisabledG||0,r=e.DisabledB||0,o=e.DisabledW||0,i=e.DisabledM||0),{girls:n,boys:r,women:o,men:i}}function KI(e,t){const n=e||"",r=t?`${t}_${new Date().getFullYear()}`:"",o=`https://cbpfapi.unocha.org/vo3/odata/GlobalGenericDataExtract?SPCode=PF_PROJ_SUMMARY&PoolfundCodeAbbrv=&ShowAllPooledFunds=&AllocationYears=${r}&FundTypeId=${n}&$format=csv`,i=`https://cbpfapi.unocha.org/vo3/odata/GlobalGenericDataExtract?SPCode=PF_RPT_CLST_BENEF&PoolfundCodeAbbrv=&ShowAllPooledFunds=&AllocationYears=${r}&FundTypeId=${n}&$format=csv`,s=`https://cbpfapi.unocha.org/vo3/odata/GlobalGenericDataExtract?SPCode=PF_GLB_INDIC&PoolfundCodeAbbrv=&ShowAllPooledFunds=&AllocationYears=&IndicatorTypeId=&FundTypeId=${n}&$format=csv`,a=`https://cbpfapi.unocha.org/vo2/odata/AllocationTypes?PoolfundCodeAbbrv=&AllocationYear=${r}&$format=csv`,l=`https://cbpfapi.unocha.org/vo3/odata/GlobalGenericDataExtract?SPCode=PF_ORG_SUMMARY&PoolfundCodeAbbrv=&FundTypeId=${n}&$format=csv`,c=`https://cbpfapi.unocha.org/vo3/odata/GlobalGenericDataExtract?SPCode=PF_GLB_STATUS&PoolfundCodeAbbrv=&InstanceTypeId=&FundTypeId=${n}&$format=csv`,u="https://cbpfgms.github.io/pfbi-data/cbpf/results/MstBeneficiaryType.csv",d="https://cbpfapi.unocha.org/vo2/odata/MstPooledFund?$format=csv",p="https://cbpfapi.unocha.org/vo2/odata/MstAllocationSource?$format=csv",h="https://cbpfapi.unocha.org/vo2/odata/MstOrgType?$format=csv",v="https://cbpfapi.unocha.org/vo2/odata/MstClusters?$format=csv",m="https://cbpfapi.unocha.org/vo3/odata/GlobalGenericDataExtract?SPCode=GLB_INDIC_MST&GlobalIndicatorType=&$format=csv",[w,g]=b.useState([]),[y,x]=b.useState([]),[S,C]=b.useState({}),[E,k]=b.useState({}),[P,_]=b.useState(!0),[R,T]=b.useState(null);return b.useEffect(()=>{Promise.all([Yh("projectSummary",o),Yh("sectorsData",i),Yh("globalIndicators",s),Co("allocationTypesMaster",a,"csv"),Co("organizationMaster",l,"csv"),Co("projectStatusMaster",c,"csv"),Co("beneficiaryTypesMaster",u,"csv"),Co("pooledFundsMaster",d,"csv"),Co("allocationSourcesMaster",p,"csv"),Co("organizationTypesMaster",h,"csv"),Co("sectorsMaster",v,"csv"),Co("globalIndicatorsMaster",m,"csv")]).then(M).catch($=>{$ instanceof Error?T($.message):T("An unknown error occurred"),_(!1)});function M([$,O,z,N,D,j,L,W,se,ae,Re,Y]){const ce=GI({allocationTypesMaster:N,organizationMaster:D,projectStatusMaster:j,beneficiaryTypesMaster:L,pooledFundsMaster:W,allocationSourcesMaster:se,organizationTypesMaster:ae,sectorsMaster:Re,globalIndicatorsMaster:Y}),q=QI({projectSummary:$,sectorsData:O,listsObj:ce,setInDataLists:k});g(q),x(z),C(ce),_(!1)}},[]),{data:w,dataIndicators:y,lists:S,inDataLists:E,loading:P,error:R}}function G(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}function ps(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?nn(Na,--zn):0,Aa--,zt===10&&(Aa=1,ep--),zt}function Jn(){return zt=zn2||Rc(zt)>3?"":" "}function v3(e,t){for(;--t&&Jn()&&!(zt<48||zt>102||zt>57&&zt<65||zt>70&&zt<97););return tu(e,bd()+(t<6&&po()==32&&Jn()==32))}function Xg(e){for(;Jn();)switch(zt){case e:return zn;case 34:case 39:e!==34&&e!==39&&Xg(zt);break;case 40:e===41&&Xg(e);break;case 92:Jn();break}return zn}function y3(e,t){for(;Jn()&&e+zt!==57;)if(e+zt===84&&po()===47)break;return"/*"+tu(t,zn-1)+"*"+Jf(e===47?e:Jn())}function x3(e){for(;!Rc(po());)Jn();return tu(e,zn)}function b3(e){return LA(Sd("",null,null,null,[""],e=$A(e),0,[0],e))}function Sd(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,p=0,h=0,v=0,m=1,w=1,g=1,y=0,x="",S=o,C=i,E=r,k=x;w;)switch(v=y,y=Jn()){case 40:if(v!=108&&nn(k,d-1)==58){Yg(k+=rt(wd(y),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:k+=wd(y);break;case 9:case 10:case 13:case 32:k+=g3(v);break;case 92:k+=v3(bd()-1,7);continue;case 47:switch(po()){case 42:case 47:Bu(w3(y3(Jn(),bd()),t,n),l);break;default:k+="/"}break;case 123*m:a[c++]=oo(k)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:w=0;case 59+u:g==-1&&(k=rt(k,/\f/g,"")),h>0&&oo(k)-d&&Bu(h>32?qx(k+";",r,n,d-1):qx(rt(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Bu(E=Gx(k,t,n,c,u,o,a,x,S=[],C=[],d),i),y===123)if(u===0)Sd(k,t,E,E,S,i,d,a,C);else switch(p===99&&nn(k,3)===110?100:p){case 100:case 108:case 109:case 115:Sd(e,E,E,r&&Bu(Gx(e,E,E,0,0,o,a,x,o,S=[],d),C),o,C,d,a,r?S:C);break;default:Sd(k,E,E,E,[""],C,0,a,C)}}c=u=h=0,m=g=1,x=k="",d=s;break;case 58:d=1+oo(k),h=v;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&m3()==125)continue}switch(k+=Jf(y),y*m){case 38:g=u>0?1:(k+="\f",-1);break;case 44:a[c++]=(oo(k)-1)*g,g=1;break;case 64:po()===45&&(k+=wd(Jn())),p=po(),u=d=oo(x=k+=x3(bd())),y++;break;case 45:v===45&&oo(k)==2&&(m=0)}}return i}function Gx(e,t,n,r,o,i,s,a,l,c,u){for(var d=o-1,p=o===0?i:[""],h=Mv(p),v=0,m=0,w=0;v0?p[g]+" "+y:rt(y,/&\f/g,p[g])))&&(l[w++]=x);return tp(e,t,n,o===0?_v:a,l,c,u)}function w3(e,t,n){return tp(e,t,n,_A,Jf(h3()),kc(e,2,-2),0)}function qx(e,t,n,r){return tp(e,t,n,jv,kc(e,0,r),kc(e,r+1,-1),r)}function aa(e,t){for(var n="",r=Mv(e),o=0;o6)switch(nn(e,t+1)){case 109:if(nn(e,t+4)!==45)break;case 102:return rt(e,/(.+:)(.+)-([^]+)/,"$1"+nt+"$2-$3$1"+pf+(nn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Yg(e,"stretch")?NA(rt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(nn(e,t+1)!==115)break;case 6444:switch(nn(e,oo(e)-3-(~Yg(e,"!important")&&10))){case 107:return rt(e,":",":"+nt)+e;case 101:return rt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+nt+(nn(e,14)===45?"inline-":"")+"box$3$1"+nt+"$2$3$1"+un+"$2box$3")+e}break;case 5936:switch(nn(e,t+11)){case 114:return nt+e+un+rt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return nt+e+un+rt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return nt+e+un+rt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return nt+e+un+e+e}return e}var I3=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case jv:t.return=NA(t.value,t.length);break;case jA:return aa([nl(t,{value:rt(t.value,"@","@"+nt)})],o);case _v:if(t.length)return p3(t.props,function(i){switch(f3(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return aa([nl(t,{props:[rt(i,/:(read-\w+)/,":"+pf+"$1")]})],o);case"::placeholder":return aa([nl(t,{props:[rt(i,/:(plac\w+)/,":"+nt+"input-$1")]}),nl(t,{props:[rt(i,/:(plac\w+)/,":"+pf+"$1")]}),nl(t,{props:[rt(i,/:(plac\w+)/,un+"input-$1")]})],o)}return""})}},_3=[I3],DA=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var w=m.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||_3,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var w=m.getAttribute("data-emotion").split(" "),g=1;g=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var fI={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},pI=/[A-Z]|^ms/g,hI=/_EMO_([^_]+?)_([^]*?)_EMO_/g,AA=function(t){return t.charCodeAt(1)===45},Lx=function(t){return t!=null&&typeof t!="boolean"},Gh=cA(function(e){return AA(e)?e:e.replace(pI,"-$&").toLowerCase()}),Dx=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(hI,function(r,o,i){return no={name:o,styles:i,next:no},o})}return fI[t]!==1&&!AA(t)&&typeof n=="number"&&n!==0?n+"px":n};function kc(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return no={name:n.name,styles:n.styles,next:no},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)no={name:r.name,styles:r.styles,next:no},r=r.next;var o=n.styles+";";return o}return mI(e,t,n)}case"function":{if(e!==void 0){var i=no,s=n(e);return no=i,kc(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function mI(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?bI:wI},Vx=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},CI=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return CA(n,r,o),vI(function(){return SA(n,r,o)}),null},SI=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=Vx(t,n,r),l=a||Wx(o),c=!l("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var p=u.length,h=1;ht(RI(o)?n:o):t;return f.jsx(xI,{styles:r})}function Pv(e,t){return Hg(e,t)}const IA=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},TI=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:PA,StyledEngineProvider:kI,ThemeContext:sp,css:ap,default:Pv,internal_processStyles:IA,keyframes:$a},Symbol.toStringTag,{value:"Module"}));function To(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 _A(e){if(!To(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=_A(e[n])}),t}function vn(e,t,n={clone:!0}){const r=n.clone?A({},e):e;return To(e)&&To(t)&&Object.keys(t).forEach(o=>{To(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&To(e[o])?r[o]=vn(e[o],t[o],n):n.clone?r[o]=To(t[o])?_A(t[o]):t[o]:r[o]=t[o]}),r}const EI=Object.freeze(Object.defineProperty({__proto__:null,default:vn,isPlainObject:To},Symbol.toStringTag,{value:"Module"})),PI=["values","unit","step"],II=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>A({},n,{[r.key]:r.val}),{})};function jA(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=H(e,PI),i=II(t),s=Object.keys(i);function a(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function c(p,h){const v=s.indexOf(h);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(v!==-1&&typeof t[s[v]]=="number"?t[s[v]]:h)-r/100}${n})`}function u(p){return s.indexOf(p)+1`@media (min-width:${Iv[e]}px)`};function Fr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Ux;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||Ux;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||Iv).indexOf(a)!==-1){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function MA(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function OA(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function jI(e,...t){const n=MA(e),r=[n,...t].reduce((o,i)=>vn(o,i),{});return OA(Object.keys(n),r)}function MI(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function Qh({values:e,breakpoints:t,base:n}){const r=n||MI(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((s,a,l)=>(Array.isArray(e)?(s[a]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[i],i=a):s[a]=e,s),{})}function U(e){if(typeof e!="string")throw new Error(cs(7));return e.charAt(0).toUpperCase()+e.slice(1)}const OI=Object.freeze(Object.defineProperty({__proto__:null,default:U},Symbol.toStringTag,{value:"Module"}));function lp(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function uf(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=lp(e,n)||r,t&&(o=t(o,r,e)),o}function Nt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=lp(l,r)||{};return Fr(s,a,d=>{let p=uf(c,o,d);return d===p&&typeof d=="string"&&(p=uf(c,o,`${t}${d==="default"?"":U(d)}`,d)),n===!1?p:{[n]:p}})};return i.propTypes={},i.filterProps=[t],i}function $I(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const NI={m:"margin",p:"padding"},LI={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Hx={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},DI=$I(e=>{if(e.length>2)if(Hx[e])e=Hx[e];else return[e];const[t,n]=e.split(""),r=NI[t],o=LI[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),_v=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],jv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[..._v,...jv];function eu(e,t,n,r){var o;const i=(o=lp(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function Mv(e){return eu(e,"spacing",8)}function us(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function zI(e,t){return n=>e.reduce((r,o)=>(r[o]=us(t,n),r),{})}function BI(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=DI(n),i=zI(o,r),s=e[n];return Fr(e,s,i)}function $A(e,t){const n=Mv(e.theme);return Object.keys(e).map(r=>BI(e,t,r,n)).reduce(Ol,{})}function _t(e){return $A(e,_v)}_t.propTypes={};_t.filterProps=_v;function jt(e){return $A(e,jv)}jt.propTypes={};jt.filterProps=jv;function FI(e=8){if(e.mui)return e;const t=Mv({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function cp(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Ol(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function cr(e){return typeof e!="number"?e:`${e}px solid`}function wr(e,t){return Nt({prop:e,themeKey:"borders",transform:t})}const WI=wr("border",cr),VI=wr("borderTop",cr),UI=wr("borderRight",cr),HI=wr("borderBottom",cr),GI=wr("borderLeft",cr),qI=wr("borderColor"),QI=wr("borderTopColor"),KI=wr("borderRightColor"),ZI=wr("borderBottomColor"),YI=wr("borderLeftColor"),XI=wr("outline",cr),JI=wr("outlineColor"),up=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=eu(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:us(t,r)});return Fr(e,e.borderRadius,n)}return null};up.propTypes={};up.filterProps=["borderRadius"];cp(WI,VI,UI,HI,GI,qI,QI,KI,ZI,YI,up,XI,JI);const dp=e=>{if(e.gap!==void 0&&e.gap!==null){const t=eu(e.theme,"spacing",8),n=r=>({gap:us(t,r)});return Fr(e,e.gap,n)}return null};dp.propTypes={};dp.filterProps=["gap"];const fp=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=eu(e.theme,"spacing",8),n=r=>({columnGap:us(t,r)});return Fr(e,e.columnGap,n)}return null};fp.propTypes={};fp.filterProps=["columnGap"];const pp=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=eu(e.theme,"spacing",8),n=r=>({rowGap:us(t,r)});return Fr(e,e.rowGap,n)}return null};pp.propTypes={};pp.filterProps=["rowGap"];const e_=Nt({prop:"gridColumn"}),t_=Nt({prop:"gridRow"}),n_=Nt({prop:"gridAutoFlow"}),r_=Nt({prop:"gridAutoColumns"}),o_=Nt({prop:"gridAutoRows"}),i_=Nt({prop:"gridTemplateColumns"}),s_=Nt({prop:"gridTemplateRows"}),a_=Nt({prop:"gridTemplateAreas"}),l_=Nt({prop:"gridArea"});cp(dp,fp,pp,e_,t_,n_,r_,o_,i_,s_,a_,l_);function ia(e,t){return t==="grey"?t:e}const c_=Nt({prop:"color",themeKey:"palette",transform:ia}),u_=Nt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ia}),d_=Nt({prop:"backgroundColor",themeKey:"palette",transform:ia});cp(c_,u_,d_);function Hn(e){return e<=1&&e!==0?`${e*100}%`:e}const f_=Nt({prop:"width",transform:Hn}),Ov=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Iv[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Hn(n)}};return Fr(e,e.maxWidth,t)}return null};Ov.filterProps=["maxWidth"];const p_=Nt({prop:"minWidth",transform:Hn}),h_=Nt({prop:"height",transform:Hn}),m_=Nt({prop:"maxHeight",transform:Hn}),g_=Nt({prop:"minHeight",transform:Hn});Nt({prop:"size",cssProperty:"width",transform:Hn});Nt({prop:"size",cssProperty:"height",transform:Hn});const v_=Nt({prop:"boxSizing"});cp(f_,Ov,p_,h_,m_,g_,v_);const tu={border:{themeKey:"borders",transform:cr},borderTop:{themeKey:"borders",transform:cr},borderRight:{themeKey:"borders",transform:cr},borderBottom:{themeKey:"borders",transform:cr},borderLeft:{themeKey:"borders",transform:cr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:cr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:up},color:{themeKey:"palette",transform:ia},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ia},backgroundColor:{themeKey:"palette",transform:ia},p:{style:jt},pt:{style:jt},pr:{style:jt},pb:{style:jt},pl:{style:jt},px:{style:jt},py:{style:jt},padding:{style:jt},paddingTop:{style:jt},paddingRight:{style:jt},paddingBottom:{style:jt},paddingLeft:{style:jt},paddingX:{style:jt},paddingY:{style:jt},paddingInline:{style:jt},paddingInlineStart:{style:jt},paddingInlineEnd:{style:jt},paddingBlock:{style:jt},paddingBlockStart:{style:jt},paddingBlockEnd:{style:jt},m:{style:_t},mt:{style:_t},mr:{style:_t},mb:{style:_t},ml:{style:_t},mx:{style:_t},my:{style:_t},margin:{style:_t},marginTop:{style:_t},marginRight:{style:_t},marginBottom:{style:_t},marginLeft:{style:_t},marginX:{style:_t},marginY:{style:_t},marginInline:{style:_t},marginInlineStart:{style:_t},marginInlineEnd:{style:_t},marginBlock:{style:_t},marginBlockStart:{style:_t},marginBlockEnd:{style:_t},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:dp},rowGap:{style:pp},columnGap:{style:fp},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Hn},maxWidth:{style:Ov},minWidth:{transform:Hn},height:{transform:Hn},maxHeight:{transform:Hn},minHeight:{transform:Hn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function y_(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function x_(e,t){return typeof e=="function"?e(t):e}function NA(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const p=lp(o,c)||{};return d?d(s):Fr(s,r,v=>{let m=uf(p,u,v);return v===m&&typeof v=="string"&&(m=uf(p,u,`${n}${v==="default"?"":U(v)}`,v)),l===!1?m:{[l]:m}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:tu;function a(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const u=MA(i.breakpoints),d=Object.keys(u);let p=u;return Object.keys(c).forEach(h=>{const v=x_(c[h],i);if(v!=null)if(typeof v=="object")if(s[h])p=Ol(p,e(h,v,i,s));else{const m=Fr({theme:i},v,C=>({[h]:C}));y_(m,v)?p[h]=t({sx:v,theme:i}):p=Ol(p,m)}else p=Ol(p,e(h,v,i,s))}),OA(d,p)}return Array.isArray(o)?o.map(a):a(o)}return t}const Na=NA();Na.filterProps=["sx"];function LA(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const b_=["breakpoints","palette","spacing","shape"];function ys(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=H(e,b_),a=jA(n),l=FI(o);let c=vn({breakpoints:a,direction:"ltr",components:{},palette:A({mode:"light"},r),spacing:l,shape:A({},_I,i)},s);return c.applyStyles=LA,c=t.reduce((u,d)=>vn(u,d),c),c.unstable_sxConfig=A({},tu,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return Na({sx:d,theme:this})},c}const w_=Object.freeze(Object.defineProperty({__proto__:null,default:ys,private_createBreakpoints:jA,unstable_applyStyles:LA},Symbol.toStringTag,{value:"Module"}));function C_(e){return Object.keys(e).length===0}function S_(e=null){const t=b.useContext(sp);return!t||C_(t)?e:t}const A_=ys();function nu(e=A_){return S_(e)}function k_({styles:e,themeId:t,defaultTheme:n={}}){const r=nu(n),o=typeof e=="function"?e(t&&r[t]||r):e;return f.jsx(PA,{styles:o})}const R_=["sx"],T_=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:tu;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function ru(e){const{sx:t}=e,n=H(e,R_),{systemProps:r,otherProps:o}=T_(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return To(a)?A({},r,a):r}:i=A({},r,t),A({},o,{sx:i})}const E_=Object.freeze(Object.defineProperty({__proto__:null,default:Na,extendSxProp:ru,unstable_createStyleFunctionSx:NA,unstable_defaultSxConfig:tu},Symbol.toStringTag,{value:"Module"})),Gx=e=>e,P_=()=>{let e=Gx;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Gx}}},$v=P_(),I_=["className","component"];function __(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Pv("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(Na);return b.forwardRef(function(l,c){const u=nu(n),d=ru(l),{className:p,component:h="div"}=d,v=H(d,I_);return f.jsx(i,A({as:h,ref:c,className:Z(p,o?o(r):r),theme:t&&u[t]||u},v))})}const j_={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 be(e,t,n="Mui"){const r=j_[t];return r?`${n}-${r}`:`${$v.generate(e)}-${t}`}function Ce(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=be(e,o,n)}),r}var DA={exports:{}},ut={};/** + */var Zt=typeof Symbol=="function"&&Symbol.for,Ov=Zt?Symbol.for("react.element"):60103,$v=Zt?Symbol.for("react.portal"):60106,np=Zt?Symbol.for("react.fragment"):60107,rp=Zt?Symbol.for("react.strict_mode"):60108,op=Zt?Symbol.for("react.profiler"):60114,ip=Zt?Symbol.for("react.provider"):60109,sp=Zt?Symbol.for("react.context"):60110,Lv=Zt?Symbol.for("react.async_mode"):60111,ap=Zt?Symbol.for("react.concurrent_mode"):60111,lp=Zt?Symbol.for("react.forward_ref"):60112,cp=Zt?Symbol.for("react.suspense"):60113,j3=Zt?Symbol.for("react.suspense_list"):60120,up=Zt?Symbol.for("react.memo"):60115,dp=Zt?Symbol.for("react.lazy"):60116,M3=Zt?Symbol.for("react.block"):60121,O3=Zt?Symbol.for("react.fundamental"):60117,$3=Zt?Symbol.for("react.responder"):60118,L3=Zt?Symbol.for("react.scope"):60119;function ir(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ov:switch(e=e.type,e){case Lv:case ap:case np:case op:case rp:case cp:return e;default:switch(e=e&&e.$$typeof,e){case sp:case lp:case dp:case up:case ip:return e;default:return t}}case $v:return t}}}function BA(e){return ir(e)===ap}ct.AsyncMode=Lv;ct.ConcurrentMode=ap;ct.ContextConsumer=sp;ct.ContextProvider=ip;ct.Element=Ov;ct.ForwardRef=lp;ct.Fragment=np;ct.Lazy=dp;ct.Memo=up;ct.Portal=$v;ct.Profiler=op;ct.StrictMode=rp;ct.Suspense=cp;ct.isAsyncMode=function(e){return BA(e)||ir(e)===Lv};ct.isConcurrentMode=BA;ct.isContextConsumer=function(e){return ir(e)===sp};ct.isContextProvider=function(e){return ir(e)===ip};ct.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ov};ct.isForwardRef=function(e){return ir(e)===lp};ct.isFragment=function(e){return ir(e)===np};ct.isLazy=function(e){return ir(e)===dp};ct.isMemo=function(e){return ir(e)===up};ct.isPortal=function(e){return ir(e)===$v};ct.isProfiler=function(e){return ir(e)===op};ct.isStrictMode=function(e){return ir(e)===rp};ct.isSuspense=function(e){return ir(e)===cp};ct.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===np||e===ap||e===op||e===rp||e===cp||e===j3||typeof e=="object"&&e!==null&&(e.$$typeof===dp||e.$$typeof===up||e.$$typeof===ip||e.$$typeof===sp||e.$$typeof===lp||e.$$typeof===O3||e.$$typeof===$3||e.$$typeof===L3||e.$$typeof===M3)};ct.typeOf=ir;zA.exports=ct;var N3=zA.exports,FA=N3,D3={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},z3={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},WA={};WA[FA.ForwardRef]=D3;WA[FA.Memo]=z3;var B3=!0;function F3(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var VA=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||B3===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},UA=function(t,n,r){VA(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function W3(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var V3={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},U3=/[A-Z]|^ms/g,H3=/_EMO_([^_]+?)_([^]*?)_EMO_/g,HA=function(t){return t.charCodeAt(1)===45},Kx=function(t){return t!=null&&typeof t!="boolean"},Jh=IA(function(e){return HA(e)?e:e.replace(U3,"-$&").toLowerCase()}),Zx=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(H3,function(r,o,i){return io={name:o,styles:i,next:io},o})}return V3[t]!==1&&!HA(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ec(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return io={name:n.name,styles:n.styles,next:io},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)io={name:r.name,styles:r.styles,next:io},r=r.next;var o=n.styles+";";return o}return G3(e,t,n)}case"function":{if(e!==void 0){var i=io,s=n(e);return io=i,Ec(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function G3(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?Y3:X3},tb=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},J3=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return VA(n,r,o),Q3(function(){return UA(n,r,o)}),null},e_=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=tb(t,n,r),l=a||eb(o),c=!l("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var p=u.length,h=1;ht(r_(o)?n:o):t;return f.jsx(Z3,{styles:r})}function Dv(e,t){return Jg(e,t)}const YA=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},o_=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:ZA,StyledEngineProvider:n_,ThemeContext:fp,css:pp,default:Dv,internal_processStyles:YA,keyframes:Da},Symbol.toStringTag,{value:"Module"}));function Po(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 XA(e){if(!Po(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=XA(e[n])}),t}function yn(e,t,n={clone:!0}){const r=n.clone?A({},e):e;return Po(e)&&Po(t)&&Object.keys(t).forEach(o=>{Po(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Po(e[o])?r[o]=yn(e[o],t[o],n):n.clone?r[o]=Po(t[o])?XA(t[o]):t[o]:r[o]=t[o]}),r}const i_=Object.freeze(Object.defineProperty({__proto__:null,default:yn,isPlainObject:Po},Symbol.toStringTag,{value:"Module"})),s_=["values","unit","step"],a_=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>A({},n,{[r.key]:r.val}),{})};function JA(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=G(e,s_),i=a_(t),s=Object.keys(i);function a(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function c(p,h){const v=s.indexOf(h);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(v!==-1&&typeof t[s[v]]=="number"?t[s[v]]:h)-r/100}${n})`}function u(p){return s.indexOf(p)+1`@media (min-width:${zv[e]}px)`};function Vr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||nb;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||nb;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||zv).indexOf(a)!==-1){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function ek(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function tk(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function c_(e,...t){const n=ek(e),r=[n,...t].reduce((o,i)=>yn(o,i),{});return tk(Object.keys(n),r)}function u_(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function tm({values:e,breakpoints:t,base:n}){const r=n||u_(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((s,a,l)=>(Array.isArray(e)?(s[a]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[i],i=a):s[a]=e,s),{})}function U(e){if(typeof e!="string")throw new Error(ps(7));return e.charAt(0).toUpperCase()+e.slice(1)}const d_=Object.freeze(Object.defineProperty({__proto__:null,default:U},Symbol.toStringTag,{value:"Module"}));function hp(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function hf(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=hp(e,n)||r,t&&(o=t(o,r,e)),o}function Lt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=hp(l,r)||{};return Vr(s,a,d=>{let p=hf(c,o,d);return d===p&&typeof d=="string"&&(p=hf(c,o,`${t}${d==="default"?"":U(d)}`,d)),n===!1?p:{[n]:p}})};return i.propTypes={},i.filterProps=[t],i}function f_(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const p_={m:"margin",p:"padding"},h_={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},rb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},m_=f_(e=>{if(e.length>2)if(rb[e])e=rb[e];else return[e];const[t,n]=e.split(""),r=p_[t],o=h_[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Bv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Fv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Bv,...Fv];function nu(e,t,n,r){var o;const i=(o=hp(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function Wv(e){return nu(e,"spacing",8)}function hs(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function g_(e,t){return n=>e.reduce((r,o)=>(r[o]=hs(t,n),r),{})}function v_(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=m_(n),i=g_(o,r),s=e[n];return Vr(e,s,i)}function nk(e,t){const n=Wv(e.theme);return Object.keys(e).map(r=>v_(e,t,r,n)).reduce(Ll,{})}function _t(e){return nk(e,Bv)}_t.propTypes={};_t.filterProps=Bv;function jt(e){return nk(e,Fv)}jt.propTypes={};jt.filterProps=Fv;function y_(e=8){if(e.mui)return e;const t=Wv({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function mp(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Ll(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function dr(e){return typeof e!="number"?e:`${e}px solid`}function Cr(e,t){return Lt({prop:e,themeKey:"borders",transform:t})}const x_=Cr("border",dr),b_=Cr("borderTop",dr),w_=Cr("borderRight",dr),S_=Cr("borderBottom",dr),C_=Cr("borderLeft",dr),A_=Cr("borderColor"),k_=Cr("borderTopColor"),R_=Cr("borderRightColor"),E_=Cr("borderBottomColor"),T_=Cr("borderLeftColor"),P_=Cr("outline",dr),I_=Cr("outlineColor"),gp=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=nu(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:hs(t,r)});return Vr(e,e.borderRadius,n)}return null};gp.propTypes={};gp.filterProps=["borderRadius"];mp(x_,b_,w_,S_,C_,A_,k_,R_,E_,T_,gp,P_,I_);const vp=e=>{if(e.gap!==void 0&&e.gap!==null){const t=nu(e.theme,"spacing",8),n=r=>({gap:hs(t,r)});return Vr(e,e.gap,n)}return null};vp.propTypes={};vp.filterProps=["gap"];const yp=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=nu(e.theme,"spacing",8),n=r=>({columnGap:hs(t,r)});return Vr(e,e.columnGap,n)}return null};yp.propTypes={};yp.filterProps=["columnGap"];const xp=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=nu(e.theme,"spacing",8),n=r=>({rowGap:hs(t,r)});return Vr(e,e.rowGap,n)}return null};xp.propTypes={};xp.filterProps=["rowGap"];const __=Lt({prop:"gridColumn"}),j_=Lt({prop:"gridRow"}),M_=Lt({prop:"gridAutoFlow"}),O_=Lt({prop:"gridAutoColumns"}),$_=Lt({prop:"gridAutoRows"}),L_=Lt({prop:"gridTemplateColumns"}),N_=Lt({prop:"gridTemplateRows"}),D_=Lt({prop:"gridTemplateAreas"}),z_=Lt({prop:"gridArea"});mp(vp,yp,xp,__,j_,M_,O_,$_,L_,N_,D_,z_);function la(e,t){return t==="grey"?t:e}const B_=Lt({prop:"color",themeKey:"palette",transform:la}),F_=Lt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:la}),W_=Lt({prop:"backgroundColor",themeKey:"palette",transform:la});mp(B_,F_,W_);function Qn(e){return e<=1&&e!==0?`${e*100}%`:e}const V_=Lt({prop:"width",transform:Qn}),Vv=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||zv[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Qn(n)}};return Vr(e,e.maxWidth,t)}return null};Vv.filterProps=["maxWidth"];const U_=Lt({prop:"minWidth",transform:Qn}),H_=Lt({prop:"height",transform:Qn}),G_=Lt({prop:"maxHeight",transform:Qn}),q_=Lt({prop:"minHeight",transform:Qn});Lt({prop:"size",cssProperty:"width",transform:Qn});Lt({prop:"size",cssProperty:"height",transform:Qn});const Q_=Lt({prop:"boxSizing"});mp(V_,Vv,U_,H_,G_,q_,Q_);const ru={border:{themeKey:"borders",transform:dr},borderTop:{themeKey:"borders",transform:dr},borderRight:{themeKey:"borders",transform:dr},borderBottom:{themeKey:"borders",transform:dr},borderLeft:{themeKey:"borders",transform:dr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:dr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:gp},color:{themeKey:"palette",transform:la},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:la},backgroundColor:{themeKey:"palette",transform:la},p:{style:jt},pt:{style:jt},pr:{style:jt},pb:{style:jt},pl:{style:jt},px:{style:jt},py:{style:jt},padding:{style:jt},paddingTop:{style:jt},paddingRight:{style:jt},paddingBottom:{style:jt},paddingLeft:{style:jt},paddingX:{style:jt},paddingY:{style:jt},paddingInline:{style:jt},paddingInlineStart:{style:jt},paddingInlineEnd:{style:jt},paddingBlock:{style:jt},paddingBlockStart:{style:jt},paddingBlockEnd:{style:jt},m:{style:_t},mt:{style:_t},mr:{style:_t},mb:{style:_t},ml:{style:_t},mx:{style:_t},my:{style:_t},margin:{style:_t},marginTop:{style:_t},marginRight:{style:_t},marginBottom:{style:_t},marginLeft:{style:_t},marginX:{style:_t},marginY:{style:_t},marginInline:{style:_t},marginInlineStart:{style:_t},marginInlineEnd:{style:_t},marginBlock:{style:_t},marginBlockStart:{style:_t},marginBlockEnd:{style:_t},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:vp},rowGap:{style:xp},columnGap:{style:yp},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Qn},maxWidth:{style:Vv},minWidth:{transform:Qn},height:{transform:Qn},maxHeight:{transform:Qn},minHeight:{transform:Qn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function K_(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Z_(e,t){return typeof e=="function"?e(t):e}function rk(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const p=hp(o,c)||{};return d?d(s):Vr(s,r,v=>{let m=hf(p,u,v);return v===m&&typeof v=="string"&&(m=hf(p,u,`${n}${v==="default"?"":U(v)}`,v)),l===!1?m:{[l]:m}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:ru;function a(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const u=ek(i.breakpoints),d=Object.keys(u);let p=u;return Object.keys(c).forEach(h=>{const v=Z_(c[h],i);if(v!=null)if(typeof v=="object")if(s[h])p=Ll(p,e(h,v,i,s));else{const m=Vr({theme:i},v,w=>({[h]:w}));K_(m,v)?p[h]=t({sx:v,theme:i}):p=Ll(p,m)}else p=Ll(p,e(h,v,i,s))}),tk(d,p)}return Array.isArray(o)?o.map(a):a(o)}return t}const za=rk();za.filterProps=["sx"];function ok(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const Y_=["breakpoints","palette","spacing","shape"];function ws(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=G(e,Y_),a=JA(n),l=y_(o);let c=yn({breakpoints:a,direction:"ltr",components:{},palette:A({mode:"light"},r),spacing:l,shape:A({},l_,i)},s);return c.applyStyles=ok,c=t.reduce((u,d)=>yn(u,d),c),c.unstable_sxConfig=A({},ru,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return za({sx:d,theme:this})},c}const X_=Object.freeze(Object.defineProperty({__proto__:null,default:ws,private_createBreakpoints:JA,unstable_applyStyles:ok},Symbol.toStringTag,{value:"Module"}));function J_(e){return Object.keys(e).length===0}function ej(e=null){const t=b.useContext(fp);return!t||J_(t)?e:t}const tj=ws();function ou(e=tj){return ej(e)}function nj({styles:e,themeId:t,defaultTheme:n={}}){const r=ou(n),o=typeof e=="function"?e(t&&r[t]||r):e;return f.jsx(ZA,{styles:o})}const rj=["sx"],oj=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:ru;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function iu(e){const{sx:t}=e,n=G(e,rj),{systemProps:r,otherProps:o}=oj(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return Po(a)?A({},r,a):r}:i=A({},r,t),A({},o,{sx:i})}const ij=Object.freeze(Object.defineProperty({__proto__:null,default:za,extendSxProp:iu,unstable_createStyleFunctionSx:rk,unstable_defaultSxConfig:ru},Symbol.toStringTag,{value:"Module"})),ob=e=>e,sj=()=>{let e=ob;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ob}}},Uv=sj(),aj=["className","component"];function lj(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Dv("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(za);return b.forwardRef(function(l,c){const u=ou(n),d=iu(l),{className:p,component:h="div"}=d,v=G(d,aj);return f.jsx(i,A({as:h,ref:c,className:Z(p,o?o(r):r),theme:t&&u[t]||u},v))})}const cj={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 be(e,t,n="Mui"){const r=cj[t];return r?`${n}-${r}`:`${Uv.generate(e)}-${t}`}function Se(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=be(e,o,n)}),r}var ik={exports:{}},ut={};/** * @license React * react-is.production.min.js * @@ -61,7 +61,7 @@ Row with project not found: ${JSON.stringify(t)}`)}function m3({allocationTypesM * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Nv=Symbol.for("react.element"),Lv=Symbol.for("react.portal"),hp=Symbol.for("react.fragment"),mp=Symbol.for("react.strict_mode"),gp=Symbol.for("react.profiler"),vp=Symbol.for("react.provider"),yp=Symbol.for("react.context"),M_=Symbol.for("react.server_context"),xp=Symbol.for("react.forward_ref"),bp=Symbol.for("react.suspense"),wp=Symbol.for("react.suspense_list"),Cp=Symbol.for("react.memo"),Sp=Symbol.for("react.lazy"),O_=Symbol.for("react.offscreen"),zA;zA=Symbol.for("react.module.reference");function Cr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Nv:switch(e=e.type,e){case hp:case gp:case mp:case bp:case wp:return e;default:switch(e=e&&e.$$typeof,e){case M_:case yp:case xp:case Sp:case Cp:case vp:return e;default:return t}}case Lv:return t}}}ut.ContextConsumer=yp;ut.ContextProvider=vp;ut.Element=Nv;ut.ForwardRef=xp;ut.Fragment=hp;ut.Lazy=Sp;ut.Memo=Cp;ut.Portal=Lv;ut.Profiler=gp;ut.StrictMode=mp;ut.Suspense=bp;ut.SuspenseList=wp;ut.isAsyncMode=function(){return!1};ut.isConcurrentMode=function(){return!1};ut.isContextConsumer=function(e){return Cr(e)===yp};ut.isContextProvider=function(e){return Cr(e)===vp};ut.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Nv};ut.isForwardRef=function(e){return Cr(e)===xp};ut.isFragment=function(e){return Cr(e)===hp};ut.isLazy=function(e){return Cr(e)===Sp};ut.isMemo=function(e){return Cr(e)===Cp};ut.isPortal=function(e){return Cr(e)===Lv};ut.isProfiler=function(e){return Cr(e)===gp};ut.isStrictMode=function(e){return Cr(e)===mp};ut.isSuspense=function(e){return Cr(e)===bp};ut.isSuspenseList=function(e){return Cr(e)===wp};ut.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===hp||e===gp||e===mp||e===bp||e===wp||e===O_||typeof e=="object"&&e!==null&&(e.$$typeof===Sp||e.$$typeof===Cp||e.$$typeof===vp||e.$$typeof===yp||e.$$typeof===xp||e.$$typeof===zA||e.getModuleId!==void 0)};ut.typeOf=Cr;DA.exports=ut;var qx=DA.exports;const $_=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function BA(e){const t=`${e}`.match($_);return t&&t[1]||""}function FA(e,t=""){return e.displayName||e.name||BA(e)||t}function Qx(e,t,n){const r=FA(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function N_(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return FA(e,"Component");if(typeof e=="object")switch(e.$$typeof){case qx.ForwardRef:return Qx(e,e.render,"ForwardRef");case qx.Memo:return Qx(e,e.type,"memo");default:return}}}const L_=Object.freeze(Object.defineProperty({__proto__:null,default:N_,getFunctionName:BA},Symbol.toStringTag,{value:"Module"})),D_=["ownerState"],z_=["variants"],B_=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function F_(e){return Object.keys(e).length===0}function W_(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Kh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const V_=ys(),U_=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Du({defaultTheme:e,theme:t,themeId:n}){return F_(t)?e:t[n]||t}function H_(e){return e?(t,n)=>n[e]:null}function xd(e,t){let{ownerState:n}=t,r=H(t,D_);const o=typeof e=="function"?e(A({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>xd(i,A({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=H(o,z_);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props(A({ownerState:n},r,n)):Object.keys(l.props).forEach(u=>{(n==null?void 0:n[u])!==l.props[u]&&r[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style(A({ownerState:n},r,n)):l.style))}),a}return o}function G_(e={}){const{themeId:t,defaultTheme:n=V_,rootShouldForwardProp:r=Kh,slotShouldForwardProp:o=Kh}=e,i=s=>Na(A({},s,{theme:Du(A({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{IA(s,S=>S.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:p=H_(U_(c))}=a,h=H(a,B_),v=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,m=d||!1;let C,g=Kh;c==="Root"||c==="root"?g=r:c?g=o:W_(s)&&(g=void 0);const y=Pv(s,A({shouldForwardProp:g,label:C},h)),x=S=>typeof S=="function"&&S.__emotion_real!==S||To(S)?T=>xd(S,A({},T,{theme:Du({theme:T.theme,defaultTheme:n,themeId:t})})):S,w=(S,...T)=>{let R=x(S);const P=T?T.map(x):[];l&&p&&P.push(E=>{const M=Du(A({},E,{defaultTheme:n,themeId:t}));if(!M.components||!M.components[l]||!M.components[l].styleOverrides)return null;const $=M.components[l].styleOverrides,O={};return Object.entries($).forEach(([z,L])=>{O[z]=xd(L,A({},E,{theme:M}))}),p(E,O)}),l&&!v&&P.push(E=>{var M;const $=Du(A({},E,{defaultTheme:n,themeId:t})),O=$==null||(M=$.components)==null||(M=M[l])==null?void 0:M.variants;return xd({variants:O},A({},E,{theme:$}))}),m||P.push(i);const _=P.length-T.length;if(Array.isArray(S)&&_>0){const E=new Array(_).fill("");R=[...S,...E],R.raw=[...S.raw,...E]}const k=y(R,...P);return s.muiName&&(k.muiName=s.muiName),k};return y.withConfig&&(w.withConfig=y.withConfig),w}}const Dv=G_();function Rc(e,t){const n=A({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=A({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=A({},i),Object.keys(o).forEach(s=>{n[r][s]=Rc(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function q_(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Rc(t.components[n].defaultProps,r)}function zv({props:e,name:t,defaultTheme:n,themeId:r}){let o=nu(n);return r&&(o=o[r]||o),q_({theme:o,name:t,props:e})}const Wr=typeof window<"u"?b.useLayoutEffect:b.useEffect;function Q_(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const K_=Object.freeze(Object.defineProperty({__proto__:null,default:Q_},Symbol.toStringTag,{value:"Module"}));function qg(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Bv(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Z_(e,t){return()=>null}function sa(e,t){var n,r;return b.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Gt(e){return e&&e.ownerDocument||document}function ki(e){return Gt(e).defaultView||window}function Y_(e,t){return()=>null}function Tc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Kx=0;function X_(e){const[t,n]=b.useState(e),r=e||t;return b.useEffect(()=>{t==null&&(Kx+=1,n(`mui-${Kx}`))},[t]),r}const Zx=jm.useId;function Ap(e){if(Zx!==void 0){const t=Zx();return e??t}return X_(e)}function J_(e,t,n,r,o){return null}function gi({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=b.useRef(e!==void 0),[i,s]=b.useState(t),a=o?e:i,l=b.useCallback(c=>{o||s(c)},[]);return[a,l]}function jn(e){const t=b.useRef(e);return Wr(()=>{t.current=e}),b.useRef((...n)=>(0,t.current)(...n)).current}function Pt(...e){return b.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Tc(n,t)})},e)}const Yx={};function ej(e,t){const n=b.useRef(Yx);return n.current===Yx&&(n.current=e(t)),n}const tj=[];function nj(e){b.useEffect(e,tj)}class kp{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new kp}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Rp(){const e=ej(kp.create).current;return nj(e.disposeEffect),e}let Tp=!0,Qg=!1;const rj=new kp,oj={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function ij(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&oj[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function sj(e){e.metaKey||e.altKey||e.ctrlKey||(Tp=!0)}function Zh(){Tp=!1}function aj(){this.visibilityState==="hidden"&&Qg&&(Tp=!0)}function lj(e){e.addEventListener("keydown",sj,!0),e.addEventListener("mousedown",Zh,!0),e.addEventListener("pointerdown",Zh,!0),e.addEventListener("touchstart",Zh,!0),e.addEventListener("visibilitychange",aj,!0)}function cj(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Tp||ij(t)}function WA(){const e=b.useCallback(o=>{o!=null&&lj(o.ownerDocument)},[]),t=b.useRef(!1);function n(){return t.current?(Qg=!0,rj.start(100,()=>{Qg=!1}),t.current=!1,!0):!1}function r(o){return cj(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function VA(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const uj=e=>{const t=b.useRef({});return b.useEffect(()=>{t.current=e}),t.current};function df(e){return typeof e=="string"}function UA(e,t,n){return e===void 0||df(e)?t:A({},t,{ownerState:A({},t.ownerState,n)})}function ff(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Xx(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function HA(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const h=Z(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),v=A({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=A({},n,o,r);return h.length>0&&(m.className=h),Object.keys(v).length>0&&(m.style=v),{props:m,internalRef:void 0}}const s=ff(A({},o,r)),a=Xx(r),l=Xx(o),c=t(s),u=Z(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=A({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=A({},c,n,l,a);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}function GA(e,t,n){return typeof e=="function"?e(t,n):e}const dj=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ri(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=H(e,dj),a=i?{}:GA(r,o),{props:l,internalRef:c}=HA(A({},s,{externalSlotProps:a})),u=Pt(c,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return UA(n,A({},l,{ref:u}),o)}const fj=b.createContext(),pj=()=>{const e=b.useContext(fj);return e??!1},hj=b.createContext(void 0);function mj(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Rc(o.defaultProps,r):!o.styleOverrides&&!o.variants?Rc(o,r):r}function gj({props:e,name:t}){const n=b.useContext(hj);return mj({props:e,name:t,theme:{components:n}})}const vj=["className","component","disableGutters","fixed","maxWidth","classes"],yj=ys(),xj=Dv("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${U(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),bj=e=>zv({props:e,name:"MuiContainer",defaultTheme:yj}),wj=(e,t)=>{const n=l=>be(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:s}=e,a={root:["root",s&&`maxWidth${U(String(s))}`,o&&"fixed",i&&"disableGutters"]};return we(a,n,r)};function Cj(e={}){const{createStyledComponent:t=xj,useThemeProps:n=bj,componentName:r="MuiContainer"}=e,o=t(({theme:s,ownerState:a})=>A({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!a.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}),({theme:s,ownerState:a})=>a.fixed&&Object.keys(s.breakpoints.values).reduce((l,c)=>{const u=c,d=s.breakpoints.values[u];return d!==0&&(l[s.breakpoints.up(u)]={maxWidth:`${d}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:a})=>A({},a.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},a.maxWidth&&a.maxWidth!=="xs"&&{[s.breakpoints.up(a.maxWidth)]:{maxWidth:`${s.breakpoints.values[a.maxWidth]}${s.breakpoints.unit}`}}));return b.forwardRef(function(a,l){const c=n(a),{className:u,component:d="div",disableGutters:p=!1,fixed:h=!1,maxWidth:v="lg"}=c,m=H(c,vj),C=A({},c,{component:d,disableGutters:p,fixed:h,maxWidth:v}),g=wj(C,r);return f.jsx(o,A({as:d,ownerState:C,className:Z(g.root,u),ref:l},m))})}const Sj=(e,t)=>e.filter(n=>t.includes(n)),La=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,i)=>{n((s,a)=>{i<=e.keys.length-1&&(i===0?Object.assign(s,a):s[e.up(e.keys[i])]=a)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:Sj(e.keys,Object.keys(t))).forEach(i=>{if(e.keys.indexOf(i)!==-1){const s=t[i];s!==void 0&&n((a,l)=>{r===i?Object.assign(a,l):a[e.up(i)]=l},s)}}):(typeof t=="number"||typeof t=="string")&&n((o,i)=>{Object.assign(o,i)},t)};function No(e){return e?`Level${e}`:""}function ou(e){return e.unstable_level>0&&e.container}function qA(e){return function(n){return`var(--Grid-${n}Spacing${No(e.unstable_level)})`}}function Fv(e){return function(n){return e.unstable_level===0?`var(--Grid-${n}Spacing)`:`var(--Grid-${n}Spacing${No(e.unstable_level-1)})`}}function Wv(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${No(e.unstable_level-1)})`}const Aj=({theme:e,ownerState:t})=>{const n=qA(t),r={};return La(e.breakpoints,t.gridSize,(o,i)=>{let s={};i===!0&&(s={flexBasis:0,flexGrow:1,maxWidth:"100%"}),i==="auto"&&(s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof i=="number"&&(s={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${i} / ${Wv(t)}${ou(t)?` + ${n("column")}`:""})`}),o(r,s)}),r},kj=({theme:e,ownerState:t})=>{const n={};return La(e.breakpoints,t.gridOffset,(r,o)=>{let i={};o==="auto"&&(i={marginLeft:"auto"}),typeof o=="number"&&(i={marginLeft:o===0?"0px":`calc(100% * ${o} / ${Wv(t)})`}),r(n,i)}),n},Rj=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=ou(t)?{[`--Grid-columns${No(t.unstable_level)}`]:Wv(t)}:{"--Grid-columns":12};return La(e.breakpoints,t.columns,(r,o)=>{r(n,{[`--Grid-columns${No(t.unstable_level)}`]:o})}),n},Tj=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=Fv(t),r=ou(t)?{[`--Grid-rowSpacing${No(t.unstable_level)}`]:n("row")}:{};return La(e.breakpoints,t.rowSpacing,(o,i)=>{var s;o(r,{[`--Grid-rowSpacing${No(t.unstable_level)}`]:typeof i=="string"?i:(s=e.spacing)==null?void 0:s.call(e,i)})}),r},Ej=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=Fv(t),r=ou(t)?{[`--Grid-columnSpacing${No(t.unstable_level)}`]:n("column")}:{};return La(e.breakpoints,t.columnSpacing,(o,i)=>{var s;o(r,{[`--Grid-columnSpacing${No(t.unstable_level)}`]:typeof i=="string"?i:(s=e.spacing)==null?void 0:s.call(e,i)})}),r},Pj=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return La(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},Ij=({ownerState:e})=>{const t=qA(e),n=Fv(e);return A({minWidth:0,boxSizing:"border-box"},e.container&&A({display:"flex",flexWrap:"wrap"},e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||ou(e))&&A({padding:`calc(${n("row")} / 2) calc(${n("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${n("row")} 0px 0px ${n("column")}`}))},_j=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},jj=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([o,i])=>{n(i)&&r.push(`spacing-${o}-${String(i)}`)}),r}return[]},Mj=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],Oj=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],$j=ys(),Nj=Dv("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function Lj(e){return zv({props:e,name:"MuiGrid",defaultTheme:$j})}function Dj(e={}){const{createStyledComponent:t=Nj,useThemeProps:n=Lj,componentName:r="MuiGrid"}=e,o=b.createContext(void 0),i=(l,c)=>{const{container:u,direction:d,spacing:p,wrap:h,gridSize:v}=l,m={root:["root",u&&"container",h!=="wrap"&&`wrap-xs-${String(h)}`,...Mj(d),..._j(v),...u?jj(p,c.breakpoints.keys[0]):[]]};return we(m,C=>be(r,C),{})},s=t(Rj,Ej,Tj,Aj,Pj,Ij,kj),a=b.forwardRef(function(c,u){var d,p,h,v,m,C,g,y;const x=nu(),w=n(c),S=ru(w),T=b.useContext(o),{className:R,children:P,columns:_=12,container:k=!1,component:E="div",direction:M="row",wrap:$="wrap",spacing:O=0,rowSpacing:z=O,columnSpacing:L=O,disableEqualOverflow:D,unstable_level:j=0}=S,N=H(S,Oj);let W=D;j&&D!==void 0&&(W=c.disableEqualOverflow);const se={},ae={},Re={};Object.entries(N).forEach(([ge,Ae])=>{x.breakpoints.values[ge]!==void 0?se[ge]=Ae:x.breakpoints.values[ge.replace("Offset","")]!==void 0?ae[ge.replace("Offset","")]=Ae:Re[ge]=Ae});const Y=(d=c.columns)!=null?d:j?void 0:_,ce=(p=c.spacing)!=null?p:j?void 0:O,G=(h=(v=c.rowSpacing)!=null?v:c.spacing)!=null?h:j?void 0:z,fe=(m=(C=c.columnSpacing)!=null?C:c.spacing)!=null?m:j?void 0:L,pe=A({},S,{level:j,columns:Y,container:k,direction:M,wrap:$,spacing:ce,rowSpacing:G,columnSpacing:fe,gridSize:se,gridOffset:ae,disableEqualOverflow:(g=(y=W)!=null?y:T)!=null?g:!1,parentDisableEqualOverflow:T}),me=i(pe,x);let Oe=f.jsx(s,A({ref:u,as:E,ownerState:pe,className:Z(me.root,R)},Re,{children:b.Children.map(P,ge=>{if(b.isValidElement(ge)&&sa(ge,["Grid"])){var Ae;return b.cloneElement(ge,{unstable_level:(Ae=ge.props.unstable_level)!=null?Ae:j+1})}return ge})}));return W!==void 0&&W!==(T??!1)&&(Oe=f.jsx(o.Provider,{value:W,children:Oe})),Oe});return a.muiName="Grid",a}const zj=["component","direction","spacing","divider","children","className","useFlexGap"],Bj=ys(),Fj=Dv("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Wj(e){return zv({props:e,name:"MuiStack",defaultTheme:Bj})}function Vj(e,t){const n=b.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Hj=({ownerState:e,theme:t})=>{let n=A({display:"flex",flexDirection:"column"},Fr({theme:t},Qh({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=Mv(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=Qh({values:e.direction,base:o}),s=Qh({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const p=c>0?i[u[c-1]]:"column";i[l]=p}}),n=vn(n,Fr({theme:t},s,(l,c)=>e.useFlexGap?{gap:us(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Uj(c?i[c]:e.direction)}`]:us(r,l)}}))}return n=jI(t.breakpoints,n),n};function Gj(e={}){const{createStyledComponent:t=Fj,useThemeProps:n=Wj,componentName:r="MuiStack"}=e,o=()=>we({root:["root"]},l=>be(r,l),{}),i=t(Hj);return b.forwardRef(function(l,c){const u=n(l),d=ru(u),{component:p="div",direction:h="column",spacing:v=0,divider:m,children:C,className:g,useFlexGap:y=!1}=d,x=H(d,zj),w={direction:h,spacing:v,useFlexGap:y},S=o();return f.jsx(i,A({as:p,ownerState:w,ref:c,className:Z(S.root,g)},x,{children:m?Vj(C,m):C}))})}function Se(e){return gj(e)}var iu={},QA={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(QA);var Sn=QA.exports,Yh={exports:{}},Jx;function qj(){return Jx||(Jx=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.includes(i))continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Yh)),Yh.exports}const KA=zo(TI),Qj=zo(EI),Kj=zo(OI),Zj=zo(L_),Yj=zo(w_),Xj=zo(E_);var Da=Sn;Object.defineProperty(iu,"__esModule",{value:!0});var Jj=iu.default=fM;iu.shouldForwardProp=bd;iu.systemDefaultTheme=void 0;var ir=Da(EA()),Kg=Da(qj()),eb=sM(KA),eM=Qj;Da(Kj);Da(Zj);var tM=Da(Yj),nM=Da(Xj);const rM=["ownerState"],oM=["variants"],iM=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ZA(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(ZA=function(r){return r?n:t})(e)}function sM(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=ZA(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function aM(e){return Object.keys(e).length===0}function lM(e){return typeof e=="string"&&e.charCodeAt(0)>96}function bd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const cM=iu.systemDefaultTheme=(0,tM.default)(),uM=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function zu({defaultTheme:e,theme:t,themeId:n}){return aM(t)?e:t[n]||t}function dM(e){return e?(t,n)=>n[e]:null}function wd(e,t){let{ownerState:n}=t,r=(0,Kg.default)(t,rM);const o=typeof e=="function"?e((0,ir.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>wd(i,(0,ir.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=(0,Kg.default)(o,oM);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props((0,ir.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(u=>{(n==null?void 0:n[u])!==l.props[u]&&r[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,ir.default)({ownerState:n},r,n)):l.style))}),a}return o}function fM(e={}){const{themeId:t,defaultTheme:n=cM,rootShouldForwardProp:r=bd,slotShouldForwardProp:o=bd}=e,i=s=>(0,nM.default)((0,ir.default)({},s,{theme:zu((0,ir.default)({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{(0,eb.internal_processStyles)(s,S=>S.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:p=dM(uM(c))}=a,h=(0,Kg.default)(a,iM),v=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,m=d||!1;let C,g=bd;c==="Root"||c==="root"?g=r:c?g=o:lM(s)&&(g=void 0);const y=(0,eb.default)(s,(0,ir.default)({shouldForwardProp:g,label:C},h)),x=S=>typeof S=="function"&&S.__emotion_real!==S||(0,eM.isPlainObject)(S)?T=>wd(S,(0,ir.default)({},T,{theme:zu({theme:T.theme,defaultTheme:n,themeId:t})})):S,w=(S,...T)=>{let R=x(S);const P=T?T.map(x):[];l&&p&&P.push(E=>{const M=zu((0,ir.default)({},E,{defaultTheme:n,themeId:t}));if(!M.components||!M.components[l]||!M.components[l].styleOverrides)return null;const $=M.components[l].styleOverrides,O={};return Object.entries($).forEach(([z,L])=>{O[z]=wd(L,(0,ir.default)({},E,{theme:M}))}),p(E,O)}),l&&!v&&P.push(E=>{var M;const $=zu((0,ir.default)({},E,{defaultTheme:n,themeId:t})),O=$==null||(M=$.components)==null||(M=M[l])==null?void 0:M.variants;return wd({variants:O},(0,ir.default)({},E,{theme:$}))}),m||P.push(i);const _=P.length-T.length;if(Array.isArray(S)&&_>0){const E=new Array(_).fill("");R=[...S,...E],R.raw=[...S.raw,...E]}const k=y(R,...P);return s.muiName&&(k.muiName=s.muiName),k};return y.withConfig&&(w.withConfig=y.withConfig),w}}function pM(e,t){return A({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Lt={};const hM=zo(A3),mM=zo(K_);var YA=Sn;Object.defineProperty(Lt,"__esModule",{value:!0});var Ye=Lt.alpha=tk;Lt.blend=TM;Lt.colorChannel=void 0;var Ec=Lt.darken=Uv;Lt.decomposeColor=yr;var gM=Lt.emphasize=nk,vM=Lt.getContrastRatio=CM;Lt.getLuminance=pf;Lt.hexToRgb=XA;Lt.hslToRgb=ek;var Pc=Lt.lighten=Hv;Lt.private_safeAlpha=SM;Lt.private_safeColorChannel=void 0;Lt.private_safeDarken=AM;Lt.private_safeEmphasize=RM;Lt.private_safeLighten=kM;Lt.recomposeColor=za;Lt.rgbToHex=wM;var tb=YA(hM),yM=YA(mM);function Vv(e,t=0,n=1){return(0,yM.default)(e,t,n)}function XA(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function xM(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function yr(e){if(e.type)return e;if(e.charAt(0)==="#")return yr(XA(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,tb.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,tb.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const JA=e=>{const t=yr(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Lt.colorChannel=JA;const bM=(e,t)=>{try{return JA(e)}catch{return e}};Lt.private_safeColorChannel=bM;function za(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function wM(e){if(e.indexOf("#")===0)return e;const{values:t}=yr(e);return`#${t.map((n,r)=>xM(r===3?Math.round(255*n):n)).join("")}`}function ek(e){e=yr(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(c,u=(c+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),za({type:a,values:l})}function pf(e){e=yr(e);let t=e.type==="hsl"||e.type==="hsla"?yr(ek(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function CM(e,t){const n=pf(e),r=pf(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function tk(e,t){return e=yr(e),t=Vv(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,za(e)}function SM(e,t,n){try{return tk(e,t)}catch{return e}}function Uv(e,t){if(e=yr(e),t=Vv(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 n=0;n<3;n+=1)e.values[n]*=1-t;return za(e)}function AM(e,t,n){try{return Uv(e,t)}catch{return e}}function Hv(e,t){if(e=yr(e),t=Vv(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return za(e)}function kM(e,t,n){try{return Hv(e,t)}catch{return e}}function nk(e,t=.15){return pf(e)>.5?Uv(e,t):Hv(e,t)}function RM(e,t,n){try{return nk(e,t)}catch{return e}}function TM(e,t,n,r=1){const o=(l,c)=>Math.round((l**(1/r)*(1-n)+c**(1/r)*n)**r),i=yr(e),s=yr(t),a=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return za({type:"rgb",values:a})}const Ic={black:"#000",white:"#fff"},EM={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"},Ss={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"},As={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"},tl={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"},ks={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"},Rs={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"},Ts={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"},PM=["mode","contrastThreshold","tonalOffset"],nb={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:Ic.white,default:Ic.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}},Xh={text:{primary:Ic.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:Ic.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 rb(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Pc(e.main,o):t==="dark"&&(e.dark=Ec(e.main,i)))}function IM(e="light"){return e==="dark"?{main:ks[200],light:ks[50],dark:ks[400]}:{main:ks[700],light:ks[400],dark:ks[800]}}function _M(e="light"){return e==="dark"?{main:Ss[200],light:Ss[50],dark:Ss[400]}:{main:Ss[500],light:Ss[300],dark:Ss[700]}}function jM(e="light"){return e==="dark"?{main:As[500],light:As[300],dark:As[700]}:{main:As[700],light:As[400],dark:As[800]}}function MM(e="light"){return e==="dark"?{main:Rs[400],light:Rs[300],dark:Rs[700]}:{main:Rs[700],light:Rs[500],dark:Rs[900]}}function OM(e="light"){return e==="dark"?{main:Ts[400],light:Ts[300],dark:Ts[700]}:{main:Ts[800],light:Ts[500],dark:Ts[900]}}function $M(e="light"){return e==="dark"?{main:tl[400],light:tl[300],dark:tl[700]}:{main:"#ed6c02",light:tl[500],dark:tl[900]}}function NM(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=H(e,PM),i=e.primary||IM(t),s=e.secondary||_M(t),a=e.error||jM(t),l=e.info||MM(t),c=e.success||OM(t),u=e.warning||$M(t);function d(m){return vM(m,Xh.text.primary)>=n?Xh.text.primary:nb.text.primary}const p=({color:m,name:C,mainShade:g=500,lightShade:y=300,darkShade:x=700})=>{if(m=A({},m),!m.main&&m[g]&&(m.main=m[g]),!m.hasOwnProperty("main"))throw new Error(cs(11,C?` (${C})`:"",g));if(typeof m.main!="string")throw new Error(cs(12,C?` (${C})`:"",JSON.stringify(m.main)));return rb(m,"light",y,r),rb(m,"dark",x,r),m.contrastText||(m.contrastText=d(m.main)),m},h={dark:Xh,light:nb};return vn(A({common:A({},Ic),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:a,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:EM,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},h[t]),o)}const LM=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function DM(e){return Math.round(e*1e5)/1e5}const ob={textTransform:"uppercase"},ib='"Roboto", "Helvetica", "Arial", sans-serif';function zM(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=ib,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=H(n,LM),h=o/14,v=d||(g=>`${g/c*h}rem`),m=(g,y,x,w,S)=>A({fontFamily:r,fontWeight:g,fontSize:v(y),lineHeight:x},r===ib?{letterSpacing:`${DM(w/y)}em`}:{},S,u),C={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(s,48,1.167,0),h4:m(s,34,1.235,.25),h5:m(s,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(s,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(s,16,1.5,.15),body2:m(s,14,1.43,.15),button:m(a,14,1.75,.4,ob),caption:m(s,12,1.66,.4),overline:m(s,12,2.66,1,ob),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return vn(A({htmlFontSize:c,pxToRem:v,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},C),p,{clone:!1})}const BM=.2,FM=.14,WM=.12;function Ct(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${BM})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${FM})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${WM})`].join(",")}const VM=["none",Ct(0,2,1,-1,0,1,1,0,0,1,3,0),Ct(0,3,1,-2,0,2,2,0,0,1,5,0),Ct(0,3,3,-2,0,3,4,0,0,1,8,0),Ct(0,2,4,-1,0,4,5,0,0,1,10,0),Ct(0,3,5,-1,0,5,8,0,0,1,14,0),Ct(0,3,5,-1,0,6,10,0,0,1,18,0),Ct(0,4,5,-2,0,7,10,1,0,2,16,1),Ct(0,5,5,-3,0,8,10,1,0,3,14,2),Ct(0,5,6,-3,0,9,12,1,0,3,16,2),Ct(0,6,6,-3,0,10,14,1,0,4,18,3),Ct(0,6,7,-4,0,11,15,1,0,4,20,3),Ct(0,7,8,-4,0,12,17,2,0,5,22,4),Ct(0,7,8,-4,0,13,19,2,0,5,24,4),Ct(0,7,9,-4,0,14,21,2,0,5,26,4),Ct(0,8,9,-5,0,15,22,2,0,6,28,5),Ct(0,8,10,-5,0,16,24,2,0,6,30,5),Ct(0,8,11,-5,0,17,26,2,0,6,32,5),Ct(0,9,11,-5,0,18,28,2,0,7,34,6),Ct(0,9,12,-6,0,19,29,2,0,7,36,6),Ct(0,10,13,-6,0,20,31,3,0,8,38,7),Ct(0,10,13,-6,0,21,33,3,0,8,40,7),Ct(0,10,14,-6,0,22,35,3,0,8,42,7),Ct(0,11,14,-7,0,23,36,3,0,9,44,8),Ct(0,11,15,-7,0,24,38,3,0,9,46,8)],UM=["duration","easing","delay"],HM={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)"},rk={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function sb(e){return`${Math.round(e)}ms`}function GM(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function qM(e){const t=A({},HM,e.easing),n=A({},rk,e.duration);return A({getAutoHeightDuration:GM,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=i;return H(i,UM),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof s=="string"?s:sb(s)} ${a} ${typeof l=="string"?l:sb(l)}`).join(",")}},e,{easing:t,duration:n})}const QM={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},KM=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ok(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=H(e,KM);if(e.vars)throw new Error(cs(18));const a=NM(r),l=ys(e);let c=vn(l,{mixins:pM(l.breakpoints,n),palette:a,shadows:VM.slice(),typography:zM(a,i),transitions:qM(o),zIndex:A({},QM)});return c=vn(c,s),c=t.reduce((u,d)=>vn(u,d),c),c.unstable_sxConfig=A({},tu,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return Na({sx:d,theme:this})},c}const Gv=ok(),Ep="$$material";function ik(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const zn=e=>ik(e)&&e!=="classes",V=Jj({themeId:Ep,defaultTheme:Gv,rootShouldForwardProp:zn});function ZM(e){return be("MuiCircularProgress",e)}Ce("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const YM=["className","color","disableShrink","size","style","thickness","value","variant"];let Pp=e=>e,ab,lb,cb,ub;const Qo=44,XM=$a(ab||(ab=Pp` + */var Hv=Symbol.for("react.element"),Gv=Symbol.for("react.portal"),bp=Symbol.for("react.fragment"),wp=Symbol.for("react.strict_mode"),Sp=Symbol.for("react.profiler"),Cp=Symbol.for("react.provider"),Ap=Symbol.for("react.context"),uj=Symbol.for("react.server_context"),kp=Symbol.for("react.forward_ref"),Rp=Symbol.for("react.suspense"),Ep=Symbol.for("react.suspense_list"),Tp=Symbol.for("react.memo"),Pp=Symbol.for("react.lazy"),dj=Symbol.for("react.offscreen"),sk;sk=Symbol.for("react.module.reference");function Ar(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Hv:switch(e=e.type,e){case bp:case Sp:case wp:case Rp:case Ep:return e;default:switch(e=e&&e.$$typeof,e){case uj:case Ap:case kp:case Pp:case Tp:case Cp:return e;default:return t}}case Gv:return t}}}ut.ContextConsumer=Ap;ut.ContextProvider=Cp;ut.Element=Hv;ut.ForwardRef=kp;ut.Fragment=bp;ut.Lazy=Pp;ut.Memo=Tp;ut.Portal=Gv;ut.Profiler=Sp;ut.StrictMode=wp;ut.Suspense=Rp;ut.SuspenseList=Ep;ut.isAsyncMode=function(){return!1};ut.isConcurrentMode=function(){return!1};ut.isContextConsumer=function(e){return Ar(e)===Ap};ut.isContextProvider=function(e){return Ar(e)===Cp};ut.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Hv};ut.isForwardRef=function(e){return Ar(e)===kp};ut.isFragment=function(e){return Ar(e)===bp};ut.isLazy=function(e){return Ar(e)===Pp};ut.isMemo=function(e){return Ar(e)===Tp};ut.isPortal=function(e){return Ar(e)===Gv};ut.isProfiler=function(e){return Ar(e)===Sp};ut.isStrictMode=function(e){return Ar(e)===wp};ut.isSuspense=function(e){return Ar(e)===Rp};ut.isSuspenseList=function(e){return Ar(e)===Ep};ut.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===bp||e===Sp||e===wp||e===Rp||e===Ep||e===dj||typeof e=="object"&&e!==null&&(e.$$typeof===Pp||e.$$typeof===Tp||e.$$typeof===Cp||e.$$typeof===Ap||e.$$typeof===kp||e.$$typeof===sk||e.getModuleId!==void 0)};ut.typeOf=Ar;ik.exports=ut;var ib=ik.exports;const fj=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ak(e){const t=`${e}`.match(fj);return t&&t[1]||""}function lk(e,t=""){return e.displayName||e.name||ak(e)||t}function sb(e,t,n){const r=lk(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function pj(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return lk(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ib.ForwardRef:return sb(e,e.render,"ForwardRef");case ib.Memo:return sb(e,e.type,"memo");default:return}}}const hj=Object.freeze(Object.defineProperty({__proto__:null,default:pj,getFunctionName:ak},Symbol.toStringTag,{value:"Module"})),mj=["ownerState"],gj=["variants"],vj=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function yj(e){return Object.keys(e).length===0}function xj(e){return typeof e=="string"&&e.charCodeAt(0)>96}function nm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const bj=ws(),wj=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Fu({defaultTheme:e,theme:t,themeId:n}){return yj(t)?e:t[n]||t}function Sj(e){return e?(t,n)=>n[e]:null}function Cd(e,t){let{ownerState:n}=t,r=G(t,mj);const o=typeof e=="function"?e(A({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Cd(i,A({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=G(o,gj);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props(A({ownerState:n},r,n)):Object.keys(l.props).forEach(u=>{(n==null?void 0:n[u])!==l.props[u]&&r[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style(A({ownerState:n},r,n)):l.style))}),a}return o}function Cj(e={}){const{themeId:t,defaultTheme:n=bj,rootShouldForwardProp:r=nm,slotShouldForwardProp:o=nm}=e,i=s=>za(A({},s,{theme:Fu(A({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{YA(s,C=>C.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:p=Sj(wj(c))}=a,h=G(a,vj),v=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,m=d||!1;let w,g=nm;c==="Root"||c==="root"?g=r:c?g=o:xj(s)&&(g=void 0);const y=Dv(s,A({shouldForwardProp:g,label:w},h)),x=C=>typeof C=="function"&&C.__emotion_real!==C||Po(C)?E=>Cd(C,A({},E,{theme:Fu({theme:E.theme,defaultTheme:n,themeId:t})})):C,S=(C,...E)=>{let k=x(C);const P=E?E.map(x):[];l&&p&&P.push(T=>{const M=Fu(A({},T,{defaultTheme:n,themeId:t}));if(!M.components||!M.components[l]||!M.components[l].styleOverrides)return null;const $=M.components[l].styleOverrides,O={};return Object.entries($).forEach(([z,N])=>{O[z]=Cd(N,A({},T,{theme:M}))}),p(T,O)}),l&&!v&&P.push(T=>{var M;const $=Fu(A({},T,{defaultTheme:n,themeId:t})),O=$==null||(M=$.components)==null||(M=M[l])==null?void 0:M.variants;return Cd({variants:O},A({},T,{theme:$}))}),m||P.push(i);const _=P.length-E.length;if(Array.isArray(C)&&_>0){const T=new Array(_).fill("");k=[...C,...T],k.raw=[...C.raw,...T]}const R=y(k,...P);return s.muiName&&(R.muiName=s.muiName),R};return y.withConfig&&(S.withConfig=y.withConfig),S}}const qv=Cj();function Tc(e,t){const n=A({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=A({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=A({},i),Object.keys(o).forEach(s=>{n[r][s]=Tc(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Aj(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Tc(t.components[n].defaultProps,r)}function Qv({props:e,name:t,defaultTheme:n,themeId:r}){let o=ou(n);return r&&(o=o[r]||o),Aj({theme:o,name:t,props:e})}const Ur=typeof window<"u"?b.useLayoutEffect:b.useEffect;function kj(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Rj=Object.freeze(Object.defineProperty({__proto__:null,default:kj},Symbol.toStringTag,{value:"Module"}));function t0(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Kv(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Ej(e,t){return()=>null}function ca(e,t){var n,r;return b.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Gt(e){return e&&e.ownerDocument||document}function Pi(e){return Gt(e).defaultView||window}function Tj(e,t){return()=>null}function Pc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let ab=0;function Pj(e){const[t,n]=b.useState(e),r=e||t;return b.useEffect(()=>{t==null&&(ab+=1,n(`mui-${ab}`))},[t]),r}const lb=Bm.useId;function Ip(e){if(lb!==void 0){const t=lb();return e??t}return Pj(e)}function Ij(e,t,n,r,o){return null}function bi({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=b.useRef(e!==void 0),[i,s]=b.useState(t),a=o?e:i,l=b.useCallback(c=>{o||s(c)},[]);return[a,l]}function jn(e){const t=b.useRef(e);return Ur(()=>{t.current=e}),b.useRef((...n)=>(0,t.current)(...n)).current}function Pt(...e){return b.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Pc(n,t)})},e)}const cb={};function _j(e,t){const n=b.useRef(cb);return n.current===cb&&(n.current=e(t)),n}const jj=[];function Mj(e){b.useEffect(e,jj)}class _p{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new _p}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function jp(){const e=_j(_p.create).current;return Mj(e.disposeEffect),e}let Mp=!0,n0=!1;const Oj=new _p,$j={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Lj(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&$j[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Nj(e){e.metaKey||e.altKey||e.ctrlKey||(Mp=!0)}function rm(){Mp=!1}function Dj(){this.visibilityState==="hidden"&&n0&&(Mp=!0)}function zj(e){e.addEventListener("keydown",Nj,!0),e.addEventListener("mousedown",rm,!0),e.addEventListener("pointerdown",rm,!0),e.addEventListener("touchstart",rm,!0),e.addEventListener("visibilitychange",Dj,!0)}function Bj(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Mp||Lj(t)}function ck(){const e=b.useCallback(o=>{o!=null&&zj(o.ownerDocument)},[]),t=b.useRef(!1);function n(){return t.current?(n0=!0,Oj.start(100,()=>{n0=!1}),t.current=!1,!0):!1}function r(o){return Bj(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function uk(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Fj=e=>{const t=b.useRef({});return b.useEffect(()=>{t.current=e}),t.current};function mf(e){return typeof e=="string"}function dk(e,t,n){return e===void 0||mf(e)?t:A({},t,{ownerState:A({},t.ownerState,n)})}function gf(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function ub(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function fk(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const h=Z(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),v=A({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=A({},n,o,r);return h.length>0&&(m.className=h),Object.keys(v).length>0&&(m.style=v),{props:m,internalRef:void 0}}const s=gf(A({},o,r)),a=ub(r),l=ub(o),c=t(s),u=Z(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=A({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=A({},c,n,l,a);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}function pk(e,t,n){return typeof e=="function"?e(t,n):e}const Wj=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ii(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=G(e,Wj),a=i?{}:pk(r,o),{props:l,internalRef:c}=fk(A({},s,{externalSlotProps:a})),u=Pt(c,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return dk(n,A({},l,{ref:u}),o)}const Vj=b.createContext(),Uj=()=>{const e=b.useContext(Vj);return e??!1},Hj=b.createContext(void 0);function Gj(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Tc(o.defaultProps,r):!o.styleOverrides&&!o.variants?Tc(o,r):r}function qj({props:e,name:t}){const n=b.useContext(Hj);return Gj({props:e,name:t,theme:{components:n}})}const Qj=["className","component","disableGutters","fixed","maxWidth","classes"],Kj=ws(),Zj=qv("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${U(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),Yj=e=>Qv({props:e,name:"MuiContainer",defaultTheme:Kj}),Xj=(e,t)=>{const n=l=>be(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:s}=e,a={root:["root",s&&`maxWidth${U(String(s))}`,o&&"fixed",i&&"disableGutters"]};return we(a,n,r)};function Jj(e={}){const{createStyledComponent:t=Zj,useThemeProps:n=Yj,componentName:r="MuiContainer"}=e,o=t(({theme:s,ownerState:a})=>A({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!a.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}),({theme:s,ownerState:a})=>a.fixed&&Object.keys(s.breakpoints.values).reduce((l,c)=>{const u=c,d=s.breakpoints.values[u];return d!==0&&(l[s.breakpoints.up(u)]={maxWidth:`${d}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:a})=>A({},a.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},a.maxWidth&&a.maxWidth!=="xs"&&{[s.breakpoints.up(a.maxWidth)]:{maxWidth:`${s.breakpoints.values[a.maxWidth]}${s.breakpoints.unit}`}}));return b.forwardRef(function(a,l){const c=n(a),{className:u,component:d="div",disableGutters:p=!1,fixed:h=!1,maxWidth:v="lg"}=c,m=G(c,Qj),w=A({},c,{component:d,disableGutters:p,fixed:h,maxWidth:v}),g=Xj(w,r);return f.jsx(o,A({as:d,ownerState:w,className:Z(g.root,u),ref:l},m))})}const eM=(e,t)=>e.filter(n=>t.includes(n)),Ba=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,i)=>{n((s,a)=>{i<=e.keys.length-1&&(i===0?Object.assign(s,a):s[e.up(e.keys[i])]=a)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:eM(e.keys,Object.keys(t))).forEach(i=>{if(e.keys.indexOf(i)!==-1){const s=t[i];s!==void 0&&n((a,l)=>{r===i?Object.assign(a,l):a[e.up(i)]=l},s)}}):(typeof t=="number"||typeof t=="string")&&n((o,i)=>{Object.assign(o,i)},t)};function zo(e){return e?`Level${e}`:""}function su(e){return e.unstable_level>0&&e.container}function hk(e){return function(n){return`var(--Grid-${n}Spacing${zo(e.unstable_level)})`}}function Zv(e){return function(n){return e.unstable_level===0?`var(--Grid-${n}Spacing)`:`var(--Grid-${n}Spacing${zo(e.unstable_level-1)})`}}function Yv(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${zo(e.unstable_level-1)})`}const tM=({theme:e,ownerState:t})=>{const n=hk(t),r={};return Ba(e.breakpoints,t.gridSize,(o,i)=>{let s={};i===!0&&(s={flexBasis:0,flexGrow:1,maxWidth:"100%"}),i==="auto"&&(s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof i=="number"&&(s={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${i} / ${Yv(t)}${su(t)?` + ${n("column")}`:""})`}),o(r,s)}),r},nM=({theme:e,ownerState:t})=>{const n={};return Ba(e.breakpoints,t.gridOffset,(r,o)=>{let i={};o==="auto"&&(i={marginLeft:"auto"}),typeof o=="number"&&(i={marginLeft:o===0?"0px":`calc(100% * ${o} / ${Yv(t)})`}),r(n,i)}),n},rM=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=su(t)?{[`--Grid-columns${zo(t.unstable_level)}`]:Yv(t)}:{"--Grid-columns":12};return Ba(e.breakpoints,t.columns,(r,o)=>{r(n,{[`--Grid-columns${zo(t.unstable_level)}`]:o})}),n},oM=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=Zv(t),r=su(t)?{[`--Grid-rowSpacing${zo(t.unstable_level)}`]:n("row")}:{};return Ba(e.breakpoints,t.rowSpacing,(o,i)=>{var s;o(r,{[`--Grid-rowSpacing${zo(t.unstable_level)}`]:typeof i=="string"?i:(s=e.spacing)==null?void 0:s.call(e,i)})}),r},iM=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=Zv(t),r=su(t)?{[`--Grid-columnSpacing${zo(t.unstable_level)}`]:n("column")}:{};return Ba(e.breakpoints,t.columnSpacing,(o,i)=>{var s;o(r,{[`--Grid-columnSpacing${zo(t.unstable_level)}`]:typeof i=="string"?i:(s=e.spacing)==null?void 0:s.call(e,i)})}),r},sM=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Ba(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},aM=({ownerState:e})=>{const t=hk(e),n=Zv(e);return A({minWidth:0,boxSizing:"border-box"},e.container&&A({display:"flex",flexWrap:"wrap"},e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||su(e))&&A({padding:`calc(${n("row")} / 2) calc(${n("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${n("row")} 0px 0px ${n("column")}`}))},lM=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},cM=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([o,i])=>{n(i)&&r.push(`spacing-${o}-${String(i)}`)}),r}return[]},uM=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],dM=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],fM=ws(),pM=qv("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function hM(e){return Qv({props:e,name:"MuiGrid",defaultTheme:fM})}function mM(e={}){const{createStyledComponent:t=pM,useThemeProps:n=hM,componentName:r="MuiGrid"}=e,o=b.createContext(void 0),i=(l,c)=>{const{container:u,direction:d,spacing:p,wrap:h,gridSize:v}=l,m={root:["root",u&&"container",h!=="wrap"&&`wrap-xs-${String(h)}`,...uM(d),...lM(v),...u?cM(p,c.breakpoints.keys[0]):[]]};return we(m,w=>be(r,w),{})},s=t(rM,iM,oM,tM,sM,aM,nM),a=b.forwardRef(function(c,u){var d,p,h,v,m,w,g,y;const x=ou(),S=n(c),C=iu(S),E=b.useContext(o),{className:k,children:P,columns:_=12,container:R=!1,component:T="div",direction:M="row",wrap:$="wrap",spacing:O=0,rowSpacing:z=O,columnSpacing:N=O,disableEqualOverflow:D,unstable_level:j=0}=C,L=G(C,dM);let W=D;j&&D!==void 0&&(W=c.disableEqualOverflow);const se={},ae={},Re={};Object.entries(L).forEach(([ve,Ae])=>{x.breakpoints.values[ve]!==void 0?se[ve]=Ae:x.breakpoints.values[ve.replace("Offset","")]!==void 0?ae[ve.replace("Offset","")]=Ae:Re[ve]=Ae});const Y=(d=c.columns)!=null?d:j?void 0:_,ce=(p=c.spacing)!=null?p:j?void 0:O,q=(h=(v=c.rowSpacing)!=null?v:c.spacing)!=null?h:j?void 0:z,fe=(m=(w=c.columnSpacing)!=null?w:c.spacing)!=null?m:j?void 0:N,pe=A({},C,{level:j,columns:Y,container:R,direction:M,wrap:$,spacing:ce,rowSpacing:q,columnSpacing:fe,gridSize:se,gridOffset:ae,disableEqualOverflow:(g=(y=W)!=null?y:E)!=null?g:!1,parentDisableEqualOverflow:E}),ge=i(pe,x);let Oe=f.jsx(s,A({ref:u,as:T,ownerState:pe,className:Z(ge.root,k)},Re,{children:b.Children.map(P,ve=>{if(b.isValidElement(ve)&&ca(ve,["Grid"])){var Ae;return b.cloneElement(ve,{unstable_level:(Ae=ve.props.unstable_level)!=null?Ae:j+1})}return ve})}));return W!==void 0&&W!==(E??!1)&&(Oe=f.jsx(o.Provider,{value:W,children:Oe})),Oe});return a.muiName="Grid",a}const gM=["component","direction","spacing","divider","children","className","useFlexGap"],vM=ws(),yM=qv("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function xM(e){return Qv({props:e,name:"MuiStack",defaultTheme:vM})}function bM(e,t){const n=b.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],SM=({ownerState:e,theme:t})=>{let n=A({display:"flex",flexDirection:"column"},Vr({theme:t},tm({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=Wv(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=tm({values:e.direction,base:o}),s=tm({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const p=c>0?i[u[c-1]]:"column";i[l]=p}}),n=yn(n,Vr({theme:t},s,(l,c)=>e.useFlexGap?{gap:hs(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${wM(c?i[c]:e.direction)}`]:hs(r,l)}}))}return n=c_(t.breakpoints,n),n};function CM(e={}){const{createStyledComponent:t=yM,useThemeProps:n=xM,componentName:r="MuiStack"}=e,o=()=>we({root:["root"]},l=>be(r,l),{}),i=t(SM);return b.forwardRef(function(l,c){const u=n(l),d=iu(u),{component:p="div",direction:h="column",spacing:v=0,divider:m,children:w,className:g,useFlexGap:y=!1}=d,x=G(d,gM),S={direction:h,spacing:v,useFlexGap:y},C=o();return f.jsx(i,A({as:p,ownerState:S,ref:c,className:Z(C.root,g)},x,{children:m?bM(w,m):w}))})}function Ce(e){return qj(e)}var au={},mk={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(mk);var hn=mk.exports,om={exports:{}},db;function AM(){return db||(db=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.includes(i))continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(om)),om.exports}const gk=Vo(o_),kM=Vo(i_),RM=Vo(d_),EM=Vo(hj),TM=Vo(X_),PM=Vo(ij);var Fa=hn;Object.defineProperty(au,"__esModule",{value:!0});var IM=au.default=VM;au.shouldForwardProp=Ad;au.systemDefaultTheme=void 0;var ar=Fa(KA()),r0=Fa(AM()),fb=NM(gk),_M=kM;Fa(RM);Fa(EM);var jM=Fa(TM),MM=Fa(PM);const OM=["ownerState"],$M=["variants"],LM=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function vk(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(vk=function(r){return r?n:t})(e)}function NM(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=vk(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function DM(e){return Object.keys(e).length===0}function zM(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ad(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const BM=au.systemDefaultTheme=(0,jM.default)(),FM=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Wu({defaultTheme:e,theme:t,themeId:n}){return DM(t)?e:t[n]||t}function WM(e){return e?(t,n)=>n[e]:null}function kd(e,t){let{ownerState:n}=t,r=(0,r0.default)(t,OM);const o=typeof e=="function"?e((0,ar.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>kd(i,(0,ar.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=(0,r0.default)(o,$M);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props((0,ar.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(u=>{(n==null?void 0:n[u])!==l.props[u]&&r[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,ar.default)({ownerState:n},r,n)):l.style))}),a}return o}function VM(e={}){const{themeId:t,defaultTheme:n=BM,rootShouldForwardProp:r=Ad,slotShouldForwardProp:o=Ad}=e,i=s=>(0,MM.default)((0,ar.default)({},s,{theme:Wu((0,ar.default)({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{(0,fb.internal_processStyles)(s,C=>C.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:p=WM(FM(c))}=a,h=(0,r0.default)(a,LM),v=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,m=d||!1;let w,g=Ad;c==="Root"||c==="root"?g=r:c?g=o:zM(s)&&(g=void 0);const y=(0,fb.default)(s,(0,ar.default)({shouldForwardProp:g,label:w},h)),x=C=>typeof C=="function"&&C.__emotion_real!==C||(0,_M.isPlainObject)(C)?E=>kd(C,(0,ar.default)({},E,{theme:Wu({theme:E.theme,defaultTheme:n,themeId:t})})):C,S=(C,...E)=>{let k=x(C);const P=E?E.map(x):[];l&&p&&P.push(T=>{const M=Wu((0,ar.default)({},T,{defaultTheme:n,themeId:t}));if(!M.components||!M.components[l]||!M.components[l].styleOverrides)return null;const $=M.components[l].styleOverrides,O={};return Object.entries($).forEach(([z,N])=>{O[z]=kd(N,(0,ar.default)({},T,{theme:M}))}),p(T,O)}),l&&!v&&P.push(T=>{var M;const $=Wu((0,ar.default)({},T,{defaultTheme:n,themeId:t})),O=$==null||(M=$.components)==null||(M=M[l])==null?void 0:M.variants;return kd({variants:O},(0,ar.default)({},T,{theme:$}))}),m||P.push(i);const _=P.length-E.length;if(Array.isArray(C)&&_>0){const T=new Array(_).fill("");k=[...C,...T],k.raw=[...C.raw,...T]}const R=y(k,...P);return s.muiName&&(R.muiName=s.muiName),R};return y.withConfig&&(S.withConfig=y.withConfig),S}}function UM(e,t){return A({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Nt={};const HM=Vo(t3),GM=Vo(Rj);var yk=hn;Object.defineProperty(Nt,"__esModule",{value:!0});var Ye=Nt.alpha=Sk;Nt.blend=oO;Nt.colorChannel=void 0;var Ic=Nt.darken=Jv;Nt.decomposeColor=br;var qM=Nt.emphasize=Ck,QM=Nt.getContrastRatio=JM;Nt.getLuminance=vf;Nt.hexToRgb=xk;Nt.hslToRgb=wk;var _c=Nt.lighten=ey;Nt.private_safeAlpha=eO;Nt.private_safeColorChannel=void 0;Nt.private_safeDarken=tO;Nt.private_safeEmphasize=rO;Nt.private_safeLighten=nO;Nt.recomposeColor=Wa;Nt.rgbToHex=XM;var pb=yk(HM),KM=yk(GM);function Xv(e,t=0,n=1){return(0,KM.default)(e,t,n)}function xk(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function ZM(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function br(e){if(e.type)return e;if(e.charAt(0)==="#")return br(xk(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,pb.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,pb.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const bk=e=>{const t=br(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Nt.colorChannel=bk;const YM=(e,t)=>{try{return bk(e)}catch{return e}};Nt.private_safeColorChannel=YM;function Wa(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function XM(e){if(e.indexOf("#")===0)return e;const{values:t}=br(e);return`#${t.map((n,r)=>ZM(r===3?Math.round(255*n):n)).join("")}`}function wk(e){e=br(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(c,u=(c+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),Wa({type:a,values:l})}function vf(e){e=br(e);let t=e.type==="hsl"||e.type==="hsla"?br(wk(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function JM(e,t){const n=vf(e),r=vf(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Sk(e,t){return e=br(e),t=Xv(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Wa(e)}function eO(e,t,n){try{return Sk(e,t)}catch{return e}}function Jv(e,t){if(e=br(e),t=Xv(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 n=0;n<3;n+=1)e.values[n]*=1-t;return Wa(e)}function tO(e,t,n){try{return Jv(e,t)}catch{return e}}function ey(e,t){if(e=br(e),t=Xv(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Wa(e)}function nO(e,t,n){try{return ey(e,t)}catch{return e}}function Ck(e,t=.15){return vf(e)>.5?Jv(e,t):ey(e,t)}function rO(e,t,n){try{return Ck(e,t)}catch{return e}}function oO(e,t,n,r=1){const o=(l,c)=>Math.round((l**(1/r)*(1-n)+c**(1/r)*n)**r),i=br(e),s=br(t),a=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return Wa({type:"rgb",values:a})}const jc={black:"#000",white:"#fff"},iO={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"},Rs={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"},Es={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"},rl={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"},Ts={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"},Ps={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"},Is={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"},sO=["mode","contrastThreshold","tonalOffset"],hb={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:jc.white,default:jc.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}},im={text:{primary:jc.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:jc.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 mb(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=_c(e.main,o):t==="dark"&&(e.dark=Ic(e.main,i)))}function aO(e="light"){return e==="dark"?{main:Ts[200],light:Ts[50],dark:Ts[400]}:{main:Ts[700],light:Ts[400],dark:Ts[800]}}function lO(e="light"){return e==="dark"?{main:Rs[200],light:Rs[50],dark:Rs[400]}:{main:Rs[500],light:Rs[300],dark:Rs[700]}}function cO(e="light"){return e==="dark"?{main:Es[500],light:Es[300],dark:Es[700]}:{main:Es[700],light:Es[400],dark:Es[800]}}function uO(e="light"){return e==="dark"?{main:Ps[400],light:Ps[300],dark:Ps[700]}:{main:Ps[700],light:Ps[500],dark:Ps[900]}}function dO(e="light"){return e==="dark"?{main:Is[400],light:Is[300],dark:Is[700]}:{main:Is[800],light:Is[500],dark:Is[900]}}function fO(e="light"){return e==="dark"?{main:rl[400],light:rl[300],dark:rl[700]}:{main:"#ed6c02",light:rl[500],dark:rl[900]}}function pO(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=G(e,sO),i=e.primary||aO(t),s=e.secondary||lO(t),a=e.error||cO(t),l=e.info||uO(t),c=e.success||dO(t),u=e.warning||fO(t);function d(m){return QM(m,im.text.primary)>=n?im.text.primary:hb.text.primary}const p=({color:m,name:w,mainShade:g=500,lightShade:y=300,darkShade:x=700})=>{if(m=A({},m),!m.main&&m[g]&&(m.main=m[g]),!m.hasOwnProperty("main"))throw new Error(ps(11,w?` (${w})`:"",g));if(typeof m.main!="string")throw new Error(ps(12,w?` (${w})`:"",JSON.stringify(m.main)));return mb(m,"light",y,r),mb(m,"dark",x,r),m.contrastText||(m.contrastText=d(m.main)),m},h={dark:im,light:hb};return yn(A({common:A({},jc),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:a,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:iO,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},h[t]),o)}const hO=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function mO(e){return Math.round(e*1e5)/1e5}const gb={textTransform:"uppercase"},vb='"Roboto", "Helvetica", "Arial", sans-serif';function gO(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=vb,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=G(n,hO),h=o/14,v=d||(g=>`${g/c*h}rem`),m=(g,y,x,S,C)=>A({fontFamily:r,fontWeight:g,fontSize:v(y),lineHeight:x},r===vb?{letterSpacing:`${mO(S/y)}em`}:{},C,u),w={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(s,48,1.167,0),h4:m(s,34,1.235,.25),h5:m(s,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(s,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(s,16,1.5,.15),body2:m(s,14,1.43,.15),button:m(a,14,1.75,.4,gb),caption:m(s,12,1.66,.4),overline:m(s,12,2.66,1,gb),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return yn(A({htmlFontSize:c,pxToRem:v,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},w),p,{clone:!1})}const vO=.2,yO=.14,xO=.12;function St(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${vO})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${yO})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${xO})`].join(",")}const bO=["none",St(0,2,1,-1,0,1,1,0,0,1,3,0),St(0,3,1,-2,0,2,2,0,0,1,5,0),St(0,3,3,-2,0,3,4,0,0,1,8,0),St(0,2,4,-1,0,4,5,0,0,1,10,0),St(0,3,5,-1,0,5,8,0,0,1,14,0),St(0,3,5,-1,0,6,10,0,0,1,18,0),St(0,4,5,-2,0,7,10,1,0,2,16,1),St(0,5,5,-3,0,8,10,1,0,3,14,2),St(0,5,6,-3,0,9,12,1,0,3,16,2),St(0,6,6,-3,0,10,14,1,0,4,18,3),St(0,6,7,-4,0,11,15,1,0,4,20,3),St(0,7,8,-4,0,12,17,2,0,5,22,4),St(0,7,8,-4,0,13,19,2,0,5,24,4),St(0,7,9,-4,0,14,21,2,0,5,26,4),St(0,8,9,-5,0,15,22,2,0,6,28,5),St(0,8,10,-5,0,16,24,2,0,6,30,5),St(0,8,11,-5,0,17,26,2,0,6,32,5),St(0,9,11,-5,0,18,28,2,0,7,34,6),St(0,9,12,-6,0,19,29,2,0,7,36,6),St(0,10,13,-6,0,20,31,3,0,8,38,7),St(0,10,13,-6,0,21,33,3,0,8,40,7),St(0,10,14,-6,0,22,35,3,0,8,42,7),St(0,11,14,-7,0,23,36,3,0,9,44,8),St(0,11,15,-7,0,24,38,3,0,9,46,8)],wO=["duration","easing","delay"],SO={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)"},Ak={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function yb(e){return`${Math.round(e)}ms`}function CO(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function AO(e){const t=A({},SO,e.easing),n=A({},Ak,e.duration);return A({getAutoHeightDuration:CO,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=i;return G(i,wO),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof s=="string"?s:yb(s)} ${a} ${typeof l=="string"?l:yb(l)}`).join(",")}},e,{easing:t,duration:n})}const kO={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},RO=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function kk(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=G(e,RO);if(e.vars)throw new Error(ps(18));const a=pO(r),l=ws(e);let c=yn(l,{mixins:UM(l.breakpoints,n),palette:a,shadows:bO.slice(),typography:gO(a,i),transitions:AO(o),zIndex:A({},kO)});return c=yn(c,s),c=t.reduce((u,d)=>yn(u,d),c),c.unstable_sxConfig=A({},ru,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return za({sx:d,theme:this})},c}const ty=kk(),Op="$$material";function Rk(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Bn=e=>Rk(e)&&e!=="classes",V=IM({themeId:Op,defaultTheme:ty,rootShouldForwardProp:Bn});function EO(e){return be("MuiCircularProgress",e)}Se("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const TO=["className","color","disableShrink","size","style","thickness","value","variant"];let $p=e=>e,xb,bb,wb,Sb;const Xo=44,PO=Da(xb||(xb=$p` 0% { transform: rotate(0deg); } @@ -69,7 +69,7 @@ Row with project not found: ${JSON.stringify(t)}`)}function m3({allocationTypesM 100% { transform: rotate(360deg); } -`)),JM=$a(lb||(lb=Pp` +`)),IO=Da(bb||(bb=$p` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -84,11 +84,11 @@ Row with project not found: ${JSON.stringify(t)}`)}function m3({allocationTypesM stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),eO=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${U(r)}`],svg:["svg"],circle:["circle",`circle${U(n)}`,o&&"circleDisableShrink"]};return we(i,ZM,t)},tO=V("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${U(n.color)}`]]}})(({ownerState:e,theme:t})=>A({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&ap(cb||(cb=Pp` +`)),_O=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${U(r)}`],svg:["svg"],circle:["circle",`circle${U(n)}`,o&&"circleDisableShrink"]};return we(i,EO,t)},jO=V("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${U(n.color)}`]]}})(({ownerState:e,theme:t})=>A({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&pp(wb||(wb=$p` animation: ${0} 1.4s linear infinite; - `),XM)),nO=V("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),rO=V("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${U(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>A({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&ap(ub||(ub=Pp` + `),PO)),MO=V("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),OO=V("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${U(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>A({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&pp(Sb||(Sb=$p` animation: ${0} 1.4s ease-in-out infinite; - `),JM)),oO=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,size:a=40,style:l,thickness:c=3.6,value:u=0,variant:d="indeterminate"}=r,p=H(r,YM),h=A({},r,{color:i,disableShrink:s,size:a,thickness:c,value:u,variant:d}),v=eO(h),m={},C={},g={};if(d==="determinate"){const y=2*Math.PI*((Qo-c)/2);m.strokeDasharray=y.toFixed(3),g["aria-valuenow"]=Math.round(u),m.strokeDashoffset=`${((100-u)/100*y).toFixed(3)}px`,C.transform="rotate(-90deg)"}return f.jsx(tO,A({className:Z(v.root,o),style:A({width:a,height:a},C,l),ownerState:h,ref:n,role:"progressbar"},g,p,{children:f.jsx(nO,{className:v.svg,ownerState:h,viewBox:`${Qo/2} ${Qo/2} ${Qo} ${Qo}`,children:f.jsx(rO,{className:v.circle,style:m,ownerState:h,cx:Qo,cy:Qo,r:(Qo-c)/2,fill:"none",strokeWidth:c})})}))});function iO(e){return be("MuiTypography",e)}Ce("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const sO=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],aO=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${U(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return we(a,iO,s)},lO=V("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${U(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>A({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),db={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},cO={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},uO=e=>cO[e]||e,ye=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTypography"}),o=uO(r.color),i=ru(A({},r,{color:o})),{align:s="inherit",className:a,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:d=!1,variant:p="body1",variantMapping:h=db}=i,v=H(i,sO),m=A({},i,{align:s,color:o,className:a,component:l,gutterBottom:c,noWrap:u,paragraph:d,variant:p,variantMapping:h}),C=l||(d?"p":h[p]||db[p])||"span",g=aO(m);return f.jsx(lO,A({as:C,ref:n,ownerState:m,className:Z(g.root,a)},v))});function Ip(){const e=nu(Gv);return e[Ep]||e}const fb=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},dO=Ce("MuiBox",["root"]),fO=ok(),q=__({themeId:Ep,defaultTheme:fO,defaultClassName:dO.root,generateClassName:$v.generate});function pO(){return f.jsxs("div",{style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:[f.jsx(q,{sx:{display:"flex",justifyContent:"center"},children:f.jsx(oO,{})}),f.jsx(ye,{variant:"h6",align:"center",mt:3,children:"Loading data"})]})}const hO=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],mO=["component","slots","slotProps"],gO=["component"];function Zg(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:s,internalForwardedProps:a}=t,l=H(t,hO),{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0}}=i,p=H(i,mO),h=u[e]||r,v=GA(d[e],o),m=HA(A({className:n},l,{externalForwardedProps:e==="root"?p:void 0,externalSlotProps:v})),{props:{component:C},internalRef:g}=m,y=H(m.props,gO),x=Pt(g,v==null?void 0:v.ref,t.ref),w=s?s(y):{},S=A({},o,w),T=e==="root"?C||c:C,R=UA(h,A({},e==="root"&&!c&&!u[e]&&a,e!=="root"&&!u[e]&&a,y,T&&{as:T},{ref:x}),S);return Object.keys(w).forEach(P=>{delete R[P]}),[h,R]}function vO(e){return be("MuiPaper",e)}Ce("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const yO=["className","component","elevation","square","variant"],xO=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return we(i,vO,o)},bO=V("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return A({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&A({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ye("#fff",fb(t.elevation))}, ${Ye("#fff",fb(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Sr=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:a=!1,variant:l="elevation"}=r,c=H(r,yO),u=A({},r,{component:i,elevation:s,square:a,variant:l}),d=xO(u);return f.jsx(bO,A({as:i,ownerState:u,className:Z(d.root,o),ref:n},c))});function wO(e){return be("MuiAlert",e)}const pb=Ce("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function Yg(e,t){return Yg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Yg(e,t)}function sk(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Yg(e,t)}const hb={disabled:!1},hf=ft.createContext(null);var CO=function(t){return t.scrollTop},wl="unmounted",Di="exited",zi="entering",Os="entered",Xg="exiting",Hr=function(e){sk(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=Di,i.appearStatus=zi):l=Os:r.unmountOnExit||r.mountOnEnter?l=wl:l=Di,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===wl?{status:Di}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==zi&&s!==Os&&(i=zi):(s===zi||s===Os)&&(i=Xg)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===zi){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:ju.findDOMNode(this);s&&CO(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Di&&this.setState({status:wl})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[ju.findDOMNode(this),a],c=l[0],u=l[1],d=this.getTimeouts(),p=a?d.appear:d.enter;if(!o&&!s||hb.disabled){this.safeSetState({status:Os},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:zi},function(){i.props.onEntering(c,u),i.onTransitionEnd(p,function(){i.safeSetState({status:Os},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:ju.findDOMNode(this);if(!i||hb.disabled){this.safeSetState({status:Di},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Xg},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Di},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:ju.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===wl)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=H(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ft.createElement(hf.Provider,{value:null},typeof s=="function"?s(o,a):ft.cloneElement(ft.Children.only(s),a))},t}(ft.Component);Hr.contextType=hf;Hr.propTypes={};function Es(){}Hr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Es,onEntering:Es,onEntered:Es,onExit:Es,onExiting:Es,onExited:Es};Hr.UNMOUNTED=wl;Hr.EXITED=Di;Hr.ENTERING=zi;Hr.ENTERED=Os;Hr.EXITING=Xg;function SO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qv(e,t){var n=function(i){return t&&b.isValidElement(i)?t(i):i},r=Object.create(null);return e&&b.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function AO(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var l in t){if(r[l])for(s=0;s{if(!a&&l!=null){const m=setTimeout(l,c);return()=>{clearTimeout(m)}}},[l,a,c]),f.jsx("span",{className:p,style:h,children:f.jsx("span",{className:v})})}const sr=Ce("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),IO=["center","classes","className"];let _p=e=>e,mb,gb,vb,yb;const Jg=550,_O=80,jO=$a(mb||(mb=_p` + `),IO)),$O=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,size:a=40,style:l,thickness:c=3.6,value:u=0,variant:d="indeterminate"}=r,p=G(r,TO),h=A({},r,{color:i,disableShrink:s,size:a,thickness:c,value:u,variant:d}),v=_O(h),m={},w={},g={};if(d==="determinate"){const y=2*Math.PI*((Xo-c)/2);m.strokeDasharray=y.toFixed(3),g["aria-valuenow"]=Math.round(u),m.strokeDashoffset=`${((100-u)/100*y).toFixed(3)}px`,w.transform="rotate(-90deg)"}return f.jsx(jO,A({className:Z(v.root,o),style:A({width:a,height:a},w,l),ownerState:h,ref:n,role:"progressbar"},g,p,{children:f.jsx(MO,{className:v.svg,ownerState:h,viewBox:`${Xo/2} ${Xo/2} ${Xo} ${Xo}`,children:f.jsx(OO,{className:v.circle,style:m,ownerState:h,cx:Xo,cy:Xo,r:(Xo-c)/2,fill:"none",strokeWidth:c})})}))});function LO(e){return be("MuiTypography",e)}Se("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const NO=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],DO=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${U(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return we(a,LO,s)},zO=V("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${U(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>A({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Cb={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},BO={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},FO=e=>BO[e]||e,me=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiTypography"}),o=FO(r.color),i=iu(A({},r,{color:o})),{align:s="inherit",className:a,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:d=!1,variant:p="body1",variantMapping:h=Cb}=i,v=G(i,NO),m=A({},i,{align:s,color:o,className:a,component:l,gutterBottom:c,noWrap:u,paragraph:d,variant:p,variantMapping:h}),w=l||(d?"p":h[p]||Cb[p])||"span",g=DO(m);return f.jsx(zO,A({as:w,ref:n,ownerState:m,className:Z(g.root,a)},v))});function Lp(){const e=ou(ty);return e[Op]||e}const Ab=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},WO=Se("MuiBox",["root"]),VO=kk(),H=lj({themeId:Op,defaultTheme:VO,defaultClassName:WO.root,generateClassName:Uv.generate});function UO(){return f.jsxs("div",{style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",justifySelf:"center",alignItems:"center",alignSelf:"center"},children:[f.jsx(H,{sx:{display:"flex",justifyContent:"center"},children:f.jsx($O,{})}),f.jsx(me,{variant:"h6",align:"center",mt:3,children:"Loading data"})]})}const HO=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],GO=["component","slots","slotProps"],qO=["component"];function o0(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:s,internalForwardedProps:a}=t,l=G(t,HO),{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0}}=i,p=G(i,GO),h=u[e]||r,v=pk(d[e],o),m=fk(A({className:n},l,{externalForwardedProps:e==="root"?p:void 0,externalSlotProps:v})),{props:{component:w},internalRef:g}=m,y=G(m.props,qO),x=Pt(g,v==null?void 0:v.ref,t.ref),S=s?s(y):{},C=A({},o,S),E=e==="root"?w||c:w,k=dk(h,A({},e==="root"&&!c&&!u[e]&&a,e!=="root"&&!u[e]&&a,y,E&&{as:E},{ref:x}),C);return Object.keys(S).forEach(P=>{delete k[P]}),[h,k]}function QO(e){return be("MuiPaper",e)}Se("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const KO=["className","component","elevation","square","variant"],ZO=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return we(i,QO,o)},YO=V("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return A({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&A({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ye("#fff",Ab(t.elevation))}, ${Ye("#fff",Ab(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),kr=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:a=!1,variant:l="elevation"}=r,c=G(r,KO),u=A({},r,{component:i,elevation:s,square:a,variant:l}),d=ZO(u);return f.jsx(YO,A({as:i,ownerState:u,className:Z(d.root,o),ref:n},c))});function XO(e){return be("MuiAlert",e)}const kb=Se("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function i0(e,t){return i0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},i0(e,t)}function Ek(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i0(e,t)}const Rb={disabled:!1},yf=ft.createContext(null);var JO=function(t){return t.scrollTop},Cl="unmounted",Wi="exited",Vi="entering",Ns="entered",s0="exiting",qr=function(e){Ek(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=Wi,i.appearStatus=Vi):l=Ns:r.unmountOnExit||r.mountOnEnter?l=Cl:l=Wi,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Cl?{status:Wi}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Vi&&s!==Ns&&(i=Vi):(s===Vi||s===Ns)&&(i=s0)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Vi){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:$u.findDOMNode(this);s&&JO(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Wi&&this.setState({status:Cl})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[$u.findDOMNode(this),a],c=l[0],u=l[1],d=this.getTimeouts(),p=a?d.appear:d.enter;if(!o&&!s||Rb.disabled){this.safeSetState({status:Ns},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Vi},function(){i.props.onEntering(c,u),i.onTransitionEnd(p,function(){i.safeSetState({status:Ns},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:$u.findDOMNode(this);if(!i||Rb.disabled){this.safeSetState({status:Wi},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:s0},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Wi},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:$u.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Cl)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=G(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ft.createElement(yf.Provider,{value:null},typeof s=="function"?s(o,a):ft.cloneElement(ft.Children.only(s),a))},t}(ft.Component);qr.contextType=yf;qr.propTypes={};function _s(){}qr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_s,onEntering:_s,onEntered:_s,onExit:_s,onExiting:_s,onExited:_s};qr.UNMOUNTED=Cl;qr.EXITED=Wi;qr.ENTERING=Vi;qr.ENTERED=Ns;qr.EXITING=s0;function e$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ny(e,t){var n=function(i){return t&&b.isValidElement(i)?t(i):i},r=Object.create(null);return e&&b.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function t$(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var l in t){if(r[l])for(s=0;s{if(!a&&l!=null){const m=setTimeout(l,c);return()=>{clearTimeout(m)}}},[l,a,c]),f.jsx("span",{className:p,style:h,children:f.jsx("span",{className:v})})}const lr=Se("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),a$=["center","classes","className"];let Np=e=>e,Eb,Tb,Pb,Ib;const a0=550,l$=80,c$=Da(Eb||(Eb=Np` 0% { transform: scale(0); opacity: 0.1; @@ -98,7 +98,7 @@ Row with project not found: ${JSON.stringify(t)}`)}function m3({allocationTypesM transform: scale(1); opacity: 0.3; } -`)),MO=$a(gb||(gb=_p` +`)),u$=Da(Tb||(Tb=Np` 0% { opacity: 1; } @@ -106,7 +106,7 @@ Row with project not found: ${JSON.stringify(t)}`)}function m3({allocationTypesM 100% { opacity: 0; } -`)),OO=$a(vb||(vb=_p` +`)),d$=Da(Pb||(Pb=Np` 0% { transform: scale(1); } @@ -118,7 +118,7 @@ Row with project not found: ${JSON.stringify(t)}`)}function m3({allocationTypesM 100% { transform: scale(1); } -`)),$O=V("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),NO=V(PO,{name:"MuiTouchRipple",slot:"Ripple"})(yb||(yb=_p` +`)),f$=V("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),p$=V(s$,{name:"MuiTouchRipple",slot:"Ripple"})(Ib||(Ib=Np` opacity: 0; position: absolute; @@ -161,13 +161,13 @@ Row with project not found: ${JSON.stringify(t)}`)}function m3({allocationTypesM animation-iteration-count: infinite; animation-delay: 200ms; } -`),sr.rippleVisible,jO,Jg,({theme:e})=>e.transitions.easing.easeInOut,sr.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,sr.child,sr.childLeaving,MO,Jg,({theme:e})=>e.transitions.easing.easeInOut,sr.childPulsate,OO,({theme:e})=>e.transitions.easing.easeInOut),LO=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=H(r,IO),[l,c]=b.useState([]),u=b.useRef(0),d=b.useRef(null);b.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const p=b.useRef(!1),h=Rp(),v=b.useRef(null),m=b.useRef(null),C=b.useCallback(w=>{const{pulsate:S,rippleX:T,rippleY:R,rippleSize:P,cb:_}=w;c(k=>[...k,f.jsx(NO,{classes:{ripple:Z(i.ripple,sr.ripple),rippleVisible:Z(i.rippleVisible,sr.rippleVisible),ripplePulsate:Z(i.ripplePulsate,sr.ripplePulsate),child:Z(i.child,sr.child),childLeaving:Z(i.childLeaving,sr.childLeaving),childPulsate:Z(i.childPulsate,sr.childPulsate)},timeout:Jg,pulsate:S,rippleX:T,rippleY:R,rippleSize:P},u.current)]),u.current+=1,d.current=_},[i]),g=b.useCallback((w={},S={},T=()=>{})=>{const{pulsate:R=!1,center:P=o||S.pulsate,fakeElement:_=!1}=S;if((w==null?void 0:w.type)==="mousedown"&&p.current){p.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(p.current=!0);const k=_?null:m.current,E=k?k.getBoundingClientRect():{width:0,height:0,left:0,top:0};let M,$,O;if(P||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)M=Math.round(E.width/2),$=Math.round(E.height/2);else{const{clientX:z,clientY:L}=w.touches&&w.touches.length>0?w.touches[0]:w;M=Math.round(z-E.left),$=Math.round(L-E.top)}if(P)O=Math.sqrt((2*E.width**2+E.height**2)/3),O%2===0&&(O+=1);else{const z=Math.max(Math.abs((k?k.clientWidth:0)-M),M)*2+2,L=Math.max(Math.abs((k?k.clientHeight:0)-$),$)*2+2;O=Math.sqrt(z**2+L**2)}w!=null&&w.touches?v.current===null&&(v.current=()=>{C({pulsate:R,rippleX:M,rippleY:$,rippleSize:O,cb:T})},h.start(_O,()=>{v.current&&(v.current(),v.current=null)})):C({pulsate:R,rippleX:M,rippleY:$,rippleSize:O,cb:T})},[o,C,h]),y=b.useCallback(()=>{g({},{pulsate:!0})},[g]),x=b.useCallback((w,S)=>{if(h.clear(),(w==null?void 0:w.type)==="touchend"&&v.current){v.current(),v.current=null,h.start(0,()=>{x(w,S)});return}v.current=null,c(T=>T.length>0?T.slice(1):T),d.current=S},[h]);return b.useImperativeHandle(n,()=>({pulsate:y,start:g,stop:x}),[y,g,x]),f.jsx($O,A({className:Z(sr.root,i.root,s),ref:m},a,{children:f.jsx(Qv,{component:null,exit:!0,children:l})}))});function DO(e){return be("MuiButtonBase",e)}const zO=Ce("MuiButtonBase",["root","disabled","focusVisible"]),BO=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],FO=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=we({root:["root",t&&"disabled",n&&"focusVisible"]},DO,o);return n&&r&&(s.root+=` ${r}`),s},WO=V("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${zO.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Lo=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:h="a",onBlur:v,onClick:m,onContextMenu:C,onDragLeave:g,onFocus:y,onFocusVisible:x,onKeyDown:w,onKeyUp:S,onMouseDown:T,onMouseLeave:R,onMouseUp:P,onTouchEnd:_,onTouchMove:k,onTouchStart:E,tabIndex:M=0,TouchRippleProps:$,touchRippleRef:O,type:z}=r,L=H(r,BO),D=b.useRef(null),j=b.useRef(null),N=Pt(j,O),{isFocusVisibleRef:W,onFocus:se,onBlur:ae,ref:Re}=WA(),[Y,ce]=b.useState(!1);c&&Y&&ce(!1),b.useImperativeHandle(o,()=>({focusVisible:()=>{ce(!0),D.current.focus()}}),[]);const[G,fe]=b.useState(!1);b.useEffect(()=>{fe(!0)},[]);const pe=G&&!u&&!c;b.useEffect(()=>{Y&&p&&!u&&G&&j.current.pulsate()},[u,p,Y,G]);function me(ee,dt,Yt=d){return jn(wt=>(dt&&dt(wt),!Yt&&j.current&&j.current[ee](wt),!0))}const Oe=me("start",T),ge=me("stop",C),Ae=me("stop",g),Te=me("stop",P),Ee=me("stop",ee=>{Y&&ee.preventDefault(),R&&R(ee)}),Ie=me("start",E),le=me("stop",_),at=me("stop",k),ue=me("stop",ee=>{ae(ee),W.current===!1&&ce(!1),v&&v(ee)},!1),Je=jn(ee=>{D.current||(D.current=ee.currentTarget),se(ee),W.current===!0&&(ce(!0),x&&x(ee)),y&&y(ee)}),Ge=()=>{const ee=D.current;return l&&l!=="button"&&!(ee.tagName==="A"&&ee.href)},Ne=b.useRef(!1),ht=jn(ee=>{p&&!Ne.current&&Y&&j.current&&ee.key===" "&&(Ne.current=!0,j.current.stop(ee,()=>{j.current.start(ee)})),ee.target===ee.currentTarget&&Ge()&&ee.key===" "&&ee.preventDefault(),w&&w(ee),ee.target===ee.currentTarget&&Ge()&&ee.key==="Enter"&&!c&&(ee.preventDefault(),m&&m(ee))}),tt=jn(ee=>{p&&ee.key===" "&&j.current&&Y&&!ee.defaultPrevented&&(Ne.current=!1,j.current.stop(ee,()=>{j.current.pulsate(ee)})),S&&S(ee),m&&ee.target===ee.currentTarget&&Ge()&&ee.key===" "&&!ee.defaultPrevented&&m(ee)});let ze=l;ze==="button"&&(L.href||L.to)&&(ze=h);const mt={};ze==="button"?(mt.type=z===void 0?"button":z,mt.disabled=c):(!L.href&&!L.to&&(mt.role="button"),c&&(mt["aria-disabled"]=c));const It=Pt(n,Re,D),yt=A({},r,{centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:p,tabIndex:M,focusVisible:Y}),_e=FO(yt);return f.jsxs(WO,A({as:ze,className:Z(_e.root,a),ownerState:yt,onBlur:ue,onClick:m,onContextMenu:ge,onFocus:Je,onKeyDown:ht,onKeyUp:tt,onMouseDown:Oe,onMouseLeave:Ee,onMouseUp:Te,onDragLeave:Ae,onTouchEnd:le,onTouchMove:at,onTouchStart:Ie,ref:It,tabIndex:c?-1:M,type:z},mt,L,{children:[s,pe?f.jsx(LO,A({ref:N,center:i},$)):null]}))});function VO(e){return be("MuiIconButton",e)}const UO=Ce("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),HO=["edge","children","className","color","disabled","disableFocusRipple","size"],GO=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${U(r)}`,o&&`edge${U(o)}`,`size${U(i)}`]};return we(s,VO,t)},qO=V(Lo,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${U(n.color)}`],n.edge&&t[`edge${U(n.edge)}`],t[`size${U(n.size)}`]]}})(({theme:e,ownerState:t})=>A({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ye(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return A({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&A({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":A({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ye(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${UO.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Kv=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,d=H(r,HO),p=A({},r,{edge:o,color:a,disabled:l,disableFocusRipple:c,size:u}),h=GO(p);return f.jsx(qO,A({className:Z(h.root,s),centerRipple:!0,focusRipple:!c,disabled:l,ref:n},d,{ownerState:p,children:i}))});function QO(e){return be("MuiSvgIcon",e)}Ce("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const KO=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ZO=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${U(t)}`,`fontSize${U(n)}`]};return we(o,QO,r)},YO=V("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${U(n.color)}`],t[`fontSize${U(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,a,l,c,u,d,p,h,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(s=i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(d=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?d:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),mo=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:p="0 0 24 24"}=r,h=H(r,KO),v=b.isValidElement(o)&&o.type==="svg",m=A({},r,{color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:v}),C={};u||(C.viewBox=p);const g=ZO(m);return f.jsxs(YO,A({as:a,className:Z(g.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},C,h,v&&o.props,{ownerState:m,children:[v?o.props.children:o,d?f.jsx("title",{children:d}):null]}))});mo.muiName="SvgIcon";function Bn(e,t){function n(r,o){return f.jsx(mo,A({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=mo.muiName,b.memo(b.forwardRef(n))}const XO=Bn(f.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),JO=Bn(f.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),e8=Bn(f.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),t8=Bn(f.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),ak=Bn(f.jsx("path",{d:"M19 6.41L17.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"}),"Close"),n8=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],r8=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${U(n||r)}`,`${t}${U(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return we(i,wO,o)},o8=V(Sr,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${U(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?Ec:Pc,n=e.palette.mode==="light"?Pc:Ec;return A({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${pb.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${pb.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:A({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)})}))]})}),i8=V("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),s8=V("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),xb=V("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),bb={success:f.jsx(XO,{fontSize:"inherit"}),warning:f.jsx(JO,{fontSize:"inherit"}),error:f.jsx(e8,{fontSize:"inherit"}),info:f.jsx(t8,{fontSize:"inherit"})},lk=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiAlert"}),{action:o,children:i,className:s,closeText:a="Close",color:l,components:c={},componentsProps:u={},icon:d,iconMapping:p=bb,onClose:h,role:v="alert",severity:m="success",slotProps:C={},slots:g={},variant:y="standard"}=r,x=H(r,n8),w=A({},r,{color:l,severity:m,variant:y,colorSeverity:l||m}),S=r8(w),T={slots:A({closeButton:c.CloseButton,closeIcon:c.CloseIcon},g),slotProps:A({},u,C)},[R,P]=Zg("closeButton",{elementType:Kv,externalForwardedProps:T,ownerState:w}),[_,k]=Zg("closeIcon",{elementType:ak,externalForwardedProps:T,ownerState:w});return f.jsxs(o8,A({role:v,elevation:0,ownerState:w,className:Z(S.root,s),ref:n},x,{children:[d!==!1?f.jsx(i8,{ownerState:w,className:S.icon,children:d||p[m]||bb[m]}):null,f.jsx(s8,{ownerState:w,className:S.message,children:i}),o!=null?f.jsx(xb,{ownerState:w,className:S.action,children:o}):null,o==null&&h?f.jsx(xb,{ownerState:w,className:S.action,children:f.jsx(R,A({size:"small","aria-label":a,title:a,color:"inherit",onClick:h},P,{children:f.jsx(_,A({fontSize:"small"},k))}))}):null]}))}),{isProdSite:a8}=Cn;function l8({error:e}){return a8||console.error(e),f.jsx("div",{style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:f.jsx(lk,{severity:"error",children:"An error occurred while loading the data. Please try again later."})})}const Fo=b.createContext(null),Ba=Cj({createStyledComponent:V("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${U(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Se({props:e,name:"MuiContainer"})}),Ca=Math.min,es=Math.max,mf=Math.round,Bu=Math.floor,Ti=e=>({x:e,y:e}),c8={left:"right",right:"left",bottom:"top",top:"bottom"},u8={start:"end",end:"start"};function e0(e,t,n){return es(e,Ca(t,n))}function su(e,t){return typeof e=="function"?e(t):e}function ds(e){return e.split("-")[0]}function au(e){return e.split("-")[1]}function ck(e){return e==="x"?"y":"x"}function Zv(e){return e==="y"?"height":"width"}function Sa(e){return["top","bottom"].includes(ds(e))?"y":"x"}function Yv(e){return ck(Sa(e))}function d8(e,t,n){n===void 0&&(n=!1);const r=au(e),o=Yv(e),i=Zv(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=gf(s)),[s,gf(s)]}function f8(e){const t=gf(e);return[t0(e),t,t0(t)]}function t0(e){return e.replace(/start|end/g,t=>u8[t])}function p8(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function h8(e,t,n,r){const o=au(e);let i=p8(ds(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(t0)))),i}function gf(e){return e.replace(/left|right|bottom|top/g,t=>c8[t])}function m8(e){return{top:0,right:0,bottom:0,left:0,...e}}function uk(e){return typeof e!="number"?m8(e):{top:e,right:e,bottom:e,left:e}}function vf(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function wb(e,t,n){let{reference:r,floating:o}=e;const i=Sa(t),s=Yv(t),a=Zv(s),l=ds(t),c=i==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let h;switch(l){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(au(t)){case"start":h[s]-=p*(n&&c?-1:1);break;case"end":h[s]+=p*(n&&c?-1:1);break}return h}const g8=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=wb(c,r,l),p=r,h={},v=0;for(let m=0;m({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=su(e,t)||{};if(c==null)return{};const d=uk(u),p={x:n,y:r},h=Yv(o),v=Zv(h),m=await s.getDimensions(c),C=h==="y",g=C?"top":"left",y=C?"bottom":"right",x=C?"clientHeight":"clientWidth",w=i.reference[v]+i.reference[h]-p[h]-i.floating[v],S=p[h]-i.reference[h],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let R=T?T[x]:0;(!R||!await(s.isElement==null?void 0:s.isElement(T)))&&(R=a.floating[x]||i.floating[v]);const P=w/2-S/2,_=R/2-m[v]/2-1,k=Ca(d[g],_),E=Ca(d[y],_),M=k,$=R-m[v]-E,O=R/2-m[v]/2+P,z=e0(M,O,$),L=!l.arrow&&au(o)!=null&&O!==z&&i.reference[v]/2-(OO<=0)){var E,M;const O=(((E=i.flip)==null?void 0:E.index)||0)+1,z=R[O];if(z)return{data:{index:O,overflows:k},reset:{placement:z}};let L=(M=k.filter(D=>D.overflows[0]<=0).sort((D,j)=>D.overflows[1]-j.overflows[1])[0])==null?void 0:M.placement;if(!L)switch(h){case"bestFit":{var $;const D=($=k.filter(j=>{if(T){const N=Sa(j.placement);return N===y||N==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(N=>N>0).reduce((N,W)=>N+W,0)]).sort((j,N)=>j[1]-N[1])[0])==null?void 0:$[0];D&&(L=D);break}case"initialPlacement":L=a;break}if(o!==L)return{reset:{placement:L}}}return{}}}};async function x8(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=ds(n),a=au(n),l=Sa(n)==="y",c=["left","top"].includes(s)?-1:1,u=i&&l?-1:1,d=su(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof v=="number"&&(h=a==="end"?v*-1:v),l?{x:h*u,y:p*c}:{x:p*c,y:h*u}}const b8=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await x8(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},w8=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:C=>{let{x:g,y}=C;return{x:g,y}}},...l}=su(e,t),c={x:n,y:r},u=await dk(t,l),d=Sa(ds(o)),p=ck(d);let h=c[p],v=c[d];if(i){const C=p==="y"?"top":"left",g=p==="y"?"bottom":"right",y=h+u[C],x=h-u[g];h=e0(y,h,x)}if(s){const C=d==="y"?"top":"left",g=d==="y"?"bottom":"right",y=v+u[C],x=v-u[g];v=e0(y,v,x)}const m=a.fn({...t,[p]:h,[d]:v});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function Fa(e){return fk(e)?(e.nodeName||"").toLowerCase():"#document"}function Yn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Wo(e){var t;return(t=(fk(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function fk(e){return e instanceof Node||e instanceof Yn(e).Node}function go(e){return e instanceof Element||e instanceof Yn(e).Element}function vo(e){return e instanceof HTMLElement||e instanceof Yn(e).HTMLElement}function Cb(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Yn(e).ShadowRoot}function lu(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Vr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function C8(e){return["table","td","th"].includes(Fa(e))}function jp(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Xv(e){const t=Jv(),n=Vr(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function S8(e){let t=Ei(e);for(;vo(t)&&!Aa(t);){if(jp(t))return null;if(Xv(t))return t;t=Ei(t)}return null}function Jv(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Aa(e){return["html","body","#document"].includes(Fa(e))}function Vr(e){return Yn(e).getComputedStyle(e)}function Mp(e){return go(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ei(e){if(Fa(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Cb(e)&&e.host||Wo(e);return Cb(t)?t.host:t}function pk(e){const t=Ei(e);return Aa(t)?e.ownerDocument?e.ownerDocument.body:e.body:vo(t)&&lu(t)?t:pk(t)}function _c(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=pk(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Yn(o);return i?t.concat(s,s.visualViewport||[],lu(o)?o:[],s.frameElement&&n?_c(s.frameElement):[]):t.concat(o,_c(o,[],n))}function hk(e){const t=Vr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=vo(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=mf(n)!==i||mf(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function ey(e){return go(e)?e:e.contextElement}function aa(e){const t=ey(e);if(!vo(t))return Ti(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=hk(t);let s=(i?mf(n.width):n.width)/r,a=(i?mf(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const A8=Ti(0);function mk(e){const t=Yn(e);return!Jv()||!t.visualViewport?A8:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function k8(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Yn(e)?!1:t}function fs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=ey(e);let s=Ti(1);t&&(r?go(r)&&(s=aa(r)):s=aa(e));const a=k8(i,n,r)?mk(i):Ti(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const p=Yn(i),h=r&&go(r)?Yn(r):r;let v=p,m=v.frameElement;for(;m&&r&&h!==v;){const C=aa(m),g=m.getBoundingClientRect(),y=Vr(m),x=g.left+(m.clientLeft+parseFloat(y.paddingLeft))*C.x,w=g.top+(m.clientTop+parseFloat(y.paddingTop))*C.y;l*=C.x,c*=C.y,u*=C.x,d*=C.y,l+=x,c+=w,v=Yn(m),m=v.frameElement}}return vf({width:u,height:d,x:l,y:c})}function R8(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Wo(r),a=t?jp(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Ti(1);const u=Ti(0),d=vo(r);if((d||!d&&!i)&&((Fa(r)!=="body"||lu(s))&&(l=Mp(r)),vo(r))){const p=fs(r);c=aa(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}}function T8(e){return Array.from(e.getClientRects())}function gk(e){return fs(Wo(e)).left+Mp(e).scrollLeft}function E8(e){const t=Wo(e),n=Mp(e),r=e.ownerDocument.body,o=es(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=es(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+gk(e);const a=-n.scrollTop;return Vr(r).direction==="rtl"&&(s+=es(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function P8(e,t){const n=Yn(e),r=Wo(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const c=Jv();(!c||c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function I8(e,t){const n=fs(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=vo(e)?aa(e):Ti(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:s,height:a,x:l,y:c}}function Sb(e,t,n){let r;if(t==="viewport")r=P8(e,n);else if(t==="document")r=E8(Wo(e));else if(go(t))r=I8(t,n);else{const o=mk(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return vf(r)}function vk(e,t){const n=Ei(e);return n===t||!go(n)||Aa(n)?!1:Vr(n).position==="fixed"||vk(n,t)}function _8(e,t){const n=t.get(e);if(n)return n;let r=_c(e,[],!1).filter(a=>go(a)&&Fa(a)!=="body"),o=null;const i=Vr(e).position==="fixed";let s=i?Ei(e):e;for(;go(s)&&!Aa(s);){const a=Vr(s),l=Xv(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||lu(s)&&!l&&vk(e,s))?r=r.filter(u=>u!==s):o=a,s=Ei(s)}return t.set(e,r),r}function j8(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?jp(t)?[]:_8(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,u)=>{const d=Sb(t,u,o);return c.top=es(d.top,c.top),c.right=Ca(d.right,c.right),c.bottom=Ca(d.bottom,c.bottom),c.left=es(d.left,c.left),c},Sb(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function M8(e){const{width:t,height:n}=hk(e);return{width:t,height:n}}function O8(e,t,n){const r=vo(t),o=Wo(t),i=n==="fixed",s=fs(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Ti(0);if(r||!r&&!i)if((Fa(t)!=="body"||lu(o))&&(a=Mp(t)),r){const d=fs(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else o&&(l.x=gk(o));const c=s.left+a.scrollLeft-l.x,u=s.top+a.scrollTop-l.y;return{x:c,y:u,width:s.width,height:s.height}}function Jh(e){return Vr(e).position==="static"}function Ab(e,t){return!vo(e)||Vr(e).position==="fixed"?null:t?t(e):e.offsetParent}function yk(e,t){const n=Yn(e);if(jp(e))return n;if(!vo(e)){let o=Ei(e);for(;o&&!Aa(o);){if(go(o)&&!Jh(o))return o;o=Ei(o)}return n}let r=Ab(e,t);for(;r&&C8(r)&&Jh(r);)r=Ab(r,t);return r&&Aa(r)&&Jh(r)&&!Xv(r)?n:r||S8(e)||n}const $8=async function(e){const t=this.getOffsetParent||yk,n=this.getDimensions,r=await n(e.floating);return{reference:O8(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function N8(e){return Vr(e).direction==="rtl"}const L8={convertOffsetParentRelativeRectToViewportRelativeRect:R8,getDocumentElement:Wo,getClippingRect:j8,getOffsetParent:yk,getElementRects:$8,getClientRects:T8,getDimensions:M8,getScale:aa,isElement:go,isRTL:N8};function D8(e,t){let n=null,r;const o=Wo(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(a||t(),!d||!p)return;const h=Bu(u),v=Bu(o.clientWidth-(c+d)),m=Bu(o.clientHeight-(u+p)),C=Bu(c),y={rootMargin:-h+"px "+-v+"px "+-m+"px "+-C+"px",threshold:es(0,Ca(1,l))||1};let x=!0;function w(S){const T=S[0].intersectionRatio;if(T!==l){if(!x)return s();T?s(!1,T):r=setTimeout(()=>{s(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(w,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(w,y)}n.observe(e)}return s(!0),i}function z8(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=ey(e),u=o||i?[...c?_c(c):[],..._c(t)]:[];u.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const d=c&&a?D8(c,n):null;let p=-1,h=null;s&&(h=new ResizeObserver(g=>{let[y]=g;y&&y.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let v,m=l?fs(e):null;l&&C();function C(){const g=fs(e);m&&(g.x!==m.x||g.y!==m.y||g.width!==m.width||g.height!==m.height)&&n(),m=g,v=requestAnimationFrame(C)}return n(),()=>{var g;u.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),d==null||d(),(g=h)==null||g.disconnect(),h=null,l&&cancelAnimationFrame(v)}}const B8=b8,F8=w8,W8=y8,V8=v8,kb=(e,t,n)=>{const r=new Map,o={platform:L8,...n},i={...o.platform,_c:r};return g8(e,t,{...o,platform:i})};var xk={exports:{}};/*! +`),lr.rippleVisible,c$,a0,({theme:e})=>e.transitions.easing.easeInOut,lr.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,lr.child,lr.childLeaving,u$,a0,({theme:e})=>e.transitions.easing.easeInOut,lr.childPulsate,d$,({theme:e})=>e.transitions.easing.easeInOut),h$=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=G(r,a$),[l,c]=b.useState([]),u=b.useRef(0),d=b.useRef(null);b.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const p=b.useRef(!1),h=jp(),v=b.useRef(null),m=b.useRef(null),w=b.useCallback(S=>{const{pulsate:C,rippleX:E,rippleY:k,rippleSize:P,cb:_}=S;c(R=>[...R,f.jsx(p$,{classes:{ripple:Z(i.ripple,lr.ripple),rippleVisible:Z(i.rippleVisible,lr.rippleVisible),ripplePulsate:Z(i.ripplePulsate,lr.ripplePulsate),child:Z(i.child,lr.child),childLeaving:Z(i.childLeaving,lr.childLeaving),childPulsate:Z(i.childPulsate,lr.childPulsate)},timeout:a0,pulsate:C,rippleX:E,rippleY:k,rippleSize:P},u.current)]),u.current+=1,d.current=_},[i]),g=b.useCallback((S={},C={},E=()=>{})=>{const{pulsate:k=!1,center:P=o||C.pulsate,fakeElement:_=!1}=C;if((S==null?void 0:S.type)==="mousedown"&&p.current){p.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(p.current=!0);const R=_?null:m.current,T=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let M,$,O;if(P||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)M=Math.round(T.width/2),$=Math.round(T.height/2);else{const{clientX:z,clientY:N}=S.touches&&S.touches.length>0?S.touches[0]:S;M=Math.round(z-T.left),$=Math.round(N-T.top)}if(P)O=Math.sqrt((2*T.width**2+T.height**2)/3),O%2===0&&(O+=1);else{const z=Math.max(Math.abs((R?R.clientWidth:0)-M),M)*2+2,N=Math.max(Math.abs((R?R.clientHeight:0)-$),$)*2+2;O=Math.sqrt(z**2+N**2)}S!=null&&S.touches?v.current===null&&(v.current=()=>{w({pulsate:k,rippleX:M,rippleY:$,rippleSize:O,cb:E})},h.start(l$,()=>{v.current&&(v.current(),v.current=null)})):w({pulsate:k,rippleX:M,rippleY:$,rippleSize:O,cb:E})},[o,w,h]),y=b.useCallback(()=>{g({},{pulsate:!0})},[g]),x=b.useCallback((S,C)=>{if(h.clear(),(S==null?void 0:S.type)==="touchend"&&v.current){v.current(),v.current=null,h.start(0,()=>{x(S,C)});return}v.current=null,c(E=>E.length>0?E.slice(1):E),d.current=C},[h]);return b.useImperativeHandle(n,()=>({pulsate:y,start:g,stop:x}),[y,g,x]),f.jsx(f$,A({className:Z(lr.root,i.root,s),ref:m},a,{children:f.jsx(ry,{component:null,exit:!0,children:l})}))});function m$(e){return be("MuiButtonBase",e)}const g$=Se("MuiButtonBase",["root","disabled","focusVisible"]),v$=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],y$=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=we({root:["root",t&&"disabled",n&&"focusVisible"]},m$,o);return n&&r&&(s.root+=` ${r}`),s},x$=V("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${g$.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Bo=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:h="a",onBlur:v,onClick:m,onContextMenu:w,onDragLeave:g,onFocus:y,onFocusVisible:x,onKeyDown:S,onKeyUp:C,onMouseDown:E,onMouseLeave:k,onMouseUp:P,onTouchEnd:_,onTouchMove:R,onTouchStart:T,tabIndex:M=0,TouchRippleProps:$,touchRippleRef:O,type:z}=r,N=G(r,v$),D=b.useRef(null),j=b.useRef(null),L=Pt(j,O),{isFocusVisibleRef:W,onFocus:se,onBlur:ae,ref:Re}=ck(),[Y,ce]=b.useState(!1);c&&Y&&ce(!1),b.useImperativeHandle(o,()=>({focusVisible:()=>{ce(!0),D.current.focus()}}),[]);const[q,fe]=b.useState(!1);b.useEffect(()=>{fe(!0)},[]);const pe=q&&!u&&!c;b.useEffect(()=>{Y&&p&&!u&&q&&j.current.pulsate()},[u,p,Y,q]);function ge(ee,dt,Yt=d){return jn(wt=>(dt&&dt(wt),!Yt&&j.current&&j.current[ee](wt),!0))}const Oe=ge("start",E),ve=ge("stop",w),Ae=ge("stop",g),Ee=ge("stop",P),Te=ge("stop",ee=>{Y&&ee.preventDefault(),k&&k(ee)}),Ie=ge("start",T),le=ge("stop",_),at=ge("stop",R),ue=ge("stop",ee=>{ae(ee),W.current===!1&&ce(!1),v&&v(ee)},!1),Je=jn(ee=>{D.current||(D.current=ee.currentTarget),se(ee),W.current===!0&&(ce(!0),x&&x(ee)),y&&y(ee)}),Ge=()=>{const ee=D.current;return l&&l!=="button"&&!(ee.tagName==="A"&&ee.href)},Le=b.useRef(!1),ht=jn(ee=>{p&&!Le.current&&Y&&j.current&&ee.key===" "&&(Le.current=!0,j.current.stop(ee,()=>{j.current.start(ee)})),ee.target===ee.currentTarget&&Ge()&&ee.key===" "&&ee.preventDefault(),S&&S(ee),ee.target===ee.currentTarget&&Ge()&&ee.key==="Enter"&&!c&&(ee.preventDefault(),m&&m(ee))}),tt=jn(ee=>{p&&ee.key===" "&&j.current&&Y&&!ee.defaultPrevented&&(Le.current=!1,j.current.stop(ee,()=>{j.current.pulsate(ee)})),C&&C(ee),m&&ee.target===ee.currentTarget&&Ge()&&ee.key===" "&&!ee.defaultPrevented&&m(ee)});let ze=l;ze==="button"&&(N.href||N.to)&&(ze=h);const mt={};ze==="button"?(mt.type=z===void 0?"button":z,mt.disabled=c):(!N.href&&!N.to&&(mt.role="button"),c&&(mt["aria-disabled"]=c));const It=Pt(n,Re,D),yt=A({},r,{centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:p,tabIndex:M,focusVisible:Y}),_e=y$(yt);return f.jsxs(x$,A({as:ze,className:Z(_e.root,a),ownerState:yt,onBlur:ue,onClick:m,onContextMenu:ve,onFocus:Je,onKeyDown:ht,onKeyUp:tt,onMouseDown:Oe,onMouseLeave:Te,onMouseUp:Ee,onDragLeave:Ae,onTouchEnd:le,onTouchMove:at,onTouchStart:Ie,ref:It,tabIndex:c?-1:M,type:z},mt,N,{children:[s,pe?f.jsx(h$,A({ref:L,center:i},$)):null]}))});function b$(e){return be("MuiIconButton",e)}const w$=Se("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),S$=["edge","children","className","color","disabled","disableFocusRipple","size"],C$=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${U(r)}`,o&&`edge${U(o)}`,`size${U(i)}`]};return we(s,b$,t)},A$=V(Bo,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${U(n.color)}`],n.edge&&t[`edge${U(n.edge)}`],t[`size${U(n.size)}`]]}})(({theme:e,ownerState:t})=>A({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ye(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return A({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&A({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":A({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ye(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${w$.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),oy=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,d=G(r,S$),p=A({},r,{edge:o,color:a,disabled:l,disableFocusRipple:c,size:u}),h=C$(p);return f.jsx(A$,A({className:Z(h.root,s),centerRipple:!0,focusRipple:!c,disabled:l,ref:n},d,{ownerState:p,children:i}))});function k$(e){return be("MuiSvgIcon",e)}Se("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const R$=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],E$=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${U(t)}`,`fontSize${U(n)}`]};return we(o,k$,r)},T$=V("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${U(n.color)}`],t[`fontSize${U(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,a,l,c,u,d,p,h,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(s=i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(d=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?d:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),yo=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:p="0 0 24 24"}=r,h=G(r,R$),v=b.isValidElement(o)&&o.type==="svg",m=A({},r,{color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:v}),w={};u||(w.viewBox=p);const g=E$(m);return f.jsxs(T$,A({as:a,className:Z(g.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},w,h,v&&o.props,{ownerState:m,children:[v?o.props.children:o,d?f.jsx("title",{children:d}):null]}))});yo.muiName="SvgIcon";function Fn(e,t){function n(r,o){return f.jsx(yo,A({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=yo.muiName,b.memo(b.forwardRef(n))}const P$=Fn(f.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),I$=Fn(f.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),_$=Fn(f.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),j$=Fn(f.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),Tk=Fn(f.jsx("path",{d:"M19 6.41L17.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"}),"Close"),M$=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],O$=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${U(n||r)}`,`${t}${U(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return we(i,XO,o)},$$=V(kr,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${U(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?Ic:_c,n=e.palette.mode==="light"?_c:Ic;return A({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${kb.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${kb.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:A({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)})}))]})}),L$=V("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),N$=V("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),_b=V("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),jb={success:f.jsx(P$,{fontSize:"inherit"}),warning:f.jsx(I$,{fontSize:"inherit"}),error:f.jsx(_$,{fontSize:"inherit"}),info:f.jsx(j$,{fontSize:"inherit"})},Pk=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiAlert"}),{action:o,children:i,className:s,closeText:a="Close",color:l,components:c={},componentsProps:u={},icon:d,iconMapping:p=jb,onClose:h,role:v="alert",severity:m="success",slotProps:w={},slots:g={},variant:y="standard"}=r,x=G(r,M$),S=A({},r,{color:l,severity:m,variant:y,colorSeverity:l||m}),C=O$(S),E={slots:A({closeButton:c.CloseButton,closeIcon:c.CloseIcon},g),slotProps:A({},u,w)},[k,P]=o0("closeButton",{elementType:oy,externalForwardedProps:E,ownerState:S}),[_,R]=o0("closeIcon",{elementType:Tk,externalForwardedProps:E,ownerState:S});return f.jsxs($$,A({role:v,elevation:0,ownerState:S,className:Z(C.root,s),ref:n},x,{children:[d!==!1?f.jsx(L$,{ownerState:S,className:C.icon,children:d||p[m]||jb[m]}):null,f.jsx(N$,{ownerState:S,className:C.message,children:i}),o!=null?f.jsx(_b,{ownerState:S,className:C.action,children:o}):null,o==null&&h?f.jsx(_b,{ownerState:S,className:C.action,children:f.jsx(k,A({size:"small","aria-label":a,title:a,color:"inherit",onClick:h},P,{children:f.jsx(_,A({fontSize:"small"},R))}))}):null]}))}),{isProdSite:D$}=Cn;function z$({error:e}){return D$||console.error(e),f.jsx("div",{style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",justifySelf:"center",alignItems:"center",alignSelf:"center"},children:f.jsx(Pk,{severity:"error",children:"An error occurred while loading the data. Please try again later."})})}const Ho=b.createContext(null),Va=Jj({createStyledComponent:V("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${U(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ce({props:e,name:"MuiContainer"})}),ka=Math.min,os=Math.max,xf=Math.round,Vu=Math.floor,_i=e=>({x:e,y:e}),B$={left:"right",right:"left",bottom:"top",top:"bottom"},F$={start:"end",end:"start"};function l0(e,t,n){return os(e,ka(t,n))}function lu(e,t){return typeof e=="function"?e(t):e}function ms(e){return e.split("-")[0]}function cu(e){return e.split("-")[1]}function Ik(e){return e==="x"?"y":"x"}function iy(e){return e==="y"?"height":"width"}function Ra(e){return["top","bottom"].includes(ms(e))?"y":"x"}function sy(e){return Ik(Ra(e))}function W$(e,t,n){n===void 0&&(n=!1);const r=cu(e),o=sy(e),i=iy(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=bf(s)),[s,bf(s)]}function V$(e){const t=bf(e);return[c0(e),t,c0(t)]}function c0(e){return e.replace(/start|end/g,t=>F$[t])}function U$(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function H$(e,t,n,r){const o=cu(e);let i=U$(ms(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(c0)))),i}function bf(e){return e.replace(/left|right|bottom|top/g,t=>B$[t])}function G$(e){return{top:0,right:0,bottom:0,left:0,...e}}function _k(e){return typeof e!="number"?G$(e):{top:e,right:e,bottom:e,left:e}}function wf(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Mb(e,t,n){let{reference:r,floating:o}=e;const i=Ra(t),s=sy(t),a=iy(s),l=ms(t),c=i==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let h;switch(l){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(cu(t)){case"start":h[s]-=p*(n&&c?-1:1);break;case"end":h[s]+=p*(n&&c?-1:1);break}return h}const q$=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Mb(c,r,l),p=r,h={},v=0;for(let m=0;m({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=lu(e,t)||{};if(c==null)return{};const d=_k(u),p={x:n,y:r},h=sy(o),v=iy(h),m=await s.getDimensions(c),w=h==="y",g=w?"top":"left",y=w?"bottom":"right",x=w?"clientHeight":"clientWidth",S=i.reference[v]+i.reference[h]-p[h]-i.floating[v],C=p[h]-i.reference[h],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let k=E?E[x]:0;(!k||!await(s.isElement==null?void 0:s.isElement(E)))&&(k=a.floating[x]||i.floating[v]);const P=S/2-C/2,_=k/2-m[v]/2-1,R=ka(d[g],_),T=ka(d[y],_),M=R,$=k-m[v]-T,O=k/2-m[v]/2+P,z=l0(M,O,$),N=!l.arrow&&cu(o)!=null&&O!==z&&i.reference[v]/2-(OO<=0)){var T,M;const O=(((T=i.flip)==null?void 0:T.index)||0)+1,z=k[O];if(z)return{data:{index:O,overflows:R},reset:{placement:z}};let N=(M=R.filter(D=>D.overflows[0]<=0).sort((D,j)=>D.overflows[1]-j.overflows[1])[0])==null?void 0:M.placement;if(!N)switch(h){case"bestFit":{var $;const D=($=R.filter(j=>{if(E){const L=Ra(j.placement);return L===y||L==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(L=>L>0).reduce((L,W)=>L+W,0)]).sort((j,L)=>j[1]-L[1])[0])==null?void 0:$[0];D&&(N=D);break}case"initialPlacement":N=a;break}if(o!==N)return{reset:{placement:N}}}return{}}}};async function Z$(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=ms(n),a=cu(n),l=Ra(n)==="y",c=["left","top"].includes(s)?-1:1,u=i&&l?-1:1,d=lu(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof v=="number"&&(h=a==="end"?v*-1:v),l?{x:h*u,y:p*c}:{x:p*c,y:h*u}}const Y$=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await Z$(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},X$=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:w=>{let{x:g,y}=w;return{x:g,y}}},...l}=lu(e,t),c={x:n,y:r},u=await jk(t,l),d=Ra(ms(o)),p=Ik(d);let h=c[p],v=c[d];if(i){const w=p==="y"?"top":"left",g=p==="y"?"bottom":"right",y=h+u[w],x=h-u[g];h=l0(y,h,x)}if(s){const w=d==="y"?"top":"left",g=d==="y"?"bottom":"right",y=v+u[w],x=v-u[g];v=l0(y,v,x)}const m=a.fn({...t,[p]:h,[d]:v});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function Ua(e){return Mk(e)?(e.nodeName||"").toLowerCase():"#document"}function er(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Go(e){var t;return(t=(Mk(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Mk(e){return e instanceof Node||e instanceof er(e).Node}function xo(e){return e instanceof Element||e instanceof er(e).Element}function bo(e){return e instanceof HTMLElement||e instanceof er(e).HTMLElement}function Ob(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof er(e).ShadowRoot}function uu(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Hr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function J$(e){return["table","td","th"].includes(Ua(e))}function Dp(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function ay(e){const t=ly(),n=Hr(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function e8(e){let t=ji(e);for(;bo(t)&&!Ea(t);){if(Dp(t))return null;if(ay(t))return t;t=ji(t)}return null}function ly(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ea(e){return["html","body","#document"].includes(Ua(e))}function Hr(e){return er(e).getComputedStyle(e)}function zp(e){return xo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ji(e){if(Ua(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ob(e)&&e.host||Go(e);return Ob(t)?t.host:t}function Ok(e){const t=ji(e);return Ea(t)?e.ownerDocument?e.ownerDocument.body:e.body:bo(t)&&uu(t)?t:Ok(t)}function Mc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ok(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=er(o);return i?t.concat(s,s.visualViewport||[],uu(o)?o:[],s.frameElement&&n?Mc(s.frameElement):[]):t.concat(o,Mc(o,[],n))}function $k(e){const t=Hr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=bo(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=xf(n)!==i||xf(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function cy(e){return xo(e)?e:e.contextElement}function ua(e){const t=cy(e);if(!bo(t))return _i(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=$k(t);let s=(i?xf(n.width):n.width)/r,a=(i?xf(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const t8=_i(0);function Lk(e){const t=er(e);return!ly()||!t.visualViewport?t8:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function n8(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==er(e)?!1:t}function gs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=cy(e);let s=_i(1);t&&(r?xo(r)&&(s=ua(r)):s=ua(e));const a=n8(i,n,r)?Lk(i):_i(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const p=er(i),h=r&&xo(r)?er(r):r;let v=p,m=v.frameElement;for(;m&&r&&h!==v;){const w=ua(m),g=m.getBoundingClientRect(),y=Hr(m),x=g.left+(m.clientLeft+parseFloat(y.paddingLeft))*w.x,S=g.top+(m.clientTop+parseFloat(y.paddingTop))*w.y;l*=w.x,c*=w.y,u*=w.x,d*=w.y,l+=x,c+=S,v=er(m),m=v.frameElement}}return wf({width:u,height:d,x:l,y:c})}function r8(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Go(r),a=t?Dp(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=_i(1);const u=_i(0),d=bo(r);if((d||!d&&!i)&&((Ua(r)!=="body"||uu(s))&&(l=zp(r)),bo(r))){const p=gs(r);c=ua(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}}function o8(e){return Array.from(e.getClientRects())}function Nk(e){return gs(Go(e)).left+zp(e).scrollLeft}function i8(e){const t=Go(e),n=zp(e),r=e.ownerDocument.body,o=os(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=os(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Nk(e);const a=-n.scrollTop;return Hr(r).direction==="rtl"&&(s+=os(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function s8(e,t){const n=er(e),r=Go(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const c=ly();(!c||c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function a8(e,t){const n=gs(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=bo(e)?ua(e):_i(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:s,height:a,x:l,y:c}}function $b(e,t,n){let r;if(t==="viewport")r=s8(e,n);else if(t==="document")r=i8(Go(e));else if(xo(t))r=a8(t,n);else{const o=Lk(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return wf(r)}function Dk(e,t){const n=ji(e);return n===t||!xo(n)||Ea(n)?!1:Hr(n).position==="fixed"||Dk(n,t)}function l8(e,t){const n=t.get(e);if(n)return n;let r=Mc(e,[],!1).filter(a=>xo(a)&&Ua(a)!=="body"),o=null;const i=Hr(e).position==="fixed";let s=i?ji(e):e;for(;xo(s)&&!Ea(s);){const a=Hr(s),l=ay(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||uu(s)&&!l&&Dk(e,s))?r=r.filter(u=>u!==s):o=a,s=ji(s)}return t.set(e,r),r}function c8(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Dp(t)?[]:l8(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,u)=>{const d=$b(t,u,o);return c.top=os(d.top,c.top),c.right=ka(d.right,c.right),c.bottom=ka(d.bottom,c.bottom),c.left=os(d.left,c.left),c},$b(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function u8(e){const{width:t,height:n}=$k(e);return{width:t,height:n}}function d8(e,t,n){const r=bo(t),o=Go(t),i=n==="fixed",s=gs(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=_i(0);if(r||!r&&!i)if((Ua(t)!=="body"||uu(o))&&(a=zp(t)),r){const d=gs(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else o&&(l.x=Nk(o));const c=s.left+a.scrollLeft-l.x,u=s.top+a.scrollTop-l.y;return{x:c,y:u,width:s.width,height:s.height}}function sm(e){return Hr(e).position==="static"}function Lb(e,t){return!bo(e)||Hr(e).position==="fixed"?null:t?t(e):e.offsetParent}function zk(e,t){const n=er(e);if(Dp(e))return n;if(!bo(e)){let o=ji(e);for(;o&&!Ea(o);){if(xo(o)&&!sm(o))return o;o=ji(o)}return n}let r=Lb(e,t);for(;r&&J$(r)&&sm(r);)r=Lb(r,t);return r&&Ea(r)&&sm(r)&&!ay(r)?n:r||e8(e)||n}const f8=async function(e){const t=this.getOffsetParent||zk,n=this.getDimensions,r=await n(e.floating);return{reference:d8(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function p8(e){return Hr(e).direction==="rtl"}const h8={convertOffsetParentRelativeRectToViewportRelativeRect:r8,getDocumentElement:Go,getClippingRect:c8,getOffsetParent:zk,getElementRects:f8,getClientRects:o8,getDimensions:u8,getScale:ua,isElement:xo,isRTL:p8};function m8(e,t){let n=null,r;const o=Go(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(a||t(),!d||!p)return;const h=Vu(u),v=Vu(o.clientWidth-(c+d)),m=Vu(o.clientHeight-(u+p)),w=Vu(c),y={rootMargin:-h+"px "+-v+"px "+-m+"px "+-w+"px",threshold:os(0,ka(1,l))||1};let x=!0;function S(C){const E=C[0].intersectionRatio;if(E!==l){if(!x)return s();E?s(!1,E):r=setTimeout(()=>{s(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(S,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,y)}n.observe(e)}return s(!0),i}function g8(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=cy(e),u=o||i?[...c?Mc(c):[],...Mc(t)]:[];u.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const d=c&&a?m8(c,n):null;let p=-1,h=null;s&&(h=new ResizeObserver(g=>{let[y]=g;y&&y.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let v,m=l?gs(e):null;l&&w();function w(){const g=gs(e);m&&(g.x!==m.x||g.y!==m.y||g.width!==m.width||g.height!==m.height)&&n(),m=g,v=requestAnimationFrame(w)}return n(),()=>{var g;u.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),d==null||d(),(g=h)==null||g.disconnect(),h=null,l&&cancelAnimationFrame(v)}}const v8=Y$,y8=X$,x8=K$,b8=Q$,Nb=(e,t,n)=>{const r=new Map,o={platform:h8,...n},i={...o.platform,_c:r};return q$(e,t,{...o,platform:i})};var Bk={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",s=0;s"u"||Tb[n]||n==="core"&&typeof process<"u"&&(!((o=process==null?void 0:Rb)===null||o===void 0)&&o.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((i=process==null?void 0:Rb)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=H8),r||(r={});const{insertAt:s}=r;if(document.getElementById(t))return;const a=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.id=t,l.type="text/css",s==="top"&&a.firstChild?a.insertBefore(l,a.firstChild):a.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e)),Tb[n]=!0}const Pb=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:o=10,strategy:i="absolute",middlewares:s=[B8(Number(o)),W8({fallbackAxisSideDirection:"start"}),F8({padding:5})],border:a})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const l=s;return n?(l.push(V8({element:n,padding:5})),kb(e,t,{placement:r,strategy:i,middleware:l}).then(({x:c,y:u,placement:d,middlewareData:p})=>{var h,v;const m={left:`${c}px`,top:`${u}px`,border:a},{x:C,y:g}=(h=p.arrow)!==null&&h!==void 0?h:{x:0,y:0},y=(v={top:"bottom",right:"left",bottom:"top",left:"right"}[d.split("-")[0]])!==null&&v!==void 0?v:"bottom",x=a&&{borderBottom:a,borderRight:a};let w=0;if(a){const S=`${a}`.match(/(\d+)px/);w=S!=null&&S[1]?Number(S[1]):1}return{tooltipStyles:m,tooltipArrowStyles:{left:C!=null?`${C}px`:"",top:g!=null?`${g}px`:"",right:"",bottom:"",...x,[y]:`-${4+w}px`},place:d}})):kb(e,t,{placement:"bottom",strategy:i,middleware:l}).then(({x:c,y:u,placement:d})=>({tooltipStyles:{left:`${c}px`,top:`${u}px`},tooltipArrowStyles:{},place:d}))},Ib=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),_b=(e,t,n)=>{let r=null;const o=function(...i){const s=()=>{r=null};!r&&(e.apply(this,i),r=setTimeout(s,t))};return o.cancel=()=>{r&&(clearTimeout(r),r=null)},o},jb=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",r0=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((o,i)=>r0(o,t[i]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!jb(e)||!jb(t))return e===t;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>r0(e[o],t[o]))},q8=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})},Mb=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(q8(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},Q8=typeof window<"u"?b.useLayoutEffect:b.useEffect,or=e=>{e.current&&(clearTimeout(e.current),e.current=null)},K8="DEFAULT_TOOLTIP_ID",Z8={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},Y8=b.createContext({getTooltipData:()=>Z8});function bk(e=K8){return b.useContext(Y8).getTooltipData(e)}var Ps={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},em={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const X8=({forwardRef:e,id:t,className:n,classNameArrow:r,variant:o="dark",anchorId:i,anchorSelect:s,place:a="top",offset:l=10,events:c=["hover"],openOnClick:u=!1,positionStrategy:d="absolute",middlewares:p,wrapper:h,delayShow:v=0,delayHide:m=0,float:C=!1,hidden:g=!1,noArrow:y=!1,clickable:x=!1,closeOnEsc:w=!1,closeOnScroll:S=!1,closeOnResize:T=!1,openEvents:R,closeEvents:P,globalCloseEvents:_,imperativeModeOnly:k,style:E,position:M,afterShow:$,afterHide:O,content:z,contentWrapperRef:L,isOpen:D,defaultIsOpen:j=!1,setIsOpen:N,activeAnchor:W,setActiveAnchor:se,border:ae,opacity:Re,arrowColor:Y,role:ce="tooltip"})=>{var G;const fe=b.useRef(null),pe=b.useRef(null),me=b.useRef(null),Oe=b.useRef(null),ge=b.useRef(null),[Ae,Te]=b.useState({tooltipStyles:{},tooltipArrowStyles:{},place:a}),[Ee,Ie]=b.useState(!1),[le,at]=b.useState(!1),[ue,Je]=b.useState(null),Ge=b.useRef(!1),Ne=b.useRef(null),{anchorRefs:ht,setActiveAnchor:tt}=bk(t),ze=b.useRef(!1),[mt,It]=b.useState([]),yt=b.useRef(!1),_e=u||c.includes("click"),ee=_e||(R==null?void 0:R.click)||(R==null?void 0:R.dblclick)||(R==null?void 0:R.mousedown),dt=R?{...R}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!R&&_e&&Object.assign(dt,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const Yt=P?{...P}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!P&&_e&&Object.assign(Yt,{mouseleave:!1,blur:!1,mouseout:!1});const wt=_?{..._}:{escape:w||!1,scroll:S||!1,resize:T||!1,clickOutsideAnchor:ee||!1};k&&(Object.assign(dt,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Yt,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(wt,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),Q8(()=>(yt.current=!0,()=>{yt.current=!1}),[]);const te=ne=>{yt.current&&(ne&&at(!0),setTimeout(()=>{yt.current&&(N==null||N(ne),D===void 0&&Ie(ne))},10))};b.useEffect(()=>{if(D===void 0)return()=>null;D&&at(!0);const ne=setTimeout(()=>{Ie(D)},10);return()=>{clearTimeout(ne)}},[D]),b.useEffect(()=>{if(Ee!==Ge.current)if(or(ge),Ge.current=Ee,Ee)$==null||$();else{const ne=(ve=>{const xe=ve.match(/^([\d.]+)(ms|s)$/);if(!xe)return 0;const[,ot,Wt]=xe;return Number(ot)*(Wt==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));ge.current=setTimeout(()=>{at(!1),Je(null),O==null||O()},ne+25)}},[Ee]);const De=ne=>{Te(ve=>r0(ve,ne)?ve:ne)},qe=(ne=v)=>{or(me),le?te(!0):me.current=setTimeout(()=>{te(!0)},ne)},Dt=(ne=m)=>{or(Oe),Oe.current=setTimeout(()=>{ze.current||te(!1)},ne)},An=ne=>{var ve;if(!ne)return;const xe=(ve=ne.currentTarget)!==null&&ve!==void 0?ve:ne.target;if(!(xe!=null&&xe.isConnected))return se(null),void tt({current:null});v?qe():te(!0),se(xe),tt({current:xe}),or(Oe)},Gr=()=>{x?Dt(m||100):m?Dt():te(!1),or(me)},Ft=({x:ne,y:ve})=>{var xe;const ot={getBoundingClientRect:()=>({x:ne,y:ve,width:0,height:0,top:ve,left:ne,right:ne,bottom:ve})};Pb({place:(xe=ue==null?void 0:ue.place)!==null&&xe!==void 0?xe:a,offset:l,elementReference:ot,tooltipReference:fe.current,tooltipArrowReference:pe.current,strategy:d,middlewares:p,border:ae}).then(Wt=>{De(Wt)})},sn=ne=>{if(!ne)return;const ve=ne,xe={x:ve.clientX,y:ve.clientY};Ft(xe),Ne.current=xe},an=ne=>{var ve;if(!Ee)return;const xe=ne.target;xe.isConnected&&(!((ve=fe.current)===null||ve===void 0)&&ve.contains(xe)||[document.querySelector(`[id='${i}']`),...mt].some(ot=>ot==null?void 0:ot.contains(xe))||(te(!1),or(me)))},kr=_b(An,50),gt=_b(Gr,50),Xt=ne=>{gt.cancel(),kr(ne)},Pe=()=>{kr.cancel(),gt()},Ve=b.useCallback(()=>{var ne,ve;const xe=(ne=ue==null?void 0:ue.position)!==null&&ne!==void 0?ne:M;xe?Ft(xe):C?Ne.current&&Ft(Ne.current):W!=null&&W.isConnected&&Pb({place:(ve=ue==null?void 0:ue.place)!==null&&ve!==void 0?ve:a,offset:l,elementReference:W,tooltipReference:fe.current,tooltipArrowReference:pe.current,strategy:d,middlewares:p,border:ae}).then(ot=>{yt.current&&De(ot)})},[Ee,W,z,E,a,ue==null?void 0:ue.place,l,d,M,ue==null?void 0:ue.position,C]);b.useEffect(()=>{var ne,ve;const xe=new Set(ht);mt.forEach(oe=>{xe.add({current:oe})});const ot=document.querySelector(`[id='${i}']`);ot&&xe.add({current:ot});const Wt=()=>{te(!1)},kn=Mb(W),Rn=Mb(fe.current);wt.scroll&&(window.addEventListener("scroll",Wt),kn==null||kn.addEventListener("scroll",Wt),Rn==null||Rn.addEventListener("scroll",Wt));let Vt=null;wt.resize?window.addEventListener("resize",Wt):W&&fe.current&&(Vt=z8(W,fe.current,Ve,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const en=oe=>{oe.key==="Escape"&&te(!1)};wt.escape&&window.addEventListener("keydown",en),wt.clickOutsideAnchor&&window.addEventListener("click",an);const it=[],Fn=oe=>{Ee&&(oe==null?void 0:oe.target)===W||An(oe)},Go=oe=>{Ee&&(oe==null?void 0:oe.target)===W&&Gr()},F=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],B=["click","dblclick","mousedown","mouseup"];Object.entries(dt).forEach(([oe,Ue])=>{Ue&&(F.includes(oe)?it.push({event:oe,listener:Xt}):B.includes(oe)&&it.push({event:oe,listener:Fn}))}),Object.entries(Yt).forEach(([oe,Ue])=>{Ue&&(F.includes(oe)?it.push({event:oe,listener:Pe}):B.includes(oe)&&it.push({event:oe,listener:Go}))}),C&&it.push({event:"pointermove",listener:sn});const re=()=>{ze.current=!0},J=()=>{ze.current=!1,Gr()};return x&&!ee&&((ne=fe.current)===null||ne===void 0||ne.addEventListener("mouseenter",re),(ve=fe.current)===null||ve===void 0||ve.addEventListener("mouseleave",J)),it.forEach(({event:oe,listener:Ue})=>{xe.forEach(st=>{var qt;(qt=st.current)===null||qt===void 0||qt.addEventListener(oe,Ue)})}),()=>{var oe,Ue;wt.scroll&&(window.removeEventListener("scroll",Wt),kn==null||kn.removeEventListener("scroll",Wt),Rn==null||Rn.removeEventListener("scroll",Wt)),wt.resize?window.removeEventListener("resize",Wt):Vt==null||Vt(),wt.clickOutsideAnchor&&window.removeEventListener("click",an),wt.escape&&window.removeEventListener("keydown",en),x&&!ee&&((oe=fe.current)===null||oe===void 0||oe.removeEventListener("mouseenter",re),(Ue=fe.current)===null||Ue===void 0||Ue.removeEventListener("mouseleave",J)),it.forEach(({event:st,listener:qt})=>{xe.forEach(ws=>{var ch;(ch=ws.current)===null||ch===void 0||ch.removeEventListener(st,qt)})})}},[W,Ve,le,ht,mt,R,P,_,_e,v,m]),b.useEffect(()=>{var ne,ve;let xe=(ve=(ne=ue==null?void 0:ue.anchorSelect)!==null&&ne!==void 0?ne:s)!==null&&ve!==void 0?ve:"";!xe&&t&&(xe=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const ot=new MutationObserver(Wt=>{const kn=[],Rn=[];Wt.forEach(Vt=>{if(Vt.type==="attributes"&&Vt.attributeName==="data-tooltip-id"&&(Vt.target.getAttribute("data-tooltip-id")===t?kn.push(Vt.target):Vt.oldValue===t&&Rn.push(Vt.target)),Vt.type==="childList"){if(W){const en=[...Vt.removedNodes].filter(it=>it.nodeType===1);if(xe)try{Rn.push(...en.filter(it=>it.matches(xe))),Rn.push(...en.flatMap(it=>[...it.querySelectorAll(xe)]))}catch{}en.some(it=>{var Fn;return!!(!((Fn=it==null?void 0:it.contains)===null||Fn===void 0)&&Fn.call(it,W))&&(at(!1),te(!1),se(null),or(me),or(Oe),!0)})}if(xe)try{const en=[...Vt.addedNodes].filter(it=>it.nodeType===1);kn.push(...en.filter(it=>it.matches(xe))),kn.push(...en.flatMap(it=>[...it.querySelectorAll(xe)]))}catch{}}}),(kn.length||Rn.length)&&It(Vt=>[...Vt.filter(en=>!Rn.includes(en)),...kn])});return ot.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{ot.disconnect()}},[t,s,ue==null?void 0:ue.anchorSelect,W]),b.useEffect(()=>{Ve()},[Ve]),b.useEffect(()=>{if(!(L!=null&&L.current))return()=>null;const ne=new ResizeObserver(()=>{setTimeout(()=>Ve())});return ne.observe(L.current),()=>{ne.disconnect()}},[z,L==null?void 0:L.current]),b.useEffect(()=>{var ne;const ve=document.querySelector(`[id='${i}']`),xe=[...mt,ve];W&&xe.includes(W)||se((ne=mt[0])!==null&&ne!==void 0?ne:ve)},[i,mt,W]),b.useEffect(()=>(j&&te(!0),()=>{or(me),or(Oe)}),[]),b.useEffect(()=>{var ne;let ve=(ne=ue==null?void 0:ue.anchorSelect)!==null&&ne!==void 0?ne:s;if(!ve&&t&&(ve=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),ve)try{const xe=Array.from(document.querySelectorAll(ve));It(xe)}catch{It([])}},[t,s,ue==null?void 0:ue.anchorSelect]),b.useEffect(()=>{me.current&&(or(me),qe(v))},[v]);const Jt=(G=ue==null?void 0:ue.content)!==null&&G!==void 0?G:z,qr=Ee&&Object.keys(Ae.tooltipStyles).length>0;return b.useImperativeHandle(e,()=>({open:ne=>{if(ne!=null&&ne.anchorSelect)try{document.querySelector(ne.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${ne.anchorSelect}" is not a valid CSS selector`)}Je(ne??null),ne!=null&&ne.delay?qe(ne.delay):te(!0)},close:ne=>{ne!=null&&ne.delay?Dt(ne.delay):te(!1)},activeAnchor:W,place:Ae.place,isOpen:!!(le&&!g&&Jt&&qr)})),le&&!g&&Jt?ft.createElement(h,{id:t,role:ce,className:n0("react-tooltip",Ps.tooltip,em.tooltip,em[o],n,`react-tooltip__place-${Ae.place}`,Ps[qr?"show":"closing"],qr?"react-tooltip__show":"react-tooltip__closing",d==="fixed"&&Ps.fixed,x&&Ps.clickable),onTransitionEnd:ne=>{or(ge),Ee||ne.propertyName!=="opacity"||(at(!1),Je(null),O==null||O())},style:{...E,...Ae.tooltipStyles,opacity:Re!==void 0&&qr?Re:void 0},ref:fe},Jt,ft.createElement(h,{className:n0("react-tooltip-arrow",Ps.arrow,em.arrow,r,y&&Ps.noArrow),style:{...Ae.tooltipArrowStyles,background:Y?`linear-gradient(to right bottom, transparent 50%, ${Y} 50%)`:void 0},ref:pe})):null},J8=({content:e})=>ft.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),e$=ft.forwardRef(({id:e,anchorId:t,anchorSelect:n,content:r,html:o,render:i,className:s,classNameArrow:a,variant:l="dark",place:c="top",offset:u=10,wrapper:d="div",children:p=null,events:h=["hover"],openOnClick:v=!1,positionStrategy:m="absolute",middlewares:C,delayShow:g=0,delayHide:y=0,float:x=!1,hidden:w=!1,noArrow:S=!1,clickable:T=!1,closeOnEsc:R=!1,closeOnScroll:P=!1,closeOnResize:_=!1,openEvents:k,closeEvents:E,globalCloseEvents:M,imperativeModeOnly:$=!1,style:O,position:z,isOpen:L,defaultIsOpen:D=!1,disableStyleInjection:j=!1,border:N,opacity:W,arrowColor:se,setIsOpen:ae,afterShow:Re,afterHide:Y,role:ce="tooltip"},G)=>{const[fe,pe]=b.useState(r),[me,Oe]=b.useState(o),[ge,Ae]=b.useState(c),[Te,Ee]=b.useState(l),[Ie,le]=b.useState(u),[at,ue]=b.useState(g),[Je,Ge]=b.useState(y),[Ne,ht]=b.useState(x),[tt,ze]=b.useState(w),[mt,It]=b.useState(d),[yt,_e]=b.useState(h),[ee,dt]=b.useState(m),[Yt,wt]=b.useState(null),[te,De]=b.useState(null),qe=b.useRef(j),{anchorRefs:Dt,activeAnchor:An}=bk(e),Gr=gt=>gt==null?void 0:gt.getAttributeNames().reduce((Xt,Pe)=>{var Ve;return Pe.startsWith("data-tooltip-")&&(Xt[Pe.replace(/^data-tooltip-/,"")]=(Ve=gt==null?void 0:gt.getAttribute(Pe))!==null&&Ve!==void 0?Ve:null),Xt},{}),Ft=gt=>{const Xt={place:Pe=>{var Ve;Ae((Ve=Pe)!==null&&Ve!==void 0?Ve:c)},content:Pe=>{pe(Pe??r)},html:Pe=>{Oe(Pe??o)},variant:Pe=>{var Ve;Ee((Ve=Pe)!==null&&Ve!==void 0?Ve:l)},offset:Pe=>{le(Pe===null?u:Number(Pe))},wrapper:Pe=>{var Ve;It((Ve=Pe)!==null&&Ve!==void 0?Ve:d)},events:Pe=>{const Ve=Pe==null?void 0:Pe.split(" ");_e(Ve??h)},"position-strategy":Pe=>{var Ve;dt((Ve=Pe)!==null&&Ve!==void 0?Ve:m)},"delay-show":Pe=>{ue(Pe===null?g:Number(Pe))},"delay-hide":Pe=>{Ge(Pe===null?y:Number(Pe))},float:Pe=>{ht(Pe===null?x:Pe==="true")},hidden:Pe=>{ze(Pe===null?w:Pe==="true")},"class-name":Pe=>{wt(Pe)}};Object.values(Xt).forEach(Pe=>Pe(null)),Object.entries(gt).forEach(([Pe,Ve])=>{var Jt;(Jt=Xt[Pe])===null||Jt===void 0||Jt.call(Xt,Ve)})};b.useEffect(()=>{pe(r)},[r]),b.useEffect(()=>{Oe(o)},[o]),b.useEffect(()=>{Ae(c)},[c]),b.useEffect(()=>{Ee(l)},[l]),b.useEffect(()=>{le(u)},[u]),b.useEffect(()=>{ue(g)},[g]),b.useEffect(()=>{Ge(y)},[y]),b.useEffect(()=>{ht(x)},[x]),b.useEffect(()=>{ze(w)},[w]),b.useEffect(()=>{dt(m)},[m]),b.useEffect(()=>{qe.current!==j&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[j]),b.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:j==="core",disableBase:j}}))},[]),b.useEffect(()=>{var gt;const Xt=new Set(Dt);let Pe=n;if(!Pe&&e&&(Pe=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),Pe)try{document.querySelectorAll(Pe).forEach(ve=>{Xt.add({current:ve})})}catch{console.warn(`[react-tooltip] "${Pe}" is not a valid CSS selector`)}const Ve=document.querySelector(`[id='${t}']`);if(Ve&&Xt.add({current:Ve}),!Xt.size)return()=>null;const Jt=(gt=te??Ve)!==null&>!==void 0?gt:An.current,qr=new MutationObserver(ve=>{ve.forEach(xe=>{var ot;if(!Jt||xe.type!=="attributes"||!(!((ot=xe.attributeName)===null||ot===void 0)&&ot.startsWith("data-tooltip-")))return;const Wt=Gr(Jt);Ft(Wt)})}),ne={attributes:!0,childList:!1,subtree:!1};if(Jt){const ve=Gr(Jt);Ft(ve),qr.observe(Jt,ne)}return()=>{qr.disconnect()}},[Dt,An,te,t,n]),b.useEffect(()=>{O!=null&&O.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),N&&!Ib("border",`${N}`)&&console.warn(`[react-tooltip] "${N}" is not a valid \`border\`.`),O!=null&&O.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),W&&!Ib("opacity",`${W}`)&&console.warn(`[react-tooltip] "${W}" is not a valid \`opacity\`.`)},[]);let sn=p;const an=b.useRef(null);if(i){const gt=i({content:(te==null?void 0:te.getAttribute("data-tooltip-content"))||fe||null,activeAnchor:te});sn=gt?ft.createElement("div",{ref:an,className:"react-tooltip-content-wrapper"},gt):null}else fe&&(sn=fe);me&&(sn=ft.createElement(J8,{content:me}));const kr={forwardRef:G,id:e,anchorId:t,anchorSelect:n,className:n0(s,Yt),classNameArrow:a,content:sn,contentWrapperRef:an,place:ge,variant:Te,offset:Ie,wrapper:mt,events:yt,openOnClick:v,positionStrategy:ee,middlewares:C,delayShow:at,delayHide:Je,float:Ne,hidden:tt,noArrow:S,clickable:T,closeOnEsc:R,closeOnScroll:P,closeOnResize:_,openEvents:k,closeEvents:E,globalCloseEvents:M,imperativeModeOnly:$,style:O,position:z,isOpen:L,defaultIsOpen:D,border:N,opacity:W,arrowColor:se,setIsOpen:ae,afterShow:Re,afterHide:Y,activeAnchor:te,setActiveAnchor:gt=>De(gt),role:ce};return ft.createElement(X8,{...kr})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||Eb({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||Eb({css:` -.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});var o0=new Map,Fu=new WeakMap,Ob=0,t$=void 0;function n$(e){return e?(Fu.has(e)||(Ob+=1,Fu.set(e,Ob.toString())),Fu.get(e)):"0"}function r$(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?n$(e.root):e[t]}`).toString()}function o$(e){const t=r$(e);let n=o0.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(s=>{s.forEach(a=>{var l;const c=a.isIntersecting&&o.some(u=>a.intersectionRatio>=u);e.trackVisibility&&typeof a.isVisible>"u"&&(a.isVisible=c),(l=r.get(a.target))==null||l.forEach(u=>{u(c,a)})})},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},o0.set(t,n)}return n}function i$(e,t,n={},r=t$){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const l=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:l,intersectionRect:l,rootBounds:l}),()=>{}}const{id:o,observer:i,elements:s}=o$(n),a=s.get(e)||[];return s.has(e)||s.set(e,a),a.push(t),i.observe(e),function(){a.splice(a.indexOf(t),1),a.length===0&&(s.delete(e),i.unobserve(e)),s.size===0&&(i.disconnect(),o0.delete(o))}}function Zr({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:s,initialInView:a,fallbackInView:l,onChange:c}={}){var u;const[d,p]=b.useState(null),h=b.useRef(),[v,m]=b.useState({inView:!!a,entry:void 0});h.current=c,b.useEffect(()=>{if(s||!d)return;let x;return x=i$(d,(w,S)=>{m({inView:w,entry:S}),h.current&&h.current(w,S),S.isIntersecting&&i&&x&&(x(),x=void 0)},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},l),()=>{x&&x()}},[Array.isArray(e)?e.toString():e,d,o,r,i,s,n,l,t]);const C=(u=v.entry)==null?void 0:u.target,g=b.useRef();!d&&C&&!i&&!s&&g.current!==C&&(g.current=C,m({inView:!!a,entry:void 0}));const y=[p,v.inView,v.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}const Ke=Dj({createStyledComponent:V("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>Se({props:e,name:"MuiGrid2"})});var ty={},tm={};const s$={configure:e=>{$v.configure(e)}},a$=Object.freeze(Object.defineProperty({__proto__:null,capitalize:U,createChainedFunction:qg,createSvgIcon:Bn,debounce:Bv,deprecatedPropType:Z_,isMuiElement:sa,ownerDocument:Gt,ownerWindow:ki,requirePropFactory:Y_,setRef:Tc,unstable_ClassNameGenerator:s$,unstable_useEnhancedEffect:Wr,unstable_useId:Ap,unsupportedProp:J_,useControlled:gi,useEventCallback:jn,useForkRef:Pt,useIsFocusVisible:WA},Symbol.toStringTag,{value:"Module"})),l$=zo(a$);var $b;function rr(){return $b||($b=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=l$}(tm)),tm}var c$=Sn;Object.defineProperty(ty,"__esModule",{value:!0});var Wa=ty.default=void 0,u$=c$(rr()),d$=f;Wa=ty.default=(0,u$.default)((0,d$.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");const Fe={unColor:"#418fde",unColorLighter:"#82b5e9",unColorDarker:"#144372",contrastColor:"#f79a3b",contrastColorLighter:"#f9c27b",contrastColorDarker:"#dc7309"};var ny={},f$=Sn;Object.defineProperty(ny,"__esModule",{value:!0});var wk=ny.default=void 0,p$=f$(rr()),h$=f;wk=ny.default=(0,p$.default)((0,h$.jsx)("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"List");const Nb={total:{bodyDAttribute:"M 6.995 18.083 L 6.995 26.833 C 6.995 27.478 6.473 28 5.828 28 C 5.184 28 4.662 27.478 4.662 26.833 L 4.662 8.75 C 3.193 9.578 2.298 11.147 2.333 12.833 C 2.333 13.478 1.811 14 1.167 14 C 0.522 14 0 13.478 0 12.833 C 0 8.959 2.908 6.099 6.995 5.85 L 7 18.083 L 6.995 18.083 L 6.995 18.083 Z M 8.167 20.417 L 8.167 26.833 C 8.167 27.478 8.689 28 9.333 28 C 9.978 28 10.5 27.478 10.5 26.833 L 10.5 20.417 L 11.667 20.417 C 11.825 20.431 11.982 20.374 12.095 20.262 C 12.208 20.149 12.265 19.992 12.25 19.833 L 9.917 8.75 C 11.647 9.367 12.811 10.996 12.833 12.833 C 12.833 13.478 13.356 14 14 14 C 14.644 14 15.167 13.478 15.167 12.833 C 15.167 8.961 12.255 6.099 8.167 5.85 L 8.167 5.833 L 8.167 20.417 Z",headDAttribute:"M 5.245 2.333 C 5.245 1.046 6.29 0 7.578 0 C 8.866 0 9.912 1.046 9.912 2.333 C 9.912 3.621 8.866 4.667 7.578 4.667 C 6.29 4.667 5.245 3.621 5.245 2.333 Z"},girls:{bodyDAttribute:"M 8 9.185 C 4.766 9.185 2.327 11.486 2.327 14.568 C 2.327 15.038 2.708 15.419 3.178 15.419 C 3.648 15.419 4.029 15.038 4.029 14.568 C 4.021 13.219 4.777 11.981 5.982 11.374 L 4.672 18.186 C 4.652 18.348 4.702 18.51 4.81 18.632 C 4.918 18.754 5.073 18.824 5.235 18.824 L 5.728 18.824 L 5.728 23.649 C 5.728 24.119 6.109 24.5 6.579 24.5 C 7.049 24.5 7.43 24.119 7.43 23.649 L 7.43 18.824 L 8.565 18.824 L 8.565 23.649 C 8.565 24.119 8.947 24.5 9.417 24.5 C 9.887 24.5 10.268 24.119 10.268 23.649 L 10.268 18.824 L 10.76 18.824 C 10.923 18.824 11.078 18.754 11.186 18.632 C 11.294 18.51 11.344 18.348 11.324 18.186 L 10.014 11.371 C 11.221 11.978 11.979 13.217 11.971 14.568 C 11.971 15.038 12.352 15.419 12.822 15.419 C 13.292 15.419 13.673 15.038 13.673 14.568 C 13.673 11.486 11.234 9.185 8 9.185 Z",headDAttribute:"M 5.728 5.77 C 5.728 4.517 6.745 3.5 7.998 3.5 C 9.251 3.5 10.268 4.517 10.268 5.77 C 10.268 7.023 9.251 8.041 7.998 8.041 C 6.745 8.041 5.728 7.023 5.728 5.77 Z"},boys:{bodyDAttribute:"M 8 9.185 C 4.766 9.185 2.327 11.486 2.327 14.568 C 2.327 15.038 2.708 15.419 3.178 15.419 C 3.648 15.419 4.029 15.038 4.029 14.568 C 4.019 13.321 4.666 12.162 5.732 11.515 L 5.732 23.649 C 5.732 24.119 6.113 24.5 6.583 24.5 C 7.053 24.5 7.434 24.119 7.434 23.649 L 7.434 17.689 L 8.569 17.689 L 8.569 23.649 C 8.569 24.119 8.951 24.5 9.421 24.5 C 9.891 24.5 10.272 24.119 10.272 23.649 L 10.272 11.517 C 11.335 12.164 11.981 13.323 11.971 14.568 C 11.971 15.038 12.352 15.419 12.822 15.419 C 13.292 15.419 13.673 15.038 13.673 14.568 C 13.673 11.486 11.234 9.185 8 9.185 Z",headDAttribute:"M 5.732 5.77 C 5.732 4.517 6.749 3.5 8.002 3.5 C 9.255 3.5 10.272 4.517 10.272 5.77 C 10.272 7.023 9.255 8.041 8.002 8.041 C 6.749 8.041 5.732 7.023 5.732 5.77 Z"},women:{bodyDAttribute:"M 7.583 5.833 C 3.185 5.833 0 8.779 0 12.833 C 0 13.478 0.522 14 1.167 14 C 1.811 14 2.333 13.478 2.333 12.833 C 2.333 10.989 3.505 9.348 5.25 8.75 L 2.917 19.833 C 2.902 19.992 2.959 20.149 3.072 20.262 C 3.184 20.374 3.341 20.431 3.5 20.417 L 4.667 20.417 L 4.667 26.833 C 4.667 27.478 5.189 28 5.833 28 C 6.478 28 7 27.478 7 26.833 L 7 20.417 L 8.167 20.417 L 8.167 26.833 C 8.167 27.478 8.689 28 9.333 28 C 9.978 28 10.5 27.478 10.5 26.833 L 10.5 20.417 L 11.667 20.417 C 11.825 20.431 11.982 20.374 12.095 20.262 C 12.208 20.149 12.265 19.992 12.25 19.833 L 9.917 8.75 C 11.647 9.367 12.811 10.996 12.833 12.833 C 12.833 13.478 13.356 14 14 14 C 14.644 14 15.167 13.478 15.167 12.833 C 15.167 8.779 11.976 5.833 7.583 5.833 Z",headDAttribute:"M 5.244 2.333 C 5.244 1.046 6.29 0 7.578 0 C 8.865 0 9.911 1.046 9.911 2.333 C 9.911 3.621 8.865 4.667 7.578 4.667 C 6.29 4.667 5.244 3.621 5.244 2.333 Z"},men:{bodyDAttribute:"M 7.578 5.833 C 3.187 5.833 0 8.777 0 12.833 C 0 13.478 0.522 14 1.167 14 C 1.811 14 2.333 13.478 2.333 12.833 C 2.298 11.147 3.193 9.578 4.662 8.75 L 4.662 26.833 C 4.662 27.478 5.184 28 5.828 28 C 6.473 28 6.995 27.478 6.995 26.833 L 6.995 18.083 L 8.162 18.083 L 8.162 26.833 C 8.162 27.478 8.684 28 9.328 28 C 9.973 28 10.495 27.478 10.495 26.833 L 10.495 8.749 C 11.965 9.577 12.861 11.146 12.826 12.833 C 12.826 13.478 13.348 14 13.993 14 C 14.637 14 15.159 13.478 15.159 12.833 C 15.159 8.777 11.971 5.833 7.578 5.833 Z",headDAttribute:"M 5.245 2.333 C 5.245 1.046 6.29 0 7.578 0 C 8.866 0 9.912 1.046 9.912 2.333 C 9.912 3.621 8.866 4.667 7.578 4.667 C 6.29 4.667 5.245 3.621 5.245 2.333 Z"}};function jc({svgProps:e,type:t}){return f.jsx(mo,{...e,children:f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 29",fill:"currentColor",children:[f.jsx("path",{d:Nb[t].headDAttribute}),f.jsx("path",{d:Nb[t].bodyDAttribute})]})})}var ry={},m$=Sn;Object.defineProperty(ry,"__esModule",{value:!0});var Ck=ry.default=void 0,g$=m$(rr()),v$=f;Ck=ry.default=(0,g$.default)((0,v$.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m.88 15.76V19h-1.75v-1.29c-.74-.18-2.39-.77-3.02-2.96l1.65-.67c.06.22.58 2.09 2.4 2.09.93 0 1.98-.48 1.98-1.61 0-.96-.7-1.46-2.28-2.03-1.1-.39-3.35-1.03-3.35-3.31 0-.1.01-2.4 2.62-2.96V5h1.75v1.24c1.84.32 2.51 1.79 2.66 2.23l-1.58.67c-.11-.35-.59-1.34-1.9-1.34-.7 0-1.81.37-1.81 1.39 0 .95.86 1.31 2.64 1.9 2.4.83 3.01 2.05 3.01 3.45 0 2.63-2.5 3.13-3.02 3.22"}),"Paid");var oy={},y$=Sn;Object.defineProperty(oy,"__esModule",{value:!0});var Sk=oy.default=void 0,x$=y$(rr()),b$=f;Sk=oy.default=(0,x$.default)((0,b$.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public");function w$({svgProps:e}){return f.jsx(mo,{...e,children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"48",viewBox:"0 0 42 48",children:f.jsx("g",{id:"Layer_2","data-name":"Layer 2",children:f.jsxs("g",{id:"Icons",children:[f.jsx("path",{d:"M41.96045,6.6084c-.01184-.05994-.03418-.11548-.05127-.17334a1.99742,1.99742,0,0,0-.062-.19959,1.96364,1.96364,0,0,0-.103-.19568c-.02734-.04956-.04883-.10107-.08057-.14843a2.01093,2.01093,0,0,0-.55493-.55493c-.04736-.03174-.09887-.05323-.14843-.08057a1.96364,1.96364,0,0,0-.19568-.103,1.99742,1.99742,0,0,0-.19959-.062c-.05786-.01709-.1134-.03943-.17334-.05127A1.99416,1.99416,0,0,0,40,5H33a2,2,0,0,0,0,4h2.17188l-4.22974,4.22974A11.981,11.981,0,0,0,12,23,12.20025,12.20025,0,0,0,22,35v4H19a2,2,0,0,0,0,4h3v3a2,2,0,0,0,4,0V43h3a2,2,0,0,0,0-4H26V35A12.20025,12.20025,0,0,0,36,23a11.92205,11.92205,0,0,0-2.22974-6.94214L38,11.82812V14a2,2,0,0,0,4,0V7A1.99416,1.99416,0,0,0,41.96045,6.6084ZM24,31a8,8,0,1,1,8-8A8.00917,8.00917,0,0,1,24,31Z",fill:"#4e8fcc"}),f.jsx("path",{d:"M6.41406,3.58594A1.99978,1.99978,0,0,0,3.58594,6.41406l4,4a1.99978,1.99978,0,1,0,2.82812-2.82812Z",fill:"#4e8fcc"}),f.jsx("path",{d:"M7,13.00488H2a2,2,0,0,0,0,4H7a2,2,0,0,0,0-4Z",fill:"#4e8fcc"}),f.jsx("path",{d:"M15,9a2.0001,2.0001,0,0,0,2-2V2a2,2,0,0,0-4,0V7A2.0001,2.0001,0,0,0,15,9Z",fill:"#4e8fcc"})]})})})})}function C$({svgProps:e}){return f.jsx(mo,{...e,children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 45.99759 48.00135",children:f.jsx("g",{id:"Layer_2","data-name":"Layer 2",children:f.jsxs("g",{id:"Icons",children:[f.jsx("path",{fill:"#4e8fcc",d:"M38.99756,7.46479a4,4,0,1,0-1.46411-5.46411A4.00006,4.00006,0,0,0,38.99756,7.46479Z"}),f.jsx("path",{fill:"#4e8fcc",d:"M30.21777,34.23279a2.99744,2.99744,0,0,0-3.96,1.52442A10.77539,10.77539,0,0,1,16.5,42.00135a10.5118,10.5118,0,0,1-10.5-10.5c0-5.69141,5.03711-10.5,11-10.5a3,3,0,1,0,0-6c-9.21484,0-17,7.55615-17,16.5a16.59681,16.59681,0,0,0,31.74219,6.69043A3.00062,3.00062,0,0,0,30.21777,34.23279Z"}),f.jsx("path",{fill:"#4e8fcc",d:"M45.20166,23.96619a3.0103,3.0103,0,0,0-2.3916-.959l-8.81958.55121,5.53711-8.04706a2.09639,2.09639,0,0,0,.1499-.30005,2.4698,2.4698,0,0,0-.03-2.48,2.68056,2.68056,0,0,0-.67993-.75l-3.5-2.43-8-5.57a2.49379,2.49379,0,0,0-3.24.25l-4.5,4.5a2.50317,2.50317,0,0,0,3.54,3.54l2.99-2.99,4.25,2.93-7,11.85a4.00113,4.00113,0,0,0,3.5,5.94l.05444-.01093c.04151-.00073.08106.00751.123.00507l12.32129-.77L38.02783,39.577a2.99989,2.99989,0,1,0,5.93946.84863l2-14A2.99772,2.99772,0,0,0,45.20166,23.96619Z"})]})})})})}function S$({svgProps:e}){return f.jsx(mo,{...e,children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 47.9975",children:f.jsx("g",{id:"Layer_2","data-name":"Layer 2",children:f.jsxs("g",{id:"Icons",children:[f.jsx("path",{fill:"#4e8fcc",d:"M45.66992,12.66742a1.49656,1.49656,0,0,0-.58984-1.01L30.5.33746a1.65038,1.65038,0,0,0-2,0l-14.58008,11.32a1.49656,1.49656,0,0,0-.58984,1.01l-.77,5.70007,3.09985-2.4a4.6429,4.6429,0,0,1,5.68018,0L27,20.36749l2,1.54993,2.68994,2.09009,1.28.99,2.92,2.27a4.41348,4.41348,0,0,1,1.70008,2.73H48Z"}),f.jsx("path",{fill:"#4e8fcc",d:"M34.08008,29.65741,29,25.71747l-.91992-.72L27,24.15741l-7.5-5.81995a1.613,1.613,0,0,0-1-.34,1.59276,1.59276,0,0,0-1,.34l-5.51,4.28L2.91992,29.65741a1.49656,1.49656,0,0,0-.58984,1.01L0,47.9975H18v-9.71a.292.292,0,0,1,.3-.29.30169.30169,0,0,1,.26.1499L24,47.9975H37L34.66992,30.66742A1.49656,1.49656,0,0,0,34.08008,29.65741Z"})]})})})})}function A$({svgProps:e}){return f.jsx(mo,{...e,children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 48",children:f.jsx("g",{id:"Layer_2","data-name":"Layer 2",children:f.jsxs("g",{id:"Icons",children:[f.jsx("path",{fill:"#4e8fcc",d:"M25,14a1.00288,1.00288,0,0,0-1,1v6a1,1,0,0,0,2,0V15A1.00288,1.00288,0,0,0,25,14Z"}),f.jsx("path",{fill:"#4e8fcc",d:"M30,6H2A2.00583,2.00583,0,0,0,0,8V30H32V8A2.00583,2.00583,0,0,0,30,6ZM11,23a.99518.99518,0,0,1-.77.97A.90621.90621,0,0,1,10,24a.999.999,0,0,1-.89-.55L6,17.24V23a1,1,0,0,1-2,0V13a.99918.99918,0,0,1,1.89-.44995L9,18.76V13a1,1,0,0,1,2,0Zm9-2.5a3.5,3.5,0,0,1-7,0V15a3.00887,3.00887,0,0,1,3-3h2a1,1,0,0,1,0,2H16a1.00288,1.00288,0,0,0-1,1v5.5a1.5,1.5,0,0,0,3,0V19H17a1,1,0,0,1,0-2h1a2.00583,2.00583,0,0,1,2,2Zm8,.5a3,3,0,0,1-6,0V15a3,3,0,0,1,6,0Z"}),f.jsx("path",{fill:"#4e8fcc",d:"M6,4H26a2,2,0,0,0,0-4H6A2,2,0,0,0,6,4Z"}),f.jsx("path",{fill:"#4e8fcc",d:"M0,44H12V38a2.00583,2.00583,0,0,1,2-2h4a2.00583,2.00583,0,0,1,2,2V44H32V32H0Z"})]})})})})}function k$({inViewSummary:e,inViewPictogram:t,inViewBeneficiaryTypes:n,inViewOrganizations:r,inViewSectors:o,inViewIndicators:i,inViewDisability:s,inViewGBV:a,refIds:l}){function c(u){var d;(d=document.getElementById(u))==null||d.scrollIntoView({behavior:"smooth",block:"center"})}return f.jsxs(q,{display:"flex",flexDirection:"row",mt:.5,mb:2,gap:1,children:[f.jsx(Ko,{label:"Summary",inView:e,reference:l.summaryRefId,handleOnClick:c,Icon:Ck}),f.jsx(Ko,{label:"By Gender/Age",inView:t,reference:l.pictogramRefId,handleOnClick:c,Icon:jc}),f.jsx(Ko,{label:"By Type",inView:n,reference:l.beneficiaryTypesRefId,handleOnClick:c,Icon:S$,ochaIcon:!0}),f.jsx(Ko,{label:"By Organization",inView:r,reference:l.organizationsRefId,handleOnClick:c,Icon:A$,ochaIcon:!0}),f.jsx(Ko,{label:"By Sector",inView:o,reference:l.sectorsRefId,handleOnClick:c,Icon:wk}),f.jsx(Ko,{label:"Disability",inView:s,reference:l.disabilityRefId,handleOnClick:c,Icon:C$,ochaIcon:!0}),f.jsx(Ko,{label:"GBV",inView:a,reference:l.gbvRefId,handleOnClick:c,Icon:w$,ochaIcon:!0}),f.jsx(Ko,{label:"Global Indicators",inView:i,reference:l.indicatorsRefId,handleOnClick:c,Icon:Sk})]})}function Ko({label:e,inView:t,reference:n,handleOnClick:r,Icon:o,ochaIcon:i}){return f.jsx(Sr,{elevation:1,style:{padding:"0.2rem 1rem 0rem 1rem",borderBottom:t?`3px solid ${Fe.unColor}`:"3px solid transparent",cursor:"pointer"},className:"scrollSpyTab",onClick:()=>r(n),children:f.jsxs(q,{display:"flex",flexDirection:"row",alignItems:"center",children:[f.jsx(o,{htmlColor:Fe.unColor,fontSize:"medium",...e==="By Gender/Age"&&{type:"total",svgProps:{style:{width:12,fill:Fe.unColor}}},...i&&{svgProps:{style:{width:20,fill:Fe.unColor}}}}),f.jsx(ye,{variant:"body2",style:{fontSize:"0.85rem",color:"#555",marginLeft:"0.5em"},children:e})]})})}const R$=ft.memo(k$);var Lb;const T$=["children","classes","className","label","notched"],E$=V("fieldset",{shouldForwardProp:zn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),P$=V("legend",{shouldForwardProp:zn})(({ownerState:e,theme:t})=>A({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&A({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function I$(e){const{className:t,label:n,notched:r}=e,o=H(e,T$),i=n!=null&&n!=="",s=A({},e,{notched:r,withLabel:i});return f.jsx(E$,A({"aria-hidden":!0,className:t,ownerState:s},o,{children:f.jsx(P$,{ownerState:s,children:i?f.jsx("span",{children:n}):Lb||(Lb=f.jsx("span",{className:"notranslate",children:"​"}))})}))}const iy=b.createContext(void 0);function Vo(){return b.useContext(iy)}function ji({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const _$=["onChange","maxRows","minRows","style","value"];function Wu(e){return parseInt(e,10)||0}const j$={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function M$(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const O$=b.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a}=t,l=H(t,_$),{current:c}=b.useRef(a!=null),u=b.useRef(null),d=Pt(n,u),p=b.useRef(null),h=b.useRef(null),v=b.useCallback(()=>{const g=u.current,x=ki(g).getComputedStyle(g);if(x.width==="0px")return{outerHeightStyle:0,overflowing:!1};const w=h.current;w.style.width=x.width,w.value=g.value||t.placeholder||"x",w.value.slice(-1)===` -`&&(w.value+=" ");const S=x.boxSizing,T=Wu(x.paddingBottom)+Wu(x.paddingTop),R=Wu(x.borderBottomWidth)+Wu(x.borderTopWidth),P=w.scrollHeight;w.value="x";const _=w.scrollHeight;let k=P;i&&(k=Math.max(Number(i)*_,k)),o&&(k=Math.min(Number(o)*_,k)),k=Math.max(k,_);const E=k+(S==="border-box"?T+R:0),M=Math.abs(k-P)<=1;return{outerHeightStyle:E,overflowing:M}},[o,i,t.placeholder]),m=b.useCallback(()=>{const g=v();if(M$(g))return;const y=g.outerHeightStyle,x=u.current;p.current!==y&&(p.current=y,x.style.height=`${y}px`),x.style.overflow=g.overflowing?"hidden":""},[v]);Wr(()=>{const g=()=>{m()};let y;const x=Bv(g),w=u.current,S=ki(w);S.addEventListener("resize",x);let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(g),T.observe(w)),()=>{x.clear(),cancelAnimationFrame(y),S.removeEventListener("resize",x),T&&T.disconnect()}},[v,m]),Wr(()=>{m()});const C=g=>{c||m(),r&&r(g)};return f.jsxs(b.Fragment,{children:[f.jsx("textarea",A({value:a,onChange:C,ref:d,rows:i,style:s},l)),f.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:A({},j$.shadow,s,{paddingTop:0,paddingBottom:0})})]})});function $$(e){return f.jsx(k_,A({},e,{defaultTheme:Gv,themeId:Ep}))}function Db(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function yf(e,t=!1){return e&&(Db(e.value)&&e.value!==""||t&&Db(e.defaultValue)&&e.defaultValue!=="")}function N$(e){return e.startAdornment}function L$(e){return be("MuiInputBase",e)}const Vn=Ce("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),D$=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Op=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${U(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},$p=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},z$=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:h,type:v}=e,m={root:["root",`color${U(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",p&&p!=="medium"&&`size${U(p)}`,u&&"multiline",h&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",u&&"inputMultiline",p==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return we(m,L$,t)},Np=V("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Op})(({theme:e,ownerState:t})=>A({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Vn.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&A({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Lp=V("input",{name:"MuiInputBase",slot:"Input",overridesResolver:$p})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=A({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return A({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Vn.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Vn.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),B$=f.jsx($$,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),F$=b.forwardRef(function(t,n){var r;const o=Se({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:l,components:c={},componentsProps:u={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:h,endAdornment:v,fullWidth:m=!1,id:C,inputComponent:g="input",inputProps:y={},inputRef:x,maxRows:w,minRows:S,multiline:T=!1,name:R,onBlur:P,onChange:_,onClick:k,onFocus:E,onKeyDown:M,onKeyUp:$,placeholder:O,readOnly:z,renderSuffix:L,rows:D,slotProps:j={},slots:N={},startAdornment:W,type:se="text",value:ae}=o,Re=H(o,D$),Y=y.value!=null?y.value:ae,{current:ce}=b.useRef(Y!=null),G=b.useRef(),fe=b.useCallback(_e=>{},[]),pe=Pt(G,x,y.ref,fe),[me,Oe]=b.useState(!1),ge=Vo(),Ae=ji({props:o,muiFormControl:ge,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ae.focused=ge?ge.focused:me,b.useEffect(()=>{!ge&&p&&me&&(Oe(!1),P&&P())},[ge,p,me,P]);const Te=ge&&ge.onFilled,Ee=ge&&ge.onEmpty,Ie=b.useCallback(_e=>{yf(_e)?Te&&Te():Ee&&Ee()},[Te,Ee]);Wr(()=>{ce&&Ie({value:Y})},[Y,Ie,ce]);const le=_e=>{if(Ae.disabled){_e.stopPropagation();return}E&&E(_e),y.onFocus&&y.onFocus(_e),ge&&ge.onFocus?ge.onFocus(_e):Oe(!0)},at=_e=>{P&&P(_e),y.onBlur&&y.onBlur(_e),ge&&ge.onBlur?ge.onBlur(_e):Oe(!1)},ue=(_e,...ee)=>{if(!ce){const dt=_e.target||G.current;if(dt==null)throw new Error(cs(1));Ie({value:dt.value})}y.onChange&&y.onChange(_e,...ee),_&&_(_e,...ee)};b.useEffect(()=>{Ie(G.current)},[]);const Je=_e=>{G.current&&_e.currentTarget===_e.target&&G.current.focus(),k&&k(_e)};let Ge=g,Ne=y;T&&Ge==="input"&&(D?Ne=A({type:void 0,minRows:D,maxRows:D},Ne):Ne=A({type:void 0,maxRows:w,minRows:S},Ne),Ge=O$);const ht=_e=>{Ie(_e.animationName==="mui-auto-fill-cancel"?G.current:{value:"x"})};b.useEffect(()=>{ge&&ge.setAdornedStart(!!W)},[ge,W]);const tt=A({},o,{color:Ae.color||"primary",disabled:Ae.disabled,endAdornment:v,error:Ae.error,focused:Ae.focused,formControl:ge,fullWidth:m,hiddenLabel:Ae.hiddenLabel,multiline:T,size:Ae.size,startAdornment:W,type:se}),ze=z$(tt),mt=N.root||c.Root||Np,It=j.root||u.root||{},yt=N.input||c.Input||Lp;return Ne=A({},Ne,(r=j.input)!=null?r:u.input),f.jsxs(b.Fragment,{children:[!h&&B$,f.jsxs(mt,A({},It,!df(mt)&&{ownerState:A({},tt,It.ownerState)},{ref:n,onClick:Je},Re,{className:Z(ze.root,It.className,l,z&&"MuiInputBase-readOnly"),children:[W,f.jsx(iy.Provider,{value:null,children:f.jsx(yt,A({ownerState:tt,"aria-invalid":Ae.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:d,disabled:Ae.disabled,id:C,onAnimationStart:ht,name:R,placeholder:O,readOnly:z,required:Ae.required,rows:D,value:Y,onKeyDown:M,onKeyUp:$,type:se},Ne,!df(yt)&&{as:Ge,ownerState:A({},tt,Ne.ownerState)},{ref:pe,className:Z(ze.input,Ne.className,z&&"MuiInputBase-readOnly"),onBlur:at,onChange:ue,onFocus:le}))}),v,L?L(A({},Ae,{startAdornment:W})):null]}))]})}),sy=F$;function W$(e){return be("MuiOutlinedInput",e)}const Jr=A({},Vn,Ce("MuiOutlinedInput",["root","notchedOutline","input"])),V$=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],U$=e=>{const{classes:t}=e,r=we({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},W$,t);return A({},t,r)},H$=V(Np,{shouldForwardProp:e=>zn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Op})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return A({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Jr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Jr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Jr.focused} .${Jr.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Jr.error} .${Jr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Jr.disabled} .${Jr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&A({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),G$=V(I$,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),q$=V(Lp,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:$p})(({theme:e,ownerState:t})=>A({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),Dp=b.forwardRef(function(t,n){var r,o,i,s,a;const l=Se({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:d="input",label:p,multiline:h=!1,notched:v,slots:m={},type:C="text"}=l,g=H(l,V$),y=U$(l),x=Vo(),w=ji({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=A({},l,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:x,fullWidth:u,hiddenLabel:w.hiddenLabel,multiline:h,size:w.size,type:C}),T=(r=(o=m.root)!=null?o:c.Root)!=null?r:H$,R=(i=(s=m.input)!=null?s:c.Input)!=null?i:q$;return f.jsx(sy,A({slots:{root:T,input:R},renderSuffix:P=>f.jsx(G$,{ownerState:S,className:y.notchedOutline,label:p!=null&&p!==""&&w.required?a||(a=f.jsxs(b.Fragment,{children:[p," ","*"]})):p,notched:typeof v<"u"?v:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:u,inputComponent:d,multiline:h,ref:n,type:C},g,{classes:A({},y,{notchedOutline:null})}))});Dp.muiName="Input";function Q$(e){return be("MuiFormLabel",e)}const $l=Ce("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),K$=["children","className","color","component","disabled","error","filled","focused","required"],Z$=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e,l={root:["root",`color${U(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return we(l,Q$,t)},Y$=V("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>A({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>A({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${$l.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${$l.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$l.error}`]:{color:(e.vars||e).palette.error.main}})),X$=V("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${$l.error}`]:{color:(e.vars||e).palette.error.main}})),J$=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,a=H(r,K$),l=Vo(),c=ji({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=A({},r,{color:c.color||"primary",component:s,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),d=Z$(u);return f.jsxs(Y$,A({as:s,ownerState:u,className:Z(d.root,i),ref:n},a,{children:[o,c.required&&f.jsxs(X$,{ownerState:u,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))});function e9(e){return be("MuiInputLabel",e)}Ce("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const t9=["disableAnimation","margin","shrink","variant","className"],n9=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${U(r)}`,s],asterisk:[a&&"asterisk"]},c=we(l,e9,t);return A({},t,c)},r9=V(J$,{shouldForwardProp:e=>zn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$l.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>A({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&A({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&A({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&A({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Ak=b.forwardRef(function(t,n){const r=Se({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:s}=r,a=H(r,t9),l=Vo();let c=i;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=ji({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),d=A({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),p=n9(d);return f.jsx(r9,A({"data-shrink":c,ownerState:d,ref:n,className:Z(p.root,s)},a,{classes:p}))}),xf=b.createContext({});function o9(e){return be("MuiDivider",e)}const zb=Ce("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),i9=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],s9=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:s,textAlign:a,variant:l}=e;return we({root:["root",t&&"absolute",l,i&&"light",s==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},o9,r)},a9=V("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>A({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Ye(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>A({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>A({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>A({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>A({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),l9=V("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>A({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),ro=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:s,component:a=i?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:d=a!=="hr"?"separator":void 0,textAlign:p="center",variant:h="fullWidth"}=r,v=H(r,i9),m=A({},r,{absolute:o,component:a,flexItem:l,light:c,orientation:u,role:d,textAlign:p,variant:h}),C=s9(m);return f.jsx(a9,A({as:a,className:Z(C.root,s),role:d,ref:n,ownerState:m},v,{children:i?f.jsx(l9,{className:C.wrapper,ownerState:m,children:i}):null}))});ro.muiSkipListHighlight=!0;const Bb=Ce("MuiListItemIcon",["root","alignItemsFlexStart"]);function c9(e){return be("MuiListItemText",e)}const bf=Ce("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),u9=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],d9=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return we({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},c9,t)},f9=V("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bf.primary}`]:t.primary},{[`& .${bf.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>A({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),p9=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:a=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d}=r,p=H(r,u9),{dense:h}=b.useContext(xf);let v=l??o,m=u;const C=A({},r,{disableTypography:s,inset:a,primary:!!v,secondary:!!m,dense:h}),g=d9(C);return v!=null&&v.type!==ye&&!s&&(v=f.jsx(ye,A({variant:h?"body2":"body1",className:g.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:v}))),m!=null&&m.type!==ye&&!s&&(m=f.jsx(ye,A({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},d,{children:m}))),f.jsxs(f9,A({className:Z(g.root,i),ownerState:C,ref:n},p,{children:[v,m]}))});function h9(e){return be("MuiMenuItem",e)}const nl=Ce("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),m9=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],g9=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},v9=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,l=we({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},h9,s);return A({},s,l)},y9=V(Lo,{shouldForwardProp:e=>zn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:g9})(({theme:e,ownerState:t})=>A({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${nl.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ye(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nl.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ye(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${nl.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ye(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ye(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${nl.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${nl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${zb.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${zb.inset}`]:{marginLeft:52},[`& .${bf.root}`]:{marginTop:0,marginBottom:0},[`& .${bf.inset}`]:{paddingLeft:36},[`& .${Bb.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&A({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Bb.root} svg`]:{fontSize:"1.25rem"}}))),x9=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:p}=r,h=H(r,m9),v=b.useContext(xf),m=b.useMemo(()=>({dense:s||v.dense||!1,disableGutters:l}),[v.dense,s,l]),C=b.useRef(null);Wr(()=>{o&&C.current&&C.current.focus()},[o]);const g=A({},r,{dense:m.dense,divider:a,disableGutters:l}),y=v9(r),x=Pt(C,n);let w;return r.disabled||(w=d!==void 0?d:-1),f.jsx(xf.Provider,{value:m,children:f.jsx(y9,A({ref:x,role:u,tabIndex:w,component:i,focusVisibleClassName:Z(y.focusVisible,c),className:Z(y.root,p)},h,{ownerState:g,classes:y}))})});function b9(e){return be("MuiFormControl",e)}Ce("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const w9=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],C9=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${U(n)}`,r&&"fullWidth"]};return we(o,b9,t)},S9=V("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>A({},t.root,t[`margin${U(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>A({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),kk=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:p=!1,margin:h="none",required:v=!1,size:m="medium",variant:C="outlined"}=r,g=H(r,w9),y=A({},r,{color:s,component:a,disabled:l,error:c,fullWidth:d,hiddenLabel:p,margin:h,required:v,size:m,variant:C}),x=C9(y),[w,S]=b.useState(()=>{let $=!1;return o&&b.Children.forEach(o,O=>{if(!sa(O,["Input","Select"]))return;const z=sa(O,["Select"])?O.props.input:O;z&&N$(z.props)&&($=!0)}),$}),[T,R]=b.useState(()=>{let $=!1;return o&&b.Children.forEach(o,O=>{sa(O,["Input","Select"])&&(yf(O.props,!0)||yf(O.props.inputProps,!0))&&($=!0)}),$}),[P,_]=b.useState(!1);l&&P&&_(!1);const k=u!==void 0&&!l?u:P;let E;const M=b.useMemo(()=>({adornedStart:w,setAdornedStart:S,color:s,disabled:l,error:c,filled:T,focused:k,fullWidth:d,hiddenLabel:p,size:m,onBlur:()=>{_(!1)},onEmpty:()=>{R(!1)},onFilled:()=>{R(!0)},onFocus:()=>{_(!0)},registerEffect:E,required:v,variant:C}),[w,s,l,c,T,k,d,p,E,v,m,C]);return f.jsx(iy.Provider,{value:M,children:f.jsx(S9,A({as:a,ownerState:y,className:Z(x.root,i),ref:n},g,{children:o}))})});var pt={};/** +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",s=0;s"u"||zb[n]||n==="core"&&typeof process<"u"&&(!((o=process==null?void 0:Db)===null||o===void 0)&&o.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((i=process==null?void 0:Db)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=S8),r||(r={});const{insertAt:s}=r;if(document.getElementById(t))return;const a=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.id=t,l.type="text/css",s==="top"&&a.firstChild?a.insertBefore(l,a.firstChild):a.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e)),zb[n]=!0}const Fb=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:o=10,strategy:i="absolute",middlewares:s=[v8(Number(o)),x8({fallbackAxisSideDirection:"start"}),y8({padding:5})],border:a})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const l=s;return n?(l.push(b8({element:n,padding:5})),Nb(e,t,{placement:r,strategy:i,middleware:l}).then(({x:c,y:u,placement:d,middlewareData:p})=>{var h,v;const m={left:`${c}px`,top:`${u}px`,border:a},{x:w,y:g}=(h=p.arrow)!==null&&h!==void 0?h:{x:0,y:0},y=(v={top:"bottom",right:"left",bottom:"top",left:"right"}[d.split("-")[0]])!==null&&v!==void 0?v:"bottom",x=a&&{borderBottom:a,borderRight:a};let S=0;if(a){const C=`${a}`.match(/(\d+)px/);S=C!=null&&C[1]?Number(C[1]):1}return{tooltipStyles:m,tooltipArrowStyles:{left:w!=null?`${w}px`:"",top:g!=null?`${g}px`:"",right:"",bottom:"",...x,[y]:`-${4+S}px`},place:d}})):Nb(e,t,{placement:"bottom",strategy:i,middleware:l}).then(({x:c,y:u,placement:d})=>({tooltipStyles:{left:`${c}px`,top:`${u}px`},tooltipArrowStyles:{},place:d}))},Wb=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),Vb=(e,t,n)=>{let r=null;const o=function(...i){const s=()=>{r=null};!r&&(e.apply(this,i),r=setTimeout(s,t))};return o.cancel=()=>{r&&(clearTimeout(r),r=null)},o},Ub=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",d0=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((o,i)=>d0(o,t[i]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!Ub(e)||!Ub(t))return e===t;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>d0(e[o],t[o]))},A8=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})},Hb=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(A8(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},k8=typeof window<"u"?b.useLayoutEffect:b.useEffect,sr=e=>{e.current&&(clearTimeout(e.current),e.current=null)},R8="DEFAULT_TOOLTIP_ID",E8={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},T8=b.createContext({getTooltipData:()=>E8});function Fk(e=R8){return b.useContext(T8).getTooltipData(e)}var js={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},am={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const P8=({forwardRef:e,id:t,className:n,classNameArrow:r,variant:o="dark",anchorId:i,anchorSelect:s,place:a="top",offset:l=10,events:c=["hover"],openOnClick:u=!1,positionStrategy:d="absolute",middlewares:p,wrapper:h,delayShow:v=0,delayHide:m=0,float:w=!1,hidden:g=!1,noArrow:y=!1,clickable:x=!1,closeOnEsc:S=!1,closeOnScroll:C=!1,closeOnResize:E=!1,openEvents:k,closeEvents:P,globalCloseEvents:_,imperativeModeOnly:R,style:T,position:M,afterShow:$,afterHide:O,content:z,contentWrapperRef:N,isOpen:D,defaultIsOpen:j=!1,setIsOpen:L,activeAnchor:W,setActiveAnchor:se,border:ae,opacity:Re,arrowColor:Y,role:ce="tooltip"})=>{var q;const fe=b.useRef(null),pe=b.useRef(null),ge=b.useRef(null),Oe=b.useRef(null),ve=b.useRef(null),[Ae,Ee]=b.useState({tooltipStyles:{},tooltipArrowStyles:{},place:a}),[Te,Ie]=b.useState(!1),[le,at]=b.useState(!1),[ue,Je]=b.useState(null),Ge=b.useRef(!1),Le=b.useRef(null),{anchorRefs:ht,setActiveAnchor:tt}=Fk(t),ze=b.useRef(!1),[mt,It]=b.useState([]),yt=b.useRef(!1),_e=u||c.includes("click"),ee=_e||(k==null?void 0:k.click)||(k==null?void 0:k.dblclick)||(k==null?void 0:k.mousedown),dt=k?{...k}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!k&&_e&&Object.assign(dt,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const Yt=P?{...P}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!P&&_e&&Object.assign(Yt,{mouseleave:!1,blur:!1,mouseout:!1});const wt=_?{..._}:{escape:S||!1,scroll:C||!1,resize:E||!1,clickOutsideAnchor:ee||!1};R&&(Object.assign(dt,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Yt,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(wt,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),k8(()=>(yt.current=!0,()=>{yt.current=!1}),[]);const te=ne=>{yt.current&&(ne&&at(!0),setTimeout(()=>{yt.current&&(L==null||L(ne),D===void 0&&Ie(ne))},10))};b.useEffect(()=>{if(D===void 0)return()=>null;D&&at(!0);const ne=setTimeout(()=>{Ie(D)},10);return()=>{clearTimeout(ne)}},[D]),b.useEffect(()=>{if(Te!==Ge.current)if(sr(ve),Ge.current=Te,Te)$==null||$();else{const ne=(ye=>{const xe=ye.match(/^([\d.]+)(ms|s)$/);if(!xe)return 0;const[,ot,Wt]=xe;return Number(ot)*(Wt==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));ve.current=setTimeout(()=>{at(!1),Je(null),O==null||O()},ne+25)}},[Te]);const De=ne=>{Ee(ye=>d0(ye,ne)?ye:ne)},qe=(ne=v)=>{sr(ge),le?te(!0):ge.current=setTimeout(()=>{te(!0)},ne)},Dt=(ne=m)=>{sr(Oe),Oe.current=setTimeout(()=>{ze.current||te(!1)},ne)},An=ne=>{var ye;if(!ne)return;const xe=(ye=ne.currentTarget)!==null&&ye!==void 0?ye:ne.target;if(!(xe!=null&&xe.isConnected))return se(null),void tt({current:null});v?qe():te(!0),se(xe),tt({current:xe}),sr(Oe)},Kr=()=>{x?Dt(m||100):m?Dt():te(!1),sr(ge)},Ft=({x:ne,y:ye})=>{var xe;const ot={getBoundingClientRect:()=>({x:ne,y:ye,width:0,height:0,top:ye,left:ne,right:ne,bottom:ye})};Fb({place:(xe=ue==null?void 0:ue.place)!==null&&xe!==void 0?xe:a,offset:l,elementReference:ot,tooltipReference:fe.current,tooltipArrowReference:pe.current,strategy:d,middlewares:p,border:ae}).then(Wt=>{De(Wt)})},sn=ne=>{if(!ne)return;const ye=ne,xe={x:ye.clientX,y:ye.clientY};Ft(xe),Le.current=xe},an=ne=>{var ye;if(!Te)return;const xe=ne.target;xe.isConnected&&(!((ye=fe.current)===null||ye===void 0)&&ye.contains(xe)||[document.querySelector(`[id='${i}']`),...mt].some(ot=>ot==null?void 0:ot.contains(xe))||(te(!1),sr(ge)))},Er=Vb(An,50),gt=Vb(Kr,50),Xt=ne=>{gt.cancel(),Er(ne)},Pe=()=>{Er.cancel(),gt()},Ve=b.useCallback(()=>{var ne,ye;const xe=(ne=ue==null?void 0:ue.position)!==null&&ne!==void 0?ne:M;xe?Ft(xe):w?Le.current&&Ft(Le.current):W!=null&&W.isConnected&&Fb({place:(ye=ue==null?void 0:ue.place)!==null&&ye!==void 0?ye:a,offset:l,elementReference:W,tooltipReference:fe.current,tooltipArrowReference:pe.current,strategy:d,middlewares:p,border:ae}).then(ot=>{yt.current&&De(ot)})},[Te,W,z,T,a,ue==null?void 0:ue.place,l,d,M,ue==null?void 0:ue.position,w]);b.useEffect(()=>{var ne,ye;const xe=new Set(ht);mt.forEach(oe=>{xe.add({current:oe})});const ot=document.querySelector(`[id='${i}']`);ot&&xe.add({current:ot});const Wt=()=>{te(!1)},kn=Hb(W),Rn=Hb(fe.current);wt.scroll&&(window.addEventListener("scroll",Wt),kn==null||kn.addEventListener("scroll",Wt),Rn==null||Rn.addEventListener("scroll",Wt));let Vt=null;wt.resize?window.addEventListener("resize",Wt):W&&fe.current&&(Vt=g8(W,fe.current,Ve,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const en=oe=>{oe.key==="Escape"&&te(!1)};wt.escape&&window.addEventListener("keydown",en),wt.clickOutsideAnchor&&window.addEventListener("click",an);const it=[],Vn=oe=>{Te&&(oe==null?void 0:oe.target)===W||An(oe)},Zo=oe=>{Te&&(oe==null?void 0:oe.target)===W&&Kr()},F=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],B=["click","dblclick","mousedown","mouseup"];Object.entries(dt).forEach(([oe,Ue])=>{Ue&&(F.includes(oe)?it.push({event:oe,listener:Xt}):B.includes(oe)&&it.push({event:oe,listener:Vn}))}),Object.entries(Yt).forEach(([oe,Ue])=>{Ue&&(F.includes(oe)?it.push({event:oe,listener:Pe}):B.includes(oe)&&it.push({event:oe,listener:Zo}))}),w&&it.push({event:"pointermove",listener:sn});const re=()=>{ze.current=!0},J=()=>{ze.current=!1,Kr()};return x&&!ee&&((ne=fe.current)===null||ne===void 0||ne.addEventListener("mouseenter",re),(ye=fe.current)===null||ye===void 0||ye.addEventListener("mouseleave",J)),it.forEach(({event:oe,listener:Ue})=>{xe.forEach(st=>{var qt;(qt=st.current)===null||qt===void 0||qt.addEventListener(oe,Ue)})}),()=>{var oe,Ue;wt.scroll&&(window.removeEventListener("scroll",Wt),kn==null||kn.removeEventListener("scroll",Wt),Rn==null||Rn.removeEventListener("scroll",Wt)),wt.resize?window.removeEventListener("resize",Wt):Vt==null||Vt(),wt.clickOutsideAnchor&&window.removeEventListener("click",an),wt.escape&&window.removeEventListener("keydown",en),x&&!ee&&((oe=fe.current)===null||oe===void 0||oe.removeEventListener("mouseenter",re),(Ue=fe.current)===null||Ue===void 0||Ue.removeEventListener("mouseleave",J)),it.forEach(({event:st,listener:qt})=>{xe.forEach(As=>{var gh;(gh=As.current)===null||gh===void 0||gh.removeEventListener(st,qt)})})}},[W,Ve,le,ht,mt,k,P,_,_e,v,m]),b.useEffect(()=>{var ne,ye;let xe=(ye=(ne=ue==null?void 0:ue.anchorSelect)!==null&&ne!==void 0?ne:s)!==null&&ye!==void 0?ye:"";!xe&&t&&(xe=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const ot=new MutationObserver(Wt=>{const kn=[],Rn=[];Wt.forEach(Vt=>{if(Vt.type==="attributes"&&Vt.attributeName==="data-tooltip-id"&&(Vt.target.getAttribute("data-tooltip-id")===t?kn.push(Vt.target):Vt.oldValue===t&&Rn.push(Vt.target)),Vt.type==="childList"){if(W){const en=[...Vt.removedNodes].filter(it=>it.nodeType===1);if(xe)try{Rn.push(...en.filter(it=>it.matches(xe))),Rn.push(...en.flatMap(it=>[...it.querySelectorAll(xe)]))}catch{}en.some(it=>{var Vn;return!!(!((Vn=it==null?void 0:it.contains)===null||Vn===void 0)&&Vn.call(it,W))&&(at(!1),te(!1),se(null),sr(ge),sr(Oe),!0)})}if(xe)try{const en=[...Vt.addedNodes].filter(it=>it.nodeType===1);kn.push(...en.filter(it=>it.matches(xe))),kn.push(...en.flatMap(it=>[...it.querySelectorAll(xe)]))}catch{}}}),(kn.length||Rn.length)&&It(Vt=>[...Vt.filter(en=>!Rn.includes(en)),...kn])});return ot.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{ot.disconnect()}},[t,s,ue==null?void 0:ue.anchorSelect,W]),b.useEffect(()=>{Ve()},[Ve]),b.useEffect(()=>{if(!(N!=null&&N.current))return()=>null;const ne=new ResizeObserver(()=>{setTimeout(()=>Ve())});return ne.observe(N.current),()=>{ne.disconnect()}},[z,N==null?void 0:N.current]),b.useEffect(()=>{var ne;const ye=document.querySelector(`[id='${i}']`),xe=[...mt,ye];W&&xe.includes(W)||se((ne=mt[0])!==null&&ne!==void 0?ne:ye)},[i,mt,W]),b.useEffect(()=>(j&&te(!0),()=>{sr(ge),sr(Oe)}),[]),b.useEffect(()=>{var ne;let ye=(ne=ue==null?void 0:ue.anchorSelect)!==null&&ne!==void 0?ne:s;if(!ye&&t&&(ye=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),ye)try{const xe=Array.from(document.querySelectorAll(ye));It(xe)}catch{It([])}},[t,s,ue==null?void 0:ue.anchorSelect]),b.useEffect(()=>{ge.current&&(sr(ge),qe(v))},[v]);const Jt=(q=ue==null?void 0:ue.content)!==null&&q!==void 0?q:z,Zr=Te&&Object.keys(Ae.tooltipStyles).length>0;return b.useImperativeHandle(e,()=>({open:ne=>{if(ne!=null&&ne.anchorSelect)try{document.querySelector(ne.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${ne.anchorSelect}" is not a valid CSS selector`)}Je(ne??null),ne!=null&&ne.delay?qe(ne.delay):te(!0)},close:ne=>{ne!=null&&ne.delay?Dt(ne.delay):te(!1)},activeAnchor:W,place:Ae.place,isOpen:!!(le&&!g&&Jt&&Zr)})),le&&!g&&Jt?ft.createElement(h,{id:t,role:ce,className:u0("react-tooltip",js.tooltip,am.tooltip,am[o],n,`react-tooltip__place-${Ae.place}`,js[Zr?"show":"closing"],Zr?"react-tooltip__show":"react-tooltip__closing",d==="fixed"&&js.fixed,x&&js.clickable),onTransitionEnd:ne=>{sr(ve),Te||ne.propertyName!=="opacity"||(at(!1),Je(null),O==null||O())},style:{...T,...Ae.tooltipStyles,opacity:Re!==void 0&&Zr?Re:void 0},ref:fe},Jt,ft.createElement(h,{className:u0("react-tooltip-arrow",js.arrow,am.arrow,r,y&&js.noArrow),style:{...Ae.tooltipArrowStyles,background:Y?`linear-gradient(to right bottom, transparent 50%, ${Y} 50%)`:void 0},ref:pe})):null},I8=({content:e})=>ft.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),_8=ft.forwardRef(({id:e,anchorId:t,anchorSelect:n,content:r,html:o,render:i,className:s,classNameArrow:a,variant:l="dark",place:c="top",offset:u=10,wrapper:d="div",children:p=null,events:h=["hover"],openOnClick:v=!1,positionStrategy:m="absolute",middlewares:w,delayShow:g=0,delayHide:y=0,float:x=!1,hidden:S=!1,noArrow:C=!1,clickable:E=!1,closeOnEsc:k=!1,closeOnScroll:P=!1,closeOnResize:_=!1,openEvents:R,closeEvents:T,globalCloseEvents:M,imperativeModeOnly:$=!1,style:O,position:z,isOpen:N,defaultIsOpen:D=!1,disableStyleInjection:j=!1,border:L,opacity:W,arrowColor:se,setIsOpen:ae,afterShow:Re,afterHide:Y,role:ce="tooltip"},q)=>{const[fe,pe]=b.useState(r),[ge,Oe]=b.useState(o),[ve,Ae]=b.useState(c),[Ee,Te]=b.useState(l),[Ie,le]=b.useState(u),[at,ue]=b.useState(g),[Je,Ge]=b.useState(y),[Le,ht]=b.useState(x),[tt,ze]=b.useState(S),[mt,It]=b.useState(d),[yt,_e]=b.useState(h),[ee,dt]=b.useState(m),[Yt,wt]=b.useState(null),[te,De]=b.useState(null),qe=b.useRef(j),{anchorRefs:Dt,activeAnchor:An}=Fk(e),Kr=gt=>gt==null?void 0:gt.getAttributeNames().reduce((Xt,Pe)=>{var Ve;return Pe.startsWith("data-tooltip-")&&(Xt[Pe.replace(/^data-tooltip-/,"")]=(Ve=gt==null?void 0:gt.getAttribute(Pe))!==null&&Ve!==void 0?Ve:null),Xt},{}),Ft=gt=>{const Xt={place:Pe=>{var Ve;Ae((Ve=Pe)!==null&&Ve!==void 0?Ve:c)},content:Pe=>{pe(Pe??r)},html:Pe=>{Oe(Pe??o)},variant:Pe=>{var Ve;Te((Ve=Pe)!==null&&Ve!==void 0?Ve:l)},offset:Pe=>{le(Pe===null?u:Number(Pe))},wrapper:Pe=>{var Ve;It((Ve=Pe)!==null&&Ve!==void 0?Ve:d)},events:Pe=>{const Ve=Pe==null?void 0:Pe.split(" ");_e(Ve??h)},"position-strategy":Pe=>{var Ve;dt((Ve=Pe)!==null&&Ve!==void 0?Ve:m)},"delay-show":Pe=>{ue(Pe===null?g:Number(Pe))},"delay-hide":Pe=>{Ge(Pe===null?y:Number(Pe))},float:Pe=>{ht(Pe===null?x:Pe==="true")},hidden:Pe=>{ze(Pe===null?S:Pe==="true")},"class-name":Pe=>{wt(Pe)}};Object.values(Xt).forEach(Pe=>Pe(null)),Object.entries(gt).forEach(([Pe,Ve])=>{var Jt;(Jt=Xt[Pe])===null||Jt===void 0||Jt.call(Xt,Ve)})};b.useEffect(()=>{pe(r)},[r]),b.useEffect(()=>{Oe(o)},[o]),b.useEffect(()=>{Ae(c)},[c]),b.useEffect(()=>{Te(l)},[l]),b.useEffect(()=>{le(u)},[u]),b.useEffect(()=>{ue(g)},[g]),b.useEffect(()=>{Ge(y)},[y]),b.useEffect(()=>{ht(x)},[x]),b.useEffect(()=>{ze(S)},[S]),b.useEffect(()=>{dt(m)},[m]),b.useEffect(()=>{qe.current!==j&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[j]),b.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:j==="core",disableBase:j}}))},[]),b.useEffect(()=>{var gt;const Xt=new Set(Dt);let Pe=n;if(!Pe&&e&&(Pe=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),Pe)try{document.querySelectorAll(Pe).forEach(ye=>{Xt.add({current:ye})})}catch{console.warn(`[react-tooltip] "${Pe}" is not a valid CSS selector`)}const Ve=document.querySelector(`[id='${t}']`);if(Ve&&Xt.add({current:Ve}),!Xt.size)return()=>null;const Jt=(gt=te??Ve)!==null&>!==void 0?gt:An.current,Zr=new MutationObserver(ye=>{ye.forEach(xe=>{var ot;if(!Jt||xe.type!=="attributes"||!(!((ot=xe.attributeName)===null||ot===void 0)&&ot.startsWith("data-tooltip-")))return;const Wt=Kr(Jt);Ft(Wt)})}),ne={attributes:!0,childList:!1,subtree:!1};if(Jt){const ye=Kr(Jt);Ft(ye),Zr.observe(Jt,ne)}return()=>{Zr.disconnect()}},[Dt,An,te,t,n]),b.useEffect(()=>{O!=null&&O.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),L&&!Wb("border",`${L}`)&&console.warn(`[react-tooltip] "${L}" is not a valid \`border\`.`),O!=null&&O.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),W&&!Wb("opacity",`${W}`)&&console.warn(`[react-tooltip] "${W}" is not a valid \`opacity\`.`)},[]);let sn=p;const an=b.useRef(null);if(i){const gt=i({content:(te==null?void 0:te.getAttribute("data-tooltip-content"))||fe||null,activeAnchor:te});sn=gt?ft.createElement("div",{ref:an,className:"react-tooltip-content-wrapper"},gt):null}else fe&&(sn=fe);ge&&(sn=ft.createElement(I8,{content:ge}));const Er={forwardRef:q,id:e,anchorId:t,anchorSelect:n,className:u0(s,Yt),classNameArrow:a,content:sn,contentWrapperRef:an,place:ve,variant:Ee,offset:Ie,wrapper:mt,events:yt,openOnClick:v,positionStrategy:ee,middlewares:w,delayShow:at,delayHide:Je,float:Le,hidden:tt,noArrow:C,clickable:E,closeOnEsc:k,closeOnScroll:P,closeOnResize:_,openEvents:R,closeEvents:T,globalCloseEvents:M,imperativeModeOnly:$,style:O,position:z,isOpen:N,defaultIsOpen:D,border:L,opacity:W,arrowColor:se,setIsOpen:ae,afterShow:Re,afterHide:Y,activeAnchor:te,setActiveAnchor:gt=>De(gt),role:ce};return ft.createElement(P8,{...Er})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||Bb({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||Bb({css:` +.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});var f0=new Map,Uu=new WeakMap,Gb=0,j8=void 0;function M8(e){return e?(Uu.has(e)||(Gb+=1,Uu.set(e,Gb.toString())),Uu.get(e)):"0"}function O8(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?M8(e.root):e[t]}`).toString()}function $8(e){const t=O8(e);let n=f0.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(s=>{s.forEach(a=>{var l;const c=a.isIntersecting&&o.some(u=>a.intersectionRatio>=u);e.trackVisibility&&typeof a.isVisible>"u"&&(a.isVisible=c),(l=r.get(a.target))==null||l.forEach(u=>{u(c,a)})})},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},f0.set(t,n)}return n}function L8(e,t,n={},r=j8){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const l=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:l,intersectionRect:l,rootBounds:l}),()=>{}}const{id:o,observer:i,elements:s}=$8(n),a=s.get(e)||[];return s.has(e)||s.set(e,a),a.push(t),i.observe(e),function(){a.splice(a.indexOf(t),1),a.length===0&&(s.delete(e),i.unobserve(e)),s.size===0&&(i.disconnect(),f0.delete(o))}}function Jr({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:s,initialInView:a,fallbackInView:l,onChange:c}={}){var u;const[d,p]=b.useState(null),h=b.useRef(),[v,m]=b.useState({inView:!!a,entry:void 0});h.current=c,b.useEffect(()=>{if(s||!d)return;let x;return x=L8(d,(S,C)=>{m({inView:S,entry:C}),h.current&&h.current(S,C),C.isIntersecting&&i&&x&&(x(),x=void 0)},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},l),()=>{x&&x()}},[Array.isArray(e)?e.toString():e,d,o,r,i,s,n,l,t]);const w=(u=v.entry)==null?void 0:u.target,g=b.useRef();!d&&w&&!i&&!s&&g.current!==w&&(g.current=w,m({inView:!!a,entry:void 0}));const y=[p,v.inView,v.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}const Ke=mM({createStyledComponent:V("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>Ce({props:e,name:"MuiGrid2"})});var uy={},lm={};const N8={configure:e=>{Uv.configure(e)}},D8=Object.freeze(Object.defineProperty({__proto__:null,capitalize:U,createChainedFunction:t0,createSvgIcon:Fn,debounce:Kv,deprecatedPropType:Ej,isMuiElement:ca,ownerDocument:Gt,ownerWindow:Pi,requirePropFactory:Tj,setRef:Pc,unstable_ClassNameGenerator:N8,unstable_useEnhancedEffect:Ur,unstable_useId:Ip,unsupportedProp:Ij,useControlled:bi,useEventCallback:jn,useForkRef:Pt,useIsFocusVisible:ck},Symbol.toStringTag,{value:"Module"})),z8=Vo(D8);var qb;function Wn(){return qb||(qb=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=z8}(lm)),lm}var B8=hn;Object.defineProperty(uy,"__esModule",{value:!0});var Ha=uy.default=void 0,F8=B8(Wn()),W8=f;Ha=uy.default=(0,F8.default)((0,W8.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");const Fe={unColor:"#418fde",unColorLighter:"#82b5e9",unColorDarker:"#144372",contrastColor:"#f79a3b",contrastColorLighter:"#f9c27b",contrastColorDarker:"#dc7309"};var dy={},V8=hn;Object.defineProperty(dy,"__esModule",{value:!0});var Wk=dy.default=void 0,U8=V8(Wn()),H8=f;Wk=dy.default=(0,U8.default)((0,H8.jsx)("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"List");const Qb={total:{bodyDAttribute:"M 6.995 18.083 L 6.995 26.833 C 6.995 27.478 6.473 28 5.828 28 C 5.184 28 4.662 27.478 4.662 26.833 L 4.662 8.75 C 3.193 9.578 2.298 11.147 2.333 12.833 C 2.333 13.478 1.811 14 1.167 14 C 0.522 14 0 13.478 0 12.833 C 0 8.959 2.908 6.099 6.995 5.85 L 7 18.083 L 6.995 18.083 L 6.995 18.083 Z M 8.167 20.417 L 8.167 26.833 C 8.167 27.478 8.689 28 9.333 28 C 9.978 28 10.5 27.478 10.5 26.833 L 10.5 20.417 L 11.667 20.417 C 11.825 20.431 11.982 20.374 12.095 20.262 C 12.208 20.149 12.265 19.992 12.25 19.833 L 9.917 8.75 C 11.647 9.367 12.811 10.996 12.833 12.833 C 12.833 13.478 13.356 14 14 14 C 14.644 14 15.167 13.478 15.167 12.833 C 15.167 8.961 12.255 6.099 8.167 5.85 L 8.167 5.833 L 8.167 20.417 Z",headDAttribute:"M 5.245 2.333 C 5.245 1.046 6.29 0 7.578 0 C 8.866 0 9.912 1.046 9.912 2.333 C 9.912 3.621 8.866 4.667 7.578 4.667 C 6.29 4.667 5.245 3.621 5.245 2.333 Z"},girls:{bodyDAttribute:"M 8 9.185 C 4.766 9.185 2.327 11.486 2.327 14.568 C 2.327 15.038 2.708 15.419 3.178 15.419 C 3.648 15.419 4.029 15.038 4.029 14.568 C 4.021 13.219 4.777 11.981 5.982 11.374 L 4.672 18.186 C 4.652 18.348 4.702 18.51 4.81 18.632 C 4.918 18.754 5.073 18.824 5.235 18.824 L 5.728 18.824 L 5.728 23.649 C 5.728 24.119 6.109 24.5 6.579 24.5 C 7.049 24.5 7.43 24.119 7.43 23.649 L 7.43 18.824 L 8.565 18.824 L 8.565 23.649 C 8.565 24.119 8.947 24.5 9.417 24.5 C 9.887 24.5 10.268 24.119 10.268 23.649 L 10.268 18.824 L 10.76 18.824 C 10.923 18.824 11.078 18.754 11.186 18.632 C 11.294 18.51 11.344 18.348 11.324 18.186 L 10.014 11.371 C 11.221 11.978 11.979 13.217 11.971 14.568 C 11.971 15.038 12.352 15.419 12.822 15.419 C 13.292 15.419 13.673 15.038 13.673 14.568 C 13.673 11.486 11.234 9.185 8 9.185 Z",headDAttribute:"M 5.728 5.77 C 5.728 4.517 6.745 3.5 7.998 3.5 C 9.251 3.5 10.268 4.517 10.268 5.77 C 10.268 7.023 9.251 8.041 7.998 8.041 C 6.745 8.041 5.728 7.023 5.728 5.77 Z"},boys:{bodyDAttribute:"M 8 9.185 C 4.766 9.185 2.327 11.486 2.327 14.568 C 2.327 15.038 2.708 15.419 3.178 15.419 C 3.648 15.419 4.029 15.038 4.029 14.568 C 4.019 13.321 4.666 12.162 5.732 11.515 L 5.732 23.649 C 5.732 24.119 6.113 24.5 6.583 24.5 C 7.053 24.5 7.434 24.119 7.434 23.649 L 7.434 17.689 L 8.569 17.689 L 8.569 23.649 C 8.569 24.119 8.951 24.5 9.421 24.5 C 9.891 24.5 10.272 24.119 10.272 23.649 L 10.272 11.517 C 11.335 12.164 11.981 13.323 11.971 14.568 C 11.971 15.038 12.352 15.419 12.822 15.419 C 13.292 15.419 13.673 15.038 13.673 14.568 C 13.673 11.486 11.234 9.185 8 9.185 Z",headDAttribute:"M 5.732 5.77 C 5.732 4.517 6.749 3.5 8.002 3.5 C 9.255 3.5 10.272 4.517 10.272 5.77 C 10.272 7.023 9.255 8.041 8.002 8.041 C 6.749 8.041 5.732 7.023 5.732 5.77 Z"},women:{bodyDAttribute:"M 7.583 5.833 C 3.185 5.833 0 8.779 0 12.833 C 0 13.478 0.522 14 1.167 14 C 1.811 14 2.333 13.478 2.333 12.833 C 2.333 10.989 3.505 9.348 5.25 8.75 L 2.917 19.833 C 2.902 19.992 2.959 20.149 3.072 20.262 C 3.184 20.374 3.341 20.431 3.5 20.417 L 4.667 20.417 L 4.667 26.833 C 4.667 27.478 5.189 28 5.833 28 C 6.478 28 7 27.478 7 26.833 L 7 20.417 L 8.167 20.417 L 8.167 26.833 C 8.167 27.478 8.689 28 9.333 28 C 9.978 28 10.5 27.478 10.5 26.833 L 10.5 20.417 L 11.667 20.417 C 11.825 20.431 11.982 20.374 12.095 20.262 C 12.208 20.149 12.265 19.992 12.25 19.833 L 9.917 8.75 C 11.647 9.367 12.811 10.996 12.833 12.833 C 12.833 13.478 13.356 14 14 14 C 14.644 14 15.167 13.478 15.167 12.833 C 15.167 8.779 11.976 5.833 7.583 5.833 Z",headDAttribute:"M 5.244 2.333 C 5.244 1.046 6.29 0 7.578 0 C 8.865 0 9.911 1.046 9.911 2.333 C 9.911 3.621 8.865 4.667 7.578 4.667 C 6.29 4.667 5.244 3.621 5.244 2.333 Z"},men:{bodyDAttribute:"M 7.578 5.833 C 3.187 5.833 0 8.777 0 12.833 C 0 13.478 0.522 14 1.167 14 C 1.811 14 2.333 13.478 2.333 12.833 C 2.298 11.147 3.193 9.578 4.662 8.75 L 4.662 26.833 C 4.662 27.478 5.184 28 5.828 28 C 6.473 28 6.995 27.478 6.995 26.833 L 6.995 18.083 L 8.162 18.083 L 8.162 26.833 C 8.162 27.478 8.684 28 9.328 28 C 9.973 28 10.495 27.478 10.495 26.833 L 10.495 8.749 C 11.965 9.577 12.861 11.146 12.826 12.833 C 12.826 13.478 13.348 14 13.993 14 C 14.637 14 15.159 13.478 15.159 12.833 C 15.159 8.777 11.971 5.833 7.578 5.833 Z",headDAttribute:"M 5.245 2.333 C 5.245 1.046 6.29 0 7.578 0 C 8.866 0 9.912 1.046 9.912 2.333 C 9.912 3.621 8.866 4.667 7.578 4.667 C 6.29 4.667 5.245 3.621 5.245 2.333 Z"}};function Oc({svgProps:e,type:t}){return f.jsx(yo,{...e,children:f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 29",fill:"currentColor",children:[f.jsx("path",{d:Qb[t].headDAttribute}),f.jsx("path",{d:Qb[t].bodyDAttribute})]})})}var fy={},G8=hn;Object.defineProperty(fy,"__esModule",{value:!0});var Vk=fy.default=void 0,q8=G8(Wn()),Q8=f;Vk=fy.default=(0,q8.default)((0,Q8.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m.88 15.76V19h-1.75v-1.29c-.74-.18-2.39-.77-3.02-2.96l1.65-.67c.06.22.58 2.09 2.4 2.09.93 0 1.98-.48 1.98-1.61 0-.96-.7-1.46-2.28-2.03-1.1-.39-3.35-1.03-3.35-3.31 0-.1.01-2.4 2.62-2.96V5h1.75v1.24c1.84.32 2.51 1.79 2.66 2.23l-1.58.67c-.11-.35-.59-1.34-1.9-1.34-.7 0-1.81.37-1.81 1.39 0 .95.86 1.31 2.64 1.9 2.4.83 3.01 2.05 3.01 3.45 0 2.63-2.5 3.13-3.02 3.22"}),"Paid");var py={},K8=hn;Object.defineProperty(py,"__esModule",{value:!0});var Uk=py.default=void 0,Z8=K8(Wn()),Y8=f;Uk=py.default=(0,Z8.default)((0,Y8.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public");function X8({svgProps:e}){return f.jsx(yo,{...e,children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"48",viewBox:"0 0 42 48",children:f.jsx("g",{id:"Layer_2","data-name":"Layer 2",children:f.jsxs("g",{id:"Icons",children:[f.jsx("path",{d:"M41.96045,6.6084c-.01184-.05994-.03418-.11548-.05127-.17334a1.99742,1.99742,0,0,0-.062-.19959,1.96364,1.96364,0,0,0-.103-.19568c-.02734-.04956-.04883-.10107-.08057-.14843a2.01093,2.01093,0,0,0-.55493-.55493c-.04736-.03174-.09887-.05323-.14843-.08057a1.96364,1.96364,0,0,0-.19568-.103,1.99742,1.99742,0,0,0-.19959-.062c-.05786-.01709-.1134-.03943-.17334-.05127A1.99416,1.99416,0,0,0,40,5H33a2,2,0,0,0,0,4h2.17188l-4.22974,4.22974A11.981,11.981,0,0,0,12,23,12.20025,12.20025,0,0,0,22,35v4H19a2,2,0,0,0,0,4h3v3a2,2,0,0,0,4,0V43h3a2,2,0,0,0,0-4H26V35A12.20025,12.20025,0,0,0,36,23a11.92205,11.92205,0,0,0-2.22974-6.94214L38,11.82812V14a2,2,0,0,0,4,0V7A1.99416,1.99416,0,0,0,41.96045,6.6084ZM24,31a8,8,0,1,1,8-8A8.00917,8.00917,0,0,1,24,31Z",fill:"#4e8fcc"}),f.jsx("path",{d:"M6.41406,3.58594A1.99978,1.99978,0,0,0,3.58594,6.41406l4,4a1.99978,1.99978,0,1,0,2.82812-2.82812Z",fill:"#4e8fcc"}),f.jsx("path",{d:"M7,13.00488H2a2,2,0,0,0,0,4H7a2,2,0,0,0,0-4Z",fill:"#4e8fcc"}),f.jsx("path",{d:"M15,9a2.0001,2.0001,0,0,0,2-2V2a2,2,0,0,0-4,0V7A2.0001,2.0001,0,0,0,15,9Z",fill:"#4e8fcc"})]})})})})}function J8({svgProps:e}){return f.jsx(yo,{...e,children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 45.99759 48.00135",children:f.jsx("g",{id:"Layer_2","data-name":"Layer 2",children:f.jsxs("g",{id:"Icons",children:[f.jsx("path",{fill:"#4e8fcc",d:"M38.99756,7.46479a4,4,0,1,0-1.46411-5.46411A4.00006,4.00006,0,0,0,38.99756,7.46479Z"}),f.jsx("path",{fill:"#4e8fcc",d:"M30.21777,34.23279a2.99744,2.99744,0,0,0-3.96,1.52442A10.77539,10.77539,0,0,1,16.5,42.00135a10.5118,10.5118,0,0,1-10.5-10.5c0-5.69141,5.03711-10.5,11-10.5a3,3,0,1,0,0-6c-9.21484,0-17,7.55615-17,16.5a16.59681,16.59681,0,0,0,31.74219,6.69043A3.00062,3.00062,0,0,0,30.21777,34.23279Z"}),f.jsx("path",{fill:"#4e8fcc",d:"M45.20166,23.96619a3.0103,3.0103,0,0,0-2.3916-.959l-8.81958.55121,5.53711-8.04706a2.09639,2.09639,0,0,0,.1499-.30005,2.4698,2.4698,0,0,0-.03-2.48,2.68056,2.68056,0,0,0-.67993-.75l-3.5-2.43-8-5.57a2.49379,2.49379,0,0,0-3.24.25l-4.5,4.5a2.50317,2.50317,0,0,0,3.54,3.54l2.99-2.99,4.25,2.93-7,11.85a4.00113,4.00113,0,0,0,3.5,5.94l.05444-.01093c.04151-.00073.08106.00751.123.00507l12.32129-.77L38.02783,39.577a2.99989,2.99989,0,1,0,5.93946.84863l2-14A2.99772,2.99772,0,0,0,45.20166,23.96619Z"})]})})})})}function e9({svgProps:e}){return f.jsx(yo,{...e,children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 47.9975",children:f.jsx("g",{id:"Layer_2","data-name":"Layer 2",children:f.jsxs("g",{id:"Icons",children:[f.jsx("path",{fill:"#4e8fcc",d:"M45.66992,12.66742a1.49656,1.49656,0,0,0-.58984-1.01L30.5.33746a1.65038,1.65038,0,0,0-2,0l-14.58008,11.32a1.49656,1.49656,0,0,0-.58984,1.01l-.77,5.70007,3.09985-2.4a4.6429,4.6429,0,0,1,5.68018,0L27,20.36749l2,1.54993,2.68994,2.09009,1.28.99,2.92,2.27a4.41348,4.41348,0,0,1,1.70008,2.73H48Z"}),f.jsx("path",{fill:"#4e8fcc",d:"M34.08008,29.65741,29,25.71747l-.91992-.72L27,24.15741l-7.5-5.81995a1.613,1.613,0,0,0-1-.34,1.59276,1.59276,0,0,0-1,.34l-5.51,4.28L2.91992,29.65741a1.49656,1.49656,0,0,0-.58984,1.01L0,47.9975H18v-9.71a.292.292,0,0,1,.3-.29.30169.30169,0,0,1,.26.1499L24,47.9975H37L34.66992,30.66742A1.49656,1.49656,0,0,0,34.08008,29.65741Z"})]})})})})}function t9({svgProps:e}){return f.jsx(yo,{...e,children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 48",children:f.jsx("g",{id:"Layer_2","data-name":"Layer 2",children:f.jsxs("g",{id:"Icons",children:[f.jsx("path",{fill:"#4e8fcc",d:"M25,14a1.00288,1.00288,0,0,0-1,1v6a1,1,0,0,0,2,0V15A1.00288,1.00288,0,0,0,25,14Z"}),f.jsx("path",{fill:"#4e8fcc",d:"M30,6H2A2.00583,2.00583,0,0,0,0,8V30H32V8A2.00583,2.00583,0,0,0,30,6ZM11,23a.99518.99518,0,0,1-.77.97A.90621.90621,0,0,1,10,24a.999.999,0,0,1-.89-.55L6,17.24V23a1,1,0,0,1-2,0V13a.99918.99918,0,0,1,1.89-.44995L9,18.76V13a1,1,0,0,1,2,0Zm9-2.5a3.5,3.5,0,0,1-7,0V15a3.00887,3.00887,0,0,1,3-3h2a1,1,0,0,1,0,2H16a1.00288,1.00288,0,0,0-1,1v5.5a1.5,1.5,0,0,0,3,0V19H17a1,1,0,0,1,0-2h1a2.00583,2.00583,0,0,1,2,2Zm8,.5a3,3,0,0,1-6,0V15a3,3,0,0,1,6,0Z"}),f.jsx("path",{fill:"#4e8fcc",d:"M6,4H26a2,2,0,0,0,0-4H6A2,2,0,0,0,6,4Z"}),f.jsx("path",{fill:"#4e8fcc",d:"M0,44H12V38a2.00583,2.00583,0,0,1,2-2h4a2.00583,2.00583,0,0,1,2,2V44H32V32H0Z"})]})})})})}function n9({inViewSummary:e,inViewPictogram:t,inViewBeneficiaryTypes:n,inViewOrganizations:r,inViewSectors:o,inViewIndicators:i,inViewDisability:s,inViewGBV:a,refIds:l}){function c(u){var d;(d=document.getElementById(u))==null||d.scrollIntoView({behavior:"smooth",block:"center"})}return f.jsxs(H,{display:"flex",flexDirection:"row",mt:.5,mb:2,gap:1,children:[f.jsx(Jo,{label:"Summary",inView:e,reference:l.summaryRefId,handleOnClick:c,Icon:Vk}),f.jsx(Jo,{label:"By Gender/Age",inView:t,reference:l.pictogramRefId,handleOnClick:c,Icon:Oc}),f.jsx(Jo,{label:"By Type",inView:n,reference:l.beneficiaryTypesRefId,handleOnClick:c,Icon:e9,ochaIcon:!0}),f.jsx(Jo,{label:"By Organization",inView:r,reference:l.organizationsRefId,handleOnClick:c,Icon:t9,ochaIcon:!0}),f.jsx(Jo,{label:"By Sector",inView:o,reference:l.sectorsRefId,handleOnClick:c,Icon:Wk}),f.jsx(Jo,{label:"Disability",inView:s,reference:l.disabilityRefId,handleOnClick:c,Icon:J8,ochaIcon:!0}),f.jsx(Jo,{label:"GBV",inView:a,reference:l.gbvRefId,handleOnClick:c,Icon:X8,ochaIcon:!0}),f.jsx(Jo,{label:"Global Indicators",inView:i,reference:l.indicatorsRefId,handleOnClick:c,Icon:Uk})]})}function Jo({label:e,inView:t,reference:n,handleOnClick:r,Icon:o,ochaIcon:i}){return f.jsx(kr,{elevation:1,style:{padding:"0.2rem 1rem 0rem 1rem",borderBottom:t?`3px solid ${Fe.unColor}`:"3px solid transparent",cursor:"pointer"},className:"scrollSpyTab",onClick:()=>r(n),children:f.jsxs(H,{display:"flex",flexDirection:"row",alignItems:"center",children:[f.jsx(o,{htmlColor:Fe.unColor,fontSize:"medium",...e==="By Gender/Age"&&{type:"total",svgProps:{style:{width:12,fill:Fe.unColor}}},...i&&{svgProps:{style:{width:20,fill:Fe.unColor}}}}),f.jsx(me,{variant:"body2",style:{fontSize:"0.85rem",color:"#555",marginLeft:"0.5em"},children:e})]})})}const r9=ft.memo(n9);var Kb;const o9=["children","classes","className","label","notched"],i9=V("fieldset",{shouldForwardProp:Bn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),s9=V("legend",{shouldForwardProp:Bn})(({ownerState:e,theme:t})=>A({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&A({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function a9(e){const{className:t,label:n,notched:r}=e,o=G(e,o9),i=n!=null&&n!=="",s=A({},e,{notched:r,withLabel:i});return f.jsx(i9,A({"aria-hidden":!0,className:t,ownerState:s},o,{children:f.jsx(s9,{ownerState:s,children:i?f.jsx("span",{children:n}):Kb||(Kb=f.jsx("span",{className:"notranslate",children:"​"}))})}))}const hy=b.createContext(void 0);function qo(){return b.useContext(hy)}function Li({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const l9=["onChange","maxRows","minRows","style","value"];function Hu(e){return parseInt(e,10)||0}const c9={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function u9(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const d9=b.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a}=t,l=G(t,l9),{current:c}=b.useRef(a!=null),u=b.useRef(null),d=Pt(n,u),p=b.useRef(null),h=b.useRef(null),v=b.useCallback(()=>{const g=u.current,x=Pi(g).getComputedStyle(g);if(x.width==="0px")return{outerHeightStyle:0,overflowing:!1};const S=h.current;S.style.width=x.width,S.value=g.value||t.placeholder||"x",S.value.slice(-1)===` +`&&(S.value+=" ");const C=x.boxSizing,E=Hu(x.paddingBottom)+Hu(x.paddingTop),k=Hu(x.borderBottomWidth)+Hu(x.borderTopWidth),P=S.scrollHeight;S.value="x";const _=S.scrollHeight;let R=P;i&&(R=Math.max(Number(i)*_,R)),o&&(R=Math.min(Number(o)*_,R)),R=Math.max(R,_);const T=R+(C==="border-box"?E+k:0),M=Math.abs(R-P)<=1;return{outerHeightStyle:T,overflowing:M}},[o,i,t.placeholder]),m=b.useCallback(()=>{const g=v();if(u9(g))return;const y=g.outerHeightStyle,x=u.current;p.current!==y&&(p.current=y,x.style.height=`${y}px`),x.style.overflow=g.overflowing?"hidden":""},[v]);Ur(()=>{const g=()=>{m()};let y;const x=Kv(g),S=u.current,C=Pi(S);C.addEventListener("resize",x);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(g),E.observe(S)),()=>{x.clear(),cancelAnimationFrame(y),C.removeEventListener("resize",x),E&&E.disconnect()}},[v,m]),Ur(()=>{m()});const w=g=>{c||m(),r&&r(g)};return f.jsxs(b.Fragment,{children:[f.jsx("textarea",A({value:a,onChange:w,ref:d,rows:i,style:s},l)),f.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:A({},c9.shadow,s,{paddingTop:0,paddingBottom:0})})]})});function f9(e){return f.jsx(nj,A({},e,{defaultTheme:ty,themeId:Op}))}function Zb(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Sf(e,t=!1){return e&&(Zb(e.value)&&e.value!==""||t&&Zb(e.defaultValue)&&e.defaultValue!=="")}function p9(e){return e.startAdornment}function h9(e){return be("MuiInputBase",e)}const Gn=Se("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),m9=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Bp=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${U(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Fp=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},g9=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:h,type:v}=e,m={root:["root",`color${U(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",p&&p!=="medium"&&`size${U(p)}`,u&&"multiline",h&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",u&&"inputMultiline",p==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return we(m,h9,t)},Wp=V("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Bp})(({theme:e,ownerState:t})=>A({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Gn.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&A({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Vp=V("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Fp})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=A({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return A({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Gn.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Gn.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),v9=f.jsx(f9,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),y9=b.forwardRef(function(t,n){var r;const o=Ce({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:l,components:c={},componentsProps:u={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:h,endAdornment:v,fullWidth:m=!1,id:w,inputComponent:g="input",inputProps:y={},inputRef:x,maxRows:S,minRows:C,multiline:E=!1,name:k,onBlur:P,onChange:_,onClick:R,onFocus:T,onKeyDown:M,onKeyUp:$,placeholder:O,readOnly:z,renderSuffix:N,rows:D,slotProps:j={},slots:L={},startAdornment:W,type:se="text",value:ae}=o,Re=G(o,m9),Y=y.value!=null?y.value:ae,{current:ce}=b.useRef(Y!=null),q=b.useRef(),fe=b.useCallback(_e=>{},[]),pe=Pt(q,x,y.ref,fe),[ge,Oe]=b.useState(!1),ve=qo(),Ae=Li({props:o,muiFormControl:ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ae.focused=ve?ve.focused:ge,b.useEffect(()=>{!ve&&p&&ge&&(Oe(!1),P&&P())},[ve,p,ge,P]);const Ee=ve&&ve.onFilled,Te=ve&&ve.onEmpty,Ie=b.useCallback(_e=>{Sf(_e)?Ee&&Ee():Te&&Te()},[Ee,Te]);Ur(()=>{ce&&Ie({value:Y})},[Y,Ie,ce]);const le=_e=>{if(Ae.disabled){_e.stopPropagation();return}T&&T(_e),y.onFocus&&y.onFocus(_e),ve&&ve.onFocus?ve.onFocus(_e):Oe(!0)},at=_e=>{P&&P(_e),y.onBlur&&y.onBlur(_e),ve&&ve.onBlur?ve.onBlur(_e):Oe(!1)},ue=(_e,...ee)=>{if(!ce){const dt=_e.target||q.current;if(dt==null)throw new Error(ps(1));Ie({value:dt.value})}y.onChange&&y.onChange(_e,...ee),_&&_(_e,...ee)};b.useEffect(()=>{Ie(q.current)},[]);const Je=_e=>{q.current&&_e.currentTarget===_e.target&&q.current.focus(),R&&R(_e)};let Ge=g,Le=y;E&&Ge==="input"&&(D?Le=A({type:void 0,minRows:D,maxRows:D},Le):Le=A({type:void 0,maxRows:S,minRows:C},Le),Ge=d9);const ht=_e=>{Ie(_e.animationName==="mui-auto-fill-cancel"?q.current:{value:"x"})};b.useEffect(()=>{ve&&ve.setAdornedStart(!!W)},[ve,W]);const tt=A({},o,{color:Ae.color||"primary",disabled:Ae.disabled,endAdornment:v,error:Ae.error,focused:Ae.focused,formControl:ve,fullWidth:m,hiddenLabel:Ae.hiddenLabel,multiline:E,size:Ae.size,startAdornment:W,type:se}),ze=g9(tt),mt=L.root||c.Root||Wp,It=j.root||u.root||{},yt=L.input||c.Input||Vp;return Le=A({},Le,(r=j.input)!=null?r:u.input),f.jsxs(b.Fragment,{children:[!h&&v9,f.jsxs(mt,A({},It,!mf(mt)&&{ownerState:A({},tt,It.ownerState)},{ref:n,onClick:Je},Re,{className:Z(ze.root,It.className,l,z&&"MuiInputBase-readOnly"),children:[W,f.jsx(hy.Provider,{value:null,children:f.jsx(yt,A({ownerState:tt,"aria-invalid":Ae.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:d,disabled:Ae.disabled,id:w,onAnimationStart:ht,name:k,placeholder:O,readOnly:z,required:Ae.required,rows:D,value:Y,onKeyDown:M,onKeyUp:$,type:se},Le,!mf(yt)&&{as:Ge,ownerState:A({},tt,Le.ownerState)},{ref:pe,className:Z(ze.input,Le.className,z&&"MuiInputBase-readOnly"),onBlur:at,onChange:ue,onFocus:le}))}),v,N?N(A({},Ae,{startAdornment:W})):null]}))]})}),my=y9;function x9(e){return be("MuiOutlinedInput",e)}const no=A({},Gn,Se("MuiOutlinedInput",["root","notchedOutline","input"])),b9=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],w9=e=>{const{classes:t}=e,r=we({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},x9,t);return A({},t,r)},S9=V(Wp,{shouldForwardProp:e=>Bn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Bp})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return A({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${no.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${no.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${no.focused} .${no.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${no.error} .${no.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${no.disabled} .${no.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&A({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),C9=V(a9,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),A9=V(Vp,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Fp})(({theme:e,ownerState:t})=>A({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),Up=b.forwardRef(function(t,n){var r,o,i,s,a;const l=Ce({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:d="input",label:p,multiline:h=!1,notched:v,slots:m={},type:w="text"}=l,g=G(l,b9),y=w9(l),x=qo(),S=Li({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C=A({},l,{color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:x,fullWidth:u,hiddenLabel:S.hiddenLabel,multiline:h,size:S.size,type:w}),E=(r=(o=m.root)!=null?o:c.Root)!=null?r:S9,k=(i=(s=m.input)!=null?s:c.Input)!=null?i:A9;return f.jsx(my,A({slots:{root:E,input:k},renderSuffix:P=>f.jsx(C9,{ownerState:C,className:y.notchedOutline,label:p!=null&&p!==""&&S.required?a||(a=f.jsxs(b.Fragment,{children:[p," ","*"]})):p,notched:typeof v<"u"?v:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:u,inputComponent:d,multiline:h,ref:n,type:w},g,{classes:A({},y,{notchedOutline:null})}))});Up.muiName="Input";function k9(e){return be("MuiFormLabel",e)}const Nl=Se("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),R9=["children","className","color","component","disabled","error","filled","focused","required"],E9=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e,l={root:["root",`color${U(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return we(l,k9,t)},T9=V("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>A({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>A({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Nl.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Nl.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Nl.error}`]:{color:(e.vars||e).palette.error.main}})),P9=V("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Nl.error}`]:{color:(e.vars||e).palette.error.main}})),I9=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,a=G(r,R9),l=qo(),c=Li({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=A({},r,{color:c.color||"primary",component:s,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),d=E9(u);return f.jsxs(T9,A({as:s,ownerState:u,className:Z(d.root,i),ref:n},a,{children:[o,c.required&&f.jsxs(P9,{ownerState:u,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))});function _9(e){return be("MuiInputLabel",e)}Se("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const j9=["disableAnimation","margin","shrink","variant","className"],M9=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${U(r)}`,s],asterisk:[a&&"asterisk"]},c=we(l,_9,t);return A({},t,c)},O9=V(I9,{shouldForwardProp:e=>Bn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Nl.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>A({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&A({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&A({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&A({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Hk=b.forwardRef(function(t,n){const r=Ce({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:s}=r,a=G(r,j9),l=qo();let c=i;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=Li({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),d=A({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),p=M9(d);return f.jsx(O9,A({"data-shrink":c,ownerState:d,ref:n,className:Z(p.root,s)},a,{classes:p}))}),Cf=b.createContext({});function $9(e){return be("MuiDivider",e)}const Yb=Se("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),L9=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],N9=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:s,textAlign:a,variant:l}=e;return we({root:["root",t&&"absolute",l,i&&"light",s==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},$9,r)},D9=V("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>A({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Ye(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>A({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>A({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>A({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>A({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),z9=V("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>A({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),so=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:s,component:a=i?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:d=a!=="hr"?"separator":void 0,textAlign:p="center",variant:h="fullWidth"}=r,v=G(r,L9),m=A({},r,{absolute:o,component:a,flexItem:l,light:c,orientation:u,role:d,textAlign:p,variant:h}),w=N9(m);return f.jsx(D9,A({as:a,className:Z(w.root,s),role:d,ref:n,ownerState:m},v,{children:i?f.jsx(z9,{className:w.wrapper,ownerState:m,children:i}):null}))});so.muiSkipListHighlight=!0;const Xb=Se("MuiListItemIcon",["root","alignItemsFlexStart"]);function B9(e){return be("MuiListItemText",e)}const Af=Se("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),F9=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],W9=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return we({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},B9,t)},V9=V("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Af.primary}`]:t.primary},{[`& .${Af.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>A({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),U9=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:a=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d}=r,p=G(r,F9),{dense:h}=b.useContext(Cf);let v=l??o,m=u;const w=A({},r,{disableTypography:s,inset:a,primary:!!v,secondary:!!m,dense:h}),g=W9(w);return v!=null&&v.type!==me&&!s&&(v=f.jsx(me,A({variant:h?"body2":"body1",className:g.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:v}))),m!=null&&m.type!==me&&!s&&(m=f.jsx(me,A({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},d,{children:m}))),f.jsxs(V9,A({className:Z(g.root,i),ownerState:w,ref:n},p,{children:[v,m]}))});function H9(e){return be("MuiMenuItem",e)}const ol=Se("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),G9=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],q9=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Q9=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,l=we({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},H9,s);return A({},s,l)},K9=V(Bo,{shouldForwardProp:e=>Bn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:q9})(({theme:e,ownerState:t})=>A({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ol.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ye(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ol.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ye(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ol.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ye(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ye(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ol.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ol.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Yb.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Yb.inset}`]:{marginLeft:52},[`& .${Af.root}`]:{marginTop:0,marginBottom:0},[`& .${Af.inset}`]:{paddingLeft:36},[`& .${Xb.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&A({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Xb.root} svg`]:{fontSize:"1.25rem"}}))),Z9=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:p}=r,h=G(r,G9),v=b.useContext(Cf),m=b.useMemo(()=>({dense:s||v.dense||!1,disableGutters:l}),[v.dense,s,l]),w=b.useRef(null);Ur(()=>{o&&w.current&&w.current.focus()},[o]);const g=A({},r,{dense:m.dense,divider:a,disableGutters:l}),y=Q9(r),x=Pt(w,n);let S;return r.disabled||(S=d!==void 0?d:-1),f.jsx(Cf.Provider,{value:m,children:f.jsx(K9,A({ref:x,role:u,tabIndex:S,component:i,focusVisibleClassName:Z(y.focusVisible,c),className:Z(y.root,p)},h,{ownerState:g,classes:y}))})});function Y9(e){return be("MuiFormControl",e)}Se("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const X9=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],J9=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${U(n)}`,r&&"fullWidth"]};return we(o,Y9,t)},e6=V("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>A({},t.root,t[`margin${U(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>A({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Gk=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:p=!1,margin:h="none",required:v=!1,size:m="medium",variant:w="outlined"}=r,g=G(r,X9),y=A({},r,{color:s,component:a,disabled:l,error:c,fullWidth:d,hiddenLabel:p,margin:h,required:v,size:m,variant:w}),x=J9(y),[S,C]=b.useState(()=>{let $=!1;return o&&b.Children.forEach(o,O=>{if(!ca(O,["Input","Select"]))return;const z=ca(O,["Select"])?O.props.input:O;z&&p9(z.props)&&($=!0)}),$}),[E,k]=b.useState(()=>{let $=!1;return o&&b.Children.forEach(o,O=>{ca(O,["Input","Select"])&&(Sf(O.props,!0)||Sf(O.props.inputProps,!0))&&($=!0)}),$}),[P,_]=b.useState(!1);l&&P&&_(!1);const R=u!==void 0&&!l?u:P;let T;const M=b.useMemo(()=>({adornedStart:S,setAdornedStart:C,color:s,disabled:l,error:c,filled:E,focused:R,fullWidth:d,hiddenLabel:p,size:m,onBlur:()=>{_(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{_(!0)},registerEffect:T,required:v,variant:w}),[S,s,l,c,E,R,d,p,T,v,m,w]);return f.jsx(hy.Provider,{value:M,children:f.jsx(e6,A({as:a,ownerState:y,className:Z(x.root,i),ref:n},g,{children:o}))})});var pt={};/** * @license React * react-is.production.min.js * @@ -175,5 +175,6 @@ Row with project not found: ${JSON.stringify(t)}`)}function m3({allocationTypesM * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ay=Symbol.for("react.element"),ly=Symbol.for("react.portal"),zp=Symbol.for("react.fragment"),Bp=Symbol.for("react.strict_mode"),Fp=Symbol.for("react.profiler"),Wp=Symbol.for("react.provider"),Vp=Symbol.for("react.context"),A9=Symbol.for("react.server_context"),Up=Symbol.for("react.forward_ref"),Hp=Symbol.for("react.suspense"),Gp=Symbol.for("react.suspense_list"),qp=Symbol.for("react.memo"),Qp=Symbol.for("react.lazy"),k9=Symbol.for("react.offscreen"),Rk;Rk=Symbol.for("react.module.reference");function Ar(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ay:switch(e=e.type,e){case zp:case Fp:case Bp:case Hp:case Gp:return e;default:switch(e=e&&e.$$typeof,e){case A9:case Vp:case Up:case Qp:case qp:case Wp:return e;default:return t}}case ly:return t}}}pt.ContextConsumer=Vp;pt.ContextProvider=Wp;pt.Element=ay;pt.ForwardRef=Up;pt.Fragment=zp;pt.Lazy=Qp;pt.Memo=qp;pt.Portal=ly;pt.Profiler=Fp;pt.StrictMode=Bp;pt.Suspense=Hp;pt.SuspenseList=Gp;pt.isAsyncMode=function(){return!1};pt.isConcurrentMode=function(){return!1};pt.isContextConsumer=function(e){return Ar(e)===Vp};pt.isContextProvider=function(e){return Ar(e)===Wp};pt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ay};pt.isForwardRef=function(e){return Ar(e)===Up};pt.isFragment=function(e){return Ar(e)===zp};pt.isLazy=function(e){return Ar(e)===Qp};pt.isMemo=function(e){return Ar(e)===qp};pt.isPortal=function(e){return Ar(e)===ly};pt.isProfiler=function(e){return Ar(e)===Fp};pt.isStrictMode=function(e){return Ar(e)===Bp};pt.isSuspense=function(e){return Ar(e)===Hp};pt.isSuspenseList=function(e){return Ar(e)===Gp};pt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===zp||e===Fp||e===Bp||e===Hp||e===Gp||e===k9||typeof e=="object"&&e!==null&&(e.$$typeof===Qp||e.$$typeof===qp||e.$$typeof===Wp||e.$$typeof===Vp||e.$$typeof===Up||e.$$typeof===Rk||e.getModuleId!==void 0)};pt.typeOf=Ar;function R9(e){return be("MuiList",e)}Ce("MuiList",["root","padding","dense","subheader"]);const T9=["children","className","component","dense","disablePadding","subheader"],E9=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return we({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},R9,t)},P9=V("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>A({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),I9=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c}=r,u=H(r,T9),d=b.useMemo(()=>({dense:a}),[a]),p=A({},r,{component:s,dense:a,disablePadding:l}),h=E9(p);return f.jsx(xf.Provider,{value:d,children:f.jsxs(P9,A({as:s,className:Z(h.root,i),ref:n,ownerState:p},u,{children:[c,o]}))})}),_9=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function nm(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Fb(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Tk(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function rl(e,t,n,r,o,i){let s=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!Tk(a,i)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const j9=b.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu"}=t,p=H(t,_9),h=b.useRef(null),v=b.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Wr(()=>{o&&h.current.focus()},[o]),b.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,{direction:w})=>{const S=!h.current.style.width;if(x.clientHeight{const w=h.current,S=x.key,T=Gt(w).activeElement;if(S==="ArrowDown")x.preventDefault(),rl(w,T,c,l,nm);else if(S==="ArrowUp")x.preventDefault(),rl(w,T,c,l,Fb);else if(S==="Home")x.preventDefault(),rl(w,null,c,l,nm);else if(S==="End")x.preventDefault(),rl(w,null,c,l,Fb);else if(S.length===1){const R=v.current,P=S.toLowerCase(),_=performance.now();R.keys.length>0&&(_-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&P!==R.keys[0]&&(R.repeating=!1)),R.lastTime=_,R.keys.push(P);const k=T&&!R.repeating&&Tk(T,R);R.previousKeyMatched&&(k||rl(w,T,!1,l,nm,R))?x.preventDefault():R.previousKeyMatched=!1}u&&u(x)},C=Pt(h,n);let g=-1;b.Children.forEach(s,(x,w)=>{if(!b.isValidElement(x)){g===w&&(g+=1,g>=s.length&&(g=-1));return}x.props.disabled||(d==="selectedMenu"&&x.props.selected||g===-1)&&(g=w),g===w&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(g+=1,g>=s.length&&(g=-1))});const y=b.Children.map(s,(x,w)=>{if(w===g){const S={};return i&&(S.autoFocus=!0),x.props.tabIndex===void 0&&d==="selectedMenu"&&(S.tabIndex=0),b.cloneElement(x,S)}return x});return f.jsx(I9,A({role:"menu",ref:C,className:a,onKeyDown:m,tabIndex:o?0:-1},p,{children:y}))}),Ek=e=>e.scrollTop;function ka(e,t){var n,r;const{timeout:o,easing:i,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:s.transitionDelay}}const M9=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function i0(e){return`scale(${e}, ${e**2})`}const O9={entering:{opacity:1,transform:i0(1)},entered:{opacity:1,transform:"none"}},rm=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),cy=b.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:p,onExiting:h,style:v,timeout:m="auto",TransitionComponent:C=Hr}=t,g=H(t,M9),y=Rp(),x=b.useRef(),w=Ip(),S=b.useRef(null),T=Pt(S,i.ref,n),R=z=>L=>{if(z){const D=S.current;L===void 0?z(D):z(D,L)}},P=R(u),_=R((z,L)=>{Ek(z);const{duration:D,delay:j,easing:N}=ka({style:v,timeout:m,easing:s},{mode:"enter"});let W;m==="auto"?(W=w.transitions.getAutoHeightDuration(z.clientHeight),x.current=W):W=D,z.style.transition=[w.transitions.create("opacity",{duration:W,delay:j}),w.transitions.create("transform",{duration:rm?W:W*.666,delay:j,easing:N})].join(","),l&&l(z,L)}),k=R(c),E=R(h),M=R(z=>{const{duration:L,delay:D,easing:j}=ka({style:v,timeout:m,easing:s},{mode:"exit"});let N;m==="auto"?(N=w.transitions.getAutoHeightDuration(z.clientHeight),x.current=N):N=L,z.style.transition=[w.transitions.create("opacity",{duration:N,delay:D}),w.transitions.create("transform",{duration:rm?N:N*.666,delay:rm?D:D||N*.333,easing:j})].join(","),z.style.opacity=0,z.style.transform=i0(.75),d&&d(z)}),$=R(p),O=z=>{m==="auto"&&y.start(x.current||0,z),r&&r(S.current,z)};return f.jsx(C,A({appear:o,in:a,nodeRef:S,onEnter:_,onEntered:k,onEntering:P,onExit:M,onExited:$,onExiting:E,addEndListener:O,timeout:m==="auto"?null:m},g,{children:(z,L)=>b.cloneElement(i,A({style:A({opacity:0,transform:i0(.75),visibility:z==="exited"&&!a?"hidden":void 0},O9[z],v,i.props.style),ref:T},L))}))});cy.muiSupportAuto=!0;function $9(e){const t=Gt(e);return t.body===e?ki(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Nl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Wb(e){return parseInt(ki(e).getComputedStyle(e).paddingRight,10)||0}function N9(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Vb(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=i.indexOf(s)===-1,l=!N9(s);a&&l&&Nl(s,o)})}function om(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function L9(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if($9(r)){const s=VA(Gt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Wb(r)+s}px`;const a=Gt(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Wb(l)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Gt(r).body;else{const s=r.parentElement,a=ki(r);i=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:a})=>{i?s.style.setProperty(a,i):s.style.removeProperty(a)})}}function D9(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class z9{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Nl(t.modalRef,!1);const o=D9(n);Vb(n,t.mount,t.modalRef,o,!0);const i=om(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=om(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=L9(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=om(this.containers,s=>s.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Nl(t.modalRef,n),Vb(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&Nl(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const B9=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function F9(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function W9(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function V9(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||W9(e))}function U9(e){const t=[],n=[];return Array.from(e.querySelectorAll(B9)).forEach((r,o)=>{const i=F9(r);i===-1||!V9(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function H9(){return!0}function G9(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=U9,isEnabled:s=H9,open:a}=e,l=b.useRef(!1),c=b.useRef(null),u=b.useRef(null),d=b.useRef(null),p=b.useRef(null),h=b.useRef(!1),v=b.useRef(null),m=Pt(t.ref,v),C=b.useRef(null);b.useEffect(()=>{!a||!v.current||(h.current=!n)},[n,a]),b.useEffect(()=>{if(!a||!v.current)return;const x=Gt(v.current);return v.current.contains(x.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),h.current&&v.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[a]),b.useEffect(()=>{if(!a||!v.current)return;const x=Gt(v.current),w=R=>{C.current=R,!(r||!s()||R.key!=="Tab")&&x.activeElement===v.current&&R.shiftKey&&(l.current=!0,u.current&&u.current.focus())},S=()=>{const R=v.current;if(R===null)return;if(!x.hasFocus()||!s()||l.current){l.current=!1;return}if(R.contains(x.activeElement)||r&&x.activeElement!==c.current&&x.activeElement!==u.current)return;if(x.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!h.current)return;let P=[];if((x.activeElement===c.current||x.activeElement===u.current)&&(P=i(v.current)),P.length>0){var _,k;const E=!!((_=C.current)!=null&&_.shiftKey&&((k=C.current)==null?void 0:k.key)==="Tab"),M=P[0],$=P[P.length-1];typeof M!="string"&&typeof $!="string"&&(E?$.focus():M.focus())}else R.focus()};x.addEventListener("focusin",S),x.addEventListener("keydown",w,!0);const T=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&S()},50);return()=>{clearInterval(T),x.removeEventListener("focusin",S),x.removeEventListener("keydown",w,!0)}},[n,r,o,s,a,i]);const g=x=>{d.current===null&&(d.current=x.relatedTarget),h.current=!0,p.current=x.target;const w=t.props.onFocus;w&&w(x)},y=x=>{d.current===null&&(d.current=x.relatedTarget),h.current=!0};return f.jsxs(b.Fragment,{children:[f.jsx("div",{tabIndex:a?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),b.cloneElement(t,{ref:m,onFocus:g}),f.jsx("div",{tabIndex:a?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}function q9(e){return typeof e=="function"?e():e}const uy=b.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,a]=b.useState(null),l=Pt(b.isValidElement(r)?r.ref:null,n);if(Wr(()=>{i||a(q9(o)||document.body)},[o,i]),Wr(()=>{if(s&&!i)return Tc(n,s),()=>{Tc(n,null)}},[n,s,i]),i){if(b.isValidElement(r)){const c={ref:l};return b.cloneElement(r,c)}return f.jsx(b.Fragment,{children:r})}return f.jsx(b.Fragment,{children:s&&Uf.createPortal(r,s)})}),Q9=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],K9={entering:{opacity:1},entered:{opacity:1}},Z9=b.forwardRef(function(t,n){const r=Ip(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:h,onExited:v,onExiting:m,style:C,timeout:g=o,TransitionComponent:y=Hr}=t,x=H(t,Q9),w=b.useRef(null),S=Pt(w,a.ref,n),T=O=>z=>{if(O){const L=w.current;z===void 0?O(L):O(L,z)}},R=T(p),P=T((O,z)=>{Ek(O);const L=ka({style:C,timeout:g,easing:l},{mode:"enter"});O.style.webkitTransition=r.transitions.create("opacity",L),O.style.transition=r.transitions.create("opacity",L),u&&u(O,z)}),_=T(d),k=T(m),E=T(O=>{const z=ka({style:C,timeout:g,easing:l},{mode:"exit"});O.style.webkitTransition=r.transitions.create("opacity",z),O.style.transition=r.transitions.create("opacity",z),h&&h(O)}),M=T(v),$=O=>{i&&i(w.current,O)};return f.jsx(y,A({appear:s,in:c,nodeRef:w,onEnter:P,onEntered:_,onEntering:R,onExit:E,onExited:M,onExiting:k,addEndListener:$,timeout:g},x,{children:(O,z)=>b.cloneElement(a,A({style:A({opacity:0,visibility:O==="exited"&&!c?"hidden":void 0},K9[O],C,a.props.style),ref:S},z))}))});function Y9(e){return be("MuiBackdrop",e)}Ce("MuiBackdrop",["root","invisible"]);const X9=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],J9=e=>{const{classes:t,invisible:n}=e;return we({root:["root",n&&"invisible"]},Y9,t)},e6=V("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>A({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),t6=b.forwardRef(function(t,n){var r,o,i;const s=Se({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:c="div",components:u={},componentsProps:d={},invisible:p=!1,open:h,slotProps:v={},slots:m={},TransitionComponent:C=Z9,transitionDuration:g}=s,y=H(s,X9),x=A({},s,{component:c,invisible:p}),w=J9(x),S=(r=v.root)!=null?r:d.root;return f.jsx(C,A({in:h,timeout:g},y,{children:f.jsx(e6,A({"aria-hidden":!0},S,{as:(o=(i=m.root)!=null?i:u.Root)!=null?o:c,className:Z(w.root,l,S==null?void 0:S.className),ownerState:A({},x,S==null?void 0:S.ownerState),classes:w,ref:n,children:a}))}))});function n6(e){return typeof e=="function"?e():e}function r6(e){return e?e.props.hasOwnProperty("in"):!1}const o6=new z9;function i6(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=o6,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:u,rootRef:d}=e,p=b.useRef({}),h=b.useRef(null),v=b.useRef(null),m=Pt(v,d),[C,g]=b.useState(!u),y=r6(l);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const w=()=>Gt(h.current),S=()=>(p.current.modalRef=v.current,p.current.mount=h.current,p.current),T=()=>{o.mount(S(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},R=jn(()=>{const L=n6(t)||w().body;o.add(S(),L),v.current&&T()}),P=b.useCallback(()=>o.isTopModal(S()),[o]),_=jn(L=>{h.current=L,L&&(u&&P()?T():v.current&&Nl(v.current,x))}),k=b.useCallback(()=>{o.remove(S(),x)},[x,o]);b.useEffect(()=>()=>{k()},[k]),b.useEffect(()=>{u?R():(!y||!i)&&k()},[u,k,y,i,R]);const E=L=>D=>{var j;(j=L.onKeyDown)==null||j.call(L,D),!(D.key!=="Escape"||D.which===229||!P())&&(n||(D.stopPropagation(),c&&c(D,"escapeKeyDown")))},M=L=>D=>{var j;(j=L.onClick)==null||j.call(L,D),D.target===D.currentTarget&&c&&c(D,"backdropClick")};return{getRootProps:(L={})=>{const D=ff(e);delete D.onTransitionEnter,delete D.onTransitionExited;const j=A({},D,L);return A({role:"presentation"},j,{onKeyDown:E(j),ref:m})},getBackdropProps:(L={})=>{const D=L;return A({"aria-hidden":!0},D,{onClick:M(D),open:u})},getTransitionProps:()=>{const L=()=>{g(!1),s&&s()},D=()=>{g(!0),a&&a(),i&&k()};return{onEnter:qg(L,l==null?void 0:l.props.onEnter),onExited:qg(D,l==null?void 0:l.props.onExited)}},rootRef:m,portalRef:_,isTopModal:P,exited:C,hasTransition:y}}function s6(e){return be("MuiModal",e)}Ce("MuiModal",["root","hidden","backdrop"]);const a6=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],l6=e=>{const{open:t,exited:n,classes:r}=e;return we({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},s6,r)},c6=V("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>A({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),u6=V(t6,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Pk=b.forwardRef(function(t,n){var r,o,i,s,a,l;const c=Se({name:"MuiModal",props:t}),{BackdropComponent:u=u6,BackdropProps:d,className:p,closeAfterTransition:h=!1,children:v,container:m,component:C,components:g={},componentsProps:y={},disableAutoFocus:x=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:S=!1,disablePortal:T=!1,disableRestoreFocus:R=!1,disableScrollLock:P=!1,hideBackdrop:_=!1,keepMounted:k=!1,onBackdropClick:E,open:M,slotProps:$,slots:O}=c,z=H(c,a6),L=A({},c,{closeAfterTransition:h,disableAutoFocus:x,disableEnforceFocus:w,disableEscapeKeyDown:S,disablePortal:T,disableRestoreFocus:R,disableScrollLock:P,hideBackdrop:_,keepMounted:k}),{getRootProps:D,getBackdropProps:j,getTransitionProps:N,portalRef:W,isTopModal:se,exited:ae,hasTransition:Re}=i6(A({},L,{rootRef:n})),Y=A({},L,{exited:ae}),ce=l6(Y),G={};if(v.props.tabIndex===void 0&&(G.tabIndex="-1"),Re){const{onEnter:Te,onExited:Ee}=N();G.onEnter=Te,G.onExited=Ee}const fe=(r=(o=O==null?void 0:O.root)!=null?o:g.Root)!=null?r:c6,pe=(i=(s=O==null?void 0:O.backdrop)!=null?s:g.Backdrop)!=null?i:u,me=(a=$==null?void 0:$.root)!=null?a:y.root,Oe=(l=$==null?void 0:$.backdrop)!=null?l:y.backdrop,ge=Ri({elementType:fe,externalSlotProps:me,externalForwardedProps:z,getSlotProps:D,additionalProps:{ref:n,as:C},ownerState:Y,className:Z(p,me==null?void 0:me.className,ce==null?void 0:ce.root,!Y.open&&Y.exited&&(ce==null?void 0:ce.hidden))}),Ae=Ri({elementType:pe,externalSlotProps:Oe,additionalProps:d,getSlotProps:Te=>j(A({},Te,{onClick:Ee=>{E&&E(Ee),Te!=null&&Te.onClick&&Te.onClick(Ee)}})),className:Z(Oe==null?void 0:Oe.className,d==null?void 0:d.className,ce==null?void 0:ce.backdrop),ownerState:Y});return!k&&!M&&(!Re||ae)?null:f.jsx(uy,{ref:W,container:m,disablePortal:T,children:f.jsxs(fe,A({},ge,{children:[!_&&u?f.jsx(pe,A({},Ae)):null,f.jsx(G9,{disableEnforceFocus:w,disableAutoFocus:x,disableRestoreFocus:R,isEnabled:se,open:M,children:b.cloneElement(v,G)})]}))})});function d6(e){return be("MuiPopover",e)}Ce("MuiPopover",["root","paper"]);const f6=["onEntering"],p6=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],h6=["slotProps"];function Ub(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Hb(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Gb(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function im(e){return typeof e=="function"?e():e}const m6=e=>{const{classes:t}=e;return we({root:["root"],paper:["paper"]},d6,t)},g6=V(Pk,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ik=V(Sr,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),v6=b.forwardRef(function(t,n){var r,o,i;const s=Se({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:p,className:h,container:v,elevation:m=8,marginThreshold:C=16,open:g,PaperProps:y={},slots:x,slotProps:w,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:T=cy,transitionDuration:R="auto",TransitionProps:{onEntering:P}={},disableScrollLock:_=!1}=s,k=H(s.TransitionProps,f6),E=H(s,p6),M=(r=w==null?void 0:w.paper)!=null?r:y,$=b.useRef(),O=Pt($,M.ref),z=A({},s,{anchorOrigin:c,anchorReference:d,elevation:m,marginThreshold:C,externalPaperSlotProps:M,transformOrigin:S,TransitionComponent:T,transitionDuration:R,TransitionProps:k}),L=m6(z),D=b.useCallback(()=>{if(d==="anchorPosition")return u;const Te=im(l),Ie=(Te&&Te.nodeType===1?Te:Gt($.current).body).getBoundingClientRect();return{top:Ie.top+Ub(Ie,c.vertical),left:Ie.left+Hb(Ie,c.horizontal)}},[l,c.horizontal,c.vertical,u,d]),j=b.useCallback(Te=>({vertical:Ub(Te,S.vertical),horizontal:Hb(Te,S.horizontal)}),[S.horizontal,S.vertical]),N=b.useCallback(Te=>{const Ee={width:Te.offsetWidth,height:Te.offsetHeight},Ie=j(Ee);if(d==="none")return{top:null,left:null,transformOrigin:Gb(Ie)};const le=D();let at=le.top-Ie.vertical,ue=le.left-Ie.horizontal;const Je=at+Ee.height,Ge=ue+Ee.width,Ne=ki(im(l)),ht=Ne.innerHeight-C,tt=Ne.innerWidth-C;if(C!==null&&atht){const ze=Je-ht;at-=ze,Ie.vertical+=ze}if(C!==null&&uett){const ze=Ge-tt;ue-=ze,Ie.horizontal+=ze}return{top:`${Math.round(at)}px`,left:`${Math.round(ue)}px`,transformOrigin:Gb(Ie)}},[l,d,D,j,C]),[W,se]=b.useState(g),ae=b.useCallback(()=>{const Te=$.current;if(!Te)return;const Ee=N(Te);Ee.top!==null&&(Te.style.top=Ee.top),Ee.left!==null&&(Te.style.left=Ee.left),Te.style.transformOrigin=Ee.transformOrigin,se(!0)},[N]);b.useEffect(()=>(_&&window.addEventListener("scroll",ae),()=>window.removeEventListener("scroll",ae)),[l,_,ae]);const Re=(Te,Ee)=>{P&&P(Te,Ee),ae()},Y=()=>{se(!1)};b.useEffect(()=>{g&&ae()}),b.useImperativeHandle(a,()=>g?{updatePosition:()=>{ae()}}:null,[g,ae]),b.useEffect(()=>{if(!g)return;const Te=Bv(()=>{ae()}),Ee=ki(l);return Ee.addEventListener("resize",Te),()=>{Te.clear(),Ee.removeEventListener("resize",Te)}},[l,g,ae]);let ce=R;R==="auto"&&!T.muiSupportAuto&&(ce=void 0);const G=v||(l?Gt(im(l)).body:void 0),fe=(o=x==null?void 0:x.root)!=null?o:g6,pe=(i=x==null?void 0:x.paper)!=null?i:Ik,me=Ri({elementType:pe,externalSlotProps:A({},M,{style:W?M.style:A({},M.style,{opacity:0})}),additionalProps:{elevation:m,ref:O},ownerState:z,className:Z(L.paper,M==null?void 0:M.className)}),Oe=Ri({elementType:fe,externalSlotProps:(w==null?void 0:w.root)||{},externalForwardedProps:E,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:G,open:g},ownerState:z,className:Z(L.root,h)}),{slotProps:ge}=Oe,Ae=H(Oe,h6);return f.jsx(fe,A({},Ae,!df(fe)&&{slotProps:ge,disableScrollLock:_},{children:f.jsx(T,A({appear:!0,in:g,onEntering:Re,onExited:Y,timeout:ce},k,{children:f.jsx(pe,A({},me,{children:p}))}))}))});function y6(e){return be("MuiMenu",e)}Ce("MuiMenu",["root","paper","list"]);const x6=["onEntering"],b6=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],w6={vertical:"top",horizontal:"right"},C6={vertical:"top",horizontal:"left"},S6=e=>{const{classes:t}=e;return we({root:["root"],paper:["paper"],list:["list"]},y6,t)},A6=V(v6,{shouldForwardProp:e=>zn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),k6=V(Ik,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),R6=V(j9,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),T6=b.forwardRef(function(t,n){var r,o;const i=Se({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:d,open:p,PaperProps:h={},PopoverClasses:v,transitionDuration:m="auto",TransitionProps:{onEntering:C}={},variant:g="selectedMenu",slots:y={},slotProps:x={}}=i,w=H(i.TransitionProps,x6),S=H(i,b6),T=pj(),R=A({},i,{autoFocus:s,disableAutoFocusItem:c,MenuListProps:u,onEntering:C,PaperProps:h,transitionDuration:m,TransitionProps:w,variant:g}),P=S6(R),_=s&&!c&&p,k=b.useRef(null),E=(j,N)=>{k.current&&k.current.adjustStyleForScrollbar(j,{direction:T?"rtl":"ltr"}),C&&C(j,N)},M=j=>{j.key==="Tab"&&(j.preventDefault(),d&&d(j,"tabKeyDown"))};let $=-1;b.Children.map(a,(j,N)=>{b.isValidElement(j)&&(j.props.disabled||(g==="selectedMenu"&&j.props.selected||$===-1)&&($=N))});const O=(r=y.paper)!=null?r:k6,z=(o=x.paper)!=null?o:h,L=Ri({elementType:y.root,externalSlotProps:x.root,ownerState:R,className:[P.root,l]}),D=Ri({elementType:O,externalSlotProps:z,ownerState:R,className:P.paper});return f.jsx(A6,A({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?w6:C6,slots:{paper:O,root:y.root},slotProps:{root:L,paper:D},open:p,ref:n,transitionDuration:m,TransitionProps:A({onEntering:E},w),ownerState:R},S,{classes:v,children:f.jsx(R6,A({onKeyDown:M,actions:k,autoFocus:s&&($===-1||c),autoFocusItem:_,variant:g},u,{className:Z(P.list,u.className),children:a}))}))});function E6(e){return be("MuiNativeSelect",e)}const dy=Ce("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),P6=["className","disabled","error","IconComponent","inputRef","variant"],I6=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${U(n)}`,i&&"iconOpen",r&&"disabled"]};return we(a,E6,t)},_k=({ownerState:e,theme:t})=>A({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":A({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${dy.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),_6=V("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:zn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${dy.multiple}`]:t.multiple}]}})(_k),jk=({ownerState:e,theme:t})=>A({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${dy.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),j6=V("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${U(n.variant)}`],n.open&&t.iconOpen]}})(jk),M6=b.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:a,variant:l="standard"}=t,c=H(t,P6),u=A({},t,{disabled:o,variant:l,error:i}),d=I6(u);return f.jsxs(b.Fragment,{children:[f.jsx(_6,A({ownerState:u,className:Z(d.select,r),disabled:o,ref:a||n},c)),t.multiple?null:f.jsx(j6,{as:s,ownerState:u,className:d.icon})]})});function O6(e){return be("MuiSelect",e)}const ol=Ce("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var qb;const $6=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],N6=V("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ol.select}`]:t.select},{[`&.${ol.select}`]:t[n.variant]},{[`&.${ol.error}`]:t.error},{[`&.${ol.multiple}`]:t.multiple}]}})(_k,{[`&.${ol.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),L6=V("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${U(n.variant)}`],n.open&&t.iconOpen]}})(jk),D6=V("input",{shouldForwardProp:e=>ik(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Qb(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function z6(e){return e==null||typeof e=="string"&&!e.trim()}const B6=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${U(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return we(a,O6,t)},F6=b.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:s,autoWidth:a,children:l,className:c,defaultOpen:u,defaultValue:d,disabled:p,displayEmpty:h,error:v=!1,IconComponent:m,inputRef:C,labelId:g,MenuProps:y={},multiple:x,name:w,onBlur:S,onChange:T,onClose:R,onFocus:P,onOpen:_,open:k,readOnly:E,renderValue:M,SelectDisplayProps:$={},tabIndex:O,value:z,variant:L="standard"}=t,D=H(t,$6),[j,N]=gi({controlled:z,default:d,name:"Select"}),[W,se]=gi({controlled:k,default:u,name:"Select"}),ae=b.useRef(null),Re=b.useRef(null),[Y,ce]=b.useState(null),{current:G}=b.useRef(k!=null),[fe,pe]=b.useState(),me=Pt(n,C),Oe=b.useCallback(te=>{Re.current=te,te&&ce(te)},[]),ge=Y==null?void 0:Y.parentNode;b.useImperativeHandle(me,()=>({focus:()=>{Re.current.focus()},node:ae.current,value:j}),[j]),b.useEffect(()=>{u&&W&&Y&&!G&&(pe(a?null:ge.clientWidth),Re.current.focus())},[Y,a]),b.useEffect(()=>{s&&Re.current.focus()},[s]),b.useEffect(()=>{if(!g)return;const te=Gt(Re.current).getElementById(g);if(te){const De=()=>{getSelection().isCollapsed&&Re.current.focus()};return te.addEventListener("click",De),()=>{te.removeEventListener("click",De)}}},[g]);const Ae=(te,De)=>{te?_&&_(De):R&&R(De),G||(pe(a?null:ge.clientWidth),se(te))},Te=te=>{te.button===0&&(te.preventDefault(),Re.current.focus(),Ae(!0,te))},Ee=te=>{Ae(!1,te)},Ie=b.Children.toArray(l),le=te=>{const De=Ie.find(qe=>qe.props.value===te.target.value);De!==void 0&&(N(De.props.value),T&&T(te,De))},at=te=>De=>{let qe;if(De.currentTarget.hasAttribute("tabindex")){if(x){qe=Array.isArray(j)?j.slice():[];const Dt=j.indexOf(te.props.value);Dt===-1?qe.push(te.props.value):qe.splice(Dt,1)}else qe=te.props.value;if(te.props.onClick&&te.props.onClick(De),j!==qe&&(N(qe),T)){const Dt=De.nativeEvent||De,An=new Dt.constructor(Dt.type,Dt);Object.defineProperty(An,"target",{writable:!0,value:{value:qe,name:w}}),T(An,te)}x||Ae(!1,De)}},ue=te=>{E||[" ","ArrowUp","ArrowDown","Enter"].indexOf(te.key)!==-1&&(te.preventDefault(),Ae(!0,te))},Je=Y!==null&&W,Ge=te=>{!Je&&S&&(Object.defineProperty(te,"target",{writable:!0,value:{value:j,name:w}}),S(te))};delete D["aria-invalid"];let Ne,ht;const tt=[];let ze=!1;(yf({value:j})||h)&&(M?Ne=M(j):ze=!0);const mt=Ie.map(te=>{if(!b.isValidElement(te))return null;let De;if(x){if(!Array.isArray(j))throw new Error(cs(2));De=j.some(qe=>Qb(qe,te.props.value)),De&&ze&&tt.push(te.props.children)}else De=Qb(j,te.props.value),De&&ze&&(ht=te.props.children);return b.cloneElement(te,{"aria-selected":De?"true":"false",onClick:at(te),onKeyUp:qe=>{qe.key===" "&&qe.preventDefault(),te.props.onKeyUp&&te.props.onKeyUp(qe)},role:"option",selected:De,value:void 0,"data-value":te.props.value})});ze&&(x?tt.length===0?Ne=null:Ne=tt.reduce((te,De,qe)=>(te.push(De),qe{const{classes:t,disableUnderline:n}=e,o=we({root:["root",!n&&"underline"],input:["input"]},W6,t);return A({},t,o)},H6=V(Np,{shouldForwardProp:e=>zn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Op(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),A({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ni.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ni.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ni.disabled}, .${ni.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${ni.disabled}:before`]:{borderBottomStyle:"dotted"}})}),G6=V(Lp,{name:"MuiInput",slot:"Input",overridesResolver:$p})({}),fy=b.forwardRef(function(t,n){var r,o,i,s;const a=Se({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:d=!1,inputComponent:p="input",multiline:h=!1,slotProps:v,slots:m={},type:C="text"}=a,g=H(a,V6),y=U6(a),w={root:{ownerState:{disableUnderline:l}}},S=v??u?vn(v??u,w):w,T=(r=(o=m.root)!=null?o:c.Root)!=null?r:H6,R=(i=(s=m.input)!=null?s:c.Input)!=null?i:G6;return f.jsx(sy,A({slots:{root:T,input:R},slotProps:S,fullWidth:d,inputComponent:p,multiline:h,ref:n,type:C},g,{classes:y}))});fy.muiName="Input";function q6(e){return be("MuiFilledInput",e)}const Un=A({},Vn,Ce("MuiFilledInput",["root","underline","input"])),Q6=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],K6=e=>{const{classes:t,disableUnderline:n}=e,o=we({root:["root",!n&&"underline"],input:["input"]},q6,t);return A({},t,o)},Z6=V(Np,{shouldForwardProp:e=>zn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Op(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return A({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Un.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Un.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Un.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Un.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Un.disabled}, .${Un.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Un.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&A({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),Y6=V(Lp,{name:"MuiFilledInput",slot:"Input",overridesResolver:$p})(({theme:e,ownerState:t})=>A({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),py=b.forwardRef(function(t,n){var r,o,i,s;const a=Se({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:p=!1,slotProps:h,slots:v={},type:m="text"}=a,C=H(a,Q6),g=A({},a,{fullWidth:u,inputComponent:d,multiline:p,type:m}),y=K6(a),x={root:{ownerState:g},input:{ownerState:g}},w=h??c?vn(x,h??c):x,S=(r=(o=v.root)!=null?o:l.Root)!=null?r:Z6,T=(i=(s=v.input)!=null?s:l.Input)!=null?i:Y6;return f.jsx(sy,A({slots:{root:S,input:T},componentsProps:w,fullWidth:u,inputComponent:d,multiline:p,ref:n,type:m},C,{classes:y}))});py.muiName="Input";const X6=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],J6=["root"],eN=e=>{const{classes:t}=e;return t},hy={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>zn(e)&&e!=="variant",slot:"Root"},tN=V(fy,hy)(""),nN=V(Dp,hy)(""),rN=V(py,hy)(""),my=b.forwardRef(function(t,n){const r=Se({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=Mk,id:d,input:p,inputProps:h,label:v,labelId:m,MenuProps:C,multiple:g=!1,native:y=!1,onClose:x,onOpen:w,open:S,renderValue:T,SelectDisplayProps:R,variant:P="outlined"}=r,_=H(r,X6),k=y?M6:F6,E=Vo(),M=ji({props:r,muiFormControl:E,states:["variant","error"]}),$=M.variant||P,O=A({},r,{variant:$,classes:s}),z=eN(O),L=H(z,J6),D=p||{standard:f.jsx(tN,{ownerState:O}),outlined:f.jsx(nN,{label:v,ownerState:O}),filled:f.jsx(rN,{ownerState:O})}[$],j=Pt(n,D.ref);return f.jsx(b.Fragment,{children:b.cloneElement(D,A({inputComponent:k,inputProps:A({children:i,error:M.error,IconComponent:u,variant:$,type:void 0,multiple:g},y?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:C,onClose:x,onOpen:w,open:S,renderValue:T,SelectDisplayProps:A({id:d},R)},h,{classes:h?vn(L,h.classes):L},p?p.props.inputProps:{})},(g&&y||c)&&$==="outlined"?{notched:!0}:{},{ref:j,className:Z(D.props.className,a,z.root)},!p&&{variant:$},_))})});my.muiName="Select";function oN(e){return be("PrivateSwitchBase",e)}Ce("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const iN=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],sN=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${U(o)}`],input:["input"]};return we(i,oN,t)},aN=V(Lo)(({ownerState:e})=>A({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),lN=V("input",{shouldForwardProp:zn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Ok=b.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:s,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:p,inputProps:h,inputRef:v,name:m,onBlur:C,onChange:g,onFocus:y,readOnly:x,required:w=!1,tabIndex:S,type:T,value:R}=t,P=H(t,iN),[_,k]=gi({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),E=Vo(),M=N=>{y&&y(N),E&&E.onFocus&&E.onFocus(N)},$=N=>{C&&C(N),E&&E.onBlur&&E.onBlur(N)},O=N=>{if(N.nativeEvent.defaultPrevented)return;const W=N.target.checked;k(W),g&&g(N,W)};let z=l;E&&typeof z>"u"&&(z=E.disabled);const L=T==="checkbox"||T==="radio",D=A({},t,{checked:_,disabled:z,disableFocusRipple:c,edge:u}),j=sN(D);return f.jsxs(aN,A({component:"span",className:Z(j.root,s),centerRipple:!0,focusRipple:!c,disabled:z,tabIndex:null,role:void 0,onFocus:M,onBlur:$,ownerState:D,ref:n},P,{children:[f.jsx(lN,A({autoFocus:r,checked:o,defaultChecked:a,className:j.input,disabled:z,id:L?p:void 0,name:m,onChange:O,readOnly:x,ref:v,required:w,ownerState:D,tabIndex:S,type:T},T==="checkbox"&&R===void 0?{}:{value:R},h)),_?i:d]}))}),cN=Bn(f.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),uN=Bn(f.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),dN=Bn(f.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function fN(e){return be("MuiCheckbox",e)}const sm=Ce("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),pN=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],hN=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${U(r)}`,`size${U(o)}`]},s=we(i,fN,t);return A({},t,s)},mN=V(Ok,{shouldForwardProp:e=>zn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${U(n.size)}`],n.color!=="default"&&t[`color${U(n.color)}`]]}})(({theme:e,ownerState:t})=>A({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ye(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${sm.checked}, &.${sm.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${sm.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),gN=f.jsx(uN,{}),vN=f.jsx(cN,{}),yN=f.jsx(dN,{}),Kp=b.forwardRef(function(t,n){var r,o;const i=Se({props:t,name:"MuiCheckbox"}),{checkedIcon:s=gN,color:a="primary",icon:l=vN,indeterminate:c=!1,indeterminateIcon:u=yN,inputProps:d,size:p="medium",className:h}=i,v=H(i,pN),m=c?u:l,C=c?u:s,g=A({},i,{color:a,indeterminate:c,size:p}),y=hN(g);return f.jsx(mN,A({type:"checkbox",inputProps:A({"data-indeterminate":c},d),icon:b.cloneElement(m,{fontSize:(r=m.props.fontSize)!=null?r:p}),checkedIcon:b.cloneElement(C,{fontSize:(o=C.props.fontSize)!=null?o:p}),ownerState:g,ref:n,className:Z(y.root,h)},v,{classes:y}))});function xN(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,s=Rp();b.useEffect(()=>{if(!o)return;function g(y){y.defaultPrevented||(y.key==="Escape"||y.key==="Esc")&&(r==null||r(y,"escapeKeyDown"))}return document.addEventListener("keydown",g),()=>{document.removeEventListener("keydown",g)}},[o,r]);const a=jn((g,y)=>{r==null||r(g,y)}),l=jn(g=>{!r||g==null||s.start(g,()=>{a(null,"timeout")})});b.useEffect(()=>(o&&l(t),s.clear),[o,t,l,s]);const c=g=>{r==null||r(g,"clickaway")},u=s.clear,d=b.useCallback(()=>{t!=null&&l(i??t*.5)},[t,i,l]),p=g=>y=>{const x=g.onBlur;x==null||x(y),d()},h=g=>y=>{const x=g.onFocus;x==null||x(y),u()},v=g=>y=>{const x=g.onMouseEnter;x==null||x(y),u()},m=g=>y=>{const x=g.onMouseLeave;x==null||x(y),d()};return b.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",d),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",u)}},[n,o,d,u]),{getRootProps:(g={})=>{const y=A({},ff(e),ff(g));return A({role:"presentation"},g,y,{onBlur:p(y),onFocus:h(y),onMouseEnter:v(y),onMouseLeave:m(y)})},onClickAway:c}}function Kb(e){return e.substring(2).toLowerCase()}function bN(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=Pt(t.ref,a),d=jn(v=>{const m=c.current;c.current=!1;const C=Gt(a.current);if(!l.current||!a.current||"clientX"in v&&bN(v,C))return;if(s.current){s.current=!1;return}let g;v.composedPath?g=v.composedPath().indexOf(a.current)>-1:g=!C.documentElement.contains(v.target)||a.current.contains(v.target),!g&&(n||!m)&&o(v)}),p=v=>m=>{c.current=!0;const C=t.props[v];C&&C(m)},h={ref:u};return i!==!1&&(h[i]=p(i)),b.useEffect(()=>{if(i!==!1){const v=Kb(i),m=Gt(a.current),C=()=>{s.current=!0};return m.addEventListener(v,d),m.addEventListener("touchmove",C),()=>{m.removeEventListener(v,d),m.removeEventListener("touchmove",C)}}},[d,i]),r!==!1&&(h[r]=p(r)),b.useEffect(()=>{if(r!==!1){const v=Kb(r),m=Gt(a.current);return m.addEventListener(v,d),()=>{m.removeEventListener(v,d)}}},[d,r]),f.jsx(b.Fragment,{children:b.cloneElement(t,h)})}function wN(e){return be("MuiSnackbarContent",e)}Ce("MuiSnackbarContent",["root","message","action"]);const CN=["action","className","message","role"],SN=e=>{const{classes:t}=e;return we({root:["root"],action:["action"],message:["message"]},wN,t)},AN=V(Sr,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=gM(e.palette.background.default,t);return A({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),kN=V("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),RN=V("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),TN=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:s,role:a="alert"}=r,l=H(r,CN),c=r,u=SN(c);return f.jsxs(AN,A({role:a,square:!0,elevation:6,className:Z(u.root,i),ownerState:c,ref:n},l,{children:[f.jsx(kN,{className:u.message,ownerState:c,children:s}),o?f.jsx(RN,{className:u.action,ownerState:c,children:o}):null]}))});function EN(e){return be("MuiSnackbar",e)}Ce("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const PN=["onEnter","onExited"],IN=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],_N=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${U(n.vertical)}${U(n.horizontal)}`]};return we(r,EN,t)},Zb=V("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${U(n.anchorOrigin.vertical)}${U(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return A({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:A({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),jN=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiSnackbar"}),o=Ip(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:a,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:d,ClickAwayListenerProps:p,ContentProps:h,disableWindowBlurListener:v=!1,message:m,open:C,TransitionComponent:g=cy,transitionDuration:y=i,TransitionProps:{onEnter:x,onExited:w}={}}=r,S=H(r.TransitionProps,PN),T=H(r,IN),R=A({},r,{anchorOrigin:{vertical:a,horizontal:l},autoHideDuration:c,disableWindowBlurListener:v,TransitionComponent:g,transitionDuration:y}),P=_N(R),{getRootProps:_,onClickAway:k}=xN(A({},R)),[E,M]=b.useState(!0),$=Ri({elementType:Zb,getSlotProps:_,externalForwardedProps:T,ownerState:R,additionalProps:{ref:n},className:[P.root,d]}),O=L=>{M(!0),w&&w(L)},z=(L,D)=>{M(!1),x&&x(L,D)};return!C&&E?null:f.jsx($k,A({onClickAway:k},p,{children:f.jsx(Zb,A({},$,{children:f.jsx(g,A({appear:!0,in:C,timeout:y,direction:a==="top"?"down":"up",onEnter:z,onExited:O},S,{children:u||f.jsx(TN,A({message:m,action:s},h))}))}))}))});function Zp({openSnack:e,setOpenSnack:t,message:n}){return f.jsx(uy,{children:f.jsx(jN,{sx:{zIndex:9999},anchorOrigin:{vertical:"top",horizontal:"center"},open:e,onClose:()=>t(!1),children:f.jsx(lk,{severity:"warning",children:n})})})}function Cl({value:e,setValue:t,names:n,namesList:r,type:o,inSelectionData:i,dataProperty:s,fromQuickSelectors:a}){let l=e.length===n.length;const c=b.useRef(null),[u,d]=b.useState(450),[p,h]=b.useState(!1);function v(g){const y=[g.target.value].flat();if(y.length===0){t(e),h(!0);return}if(l){l=y.length!==n.length;const x=n.filter(w=>!y.includes(w));t(x)}else y.sort((x,w)=>r[x].localeCompare(r[w])),t(y)}function m(){if(c.current){const g=c.current.getBoundingClientRect(),x=window.innerHeight-g.bottom;d(x)}}const C=b.useMemo(()=>(n.sort((g,y)=>o==="Year"?y-g:r[g].localeCompare(r[y])),n),[n,r,o]);return f.jsxs("div",{ref:c,children:[f.jsx(Zp,{openSnack:p,setOpenSnack:h,message:`At least one ${o.toLocaleLowerCase()} must be selected`}),f.jsxs(kk,{sx:a?{maxWidth:"100%",minWidth:"100%"}:{m:1,maxWidth:"95%",minWidth:"95%"},size:a?"small":"medium",children:[f.jsx(Ak,{id:"multiple-checkbox-label",children:o}),f.jsx(my,{labelId:"multiple-checkbox-label",id:"multiple-checkbox",multiple:!0,value:e,onChange:v,onMouseEnter:m,input:f.jsx(Dp,{label:o}),renderValue:g=>a?l?"All selected":o==="Year"&&g.length===1?g:`${g.length} selected`:g.map(y=>r[y]).join(", "),MenuProps:{PaperProps:{style:{maxHeight:u,marginTop:"8px"}},disablePortal:!0},children:C.map(g=>f.jsxs(x9,{value:g,disabled:!i[s].has(g),style:{whiteSpace:"normal",padding:"1px"},children:[f.jsx(Kp,{checked:e.includes(g),sx:{padding:"6px"}}),f.jsx(p9,{style:{maxWidth:"500px"},primary:r[g]})]},g))})]})]})}function Nk(e){const t={};return e.forEach(n=>{t[n]=n.toString()}),t}function MN({allocationSource:e,allocationType:t,fund:n,year:r,inSelectionData:o,setAllocationSource:i,setAllocationType:s,setFund:a,setYear:l}){const{lists:c,inDataLists:u}=b.useContext(Fo),d=[...u.years],p=[...u.funds],h=[...u.allocationTypes],v=[...u.allocationSources],m=Nk(d),C=c.fundNames,g=c.allocationTypes,y=c.allocationSources;return f.jsxs(q,{display:"flex",flexDirection:"row",marginLeft:"4em",gap:1,children:[f.jsx(Cl,{value:r,setValue:l,names:d,namesList:m,type:"Year",inSelectionData:o,dataProperty:"years",fromQuickSelectors:!0}),f.jsx(Cl,{value:n,setValue:a,names:p,namesList:C,type:"Fund",inSelectionData:o,dataProperty:"funds",fromQuickSelectors:!0}),f.jsx(Cl,{value:t,setValue:s,names:h,namesList:g,type:"Allocation Type",inSelectionData:o,dataProperty:"allocationTypes",fromQuickSelectors:!0}),f.jsx(Cl,{value:e,setValue:i,names:v,namesList:y,type:"Allocation Source",inSelectionData:o,dataProperty:"allocationSources",fromQuickSelectors:!0})]})}function ON({titleRef:e,inViewTitle:t,inViewMenus:n,inViewSummary:r,inViewPictogram:o,inViewBeneficiaryTypes:i,inViewOrganizations:s,inViewSectors:a,inViewIndicators:l,inViewDisability:c,inViewGBV:u,refIds:d,year:p,setYear:h,fund:v,setFund:m,allocationSource:C,setAllocationSource:g,allocationType:y,setAllocationType:x,inSelectionData:w}){return f.jsxs(Ke,{container:!0,spacing:2,justifyContent:"center",position:"sticky",top:-1,ref:e,mb:2,pt:1,style:{backgroundColor:"rgba(255,255,255,0.95)",zIndex:1200,borderBottom:t?"none":"1px solid #ccc",boxShadow:t?"none":"0px 10px 10px -10px rgba(0,0,0,0.2)"},children:[f.jsxs(Ke,{pb:3,pt:2,xs:12,display:"flex",alignItems:"center",justifyContent:"center",children:[f.jsx(ye,{variant:"h4",style:{fontFamily:"Montserrat",fontSize:n?"40px":"24px",fontWeight:700,marginLeft:n?"1em":"2em"},children:"Allocation Progress Dashboard"}),f.jsx(Wa,{"data-tooltip-id":"tooltip","data-tooltip-content":"The Allocation Progress dashboard provides visual representation of both under implementation and implemented projects","data-tooltip-place":"top",style:{color:Fe.unColor,fontSize:n?"26px":"18px",marginLeft:"0.1em",alignSelf:"flex-start"}}),!n&&f.jsx(MN,{year:p,setYear:h,fund:v,setFund:m,allocationSource:C,setAllocationSource:g,allocationType:y,setAllocationType:x,inSelectionData:w})]}),f.jsx(R$,{inViewSummary:r,inViewPictogram:o,inViewBeneficiaryTypes:i,inViewOrganizations:s,inViewSectors:a,inViewIndicators:l,inViewDisability:c,inViewGBV:u,refIds:d})]})}const $N=ft.memo(ON);function NN(){return f.jsx(Ke,{container:!0,spacing:2,justifyContent:"center",children:f.jsx(Ke,{xs:10,mb:3,children:f.jsx(ye,{variant:"body1",style:{fontFamily:"Montserrat",fontSize:"14px",textAlign:"center"},children:"Welcome to the Country Based Pooled Fund (CBPF) Allocation Progress Dashboard, a comprehensive tool that provides an overview of the Targeted vs Achieved statuses for funded projects. Here, you can visualize the progress of each project, including the percentage of people targeted and reached by type of partners engaged, sectors covered, categorization of people, by disability and by Gender based violence (GBV) category. Additionally this dashboard for the first time explore the achievements against the targeted Global Indicators across funds."})})})}const{implementationStatuses:LN}=Cn;function DN({allocationSource:e,allocationType:t,fund:n,implementationStatus:r,inDataLists:o,queryStringValues:i,setAllocationSource:s,setAllocationType:a,setClickedDownload:l,setFund:c,setImplementationStatus:u,setYear:d,year:p,downloadStates:h,defaultYear:v}){b.useEffect(()=>{const g=m("allocationType"),y=m("allocationSource"),x=m("fund"),w=m("year"),S=C("implementationStatus");return g&&a(g),y&&s(y),x&&c(x),w&&d(w),S&&u(S),()=>{}},[]),b.useEffect(()=>{l(h);const g=t.length===o.allocationTypes.size?"":`&allocationType=${t}`,y=e.length===o.allocationSources.size?"":`&allocationSource=${e}`,x=n.length===o.funds.size?"":`&fund=${n}`,w=p.length===1&&p[0]===v?"":`&year=${p}`,S=r.length===LN.length?"":`&implementationStatus=${r}`;g||y||x||w||S?window.history.replaceState({},"",`?${g}${y}${x}${w}${S}`):window.history.replaceState({},"",window.location.pathname)},[r,p,n,e,t]);function m(g){var y;return((y=i.get(g))==null?void 0:y.split(",").map(Number))??null}function C(g){var y;return((y=i.get(g))==null?void 0:y.split(","))??null}}function Lk(){return f.jsx(Sr,{style:{width:"140px",height:"140px",backgroundColor:"#1677ff",position:"absolute",bottom:"-70px",right:"-70px",borderRadius:"50%",filter:"blur(70px)",opacity:"0.3"}})}function zN(e){return be("MuiCollapse",e)}Ce("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const BN=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],FN=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return we(r,zN,n)},WN=V("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>A({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&A({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),VN=V("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>A({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),UN=V("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>A({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Dk=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:s,collapsedSize:a="0px",component:l,easing:c,in:u,onEnter:d,onEntered:p,onEntering:h,onExit:v,onExited:m,onExiting:C,orientation:g="vertical",style:y,timeout:x=rk.standard,TransitionComponent:w=Hr}=r,S=H(r,BN),T=A({},r,{orientation:g,collapsedSize:a}),R=FN(T),P=Ip(),_=Rp(),k=b.useRef(null),E=b.useRef(),M=typeof a=="number"?`${a}px`:a,$=g==="horizontal",O=$?"width":"height",z=b.useRef(null),L=Pt(n,z),D=G=>fe=>{if(G){const pe=z.current;fe===void 0?G(pe):G(pe,fe)}},j=()=>k.current?k.current[$?"clientWidth":"clientHeight"]:0,N=D((G,fe)=>{k.current&&$&&(k.current.style.position="absolute"),G.style[O]=M,d&&d(G,fe)}),W=D((G,fe)=>{const pe=j();k.current&&$&&(k.current.style.position="");const{duration:me,easing:Oe}=ka({style:y,timeout:x,easing:c},{mode:"enter"});if(x==="auto"){const ge=P.transitions.getAutoHeightDuration(pe);G.style.transitionDuration=`${ge}ms`,E.current=ge}else G.style.transitionDuration=typeof me=="string"?me:`${me}ms`;G.style[O]=`${pe}px`,G.style.transitionTimingFunction=Oe,h&&h(G,fe)}),se=D((G,fe)=>{G.style[O]="auto",p&&p(G,fe)}),ae=D(G=>{G.style[O]=`${j()}px`,v&&v(G)}),Re=D(m),Y=D(G=>{const fe=j(),{duration:pe,easing:me}=ka({style:y,timeout:x,easing:c},{mode:"exit"});if(x==="auto"){const Oe=P.transitions.getAutoHeightDuration(fe);G.style.transitionDuration=`${Oe}ms`,E.current=Oe}else G.style.transitionDuration=typeof pe=="string"?pe:`${pe}ms`;G.style[O]=M,G.style.transitionTimingFunction=me,C&&C(G)}),ce=G=>{x==="auto"&&_.start(E.current||0,G),o&&o(z.current,G)};return f.jsx(w,A({in:u,onEnter:N,onEntered:se,onEntering:W,onExit:ae,onExited:Re,onExiting:Y,addEndListener:ce,nodeRef:z,timeout:x==="auto"?null:x},S,{children:(G,fe)=>f.jsx(WN,A({as:l,className:Z(R.root,s,{entered:R.entered,exited:!u&&M==="0px"&&R.hidden}[G]),style:A({[$?"minWidth":"minHeight"]:M},y),ref:L},fe,{ownerState:A({},T,{state:G}),children:f.jsx(VN,{ownerState:A({},T,{state:G}),className:R.wrapper,ref:k,children:f.jsx(UN,{ownerState:A({},T,{state:G}),className:R.wrapperInner,children:i})})}))}))});Dk.muiSupportAuto=!0;const zk=b.createContext({});function HN(e){return be("MuiAccordion",e)}const Vu=Ce("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),GN=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","slots","slotProps","TransitionComponent","TransitionProps"],qN=e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:i}=e;return we({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!i&&"gutters"],region:["region"]},HN,t)},QN=V(Sr,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Vu.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${Vu.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${Vu.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e})=>({variants:[{props:t=>!t.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:t=>!t.disableGutters,style:{[`&.${Vu.expanded}`]:{margin:"16px 0"}}}]})),KN=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiAccordion"}),{children:o,className:i,defaultExpanded:s=!1,disabled:a=!1,disableGutters:l=!1,expanded:c,onChange:u,square:d=!1,slots:p={},slotProps:h={},TransitionComponent:v,TransitionProps:m}=r,C=H(r,GN),[g,y]=gi({controlled:c,default:s,name:"Accordion",state:"expanded"}),x=b.useCallback($=>{y(!g),u&&u($,!g)},[g,u,y]),[w,...S]=b.Children.toArray(o),T=b.useMemo(()=>({expanded:g,disabled:a,disableGutters:l,toggle:x}),[g,a,l,x]),R=A({},r,{square:d,disabled:a,disableGutters:l,expanded:g}),P=qN(R),_=A({transition:v},p),k=A({transition:m},h),[E,M]=Zg("transition",{elementType:Dk,externalForwardedProps:{slots:_,slotProps:k},ownerState:R});return f.jsxs(QN,A({className:Z(P.root,i),ref:n,ownerState:R,square:d},C,{children:[f.jsx(zk.Provider,{value:T,children:w}),f.jsx(E,A({in:g,timeout:"auto"},M,{children:f.jsx("div",{"aria-labelledby":w.props.id,id:w.props["aria-controls"],role:"region",className:P.region,children:S})}))]}))});function ZN(e){return be("MuiAccordionDetails",e)}Ce("MuiAccordionDetails",["root"]);const YN=["className"],XN=e=>{const{classes:t}=e;return we({root:["root"]},ZN,t)},JN=V("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),eL=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiAccordionDetails"}),{className:o}=r,i=H(r,YN),s=r,a=XN(s);return f.jsx(JN,A({className:Z(a.root,o),ref:n,ownerState:s},i))});function tL(e){return be("MuiAccordionSummary",e)}const Ks=Ce("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),nL=["children","className","expandIcon","focusVisibleClassName","onClick"],rL=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return we({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},tL,t)},oL=V(Lo,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${Ks.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ks.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${Ks.disabled})`]:{cursor:"pointer"},variants:[{props:n=>!n.disableGutters,style:{[`&.${Ks.expanded}`]:{minHeight:64}}}]}}),iL=V("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e})=>({display:"flex",flexGrow:1,margin:"12px 0",variants:[{props:t=>!t.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${Ks.expanded}`]:{margin:"20px 0"}}}]})),sL=V("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${Ks.expanded}`]:{transform:"rotate(180deg)"}})),aL=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiAccordionSummary"}),{children:o,className:i,expandIcon:s,focusVisibleClassName:a,onClick:l}=r,c=H(r,nL),{disabled:u=!1,disableGutters:d,expanded:p,toggle:h}=b.useContext(zk),v=g=>{h&&h(g),l&&l(g)},m=A({},r,{expanded:p,disabled:u,disableGutters:d}),C=rL(m);return f.jsxs(oL,A({focusRipple:!1,disableRipple:!0,disabled:u,component:"div","aria-expanded":p,className:Z(C.root,i),focusVisibleClassName:Z(C.focusVisible,a),onClick:v,ref:n,ownerState:m},c,{children:[f.jsx(iL,{className:C.content,ownerState:m,children:o}),s&&f.jsx(sL,{className:C.expandIconWrapper,ownerState:m,children:s})]}))});var gy={},lL=Sn;Object.defineProperty(gy,"__esModule",{value:!0});var Bk=gy.default=void 0,cL=lL(rr()),uL=f;Bk=gy.default=(0,cL.default)((0,uL.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");function dL(e){return be("MuiFormGroup",e)}Ce("MuiFormGroup",["root","row","error"]);const fL=["className","row"],pL=e=>{const{classes:t,row:n,error:r}=e;return we({root:["root",n&&"row",r&&"error"]},dL,t)},hL=V("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>A({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),Fk=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1}=r,s=H(r,fL),a=Vo(),l=ji({props:r,muiFormControl:a,states:["error"]}),c=A({},r,{row:i,error:l.error}),u=pL(c);return f.jsx(hL,A({className:Z(u.root,o),ownerState:c,ref:n},s))}),mL=Gj({createStyledComponent:V("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Se({props:e,name:"MuiStack"})});function gL(e){return be("MuiFormControlLabel",e)}const Sl=Ce("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),vL=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],yL=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${U(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return we(s,gL,t)},xL=V("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Sl.label}`]:t.label},t.root,t[`labelPlacement${U(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>A({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Sl.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Sl.label}`]:{[`&.${Sl.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),bL=V("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Sl.error}`]:{color:(e.vars||e).palette.error.main}})),Wk=b.forwardRef(function(t,n){var r,o;const i=Se({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:l,disabled:c,disableTypography:u,label:d,labelPlacement:p="end",required:h,slotProps:v={}}=i,m=H(i,vL),C=Vo(),g=(r=c??l.props.disabled)!=null?r:C==null?void 0:C.disabled,y=h??l.props.required,x={disabled:g,required:y};["checked","name","onChange","value","inputRef"].forEach(_=>{typeof l.props[_]>"u"&&typeof i[_]<"u"&&(x[_]=i[_])});const w=ji({props:i,muiFormControl:C,states:["error"]}),S=A({},i,{disabled:g,labelPlacement:p,required:y,error:w.error}),T=yL(S),R=(o=v.typography)!=null?o:a.typography;let P=d;return P!=null&&P.type!==ye&&!u&&(P=f.jsx(ye,A({component:"span"},R,{className:Z(T.label,R==null?void 0:R.className),children:P}))),f.jsxs(xL,A({className:Z(T.root,s),ownerState:S,ref:n},m,{children:[b.cloneElement(l,x),y?f.jsxs(mL,{display:"block",children:[P,f.jsxs(bL,{ownerState:S,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]}):P]}))});function wL({value:e,setValue:t,names:n,namesList:r,inSelectionData:o,dataProperty:i}){const[s,a]=b.useState(!1);return f.jsxs(f.Fragment,{children:[f.jsx(Zp,{openSnack:s,setOpenSnack:a,message:"At least one allocation source must be selected"}),f.jsx(Fk,{children:n.map((l,c)=>f.jsx(Wk,{disabled:!o[i].has(l),style:o[i].has(l)?{filter:"grayscale(0%)"}:{filter:"grayscale(100%)"},control:f.jsx(Kp,{checked:e.includes(l),onChange:()=>{if(e.length===1&&e.includes(l)){a(!0);return}e.includes(l)?t(u=>u.filter(d=>d!==l)):t(u=>[...u,l])}}),label:r[l]},c))})]})}function CL(e){return be("MuiButton",e)}const Uu=Ce("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),SL=b.createContext({}),AL=b.createContext(void 0),kL=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],RL=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${U(t)}`,`size${U(o)}`,`${i}Size${U(o)}`,`color${U(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${U(o)}`],endIcon:["icon","endIcon",`iconSize${U(o)}`]},l=we(a,CL,s);return A({},s,l)},Vk=e=>A({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),TL=V(Lo,{shouldForwardProp:e=>zn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${U(n.color)}`],t[`size${U(n.size)}`],t[`${n.variant}Size${U(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return A({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":A({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ye(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ye(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ye(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":A({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Uu.focusVisible}`]:A({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Uu.disabled}`]:A({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Ye(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Uu.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Uu.disabled}`]:{boxShadow:"none"}}),EL=V("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${U(n.size)}`]]}})(({ownerState:e})=>A({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Vk(e))),PL=V("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${U(n.size)}`]]}})(({ownerState:e})=>A({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Vk(e))),ps=b.forwardRef(function(t,n){const r=b.useContext(SL),o=b.useContext(AL),i=Rc(r,t),s=Se({props:i,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:v,focusVisibleClassName:m,fullWidth:C=!1,size:g="medium",startIcon:y,type:x,variant:w="text"}=s,S=H(s,kL),T=A({},s,{color:l,component:c,disabled:d,disableElevation:p,disableFocusRipple:h,fullWidth:C,size:g,type:x,variant:w}),R=RL(T),P=y&&f.jsx(EL,{className:R.startIcon,ownerState:T,children:y}),_=v&&f.jsx(PL,{className:R.endIcon,ownerState:T,children:v}),k=o||"";return f.jsxs(TL,A({ownerState:T,className:Z(r.className,R.root,u,k),component:c,disabled:d,focusRipple:!h,focusVisibleClassName:Z(R.focusVisible,m),ref:n,type:x},S,{classes:R,children:[P,a,_]}))});function IL(e){return be("MuiFormHelperText",e)}const Yb=Ce("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Xb;const _L=["children","className","component","disabled","error","filled","focused","margin","required","variant"],jL=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${U(r)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return we(c,IL,t)},ML=V("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${U(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>A({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Yb.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Yb.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),OL=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p"}=r,a=H(r,_L),l=Vo(),c=ji({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=A({},r,{component:s,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),d=jL(u);return f.jsx(ML,A({as:s,ownerState:u,className:Z(d.root,i),ref:n},a,{children:o===" "?Xb||(Xb=f.jsx("span",{className:"notranslate",children:"​"})):o}))});function $L(e){return be("MuiTextField",e)}Ce("MuiTextField",["root"]);const NL=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],LL={standard:fy,filled:py,outlined:Dp},DL=e=>{const{classes:t}=e;return we({root:["root"]},$L,t)},zL=V(kk,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),BL=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:p,fullWidth:h=!1,helperText:v,id:m,InputLabelProps:C,inputProps:g,InputProps:y,inputRef:x,label:w,maxRows:S,minRows:T,multiline:R=!1,name:P,onBlur:_,onChange:k,onFocus:E,placeholder:M,required:$=!1,rows:O,select:z=!1,SelectProps:L,type:D,value:j,variant:N="outlined"}=r,W=H(r,NL),se=A({},r,{autoFocus:i,color:l,disabled:u,error:d,fullWidth:h,multiline:R,required:$,select:z,variant:N}),ae=DL(se),Re={};N==="outlined"&&(C&&typeof C.shrink<"u"&&(Re.notched=C.shrink),Re.label=w),z&&((!L||!L.native)&&(Re.id=void 0),Re["aria-describedby"]=void 0);const Y=Ap(m),ce=v&&Y?`${Y}-helper-text`:void 0,G=w&&Y?`${Y}-label`:void 0,fe=LL[N],pe=f.jsx(fe,A({"aria-describedby":ce,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:h,multiline:R,name:P,rows:O,maxRows:S,minRows:T,type:D,value:j,id:Y,inputRef:x,onBlur:_,onChange:k,onFocus:E,placeholder:M,inputProps:g},Re,y));return f.jsxs(zL,A({className:Z(ae.root,a),disabled:u,error:d,fullWidth:h,ref:n,required:$,color:l,variant:N,ownerState:se},W,{children:[w!=null&&w!==""&&f.jsx(Ak,A({htmlFor:Y,id:G},C,{children:w})),z?f.jsx(my,A({"aria-describedby":ce,id:Y,labelId:G,value:j,input:pe},L,{children:s})):pe,v&&f.jsx(OL,A({id:ce},p,{children:v}))]}))});function Jb(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function FL(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:s=!1}=e;return(a,{inputValue:l,getOptionLabel:c})=>{let u=s?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=Jb(u));const d=u?a.filter(p=>{let h=(i||c)(p);return n&&(h=h.toLowerCase()),t&&(h=Jb(h)),o==="start"?h.indexOf(u)===0:h.indexOf(u)>-1}):a;return typeof r=="number"?d.slice(0,r):d}}function Hu(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function UL(e){const{unstable_isActiveElementInListbox:t=VL,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:s=!1,clearOnBlur:a=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?[]:null,disableClearable:d=!1,disableCloseOnSelect:p=!1,disabled:h,disabledItemsFocusable:v=!1,disableListWrap:m=!1,filterOptions:C=WL,filterSelectedOptions:g=!1,freeSolo:y=!1,getOptionDisabled:x,getOptionKey:w,getOptionLabel:S=F=>{var B;return(B=F.label)!=null?B:F},groupBy:T,handleHomeEndKeys:R=!e.freeSolo,id:P,includeInputInList:_=!1,inputValue:k,isOptionEqualToValue:E=(F,B)=>F===B,multiple:M=!1,onChange:$,onClose:O,onHighlightChange:z,onInputChange:L,onOpen:D,open:j,openOnFocus:N=!1,options:W,readOnly:se=!1,selectOnFocus:ae=!e.freeSolo,value:Re}=e,Y=Ap(P);let ce=S;ce=F=>{const B=S(F);return typeof B!="string"?String(B):B};const G=b.useRef(!1),fe=b.useRef(!0),pe=b.useRef(null),me=b.useRef(null),[Oe,ge]=b.useState(null),[Ae,Te]=b.useState(-1),Ee=o?0:-1,Ie=b.useRef(Ee),[le,at]=gi({controlled:Re,default:u,name:c}),[ue,Je]=gi({controlled:k,default:"",name:c,state:"inputValue"}),[Ge,Ne]=b.useState(!1),ht=b.useCallback((F,B)=>{if(!(M?le.length!(g&&(M?le:[le]).some(B=>B!==null&&E(F,B)))),{inputValue:yt&&mt?"":ue,getOptionLabel:ce}):[],dt=uj({filteredOptions:ee,value:le,inputValue:ue});b.useEffect(()=>{const F=le!==dt.value;Ge&&!F||y&&!F||ht(null,le)},[le,ht,Ge,dt.value,y]);const Yt=tt&&ee.length>0&&!se,wt=jn(F=>{F===-1?pe.current.focus():Oe.querySelector(`[data-tag-index="${F}"]`).focus()});b.useEffect(()=>{M&&Ae>le.length-1&&(Te(-1),wt(-1))},[le,M,Ae,wt]);function te(F,B){if(!me.current||F<0||F>=ee.length)return-1;let re=F;for(;;){const J=me.current.querySelector(`[data-option-index="${re}"]`),oe=v?!1:!J||J.disabled||J.getAttribute("aria-disabled")==="true";if(J&&J.hasAttribute("tabindex")&&!oe)return re;if(B==="next"?re=(re+1)%ee.length:re=(re-1+ee.length)%ee.length,re===F)return-1}}const De=jn(({event:F,index:B,reason:re="auto"})=>{if(Ie.current=B,B===-1?pe.current.removeAttribute("aria-activedescendant"):pe.current.setAttribute("aria-activedescendant",`${Y}-option-${B}`),z&&z(F,B===-1?null:ee[B],re),!me.current)return;const J=me.current.querySelector(`[role="option"].${n}-focused`);J&&(J.classList.remove(`${n}-focused`),J.classList.remove(`${n}-focusVisible`));let oe=me.current;if(me.current.getAttribute("role")!=="listbox"&&(oe=me.current.parentElement.querySelector('[role="listbox"]')),!oe)return;if(B===-1){oe.scrollTop=0;return}const Ue=me.current.querySelector(`[data-option-index="${B}"]`);if(Ue&&(Ue.classList.add(`${n}-focused`),re==="keyboard"&&Ue.classList.add(`${n}-focusVisible`),oe.scrollHeight>oe.clientHeight&&re!=="mouse"&&re!=="touch")){const st=Ue,qt=oe.clientHeight+oe.scrollTop,ws=st.offsetTop+st.offsetHeight;ws>qt?oe.scrollTop=ws-oe.clientHeight:st.offsetTop-st.offsetHeight*(T?1.3:0){if(!_e)return;const Ue=te((()=>{const st=ee.length-1;if(B==="reset")return Ee;if(B==="start")return 0;if(B==="end")return st;const qt=Ie.current+B;return qt<0?qt===-1&&_?-1:m&&Ie.current!==-1||Math.abs(B)>1?0:st:qt>st?qt===st+1&&_?-1:m||Math.abs(B)>1?st:0:qt})(),re);if(De({index:Ue,reason:J,event:F}),r&&B!=="reset")if(Ue===-1)pe.current.value=ue;else{const st=ce(ee[Ue]);pe.current.value=st,st.toLowerCase().indexOf(ue.toLowerCase())===0&&ue.length>0&&pe.current.setSelectionRange(ue.length,st.length)}}),Dt=()=>{const F=(B,re)=>{const J=B?ce(B):"",oe=re?ce(re):"";return J===oe};if(Ie.current!==-1&&dt.filteredOptions&&dt.filteredOptions.length!==ee.length&&dt.inputValue===ue&&(M?le.length===dt.value.length&&dt.value.every((B,re)=>ce(le[re])===ce(B)):F(dt.value,le))){const B=dt.filteredOptions[Ie.current];if(B)return Hu(ee,re=>ce(re)===ce(B))}return-1},An=b.useCallback(()=>{if(!_e)return;const F=Dt();if(F!==-1){Ie.current=F;return}const B=M?le[0]:le;if(ee.length===0||B==null){qe({diff:"reset"});return}if(me.current){if(B!=null){const re=ee[Ie.current];if(M&&re&&Hu(le,oe=>E(re,oe))!==-1)return;const J=Hu(ee,oe=>E(oe,B));J===-1?qe({diff:"reset"}):De({index:J});return}if(Ie.current>=ee.length-1){De({index:ee.length-1});return}De({index:Ie.current})}},[ee.length,M?!1:le,g,qe,De,_e,ue,M]),Gr=jn(F=>{Tc(me,F),F&&An()});b.useEffect(()=>{An()},[An]);const Ft=F=>{tt||(ze(!0),It(!0),D&&D(F))},sn=(F,B)=>{tt&&(ze(!1),O&&O(F,B))},an=(F,B,re,J)=>{if(M){if(le.length===B.length&&le.every((oe,Ue)=>oe===B[Ue]))return}else if(le===B)return;$&&$(F,B,re,J),at(B)},kr=b.useRef(!1),gt=(F,B,re="selectOption",J="options")=>{let oe=re,Ue=B;if(M){Ue=Array.isArray(le)?le.slice():[];const st=Hu(Ue,qt=>E(B,qt));st===-1?Ue.push(B):J!=="freeSolo"&&(Ue.splice(st,1),oe="removeOption")}ht(F,Ue),an(F,Ue,oe,{option:B}),!p&&(!F||!F.ctrlKey&&!F.metaKey)&&sn(F,oe),(s===!0||s==="touch"&&kr.current||s==="mouse"&&!kr.current)&&pe.current.blur()};function Xt(F,B){if(F===-1)return-1;let re=F;for(;;){if(B==="next"&&re===le.length||B==="previous"&&re===-1)return-1;const J=Oe.querySelector(`[data-tag-index="${re}"]`);if(!J||!J.hasAttribute("tabindex")||J.disabled||J.getAttribute("aria-disabled")==="true")re+=B==="next"?1:-1;else return re}}const Pe=(F,B)=>{if(!M)return;ue===""&&sn(F,"toggleInput");let re=Ae;Ae===-1?ue===""&&B==="previous"&&(re=le.length-1):(re+=B==="next"?1:-1,re<0&&(re=0),re===le.length&&(re=-1)),re=Xt(re,B),Te(re),wt(re)},Ve=F=>{G.current=!0,Je(""),L&&L(F,"","clear"),an(F,M?[]:null,"clear")},Jt=F=>B=>{if(F.onKeyDown&&F.onKeyDown(B),!B.defaultMuiPrevented&&(Ae!==-1&&["ArrowLeft","ArrowRight"].indexOf(B.key)===-1&&(Te(-1),wt(-1)),B.which!==229))switch(B.key){case"Home":_e&&R&&(B.preventDefault(),qe({diff:"start",direction:"next",reason:"keyboard",event:B}));break;case"End":_e&&R&&(B.preventDefault(),qe({diff:"end",direction:"previous",reason:"keyboard",event:B}));break;case"PageUp":B.preventDefault(),qe({diff:-ew,direction:"previous",reason:"keyboard",event:B}),Ft(B);break;case"PageDown":B.preventDefault(),qe({diff:ew,direction:"next",reason:"keyboard",event:B}),Ft(B);break;case"ArrowDown":B.preventDefault(),qe({diff:1,direction:"next",reason:"keyboard",event:B}),Ft(B);break;case"ArrowUp":B.preventDefault(),qe({diff:-1,direction:"previous",reason:"keyboard",event:B}),Ft(B);break;case"ArrowLeft":Pe(B,"previous");break;case"ArrowRight":Pe(B,"next");break;case"Enter":if(Ie.current!==-1&&_e){const re=ee[Ie.current],J=x?x(re):!1;if(B.preventDefault(),J)return;gt(B,re,"selectOption"),r&&pe.current.setSelectionRange(pe.current.value.length,pe.current.value.length)}else y&&ue!==""&&yt===!1&&(M&&B.preventDefault(),gt(B,ue,"createOption","freeSolo"));break;case"Escape":_e?(B.preventDefault(),B.stopPropagation(),sn(B,"escape")):l&&(ue!==""||M&&le.length>0)&&(B.preventDefault(),B.stopPropagation(),Ve(B));break;case"Backspace":if(M&&!se&&ue===""&&le.length>0){const re=Ae===-1?le.length-1:Ae,J=le.slice();J.splice(re,1),an(B,J,"removeOption",{option:le[re]})}break;case"Delete":if(M&&!se&&ue===""&&le.length>0&&Ae!==-1){const re=Ae,J=le.slice();J.splice(re,1),an(B,J,"removeOption",{option:le[re]})}break}},qr=F=>{Ne(!0),N&&!G.current&&Ft(F)},ne=F=>{if(t(me)){pe.current.focus();return}Ne(!1),fe.current=!0,G.current=!1,i&&Ie.current!==-1&&_e?gt(F,ee[Ie.current],"blur"):i&&y&&ue!==""?gt(F,ue,"blur","freeSolo"):a&&ht(F,le),sn(F,"blur")},ve=F=>{const B=F.target.value;ue!==B&&(Je(B),It(!1),L&&L(F,B,"input")),B===""?!d&&!M&&an(F,null,"clear"):Ft(F)},xe=F=>{const B=Number(F.currentTarget.getAttribute("data-option-index"));Ie.current!==B&&De({event:F,index:B,reason:"mouse"})},ot=F=>{De({event:F,index:Number(F.currentTarget.getAttribute("data-option-index")),reason:"touch"}),kr.current=!0},Wt=F=>{const B=Number(F.currentTarget.getAttribute("data-option-index"));gt(F,ee[B],"selectOption"),kr.current=!1},kn=F=>B=>{const re=le.slice();re.splice(F,1),an(B,re,"removeOption",{option:le[F]})},Rn=F=>{tt?sn(F,"toggleInput"):Ft(F)},Vt=F=>{F.currentTarget.contains(F.target)&&F.target.getAttribute("id")!==Y&&F.preventDefault()},en=F=>{F.currentTarget.contains(F.target)&&(pe.current.focus(),ae&&fe.current&&pe.current.selectionEnd-pe.current.selectionStart===0&&pe.current.select(),fe.current=!1)},it=F=>{!h&&(ue===""||!tt)&&Rn(F)};let Fn=y&&ue.length>0;Fn=Fn||(M?le.length>0:le!==null);let Go=ee;return T&&(Go=ee.reduce((F,B,re)=>{const J=T(B);return F.length>0&&F[F.length-1].group===J?F[F.length-1].options.push(B):F.push({key:re,index:re,group:J,options:[B]}),F},[])),h&&Ge&&ne(),{getRootProps:(F={})=>A({"aria-owns":Yt?`${Y}-listbox`:null},F,{onKeyDown:Jt(F),onMouseDown:Vt,onClick:en}),getInputLabelProps:()=>({id:`${Y}-label`,htmlFor:Y}),getInputProps:()=>({id:Y,value:ue,onBlur:ne,onFocus:qr,onChange:ve,onMouseDown:it,"aria-activedescendant":_e?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Yt?`${Y}-listbox`:void 0,"aria-expanded":Yt,autoComplete:"off",ref:pe,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Ve}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Rn}),getTagProps:({index:F})=>A({key:F,"data-tag-index":F,tabIndex:-1},!se&&{onDelete:kn(F)}),getListboxProps:()=>({role:"listbox",id:`${Y}-listbox`,"aria-labelledby":`${Y}-label`,ref:Gr,onMouseDown:F=>{F.preventDefault()}}),getOptionProps:({index:F,option:B})=>{var re;const J=(M?le:[le]).some(Ue=>Ue!=null&&E(B,Ue)),oe=x?x(B):!1;return{key:(re=w==null?void 0:w(B))!=null?re:ce(B),tabIndex:-1,role:"option",id:`${Y}-option-${F}`,onMouseMove:xe,onClick:Wt,onTouchStart:ot,"data-option-index":F,"aria-disabled":oe,"aria-selected":J}},id:Y,inputValue:ue,value:le,dirty:Fn,expanded:_e&&Oe,popupOpen:_e,focused:Ge||Ae!==-1,anchorEl:Oe,setAnchorEl:ge,focusedTag:Ae,groupedOptions:Go}}var vy={};Object.defineProperty(vy,"__esModule",{value:!0});var Uk=vy.default=void 0,HL=qL(b),GL=KA;function Hk(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Hk=function(r){return r?n:t})(e)}function qL(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Hk(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function QL(e){return Object.keys(e).length===0}function KL(e=null){const t=HL.useContext(GL.ThemeContext);return!t||QL(t)?e:t}Uk=vy.default=KL;var Nn="top",xr="bottom",br="right",Ln="left",yy="auto",cu=[Nn,xr,br,Ln],Ra="start",Mc="end",ZL="clippingParents",Gk="viewport",il="popper",YL="reference",tw=cu.reduce(function(e,t){return e.concat([t+"-"+Ra,t+"-"+Mc])},[]),qk=[].concat(cu,[yy]).reduce(function(e,t){return e.concat([t,t+"-"+Ra,t+"-"+Mc])},[]),XL="beforeRead",JL="read",e7="afterRead",t7="beforeMain",n7="main",r7="afterMain",o7="beforeWrite",i7="write",s7="afterWrite",a7=[XL,JL,e7,t7,n7,r7,o7,i7,s7];function yo(e){return e?(e.nodeName||"").toLowerCase():null}function Jn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function hs(e){var t=Jn(e).Element;return e instanceof t||e instanceof Element}function hr(e){var t=Jn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function xy(e){if(typeof ShadowRoot>"u")return!1;var t=Jn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function l7(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!hr(i)||!yo(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function c7(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!hr(o)||!yo(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const u7={name:"applyStyles",enabled:!0,phase:"write",fn:l7,effect:c7,requires:["computeStyles"]};function uo(e){return e.split("-")[0]}var ts=Math.max,wf=Math.min,Ta=Math.round;function s0(){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 Qk(){return!/^((?!chrome|android).)*safari/i.test(s0())}function Ea(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&hr(e)&&(o=e.offsetWidth>0&&Ta(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ta(r.height)/e.offsetHeight||1);var s=hs(e)?Jn(e):window,a=s.visualViewport,l=!Qk()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/i,d=r.width/o,p=r.height/i;return{width:d,height:p,top:u,right:c+d,bottom:u+p,left:c,x:c,y:u}}function by(e){var t=Ea(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Kk(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&xy(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Do(e){return Jn(e).getComputedStyle(e)}function d7(e){return["table","td","th"].indexOf(yo(e))>=0}function Mi(e){return((hs(e)?e.ownerDocument:e.document)||window.document).documentElement}function Yp(e){return yo(e)==="html"?e:e.assignedSlot||e.parentNode||(xy(e)?e.host:null)||Mi(e)}function nw(e){return!hr(e)||Do(e).position==="fixed"?null:e.offsetParent}function f7(e){var t=/firefox/i.test(s0()),n=/Trident/i.test(s0());if(n&&hr(e)){var r=Do(e);if(r.position==="fixed")return null}var o=Yp(e);for(xy(o)&&(o=o.host);hr(o)&&["html","body"].indexOf(yo(o))<0;){var i=Do(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function uu(e){for(var t=Jn(e),n=nw(e);n&&d7(n)&&Do(n).position==="static";)n=nw(n);return n&&(yo(n)==="html"||yo(n)==="body"&&Do(n).position==="static")?t:n||f7(e)||t}function wy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ll(e,t,n){return ts(e,wf(t,n))}function p7(e,t,n){var r=Ll(e,t,n);return r>n?n:r}function Zk(){return{top:0,right:0,bottom:0,left:0}}function Yk(e){return Object.assign({},Zk(),e)}function Xk(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var h7=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Yk(typeof t!="number"?t:Xk(t,cu))};function m7(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=uo(n.placement),l=wy(a),c=[Ln,br].indexOf(a)>=0,u=c?"height":"width";if(!(!i||!s)){var d=h7(o.padding,n),p=by(i),h=l==="y"?Nn:Ln,v=l==="y"?xr:br,m=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],C=s[l]-n.rects.reference[l],g=uu(i),y=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,x=m/2-C/2,w=d[h],S=y-p[u]-d[v],T=y/2-p[u]/2+x,R=Ll(w,T,S),P=l;n.modifiersData[r]=(t={},t[P]=R,t.centerOffset=R-T,t)}}function g7(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Kk(t.elements.popper,o)&&(t.elements.arrow=o))}const v7={name:"arrow",enabled:!0,phase:"main",fn:m7,effect:g7,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Pa(e){return e.split("-")[1]}var y7={top:"auto",right:"auto",bottom:"auto",left:"auto"};function x7(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ta(n*o)/o||0,y:Ta(r*o)/o||0}}function rw(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=s.x,h=p===void 0?0:p,v=s.y,m=v===void 0?0:v,C=typeof u=="function"?u({x:h,y:m}):{x:h,y:m};h=C.x,m=C.y;var g=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),x=Ln,w=Nn,S=window;if(c){var T=uu(n),R="clientHeight",P="clientWidth";if(T===Jn(n)&&(T=Mi(n),Do(T).position!=="static"&&a==="absolute"&&(R="scrollHeight",P="scrollWidth")),T=T,o===Nn||(o===Ln||o===br)&&i===Mc){w=xr;var _=d&&T===S&&S.visualViewport?S.visualViewport.height:T[R];m-=_-r.height,m*=l?1:-1}if(o===Ln||(o===Nn||o===xr)&&i===Mc){x=br;var k=d&&T===S&&S.visualViewport?S.visualViewport.width:T[P];h-=k-r.width,h*=l?1:-1}}var E=Object.assign({position:a},c&&y7),M=u===!0?x7({x:h,y:m},Jn(n)):{x:h,y:m};if(h=M.x,m=M.y,l){var $;return Object.assign({},E,($={},$[w]=y?"0":"",$[x]=g?"0":"",$.transform=(S.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",$))}return Object.assign({},E,(t={},t[w]=y?m+"px":"",t[x]=g?h+"px":"",t.transform="",t))}function b7(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:uo(t.placement),variation:Pa(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,rw(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,rw(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const w7={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:b7,data:{}};var Gu={passive:!0};function C7(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=Jn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,Gu)}),a&&l.addEventListener("resize",n.update,Gu),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Gu)}),a&&l.removeEventListener("resize",n.update,Gu)}}const S7={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:C7,data:{}};var A7={left:"right",right:"left",bottom:"top",top:"bottom"};function Cd(e){return e.replace(/left|right|bottom|top/g,function(t){return A7[t]})}var k7={start:"end",end:"start"};function ow(e){return e.replace(/start|end/g,function(t){return k7[t]})}function Cy(e){var t=Jn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Sy(e){return Ea(Mi(e)).left+Cy(e).scrollLeft}function R7(e,t){var n=Jn(e),r=Mi(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=Qk();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+Sy(e),y:l}}function T7(e){var t,n=Mi(e),r=Cy(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ts(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=ts(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Sy(e),l=-r.scrollTop;return Do(o||n).direction==="rtl"&&(a+=ts(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function Ay(e){var t=Do(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Jk(e){return["html","body","#document"].indexOf(yo(e))>=0?e.ownerDocument.body:hr(e)&&Ay(e)?e:Jk(Yp(e))}function Dl(e,t){var n;t===void 0&&(t=[]);var r=Jk(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Jn(r),s=o?[i].concat(i.visualViewport||[],Ay(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(Dl(Yp(s)))}function a0(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function E7(e,t){var n=Ea(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function iw(e,t,n){return t===Gk?a0(R7(e,n)):hs(t)?E7(t,n):a0(T7(Mi(e)))}function P7(e){var t=Dl(Yp(e)),n=["absolute","fixed"].indexOf(Do(e).position)>=0,r=n&&hr(e)?uu(e):e;return hs(r)?t.filter(function(o){return hs(o)&&Kk(o,r)&&yo(o)!=="body"}):[]}function I7(e,t,n,r){var o=t==="clippingParents"?P7(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,c){var u=iw(e,c,r);return l.top=ts(u.top,l.top),l.right=wf(u.right,l.right),l.bottom=wf(u.bottom,l.bottom),l.left=ts(u.left,l.left),l},iw(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function eR(e){var t=e.reference,n=e.element,r=e.placement,o=r?uo(r):null,i=r?Pa(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case Nn:l={x:s,y:t.y-n.height};break;case xr:l={x:s,y:t.y+t.height};break;case br:l={x:t.x+t.width,y:a};break;case Ln:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?wy(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Ra:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Mc:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Oc(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?ZL:a,c=n.rootBoundary,u=c===void 0?Gk:c,d=n.elementContext,p=d===void 0?il:d,h=n.altBoundary,v=h===void 0?!1:h,m=n.padding,C=m===void 0?0:m,g=Yk(typeof C!="number"?C:Xk(C,cu)),y=p===il?YL:il,x=e.rects.popper,w=e.elements[v?y:p],S=I7(hs(w)?w:w.contextElement||Mi(e.elements.popper),l,u,s),T=Ea(e.elements.reference),R=eR({reference:T,element:x,strategy:"absolute",placement:o}),P=a0(Object.assign({},x,R)),_=p===il?P:T,k={top:S.top-_.top+g.top,bottom:_.bottom-S.bottom+g.bottom,left:S.left-_.left+g.left,right:_.right-S.right+g.right},E=e.modifiersData.offset;if(p===il&&E){var M=E[o];Object.keys(k).forEach(function($){var O=[br,xr].indexOf($)>=0?1:-1,z=[Nn,xr].indexOf($)>=0?"y":"x";k[$]+=M[z]*O})}return k}function _7(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?qk:l,u=Pa(r),d=u?a?tw:tw.filter(function(v){return Pa(v)===u}):cu,p=d.filter(function(v){return c.indexOf(v)>=0});p.length===0&&(p=d);var h=p.reduce(function(v,m){return v[m]=Oc(e,{placement:m,boundary:o,rootBoundary:i,padding:s})[uo(m)],v},{});return Object.keys(h).sort(function(v,m){return h[v]-h[m]})}function j7(e){if(uo(e)===yy)return[];var t=Cd(e);return[ow(e),t,ow(t)]}function M7(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,v=h===void 0?!0:h,m=n.allowedAutoPlacements,C=t.options.placement,g=uo(C),y=g===C,x=l||(y||!v?[Cd(C)]:j7(C)),w=[C].concat(x).reduce(function(Y,ce){return Y.concat(uo(ce)===yy?_7(t,{placement:ce,boundary:u,rootBoundary:d,padding:c,flipVariations:v,allowedAutoPlacements:m}):ce)},[]),S=t.rects.reference,T=t.rects.popper,R=new Map,P=!0,_=w[0],k=0;k=0,z=O?"width":"height",L=Oc(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),D=O?$?br:Ln:$?xr:Nn;S[z]>T[z]&&(D=Cd(D));var j=Cd(D),N=[];if(i&&N.push(L[M]<=0),a&&N.push(L[D]<=0,L[j]<=0),N.every(function(Y){return Y})){_=E,P=!1;break}R.set(E,N)}if(P)for(var W=v?3:1,se=function(ce){var G=w.find(function(fe){var pe=R.get(fe);if(pe)return pe.slice(0,ce).every(function(me){return me})});if(G)return _=G,"break"},ae=W;ae>0;ae--){var Re=se(ae);if(Re==="break")break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}}const O7={name:"flip",enabled:!0,phase:"main",fn:M7,requiresIfExists:["offset"],data:{_skip:!1}};function sw(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function aw(e){return[Nn,br,xr,Ln].some(function(t){return e[t]>=0})}function $7(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Oc(t,{elementContext:"reference"}),a=Oc(t,{altBoundary:!0}),l=sw(s,r),c=sw(a,o,i),u=aw(l),d=aw(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const N7={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:$7};function L7(e,t,n){var r=uo(e),o=[Ln,Nn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Ln,br].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function D7(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=qk.reduce(function(u,d){return u[d]=L7(d,t.rects,i),u},{}),a=s[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const z7={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:D7};function B7(e){var t=e.state,n=e.name;t.modifiersData[n]=eR({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const F7={name:"popperOffsets",enabled:!0,phase:"read",fn:B7,data:{}};function W7(e){return e==="x"?"y":"x"}function V7(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,h=p===void 0?!0:p,v=n.tetherOffset,m=v===void 0?0:v,C=Oc(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=uo(t.placement),y=Pa(t.placement),x=!y,w=wy(g),S=W7(w),T=t.modifiersData.popperOffsets,R=t.rects.reference,P=t.rects.popper,_=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,k=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(T){if(i){var $,O=w==="y"?Nn:Ln,z=w==="y"?xr:br,L=w==="y"?"height":"width",D=T[w],j=D+C[O],N=D-C[z],W=h?-P[L]/2:0,se=y===Ra?R[L]:P[L],ae=y===Ra?-P[L]:-R[L],Re=t.elements.arrow,Y=h&&Re?by(Re):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Zk(),G=ce[O],fe=ce[z],pe=Ll(0,R[L],Y[L]),me=x?R[L]/2-W-pe-G-k.mainAxis:se-pe-G-k.mainAxis,Oe=x?-R[L]/2+W+pe+fe+k.mainAxis:ae+pe+fe+k.mainAxis,ge=t.elements.arrow&&uu(t.elements.arrow),Ae=ge?w==="y"?ge.clientTop||0:ge.clientLeft||0:0,Te=($=E==null?void 0:E[w])!=null?$:0,Ee=D+me-Te-Ae,Ie=D+Oe-Te,le=Ll(h?wf(j,Ee):j,D,h?ts(N,Ie):N);T[w]=le,M[w]=le-D}if(a){var at,ue=w==="x"?Nn:Ln,Je=w==="x"?xr:br,Ge=T[S],Ne=S==="y"?"height":"width",ht=Ge+C[ue],tt=Ge-C[Je],ze=[Nn,Ln].indexOf(g)!==-1,mt=(at=E==null?void 0:E[S])!=null?at:0,It=ze?ht:Ge-R[Ne]-P[Ne]-mt+k.altAxis,yt=ze?Ge+R[Ne]+P[Ne]-mt-k.altAxis:tt,_e=h&&ze?p7(It,Ge,yt):Ll(h?It:ht,Ge,h?yt:tt);T[S]=_e,M[S]=_e-Ge}t.modifiersData[r]=M}}const U7={name:"preventOverflow",enabled:!0,phase:"main",fn:V7,requiresIfExists:["offset"]};function H7(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function G7(e){return e===Jn(e)||!hr(e)?Cy(e):H7(e)}function q7(e){var t=e.getBoundingClientRect(),n=Ta(t.width)/e.offsetWidth||1,r=Ta(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Q7(e,t,n){n===void 0&&(n=!1);var r=hr(t),o=hr(t)&&q7(t),i=Mi(t),s=Ea(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((yo(t)!=="body"||Ay(i))&&(a=G7(t)),hr(t)?(l=Ea(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Sy(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function K7(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Z7(e){var t=K7(e);return a7.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Y7(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function X7(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var lw={placement:"bottom",modifiers:[],strategy:"absolute"};function cw(){for(var e=arguments.length,t=new Array(e),n=0;n{const{classes:t}=e;return we({root:["root"]},nD,t)},lD={},cD=b.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:s,disablePortal:a,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:p,slotProps:h={},slots:v={},TransitionProps:m}=t,C=H(t,rD),g=b.useRef(null),y=Pt(g,n),x=b.useRef(null),w=Pt(x,p),S=b.useRef(w);Wr(()=>{S.current=w},[w]),b.useImperativeHandle(p,()=>x.current,[]);const T=iD(u,s),[R,P]=b.useState(T),[_,k]=b.useState(l0(o));b.useEffect(()=>{x.current&&x.current.forceUpdate()}),b.useEffect(()=>{o&&k(l0(o))},[o]),Wr(()=>{if(!_||!c)return;const z=j=>{P(j.placement)};let L=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:j})=>{z(j)}}];l!=null&&(L=L.concat(l)),d&&d.modifiers!=null&&(L=L.concat(d.modifiers));const D=tD(_,g.current,A({placement:T},d,{modifiers:L}));return S.current(D),()=>{D.destroy(),S.current(null)}},[_,a,l,c,d,T]);const E={placement:R};m!==null&&(E.TransitionProps=m);const M=aD(t),$=(r=v.root)!=null?r:"div",O=Ri({elementType:$,externalSlotProps:h.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:M.root});return f.jsx($,A({},O,{children:typeof i=="function"?i(E):i}))}),uD=b.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:p=lD,popperRef:h,style:v,transition:m=!1,slotProps:C={},slots:g={}}=t,y=H(t,oD),[x,w]=b.useState(!0),S=()=>{w(!1)},T=()=>{w(!0)};if(!l&&!u&&(!m||x))return null;let R;if(i)R=i;else if(r){const k=l0(r);R=k&&sD(k)?Gt(k).body:Gt(null).body}const P=!u&&l&&(!m||x)?"none":void 0,_=m?{in:u,onEnter:S,onExited:T}:void 0;return f.jsx(uy,{disablePortal:a,container:R,children:f.jsx(cD,A({anchorEl:r,direction:s,disablePortal:a,modifiers:c,ref:n,open:m?!x:u,placement:d,popperOptions:p,popperRef:h,slotProps:C,slots:g},y,{style:A({position:"fixed",top:0,left:0,display:P},v),TransitionProps:_,children:o}))})}),dD=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],fD=V(uD,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tR=b.forwardRef(function(t,n){var r;const o=Uk(),i=Se({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:p,modifiers:h,open:v,placement:m,popperOptions:C,popperRef:g,transition:y,slots:x,slotProps:w}=i,S=H(i,dD),T=(r=x==null?void 0:x.root)!=null?r:l==null?void 0:l.Root,R=A({anchorEl:s,container:u,disablePortal:d,keepMounted:p,modifiers:h,open:v,placement:m,popperOptions:C,popperRef:g,transition:y},S);return f.jsx(fD,A({as:a,direction:o==null?void 0:o.direction,slots:{root:T},slotProps:w??c},R,{ref:n}))});function pD(e){return be("MuiListSubheader",e)}Ce("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const hD=["className","color","component","disableGutters","disableSticky","inset"],mD=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,s={root:["root",n!=="default"&&`color${U(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return we(s,pD,t)},gD=V("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${U(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>A({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),nR=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:s="li",disableGutters:a=!1,disableSticky:l=!1,inset:c=!1}=r,u=H(r,hD),d=A({},r,{color:i,component:s,disableGutters:a,disableSticky:l,inset:c}),p=mD(d);return f.jsx(gD,A({as:s,className:Z(p.root,o),ref:n,ownerState:d},u))});nR.muiSkipListHighlight=!0;const vD=Bn(f.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function yD(e){return be("MuiChip",e)}const et=Ce("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),xD=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],bD=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:s,clickable:a,variant:l}=e,c={root:["root",l,n&&"disabled",`size${U(r)}`,`color${U(o)}`,a&&"clickable",a&&`clickableColor${U(o)}`,s&&"deletable",s&&`deletableColor${U(o)}`,`${l}${U(o)}`],label:["label",`label${U(r)}`],avatar:["avatar",`avatar${U(r)}`,`avatarColor${U(o)}`],icon:["icon",`icon${U(r)}`,`iconColor${U(i)}`],deleteIcon:["deleteIcon",`deleteIcon${U(r)}`,`deleteIconColor${U(o)}`,`deleteIcon${U(l)}Color${U(o)}`]};return we(c,yD,t)},wD=V("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:s,size:a,variant:l}=n;return[{[`& .${et.avatar}`]:t.avatar},{[`& .${et.avatar}`]:t[`avatar${U(a)}`]},{[`& .${et.avatar}`]:t[`avatarColor${U(r)}`]},{[`& .${et.icon}`]:t.icon},{[`& .${et.icon}`]:t[`icon${U(a)}`]},{[`& .${et.icon}`]:t[`iconColor${U(o)}`]},{[`& .${et.deleteIcon}`]:t.deleteIcon},{[`& .${et.deleteIcon}`]:t[`deleteIcon${U(a)}`]},{[`& .${et.deleteIcon}`]:t[`deleteIconColor${U(r)}`]},{[`& .${et.deleteIcon}`]:t[`deleteIcon${U(l)}Color${U(r)}`]},t.root,t[`size${U(a)}`],t[`color${U(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${U(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${U(r)}`],t[l],t[`${l}${U(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return A({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${et.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${et.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${et.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${et.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${et.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${et.icon}`]:A({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&A({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${et.deleteIcon}`]:A({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Ye(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Ye(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Ye(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ye(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${et.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>A({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ye(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ye(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${et.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>A({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${et.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${et.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${et.avatar}`]:{marginLeft:4},[`& .${et.avatarSmall}`]:{marginLeft:2},[`& .${et.icon}`]:{marginLeft:4},[`& .${et.iconSmall}`]:{marginLeft:2},[`& .${et.deleteIcon}`]:{marginRight:5},[`& .${et.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ye(e.palette[t.color].main,.7)}`,[`&.${et.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ye(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ye(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${et.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ye(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),CD=V("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${U(r)}`]]}})(({ownerState:e})=>A({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function uw(e){return e.key==="Backspace"||e.key==="Delete"}const SD=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:s,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:p,onClick:h,onDelete:v,onKeyDown:m,onKeyUp:C,size:g="medium",variant:y="filled",tabIndex:x,skipFocusWhenDisabled:w=!1}=r,S=H(r,xD),T=b.useRef(null),R=Pt(T,n),P=N=>{N.stopPropagation(),v&&v(N)},_=N=>{N.currentTarget===N.target&&uw(N)&&N.preventDefault(),m&&m(N)},k=N=>{N.currentTarget===N.target&&(v&&uw(N)?v(N):N.key==="Escape"&&T.current&&T.current.blur()),C&&C(N)},E=s!==!1&&h?!0:s,M=E||v?Lo:l||"div",$=A({},r,{component:M,disabled:u,size:g,color:a,iconColor:b.isValidElement(d)&&d.props.color||a,onDelete:!!v,clickable:E,variant:y}),O=bD($),z=M===Lo?A({component:l||"div",focusVisibleClassName:O.focusVisible},v&&{disableRipple:!0}):{};let L=null;v&&(L=c&&b.isValidElement(c)?b.cloneElement(c,{className:Z(c.props.className,O.deleteIcon),onClick:P}):f.jsx(vD,{className:Z(O.deleteIcon),onClick:P}));let D=null;o&&b.isValidElement(o)&&(D=b.cloneElement(o,{className:Z(O.avatar,o.props.className)}));let j=null;return d&&b.isValidElement(d)&&(j=b.cloneElement(d,{className:Z(O.icon,d.props.className)})),f.jsxs(wD,A({as:M,className:Z(O.root,i),disabled:E&&u?!0:void 0,onClick:h,onKeyDown:_,onKeyUp:k,ref:R,tabIndex:w&&u?-1:x,ownerState:$},z,S,{children:[D||j,f.jsx(CD,{className:Z(O.label),ownerState:$,children:p}),L]}))});function AD(e){return be("MuiAutocomplete",e)}const Be=Ce("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var dw,fw;const kD=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],RD=["ref"],TD=["key"],ED=["key"],PD=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:s,hasPopupIcon:a,inputFocused:l,popupOpen:c,size:u}=e,d={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",s&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${U(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return we(d,AD,t)},ID=V("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:s,size:a}=n;return[{[`& .${Be.tag}`]:t.tag},{[`& .${Be.tag}`]:t[`tagSize${U(a)}`]},{[`& .${Be.inputRoot}`]:t.inputRoot},{[`& .${Be.input}`]:t.input},{[`& .${Be.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Be.focused} .${Be.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Be.clearIndicator}`]:{visibility:"visible"}},[`& .${Be.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Be.inputRoot}`]:{[`.${Be.hasPopupIcon}&, .${Be.hasClearIcon}&`]:{paddingRight:30},[`.${Be.hasPopupIcon}.${Be.hasClearIcon}&`]:{paddingRight:56},[`& .${Be.input}`]:{width:0,minWidth:30}},[`& .${ni.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${ni.root}.${Vn.sizeSmall}`]:{[`& .${ni.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Jr.root}`]:{padding:9,[`.${Be.hasPopupIcon}&, .${Be.hasClearIcon}&`]:{paddingRight:39},[`.${Be.hasPopupIcon}.${Be.hasClearIcon}&`]:{paddingRight:65},[`& .${Be.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Be.endAdornment}`]:{right:9}},[`& .${Jr.root}.${Vn.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Be.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Un.root}`]:{paddingTop:19,paddingLeft:8,[`.${Be.hasPopupIcon}&, .${Be.hasClearIcon}&`]:{paddingRight:39},[`.${Be.hasPopupIcon}.${Be.hasClearIcon}&`]:{paddingRight:65},[`& .${Un.input}`]:{padding:"7px 4px"},[`& .${Be.endAdornment}`]:{right:9}},[`& .${Un.root}.${Vn.sizeSmall}`]:{paddingBottom:1,[`& .${Un.input}`]:{padding:"2.5px 4px"}},[`& .${Vn.hiddenLabel}`]:{paddingTop:8},[`& .${Un.root}.${Vn.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Be.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Un.root}.${Vn.hiddenLabel}.${Vn.sizeSmall}`]:{[`& .${Be.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Be.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Be.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Be.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Be.inputRoot}`]:{flexWrap:"wrap"}}}]}),_D=V("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),jD=V(Kv,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),MD=V(Kv,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>A({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),OD=V(tR,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Be.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),$D=V(Sr,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>A({},e.typography.body1,{overflow:"auto"})),ND=V("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),LD=V("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),DD=V("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Be.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Be.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Be.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ye(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Be.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ye(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Be.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ye(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),zD=V(nR,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),BD=V("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Be.option}`]:{paddingLeft:24}}),FD=b.forwardRef(function(t,n){var r,o,i,s;const a=Se({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:c=!1,autoSelect:u=!1,blurOnSelect:d=!1,ChipProps:p,className:h,clearIcon:v=dw||(dw=f.jsx(ak,{fontSize:"small"})),clearOnBlur:m=!a.freeSolo,clearOnEscape:C=!1,clearText:g="Clear",closeText:y="Close",componentsProps:x={},defaultValue:w=a.multiple?[]:null,disableClearable:S=!1,disableCloseOnSelect:T=!1,disabled:R=!1,disabledItemsFocusable:P=!1,disableListWrap:_=!1,disablePortal:k=!1,filterSelectedOptions:E=!1,forcePopupIcon:M="auto",freeSolo:$=!1,fullWidth:O=!1,getLimitTagsText:z=J=>`+${J}`,getOptionLabel:L,groupBy:D,handleHomeEndKeys:j=!a.freeSolo,includeInputInList:N=!1,limitTags:W=-1,ListboxComponent:se="ul",ListboxProps:ae,loading:Re=!1,loadingText:Y="Loading…",multiple:ce=!1,noOptionsText:G="No options",openOnFocus:fe=!1,openText:pe="Open",PaperComponent:me=Sr,PopperComponent:Oe=tR,popupIcon:ge=fw||(fw=f.jsx(Mk,{})),readOnly:Ae=!1,renderGroup:Te,renderInput:Ee,renderOption:Ie,renderTags:le,selectOnFocus:at=!a.freeSolo,size:ue="medium",slotProps:Je={}}=a,Ge=H(a,kD),{getRootProps:Ne,getInputProps:ht,getInputLabelProps:tt,getPopupIndicatorProps:ze,getClearProps:mt,getTagProps:It,getListboxProps:yt,getOptionProps:_e,value:ee,dirty:dt,expanded:Yt,id:wt,popupOpen:te,focused:De,focusedTag:qe,anchorEl:Dt,setAnchorEl:An,inputValue:Gr,groupedOptions:Ft}=UL(A({},a,{componentName:"Autocomplete"})),sn=!S&&!R&&dt&&!Ae,an=(!$||M===!0)&&M!==!1,{onMouseDown:kr}=ht(),{ref:gt}=ae??{},Xt=yt(),{ref:Pe}=Xt,Ve=H(Xt,RD),Jt=Pt(Pe,gt),ne=L||(J=>{var oe;return(oe=J.label)!=null?oe:J}),ve=A({},a,{disablePortal:k,expanded:Yt,focused:De,fullWidth:O,getOptionLabel:ne,hasClearIcon:sn,hasPopupIcon:an,inputFocused:qe===-1,popupOpen:te,size:ue}),xe=PD(ve);let ot;if(ce&&ee.length>0){const J=oe=>A({className:xe.tag,disabled:R},It(oe));le?ot=le(ee,J,ve):ot=ee.map((oe,Ue)=>{const st=J({index:Ue}),{key:qt}=st,ws=H(st,TD);return f.jsx(SD,A({label:ne(oe),size:ue},ws,p),qt)})}if(W>-1&&Array.isArray(ot)){const J=ot.length-W;!De&&J>0&&(ot=ot.splice(0,W),ot.push(f.jsx("span",{className:xe.tag,children:z(J)},ot.length)))}const kn=Te||(J=>f.jsxs("li",{children:[f.jsx(zD,{className:xe.groupLabel,ownerState:ve,component:"div",children:J.group}),f.jsx(BD,{className:xe.groupUl,ownerState:ve,children:J.children})]},J.key)),Vt=Ie||((J,oe)=>{const{key:Ue}=J,st=H(J,ED);return f.jsx("li",A({},st,{children:ne(oe)}),Ue)}),en=(J,oe)=>{const Ue=_e({option:J,index:oe});return Vt(A({},Ue,{className:xe.option}),J,{selected:Ue["aria-selected"],index:oe,inputValue:Gr},ve)},it=(r=Je.clearIndicator)!=null?r:x.clearIndicator,Fn=(o=Je.paper)!=null?o:x.paper,Go=(i=Je.popper)!=null?i:x.popper,F=(s=Je.popupIndicator)!=null?s:x.popupIndicator,B=J=>f.jsx(OD,A({as:Oe,disablePortal:k,style:{width:Dt?Dt.clientWidth:null},ownerState:ve,role:"presentation",anchorEl:Dt,open:te},Go,{className:Z(xe.popper,Go==null?void 0:Go.className),children:f.jsx($D,A({ownerState:ve,as:me},Fn,{className:Z(xe.paper,Fn==null?void 0:Fn.className),children:J}))}));let re=null;return Ft.length>0?re=B(f.jsx(DD,A({as:se,className:xe.listbox,ownerState:ve},Ve,ae,{ref:Jt,children:Ft.map((J,oe)=>D?kn({key:J.key,group:J.group,children:J.options.map((Ue,st)=>en(Ue,J.index+st))}):en(J,oe))}))):Re&&Ft.length===0?re=B(f.jsx(ND,{className:xe.loading,ownerState:ve,children:Y})):Ft.length===0&&!$&&!Re&&(re=B(f.jsx(LD,{className:xe.noOptions,ownerState:ve,role:"presentation",onMouseDown:J=>{J.preventDefault()},children:G}))),f.jsxs(b.Fragment,{children:[f.jsx(ID,A({ref:n,className:Z(xe.root,h),ownerState:ve},Ne(Ge),{children:Ee({id:wt,disabled:R,fullWidth:!0,size:ue==="small"?"small":void 0,InputLabelProps:tt(),InputProps:A({ref:An,className:xe.inputRoot,startAdornment:ot,onClick:J=>{J.target===J.currentTarget&&kr(J)}},(sn||an)&&{endAdornment:f.jsxs(_D,{className:xe.endAdornment,ownerState:ve,children:[sn?f.jsx(jD,A({},mt(),{"aria-label":g,title:g,ownerState:ve},it,{className:Z(xe.clearIndicator,it==null?void 0:it.className),children:v})):null,an?f.jsx(MD,A({},ze(),{disabled:R,"aria-label":te?y:pe,title:te?y:pe,ownerState:ve},F,{className:Z(xe.popupIndicator,F==null?void 0:F.className),children:ge})):null]})}),inputProps:A({className:xe.input,disabled:R,readOnly:Ae},ht())})})),Dt?re:null]})});var ky={},WD=Sn;Object.defineProperty(ky,"__esModule",{value:!0});var rR=ky.default=void 0,VD=WD(rr()),UD=f;rR=ky.default=(0,VD.default)((0,UD.jsx)("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"CheckBoxOutlineBlank");var Ry={},HD=Sn;Object.defineProperty(Ry,"__esModule",{value:!0});var oR=Ry.default=void 0,GD=HD(rr()),qD=f;oR=Ry.default=(0,GD.default)((0,qD.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox");const QD=f.jsx(rR,{fontSize:"small"}),KD=f.jsx(oR,{fontSize:"small"});function ZD({value:e,setValue:t,names:n,namesList:r,inSelectionData:o,dataProperty:i}){let s=e.length===n.length;const a=b.useRef(null),[l,c]=b.useState(450),[u,d]=b.useState(!1);function p(m,C){if(C.length===0){t(e),d(!0);return}if(s){const g=n.filter(y=>!C.includes(y));t(g)}else C.sort((g,y)=>r[g].localeCompare(r[y])),t(C);s=C.length!==n.length}function h(){if(a.current){const m=a.current.getBoundingClientRect(),g=window.innerHeight-m.bottom;c(g)}}const v=b.useMemo(()=>(n.sort((m,C)=>r[m].localeCompare(r[C])),n),[n,r]);return f.jsxs("div",{ref:a,style:{marginBottom:"0.5em"},children:[f.jsx(Zp,{openSnack:u,setOpenSnack:d,message:"At least one allocation type must be selected"}),f.jsx(FD,{onMouseEnter:h,multiple:!0,clearIcon:null,id:"allocation-types-search",options:v,value:e,onChange:p,disableCloseOnSelect:!0,renderTags:()=>null,getOptionLabel:m=>r[m],renderOption:(m,C)=>b.createElement("li",{...m,key:C,style:o[i].has(C)?{whiteSpace:"normal",padding:"1px"}:{display:"none"}},f.jsx(Kp,{icon:QD,checkedIcon:KD,style:{marginRight:8},checked:e.includes(C),disabled:!o[i].has(C)},C),r[C]),style:{maxHeight:l},renderInput:m=>f.jsx(BL,{...m,label:"Allocation Type",placeholder:"Start typing or use the menu"})})]})}function qu({type:e,dataProperty:t,filterType:n,value:r,setValue:o,inSelectionData:i}){const[s,a]=b.useState(!1),[l,c]=b.useState(0),u=b.useRef(null),{lists:d,inDataLists:p}=b.useContext(Fo),h=[...p[t]];let v;const m=x=>(w,S)=>{a(S?x:!1)};function C(){o([])}function g(){o(h)}function y(){a(!1)}switch(e){case"Fund":v=d.fundNames;break;case"Year":v=Nk(h);break;case"Allocation Source":v=d.allocationSources;break;case"Allocation Type":v=d.allocationTypes;break;default:v=d[t]}return b.useEffect(()=>{u.current&&c(u.current.clientHeight)},[]),f.jsx(q,{style:{position:"relative",height:l+"px"},children:f.jsx($k,{onClickAway:y,children:f.jsxs(KN,{expanded:s===e,onChange:m(e),style:{backgroundColor:"#ffffff",position:"absolute",zIndex:1e3,maxWidth:"100%"},ref:u,children:[f.jsxs(aL,{expandIcon:f.jsx(Bk,{}),sx:{width:"100%",height:"66px",overflow:"hidden"},children:[f.jsx(ye,{sx:{color:"#144372",fontWeight:"bold",fontSize:"1rem",width:"30%",alignSelf:"center"},children:e+":"}),f.jsx(ye,{sx:{flexGrow:1}}),f.jsx(ye,{sx:{color:"text.secondary",alignSelf:"center",justifySelf:"flex-end",fontSize:"0.8rem",width:"45%",textAlign:"center"},children:r.length===h.length?`All ${e}s selected`:r.length===1?YD(r[0],v)?v[r[0]]:r[0].toString():`${r.length} ${e}s selected`})]}),f.jsxs(eL,{children:[f.jsxs(ye,{variant:"body2",m:1,mb:2,children:["Select the ",e.toLocaleLowerCase(),n==="dropdowncheck"&&`. Multiple ${e.toLocaleLowerCase()}s are allowed`]}),n==="dropdowncheck"&&f.jsx(Cl,{value:r,setValue:o,names:h,namesList:v,type:e,inSelectionData:i,dataProperty:t,fromQuickSelectors:!1}),n==="search"&&f.jsx(ZD,{value:r,setValue:o,names:h,namesList:v,inSelectionData:i,dataProperty:t}),n==="checkbox"&&f.jsx(wL,{value:r,setValue:o,names:h,namesList:v,inSelectionData:i,dataProperty:t}),(n==="dropdowncheck"||n==="search")&&f.jsxs(q,{style:{display:"flex",flexDirection:e==="Year"?"column":"row"},children:[f.jsx(ps,{variant:"contained",size:"small",onClick:C,style:{marginLeft:"8px",marginTop:e==="Year"?"8px":"0px"},children:"Deselect all"}),f.jsx(ps,{variant:"contained",size:"small",onClick:g,style:{marginLeft:"8px",marginTop:e==="Year"?"8px":"0px"},children:"Select all"})]})]})]})})})}function YD(e,t){return e in t}function XD({year:e,setYear:t,fund:n,setFund:r,allocationSource:o,setAllocationSource:i,allocationType:s,setAllocationType:a,inSelectionData:l}){return f.jsxs(Ke,{container:!0,spacing:1,children:[f.jsx(Ke,{xs:2,children:f.jsx(qu,{type:"Year",dataProperty:"years",filterType:"dropdowncheck",value:e,setValue:t,inSelectionData:l})}),f.jsx(Ke,{xs:!0,children:f.jsx(qu,{type:"Fund",dataProperty:"funds",filterType:"dropdowncheck",value:n,setValue:r,inSelectionData:l})}),f.jsx(Ke,{xs:!0,children:f.jsx(qu,{type:"Allocation Type",dataProperty:"allocationTypes",filterType:"search",value:s,setValue:a,inSelectionData:l})}),f.jsx(Ke,{xs:!0,children:f.jsx(qu,{type:"Allocation Source",dataProperty:"allocationSources",filterType:"checkbox",value:o,setValue:i,inSelectionData:l})})]})}function JD(e){return be("MuiCard",e)}Ce("MuiCard",["root"]);const ez=["className","raised"],tz=e=>{const{classes:t}=e;return we({root:["root"]},JD,t)},nz=V(Sr,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),rz=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,s=H(r,ez),a=A({},r,{raised:i}),l=tz(a);return f.jsx(nz,A({className:Z(l.root,o),elevation:i?8:void 0,ref:n,ownerState:a},s))});function oz(e){return be("MuiCardActions",e)}Ce("MuiCardActions",["root","spacing"]);const iz=["disableSpacing","className"],sz=e=>{const{classes:t,disableSpacing:n}=e;return we({root:["root",!n&&"spacing"]},oz,t)},az=V("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>A({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),lz=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:i}=r,s=H(r,iz),a=A({},r,{disableSpacing:o}),l=sz(a);return f.jsx(az,A({className:Z(l.root,i),ownerState:a,ref:n},s))});function cz(e){return be("MuiCardContent",e)}Ce("MuiCardContent",["root"]);const uz=["className","component"],dz=e=>{const{classes:t}=e;return we({root:["root"]},cz,t)},fz=V("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),pz=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,s=H(r,uz),a=A({},r,{component:i}),l=dz(a);return f.jsx(fz,A({as:i,className:Z(l.root,o),ownerState:a,ref:n},s))});var hz=Object.defineProperty,mz=(e,t)=>{for(var n in t)hz(e,n,{get:t[n],enumerable:!0})},Ur={};mz(Ur,{assign:()=>yz,colors:()=>vi,createStringInterpolator:()=>My,skipAnimation:()=>dR,to:()=>uR,willAdvance:()=>Oy});var Ty=fu(),$e=e=>du(e,Ty),Ey=fu();$e.write=e=>du(e,Ey);var Xp=fu();$e.onStart=e=>du(e,Xp);var Py=fu();$e.onFrame=e=>du(e,Py);var Iy=fu();$e.onFinish=e=>du(e,Iy);var la=[];$e.setTimeout=(e,t)=>{const n=$e.now()+t,r=()=>{const i=la.findIndex(s=>s.cancel==r);~i&&la.splice(i,1),si-=~i?1:0},o={time:n,handler:e,cancel:r};return la.splice(iR(n),0,o),si+=1,sR(),o};var iR=e=>~(~la.findIndex(t=>t.time>e)||~la.length);$e.cancel=e=>{Xp.delete(e),Py.delete(e),Iy.delete(e),Ty.delete(e),Ey.delete(e)};$e.sync=e=>{c0=!0,$e.batchedUpdates(e),c0=!1};$e.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...o){t=o,$e.onStart(n)}return r.handler=e,r.cancel=()=>{Xp.delete(n),t=null},r};var _y=typeof window<"u"?window.requestAnimationFrame:()=>{};$e.use=e=>_y=e;$e.now=typeof performance<"u"?()=>performance.now():Date.now;$e.batchedUpdates=e=>e();$e.catch=console.error;$e.frameLoop="always";$e.advance=()=>{$e.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):lR()};var ii=-1,si=0,c0=!1;function du(e,t){c0?(t.delete(e),e(0)):(t.add(e),sR())}function sR(){ii<0&&(ii=0,$e.frameLoop!=="demand"&&_y(aR))}function gz(){ii=-1}function aR(){~ii&&(_y(aR),$e.batchedUpdates(lR))}function lR(){const e=ii;ii=$e.now();const t=iR(ii);if(t&&(cR(la.splice(0,t),n=>n.handler()),si-=t),!si){gz();return}Xp.flush(),Ty.flush(e?Math.min(64,ii-e):16.667),Py.flush(),Ey.flush(),Iy.flush()}function fu(){let e=new Set,t=e;return{add(n){si+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return si-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,si-=t.size,cR(t,r=>r(n)&&e.add(r)),si+=e.size,t=e)}}}function cR(e,t){e.forEach(n=>{try{t(n)}catch(r){$e.catch(r)}})}function u0(){}var vz=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),X={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function ko(e,t){if(X.arr(e)){if(!X.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function xo(e,t,n){if(X.arr(e)){for(let r=0;rX.und(e)?[]:X.arr(e)?e:[e];function zl(e,t){if(e.size){const n=Array.from(e);e.clear(),Qe(n,t)}}var Al=(e,...t)=>zl(e,n=>n(...t)),jy=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),My,uR,vi=null,dR=!1,Oy=u0,yz=e=>{e.to&&(uR=e.to),e.now&&($e.now=e.now),e.colors!==void 0&&(vi=e.colors),e.skipAnimation!=null&&(dR=e.skipAnimation),e.createStringInterpolator&&(My=e.createStringInterpolator),e.requestAnimationFrame&&$e.use(e.requestAnimationFrame),e.batchedUpdates&&($e.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Oy=e.willAdvance),e.frameLoop&&($e.frameLoop=e.frameLoop)},Bl=new Set,dr=[],am=[],Cf=0,Jp={get idle(){return!Bl.size&&!dr.length},start(e){Cf>e.priority?(Bl.add(e),$e.onStart(xz)):(fR(e),$e(d0))},advance:d0,sort(e){if(Cf)$e.onFrame(()=>Jp.sort(e));else{const t=dr.indexOf(e);~t&&(dr.splice(t,1),pR(e))}},clear(){dr=[],Bl.clear()}};function xz(){Bl.forEach(fR),Bl.clear(),$e(d0)}function fR(e){dr.includes(e)||pR(e)}function pR(e){dr.splice(bz(dr,t=>t.priority>e.priority),0,e)}function d0(e){const t=am;for(let n=0;n0}function bz(e,t){const n=e.findIndex(t);return n<0?e.length:n}var wz=(e,t,n)=>Math.min(Math.max(n,e),t),Cz={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},$r="[-+]?\\d*\\.?\\d+",Sf=$r+"%";function eh(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Sz=new RegExp("rgb"+eh($r,$r,$r)),Az=new RegExp("rgba"+eh($r,$r,$r,$r)),kz=new RegExp("hsl"+eh($r,Sf,Sf)),Rz=new RegExp("hsla"+eh($r,Sf,Sf,$r)),Tz=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Ez=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Pz=/^#([0-9a-fA-F]{6})$/,Iz=/^#([0-9a-fA-F]{8})$/;function _z(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Pz.exec(e))?parseInt(t[1]+"ff",16)>>>0:vi&&vi[e]!==void 0?vi[e]:(t=Sz.exec(e))?(Is(t[1])<<24|Is(t[2])<<16|Is(t[3])<<8|255)>>>0:(t=Az.exec(e))?(Is(t[1])<<24|Is(t[2])<<16|Is(t[3])<<8|mw(t[4]))>>>0:(t=Tz.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Iz.exec(e))?parseInt(t[1],16)>>>0:(t=Ez.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=kz.exec(e))?(pw(hw(t[1]),Qu(t[2]),Qu(t[3]))|255)>>>0:(t=Rz.exec(e))?(pw(hw(t[1]),Qu(t[2]),Qu(t[3]))|mw(t[4]))>>>0:null}function lm(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function pw(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=lm(o,r,e+1/3),s=lm(o,r,e),a=lm(o,r,e-1/3);return Math.round(i*255)<<24|Math.round(s*255)<<16|Math.round(a*255)<<8}function Is(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function hw(e){return(parseFloat(e)%360+360)%360/360}function mw(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Qu(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function gw(e){let t=_z(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,o=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${o}, ${i})`}var $c=(e,t,n)=>{if(X.fun(e))return e;if(X.arr(e))return $c({range:e,output:t,extrapolate:n});if(X.str(e.output[0]))return My(e);const r=e,o=r.output,i=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(c=>c);return c=>{const u=Mz(c,i);return jz(c,i[u],i[u+1],o[u],o[u+1],l,s,a,r.map)}};function jz(e,t,n,r,o,i,s,a,l){let c=l?l(e):e;if(cn){if(a==="identity")return c;a==="clamp"&&(c=n)}return r===o?r:t===n?e<=t?r:o:(t===-1/0?c=-c:n===1/0?c=c-t:c=(c-t)/(n-t),c=i(c),r===-1/0?c=-c:o===1/0?c=c+r:c=c*(o-r)+r,c)}function Mz(e,t){for(var n=1;n=e);++n);return n-1}var Oz=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,o=t==="end"?Math.floor(r):Math.ceil(r);return wz(0,1,o/e)},Af=1.70158,Ku=Af*1.525,vw=Af+1,yw=2*Math.PI/3,xw=2*Math.PI/4.5,Zu=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,$z={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>vw*e*e*e-Af*e*e,easeOutBack:e=>1+vw*Math.pow(e-1,3)+Af*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Ku+1)*2*e-Ku)/2:(Math.pow(2*e-2,2)*((Ku+1)*(e*2-2)+Ku)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*yw),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*yw)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*xw))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*xw)/2+1,easeInBounce:e=>1-Zu(1-e),easeOutBounce:Zu,easeInOutBounce:e=>e<.5?(1-Zu(1-2*e))/2:(1+Zu(2*e-1))/2,steps:Oz},Nc=Symbol.for("FluidValue.get"),Ia=Symbol.for("FluidValue.observers"),ur=e=>!!(e&&e[Nc]),En=e=>e&&e[Nc]?e[Nc]():e,bw=e=>e[Ia]||null;function Nz(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Lc(e,t){const n=e[Ia];n&&n.forEach(r=>{Nz(r,t)})}var hR=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Lz(this,e)}},Lz=(e,t)=>mR(e,Nc,t);function Va(e,t){if(e[Nc]){let n=e[Ia];n||mR(e,Ia,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Dc(e,t){const n=e[Ia];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Ia]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var mR=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Sd=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Dz=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ww=new RegExp(`(${Sd.source})(%|[a-z]+)`,"i"),zz=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,th=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,gR=e=>{const[t,n]=Bz(e);if(!t||jy())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const o=window.getComputedStyle(document.documentElement).getPropertyValue(n);return o||e}else{if(n&&th.test(n))return gR(n);if(n)return n}return e},Bz=e=>{const t=th.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},cm,Fz=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,vR=e=>{cm||(cm=vi?new RegExp(`(${Object.keys(vi).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>En(i).replace(th,gR).replace(Dz,gw).replace(cm,gw)),n=t.map(i=>i.match(Sd).map(Number)),o=n[0].map((i,s)=>n.map(a=>{if(!(s in a))throw Error('The arity of each "output" value must be equal');return a[s]})).map(i=>$c({...e,output:i}));return i=>{var l;const s=!ww.test(t[0])&&((l=t.find(c=>ww.test(c)))==null?void 0:l.replace(Sd,""));let a=0;return t[0].replace(Sd,()=>`${o[a++](i)}${s||""}`).replace(zz,Fz)}},$y="react-spring: ",yR=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${$y}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},Wz=yR(console.warn);function Vz(){Wz(`${$y}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Uz=yR(console.warn);function Hz(){Uz(`${$y}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function nh(e){return X.str(e)&&(e[0]=="#"||/\d/.test(e)||!jy()&&th.test(e)||e in(vi||{}))}var Ny=jy()?b.useEffect:b.useLayoutEffect,Gz=()=>{const e=b.useRef(!1);return Ny(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function xR(){const e=b.useState()[1],t=Gz();return()=>{t.current&&e(Math.random())}}function qz(e,t){const[n]=b.useState(()=>({inputs:t,result:e()})),r=b.useRef(),o=r.current;let i=o;return i?t&&i.inputs&&Qz(t,i.inputs)||(i={inputs:t,result:e()}):i=n,b.useEffect(()=>{r.current=i,o==n&&(n.inputs=n.result=void 0)},[i]),i.result}function Qz(e,t){if(e.length!==t.length)return!1;for(let n=0;nb.useEffect(e,Kz),Kz=[];function Cw(e){const t=b.useRef();return b.useEffect(()=>{t.current=e}),t.current}var zc=Symbol.for("Animated:node"),Zz=e=>!!e&&e[zc]===e,eo=e=>e&&e[zc],Ly=(e,t)=>vz(e,zc,t),rh=e=>e&&e[zc]&&e[zc].getPayload(),wR=class{constructor(){Ly(this,this)}getPayload(){return this.payload||[]}},pu=class extends wR{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,X.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new pu(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return X.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,X.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Bc=class extends pu{constructor(e){super(0),this._string=null,this._toString=$c({output:[e,e]})}static create(e){return new Bc(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(X.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=$c({output:[this.getValue(),e]})),this._value=0,super.reset()}},kf={dependencies:null},oh=class extends wR{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return xo(this.source,(n,r)=>{Zz(n)?t[r]=n.getValue(e):ur(n)?t[r]=En(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Qe(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return xo(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){kf.dependencies&&ur(e)&&kf.dependencies.add(e);const t=rh(e);t&&Qe(t,n=>this.add(n))}},CR=class extends oh{constructor(e){super(e)}static create(e){return new CR(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(Yz)),!0)}};function Yz(e){return(nh(e)?Bc:pu).create(e)}function f0(e){const t=eo(e);return t?t.constructor:X.arr(e)?CR:nh(e)?Bc:pu}var Sw=(e,t)=>{const n=!X.fun(e)||e.prototype&&e.prototype.isReactComponent;return b.forwardRef((r,o)=>{const i=b.useRef(null),s=n&&b.useCallback(v=>{i.current=eB(o,v)},[o]),[a,l]=Jz(r,t),c=xR(),u=()=>{const v=i.current;if(n&&!v)return;(v?t.applyAnimatedValues(v,a.getValue(!0)):!1)===!1&&c()},d=new Xz(u,l),p=b.useRef();Ny(()=>(p.current=d,Qe(l,v=>Va(v,d)),()=>{p.current&&(Qe(p.current.deps,v=>Dc(v,p.current)),$e.cancel(p.current.update))})),b.useEffect(u,[]),bR(()=>()=>{const v=p.current;Qe(v.deps,m=>Dc(m,v))});const h=t.getComponentProps(a.getValue());return b.createElement(e,{...h,ref:s})})},Xz=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&$e.write(this.update)}};function Jz(e,t){const n=new Set;return kf.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new oh(e),kf.dependencies=null,[e,n]}function eB(e,t){return e&&(X.fun(e)?e(t):e.current=t),t}var Aw=Symbol.for("AnimatedComponent"),tB=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=o=>new oh(o),getComponentProps:r=o=>o}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=s=>{const a=kw(s)||"Anonymous";return X.str(s)?s=i[s]||(i[s]=Sw(s,o)):s=s[Aw]||(s[Aw]=Sw(s,o)),s.displayName=`Animated(${a})`,s};return xo(e,(s,a)=>{X.arr(e)&&(a=kw(s)),i[a]=i(s)}),{animated:i}},kw=e=>X.str(e)?e:e&&X.str(e.displayName)?e.displayName:X.fun(e)&&e.name||null;function Fi(e,...t){return X.fun(e)?e(...t):e}var Fl=(e,t)=>e===!0||!!(t&&e&&(X.fun(e)?e(t):qn(e).includes(t))),SR=(e,t)=>X.obj(e)?t&&e[t]:e,AR=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,nB=e=>e,Dy=(e,t=nB)=>{let n=rB;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const i=t(e[o],o);X.und(i)||(r[o]=i)}return r},rB=["config","onProps","onStart","onChange","onPause","onResume","onRest"],oB={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function iB(e){const t={};let n=0;if(xo(e,(r,o)=>{oB[o]||(t[o]=r,n++)}),n)return t}function kR(e){const t=iB(e);if(t){const n={to:t};return xo(e,(r,o)=>o in t||(n[o]=r)),n}return{...e}}function Fc(e){return e=En(e),X.arr(e)?e.map(Fc):nh(e)?Ur.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function sB(e){for(const t in e)return!0;return!1}function p0(e){return X.fun(e)||X.arr(e)&&X.obj(e[0])}function aB(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function lB(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var cB={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},h0={...cB.default,mass:1,damping:1,easing:$z.linear,clamp:!1},uB=class{constructor(){this.velocity=0,Object.assign(this,h0)}};function dB(e,t,n){n&&(n={...n},Rw(n,t),t={...n,...t}),Rw(e,t),Object.assign(e,t);for(const s in h0)e[s]==null&&(e[s]=h0[s]);let{frequency:r,damping:o}=e;const{mass:i}=e;return X.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*o*i/r),e}function Rw(e,t){if(!X.und(t.decay))e.duration=void 0;else{const n=!X.und(t.tension)||!X.und(t.friction);(n||!X.und(t.frequency)||!X.und(t.damping)||!X.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Tw=[],fB=class{constructor(){this.changed=!1,this.values=Tw,this.toValues=null,this.fromValues=Tw,this.config=new uB,this.immediate=!1}};function RR(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise((s,a)=>{let l,c,u=Fl(n.cancel??(r==null?void 0:r.cancel),t);if(u)h();else{X.und(n.pause)||(o.paused=Fl(n.pause,t));let v=r==null?void 0:r.pause;v!==!0&&(v=o.paused||Fl(v,t)),l=Fi(n.delay||0,t),v?(o.resumeQueue.add(p),i.pause()):(i.resume(),p())}function d(){o.resumeQueue.add(p),o.timeouts.delete(c),c.cancel(),l=c.time-$e.now()}function p(){l>0&&!Ur.skipAnimation?(o.delayed=!0,c=$e.setTimeout(h,l),o.pauseQueue.add(d),o.timeouts.add(c)):h()}function h(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(d),o.timeouts.delete(c),e<=(o.cancelId||0)&&(u=!0);try{i.start({...n,callId:e,cancel:u},s)}catch(v){a(v)}}})}var zy=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?ca(e.get()):t.every(n=>n.noop)?TR(e.get()):jr(e.get(),t.every(n=>n.finished)),TR=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),jr=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),ca=e=>({value:e,cancelled:!0,finished:!1});function ER(e,t,n,r){const{callId:o,parentId:i,onRest:s}=t,{asyncTo:a,promise:l}=n;return!i&&e===a&&!t.reset?l:n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const c=Dy(t,(C,g)=>g==="onRest"?void 0:C);let u,d;const p=new Promise((C,g)=>(u=C,d=g)),h=C=>{const g=o<=(n.cancelId||0)&&ca(r)||o!==n.asyncId&&jr(r,!1);if(g)throw C.result=g,d(C),C},v=(C,g)=>{const y=new Ew,x=new Pw;return(async()=>{if(Ur.skipAnimation)throw Wc(n),x.result=jr(r,!1),d(x),x;h(y);const w=X.obj(C)?{...C}:{...g,to:C};w.parentId=o,xo(c,(T,R)=>{X.und(w[R])&&(w[R]=T)});const S=await r.start(w);return h(y),n.paused&&await new Promise(T=>{n.resumeQueue.add(T)}),S})()};let m;if(Ur.skipAnimation)return Wc(n),jr(r,!1);try{let C;X.arr(e)?C=(async g=>{for(const y of g)await v(y)})(e):C=Promise.resolve(e(v,r.stop.bind(r))),await Promise.all([C.then(u),p]),m=jr(r.get(),!0,!1)}catch(C){if(C instanceof Ew)m=C.result;else if(C instanceof Pw)m=C.result;else throw C}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?a:void 0,n.promise=i?l:void 0)}return X.fun(s)&&$e.batchedUpdates(()=>{s(m,r,r.item)}),m})()}function Wc(e,t){zl(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Ew=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Pw=class extends Error{constructor(){super("SkipAnimationSignal")}},m0=e=>e instanceof By,pB=1,By=class extends hR{constructor(){super(...arguments),this.id=pB++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=eo(this);return e&&e.getValue()}to(...e){return Ur.to(this,e)}interpolate(...e){return Vz(),Ur.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Lc(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Jp.sort(this),Lc(this,{type:"priority",parent:this,priority:e})}},ms=Symbol.for("SpringPhase"),PR=1,g0=2,v0=4,um=e=>(e[ms]&PR)>0,Zo=e=>(e[ms]&g0)>0,sl=e=>(e[ms]&v0)>0,Iw=(e,t)=>t?e[ms]|=g0|PR:e[ms]&=~g0,_w=(e,t)=>t?e[ms]|=v0:e[ms]&=~v0,hB=class extends By{constructor(e,t){if(super(),this.animation=new fB,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!X.und(e)||!X.und(t)){const n=X.obj(e)?{...e}:{...t,from:e};X.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Zo(this)||this._state.asyncTo)||sl(this)}get goal(){return En(this.animation.to)}get velocity(){const e=eo(this);return e instanceof pu?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return um(this)}get isAnimating(){return Zo(this)}get isPaused(){return sl(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:i}=r,s=rh(r.to);!s&&ur(r.to)&&(o=qn(En(r.to))),r.values.forEach((c,u)=>{if(c.done)return;const d=c.constructor==Bc?1:s?s[u].lastPosition:o[u];let p=r.immediate,h=d;if(!p){if(h=c.lastPosition,i.tension<=0){c.done=!0;return}let v=c.elapsedTime+=e;const m=r.fromValues[u],C=c.v0!=null?c.v0:c.v0=X.arr(i.velocity)?i.velocity[u]:i.velocity;let g;const y=i.precision||(m==d?.005:Math.min(1,Math.abs(d-m)*.001));if(X.und(i.duration))if(i.decay){const x=i.decay===!0?.998:i.decay,w=Math.exp(-(1-x)*v);h=m+C/(1-x)*(1-w),p=Math.abs(c.lastPosition-h)<=y,g=C*w}else{g=c.lastVelocity==null?C:c.lastVelocity;const x=i.restVelocity||y/10,w=i.clamp?0:i.bounce,S=!X.und(w),T=m==d?c.v0>0:mx,!(!R&&(p=Math.abs(d-h)<=y,p)));++E){S&&(P=h==d||h>d==T,P&&(g=-g*w,h=d));const M=-i.tension*1e-6*(h-d),$=-i.friction*.001*g,O=(M+$)/i.mass;g=g+O*_,h=h+g*_}}else{let x=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,c.durationProgress>0&&(c.elapsedTime=i.duration*c.durationProgress,v=c.elapsedTime+=e)),x=(i.progress||0)+v/this._memoizedDuration,x=x>1?1:x<0?0:x,c.durationProgress=x),h=m+i.easing(x)*(d-m),g=(h-c.lastPosition)/e,p=x==1}c.lastVelocity=g,Number.isNaN(h)&&(console.warn("Got NaN while animating:",this),p=!0)}s&&!s[u].done&&(p=!1),p?c.done=!0:t=!1,c.setValue(h,i.round)&&(n=!0)});const a=eo(this),l=a.getValue();if(t){const c=En(r.to);(l!==c||n)&&!i.decay?(a.setValue(c),this._onChange(c)):n&&i.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return $e.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Zo(this)){const{to:e,config:t}=this.animation;$e.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return X.und(e)?(n=this.queue||[],this.queue=[]):n=[X.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>zy(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Wc(this._state,e&&this._lastCallId),$e.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=X.obj(n)?n[t]:n,(n==null||p0(n))&&(n=void 0),r=X.obj(r)?r[t]:r,r==null&&(r=void 0);const o={to:n,from:r};return um(this)||(e.reverse&&([n,r]=[r,n]),r=En(r),X.und(r)?eo(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Dy(e,(s,a)=>/^on/.test(a)?SR(s,n):s)),Mw(this,e,"onProps"),ll(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return RR(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{sl(this)||(_w(this,!0),Al(i.pauseQueue),ll(this,"onPause",jr(this,al(this,this.animation.to)),this))},resume:()=>{sl(this)&&(_w(this,!1),Zo(this)&&this._resume(),Al(i.resumeQueue),ll(this,"onResume",jr(this,al(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(s=>{if(e.loop&&s.finished&&!(t&&s.noop)){const a=IR(e);if(a)return this._update(a,!0)}return s})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(ca(this));const r=!X.und(e.to),o=!X.und(e.from);if(r||o)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(ca(this));const{key:i,defaultProps:s,animation:a}=this,{to:l,from:c}=a;let{to:u=l,from:d=c}=e;o&&!r&&(!t.default||X.und(u))&&(u=d),t.reverse&&([u,d]=[d,u]);const p=!ko(d,c);p&&(a.from=d),d=En(d);const h=!ko(u,l);h&&this._focus(u);const v=p0(t.to),{config:m}=a,{decay:C,velocity:g}=m;(r||o)&&(m.velocity=0),t.config&&!v&&dB(m,Fi(t.config,i),t.config!==s.config?Fi(s.config,i):void 0);let y=eo(this);if(!y||X.und(u))return n(jr(this,!0));const x=X.und(t.reset)?o&&!t.default:!X.und(d)&&Fl(t.reset,i),w=x?d:this.get(),S=Fc(u),T=X.num(S)||X.arr(S)||nh(S),R=!v&&(!T||Fl(s.immediate||t.immediate,i));if(h){const E=f0(u);if(E!==y.constructor)if(R)y=this._set(S);else throw Error(`Cannot animate between ${y.constructor.name} and ${E.name}, as the "to" prop suggests`)}const P=y.constructor;let _=ur(u),k=!1;if(!_){const E=x||!um(this)&&p;(h||E)&&(k=ko(Fc(w),S),_=!k),(!ko(a.immediate,R)&&!R||!ko(m.decay,C)||!ko(m.velocity,g))&&(_=!0)}if(k&&Zo(this)&&(a.changed&&!x?_=!0:_||this._stop(l)),!v&&((_||ur(l))&&(a.values=y.getPayload(),a.toValues=ur(u)?null:P==Bc?[1]:qn(S)),a.immediate!=R&&(a.immediate=R,!R&&!x&&this._set(l)),_)){const{onRest:E}=a;Qe(gB,$=>Mw(this,t,$));const M=jr(this,al(this,l));Al(this._pendingCalls,M),this._pendingCalls.add(n),a.changed&&$e.batchedUpdates(()=>{var $;a.changed=!x,E==null||E(M,this),x?Fi(s.onRest,M):($=a.onStart)==null||$.call(a,M,this)})}x&&this._set(w),v?n(ER(t.to,t,this._state,this)):_?this._start():Zo(this)&&!h?this._pendingCalls.add(n):n(TR(w))}_focus(e){const t=this.animation;e!==t.to&&(bw(this)&&this._detach(),t.to=e,bw(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;ur(t)&&(Va(t,this),m0(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ur(e)&&Dc(e,this)}_set(e,t=!0){const n=En(e);if(!X.und(n)){const r=eo(this);if(!r||!ko(n,r.getValue())){const o=f0(n);!r||r.constructor!=o?Ly(this,o.create(n)):r.setValue(n),r&&$e.batchedUpdates(()=>{this._onChange(n,t)})}}return eo(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,ll(this,"onStart",jr(this,al(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Fi(this.animation.onChange,e,this)),Fi(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;eo(this).reset(En(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Zo(this)||(Iw(this,!0),sl(this)||this._resume())}_resume(){Ur.skipAnimation?this.finish():Jp.start(this)}_stop(e,t){if(Zo(this)){Iw(this,!1);const n=this.animation;Qe(n.values,o=>{o.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Lc(this,{type:"idle",parent:this});const r=t?ca(this.get()):jr(this.get(),al(this,e??n.to));Al(this._pendingCalls,r),n.changed&&(n.changed=!1,ll(this,"onRest",r,this))}}};function al(e,t){const n=Fc(t),r=Fc(e.get());return ko(r,n)}function IR(e,t=e.loop,n=e.to){const r=Fi(t);if(r){const o=r!==!0&&kR(r),i=(o||e).reverse,s=!o||o.reset;return Vc({...e,loop:t,default:!1,pause:void 0,to:!i||p0(n)?n:void 0,from:s?e.from:void 0,reset:s,...o})}}function Vc(e){const{to:t,from:n}=e=kR(e),r=new Set;return X.obj(t)&&jw(t,r),X.obj(n)&&jw(n,r),e.keys=r.size?Array.from(r):null,e}function mB(e){const t=Vc(e);return X.und(t.default)&&(t.default=Dy(t)),t}function jw(e,t){xo(e,(n,r)=>n!=null&&t.add(r))}var gB=["onStart","onRest","onChange","onPause","onResume"];function Mw(e,t,n){e.animation[n]=t[n]!==AR(t,n)?SR(t[n],e.key):void 0}function ll(e,t,...n){var r,o,i,s;(o=(r=e.animation)[t])==null||o.call(r,...n),(s=(i=e.defaultProps)[t])==null||s.call(i,...n)}var vB=["onStart","onChange","onRest"],yB=1,xB=class{constructor(e,t){this.id=yB++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];X.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Vc(e)),this}start(e){let{queue:t}=this;return e?t=qn(e).map(Vc):this.queue=[],this._flush?this._flush(this,t):($R(this,t),y0(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Qe(qn(t),r=>n[r].stop(!!e))}else Wc(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(X.und(e))this.start({pause:!0});else{const t=this.springs;Qe(qn(e),n=>t[n].pause())}return this}resume(e){if(X.und(e))this.start({pause:!1});else{const t=this.springs;Qe(qn(e),n=>t[n].resume())}return this}each(e){xo(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,zl(e,([a,l])=>{l.value=this.get(),a(l,this,this._item)}));const i=!r&&this._started,s=o||i&&n.size?this.get():null;o&&t.size&&zl(t,([a,l])=>{l.value=s,a(l,this,this._item)}),i&&(this._started=!1,zl(n,([a,l])=>{l.value=s,a(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;$e.onFrame(this._onFrame)}};function y0(e,t){return Promise.all(t.map(n=>_R(e,n))).then(n=>zy(e,n))}async function _R(e,t,n){const{keys:r,to:o,from:i,loop:s,onRest:a,onResolve:l}=t,c=X.obj(t.default)&&t.default;s&&(t.loop=!1),o===!1&&(t.to=null),i===!1&&(t.from=null);const u=X.arr(o)||X.fun(o)?o:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Qe(vB,m=>{const C=t[m];if(X.fun(C)){const g=e._events[m];t[m]=({finished:y,cancelled:x})=>{const w=g.get(C);w?(y||(w.finished=!1),x&&(w.cancelled=!0)):g.set(C,{value:null,finished:y||!1,cancelled:x||!1})},c&&(c[m]=t[m])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Al(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const p=(r||Object.keys(e.springs)).map(m=>e.springs[m].start(t)),h=t.cancel===!0||AR(t,"cancel")===!0;(u||h&&d.asyncId)&&p.push(RR(++e._lastAsyncId,{props:t,state:d,actions:{pause:u0,resume:u0,start(m,C){h?(Wc(d,e._lastAsyncId),C(ca(e))):(m.onRest=a,C(ER(u,m,d,e)))}}})),d.paused&&await new Promise(m=>{d.resumeQueue.add(m)});const v=zy(e,await Promise.all(p));if(s&&v.finished&&!(n&&v.noop)){const m=IR(t,s,o);if(m)return $R(e,[m]),_R(e,m,!0)}return l&&$e.batchedUpdates(()=>l(v,e,e.item)),v}function Ow(e,t){const n={...e.springs};return t&&Qe(qn(t),r=>{X.und(r.keys)&&(r=Vc(r)),X.obj(r.to)||(r={...r,to:void 0}),OR(n,r,o=>MR(o))}),jR(e,n),n}function jR(e,t){xo(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,Va(n,e))})}function MR(e,t){const n=new hB;return n.key=e,t&&Va(n,t),n}function OR(e,t,n){t.keys&&Qe(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function $R(e,t){Qe(t,n=>{OR(e.springs,n,r=>MR(r,e))})}var ih=({children:e,...t})=>{const n=b.useContext(Rf),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=qz(()=>({pause:r,immediate:o}),[r,o]);const{Provider:i}=Rf;return b.createElement(i,{value:t},e)},Rf=bB(ih,{});ih.Provider=Rf.Provider;ih.Consumer=Rf.Consumer;function bB(e,t){return Object.assign(e,b.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var wB=()=>{const e=[],t=function(r){Hz();const o=[];return Qe(e,(i,s)=>{if(X.und(r))o.push(i.start());else{const a=n(r,i,s);a&&o.push(i.start(a))}}),o};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const o=e.indexOf(r);~o&&e.splice(o,1)},t.pause=function(){return Qe(e,r=>r.pause(...arguments)),this},t.resume=function(){return Qe(e,r=>r.resume(...arguments)),this},t.set=function(r){Qe(e,(o,i)=>{const s=X.fun(r)?r(i,o):r;s&&o.set(s)})},t.start=function(r){const o=[];return Qe(e,(i,s)=>{if(X.und(r))o.push(i.start());else{const a=this._getProps(r,i,s);a&&o.push(i.start(a))}}),o},t.stop=function(){return Qe(e,r=>r.stop(...arguments)),this},t.update=function(r){return Qe(e,(o,i)=>o.update(this._getProps(r,o,i))),this};const n=function(r,o,i){return X.fun(r)?r(i,o):r};return t._getProps=n,t};function CB(e,t,n){const r=X.fun(t)&&t;r&&!n&&(n=[]);const o=b.useMemo(()=>r||arguments.length==3?wB():void 0,[]),i=b.useRef(0),s=xR(),a=b.useMemo(()=>({ctrls:[],queue:[],flush(g,y){const x=Ow(g,y);return i.current>0&&!a.queue.length&&!Object.keys(x).some(S=>!g.springs[S])?y0(g,y):new Promise(S=>{jR(g,x),a.queue.push(()=>{S(y0(g,y))}),s()})}}),[]),l=b.useRef([...a.ctrls]),c=[],u=Cw(e)||0;b.useMemo(()=>{Qe(l.current.slice(e,u),g=>{aB(g,o),g.stop(!0)}),l.current.length=e,d(u,e)},[e]),b.useMemo(()=>{d(0,Math.min(u,e))},n);function d(g,y){for(let x=g;xOw(g,c[y])),h=b.useContext(ih),v=Cw(h),m=h!==v&&sB(h);Ny(()=>{i.current++,a.ctrls=l.current;const{queue:g}=a;g.length&&(a.queue=[],Qe(g,y=>y())),Qe(l.current,(y,x)=>{o==null||o.add(y),m&&y.start({default:h});const w=c[x];w&&(lB(y,w.ref),y.ref?y.queue.push(w):y.start(w))})}),bR(()=>()=>{Qe(a.ctrls,g=>g.stop(!0))});const C=p.map(g=>({...g}));return o?[C,o]:C}function NR(e,t){const n=X.fun(e),[[r],o]=CB(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,o]:r}var SB=class extends By{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=$c(...t);const n=this._get(),r=f0(n);Ly(this,r.create(n))}advance(e){const t=this._get(),n=this.get();ko(t,n)||(eo(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&$w(this._active)&&dm(this)}_get(){const e=X.arr(this.source)?this.source.map(En):qn(En(this.source));return this.calc(...e)}_start(){this.idle&&!$w(this._active)&&(this.idle=!1,Qe(rh(this),e=>{e.done=!1}),Ur.skipAnimation?($e.batchedUpdates(()=>this.advance()),dm(this)):Jp.start(this))}_attach(){let e=1;Qe(qn(this.source),t=>{ur(t)&&Va(t,this),m0(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Qe(qn(this.source),e=>{ur(e)&&Dc(e,this)}),this._active.clear(),dm(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=qn(this.source).reduce((t,n)=>Math.max(t,(m0(n)?n.priority:0)+1),0))}};function AB(e){return e.idle!==!1}function $w(e){return!e.size||Array.from(e).every(AB)}function dm(e){e.idle||(e.idle=!0,Qe(rh(e),t=>{t.done=!0}),Lc(e,{type:"idle",parent:e}))}Ur.assign({createStringInterpolator:vR,to:(e,t)=>new SB(e,t)});var LR=/^--/;function kB(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!LR.test(e)&&!(Wl.hasOwnProperty(e)&&Wl[e])?t+"px":(""+t).trim()}var Nw={};function RB(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:o,scrollTop:i,scrollLeft:s,viewBox:a,...l}=t,c=Object.values(l),u=Object.keys(l).map(d=>n||e.hasAttribute(d)?d:Nw[d]||(Nw[d]=d.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));o!==void 0&&(e.textContent=o);for(const d in r)if(r.hasOwnProperty(d)){const p=kB(d,r[d]);LR.test(d)?e.style.setProperty(d,p):e.style[d]=p}u.forEach((d,p)=>{e.setAttribute(d,c[p])}),i!==void 0&&(e.scrollTop=i),s!==void 0&&(e.scrollLeft=s),a!==void 0&&e.setAttribute("viewBox",a)}var Wl={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},TB=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),EB=["Webkit","Ms","Moz","O"];Wl=Object.keys(Wl).reduce((e,t)=>(EB.forEach(n=>e[TB(n,t)]=e[t]),e),Wl);var PB=/^(matrix|translate|scale|rotate|skew)/,IB=/^(translate)/,_B=/^(rotate|skew)/,fm=(e,t)=>X.num(e)&&e!==0?e+t:e,Ad=(e,t)=>X.arr(e)?e.every(n=>Ad(n,t)):X.num(e)?e===t:parseFloat(e)===t,jB=class extends oh{constructor({x:e,y:t,z:n,...r}){const o=[],i=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),i.push(s=>[`translate3d(${s.map(a=>fm(a,"px")).join(",")})`,Ad(s,0)])),xo(r,(s,a)=>{if(a==="transform")o.push([s||""]),i.push(l=>[l,l===""]);else if(PB.test(a)){if(delete r[a],X.und(s))return;const l=IB.test(a)?"px":_B.test(a)?"deg":"";o.push(qn(s)),i.push(a==="rotate3d"?([c,u,d,p])=>[`rotate3d(${c},${u},${d},${fm(p,l)})`,Ad(p,0)]:c=>[`${a}(${c.map(u=>fm(u,l)).join(",")})`,Ad(c,a.startsWith("scale")?1:0)])}}),o.length&&(r.transform=new MB(o,i)),super(r)}},MB=class extends hR{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Qe(this.inputs,(n,r)=>{const o=En(n[0]),[i,s]=this.transforms[r](X.arr(o)?o:n.map(En));e+=" "+i,t=t&&s}),t?"none":e}observerAdded(e){e==1&&Qe(this.inputs,t=>Qe(t,n=>ur(n)&&Va(n,this)))}observerRemoved(e){e==0&&Qe(this.inputs,t=>Qe(t,n=>ur(n)&&Dc(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Lc(this,e)}},OB=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Ur.assign({batchedUpdates:Uf.unstable_batchedUpdates,createStringInterpolator:vR,colors:Cz});var $B=tB(OB,{applyAnimatedValues:RB,createAnimatedStyle:e=>new jB(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),DR=$B.animated;function Ot({number:e,type:t}){const[n,r]=b.useState(e),o=NR({from:{number:n},to:{number:e},config:{duration:750},reset:!0,onRest:()=>r(e)}),i=e%1?e.toString().split(".")[1].length:0;return f.jsx(DR.span,{children:t==="decimal"?o.number.to(s=>s.toFixed(i)):o.number.to(s=>Math.floor(s).toLocaleString())})}function Lw(e,t,n){return e.toLocaleString(void 0,{minimumFractionDigits:t,maximumFractionDigits:n})}function At(e){const t=(~~Math.log10(e)+1)%3,r=bv("."+(t===1?2:t===2?1:0)+"~",e)(e).replace("G","B");if(parseInt(r)===1e3){const o=r[r.length-1],i={k:"M",M:"B"};return 1+(isNaN(+o)?i[o]:"")}return r}const NB={"Programmatically Closed":"Project(s) which have completed the implementation and their project end date is over","Under Implementation":"Project(s) which are still under implementation stage where Project Implementation End date is greater than today","Financially Closed":"Project(s) which have closed all stage of Final Report(s) and other financial transaction(s). Based on the new Global guidance of CBPF, the audit for non-UN projects are due after 9 months of implementation. Final financial reports for UN Project(s) are due for end of June of the following year after the programmatic implementation"};function LB({dataStatuses:e,implementationStatus:t,setImplementationStatus:n}){const r=Object.values(e).reduce((i,s)=>i+s,0);function o(i){n(t.includes(i)?t.filter(s=>i!==s):[...t,i])}return f.jsxs(q,{sx:{width:"100%",zIndex:100},children:[f.jsxs(Ke,{pb:2,pt:2,xs:12,display:"flex",alignItems:"center",justifyContent:"flex-start",children:[f.jsx(ye,{variant:"h6",style:{color:"darkslategray"},children:"Implementation Statuses"}),f.jsx(Wa,{"data-tooltip-id":"tooltip","data-tooltip-html":"These are the tree statuses of the projects: implemented, under implementation, and closed/under closure.
Click 'Remove' to remove a status from the calculated values, or 'Add' to add it back.","data-tooltip-place":"top",style:{color:"#666",fontSize:"20px",marginLeft:"0.1em",alignSelf:"flex-start",marginTop:"-0.1em"}})]}),f.jsx(Ke,{container:!0,gap:2,sx:{width:"100%",flexWrap:"nowrap"},children:Object.entries(e).map(([i,s])=>f.jsx(DB,{handleClick:o,status:i,statusValue:s,total:r,implementationStatus:t},i))})]})}function DB({handleClick:e,status:t,statusValue:n,total:r,implementationStatus:o}){const i=Yc().domain([0,r]).range([0,100]),s=90,a=o.includes(t);return f.jsx(Ke,{xs:4,children:f.jsx(rz,{variant:"outlined",sx:{flexGrow:1,flex:"1 0 auto",borderColor:a?Fe.contrastColor:null},children:f.jsxs(pz,{sx:{padding:"8px 18px 8px 18px"},children:[f.jsxs(Ke,{container:!0,alignItems:"center",children:[f.jsxs(Ke,{xs:8,container:!0,children:[f.jsx(ye,{variant:"h6",fontSize:"1em",gutterBottom:!0,children:t}),f.jsx(Wa,{"data-tooltip-id":"tooltip","data-tooltip-content":NB[t],"data-tooltip-place":"top",style:{color:"#666",fontSize:"16px",marginLeft:"0.1em",alignSelf:"flex-start",marginTop:"-0.1em"}})]}),f.jsx(Ke,{container:!0,xs:4,alignSelf:"flex-start",justifyContent:"flex-end",children:f.jsx(lz,{children:f.jsx(ps,{size:"small",style:{backgroundColor:"whitesmoke"},variant:"text",onClick:()=>e(t),children:a?"Remove":"Add"})})})]}),f.jsxs(ye,{"data-tooltip-id":"tooltip","data-tooltip-content":`${t}: $${n.toLocaleString()}`,"data-tooltip-place":"top",color:Fe.unColor,style:{fontSize:"2.5em",fontWeight:500,display:"inline-block",opacity:a?1:.75,filter:a?"none":"grayscale(100%)"},children:["$",n<1e3?f.jsx(Ot,{number:Math.floor(n),type:"integer"}):f.jsxs("span",{children:[f.jsx(Ot,{number:parseFloat(At(n)),type:"decimal"}),At(n).slice(-1)]})]}),f.jsx(q,{mt:2,mb:0,style:{display:"flex",alignItems:"center",width:"100%",opacity:a?1:.75,filter:a?"none":"grayscale(100%)"},"data-tooltip-id":"tooltip","data-tooltip-content":`The total amount of allocations for ${t} projects is $${Lw(n,0,2)}, which represents ${(n/r*100).toFixed(1)}% of the total allocations for all statuses (${Lw(r,0,2)}).`,"data-tooltip-place":"top",children:f.jsx(q,{style:{width:i(n)+"%",minWidth:"1px",height:"18px",transitionProperty:"width",transitionDuration:"0.75s",display:"flex",alignItems:"center",backgroundColor:Fe.contrastColorDarker},children:f.jsxs(ye,{fontSize:12,fontWeight:700,style:{position:"relative",left:i(n)FB?n="Under Implementation":VB.includes(t.statuses[e.projectStatusId])?n="Financially Closed":n="Programmatically Closed",n}function mr(e){return e.charAt(0).toUpperCase()+e.slice(1)}const{beneficiariesStatuses:UB,beneficiaryCategories:HB,reportsForDisability:GB,reportsForGBV:qB}=Cn;function QB({data:e,year:t,fund:n,allocationSource:r,allocationType:o,implementationStatus:i,lists:s}){const a=[],l={targetedMen:0,targetedWomen:0,targetedBoys:0,targetedGirls:0,reachedMen:0,reachedWomen:0,reachedBoys:0,reachedGirls:0},c={targetedMen:0,targetedWomen:0,targetedBoys:0,targetedGirls:0,reachedMen:0,reachedWomen:0,reachedBoys:0,reachedGirls:0,totalReports:0,reportsWithData:0},u={allocations:0,allocationsGBVPlanned:0,allocationsGBVReached:0,targeted:0,targetedGBV:0,reached:0,reachedGBV:0,totalReports:0,reportsWithData:0},d={years:new Set,funds:new Set,allocationSources:new Set,allocationTypes:new Set};return e.forEach(p=>{const h=bo(p,s);if(i.includes(h)&&t.includes(p.year)&&n.includes(p.fund)&&r.includes(p.allocationSource)&&o.includes(p.allocationType)){const v=a.find(m=>m.year===p.year);v?(v.allocations+=p.budget,v.projects.add(p.projectId),v.partners.add(p.organizationId),h.includes("Under Implementation")&&(v.underImplementation+=p.budget)):a.push({year:p.year,allocations:p.budget,projects:new Set([p.projectId]),partners:new Set([p.organizationId]),underImplementation:h.includes("Under Implementation")?p.budget:0}),UB.forEach(m=>{const C=`disabled${mr(m)}`;HB.forEach(g=>{l[`${m}${mr(g)}`]+=p[m][g],c[`${m}${mr(g)}`]+=p[C][g]})}),c.totalReports+=1,GB.includes(p.reportType)&&(c.reportsWithData+=1),u.allocations+=p.budget,u.allocationsGBVPlanned+=p.budgetGBVPlanned,u.allocationsGBVReached+=p.budgetGBVReached,u.targeted+=Object.values(p.targeted).reduce((m,C)=>m+C,0),u.targetedGBV+=p.targetedGBV,u.reached+=Object.values(p.reached).reduce((m,C)=>m+C,0),u.reachedGBV+=p.reachedGBV,u.totalReports+=1,qB.includes(p.reportType)&&(u.reportsWithData+=1)}t.includes(p.year)&&n.includes(p.fund)&&r.includes(p.allocationSource)&&d.allocationTypes.add(p.allocationType),t.includes(p.year)&&n.includes(p.fund)&&o.includes(p.allocationType)&&d.allocationSources.add(p.allocationSource),t.includes(p.year)&&r.includes(p.allocationSource)&&o.includes(p.allocationType)&&d.funds.add(p.fund),n.includes(p.fund)&&r.includes(p.allocationSource)&&o.includes(p.allocationType)&&d.years.add(p.year)}),a.sort((p,h)=>h.year-p.year),{dataSummary:a,dataPictogram:l,dataDisability:c,dataGBV:u,inSelectionData:d}}const{implementationStatuses:KB}=Cn;function ZB({data:e,year:t,fund:n,allocationSource:r,allocationType:o,lists:i}){const s=KB.reduce((a,l)=>(a[l]=0,a),{});return e.forEach(a=>{const l=bo(a,i);t.includes(a.year)&&n.includes(a.fund)&&r.includes(a.allocationSource)&&o.includes(a.allocationType)&&(s[l]+=a.budget)}),s}function YB(e){return f.jsx(mo,{...e,children:f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",fill:"currentColor",children:[f.jsx("path",{d:"M83.277,10.493l-13.132,12.22H22.821L9.689,10.493c0,0,6.54-9.154,17.311-10.352c10.547-1.172,14.206,5.293,19.493,5.56 c5.273-0.267,8.945-6.731,19.479-5.56C76.754,1.339,83.277,10.493,83.277,10.493z"}),f.jsx("path",{d:"M48.297,69.165v9.226c1.399-0.228,2.545-0.768,3.418-1.646c0.885-0.879,1.321-1.908,1.321-3.08 c0-1.055-0.371-1.966-1.113-2.728C51.193,70.168,49.977,69.582,48.297,69.165z"}),f.jsx("path",{d:"M40.614,57.349c0,0.84,0.299,1.615,0.898,2.324c0.599,0.729,1.504,1.303,2.718,1.745v-8.177 c-1.104,0.306-1.979,0.846-2.633,1.602C40.939,55.61,40.614,56.431,40.614,57.349z"}),f.jsx("path",{d:"M73.693,30.584H19.276c0,0-26.133,20.567-17.542,58.477c0,0,2.855,10.938,15.996,10.938h57.54 c13.125,0,15.97-10.938,15.97-10.938C99.827,51.151,73.693,30.584,73.693,30.584z M56.832,80.019 c-2.045,1.953-4.89,3.151-8.535,3.594v4.421H44.23v-4.311c-3.232-0.318-5.853-1.334-7.875-3.047 c-2.018-1.699-3.307-4.102-3.864-7.207l7.314-0.651c0.3,1.25,0.856,2.338,1.677,3.256c0.823,0.911,1.741,1.575,2.747,1.979v-9.903 c-3.659-0.879-6.348-2.22-8.053-3.997c-1.716-1.804-2.565-3.958-2.565-6.523c0-2.578,0.96-4.753,2.897-6.511 c1.937-1.751,4.508-2.767,7.721-3.034v-2.344h4.066v2.344c2.969,0.306,5.338,1.159,7.09,2.565c1.758,1.406,2.877,3.3,3.372,5.658 l-7.097,0.774c-0.43-1.849-1.549-3.118-3.365-3.776v9.238c4.485,1.035,7.539,2.357,9.16,3.984c1.634,1.635,2.441,3.725,2.441,6.289 C59.898,75.656,58.876,78.072,56.832,80.019z"})]})})}var Fy={},XB=Sn;Object.defineProperty(Fy,"__esModule",{value:!0});var zR=Fy.default=void 0,JB=XB(rr()),eF=f;zR=Fy.default=(0,JB.default)((0,eF.jsx)("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5z"}),"FileDownloadOutlined");var Wy={},tF=Sn;Object.defineProperty(Wy,"__esModule",{value:!0});var BR=Wy.default=void 0,nF=tF(rr()),rF=f;BR=Wy.default=(0,nF.default)((0,rF.jsx)("path",{d:"M20.13 5.41 18.72 4l-9.19 9.19-4.25-4.24-1.41 1.41 5.66 5.66zM5 18h14v2H5z"}),"FileDownloadDoneOutlined");function Ua({handleDownloadClick:e,clickedDownload:t,setClickedDownload:n,type:r}){return f.jsx(q,{style:{position:"absolute",top:"0",right:"0",padding:"0.5em",cursor:"pointer",zIndex:1e3},onClick:()=>{n(o=>({...o,[r]:!0})),t[r]||e()},children:t[r]?f.jsx(BR,{className:"downloadIcon",fontSize:"large",style:{color:"dimgray"},"data-tooltip-id":"tooltip","data-tooltip-html":"
Download started, check
your browser's download folder.
","data-tooltip-place":"bottom"}):f.jsx(zR,{className:"downloadIcon",fontSize:"large",style:{color:"dimgray"},"data-tooltip-id":"tooltip","data-tooltip-html":`
${r==="indicators"?"Download CSV data file
for all sectors":"Download CSV data file"}
`,"data-tooltip-place":"bottom"})})}const yi=(e,t)=>{const n=US(e),r=new Blob([n],{type:"text/csv;charset=utf-8;"}),o=document.createElement("a");if(o.download!==void 0){const i=URL.createObjectURL(r);o.setAttribute("href",i),o.setAttribute("download",t),o.setAttribute("style","visibility:hidden"),document.body.appendChild(o),o.click(),document.body.removeChild(o)}};function oF({year:e,allocations:t,projects:n,partners:r,underImplementation:o,last:i}){return f.jsxs(f.Fragment,{children:[f.jsxs(q,{mb:1,style:{width:"100%",display:"flex",flexDirection:"column"},children:[f.jsx(q,{style:{fontSize:"0.8rem",fontWeight:900,color:Fe.unColor},children:e}),f.jsx(q,{style:{display:"flex",flexDirection:"row",justifyContent:"space-between"},children:[t,o,n.size,r.size].map((s,a)=>f.jsxs(q,{style:{display:"flex",flex:"0 24%",flexDirection:"column"},...a===0&&{"data-tooltip-id":"tooltip","data-tooltip-content":`Allocations: $${yn(",.2f")(s)}`,"data-tooltip-place":"top"},...a===1&&{"data-tooltip-id":"tooltip","data-tooltip-content":`Allocations under implementation: $${yn(",.2f")(s)}`,"data-tooltip-place":"top"},children:[f.jsxs(q,{style:{fontSize:"1.6rem",fontWeight:500,color:"#222"},children:[a>1?"":"$",s<1e4?f.jsx(Ot,{number:s,type:"decimal"}):f.jsxs("span",{children:[f.jsx(Ot,{number:parseFloat(At(s)),type:"decimal"}),At(s).slice(-1)]})]}),f.jsx(q,{style:{fontSize:"0.8rem",color:"#666",marginTop:"-0.4em"},children:["Allocation","Under impl.","Project","Partner"][a].toUpperCase()+(s>1&&a!==1?"S":"")})]},a))})]}),!i&&f.jsx(ro,{style:{width:"90%"}})]})}const{beneficiariesSplitOrder:iF}=Cn,Yr="N/A";function sF({data:e,lists:t,year:n,fund:r,allocationSource:o,allocationType:i,implementationStatus:s}){const a=[];return e.forEach(l=>{const c=bo(l,t);if(bs(c,l,n,r,o,i,s)){const u=xs(l,t,c);a.push({...u,Partner:t.organizations[l.organizationId]})}}),a}function aF({data:e,lists:t,year:n,fund:r,allocationSource:o,allocationType:i,implementationStatus:s}){const a=[];return e.forEach(l=>{const c=bo(l,t);if(bs(c,l,n,r,o,i,s)){const u=xs(l,t,c);a.push({...u,"Targeted Women":l.targeted.women,"Targeted Men":l.targeted.men,"Targeted Girls":l.targeted.girls,"Targeted Boys":l.targeted.boys,"Reached Women":l.reached.women,"Reached Men":l.reached.men,"Reached Girls":l.reached.girls,"Reached Boys":l.reached.boys})}}),a}function lF({data:e,lists:t,year:n,fund:r,allocationSource:o,allocationType:i,implementationStatus:s}){const a=[];return e.forEach(l=>{const c=bo(l,t);if(bs(c,l,n,r,o,i,s)){const u=xs(l,t,c);a.push({...u,"Targeted Women":l.disabledTargeted.women,"Targeted Men":l.disabledTargeted.men,"Targeted Girls":l.disabledTargeted.girls,"Targeted Boys":l.disabledTargeted.boys,"Reached Women":l.disabledReached.women,"Reached Men":l.disabledReached.men,"Reached Girls":l.disabledReached.girls,"Reached Boys":l.disabledReached.boys})}}),a}function cF({data:e,lists:t,year:n,fund:r,allocationSource:o,allocationType:i,implementationStatus:s}){const a=[];return e.forEach(l=>{const c=bo(l,t);if(bs(c,l,n,r,o,i,s)){const u=xs(l,t,c);a.push({...u,"GBV budget planned":l.budgetGBVPlanned,"GBV budget reached":l.budgetGBVReached,"GBV targeted people":l.targetedGBV,"GBV reached people":l.reachedGBV})}}),a}function uF({data:e,lists:t,year:n,fund:r,allocationSource:o,allocationType:i,implementationStatus:s}){const a=[];return e.forEach(l=>{const c=bo(l,t);if(bs(c,l,n,r,o,i,s)){const u=xs(l,t,c);iF.forEach(d=>{(Dw(l.targetedByBeneficiaryType[d])||Dw(l.reachedByBeneficiaryType[d]))&&a.push({...u,"Beneficiary Type":t.beneficiaryTypes[d],"Targeted Women":l.targetedByBeneficiaryType[d].women,"Targeted Men":l.targetedByBeneficiaryType[d].men,"Targeted Girls":l.targetedByBeneficiaryType[d].girls,"Targeted Boys":l.targetedByBeneficiaryType[d].boys,"Reached Women":l.reachedByBeneficiaryType[d].women,"Reached Men":l.reachedByBeneficiaryType[d].men,"Reached Girls":l.reachedByBeneficiaryType[d].girls,"Reached Boys":l.reachedByBeneficiaryType[d].boys})})}}),a}function dF({data:e,lists:t,year:n,fund:r,allocationSource:o,allocationType:i,implementationStatus:s}){const a=[];return e.forEach(l=>{const c=bo(l,t);if(bs(c,l,n,r,o,i,s)){const u=xs(l,t,c);l.sectorData.forEach(d=>{a.push({...u,Sector:t.sectors[d.sectorId],"Targeted Women":d.targeted.women,"Targeted Men":d.targeted.men,"Targeted Girls":d.targeted.girls,"Targeted Boys":d.targeted.boys,"Reached Women":d.reached.women,"Reached Men":d.reached.men,"Reached Girls":d.reached.girls,"Reached Boys":d.reached.boys})})}}),a}function fF({data:e,lists:t,year:n,fund:r,allocationSource:o,allocationType:i,implementationStatus:s}){const a=[];return e.forEach(l=>{const c=bo(l,t);if(bs(c,l,n,r,o,i,s)){const u=xs(l,t,c);a.push({...u,Organization:t.organizations[l.organizationId],"Targeted Women":l.targeted.women,"Targeted Men":l.targeted.men,"Targeted Girls":l.targeted.girls,"Targeted Boys":l.targeted.boys,"Reached Women":l.reached.women,"Reached Men":l.reached.men,"Reached Girls":l.reached.girls,"Reached Boys":l.reached.boys})}}),a}function pF({allSectorsData:e,lists:t}){const n=[];return e.sectorData.forEach(r=>{n.push({Indicator:t.globalIndicators[r.indicatorId],sector:t.sectors[r.sector],"Unit of values":r.unit==="%"?"percentage":r.unitName,"Targeted Women":r.targeted.women??Yr,"Targeted Men":r.targeted.men??Yr,"Targeted Girls":r.targeted.girls??Yr,"Targeted Boys":r.targeted.boys??Yr,"Targeted Total":r.targetedTotal??Yr,"Reached Women":r.reached.women??Yr,"Reached Men":r.reached.men??Yr,"Reached Girls":r.reached.girls??Yr,"Reached Boys":r.reached.boys??Yr,"Reached Total":r.reachedTotal??Yr})}),n}function Dw(e){return Object.values(e).some(t=>t>0)}function xs(e,t,n){return{Year:e.year,Fund:t.fundNames[e.fund],"Allocation Source":t.allocationSources[e.allocationSource],"Allocation Type":t.allocationTypes[e.allocationType],"Implementation Status":n,"Project Code":e.projectCode,Budget:e.budget}}function bs(e,t,n,r,o,i,s){return s.includes(e)&&n.includes(t.year)&&r.includes(t.fund)&&o.includes(t.allocationSource)&&i.includes(t.allocationType)}function hF({dataSummary:e,clickedDownload:t,setClickedDownload:n,year:r,fund:o,allocationSource:i,allocationType:s,implementationStatus:a}){const{data:l,lists:c}=b.useContext(Fo);function u(){const v=sF({data:l,lists:c,year:r,fund:o,allocationSource:i,allocationType:s,implementationStatus:a});yi(v,"summary")}const d=_r(e,v=>v.allocations),p=_r(e,v=>v.projects.size),h=_r(e,v=>v.partners.size);return f.jsxs(Ba,{disableGutters:!0,style:{position:"relative"},children:[f.jsx(Ua,{handleDownloadClick:u,clickedDownload:t,setClickedDownload:n,type:"summary"}),f.jsxs(q,{display:"flex",alignItems:"center",justifyContent:"center",gap:2,marginBottom:4,"data-tooltip-id":"tooltip","data-tooltip-content":`Total allocations: $${yn(",.2f")(d)}`,"data-tooltip-place":"top",children:[f.jsx(YB,{style:{fontSize:60,fill:Fe.unColor}}),f.jsxs(q,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:0,children:[f.jsx(ye,{variant:"h3",fontWeight:500,style:{color:Fe.unColor,border:"none"},children:d<1e3?f.jsx(Ot,{number:d,type:"decimal"}):f.jsxs("span",{children:[f.jsx(Ot,{number:parseFloat(At(d)),type:"decimal"}),At(d).slice(-1)]})}),f.jsx(ye,{style:{marginTop:"-0.6em",fontSize:18,color:"#444"},children:"Allocations"})]}),f.jsx(ro,{orientation:"vertical",flexItem:!0}),f.jsx(q,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:0,children:[p,h].map((v,m)=>f.jsxs(q,{display:"flex",flexDirection:"row",alignItems:"baseline",justifyContent:"center",gap:1,children:[f.jsx(ye,{fontWeight:500,fontSize:22,style:{color:Fe.unColor,border:"none"},children:f.jsx(Ot,{number:v,type:"integer"})}),f.jsx(ye,{style:{fontSize:16,color:"#444"},children:m?"Partners":"Projects"})]},m))})]}),f.jsx(q,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:1,marginLeft:4,children:e.map((v,m)=>f.jsx(oF,{year:v.year,allocations:v.allocations,projects:v.projects,partners:v.partners,underImplementation:v.underImplementation,last:m===e.length-1},v.year))})]})}const mF=ft.memo(hF);var Vy={},gF=Sn;Object.defineProperty(Vy,"__esModule",{value:!0});var Uo=Vy.default=void 0,vF=gF(rr()),yF=f;Uo=Vy.default=(0,vF.default)((0,yF.jsx)("path",{d:"M11.71 17.99C8.53 17.84 6 15.22 6 12c0-3.31 2.69-6 6-6 3.22 0 5.84 2.53 5.99 5.71l-2.1-.63C15.48 9.31 13.89 8 12 8c-2.21 0-4 1.79-4 4 0 1.89 1.31 3.48 3.08 3.89zM22 12c0 .3-.01.6-.04.9l-1.97-.59c.01-.1.01-.21.01-.31 0-4.42-3.58-8-8-8s-8 3.58-8 8 3.58 8 8 8c.1 0 .21 0 .31-.01l.59 1.97c-.3.03-.6.04-.9.04-5.52 0-10-4.48-10-10S6.48 2 12 2s10 4.48 10 10m-3.77 4.26L22 15l-10-3 3 10 1.26-3.77 4.27 4.27 1.98-1.98z"}),"AdsClick");var Uy={},xF=Sn;Object.defineProperty(Uy,"__esModule",{value:!0});var Ho=Uy.default=void 0,bF=xF(rr()),wF=f;Ho=Uy.default=(0,bF.default)((0,wF.jsx)("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done");function CF({type:e,reached:t,targeted:n,maxNumberOfPictograms:r,maxValue:o}){const s=Array.from(Array(r).keys()),a=Yc().domain([0,o]).range([0,100]);return f.jsxs(q,{style:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},children:[f.jsx(q,{style:{flex:"0 12%",display:"flex",alignItems:"center",justifyContent:"flex-end"},children:f.jsx(ye,{variant:"body2",fontWeight:500,marginRight:.5,style:{color:"#555",border:"none"},children:e.toUpperCase()})}),f.jsx(q,{style:{flex:"0 78%",display:"flex",flexDirection:"column",alignItems:"center"},children:[n,t].map((l,c)=>f.jsxs(q,{style:{display:"flex",flexDirection:"row",width:"100%",alignItems:"center"},"data-tooltip-id":"tooltip","data-tooltip-content":`${mr(e)} ${c?"reached":"targeted"}: ${yn(",.0f")(l)}`,"data-tooltip-place":"top",children:[f.jsxs(q,{style:{flex:"0 28%",display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"baseline",marginRight:"12px"},children:[f.jsxs(ye,{variant:"body2",fontWeight:500,fontSize:c?24:18,style:{color:"#222",border:"none"},children:[f.jsx(Ot,{number:parseFloat(At(l)),type:"decimal"}),isNaN(+At(l).slice(-1))?At(l).slice(-1):""]}),f.jsx(ye,{variant:"body2",fontWeight:400,style:{border:"none",display:"flex",alignItems:"center"},children:c?f.jsx(Ho,{style:{fontSize:18,marginLeft:3,color:"#777",opacity:.6}}):f.jsx(Uo,{style:{fontSize:18,marginLeft:3,color:"#777",opacity:.6}})})]}),f.jsx(q,{style:{flex:"0 72%",marginTop:"2px",marginBottom:"2px",display:"flex",alignItems:"center",width:"100%"},children:f.jsx(q,{style:{width:a(l)+"%",overflow:"hidden",display:"flex",flexWrap:"nowrap",transitionProperty:"width",transitionDuration:"0.75s"},children:s.map((u,d)=>f.jsx(jc,{svgProps:{style:{width:12,fill:c?Fe.unColor:Fe.contrastColorLighter}},type:e},d))})})]},c))}),f.jsx(q,{style:{flex:"0 10%",display:"flex",justifyContent:"center",alignItems:"center"},children:f.jsxs(ye,{variant:"body2",style:{fontSize:12,color:"#444",border:"none",fontStyle:"italic"},children:[f.jsx(Ot,{number:~~(t*100/n),type:"integer"}),"%"]})})]})}const{beneficiaryCategories:SF}=Cn;function AF({dataPictogram:e,clickedDownload:t,setClickedDownload:n,year:r,fund:o,allocationSource:i,allocationType:s,implementationStatus:a}){const{data:l,lists:c}=b.useContext(Fo),u=e.targetedBoys+e.targetedGirls+e.targetedMen+e.targetedWomen,d=e.reachedBoys+e.reachedGirls+e.reachedMen+e.reachedWomen,p=mv(Object.values(e))||0,h=22;function v(){const m=aF({data:l,lists:c,year:r,fund:o,allocationSource:i,allocationType:s,implementationStatus:a});yi(m,"people_targeted_reached")}return f.jsxs(Ba,{disableGutters:!0,style:{position:"relative"},children:[f.jsx(Ua,{handleDownloadClick:v,clickedDownload:t,setClickedDownload:n,type:"pictogram"}),f.jsxs(q,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",gap:2,marginBottom:2,width:"90%",children:[f.jsx(jc,{svgProps:{style:{fontSize:72,fill:Fe.unColor}},type:"total"}),f.jsxs(q,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:0,"data-tooltip-id":"tooltip","data-tooltip-content":`People targeted: ${yn(",.0f")(u)}`,"data-tooltip-place":"top",children:[f.jsx(ye,{variant:"h3",fontWeight:500,style:{color:Fe.contrastColor,border:"none"},children:u<1e3?f.jsx(Ot,{number:u,type:"integer"}):f.jsxs("span",{children:[f.jsx(Ot,{number:parseFloat(At(u)),type:"decimal"}),At(u).slice(-1)]})}),f.jsxs(ye,{noWrap:!0,style:{marginTop:"-0.6em",fontSize:18,color:Fe.contrastColorDarker,display:"flex",alignItems:"center"},children:["People Targeted",f.jsx(Uo,{style:{fontSize:18,marginLeft:4,color:"#777",opacity:.6}})]})]}),f.jsx(ro,{orientation:"vertical",flexItem:!0,style:{borderLeft:"2px dotted #ccc",borderRight:"none"}}),f.jsxs(q,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:0,"data-tooltip-id":"tooltip","data-tooltip-content":`People reached: ${yn(",.0f")(d)}`,"data-tooltip-place":"top",children:[f.jsxs(ye,{noWrap:!0,variant:"h3",fontWeight:500,style:{color:Fe.unColor,border:"none"},children:[d<1e3?f.jsx(Ot,{number:d,type:"integer"}):f.jsxs("span",{children:[f.jsx(Ot,{number:parseFloat(At(d)),type:"decimal"}),At(d).slice(-1)]}),f.jsxs("span",{style:{color:"#666",fontSize:14,fontStyle:"italic",marginLeft:"6px"},children:["(",f.jsx(Ot,{number:~~(d*100/u),type:"integer"}),"%)"]})]}),f.jsxs(ye,{noWrap:!0,style:{marginTop:"-0.6em",fontSize:18,color:Fe.unColor,display:"flex",alignItems:"center"},children:["People Reached",f.jsx(Ho,{style:{fontSize:18,marginLeft:4,color:"#777",opacity:.6}})]})]})]}),f.jsxs(q,{display:"flex",flexDirection:"column",width:"95%",marginLeft:"3%",alignItems:"center",gap:3,marginTop:4,children:[f.jsx(q,{mb:-2,style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end",textAlign:"right",width:"100%"},children:f.jsxs(ye,{variant:"body2",fontSize:12,style:{color:"#222",border:"none",fontStyle:"italic",letterSpacing:"-0.05em"},children:["Reached as %",f.jsx("br",{}),"of targeted"]})}),SF.map(m=>f.jsx(CF,{type:m,targeted:e["targeted"+mr(m)],reached:e["reached"+mr(m)],maxNumberOfPictograms:h,maxValue:p},m))]}),f.jsx(q,{marginLeft:"3%",marginTop:4,display:"flex",alignItems:"center",children:f.jsxs(ye,{style:{color:"#666",fontSize:12,display:"flex",alignItems:"center",whiteSpace:"pre"},children:["Each symbol (",f.jsx(jc,{svgProps:{style:{fontSize:14,fill:"#666"}},type:"total"}),") represents ",f.jsx(Ot,{number:parseFloat(At(p/h)),type:"decimal"}),At(p/h).slice(-1).replace("k"," thousand").replace("M"," million")+" people"]})})]})}const kF=ft.memo(AF),Hy={1:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAsCAYAAAAjFjtnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGKUlEQVRogcVYW2xUVRRd63ZKW6O0YKkfEnVmGhMVTbDxgYpDK0bFH43iBxH58E9FOtXyEGlTC9pa27EaTfzwFdQfEDExESN2WgXfMVH5wk6LDQElBWdAobUzZ/kxD9rO3DvPxvV399l7r7XvOfvccy4xB7izZ7gu6rLaIK0BAJAfuKLmuc9b60+UmoulTNbwxo/lF/2z8DEQHQSqZwwKf4PqNWGra6jDPVEqzpIV4OsLrSTQT/LqLK7DJJ4ZaPbsKgVv0QXcHhi9ypLpJXlPPnGCgjT0B5/y/FwMf8EF3PHq0YvN1GSbgMdJlhWSQ5AB8L5FtA40e/8sJEfeBTiu80JRRH/kVYAvMHqfBfUAqM9NFwYSJE05UgwbsHXI796bq6acCihgnc9o1DwaHEB+/eFYQN7r3GEp5Lv0cu2PjAXMFRlQ2peSsYC5nO7pKHZZJpEqoFQJ80WxL4y+9qCL1Zf1AFify5QKiBDYURs+27+rY8m/xYhPYnX7oXnjNRdsELA1pyUrxQC8qshYKxsDoW6AG3MJIvGmK6ptc3EoA5KHQHZKeDS3/lA3V/SN/EHiEkc/YMCi/APN3l9KptYBTS+HrjNiIPv3Q8ezFZD3h6WUyP7h1HELxNtpZiACobU2fPaa/0s8AAz53Xtrw2evgdAqIDJ7XOC79LUHXVb1ZdtBrAMgCLtcMe2Yq3VeKO7sGa6LlnEriNUAKPCdRZe6n/2/dRUNx6NEfHur6gSwVoII7KyNnGsr1fZZCj6XU8Lx6qrnklss46VuGq+uAoDNpZNdHJ/lmJF4JINtXREanVEAn+MMSBBnLTIBsVy0rAiEWgBuAgBKXcEWbyBbTCF8jjNAYGcGawbbTKzoHfER7CVQR6AOZF9jYOT2bHGF8DnOQG3kXNt4dRUErE0SLIqca88qhLghzSjcCODLUvOV9L9QEk19oeUiz4uVJGj5YEv9wVJzOTdxgRho8X4lYIOkY5KO0cKTcyEesJmBlV2h6mglHoThXYSWCKgDWE7gtKBfCX46VVn23oHHLv+rFCJue/33BeUTsYcF3UPwWgHzAU0ROCHwEKl9FVZs974NV552LCBxN9hI4GmQCxxZ41e95014rGeoozGa2Ufx/KQyDcevrgtaCW4BcaEznU5R6Kld7OnZ9RBTO1OqgMRddTfIFY7C0xMHXZO4f/9mbwRI/djdIOkBkO5EIaMEd7ti5pXkGcsXGK2xYPYC9OXLV+aqWP3F+sUnUwXc3DtWVcnofhK35JMslVT4urIs2vSvKW8yMjtJXmzjOm4M11a5poITsbIgyWXTskwArLRhmD120IS5cqjDPWEBQBWj21PiJUnanoPu5yEJAEjcMmlcHwpmj4N4AKi1LPPRRMy1JyU+vkN1AnzTPoxvCepM8gG4lTWmEwCs5a8ccYt44rwvNw22eLdlUx/0e7aK3DLNdK/9G5whppLEquSTiG2Dfm8boAbbEKlh0O9tA9l23sb1vsDoFVZZLLaGwLyE+WCw2f1SdhFxDDa7X5T0zSwy+51p1piA7wf93h139x+ukLjUNoxc6msfrQw2u3dI+AEASFRQZo0FcdV5V/Oa3Y6REXHf12aKYte0qUba2PRwo34AmDLl15OosKUB5rE61hDni8fE6bnKIuVJGqIxHchZfFIUrRkfqDIj2ysoiY+nP1t0fQsAMWOybh6EtQwAJPNdiltyWwIuij9g0jpz9Hh+8gGEjxyVMJnMET0zNmLnasK/h2b4RkbGEpXdlI1GQLzpTx89kswBoMai0CvpJKku2w+SA4Y6GqOEuqfnEJD2IiQdS+R/AcD4dD4mxTmA1LJ0PvTYHuYaAyOOvRD0e+xj+0JdYPwukCoA6Br0e7bM9m1448fy+WcX5nRFNWFWzf7B63icLhT5HIsXTcy3JqRYtj9x8d+J6e/MaQZOI9EfacmAyKDfU+NEmA8a+0LfZuuD+JbrSfOxPU4L2u+Q7rN8BGaDodWVzYcw3ZnstgUQ3CLo1Gy7oFOyYk/lJ9EZQ373Xgkv2DpI3UF//Z5MQ443Ml//4cWMufoA3JUw7TeW2fxlc/1vBat1QGPv8CpYll/SUhAk+JOh+oeavZ/YxfwHOYQxBpRQSIUAAAAASUVORK5CYII=",2:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAtCAYAAADoSujCAAAACXBIWXMAAAsTAAALEwEAmpwYAAAEYElEQVRogdWXX0xbZRjGf++hIAUdm24xCwHTMi80xAtYtBcmZVUDcbJpBBbjjFtixCiJUrLsTsKVmUkBE6Mj8ca4+Qc2FyYxUQKli5mLgRi98cbCJHMmZmHgxh8LPa8XUIECpedwSspz+Z33+d7nd877fWmFDMjf+Xu5oVKHylOKekEeQHQa5C/gF+ByLPbvt1dPP3Jnq71k63GXFfjg+qNqxkMo1Yik3FvRCVF5z5ySDyNtnjm7PR0DCLSPvaFidoDkW/Gp8quKHI00e67b6WvYMa0bRPR9q+EBRHjMUP0pEIo+bqevcwBwClW1ZRb2mYZ8X9Ux+oRVq2MAQ83eLhNeV9S04xcoAr7zh8Z8Fn3Oyt8efU2ELkFsvRyFKTWlJtLiuZZOveMAsL0QGQGA7YNw7AwkKxIs+0Sgye7BFigSQ3tRTfmSMwYAEG4u+xjhLdu3kzKMSEpvRgFgEUJFzlg2KgNz6qrbrCzjAAA5ol9b9ajonl3gBqjsGs6t6hh9t6oz+mJy3bYAxKHUqkeQipgx3x/ojD5438yerwTaxKSnqmO0cXVdhuULjbvzjfkfBKmw41d0WpDC5QVVwXhzMOg5C9vwBUpKSmKC/GbXvyo8gIgo5keBzmjT4vMMyRcadxcQ9w22eML+1rBLdpeeF6TBsQaqisiJjAD4QuPufFnoFeGQqfpSJFh2wd8adhlFpecQOeZUH1W96fgIrQj/DOAyRL7wt0frIm2HFsyp8eOgXy4nYEBMCShM2eklEHMcwG0stCyFT2gVxN5i7yKEMjCrrtrBFk8YqLYKoapxUSPoOMA/BRNnFL2UtPw/RE+DxPcWe4/Pqqv2WkvpLMC+yZmfgZF0e6hqHHh1sMVzyZEz4AuNu93GQo8pejbyTllfZddw7uLdLS8klS6gZnU4eGAwsVDfrTm3boxeQOR5K+GHgmXnwYFrNDHzwGFRuejvjD430nhw/k7B7WNrvoQSmdW8H1cuTdwcrbAbfssASQcWgTxRuRhoj9augVia+cTYJPTkbe+IKj12wi/1dCb8qmYQM1TrBoNl31R2Defumrn/9KzpCiWHT8jfGnZJ0UOfi1BvJbxtgKWZvww8vVGNQgylYSjo7U1nz/puzbn159inwMur9lGNC3IyHPR+tp7P8gitmPkNw8PiOIE2pqpZqZ4GiZuTf5xQtDuxlnjzG4Vf6pO+Uo3NGikDhYX3HOlrLJ6x0qO+W3P+vjF60hDKMczu8NsPX01VnzZAOmOTkKpe0bzZw5Gm8rvp7m9XaQFka3hIAyCbw8MmANkeHlIA7ITwsAHATgkP6wDspPCQBLDTwsMKAKvhc+MFz/af2j+d0XRpSGDnhgeQnRwewJVvzHeBbBoeZeDewvwjfY37Lf22ybQMIY1/QzZ/mG2HDJRIyoosDg9gmCKvAMPrPVTVK664+2i2hoelW8jfMbbbQPuBg4kH2Xhg15MBEGn2TBquvBqUPpS7KOfmNLcm28MD/Ac0rl/qXg0VxwAAAABJRU5ErkJggg==",3:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAA7CAYAAAA9xQlEAAAACXBIWXMAAAsTAAALEwEAmpwYAAACWUlEQVRoge2av2tTURSAv/OSWLCgFrolQ0pc/BfEYiIqUnRw6OzYQQnaTRARHSyIDXWQ2k0noU7S2R/YxUWobtW86qBd/VG1oXnvOLRSTZ7pizftfa/cb0rePfdwP7jnnpdLpFLzFZuoXn46Xpr41/Dxifr+oE8+Rww1gRlv+1a27WRVdSzNAohIJtUCANn2RzoVKnMAGQ8JQ7kmwuGdXlhc2gRC4dHzS6X539/LNf8YJFcg9VvICdgmcQKn733c2018xCm08xy5+2Eg1wjOoIyu/GicrEzWPwGPQ49ZVnnTaW4CBOR8bjW4jpBDQABEikDVU6rBHl3qNNu+gFDoPC5DnYYTVwPd4gRs4wRsk3oB82NUWUNYAKJ+9v1HPj240QdiYSSgylfP0+EnF0uvTfK0Uqn5V4AbcWKNtpDAbK8XDzCYH7qJshIn1rQGDhjOj+Tb8tt+oC9OrJGAip4t1/yxE7eW+03y/MnRqcVCI8jcR8jFiTeqAUE8YLqZ/TldqfkmqTYJ2Xiji0fqj1EnYBvjRqaqDzzxHgYarvViQag36El4FZFDccLNBJT5Z+Olc0Y5Ihi+8/5lthnUEdmynM22kNDzJgbwolpcAr7EiTUTUB05NbW4zyhHBJXb70YQidUkzbaQSLERZBbKk/6coN+Ncm3mLCiMxm0F5m+jIkWBC111n61SdhGb+mPUCdjGCdjGCdjGCdjGCdjGCdjGCdjGCdjGCdhm9wmISv7vJ5pvjUkS0vq3S0VD0fVLJUUyIvT83qeXtF2rCOIhDKx/Tj67rwbShKKvfgFZK5MCBawJXgAAAABJRU5ErkJggg==",4:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFNklEQVRoge1ZXWxURRg9Z3YXqqj8tUSSUtilYGOIMcKDJsC2S8Co0cQoTTQxJIQHAsR2KQUUBaoQwba7LRpME+MLkICFGHmByM9miVETiWjiD3/dBQJiFGJr+O/uPT5QSrvdvezeXakPPU/3znxzvnPunTszd4b4DzC38eKIbte11SQXQ5CgNk/ywU0H6sdfLXQuFpRNYqA1/qolNRKc2L9KvxNsmN3l/bShgVahUhbMQCB05inBagUx0y5OwvcusuZQ0PttIfLmbWDOR+fHWt031wpYStKVVSNJIrar26yMrvT+kU9+xwamtx31PHx1zBIQDQRGOuEQdJVA03CT/GB/zdSbTjgcGQiE489ZssIkH7uHwC9uJ+HLtnHSCUMTPBz07stVS04GZrecnmIss5HE/FwEBZrjVRbVQuKJe6Q4CCVrI8un/JKtpqwMzG28OCLhvlYvcTWJ4TbK/xa5uaTzWri9YdqtvlX+dRG3GTlxIYANIEoyc6Ab0CeuW1h7cPXkrvwMSKxqib8BaDPARzPnlAVghyehFQfqy/+0o5y59exoz43EepBLALgzp9ZlgO+XlHo/bq9mMmcD/tDpGQS3kHzGThCgKCzWROp8P9nHpfA3xSuMsVpAPmvLDv0goiZaO/nrdPUDDMwKnRnvZnK9gEUEjQ3zeRBrIrXebSDVT9y6iNuMLHsX4EIBHlI7r1uet76rK7ueShMIdbwooBWkN3MuSeBut9GKg7WTz6U10DssAu+ReCQjGXQdwhZr2PUN0WXTrqSLqAx3rCG4IaV4ayToW5ou/unmcw8UmcSbFN4B8ZCNj2skGq1Osyna4L3Ra6AqHHtJQojE5MzCAUGfu4n61KeQiqpQ7CSIKf2T4x9/l3e03TJiVtOpCW5jGgFUg8zYvSV0kFgeCfr2sioUWwGi0U4QpB9B1kSCviO2cT2oDHUcT50jBHT5O71jslkHVYVjsyG1gnzSVhZUZ0Cssom5JGBxcalvRrbiAQDEtoFF2J7tIi4S9B0pLvXNELAYwCWbRKvcAIrT1CQAfWYlu9dEV1TYEKSHOs9t5qgyD8CFgDwSdt6Q5+1cOHqGzjZ/OL7LyFotMkhgWD/5wDhWhWMa0FrJabnMhvcDgdYzj8uyBmhKO0z+38QDwOGaSb+mK884EzqBv/lUOY3rFQhzSFQA6umevCThOIhDNIndkZqpHYXKWRAD/taTpUy6PwRUTcB1d3bpvZhAYgKAuUq6NlaGY7uM5V55uK7sQr65M8+0WaIqFJtnLPcxEq9l80ND0kXgdTFxLNDSMTff/HkZqGyO+UF9iTsjmTRwQEjFnRiiRMLeQKhjVj4aHBuY13xuDA12AywCAEEXLJnn79WONC8I6uk6LBK4xx+Oj3Kqw7GBbtO9Fj1PXtJlmqQ/Wufdf692h4PefbKsytvLZQBECaG1TnU4MjB/3c/DICy4c09wSS4jS7RuymnJLLtbogXT2456nGhxZOCv0UWzQN5+7VK8uNS7J1eOcRMmtQs6CwAEx4y8MtZ2OyYTnHUhmfLea/Ibuz+mTGivZpJA796QjMrt4jPBoYE+2yjCCUccAAT+1ufW0YfsyABdiT2STkg6YeDa4YQDAGgSO3p55Mq5GwIOZ+KeD7bCSdtC8+Q9Ew82hgwMNoYM2CES9DES9BX2ECUFQ29gsDFkYLAxZGCwMWRgsDFkYLBhBPQ7TZTg6MD5fiCdVkMgdd8/+3MAmyR9H0S6MidIp9UggUUSDkC4Iugrt9GiPJM0QbhCoMmuzBHSaP0XYBkfLLhiquwAAAAASUVORK5CYII=",5:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAA8CAYAAAAgwDn8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAGl0lEQVRoge1aW2wcZxk955+169TQoNxAIo3jS42spkU0JoQm7q7jRFQ0KoI2PABCXFS5akLiC6VUohg/UanxLSKIIFKpEQKpqUQCPISAveskRAk0BNpSUOK1E1TKJUpcJ3XsjWfm8ND1ev6ZdaPYCduHPW//+c583zk7Mzv/eE0EsHnPP28fH5/cLeJhislka+UWkEIhITHRM/ISoDjAg5OKbTvRvmJiumyC2vHxzD6QXyG4CMQjjbvS9/3/Hdto6huuJ/E5kotJfG2BcfcF67kA8d70ZhCPBIvelOOHG67e83JJY9fQp+O9Q6tulsl418jaxu6hDZAYrvlU2MOjie70Q9MLAkC8Y6TMLPRfB1k5XZB0JNVWHQ8euem5oWWuwxTIOgCu73t1g+13Dc3H/Ibe9CaJh7NDU+XlZQ/9uvnDV3MCiYme4RTJB2YopMsc9+5DO2ozBgDMQm0JmocwJaOt4WGuY/ZmzQNAzIAN8zE/7S+3IBPj45PftwSkfGEbAHeGQvWk5zwKZC8hAY/bB+mHgy01rwWpeM9IAsRmazhxZr4BfPCs3ZOPN3WfrwpyR9qrX5XwI9sjmwEg1rQzXesT9+caQL6j2K7wIEJtNqPBVFvN72cz1rDrXKXj+vcCgBczrxzdvnIkn27ZW+M/u/CBBc8QrHpnDkp9eFsBtFvT5PURZitIZnUN8a6zNcY3gVMIgOBAf1vFcJBb33dmKYUHg5zvm2/PZjzRnT4Y8/xhEgdIHIh5/nBjT/pAvGdkZVi/v3PVNYrfs0jqC/GOZCxIDbbfNSQyackcEzei1ttJ8dvwEMctaQJRktMAfx1srzwR1m3sTa9wXD9F8uFoNH6G8FPxvjPLwxV/jPshvRXQfsgsuvOjkRZSv73mOkPhHoszOh4ZbbTGPhC/jBoEXJ8/IbEiXw0ACFbQc34c5gc7KydB/s4ifa4J60ges9bCvQbgElvlnYscKFUG18bgdFgT7zuznNDG2cznegEPNuw8e2e0oj9ZK6EyrHAoy5uApQbU4iCZccsuRloDi0LN/xMx5saqp2+wdwXJGHlPmBbx35BwcVjztldywW6lpUaCtddZ8j4nYoKA9TSkTyesMY5Kr+c9Z9ZBJjIj0lNeZIY7HrMZuoak9YmPXbkaSS7wUnDtGy0La0rpnZSiQyO9JO9aZuoPkQJh9SQxGpaUlJbZ3qSLRpB1Whw61kMkq0yH1vVhxaEdtZcBvvBu5rPG9h5/qu5KdIRWh5SRLYqRZ3kTeMEA/It9nNZFmhucDDXP8zUJOCWl34LwWr5aFq+W+CVPh8lNz/2rHGSTNYE6GdYJpiGkOW0IHQvpPhU+0C2NDUgz1y2B2njPSCKs6//G8ouZqcz9kP4c9a7TmWuZdYfbV1wKV1xn4osA3h9w+kbDaFXkgyBgfctJPG5cx0lCUkDU8EDPSF1QeOyJilESvwpyRv6z+ba/x5+qu6LQ/iY7bCjfpbO26x8LADxjaYmfdnbS+uJo7D57N4iZh64kekiZo9tXjohIzcQkHfgtEQPAzmBQkJ/Y0H0uEdbdKBYY90sgAk9nTci4u6NKp9Vakv3JJ6vOGwCgaO30JHw93j1k3aip1qqTAl8Kcp5BxTz9Awr1EHYN7qh9I0g19aY/LuqrQc6X9gDZ7fTl8ku/APT36SJJhzS7OzpkvXK6ZU6zhD8CgISMcWVtruYCQr8Rsm9d0oElYxPfDdY7OmQ88QcEc14kvf52+ejBXIBTzfVTorbZjbEmtdB+Jz72RMVofKxyreSvp4ePJJ+sOj/fAANt1Ud9mFWex/uSbdWf3d+56lqwfvSO4XoC1r7IyGw71Vw/BQC5J1uqpaY/0Z3eR/LL05xjaDUDgOzNNet7wFxwpLXyb7PVXJkpx9os6IWB9qrcmbcukaVjE48J6JGQhrB3oKX6lZtpdC448s3K0xKeBzAEoOvy7aOPBevX33zNAYnu4RdJbAlyEvan2qo+f7NnmetL3tsoBig0igEKjWKAQqMYoNAoBig0igEKjWKAQqMYoNAoBig0igEKjWKAQqMYoNAoBig0igEKjVn/Or16z8sld1xd9EkSH7zRppLaAK4NsSdIdt+wQ1//HisfPTH9g0YYeQNsfDa90LsNSYAfu+GBtwLCqdscd8M7P6bbyHsJuaVsec+YBwBidcaPbc9XyhuA0MpbamgOEJDnXyBmu4mpw7fUzRxA4VA+Pm+AZGvNzwV9R9Kbt9bW9SHpTUhPJ9uqXsxX/x9naX98X733zAAAAABJRU5ErkJggg==",6:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAlCAYAAAAEGWqvAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGj0lEQVRYhd2Yf2xVZxnHP9/33gIDGUWBiVD6E5SMmA0jzg1ob2n9ETEuwZpFWExMNhe22R/8mgFtuiUbWektJNsSk5ElamLCYhCHWbUX2ttWydA5NxhMoLeUUXArY8CmUNrzPv4Brbfl9gcVqPpNTnLP8zzf93y/97zve55zxBCI1CYeMmOTsMOgmJdi8bKsN5FsKN6thIZKRqKJA4gFyTHDOkK4kj3l2fturrSRITxk1nwUVIM0tTckNMtjK4F9+VtbV8mzSVLMe+2ekZFV//J3FNxs0clwQyUb1uS9NG12znSDe4Afg8Ux+6tHLwI4zwJJnwUedc5e7TzZ9pdlW1rn3QrhveibQkVbW+cEgS1TSK/vLc05MJJ5XhBtfUrSpuSYYR0WdN8VX/u5M8XVx2b0hNx2g5hEXUN5zt9utIG+KRR4xXCaawYFtW3vqTYR8yiG647FS+edTEWW2T7UfxkJzcKlrQfWd4fd3YLlguUAkWhrY+Ds4aayvKM33AD6992QuANY6bCV+DCRaOthEzGhWNflroY/bpj/EcDSC7l1TemJN0B393ehbwHrBeMHxAucqSVSnVjUsC6n/YqpxFrDDtu4i/H4Yws+vl4DfWugJwgKMX5iZk0Y3QMuPF/ocWDX+HHjz0aiieZI9FhhVZU8LijBrG3AuHcAePQWZv2momCGhYgC5Fe2TTBss6TdujzxTKS29ZeR6kTm9RhIuY3mP3fwE7p8Wz5QhFQsuHNgjZkdaqzIvRPga9uO3H7Jh8tk9gDS/ORcpDaxG/jGAHpP1+WuT05yabf1hN17/QemUyFXsLc069BIDKTcRq/eyt9ePVgSPT4zjC8yWbGgCDQT+H1vfV3pvAvAk8CThTUnZjkXzOnNyYd/YOpuRspOvm7a+LTMez/MPdQ0JXEOKb0vI6Zb4H+G2RdHspEM+SAbDEWbW6fEnsg9P9L6/C3vTFMo7SmhlcBkgFA4NCv2eOapSG3iOeDRa4R5+9LeNbn7hxv7GgORaOJBZM8aOgrE5IKYP3tyf7wq0pNcV1x9elJ3+OIqsPtAIbBD5t2eGRlZfxrsYVZSeXDc++mT7nX4LzeU5z4DsPiF9qlpXcF+IC+51ps9FK/IfXE0BpoRiweEz0j23b1lufUAhdHjCz1+p8ScgXzDGhrLcwuHu3Ay8p9t+7TC9jyy+4UcgJc9GC/L/cVw3GvWgExRj8+R9Jmk8DQzfQ+oX7ztyHQLfJ3E9JQjmnb1/oxUJzIJ8xUg3WSJHgVNLaXzOgdS4uuz/w6sWLLlaIZz7qsSxfS4Pw/rnMHWgJmWRhMLnKMY0zIgHVHRWJ7zWkFt4hnBE6lpvDUh1LOoc8IFP/mfU2swVksKJRWYiTfsnLsvXpV9aThxRVtb5wSe1R5inHctqTipmznJmuAAV45ov5RZtkHQT9gVxJyzVXWl87oKoontEt+/5u+RhNnHyUIi247k+iCUHQqFTi05m/lOVZV8b67H9HWJDQ42kO4vFkQTLUAswP28uSLrNIxyF1r8QvvU8KVgqWAuWCDjD707RmFN6yJzei0Vz8wCSYUN5TlN+TVt98j554UWJuU/AO31zm9sKss7GqlNvAx8O8U4fc+ZodvpQdCyOvNDYFeqnDlWpGbZRXM83FiW01RQk8iX83WgCckVkj6Fcf/4bh4DcBbaYPg9hhWBFfa29ZLG9XFGY2AoVFaaa57SfpfHFwlbaEKgt4MgeKl57dx3S3ZYqLMjcUQoJ7VP+2lDRe4jA8MlOyz0wbuJLwTi88jF4uXZx2+KgeGQH20tclJ9yqRZYziYuLx+3cx/jHS8IV9obgaCCeHXDR7A2I5x0LAOjBaDR/z5E8XXI/7/AirZYaHTZ07cPtZCRoOZ0+ZcCHd2tL2ZlqJd/l/AmY62Aw4jY6yFjBpmGU6yU2OtY7QwOOUw2sdayH+Adgf8bqxVjBpSnfNyO8dax2gRhNwrLl6efRxj91iLuX7YruYfZrU5gEBaD/QMw/ivgZkFmN8IV1uJpvLswwZbxlbWyCG0uaFi7tuQ1Avln8veaGa/GTtZI4OZvTptdnZl73mfgaoqeRt3cSVmvx4bacPDsJ1pwcSS5K8e17TTlZXmmqYkKkE/QqTdWomDwOhG9nRDWU7VwI9dg74P5NcczZNCTyNb0fup41bDzALEr8z7jfE1c4+lqhn2haa4+tiM7jR9U55iQxnAbGGTb7hawNBHwEnJTpiIpXXbK/Xr8t4fivMvrwK2IWhRiN8AAAAASUVORK5CYII=",7:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAABECAYAAADHsbZQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAG10lEQVRoge1abYxcVRl+njOzHy2KtKYt1FI/aqJVJGVniiXRlAT8SMPuzlaWEJug1vBRTXemBtvGKEuNJLis7E5BpCqSJgRbiN2ZXTA2EPtDpQozpdSqsS0QCC10USq023Z2557HH3Wb3e29d+7M3NvtD59/c5/3vOd553y9572XiAg3bCnMjJ3i9wF9FeB8QgcB/iyXbvkpSIXVD8NyNBFfzh5oasLxZwl8bion4Bf5dOK2sPoyYTmaiBl873Y38QBA4NZUds/ysPqKJAAJbf4Wtj2sviIJAOJcfwPOC6uraAI4j/h/ANONeCReiX4Bc3ws/h5eV1PQ+cQTsdLRRfPiY06zWwOHDfZkmW8/890lI2GJqAdnA2i9/8VPx2LOJoErCMzwbSUJ5B4KvQOZxLbIVfqAANDWV2yjwbaKwl0g6AUK74YlSECZxLDEwzQojJRiO/1Gm6lsYRHEfSBmAoAEB8RuQlcAvCQsYbVCwCkAj8ng7sG1iSNTeSNww7h4AAB1Zz6d+Ly1dhmk0JKuWkFgBoFbjYODqWxx9VTeEPjSpCeWbwKA09Q8LNCeJ52VceZPfqS9v9gz6XF7tlAi2Dj+QNIwyF9Ruh5k8rwLDQIpk8skswBgIAxP5EjOJbDxghUPAGRvx/2FFgAwBJ+dbj01IK4YegCAKzcXPmkt9oJsmm5V1cIaLCUAdPQXb7bU1olrITi0F8K/whIloAHgFSQ+WNFWuufsSdz2QDFpLH4E4DoEyJEkHaDQm8skfhnmHRc4k86MHvnY90j+0FcDtPucXOgL9+296KK4sxBmwtkwsZE1juXpN4cy1xwNS7AXUtniLgDXevGS3jjnn/7fsf2Pejpuy+650UCzvXhShwa6kr8P4Oo5+ARAYE4k6bSR7gLxGS9e4uMAggSw2I8UeOyCvdCkNhdXCvK9/JM4XFNd6IYthZnmJK8HscgQHwLw/om8gBsJeE4hQIcAuo6AzmTIi73KMpNshc1VBZDqKy4WcTeI1lpS77BB6rpAASzv3hWfNfviewGkEdU1tEpIemnJsURLRTGdD+5/32i59BsAXzwPuoJD2LBpE63vIu7ulhktn36MvLDEC8jm1yV3AhWmw0uziutJhlYGDAXS0H+OHb9z/KfnGuh4aO9cjTmHMGWHmWb8pOGylzc8edNNzvgDzxGwo+UukheGeOk5Y7R+R9fSP02lvKcQsTKg9xGBU/IiLfDLbCWdADnsxRM4BukIDJ8Xlc+vTf7Vy9Y1gPbe5y8n6H+MSycMsDo+/5UdE4cUAFL9xX1+qQTJwVw6scrPf1C4BhBr5EJbIUEWeNdAJvFkGCLqgWsAFqZi/Z4xeV5FRfyZkne6TewPpC4A3NeAdKLS6zPKLADgOjfDfAdWCa4HGWXPqYBNhWQ3tf34j9O+S7n+zZ3d+xtHZ5WGSXzAr7Gk1wgOiHirxv5PkjjsWBwayiT21eLAc560Zwu/JnhzjcKqhqTXSGyHcXpyaz/776DtvHMhqy2hKAsIkh8GuF5O/OWObOHbgdv5kals8WkAK+pWVxP0yNxmrPn57ckxPyvfbLQsrQEQefXBHfzm0VN4uJKVbwBPZZKvG9qvAJqW10kkV7uV1CfZBHHU2l+8MkblAX4kBF1VQdLbJZY//rv0svfc+EBViaFMYt9YQ2MLhF4Jp8OV6A+Sc5rUcIcnX63Dzgf/culYOZ4C0QpgEYTLJ73hiQJSIZdJLnWjIvncJiha+3fPi5mGW2R5D4kGT0NJbIxfOvCtJeek4NNa2BrKXHM015W8j8S9voYknVL5o25UJCWStuyeTxnIs27kMPbOUNeSV8d/y5odNPYHfj4JXOb2PKra6Da/C01MzuMAzl5oTMyZLfnPZmPounlMe210efeuuBU3VrIrC64Zct0j0Nm9v7F0SWlZjDp7CVKlLBZY2NFf6HTABYZYBSDh34tGmp3Rg25MXbtQe98L19KYrQAW1uMnAAZy6YRrkaHmEUj1FReDeBqI+AwAIOBRL672NWC0MfIDDACEP+TTiSFPGTX7Fa+utW0VOO5Ys8bPoI5dSKXa2wZCWcCqoe9c9Tc/o5oDILGz1raVIOAdyq7wmzrjqGMNOD2QXq1sWAUkCdoGaxIDmaXPBGlS1zba9kBxPh30gUrV9pYfkHCa1AGATznC9mqrE6Fko197dFfz8ZGL52HUiQGAjcV+C+AT3i00aBy7zjbo3WoqEG6IJJ1uzxaLBFq8eAFb8+nE18PoK6Jvp/VPP5rw56tBJAGQZrsPXbbW7girr0gCyKVb8oB6XKgyyFsG110d2ghEeqU8k+zxGwJnUHrL0jw8mG4J7bNjAPgvZ7xknkeUNX0AAAAASUVORK5CYII=",8:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAACXBIWXMAAAsTAAALEwEAmpwYAAAENElEQVRYhe1ZXWgcVRg9Z2ay2/zUvkSwfwnJSuiDDyoBi6ZmExuoNC+CodD4JLXB2rjN1jbagmExCpIwmzQqpOIPCAr+IBoLhSzNtokUWksfLEhrd9KWNhGNtBVCNsnOfD4ku2w2G3cmY7MGe16Wvff7zvkOc+98d+8SLrGj94o3bqmdBJpFIAQ+K7079eZXoUdm3HLbgeaWIG6qb5F8DQBIAED7H+uKLABH3HLbgeKWgMQLdsbuFVwbgOChRUMiG1zz2oR7A3nGfQP5xn0D+caqN+C6kTlFfXj0WRE5DmLTcjkEcguClmjQd2LZBrZ1/7pZU5WDqf6bBgKKP2zooiT004Gqmxni/W6Kn+PnRqH0A9jkeAnVdo9u8YeNj1VVvQowkF2BJNBGS4v5deOjBXMiropPSYAbIULbT6A2PPooYQUh1m6Cqj0ReEC8CJE9IGX55S6NnAZqe2I1isV2QBoBAosWTH6R1UBHhyjD64ydQhyBcOt/reh0LDDQ1HHJM/HAmuYzinEY4JZ7JSrA74AcU4gBD83LJwNV07lyGrrGi6cZr1IVaQTQCuJBYN5AQ9d4sanFX5oQOej2DZET5DfatOyJvO676yRt8ND6SQAXAVzc0XulN25qnwCA5tdjOxOc+hRAqdOlIoIbJMqyTAiAayArMqeevlOxKxSi5e+5+gwspZ3EYwBKc2pBJik4DzJ8MlD5fUeHNEVJUUC8b5PAAvAzgA9gSXPCNMuiwcry+WIzYmENBX2VlpLYDFi7099AoRCtOt3opCgREg12tAGAYDFIP4Dv/LrxTihECwA0gkv0AolD+JMQIxAZESo/Rtsq7tgRS2K+iX2RPlbbE2uE4KgTnkyQeKNej509FfQNaCLyMokPBfASPAuREUvBSCHN83Y2l2NxYVvqi+AHVZFXIgd8N3Llbe+7vsGcNftBNM6lIghgQIsGfScArNhPQAiqk3tNLVBbIq3lY3bSIq3lY9v7rreYCfPW3AirgTycRglZmypqf9m4k9xIa/lYas8RJRBZav2vHqx6A64PCXV6zAIXHqlFxIwGfYuOKXW6MQyixq1mSgcYXuEnIE/9m2wUqVn1SyhvBkTkqJYoLAHE1h3qUvF5MzAzO9M3eGj9pFUw1ecmPm8GPB7Pq7XvXSpRZgtb3cSv+K1EEgQ7OVvU6Tb+/72J63Rjb2YPAOauVep0Y68bbrtYViNr+lLUiZvG2yDb/zlSjv9VdHv/hZbqWQDwh40zBLYtR3MJ/tOODTz57i9rvQXez5PH2pwSgsHEGnXXyL7y28mx9O49dKBCsXvlki3P8RLyFniHFhQvMiqQbgG20pInRKQLIqPJaRINBfHEqQWmwJm5Tzj6IzBbnuO3kFD+hOAyyG+pWF8PBR6+kBFyDsDhev3a4xas50l5DsRv6QEEuiEIkDjm5MIrW97fd1Of+s4MDIEAAAAASUVORK5CYII=",9:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAABACAYAAABcIPRGAAAACXBIWXMAAAsTAAALEwEAmpwYAAAHb0lEQVRoge1ae3CUVx09534bYgQtVh0Hi4TdDdSOAWS0I3VsNgsUGEWLVmQoWobOODg6LeyG0hasMb5qB5IslHFwxMeokRbGB6W0UCXJaqdFR6dTZYQSdsOr5SEtQSiPZPMd/0gDIdlv93ss1D84f+3ee8/vd86997vf417iKqCmMTPBGN4NaAbA0QBGUjgh6t+G2No9LNTy/NcrT5UiF0sRpB/THj/yXjvXvUbQfILGsaF0SmBDeyK8FqSC5CyZgWmrM+N7DZ8hEXXLkbDxzPA3Fv5j8cd7/OZ17iUPmNF46Ebb4jYv4gGAxPx3vXnj+iC5S2Kgx+TWAqjywyVxbyyVme03d2ADNY2ZCYLmB4lhbD4Kydd0DmzAIhYUvGDdgKiOpQ5M8kMNbEDEHUFjAAClGX54wa8BoTJwDACkvzgluIg5IngMAMK7/dACGyBxImgMABB1zA8v+DUA7QkaAwBA7PVDC2zAEFuDxhBkq9ts85U/aPJemV8LeiNQEPHJ9PLw2zOF0olwF8Tv+A4gnLVgfdMvvSSPEu2J8FoJGz0TJYH2wp3Jyqzf3CUxAFI6ffAeSGtdc4SzMpjblqj6XaDUQcj5EEtlZhubj4KozlcvyCawySi0MkjP96PkBvpRs7pzsjG6g8QYACMFnCC0m8S21qXR41cr73Vcx3Vcx7WFt2VUYu2a7L0U4xKGXSVNAHBG5NZ0IvyHYg09GYg3Z1IAl/jX5Q0C6tsTkYLPWa4N1KT2jzM295C0gktzB0G2sc301rpwm1Mb189CRubb11I8ABA0on75qR8dfI+jLjeB4s3ZmyHNK500DyBGhy7kUk7VbkfgkWvd+wNB8p7a1P5peeuKkWONHVXGWHsAhEquzAuEjnIrN2H7kvEXBxYXHQEa8y283eIBgBh3wbaWDS0ugPiafVHYob34fzAAANB5o1D1wPeIwiNgW4+guPjDEHYKetOjmKMSnpH0LOD2mxAreplbPbDE0UCssaMK4IIiIraUm9y4tmRkOsGPuREi6TUb/HxNV2R0ezLymfZk9NM1XZGbAPsuQEeLWhDmTEtlbr3036lhbXP2ZwQWOStBj2VU9ael0UOXOE3ZJSQclzxJr4UMbhvIGYj4qmwlQnoR4KiCLqQdbcnoLMBhBOJr9kUJfKVgDGDPYCGyuaMgh+YbTuIBoO2ByEER9xWKAQAgZ05NZSYCDgbUG1qBInOfVOeQwjM4IMjOz9DR2q6xTxXTFjsV+b27qcj7gDwGbl97IFys9/siYEiSdEP4AsShxvrwckMDHcxdRkMDbQgvF80PLYit2z1iiIFQr70CRFlRusNXaRK7iicvBVjBXMXMKwzEmjvHQljoig4ezlcu4HEHyqT6ehW9cdbXywj8qCsNwmfNlQXueh8AaCvvMLcnIn8FtCUPY9SfR2bmFIvbfkP2CyQ+4EYDhEmXDMRXZStBuup9ALlzKPuXU6XdY74m6fWhNVwXX5V13EqKNXeOJbjOpQYAGHt5BCw9TLh7TZT0wq66Meed6tPLw8dgNA/CoB14jkJIL9amMncNnE719TKxpswXKe1y3fsAQFoEgOmpzJic2OHagK1l7XXRxmLt4o37F8lwQ75tWAnHSb3U95uTPQm/jL8bAMgJ7nsfsmXMb920baur+jnBRZJ6B9f1CeYsgLN8ioeEp3n76o4PWcbqIFHujqSn2pPRO70kmprKzpWNFrcLhDvovN1jIiZkWQ+6FQ8UXCYd0bo0stkWPwepyyvXWQd/mF4ePma8nnMIlZW/5Cdhui683dj4BBR8V1PCH9V18AeAjx0aO9f9RLw5e7OfxDuXRffZNJ+EcMQPHwAkvZJ7hzUv3RDPAYCB8FOPMaZD2lPbnNkRS2W+HFu329NOfToR7hLwN48534L2spczBx5XC+n0oRUYWXmWgJu3rz6QJDCDwgx1V5yrbcpuAdRyZvip59ycviLU43lzSHi+TGV3PvfAmCu2dC9FiTV2TjFGv4LPg0tvJfkPiE0GbNm5dOwup/Nw8abMepCL3YWUDXCNurgi3RC+MLj+im6Y/eNX33n23MXvQbo/6HcgQVkALZZCvxi8mRdvyiRANhWNIWQMtKg1Gf2LU5u84xhr7JxCow0EPuJZ+WARkA3xSdnd96eXffgkAMRS+6uNzX+CdJhHOirh++8/ff4nmxuquwvFd5yIc+t3Dzt5Q8VKgA+X5gakvTbMbelEuAsAapszKyE09I+0pF4QOyH+ZsTw8s1PL77pnJuoRa+kqanMRNvmBhK3FmtbFNJjbcnoQ/1/46uylbJULeh4hWXv275k/H+9hnS1FMzdJOv1Iwe+Kuq7AN7nNcllaG9bInqLf/5QuLqRbf4Se1uT4fU2OA7SYwIKzksnSAz74RWCpztxOhHuaktGHyIwUcJG5y8Q+UEi72toEPg67NGWiLzSnozcbcNUezEi6Qk/+QqhJGcl+rafzCJAC0l+MF8bCZnunouTX3jwljOlyNmPkh72mLtJ1snDmZki55CcIigCMEfoWdply1rrxrxaynwA8D//pOfGb1LeVgAAAABJRU5ErkJggg==",10:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFOElEQVRoge1YXWwUZRQ9ZxZpaEwoJsaoaNhuIYEor/jAzy5FA0FSBQsYhZoA4UVhdzYRJGohxuBD7RQfrGJ46IMJlMSARDAI+9OCmvhkIjFBdmpC0AewCAiVlp3jQ0vDtjOzu53RxoTzNt+9595zkvm+784QIWNpR+FZiWslLQIxEwAIXJTQK6A7b8ZOhdmPYRVqbCvMKRr4jORi/0zli9SWnmTDL2H0DcVAwrIXQzoCckZFBOkqgaaMGesN2juwgca2whzHwPcVix+BoH45zoJ8evaFIP2NIGQAKEbwSbXiAYDgQ6RxIGh/Nrf+NPVyXe0eSBtHlroevnZr9+E9Tw2WI49s2JNBBIjOslyy4XS5PC+dUy7X1e4hsBMcfZveujy9FgB2lW3ucF3Ql5DiWgBlDXjpNAi1jCtKvVZJc0ELqxHrgTKn1jC8dBoAH3VJd1lzK8rHK8nzhTizskR3nYE3cVAIcILwAxkQdCkIHwAYsEYgAyQDX0QAeoKQAxlwpENB+MNQdxB2IAN5M3ZKQGbiFZTPmg0B+KHcxMZmAFeq5Qnqdxxnc9D+gQ30bpvVR2m1oP5KOYL6DeGFoHMQEIIBAMiYsV6HegZSrlyuoKwcZ0EYkygATAmjCACMzPeJeMeFRoprISwC+MRwVBdB9EI6lAv4zo9FaAbuYmQwKzvbhIWyBpZYfXURYb2o37LJ6DGQ+lcVSUx09K2i+FiROJhPRf/0S/fdA8v3na8x5HwrqhPA0XiH3dXcrUiogu9Bc7ci8Q67C8BRUZ2Uc3b5vvM1fhxfA0OKzAc59+4zwQ1XLtkHWlsV+gzV2irjyiX7AMENo/3IeQNF42k/nr+QSI0N4EbpIlt6pvfthxTaDwFI7Jnetx9gS+kyrtdoqu1H9TVw+o2Zf0jYAGGoJEBsSlh2ZygmJCYsuxPEptJ1DAHYeDL9pO/94mkgbtk7ACBn1h8FnfUA7pQkkFvjlv1pIBMS41bfRyC3li6r6Igbc2b9UQCIt9utPgY04BagtDdu2VsBIJtq+ELAq5KKpR64JdFhWxPVn+iwLRKvjxUP8pV8OnoQABKW/TaJ3e4VNGAI/M41RhLQxwnrwssAkEvVHwLQMtYEwO0Jy26rWrxltwHcPk480DLSC/H2wi4A73lX4VmDKm4TcM01DBqQ0RVvL6wEgJwZ+xzAuy6p6UR74YOKxQ/npsf1I94Z6YFEe2Enyfe9aki4DhWTRtacfS4CrsC402bUxQMkDicse/Ew0XA/FcgdcatglhMf/7CQBrnDVRRoA0C83X4T5F6fMjcYKa7ImrPPjW7AJR2FhYbDEyAedOdoAOJxQI0g6zwK3ymC83tS0Z/dgkv3/TpPjvMjvCYA6aqIHwg+5yld+MsxtCKfjJ0B7jmF8snYGRArBd10Z3IaiDU+4gFgSgRO0rO346Q8xQMAOcNPvKCbEp6/K77EAABkU/U9hmOsknTLR6QvJDb6BJdNvK5uGY6xKpeuz9+7Pu4eyKSjWQFNXsdrBa28/ykRj0yoonCbUnMmHc2OjbleZHkzdopEE6C/q21GstYnOq3aegIGAa3JphuOu8U9b+JMMvYNxAmZCAsCBg3ppZwZ+8orx3cWypr1Jx3HeFHC7fDl+UPAIIHmjBk75pdXdizOp6NfG+R/a0IYErgum6r/slxqRXN9JhU9QTmrvW7sMCHgGsmmfCp6pJL8ij9MsumG40UZc8tnBkNRxtxMKnqi0vyqvqx6zVm/Vy+pOlTbY9J/rwfFfQOTjfsGJhv3DUw2/vcG/gEn4Sfa3kOf1wAAAABJRU5ErkJggg==",11:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAADBklEQVRoge2ZTWhTWRiGn/eYabWOXQguxqp0qoioC0EZyoCmEcQBBWdhXQwKItKuRGOXLurGYWawiX+gFcGFunEjDAXbjb8VhNGVVkRJqtafjah00dZq7udCw6QhSZPQ1FPIuzqc7/3O+Z577r3n5EaUoZZY8k9Eh6Cm1FyDccHR69GmQ+XMna1QSyyxBdEt1JAxy0tJbdeiP1/NlSTYRxnFf8ut4Wv+lAA4oTMTiv86yyLDugtUccJgvJwJDcYxTpSTm7OUSDxp+YLXo00qZbBcY5U6RqlylRx8OlQF+N6a8QAFH+LplY2a6TWyF5h6AxdcuXVg2dPJsjwCyCGjJ+WCg4VA/L6FxFYXuAfh+ODufBa/AQCJWoedj8QTh3PFvQf4X+oMxxJ7s3tnEAAInQp3PV2W2TezAEStnDuS2TejAABktGauQqiQudIHsUw1d72YM9t93iDsGGhFXqMkx6zfgaPg0Qrc7VgyeiPa1De3bvZasMcFzWJzuukNQFo97Q0jQeCik9ga0w3vAADm/Vhzq1DczBam214C9LQ3jBSKS6pLtx3Gyzy+oSmtqkIKSWozs7OIRRn9Q0Ggtu9RUEsseUfi18l8kXjSMPqn7TVZrEo9HXv5DJSiKsCUy+gv3srtSpZSVVVVTZFaYol/IvHE37li3m1k2dp4LLHJAvoAJLcl+5O/1wC/HX9S/zEVGsg45gzVus+re/cvH057/NsHMjSWCv2VdUZbPJYKTfhN7O0KhLsGm+WCO0ITLrJhgYnwzQNL+8HTFejsNOcUnM4uHkDIuYCTmAk8BbhR/2wH0pq8BmlNJD7YCh7eQq2XbdbbV8mHBb9MAAZP7MPzVd6twNtXiR2TFQ8gWE5943bvAMy0q1ivc7bTOwDgl2KNZtbsHYCk4v9Al0LeAYANFG9lwDsAC7hQrFeyi94BLBgePYdxvwjrveG69+e82wcA1see/RRS8C+wLlfcjP9SuG23Dza+8RIAYG33vR/mjczfg9kfklYCmNkjoUvDc9+dv9++7hPAF0Z96GNzO74WAAAAAElFTkSuQmCC",12:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAADiklEQVRogc1ZTU8TURQ9ZwbDD5AdSkIxLgyJ7HBHYWWiiQsxRCWRjRATv4q/wxZdCRtdFA2JCzUaXWFZqTsWxgWGIRFZGxMTUMscF7Sknc7Hm/bZ9uzmzX2957x3b++8+zhxf2tcjpYguQJzpfnMS3QxsnnvAqGCQNeBbnK84H0FcKLyvixgupTLrHSSZBSyBW+KQBFADwAI2nEguTU2PQSK2YI31RmK0QiSr6Ds+HTmAZRrBrtORBR5gredtdzgC1+6jIAISMtjC5vT7aXaiIkF71KQvKR9STPvc5lXrA5GqYzKiWx+8xyIRYoiObuaG3ybhpjJfBNOTnW0lMusCJiGYTgRfESwH8QxQYtpyJvMN11Qp3ZSKZdZMQ4n4ljN0/G0AuLmx4VNMBrqBADA2vzQ86AIki59PGlHTkwseJckPEWAPIBrpfmh5aB9gwCgcyLSkgciBADtF9EMeSBGAHAgIpjYJF1HfGyBcx2C5AGUQV6NIw8kCABiEts+EhM2DIkCgPBw+l8wCZtahK7kYZEB+62yMwBJF0BxvOAVDweF71HFLnQHDotMtyCmWBqFkAG2U88QvttwHL4D5GwKB9u+z9m0jm35YNhgKzj7YKN3z++Zo3RFxDAAUPgMcLnXLS+9u3Pyt01/VgVM3P/W7zt/3xA8HWogrVNHzq/eG9ix5dOagIOVdz9Fkq9CWu9198/Y2glbSYw9v2cukTwAkCN/5F635deaAABXTQ0lc9skWBNA4ZSxsThsy6/NHTCGAN/Wb1kTIOKLqS0pY9sk2AyhYrJVxZYw+lAzgTUBvW55CdJ6oqG0fvTH7pItv9YLmfj3NciRUIP/UMisJvHqvYGdvp+7o6RuAfoI4ReEX5I+kLrV93N31CZ5IGIHUp0HYr7V42DLR+vngVYbWy36sBVCrTa2moaN80A7EHkeCD0TV2Ktod0X0vqwDkn7cjCzdnfIqK4YhVC7yAPpm2eJArIFbyq06WQfDc0zk0uWWAFxXeJWmIah2UuWSAHN9iqbRbO92FAB7SZfRTMiGgR0inwVaUXUCYhM2LAucX2daLWxVTc/riseTOxDAWkv+WqKXauNrdD5pnd2BDofNnEYy29OOuQzBP8JK8WO2bx3gcRzGK58JxAZHcKkA+Bhw4suIg9EhxOovAOoq8lXES6CZYfkDQnfIG0BuNiN5Kso5TIrEiYFeQI2BM79A7D9dwIFdOgTAAAAAElFTkSuQmCC",13:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFwklEQVRogc1aW2xUVRRd69wBCgpF4yNoLJThEaWoSIxPmE4tCRIT8aOWD018oKBRS1tJ/Bv7D30AGirqh18W/NGACpZ2BgJUwfiggoJ9gfghJkKQvug9yw+KgfbOzJ3LTGF9Te5Za5+155y555x9hrjOUNLQfY9cd5XIJyDcBcoh2Clpt4w+SqyZ1X45n9fK6EgsbTg2od8NrQP1OkHjxZHkktx8y5neqm01RYPAdZJAWax9/N9TJ+0AUOqHL6Dl1jO9T26rKRr0zHSscTp/0nr4NA8ABEr+njqpdvjztUWk/vciWv5I0slEJ8kl7H3XfASMuDJT8wBA0hHMymuegMRoYDG5JJRFLxkhFpPZm9/5mKjZQWcygYIx/w1Ea4/PA02ZgOcJzrzKcOfGZAQidV33EyqnVA6yEMjS20PoyVkCwytquYByQnMBAMzugAtqHhWxpLb7AQu7ElAJybAAC+A4gbhr1binOnw4WcBow7GwXKec5AoA87PqdrR5K9fM+z+BSKwrz+TbehGvJF3KIQvx/Txn6O2vK+YMAEBpfUfBkIsykOUkHsyl6SvNaENrVbiCAPDw+hMT88zQTgKLfGmhXRS3gyiH9CgYbG4IsgD3QWoCuIzEMp/md9qzZnmiprCfABCt7fwQxMtBTGQMSQC+A9BkHXdbomLOHwCwsPHQuCnnbz4AYmFSKWQhbMhz3HcuzQAuXte1wDH2+6DfYgbGfwTQNBRymva+NaPLo53R+s5TAKeNbtIRALtkTWPi7cJfL28LOcauypl56ajAJhKftlaFf0tFjazvngtntHkIFzS+76HEG0X/eulCAkuz6V5CB4kmUk0tleGf/eocg2J5xYMOJTMPACECBYGcXomTALYaqml3ZfhgkACWNkrP5Y3xVLqQCAUfAfVJWhKvDO8H6fUF+gwjoq4r4uWfQDyV1BA4EbxjdsSrZu27KvMASjb03E3i9lHhgcGQO3FfKq2BtDtoxwKSrsqZwLqu55aawMFv1k47n0prALvx4oKSOQitiNZ1vBtEe0UcstjruaTWdFrTWjX7FwpbgvYMMBat62iMxFqDbQwlQoh4NgGJdHIDAH0aVwkpHsgAAICvMn/655FN7Tdmqow0dMwDcevI5wIGJ9+Qtz+d3gBAW3VBnz1rnhS0OfB0IpbxwsTEotru0YtRKgPWJDtSfrt91Z29afWXPiRqCvvjleHXDLFAwiYAhyH9A+CcoJ8k1UtYDuGPpEmADzh0D0Rrj8/zm4CA4iQtcT/6jJeA0o09d7hDQ9sBLkhBOyegLF45c2fKYBKj9V1/AbhllDHLkpbqwvQ/4rSOR6D5zel/2nF9iyV8mYI2GcAXkfqO51LFitZ23QsP8xIGeuG0+fETqKySeKPoX53teRpSYzIOgfHG4pNUr1ka75IKqba26oI+P14C14USNdGh1qrwaglrhvf4Xk4IMFZc1/nxwsZD40Y2C7Y4Sfi4Xx9XXdiKV81sAPmCgMFkHAIvTj5/846lDcemXHoWi8lIeNyLL8u0c/+y2NlBpLajlORnBPKTs/QDram2xj4DsISAx9tK/faMuSlRU9jvp9+slRYTVeFma7UIF7fWScAFMmoh+Ka3eQDiydtw3vdalNXa6J7q8GHa0CPDx8dgIGafzp+0vSzWPt4PPevF3ZbqglMDFwYXQ0q9BqQAiSWnp05c54sbtJN0KNsq5/Spzk0EVwfRS3Itzfw9lYVHU/FyVl7f9izdeGX4NUlfBdGTdIzsq+l4ub8fIIOfuckl6ShjcMGhGUGVFKan4+Q8AV5NH0Tas3buR0DoDi5NX3DIeQIimoNq6aPgkPMErMWWQKc8SXScpLvdS8h5AsMXIh9kqhP4XkvFjCPpeGNyzZpn3DUZFg2adZZr/RDHJIGvK+YMTHDcpemKBoKshE0TzNBTfnejY3/Nur7zPlAvCSgFOYvCoIgeAnFLu3nk32nS4T/XHFM8NZ16vQAAAABJRU5ErkJggg==",14:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF0klEQVRoge1aXWxURRg95+5dsNVYajA+aCDdjRqNPxgUFAltiQ+CQcVo4gOIErWCaWVbHiA+rPXBmki7FGONoICKyoOKGogvlXYxKTZq/I1GY7dBlMSgsVX5aXf3Hh+2W2537x/0UmLiebr3mzMz57Qzd2a+WSJE1HVkngHRQmCaU7mAUQKbehKxJ8Pq0wirIQAg0Ogmfqx8GoDGMPsM1QCILQJG3YoFjELYEm6XZwn1qYzs7z2J2Fnpy/QjJJMyDlRlUgIeJrk5zPHrhLpUpg1SE4GXFw3HEq2ttLz43kNI4oGqTBfIJpKVCHn8unTaSLISZFO6anBbMilPje6FEutSg1tANtiir4Ul0w0EXx1/Jlb7mXAdl/UdmXYQzaci+uKvyj/nf95wY9aJv7DrUHV0JL8M0gIQ1wO8eSJDn0D4CmSfBX6QTtQMObUz96XPohcer+4HeMN4TWF77XDNI07DydFAXSrTRmBDSThnWVyZbqnZbQ8ubh+YJ2KjyKVen9AJVoBRQPsiRNtH6+Kf2stq2wfvNwy9jpL56WaizEB9R2Y9iOdc+h43Udv542XMR14geWcQ0a5mpA8MRdfub5n1q5v4cS70fG8i3uRtIJX5GsC1Y6/fALiqpMFc4Vuuh0BWT0a8zcWfAHeAaCrvS9+CnDP2/ndPInahvWrZ5BDVKekPAW+esMz5AlYAyNkoJojm0MQDAFk9Nt8miBewYubwifkAugQdc1oEAy0utR0D9xrkWwiwboQBSXkAq3qb42/4cQNtJdLN8bddtwDCXoOaZ+YqLjCoeQD2nZZaBxDsDCK+wA2Axe0/X2oZ2a8JXjShQNjb0xxbVsqv7xjYA/LuQGqdIA3lLOu6j9dfftiPGug/YBm5F8vEA7BgtTrxKbQFadcV5AzTMAJt+nwNLG4fmEeg7K8MANls9gen+Mnc6PdBOvfBXfWdP831I/kaELHRrSwajV7pFD/PnHaVX7u+IIm84dp3EZ4GalODM0Quda1M4ymnuEUmfQUGgIhlC7sOeX6uzcIxUE0EO0u3ypTuIj23B3fUpzJ7aenp/PQT30VGKq62yCQJV9OnAwLTIqO5OwDsssftmo3CGZbnS2gpb0E3l8UcTMhgv5Gt/FsG+8MSX4Qh3lKu65Rmo7gBIzG9jCfcUFZ5iiGpTINdM0uPfv81hHuoPwf438C5xoTdZWnqo65joI90+ApMIST09TbHbrXH7PPWKCaiJIyU1Sa+OusKfUDiy9KYXbNBYBOEfwhsKqsMHpwKkV6Q1Fcas2v23E7XpgZnEPot6GE9IPbRMhvy5kkyH9lKcokbUcKIOapLujfEh904npO4kPrQpA8odlhG7rH9LbN+TT9xxS95y2rw4hLY6yUeCPAVinCSe/szhSRELN++A53I6joG3p9s+qQISR8qkn/UypJmxNgK8HZHHrSnNxG/x6+9QId0M2quyeVyC51OZacLkktomYeNiAdJGlIk3+TBGEeghay7cfYRijuDcEMB+Ur6iSt+CUQNQlq8OXOfhDcxhWkVGXgwvS6+y49bZmA8P0/unDl0PHF0RuVyFg4UUyLehpyAFRcPHd9ztKpyM6BVTvcTDkNoLD8PrP29qqLfQXwOQHshHRgSCm21oyQDSGDX71UV/STWuN1POM2B7eNPhZzkBPGWxZU9idj6SNS8BtJ7kM78PCFJ0J5I1LymJxFbb1lcWWrClhcFpB2+BmqHYuskm4kS8cX0enfj7CM9zfHliOgmCe867qVcdWMEwjuI6KbeRPye7sbZRwAg3VKz28FEsc72RcOxRGnccRInkzLSVYPbSKy2NeF5wXHbswNV2fOwjBYXAJpTuouVdJDkF5L6zFH3FTaUCw53E+jqScQed6tjx5neUtZ1ZLpIrCm+e4kHPNaB1lZatcM1j5QMp5VBREwK1APFRz/xgM9CVjQBaYtbfj5sEOwUdAxQp5/4Av8sYaouukNt9P8fe5wB/vM/9vgXLip/CHUk4csAAAAASUVORK5CYII=",15:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAD3klEQVRoge2ZQWgcVRjH//+dyW4TaiqYeEkQOhWlRz16cfegBFpPprGFtAdzsFJqNi00QltLQ5FUMJtN8FCVoI2gzV4riD1kT8VbPQhCaHYRmksaxNradHdn5u8h7u402dnskqGzK/md9n3fN+/7f7Nv3ps3j2gD4p8vnyVxAcCNnn7rVGaITtkXCVFXw5BMgnwe5AdrK7nvjizIKPvaogAQ1z2No94i6I07fG2l6y/Hjj1bddvTtU4WWUqRPFG16oeePmu4UkBiajkN4DRI1uijJZH0lVlt8n0QbSMeAAgeqxQgapLiKCCz3kVhITJCYN8m6xdtccePLMhYu5f/BsRw1aovF5PWybaYhdZW8jNe8YJmF5PWSZBqiwIEHfL8ns0mrVGQAtplHRDOQ/gN0GWv+F12CQACQHwq9zOJt8IW0wwSbmXPWG9HAKDdxANVze0xC9Uh8AIErAq64IKvmXbnXtPu3Os4fB3ARQGrQecL9L1HQqZYKozcHj/4cJPrDoA7b1z9PR2LxuYADAaVM7ACJGSyY/vfq7fI3B4/+BDSUGI6v4CAighkCAlYLZYKIw2tkKRiEXsEwv0gctcsQEBRwrhhGn2GafQJ+FhA0b8bzdQYNr78NPrK3wBmfXtrIr/fEPoke8b6zNO+Gk/lAGCyVjBd3mxQewXH5U3D0MRO89f8BxxFrm+2qcRv/cS4scfL9eVuxXae3PXzNZO/ZgGxjq37YsMwjFqxAFD6x2h6Y9S9x/+aZvLXLMC2neObbWJpi61MR3TPAT+fH+tuh+Xnaya/3zMwEU/lYJrGPAA4JfuEyMt+tywCHQbw6zaan75GeqfOJ4SG8xMAEqncjjYIAlaLxcLLjc5EA+ml7oJj3gXRu5O8i2MWA1kHCLwYi8bmIG3/LEgsOObcTsWXCfJdaDAxnV8YSC91+wUMpJe6E6l8BsS7QSUN+hvQYMEx30xM5WaJyI9O9NFSdP0FOUbhVcE9VHDxEYieIBMG/xFrY2hMCO5EpNQF21wPPIWX/8d+QMKtsIU0Sztq3qUleXrhkZiYzl2SOAxiJjtmzYSkq2Gqs5DE+HQuDfASiQMELoaoq2E2CvhPPMHTHt+NcCQ1h1lLvISMHvyRDFNYozAxtTwJctxrFPCAkhuWqPrQBjGzOGZdAQAT4KktIcA+tPZh5TkAVwAgIuj7kMU0hSBXwNflttnbb324tpJ7DuBRT9B81O1IPu5Uy52E2Ot88svZlypviAQ2TgHv38vPkzjmif10ccw6/8wVNkkEADJDdHr79x+XUBlOkvdIs3WpLGTlIiBdE/QnoekwhTXKvx//eq77xCqaAAAAAElFTkSuQmCC"};function RF({list:e,maxValue:t,reached:n,targeted:r,type:o,chartType:i}){const s=Yc().domain([0,t]).range([0,100]),a=90;return f.jsxs(q,{style:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},children:[f.jsxs(q,{style:{flex:i==="sectors"?"0 26%":"0 22%",display:"flex",alignItems:"center",justifyContent:"flex-end",textAlign:"right",overflow:"hidden"},children:[f.jsx(ye,{variant:"body2",fontWeight:400,fontSize:13,style:{color:"#444",border:"none"},children:e[o]}),i==="sectors"&&f.jsx("img",{src:Hy[o],style:{width:"32px",height:"32px",marginLeft:"12px",marginRight:"0px",padding:"4px"}})]}),f.jsx(q,{style:{flex:i==="sectors"?"0 62%":"0 66%",display:"flex",flexDirection:"column",alignItems:"center"},children:[r,n].map((l,c)=>f.jsxs(q,{style:{display:"flex",flexDirection:"row",width:"100%",alignItems:"center"},"data-tooltip-id":"tooltip","data-tooltip-content":`${c?"Reached":"Targeted"}: ${yn(",.0f")(l)}`,"data-tooltip-place":"top",children:[f.jsx(q,{style:{flex:i==="sectors"?"0 8%":"0 10%",display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"baseline",marginRight:"12px"},children:f.jsx(ye,{variant:"body2",fontWeight:400,style:{border:"none",display:"flex",alignItems:"center"},children:c?f.jsx(Ho,{style:{fontSize:18,marginLeft:3,color:"#777",opacity:.6}}):f.jsx(Uo,{style:{fontSize:18,marginLeft:3,color:"#777",opacity:.6}})})}),f.jsx(q,{style:{flex:i==="sectors"?"0 92%":"0 90%",marginTop:"2px",marginBottom:"2px",display:"flex",alignItems:"center",width:"100%"},children:f.jsx(q,{style:{width:s(l)+"%",minWidth:"1px",height:"18px",transitionProperty:"width",transitionDuration:"0.75s",display:"flex",alignItems:"center",backgroundColor:c?Fe.unColor:Fe.contrastColorLighter},children:f.jsxs(ye,{fontSize:12,fontWeight:700,style:{position:"relative",left:s(l){const T=Object.entries(S.targeted).reduce((P,[_,k])=>(v.includes(_)&&(P+=k),P),0),R=Object.entries(S.reached).reduce((P,[_,k])=>(v.includes(_)&&(P+=k),P),0);return{type:S.type,targeted:T,reached:R}}),y=mv(g.map(S=>Math.max(S.reached,S.targeted)));function x(){if(i==="beneficiaryTypes"){const S=uF({data:d,lists:t,year:s,fund:a,allocationSource:l,allocationType:c,implementationStatus:u});yi(S,"beneficiary_types")}else if(i==="sectors"){const S=dF({data:d,lists:t,year:s,fund:a,allocationSource:l,allocationType:c,implementationStatus:u});yi(S,"sectors")}else if(i==="organizations"){const S=fF({data:d,lists:t,year:s,fund:a,allocationSource:l,allocationType:c,implementationStatus:u});yi(S,"organizations")}}function w(S){if(v.includes(S)){if(v.length===1){h(!0);return}m(v.filter(T=>T!==S))}else m([...v,S])}return f.jsxs(Ba,{disableGutters:!0,style:{position:"relative"},children:[f.jsx(Zp,{openSnack:p,setOpenSnack:h,message:"At least one beneficiary must be selected"}),f.jsx(Ua,{handleDownloadClick:x,clickedDownload:n,setClickedDownload:r,type:"beneficiaryTypes"}),f.jsxs(q,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"58px",flexDirection:"column"},mb:2,children:[f.jsx(ye,{style:{fontSize:"1rem",fontWeight:500,textTransform:"uppercase"},children:o}),f.jsxs(ye,{style:{fontSize:"0.8rem",display:"flex",alignItems:"center"},children:["(",f.jsx(Uo,{style:{fontSize:18,marginLeft:3,marginRight:3,color:"#777",opacity:.6}}),f.jsxs("span",{style:{color:Fe.contrastColorDarker},children:[" ","targeted,"," "]}),f.jsx(Ho,{style:{fontSize:18,marginLeft:3,marginRight:3,color:"#777",opacity:.6}}),f.jsx("span",{style:{color:Fe.unColor},children:" reached)"})]})]}),f.jsx(q,{display:"flex",flexDirection:"row",mt:2,mb:2,alignItems:"center",justifyContent:"center",children:f.jsx(Fk,{row:!0,children:zw.map((S,T)=>f.jsx(Wk,{control:f.jsx(Kp,{checked:v.includes(S),onChange:()=>w(S),name:S,color:"primary"}),label:f.jsx(ye,{style:{fontSize:"0.9em",fontWeight:500},sx:{marginLeft:-.5},children:mr(S)})},T))})}),f.jsxs(q,{display:"flex",flexDirection:"column",width:"95%",marginLeft:"3%",alignItems:"center",gap:2,marginTop:2,children:[f.jsx(q,{mb:-2,style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end",textAlign:"right",width:"100%"},children:f.jsxs(ye,{variant:"body2",fontSize:12,style:{color:"#222",border:"none",fontStyle:"italic",letterSpacing:"-0.05em"},children:["Reached as %",f.jsx("br",{}),"of targeted"]})}),g.map(S=>f.jsx(RF,{type:S.type,targeted:S.targeted,reached:S.reached,maxValue:y,list:t[C],chartType:i},S.type))]})]})}const pm=ft.memo(TF);function EF({maxValue:e,reached:t,targeted:n,type:r}){const o=Yc().domain([0,e]).range([0,100]),i=90;return f.jsxs(q,{style:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},children:[f.jsx(q,{style:{flex:"0 22%",display:"flex",alignItems:"center",justifyContent:"flex-end",textAlign:"right",overflow:"hidden"},children:f.jsx(ye,{variant:"body2",fontWeight:400,fontSize:13,style:{color:"#444",border:"none"},children:mr(r)})}),f.jsx(q,{style:{flex:"0 66%",display:"flex",flexDirection:"column",alignItems:"center"},children:[n,t].map((s,a)=>f.jsxs(q,{style:{display:"flex",flexDirection:"row",width:"100%",alignItems:"center"},"data-tooltip-id":"tooltip","data-tooltip-content":`${a?"Reached":"Targeted"}: ${yn(",.0f")(s)}`,"data-tooltip-place":"top",children:[f.jsx(q,{style:{flex:"0 10%",display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"baseline",marginRight:"12px"},children:f.jsx(ye,{variant:"body2",fontWeight:400,style:{border:"none",display:"flex",alignItems:"center"},children:a?f.jsx(Ho,{style:{fontSize:18,marginLeft:3,color:"#777",opacity:.6}}):f.jsx(Uo,{style:{fontSize:18,marginLeft:3,color:"#777",opacity:.6}})})}),f.jsx(q,{style:{flex:"0 90%",marginTop:"2px",marginBottom:"2px",display:"flex",alignItems:"center",width:"100%"},children:f.jsx(q,{style:{width:o(s)+"%",minWidth:"1px",height:"18px",transitionProperty:"width",transitionDuration:"0.75s",display:"flex",alignItems:"center",backgroundColor:a?Fe.unColor:Fe.contrastColorLighter},children:f.jsxs(ye,{fontSize:12,fontWeight:700,style:{position:"relative",left:o(s)f.jsx(EF,{type:p,targeted:e[`targeted${mr(p)}`],reached:e[`reached${mr(p)}`],maxValue:u},p))]}),f.jsx(q,{width:"100%",display:"flex",justifyContent:"center",mt:5,children:f.jsxs(ye,{variant:"caption",sx:{lineHeight:1.2,width:"80%",fontStyle:"italic"},children:["The data on people with disabilities reached, as reported in the latest programmatic reports, was identified from"," ",yn(".1~%")(e.reportsWithData/e.totalReports)," ","of the projects."]})})]})}const _F=ft.memo(IF),Bw=Math.PI/2;function jF(e,t){const n=e/2,r=BS(),o=t.startAngle-Bw;let i=t.endAngle-Bw;return o===i&&(i+=1e-5),r.moveTo(n,n),r.arc(n,n,n,o,i,!1),r.closePath(),r.toString()}const MF=({diameter:e,GBVArc:t,GBVColor:n,zIndex:r})=>{const o=NR({to:{clipPath:`path("${t}")`},config:{duration:750}});return f.jsx(DR.div,{style:{width:`${e}px`,height:`${e}px`,zIndex:r,backgroundColor:n,...o}})},OF=BE().value(e=>e.value).sort(e=>e.type==="GBV"?-1:1);function $F({totalSlice:e,totalColor:t,GBVSlice:n,GBVColor:r}){const o=b.useRef(null),[i,s]=b.useState(0),[a,l]=b.useState(0);b.useEffect(()=>{o.current&&(s(o.current.offsetWidth),l(o.current.offsetHeight))},[]);const c=Math.min(i,a),u=[e,n].map((v,m)=>({value:v,type:m?"GBV":"total"})),p=OF(u).find(v=>v.data.type==="GBV"),h=jF(c,p);return f.jsxs(q,{width:"100%",height:"100%",ref:o,display:"flex",justifyContent:"center",alignItems:"center",position:"relative",children:[f.jsx(q,{width:`${c}px`,height:`${c}px`,borderRadius:"50%",position:"absolute",zIndex:10,style:{backgroundColor:t}}),f.jsx(MF,{diameter:c,GBVArc:h,GBVColor:r,zIndex:50}),f.jsx(q,{width:`${c/2}px`,height:`${c/2}px`,borderRadius:"50%",position:"absolute",zIndex:100,style:{backgroundColor:"#fff"},display:"flex",justifyContent:"center",alignItems:"center",children:f.jsxs(ye,{style:{fontSize:"0.9em",fontWeight:"bold"},children:[f.jsx(Ot,{number:~~(n*1e3/e)/10,type:"decimal"}),"%"]})})]})}function NF({dataGBV:e,clickedDownload:t,setClickedDownload:n,year:r,fund:o,allocationSource:i,allocationType:s,implementationStatus:a}){const{data:l,lists:c}=b.useContext(Fo);function u(){const d=cF({data:l,lists:c,year:r,fund:o,allocationSource:i,allocationType:s,implementationStatus:a});yi(d,"GBV_marker")}return f.jsxs(Ba,{disableGutters:!0,style:{position:"relative"},children:[f.jsx(Ua,{handleDownloadClick:u,clickedDownload:t,setClickedDownload:n,type:"gbv"}),f.jsxs(q,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"58px",flexDirection:"row"},mb:1,children:[f.jsx(ye,{style:{fontSize:"1rem",fontWeight:500,textTransform:"uppercase"},children:"GBV"}),f.jsx(Wa,{"data-tooltip-id":"tooltip","data-tooltip-content":"Gender-Based Violence","data-tooltip-place":"top",style:{color:"#666",fontSize:"14px",marginLeft:"0.1em",marginTop:"-0.6em"}}),f.jsxs(ye,{style:{fontSize:"1rem",fontWeight:500,textTransform:"uppercase",whiteSpace:"pre"},children:[" ","Budget, Targeted and Reached People"]})]}),f.jsxs(q,{display:"flex",flexDirection:"row",alignItems:"center",gap:1,width:"100%",style:{aspectRatio:"4/3"},children:[f.jsxs(Fw,{children:[f.jsx(Yu,{title:"GBV Planned Budget",totalSlice:e.allocations,totalColor:Fe.contrastColorLighter,GBVSlice:e.allocationsGBVPlanned,GBVColor:Fe.contrastColorDarker,CaptionIcon:f.jsx(ye,{variant:"caption",children:"$"})}),f.jsx(Yu,{title:"GBV Reached Budget",totalSlice:e.allocations,totalColor:Fe.unColorLighter,GBVSlice:e.allocationsGBVReached,GBVColor:Fe.unColorDarker,CaptionIcon:f.jsx(ye,{variant:"caption",children:"$"}),noData:e.allocationsGBVReached===0&&r.length===1&&r[0]===new Date().getFullYear()})]}),f.jsxs(Fw,{children:[f.jsx(Yu,{title:"GBV Targeted People",totalSlice:e.targeted,totalColor:Fe.contrastColorLighter,GBVSlice:e.targetedGBV,GBVColor:Fe.contrastColorDarker,CaptionIcon:f.jsx(Uo,{style:{fontSize:18,marginLeft:3,marginRight:3,color:"#777",opacity:.6}})}),f.jsx(Yu,{title:"GBV Reached People",totalSlice:e.reached,totalColor:Fe.unColorLighter,GBVSlice:e.reachedGBV,GBVColor:Fe.unColorDarker,CaptionIcon:f.jsx(Ho,{style:{fontSize:18,marginLeft:3,marginRight:3,color:"#777",opacity:.6}}),noData:e.reachedGBV===0&&r.length===1&&r[0]===new Date().getFullYear()})]})]}),f.jsx(q,{width:"100%",display:"flex",justifyContent:"center",mt:3,children:f.jsxs(ye,{variant:"caption",sx:{lineHeight:1.2,width:"80%",fontStyle:"italic"},children:["The data on GBV reached, as reported only in the final reports was identified from"," ",yn(".1~%")(e.reportsWithData/e.totalReports)," ","of the projects. Possible many project(s) have not reached the due date of final reports based on the selected filters."]})})]})}function Fw({children:e}){return f.jsxs(q,{display:"flex",flex:"0 50%",height:"100%",gap:3,flexDirection:"column",children:[e[0],e[1]]})}function Yu({title:e,totalSlice:t,totalColor:n,GBVSlice:r,GBVColor:o,CaptionIcon:i,noData:s=!1}){return f.jsxs(q,{display:"flex",flex:"0 50%",flexDirection:"column",alignItems:"center",justifyContent:"center","data-tooltip-id":"tooltip","data-tooltip-html":`
${e}: ${e.toLowerCase().includes("budget")?"$":""}${yn(",.0f")(r)}
(${~~(r*1e4/t)/100}% of ${e.toLowerCase().includes("budget")?"$":""}${yn(",.0f")(t)})
`,"data-tooltip-place":"top",children:[f.jsx(ye,{mb:.5,variant:"subtitle1",children:e}),f.jsx(q,{display:"flex",width:"100%",height:"100%",children:s?f.jsx(LF,{}):f.jsx($F,{totalSlice:t,totalColor:n,GBVSlice:r,GBVColor:o})}),f.jsx(q,{display:"flex",width:"100%",flexDirection:"row",alignItems:"center",justifyContent:"center",mt:1,children:!s&&f.jsxs(ye,{variant:"caption",style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[i,f.jsx(Ot,{number:parseFloat(At(r)),type:"decimal"}),isNaN(+At(r).slice(-1))?At(r).slice(-1):""]})})]})}function LF(){return f.jsx(q,{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:f.jsx(q,{width:"50%",children:f.jsx(ye,{variant:"body2",textAlign:"center",children:"Data not yet available; report due dates have not been reached."})})})}const DF=ft.memo(NF);function zF({dataSummary:e,dataPictogram:t,dataBeneficiaryByType:n,dataSector:r,dataOrganization:o,dataDisability:i,dataGBV:s,setClickedDownload:a,clickedDownload:l,lists:c,refIds:u,summaryRef:d,pictogramRef:p,beneficiaryTypesRef:h,sectorsRef:v,organizationsRef:m,disabilityRef:C,gbvRef:g,year:y,fund:x,allocationSource:w,allocationType:S,implementationsStatus:T}){return f.jsx(Ke,{container:!0,spacing:2,children:f.jsxs(Sr,{elevation:0,style:{width:"100%",padding:"1em",backgroundColor:"#f5f8ff",borderRadius:"8px",position:"relative"},children:[f.jsx(q,{style:{width:"100%",height:"100%",overflow:"hidden",position:"absolute",borderRadius:"8px",boxSizing:"border-box",top:"0px",left:"0px",pointerEvents:"none"},children:f.jsx(Lk,{})}),f.jsxs(Ke,{container:!0,direction:"row",spacing:1,xs:12,flexWrap:"nowrap",mt:3,mb:3,children:[f.jsx(Ke,{xs:6,ref:d,id:u.summaryRefId,children:f.jsx(mF,{dataSummary:e,clickedDownload:l,setClickedDownload:a,year:y,fund:x,allocationSource:w,allocationType:S,implementationStatus:T})}),f.jsx(ro,{orientation:"vertical",flexItem:!0,style:{borderLeft:"3px dotted #ccc",borderRight:"none"}}),f.jsx(Ke,{xs:6,ref:p,id:u.pictogramRefId,children:f.jsx(kF,{dataPictogram:t,clickedDownload:l,setClickedDownload:a,year:y,fund:x,allocationSource:w,allocationType:S,implementationStatus:T})})]}),f.jsx(ro,{orientation:"horizontal",flexItem:!0,style:{borderTop:"3px dotted #ccc",borderBottom:"none",width:"96%",marginLeft:"2%"}}),f.jsxs(Ke,{container:!0,direction:"row",spacing:1,xs:12,flexWrap:"nowrap",mt:3,mb:3,children:[f.jsx(Ke,{xs:6,ref:h,id:u.beneficiaryTypesRefId,children:f.jsx(pm,{originalData:n,lists:c,clickedDownload:l,setClickedDownload:a,title:"People targeted and reached by type",chartType:"beneficiaryTypes",year:y,fund:x,allocationSource:w,allocationType:S,implementationStatus:T})}),f.jsx(ro,{orientation:"vertical",flexItem:!0,style:{borderLeft:"3px dotted #ccc",borderRight:"none"}}),f.jsx(Ke,{xs:6,ref:m,id:u.organizationsRefId,children:f.jsx(pm,{originalData:o,lists:c,clickedDownload:l,setClickedDownload:a,title:"People targeted and reached by organization",chartType:"organizations",year:y,fund:x,allocationSource:w,allocationType:S,implementationStatus:T})})]}),f.jsx(ro,{orientation:"horizontal",flexItem:!0,style:{borderTop:"3px dotted #ccc",borderBottom:"none",width:"96%",marginLeft:"2%"}}),f.jsx(Ke,{container:!0,direction:"row",justifyContent:"center",spacing:1,xs:12,flexWrap:"nowrap",mt:3,mb:3,children:f.jsx(Ke,{xs:8,ref:v,id:u.sectorsRefId,children:f.jsx(q,{display:"flex",alignItems:"center",justifyContent:"center",children:f.jsx(pm,{originalData:r,lists:c,clickedDownload:l,setClickedDownload:a,title:"People targeted and reached by sector",chartType:"sectors",year:y,fund:x,allocationSource:w,allocationType:S,implementationStatus:T})})})}),f.jsx(ro,{orientation:"horizontal",flexItem:!0,style:{borderTop:"3px dotted #ccc",borderBottom:"none",width:"96%",marginLeft:"2%"}}),f.jsxs(Ke,{container:!0,direction:"row",spacing:1,xs:12,flexWrap:"nowrap",mt:3,mb:3,children:[f.jsx(Ke,{xs:6,ref:C,id:u.disabilityRefId,children:f.jsx(_F,{dataDisability:i,clickedDownload:l,setClickedDownload:a,year:y,fund:x,allocationSource:w,allocationType:S,implementationStatus:T})}),f.jsx(ro,{orientation:"vertical",flexItem:!0,style:{borderLeft:"3px dotted #ccc",borderRight:"none"}}),f.jsx(Ke,{xs:6,ref:g,id:u.gbvRefId,children:f.jsx(DF,{dataGBV:s,clickedDownload:l,setClickedDownload:a,year:y,fund:x,allocationSource:w,allocationType:S,implementationStatus:T})})]})]})})}const{beneficiariesSplitOrder:BF,beneficiaryCategories:Xu}=Cn;function FF({data:e,year:t,fund:n,allocationSource:r,allocationType:o,implementationStatus:i,lists:s}){const a=[],l=[],c=[];return BF.forEach(u=>{const d=Xu.reduce((v,m)=>(v[m]=0,v),{}),p=Xu.reduce((v,m)=>(v[m]=0,v),{}),h={type:u,targeted:d,reached:p};a.push(h)}),e.forEach(u=>{const d=bo(u,s);if(i.includes(d)&&t.includes(u.year)&&n.includes(u.fund)&&r.includes(u.allocationSource)&&o.includes(u.allocationType)){for(const h in u.reachedByBeneficiaryType){const v=a.find(m=>m.type===parseInt(h));v&&Xu.forEach(m=>{v.reached[m]+=u.reachedByBeneficiaryType[+h][m]})}for(const h in u.targetedByBeneficiaryType){const v=a.find(m=>m.type===parseInt(h));v&&Xu.forEach(m=>{v.targeted[m]+=u.targetedByBeneficiaryType[+h][m]})}const p=l.find(h=>h.type===u.organizationType);if(p){for(const h in u.reached)p.reached[h]+=u.reached[h];for(const h in u.targeted)p.targeted[h]+=u.targeted[h]}else{const h=u.organizationType,v=Object.entries(u.targeted).reduce((g,[y,x])=>(g[y]=x,g),{}),m=Object.entries(u.reached).reduce((g,[y,x])=>(g[y]=x,g),{}),C={type:h,targeted:v,reached:m};l.push(C)}u.sectorData.forEach(h=>{const v=c.find(m=>m.type===h.sectorId);if(v){for(const m in h.reached)v.reached[m]+=h.reached[m];for(const m in h.targeted)v.targeted[m]+=h.targeted[m]}else{const m=h.sectorId,C=Object.entries(h.targeted).reduce((x,[w,S])=>(x[w]=S,x),{}),g=Object.entries(h.reached).reduce((x,[w,S])=>(x[w]=S,x),{}),y={type:m,targeted:C,reached:g};c.push(y)}})}}),a.sort((u,d)=>_r(Object.values(d.reached))-_r(Object.values(u.reached))),l.sort((u,d)=>_r(Object.values(d.reached))-_r(Object.values(u.reached))),c.sort((u,d)=>_r(Object.values(d.reached))-_r(Object.values(u.reached))),{dataBeneficiaryByType:a,dataOrganization:l,dataSector:c}}function WF(e){return be("MuiStepper",e)}Ce("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const hu=b.createContext({}),sh=b.createContext({});function VF(e){return be("MuiStepConnector",e)}Ce("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const UF=["className"],HF=e=>{const{classes:t,orientation:n,alternativeLabel:r,active:o,completed:i,disabled:s}=e,a={root:["root",n,r&&"alternativeLabel",o&&"active",i&&"completed",s&&"disabled"],line:["line",`line${U(n)}`]};return we(a,VF,t)},GF=V("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>A({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),qF=V("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${U(n.orientation)}`]]}})(({ownerState:e,theme:t})=>{const n=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return A({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:n},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),QF=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiStepConnector"}),{className:o}=r,i=H(r,UF),{alternativeLabel:s,orientation:a="horizontal"}=b.useContext(hu),{active:l,disabled:c,completed:u}=b.useContext(sh),d=A({},r,{alternativeLabel:s,orientation:a,active:l,completed:u,disabled:c}),p=HF(d);return f.jsx(GF,A({className:Z(p.root,o),ref:n,ownerState:d},i,{children:f.jsx(qF,{className:p.line,ownerState:d})}))}),KF=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],ZF=e=>{const{orientation:t,nonLinear:n,alternativeLabel:r,classes:o}=e;return we({root:["root",t,n&&"nonLinear",r&&"alternativeLabel"]},WF,o)},YF=V("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.nonLinear&&t.nonLinear]}})(({ownerState:e})=>A({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),XF=f.jsx(QF,{}),JF=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiStepper"}),{activeStep:o=0,alternativeLabel:i=!1,children:s,className:a,component:l="div",connector:c=XF,nonLinear:u=!1,orientation:d="horizontal"}=r,p=H(r,KF),h=A({},r,{nonLinear:u,alternativeLabel:i,orientation:d,component:l}),v=ZF(h),m=b.Children.toArray(s).filter(Boolean),C=m.map((y,x)=>b.cloneElement(y,A({index:x,last:x+1===m.length},y.props))),g=b.useMemo(()=>({activeStep:o,alternativeLabel:i,connector:c,nonLinear:u,orientation:d}),[o,i,c,u,d]);return f.jsx(hu.Provider,{value:g,children:f.jsx(YF,A({as:l,ownerState:h,className:Z(v.root,a),ref:n},p,{children:C}))})});function eW(e){return be("MuiStep",e)}Ce("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const tW=["active","children","className","component","completed","disabled","expanded","index","last"],nW=e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:o}=e;return we({root:["root",n,r&&"alternativeLabel",o&&"completed"]},eW,t)},rW=V("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>A({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),oW=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiStep"}),{active:o,children:i,className:s,component:a="div",completed:l,disabled:c,expanded:u=!1,index:d,last:p}=r,h=H(r,tW),{activeStep:v,connector:m,alternativeLabel:C,orientation:g,nonLinear:y}=b.useContext(hu);let[x=!1,w=!1,S=!1]=[o,l,c];v===d?x=o!==void 0?o:!0:!y&&v>d?w=l!==void 0?l:!0:!y&&v({index:d,last:p,expanded:u,icon:d+1,active:x,completed:w,disabled:S}),[d,p,u,x,w,S]),R=A({},r,{active:x,orientation:g,alternativeLabel:C,completed:w,disabled:S,expanded:u,component:a}),P=nW(R),_=f.jsxs(rW,A({as:a,className:Z(P.root,s),ref:n,ownerState:R},h,{children:[m&&C&&d!==0?m:null,i]}));return f.jsx(sh.Provider,{value:T,children:m&&!C&&d!==0?f.jsxs(b.Fragment,{children:[m,_]}):_})}),iW=Bn(f.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),sW=Bn(f.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function aW(e){return be("MuiStepIcon",e)}const hm=Ce("MuiStepIcon",["root","active","completed","error","text"]);var Ww;const lW=["active","className","completed","error","icon"],cW=e=>{const{classes:t,active:n,completed:r,error:o}=e;return we({root:["root",n&&"active",r&&"completed",o&&"error"],text:["text"]},aW,t)},mm=V(mo,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${hm.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${hm.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${hm.error}`]:{color:(e.vars||e).palette.error.main}})),uW=V("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),dW=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiStepIcon"}),{active:o=!1,className:i,completed:s=!1,error:a=!1,icon:l}=r,c=H(r,lW),u=A({},r,{active:o,completed:s,error:a}),d=cW(u);if(typeof l=="number"||typeof l=="string"){const p=Z(i,d.root);return a?f.jsx(mm,A({as:sW,className:p,ref:n,ownerState:u},c)):s?f.jsx(mm,A({as:iW,className:p,ref:n,ownerState:u},c)):f.jsxs(mm,A({className:p,ref:n,ownerState:u},c,{children:[Ww||(Ww=f.jsx("circle",{cx:"12",cy:"12",r:"12"})),f.jsx(uW,{className:d.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:l})]}))}return l});function fW(e){return be("MuiStepLabel",e)}const ai=Ce("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),pW=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],hW=e=>{const{classes:t,orientation:n,active:r,completed:o,error:i,disabled:s,alternativeLabel:a}=e;return we({root:["root",n,i&&"error",s&&"disabled",a&&"alternativeLabel"],label:["label",r&&"active",o&&"completed",i&&"error",s&&"disabled",a&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",o&&"completed",i&&"error",s&&"disabled",a&&"alternativeLabel"],labelContainer:["labelContainer",a&&"alternativeLabel"]},fW,t)},mW=V("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})(({ownerState:e})=>A({display:"flex",alignItems:"center",[`&.${ai.alternativeLabel}`]:{flexDirection:"column"},[`&.${ai.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),gW=V("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>A({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${ai.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${ai.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${ai.alternativeLabel}`]:{marginTop:16},[`&.${ai.error}`]:{color:(e.vars||e).palette.error.main}})),vW=V("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${ai.alternativeLabel}`]:{paddingRight:0}})),yW=V("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${ai.alternativeLabel}`]:{textAlign:"center"}})),FR=b.forwardRef(function(t,n){var r;const o=Se({props:t,name:"MuiStepLabel"}),{children:i,className:s,componentsProps:a={},error:l=!1,icon:c,optional:u,slotProps:d={},StepIconComponent:p,StepIconProps:h}=o,v=H(o,pW),{alternativeLabel:m,orientation:C}=b.useContext(hu),{active:g,disabled:y,completed:x,icon:w}=b.useContext(sh),S=c||w;let T=p;S&&!T&&(T=dW);const R=A({},o,{active:g,alternativeLabel:m,completed:x,disabled:y,error:l,orientation:C}),P=hW(R),_=(r=d.label)!=null?r:a.label;return f.jsxs(mW,A({className:Z(P.root,s),ref:n,ownerState:R},v,{children:[S||T?f.jsx(vW,{className:P.iconContainer,ownerState:R,children:f.jsx(T,A({completed:x,active:g,error:l,icon:S},h))}):null,f.jsxs(yW,{className:P.labelContainer,ownerState:R,children:[i?f.jsx(gW,A({ownerState:R},_,{className:Z(P.label,_==null?void 0:_.className),children:i})):null,u]})]}))});FR.muiName="StepLabel";function xW(e){return be("MuiStepButton",e)}const Vw=Ce("MuiStepButton",["root","horizontal","vertical","touchRipple"]),bW=["children","className","icon","optional"],wW=e=>{const{classes:t,orientation:n}=e;return we({root:["root",n],touchRipple:["touchRipple"]},xW,t)},CW=V(Lo,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Vw.touchRipple}`]:t.touchRipple},t.root,t[n.orientation]]}})(({ownerState:e})=>A({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},e.orientation==="vertical"&&{justifyContent:"flex-start",padding:"8px",margin:"-8px"},{[`& .${Vw.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"}})),SW=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiStepButton"}),{children:o,className:i,icon:s,optional:a}=r,l=H(r,bW),{disabled:c,active:u}=b.useContext(sh),{orientation:d}=b.useContext(hu),p=A({},r,{orientation:d}),h=wW(p),v={icon:s,optional:a},m=sa(o,["StepLabel"])?b.cloneElement(o,v):f.jsx(FR,A({},v,{children:o}));return f.jsx(CW,A({focusRipple:!0,disabled:c,TouchRippleProps:{className:h.touchRipple},className:Z(h.root,i),ref:n,ownerState:p,"aria-current":u?"step":void 0},l,{children:m}))});var Gy={},AW=Sn;Object.defineProperty(Gy,"__esModule",{value:!0});var WR=Gy.default=void 0,kW=AW(rr()),RW=f;WR=Gy.default=(0,kW.default)((0,RW.jsx)("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"}),"KeyboardArrowLeft");var qy={},TW=Sn;Object.defineProperty(qy,"__esModule",{value:!0});var VR=qy.default=void 0,EW=TW(rr()),PW=f;VR=qy.default=(0,EW.default)((0,PW.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"}),"KeyboardArrowRight");function IW(e){return be("MuiSwitch",e)}const hn=Ce("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),_W=["className","color","edge","size","sx"],jW=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:s}=e,a={root:["root",n&&`edge${U(n)}`,`size${U(r)}`],switchBase:["switchBase",`color${U(o)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=we(a,IW,t);return A({},t,l)},MW=V("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${U(n.edge)}`],t[`size${U(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${hn.thumb}`]:{width:16,height:16},[`& .${hn.switchBase}`]:{padding:4,[`&.${hn.checked}`]:{transform:"translateX(16px)"}}}}]}),OW=V(Ok,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${hn.input}`]:t.input},n.color!=="default"&&t[`color${U(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${hn.checked}`]:{transform:"translateX(20px)"},[`&.${hn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${hn.checked} + .${hn.track}`]:{opacity:.5},[`&.${hn.disabled} + .${hn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${hn.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ye(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${hn.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ye(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${hn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?Pc(e.palette[t].main,.62):Ec(e.palette[t].main,.55)}`}},[`&.${hn.checked} + .${hn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),$W=V("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),NW=V("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),LW=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:s=!1,size:a="medium",sx:l}=r,c=H(r,_W),u=A({},r,{color:i,edge:s,size:a}),d=jW(u),p=f.jsx(NW,{className:d.thumb,ownerState:u});return f.jsxs(MW,{className:Z(d.root,o),sx:l,ownerState:u,children:[f.jsx(OW,A({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:u},c,{classes:A({},d,{root:d.switchBase})})),f.jsx($W,{className:d.track,ownerState:u})]})}),UR=b.createContext();function DW(e){return be("MuiTable",e)}Ce("MuiTable",["root","stickyHeader"]);const zW=["className","component","padding","size","stickyHeader"],BW=e=>{const{classes:t,stickyHeader:n}=e;return we({root:["root",n&&"stickyHeader"]},DW,t)},FW=V("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>A({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":A({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),Uw="table",WW=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTable"}),{className:o,component:i=Uw,padding:s="normal",size:a="medium",stickyHeader:l=!1}=r,c=H(r,zW),u=A({},r,{component:i,padding:s,size:a,stickyHeader:l}),d=BW(u),p=b.useMemo(()=>({padding:s,size:a,stickyHeader:l}),[s,a,l]);return f.jsx(UR.Provider,{value:p,children:f.jsx(FW,A({as:i,role:i===Uw?null:"table",ref:n,className:Z(d.root,o),ownerState:u},c))})});function VW(e){return be("MuiTableContainer",e)}Ce("MuiTableContainer",["root"]);const UW=["className","component"],HW=e=>{const{classes:t}=e;return we({root:["root"]},VW,t)},GW=V("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),qW=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTableContainer"}),{className:o,component:i="div"}=r,s=H(r,UW),a=A({},r,{component:i}),l=HW(a);return f.jsx(GW,A({ref:n,as:i,className:Z(l.root,o),ownerState:a},s))}),ah=b.createContext();function QW(e){return be("MuiTableCell",e)}const KW=Ce("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),ZW=["align","className","component","padding","scope","size","sortDirection","variant"],YW=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:s}=e,a={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${U(r)}`,o!=="normal"&&`padding${U(o)}`,`size${U(i)}`]};return we(a,QW,t)},XW=V("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${U(n.size)}`],n.padding!=="normal"&&t[`padding${U(n.padding)}`],n.align!=="inherit"&&t[`align${U(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>A({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?Pc(Ye(e.palette.divider,1),.88):Ec(Ye(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${KW.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Uc=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:s,padding:a,scope:l,size:c,sortDirection:u,variant:d}=r,p=H(r,ZW),h=b.useContext(UR),v=b.useContext(ah),m=v&&v.variant==="head";let C;s?C=s:C=m?"th":"td";let g=l;C==="td"?g=void 0:!g&&m&&(g="col");const y=d||v&&v.variant,x=A({},r,{align:o,component:C,padding:a||(h&&h.padding?h.padding:"normal"),size:c||(h&&h.size?h.size:"medium"),sortDirection:u,stickyHeader:y==="head"&&h&&h.stickyHeader,variant:y}),w=YW(x);let S=null;return u&&(S=u==="asc"?"ascending":"descending"),f.jsx(XW,A({as:C,ref:n,className:Z(w.root,i),"aria-sort":S,scope:g,ownerState:x},p))}),JW=Bn(f.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function eV(e){return be("MuiTableSortLabel",e)}const gm=Ce("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),tV=["active","children","className","direction","hideSortIcon","IconComponent"],nV=e=>{const{classes:t,direction:n,active:r}=e,o={root:["root",r&&"active"],icon:["icon",`iconDirection${U(n)}`]};return we(o,eV,t)},rV=V(Lo,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${gm.icon}`]:{opacity:.5}},[`&.${gm.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${gm.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),oV=V("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${U(n.direction)}`]]}})(({theme:e,ownerState:t})=>A({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),iV=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTableSortLabel"}),{active:o=!1,children:i,className:s,direction:a="asc",hideSortIcon:l=!1,IconComponent:c=JW}=r,u=H(r,tV),d=A({},r,{active:o,direction:a,hideSortIcon:l,IconComponent:c}),p=nV(d);return f.jsxs(rV,A({className:Z(p.root,s),component:"span",disableRipple:!0,ownerState:d,ref:n},u,{children:[i,l&&!o?null:f.jsx(oV,{as:c,className:Z(p.icon),ownerState:d})]}))});function sV(e){return be("MuiTableHead",e)}Ce("MuiTableHead",["root"]);const aV=["className","component"],lV=e=>{const{classes:t}=e;return we({root:["root"]},sV,t)},cV=V("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),uV={variant:"head"},Hw="thead",dV=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTableHead"}),{className:o,component:i=Hw}=r,s=H(r,aV),a=A({},r,{component:i}),l=lV(a);return f.jsx(ah.Provider,{value:uV,children:f.jsx(cV,A({as:i,className:Z(l.root,o),ref:n,role:i===Hw?null:"rowgroup",ownerState:a},s))})});function fV(e){return be("MuiTableRow",e)}const Gw=Ce("MuiTableRow",["root","selected","hover","head","footer"]),pV=["className","component","hover","selected"],hV=e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return we({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},fV,t)},mV=V("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Gw.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Gw.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ye(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ye(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),qw="tr",HR=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTableRow"}),{className:o,component:i=qw,hover:s=!1,selected:a=!1}=r,l=H(r,pV),c=b.useContext(ah),u=A({},r,{component:i,hover:s,selected:a,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),d=hV(u);return f.jsx(mV,A({as:i,ref:n,className:Z(d.root,o),role:i===qw?null:"row",ownerState:u},l))});function gV(e){return be("MuiTableBody",e)}Ce("MuiTableBody",["root"]);const vV=["className","component"],yV=e=>{const{classes:t}=e;return we({root:["root"]},gV,t)},xV=V("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),bV={variant:"body"},Qw="tbody",wV=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTableBody"}),{className:o,component:i=Qw}=r,s=H(r,vV),a=A({},r,{component:i}),l=yV(a);return f.jsx(ah.Provider,{value:bV,children:f.jsx(xV,A({className:Z(l.root,o),as:i,ref:n,role:i===Qw?null:"rowgroup",ownerState:a},s))})}),{indicatorsHeader:CV,columnWidths:SV,columnWidthsExpanded:AV}=Cn;function kV({setSortingCriterion:e,setSortingOrder:t,sortingCriterion:n,sortingOrder:r,expanded:o,showTotal:i,numberOfIndicators:s}){function a(l){n===l?t(r==="asc"?"desc":"asc"):(e(l),t(n==="indicator"?"asc":"desc"))}return f.jsx(dV,{children:f.jsx(HR,{children:CV.map((l,c)=>f.jsx(Uc,{style:{cursor:"pointer",width:o&&!i?AV[c]:SV[c]},sx:{backgroundColor:"#f3f3f3"},onClick:()=>a(l),sortDirection:n===l?r:"desc",children:f.jsxs(q,{sx:{display:"flex",alignItems:"center",justifyContent:l==="reached"||l==="targeted"?o?"center":"flex-end":"flex-start"},children:[l==="targeted"&&f.jsx(Uo,{style:{fontSize:18,marginRight:4,color:"#777",opacity:.6}}),l==="reached"&&f.jsx(Ho,{style:{fontSize:18,marginRight:4,color:"#777",opacity:.6}}),f.jsx(iV,{active:n===l,direction:n===l?r:"desc",sx:{color:l==="targeted"?Fe.contrastColorDarker:l==="reached"?Fe.unColor:null},children:l==="projects"?f.jsxs(q,{style:{display:"flex",alignItems:"center"},children:["Projects",f.jsx(Wa,{"data-tooltip-id":"tooltip","data-tooltip-content":"Number of projects mapped to the indicator","data-tooltip-place":"top",style:{color:"#666",fontSize:"16px",marginLeft:"0.1em",marginTop:"-0.6em"}})]}):mr(l)+(l==="indicator"?`${s>1?"s":""} (${s})`:"")})]})},l))})})}const{indicatorsHeader:RV,beneficiaryCategories:Kw}=Cn,TV=12,x0=yn(".1~f");function EV({data:e,lists:t,showTotal:n,expanded:r}){return f.jsx(wV,{children:e.map((o,i)=>f.jsx(HR,{hover:!0,children:RV.map((s,a)=>s==="indicator"?f.jsx(Uc,{children:t.globalIndicators[o.indicatorId]},a):s==="projects"?f.jsx(Uc,{align:"center",children:o.projects.size.toLocaleString()},a):n?f.jsx(PV,{row:o,header:s},a):f.jsx(IV,{row:o,header:s,expanded:r},a))},i))})}function PV({row:e,header:t}){const{targetedTotal:n,reachedTotal:r}=e,o=t==="targeted"?n:r;return f.jsx(Uc,{align:"right",children:e.unit==="%"?x0(o)+"%":o.toLocaleString()})}function IV({row:e,header:t,expanded:n}){const r=Kw.every(i=>e[t][i]===null);let o=0;return f.jsx(Uc,{children:f.jsx(q,{style:{width:n?"100%":"90%",display:"flex",flexDirection:n?"row":"column"},children:r?f.jsx(Zw,{row:e,header:t,expanded:n,category:"total"}):Kw.map((i,s)=>e[t][i]===null?null:f.jsx(Zw,{row:e,header:t,expanded:n,category:i,cellIndex:o++},s))})})}function Zw({row:e,header:t,expanded:n,category:r,cellIndex:o}){return f.jsxs(q,{style:{width:"100%",display:"flex",flexDirection:"row",alignItems:"center",borderTop:o&&!n?"1px solid #e2e2e2":"none"},children:[f.jsxs(q,{style:{flex:"0 60%",display:"flex",justifyContent:"flex-end",alignItems:"center",paddingRight:n?"2px":"6px"},children:[f.jsx(jc,{svgProps:{style:{width:TV,fill:t==="targeted"?Fe.contrastColor:Fe.unColor,paddingRight:"4px"}},type:r}),f.jsx(ye,{variant:"body2",style:{fontSize:12,color:"#444",whiteSpace:"pre"},children:`${mr(r)}: `})]}),f.jsx(q,{style:{flex:"0 40%",display:"flex",justifyContent:n?"flex-start":"flex-end",paddingLeft:n?"2px":"6px"},children:e.unit==="%"?x0(r==="total"?e[`${t}Total`]:e[t][r])+"%":r==="total"?e[`${t}Total`].toLocaleString():e[t][r].toLocaleString()})]})}function _V({datumIndicator:e,lists:t}){const[n,r]=b.useState("indicator"),[o,i]=b.useState("asc"),[s,a]=b.useState(!1),[l,c]=b.useState(!1),u=o==="asc"?Ki:MS,d=m=>({indicator:t.globalIndicators[m.indicatorId],projects:m.projects.size,targeted:m.targetedTotal,reached:m.reachedTotal})[n],p=T5(e.sectorData,(m,C)=>u(d(m),d(C)));function h(){a(!s)}function v(){c(!l)}return f.jsxs(f.Fragment,{children:[f.jsx(Pk,{open:l,onClose:v,children:f.jsx(q,{children:f.jsx(Yw,{datumIndicator:e,lists:t,sortedData:p,sortingCriterion:n,setSortingCriterion:r,sortingOrder:o,setSortingOrder:i,showTotal:s,handleSwitchChange:h,expanded:l,toggleExpanded:v})})}),f.jsx(Yw,{datumIndicator:e,lists:t,sortedData:p,sortingCriterion:n,setSortingCriterion:r,sortingOrder:o,setSortingOrder:i,showTotal:s,handleSwitchChange:h,expanded:!1,toggleExpanded:v})]})}function Yw({datumIndicator:e,lists:t,sortedData:n,sortingCriterion:r,setSortingCriterion:o,sortingOrder:i,setSortingOrder:s,showTotal:a,handleSwitchChange:l,expanded:c,toggleExpanded:u}){return f.jsx(Sr,{elevation:0,style:{width:c?"90%":"100%",position:c?"absolute":"relative",top:c?"5%":"0",left:c?"5%":"0",padding:"1em",backgroundColor:"#f3f3f3",borderRadius:"8px",maxHeight:c?"90vh":"",overflowY:"hidden",boxSizing:"border-box"},children:f.jsxs(q,{display:"flex",mb:2,flexDirection:"column",overflow:"hidden",children:[f.jsxs(q,{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",children:[e.sector!==0&&f.jsx(q,{width:"36px",height:"36px",children:f.jsx("img",{src:Hy[e.sector],width:"100%",height:"100%"})}),f.jsx(ye,{variant:"h6",style:{marginLeft:e.sector!==0?"0.6em":0,fontSize:"1.4em"},children:e.sector===0?"All Sectors":t.sectors[e.sector]}),f.jsx(ps,{onClick:u,style:{position:"absolute",right:"1em",top:"1em"},children:c?"Close":"Expand"})]}),f.jsx(q,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",mt:e.sector!==0?.5:0,children:f.jsxs(ye,{variant:"body1",style:{fontSize:"1em",color:"#666"},children:["From a total of ",e.totalProjects.size," ","project",e.totalProjects.size>1&&"s"]})}),f.jsxs(q,{display:"flex",flexDirection:"row",alignItems:"center",mt:1,mb:1,children:[f.jsx(LW,{checked:a,onChange:l,color:"primary",size:"small"}),f.jsx(ye,{sx:{color:a?"black":"grey",cursor:"pointer",fontSize:"0.8em"},onClick:l,children:"Show Total"})]}),f.jsx(q,{sx:{width:"100% "},children:f.jsx(qW,{sx:{maxHeight:c?"80vh":600},children:f.jsxs(WW,{size:c?"small":"medium",stickyHeader:!0,children:[f.jsx(kV,{sortingCriterion:r,setSortingCriterion:o,sortingOrder:i,setSortingOrder:s,expanded:c,showTotal:a,numberOfIndicators:e.sectorData.length}),f.jsx(EV,{data:n,lists:t,showTotal:a,expanded:c})]})})})]})})}const jV=ft.memo(_V);var GR={};function MV(e){if(e&&e.__esModule)return e;var t={};if(e!=null){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}}return t.default=e,t}var qR=MV,Co={},vm,Xw;function OV(){if(Xw)return vm;Xw=1;function e(t){return t&&t.__esModule?t:{default:t}}return vm=e,vm}var ym,Jw;function $V(){if(Jw)return ym;Jw=1;function e(t,n){if(t==null)return{};var r={},o=Object.keys(t),i,s;for(s=0;s=0)&&(r[i]=t[i]);return r}return ym=e,ym}var xm,e2;function NV(){if(e2)return xm;e2=1;var e=$V();function t(n,r){if(n==null)return{};var o=e(n,r),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);for(s=0;s=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}return xm=t,xm}var Ju,t2;function LV(){if(t2)return Ju;t2=1;function e(){return Ju=e=Object.assign||function(t){for(var n=1;nd&&(p=d+1-Math.exp((d-p)*n.default.RESISTANCE_COEF)):p<0?(p=0,h=(p-s)*c+l):p>d&&(p=d,h=(p-s)*c+l),{index:p,startX:h}}return nd}var fl={},m2;function QV(){if(m2)return fl;m2=1;var e=lh();Object.defineProperty(fl,"__esModule",{value:!0}),fl.default=void 0;var t=e(b),n=function(i,s){var a=!1,l=function(v){return v?v.key:"empty"};if(i.children.length&&s.children.length){var c=t.default.Children.map(i.children,l),u=c[i.index];if(u!=null){var d=t.default.Children.map(s.children,l),p=d[s.index];u===p&&(a=!0)}}return a},r=n;return fl.default=r,fl}var pl={},g2;function KV(){if(g2)return pl;g2=1,Object.defineProperty(pl,"__esModule",{value:!0}),pl.default=void 0;function e(n,r){var o=n%r;return o<0?o+r:o}var t=e;return pl.default=t,pl}var v2;function ZV(){return v2||(v2=1,function(e){var t=lh();Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"checkIndexBounds",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"computeIndex",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"constant",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"getDisplaySameSlide",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"mod",{enumerable:!0,get:function(){return s.default}});var n=t(GV()),r=t(qV()),o=t(KR()),i=t(QV()),s=t(KV())}(Rm)),Rm}var y2;function YV(){if(y2)return Co;y2=1;var e=qR,t=OV();Object.defineProperty(Co,"__esModule",{value:!0}),Co.getDomTreeShapes=g,Co.findNativeHandler=x,Co.default=Co.SwipeableViewsContext=void 0;var n=t(NV()),r=t(LV()),o=t(DV()),i=t(zV()),s=t(WV()),a=t(VV()),l=t(HV()),c=e(b);t(S3),t(QR());var u=ZV();function d(R,P,_,k){return R.addEventListener(P,_,k),{remove:function(){R.removeEventListener(P,_,k)}}}var p={container:{direction:"ltr",display:"flex",willChange:"transform"},slide:{width:"100%",WebkitFlexShrink:0,flexShrink:0,overflow:"auto"}},h={root:{x:{overflowX:"hidden"},"x-reverse":{overflowX:"hidden"},y:{overflowY:"hidden"},"y-reverse":{overflowY:"hidden"}},flexDirection:{x:"row","x-reverse":"row-reverse",y:"column","y-reverse":"column-reverse"},transform:{x:function(P){return"translate(".concat(-P,"%, 0)")},"x-reverse":function(P){return"translate(".concat(P,"%, 0)")},y:function(P){return"translate(0, ".concat(-P,"%)")},"y-reverse":function(P){return"translate(0, ".concat(P,"%)")}},length:{x:"width","x-reverse":"width",y:"height","y-reverse":"height"},rotationMatrix:{x:{x:[1,0],y:[0,1]},"x-reverse":{x:[-1,0],y:[0,1]},y:{x:[0,1],y:[1,0]},"y-reverse":{x:[0,-1],y:[1,0]}},scrollPosition:{x:"scrollLeft","x-reverse":"scrollLeft",y:"scrollTop","y-reverse":"scrollTop"},scrollLength:{x:"scrollWidth","x-reverse":"scrollWidth",y:"scrollHeight","y-reverse":"scrollHeight"},clientLength:{x:"clientWidth","x-reverse":"clientWidth",y:"clientHeight","y-reverse":"clientHeight"}};function v(R,P){var _=P.duration,k=P.easeFunction,E=P.delay;return"".concat(R," ").concat(_," ").concat(k," ").concat(E)}function m(R,P){var _=h.rotationMatrix[P];return{pageX:_.x[0]*R.pageX+_.x[1]*R.pageY,pageY:_.y[0]*R.pageX+_.y[1]*R.pageY}}function C(R){return R.touches=[{pageX:R.pageX,pageY:R.pageY}],R}function g(R,P){for(var _=[];R&&R!==P&&R!==document.body&&!R.hasAttribute("data-swipeable");){var k=window.getComputedStyle(R);k.getPropertyValue("position")==="absolute"||k.getPropertyValue("overflow-x")==="hidden"?_=[]:(R.clientWidth>0&&R.scrollWidth>R.clientWidth||R.clientHeight>0&&R.scrollHeight>R.clientHeight)&&_.push({element:R,scrollWidth:R.scrollWidth,scrollHeight:R.scrollHeight,clientWidth:R.clientWidth,clientHeight:R.clientHeight,scrollLeft:R.scrollLeft,scrollTop:R.scrollTop}),R=R.parentNode}return _}var y=null;function x(R){var P=R.domTreeShapes,_=R.pageX,k=R.startX,E=R.axis;return P.some(function(M){var $=_>=k;(E==="x"||E==="y")&&($=!$);var O=Math.round(M[h.scrollPosition[E]]),z=O>0,L=O+M[h.clientLength[E]]W&&N>u.constant.UNCERTAINTY_THRESHOLD;if(!D&&($==="y"||$==="y-reverse")&&(k.indexCurrent===0&&k.startXj.pageX)){k.isSwiping=!1;return}if(N>W&&E.preventDefault(),se===!0||W>u.constant.UNCERTAINTY_THRESHOLD){k.isSwiping=se,k.startX=j.pageX;return}}if(k.isSwiping===!0){E.preventDefault(),k.vx=k.vx*.5+(j.pageX-k.lastX)*.5,k.lastX=j.pageX;var ae=(0,u.computeIndex)({children:O,resistance:D,pageX:j.pageX,startIndex:k.startIndex,startX:k.startX,viewLength:k.viewLength}),Re=ae.index,Y=ae.startX;if(y===null&&!z){var ce=g(E.target,k.rootNode),G=x({domTreeShapes:ce,startX:k.startX,pageX:j.pageX,axis:$});if(G)return}Y?k.startX=Y:y===null&&(y=k.rootNode),k.setIndexCurrent(Re);var fe=function(){L&&L(Re,"move")};(k.state.displaySameSlide||!k.state.isDragging)&&k.setState({displaySameSlide:!1,isDragging:!0},fe),fe()}}},k.handleSwipeEnd=function(){if(y=null,!!k.started&&(k.started=!1,k.isSwiping===!0)){var E=k.state.indexLatest,M=k.indexCurrent,$=E-M,O;Math.abs(k.vx)>k.props.threshold?k.vx>0?O=Math.floor(M):O=Math.ceil(M):Math.abs($)>k.props.hysteresis?O=$>0?Math.floor(M):Math.ceil(M):O=E;var z=c.Children.count(k.props.children)-1;O<0?O=0:O>z&&(O=z),k.setIndexCurrent(O),k.setState({indexLatest:O,isDragging:!1},function(){k.props.onSwitching&&k.props.onSwitching(O,"end"),k.props.onChangeIndex&&O!==E&&k.props.onChangeIndex(O,E,{reason:"swipe"}),M===E&&k.handleTransitionEnd()})}},k.handleTouchStart=function(E){k.props.onTouchStart&&k.props.onTouchStart(E),k.handleSwipeStart(E)},k.handleTouchEnd=function(E){k.props.onTouchEnd&&k.props.onTouchEnd(E),k.handleSwipeEnd(E)},k.handleMouseDown=function(E){k.props.onMouseDown&&k.props.onMouseDown(E),E.persist(),k.handleSwipeStart(C(E))},k.handleMouseUp=function(E){k.props.onMouseUp&&k.props.onMouseUp(E),k.handleSwipeEnd(C(E))},k.handleMouseLeave=function(E){k.props.onMouseLeave&&k.props.onMouseLeave(E),k.started&&k.handleSwipeEnd(C(E))},k.handleMouseMove=function(E){k.props.onMouseMove&&k.props.onMouseMove(E),k.started&&k.handleSwipeMove(C(E))},k.handleScroll=function(E){if(k.props.onScroll&&k.props.onScroll(E),E.target===k.rootNode){if(k.ignoreNextScrollEvents){k.ignoreNextScrollEvents=!1;return}var M=k.state.indexLatest,$=Math.ceil(E.target.scrollLeft/E.target.clientWidth)+M;k.ignoreNextScrollEvents=!0,E.target.scrollLeft=0,k.props.onChangeIndex&&$!==M&&k.props.onChangeIndex($,M,{reason:"focus"})}},k.updateHeight=function(){if(k.activeSlide!==null){var E=k.activeSlide.children[0];E!==void 0&&E.offsetHeight!==void 0&&k.state.heightLatest!==E.offsetHeight&&k.setState({heightLatest:E.offsetHeight})}},k.state={indexLatest:_.index,isDragging:!1,renderOnlyActive:!_.disableLazyLoading,heightLatest:0,displaySameSlide:!0},k.setIndexCurrent(_.index),k}return(0,i.default)(P,[{key:"componentDidMount",value:function(){var k=this;this.transitionListener=d(this.containerNode,"transitionend",function(E){E.target===k.containerNode&&k.handleTransitionEnd()}),this.touchMoveListener=d(this.rootNode,"touchmove",function(E){k.props.disabled||k.handleSwipeMove(E)},{passive:!1}),this.props.disableLazyLoading||(this.firstRenderTimeout=setTimeout(function(){k.setState({renderOnlyActive:!1})},0)),this.props.action&&this.props.action({updateHeight:this.updateHeight})}},{key:"componentDidUpdate",value:function(k,E,M){M&&this.onUpdate(M)}},{key:"getSnapshotBeforeUpdate",value:function(k){var E=this.props.index;return typeof E=="number"&&E!==k.index?(this.setIndexCurrent(E),{displaySameSlide:(0,u.getDisplaySameSlide)(k,this.props),indexLatest:E}):null}},{key:"componentWillUnmount",value:function(){this.transitionListener.remove(),this.touchMoveListener.remove(),clearTimeout(this.firstRenderTimeout)}},{key:"onUpdate",value:function(k){this.setState((0,r.default)({},k))}},{key:"getSwipeableViewsContext",value:function(){var k=this;return{slideUpdateHeight:function(){k.updateHeight()}}}},{key:"setIndexCurrent",value:function(k){if(!this.props.animateTransitions&&this.indexCurrent!==k&&this.handleTransitionEnd(),this.indexCurrent=k,this.containerNode){var E=this.props.axis,M=h.transform[E](k*100);this.containerNode.style.WebkitTransform=M,this.containerNode.style.transform=M}}},{key:"handleTransitionEnd",value:function(){this.props.onTransitionEnd&&(this.state.displaySameSlide||this.state.isDragging||this.props.onTransitionEnd())}},{key:"render",value:function(){var k=this,E=this.props;E.action;var M=E.animateHeight,$=E.animateTransitions,O=E.axis,z=E.children,L=E.containerStyle,D=E.disabled;E.disableLazyLoading;var j=E.enableMouseEvents;E.hysteresis,E.ignoreNativeScroll,E.index,E.onChangeIndex,E.onSwitching,E.onTransitionEnd,E.resistance;var N=E.slideStyle,W=E.slideClassName,se=E.springConfig,ae=E.style;E.threshold;var Re=(0,n.default)(E,["action","animateHeight","animateTransitions","axis","children","containerStyle","disabled","disableLazyLoading","enableMouseEvents","hysteresis","ignoreNativeScroll","index","onChangeIndex","onSwitching","onTransitionEnd","resistance","slideStyle","slideClassName","springConfig","style","threshold"]),Y=this.state,ce=Y.displaySameSlide,G=Y.heightLatest,fe=Y.indexLatest,pe=Y.isDragging,me=Y.renderOnlyActive,Oe=D?{}:{onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd},ge=!D&&j?{onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave,onMouseMove:this.handleMouseMove}:{},Ae=(0,r.default)({},p.slide,N),Te,Ee;if(pe||!$||ce)Te="all 0s ease 0s",Ee="all 0s ease 0s";else if(Te=v("transform",se),Ee=v("-webkit-transform",se),G!==0){var Ie=", ".concat(v("height",se));Te+=Ie,Ee+=Ie}var le={height:null,WebkitFlexDirection:h.flexDirection[O],flexDirection:h.flexDirection[O],WebkitTransition:Ee,transition:Te};if(!me){var at=h.transform[O](this.indexCurrent*100);le.WebkitTransform=at,le.transform=at}return M&&(le.height=G),c.createElement(w.Provider,{value:this.getSwipeableViewsContext()},c.createElement("div",(0,r.default)({ref:this.setRootNode,style:(0,r.default)({},h.root[O],ae)},Re,Oe,ge,{onScroll:this.handleScroll}),c.createElement("div",{ref:this.setContainerNode,style:(0,r.default)({},le,p.container,L),className:"react-swipeable-view-container"},c.Children.map(z,function(ue,Je){if(me&&Je!==fe)return null;var Ge,Ne=!0;return Je===fe&&(Ne=!1,M&&(Ge=k.setActiveSlide,Ae.overflowY="hidden")),c.createElement("div",{ref:Ge,style:Ae,className:W,"aria-hidden":Ne,"data-swipeable":"true"},ue)}))))}}]),P}(c.Component);S.displayName="ReactSwipableView",S.propTypes={},S.defaultProps={animateHeight:!1,animateTransitions:!0,axis:"x",disabled:!1,disableLazyLoading:!1,enableMouseEvents:!1,hysteresis:.6,ignoreNativeScroll:!1,index:0,threshold:5,springConfig:{duration:"0.35s",easeFunction:"cubic-bezier(0.15, 0.3, 0.25, 1)",delay:"0s"},resistance:!1};var T=S;return Co.default=T,Co}(function(e){var t=qR;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"SwipeableViewsContext",{enumerable:!0,get:function(){return n.SwipeableViewsContext}});var n=t(YV())})(GR);const XV=Tf(GR);function JV(e){return e&&e.sector===0}function eU({data:e,lists:t,clickedDownload:n,setClickedDownload:r}){const[o,i]=b.useState(0),[s,a]=b.useState([0,1,2]),l=e.length;b.useEffect(()=>{const m=[Math.max(0,o-1),o,Math.min(l-1,o+1)];a(m)},[o,l]);function c(){i(m=>Math.min(m+1,l-1))}function u(){i(m=>Math.max(m-1,0))}function d(m){i(m)}function p(m){i(m)}const h=e.find(JV);function v(){const m=pF({allSectorsData:h,lists:t});yi(m,"global_indicators")}return f.jsxs(q,{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",width:"100%",position:"relative",children:[f.jsx(Ua,{handleDownloadClick:v,clickedDownload:n,setClickedDownload:r,type:"indicators"}),f.jsxs(q,{display:"flex",justifyContent:"center",alignItems:"center",mt:2,children:[f.jsx(ps,{onClick:u,disabled:o===0,startIcon:f.jsx(WR,{}),sx:{marginRight:"8px"},children:"Back"}),f.jsx(JF,{activeStep:o,nonLinear:!0,children:e.map((m,C)=>f.jsx(oW,{sx:{padding:"4px"},children:f.jsx(q,{onClick:()=>p(C),children:f.jsx(SW,{sx:{backgroundColor:C===o?"primary.main":"grey.300",borderRadius:"50%",margin:0,padding:0,width:"28px",height:"28px",display:"flex",justifyContent:"center",alignItems:"center"},icon:m.sector===0?f.jsx(ye,{variant:"caption",style:{fontWeight:"bold",marginLeft:"8px",color:C===o?"white":Fe.unColor},children:"All"}):f.jsx("img",{src:Hy[m.sector],style:{width:"16px",height:"16px",marginLeft:"8px",filter:C===o?"brightness(0.1) invert(1)":"none"}})})})},m.sector))}),f.jsx(ps,{onClick:c,disabled:o===l-1,endIcon:f.jsx(VR,{}),sx:{marginLeft:"8px"},children:"Next"})]}),f.jsx(q,{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",mt:2,children:f.jsx(XV,{axis:"x",index:o,onChangeIndex:d,enableMouseEvents:!0,children:e.map((m,C)=>f.jsx(q,{display:"flex",justifyContent:"center",alignItems:"flex-start",padding:2,children:s.includes(C)&&f.jsx(jV,{datumIndicator:m,lists:t})},m.sector))})})]})}const tU=ft.memo(eU),{beneficiaryCategories:Qy,beneficiariesStatuses:nU}=Cn;function rU({dataIndicators:e,lists:t,year:n,fund:r,allocationSource:o,allocationType:i}){const s=[],a={sector:0,totalProjects:new Set,sectorData:[]};return e.forEach(l=>{const c=t.globalIndicatorsDetails.get(l.GlbIndicId),u=t.projectDetails.get(l.CHFId);if(!c){Bi(l.CHFProjectCode,l,"Global indicator not found in global indicators master");return}if(!u){Bi(l.CHFProjectCode,l,"Global indicator without corresponding project ID");return}if(n.includes(u.year)&&r.includes(u.fund)&&o.includes(u.allocationSource)&&i.includes(u.allocationType)){const d=s.find(h=>h.sector===l.GlbClstrId);if(d){d.totalProjects.add(l.CHFId);const h=d.sectorData.find(v=>v.indicatorId===l.GlbIndicId);h?(rd(h.targetedTemporary,l,c,"Tgt"),rd(h.reachedTemporary,l,c,"Ach"),h.targetedTotalTemporary.push(l.TgtTotal),h.reachedTotalTemporary.push(l.AchTotal??0),h.projects.add(l.CHFId)):d.sectorData.push({indicatorId:l.GlbIndicId,unit:c.unit,unitName:c.unitName,projects:new Set([l.CHFId]),targeted:js(),reached:js(),targetedTotal:0,reachedTotal:0,targetedTemporary:_s(l,c,"Tgt"),reachedTemporary:_s(l,c,"Ach"),targetedTotalTemporary:[l.TgtTotal],reachedTotalTemporary:[l.AchTotal??0]})}else s.push({sector:l.GlbClstrId,totalProjects:new Set([l.CHFId]),sectorData:[{indicatorId:l.GlbIndicId,unit:c.unit,unitName:c.unitName,projects:new Set([l.CHFId]),targeted:js(),reached:js(),targetedTotal:0,reachedTotal:0,targetedTemporary:_s(l,c,"Tgt"),reachedTemporary:_s(l,c,"Ach"),targetedTotalTemporary:[l.TgtTotal],reachedTotalTemporary:[l.AchTotal??0]}]});a.totalProjects.add(l.CHFId);const p=a.sectorData.find(h=>h.indicatorId===l.GlbIndicId);p?(rd(p.targetedTemporary,l,c,"Tgt"),rd(p.reachedTemporary,l,c,"Ach"),p.targetedTotalTemporary.push(l.TgtTotal),p.reachedTotalTemporary.push(l.AchTotal??0),p.projects.add(l.CHFId)):a.sectorData.push({indicatorId:l.GlbIndicId,sector:l.GlbClstrId,unit:c.unit,unitName:c.unitName,projects:new Set([l.CHFId]),targeted:js(),reached:js(),targetedTotal:0,reachedTotal:0,targetedTemporary:_s(l,c,"Tgt"),reachedTemporary:_s(l,c,"Ach"),targetedTotalTemporary:[l.TgtTotal],reachedTotalTemporary:[l.AchTotal??0]})}}),s.forEach(l=>{l.sectorData.forEach(c=>{x2(c),delete c.targetedTemporary,delete c.reachedTemporary,delete c.targetedTotalTemporary,delete c.reachedTotalTemporary})}),a.sectorData.forEach(l=>{x2(l),delete l.targetedTemporary,delete l.reachedTemporary,delete l.targetedTotalTemporary,delete l.reachedTotalTemporary}),s.length&&s.unshift(a),s}function x2(e){const t=e.unit==="%"?ox:_r;nU.forEach(n=>{const r=e[n],o=e[`${n}Temporary`];for(const i in e[`${n}Temporary`]){const s=o[i];s?r[i]=t(s)??0:r[i]=null}e[`${n}Total`]=e.unit==="%"?ox(e[`${n}TotalTemporary`])??0:_r(e[`${n}TotalTemporary`])??0})}function _s(e,t,n){const r={};return Qy.forEach(o=>{r[o]=t[o]?[Number(e[`${n}${o.charAt(0).toUpperCase()}`])||0]:null}),r}function rd(e,t,n,r){Qy.forEach(o=>{n[o]?e[o].push(Number(t[`${r}${o.charAt(0).toUpperCase()}`])||0):e[o]=null})}function js(){const e={};for(const t of Qy)e[t]=0;return e}function oU({dataIndicators:e,year:t,fund:n,allocationSource:r,allocationType:o,indicatorsRef:i,refIds:s,lists:a,clickedDownload:l,setClickedDownload:c}){const[u,d]=b.useState([]),[p,h]=b.useState(!1);function v(){h(!0)}return b.useEffect(()=>{const m=rU({dataIndicators:e,lists:a,year:t,fund:n,allocationSource:r,allocationType:o});m.length===0&&h(!1),d(m)},[e,t,n,r,o,a]),f.jsxs(Ke,{container:!0,spacing:2,mt:6,justifyContent:"center",children:[f.jsx(Ke,{xs:12,ref:i,id:s.indicatorsRefId,children:f.jsx(ye,{variant:"h4",style:{fontFamily:"Montserrat",fontWeight:600,textAlign:"center"},children:"Global Indicators"})}),f.jsxs(Ke,{xs:10,mb:3,justifyContent:"center",display:"flex",flexDirection:"column",children:[f.jsx(ye,{variant:"body1",style:{fontFamily:"Montserrat",fontSize:"14px",textAlign:"center"},children:"The Global Indicators are a set of metrics used to access and measure the performance and impact of projects funded by OCHA. These indicators cover various aspects of humanitarian response, including beneficiary reach, funding allocation, response time, and the effectiveness of interventions. They provide a standardized framework for monitoring and evaluating OCHA-funded projects, allowing for better accountability and transparency"}),f.jsx(ps,{"data-tooltip-id":"tooltip","data-tooltip-content":"The table will be generated based on the selected filters","data-tooltip-place":"top",variant:"contained",disabled:p||!(u!=null&&u.length),onClick:v,style:{marginTop:"2em",alignSelf:"center"},children:u!=null&&u.length?"Generate Table":"No Global Indicators for the filters selected"})]}),f.jsx(Ke,{xs:12,children:u.length>0&&p&&f.jsx(tU,{data:u,lists:a,clickedDownload:l,setClickedDownload:c})})]})}const{implementationStatuses:iU,charts:sU}=Cn,b0=sU.reduce((e,t)=>(e[t]=!1,e),{}),b2="RefId",Em=Object.keys(b0).reduce((e,t)=>(e[`${t}${b2}`]=`${t}${b2}`,e),{}),aU=new URLSearchParams(location.search);function lU({defaultYear:e}){const{data:t,dataIndicators:n,inDataLists:r,lists:o}=b.useContext(Fo),[i,s]=b.useState([e]),[a,l]=b.useState([...r.funds]),[c,u]=b.useState([...r.allocationTypes]),[d,p]=b.useState([...r.allocationSources]),[h,v]=b.useState([...iU]),[m,C]=b.useState(b0),[g,y]=Zr({threshold:.999}),[x,w]=Zr({threshold:0}),S={threshold:.9},[T,R]=Zr(S),[P,_]=Zr(S),[k,E]=Zr(S),[M,$]=Zr(S),[O,z]=Zr(S),[L,D]=Zr(S),[j,N]=Zr(S),[W,se]=Zr(S),ae=b.useMemo(()=>ZB({data:t,year:i,fund:a,allocationSource:d,allocationType:c,lists:o}),[t,i,a,d,c,o]),{dataSummary:Re,dataPictogram:Y,dataDisability:ce,dataGBV:G,inSelectionData:fe}=b.useMemo(()=>QB({data:t,year:i,fund:a,allocationSource:d,allocationType:c,implementationStatus:h,lists:o}),[t,i,a,d,c,h,o]),{dataBeneficiaryByType:pe,dataSector:me,dataOrganization:Oe}=b.useMemo(()=>FF({data:t,year:i,fund:a,allocationSource:d,allocationType:c,implementationStatus:h,lists:o}),[t,i,a,d,c,h,o]);DN({allocationSource:d,allocationType:c,fund:a,implementationStatus:h,inDataLists:r,queryStringValues:aU,setAllocationSource:p,setAllocationType:u,setClickedDownload:C,setFund:l,setImplementationStatus:v,setYear:s,year:i,downloadStates:b0,defaultYear:e});const ge={year:i,setYear:s,fund:a,setFund:l,allocationSource:d,setAllocationSource:p,allocationType:c,setAllocationType:u,inSelectionData:fe};return f.jsxs(Ba,{disableGutters:!0,style:{paddingLeft:"12px",paddingRight:"12px"},children:[f.jsx(e$,{id:"tooltip",style:{zIndex:9999,maxWidth:"400px",textAlign:"center"}}),f.jsx($N,{...ge,titleRef:g,inViewTitle:y,inViewMenus:w,inViewSummary:R,inViewPictogram:_,inViewBeneficiaryTypes:E,inViewOrganizations:z,inViewSectors:$,inViewIndicators:se,inViewDisability:D,inViewGBV:N,refIds:Em}),f.jsx(NN,{}),f.jsx(BB,{...ge,implementationStatus:h,setImplementationStatus:v,menusRef:x,dataStatuses:ae}),f.jsx(q,{mt:4,mb:4}),f.jsx(zF,{dataSummary:Re,dataPictogram:Y,dataBeneficiaryByType:pe,dataSector:me,dataOrganization:Oe,dataDisability:ce,dataGBV:G,setClickedDownload:C,clickedDownload:m,lists:o,refIds:Em,summaryRef:T,pictogramRef:P,beneficiaryTypesRef:k,sectorsRef:M,organizationsRef:O,disabilityRef:L,gbvRef:j,year:i,fund:a,allocationSource:d,allocationType:c,implementationsStatus:h}),f.jsx(oU,{dataIndicators:n,year:i,fund:a,allocationSource:d,allocationType:c,indicatorsRef:W,refIds:Em,lists:o,setClickedDownload:C,clickedDownload:m})]})}function cU({defaultYear:e,defaultFundType:t,startYear:n}){const{data:r,dataIndicators:o,lists:i,inDataLists:s,loading:a,error:l}=y3(t,n);return a?f.jsx(pO,{}):l?f.jsx(l8,{error:l}):f.jsx(Fo.Provider,{value:{data:r,dataIndicators:o,lists:i,inDataLists:s},children:f.jsx(lU,{defaultYear:e})})}const fo=document.getElementById("progressroot"),Pm=fo==null?void 0:fo.dataset.year,Im=fo==null?void 0:fo.dataset.fundtype,_m=fo==null?void 0:fo.dataset.startyear,uU=!Pm||!parseInt(Pm)?new Date().getFullYear():parseInt(Pm),dU=!Im||!parseInt(Im)?null:parseInt(Im),fU=!_m||!parseInt(_m)?null:parseInt(_m);Mm.createRoot(fo).render(f.jsx(ft.StrictMode,{children:f.jsx(cU,{defaultYear:uU,defaultFundType:dU,startYear:fU})})); + */var gy=Symbol.for("react.element"),vy=Symbol.for("react.portal"),Hp=Symbol.for("react.fragment"),Gp=Symbol.for("react.strict_mode"),qp=Symbol.for("react.profiler"),Qp=Symbol.for("react.provider"),Kp=Symbol.for("react.context"),t6=Symbol.for("react.server_context"),Zp=Symbol.for("react.forward_ref"),Yp=Symbol.for("react.suspense"),Xp=Symbol.for("react.suspense_list"),Jp=Symbol.for("react.memo"),eh=Symbol.for("react.lazy"),n6=Symbol.for("react.offscreen"),qk;qk=Symbol.for("react.module.reference");function Rr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case gy:switch(e=e.type,e){case Hp:case qp:case Gp:case Yp:case Xp:return e;default:switch(e=e&&e.$$typeof,e){case t6:case Kp:case Zp:case eh:case Jp:case Qp:return e;default:return t}}case vy:return t}}}pt.ContextConsumer=Kp;pt.ContextProvider=Qp;pt.Element=gy;pt.ForwardRef=Zp;pt.Fragment=Hp;pt.Lazy=eh;pt.Memo=Jp;pt.Portal=vy;pt.Profiler=qp;pt.StrictMode=Gp;pt.Suspense=Yp;pt.SuspenseList=Xp;pt.isAsyncMode=function(){return!1};pt.isConcurrentMode=function(){return!1};pt.isContextConsumer=function(e){return Rr(e)===Kp};pt.isContextProvider=function(e){return Rr(e)===Qp};pt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===gy};pt.isForwardRef=function(e){return Rr(e)===Zp};pt.isFragment=function(e){return Rr(e)===Hp};pt.isLazy=function(e){return Rr(e)===eh};pt.isMemo=function(e){return Rr(e)===Jp};pt.isPortal=function(e){return Rr(e)===vy};pt.isProfiler=function(e){return Rr(e)===qp};pt.isStrictMode=function(e){return Rr(e)===Gp};pt.isSuspense=function(e){return Rr(e)===Yp};pt.isSuspenseList=function(e){return Rr(e)===Xp};pt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Hp||e===qp||e===Gp||e===Yp||e===Xp||e===n6||typeof e=="object"&&e!==null&&(e.$$typeof===eh||e.$$typeof===Jp||e.$$typeof===Qp||e.$$typeof===Kp||e.$$typeof===Zp||e.$$typeof===qk||e.getModuleId!==void 0)};pt.typeOf=Rr;function r6(e){return be("MuiList",e)}Se("MuiList",["root","padding","dense","subheader"]);const o6=["children","className","component","dense","disablePadding","subheader"],i6=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return we({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},r6,t)},s6=V("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>A({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),a6=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c}=r,u=G(r,o6),d=b.useMemo(()=>({dense:a}),[a]),p=A({},r,{component:s,dense:a,disablePadding:l}),h=i6(p);return f.jsx(Cf.Provider,{value:d,children:f.jsxs(s6,A({as:s,className:Z(h.root,i),ref:n,ownerState:p},u,{children:[c,o]}))})}),l6=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function cm(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Jb(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Qk(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function il(e,t,n,r,o,i){let s=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!Qk(a,i)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const c6=b.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu"}=t,p=G(t,l6),h=b.useRef(null),v=b.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ur(()=>{o&&h.current.focus()},[o]),b.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,{direction:S})=>{const C=!h.current.style.width;if(x.clientHeight{const S=h.current,C=x.key,E=Gt(S).activeElement;if(C==="ArrowDown")x.preventDefault(),il(S,E,c,l,cm);else if(C==="ArrowUp")x.preventDefault(),il(S,E,c,l,Jb);else if(C==="Home")x.preventDefault(),il(S,null,c,l,cm);else if(C==="End")x.preventDefault(),il(S,null,c,l,Jb);else if(C.length===1){const k=v.current,P=C.toLowerCase(),_=performance.now();k.keys.length>0&&(_-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&P!==k.keys[0]&&(k.repeating=!1)),k.lastTime=_,k.keys.push(P);const R=E&&!k.repeating&&Qk(E,k);k.previousKeyMatched&&(R||il(S,E,!1,l,cm,k))?x.preventDefault():k.previousKeyMatched=!1}u&&u(x)},w=Pt(h,n);let g=-1;b.Children.forEach(s,(x,S)=>{if(!b.isValidElement(x)){g===S&&(g+=1,g>=s.length&&(g=-1));return}x.props.disabled||(d==="selectedMenu"&&x.props.selected||g===-1)&&(g=S),g===S&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(g+=1,g>=s.length&&(g=-1))});const y=b.Children.map(s,(x,S)=>{if(S===g){const C={};return i&&(C.autoFocus=!0),x.props.tabIndex===void 0&&d==="selectedMenu"&&(C.tabIndex=0),b.cloneElement(x,C)}return x});return f.jsx(a6,A({role:"menu",ref:w,className:a,onKeyDown:m,tabIndex:o?0:-1},p,{children:y}))}),Kk=e=>e.scrollTop;function Ta(e,t){var n,r;const{timeout:o,easing:i,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:s.transitionDelay}}const u6=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function p0(e){return`scale(${e}, ${e**2})`}const d6={entering:{opacity:1,transform:p0(1)},entered:{opacity:1,transform:"none"}},um=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),yy=b.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:p,onExiting:h,style:v,timeout:m="auto",TransitionComponent:w=qr}=t,g=G(t,u6),y=jp(),x=b.useRef(),S=Lp(),C=b.useRef(null),E=Pt(C,i.ref,n),k=z=>N=>{if(z){const D=C.current;N===void 0?z(D):z(D,N)}},P=k(u),_=k((z,N)=>{Kk(z);const{duration:D,delay:j,easing:L}=Ta({style:v,timeout:m,easing:s},{mode:"enter"});let W;m==="auto"?(W=S.transitions.getAutoHeightDuration(z.clientHeight),x.current=W):W=D,z.style.transition=[S.transitions.create("opacity",{duration:W,delay:j}),S.transitions.create("transform",{duration:um?W:W*.666,delay:j,easing:L})].join(","),l&&l(z,N)}),R=k(c),T=k(h),M=k(z=>{const{duration:N,delay:D,easing:j}=Ta({style:v,timeout:m,easing:s},{mode:"exit"});let L;m==="auto"?(L=S.transitions.getAutoHeightDuration(z.clientHeight),x.current=L):L=N,z.style.transition=[S.transitions.create("opacity",{duration:L,delay:D}),S.transitions.create("transform",{duration:um?L:L*.666,delay:um?D:D||L*.333,easing:j})].join(","),z.style.opacity=0,z.style.transform=p0(.75),d&&d(z)}),$=k(p),O=z=>{m==="auto"&&y.start(x.current||0,z),r&&r(C.current,z)};return f.jsx(w,A({appear:o,in:a,nodeRef:C,onEnter:_,onEntered:R,onEntering:P,onExit:M,onExited:$,onExiting:T,addEndListener:O,timeout:m==="auto"?null:m},g,{children:(z,N)=>b.cloneElement(i,A({style:A({opacity:0,transform:p0(.75),visibility:z==="exited"&&!a?"hidden":void 0},d6[z],v,i.props.style),ref:E},N))}))});yy.muiSupportAuto=!0;function f6(e){const t=Gt(e);return t.body===e?Pi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Dl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ew(e){return parseInt(Pi(e).getComputedStyle(e).paddingRight,10)||0}function p6(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function tw(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=i.indexOf(s)===-1,l=!p6(s);a&&l&&Dl(s,o)})}function dm(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function h6(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(f6(r)){const s=uk(Gt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${ew(r)+s}px`;const a=Gt(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${ew(l)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Gt(r).body;else{const s=r.parentElement,a=Pi(r);i=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:a})=>{i?s.style.setProperty(a,i):s.style.removeProperty(a)})}}function m6(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class g6{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Dl(t.modalRef,!1);const o=m6(n);tw(n,t.mount,t.modalRef,o,!0);const i=dm(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=dm(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=h6(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=dm(this.containers,s=>s.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Dl(t.modalRef,n),tw(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&Dl(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const v6=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function y6(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function x6(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function b6(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||x6(e))}function w6(e){const t=[],n=[];return Array.from(e.querySelectorAll(v6)).forEach((r,o)=>{const i=y6(r);i===-1||!b6(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function S6(){return!0}function C6(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=w6,isEnabled:s=S6,open:a}=e,l=b.useRef(!1),c=b.useRef(null),u=b.useRef(null),d=b.useRef(null),p=b.useRef(null),h=b.useRef(!1),v=b.useRef(null),m=Pt(t.ref,v),w=b.useRef(null);b.useEffect(()=>{!a||!v.current||(h.current=!n)},[n,a]),b.useEffect(()=>{if(!a||!v.current)return;const x=Gt(v.current);return v.current.contains(x.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),h.current&&v.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[a]),b.useEffect(()=>{if(!a||!v.current)return;const x=Gt(v.current),S=k=>{w.current=k,!(r||!s()||k.key!=="Tab")&&x.activeElement===v.current&&k.shiftKey&&(l.current=!0,u.current&&u.current.focus())},C=()=>{const k=v.current;if(k===null)return;if(!x.hasFocus()||!s()||l.current){l.current=!1;return}if(k.contains(x.activeElement)||r&&x.activeElement!==c.current&&x.activeElement!==u.current)return;if(x.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!h.current)return;let P=[];if((x.activeElement===c.current||x.activeElement===u.current)&&(P=i(v.current)),P.length>0){var _,R;const T=!!((_=w.current)!=null&&_.shiftKey&&((R=w.current)==null?void 0:R.key)==="Tab"),M=P[0],$=P[P.length-1];typeof M!="string"&&typeof $!="string"&&(T?$.focus():M.focus())}else k.focus()};x.addEventListener("focusin",C),x.addEventListener("keydown",S,!0);const E=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&C()},50);return()=>{clearInterval(E),x.removeEventListener("focusin",C),x.removeEventListener("keydown",S,!0)}},[n,r,o,s,a,i]);const g=x=>{d.current===null&&(d.current=x.relatedTarget),h.current=!0,p.current=x.target;const S=t.props.onFocus;S&&S(x)},y=x=>{d.current===null&&(d.current=x.relatedTarget),h.current=!0};return f.jsxs(b.Fragment,{children:[f.jsx("div",{tabIndex:a?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),b.cloneElement(t,{ref:m,onFocus:g}),f.jsx("div",{tabIndex:a?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}function A6(e){return typeof e=="function"?e():e}const xy=b.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,a]=b.useState(null),l=Pt(b.isValidElement(r)?r.ref:null,n);if(Ur(()=>{i||a(A6(o)||document.body)},[o,i]),Ur(()=>{if(s&&!i)return Pc(n,s),()=>{Pc(n,null)}},[n,s,i]),i){if(b.isValidElement(r)){const c={ref:l};return b.cloneElement(r,c)}return f.jsx(b.Fragment,{children:r})}return f.jsx(b.Fragment,{children:s&&Zf.createPortal(r,s)})}),k6=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],R6={entering:{opacity:1},entered:{opacity:1}},E6=b.forwardRef(function(t,n){const r=Lp(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:h,onExited:v,onExiting:m,style:w,timeout:g=o,TransitionComponent:y=qr}=t,x=G(t,k6),S=b.useRef(null),C=Pt(S,a.ref,n),E=O=>z=>{if(O){const N=S.current;z===void 0?O(N):O(N,z)}},k=E(p),P=E((O,z)=>{Kk(O);const N=Ta({style:w,timeout:g,easing:l},{mode:"enter"});O.style.webkitTransition=r.transitions.create("opacity",N),O.style.transition=r.transitions.create("opacity",N),u&&u(O,z)}),_=E(d),R=E(m),T=E(O=>{const z=Ta({style:w,timeout:g,easing:l},{mode:"exit"});O.style.webkitTransition=r.transitions.create("opacity",z),O.style.transition=r.transitions.create("opacity",z),h&&h(O)}),M=E(v),$=O=>{i&&i(S.current,O)};return f.jsx(y,A({appear:s,in:c,nodeRef:S,onEnter:P,onEntered:_,onEntering:k,onExit:T,onExited:M,onExiting:R,addEndListener:$,timeout:g},x,{children:(O,z)=>b.cloneElement(a,A({style:A({opacity:0,visibility:O==="exited"&&!c?"hidden":void 0},R6[O],w,a.props.style),ref:C},z))}))});function T6(e){return be("MuiBackdrop",e)}Se("MuiBackdrop",["root","invisible"]);const P6=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],I6=e=>{const{classes:t,invisible:n}=e;return we({root:["root",n&&"invisible"]},T6,t)},_6=V("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>A({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),j6=b.forwardRef(function(t,n){var r,o,i;const s=Ce({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:c="div",components:u={},componentsProps:d={},invisible:p=!1,open:h,slotProps:v={},slots:m={},TransitionComponent:w=E6,transitionDuration:g}=s,y=G(s,P6),x=A({},s,{component:c,invisible:p}),S=I6(x),C=(r=v.root)!=null?r:d.root;return f.jsx(w,A({in:h,timeout:g},y,{children:f.jsx(_6,A({"aria-hidden":!0},C,{as:(o=(i=m.root)!=null?i:u.Root)!=null?o:c,className:Z(S.root,l,C==null?void 0:C.className),ownerState:A({},x,C==null?void 0:C.ownerState),classes:S,ref:n,children:a}))}))});function M6(e){return typeof e=="function"?e():e}function O6(e){return e?e.props.hasOwnProperty("in"):!1}const $6=new g6;function L6(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=$6,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:u,rootRef:d}=e,p=b.useRef({}),h=b.useRef(null),v=b.useRef(null),m=Pt(v,d),[w,g]=b.useState(!u),y=O6(l);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const S=()=>Gt(h.current),C=()=>(p.current.modalRef=v.current,p.current.mount=h.current,p.current),E=()=>{o.mount(C(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},k=jn(()=>{const N=M6(t)||S().body;o.add(C(),N),v.current&&E()}),P=b.useCallback(()=>o.isTopModal(C()),[o]),_=jn(N=>{h.current=N,N&&(u&&P()?E():v.current&&Dl(v.current,x))}),R=b.useCallback(()=>{o.remove(C(),x)},[x,o]);b.useEffect(()=>()=>{R()},[R]),b.useEffect(()=>{u?k():(!y||!i)&&R()},[u,R,y,i,k]);const T=N=>D=>{var j;(j=N.onKeyDown)==null||j.call(N,D),!(D.key!=="Escape"||D.which===229||!P())&&(n||(D.stopPropagation(),c&&c(D,"escapeKeyDown")))},M=N=>D=>{var j;(j=N.onClick)==null||j.call(N,D),D.target===D.currentTarget&&c&&c(D,"backdropClick")};return{getRootProps:(N={})=>{const D=gf(e);delete D.onTransitionEnter,delete D.onTransitionExited;const j=A({},D,N);return A({role:"presentation"},j,{onKeyDown:T(j),ref:m})},getBackdropProps:(N={})=>{const D=N;return A({"aria-hidden":!0},D,{onClick:M(D),open:u})},getTransitionProps:()=>{const N=()=>{g(!1),s&&s()},D=()=>{g(!0),a&&a(),i&&R()};return{onEnter:t0(N,l==null?void 0:l.props.onEnter),onExited:t0(D,l==null?void 0:l.props.onExited)}},rootRef:m,portalRef:_,isTopModal:P,exited:w,hasTransition:y}}function N6(e){return be("MuiModal",e)}Se("MuiModal",["root","hidden","backdrop"]);const D6=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],z6=e=>{const{open:t,exited:n,classes:r}=e;return we({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},N6,r)},B6=V("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>A({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),F6=V(j6,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Zk=b.forwardRef(function(t,n){var r,o,i,s,a,l;const c=Ce({name:"MuiModal",props:t}),{BackdropComponent:u=F6,BackdropProps:d,className:p,closeAfterTransition:h=!1,children:v,container:m,component:w,components:g={},componentsProps:y={},disableAutoFocus:x=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:C=!1,disablePortal:E=!1,disableRestoreFocus:k=!1,disableScrollLock:P=!1,hideBackdrop:_=!1,keepMounted:R=!1,onBackdropClick:T,open:M,slotProps:$,slots:O}=c,z=G(c,D6),N=A({},c,{closeAfterTransition:h,disableAutoFocus:x,disableEnforceFocus:S,disableEscapeKeyDown:C,disablePortal:E,disableRestoreFocus:k,disableScrollLock:P,hideBackdrop:_,keepMounted:R}),{getRootProps:D,getBackdropProps:j,getTransitionProps:L,portalRef:W,isTopModal:se,exited:ae,hasTransition:Re}=L6(A({},N,{rootRef:n})),Y=A({},N,{exited:ae}),ce=z6(Y),q={};if(v.props.tabIndex===void 0&&(q.tabIndex="-1"),Re){const{onEnter:Ee,onExited:Te}=L();q.onEnter=Ee,q.onExited=Te}const fe=(r=(o=O==null?void 0:O.root)!=null?o:g.Root)!=null?r:B6,pe=(i=(s=O==null?void 0:O.backdrop)!=null?s:g.Backdrop)!=null?i:u,ge=(a=$==null?void 0:$.root)!=null?a:y.root,Oe=(l=$==null?void 0:$.backdrop)!=null?l:y.backdrop,ve=Ii({elementType:fe,externalSlotProps:ge,externalForwardedProps:z,getSlotProps:D,additionalProps:{ref:n,as:w},ownerState:Y,className:Z(p,ge==null?void 0:ge.className,ce==null?void 0:ce.root,!Y.open&&Y.exited&&(ce==null?void 0:ce.hidden))}),Ae=Ii({elementType:pe,externalSlotProps:Oe,additionalProps:d,getSlotProps:Ee=>j(A({},Ee,{onClick:Te=>{T&&T(Te),Ee!=null&&Ee.onClick&&Ee.onClick(Te)}})),className:Z(Oe==null?void 0:Oe.className,d==null?void 0:d.className,ce==null?void 0:ce.backdrop),ownerState:Y});return!R&&!M&&(!Re||ae)?null:f.jsx(xy,{ref:W,container:m,disablePortal:E,children:f.jsxs(fe,A({},ve,{children:[!_&&u?f.jsx(pe,A({},Ae)):null,f.jsx(C6,{disableEnforceFocus:S,disableAutoFocus:x,disableRestoreFocus:k,isEnabled:se,open:M,children:b.cloneElement(v,q)})]}))})});function W6(e){return be("MuiPopover",e)}Se("MuiPopover",["root","paper"]);const V6=["onEntering"],U6=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],H6=["slotProps"];function nw(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function rw(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function ow(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function fm(e){return typeof e=="function"?e():e}const G6=e=>{const{classes:t}=e;return we({root:["root"],paper:["paper"]},W6,t)},q6=V(Zk,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Yk=V(kr,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Xk=b.forwardRef(function(t,n){var r,o,i;const s=Ce({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:p,className:h,container:v,elevation:m=8,marginThreshold:w=16,open:g,PaperProps:y={},slots:x,slotProps:S,transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:E=yy,transitionDuration:k="auto",TransitionProps:{onEntering:P}={},disableScrollLock:_=!1}=s,R=G(s.TransitionProps,V6),T=G(s,U6),M=(r=S==null?void 0:S.paper)!=null?r:y,$=b.useRef(),O=Pt($,M.ref),z=A({},s,{anchorOrigin:c,anchorReference:d,elevation:m,marginThreshold:w,externalPaperSlotProps:M,transformOrigin:C,TransitionComponent:E,transitionDuration:k,TransitionProps:R}),N=G6(z),D=b.useCallback(()=>{if(d==="anchorPosition")return u;const Ee=fm(l),Ie=(Ee&&Ee.nodeType===1?Ee:Gt($.current).body).getBoundingClientRect();return{top:Ie.top+nw(Ie,c.vertical),left:Ie.left+rw(Ie,c.horizontal)}},[l,c.horizontal,c.vertical,u,d]),j=b.useCallback(Ee=>({vertical:nw(Ee,C.vertical),horizontal:rw(Ee,C.horizontal)}),[C.horizontal,C.vertical]),L=b.useCallback(Ee=>{const Te={width:Ee.offsetWidth,height:Ee.offsetHeight},Ie=j(Te);if(d==="none")return{top:null,left:null,transformOrigin:ow(Ie)};const le=D();let at=le.top-Ie.vertical,ue=le.left-Ie.horizontal;const Je=at+Te.height,Ge=ue+Te.width,Le=Pi(fm(l)),ht=Le.innerHeight-w,tt=Le.innerWidth-w;if(w!==null&&atht){const ze=Je-ht;at-=ze,Ie.vertical+=ze}if(w!==null&&uett){const ze=Ge-tt;ue-=ze,Ie.horizontal+=ze}return{top:`${Math.round(at)}px`,left:`${Math.round(ue)}px`,transformOrigin:ow(Ie)}},[l,d,D,j,w]),[W,se]=b.useState(g),ae=b.useCallback(()=>{const Ee=$.current;if(!Ee)return;const Te=L(Ee);Te.top!==null&&(Ee.style.top=Te.top),Te.left!==null&&(Ee.style.left=Te.left),Ee.style.transformOrigin=Te.transformOrigin,se(!0)},[L]);b.useEffect(()=>(_&&window.addEventListener("scroll",ae),()=>window.removeEventListener("scroll",ae)),[l,_,ae]);const Re=(Ee,Te)=>{P&&P(Ee,Te),ae()},Y=()=>{se(!1)};b.useEffect(()=>{g&&ae()}),b.useImperativeHandle(a,()=>g?{updatePosition:()=>{ae()}}:null,[g,ae]),b.useEffect(()=>{if(!g)return;const Ee=Kv(()=>{ae()}),Te=Pi(l);return Te.addEventListener("resize",Ee),()=>{Ee.clear(),Te.removeEventListener("resize",Ee)}},[l,g,ae]);let ce=k;k==="auto"&&!E.muiSupportAuto&&(ce=void 0);const q=v||(l?Gt(fm(l)).body:void 0),fe=(o=x==null?void 0:x.root)!=null?o:q6,pe=(i=x==null?void 0:x.paper)!=null?i:Yk,ge=Ii({elementType:pe,externalSlotProps:A({},M,{style:W?M.style:A({},M.style,{opacity:0})}),additionalProps:{elevation:m,ref:O},ownerState:z,className:Z(N.paper,M==null?void 0:M.className)}),Oe=Ii({elementType:fe,externalSlotProps:(S==null?void 0:S.root)||{},externalForwardedProps:T,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:q,open:g},ownerState:z,className:Z(N.root,h)}),{slotProps:ve}=Oe,Ae=G(Oe,H6);return f.jsx(fe,A({},Ae,!mf(fe)&&{slotProps:ve,disableScrollLock:_},{children:f.jsx(E,A({appear:!0,in:g,onEntering:Re,onExited:Y,timeout:ce},R,{children:f.jsx(pe,A({},ge,{children:p}))}))}))});function Q6(e){return be("MuiMenu",e)}Se("MuiMenu",["root","paper","list"]);const K6=["onEntering"],Z6=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Y6={vertical:"top",horizontal:"right"},X6={vertical:"top",horizontal:"left"},J6=e=>{const{classes:t}=e;return we({root:["root"],paper:["paper"],list:["list"]},Q6,t)},eL=V(Xk,{shouldForwardProp:e=>Bn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tL=V(Yk,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),nL=V(c6,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),rL=b.forwardRef(function(t,n){var r,o;const i=Ce({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:d,open:p,PaperProps:h={},PopoverClasses:v,transitionDuration:m="auto",TransitionProps:{onEntering:w}={},variant:g="selectedMenu",slots:y={},slotProps:x={}}=i,S=G(i.TransitionProps,K6),C=G(i,Z6),E=Uj(),k=A({},i,{autoFocus:s,disableAutoFocusItem:c,MenuListProps:u,onEntering:w,PaperProps:h,transitionDuration:m,TransitionProps:S,variant:g}),P=J6(k),_=s&&!c&&p,R=b.useRef(null),T=(j,L)=>{R.current&&R.current.adjustStyleForScrollbar(j,{direction:E?"rtl":"ltr"}),w&&w(j,L)},M=j=>{j.key==="Tab"&&(j.preventDefault(),d&&d(j,"tabKeyDown"))};let $=-1;b.Children.map(a,(j,L)=>{b.isValidElement(j)&&(j.props.disabled||(g==="selectedMenu"&&j.props.selected||$===-1)&&($=L))});const O=(r=y.paper)!=null?r:tL,z=(o=x.paper)!=null?o:h,N=Ii({elementType:y.root,externalSlotProps:x.root,ownerState:k,className:[P.root,l]}),D=Ii({elementType:O,externalSlotProps:z,ownerState:k,className:P.paper});return f.jsx(eL,A({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?Y6:X6,slots:{paper:O,root:y.root},slotProps:{root:N,paper:D},open:p,ref:n,transitionDuration:m,TransitionProps:A({onEntering:T},S),ownerState:k},C,{classes:v,children:f.jsx(nL,A({onKeyDown:M,actions:R,autoFocus:s&&($===-1||c),autoFocusItem:_,variant:g},u,{className:Z(P.list,u.className),children:a}))}))});function oL(e){return be("MuiNativeSelect",e)}const by=Se("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),iL=["className","disabled","error","IconComponent","inputRef","variant"],sL=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${U(n)}`,i&&"iconOpen",r&&"disabled"]};return we(a,oL,t)},Jk=({ownerState:e,theme:t})=>A({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":A({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${by.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),aL=V("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Bn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${by.multiple}`]:t.multiple}]}})(Jk),eR=({ownerState:e,theme:t})=>A({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${by.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),lL=V("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${U(n.variant)}`],n.open&&t.iconOpen]}})(eR),cL=b.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:a,variant:l="standard"}=t,c=G(t,iL),u=A({},t,{disabled:o,variant:l,error:i}),d=sL(u);return f.jsxs(b.Fragment,{children:[f.jsx(aL,A({ownerState:u,className:Z(d.select,r),disabled:o,ref:a||n},c)),t.multiple?null:f.jsx(lL,{as:s,ownerState:u,className:d.icon})]})});function uL(e){return be("MuiSelect",e)}const sl=Se("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var iw;const dL=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],fL=V("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${sl.select}`]:t.select},{[`&.${sl.select}`]:t[n.variant]},{[`&.${sl.error}`]:t.error},{[`&.${sl.multiple}`]:t.multiple}]}})(Jk,{[`&.${sl.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),pL=V("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${U(n.variant)}`],n.open&&t.iconOpen]}})(eR),hL=V("input",{shouldForwardProp:e=>Rk(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function sw(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function mL(e){return e==null||typeof e=="string"&&!e.trim()}const gL=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${U(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return we(a,uL,t)},vL=b.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:s,autoWidth:a,children:l,className:c,defaultOpen:u,defaultValue:d,disabled:p,displayEmpty:h,error:v=!1,IconComponent:m,inputRef:w,labelId:g,MenuProps:y={},multiple:x,name:S,onBlur:C,onChange:E,onClose:k,onFocus:P,onOpen:_,open:R,readOnly:T,renderValue:M,SelectDisplayProps:$={},tabIndex:O,value:z,variant:N="standard"}=t,D=G(t,dL),[j,L]=bi({controlled:z,default:d,name:"Select"}),[W,se]=bi({controlled:R,default:u,name:"Select"}),ae=b.useRef(null),Re=b.useRef(null),[Y,ce]=b.useState(null),{current:q}=b.useRef(R!=null),[fe,pe]=b.useState(),ge=Pt(n,w),Oe=b.useCallback(te=>{Re.current=te,te&&ce(te)},[]),ve=Y==null?void 0:Y.parentNode;b.useImperativeHandle(ge,()=>({focus:()=>{Re.current.focus()},node:ae.current,value:j}),[j]),b.useEffect(()=>{u&&W&&Y&&!q&&(pe(a?null:ve.clientWidth),Re.current.focus())},[Y,a]),b.useEffect(()=>{s&&Re.current.focus()},[s]),b.useEffect(()=>{if(!g)return;const te=Gt(Re.current).getElementById(g);if(te){const De=()=>{getSelection().isCollapsed&&Re.current.focus()};return te.addEventListener("click",De),()=>{te.removeEventListener("click",De)}}},[g]);const Ae=(te,De)=>{te?_&&_(De):k&&k(De),q||(pe(a?null:ve.clientWidth),se(te))},Ee=te=>{te.button===0&&(te.preventDefault(),Re.current.focus(),Ae(!0,te))},Te=te=>{Ae(!1,te)},Ie=b.Children.toArray(l),le=te=>{const De=Ie.find(qe=>qe.props.value===te.target.value);De!==void 0&&(L(De.props.value),E&&E(te,De))},at=te=>De=>{let qe;if(De.currentTarget.hasAttribute("tabindex")){if(x){qe=Array.isArray(j)?j.slice():[];const Dt=j.indexOf(te.props.value);Dt===-1?qe.push(te.props.value):qe.splice(Dt,1)}else qe=te.props.value;if(te.props.onClick&&te.props.onClick(De),j!==qe&&(L(qe),E)){const Dt=De.nativeEvent||De,An=new Dt.constructor(Dt.type,Dt);Object.defineProperty(An,"target",{writable:!0,value:{value:qe,name:S}}),E(An,te)}x||Ae(!1,De)}},ue=te=>{T||[" ","ArrowUp","ArrowDown","Enter"].indexOf(te.key)!==-1&&(te.preventDefault(),Ae(!0,te))},Je=Y!==null&&W,Ge=te=>{!Je&&C&&(Object.defineProperty(te,"target",{writable:!0,value:{value:j,name:S}}),C(te))};delete D["aria-invalid"];let Le,ht;const tt=[];let ze=!1;(Sf({value:j})||h)&&(M?Le=M(j):ze=!0);const mt=Ie.map(te=>{if(!b.isValidElement(te))return null;let De;if(x){if(!Array.isArray(j))throw new Error(ps(2));De=j.some(qe=>sw(qe,te.props.value)),De&&ze&&tt.push(te.props.children)}else De=sw(j,te.props.value),De&&ze&&(ht=te.props.children);return b.cloneElement(te,{"aria-selected":De?"true":"false",onClick:at(te),onKeyUp:qe=>{qe.key===" "&&qe.preventDefault(),te.props.onKeyUp&&te.props.onKeyUp(qe)},role:"option",selected:De,value:void 0,"data-value":te.props.value})});ze&&(x?tt.length===0?Le=null:Le=tt.reduce((te,De,qe)=>(te.push(De),qe{const{classes:t,disableUnderline:n}=e,o=we({root:["root",!n&&"underline"],input:["input"]},yL,t);return A({},t,o)},wL=V(Wp,{shouldForwardProp:e=>Bn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Bp(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),A({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${si.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${si.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${si.disabled}, .${si.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${si.disabled}:before`]:{borderBottomStyle:"dotted"}})}),SL=V(Vp,{name:"MuiInput",slot:"Input",overridesResolver:Fp})({}),wy=b.forwardRef(function(t,n){var r,o,i,s;const a=Ce({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:d=!1,inputComponent:p="input",multiline:h=!1,slotProps:v,slots:m={},type:w="text"}=a,g=G(a,xL),y=bL(a),S={root:{ownerState:{disableUnderline:l}}},C=v??u?yn(v??u,S):S,E=(r=(o=m.root)!=null?o:c.Root)!=null?r:wL,k=(i=(s=m.input)!=null?s:c.Input)!=null?i:SL;return f.jsx(my,A({slots:{root:E,input:k},slotProps:C,fullWidth:d,inputComponent:p,multiline:h,ref:n,type:w},g,{classes:y}))});wy.muiName="Input";function CL(e){return be("MuiFilledInput",e)}const qn=A({},Gn,Se("MuiFilledInput",["root","underline","input"])),AL=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],kL=e=>{const{classes:t,disableUnderline:n}=e,o=we({root:["root",!n&&"underline"],input:["input"]},CL,t);return A({},t,o)},RL=V(Wp,{shouldForwardProp:e=>Bn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Bp(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return A({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${qn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${qn.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${qn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${qn.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${qn.disabled}, .${qn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${qn.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&A({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),EL=V(Vp,{name:"MuiFilledInput",slot:"Input",overridesResolver:Fp})(({theme:e,ownerState:t})=>A({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Sy=b.forwardRef(function(t,n){var r,o,i,s;const a=Ce({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:p=!1,slotProps:h,slots:v={},type:m="text"}=a,w=G(a,AL),g=A({},a,{fullWidth:u,inputComponent:d,multiline:p,type:m}),y=kL(a),x={root:{ownerState:g},input:{ownerState:g}},S=h??c?yn(x,h??c):x,C=(r=(o=v.root)!=null?o:l.Root)!=null?r:RL,E=(i=(s=v.input)!=null?s:l.Input)!=null?i:EL;return f.jsx(my,A({slots:{root:C,input:E},componentsProps:S,fullWidth:u,inputComponent:d,multiline:p,ref:n,type:m},w,{classes:y}))});Sy.muiName="Input";const TL=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],PL=["root"],IL=e=>{const{classes:t}=e;return t},Cy={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Bn(e)&&e!=="variant",slot:"Root"},_L=V(wy,Cy)(""),jL=V(Up,Cy)(""),ML=V(Sy,Cy)(""),Ay=b.forwardRef(function(t,n){const r=Ce({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=tR,id:d,input:p,inputProps:h,label:v,labelId:m,MenuProps:w,multiple:g=!1,native:y=!1,onClose:x,onOpen:S,open:C,renderValue:E,SelectDisplayProps:k,variant:P="outlined"}=r,_=G(r,TL),R=y?cL:vL,T=qo(),M=Li({props:r,muiFormControl:T,states:["variant","error"]}),$=M.variant||P,O=A({},r,{variant:$,classes:s}),z=IL(O),N=G(z,PL),D=p||{standard:f.jsx(_L,{ownerState:O}),outlined:f.jsx(jL,{label:v,ownerState:O}),filled:f.jsx(ML,{ownerState:O})}[$],j=Pt(n,D.ref);return f.jsx(b.Fragment,{children:b.cloneElement(D,A({inputComponent:R,inputProps:A({children:i,error:M.error,IconComponent:u,variant:$,type:void 0,multiple:g},y?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:w,onClose:x,onOpen:S,open:C,renderValue:E,SelectDisplayProps:A({id:d},k)},h,{classes:h?yn(N,h.classes):N},p?p.props.inputProps:{})},(g&&y||c)&&$==="outlined"?{notched:!0}:{},{ref:j,className:Z(D.props.className,a,z.root)},!p&&{variant:$},_))})});Ay.muiName="Select";function OL(e){return be("PrivateSwitchBase",e)}Se("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const $L=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],LL=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${U(o)}`],input:["input"]};return we(i,OL,t)},NL=V(Bo)(({ownerState:e})=>A({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),DL=V("input",{shouldForwardProp:Bn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),nR=b.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:s,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:p,inputProps:h,inputRef:v,name:m,onBlur:w,onChange:g,onFocus:y,readOnly:x,required:S=!1,tabIndex:C,type:E,value:k}=t,P=G(t,$L),[_,R]=bi({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),T=qo(),M=L=>{y&&y(L),T&&T.onFocus&&T.onFocus(L)},$=L=>{w&&w(L),T&&T.onBlur&&T.onBlur(L)},O=L=>{if(L.nativeEvent.defaultPrevented)return;const W=L.target.checked;R(W),g&&g(L,W)};let z=l;T&&typeof z>"u"&&(z=T.disabled);const N=E==="checkbox"||E==="radio",D=A({},t,{checked:_,disabled:z,disableFocusRipple:c,edge:u}),j=LL(D);return f.jsxs(NL,A({component:"span",className:Z(j.root,s),centerRipple:!0,focusRipple:!c,disabled:z,tabIndex:null,role:void 0,onFocus:M,onBlur:$,ownerState:D,ref:n},P,{children:[f.jsx(DL,A({autoFocus:r,checked:o,defaultChecked:a,className:j.input,disabled:z,id:N?p:void 0,name:m,onChange:O,readOnly:x,ref:v,required:S,ownerState:D,tabIndex:C,type:E},E==="checkbox"&&k===void 0?{}:{value:k},h)),_?i:d]}))}),zL=Fn(f.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),BL=Fn(f.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),FL=Fn(f.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function WL(e){return be("MuiCheckbox",e)}const pm=Se("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),VL=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],UL=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${U(r)}`,`size${U(o)}`]},s=we(i,WL,t);return A({},t,s)},HL=V(nR,{shouldForwardProp:e=>Bn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${U(n.size)}`],n.color!=="default"&&t[`color${U(n.color)}`]]}})(({theme:e,ownerState:t})=>A({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ye(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${pm.checked}, &.${pm.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${pm.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),GL=f.jsx(BL,{}),qL=f.jsx(zL,{}),QL=f.jsx(FL,{}),th=b.forwardRef(function(t,n){var r,o;const i=Ce({props:t,name:"MuiCheckbox"}),{checkedIcon:s=GL,color:a="primary",icon:l=qL,indeterminate:c=!1,indeterminateIcon:u=QL,inputProps:d,size:p="medium",className:h}=i,v=G(i,VL),m=c?u:l,w=c?u:s,g=A({},i,{color:a,indeterminate:c,size:p}),y=UL(g);return f.jsx(HL,A({type:"checkbox",inputProps:A({"data-indeterminate":c},d),icon:b.cloneElement(m,{fontSize:(r=m.props.fontSize)!=null?r:p}),checkedIcon:b.cloneElement(w,{fontSize:(o=w.props.fontSize)!=null?o:p}),ownerState:g,ref:n,className:Z(y.root,h)},v,{classes:y}))});function KL(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,s=jp();b.useEffect(()=>{if(!o)return;function g(y){y.defaultPrevented||(y.key==="Escape"||y.key==="Esc")&&(r==null||r(y,"escapeKeyDown"))}return document.addEventListener("keydown",g),()=>{document.removeEventListener("keydown",g)}},[o,r]);const a=jn((g,y)=>{r==null||r(g,y)}),l=jn(g=>{!r||g==null||s.start(g,()=>{a(null,"timeout")})});b.useEffect(()=>(o&&l(t),s.clear),[o,t,l,s]);const c=g=>{r==null||r(g,"clickaway")},u=s.clear,d=b.useCallback(()=>{t!=null&&l(i??t*.5)},[t,i,l]),p=g=>y=>{const x=g.onBlur;x==null||x(y),d()},h=g=>y=>{const x=g.onFocus;x==null||x(y),u()},v=g=>y=>{const x=g.onMouseEnter;x==null||x(y),u()},m=g=>y=>{const x=g.onMouseLeave;x==null||x(y),d()};return b.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",d),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",u)}},[n,o,d,u]),{getRootProps:(g={})=>{const y=A({},gf(e),gf(g));return A({role:"presentation"},g,y,{onBlur:p(y),onFocus:h(y),onMouseEnter:v(y),onMouseLeave:m(y)})},onClickAway:c}}function aw(e){return e.substring(2).toLowerCase()}function ZL(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=Pt(t.ref,a),d=jn(v=>{const m=c.current;c.current=!1;const w=Gt(a.current);if(!l.current||!a.current||"clientX"in v&&ZL(v,w))return;if(s.current){s.current=!1;return}let g;v.composedPath?g=v.composedPath().indexOf(a.current)>-1:g=!w.documentElement.contains(v.target)||a.current.contains(v.target),!g&&(n||!m)&&o(v)}),p=v=>m=>{c.current=!0;const w=t.props[v];w&&w(m)},h={ref:u};return i!==!1&&(h[i]=p(i)),b.useEffect(()=>{if(i!==!1){const v=aw(i),m=Gt(a.current),w=()=>{s.current=!0};return m.addEventListener(v,d),m.addEventListener("touchmove",w),()=>{m.removeEventListener(v,d),m.removeEventListener("touchmove",w)}}},[d,i]),r!==!1&&(h[r]=p(r)),b.useEffect(()=>{if(r!==!1){const v=aw(r),m=Gt(a.current);return m.addEventListener(v,d),()=>{m.removeEventListener(v,d)}}},[d,r]),f.jsx(b.Fragment,{children:b.cloneElement(t,h)})}function YL(e){return be("MuiSnackbarContent",e)}Se("MuiSnackbarContent",["root","message","action"]);const XL=["action","className","message","role"],JL=e=>{const{classes:t}=e;return we({root:["root"],action:["action"],message:["message"]},YL,t)},eN=V(kr,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=qM(e.palette.background.default,t);return A({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),tN=V("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),nN=V("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),rN=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:s,role:a="alert"}=r,l=G(r,XL),c=r,u=JL(c);return f.jsxs(eN,A({role:a,square:!0,elevation:6,className:Z(u.root,i),ownerState:c,ref:n},l,{children:[f.jsx(tN,{className:u.message,ownerState:c,children:s}),o?f.jsx(nN,{className:u.action,ownerState:c,children:o}):null]}))});function oN(e){return be("MuiSnackbar",e)}Se("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const iN=["onEnter","onExited"],sN=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],aN=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${U(n.vertical)}${U(n.horizontal)}`]};return we(r,oN,t)},lw=V("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${U(n.anchorOrigin.vertical)}${U(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return A({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:A({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),oR=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiSnackbar"}),o=Lp(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:a,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:d,ClickAwayListenerProps:p,ContentProps:h,disableWindowBlurListener:v=!1,message:m,open:w,TransitionComponent:g=yy,transitionDuration:y=i,TransitionProps:{onEnter:x,onExited:S}={}}=r,C=G(r.TransitionProps,iN),E=G(r,sN),k=A({},r,{anchorOrigin:{vertical:a,horizontal:l},autoHideDuration:c,disableWindowBlurListener:v,TransitionComponent:g,transitionDuration:y}),P=aN(k),{getRootProps:_,onClickAway:R}=KL(A({},k)),[T,M]=b.useState(!0),$=Ii({elementType:lw,getSlotProps:_,externalForwardedProps:E,ownerState:k,additionalProps:{ref:n},className:[P.root,d]}),O=N=>{M(!0),S&&S(N)},z=(N,D)=>{M(!1),x&&x(N,D)};return!w&&T?null:f.jsx(rR,A({onClickAway:R},p,{children:f.jsx(lw,A({},$,{children:f.jsx(g,A({appear:!0,in:w,timeout:y,direction:a==="top"?"down":"up",onEnter:z,onExited:O},C,{children:u||f.jsx(rN,A({message:m,action:s},h))}))}))}))});function nh({openSnack:e,setOpenSnack:t,message:n}){return f.jsx(xy,{children:f.jsx(oR,{sx:{zIndex:9999},anchorOrigin:{vertical:"top",horizontal:"center"},open:e,onClose:()=>t(!1),children:f.jsx(Pk,{severity:"warning",children:n})})})}function Al({value:e,setValue:t,names:n,namesList:r,type:o,inSelectionData:i,dataProperty:s,fromQuickSelectors:a}){let l=e.length===n.length;const c=b.useRef(null),[u,d]=b.useState(450),[p,h]=b.useState(!1);function v(g){const y=[g.target.value].flat();if(y.length===0){t(e),h(!0);return}if(l){l=y.length!==n.length;const x=n.filter(S=>!y.includes(S));t(x)}else y.sort((x,S)=>r[x].localeCompare(r[S])),t(y)}function m(){if(c.current){const g=c.current.getBoundingClientRect(),x=window.innerHeight-g.bottom;d(x)}}const w=b.useMemo(()=>(n.sort((g,y)=>o==="Year"?y-g:r[g].localeCompare(r[y])),n),[n,r,o]);return f.jsxs("div",{ref:c,children:[f.jsx(nh,{openSnack:p,setOpenSnack:h,message:`At least one ${o.toLocaleLowerCase()} must be selected`}),f.jsxs(Gk,{sx:a?{maxWidth:"100%",minWidth:"100%"}:{m:1,maxWidth:"95%",minWidth:"95%"},size:a?"small":"medium",children:[f.jsx(Hk,{id:"multiple-checkbox-label",children:o}),f.jsx(Ay,{labelId:"multiple-checkbox-label",id:"multiple-checkbox",multiple:!0,value:e,onChange:v,onMouseEnter:m,input:f.jsx(Up,{label:o}),renderValue:g=>a?l?"All selected":o==="Year"&&g.length===1?g:`${g.length} selected`:g.map(y=>r[y]).join(", "),MenuProps:{PaperProps:{style:{maxHeight:u,marginTop:"8px"}},disablePortal:!0},children:w.map(g=>f.jsxs(Z9,{value:g,disabled:!i[s].has(g),style:{whiteSpace:"normal",padding:"1px"},children:[f.jsx(th,{checked:e.includes(g),sx:{padding:"6px"}}),f.jsx(U9,{style:{maxWidth:"500px"},primary:r[g]})]},g))})]})]})}function iR(e){const t={};return e.forEach(n=>{t[n]=n.toString()}),t}function lN({allocationSource:e,allocationType:t,fund:n,year:r,inSelectionData:o,setAllocationSource:i,setAllocationType:s,setFund:a,setYear:l}){const{lists:c,inDataLists:u}=b.useContext(Ho),d=[...u.years],p=[...u.funds],h=[...u.allocationTypes],v=[...u.allocationSources],m=iR(d),w=c.fundNames,g=c.allocationTypes,y=c.allocationSources;return f.jsxs(H,{display:"flex",flexDirection:"row",marginLeft:"4em",gap:1,children:[f.jsx(Al,{value:r,setValue:l,names:d,namesList:m,type:"Year",inSelectionData:o,dataProperty:"years",fromQuickSelectors:!0}),f.jsx(Al,{value:n,setValue:a,names:p,namesList:w,type:"Fund",inSelectionData:o,dataProperty:"funds",fromQuickSelectors:!0}),f.jsx(Al,{value:t,setValue:s,names:h,namesList:g,type:"Allocation Type",inSelectionData:o,dataProperty:"allocationTypes",fromQuickSelectors:!0}),f.jsx(Al,{value:e,setValue:i,names:v,namesList:y,type:"Allocation Source",inSelectionData:o,dataProperty:"allocationSources",fromQuickSelectors:!0})]})}function cN({titleRef:e,inViewTitle:t,inViewMenus:n,inViewSummary:r,inViewPictogram:o,inViewBeneficiaryTypes:i,inViewOrganizations:s,inViewSectors:a,inViewIndicators:l,inViewDisability:c,inViewGBV:u,refIds:d,year:p,setYear:h,fund:v,setFund:m,allocationSource:w,setAllocationSource:g,allocationType:y,setAllocationType:x,inSelectionData:S}){return f.jsxs(Ke,{container:!0,spacing:2,justifyContent:"center",position:"sticky",top:-1,ref:e,mb:2,pt:1,style:{backgroundColor:"rgba(255,255,255,0.95)",zIndex:1200,borderBottom:t?"none":"1px solid #ccc",boxShadow:t?"none":"0px 10px 10px -10px rgba(0,0,0,0.2)"},children:[f.jsxs(Ke,{pb:3,pt:2,xs:12,display:"flex",alignItems:"center",justifyContent:"center",children:[f.jsx(me,{variant:"h4",style:{fontFamily:"Montserrat",fontSize:n?"40px":"24px",fontWeight:700,marginLeft:n?"1em":"2em"},children:"Allocation Progress Dashboard"}),f.jsx(Ha,{"data-tooltip-id":"tooltip","data-tooltip-content":"The Allocation Progress dashboard provides visual representation of both under implementation and implemented projects","data-tooltip-place":"top",style:{color:Fe.unColor,fontSize:n?"26px":"18px",marginLeft:"0.1em",alignSelf:"flex-start"}}),!n&&f.jsx(lN,{year:p,setYear:h,fund:v,setFund:m,allocationSource:w,setAllocationSource:g,allocationType:y,setAllocationType:x,inSelectionData:S})]}),f.jsx(r9,{inViewSummary:r,inViewPictogram:o,inViewBeneficiaryTypes:i,inViewOrganizations:s,inViewSectors:a,inViewIndicators:l,inViewDisability:c,inViewGBV:u,refIds:d})]})}const uN=ft.memo(cN);function dN(){return f.jsx(Ke,{container:!0,spacing:2,justifyContent:"center",children:f.jsx(Ke,{xs:10,mb:3,children:f.jsx(me,{variant:"body1",style:{fontFamily:"Montserrat",fontSize:"14px",textAlign:"center"},children:"Welcome to the Country Based Pooled Fund (CBPF) Allocation Progress Dashboard, a comprehensive tool that provides an overview of the Targeted vs Achieved statuses for funded projects. Here, you can visualize the progress of each project, including the percentage of people targeted and reached by type of partners engaged, sectors covered, categorization of people, by disability and by Gender based violence (GBV) category. Additionally this dashboard for the first time explore the achievements against the targeted Global Indicators across funds."})})})}const{implementationStatuses:fN}=Cn;function pN({allocationSource:e,allocationType:t,fund:n,implementationStatus:r,inDataLists:o,queryStringValues:i,setAllocationSource:s,setAllocationType:a,setClickedDownload:l,setFund:c,setImplementationStatus:u,setYear:d,year:p,downloadStates:h,defaultYear:v}){b.useEffect(()=>{const g=m("allocationType"),y=m("allocationSource"),x=m("fund"),S=m("year"),C=w("implementationStatus");return g&&a(g),y&&s(y),x&&c(x),S&&d(S),C&&u(C),()=>{}},[]),b.useEffect(()=>{l(h);const g=t.length===o.allocationTypes.size?"":`&allocationType=${t}`,y=e.length===o.allocationSources.size?"":`&allocationSource=${e}`,x=n.length===o.funds.size?"":`&fund=${n}`,S=p.length===1&&p[0]===v?"":`&year=${p}`,C=r.length===fN.length?"":`&implementationStatus=${r}`;g||y||x||S||C?window.history.replaceState({},"",`?${g}${y}${x}${S}${C}`):window.history.replaceState({},"",window.location.pathname)},[r,p,n,e,t]);function m(g){var y;return((y=i.get(g))==null?void 0:y.split(",").map(Number))??null}function w(g){var y;return((y=i.get(g))==null?void 0:y.split(","))??null}}function sR(){return f.jsx(kr,{style:{width:"140px",height:"140px",backgroundColor:"#1677ff",position:"absolute",bottom:"-70px",right:"-70px",borderRadius:"50%",filter:"blur(70px)",opacity:"0.3"}})}function hN(e){return be("MuiCollapse",e)}Se("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const mN=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],gN=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return we(r,hN,n)},vN=V("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>A({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&A({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),yN=V("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>A({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),xN=V("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>A({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),aR=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:s,collapsedSize:a="0px",component:l,easing:c,in:u,onEnter:d,onEntered:p,onEntering:h,onExit:v,onExited:m,onExiting:w,orientation:g="vertical",style:y,timeout:x=Ak.standard,TransitionComponent:S=qr}=r,C=G(r,mN),E=A({},r,{orientation:g,collapsedSize:a}),k=gN(E),P=Lp(),_=jp(),R=b.useRef(null),T=b.useRef(),M=typeof a=="number"?`${a}px`:a,$=g==="horizontal",O=$?"width":"height",z=b.useRef(null),N=Pt(n,z),D=q=>fe=>{if(q){const pe=z.current;fe===void 0?q(pe):q(pe,fe)}},j=()=>R.current?R.current[$?"clientWidth":"clientHeight"]:0,L=D((q,fe)=>{R.current&&$&&(R.current.style.position="absolute"),q.style[O]=M,d&&d(q,fe)}),W=D((q,fe)=>{const pe=j();R.current&&$&&(R.current.style.position="");const{duration:ge,easing:Oe}=Ta({style:y,timeout:x,easing:c},{mode:"enter"});if(x==="auto"){const ve=P.transitions.getAutoHeightDuration(pe);q.style.transitionDuration=`${ve}ms`,T.current=ve}else q.style.transitionDuration=typeof ge=="string"?ge:`${ge}ms`;q.style[O]=`${pe}px`,q.style.transitionTimingFunction=Oe,h&&h(q,fe)}),se=D((q,fe)=>{q.style[O]="auto",p&&p(q,fe)}),ae=D(q=>{q.style[O]=`${j()}px`,v&&v(q)}),Re=D(m),Y=D(q=>{const fe=j(),{duration:pe,easing:ge}=Ta({style:y,timeout:x,easing:c},{mode:"exit"});if(x==="auto"){const Oe=P.transitions.getAutoHeightDuration(fe);q.style.transitionDuration=`${Oe}ms`,T.current=Oe}else q.style.transitionDuration=typeof pe=="string"?pe:`${pe}ms`;q.style[O]=M,q.style.transitionTimingFunction=ge,w&&w(q)}),ce=q=>{x==="auto"&&_.start(T.current||0,q),o&&o(z.current,q)};return f.jsx(S,A({in:u,onEnter:L,onEntered:se,onEntering:W,onExit:ae,onExited:Re,onExiting:Y,addEndListener:ce,nodeRef:z,timeout:x==="auto"?null:x},C,{children:(q,fe)=>f.jsx(vN,A({as:l,className:Z(k.root,s,{entered:k.entered,exited:!u&&M==="0px"&&k.hidden}[q]),style:A({[$?"minWidth":"minHeight"]:M},y),ref:N},fe,{ownerState:A({},E,{state:q}),children:f.jsx(yN,{ownerState:A({},E,{state:q}),className:k.wrapper,ref:R,children:f.jsx(xN,{ownerState:A({},E,{state:q}),className:k.wrapperInner,children:i})})}))}))});aR.muiSupportAuto=!0;const lR=b.createContext({});function bN(e){return be("MuiAccordion",e)}const Gu=Se("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),wN=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","slots","slotProps","TransitionComponent","TransitionProps"],SN=e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:i}=e;return we({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!i&&"gutters"],region:["region"]},bN,t)},CN=V(kr,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Gu.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${Gu.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${Gu.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e})=>({variants:[{props:t=>!t.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:t=>!t.disableGutters,style:{[`&.${Gu.expanded}`]:{margin:"16px 0"}}}]})),AN=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiAccordion"}),{children:o,className:i,defaultExpanded:s=!1,disabled:a=!1,disableGutters:l=!1,expanded:c,onChange:u,square:d=!1,slots:p={},slotProps:h={},TransitionComponent:v,TransitionProps:m}=r,w=G(r,wN),[g,y]=bi({controlled:c,default:s,name:"Accordion",state:"expanded"}),x=b.useCallback($=>{y(!g),u&&u($,!g)},[g,u,y]),[S,...C]=b.Children.toArray(o),E=b.useMemo(()=>({expanded:g,disabled:a,disableGutters:l,toggle:x}),[g,a,l,x]),k=A({},r,{square:d,disabled:a,disableGutters:l,expanded:g}),P=SN(k),_=A({transition:v},p),R=A({transition:m},h),[T,M]=o0("transition",{elementType:aR,externalForwardedProps:{slots:_,slotProps:R},ownerState:k});return f.jsxs(CN,A({className:Z(P.root,i),ref:n,ownerState:k,square:d},w,{children:[f.jsx(lR.Provider,{value:E,children:S}),f.jsx(T,A({in:g,timeout:"auto"},M,{children:f.jsx("div",{"aria-labelledby":S.props.id,id:S.props["aria-controls"],role:"region",className:P.region,children:C})}))]}))});function kN(e){return be("MuiAccordionDetails",e)}Se("MuiAccordionDetails",["root"]);const RN=["className"],EN=e=>{const{classes:t}=e;return we({root:["root"]},kN,t)},TN=V("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),PN=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiAccordionDetails"}),{className:o}=r,i=G(r,RN),s=r,a=EN(s);return f.jsx(TN,A({className:Z(a.root,o),ref:n,ownerState:s},i))});function IN(e){return be("MuiAccordionSummary",e)}const Xs=Se("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),_N=["children","className","expandIcon","focusVisibleClassName","onClick"],jN=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return we({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},IN,t)},MN=V(Bo,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${Xs.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Xs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${Xs.disabled})`]:{cursor:"pointer"},variants:[{props:n=>!n.disableGutters,style:{[`&.${Xs.expanded}`]:{minHeight:64}}}]}}),ON=V("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e})=>({display:"flex",flexGrow:1,margin:"12px 0",variants:[{props:t=>!t.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${Xs.expanded}`]:{margin:"20px 0"}}}]})),$N=V("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${Xs.expanded}`]:{transform:"rotate(180deg)"}})),LN=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiAccordionSummary"}),{children:o,className:i,expandIcon:s,focusVisibleClassName:a,onClick:l}=r,c=G(r,_N),{disabled:u=!1,disableGutters:d,expanded:p,toggle:h}=b.useContext(lR),v=g=>{h&&h(g),l&&l(g)},m=A({},r,{expanded:p,disabled:u,disableGutters:d}),w=jN(m);return f.jsxs(MN,A({focusRipple:!1,disableRipple:!0,disabled:u,component:"div","aria-expanded":p,className:Z(w.root,i),focusVisibleClassName:Z(w.focusVisible,a),onClick:v,ref:n,ownerState:m},c,{children:[f.jsx(ON,{className:w.content,ownerState:m,children:o}),s&&f.jsx($N,{className:w.expandIconWrapper,ownerState:m,children:s})]}))});var ky={},NN=hn;Object.defineProperty(ky,"__esModule",{value:!0});var cR=ky.default=void 0,DN=NN(Wn()),zN=f;cR=ky.default=(0,DN.default)((0,zN.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");function BN(e){return be("MuiFormGroup",e)}Se("MuiFormGroup",["root","row","error"]);const FN=["className","row"],WN=e=>{const{classes:t,row:n,error:r}=e;return we({root:["root",n&&"row",r&&"error"]},BN,t)},VN=V("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>A({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),uR=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1}=r,s=G(r,FN),a=qo(),l=Li({props:r,muiFormControl:a,states:["error"]}),c=A({},r,{row:i,error:l.error}),u=WN(c);return f.jsx(VN,A({className:Z(u.root,o),ownerState:c,ref:n},s))}),UN=CM({createStyledComponent:V("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ce({props:e,name:"MuiStack"})});function HN(e){return be("MuiFormControlLabel",e)}const kl=Se("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),GN=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],qN=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${U(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return we(s,HN,t)},QN=V("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${kl.label}`]:t.label},t.root,t[`labelPlacement${U(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>A({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${kl.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${kl.label}`]:{[`&.${kl.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),KN=V("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${kl.error}`]:{color:(e.vars||e).palette.error.main}})),dR=b.forwardRef(function(t,n){var r,o;const i=Ce({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:l,disabled:c,disableTypography:u,label:d,labelPlacement:p="end",required:h,slotProps:v={}}=i,m=G(i,GN),w=qo(),g=(r=c??l.props.disabled)!=null?r:w==null?void 0:w.disabled,y=h??l.props.required,x={disabled:g,required:y};["checked","name","onChange","value","inputRef"].forEach(_=>{typeof l.props[_]>"u"&&typeof i[_]<"u"&&(x[_]=i[_])});const S=Li({props:i,muiFormControl:w,states:["error"]}),C=A({},i,{disabled:g,labelPlacement:p,required:y,error:S.error}),E=qN(C),k=(o=v.typography)!=null?o:a.typography;let P=d;return P!=null&&P.type!==me&&!u&&(P=f.jsx(me,A({component:"span"},k,{className:Z(E.label,k==null?void 0:k.className),children:P}))),f.jsxs(QN,A({className:Z(E.root,s),ownerState:C,ref:n},m,{children:[b.cloneElement(l,x),y?f.jsxs(UN,{display:"block",children:[P,f.jsxs(KN,{ownerState:C,"aria-hidden":!0,className:E.asterisk,children:[" ","*"]})]}):P]}))});function ZN({value:e,setValue:t,names:n,namesList:r,inSelectionData:o,dataProperty:i}){const[s,a]=b.useState(!1);return f.jsxs(f.Fragment,{children:[f.jsx(nh,{openSnack:s,setOpenSnack:a,message:"At least one allocation source must be selected"}),f.jsx(uR,{children:n.map((l,c)=>f.jsx(dR,{disabled:!o[i].has(l),style:o[i].has(l)?{filter:"grayscale(0%)"}:{filter:"grayscale(100%)"},control:f.jsx(th,{checked:e.includes(l),onChange:()=>{if(e.length===1&&e.includes(l)){a(!0);return}e.includes(l)?t(u=>u.filter(d=>d!==l)):t(u=>[...u,l])}}),label:r[l]},c))})]})}function YN(e){return be("MuiButton",e)}const qu=Se("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),XN=b.createContext({}),JN=b.createContext(void 0),e7=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],t7=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${U(t)}`,`size${U(o)}`,`${i}Size${U(o)}`,`color${U(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${U(o)}`],endIcon:["icon","endIcon",`iconSize${U(o)}`]},l=we(a,YN,s);return A({},s,l)},fR=e=>A({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),n7=V(Bo,{shouldForwardProp:e=>Bn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${U(n.color)}`],t[`size${U(n.size)}`],t[`${n.variant}Size${U(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return A({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":A({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ye(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ye(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ye(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":A({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${qu.focusVisible}`]:A({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${qu.disabled}`]:A({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Ye(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${qu.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${qu.disabled}`]:{boxShadow:"none"}}),r7=V("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${U(n.size)}`]]}})(({ownerState:e})=>A({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},fR(e))),o7=V("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${U(n.size)}`]]}})(({ownerState:e})=>A({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},fR(e))),Fo=b.forwardRef(function(t,n){const r=b.useContext(XN),o=b.useContext(JN),i=Tc(r,t),s=Ce({props:i,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:v,focusVisibleClassName:m,fullWidth:w=!1,size:g="medium",startIcon:y,type:x,variant:S="text"}=s,C=G(s,e7),E=A({},s,{color:l,component:c,disabled:d,disableElevation:p,disableFocusRipple:h,fullWidth:w,size:g,type:x,variant:S}),k=t7(E),P=y&&f.jsx(r7,{className:k.startIcon,ownerState:E,children:y}),_=v&&f.jsx(o7,{className:k.endIcon,ownerState:E,children:v}),R=o||"";return f.jsxs(n7,A({ownerState:E,className:Z(r.className,k.root,u,R),component:c,disabled:d,focusRipple:!h,focusVisibleClassName:Z(k.focusVisible,m),ref:n,type:x},C,{classes:k,children:[P,a,_]}))});function i7(e){return be("MuiFormHelperText",e)}const cw=Se("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var uw;const s7=["children","className","component","disabled","error","filled","focused","margin","required","variant"],a7=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${U(r)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return we(c,i7,t)},l7=V("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${U(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>A({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${cw.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${cw.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),c7=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p"}=r,a=G(r,s7),l=qo(),c=Li({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=A({},r,{component:s,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),d=a7(u);return f.jsx(l7,A({as:s,ownerState:u,className:Z(d.root,i),ref:n},a,{children:o===" "?uw||(uw=f.jsx("span",{className:"notranslate",children:"​"})):o}))});function u7(e){return be("MuiTextField",e)}Se("MuiTextField",["root"]);const d7=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],f7={standard:wy,filled:Sy,outlined:Up},p7=e=>{const{classes:t}=e;return we({root:["root"]},u7,t)},h7=V(Gk,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),m7=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:p,fullWidth:h=!1,helperText:v,id:m,InputLabelProps:w,inputProps:g,InputProps:y,inputRef:x,label:S,maxRows:C,minRows:E,multiline:k=!1,name:P,onBlur:_,onChange:R,onFocus:T,placeholder:M,required:$=!1,rows:O,select:z=!1,SelectProps:N,type:D,value:j,variant:L="outlined"}=r,W=G(r,d7),se=A({},r,{autoFocus:i,color:l,disabled:u,error:d,fullWidth:h,multiline:k,required:$,select:z,variant:L}),ae=p7(se),Re={};L==="outlined"&&(w&&typeof w.shrink<"u"&&(Re.notched=w.shrink),Re.label=S),z&&((!N||!N.native)&&(Re.id=void 0),Re["aria-describedby"]=void 0);const Y=Ip(m),ce=v&&Y?`${Y}-helper-text`:void 0,q=S&&Y?`${Y}-label`:void 0,fe=f7[L],pe=f.jsx(fe,A({"aria-describedby":ce,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:h,multiline:k,name:P,rows:O,maxRows:C,minRows:E,type:D,value:j,id:Y,inputRef:x,onBlur:_,onChange:R,onFocus:T,placeholder:M,inputProps:g},Re,y));return f.jsxs(h7,A({className:Z(ae.root,a),disabled:u,error:d,fullWidth:h,ref:n,required:$,color:l,variant:L,ownerState:se},W,{children:[S!=null&&S!==""&&f.jsx(Hk,A({htmlFor:Y,id:q},w,{children:S})),z?f.jsx(Ay,A({"aria-describedby":ce,id:Y,labelId:q,value:j,input:pe},N,{children:s})):pe,v&&f.jsx(c7,A({id:ce},p,{children:v}))]}))});function dw(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function g7(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:s=!1}=e;return(a,{inputValue:l,getOptionLabel:c})=>{let u=s?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=dw(u));const d=u?a.filter(p=>{let h=(i||c)(p);return n&&(h=h.toLowerCase()),t&&(h=dw(h)),o==="start"?h.indexOf(u)===0:h.indexOf(u)>-1}):a;return typeof r=="number"?d.slice(0,r):d}}function Qu(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function x7(e){const{unstable_isActiveElementInListbox:t=y7,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:s=!1,clearOnBlur:a=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?[]:null,disableClearable:d=!1,disableCloseOnSelect:p=!1,disabled:h,disabledItemsFocusable:v=!1,disableListWrap:m=!1,filterOptions:w=v7,filterSelectedOptions:g=!1,freeSolo:y=!1,getOptionDisabled:x,getOptionKey:S,getOptionLabel:C=F=>{var B;return(B=F.label)!=null?B:F},groupBy:E,handleHomeEndKeys:k=!e.freeSolo,id:P,includeInputInList:_=!1,inputValue:R,isOptionEqualToValue:T=(F,B)=>F===B,multiple:M=!1,onChange:$,onClose:O,onHighlightChange:z,onInputChange:N,onOpen:D,open:j,openOnFocus:L=!1,options:W,readOnly:se=!1,selectOnFocus:ae=!e.freeSolo,value:Re}=e,Y=Ip(P);let ce=C;ce=F=>{const B=C(F);return typeof B!="string"?String(B):B};const q=b.useRef(!1),fe=b.useRef(!0),pe=b.useRef(null),ge=b.useRef(null),[Oe,ve]=b.useState(null),[Ae,Ee]=b.useState(-1),Te=o?0:-1,Ie=b.useRef(Te),[le,at]=bi({controlled:Re,default:u,name:c}),[ue,Je]=bi({controlled:R,default:"",name:c,state:"inputValue"}),[Ge,Le]=b.useState(!1),ht=b.useCallback((F,B)=>{if(!(M?le.length!(g&&(M?le:[le]).some(B=>B!==null&&T(F,B)))),{inputValue:yt&&mt?"":ue,getOptionLabel:ce}):[],dt=Fj({filteredOptions:ee,value:le,inputValue:ue});b.useEffect(()=>{const F=le!==dt.value;Ge&&!F||y&&!F||ht(null,le)},[le,ht,Ge,dt.value,y]);const Yt=tt&&ee.length>0&&!se,wt=jn(F=>{F===-1?pe.current.focus():Oe.querySelector(`[data-tag-index="${F}"]`).focus()});b.useEffect(()=>{M&&Ae>le.length-1&&(Ee(-1),wt(-1))},[le,M,Ae,wt]);function te(F,B){if(!ge.current||F<0||F>=ee.length)return-1;let re=F;for(;;){const J=ge.current.querySelector(`[data-option-index="${re}"]`),oe=v?!1:!J||J.disabled||J.getAttribute("aria-disabled")==="true";if(J&&J.hasAttribute("tabindex")&&!oe)return re;if(B==="next"?re=(re+1)%ee.length:re=(re-1+ee.length)%ee.length,re===F)return-1}}const De=jn(({event:F,index:B,reason:re="auto"})=>{if(Ie.current=B,B===-1?pe.current.removeAttribute("aria-activedescendant"):pe.current.setAttribute("aria-activedescendant",`${Y}-option-${B}`),z&&z(F,B===-1?null:ee[B],re),!ge.current)return;const J=ge.current.querySelector(`[role="option"].${n}-focused`);J&&(J.classList.remove(`${n}-focused`),J.classList.remove(`${n}-focusVisible`));let oe=ge.current;if(ge.current.getAttribute("role")!=="listbox"&&(oe=ge.current.parentElement.querySelector('[role="listbox"]')),!oe)return;if(B===-1){oe.scrollTop=0;return}const Ue=ge.current.querySelector(`[data-option-index="${B}"]`);if(Ue&&(Ue.classList.add(`${n}-focused`),re==="keyboard"&&Ue.classList.add(`${n}-focusVisible`),oe.scrollHeight>oe.clientHeight&&re!=="mouse"&&re!=="touch")){const st=Ue,qt=oe.clientHeight+oe.scrollTop,As=st.offsetTop+st.offsetHeight;As>qt?oe.scrollTop=As-oe.clientHeight:st.offsetTop-st.offsetHeight*(E?1.3:0){if(!_e)return;const Ue=te((()=>{const st=ee.length-1;if(B==="reset")return Te;if(B==="start")return 0;if(B==="end")return st;const qt=Ie.current+B;return qt<0?qt===-1&&_?-1:m&&Ie.current!==-1||Math.abs(B)>1?0:st:qt>st?qt===st+1&&_?-1:m||Math.abs(B)>1?st:0:qt})(),re);if(De({index:Ue,reason:J,event:F}),r&&B!=="reset")if(Ue===-1)pe.current.value=ue;else{const st=ce(ee[Ue]);pe.current.value=st,st.toLowerCase().indexOf(ue.toLowerCase())===0&&ue.length>0&&pe.current.setSelectionRange(ue.length,st.length)}}),Dt=()=>{const F=(B,re)=>{const J=B?ce(B):"",oe=re?ce(re):"";return J===oe};if(Ie.current!==-1&&dt.filteredOptions&&dt.filteredOptions.length!==ee.length&&dt.inputValue===ue&&(M?le.length===dt.value.length&&dt.value.every((B,re)=>ce(le[re])===ce(B)):F(dt.value,le))){const B=dt.filteredOptions[Ie.current];if(B)return Qu(ee,re=>ce(re)===ce(B))}return-1},An=b.useCallback(()=>{if(!_e)return;const F=Dt();if(F!==-1){Ie.current=F;return}const B=M?le[0]:le;if(ee.length===0||B==null){qe({diff:"reset"});return}if(ge.current){if(B!=null){const re=ee[Ie.current];if(M&&re&&Qu(le,oe=>T(re,oe))!==-1)return;const J=Qu(ee,oe=>T(oe,B));J===-1?qe({diff:"reset"}):De({index:J});return}if(Ie.current>=ee.length-1){De({index:ee.length-1});return}De({index:Ie.current})}},[ee.length,M?!1:le,g,qe,De,_e,ue,M]),Kr=jn(F=>{Pc(ge,F),F&&An()});b.useEffect(()=>{An()},[An]);const Ft=F=>{tt||(ze(!0),It(!0),D&&D(F))},sn=(F,B)=>{tt&&(ze(!1),O&&O(F,B))},an=(F,B,re,J)=>{if(M){if(le.length===B.length&&le.every((oe,Ue)=>oe===B[Ue]))return}else if(le===B)return;$&&$(F,B,re,J),at(B)},Er=b.useRef(!1),gt=(F,B,re="selectOption",J="options")=>{let oe=re,Ue=B;if(M){Ue=Array.isArray(le)?le.slice():[];const st=Qu(Ue,qt=>T(B,qt));st===-1?Ue.push(B):J!=="freeSolo"&&(Ue.splice(st,1),oe="removeOption")}ht(F,Ue),an(F,Ue,oe,{option:B}),!p&&(!F||!F.ctrlKey&&!F.metaKey)&&sn(F,oe),(s===!0||s==="touch"&&Er.current||s==="mouse"&&!Er.current)&&pe.current.blur()};function Xt(F,B){if(F===-1)return-1;let re=F;for(;;){if(B==="next"&&re===le.length||B==="previous"&&re===-1)return-1;const J=Oe.querySelector(`[data-tag-index="${re}"]`);if(!J||!J.hasAttribute("tabindex")||J.disabled||J.getAttribute("aria-disabled")==="true")re+=B==="next"?1:-1;else return re}}const Pe=(F,B)=>{if(!M)return;ue===""&&sn(F,"toggleInput");let re=Ae;Ae===-1?ue===""&&B==="previous"&&(re=le.length-1):(re+=B==="next"?1:-1,re<0&&(re=0),re===le.length&&(re=-1)),re=Xt(re,B),Ee(re),wt(re)},Ve=F=>{q.current=!0,Je(""),N&&N(F,"","clear"),an(F,M?[]:null,"clear")},Jt=F=>B=>{if(F.onKeyDown&&F.onKeyDown(B),!B.defaultMuiPrevented&&(Ae!==-1&&["ArrowLeft","ArrowRight"].indexOf(B.key)===-1&&(Ee(-1),wt(-1)),B.which!==229))switch(B.key){case"Home":_e&&k&&(B.preventDefault(),qe({diff:"start",direction:"next",reason:"keyboard",event:B}));break;case"End":_e&&k&&(B.preventDefault(),qe({diff:"end",direction:"previous",reason:"keyboard",event:B}));break;case"PageUp":B.preventDefault(),qe({diff:-fw,direction:"previous",reason:"keyboard",event:B}),Ft(B);break;case"PageDown":B.preventDefault(),qe({diff:fw,direction:"next",reason:"keyboard",event:B}),Ft(B);break;case"ArrowDown":B.preventDefault(),qe({diff:1,direction:"next",reason:"keyboard",event:B}),Ft(B);break;case"ArrowUp":B.preventDefault(),qe({diff:-1,direction:"previous",reason:"keyboard",event:B}),Ft(B);break;case"ArrowLeft":Pe(B,"previous");break;case"ArrowRight":Pe(B,"next");break;case"Enter":if(Ie.current!==-1&&_e){const re=ee[Ie.current],J=x?x(re):!1;if(B.preventDefault(),J)return;gt(B,re,"selectOption"),r&&pe.current.setSelectionRange(pe.current.value.length,pe.current.value.length)}else y&&ue!==""&&yt===!1&&(M&&B.preventDefault(),gt(B,ue,"createOption","freeSolo"));break;case"Escape":_e?(B.preventDefault(),B.stopPropagation(),sn(B,"escape")):l&&(ue!==""||M&&le.length>0)&&(B.preventDefault(),B.stopPropagation(),Ve(B));break;case"Backspace":if(M&&!se&&ue===""&&le.length>0){const re=Ae===-1?le.length-1:Ae,J=le.slice();J.splice(re,1),an(B,J,"removeOption",{option:le[re]})}break;case"Delete":if(M&&!se&&ue===""&&le.length>0&&Ae!==-1){const re=Ae,J=le.slice();J.splice(re,1),an(B,J,"removeOption",{option:le[re]})}break}},Zr=F=>{Le(!0),L&&!q.current&&Ft(F)},ne=F=>{if(t(ge)){pe.current.focus();return}Le(!1),fe.current=!0,q.current=!1,i&&Ie.current!==-1&&_e?gt(F,ee[Ie.current],"blur"):i&&y&&ue!==""?gt(F,ue,"blur","freeSolo"):a&&ht(F,le),sn(F,"blur")},ye=F=>{const B=F.target.value;ue!==B&&(Je(B),It(!1),N&&N(F,B,"input")),B===""?!d&&!M&&an(F,null,"clear"):Ft(F)},xe=F=>{const B=Number(F.currentTarget.getAttribute("data-option-index"));Ie.current!==B&&De({event:F,index:B,reason:"mouse"})},ot=F=>{De({event:F,index:Number(F.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Er.current=!0},Wt=F=>{const B=Number(F.currentTarget.getAttribute("data-option-index"));gt(F,ee[B],"selectOption"),Er.current=!1},kn=F=>B=>{const re=le.slice();re.splice(F,1),an(B,re,"removeOption",{option:le[F]})},Rn=F=>{tt?sn(F,"toggleInput"):Ft(F)},Vt=F=>{F.currentTarget.contains(F.target)&&F.target.getAttribute("id")!==Y&&F.preventDefault()},en=F=>{F.currentTarget.contains(F.target)&&(pe.current.focus(),ae&&fe.current&&pe.current.selectionEnd-pe.current.selectionStart===0&&pe.current.select(),fe.current=!1)},it=F=>{!h&&(ue===""||!tt)&&Rn(F)};let Vn=y&&ue.length>0;Vn=Vn||(M?le.length>0:le!==null);let Zo=ee;return E&&(Zo=ee.reduce((F,B,re)=>{const J=E(B);return F.length>0&&F[F.length-1].group===J?F[F.length-1].options.push(B):F.push({key:re,index:re,group:J,options:[B]}),F},[])),h&&Ge&&ne(),{getRootProps:(F={})=>A({"aria-owns":Yt?`${Y}-listbox`:null},F,{onKeyDown:Jt(F),onMouseDown:Vt,onClick:en}),getInputLabelProps:()=>({id:`${Y}-label`,htmlFor:Y}),getInputProps:()=>({id:Y,value:ue,onBlur:ne,onFocus:Zr,onChange:ye,onMouseDown:it,"aria-activedescendant":_e?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Yt?`${Y}-listbox`:void 0,"aria-expanded":Yt,autoComplete:"off",ref:pe,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Ve}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Rn}),getTagProps:({index:F})=>A({key:F,"data-tag-index":F,tabIndex:-1},!se&&{onDelete:kn(F)}),getListboxProps:()=>({role:"listbox",id:`${Y}-listbox`,"aria-labelledby":`${Y}-label`,ref:Kr,onMouseDown:F=>{F.preventDefault()}}),getOptionProps:({index:F,option:B})=>{var re;const J=(M?le:[le]).some(Ue=>Ue!=null&&T(B,Ue)),oe=x?x(B):!1;return{key:(re=S==null?void 0:S(B))!=null?re:ce(B),tabIndex:-1,role:"option",id:`${Y}-option-${F}`,onMouseMove:xe,onClick:Wt,onTouchStart:ot,"data-option-index":F,"aria-disabled":oe,"aria-selected":J}},id:Y,inputValue:ue,value:le,dirty:Vn,expanded:_e&&Oe,popupOpen:_e,focused:Ge||Ae!==-1,anchorEl:Oe,setAnchorEl:ve,focusedTag:Ae,groupedOptions:Zo}}var Ry={};Object.defineProperty(Ry,"__esModule",{value:!0});var pR=Ry.default=void 0,b7=S7(b),w7=gk;function hR(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(hR=function(r){return r?n:t})(e)}function S7(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=hR(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function C7(e){return Object.keys(e).length===0}function A7(e=null){const t=b7.useContext(w7.ThemeContext);return!t||C7(t)?e:t}pR=Ry.default=A7;var Ln="top",wr="bottom",Sr="right",Nn="left",Ey="auto",du=[Ln,wr,Sr,Nn],Pa="start",$c="end",k7="clippingParents",mR="viewport",al="popper",R7="reference",pw=du.reduce(function(e,t){return e.concat([t+"-"+Pa,t+"-"+$c])},[]),gR=[].concat(du,[Ey]).reduce(function(e,t){return e.concat([t,t+"-"+Pa,t+"-"+$c])},[]),E7="beforeRead",T7="read",P7="afterRead",I7="beforeMain",_7="main",j7="afterMain",M7="beforeWrite",O7="write",$7="afterWrite",L7=[E7,T7,P7,I7,_7,j7,M7,O7,$7];function wo(e){return e?(e.nodeName||"").toLowerCase():null}function nr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function vs(e){var t=nr(e).Element;return e instanceof t||e instanceof Element}function gr(e){var t=nr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ty(e){if(typeof ShadowRoot>"u")return!1;var t=nr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function N7(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!gr(i)||!wo(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function D7(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!gr(o)||!wo(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const z7={name:"applyStyles",enabled:!0,phase:"write",fn:N7,effect:D7,requires:["computeStyles"]};function ho(e){return e.split("-")[0]}var is=Math.max,kf=Math.min,Ia=Math.round;function h0(){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 vR(){return!/^((?!chrome|android).)*safari/i.test(h0())}function _a(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&gr(e)&&(o=e.offsetWidth>0&&Ia(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ia(r.height)/e.offsetHeight||1);var s=vs(e)?nr(e):window,a=s.visualViewport,l=!vR()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/i,d=r.width/o,p=r.height/i;return{width:d,height:p,top:u,right:c+d,bottom:u+p,left:c,x:c,y:u}}function Py(e){var t=_a(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function yR(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ty(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Wo(e){return nr(e).getComputedStyle(e)}function B7(e){return["table","td","th"].indexOf(wo(e))>=0}function Ni(e){return((vs(e)?e.ownerDocument:e.document)||window.document).documentElement}function rh(e){return wo(e)==="html"?e:e.assignedSlot||e.parentNode||(Ty(e)?e.host:null)||Ni(e)}function hw(e){return!gr(e)||Wo(e).position==="fixed"?null:e.offsetParent}function F7(e){var t=/firefox/i.test(h0()),n=/Trident/i.test(h0());if(n&&gr(e)){var r=Wo(e);if(r.position==="fixed")return null}var o=rh(e);for(Ty(o)&&(o=o.host);gr(o)&&["html","body"].indexOf(wo(o))<0;){var i=Wo(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function fu(e){for(var t=nr(e),n=hw(e);n&&B7(n)&&Wo(n).position==="static";)n=hw(n);return n&&(wo(n)==="html"||wo(n)==="body"&&Wo(n).position==="static")?t:n||F7(e)||t}function Iy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function zl(e,t,n){return is(e,kf(t,n))}function W7(e,t,n){var r=zl(e,t,n);return r>n?n:r}function xR(){return{top:0,right:0,bottom:0,left:0}}function bR(e){return Object.assign({},xR(),e)}function wR(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var V7=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,bR(typeof t!="number"?t:wR(t,du))};function U7(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=ho(n.placement),l=Iy(a),c=[Nn,Sr].indexOf(a)>=0,u=c?"height":"width";if(!(!i||!s)){var d=V7(o.padding,n),p=Py(i),h=l==="y"?Ln:Nn,v=l==="y"?wr:Sr,m=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],w=s[l]-n.rects.reference[l],g=fu(i),y=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,x=m/2-w/2,S=d[h],C=y-p[u]-d[v],E=y/2-p[u]/2+x,k=zl(S,E,C),P=l;n.modifiersData[r]=(t={},t[P]=k,t.centerOffset=k-E,t)}}function H7(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||yR(t.elements.popper,o)&&(t.elements.arrow=o))}const G7={name:"arrow",enabled:!0,phase:"main",fn:U7,effect:H7,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ja(e){return e.split("-")[1]}var q7={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Q7(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ia(n*o)/o||0,y:Ia(r*o)/o||0}}function mw(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=s.x,h=p===void 0?0:p,v=s.y,m=v===void 0?0:v,w=typeof u=="function"?u({x:h,y:m}):{x:h,y:m};h=w.x,m=w.y;var g=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),x=Nn,S=Ln,C=window;if(c){var E=fu(n),k="clientHeight",P="clientWidth";if(E===nr(n)&&(E=Ni(n),Wo(E).position!=="static"&&a==="absolute"&&(k="scrollHeight",P="scrollWidth")),E=E,o===Ln||(o===Nn||o===Sr)&&i===$c){S=wr;var _=d&&E===C&&C.visualViewport?C.visualViewport.height:E[k];m-=_-r.height,m*=l?1:-1}if(o===Nn||(o===Ln||o===wr)&&i===$c){x=Sr;var R=d&&E===C&&C.visualViewport?C.visualViewport.width:E[P];h-=R-r.width,h*=l?1:-1}}var T=Object.assign({position:a},c&&q7),M=u===!0?Q7({x:h,y:m},nr(n)):{x:h,y:m};if(h=M.x,m=M.y,l){var $;return Object.assign({},T,($={},$[S]=y?"0":"",$[x]=g?"0":"",$.transform=(C.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",$))}return Object.assign({},T,(t={},t[S]=y?m+"px":"",t[x]=g?h+"px":"",t.transform="",t))}function K7(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:ho(t.placement),variation:ja(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,mw(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,mw(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Z7={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:K7,data:{}};var Ku={passive:!0};function Y7(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=nr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,Ku)}),a&&l.addEventListener("resize",n.update,Ku),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Ku)}),a&&l.removeEventListener("resize",n.update,Ku)}}const X7={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Y7,data:{}};var J7={left:"right",right:"left",bottom:"top",top:"bottom"};function Rd(e){return e.replace(/left|right|bottom|top/g,function(t){return J7[t]})}var eD={start:"end",end:"start"};function gw(e){return e.replace(/start|end/g,function(t){return eD[t]})}function _y(e){var t=nr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function jy(e){return _a(Ni(e)).left+_y(e).scrollLeft}function tD(e,t){var n=nr(e),r=Ni(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=vR();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+jy(e),y:l}}function nD(e){var t,n=Ni(e),r=_y(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=is(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=is(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+jy(e),l=-r.scrollTop;return Wo(o||n).direction==="rtl"&&(a+=is(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function My(e){var t=Wo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function SR(e){return["html","body","#document"].indexOf(wo(e))>=0?e.ownerDocument.body:gr(e)&&My(e)?e:SR(rh(e))}function Bl(e,t){var n;t===void 0&&(t=[]);var r=SR(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=nr(r),s=o?[i].concat(i.visualViewport||[],My(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(Bl(rh(s)))}function m0(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function rD(e,t){var n=_a(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function vw(e,t,n){return t===mR?m0(tD(e,n)):vs(t)?rD(t,n):m0(nD(Ni(e)))}function oD(e){var t=Bl(rh(e)),n=["absolute","fixed"].indexOf(Wo(e).position)>=0,r=n&&gr(e)?fu(e):e;return vs(r)?t.filter(function(o){return vs(o)&&yR(o,r)&&wo(o)!=="body"}):[]}function iD(e,t,n,r){var o=t==="clippingParents"?oD(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,c){var u=vw(e,c,r);return l.top=is(u.top,l.top),l.right=kf(u.right,l.right),l.bottom=kf(u.bottom,l.bottom),l.left=is(u.left,l.left),l},vw(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function CR(e){var t=e.reference,n=e.element,r=e.placement,o=r?ho(r):null,i=r?ja(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case Ln:l={x:s,y:t.y-n.height};break;case wr:l={x:s,y:t.y+t.height};break;case Sr:l={x:t.x+t.width,y:a};break;case Nn:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?Iy(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Pa:l[c]=l[c]-(t[u]/2-n[u]/2);break;case $c:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Lc(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?k7:a,c=n.rootBoundary,u=c===void 0?mR:c,d=n.elementContext,p=d===void 0?al:d,h=n.altBoundary,v=h===void 0?!1:h,m=n.padding,w=m===void 0?0:m,g=bR(typeof w!="number"?w:wR(w,du)),y=p===al?R7:al,x=e.rects.popper,S=e.elements[v?y:p],C=iD(vs(S)?S:S.contextElement||Ni(e.elements.popper),l,u,s),E=_a(e.elements.reference),k=CR({reference:E,element:x,strategy:"absolute",placement:o}),P=m0(Object.assign({},x,k)),_=p===al?P:E,R={top:C.top-_.top+g.top,bottom:_.bottom-C.bottom+g.bottom,left:C.left-_.left+g.left,right:_.right-C.right+g.right},T=e.modifiersData.offset;if(p===al&&T){var M=T[o];Object.keys(R).forEach(function($){var O=[Sr,wr].indexOf($)>=0?1:-1,z=[Ln,wr].indexOf($)>=0?"y":"x";R[$]+=M[z]*O})}return R}function sD(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?gR:l,u=ja(r),d=u?a?pw:pw.filter(function(v){return ja(v)===u}):du,p=d.filter(function(v){return c.indexOf(v)>=0});p.length===0&&(p=d);var h=p.reduce(function(v,m){return v[m]=Lc(e,{placement:m,boundary:o,rootBoundary:i,padding:s})[ho(m)],v},{});return Object.keys(h).sort(function(v,m){return h[v]-h[m]})}function aD(e){if(ho(e)===Ey)return[];var t=Rd(e);return[gw(e),t,gw(t)]}function lD(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,v=h===void 0?!0:h,m=n.allowedAutoPlacements,w=t.options.placement,g=ho(w),y=g===w,x=l||(y||!v?[Rd(w)]:aD(w)),S=[w].concat(x).reduce(function(Y,ce){return Y.concat(ho(ce)===Ey?sD(t,{placement:ce,boundary:u,rootBoundary:d,padding:c,flipVariations:v,allowedAutoPlacements:m}):ce)},[]),C=t.rects.reference,E=t.rects.popper,k=new Map,P=!0,_=S[0],R=0;R=0,z=O?"width":"height",N=Lc(t,{placement:T,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),D=O?$?Sr:Nn:$?wr:Ln;C[z]>E[z]&&(D=Rd(D));var j=Rd(D),L=[];if(i&&L.push(N[M]<=0),a&&L.push(N[D]<=0,N[j]<=0),L.every(function(Y){return Y})){_=T,P=!1;break}k.set(T,L)}if(P)for(var W=v?3:1,se=function(ce){var q=S.find(function(fe){var pe=k.get(fe);if(pe)return pe.slice(0,ce).every(function(ge){return ge})});if(q)return _=q,"break"},ae=W;ae>0;ae--){var Re=se(ae);if(Re==="break")break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}}const cD={name:"flip",enabled:!0,phase:"main",fn:lD,requiresIfExists:["offset"],data:{_skip:!1}};function yw(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function xw(e){return[Ln,Sr,wr,Nn].some(function(t){return e[t]>=0})}function uD(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Lc(t,{elementContext:"reference"}),a=Lc(t,{altBoundary:!0}),l=yw(s,r),c=yw(a,o,i),u=xw(l),d=xw(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const dD={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:uD};function fD(e,t,n){var r=ho(e),o=[Nn,Ln].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Nn,Sr].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function pD(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=gR.reduce(function(u,d){return u[d]=fD(d,t.rects,i),u},{}),a=s[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const hD={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:pD};function mD(e){var t=e.state,n=e.name;t.modifiersData[n]=CR({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const gD={name:"popperOffsets",enabled:!0,phase:"read",fn:mD,data:{}};function vD(e){return e==="x"?"y":"x"}function yD(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,h=p===void 0?!0:p,v=n.tetherOffset,m=v===void 0?0:v,w=Lc(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=ho(t.placement),y=ja(t.placement),x=!y,S=Iy(g),C=vD(S),E=t.modifiersData.popperOffsets,k=t.rects.reference,P=t.rects.popper,_=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,R=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(E){if(i){var $,O=S==="y"?Ln:Nn,z=S==="y"?wr:Sr,N=S==="y"?"height":"width",D=E[S],j=D+w[O],L=D-w[z],W=h?-P[N]/2:0,se=y===Pa?k[N]:P[N],ae=y===Pa?-P[N]:-k[N],Re=t.elements.arrow,Y=h&&Re?Py(Re):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:xR(),q=ce[O],fe=ce[z],pe=zl(0,k[N],Y[N]),ge=x?k[N]/2-W-pe-q-R.mainAxis:se-pe-q-R.mainAxis,Oe=x?-k[N]/2+W+pe+fe+R.mainAxis:ae+pe+fe+R.mainAxis,ve=t.elements.arrow&&fu(t.elements.arrow),Ae=ve?S==="y"?ve.clientTop||0:ve.clientLeft||0:0,Ee=($=T==null?void 0:T[S])!=null?$:0,Te=D+ge-Ee-Ae,Ie=D+Oe-Ee,le=zl(h?kf(j,Te):j,D,h?is(L,Ie):L);E[S]=le,M[S]=le-D}if(a){var at,ue=S==="x"?Ln:Nn,Je=S==="x"?wr:Sr,Ge=E[C],Le=C==="y"?"height":"width",ht=Ge+w[ue],tt=Ge-w[Je],ze=[Ln,Nn].indexOf(g)!==-1,mt=(at=T==null?void 0:T[C])!=null?at:0,It=ze?ht:Ge-k[Le]-P[Le]-mt+R.altAxis,yt=ze?Ge+k[Le]+P[Le]-mt-R.altAxis:tt,_e=h&&ze?W7(It,Ge,yt):zl(h?It:ht,Ge,h?yt:tt);E[C]=_e,M[C]=_e-Ge}t.modifiersData[r]=M}}const xD={name:"preventOverflow",enabled:!0,phase:"main",fn:yD,requiresIfExists:["offset"]};function bD(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function wD(e){return e===nr(e)||!gr(e)?_y(e):bD(e)}function SD(e){var t=e.getBoundingClientRect(),n=Ia(t.width)/e.offsetWidth||1,r=Ia(t.height)/e.offsetHeight||1;return n!==1||r!==1}function CD(e,t,n){n===void 0&&(n=!1);var r=gr(t),o=gr(t)&&SD(t),i=Ni(t),s=_a(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((wo(t)!=="body"||My(i))&&(a=wD(t)),gr(t)?(l=_a(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=jy(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function AD(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function kD(e){var t=AD(e);return L7.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function RD(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function ED(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var bw={placement:"bottom",modifiers:[],strategy:"absolute"};function ww(){for(var e=arguments.length,t=new Array(e),n=0;n{const{classes:t}=e;return we({root:["root"]},_D,t)},ND={},DD=b.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:s,disablePortal:a,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:p,slotProps:h={},slots:v={},TransitionProps:m}=t,w=G(t,jD),g=b.useRef(null),y=Pt(g,n),x=b.useRef(null),S=Pt(x,p),C=b.useRef(S);Ur(()=>{C.current=S},[S]),b.useImperativeHandle(p,()=>x.current,[]);const E=OD(u,s),[k,P]=b.useState(E),[_,R]=b.useState(g0(o));b.useEffect(()=>{x.current&&x.current.forceUpdate()}),b.useEffect(()=>{o&&R(g0(o))},[o]),Ur(()=>{if(!_||!c)return;const z=j=>{P(j.placement)};let N=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:j})=>{z(j)}}];l!=null&&(N=N.concat(l)),d&&d.modifiers!=null&&(N=N.concat(d.modifiers));const D=ID(_,g.current,A({placement:E},d,{modifiers:N}));return C.current(D),()=>{D.destroy(),C.current(null)}},[_,a,l,c,d,E]);const T={placement:k};m!==null&&(T.TransitionProps=m);const M=LD(t),$=(r=v.root)!=null?r:"div",O=Ii({elementType:$,externalSlotProps:h.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:M.root});return f.jsx($,A({},O,{children:typeof i=="function"?i(T):i}))}),zD=b.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:p=ND,popperRef:h,style:v,transition:m=!1,slotProps:w={},slots:g={}}=t,y=G(t,MD),[x,S]=b.useState(!0),C=()=>{S(!1)},E=()=>{S(!0)};if(!l&&!u&&(!m||x))return null;let k;if(i)k=i;else if(r){const R=g0(r);k=R&&$D(R)?Gt(R).body:Gt(null).body}const P=!u&&l&&(!m||x)?"none":void 0,_=m?{in:u,onEnter:C,onExited:E}:void 0;return f.jsx(xy,{disablePortal:a,container:k,children:f.jsx(DD,A({anchorEl:r,direction:s,disablePortal:a,modifiers:c,ref:n,open:m?!x:u,placement:d,popperOptions:p,popperRef:h,slotProps:w,slots:g},y,{style:A({position:"fixed",top:0,left:0,display:P},v),TransitionProps:_,children:o}))})}),BD=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],FD=V(zD,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),AR=b.forwardRef(function(t,n){var r;const o=pR(),i=Ce({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:p,modifiers:h,open:v,placement:m,popperOptions:w,popperRef:g,transition:y,slots:x,slotProps:S}=i,C=G(i,BD),E=(r=x==null?void 0:x.root)!=null?r:l==null?void 0:l.Root,k=A({anchorEl:s,container:u,disablePortal:d,keepMounted:p,modifiers:h,open:v,placement:m,popperOptions:w,popperRef:g,transition:y},C);return f.jsx(FD,A({as:a,direction:o==null?void 0:o.direction,slots:{root:E},slotProps:S??c},k,{ref:n}))});function WD(e){return be("MuiListSubheader",e)}Se("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const VD=["className","color","component","disableGutters","disableSticky","inset"],UD=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,s={root:["root",n!=="default"&&`color${U(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return we(s,WD,t)},HD=V("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${U(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>A({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),kR=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:s="li",disableGutters:a=!1,disableSticky:l=!1,inset:c=!1}=r,u=G(r,VD),d=A({},r,{color:i,component:s,disableGutters:a,disableSticky:l,inset:c}),p=UD(d);return f.jsx(HD,A({as:s,className:Z(p.root,o),ref:n,ownerState:d},u))});kR.muiSkipListHighlight=!0;const GD=Fn(f.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function qD(e){return be("MuiChip",e)}const et=Se("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),QD=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],KD=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:s,clickable:a,variant:l}=e,c={root:["root",l,n&&"disabled",`size${U(r)}`,`color${U(o)}`,a&&"clickable",a&&`clickableColor${U(o)}`,s&&"deletable",s&&`deletableColor${U(o)}`,`${l}${U(o)}`],label:["label",`label${U(r)}`],avatar:["avatar",`avatar${U(r)}`,`avatarColor${U(o)}`],icon:["icon",`icon${U(r)}`,`iconColor${U(i)}`],deleteIcon:["deleteIcon",`deleteIcon${U(r)}`,`deleteIconColor${U(o)}`,`deleteIcon${U(l)}Color${U(o)}`]};return we(c,qD,t)},ZD=V("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:s,size:a,variant:l}=n;return[{[`& .${et.avatar}`]:t.avatar},{[`& .${et.avatar}`]:t[`avatar${U(a)}`]},{[`& .${et.avatar}`]:t[`avatarColor${U(r)}`]},{[`& .${et.icon}`]:t.icon},{[`& .${et.icon}`]:t[`icon${U(a)}`]},{[`& .${et.icon}`]:t[`iconColor${U(o)}`]},{[`& .${et.deleteIcon}`]:t.deleteIcon},{[`& .${et.deleteIcon}`]:t[`deleteIcon${U(a)}`]},{[`& .${et.deleteIcon}`]:t[`deleteIconColor${U(r)}`]},{[`& .${et.deleteIcon}`]:t[`deleteIcon${U(l)}Color${U(r)}`]},t.root,t[`size${U(a)}`],t[`color${U(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${U(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${U(r)}`],t[l],t[`${l}${U(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return A({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${et.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${et.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${et.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${et.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${et.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${et.icon}`]:A({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&A({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${et.deleteIcon}`]:A({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Ye(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Ye(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Ye(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ye(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${et.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>A({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ye(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ye(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${et.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>A({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${et.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${et.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${et.avatar}`]:{marginLeft:4},[`& .${et.avatarSmall}`]:{marginLeft:2},[`& .${et.icon}`]:{marginLeft:4},[`& .${et.iconSmall}`]:{marginLeft:2},[`& .${et.deleteIcon}`]:{marginRight:5},[`& .${et.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ye(e.palette[t.color].main,.7)}`,[`&.${et.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ye(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ye(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${et.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ye(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),YD=V("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${U(r)}`]]}})(({ownerState:e})=>A({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function Sw(e){return e.key==="Backspace"||e.key==="Delete"}const XD=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:s,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:p,onClick:h,onDelete:v,onKeyDown:m,onKeyUp:w,size:g="medium",variant:y="filled",tabIndex:x,skipFocusWhenDisabled:S=!1}=r,C=G(r,QD),E=b.useRef(null),k=Pt(E,n),P=L=>{L.stopPropagation(),v&&v(L)},_=L=>{L.currentTarget===L.target&&Sw(L)&&L.preventDefault(),m&&m(L)},R=L=>{L.currentTarget===L.target&&(v&&Sw(L)?v(L):L.key==="Escape"&&E.current&&E.current.blur()),w&&w(L)},T=s!==!1&&h?!0:s,M=T||v?Bo:l||"div",$=A({},r,{component:M,disabled:u,size:g,color:a,iconColor:b.isValidElement(d)&&d.props.color||a,onDelete:!!v,clickable:T,variant:y}),O=KD($),z=M===Bo?A({component:l||"div",focusVisibleClassName:O.focusVisible},v&&{disableRipple:!0}):{};let N=null;v&&(N=c&&b.isValidElement(c)?b.cloneElement(c,{className:Z(c.props.className,O.deleteIcon),onClick:P}):f.jsx(GD,{className:Z(O.deleteIcon),onClick:P}));let D=null;o&&b.isValidElement(o)&&(D=b.cloneElement(o,{className:Z(O.avatar,o.props.className)}));let j=null;return d&&b.isValidElement(d)&&(j=b.cloneElement(d,{className:Z(O.icon,d.props.className)})),f.jsxs(ZD,A({as:M,className:Z(O.root,i),disabled:T&&u?!0:void 0,onClick:h,onKeyDown:_,onKeyUp:R,ref:k,tabIndex:S&&u?-1:x,ownerState:$},z,C,{children:[D||j,f.jsx(YD,{className:Z(O.label),ownerState:$,children:p}),N]}))});function JD(e){return be("MuiAutocomplete",e)}const Be=Se("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var Cw,Aw;const ez=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],tz=["ref"],nz=["key"],rz=["key"],oz=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:s,hasPopupIcon:a,inputFocused:l,popupOpen:c,size:u}=e,d={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",s&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${U(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return we(d,JD,t)},iz=V("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:s,size:a}=n;return[{[`& .${Be.tag}`]:t.tag},{[`& .${Be.tag}`]:t[`tagSize${U(a)}`]},{[`& .${Be.inputRoot}`]:t.inputRoot},{[`& .${Be.input}`]:t.input},{[`& .${Be.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Be.focused} .${Be.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Be.clearIndicator}`]:{visibility:"visible"}},[`& .${Be.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Be.inputRoot}`]:{[`.${Be.hasPopupIcon}&, .${Be.hasClearIcon}&`]:{paddingRight:30},[`.${Be.hasPopupIcon}.${Be.hasClearIcon}&`]:{paddingRight:56},[`& .${Be.input}`]:{width:0,minWidth:30}},[`& .${si.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${si.root}.${Gn.sizeSmall}`]:{[`& .${si.input}`]:{padding:"2px 4px 3px 0"}},[`& .${no.root}`]:{padding:9,[`.${Be.hasPopupIcon}&, .${Be.hasClearIcon}&`]:{paddingRight:39},[`.${Be.hasPopupIcon}.${Be.hasClearIcon}&`]:{paddingRight:65},[`& .${Be.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Be.endAdornment}`]:{right:9}},[`& .${no.root}.${Gn.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Be.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${qn.root}`]:{paddingTop:19,paddingLeft:8,[`.${Be.hasPopupIcon}&, .${Be.hasClearIcon}&`]:{paddingRight:39},[`.${Be.hasPopupIcon}.${Be.hasClearIcon}&`]:{paddingRight:65},[`& .${qn.input}`]:{padding:"7px 4px"},[`& .${Be.endAdornment}`]:{right:9}},[`& .${qn.root}.${Gn.sizeSmall}`]:{paddingBottom:1,[`& .${qn.input}`]:{padding:"2.5px 4px"}},[`& .${Gn.hiddenLabel}`]:{paddingTop:8},[`& .${qn.root}.${Gn.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Be.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${qn.root}.${Gn.hiddenLabel}.${Gn.sizeSmall}`]:{[`& .${Be.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Be.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Be.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Be.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Be.inputRoot}`]:{flexWrap:"wrap"}}}]}),sz=V("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),az=V(oy,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),lz=V(oy,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>A({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),cz=V(AR,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Be.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),uz=V(kr,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>A({},e.typography.body1,{overflow:"auto"})),dz=V("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),fz=V("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),pz=V("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Be.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Be.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Be.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ye(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Be.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ye(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Be.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ye(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),hz=V(kR,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),mz=V("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Be.option}`]:{paddingLeft:24}}),gz=b.forwardRef(function(t,n){var r,o,i,s;const a=Ce({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:c=!1,autoSelect:u=!1,blurOnSelect:d=!1,ChipProps:p,className:h,clearIcon:v=Cw||(Cw=f.jsx(Tk,{fontSize:"small"})),clearOnBlur:m=!a.freeSolo,clearOnEscape:w=!1,clearText:g="Clear",closeText:y="Close",componentsProps:x={},defaultValue:S=a.multiple?[]:null,disableClearable:C=!1,disableCloseOnSelect:E=!1,disabled:k=!1,disabledItemsFocusable:P=!1,disableListWrap:_=!1,disablePortal:R=!1,filterSelectedOptions:T=!1,forcePopupIcon:M="auto",freeSolo:$=!1,fullWidth:O=!1,getLimitTagsText:z=J=>`+${J}`,getOptionLabel:N,groupBy:D,handleHomeEndKeys:j=!a.freeSolo,includeInputInList:L=!1,limitTags:W=-1,ListboxComponent:se="ul",ListboxProps:ae,loading:Re=!1,loadingText:Y="Loading…",multiple:ce=!1,noOptionsText:q="No options",openOnFocus:fe=!1,openText:pe="Open",PaperComponent:ge=kr,PopperComponent:Oe=AR,popupIcon:ve=Aw||(Aw=f.jsx(tR,{})),readOnly:Ae=!1,renderGroup:Ee,renderInput:Te,renderOption:Ie,renderTags:le,selectOnFocus:at=!a.freeSolo,size:ue="medium",slotProps:Je={}}=a,Ge=G(a,ez),{getRootProps:Le,getInputProps:ht,getInputLabelProps:tt,getPopupIndicatorProps:ze,getClearProps:mt,getTagProps:It,getListboxProps:yt,getOptionProps:_e,value:ee,dirty:dt,expanded:Yt,id:wt,popupOpen:te,focused:De,focusedTag:qe,anchorEl:Dt,setAnchorEl:An,inputValue:Kr,groupedOptions:Ft}=x7(A({},a,{componentName:"Autocomplete"})),sn=!C&&!k&&dt&&!Ae,an=(!$||M===!0)&&M!==!1,{onMouseDown:Er}=ht(),{ref:gt}=ae??{},Xt=yt(),{ref:Pe}=Xt,Ve=G(Xt,tz),Jt=Pt(Pe,gt),ne=N||(J=>{var oe;return(oe=J.label)!=null?oe:J}),ye=A({},a,{disablePortal:R,expanded:Yt,focused:De,fullWidth:O,getOptionLabel:ne,hasClearIcon:sn,hasPopupIcon:an,inputFocused:qe===-1,popupOpen:te,size:ue}),xe=oz(ye);let ot;if(ce&&ee.length>0){const J=oe=>A({className:xe.tag,disabled:k},It(oe));le?ot=le(ee,J,ye):ot=ee.map((oe,Ue)=>{const st=J({index:Ue}),{key:qt}=st,As=G(st,nz);return f.jsx(XD,A({label:ne(oe),size:ue},As,p),qt)})}if(W>-1&&Array.isArray(ot)){const J=ot.length-W;!De&&J>0&&(ot=ot.splice(0,W),ot.push(f.jsx("span",{className:xe.tag,children:z(J)},ot.length)))}const kn=Ee||(J=>f.jsxs("li",{children:[f.jsx(hz,{className:xe.groupLabel,ownerState:ye,component:"div",children:J.group}),f.jsx(mz,{className:xe.groupUl,ownerState:ye,children:J.children})]},J.key)),Vt=Ie||((J,oe)=>{const{key:Ue}=J,st=G(J,rz);return f.jsx("li",A({},st,{children:ne(oe)}),Ue)}),en=(J,oe)=>{const Ue=_e({option:J,index:oe});return Vt(A({},Ue,{className:xe.option}),J,{selected:Ue["aria-selected"],index:oe,inputValue:Kr},ye)},it=(r=Je.clearIndicator)!=null?r:x.clearIndicator,Vn=(o=Je.paper)!=null?o:x.paper,Zo=(i=Je.popper)!=null?i:x.popper,F=(s=Je.popupIndicator)!=null?s:x.popupIndicator,B=J=>f.jsx(cz,A({as:Oe,disablePortal:R,style:{width:Dt?Dt.clientWidth:null},ownerState:ye,role:"presentation",anchorEl:Dt,open:te},Zo,{className:Z(xe.popper,Zo==null?void 0:Zo.className),children:f.jsx(uz,A({ownerState:ye,as:ge},Vn,{className:Z(xe.paper,Vn==null?void 0:Vn.className),children:J}))}));let re=null;return Ft.length>0?re=B(f.jsx(pz,A({as:se,className:xe.listbox,ownerState:ye},Ve,ae,{ref:Jt,children:Ft.map((J,oe)=>D?kn({key:J.key,group:J.group,children:J.options.map((Ue,st)=>en(Ue,J.index+st))}):en(J,oe))}))):Re&&Ft.length===0?re=B(f.jsx(dz,{className:xe.loading,ownerState:ye,children:Y})):Ft.length===0&&!$&&!Re&&(re=B(f.jsx(fz,{className:xe.noOptions,ownerState:ye,role:"presentation",onMouseDown:J=>{J.preventDefault()},children:q}))),f.jsxs(b.Fragment,{children:[f.jsx(iz,A({ref:n,className:Z(xe.root,h),ownerState:ye},Le(Ge),{children:Te({id:wt,disabled:k,fullWidth:!0,size:ue==="small"?"small":void 0,InputLabelProps:tt(),InputProps:A({ref:An,className:xe.inputRoot,startAdornment:ot,onClick:J=>{J.target===J.currentTarget&&Er(J)}},(sn||an)&&{endAdornment:f.jsxs(sz,{className:xe.endAdornment,ownerState:ye,children:[sn?f.jsx(az,A({},mt(),{"aria-label":g,title:g,ownerState:ye},it,{className:Z(xe.clearIndicator,it==null?void 0:it.className),children:v})):null,an?f.jsx(lz,A({},ze(),{disabled:k,"aria-label":te?y:pe,title:te?y:pe,ownerState:ye},F,{className:Z(xe.popupIndicator,F==null?void 0:F.className),children:ve})):null]})}),inputProps:A({className:xe.input,disabled:k,readOnly:Ae},ht())})})),Dt?re:null]})});var Oy={},vz=hn;Object.defineProperty(Oy,"__esModule",{value:!0});var RR=Oy.default=void 0,yz=vz(Wn()),xz=f;RR=Oy.default=(0,yz.default)((0,xz.jsx)("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"CheckBoxOutlineBlank");var $y={},bz=hn;Object.defineProperty($y,"__esModule",{value:!0});var ER=$y.default=void 0,wz=bz(Wn()),Sz=f;ER=$y.default=(0,wz.default)((0,Sz.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox");const Cz=f.jsx(RR,{fontSize:"small"}),Az=f.jsx(ER,{fontSize:"small"});function kz({value:e,setValue:t,names:n,namesList:r,inSelectionData:o,dataProperty:i}){let s=e.length===n.length;const a=b.useRef(null),[l,c]=b.useState(450),[u,d]=b.useState(!1);function p(m,w){if(w.length===0){t(e),d(!0);return}if(s){const g=n.filter(y=>!w.includes(y));t(g)}else w.sort((g,y)=>r[g].localeCompare(r[y])),t(w);s=w.length!==n.length}function h(){if(a.current){const m=a.current.getBoundingClientRect(),g=window.innerHeight-m.bottom;c(g)}}const v=b.useMemo(()=>(n.sort((m,w)=>r[m].localeCompare(r[w])),n),[n,r]);return f.jsxs("div",{ref:a,style:{marginBottom:"0.5em"},children:[f.jsx(nh,{openSnack:u,setOpenSnack:d,message:"At least one allocation type must be selected"}),f.jsx(gz,{onMouseEnter:h,multiple:!0,clearIcon:null,id:"allocation-types-search",options:v,value:e,onChange:p,disableCloseOnSelect:!0,renderTags:()=>null,getOptionLabel:m=>r[m],renderOption:(m,w)=>b.createElement("li",{...m,key:w,style:o[i].has(w)?{whiteSpace:"normal",padding:"1px"}:{display:"none"}},f.jsx(th,{icon:Cz,checkedIcon:Az,style:{marginRight:8},checked:e.includes(w),disabled:!o[i].has(w)},w),r[w]),style:{maxHeight:l},renderInput:m=>f.jsx(m7,{...m,label:"Allocation Type",placeholder:"Start typing or use the menu"})})]})}function Zu({type:e,dataProperty:t,filterType:n,value:r,setValue:o,inSelectionData:i}){const[s,a]=b.useState(!1),[l,c]=b.useState(0),u=b.useRef(null),{lists:d,inDataLists:p}=b.useContext(Ho),h=[...p[t]];let v;const m=x=>(S,C)=>{a(C?x:!1)};function w(){o([])}function g(){o(h)}function y(){a(!1)}switch(e){case"Fund":v=d.fundNames;break;case"Year":v=iR(h);break;case"Allocation Source":v=d.allocationSources;break;case"Allocation Type":v=d.allocationTypes;break;default:v=d[t]}return b.useEffect(()=>{u.current&&c(u.current.clientHeight)},[]),f.jsx(H,{style:{position:"relative",height:l+"px"},children:f.jsx(rR,{onClickAway:y,children:f.jsxs(AN,{expanded:s===e,onChange:m(e),style:{backgroundColor:"#ffffff",position:"absolute",zIndex:1e3,maxWidth:"100%"},ref:u,children:[f.jsxs(LN,{expandIcon:f.jsx(cR,{}),sx:{width:"100%",height:"66px",overflow:"hidden"},children:[f.jsx(me,{sx:{color:"#144372",fontWeight:"bold",fontSize:"1rem",width:"30%",alignSelf:"center"},children:e+":"}),f.jsx(me,{sx:{flexGrow:1}}),f.jsx(me,{sx:{color:"text.secondary",alignSelf:"center",justifySelf:"flex-end",fontSize:"0.8rem",width:"45%",textAlign:"center"},children:r.length===h.length?`All ${e}s selected`:r.length===1?Rz(r[0],v)?v[r[0]]:r[0].toString():`${r.length} ${e}s selected`})]}),f.jsxs(PN,{children:[f.jsxs(me,{variant:"body2",m:1,mb:2,children:["Select the ",e.toLocaleLowerCase(),n==="dropdowncheck"&&`. Multiple ${e.toLocaleLowerCase()}s are allowed`]}),n==="dropdowncheck"&&f.jsx(Al,{value:r,setValue:o,names:h,namesList:v,type:e,inSelectionData:i,dataProperty:t,fromQuickSelectors:!1}),n==="search"&&f.jsx(kz,{value:r,setValue:o,names:h,namesList:v,inSelectionData:i,dataProperty:t}),n==="checkbox"&&f.jsx(ZN,{value:r,setValue:o,names:h,namesList:v,inSelectionData:i,dataProperty:t}),(n==="dropdowncheck"||n==="search")&&f.jsxs(H,{style:{display:"flex",flexDirection:e==="Year"?"column":"row"},children:[f.jsx(Fo,{variant:"contained",size:"small",onClick:w,style:{marginLeft:"8px",marginTop:e==="Year"?"8px":"0px"},children:"Deselect all"}),f.jsx(Fo,{variant:"contained",size:"small",onClick:g,style:{marginLeft:"8px",marginTop:e==="Year"?"8px":"0px"},children:"Select all"})]})]})]})})})}function Rz(e,t){return e in t}function Ez({year:e,setYear:t,fund:n,setFund:r,allocationSource:o,setAllocationSource:i,allocationType:s,setAllocationType:a,inSelectionData:l}){return f.jsxs(Ke,{container:!0,spacing:1,children:[f.jsx(Ke,{xs:2,children:f.jsx(Zu,{type:"Year",dataProperty:"years",filterType:"dropdowncheck",value:e,setValue:t,inSelectionData:l})}),f.jsx(Ke,{xs:!0,children:f.jsx(Zu,{type:"Fund",dataProperty:"funds",filterType:"dropdowncheck",value:n,setValue:r,inSelectionData:l})}),f.jsx(Ke,{xs:!0,children:f.jsx(Zu,{type:"Allocation Type",dataProperty:"allocationTypes",filterType:"search",value:s,setValue:a,inSelectionData:l})}),f.jsx(Ke,{xs:!0,children:f.jsx(Zu,{type:"Allocation Source",dataProperty:"allocationSources",filterType:"checkbox",value:o,setValue:i,inSelectionData:l})})]})}function Tz(e){return be("MuiCard",e)}Se("MuiCard",["root"]);const Pz=["className","raised"],Iz=e=>{const{classes:t}=e;return we({root:["root"]},Tz,t)},_z=V(kr,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),jz=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,s=G(r,Pz),a=A({},r,{raised:i}),l=Iz(a);return f.jsx(_z,A({className:Z(l.root,o),elevation:i?8:void 0,ref:n,ownerState:a},s))});function Mz(e){return be("MuiCardActions",e)}Se("MuiCardActions",["root","spacing"]);const Oz=["disableSpacing","className"],$z=e=>{const{classes:t,disableSpacing:n}=e;return we({root:["root",!n&&"spacing"]},Mz,t)},Lz=V("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>A({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Nz=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:i}=r,s=G(r,Oz),a=A({},r,{disableSpacing:o}),l=$z(a);return f.jsx(Lz,A({className:Z(l.root,i),ownerState:a,ref:n},s))});function Dz(e){return be("MuiCardContent",e)}Se("MuiCardContent",["root"]);const zz=["className","component"],Bz=e=>{const{classes:t}=e;return we({root:["root"]},Dz,t)},Fz=V("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Wz=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,s=G(r,zz),a=A({},r,{component:i}),l=Bz(a);return f.jsx(Fz,A({as:i,className:Z(l.root,o),ownerState:a,ref:n},s))});var Vz=Object.defineProperty,Uz=(e,t)=>{for(var n in t)Vz(e,n,{get:t[n],enumerable:!0})},Gr={};Uz(Gr,{assign:()=>qz,colors:()=>wi,createStringInterpolator:()=>Wy,skipAnimation:()=>OR,to:()=>MR,willAdvance:()=>Vy});var Ly=hu(),$e=e=>pu(e,Ly),Ny=hu();$e.write=e=>pu(e,Ny);var oh=hu();$e.onStart=e=>pu(e,oh);var Dy=hu();$e.onFrame=e=>pu(e,Dy);var zy=hu();$e.onFinish=e=>pu(e,zy);var da=[];$e.setTimeout=(e,t)=>{const n=$e.now()+t,r=()=>{const i=da.findIndex(s=>s.cancel==r);~i&&da.splice(i,1),ui-=~i?1:0},o={time:n,handler:e,cancel:r};return da.splice(TR(n),0,o),ui+=1,PR(),o};var TR=e=>~(~da.findIndex(t=>t.time>e)||~da.length);$e.cancel=e=>{oh.delete(e),Dy.delete(e),zy.delete(e),Ly.delete(e),Ny.delete(e)};$e.sync=e=>{v0=!0,$e.batchedUpdates(e),v0=!1};$e.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...o){t=o,$e.onStart(n)}return r.handler=e,r.cancel=()=>{oh.delete(n),t=null},r};var By=typeof window<"u"?window.requestAnimationFrame:()=>{};$e.use=e=>By=e;$e.now=typeof performance<"u"?()=>performance.now():Date.now;$e.batchedUpdates=e=>e();$e.catch=console.error;$e.frameLoop="always";$e.advance=()=>{$e.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):_R()};var ci=-1,ui=0,v0=!1;function pu(e,t){v0?(t.delete(e),e(0)):(t.add(e),PR())}function PR(){ci<0&&(ci=0,$e.frameLoop!=="demand"&&By(IR))}function Hz(){ci=-1}function IR(){~ci&&(By(IR),$e.batchedUpdates(_R))}function _R(){const e=ci;ci=$e.now();const t=TR(ci);if(t&&(jR(da.splice(0,t),n=>n.handler()),ui-=t),!ui){Hz();return}oh.flush(),Ly.flush(e?Math.min(64,ci-e):16.667),Dy.flush(),Ny.flush(),zy.flush()}function hu(){let e=new Set,t=e;return{add(n){ui+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return ui-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,ui-=t.size,jR(t,r=>r(n)&&e.add(r)),ui+=e.size,t=e)}}}function jR(e,t){e.forEach(n=>{try{t(n)}catch(r){$e.catch(r)}})}function y0(){}var Gz=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),X={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Eo(e,t){if(X.arr(e)){if(!X.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function So(e,t,n){if(X.arr(e)){for(let r=0;rX.und(e)?[]:X.arr(e)?e:[e];function Fl(e,t){if(e.size){const n=Array.from(e);e.clear(),Qe(n,t)}}var Rl=(e,...t)=>Fl(e,n=>n(...t)),Fy=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Wy,MR,wi=null,OR=!1,Vy=y0,qz=e=>{e.to&&(MR=e.to),e.now&&($e.now=e.now),e.colors!==void 0&&(wi=e.colors),e.skipAnimation!=null&&(OR=e.skipAnimation),e.createStringInterpolator&&(Wy=e.createStringInterpolator),e.requestAnimationFrame&&$e.use(e.requestAnimationFrame),e.batchedUpdates&&($e.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Vy=e.willAdvance),e.frameLoop&&($e.frameLoop=e.frameLoop)},Wl=new Set,pr=[],hm=[],Rf=0,ih={get idle(){return!Wl.size&&!pr.length},start(e){Rf>e.priority?(Wl.add(e),$e.onStart(Qz)):($R(e),$e(x0))},advance:x0,sort(e){if(Rf)$e.onFrame(()=>ih.sort(e));else{const t=pr.indexOf(e);~t&&(pr.splice(t,1),LR(e))}},clear(){pr=[],Wl.clear()}};function Qz(){Wl.forEach($R),Wl.clear(),$e(x0)}function $R(e){pr.includes(e)||LR(e)}function LR(e){pr.splice(Kz(pr,t=>t.priority>e.priority),0,e)}function x0(e){const t=hm;for(let n=0;n0}function Kz(e,t){const n=e.findIndex(t);return n<0?e.length:n}var Zz=(e,t,n)=>Math.min(Math.max(n,e),t),Yz={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Nr="[-+]?\\d*\\.?\\d+",Ef=Nr+"%";function sh(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Xz=new RegExp("rgb"+sh(Nr,Nr,Nr)),Jz=new RegExp("rgba"+sh(Nr,Nr,Nr,Nr)),eB=new RegExp("hsl"+sh(Nr,Ef,Ef)),tB=new RegExp("hsla"+sh(Nr,Ef,Ef,Nr)),nB=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,rB=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,oB=/^#([0-9a-fA-F]{6})$/,iB=/^#([0-9a-fA-F]{8})$/;function sB(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=oB.exec(e))?parseInt(t[1]+"ff",16)>>>0:wi&&wi[e]!==void 0?wi[e]:(t=Xz.exec(e))?(Ms(t[1])<<24|Ms(t[2])<<16|Ms(t[3])<<8|255)>>>0:(t=Jz.exec(e))?(Ms(t[1])<<24|Ms(t[2])<<16|Ms(t[3])<<8|Ew(t[4]))>>>0:(t=nB.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=iB.exec(e))?parseInt(t[1],16)>>>0:(t=rB.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=eB.exec(e))?(kw(Rw(t[1]),Yu(t[2]),Yu(t[3]))|255)>>>0:(t=tB.exec(e))?(kw(Rw(t[1]),Yu(t[2]),Yu(t[3]))|Ew(t[4]))>>>0:null}function mm(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function kw(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=mm(o,r,e+1/3),s=mm(o,r,e),a=mm(o,r,e-1/3);return Math.round(i*255)<<24|Math.round(s*255)<<16|Math.round(a*255)<<8}function Ms(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Rw(e){return(parseFloat(e)%360+360)%360/360}function Ew(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Yu(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Tw(e){let t=sB(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,o=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${o}, ${i})`}var Nc=(e,t,n)=>{if(X.fun(e))return e;if(X.arr(e))return Nc({range:e,output:t,extrapolate:n});if(X.str(e.output[0]))return Wy(e);const r=e,o=r.output,i=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(c=>c);return c=>{const u=lB(c,i);return aB(c,i[u],i[u+1],o[u],o[u+1],l,s,a,r.map)}};function aB(e,t,n,r,o,i,s,a,l){let c=l?l(e):e;if(cn){if(a==="identity")return c;a==="clamp"&&(c=n)}return r===o?r:t===n?e<=t?r:o:(t===-1/0?c=-c:n===1/0?c=c-t:c=(c-t)/(n-t),c=i(c),r===-1/0?c=-c:o===1/0?c=c+r:c=c*(o-r)+r,c)}function lB(e,t){for(var n=1;n=e);++n);return n-1}var cB=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,o=t==="end"?Math.floor(r):Math.ceil(r);return Zz(0,1,o/e)},Tf=1.70158,Xu=Tf*1.525,Pw=Tf+1,Iw=2*Math.PI/3,_w=2*Math.PI/4.5,Ju=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,uB={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Pw*e*e*e-Tf*e*e,easeOutBack:e=>1+Pw*Math.pow(e-1,3)+Tf*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Xu+1)*2*e-Xu)/2:(Math.pow(2*e-2,2)*((Xu+1)*(e*2-2)+Xu)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Iw),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Iw)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*_w))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*_w)/2+1,easeInBounce:e=>1-Ju(1-e),easeOutBounce:Ju,easeInOutBounce:e=>e<.5?(1-Ju(1-2*e))/2:(1+Ju(2*e-1))/2,steps:cB},Dc=Symbol.for("FluidValue.get"),Ma=Symbol.for("FluidValue.observers"),fr=e=>!!(e&&e[Dc]),Tn=e=>e&&e[Dc]?e[Dc]():e,jw=e=>e[Ma]||null;function dB(e,t){e.eventObserved?e.eventObserved(t):e(t)}function zc(e,t){const n=e[Ma];n&&n.forEach(r=>{dB(r,t)})}var NR=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");fB(this,e)}},fB=(e,t)=>DR(e,Dc,t);function Ga(e,t){if(e[Dc]){let n=e[Ma];n||DR(e,Ma,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Bc(e,t){const n=e[Ma];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Ma]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var DR=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ed=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,pB=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Mw=new RegExp(`(${Ed.source})(%|[a-z]+)`,"i"),hB=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,ah=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,zR=e=>{const[t,n]=mB(e);if(!t||Fy())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const o=window.getComputedStyle(document.documentElement).getPropertyValue(n);return o||e}else{if(n&&ah.test(n))return zR(n);if(n)return n}return e},mB=e=>{const t=ah.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},gm,gB=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,BR=e=>{gm||(gm=wi?new RegExp(`(${Object.keys(wi).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>Tn(i).replace(ah,zR).replace(pB,Tw).replace(gm,Tw)),n=t.map(i=>i.match(Ed).map(Number)),o=n[0].map((i,s)=>n.map(a=>{if(!(s in a))throw Error('The arity of each "output" value must be equal');return a[s]})).map(i=>Nc({...e,output:i}));return i=>{var l;const s=!Mw.test(t[0])&&((l=t.find(c=>Mw.test(c)))==null?void 0:l.replace(Ed,""));let a=0;return t[0].replace(Ed,()=>`${o[a++](i)}${s||""}`).replace(hB,gB)}},Uy="react-spring: ",FR=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Uy}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},vB=FR(console.warn);function yB(){vB(`${Uy}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var xB=FR(console.warn);function bB(){xB(`${Uy}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function lh(e){return X.str(e)&&(e[0]=="#"||/\d/.test(e)||!Fy()&&ah.test(e)||e in(wi||{}))}var Hy=Fy()?b.useEffect:b.useLayoutEffect,wB=()=>{const e=b.useRef(!1);return Hy(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function WR(){const e=b.useState()[1],t=wB();return()=>{t.current&&e(Math.random())}}function SB(e,t){const[n]=b.useState(()=>({inputs:t,result:e()})),r=b.useRef(),o=r.current;let i=o;return i?t&&i.inputs&&CB(t,i.inputs)||(i={inputs:t,result:e()}):i=n,b.useEffect(()=>{r.current=i,o==n&&(n.inputs=n.result=void 0)},[i]),i.result}function CB(e,t){if(e.length!==t.length)return!1;for(let n=0;nb.useEffect(e,AB),AB=[];function Ow(e){const t=b.useRef();return b.useEffect(()=>{t.current=e}),t.current}var Fc=Symbol.for("Animated:node"),kB=e=>!!e&&e[Fc]===e,ro=e=>e&&e[Fc],Gy=(e,t)=>Gz(e,Fc,t),ch=e=>e&&e[Fc]&&e[Fc].getPayload(),UR=class{constructor(){Gy(this,this)}getPayload(){return this.payload||[]}},mu=class extends UR{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,X.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new mu(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return X.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,X.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Wc=class extends mu{constructor(e){super(0),this._string=null,this._toString=Nc({output:[e,e]})}static create(e){return new Wc(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(X.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=Nc({output:[this.getValue(),e]})),this._value=0,super.reset()}},Pf={dependencies:null},uh=class extends UR{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return So(this.source,(n,r)=>{kB(n)?t[r]=n.getValue(e):fr(n)?t[r]=Tn(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Qe(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return So(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Pf.dependencies&&fr(e)&&Pf.dependencies.add(e);const t=ch(e);t&&Qe(t,n=>this.add(n))}},HR=class extends uh{constructor(e){super(e)}static create(e){return new HR(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(RB)),!0)}};function RB(e){return(lh(e)?Wc:mu).create(e)}function b0(e){const t=ro(e);return t?t.constructor:X.arr(e)?HR:lh(e)?Wc:mu}var $w=(e,t)=>{const n=!X.fun(e)||e.prototype&&e.prototype.isReactComponent;return b.forwardRef((r,o)=>{const i=b.useRef(null),s=n&&b.useCallback(v=>{i.current=PB(o,v)},[o]),[a,l]=TB(r,t),c=WR(),u=()=>{const v=i.current;if(n&&!v)return;(v?t.applyAnimatedValues(v,a.getValue(!0)):!1)===!1&&c()},d=new EB(u,l),p=b.useRef();Hy(()=>(p.current=d,Qe(l,v=>Ga(v,d)),()=>{p.current&&(Qe(p.current.deps,v=>Bc(v,p.current)),$e.cancel(p.current.update))})),b.useEffect(u,[]),VR(()=>()=>{const v=p.current;Qe(v.deps,m=>Bc(m,v))});const h=t.getComponentProps(a.getValue());return b.createElement(e,{...h,ref:s})})},EB=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&$e.write(this.update)}};function TB(e,t){const n=new Set;return Pf.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new uh(e),Pf.dependencies=null,[e,n]}function PB(e,t){return e&&(X.fun(e)?e(t):e.current=t),t}var Lw=Symbol.for("AnimatedComponent"),IB=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=o=>new uh(o),getComponentProps:r=o=>o}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=s=>{const a=Nw(s)||"Anonymous";return X.str(s)?s=i[s]||(i[s]=$w(s,o)):s=s[Lw]||(s[Lw]=$w(s,o)),s.displayName=`Animated(${a})`,s};return So(e,(s,a)=>{X.arr(e)&&(a=Nw(s)),i[a]=i(s)}),{animated:i}},Nw=e=>X.str(e)?e:e&&X.str(e.displayName)?e.displayName:X.fun(e)&&e.name||null;function Hi(e,...t){return X.fun(e)?e(...t):e}var Vl=(e,t)=>e===!0||!!(t&&e&&(X.fun(e)?e(t):Zn(e).includes(t))),GR=(e,t)=>X.obj(e)?t&&e[t]:e,qR=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,_B=e=>e,qy=(e,t=_B)=>{let n=jB;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const i=t(e[o],o);X.und(i)||(r[o]=i)}return r},jB=["config","onProps","onStart","onChange","onPause","onResume","onRest"],MB={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function OB(e){const t={};let n=0;if(So(e,(r,o)=>{MB[o]||(t[o]=r,n++)}),n)return t}function QR(e){const t=OB(e);if(t){const n={to:t};return So(e,(r,o)=>o in t||(n[o]=r)),n}return{...e}}function Vc(e){return e=Tn(e),X.arr(e)?e.map(Vc):lh(e)?Gr.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function $B(e){for(const t in e)return!0;return!1}function w0(e){return X.fun(e)||X.arr(e)&&X.obj(e[0])}function LB(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function NB(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var DB={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},S0={...DB.default,mass:1,damping:1,easing:uB.linear,clamp:!1},zB=class{constructor(){this.velocity=0,Object.assign(this,S0)}};function BB(e,t,n){n&&(n={...n},Dw(n,t),t={...n,...t}),Dw(e,t),Object.assign(e,t);for(const s in S0)e[s]==null&&(e[s]=S0[s]);let{frequency:r,damping:o}=e;const{mass:i}=e;return X.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*o*i/r),e}function Dw(e,t){if(!X.und(t.decay))e.duration=void 0;else{const n=!X.und(t.tension)||!X.und(t.friction);(n||!X.und(t.frequency)||!X.und(t.damping)||!X.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var zw=[],FB=class{constructor(){this.changed=!1,this.values=zw,this.toValues=null,this.fromValues=zw,this.config=new zB,this.immediate=!1}};function KR(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise((s,a)=>{let l,c,u=Vl(n.cancel??(r==null?void 0:r.cancel),t);if(u)h();else{X.und(n.pause)||(o.paused=Vl(n.pause,t));let v=r==null?void 0:r.pause;v!==!0&&(v=o.paused||Vl(v,t)),l=Hi(n.delay||0,t),v?(o.resumeQueue.add(p),i.pause()):(i.resume(),p())}function d(){o.resumeQueue.add(p),o.timeouts.delete(c),c.cancel(),l=c.time-$e.now()}function p(){l>0&&!Gr.skipAnimation?(o.delayed=!0,c=$e.setTimeout(h,l),o.pauseQueue.add(d),o.timeouts.add(c)):h()}function h(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(d),o.timeouts.delete(c),e<=(o.cancelId||0)&&(u=!0);try{i.start({...n,callId:e,cancel:u},s)}catch(v){a(v)}}})}var Qy=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?fa(e.get()):t.every(n=>n.noop)?ZR(e.get()):Or(e.get(),t.every(n=>n.finished)),ZR=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Or=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),fa=e=>({value:e,cancelled:!0,finished:!1});function YR(e,t,n,r){const{callId:o,parentId:i,onRest:s}=t,{asyncTo:a,promise:l}=n;return!i&&e===a&&!t.reset?l:n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const c=qy(t,(w,g)=>g==="onRest"?void 0:w);let u,d;const p=new Promise((w,g)=>(u=w,d=g)),h=w=>{const g=o<=(n.cancelId||0)&&fa(r)||o!==n.asyncId&&Or(r,!1);if(g)throw w.result=g,d(w),w},v=(w,g)=>{const y=new Bw,x=new Fw;return(async()=>{if(Gr.skipAnimation)throw Uc(n),x.result=Or(r,!1),d(x),x;h(y);const S=X.obj(w)?{...w}:{...g,to:w};S.parentId=o,So(c,(E,k)=>{X.und(S[k])&&(S[k]=E)});const C=await r.start(S);return h(y),n.paused&&await new Promise(E=>{n.resumeQueue.add(E)}),C})()};let m;if(Gr.skipAnimation)return Uc(n),Or(r,!1);try{let w;X.arr(e)?w=(async g=>{for(const y of g)await v(y)})(e):w=Promise.resolve(e(v,r.stop.bind(r))),await Promise.all([w.then(u),p]),m=Or(r.get(),!0,!1)}catch(w){if(w instanceof Bw)m=w.result;else if(w instanceof Fw)m=w.result;else throw w}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?a:void 0,n.promise=i?l:void 0)}return X.fun(s)&&$e.batchedUpdates(()=>{s(m,r,r.item)}),m})()}function Uc(e,t){Fl(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Bw=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Fw=class extends Error{constructor(){super("SkipAnimationSignal")}},C0=e=>e instanceof Ky,WB=1,Ky=class extends NR{constructor(){super(...arguments),this.id=WB++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=ro(this);return e&&e.getValue()}to(...e){return Gr.to(this,e)}interpolate(...e){return yB(),Gr.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){zc(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ih.sort(this),zc(this,{type:"priority",parent:this,priority:e})}},ys=Symbol.for("SpringPhase"),XR=1,A0=2,k0=4,vm=e=>(e[ys]&XR)>0,ei=e=>(e[ys]&A0)>0,ll=e=>(e[ys]&k0)>0,Ww=(e,t)=>t?e[ys]|=A0|XR:e[ys]&=~A0,Vw=(e,t)=>t?e[ys]|=k0:e[ys]&=~k0,VB=class extends Ky{constructor(e,t){if(super(),this.animation=new FB,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!X.und(e)||!X.und(t)){const n=X.obj(e)?{...e}:{...t,from:e};X.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(ei(this)||this._state.asyncTo)||ll(this)}get goal(){return Tn(this.animation.to)}get velocity(){const e=ro(this);return e instanceof mu?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return vm(this)}get isAnimating(){return ei(this)}get isPaused(){return ll(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:i}=r,s=ch(r.to);!s&&fr(r.to)&&(o=Zn(Tn(r.to))),r.values.forEach((c,u)=>{if(c.done)return;const d=c.constructor==Wc?1:s?s[u].lastPosition:o[u];let p=r.immediate,h=d;if(!p){if(h=c.lastPosition,i.tension<=0){c.done=!0;return}let v=c.elapsedTime+=e;const m=r.fromValues[u],w=c.v0!=null?c.v0:c.v0=X.arr(i.velocity)?i.velocity[u]:i.velocity;let g;const y=i.precision||(m==d?.005:Math.min(1,Math.abs(d-m)*.001));if(X.und(i.duration))if(i.decay){const x=i.decay===!0?.998:i.decay,S=Math.exp(-(1-x)*v);h=m+w/(1-x)*(1-S),p=Math.abs(c.lastPosition-h)<=y,g=w*S}else{g=c.lastVelocity==null?w:c.lastVelocity;const x=i.restVelocity||y/10,S=i.clamp?0:i.bounce,C=!X.und(S),E=m==d?c.v0>0:mx,!(!k&&(p=Math.abs(d-h)<=y,p)));++T){C&&(P=h==d||h>d==E,P&&(g=-g*S,h=d));const M=-i.tension*1e-6*(h-d),$=-i.friction*.001*g,O=(M+$)/i.mass;g=g+O*_,h=h+g*_}}else{let x=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,c.durationProgress>0&&(c.elapsedTime=i.duration*c.durationProgress,v=c.elapsedTime+=e)),x=(i.progress||0)+v/this._memoizedDuration,x=x>1?1:x<0?0:x,c.durationProgress=x),h=m+i.easing(x)*(d-m),g=(h-c.lastPosition)/e,p=x==1}c.lastVelocity=g,Number.isNaN(h)&&(console.warn("Got NaN while animating:",this),p=!0)}s&&!s[u].done&&(p=!1),p?c.done=!0:t=!1,c.setValue(h,i.round)&&(n=!0)});const a=ro(this),l=a.getValue();if(t){const c=Tn(r.to);(l!==c||n)&&!i.decay?(a.setValue(c),this._onChange(c)):n&&i.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return $e.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(ei(this)){const{to:e,config:t}=this.animation;$e.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return X.und(e)?(n=this.queue||[],this.queue=[]):n=[X.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Qy(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Uc(this._state,e&&this._lastCallId),$e.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=X.obj(n)?n[t]:n,(n==null||w0(n))&&(n=void 0),r=X.obj(r)?r[t]:r,r==null&&(r=void 0);const o={to:n,from:r};return vm(this)||(e.reverse&&([n,r]=[r,n]),r=Tn(r),X.und(r)?ro(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,qy(e,(s,a)=>/^on/.test(a)?GR(s,n):s)),Hw(this,e,"onProps"),ul(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return KR(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{ll(this)||(Vw(this,!0),Rl(i.pauseQueue),ul(this,"onPause",Or(this,cl(this,this.animation.to)),this))},resume:()=>{ll(this)&&(Vw(this,!1),ei(this)&&this._resume(),Rl(i.resumeQueue),ul(this,"onResume",Or(this,cl(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(s=>{if(e.loop&&s.finished&&!(t&&s.noop)){const a=JR(e);if(a)return this._update(a,!0)}return s})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(fa(this));const r=!X.und(e.to),o=!X.und(e.from);if(r||o)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(fa(this));const{key:i,defaultProps:s,animation:a}=this,{to:l,from:c}=a;let{to:u=l,from:d=c}=e;o&&!r&&(!t.default||X.und(u))&&(u=d),t.reverse&&([u,d]=[d,u]);const p=!Eo(d,c);p&&(a.from=d),d=Tn(d);const h=!Eo(u,l);h&&this._focus(u);const v=w0(t.to),{config:m}=a,{decay:w,velocity:g}=m;(r||o)&&(m.velocity=0),t.config&&!v&&BB(m,Hi(t.config,i),t.config!==s.config?Hi(s.config,i):void 0);let y=ro(this);if(!y||X.und(u))return n(Or(this,!0));const x=X.und(t.reset)?o&&!t.default:!X.und(d)&&Vl(t.reset,i),S=x?d:this.get(),C=Vc(u),E=X.num(C)||X.arr(C)||lh(C),k=!v&&(!E||Vl(s.immediate||t.immediate,i));if(h){const T=b0(u);if(T!==y.constructor)if(k)y=this._set(C);else throw Error(`Cannot animate between ${y.constructor.name} and ${T.name}, as the "to" prop suggests`)}const P=y.constructor;let _=fr(u),R=!1;if(!_){const T=x||!vm(this)&&p;(h||T)&&(R=Eo(Vc(S),C),_=!R),(!Eo(a.immediate,k)&&!k||!Eo(m.decay,w)||!Eo(m.velocity,g))&&(_=!0)}if(R&&ei(this)&&(a.changed&&!x?_=!0:_||this._stop(l)),!v&&((_||fr(l))&&(a.values=y.getPayload(),a.toValues=fr(u)?null:P==Wc?[1]:Zn(C)),a.immediate!=k&&(a.immediate=k,!k&&!x&&this._set(l)),_)){const{onRest:T}=a;Qe(HB,$=>Hw(this,t,$));const M=Or(this,cl(this,l));Rl(this._pendingCalls,M),this._pendingCalls.add(n),a.changed&&$e.batchedUpdates(()=>{var $;a.changed=!x,T==null||T(M,this),x?Hi(s.onRest,M):($=a.onStart)==null||$.call(a,M,this)})}x&&this._set(S),v?n(YR(t.to,t,this._state,this)):_?this._start():ei(this)&&!h?this._pendingCalls.add(n):n(ZR(S))}_focus(e){const t=this.animation;e!==t.to&&(jw(this)&&this._detach(),t.to=e,jw(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;fr(t)&&(Ga(t,this),C0(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;fr(e)&&Bc(e,this)}_set(e,t=!0){const n=Tn(e);if(!X.und(n)){const r=ro(this);if(!r||!Eo(n,r.getValue())){const o=b0(n);!r||r.constructor!=o?Gy(this,o.create(n)):r.setValue(n),r&&$e.batchedUpdates(()=>{this._onChange(n,t)})}}return ro(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,ul(this,"onStart",Or(this,cl(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Hi(this.animation.onChange,e,this)),Hi(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;ro(this).reset(Tn(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),ei(this)||(Ww(this,!0),ll(this)||this._resume())}_resume(){Gr.skipAnimation?this.finish():ih.start(this)}_stop(e,t){if(ei(this)){Ww(this,!1);const n=this.animation;Qe(n.values,o=>{o.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),zc(this,{type:"idle",parent:this});const r=t?fa(this.get()):Or(this.get(),cl(this,e??n.to));Rl(this._pendingCalls,r),n.changed&&(n.changed=!1,ul(this,"onRest",r,this))}}};function cl(e,t){const n=Vc(t),r=Vc(e.get());return Eo(r,n)}function JR(e,t=e.loop,n=e.to){const r=Hi(t);if(r){const o=r!==!0&&QR(r),i=(o||e).reverse,s=!o||o.reset;return Hc({...e,loop:t,default:!1,pause:void 0,to:!i||w0(n)?n:void 0,from:s?e.from:void 0,reset:s,...o})}}function Hc(e){const{to:t,from:n}=e=QR(e),r=new Set;return X.obj(t)&&Uw(t,r),X.obj(n)&&Uw(n,r),e.keys=r.size?Array.from(r):null,e}function UB(e){const t=Hc(e);return X.und(t.default)&&(t.default=qy(t)),t}function Uw(e,t){So(e,(n,r)=>n!=null&&t.add(r))}var HB=["onStart","onRest","onChange","onPause","onResume"];function Hw(e,t,n){e.animation[n]=t[n]!==qR(t,n)?GR(t[n],e.key):void 0}function ul(e,t,...n){var r,o,i,s;(o=(r=e.animation)[t])==null||o.call(r,...n),(s=(i=e.defaultProps)[t])==null||s.call(i,...n)}var GB=["onStart","onChange","onRest"],qB=1,QB=class{constructor(e,t){this.id=qB++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];X.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Hc(e)),this}start(e){let{queue:t}=this;return e?t=Zn(e).map(Hc):this.queue=[],this._flush?this._flush(this,t):(oE(this,t),R0(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Qe(Zn(t),r=>n[r].stop(!!e))}else Uc(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(X.und(e))this.start({pause:!0});else{const t=this.springs;Qe(Zn(e),n=>t[n].pause())}return this}resume(e){if(X.und(e))this.start({pause:!1});else{const t=this.springs;Qe(Zn(e),n=>t[n].resume())}return this}each(e){So(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,Fl(e,([a,l])=>{l.value=this.get(),a(l,this,this._item)}));const i=!r&&this._started,s=o||i&&n.size?this.get():null;o&&t.size&&Fl(t,([a,l])=>{l.value=s,a(l,this,this._item)}),i&&(this._started=!1,Fl(n,([a,l])=>{l.value=s,a(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;$e.onFrame(this._onFrame)}};function R0(e,t){return Promise.all(t.map(n=>eE(e,n))).then(n=>Qy(e,n))}async function eE(e,t,n){const{keys:r,to:o,from:i,loop:s,onRest:a,onResolve:l}=t,c=X.obj(t.default)&&t.default;s&&(t.loop=!1),o===!1&&(t.to=null),i===!1&&(t.from=null);const u=X.arr(o)||X.fun(o)?o:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Qe(GB,m=>{const w=t[m];if(X.fun(w)){const g=e._events[m];t[m]=({finished:y,cancelled:x})=>{const S=g.get(w);S?(y||(S.finished=!1),x&&(S.cancelled=!0)):g.set(w,{value:null,finished:y||!1,cancelled:x||!1})},c&&(c[m]=t[m])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Rl(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const p=(r||Object.keys(e.springs)).map(m=>e.springs[m].start(t)),h=t.cancel===!0||qR(t,"cancel")===!0;(u||h&&d.asyncId)&&p.push(KR(++e._lastAsyncId,{props:t,state:d,actions:{pause:y0,resume:y0,start(m,w){h?(Uc(d,e._lastAsyncId),w(fa(e))):(m.onRest=a,w(YR(u,m,d,e)))}}})),d.paused&&await new Promise(m=>{d.resumeQueue.add(m)});const v=Qy(e,await Promise.all(p));if(s&&v.finished&&!(n&&v.noop)){const m=JR(t,s,o);if(m)return oE(e,[m]),eE(e,m,!0)}return l&&$e.batchedUpdates(()=>l(v,e,e.item)),v}function Gw(e,t){const n={...e.springs};return t&&Qe(Zn(t),r=>{X.und(r.keys)&&(r=Hc(r)),X.obj(r.to)||(r={...r,to:void 0}),rE(n,r,o=>nE(o))}),tE(e,n),n}function tE(e,t){So(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,Ga(n,e))})}function nE(e,t){const n=new VB;return n.key=e,t&&Ga(n,t),n}function rE(e,t,n){t.keys&&Qe(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function oE(e,t){Qe(t,n=>{rE(e.springs,n,r=>nE(r,e))})}var dh=({children:e,...t})=>{const n=b.useContext(If),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=SB(()=>({pause:r,immediate:o}),[r,o]);const{Provider:i}=If;return b.createElement(i,{value:t},e)},If=KB(dh,{});dh.Provider=If.Provider;dh.Consumer=If.Consumer;function KB(e,t){return Object.assign(e,b.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var ZB=()=>{const e=[],t=function(r){bB();const o=[];return Qe(e,(i,s)=>{if(X.und(r))o.push(i.start());else{const a=n(r,i,s);a&&o.push(i.start(a))}}),o};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const o=e.indexOf(r);~o&&e.splice(o,1)},t.pause=function(){return Qe(e,r=>r.pause(...arguments)),this},t.resume=function(){return Qe(e,r=>r.resume(...arguments)),this},t.set=function(r){Qe(e,(o,i)=>{const s=X.fun(r)?r(i,o):r;s&&o.set(s)})},t.start=function(r){const o=[];return Qe(e,(i,s)=>{if(X.und(r))o.push(i.start());else{const a=this._getProps(r,i,s);a&&o.push(i.start(a))}}),o},t.stop=function(){return Qe(e,r=>r.stop(...arguments)),this},t.update=function(r){return Qe(e,(o,i)=>o.update(this._getProps(r,o,i))),this};const n=function(r,o,i){return X.fun(r)?r(i,o):r};return t._getProps=n,t};function YB(e,t,n){const r=X.fun(t)&&t;r&&!n&&(n=[]);const o=b.useMemo(()=>r||arguments.length==3?ZB():void 0,[]),i=b.useRef(0),s=WR(),a=b.useMemo(()=>({ctrls:[],queue:[],flush(g,y){const x=Gw(g,y);return i.current>0&&!a.queue.length&&!Object.keys(x).some(C=>!g.springs[C])?R0(g,y):new Promise(C=>{tE(g,x),a.queue.push(()=>{C(R0(g,y))}),s()})}}),[]),l=b.useRef([...a.ctrls]),c=[],u=Ow(e)||0;b.useMemo(()=>{Qe(l.current.slice(e,u),g=>{LB(g,o),g.stop(!0)}),l.current.length=e,d(u,e)},[e]),b.useMemo(()=>{d(0,Math.min(u,e))},n);function d(g,y){for(let x=g;xGw(g,c[y])),h=b.useContext(dh),v=Ow(h),m=h!==v&&$B(h);Hy(()=>{i.current++,a.ctrls=l.current;const{queue:g}=a;g.length&&(a.queue=[],Qe(g,y=>y())),Qe(l.current,(y,x)=>{o==null||o.add(y),m&&y.start({default:h});const S=c[x];S&&(NB(y,S.ref),y.ref?y.queue.push(S):y.start(S))})}),VR(()=>()=>{Qe(a.ctrls,g=>g.stop(!0))});const w=p.map(g=>({...g}));return o?[w,o]:w}function iE(e,t){const n=X.fun(e),[[r],o]=YB(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,o]:r}var XB=class extends Ky{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Nc(...t);const n=this._get(),r=b0(n);Gy(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Eo(t,n)||(ro(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&qw(this._active)&&ym(this)}_get(){const e=X.arr(this.source)?this.source.map(Tn):Zn(Tn(this.source));return this.calc(...e)}_start(){this.idle&&!qw(this._active)&&(this.idle=!1,Qe(ch(this),e=>{e.done=!1}),Gr.skipAnimation?($e.batchedUpdates(()=>this.advance()),ym(this)):ih.start(this))}_attach(){let e=1;Qe(Zn(this.source),t=>{fr(t)&&Ga(t,this),C0(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Qe(Zn(this.source),e=>{fr(e)&&Bc(e,this)}),this._active.clear(),ym(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Zn(this.source).reduce((t,n)=>Math.max(t,(C0(n)?n.priority:0)+1),0))}};function JB(e){return e.idle!==!1}function qw(e){return!e.size||Array.from(e).every(JB)}function ym(e){e.idle||(e.idle=!0,Qe(ch(e),t=>{t.done=!0}),zc(e,{type:"idle",parent:e}))}Gr.assign({createStringInterpolator:BR,to:(e,t)=>new XB(e,t)});var sE=/^--/;function eF(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!sE.test(e)&&!(Ul.hasOwnProperty(e)&&Ul[e])?t+"px":(""+t).trim()}var Qw={};function tF(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:o,scrollTop:i,scrollLeft:s,viewBox:a,...l}=t,c=Object.values(l),u=Object.keys(l).map(d=>n||e.hasAttribute(d)?d:Qw[d]||(Qw[d]=d.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));o!==void 0&&(e.textContent=o);for(const d in r)if(r.hasOwnProperty(d)){const p=eF(d,r[d]);sE.test(d)?e.style.setProperty(d,p):e.style[d]=p}u.forEach((d,p)=>{e.setAttribute(d,c[p])}),i!==void 0&&(e.scrollTop=i),s!==void 0&&(e.scrollLeft=s),a!==void 0&&e.setAttribute("viewBox",a)}var Ul={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},nF=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),rF=["Webkit","Ms","Moz","O"];Ul=Object.keys(Ul).reduce((e,t)=>(rF.forEach(n=>e[nF(n,t)]=e[t]),e),Ul);var oF=/^(matrix|translate|scale|rotate|skew)/,iF=/^(translate)/,sF=/^(rotate|skew)/,xm=(e,t)=>X.num(e)&&e!==0?e+t:e,Td=(e,t)=>X.arr(e)?e.every(n=>Td(n,t)):X.num(e)?e===t:parseFloat(e)===t,aF=class extends uh{constructor({x:e,y:t,z:n,...r}){const o=[],i=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),i.push(s=>[`translate3d(${s.map(a=>xm(a,"px")).join(",")})`,Td(s,0)])),So(r,(s,a)=>{if(a==="transform")o.push([s||""]),i.push(l=>[l,l===""]);else if(oF.test(a)){if(delete r[a],X.und(s))return;const l=iF.test(a)?"px":sF.test(a)?"deg":"";o.push(Zn(s)),i.push(a==="rotate3d"?([c,u,d,p])=>[`rotate3d(${c},${u},${d},${xm(p,l)})`,Td(p,0)]:c=>[`${a}(${c.map(u=>xm(u,l)).join(",")})`,Td(c,a.startsWith("scale")?1:0)])}}),o.length&&(r.transform=new lF(o,i)),super(r)}},lF=class extends NR{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Qe(this.inputs,(n,r)=>{const o=Tn(n[0]),[i,s]=this.transforms[r](X.arr(o)?o:n.map(Tn));e+=" "+i,t=t&&s}),t?"none":e}observerAdded(e){e==1&&Qe(this.inputs,t=>Qe(t,n=>fr(n)&&Ga(n,this)))}observerRemoved(e){e==0&&Qe(this.inputs,t=>Qe(t,n=>fr(n)&&Bc(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),zc(this,e)}},cF=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Gr.assign({batchedUpdates:Zf.unstable_batchedUpdates,createStringInterpolator:BR,colors:Yz});var uF=IB(cF,{applyAnimatedValues:tF,createAnimatedStyle:e=>new aF(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),aE=uF.animated;function Ot({number:e,type:t}){const[n,r]=b.useState(e),o=iE({from:{number:n},to:{number:e},config:{duration:750},reset:!0,onRest:()=>r(e)}),i=e%1?e.toString().split(".")[1].length:0;return f.jsx(aE.span,{children:t==="decimal"?o.number.to(s=>s.toFixed(i)):o.number.to(s=>Math.floor(s).toLocaleString())})}function Kw(e,t,n){return e.toLocaleString(void 0,{minimumFractionDigits:t,maximumFractionDigits:n})}function At(e){const t=(~~Math.log10(e)+1)%3,r=Pv("."+(t===1?2:t===2?1:0)+"~",e)(e).replace("G","B");if(parseInt(r)===1e3){const o=r[r.length-1],i={k:"M",M:"B"};return 1+(isNaN(+o)?i[o]:"")}return r}const dF={"Programmatically Closed":"Project(s) which have completed the implementation and their project end date is over","Under Implementation":"Project(s) which are still under implementation stage where Project Implementation End date is greater than today","Financially Closed":"Project(s) which have closed all stage of Final Report(s) and other financial transaction(s). Based on the new Global guidance of CBPF, the audit for non-UN projects are due after 9 months of implementation. Final financial reports for UN Project(s) are due for end of June of the following year after the programmatic implementation"};function fF({dataStatuses:e,implementationStatus:t,setImplementationStatus:n}){const r=Object.values(e).reduce((i,s)=>i+s,0);function o(i){n(t.includes(i)?t.filter(s=>i!==s):[...t,i])}return f.jsxs(H,{sx:{width:"100%",zIndex:100},children:[f.jsxs(Ke,{pb:2,pt:2,xs:12,display:"flex",alignItems:"center",justifyContent:"flex-start",children:[f.jsx(me,{variant:"h6",style:{color:"darkslategray"},children:"Implementation Statuses"}),f.jsx(Ha,{"data-tooltip-id":"tooltip","data-tooltip-html":"These are the tree statuses of the projects: implemented, under implementation, and closed/under closure.
Click 'Remove' to remove a status from the calculated values, or 'Add' to add it back.","data-tooltip-place":"top",style:{color:"#666",fontSize:"20px",marginLeft:"0.1em",alignSelf:"flex-start",marginTop:"-0.1em"}})]}),f.jsx(Ke,{container:!0,gap:2,sx:{width:"100%",flexWrap:"nowrap"},children:Object.entries(e).map(([i,s])=>f.jsx(pF,{handleClick:o,status:i,statusValue:s,total:r,implementationStatus:t},i))})]})}function pF({handleClick:e,status:t,statusValue:n,total:r,implementationStatus:o}){const i=Jc().domain([0,r]).range([0,100]),s=90,a=o.includes(t);return f.jsx(Ke,{xs:4,children:f.jsx(jz,{variant:"outlined",sx:{flexGrow:1,flex:"1 0 auto",borderColor:a?Fe.contrastColor:null},children:f.jsxs(Wz,{sx:{padding:"8px 18px 8px 18px"},children:[f.jsxs(Ke,{container:!0,alignItems:"center",children:[f.jsxs(Ke,{xs:8,container:!0,children:[f.jsx(me,{variant:"h6",fontSize:"1em",gutterBottom:!0,children:t}),f.jsx(Ha,{"data-tooltip-id":"tooltip","data-tooltip-content":dF[t],"data-tooltip-place":"top",style:{color:"#666",fontSize:"16px",marginLeft:"0.1em",alignSelf:"flex-start",marginTop:"-0.1em"}})]}),f.jsx(Ke,{container:!0,xs:4,alignSelf:"flex-start",justifyContent:"flex-end",children:f.jsx(Nz,{children:f.jsx(Fo,{size:"small",style:{backgroundColor:"whitesmoke"},variant:"text",onClick:()=>e(t),children:a?"Remove":"Add"})})})]}),f.jsxs(me,{"data-tooltip-id":"tooltip","data-tooltip-content":`${t}: $${n.toLocaleString()}`,"data-tooltip-place":"top",color:Fe.unColor,style:{fontSize:"2.5em",fontWeight:500,display:"inline-block",opacity:a?1:.75,filter:a?"none":"grayscale(100%)"},children:["$",n<1e3?f.jsx(Ot,{number:Math.floor(n),type:"integer"}):f.jsxs("span",{children:[f.jsx(Ot,{number:parseFloat(At(n)),type:"decimal"}),At(n).slice(-1)]})]}),f.jsx(H,{mt:2,mb:0,style:{display:"flex",alignItems:"center",width:"100%",opacity:a?1:.75,filter:a?"none":"grayscale(100%)"},"data-tooltip-id":"tooltip","data-tooltip-content":`The total amount of allocations for ${t} projects is $${Kw(n,0,2)}, which represents ${(n/r*100).toFixed(1)}% of the total allocations for all statuses (${Kw(r,0,2)}).`,"data-tooltip-place":"top",children:f.jsx(H,{style:{width:i(n)+"%",minWidth:"1px",height:"18px",transitionProperty:"width",transitionDuration:"0.75s",display:"flex",alignItems:"center",backgroundColor:Fe.contrastColorDarker},children:f.jsxs(me,{fontSize:12,fontWeight:700,style:{position:"relative",left:i(n)gF?n="Under Implementation":yF.includes(t.statuses[e.projectStatusId])?n="Financially Closed":n="Programmatically Closed",n}function vr(e){return e.charAt(0).toUpperCase()+e.slice(1)}const{beneficiariesStatuses:xF,beneficiaryCategories:bF,reportsForDisability:wF,reportsForGBV:SF}=Cn;function CF({data:e,year:t,fund:n,allocationSource:r,allocationType:o,implementationStatus:i,lists:s}){const a=[],l={targetedMen:0,targetedWomen:0,targetedBoys:0,targetedGirls:0,reachedMen:0,reachedWomen:0,reachedBoys:0,reachedGirls:0},c={targetedMen:0,targetedWomen:0,targetedBoys:0,targetedGirls:0,reachedMen:0,reachedWomen:0,reachedBoys:0,reachedGirls:0,totalReports:0,reportsWithData:0},u={allocations:0,allocationsGBVPlanned:0,allocationsGBVReached:0,targeted:0,targetedGBV:0,reached:0,reachedGBV:0,totalReports:0,reportsWithData:0},d={years:new Set,funds:new Set,allocationSources:new Set,allocationTypes:new Set};return e.forEach(p=>{const h=Qr(p,s);if(i.includes(h)&&t.includes(p.year)&&n.includes(p.fund)&&r.includes(p.allocationSource)&&o.includes(p.allocationType)){const v=a.find(m=>m.year===p.year);v?(v.allocations+=p.budget,v.projects.add(p.projectId),v.partners.add(p.organizationId),h.includes("Under Implementation")&&(v.underImplementation+=p.budget)):a.push({year:p.year,allocations:p.budget,projects:new Set([p.projectId]),partners:new Set([p.organizationId]),underImplementation:h.includes("Under Implementation")?p.budget:0}),xF.forEach(m=>{const w=`disabled${vr(m)}`;bF.forEach(g=>{l[`${m}${vr(g)}`]+=p[m][g],c[`${m}${vr(g)}`]+=p[w][g]})}),c.totalReports+=1,wF.includes(p.reportType)&&(c.reportsWithData+=1),u.allocations+=p.budget,u.allocationsGBVPlanned+=p.budgetGBVPlanned,u.allocationsGBVReached+=p.budgetGBVReached,u.targeted+=Object.values(p.targeted).reduce((m,w)=>m+w,0),u.targetedGBV+=p.targetedGBV,u.reached+=Object.values(p.reached).reduce((m,w)=>m+w,0),u.reachedGBV+=p.reachedGBV,u.totalReports+=1,SF.includes(p.reportType)&&(u.reportsWithData+=1)}t.includes(p.year)&&n.includes(p.fund)&&r.includes(p.allocationSource)&&d.allocationTypes.add(p.allocationType),t.includes(p.year)&&n.includes(p.fund)&&o.includes(p.allocationType)&&d.allocationSources.add(p.allocationSource),t.includes(p.year)&&r.includes(p.allocationSource)&&o.includes(p.allocationType)&&d.funds.add(p.fund),n.includes(p.fund)&&r.includes(p.allocationSource)&&o.includes(p.allocationType)&&d.years.add(p.year)}),a.sort((p,h)=>h.year-p.year),{dataSummary:a,dataPictogram:l,dataDisability:c,dataGBV:u,inSelectionData:d}}const{implementationStatuses:AF}=Cn;function kF({data:e,year:t,fund:n,allocationSource:r,allocationType:o,lists:i}){const s=AF.reduce((a,l)=>(a[l]=0,a),{});return e.forEach(a=>{const l=Qr(a,i);t.includes(a.year)&&n.includes(a.fund)&&r.includes(a.allocationSource)&&o.includes(a.allocationType)&&(s[l]+=a.budget)}),s}function RF(e){return f.jsx(yo,{...e,children:f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",fill:"currentColor",children:[f.jsx("path",{d:"M83.277,10.493l-13.132,12.22H22.821L9.689,10.493c0,0,6.54-9.154,17.311-10.352c10.547-1.172,14.206,5.293,19.493,5.56 c5.273-0.267,8.945-6.731,19.479-5.56C76.754,1.339,83.277,10.493,83.277,10.493z"}),f.jsx("path",{d:"M48.297,69.165v9.226c1.399-0.228,2.545-0.768,3.418-1.646c0.885-0.879,1.321-1.908,1.321-3.08 c0-1.055-0.371-1.966-1.113-2.728C51.193,70.168,49.977,69.582,48.297,69.165z"}),f.jsx("path",{d:"M40.614,57.349c0,0.84,0.299,1.615,0.898,2.324c0.599,0.729,1.504,1.303,2.718,1.745v-8.177 c-1.104,0.306-1.979,0.846-2.633,1.602C40.939,55.61,40.614,56.431,40.614,57.349z"}),f.jsx("path",{d:"M73.693,30.584H19.276c0,0-26.133,20.567-17.542,58.477c0,0,2.855,10.938,15.996,10.938h57.54 c13.125,0,15.97-10.938,15.97-10.938C99.827,51.151,73.693,30.584,73.693,30.584z M56.832,80.019 c-2.045,1.953-4.89,3.151-8.535,3.594v4.421H44.23v-4.311c-3.232-0.318-5.853-1.334-7.875-3.047 c-2.018-1.699-3.307-4.102-3.864-7.207l7.314-0.651c0.3,1.25,0.856,2.338,1.677,3.256c0.823,0.911,1.741,1.575,2.747,1.979v-9.903 c-3.659-0.879-6.348-2.22-8.053-3.997c-1.716-1.804-2.565-3.958-2.565-6.523c0-2.578,0.96-4.753,2.897-6.511 c1.937-1.751,4.508-2.767,7.721-3.034v-2.344h4.066v2.344c2.969,0.306,5.338,1.159,7.09,2.565c1.758,1.406,2.877,3.3,3.372,5.658 l-7.097,0.774c-0.43-1.849-1.549-3.118-3.365-3.776v9.238c4.485,1.035,7.539,2.357,9.16,3.984c1.634,1.635,2.441,3.725,2.441,6.289 C59.898,75.656,58.876,78.072,56.832,80.019z"})]})})}const Si=(e,t)=>{const n=dA(e),r=new Blob([n],{type:"text/csv;charset=utf-8;"}),o=document.createElement("a");if(o.download!==void 0){const i=URL.createObjectURL(r);o.setAttribute("href",i),o.setAttribute("download",t),o.setAttribute("style","visibility:hidden"),document.body.appendChild(o),o.click(),document.body.removeChild(o)}};function EF({year:e,allocations:t,projects:n,partners:r,underImplementation:o,last:i}){return f.jsxs(f.Fragment,{children:[f.jsxs(H,{mb:1,style:{width:"100%",display:"flex",flexDirection:"column"},children:[f.jsx(H,{style:{fontSize:"0.8rem",fontWeight:900,color:Fe.unColor},children:e}),f.jsx(H,{style:{display:"flex",flexDirection:"row",justifyContent:"space-between"},children:[t,o,n.size,r.size].map((s,a)=>f.jsxs(H,{style:{display:"flex",flex:"0 24%",flexDirection:"column"},...a===0&&{"data-tooltip-id":"tooltip","data-tooltip-content":`Allocations: $${xn(",.2f")(s)}`,"data-tooltip-place":"top"},...a===1&&{"data-tooltip-id":"tooltip","data-tooltip-content":`Allocations under implementation: $${xn(",.2f")(s)}`,"data-tooltip-place":"top"},children:[f.jsxs(H,{style:{fontSize:"1.6rem",fontWeight:500,color:"#222"},children:[a>1?"":"$",s<1e4?f.jsx(Ot,{number:s,type:"decimal"}):f.jsxs("span",{children:[f.jsx(Ot,{number:parseFloat(At(s)),type:"decimal"}),At(s).slice(-1)]})]}),f.jsx(H,{style:{fontSize:"0.8rem",color:"#666",marginTop:"-0.4em"},children:["Allocation","Under impl.","Project","Partner"][a].toUpperCase()+(s>1&&a!==1?"S":"")})]},a))})]}),!i&&f.jsx(so,{style:{width:"90%"}})]})}const{beneficiariesSplitOrder:TF}=Cn,eo="N/A";function PF({data:e,lists:t,year:n,fund:r,allocationSource:o,allocationType:i,implementationStatus:s}){const a=[];return e.forEach(l=>{const c=Qr(l,t);if(Cs(c,l,n,r,o,i,s)){const u=Ss(l,t,c);a.push({...u,Partner:t.organizations[l.organizationId]})}}),a}function IF({data:e,lists:t,year:n,fund:r,allocationSource:o,allocationType:i,implementationStatus:s}){const a=[];return e.forEach(l=>{const c=Qr(l,t);if(Cs(c,l,n,r,o,i,s)){const u=Ss(l,t,c);a.push({...u,"Targeted Women":l.targeted.women,"Targeted Men":l.targeted.men,"Targeted Girls":l.targeted.girls,"Targeted Boys":l.targeted.boys,"Reached Women":l.reached.women,"Reached Men":l.reached.men,"Reached Girls":l.reached.girls,"Reached Boys":l.reached.boys})}}),a}function _F({data:e,lists:t,year:n,fund:r,allocationSource:o,allocationType:i,implementationStatus:s}){const a=[];return e.forEach(l=>{const c=Qr(l,t);if(Cs(c,l,n,r,o,i,s)){const u=Ss(l,t,c);a.push({...u,"Targeted Women":l.disabledTargeted.women,"Targeted Men":l.disabledTargeted.men,"Targeted Girls":l.disabledTargeted.girls,"Targeted Boys":l.disabledTargeted.boys,"Reached Women":l.disabledReached.women,"Reached Men":l.disabledReached.men,"Reached Girls":l.disabledReached.girls,"Reached Boys":l.disabledReached.boys})}}),a}function jF({data:e,lists:t,year:n,fund:r,allocationSource:o,allocationType:i,implementationStatus:s}){const a=[];return e.forEach(l=>{const c=Qr(l,t);if(Cs(c,l,n,r,o,i,s)){const u=Ss(l,t,c);a.push({...u,"GBV budget planned":l.budgetGBVPlanned,"GBV budget reached":l.budgetGBVReached,"GBV targeted people":l.targetedGBV,"GBV reached people":l.reachedGBV})}}),a}function MF({data:e,lists:t,year:n,fund:r,allocationSource:o,allocationType:i,implementationStatus:s}){const a=[];return e.forEach(l=>{const c=Qr(l,t);if(Cs(c,l,n,r,o,i,s)){const u=Ss(l,t,c);TF.forEach(d=>{(Zw(l.targetedByBeneficiaryType[d])||Zw(l.reachedByBeneficiaryType[d]))&&a.push({...u,"Beneficiary Type":t.beneficiaryTypes[d],"Targeted Women":l.targetedByBeneficiaryType[d].women,"Targeted Men":l.targetedByBeneficiaryType[d].men,"Targeted Girls":l.targetedByBeneficiaryType[d].girls,"Targeted Boys":l.targetedByBeneficiaryType[d].boys,"Reached Women":l.reachedByBeneficiaryType[d].women,"Reached Men":l.reachedByBeneficiaryType[d].men,"Reached Girls":l.reachedByBeneficiaryType[d].girls,"Reached Boys":l.reachedByBeneficiaryType[d].boys})})}}),a}function OF({data:e,lists:t,year:n,fund:r,allocationSource:o,allocationType:i,implementationStatus:s}){const a=[];return e.forEach(l=>{const c=Qr(l,t);if(Cs(c,l,n,r,o,i,s)){const u=Ss(l,t,c);l.sectorData.forEach(d=>{a.push({...u,Sector:t.sectors[d.sectorId],"Targeted Women":d.targeted.women,"Targeted Men":d.targeted.men,"Targeted Girls":d.targeted.girls,"Targeted Boys":d.targeted.boys,"Reached Women":d.reached.women,"Reached Men":d.reached.men,"Reached Girls":d.reached.girls,"Reached Boys":d.reached.boys})})}}),a}function $F({data:e,lists:t,year:n,fund:r,allocationSource:o,allocationType:i,implementationStatus:s}){const a=[];return e.forEach(l=>{const c=Qr(l,t);if(Cs(c,l,n,r,o,i,s)){const u=Ss(l,t,c);a.push({...u,Organization:t.organizations[l.organizationId],"Targeted Women":l.targeted.women,"Targeted Men":l.targeted.men,"Targeted Girls":l.targeted.girls,"Targeted Boys":l.targeted.boys,"Reached Women":l.reached.women,"Reached Men":l.reached.men,"Reached Girls":l.reached.girls,"Reached Boys":l.reached.boys})}}),a}function LF({allSectorsData:e,lists:t}){const n=[];return e.sectorData.forEach(r=>{n.push({Indicator:t.globalIndicators[r.indicatorId],sector:t.sectors[r.sector],"Unit of values":r.unit==="%"?"percentage":r.unitName,"Targeted Women":r.targeted.women??eo,"Targeted Men":r.targeted.men??eo,"Targeted Girls":r.targeted.girls??eo,"Targeted Boys":r.targeted.boys??eo,"Targeted Total":r.targetedTotal??eo,"Reached Women":r.reached.women??eo,"Reached Men":r.reached.men??eo,"Reached Girls":r.reached.girls??eo,"Reached Boys":r.reached.boys??eo,"Reached Total":r.reachedTotal??eo})}),n}function Zw(e){return Object.values(e).some(t=>t>0)}function Ss(e,t,n){return{Year:e.year,Fund:t.fundNames[e.fund],"Allocation Source":t.allocationSources[e.allocationSource],"Allocation Type":t.allocationTypes[e.allocationType],"Implementation Status":n,"Project Code":e.projectCode,Budget:e.budget}}function Cs(e,t,n,r,o,i,s){return s.includes(e)&&n.includes(t.year)&&r.includes(t.fund)&&o.includes(t.allocationSource)&&i.includes(t.allocationType)}var Zy={},NF=hn;Object.defineProperty(Zy,"__esModule",{value:!0});var lE=Zy.default=void 0,DF=NF(Wn()),zF=f;lE=Zy.default=(0,DF.default)((0,zF.jsx)("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5z"}),"FileDownloadOutlined");var Yy={},BF=hn;Object.defineProperty(Yy,"__esModule",{value:!0});var cE=Yy.default=void 0,FF=BF(Wn()),WF=f;cE=Yy.default=(0,FF.default)((0,WF.jsx)("path",{d:"M20.13 5.41 18.72 4l-9.19 9.19-4.25-4.24-1.41 1.41 5.66 5.66zM5 18h14v2H5z"}),"FileDownloadDoneOutlined");function uE({handleDownloadClick:e,clickedDownload:t,setClickedDownload:n,type:r}){return f.jsx(H,{onClick:()=>{n(o=>({...o,[r]:!0})),t[r]||e()},children:t[r]?f.jsx(cE,{className:"downloadIcon",fontSize:"medium",style:{color:"dimgray"},"data-tooltip-id":"tooltip","data-tooltip-html":"
Download started, check
your browser's download folder.
","data-tooltip-place":"bottom"}):f.jsx(lE,{className:"downloadIcon",fontSize:"medium",style:{color:"dimgray"},"data-tooltip-id":"tooltip","data-tooltip-html":`
${r==="indicators"?"Download CSV data file
for all sectors":"Download CSV data file"}
`,"data-tooltip-place":"bottom"})})}var Xy={},VF=hn;Object.defineProperty(Xy,"__esModule",{value:!0});var dE=Xy.default=void 0,UF=VF(Wn()),Yw=f;dE=Xy.default=(0,UF.default)([(0,Yw.jsx)("circle",{cx:"12",cy:"12",r:"3.2"},"0"),(0,Yw.jsx)("path",{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5"},"1")],"PhotoCamera");function HF(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),t&&(r.href=t),o.href=e,o.href}const GF=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function Mo(e){const t=[];for(let n=0,r=e.length;nUn||e.height>Un)&&(e.width>Un&&e.height>Un?e.width>e.height?(e.height*=Un/e.width,e.width=Un):(e.width*=Un/e.height,e.height=Un):e.width>Un?(e.height*=Un/e.width,e.width=Un):(e.width*=Un/e.height,e.height=Un))}function jf(e){return new Promise((t,n)=>{const r=new Image;r.decode=()=>t(r),r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function YF(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function XF(e,t,n){const r="http://www.w3.org/2000/svg",o=document.createElementNS(r,"svg"),i=document.createElementNS(r,"foreignObject");return o.setAttribute("width",`${t}`),o.setAttribute("height",`${n}`),o.setAttribute("viewBox",`0 0 ${t} ${n}`),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("externalResourcesRequired","true"),o.appendChild(i),i.appendChild(e),YF(o)}const Dn=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||Dn(n,t)};function JF(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function eW(e){return Mo(e).map(t=>{const n=e.getPropertyValue(t),r=e.getPropertyPriority(t);return`${t}: ${n}${r?" !important":""};`}).join(" ")}function tW(e,t,n){const r=`.${e}:${t}`,o=n.cssText?JF(n):eW(n);return document.createTextNode(`${r}{${o}}`)}function Xw(e,t,n){const r=window.getComputedStyle(e,n),o=r.getPropertyValue("content");if(o===""||o==="none")return;const i=GF();try{t.className=`${t.className} ${i}`}catch{return}const s=document.createElement("style");s.appendChild(tW(i,n,r)),t.appendChild(s)}function nW(e,t){Xw(e,t,":before"),Xw(e,t,":after")}const Jw="application/font-woff",e2="image/jpeg",rW={woff:Jw,woff2:Jw,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:e2,jpeg:e2,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function oW(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function Jy(e){const t=oW(e).toLowerCase();return rW[t]||""}function iW(e){return e.split(/,/)[1]}function E0(e){return e.search(/^(data:)/)!==-1}function sW(e,t){return`data:${t};base64,${e}`}async function pE(e,t,n){const r=await fetch(e,t);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const o=await r.blob();return new Promise((i,s)=>{const a=new FileReader;a.onerror=s,a.onloadend=()=>{try{i(n({res:r,result:a.result}))}catch(l){s(l)}},a.readAsDataURL(o)})}const bm={};function aW(e,t,n){let r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}async function e1(e,t,n){const r=aW(e,t,n.includeQueryParams);if(bm[r]!=null)return bm[r];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let o;try{const i=await pE(e,n.fetchRequestInit,({res:s,result:a})=>(t||(t=s.headers.get("Content-Type")||""),iW(a)));o=sW(i,t)}catch(i){o=n.imagePlaceholder||"";let s=`Failed to fetch resource: ${e}`;i&&(s=typeof i=="string"?i:i.message),s&&console.warn(s)}return bm[r]=o,o}async function lW(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):jf(t)}async function cW(e,t){if(e.currentSrc){const i=document.createElement("canvas"),s=i.getContext("2d");i.width=e.clientWidth,i.height=e.clientHeight,s==null||s.drawImage(e,0,0,i.width,i.height);const a=i.toDataURL();return jf(a)}const n=e.poster,r=Jy(n),o=await e1(n,r,t);return jf(o)}async function uW(e){var t;try{if(!((t=e==null?void 0:e.contentDocument)===null||t===void 0)&&t.body)return await fh(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function dW(e,t){return Dn(e,HTMLCanvasElement)?lW(e):Dn(e,HTMLVideoElement)?cW(e,t):Dn(e,HTMLIFrameElement)?uW(e):e.cloneNode(!1)}const fW=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function pW(e,t,n){var r,o;let i=[];return fW(e)&&e.assignedNodes?i=Mo(e.assignedNodes()):Dn(e,HTMLIFrameElement)&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?i=Mo(e.contentDocument.body.childNodes):i=Mo(((o=e.shadowRoot)!==null&&o!==void 0?o:e).childNodes),i.length===0||Dn(e,HTMLVideoElement)||await i.reduce((s,a)=>s.then(()=>fh(a,n)).then(l=>{l&&t.appendChild(l)}),Promise.resolve()),t}function hW(e,t){const n=t.style;if(!n)return;const r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):Mo(r).forEach(o=>{let i=r.getPropertyValue(o);o==="font-size"&&i.endsWith("px")&&(i=`${Math.floor(parseFloat(i.substring(0,i.length-2)))-.1}px`),Dn(e,HTMLIFrameElement)&&o==="display"&&i==="inline"&&(i="block"),o==="d"&&t.getAttribute("d")&&(i=`path(${t.getAttribute("d")})`),n.setProperty(o,i,r.getPropertyPriority(o))})}function mW(e,t){Dn(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),Dn(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function gW(e,t){if(Dn(e,HTMLSelectElement)){const n=t,r=Array.from(n.children).find(o=>e.value===o.getAttribute("value"));r&&r.setAttribute("selected","")}}function vW(e,t){return Dn(t,Element)&&(hW(e,t),nW(e,t),mW(e,t),gW(e,t)),t}async function yW(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const r={};for(let i=0;idW(r,t)).then(r=>pW(e,r,t)).then(r=>vW(e,r)).then(r=>yW(r,t))}const hE=/url\((['"]?)([^'"]+?)\1\)/g,xW=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,bW=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function wW(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function SW(e){const t=[];return e.replace(hE,(n,r,o)=>(t.push(o),n)),t.filter(n=>!E0(n))}async function CW(e,t,n,r,o){try{const i=n?HF(t,n):t,s=Jy(t);let a;return o||(a=await e1(i,s,r)),e.replace(wW(t),`$1${a}$3`)}catch{}return e}function AW(e,{preferredFontFormat:t}){return t?e.replace(bW,n=>{for(;;){const[r,,o]=xW.exec(n)||[];if(!o)return"";if(o===t)return`src: ${r};`}}):e}function mE(e){return e.search(hE)!==-1}async function gE(e,t,n){if(!mE(e))return e;const r=AW(e,n);return SW(r).reduce((i,s)=>i.then(a=>CW(a,s,t,n)),Promise.resolve(r))}async function ed(e,t,n){var r;const o=(r=t.style)===null||r===void 0?void 0:r.getPropertyValue(e);if(o){const i=await gE(o,null,n);return t.style.setProperty(e,i,t.style.getPropertyPriority(e)),!0}return!1}async function kW(e,t){await ed("background",e,t)||await ed("background-image",e,t),await ed("mask",e,t)||await ed("mask-image",e,t)}async function RW(e,t){const n=Dn(e,HTMLImageElement);if(!(n&&!E0(e.src))&&!(Dn(e,SVGImageElement)&&!E0(e.href.baseVal)))return;const r=n?e.src:e.href.baseVal,o=await e1(r,Jy(r),t);await new Promise((i,s)=>{e.onload=i,e.onerror=s;const a=e;a.decode&&(a.decode=i),a.loading==="lazy"&&(a.loading="eager"),n?(e.srcset="",e.src=o):e.href.baseVal=o})}async function EW(e,t){const r=Mo(e.childNodes).map(o=>vE(o,t));await Promise.all(r).then(()=>e)}async function vE(e,t){Dn(e,Element)&&(await kW(e,t),await RW(e,t),await EW(e,t))}function TW(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const r=t.style;return r!=null&&Object.keys(r).forEach(o=>{n[o]=r[o]}),e}const t2={};async function n2(e){let t=t2[e];if(t!=null)return t;const r=await(await fetch(e)).text();return t={url:e,cssText:r},t2[e]=t,t}async function r2(e,t){let n=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,i=(n.match(/url\([^)]+\)/g)||[]).map(async s=>{let a=s.replace(r,"$1");return a.startsWith("https://")||(a=new URL(a,e.url).href),pE(a,t.fetchRequestInit,({result:l})=>(n=n.replace(s,`url(${l})`),[s,l]))});return Promise.all(i).then(()=>n)}function o2(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let r=e.replace(n,"");const o=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const l=o.exec(r);if(l===null)break;t.push(l[0])}r=r.replace(o,"");const i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,s="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",a=new RegExp(s,"gi");for(;;){let l=i.exec(r);if(l===null){if(l=a.exec(r),l===null)break;i.lastIndex=a.lastIndex}else a.lastIndex=i.lastIndex;t.push(l[0])}return t}async function PW(e,t){const n=[],r=[];return e.forEach(o=>{if("cssRules"in o)try{Mo(o.cssRules||[]).forEach((i,s)=>{if(i.type===CSSRule.IMPORT_RULE){let a=s+1;const l=i.href,c=n2(l).then(u=>r2(u,t)).then(u=>o2(u).forEach(d=>{try{o.insertRule(d,d.startsWith("@import")?a+=1:o.cssRules.length)}catch(p){console.error("Error inserting rule from remote css",{rule:d,error:p})}})).catch(u=>{console.error("Error loading remote css",u.toString())});r.push(c)}})}catch(i){const s=e.find(a=>a.href==null)||document.styleSheets[0];o.href!=null&&r.push(n2(o.href).then(a=>r2(a,t)).then(a=>o2(a).forEach(l=>{s.insertRule(l,o.cssRules.length)})).catch(a=>{console.error("Error loading remote stylesheet",a)})),console.error("Error inlining remote css file",i)}}),Promise.all(r).then(()=>(e.forEach(o=>{if("cssRules"in o)try{Mo(o.cssRules||[]).forEach(i=>{n.push(i)})}catch(i){console.error(`Error while reading CSS rules from ${o.href}`,i)}}),n))}function IW(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>mE(t.style.getPropertyValue("src")))}async function _W(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=Mo(e.ownerDocument.styleSheets),r=await PW(n,t);return IW(r)}async function jW(e,t){const n=await _W(e,t);return(await Promise.all(n.map(o=>{const i=o.parentStyleSheet?o.parentStyleSheet.href:null;return gE(o.cssText,i,t)}))).join(` +`)}async function MW(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await jW(e,t);if(n){const r=document.createElement("style"),o=document.createTextNode(n);r.appendChild(o),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}}async function OW(e,t={}){const{width:n,height:r}=fE(e,t),o=await fh(e,t,!0);return await MW(o,t),await vE(o,t),TW(o,t),await XF(o,n,r)}async function $W(e,t={}){const{width:n,height:r}=fE(e,t),o=await OW(e,t),i=await jf(o),s=document.createElement("canvas"),a=s.getContext("2d"),l=t.pixelRatio||KF(),c=t.canvasWidth||n,u=t.canvasHeight||r;return s.width=c*l,s.height=u*l,t.skipAutoScale||ZF(s),s.style.width=`${c}`,s.style.height=`${u}`,t.backgroundColor&&(a.fillStyle=t.backgroundColor,a.fillRect(0,0,s.width,s.height)),a.drawImage(i,0,0,s.width,s.height),s}async function LW(e,t={}){return(await $W(e,t)).toDataURL()}function i2(e,t,n,r){return t.current&&t.current.classList.add("hiddenElement"),new Promise((o,i)=>{e.current?LW(e.current,{backgroundColor:"white",pixelRatio:2}).then(s=>{if(n==="download"){const a=document.createElement("a");a.download=`${r}.png`,a.href=s,a.click(),o()}n==="copy"&&fetch(s).then(a=>a.blob()).then(a=>{const l=new ClipboardItem({"image/png":a});navigator.clipboard.write([l]).then(()=>o()).catch(c=>i(c))}).catch(a=>i(a))}).catch(s=>{console.error("Error while processing image",s),i(s)}).finally(()=>{t.current&&t.current.classList.remove("hiddenElement")}):i(new Error("No ref provided or ref is null"))})}function NW({refElement:e,iconsRef:t,fileName:n}){const[r,o]=b.useState(null),[i,s]=b.useState(!1),a=d=>{o(d.currentTarget)},l=()=>{o(null)},c=!!r,u=c?"simple-popover":void 0;return f.jsxs(H,{children:[f.jsx(oR,{open:i,autoHideDuration:2e3,onClose:()=>s(!1),message:"Copied to clipboard!",anchorOrigin:{vertical:"bottom",horizontal:"center"}}),f.jsx(dE,{className:"downloadIcon",fontSize:"medium",style:{color:"dimgray"},onMouseEnter:a}),f.jsx(Xk,{id:u,open:c,anchorEl:r,onClose:l,sx:{opacity:.9},anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"},children:f.jsxs(H,{sx:{display:"flex",flexDirection:"column",backgroundColor:"#222"},children:[f.jsx(Fo,{size:"small",sx:{p:2,backgroundColor:"#222",color:"white","&:hover":{backgroundColor:"#444"}},onClick:()=>{i2(e,t,"download",n).then(()=>l()).catch(()=>l())},children:f.jsx(me,{fontSize:14,children:"Download as PNG"})}),f.jsx(Fo,{size:"small",sx:{p:2,backgroundColor:"#222",color:"white","&:hover":{backgroundColor:"#444"}},onClick:()=>{i2(e,t,"copy",n).then(()=>{s(!0),l()}).catch(()=>l())},children:f.jsx(me,{fontSize:14,children:"Copy to clipboard"})})]})})]})}function gu({handleDownloadClick:e,clickedDownload:t,setClickedDownload:n,type:r,refElement:o,fileName:i}){const s=b.useRef(null);return f.jsxs(H,{style:{position:"absolute",top:"0",right:"0",paddingTop:"0em",paddingRight:"0.5em",cursor:"pointer",zIndex:1e3,display:"flex",flexDirection:"column"},ref:s,children:[f.jsx(uE,{handleDownloadClick:e,clickedDownload:t,setClickedDownload:n,type:r}),f.jsx(NW,{refElement:o,iconsRef:s,fileName:i})]})}function DW({dataSummary:e,clickedDownload:t,setClickedDownload:n,year:r,fund:o,allocationSource:i,allocationType:s,implementationStatus:a}){const{data:l,lists:c}=b.useContext(Ho),u=b.useRef(null);function d(){const m=PF({data:l,lists:c,year:r,fund:o,allocationSource:i,allocationType:s,implementationStatus:a});Si(m,"summary")}const p=Mr(e,m=>m.allocations),h=Mr(e,m=>m.projects.size),v=Mr(e,m=>m.partners.size);return f.jsxs(Va,{disableGutters:!0,style:{position:"relative"},ref:u,children:[f.jsx(gu,{handleDownloadClick:d,clickedDownload:t,setClickedDownload:n,type:"summary",refElement:u,fileName:"summary"}),f.jsxs(H,{display:"flex",alignItems:"center",justifyContent:"center",gap:2,marginBottom:4,"data-tooltip-id":"tooltip","data-tooltip-content":`Total allocations: $${xn(",.2f")(p)}`,"data-tooltip-place":"top",children:[f.jsx(RF,{style:{fontSize:60,fill:Fe.unColor}}),f.jsxs(H,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:0,children:[f.jsx(me,{variant:"h3",fontWeight:500,style:{color:Fe.unColor,border:"none"},children:p<1e3?f.jsx(Ot,{number:p,type:"decimal"}):f.jsxs("span",{children:[f.jsx(Ot,{number:parseFloat(At(p)),type:"decimal"}),At(p).slice(-1)]})}),f.jsx(me,{style:{marginTop:"-0.6em",fontSize:18,color:"#444"},children:"Allocations"})]}),f.jsx(so,{orientation:"vertical",flexItem:!0}),f.jsx(H,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:0,children:[h,v].map((m,w)=>f.jsxs(H,{display:"flex",flexDirection:"row",alignItems:"baseline",justifyContent:"center",gap:1,children:[f.jsx(me,{fontWeight:500,fontSize:22,style:{color:Fe.unColor,border:"none"},children:f.jsx(Ot,{number:m,type:"integer"})}),f.jsx(me,{style:{fontSize:16,color:"#444"},children:w?"Partners":"Projects"})]},w))})]}),f.jsx(H,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:1,marginLeft:4,children:e.map((m,w)=>f.jsx(EF,{year:m.year,allocations:m.allocations,projects:m.projects,partners:m.partners,underImplementation:m.underImplementation,last:w===e.length-1},m.year))})]})}const zW=ft.memo(DW);var t1={},BW=hn;Object.defineProperty(t1,"__esModule",{value:!0});var Qo=t1.default=void 0,FW=BW(Wn()),WW=f;Qo=t1.default=(0,FW.default)((0,WW.jsx)("path",{d:"M11.71 17.99C8.53 17.84 6 15.22 6 12c0-3.31 2.69-6 6-6 3.22 0 5.84 2.53 5.99 5.71l-2.1-.63C15.48 9.31 13.89 8 12 8c-2.21 0-4 1.79-4 4 0 1.89 1.31 3.48 3.08 3.89zM22 12c0 .3-.01.6-.04.9l-1.97-.59c.01-.1.01-.21.01-.31 0-4.42-3.58-8-8-8s-8 3.58-8 8 3.58 8 8 8c.1 0 .21 0 .31-.01l.59 1.97c-.3.03-.6.04-.9.04-5.52 0-10-4.48-10-10S6.48 2 12 2s10 4.48 10 10m-3.77 4.26L22 15l-10-3 3 10 1.26-3.77 4.27 4.27 1.98-1.98z"}),"AdsClick");var n1={},VW=hn;Object.defineProperty(n1,"__esModule",{value:!0});var Ko=n1.default=void 0,UW=VW(Wn()),HW=f;Ko=n1.default=(0,UW.default)((0,HW.jsx)("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done");function GW({type:e,reached:t,targeted:n,maxNumberOfPictograms:r,maxValue:o}){const s=Array.from(Array(r).keys()),a=Jc().domain([0,o]).range([0,100]);return f.jsxs(H,{style:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},children:[f.jsx(H,{style:{flex:"0 12%",display:"flex",alignItems:"center",justifyContent:"flex-end"},children:f.jsx(me,{variant:"body2",fontWeight:500,marginRight:.5,style:{color:"#555",border:"none"},children:e.toUpperCase()})}),f.jsx(H,{style:{flex:"0 78%",display:"flex",flexDirection:"column",alignItems:"center"},children:[n,t].map((l,c)=>f.jsxs(H,{style:{display:"flex",flexDirection:"row",width:"100%",alignItems:"center"},"data-tooltip-id":"tooltip","data-tooltip-content":`${vr(e)} ${c?"reached":"targeted"}: ${xn(",.0f")(l)}`,"data-tooltip-place":"top",children:[f.jsxs(H,{style:{flex:"0 28%",display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"baseline",marginRight:"12px"},children:[f.jsxs(me,{variant:"body2",fontWeight:500,fontSize:c?24:18,style:{color:"#222",border:"none"},children:[f.jsx(Ot,{number:parseFloat(At(l)),type:"decimal"}),isNaN(+At(l).slice(-1))?At(l).slice(-1):""]}),f.jsx(me,{variant:"body2",fontWeight:400,style:{border:"none",display:"flex",alignItems:"center"},children:c?f.jsx(Ko,{style:{fontSize:18,marginLeft:3,color:"#777",opacity:.6}}):f.jsx(Qo,{style:{fontSize:18,marginLeft:3,color:"#777",opacity:.6}})})]}),f.jsx(H,{style:{flex:"0 72%",marginTop:"2px",marginBottom:"2px",display:"flex",alignItems:"center",width:"100%"},children:f.jsx(H,{style:{width:a(l)+"%",overflow:"hidden",display:"flex",flexWrap:"nowrap",transitionProperty:"width",transitionDuration:"0.75s"},children:s.map((u,d)=>f.jsx(Oc,{svgProps:{style:{width:12,fill:c?Fe.unColor:Fe.contrastColorLighter}},type:e},d))})})]},c))}),f.jsx(H,{style:{flex:"0 10%",display:"flex",justifyContent:"center",alignItems:"center"},children:f.jsxs(me,{variant:"body2",style:{fontSize:12,color:"#444",border:"none",fontStyle:"italic"},children:[f.jsx(Ot,{number:~~(t*100/n),type:"integer"}),"%"]})})]})}const{beneficiaryCategories:qW}=Cn;function QW({dataPictogram:e,clickedDownload:t,setClickedDownload:n,year:r,fund:o,allocationSource:i,allocationType:s,implementationStatus:a}){const{data:l,lists:c}=b.useContext(Ho),u=b.useRef(null),d=e.targetedBoys+e.targetedGirls+e.targetedMen+e.targetedWomen,p=e.reachedBoys+e.reachedGirls+e.reachedMen+e.reachedWomen,h=Av(Object.values(e))||0,v=22;function m(){const w=IF({data:l,lists:c,year:r,fund:o,allocationSource:i,allocationType:s,implementationStatus:a});Si(w,"people_targeted_reached")}return f.jsxs(Va,{disableGutters:!0,style:{position:"relative"},ref:u,children:[f.jsx(gu,{handleDownloadClick:m,clickedDownload:t,setClickedDownload:n,type:"pictogram",refElement:u,fileName:"people_targeted_reached"}),f.jsxs(H,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",gap:2,marginBottom:2,width:"90%",children:[f.jsx(Oc,{svgProps:{style:{fontSize:72,fill:Fe.unColor}},type:"total"}),f.jsxs(H,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:0,"data-tooltip-id":"tooltip","data-tooltip-content":`People targeted: ${xn(",.0f")(d)}`,"data-tooltip-place":"top",children:[f.jsx(me,{variant:"h3",fontWeight:500,style:{color:Fe.contrastColor,border:"none"},children:d<1e3?f.jsx(Ot,{number:d,type:"integer"}):f.jsxs("span",{children:[f.jsx(Ot,{number:parseFloat(At(d)),type:"decimal"}),At(d).slice(-1)]})}),f.jsxs(me,{noWrap:!0,style:{marginTop:"-0.6em",fontSize:18,color:Fe.contrastColorDarker,display:"flex",alignItems:"center"},children:["People Targeted",f.jsx(Qo,{style:{fontSize:18,marginLeft:4,color:"#777",opacity:.6}})]})]}),f.jsx(so,{orientation:"vertical",flexItem:!0,style:{borderLeft:"2px dotted #ccc",borderRight:"none"}}),f.jsxs(H,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:0,"data-tooltip-id":"tooltip","data-tooltip-content":`People reached: ${xn(",.0f")(p)}`,"data-tooltip-place":"top",children:[f.jsxs(me,{noWrap:!0,variant:"h3",fontWeight:500,style:{color:Fe.unColor,border:"none"},children:[p<1e3?f.jsx(Ot,{number:p,type:"integer"}):f.jsxs("span",{children:[f.jsx(Ot,{number:parseFloat(At(p)),type:"decimal"}),At(p).slice(-1)]}),f.jsxs("span",{style:{color:"#666",fontSize:14,fontStyle:"italic",marginLeft:"6px"},children:["(",f.jsx(Ot,{number:~~(p*100/d),type:"integer"}),"%)"]})]}),f.jsxs(me,{noWrap:!0,style:{marginTop:"-0.6em",fontSize:18,color:Fe.unColor,display:"flex",alignItems:"center"},children:["People Reached",f.jsx(Ko,{style:{fontSize:18,marginLeft:4,color:"#777",opacity:.6}})]})]})]}),f.jsxs(H,{display:"flex",flexDirection:"column",width:"95%",marginLeft:"3%",alignItems:"center",gap:3,marginTop:4,children:[f.jsx(H,{mb:-2,style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end",textAlign:"right",width:"100%"},children:f.jsxs(me,{variant:"body2",fontSize:12,style:{color:"#222",border:"none",fontStyle:"italic",letterSpacing:"-0.05em"},children:["Reached as %",f.jsx("br",{}),"of targeted"]})}),qW.map(w=>f.jsx(GW,{type:w,targeted:e["targeted"+vr(w)],reached:e["reached"+vr(w)],maxNumberOfPictograms:v,maxValue:h},w))]}),f.jsx(H,{marginLeft:"3%",marginTop:4,display:"flex",alignItems:"center",children:f.jsxs(me,{style:{color:"#666",fontSize:12,display:"flex",alignItems:"center",whiteSpace:"pre"},children:["Each symbol (",f.jsx(Oc,{svgProps:{style:{fontSize:14,fill:"#666"}},type:"total"}),") represents ",f.jsx(Ot,{number:parseFloat(At(h/v)),type:"decimal"}),At(h/v).slice(-1).replace("k"," thousand").replace("M"," million")+" people"]})})]})}const KW=ft.memo(QW),r1={1:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAsCAYAAAAjFjtnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGKUlEQVRogcVYW2xUVRRd63ZKW6O0YKkfEnVmGhMVTbDxgYpDK0bFH43iBxH58E9FOtXyEGlTC9pa27EaTfzwFdQfEDExESN2WgXfMVH5wk6LDQElBWdAobUzZ/kxD9rO3DvPxvV399l7r7XvOfvccy4xB7izZ7gu6rLaIK0BAJAfuKLmuc9b60+UmoulTNbwxo/lF/2z8DEQHQSqZwwKf4PqNWGra6jDPVEqzpIV4OsLrSTQT/LqLK7DJJ4ZaPbsKgVv0QXcHhi9ypLpJXlPPnGCgjT0B5/y/FwMf8EF3PHq0YvN1GSbgMdJlhWSQ5AB8L5FtA40e/8sJEfeBTiu80JRRH/kVYAvMHqfBfUAqM9NFwYSJE05UgwbsHXI796bq6acCihgnc9o1DwaHEB+/eFYQN7r3GEp5Lv0cu2PjAXMFRlQ2peSsYC5nO7pKHZZJpEqoFQJ80WxL4y+9qCL1Zf1AFify5QKiBDYURs+27+rY8m/xYhPYnX7oXnjNRdsELA1pyUrxQC8qshYKxsDoW6AG3MJIvGmK6ptc3EoA5KHQHZKeDS3/lA3V/SN/EHiEkc/YMCi/APN3l9KptYBTS+HrjNiIPv3Q8ezFZD3h6WUyP7h1HELxNtpZiACobU2fPaa/0s8AAz53Xtrw2evgdAqIDJ7XOC79LUHXVb1ZdtBrAMgCLtcMe2Yq3VeKO7sGa6LlnEriNUAKPCdRZe6n/2/dRUNx6NEfHur6gSwVoII7KyNnGsr1fZZCj6XU8Lx6qrnklss46VuGq+uAoDNpZNdHJ/lmJF4JINtXREanVEAn+MMSBBnLTIBsVy0rAiEWgBuAgBKXcEWbyBbTCF8jjNAYGcGawbbTKzoHfER7CVQR6AOZF9jYOT2bHGF8DnOQG3kXNt4dRUErE0SLIqca88qhLghzSjcCODLUvOV9L9QEk19oeUiz4uVJGj5YEv9wVJzOTdxgRho8X4lYIOkY5KO0cKTcyEesJmBlV2h6mglHoThXYSWCKgDWE7gtKBfCX46VVn23oHHLv+rFCJue/33BeUTsYcF3UPwWgHzAU0ROCHwEKl9FVZs974NV552LCBxN9hI4GmQCxxZ41e95014rGeoozGa2Ufx/KQyDcevrgtaCW4BcaEznU5R6Kld7OnZ9RBTO1OqgMRddTfIFY7C0xMHXZO4f/9mbwRI/djdIOkBkO5EIaMEd7ti5pXkGcsXGK2xYPYC9OXLV+aqWP3F+sUnUwXc3DtWVcnofhK35JMslVT4urIs2vSvKW8yMjtJXmzjOm4M11a5poITsbIgyWXTskwArLRhmD120IS5cqjDPWEBQBWj21PiJUnanoPu5yEJAEjcMmlcHwpmj4N4AKi1LPPRRMy1JyU+vkN1AnzTPoxvCepM8gG4lTWmEwCs5a8ccYt44rwvNw22eLdlUx/0e7aK3DLNdK/9G5whppLEquSTiG2Dfm8boAbbEKlh0O9tA9l23sb1vsDoFVZZLLaGwLyE+WCw2f1SdhFxDDa7X5T0zSwy+51p1piA7wf93h139x+ukLjUNoxc6msfrQw2u3dI+AEASFRQZo0FcdV5V/Oa3Y6REXHf12aKYte0qUba2PRwo34AmDLl15OosKUB5rE61hDni8fE6bnKIuVJGqIxHchZfFIUrRkfqDIj2ysoiY+nP1t0fQsAMWOybh6EtQwAJPNdiltyWwIuij9g0jpz9Hh+8gGEjxyVMJnMET0zNmLnasK/h2b4RkbGEpXdlI1GQLzpTx89kswBoMai0CvpJKku2w+SA4Y6GqOEuqfnEJD2IiQdS+R/AcD4dD4mxTmA1LJ0PvTYHuYaAyOOvRD0e+xj+0JdYPwukCoA6Br0e7bM9m1448fy+WcX5nRFNWFWzf7B63icLhT5HIsXTcy3JqRYtj9x8d+J6e/MaQZOI9EfacmAyKDfU+NEmA8a+0LfZuuD+JbrSfOxPU4L2u+Q7rN8BGaDodWVzYcw3ZnstgUQ3CLo1Gy7oFOyYk/lJ9EZQ373Xgkv2DpI3UF//Z5MQ443Ml//4cWMufoA3JUw7TeW2fxlc/1vBat1QGPv8CpYll/SUhAk+JOh+oeavZ/YxfwHOYQxBpRQSIUAAAAASUVORK5CYII=",2:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAtCAYAAADoSujCAAAACXBIWXMAAAsTAAALEwEAmpwYAAAEYElEQVRogdWXX0xbZRjGf++hIAUdm24xCwHTMi80xAtYtBcmZVUDcbJpBBbjjFtixCiJUrLsTsKVmUkBE6Mj8ca4+Qc2FyYxUQKli5mLgRi98cbCJHMmZmHgxh8LPa8XUIECpedwSspz+Z33+d7nd877fWmFDMjf+Xu5oVKHylOKekEeQHQa5C/gF+ByLPbvt1dPP3Jnq71k63GXFfjg+qNqxkMo1Yik3FvRCVF5z5ySDyNtnjm7PR0DCLSPvaFidoDkW/Gp8quKHI00e67b6WvYMa0bRPR9q+EBRHjMUP0pEIo+bqevcwBwClW1ZRb2mYZ8X9Ux+oRVq2MAQ83eLhNeV9S04xcoAr7zh8Z8Fn3Oyt8efU2ELkFsvRyFKTWlJtLiuZZOveMAsL0QGQGA7YNw7AwkKxIs+0Sgye7BFigSQ3tRTfmSMwYAEG4u+xjhLdu3kzKMSEpvRgFgEUJFzlg2KgNz6qrbrCzjAAA5ol9b9ajonl3gBqjsGs6t6hh9t6oz+mJy3bYAxKHUqkeQipgx3x/ojD5438yerwTaxKSnqmO0cXVdhuULjbvzjfkfBKmw41d0WpDC5QVVwXhzMOg5C9vwBUpKSmKC/GbXvyo8gIgo5keBzmjT4vMMyRcadxcQ9w22eML+1rBLdpeeF6TBsQaqisiJjAD4QuPufFnoFeGQqfpSJFh2wd8adhlFpecQOeZUH1W96fgIrQj/DOAyRL7wt0frIm2HFsyp8eOgXy4nYEBMCShM2eklEHMcwG0stCyFT2gVxN5i7yKEMjCrrtrBFk8YqLYKoapxUSPoOMA/BRNnFL2UtPw/RE+DxPcWe4/Pqqv2WkvpLMC+yZmfgZF0e6hqHHh1sMVzyZEz4AuNu93GQo8pejbyTllfZddw7uLdLS8klS6gZnU4eGAwsVDfrTm3boxeQOR5K+GHgmXnwYFrNDHzwGFRuejvjD430nhw/k7B7WNrvoQSmdW8H1cuTdwcrbAbfssASQcWgTxRuRhoj9augVia+cTYJPTkbe+IKj12wi/1dCb8qmYQM1TrBoNl31R2Defumrn/9KzpCiWHT8jfGnZJ0UOfi1BvJbxtgKWZvww8vVGNQgylYSjo7U1nz/puzbn159inwMur9lGNC3IyHPR+tp7P8gitmPkNw8PiOIE2pqpZqZ4GiZuTf5xQtDuxlnjzG4Vf6pO+Uo3NGikDhYX3HOlrLJ6x0qO+W3P+vjF60hDKMczu8NsPX01VnzZAOmOTkKpe0bzZw5Gm8rvp7m9XaQFka3hIAyCbw8MmANkeHlIA7ITwsAHATgkP6wDspPCQBLDTwsMKAKvhc+MFz/af2j+d0XRpSGDnhgeQnRwewJVvzHeBbBoeZeDewvwjfY37Lf22ybQMIY1/QzZ/mG2HDJRIyoosDg9gmCKvAMPrPVTVK664+2i2hoelW8jfMbbbQPuBg4kH2Xhg15MBEGn2TBquvBqUPpS7KOfmNLcm28MD/Ac0rl/qXg0VxwAAAABJRU5ErkJggg==",3:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAA7CAYAAAA9xQlEAAAACXBIWXMAAAsTAAALEwEAmpwYAAACWUlEQVRoge2av2tTURSAv/OSWLCgFrolQ0pc/BfEYiIqUnRw6OzYQQnaTRARHSyIDXWQ2k0noU7S2R/YxUWobtW86qBd/VG1oXnvOLRSTZ7pizftfa/cb0rePfdwP7jnnpdLpFLzFZuoXn46Xpr41/Dxifr+oE8+Rww1gRlv+1a27WRVdSzNAohIJtUCANn2RzoVKnMAGQ8JQ7kmwuGdXlhc2gRC4dHzS6X539/LNf8YJFcg9VvICdgmcQKn733c2018xCm08xy5+2Eg1wjOoIyu/GicrEzWPwGPQ49ZVnnTaW4CBOR8bjW4jpBDQABEikDVU6rBHl3qNNu+gFDoPC5DnYYTVwPd4gRs4wRsk3oB82NUWUNYAKJ+9v1HPj240QdiYSSgylfP0+EnF0uvTfK0Uqn5V4AbcWKNtpDAbK8XDzCYH7qJshIn1rQGDhjOj+Tb8tt+oC9OrJGAip4t1/yxE7eW+03y/MnRqcVCI8jcR8jFiTeqAUE8YLqZ/TldqfkmqTYJ2Xiji0fqj1EnYBvjRqaqDzzxHgYarvViQag36El4FZFDccLNBJT5Z+Olc0Y5Ihi+8/5lthnUEdmynM22kNDzJgbwolpcAr7EiTUTUB05NbW4zyhHBJXb70YQidUkzbaQSLERZBbKk/6coN+Ncm3mLCiMxm0F5m+jIkWBC111n61SdhGb+mPUCdjGCdjGCdjGCdjGCdjGCdjGCdjGCdjGCdhm9wmISv7vJ5pvjUkS0vq3S0VD0fVLJUUyIvT83qeXtF2rCOIhDKx/Tj67rwbShKKvfgFZK5MCBawJXgAAAABJRU5ErkJggg==",4:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFNklEQVRoge1ZXWxURRg9Z3YXqqj8tUSSUtilYGOIMcKDJsC2S8Co0cQoTTQxJIQHAsR2KQUUBaoQwba7LRpME+MLkICFGHmByM9miVETiWjiD3/dBQJiFGJr+O/uPT5QSrvdvezeXakPPU/3znxzvnPunTszd4b4DzC38eKIbte11SQXQ5CgNk/ywU0H6sdfLXQuFpRNYqA1/qolNRKc2L9KvxNsmN3l/bShgVahUhbMQCB05inBagUx0y5OwvcusuZQ0PttIfLmbWDOR+fHWt031wpYStKVVSNJIrar26yMrvT+kU9+xwamtx31PHx1zBIQDQRGOuEQdJVA03CT/GB/zdSbTjgcGQiE489ZssIkH7uHwC9uJ+HLtnHSCUMTPBz07stVS04GZrecnmIss5HE/FwEBZrjVRbVQuKJe6Q4CCVrI8un/JKtpqwMzG28OCLhvlYvcTWJ4TbK/xa5uaTzWri9YdqtvlX+dRG3GTlxIYANIEoyc6Ab0CeuW1h7cPXkrvwMSKxqib8BaDPARzPnlAVghyehFQfqy/+0o5y59exoz43EepBLALgzp9ZlgO+XlHo/bq9mMmcD/tDpGQS3kHzGThCgKCzWROp8P9nHpfA3xSuMsVpAPmvLDv0goiZaO/nrdPUDDMwKnRnvZnK9gEUEjQ3zeRBrIrXebSDVT9y6iNuMLHsX4EIBHlI7r1uet76rK7ueShMIdbwooBWkN3MuSeBut9GKg7WTz6U10DssAu+ReCQjGXQdwhZr2PUN0WXTrqSLqAx3rCG4IaV4ayToW5ou/unmcw8UmcSbFN4B8ZCNj2skGq1Osyna4L3Ra6AqHHtJQojE5MzCAUGfu4n61KeQiqpQ7CSIKf2T4x9/l3e03TJiVtOpCW5jGgFUg8zYvSV0kFgeCfr2sioUWwGi0U4QpB9B1kSCviO2cT2oDHUcT50jBHT5O71jslkHVYVjsyG1gnzSVhZUZ0Cssom5JGBxcalvRrbiAQDEtoFF2J7tIi4S9B0pLvXNELAYwCWbRKvcAIrT1CQAfWYlu9dEV1TYEKSHOs9t5qgyD8CFgDwSdt6Q5+1cOHqGzjZ/OL7LyFotMkhgWD/5wDhWhWMa0FrJabnMhvcDgdYzj8uyBmhKO0z+38QDwOGaSb+mK884EzqBv/lUOY3rFQhzSFQA6umevCThOIhDNIndkZqpHYXKWRAD/taTpUy6PwRUTcB1d3bpvZhAYgKAuUq6NlaGY7uM5V55uK7sQr65M8+0WaIqFJtnLPcxEq9l80ND0kXgdTFxLNDSMTff/HkZqGyO+UF9iTsjmTRwQEjFnRiiRMLeQKhjVj4aHBuY13xuDA12AywCAEEXLJnn79WONC8I6uk6LBK4xx+Oj3Kqw7GBbtO9Fj1PXtJlmqQ/Wufdf692h4PefbKsytvLZQBECaG1TnU4MjB/3c/DICy4c09wSS4jS7RuymnJLLtbogXT2456nGhxZOCv0UWzQN5+7VK8uNS7J1eOcRMmtQs6CwAEx4y8MtZ2OyYTnHUhmfLea/Ibuz+mTGivZpJA796QjMrt4jPBoYE+2yjCCUccAAT+1ufW0YfsyABdiT2STkg6YeDa4YQDAGgSO3p55Mq5GwIOZ+KeD7bCSdtC8+Q9Ew82hgwMNoYM2CES9DES9BX2ECUFQ29gsDFkYLAxZGCwMWRgsDFkYLBhBPQ7TZTg6MD5fiCdVkMgdd8/+3MAmyR9H0S6MidIp9UggUUSDkC4Iugrt9GiPJM0QbhCoMmuzBHSaP0XYBkfLLhiquwAAAAASUVORK5CYII=",5:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAA8CAYAAAAgwDn8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAGl0lEQVRoge1aW2wcZxk955+169TQoNxAIo3jS42spkU0JoQm7q7jRFQ0KoI2PABCXFS5akLiC6VUohg/UanxLSKIIFKpEQKpqUQCPISAveskRAk0BNpSUOK1E1TKJUpcJ3XsjWfm8ND1ev6ZdaPYCduHPW//+c583zk7Mzv/eE0EsHnPP28fH5/cLeJhislka+UWkEIhITHRM/ISoDjAg5OKbTvRvmJiumyC2vHxzD6QXyG4CMQjjbvS9/3/Hdto6huuJ/E5kotJfG2BcfcF67kA8d70ZhCPBIvelOOHG67e83JJY9fQp+O9Q6tulsl418jaxu6hDZAYrvlU2MOjie70Q9MLAkC8Y6TMLPRfB1k5XZB0JNVWHQ8euem5oWWuwxTIOgCu73t1g+13Dc3H/Ibe9CaJh7NDU+XlZQ/9uvnDV3MCiYme4RTJB2YopMsc9+5DO2ozBgDMQm0JmocwJaOt4WGuY/ZmzQNAzIAN8zE/7S+3IBPj45PftwSkfGEbAHeGQvWk5zwKZC8hAY/bB+mHgy01rwWpeM9IAsRmazhxZr4BfPCs3ZOPN3WfrwpyR9qrX5XwI9sjmwEg1rQzXesT9+caQL6j2K7wIEJtNqPBVFvN72cz1rDrXKXj+vcCgBczrxzdvnIkn27ZW+M/u/CBBc8QrHpnDkp9eFsBtFvT5PURZitIZnUN8a6zNcY3gVMIgOBAf1vFcJBb33dmKYUHg5zvm2/PZjzRnT4Y8/xhEgdIHIh5/nBjT/pAvGdkZVi/v3PVNYrfs0jqC/GOZCxIDbbfNSQyackcEzei1ttJ8dvwEMctaQJRktMAfx1srzwR1m3sTa9wXD9F8uFoNH6G8FPxvjPLwxV/jPshvRXQfsgsuvOjkRZSv73mOkPhHoszOh4ZbbTGPhC/jBoEXJ8/IbEiXw0ACFbQc34c5gc7KydB/s4ifa4J60ges9bCvQbgElvlnYscKFUG18bgdFgT7zuznNDG2cznegEPNuw8e2e0oj9ZK6EyrHAoy5uApQbU4iCZccsuRloDi0LN/xMx5saqp2+wdwXJGHlPmBbx35BwcVjztldywW6lpUaCtddZ8j4nYoKA9TSkTyesMY5Kr+c9Z9ZBJjIj0lNeZIY7HrMZuoak9YmPXbkaSS7wUnDtGy0La0rpnZSiQyO9JO9aZuoPkQJh9SQxGpaUlJbZ3qSLRpB1Whw61kMkq0yH1vVhxaEdtZcBvvBu5rPG9h5/qu5KdIRWh5SRLYqRZ3kTeMEA/It9nNZFmhucDDXP8zUJOCWl34LwWr5aFq+W+CVPh8lNz/2rHGSTNYE6GdYJpiGkOW0IHQvpPhU+0C2NDUgz1y2B2njPSCKs6//G8ouZqcz9kP4c9a7TmWuZdYfbV1wKV1xn4osA3h9w+kbDaFXkgyBgfctJPG5cx0lCUkDU8EDPSF1QeOyJilESvwpyRv6z+ba/x5+qu6LQ/iY7bCjfpbO26x8LADxjaYmfdnbS+uJo7D57N4iZh64kekiZo9tXjohIzcQkHfgtEQPAzmBQkJ/Y0H0uEdbdKBYY90sgAk9nTci4u6NKp9Vakv3JJ6vOGwCgaO30JHw93j1k3aip1qqTAl8Kcp5BxTz9Awr1EHYN7qh9I0g19aY/LuqrQc6X9gDZ7fTl8ku/APT36SJJhzS7OzpkvXK6ZU6zhD8CgISMcWVtruYCQr8Rsm9d0oElYxPfDdY7OmQ88QcEc14kvf52+ejBXIBTzfVTorbZjbEmtdB+Jz72RMVofKxyreSvp4ePJJ+sOj/fAANt1Ud9mFWex/uSbdWf3d+56lqwfvSO4XoC1r7IyGw71Vw/BQC5J1uqpaY/0Z3eR/LL05xjaDUDgOzNNet7wFxwpLXyb7PVXJkpx9os6IWB9qrcmbcukaVjE48J6JGQhrB3oKX6lZtpdC448s3K0xKeBzAEoOvy7aOPBevX33zNAYnu4RdJbAlyEvan2qo+f7NnmetL3tsoBig0igEKjWKAQqMYoNAoBig0igEKjWKAQqMYoNAoBig0igEKjWKAQqMYoNAoBig0igEKjVn/Or16z8sld1xd9EkSH7zRppLaAK4NsSdIdt+wQ1//HisfPTH9g0YYeQNsfDa90LsNSYAfu+GBtwLCqdscd8M7P6bbyHsJuaVsec+YBwBidcaPbc9XyhuA0MpbamgOEJDnXyBmu4mpw7fUzRxA4VA+Pm+AZGvNzwV9R9Kbt9bW9SHpTUhPJ9uqXsxX/x9naX98X733zAAAAABJRU5ErkJggg==",6:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAlCAYAAAAEGWqvAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGj0lEQVRYhd2Yf2xVZxnHP9/33gIDGUWBiVD6E5SMmA0jzg1ob2n9ETEuwZpFWExMNhe22R/8mgFtuiUbWektJNsSk5ElamLCYhCHWbUX2ttWydA5NxhMoLeUUXArY8CmUNrzPv4Brbfl9gcVqPpNTnLP8zzf93y/97zve55zxBCI1CYeMmOTsMOgmJdi8bKsN5FsKN6thIZKRqKJA4gFyTHDOkK4kj3l2fturrSRITxk1nwUVIM0tTckNMtjK4F9+VtbV8mzSVLMe+2ekZFV//J3FNxs0clwQyUb1uS9NG12znSDe4Afg8Ux+6tHLwI4zwJJnwUedc5e7TzZ9pdlW1rn3QrhveibQkVbW+cEgS1TSK/vLc05MJJ5XhBtfUrSpuSYYR0WdN8VX/u5M8XVx2b0hNx2g5hEXUN5zt9utIG+KRR4xXCaawYFtW3vqTYR8yiG647FS+edTEWW2T7UfxkJzcKlrQfWd4fd3YLlguUAkWhrY+Ds4aayvKM33AD6992QuANY6bCV+DCRaOthEzGhWNflroY/bpj/EcDSC7l1TemJN0B393ehbwHrBeMHxAucqSVSnVjUsC6n/YqpxFrDDtu4i/H4Yws+vl4DfWugJwgKMX5iZk0Y3QMuPF/ocWDX+HHjz0aiieZI9FhhVZU8LijBrG3AuHcAePQWZv2momCGhYgC5Fe2TTBss6TdujzxTKS29ZeR6kTm9RhIuY3mP3fwE7p8Wz5QhFQsuHNgjZkdaqzIvRPga9uO3H7Jh8tk9gDS/ORcpDaxG/jGAHpP1+WuT05yabf1hN17/QemUyFXsLc069BIDKTcRq/eyt9ePVgSPT4zjC8yWbGgCDQT+H1vfV3pvAvAk8CThTUnZjkXzOnNyYd/YOpuRspOvm7a+LTMez/MPdQ0JXEOKb0vI6Zb4H+G2RdHspEM+SAbDEWbW6fEnsg9P9L6/C3vTFMo7SmhlcBkgFA4NCv2eOapSG3iOeDRa4R5+9LeNbn7hxv7GgORaOJBZM8aOgrE5IKYP3tyf7wq0pNcV1x9elJ3+OIqsPtAIbBD5t2eGRlZfxrsYVZSeXDc++mT7nX4LzeU5z4DsPiF9qlpXcF+IC+51ps9FK/IfXE0BpoRiweEz0j23b1lufUAhdHjCz1+p8ScgXzDGhrLcwuHu3Ay8p9t+7TC9jyy+4UcgJc9GC/L/cVw3GvWgExRj8+R9Jmk8DQzfQ+oX7ztyHQLfJ3E9JQjmnb1/oxUJzIJ8xUg3WSJHgVNLaXzOgdS4uuz/w6sWLLlaIZz7qsSxfS4Pw/rnMHWgJmWRhMLnKMY0zIgHVHRWJ7zWkFt4hnBE6lpvDUh1LOoc8IFP/mfU2swVksKJRWYiTfsnLsvXpV9aThxRVtb5wSe1R5inHctqTipmznJmuAAV45ov5RZtkHQT9gVxJyzVXWl87oKoontEt+/5u+RhNnHyUIi247k+iCUHQqFTi05m/lOVZV8b67H9HWJDQ42kO4vFkQTLUAswP28uSLrNIxyF1r8QvvU8KVgqWAuWCDjD707RmFN6yJzei0Vz8wCSYUN5TlN+TVt98j554UWJuU/AO31zm9sKss7GqlNvAx8O8U4fc+ZodvpQdCyOvNDYFeqnDlWpGbZRXM83FiW01RQk8iX83WgCckVkj6Fcf/4bh4DcBbaYPg9hhWBFfa29ZLG9XFGY2AoVFaaa57SfpfHFwlbaEKgt4MgeKl57dx3S3ZYqLMjcUQoJ7VP+2lDRe4jA8MlOyz0wbuJLwTi88jF4uXZx2+KgeGQH20tclJ9yqRZYziYuLx+3cx/jHS8IV9obgaCCeHXDR7A2I5x0LAOjBaDR/z5E8XXI/7/AirZYaHTZ07cPtZCRoOZ0+ZcCHd2tL2ZlqJd/l/AmY62Aw4jY6yFjBpmGU6yU2OtY7QwOOUw2sdayH+Adgf8bqxVjBpSnfNyO8dax2gRhNwrLl6efRxj91iLuX7YruYfZrU5gEBaD/QMw/ivgZkFmN8IV1uJpvLswwZbxlbWyCG0uaFi7tuQ1Avln8veaGa/GTtZI4OZvTptdnZl73mfgaoqeRt3cSVmvx4bacPDsJ1pwcSS5K8e17TTlZXmmqYkKkE/QqTdWomDwOhG9nRDWU7VwI9dg74P5NcczZNCTyNb0fup41bDzALEr8z7jfE1c4+lqhn2haa4+tiM7jR9U55iQxnAbGGTb7hawNBHwEnJTpiIpXXbK/Xr8t4fivMvrwK2IWhRiN8AAAAASUVORK5CYII=",7:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAABECAYAAADHsbZQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAG10lEQVRoge1abYxcVRl+njOzHy2KtKYt1FI/aqJVJGVniiXRlAT8SMPuzlaWEJug1vBRTXemBtvGKEuNJLis7E5BpCqSJgRbiN2ZXTA2EPtDpQozpdSqsS0QCC10USq023Z2557HH3Wb3e29d+7M3NvtD59/c5/3vOd553y9572XiAg3bCnMjJ3i9wF9FeB8QgcB/iyXbvkpSIXVD8NyNBFfzh5oasLxZwl8bion4Bf5dOK2sPoyYTmaiBl873Y38QBA4NZUds/ysPqKJAAJbf4Wtj2sviIJAOJcfwPOC6uraAI4j/h/ANONeCReiX4Bc3ws/h5eV1PQ+cQTsdLRRfPiY06zWwOHDfZkmW8/890lI2GJqAdnA2i9/8VPx2LOJoErCMzwbSUJ5B4KvQOZxLbIVfqAANDWV2yjwbaKwl0g6AUK74YlSECZxLDEwzQojJRiO/1Gm6lsYRHEfSBmAoAEB8RuQlcAvCQsYbVCwCkAj8ng7sG1iSNTeSNww7h4AAB1Zz6d+Ly1dhmk0JKuWkFgBoFbjYODqWxx9VTeEPjSpCeWbwKA09Q8LNCeJ52VceZPfqS9v9gz6XF7tlAi2Dj+QNIwyF9Ruh5k8rwLDQIpk8skswBgIAxP5EjOJbDxghUPAGRvx/2FFgAwBJ+dbj01IK4YegCAKzcXPmkt9oJsmm5V1cIaLCUAdPQXb7bU1olrITi0F8K/whIloAHgFSQ+WNFWuufsSdz2QDFpLH4E4DoEyJEkHaDQm8skfhnmHRc4k86MHvnY90j+0FcDtPucXOgL9+296KK4sxBmwtkwsZE1juXpN4cy1xwNS7AXUtniLgDXevGS3jjnn/7fsf2Pejpuy+650UCzvXhShwa6kr8P4Oo5+ARAYE4k6bSR7gLxGS9e4uMAggSw2I8UeOyCvdCkNhdXCvK9/JM4XFNd6IYthZnmJK8HscgQHwLw/om8gBsJeE4hQIcAuo6AzmTIi73KMpNshc1VBZDqKy4WcTeI1lpS77BB6rpAASzv3hWfNfviewGkEdU1tEpIemnJsURLRTGdD+5/32i59BsAXzwPuoJD2LBpE63vIu7ulhktn36MvLDEC8jm1yV3AhWmw0uziutJhlYGDAXS0H+OHb9z/KfnGuh4aO9cjTmHMGWHmWb8pOGylzc8edNNzvgDzxGwo+UukheGeOk5Y7R+R9fSP02lvKcQsTKg9xGBU/IiLfDLbCWdADnsxRM4BukIDJ8Xlc+vTf7Vy9Y1gPbe5y8n6H+MSycMsDo+/5UdE4cUAFL9xX1+qQTJwVw6scrPf1C4BhBr5EJbIUEWeNdAJvFkGCLqgWsAFqZi/Z4xeV5FRfyZkne6TewPpC4A3NeAdKLS6zPKLADgOjfDfAdWCa4HGWXPqYBNhWQ3tf34j9O+S7n+zZ3d+xtHZ5WGSXzAr7Gk1wgOiHirxv5PkjjsWBwayiT21eLAc560Zwu/JnhzjcKqhqTXSGyHcXpyaz/776DtvHMhqy2hKAsIkh8GuF5O/OWObOHbgdv5kals8WkAK+pWVxP0yNxmrPn57ckxPyvfbLQsrQEQefXBHfzm0VN4uJKVbwBPZZKvG9qvAJqW10kkV7uV1CfZBHHU2l+8MkblAX4kBF1VQdLbJZY//rv0svfc+EBViaFMYt9YQ2MLhF4Jp8OV6A+Sc5rUcIcnX63Dzgf/culYOZ4C0QpgEYTLJ73hiQJSIZdJLnWjIvncJiha+3fPi5mGW2R5D4kGT0NJbIxfOvCtJeek4NNa2BrKXHM015W8j8S9voYknVL5o25UJCWStuyeTxnIs27kMPbOUNeSV8d/y5odNPYHfj4JXOb2PKra6Da/C01MzuMAzl5oTMyZLfnPZmPounlMe210efeuuBU3VrIrC64Zct0j0Nm9v7F0SWlZjDp7CVKlLBZY2NFf6HTABYZYBSDh34tGmp3Rg25MXbtQe98L19KYrQAW1uMnAAZy6YRrkaHmEUj1FReDeBqI+AwAIOBRL672NWC0MfIDDACEP+TTiSFPGTX7Fa+utW0VOO5Ys8bPoI5dSKXa2wZCWcCqoe9c9Tc/o5oDILGz1raVIOAdyq7wmzrjqGMNOD2QXq1sWAUkCdoGaxIDmaXPBGlS1zba9kBxPh30gUrV9pYfkHCa1AGATznC9mqrE6Fko197dFfz8ZGL52HUiQGAjcV+C+AT3i00aBy7zjbo3WoqEG6IJJ1uzxaLBFq8eAFb8+nE18PoK6Jvp/VPP5rw56tBJAGQZrsPXbbW7girr0gCyKVb8oB6XKgyyFsG110d2ghEeqU8k+zxGwJnUHrL0jw8mG4J7bNjAPgvZ7xknkeUNX0AAAAASUVORK5CYII=",8:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAACXBIWXMAAAsTAAALEwEAmpwYAAAENElEQVRYhe1ZXWgcVRg9Z2ay2/zUvkSwfwnJSuiDDyoBi6ZmExuoNC+CodD4JLXB2rjN1jbagmExCpIwmzQqpOIPCAr+IBoLhSzNtokUWksfLEhrd9KWNhGNtBVCNsnOfD4ku2w2G3cmY7MGe16Wvff7zvkOc+98d+8SLrGj94o3bqmdBJpFIAQ+K7079eZXoUdm3HLbgeaWIG6qb5F8DQBIAED7H+uKLABH3HLbgeKWgMQLdsbuFVwbgOChRUMiG1zz2oR7A3nGfQP5xn0D+caqN+C6kTlFfXj0WRE5DmLTcjkEcguClmjQd2LZBrZ1/7pZU5WDqf6bBgKKP2zooiT004Gqmxni/W6Kn+PnRqH0A9jkeAnVdo9u8YeNj1VVvQowkF2BJNBGS4v5deOjBXMiropPSYAbIULbT6A2PPooYQUh1m6Cqj0ReEC8CJE9IGX55S6NnAZqe2I1isV2QBoBAosWTH6R1UBHhyjD64ydQhyBcOt/reh0LDDQ1HHJM/HAmuYzinEY4JZ7JSrA74AcU4gBD83LJwNV07lyGrrGi6cZr1IVaQTQCuJBYN5AQ9d4sanFX5oQOej2DZET5DfatOyJvO676yRt8ND6SQAXAVzc0XulN25qnwCA5tdjOxOc+hRAqdOlIoIbJMqyTAiAayArMqeevlOxKxSi5e+5+gwspZ3EYwBKc2pBJik4DzJ8MlD5fUeHNEVJUUC8b5PAAvAzgA9gSXPCNMuiwcry+WIzYmENBX2VlpLYDFi7099AoRCtOt3opCgREg12tAGAYDFIP4Dv/LrxTihECwA0gkv0AolD+JMQIxAZESo/Rtsq7tgRS2K+iX2RPlbbE2uE4KgTnkyQeKNej509FfQNaCLyMokPBfASPAuREUvBSCHN83Y2l2NxYVvqi+AHVZFXIgd8N3Llbe+7vsGcNftBNM6lIghgQIsGfScArNhPQAiqk3tNLVBbIq3lY3bSIq3lY9v7rreYCfPW3AirgTycRglZmypqf9m4k9xIa/lYas8RJRBZav2vHqx6A64PCXV6zAIXHqlFxIwGfYuOKXW6MQyixq1mSgcYXuEnIE/9m2wUqVn1SyhvBkTkqJYoLAHE1h3qUvF5MzAzO9M3eGj9pFUw1ecmPm8GPB7Pq7XvXSpRZgtb3cSv+K1EEgQ7OVvU6Tb+/72J63Rjb2YPAOauVep0Y68bbrtYViNr+lLUiZvG2yDb/zlSjv9VdHv/hZbqWQDwh40zBLYtR3MJ/tOODTz57i9rvQXez5PH2pwSgsHEGnXXyL7y28mx9O49dKBCsXvlki3P8RLyFniHFhQvMiqQbgG20pInRKQLIqPJaRINBfHEqQWmwJm5Tzj6IzBbnuO3kFD+hOAyyG+pWF8PBR6+kBFyDsDhev3a4xas50l5DsRv6QEEuiEIkDjm5MIrW97fd1Of+s4MDIEAAAAASUVORK5CYII=",9:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAABACAYAAABcIPRGAAAACXBIWXMAAAsTAAALEwEAmpwYAAAHb0lEQVRoge1ae3CUVx09534bYgQtVh0Hi4TdDdSOAWS0I3VsNgsUGEWLVmQoWobOODg6LeyG0hasMb5qB5IslHFwxMeokRbGB6W0UCXJaqdFR6dTZYQSdsOr5SEtQSiPZPMd/0gDIdlv93ss1D84f+3ee8/vd86997vf417iKqCmMTPBGN4NaAbA0QBGUjgh6t+G2No9LNTy/NcrT5UiF0sRpB/THj/yXjvXvUbQfILGsaF0SmBDeyK8FqSC5CyZgWmrM+N7DZ8hEXXLkbDxzPA3Fv5j8cd7/OZ17iUPmNF46Ebb4jYv4gGAxPx3vXnj+iC5S2Kgx+TWAqjywyVxbyyVme03d2ADNY2ZCYLmB4lhbD4Kydd0DmzAIhYUvGDdgKiOpQ5M8kMNbEDEHUFjAAClGX54wa8BoTJwDACkvzgluIg5IngMAMK7/dACGyBxImgMABB1zA8v+DUA7QkaAwBA7PVDC2zAEFuDxhBkq9ts85U/aPJemV8LeiNQEPHJ9PLw2zOF0olwF8Tv+A4gnLVgfdMvvSSPEu2J8FoJGz0TJYH2wp3Jyqzf3CUxAFI6ffAeSGtdc4SzMpjblqj6XaDUQcj5EEtlZhubj4KozlcvyCawySi0MkjP96PkBvpRs7pzsjG6g8QYACMFnCC0m8S21qXR41cr73Vcx3Vcx7WFt2VUYu2a7L0U4xKGXSVNAHBG5NZ0IvyHYg09GYg3Z1IAl/jX5Q0C6tsTkYLPWa4N1KT2jzM295C0gktzB0G2sc301rpwm1Mb189CRubb11I8ABA0on75qR8dfI+jLjeB4s3ZmyHNK500DyBGhy7kUk7VbkfgkWvd+wNB8p7a1P5peeuKkWONHVXGWHsAhEquzAuEjnIrN2H7kvEXBxYXHQEa8y283eIBgBh3wbaWDS0ugPiafVHYob34fzAAANB5o1D1wPeIwiNgW4+guPjDEHYKetOjmKMSnpH0LOD2mxAreplbPbDE0UCssaMK4IIiIraUm9y4tmRkOsGPuREi6TUb/HxNV2R0ezLymfZk9NM1XZGbAPsuQEeLWhDmTEtlbr3036lhbXP2ZwQWOStBj2VU9ael0UOXOE3ZJSQclzxJr4UMbhvIGYj4qmwlQnoR4KiCLqQdbcnoLMBhBOJr9kUJfKVgDGDPYCGyuaMgh+YbTuIBoO2ByEER9xWKAQAgZ05NZSYCDgbUG1qBInOfVOeQwjM4IMjOz9DR2q6xTxXTFjsV+b27qcj7gDwGbl97IFys9/siYEiSdEP4AsShxvrwckMDHcxdRkMDbQgvF80PLYit2z1iiIFQr70CRFlRusNXaRK7iicvBVjBXMXMKwzEmjvHQljoig4ezlcu4HEHyqT6ehW9cdbXywj8qCsNwmfNlQXueh8AaCvvMLcnIn8FtCUPY9SfR2bmFIvbfkP2CyQ+4EYDhEmXDMRXZStBuup9ALlzKPuXU6XdY74m6fWhNVwXX5V13EqKNXeOJbjOpQYAGHt5BCw9TLh7TZT0wq66Meed6tPLw8dgNA/CoB14jkJIL9amMncNnE719TKxpswXKe1y3fsAQFoEgOmpzJic2OHagK1l7XXRxmLt4o37F8lwQ75tWAnHSb3U95uTPQm/jL8bAMgJ7nsfsmXMb920baur+jnBRZJ6B9f1CeYsgLN8ioeEp3n76o4PWcbqIFHujqSn2pPRO70kmprKzpWNFrcLhDvovN1jIiZkWQ+6FQ8UXCYd0bo0stkWPwepyyvXWQd/mF4ePma8nnMIlZW/5Cdhui683dj4BBR8V1PCH9V18AeAjx0aO9f9RLw5e7OfxDuXRffZNJ+EcMQPHwAkvZJ7hzUv3RDPAYCB8FOPMaZD2lPbnNkRS2W+HFu329NOfToR7hLwN48534L2spczBx5XC+n0oRUYWXmWgJu3rz6QJDCDwgx1V5yrbcpuAdRyZvip59ycviLU43lzSHi+TGV3PvfAmCu2dC9FiTV2TjFGv4LPg0tvJfkPiE0GbNm5dOwup/Nw8abMepCL3YWUDXCNurgi3RC+MLj+im6Y/eNX33n23MXvQbo/6HcgQVkALZZCvxi8mRdvyiRANhWNIWQMtKg1Gf2LU5u84xhr7JxCow0EPuJZ+WARkA3xSdnd96eXffgkAMRS+6uNzX+CdJhHOirh++8/ff4nmxuquwvFd5yIc+t3Dzt5Q8VKgA+X5gakvTbMbelEuAsAapszKyE09I+0pF4QOyH+ZsTw8s1PL77pnJuoRa+kqanMRNvmBhK3FmtbFNJjbcnoQ/1/46uylbJULeh4hWXv275k/H+9hnS1FMzdJOv1Iwe+Kuq7AN7nNcllaG9bInqLf/5QuLqRbf4Se1uT4fU2OA7SYwIKzksnSAz74RWCpztxOhHuaktGHyIwUcJG5y8Q+UEi72toEPg67NGWiLzSnozcbcNUezEi6Qk/+QqhJGcl+rafzCJAC0l+MF8bCZnunouTX3jwljOlyNmPkh72mLtJ1snDmZki55CcIigCMEfoWdply1rrxrxaynwA8D//pOfGb1LeVgAAAABJRU5ErkJggg==",10:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFOElEQVRoge1YXWwUZRQ9ZxZpaEwoJsaoaNhuIYEor/jAzy5FA0FSBQsYhZoA4UVhdzYRJGohxuBD7RQfrGJ46IMJlMSARDAI+9OCmvhkIjFBdmpC0AewCAiVlp3jQ0vDtjOzu53RxoTzNt+9595zkvm+784QIWNpR+FZiWslLQIxEwAIXJTQK6A7b8ZOhdmPYRVqbCvMKRr4jORi/0zli9SWnmTDL2H0DcVAwrIXQzoCckZFBOkqgaaMGesN2juwgca2whzHwPcVix+BoH45zoJ8evaFIP2NIGQAKEbwSbXiAYDgQ6RxIGh/Nrf+NPVyXe0eSBtHlroevnZr9+E9Tw2WI49s2JNBBIjOslyy4XS5PC+dUy7X1e4hsBMcfZveujy9FgB2lW3ucF3Ql5DiWgBlDXjpNAi1jCtKvVZJc0ELqxHrgTKn1jC8dBoAH3VJd1lzK8rHK8nzhTizskR3nYE3cVAIcILwAxkQdCkIHwAYsEYgAyQDX0QAeoKQAxlwpENB+MNQdxB2IAN5M3ZKQGbiFZTPmg0B+KHcxMZmAFeq5Qnqdxxnc9D+gQ30bpvVR2m1oP5KOYL6DeGFoHMQEIIBAMiYsV6HegZSrlyuoKwcZ0EYkygATAmjCACMzPeJeMeFRoprISwC+MRwVBdB9EI6lAv4zo9FaAbuYmQwKzvbhIWyBpZYfXURYb2o37LJ6DGQ+lcVSUx09K2i+FiROJhPRf/0S/fdA8v3na8x5HwrqhPA0XiH3dXcrUiogu9Bc7ci8Q67C8BRUZ2Uc3b5vvM1fhxfA0OKzAc59+4zwQ1XLtkHWlsV+gzV2irjyiX7AMENo/3IeQNF42k/nr+QSI0N4EbpIlt6pvfthxTaDwFI7Jnetx9gS+kyrtdoqu1H9TVw+o2Zf0jYAGGoJEBsSlh2ZygmJCYsuxPEptJ1DAHYeDL9pO/94mkgbtk7ACBn1h8FnfUA7pQkkFvjlv1pIBMS41bfRyC3li6r6Igbc2b9UQCIt9utPgY04BagtDdu2VsBIJtq+ELAq5KKpR64JdFhWxPVn+iwLRKvjxUP8pV8OnoQABKW/TaJ3e4VNGAI/M41RhLQxwnrwssAkEvVHwLQMtYEwO0Jy26rWrxltwHcPk480DLSC/H2wi4A73lX4VmDKm4TcM01DBqQ0RVvL6wEgJwZ+xzAuy6p6UR74YOKxQ/npsf1I94Z6YFEe2Enyfe9aki4DhWTRtacfS4CrsC402bUxQMkDicse/Ew0XA/FcgdcatglhMf/7CQBrnDVRRoA0C83X4T5F6fMjcYKa7ImrPPjW7AJR2FhYbDEyAedOdoAOJxQI0g6zwK3ymC83tS0Z/dgkv3/TpPjvMjvCYA6aqIHwg+5yld+MsxtCKfjJ0B7jmF8snYGRArBd10Z3IaiDU+4gFgSgRO0rO346Q8xQMAOcNPvKCbEp6/K77EAABkU/U9hmOsknTLR6QvJDb6BJdNvK5uGY6xKpeuz9+7Pu4eyKSjWQFNXsdrBa28/ykRj0yoonCbUnMmHc2OjbleZHkzdopEE6C/q21GstYnOq3aegIGAa3JphuOu8U9b+JMMvYNxAmZCAsCBg3ppZwZ+8orx3cWypr1Jx3HeFHC7fDl+UPAIIHmjBk75pdXdizOp6NfG+R/a0IYErgum6r/slxqRXN9JhU9QTmrvW7sMCHgGsmmfCp6pJL8ij9MsumG40UZc8tnBkNRxtxMKnqi0vyqvqx6zVm/Vy+pOlTbY9J/rwfFfQOTjfsGJhv3DUw2/vcG/gEn4Sfa3kOf1wAAAABJRU5ErkJggg==",11:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAADBklEQVRoge2ZTWhTWRiGn/eYabWOXQguxqp0qoioC0EZyoCmEcQBBWdhXQwKItKuRGOXLurGYWawiX+gFcGFunEjDAXbjb8VhNGVVkRJqtafjah00dZq7udCw6QhSZPQ1FPIuzqc7/3O+Z577r3n5EaUoZZY8k9Eh6Cm1FyDccHR69GmQ+XMna1QSyyxBdEt1JAxy0tJbdeiP1/NlSTYRxnFf8ut4Wv+lAA4oTMTiv86yyLDugtUccJgvJwJDcYxTpSTm7OUSDxp+YLXo00qZbBcY5U6RqlylRx8OlQF+N6a8QAFH+LplY2a6TWyF5h6AxdcuXVg2dPJsjwCyCGjJ+WCg4VA/L6FxFYXuAfh+ODufBa/AQCJWoedj8QTh3PFvQf4X+oMxxJ7s3tnEAAInQp3PV2W2TezAEStnDuS2TejAABktGauQqiQudIHsUw1d72YM9t93iDsGGhFXqMkx6zfgaPg0Qrc7VgyeiPa1De3bvZasMcFzWJzuukNQFo97Q0jQeCik9ga0w3vAADm/Vhzq1DczBam214C9LQ3jBSKS6pLtx3Gyzy+oSmtqkIKSWozs7OIRRn9Q0Ggtu9RUEsseUfi18l8kXjSMPqn7TVZrEo9HXv5DJSiKsCUy+gv3srtSpZSVVVVTZFaYol/IvHE37li3m1k2dp4LLHJAvoAJLcl+5O/1wC/HX9S/zEVGsg45gzVus+re/cvH057/NsHMjSWCv2VdUZbPJYKTfhN7O0KhLsGm+WCO0ITLrJhgYnwzQNL+8HTFejsNOcUnM4uHkDIuYCTmAk8BbhR/2wH0pq8BmlNJD7YCh7eQq2XbdbbV8mHBb9MAAZP7MPzVd6twNtXiR2TFQ8gWE5943bvAMy0q1ivc7bTOwDgl2KNZtbsHYCk4v9Al0LeAYANFG9lwDsAC7hQrFeyi94BLBgePYdxvwjrveG69+e82wcA1see/RRS8C+wLlfcjP9SuG23Dza+8RIAYG33vR/mjczfg9kfklYCmNkjoUvDc9+dv9++7hPAF0Z96GNzO74WAAAAAElFTkSuQmCC",12:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAADiklEQVRogc1ZTU8TURQ9ZwbDD5AdSkIxLgyJ7HBHYWWiiQsxRCWRjRATv4q/wxZdCRtdFA2JCzUaXWFZqTsWxgWGIRFZGxMTUMscF7Sknc7Hm/bZ9uzmzX2957x3b++8+zhxf2tcjpYguQJzpfnMS3QxsnnvAqGCQNeBbnK84H0FcKLyvixgupTLrHSSZBSyBW+KQBFADwAI2nEguTU2PQSK2YI31RmK0QiSr6Ds+HTmAZRrBrtORBR5gredtdzgC1+6jIAISMtjC5vT7aXaiIkF71KQvKR9STPvc5lXrA5GqYzKiWx+8xyIRYoiObuaG3ybhpjJfBNOTnW0lMusCJiGYTgRfESwH8QxQYtpyJvMN11Qp3ZSKZdZMQ4n4ljN0/G0AuLmx4VNMBrqBADA2vzQ86AIki59PGlHTkwseJckPEWAPIBrpfmh5aB9gwCgcyLSkgciBADtF9EMeSBGAHAgIpjYJF1HfGyBcx2C5AGUQV6NIw8kCABiEts+EhM2DIkCgPBw+l8wCZtahK7kYZEB+62yMwBJF0BxvOAVDweF71HFLnQHDotMtyCmWBqFkAG2U88QvttwHL4D5GwKB9u+z9m0jm35YNhgKzj7YKN3z++Zo3RFxDAAUPgMcLnXLS+9u3Pyt01/VgVM3P/W7zt/3xA8HWogrVNHzq/eG9ix5dOagIOVdz9Fkq9CWu9198/Y2glbSYw9v2cukTwAkCN/5F635deaAABXTQ0lc9skWBNA4ZSxsThsy6/NHTCGAN/Wb1kTIOKLqS0pY9sk2AyhYrJVxZYw+lAzgTUBvW55CdJ6oqG0fvTH7pItv9YLmfj3NciRUIP/UMisJvHqvYGdvp+7o6RuAfoI4ReEX5I+kLrV93N31CZ5IGIHUp0HYr7V42DLR+vngVYbWy36sBVCrTa2moaN80A7EHkeCD0TV2Ktod0X0vqwDkn7cjCzdnfIqK4YhVC7yAPpm2eJArIFbyq06WQfDc0zk0uWWAFxXeJWmIah2UuWSAHN9iqbRbO92FAB7SZfRTMiGgR0inwVaUXUCYhM2LAucX2daLWxVTc/riseTOxDAWkv+WqKXauNrdD5pnd2BDofNnEYy29OOuQzBP8JK8WO2bx3gcRzGK58JxAZHcKkA+Bhw4suIg9EhxOovAOoq8lXES6CZYfkDQnfIG0BuNiN5Kso5TIrEiYFeQI2BM79A7D9dwIFdOgTAAAAAElFTkSuQmCC",13:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFwklEQVRogc1aW2xUVRRd69wBCgpF4yNoLJThEaWoSIxPmE4tCRIT8aOWD018oKBRS1tJ/Bv7D30AGirqh18W/NGACpZ2BgJUwfiggoJ9gfghJkKQvug9yw+KgfbOzJ3LTGF9Te5Za5+155y555x9hrjOUNLQfY9cd5XIJyDcBcoh2Clpt4w+SqyZ1X45n9fK6EgsbTg2od8NrQP1OkHjxZHkktx8y5neqm01RYPAdZJAWax9/N9TJ+0AUOqHL6Dl1jO9T26rKRr0zHSscTp/0nr4NA8ABEr+njqpdvjztUWk/vciWv5I0slEJ8kl7H3XfASMuDJT8wBA0hHMymuegMRoYDG5JJRFLxkhFpPZm9/5mKjZQWcygYIx/w1Ea4/PA02ZgOcJzrzKcOfGZAQidV33EyqnVA6yEMjS20PoyVkCwytquYByQnMBAMzugAtqHhWxpLb7AQu7ElAJybAAC+A4gbhr1binOnw4WcBow7GwXKec5AoA87PqdrR5K9fM+z+BSKwrz+TbehGvJF3KIQvx/Txn6O2vK+YMAEBpfUfBkIsykOUkHsyl6SvNaENrVbiCAPDw+hMT88zQTgKLfGmhXRS3gyiH9CgYbG4IsgD3QWoCuIzEMp/md9qzZnmiprCfABCt7fwQxMtBTGQMSQC+A9BkHXdbomLOHwCwsPHQuCnnbz4AYmFSKWQhbMhz3HcuzQAuXte1wDH2+6DfYgbGfwTQNBRymva+NaPLo53R+s5TAKeNbtIRALtkTWPi7cJfL28LOcauypl56ajAJhKftlaFf0tFjazvngtntHkIFzS+76HEG0X/eulCAkuz6V5CB4kmUk0tleGf/eocg2J5xYMOJTMPACECBYGcXomTALYaqml3ZfhgkACWNkrP5Y3xVLqQCAUfAfVJWhKvDO8H6fUF+gwjoq4r4uWfQDyV1BA4EbxjdsSrZu27KvMASjb03E3i9lHhgcGQO3FfKq2BtDtoxwKSrsqZwLqu55aawMFv1k47n0prALvx4oKSOQitiNZ1vBtEe0UcstjruaTWdFrTWjX7FwpbgvYMMBat62iMxFqDbQwlQoh4NgGJdHIDAH0aVwkpHsgAAICvMn/655FN7Tdmqow0dMwDcevI5wIGJ9+Qtz+d3gBAW3VBnz1rnhS0OfB0IpbxwsTEotru0YtRKgPWJDtSfrt91Z29afWXPiRqCvvjleHXDLFAwiYAhyH9A+CcoJ8k1UtYDuGPpEmADzh0D0Rrj8/zm4CA4iQtcT/6jJeA0o09d7hDQ9sBLkhBOyegLF45c2fKYBKj9V1/AbhllDHLkpbqwvQ/4rSOR6D5zel/2nF9iyV8mYI2GcAXkfqO51LFitZ23QsP8xIGeuG0+fETqKySeKPoX53teRpSYzIOgfHG4pNUr1ka75IKqba26oI+P14C14USNdGh1qrwaglrhvf4Xk4IMFZc1/nxwsZD40Y2C7Y4Sfi4Xx9XXdiKV81sAPmCgMFkHAIvTj5/846lDcemXHoWi8lIeNyLL8u0c/+y2NlBpLajlORnBPKTs/QDram2xj4DsISAx9tK/faMuSlRU9jvp9+slRYTVeFma7UIF7fWScAFMmoh+Ka3eQDiydtw3vdalNXa6J7q8GHa0CPDx8dgIGafzp+0vSzWPt4PPevF3ZbqglMDFwYXQ0q9BqQAiSWnp05c54sbtJN0KNsq5/Spzk0EVwfRS3Itzfw9lYVHU/FyVl7f9izdeGX4NUlfBdGTdIzsq+l4ub8fIIOfuckl6ShjcMGhGUGVFKan4+Q8AV5NH0Tas3buR0DoDi5NX3DIeQIimoNq6aPgkPMErMWWQKc8SXScpLvdS8h5AsMXIh9kqhP4XkvFjCPpeGNyzZpn3DUZFg2adZZr/RDHJIGvK+YMTHDcpemKBoKshE0TzNBTfnejY3/Nur7zPlAvCSgFOYvCoIgeAnFLu3nk32nS4T/XHFM8NZ16vQAAAABJRU5ErkJggg==",14:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF0klEQVRoge1aXWxURRg95+5dsNVYajA+aCDdjRqNPxgUFAltiQ+CQcVo4gOIErWCaWVbHiA+rPXBmki7FGONoICKyoOKGogvlXYxKTZq/I1GY7dBlMSgsVX5aXf3Hh+2W2537x/0UmLiebr3mzMz57Qzd2a+WSJE1HVkngHRQmCaU7mAUQKbehKxJ8Pq0wirIQAg0Ogmfqx8GoDGMPsM1QCILQJG3YoFjELYEm6XZwn1qYzs7z2J2Fnpy/QjJJMyDlRlUgIeJrk5zPHrhLpUpg1SE4GXFw3HEq2ttLz43kNI4oGqTBfIJpKVCHn8unTaSLISZFO6anBbMilPje6FEutSg1tANtiir4Ul0w0EXx1/Jlb7mXAdl/UdmXYQzaci+uKvyj/nf95wY9aJv7DrUHV0JL8M0gIQ1wO8eSJDn0D4CmSfBX6QTtQMObUz96XPohcer+4HeMN4TWF77XDNI07DydFAXSrTRmBDSThnWVyZbqnZbQ8ubh+YJ2KjyKVen9AJVoBRQPsiRNtH6+Kf2stq2wfvNwy9jpL56WaizEB9R2Y9iOdc+h43Udv542XMR14geWcQ0a5mpA8MRdfub5n1q5v4cS70fG8i3uRtIJX5GsC1Y6/fALiqpMFc4Vuuh0BWT0a8zcWfAHeAaCrvS9+CnDP2/ndPInahvWrZ5BDVKekPAW+esMz5AlYAyNkoJojm0MQDAFk9Nt8miBewYubwifkAugQdc1oEAy0utR0D9xrkWwiwboQBSXkAq3qb42/4cQNtJdLN8bddtwDCXoOaZ+YqLjCoeQD2nZZaBxDsDCK+wA2Axe0/X2oZ2a8JXjShQNjb0xxbVsqv7xjYA/LuQGqdIA3lLOu6j9dfftiPGug/YBm5F8vEA7BgtTrxKbQFadcV5AzTMAJt+nwNLG4fmEeg7K8MANls9gen+Mnc6PdBOvfBXfWdP831I/kaELHRrSwajV7pFD/PnHaVX7u+IIm84dp3EZ4GalODM0Quda1M4ymnuEUmfQUGgIhlC7sOeX6uzcIxUE0EO0u3ypTuIj23B3fUpzJ7aenp/PQT30VGKq62yCQJV9OnAwLTIqO5OwDsssftmo3CGZbnS2gpb0E3l8UcTMhgv5Gt/FsG+8MSX4Qh3lKu65Rmo7gBIzG9jCfcUFZ5iiGpTINdM0uPfv81hHuoPwf438C5xoTdZWnqo65joI90+ApMIST09TbHbrXH7PPWKCaiJIyU1Sa+OusKfUDiy9KYXbNBYBOEfwhsKqsMHpwKkV6Q1Fcas2v23E7XpgZnEPot6GE9IPbRMhvy5kkyH9lKcokbUcKIOapLujfEh904npO4kPrQpA8odlhG7rH9LbN+TT9xxS95y2rw4hLY6yUeCPAVinCSe/szhSRELN++A53I6joG3p9s+qQISR8qkn/UypJmxNgK8HZHHrSnNxG/x6+9QId0M2quyeVyC51OZacLkktomYeNiAdJGlIk3+TBGEeghay7cfYRijuDcEMB+Ur6iSt+CUQNQlq8OXOfhDcxhWkVGXgwvS6+y49bZmA8P0/unDl0PHF0RuVyFg4UUyLehpyAFRcPHd9ztKpyM6BVTvcTDkNoLD8PrP29qqLfQXwOQHshHRgSCm21oyQDSGDX71UV/STWuN1POM2B7eNPhZzkBPGWxZU9idj6SNS8BtJ7kM78PCFJ0J5I1LymJxFbb1lcWWrClhcFpB2+BmqHYuskm4kS8cX0enfj7CM9zfHliOgmCe867qVcdWMEwjuI6KbeRPye7sbZRwAg3VKz28FEsc72RcOxRGnccRInkzLSVYPbSKy2NeF5wXHbswNV2fOwjBYXAJpTuouVdJDkF5L6zFH3FTaUCw53E+jqScQed6tjx5neUtZ1ZLpIrCm+e4kHPNaB1lZatcM1j5QMp5VBREwK1APFRz/xgM9CVjQBaYtbfj5sEOwUdAxQp5/4Av8sYaouukNt9P8fe5wB/vM/9vgXLip/CHUk4csAAAAASUVORK5CYII=",15:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAD3klEQVRoge2ZQWgcVRjH//+dyW4TaiqYeEkQOhWlRz16cfegBFpPprGFtAdzsFJqNi00QltLQ5FUMJtN8FCVoI2gzV4riD1kT8VbPQhCaHYRmksaxNradHdn5u8h7u402dnskqGzK/md9n3fN+/7f7Nv3ps3j2gD4p8vnyVxAcCNnn7rVGaITtkXCVFXw5BMgnwe5AdrK7nvjizIKPvaogAQ1z2No94i6I07fG2l6y/Hjj1bddvTtU4WWUqRPFG16oeePmu4UkBiajkN4DRI1uijJZH0lVlt8n0QbSMeAAgeqxQgapLiKCCz3kVhITJCYN8m6xdtccePLMhYu5f/BsRw1aovF5PWybaYhdZW8jNe8YJmF5PWSZBqiwIEHfL8ns0mrVGQAtplHRDOQ/gN0GWv+F12CQACQHwq9zOJt8IW0wwSbmXPWG9HAKDdxANVze0xC9Uh8AIErAq64IKvmXbnXtPu3Os4fB3ARQGrQecL9L1HQqZYKozcHj/4cJPrDoA7b1z9PR2LxuYADAaVM7ACJGSyY/vfq7fI3B4/+BDSUGI6v4CAighkCAlYLZYKIw2tkKRiEXsEwv0gctcsQEBRwrhhGn2GafQJ+FhA0b8bzdQYNr78NPrK3wBmfXtrIr/fEPoke8b6zNO+Gk/lAGCyVjBd3mxQewXH5U3D0MRO89f8BxxFrm+2qcRv/cS4scfL9eVuxXae3PXzNZO/ZgGxjq37YsMwjFqxAFD6x2h6Y9S9x/+aZvLXLMC2neObbWJpi61MR3TPAT+fH+tuh+Xnaya/3zMwEU/lYJrGPAA4JfuEyMt+tywCHQbw6zaan75GeqfOJ4SG8xMAEqncjjYIAlaLxcLLjc5EA+ml7oJj3gXRu5O8i2MWA1kHCLwYi8bmIG3/LEgsOObcTsWXCfJdaDAxnV8YSC91+wUMpJe6E6l8BsS7QSUN+hvQYMEx30xM5WaJyI9O9NFSdP0FOUbhVcE9VHDxEYieIBMG/xFrY2hMCO5EpNQF21wPPIWX/8d+QMKtsIU0Sztq3qUleXrhkZiYzl2SOAxiJjtmzYSkq2Gqs5DE+HQuDfASiQMELoaoq2E2CvhPPMHTHt+NcCQ1h1lLvISMHvyRDFNYozAxtTwJctxrFPCAkhuWqPrQBjGzOGZdAQAT4KktIcA+tPZh5TkAVwAgIuj7kMU0hSBXwNflttnbb324tpJ7DuBRT9B81O1IPu5Uy52E2Ot88svZlypviAQ2TgHv38vPkzjmif10ccw6/8wVNkkEADJDdHr79x+XUBlOkvdIs3WpLGTlIiBdE/QnoekwhTXKvx//eq77xCqaAAAAAElFTkSuQmCC"};function ZW({list:e,maxValue:t,reached:n,targeted:r,type:o,chartType:i}){const s=Jc().domain([0,t]).range([0,100]),a=90;return f.jsxs(H,{style:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},children:[f.jsxs(H,{style:{flex:i==="sectors"?"0 26%":"0 22%",display:"flex",alignItems:"center",justifyContent:"flex-end",textAlign:"right",overflow:"hidden"},children:[f.jsx(me,{variant:"body2",fontWeight:400,fontSize:13,style:{color:"#444",border:"none"},children:e[o]}),i==="sectors"&&f.jsx("img",{src:r1[o],style:{width:"32px",height:"32px",marginLeft:"12px",marginRight:"0px",padding:"4px"}})]}),f.jsx(H,{style:{flex:i==="sectors"?"0 62%":"0 66%",display:"flex",flexDirection:"column",alignItems:"center"},children:[r,n].map((l,c)=>f.jsxs(H,{style:{display:"flex",flexDirection:"row",width:"100%",alignItems:"center"},"data-tooltip-id":"tooltip","data-tooltip-content":`${c?"Reached":"Targeted"}: ${xn(",.0f")(l)}`,"data-tooltip-place":"top",children:[f.jsx(H,{style:{flex:i==="sectors"?"0 8%":"0 10%",display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"baseline",marginRight:"12px"},children:f.jsx(me,{variant:"body2",fontWeight:400,style:{border:"none",display:"flex",alignItems:"center"},children:c?f.jsx(Ko,{style:{fontSize:18,marginLeft:3,color:"#777",opacity:.6}}):f.jsx(Qo,{style:{fontSize:18,marginLeft:3,color:"#777",opacity:.6}})})}),f.jsx(H,{style:{flex:i==="sectors"?"0 92%":"0 90%",marginTop:"2px",marginBottom:"2px",display:"flex",alignItems:"center",width:"100%"},children:f.jsx(H,{style:{width:s(l)+"%",minWidth:"1px",height:"18px",transitionProperty:"width",transitionDuration:"0.75s",display:"flex",alignItems:"center",backgroundColor:c?Fe.unColor:Fe.contrastColorLighter},children:f.jsxs(me,{fontSize:12,fontWeight:700,style:{position:"relative",left:s(l){const k=Object.entries(E.targeted).reduce((_,[R,T])=>(m.includes(R)&&(_+=T),_),0),P=Object.entries(E.reached).reduce((_,[R,T])=>(m.includes(R)&&(_+=T),_),0);return{type:E.type,targeted:k,reached:P}}),x=Av(y.map(E=>Math.max(E.reached,E.targeted)));function S(){if(i==="beneficiaryTypes"){const E=MF({data:d,lists:t,year:s,fund:a,allocationSource:l,allocationType:c,implementationStatus:u});Si(E,"beneficiary_types")}else if(i==="sectors"){const E=OF({data:d,lists:t,year:s,fund:a,allocationSource:l,allocationType:c,implementationStatus:u});Si(E,"sectors")}else if(i==="organizations"){const E=$F({data:d,lists:t,year:s,fund:a,allocationSource:l,allocationType:c,implementationStatus:u});Si(E,"organizations")}}function C(E){if(m.includes(E)){if(m.length===1){v(!0);return}w(m.filter(k=>k!==E))}else w([...m,E])}return f.jsxs(Va,{disableGutters:!0,style:{position:"relative"},ref:p,children:[f.jsx(nh,{openSnack:h,setOpenSnack:v,message:"At least one beneficiary must be selected"}),f.jsx(gu,{handleDownloadClick:S,clickedDownload:n,setClickedDownload:r,type:i,refElement:p,fileName:i}),f.jsxs(H,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"58px",flexDirection:"column"},mb:2,children:[f.jsx(me,{style:{fontSize:"1rem",fontWeight:500,textTransform:"uppercase"},children:o}),f.jsxs(me,{style:{fontSize:"0.8rem",display:"flex",alignItems:"center"},children:["(",f.jsx(Qo,{style:{fontSize:18,marginLeft:3,marginRight:3,color:"#777",opacity:.6}}),f.jsxs("span",{style:{color:Fe.contrastColorDarker},children:[" ","targeted,"," "]}),f.jsx(Ko,{style:{fontSize:18,marginLeft:3,marginRight:3,color:"#777",opacity:.6}}),f.jsx("span",{style:{color:Fe.unColor},children:" reached)"})]})]}),f.jsx(H,{display:"flex",flexDirection:"row",mt:2,mb:2,alignItems:"center",justifyContent:"center",children:f.jsx(uR,{row:!0,children:s2.map((E,k)=>f.jsx(dR,{control:f.jsx(th,{checked:m.includes(E),onChange:()=>C(E),name:E,color:"primary"}),label:f.jsx(me,{style:{fontSize:"0.9em",fontWeight:500},sx:{marginLeft:-.5},children:vr(E)})},k))})}),f.jsxs(H,{display:"flex",flexDirection:"column",width:"95%",marginLeft:"3%",alignItems:"center",gap:2,marginTop:2,children:[f.jsx(H,{mb:-2,style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end",textAlign:"right",width:"100%"},children:f.jsxs(me,{variant:"body2",fontSize:12,style:{color:"#222",border:"none",fontStyle:"italic",letterSpacing:"-0.05em"},children:["Reached as %",f.jsx("br",{}),"of targeted"]})}),y.map(E=>f.jsx(ZW,{type:E.type,targeted:E.targeted,reached:E.reached,maxValue:x,list:t[g],chartType:i},E.type))]})]})}const wm=ft.memo(YW);function XW({maxValue:e,reached:t,targeted:n,type:r}){const o=Jc().domain([0,e]).range([0,100]),i=90;return f.jsxs(H,{style:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},children:[f.jsx(H,{style:{flex:"0 22%",display:"flex",alignItems:"center",justifyContent:"flex-end",textAlign:"right",overflow:"hidden"},children:f.jsx(me,{variant:"body2",fontWeight:400,fontSize:13,style:{color:"#444",border:"none"},children:vr(r)})}),f.jsx(H,{style:{flex:"0 66%",display:"flex",flexDirection:"column",alignItems:"center"},children:[n,t].map((s,a)=>f.jsxs(H,{style:{display:"flex",flexDirection:"row",width:"100%",alignItems:"center"},"data-tooltip-id":"tooltip","data-tooltip-content":`${a?"Reached":"Targeted"}: ${xn(",.0f")(s)}`,"data-tooltip-place":"top",children:[f.jsx(H,{style:{flex:"0 10%",display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"baseline",marginRight:"12px"},children:f.jsx(me,{variant:"body2",fontWeight:400,style:{border:"none",display:"flex",alignItems:"center"},children:a?f.jsx(Ko,{style:{fontSize:18,marginLeft:3,color:"#777",opacity:.6}}):f.jsx(Qo,{style:{fontSize:18,marginLeft:3,color:"#777",opacity:.6}})})}),f.jsx(H,{style:{flex:"0 90%",marginTop:"2px",marginBottom:"2px",display:"flex",alignItems:"center",width:"100%"},children:f.jsx(H,{style:{width:o(s)+"%",minWidth:"1px",height:"18px",transitionProperty:"width",transitionDuration:"0.75s",display:"flex",alignItems:"center",backgroundColor:a?Fe.unColor:Fe.contrastColorLighter},children:f.jsxs(me,{fontSize:12,fontWeight:700,style:{position:"relative",left:o(s)f.jsx(XW,{type:h,targeted:e[`targeted${vr(h)}`],reached:e[`reached${vr(h)}`],maxValue:d},h))]}),f.jsx(H,{width:"100%",display:"flex",justifyContent:"center",mt:5,children:f.jsxs(me,{variant:"caption",sx:{lineHeight:1.2,width:"80%",fontStyle:"italic"},children:["The data on people with disabilities reached, as reported in the latest programmatic reports, was identified from"," ",xn(".1~%")(e.reportsWithData/e.totalReports)," ","of the projects."]})})]})}const tV=ft.memo(eV),a2=Math.PI/2;function nV(e,t){const n=e/2,r=aA(),o=t.startAngle-a2;let i=t.endAngle-a2;return o===i&&(i+=1e-5),r.moveTo(n,n),r.arc(n,n,n,o,i,!1),r.closePath(),r.toString()}const rV=({diameter:e,GBVArc:t,GBVColor:n,zIndex:r})=>{const o=iE({to:{clipPath:`path("${t}")`},config:{duration:750}});return f.jsx(aE.div,{style:{width:`${e}px`,height:`${e}px`,zIndex:r,backgroundColor:n,...o}})},oV=v5().value(e=>e.value).sort(e=>e.type==="GBV"?-1:1);function iV({totalSlice:e,totalColor:t,GBVSlice:n,GBVColor:r}){const o=b.useRef(null),[i,s]=b.useState(0),[a,l]=b.useState(0);b.useEffect(()=>{o.current&&(s(o.current.offsetWidth),l(o.current.offsetHeight))},[]);const c=Math.min(i,a),u=[e,n].map((v,m)=>({value:v,type:m?"GBV":"total"})),p=oV(u).find(v=>v.data.type==="GBV"),h=nV(c,p);return f.jsxs(H,{width:"100%",height:"100%",ref:o,display:"flex",justifyContent:"center",alignItems:"center",position:"relative",children:[f.jsx(H,{width:`${c}px`,height:`${c}px`,borderRadius:"50%",position:"absolute",zIndex:10,style:{backgroundColor:t}}),f.jsx(rV,{diameter:c,GBVArc:h,GBVColor:r,zIndex:50}),f.jsx(H,{width:`${c/2}px`,height:`${c/2}px`,borderRadius:"50%",position:"absolute",zIndex:100,style:{backgroundColor:"#fff"},display:"flex",justifyContent:"center",alignItems:"center",children:f.jsxs(me,{style:{fontSize:"0.9em",fontWeight:"bold"},children:[f.jsx(Ot,{number:~~(n*1e3/e)/10,type:"decimal"}),"%"]})})]})}function sV({dataGBV:e,clickedDownload:t,setClickedDownload:n,year:r,fund:o,allocationSource:i,allocationType:s,implementationStatus:a}){const{data:l,lists:c}=b.useContext(Ho),u=b.useRef(null);function d(){const p=jF({data:l,lists:c,year:r,fund:o,allocationSource:i,allocationType:s,implementationStatus:a});Si(p,"GBV_marker")}return f.jsxs(Va,{disableGutters:!0,style:{position:"relative"},ref:u,children:[f.jsx(gu,{handleDownloadClick:d,clickedDownload:t,setClickedDownload:n,type:"gbv",refElement:u,fileName:"Gender_Based_Violence"}),f.jsxs(H,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"58px",flexDirection:"row"},mb:1,children:[f.jsx(me,{style:{fontSize:"1rem",fontWeight:500,textTransform:"uppercase"},children:"GBV"}),f.jsx(Ha,{"data-tooltip-id":"tooltip","data-tooltip-content":"Gender-Based Violence","data-tooltip-place":"top",style:{color:"#666",fontSize:"14px",marginLeft:"0.1em",marginTop:"-0.6em"}}),f.jsxs(me,{style:{fontSize:"1rem",fontWeight:500,textTransform:"uppercase",whiteSpace:"pre"},children:[" ","Budget, Targeted and Reached People"]})]}),f.jsxs(H,{display:"flex",flexDirection:"row",alignItems:"center",gap:1,width:"100%",style:{aspectRatio:"4/3"},children:[f.jsxs(l2,{children:[f.jsx(td,{title:"GBV Planned Budget",totalSlice:e.allocations,totalColor:Fe.contrastColorLighter,GBVSlice:e.allocationsGBVPlanned,GBVColor:Fe.contrastColorDarker,CaptionIcon:f.jsx(me,{variant:"caption",children:"$"}),noData:e.allocationsGBVPlanned===0}),f.jsx(td,{title:"GBV Reached Budget",totalSlice:e.allocations,totalColor:Fe.unColorLighter,GBVSlice:e.allocationsGBVReached,GBVColor:Fe.unColorDarker,CaptionIcon:f.jsx(me,{variant:"caption",children:"$"}),noData:e.allocationsGBVReached===0})]}),f.jsxs(l2,{children:[f.jsx(td,{title:"GBV Targeted People",totalSlice:e.targeted,totalColor:Fe.contrastColorLighter,GBVSlice:e.targetedGBV,GBVColor:Fe.contrastColorDarker,CaptionIcon:f.jsx(Qo,{style:{fontSize:18,marginLeft:3,marginRight:3,color:"#777",opacity:.6}}),noData:e.targetedGBV===0}),f.jsx(td,{title:"GBV Reached People",totalSlice:e.reached,totalColor:Fe.unColorLighter,GBVSlice:e.reachedGBV,GBVColor:Fe.unColorDarker,CaptionIcon:f.jsx(Ko,{style:{fontSize:18,marginLeft:3,marginRight:3,color:"#777",opacity:.6}}),noData:e.reachedGBV===0})]})]}),f.jsx(H,{width:"100%",display:"flex",justifyContent:"center",mt:3,children:f.jsxs(me,{variant:"caption",sx:{lineHeight:1.2,width:"80%",fontStyle:"italic"},children:["The data on GBV reached, as reported only in the final reports was identified from"," ",xn(".1~%")(e.reportsWithData/e.totalReports)," ","of the projects. Possible many project(s) have not reached the due date of final reports based on the selected filters."]})})]})}function l2({children:e}){return f.jsxs(H,{display:"flex",flex:"0 50%",height:"100%",gap:3,flexDirection:"column",children:[e[0],e[1]]})}function td({title:e,totalSlice:t,totalColor:n,GBVSlice:r,GBVColor:o,CaptionIcon:i,noData:s=!1}){return f.jsxs(H,{display:"flex",flex:"0 50%",flexDirection:"column",alignItems:"center",justifyContent:"center","data-tooltip-id":"tooltip","data-tooltip-html":`
${e}: ${e.toLowerCase().includes("budget")?"$":""}${xn(",.0f")(r)}
(${~~(r*1e4/t)/100}% of ${e.toLowerCase().includes("budget")?"$":""}${xn(",.0f")(t)})
`,"data-tooltip-place":"top",children:[f.jsx(me,{mb:.5,variant:"subtitle1",children:e}),f.jsx(H,{display:"flex",width:"100%",height:"100%",children:s?f.jsx(aV,{}):f.jsx(iV,{totalSlice:t,totalColor:n,GBVSlice:r,GBVColor:o})}),f.jsx(H,{display:"flex",width:"100%",flexDirection:"row",alignItems:"center",justifyContent:"center",mt:1,children:!s&&f.jsxs(me,{variant:"caption",style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[i,f.jsx(Ot,{number:parseFloat(At(r)),type:"decimal"}),isNaN(+At(r).slice(-1))?At(r).slice(-1):""]})})]})}function aV(){return f.jsx(H,{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:f.jsx(H,{width:"50%",children:f.jsx(me,{variant:"body2",textAlign:"center",children:"Data not yet available; report due dates have not been reached or the selected year(s) do not have GBV data."})})})}const lV=ft.memo(sV);function cV({dataSummary:e,dataPictogram:t,dataBeneficiaryByType:n,dataSector:r,dataOrganization:o,dataDisability:i,dataGBV:s,setClickedDownload:a,clickedDownload:l,lists:c,refIds:u,summaryRef:d,pictogramRef:p,beneficiaryTypesRef:h,sectorsRef:v,organizationsRef:m,disabilityRef:w,gbvRef:g,year:y,fund:x,allocationSource:S,allocationType:C,implementationsStatus:E}){return f.jsx(Ke,{container:!0,spacing:2,children:f.jsxs(kr,{elevation:0,style:{width:"100%",padding:"1em",backgroundColor:"#f5f8ff",borderRadius:"8px",position:"relative"},children:[f.jsx(H,{style:{width:"100%",height:"100%",overflow:"hidden",position:"absolute",borderRadius:"8px",boxSizing:"border-box",top:"0px",left:"0px",pointerEvents:"none"},children:f.jsx(sR,{})}),f.jsxs(Ke,{container:!0,direction:"row",spacing:1,xs:12,flexWrap:"nowrap",mt:3,mb:3,children:[f.jsx(Ke,{xs:6,ref:d,id:u.summaryRefId,children:f.jsx(zW,{dataSummary:e,clickedDownload:l,setClickedDownload:a,year:y,fund:x,allocationSource:S,allocationType:C,implementationStatus:E})}),f.jsx(so,{orientation:"vertical",flexItem:!0,style:{borderLeft:"3px dotted #ccc",borderRight:"none"}}),f.jsx(Ke,{xs:6,ref:p,id:u.pictogramRefId,children:f.jsx(KW,{dataPictogram:t,clickedDownload:l,setClickedDownload:a,year:y,fund:x,allocationSource:S,allocationType:C,implementationStatus:E})})]}),f.jsx(so,{orientation:"horizontal",flexItem:!0,style:{borderTop:"3px dotted #ccc",borderBottom:"none",width:"96%",marginLeft:"2%"}}),f.jsxs(Ke,{container:!0,direction:"row",spacing:1,xs:12,flexWrap:"nowrap",mt:3,mb:3,children:[f.jsx(Ke,{xs:6,ref:h,id:u.beneficiaryTypesRefId,children:f.jsx(wm,{originalData:n,lists:c,clickedDownload:l,setClickedDownload:a,title:"People targeted and reached by type",chartType:"beneficiaryTypes",year:y,fund:x,allocationSource:S,allocationType:C,implementationStatus:E})}),f.jsx(so,{orientation:"vertical",flexItem:!0,style:{borderLeft:"3px dotted #ccc",borderRight:"none"}}),f.jsx(Ke,{xs:6,ref:m,id:u.organizationsRefId,children:f.jsx(wm,{originalData:o,lists:c,clickedDownload:l,setClickedDownload:a,title:"People targeted and reached by organization",chartType:"organizations",year:y,fund:x,allocationSource:S,allocationType:C,implementationStatus:E})})]}),f.jsx(so,{orientation:"horizontal",flexItem:!0,style:{borderTop:"3px dotted #ccc",borderBottom:"none",width:"96%",marginLeft:"2%"}}),f.jsx(Ke,{container:!0,direction:"row",justifyContent:"center",spacing:1,xs:12,flexWrap:"nowrap",mt:3,mb:3,children:f.jsx(Ke,{xs:8,ref:v,id:u.sectorsRefId,children:f.jsx(H,{display:"flex",alignItems:"center",justifyContent:"center",children:f.jsx(wm,{originalData:r,lists:c,clickedDownload:l,setClickedDownload:a,title:"People targeted and reached by sector",chartType:"sectors",year:y,fund:x,allocationSource:S,allocationType:C,implementationStatus:E})})})}),f.jsx(so,{orientation:"horizontal",flexItem:!0,style:{borderTop:"3px dotted #ccc",borderBottom:"none",width:"96%",marginLeft:"2%"}}),f.jsxs(Ke,{container:!0,direction:"row",spacing:1,xs:12,flexWrap:"nowrap",mt:3,mb:3,children:[f.jsx(Ke,{xs:6,ref:w,id:u.disabilityRefId,children:f.jsx(tV,{dataDisability:i,clickedDownload:l,setClickedDownload:a,year:y,fund:x,allocationSource:S,allocationType:C,implementationStatus:E})}),f.jsx(so,{orientation:"vertical",flexItem:!0,style:{borderLeft:"3px dotted #ccc",borderRight:"none"}}),f.jsx(Ke,{xs:6,ref:g,id:u.gbvRefId,children:f.jsx(lV,{dataGBV:s,clickedDownload:l,setClickedDownload:a,year:y,fund:x,allocationSource:S,allocationType:C,implementationStatus:E})})]})]})})}const{beneficiariesSplitOrder:uV,beneficiaryCategories:nd}=Cn;function dV({data:e,year:t,fund:n,allocationSource:r,allocationType:o,implementationStatus:i,lists:s}){const a=[],l=[],c=[];return uV.forEach(u=>{const d=nd.reduce((v,m)=>(v[m]=0,v),{}),p=nd.reduce((v,m)=>(v[m]=0,v),{}),h={type:u,targeted:d,reached:p};a.push(h)}),e.forEach(u=>{const d=Qr(u,s);if(i.includes(d)&&t.includes(u.year)&&n.includes(u.fund)&&r.includes(u.allocationSource)&&o.includes(u.allocationType)){for(const h in u.reachedByBeneficiaryType){const v=a.find(m=>m.type===parseInt(h));v&&nd.forEach(m=>{v.reached[m]+=u.reachedByBeneficiaryType[+h][m]})}for(const h in u.targetedByBeneficiaryType){const v=a.find(m=>m.type===parseInt(h));v&&nd.forEach(m=>{v.targeted[m]+=u.targetedByBeneficiaryType[+h][m]})}const p=l.find(h=>h.type===u.organizationType);if(p){for(const h in u.reached)p.reached[h]+=u.reached[h];for(const h in u.targeted)p.targeted[h]+=u.targeted[h]}else{const h=u.organizationType,v=Object.entries(u.targeted).reduce((g,[y,x])=>(g[y]=x,g),{}),m=Object.entries(u.reached).reduce((g,[y,x])=>(g[y]=x,g),{}),w={type:h,targeted:v,reached:m};l.push(w)}u.sectorData.forEach(h=>{const v=c.find(m=>m.type===h.sectorId);if(v){for(const m in h.reached)v.reached[m]+=h.reached[m];for(const m in h.targeted)v.targeted[m]+=h.targeted[m]}else{const m=h.sectorId,w=Object.entries(h.targeted).reduce((x,[S,C])=>(x[S]=C,x),{}),g=Object.entries(h.reached).reduce((x,[S,C])=>(x[S]=C,x),{}),y={type:m,targeted:w,reached:g};c.push(y)}})}}),a.sort((u,d)=>Mr(Object.values(d.reached))-Mr(Object.values(u.reached))),l.sort((u,d)=>Mr(Object.values(d.reached))-Mr(Object.values(u.reached))),c.sort((u,d)=>Mr(Object.values(d.reached))-Mr(Object.values(u.reached))),{dataBeneficiaryByType:a,dataOrganization:l,dataSector:c}}function fV(e){return be("MuiStepper",e)}Se("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const vu=b.createContext({}),ph=b.createContext({});function pV(e){return be("MuiStepConnector",e)}Se("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const hV=["className"],mV=e=>{const{classes:t,orientation:n,alternativeLabel:r,active:o,completed:i,disabled:s}=e,a={root:["root",n,r&&"alternativeLabel",o&&"active",i&&"completed",s&&"disabled"],line:["line",`line${U(n)}`]};return we(a,pV,t)},gV=V("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>A({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),vV=V("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${U(n.orientation)}`]]}})(({ownerState:e,theme:t})=>{const n=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return A({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:n},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),yV=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiStepConnector"}),{className:o}=r,i=G(r,hV),{alternativeLabel:s,orientation:a="horizontal"}=b.useContext(vu),{active:l,disabled:c,completed:u}=b.useContext(ph),d=A({},r,{alternativeLabel:s,orientation:a,active:l,completed:u,disabled:c}),p=mV(d);return f.jsx(gV,A({className:Z(p.root,o),ref:n,ownerState:d},i,{children:f.jsx(vV,{className:p.line,ownerState:d})}))}),xV=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],bV=e=>{const{orientation:t,nonLinear:n,alternativeLabel:r,classes:o}=e;return we({root:["root",t,n&&"nonLinear",r&&"alternativeLabel"]},fV,o)},wV=V("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.nonLinear&&t.nonLinear]}})(({ownerState:e})=>A({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),SV=f.jsx(yV,{}),CV=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiStepper"}),{activeStep:o=0,alternativeLabel:i=!1,children:s,className:a,component:l="div",connector:c=SV,nonLinear:u=!1,orientation:d="horizontal"}=r,p=G(r,xV),h=A({},r,{nonLinear:u,alternativeLabel:i,orientation:d,component:l}),v=bV(h),m=b.Children.toArray(s).filter(Boolean),w=m.map((y,x)=>b.cloneElement(y,A({index:x,last:x+1===m.length},y.props))),g=b.useMemo(()=>({activeStep:o,alternativeLabel:i,connector:c,nonLinear:u,orientation:d}),[o,i,c,u,d]);return f.jsx(vu.Provider,{value:g,children:f.jsx(wV,A({as:l,ownerState:h,className:Z(v.root,a),ref:n},p,{children:w}))})});function AV(e){return be("MuiStep",e)}Se("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const kV=["active","children","className","component","completed","disabled","expanded","index","last"],RV=e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:o}=e;return we({root:["root",n,r&&"alternativeLabel",o&&"completed"]},AV,t)},EV=V("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>A({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),TV=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiStep"}),{active:o,children:i,className:s,component:a="div",completed:l,disabled:c,expanded:u=!1,index:d,last:p}=r,h=G(r,kV),{activeStep:v,connector:m,alternativeLabel:w,orientation:g,nonLinear:y}=b.useContext(vu);let[x=!1,S=!1,C=!1]=[o,l,c];v===d?x=o!==void 0?o:!0:!y&&v>d?S=l!==void 0?l:!0:!y&&v({index:d,last:p,expanded:u,icon:d+1,active:x,completed:S,disabled:C}),[d,p,u,x,S,C]),k=A({},r,{active:x,orientation:g,alternativeLabel:w,completed:S,disabled:C,expanded:u,component:a}),P=RV(k),_=f.jsxs(EV,A({as:a,className:Z(P.root,s),ref:n,ownerState:k},h,{children:[m&&w&&d!==0?m:null,i]}));return f.jsx(ph.Provider,{value:E,children:m&&!w&&d!==0?f.jsxs(b.Fragment,{children:[m,_]}):_})}),PV=Fn(f.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),IV=Fn(f.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function _V(e){return be("MuiStepIcon",e)}const Sm=Se("MuiStepIcon",["root","active","completed","error","text"]);var c2;const jV=["active","className","completed","error","icon"],MV=e=>{const{classes:t,active:n,completed:r,error:o}=e;return we({root:["root",n&&"active",r&&"completed",o&&"error"],text:["text"]},_V,t)},Cm=V(yo,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${Sm.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${Sm.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${Sm.error}`]:{color:(e.vars||e).palette.error.main}})),OV=V("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),$V=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiStepIcon"}),{active:o=!1,className:i,completed:s=!1,error:a=!1,icon:l}=r,c=G(r,jV),u=A({},r,{active:o,completed:s,error:a}),d=MV(u);if(typeof l=="number"||typeof l=="string"){const p=Z(i,d.root);return a?f.jsx(Cm,A({as:IV,className:p,ref:n,ownerState:u},c)):s?f.jsx(Cm,A({as:PV,className:p,ref:n,ownerState:u},c)):f.jsxs(Cm,A({className:p,ref:n,ownerState:u},c,{children:[c2||(c2=f.jsx("circle",{cx:"12",cy:"12",r:"12"})),f.jsx(OV,{className:d.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:l})]}))}return l});function LV(e){return be("MuiStepLabel",e)}const di=Se("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),NV=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],DV=e=>{const{classes:t,orientation:n,active:r,completed:o,error:i,disabled:s,alternativeLabel:a}=e;return we({root:["root",n,i&&"error",s&&"disabled",a&&"alternativeLabel"],label:["label",r&&"active",o&&"completed",i&&"error",s&&"disabled",a&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",o&&"completed",i&&"error",s&&"disabled",a&&"alternativeLabel"],labelContainer:["labelContainer",a&&"alternativeLabel"]},LV,t)},zV=V("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})(({ownerState:e})=>A({display:"flex",alignItems:"center",[`&.${di.alternativeLabel}`]:{flexDirection:"column"},[`&.${di.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),BV=V("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>A({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${di.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${di.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${di.alternativeLabel}`]:{marginTop:16},[`&.${di.error}`]:{color:(e.vars||e).palette.error.main}})),FV=V("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${di.alternativeLabel}`]:{paddingRight:0}})),WV=V("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${di.alternativeLabel}`]:{textAlign:"center"}})),yE=b.forwardRef(function(t,n){var r;const o=Ce({props:t,name:"MuiStepLabel"}),{children:i,className:s,componentsProps:a={},error:l=!1,icon:c,optional:u,slotProps:d={},StepIconComponent:p,StepIconProps:h}=o,v=G(o,NV),{alternativeLabel:m,orientation:w}=b.useContext(vu),{active:g,disabled:y,completed:x,icon:S}=b.useContext(ph),C=c||S;let E=p;C&&!E&&(E=$V);const k=A({},o,{active:g,alternativeLabel:m,completed:x,disabled:y,error:l,orientation:w}),P=DV(k),_=(r=d.label)!=null?r:a.label;return f.jsxs(zV,A({className:Z(P.root,s),ref:n,ownerState:k},v,{children:[C||E?f.jsx(FV,{className:P.iconContainer,ownerState:k,children:f.jsx(E,A({completed:x,active:g,error:l,icon:C},h))}):null,f.jsxs(WV,{className:P.labelContainer,ownerState:k,children:[i?f.jsx(BV,A({ownerState:k},_,{className:Z(P.label,_==null?void 0:_.className),children:i})):null,u]})]}))});yE.muiName="StepLabel";function VV(e){return be("MuiStepButton",e)}const u2=Se("MuiStepButton",["root","horizontal","vertical","touchRipple"]),UV=["children","className","icon","optional"],HV=e=>{const{classes:t,orientation:n}=e;return we({root:["root",n],touchRipple:["touchRipple"]},VV,t)},GV=V(Bo,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${u2.touchRipple}`]:t.touchRipple},t.root,t[n.orientation]]}})(({ownerState:e})=>A({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},e.orientation==="vertical"&&{justifyContent:"flex-start",padding:"8px",margin:"-8px"},{[`& .${u2.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"}})),qV=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiStepButton"}),{children:o,className:i,icon:s,optional:a}=r,l=G(r,UV),{disabled:c,active:u}=b.useContext(ph),{orientation:d}=b.useContext(vu),p=A({},r,{orientation:d}),h=HV(p),v={icon:s,optional:a},m=ca(o,["StepLabel"])?b.cloneElement(o,v):f.jsx(yE,A({},v,{children:o}));return f.jsx(GV,A({focusRipple:!0,disabled:c,TouchRippleProps:{className:h.touchRipple},className:Z(h.root,i),ref:n,ownerState:p,"aria-current":u?"step":void 0},l,{children:m}))});var o1={},QV=hn;Object.defineProperty(o1,"__esModule",{value:!0});var xE=o1.default=void 0,KV=QV(Wn()),ZV=f;xE=o1.default=(0,KV.default)((0,ZV.jsx)("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"}),"KeyboardArrowLeft");var i1={},YV=hn;Object.defineProperty(i1,"__esModule",{value:!0});var bE=i1.default=void 0,XV=YV(Wn()),JV=f;bE=i1.default=(0,XV.default)((0,JV.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"}),"KeyboardArrowRight");function eU(e){return be("MuiSwitch",e)}const mn=Se("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),tU=["className","color","edge","size","sx"],nU=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:s}=e,a={root:["root",n&&`edge${U(n)}`,`size${U(r)}`],switchBase:["switchBase",`color${U(o)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=we(a,eU,t);return A({},t,l)},rU=V("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${U(n.edge)}`],t[`size${U(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${mn.thumb}`]:{width:16,height:16},[`& .${mn.switchBase}`]:{padding:4,[`&.${mn.checked}`]:{transform:"translateX(16px)"}}}}]}),oU=V(nR,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${mn.input}`]:t.input},n.color!=="default"&&t[`color${U(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${mn.checked}`]:{transform:"translateX(20px)"},[`&.${mn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${mn.checked} + .${mn.track}`]:{opacity:.5},[`&.${mn.disabled} + .${mn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${mn.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ye(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${mn.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ye(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${mn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?_c(e.palette[t].main,.62):Ic(e.palette[t].main,.55)}`}},[`&.${mn.checked} + .${mn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),iU=V("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),sU=V("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),aU=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:s=!1,size:a="medium",sx:l}=r,c=G(r,tU),u=A({},r,{color:i,edge:s,size:a}),d=nU(u),p=f.jsx(sU,{className:d.thumb,ownerState:u});return f.jsxs(rU,{className:Z(d.root,o),sx:l,ownerState:u,children:[f.jsx(oU,A({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:u},c,{classes:A({},d,{root:d.switchBase})})),f.jsx(iU,{className:d.track,ownerState:u})]})}),wE=b.createContext();function lU(e){return be("MuiTable",e)}Se("MuiTable",["root","stickyHeader"]);const cU=["className","component","padding","size","stickyHeader"],uU=e=>{const{classes:t,stickyHeader:n}=e;return we({root:["root",n&&"stickyHeader"]},lU,t)},dU=V("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>A({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":A({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),d2="table",fU=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiTable"}),{className:o,component:i=d2,padding:s="normal",size:a="medium",stickyHeader:l=!1}=r,c=G(r,cU),u=A({},r,{component:i,padding:s,size:a,stickyHeader:l}),d=uU(u),p=b.useMemo(()=>({padding:s,size:a,stickyHeader:l}),[s,a,l]);return f.jsx(wE.Provider,{value:p,children:f.jsx(dU,A({as:i,role:i===d2?null:"table",ref:n,className:Z(d.root,o),ownerState:u},c))})});function pU(e){return be("MuiTableContainer",e)}Se("MuiTableContainer",["root"]);const hU=["className","component"],mU=e=>{const{classes:t}=e;return we({root:["root"]},pU,t)},gU=V("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),vU=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiTableContainer"}),{className:o,component:i="div"}=r,s=G(r,hU),a=A({},r,{component:i}),l=mU(a);return f.jsx(gU,A({ref:n,as:i,className:Z(l.root,o),ownerState:a},s))}),hh=b.createContext();function yU(e){return be("MuiTableCell",e)}const xU=Se("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),bU=["align","className","component","padding","scope","size","sortDirection","variant"],wU=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:s}=e,a={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${U(r)}`,o!=="normal"&&`padding${U(o)}`,`size${U(i)}`]};return we(a,yU,t)},SU=V("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${U(n.size)}`],n.padding!=="normal"&&t[`padding${U(n.padding)}`],n.align!=="inherit"&&t[`align${U(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>A({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?_c(Ye(e.palette.divider,1),.88):Ic(Ye(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${xU.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Gc=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:s,padding:a,scope:l,size:c,sortDirection:u,variant:d}=r,p=G(r,bU),h=b.useContext(wE),v=b.useContext(hh),m=v&&v.variant==="head";let w;s?w=s:w=m?"th":"td";let g=l;w==="td"?g=void 0:!g&&m&&(g="col");const y=d||v&&v.variant,x=A({},r,{align:o,component:w,padding:a||(h&&h.padding?h.padding:"normal"),size:c||(h&&h.size?h.size:"medium"),sortDirection:u,stickyHeader:y==="head"&&h&&h.stickyHeader,variant:y}),S=wU(x);let C=null;return u&&(C=u==="asc"?"ascending":"descending"),f.jsx(SU,A({as:w,ref:n,className:Z(S.root,i),"aria-sort":C,scope:g,ownerState:x},p))}),CU=Fn(f.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function AU(e){return be("MuiTableSortLabel",e)}const Am=Se("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),kU=["active","children","className","direction","hideSortIcon","IconComponent"],RU=e=>{const{classes:t,direction:n,active:r}=e,o={root:["root",r&&"active"],icon:["icon",`iconDirection${U(n)}`]};return we(o,AU,t)},EU=V(Bo,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${Am.icon}`]:{opacity:.5}},[`&.${Am.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${Am.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),TU=V("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${U(n.direction)}`]]}})(({theme:e,ownerState:t})=>A({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),PU=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiTableSortLabel"}),{active:o=!1,children:i,className:s,direction:a="asc",hideSortIcon:l=!1,IconComponent:c=CU}=r,u=G(r,kU),d=A({},r,{active:o,direction:a,hideSortIcon:l,IconComponent:c}),p=RU(d);return f.jsxs(EU,A({className:Z(p.root,s),component:"span",disableRipple:!0,ownerState:d,ref:n},u,{children:[i,l&&!o?null:f.jsx(TU,{as:c,className:Z(p.icon),ownerState:d})]}))});function IU(e){return be("MuiTableHead",e)}Se("MuiTableHead",["root"]);const _U=["className","component"],jU=e=>{const{classes:t}=e;return we({root:["root"]},IU,t)},MU=V("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),OU={variant:"head"},f2="thead",$U=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiTableHead"}),{className:o,component:i=f2}=r,s=G(r,_U),a=A({},r,{component:i}),l=jU(a);return f.jsx(hh.Provider,{value:OU,children:f.jsx(MU,A({as:i,className:Z(l.root,o),ref:n,role:i===f2?null:"rowgroup",ownerState:a},s))})});function LU(e){return be("MuiTableRow",e)}const p2=Se("MuiTableRow",["root","selected","hover","head","footer"]),NU=["className","component","hover","selected"],DU=e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return we({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},LU,t)},zU=V("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${p2.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${p2.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ye(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ye(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),h2="tr",SE=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiTableRow"}),{className:o,component:i=h2,hover:s=!1,selected:a=!1}=r,l=G(r,NU),c=b.useContext(hh),u=A({},r,{component:i,hover:s,selected:a,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),d=DU(u);return f.jsx(zU,A({as:i,ref:n,className:Z(d.root,o),role:i===h2?null:"row",ownerState:u},l))});function BU(e){return be("MuiTableBody",e)}Se("MuiTableBody",["root"]);const FU=["className","component"],WU=e=>{const{classes:t}=e;return we({root:["root"]},BU,t)},VU=V("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),UU={variant:"body"},m2="tbody",HU=b.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiTableBody"}),{className:o,component:i=m2}=r,s=G(r,FU),a=A({},r,{component:i}),l=WU(a);return f.jsx(hh.Provider,{value:UU,children:f.jsx(VU,A({className:Z(l.root,o),as:i,ref:n,role:i===m2?null:"rowgroup",ownerState:a},s))})}),{indicatorsHeader:GU,columnWidths:qU,columnWidthsExpanded:QU}=Cn;function KU({setSortingCriterion:e,setSortingOrder:t,sortingCriterion:n,sortingOrder:r,expanded:o,showTotal:i,numberOfIndicators:s}){function a(l){n===l?t(r==="asc"?"desc":"asc"):(e(l),t(n==="indicator"?"asc":"desc"))}return f.jsx($U,{children:f.jsx(SE,{children:GU.map((l,c)=>f.jsx(Gc,{style:{cursor:"pointer",width:o&&!i?QU[c]:qU[c]},sx:{backgroundColor:"#f3f3f3"},onClick:()=>a(l),sortDirection:n===l?r:"desc",children:f.jsxs(H,{sx:{display:"flex",alignItems:"center",justifyContent:l==="reached"||l==="targeted"?o?"center":"flex-end":"flex-start"},children:[l==="targeted"&&f.jsx(Qo,{style:{fontSize:18,marginRight:4,color:"#777",opacity:.6}}),l==="reached"&&f.jsx(Ko,{style:{fontSize:18,marginRight:4,color:"#777",opacity:.6}}),f.jsx(PU,{active:n===l,direction:n===l?r:"desc",sx:{color:l==="targeted"?Fe.contrastColorDarker:l==="reached"?Fe.unColor:null},children:l==="projects"?f.jsxs(H,{style:{display:"flex",alignItems:"center"},children:["Projects",f.jsx(Ha,{"data-tooltip-id":"tooltip","data-tooltip-content":"Number of projects mapped to the indicator","data-tooltip-place":"top",style:{color:"#666",fontSize:"16px",marginLeft:"0.1em",marginTop:"-0.6em"}})]}):vr(l)+(l==="indicator"?`${s>1?"s":""} (${s})`:"")})]})},l))})})}const{indicatorsHeader:ZU,beneficiaryCategories:g2}=Cn,YU=12,T0=xn(".1~f");function XU({data:e,lists:t,showTotal:n,expanded:r}){return f.jsx(HU,{children:e.map((o,i)=>f.jsx(SE,{hover:!0,children:ZU.map((s,a)=>s==="indicator"?f.jsx(Gc,{children:t.globalIndicators[o.indicatorId]},a):s==="projects"?f.jsx(Gc,{align:"center",children:o.projects.size.toLocaleString()},a):n?f.jsx(JU,{row:o,header:s},a):f.jsx(eH,{row:o,header:s,expanded:r},a))},i))})}function JU({row:e,header:t}){const{targetedTotal:n,reachedTotal:r}=e,o=t==="targeted"?n:r;return f.jsx(Gc,{align:"right",children:e.unit==="%"?T0(o)+"%":o.toLocaleString()})}function eH({row:e,header:t,expanded:n}){const r=g2.every(i=>e[t][i]===null);let o=0;return f.jsx(Gc,{children:f.jsx(H,{style:{width:n?"100%":"90%",display:"flex",flexDirection:n?"row":"column"},children:r?f.jsx(v2,{row:e,header:t,expanded:n,category:"total"}):g2.map((i,s)=>e[t][i]===null?null:f.jsx(v2,{row:e,header:t,expanded:n,category:i,cellIndex:o++},s))})})}function v2({row:e,header:t,expanded:n,category:r,cellIndex:o}){return f.jsxs(H,{style:{width:"100%",display:"flex",flexDirection:"row",alignItems:"center",borderTop:o&&!n?"1px solid #e2e2e2":"none"},children:[f.jsxs(H,{style:{flex:"0 60%",display:"flex",justifyContent:"flex-end",alignItems:"center",paddingRight:n?"2px":"6px"},children:[f.jsx(Oc,{svgProps:{style:{width:YU,fill:t==="targeted"?Fe.contrastColor:Fe.unColor,paddingRight:"4px"}},type:r}),f.jsx(me,{variant:"body2",style:{fontSize:12,color:"#444",whiteSpace:"pre"},children:`${vr(r)}: `})]}),f.jsx(H,{style:{flex:"0 40%",display:"flex",justifyContent:n?"flex-start":"flex-end",paddingLeft:n?"2px":"6px"},children:e.unit==="%"?T0(r==="total"?e[`${t}Total`]:e[t][r])+"%":r==="total"?e[`${t}Total`].toLocaleString():e[t][r].toLocaleString()})]})}function tH({datumIndicator:e,lists:t}){const[n,r]=b.useState("indicator"),[o,i]=b.useState("asc"),[s,a]=b.useState(!1),[l,c]=b.useState(!1),u=o==="asc"?Ji:eA,d=m=>({indicator:t.globalIndicators[m.indicatorId],projects:m.projects.size,targeted:m.targetedTotal,reached:m.reachedTotal})[n],p=oP(e.sectorData,(m,w)=>u(d(m),d(w)));function h(){a(!s)}function v(){c(!l)}return f.jsxs(f.Fragment,{children:[f.jsx(Zk,{open:l,onClose:v,children:f.jsx(H,{children:f.jsx(y2,{datumIndicator:e,lists:t,sortedData:p,sortingCriterion:n,setSortingCriterion:r,sortingOrder:o,setSortingOrder:i,showTotal:s,handleSwitchChange:h,expanded:l,toggleExpanded:v})})}),f.jsx(y2,{datumIndicator:e,lists:t,sortedData:p,sortingCriterion:n,setSortingCriterion:r,sortingOrder:o,setSortingOrder:i,showTotal:s,handleSwitchChange:h,expanded:!1,toggleExpanded:v})]})}function y2({datumIndicator:e,lists:t,sortedData:n,sortingCriterion:r,setSortingCriterion:o,sortingOrder:i,setSortingOrder:s,showTotal:a,handleSwitchChange:l,expanded:c,toggleExpanded:u}){return f.jsx(kr,{elevation:0,style:{width:c?"90%":"100%",position:c?"absolute":"relative",top:c?"5%":"0",left:c?"5%":"0",padding:"1em",backgroundColor:"#f3f3f3",borderRadius:"8px",maxHeight:c?"90vh":"",overflowY:"hidden",boxSizing:"border-box"},children:f.jsxs(H,{display:"flex",mb:2,flexDirection:"column",overflow:"hidden",children:[f.jsxs(H,{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",children:[e.sector!==0&&f.jsx(H,{width:"36px",height:"36px",children:f.jsx("img",{src:r1[e.sector],width:"100%",height:"100%"})}),f.jsx(me,{variant:"h6",style:{marginLeft:e.sector!==0?"0.6em":0,fontSize:"1.4em"},children:e.sector===0?"All Sectors":t.sectors[e.sector]}),f.jsx(Fo,{onClick:u,style:{position:"absolute",right:"1em",top:"1em"},children:c?"Close":"Expand"})]}),f.jsx(H,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",mt:e.sector!==0?.5:0,children:f.jsxs(me,{variant:"body1",style:{fontSize:"1em",color:"#666"},children:["From a total of ",e.totalProjects.size," ","project",e.totalProjects.size>1&&"s"]})}),f.jsxs(H,{display:"flex",flexDirection:"row",alignItems:"center",mt:1,mb:1,children:[f.jsx(aU,{checked:a,onChange:l,color:"primary",size:"small"}),f.jsx(me,{sx:{color:a?"black":"grey",cursor:"pointer",fontSize:"0.8em"},onClick:l,children:"Show Total"})]}),f.jsx(H,{sx:{width:"100% "},children:f.jsx(vU,{sx:{maxHeight:c?"80vh":600},children:f.jsxs(fU,{size:c?"small":"medium",stickyHeader:!0,children:[f.jsx(KU,{sortingCriterion:r,setSortingCriterion:o,sortingOrder:i,setSortingOrder:s,expanded:c,showTotal:a,numberOfIndicators:e.sectorData.length}),f.jsx(XU,{data:n,lists:t,showTotal:a,expanded:c})]})})})]})})}const nH=ft.memo(tH);var CE={};function rH(e){if(e&&e.__esModule)return e;var t={};if(e!=null){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}}return t.default=e,t}var AE=rH,Ao={},km,x2;function oH(){if(x2)return km;x2=1;function e(t){return t&&t.__esModule?t:{default:t}}return km=e,km}var Rm,b2;function iH(){if(b2)return Rm;b2=1;function e(t,n){if(t==null)return{};var r={},o=Object.keys(t),i,s;for(s=0;s=0)&&(r[i]=t[i]);return r}return Rm=e,Rm}var Em,w2;function sH(){if(w2)return Em;w2=1;var e=iH();function t(n,r){if(n==null)return{};var o=e(n,r),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);for(s=0;s=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(o[i]=n[i])}return o}return Em=t,Em}var rd,S2;function aH(){if(S2)return rd;S2=1;function e(){return rd=e=Object.assign||function(t){for(var n=1;nd&&(p=d+1-Math.exp((d-p)*n.default.RESISTANCE_COEF)):p<0?(p=0,h=(p-s)*c+l):p>d&&(p=d,h=(p-s)*c+l),{index:p,startX:h}}return sd}var hl={},L2;function yH(){if(L2)return hl;L2=1;var e=mh();Object.defineProperty(hl,"__esModule",{value:!0}),hl.default=void 0;var t=e(b),n=function(i,s){var a=!1,l=function(v){return v?v.key:"empty"};if(i.children.length&&s.children.length){var c=t.default.Children.map(i.children,l),u=c[i.index];if(u!=null){var d=t.default.Children.map(s.children,l),p=d[s.index];u===p&&(a=!0)}}return a},r=n;return hl.default=r,hl}var ml={},N2;function xH(){if(N2)return ml;N2=1,Object.defineProperty(ml,"__esModule",{value:!0}),ml.default=void 0;function e(n,r){var o=n%r;return o<0?o+r:o}var t=e;return ml.default=t,ml}var D2;function bH(){return D2||(D2=1,function(e){var t=mh();Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"checkIndexBounds",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"computeIndex",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"constant",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"getDisplaySameSlide",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"mod",{enumerable:!0,get:function(){return s.default}});var n=t(gH()),r=t(vH()),o=t(RE()),i=t(yH()),s=t(xH())}(Om)),Om}var z2;function wH(){if(z2)return Ao;z2=1;var e=AE,t=oH();Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.getDomTreeShapes=g,Ao.findNativeHandler=x,Ao.default=Ao.SwipeableViewsContext=void 0;var n=t(sH()),r=t(aH()),o=t(lH()),i=t(cH()),s=t(fH()),a=t(pH()),l=t(mH()),c=e(b);t(e3),t(kE());var u=bH();function d(k,P,_,R){return k.addEventListener(P,_,R),{remove:function(){k.removeEventListener(P,_,R)}}}var p={container:{direction:"ltr",display:"flex",willChange:"transform"},slide:{width:"100%",WebkitFlexShrink:0,flexShrink:0,overflow:"auto"}},h={root:{x:{overflowX:"hidden"},"x-reverse":{overflowX:"hidden"},y:{overflowY:"hidden"},"y-reverse":{overflowY:"hidden"}},flexDirection:{x:"row","x-reverse":"row-reverse",y:"column","y-reverse":"column-reverse"},transform:{x:function(P){return"translate(".concat(-P,"%, 0)")},"x-reverse":function(P){return"translate(".concat(P,"%, 0)")},y:function(P){return"translate(0, ".concat(-P,"%)")},"y-reverse":function(P){return"translate(0, ".concat(P,"%)")}},length:{x:"width","x-reverse":"width",y:"height","y-reverse":"height"},rotationMatrix:{x:{x:[1,0],y:[0,1]},"x-reverse":{x:[-1,0],y:[0,1]},y:{x:[0,1],y:[1,0]},"y-reverse":{x:[0,-1],y:[1,0]}},scrollPosition:{x:"scrollLeft","x-reverse":"scrollLeft",y:"scrollTop","y-reverse":"scrollTop"},scrollLength:{x:"scrollWidth","x-reverse":"scrollWidth",y:"scrollHeight","y-reverse":"scrollHeight"},clientLength:{x:"clientWidth","x-reverse":"clientWidth",y:"clientHeight","y-reverse":"clientHeight"}};function v(k,P){var _=P.duration,R=P.easeFunction,T=P.delay;return"".concat(k," ").concat(_," ").concat(R," ").concat(T)}function m(k,P){var _=h.rotationMatrix[P];return{pageX:_.x[0]*k.pageX+_.x[1]*k.pageY,pageY:_.y[0]*k.pageX+_.y[1]*k.pageY}}function w(k){return k.touches=[{pageX:k.pageX,pageY:k.pageY}],k}function g(k,P){for(var _=[];k&&k!==P&&k!==document.body&&!k.hasAttribute("data-swipeable");){var R=window.getComputedStyle(k);R.getPropertyValue("position")==="absolute"||R.getPropertyValue("overflow-x")==="hidden"?_=[]:(k.clientWidth>0&&k.scrollWidth>k.clientWidth||k.clientHeight>0&&k.scrollHeight>k.clientHeight)&&_.push({element:k,scrollWidth:k.scrollWidth,scrollHeight:k.scrollHeight,clientWidth:k.clientWidth,clientHeight:k.clientHeight,scrollLeft:k.scrollLeft,scrollTop:k.scrollTop}),k=k.parentNode}return _}var y=null;function x(k){var P=k.domTreeShapes,_=k.pageX,R=k.startX,T=k.axis;return P.some(function(M){var $=_>=R;(T==="x"||T==="y")&&($=!$);var O=Math.round(M[h.scrollPosition[T]]),z=O>0,N=O+M[h.clientLength[T]]W&&L>u.constant.UNCERTAINTY_THRESHOLD;if(!D&&($==="y"||$==="y-reverse")&&(R.indexCurrent===0&&R.startXj.pageX)){R.isSwiping=!1;return}if(L>W&&T.preventDefault(),se===!0||W>u.constant.UNCERTAINTY_THRESHOLD){R.isSwiping=se,R.startX=j.pageX;return}}if(R.isSwiping===!0){T.preventDefault(),R.vx=R.vx*.5+(j.pageX-R.lastX)*.5,R.lastX=j.pageX;var ae=(0,u.computeIndex)({children:O,resistance:D,pageX:j.pageX,startIndex:R.startIndex,startX:R.startX,viewLength:R.viewLength}),Re=ae.index,Y=ae.startX;if(y===null&&!z){var ce=g(T.target,R.rootNode),q=x({domTreeShapes:ce,startX:R.startX,pageX:j.pageX,axis:$});if(q)return}Y?R.startX=Y:y===null&&(y=R.rootNode),R.setIndexCurrent(Re);var fe=function(){N&&N(Re,"move")};(R.state.displaySameSlide||!R.state.isDragging)&&R.setState({displaySameSlide:!1,isDragging:!0},fe),fe()}}},R.handleSwipeEnd=function(){if(y=null,!!R.started&&(R.started=!1,R.isSwiping===!0)){var T=R.state.indexLatest,M=R.indexCurrent,$=T-M,O;Math.abs(R.vx)>R.props.threshold?R.vx>0?O=Math.floor(M):O=Math.ceil(M):Math.abs($)>R.props.hysteresis?O=$>0?Math.floor(M):Math.ceil(M):O=T;var z=c.Children.count(R.props.children)-1;O<0?O=0:O>z&&(O=z),R.setIndexCurrent(O),R.setState({indexLatest:O,isDragging:!1},function(){R.props.onSwitching&&R.props.onSwitching(O,"end"),R.props.onChangeIndex&&O!==T&&R.props.onChangeIndex(O,T,{reason:"swipe"}),M===T&&R.handleTransitionEnd()})}},R.handleTouchStart=function(T){R.props.onTouchStart&&R.props.onTouchStart(T),R.handleSwipeStart(T)},R.handleTouchEnd=function(T){R.props.onTouchEnd&&R.props.onTouchEnd(T),R.handleSwipeEnd(T)},R.handleMouseDown=function(T){R.props.onMouseDown&&R.props.onMouseDown(T),T.persist(),R.handleSwipeStart(w(T))},R.handleMouseUp=function(T){R.props.onMouseUp&&R.props.onMouseUp(T),R.handleSwipeEnd(w(T))},R.handleMouseLeave=function(T){R.props.onMouseLeave&&R.props.onMouseLeave(T),R.started&&R.handleSwipeEnd(w(T))},R.handleMouseMove=function(T){R.props.onMouseMove&&R.props.onMouseMove(T),R.started&&R.handleSwipeMove(w(T))},R.handleScroll=function(T){if(R.props.onScroll&&R.props.onScroll(T),T.target===R.rootNode){if(R.ignoreNextScrollEvents){R.ignoreNextScrollEvents=!1;return}var M=R.state.indexLatest,$=Math.ceil(T.target.scrollLeft/T.target.clientWidth)+M;R.ignoreNextScrollEvents=!0,T.target.scrollLeft=0,R.props.onChangeIndex&&$!==M&&R.props.onChangeIndex($,M,{reason:"focus"})}},R.updateHeight=function(){if(R.activeSlide!==null){var T=R.activeSlide.children[0];T!==void 0&&T.offsetHeight!==void 0&&R.state.heightLatest!==T.offsetHeight&&R.setState({heightLatest:T.offsetHeight})}},R.state={indexLatest:_.index,isDragging:!1,renderOnlyActive:!_.disableLazyLoading,heightLatest:0,displaySameSlide:!0},R.setIndexCurrent(_.index),R}return(0,i.default)(P,[{key:"componentDidMount",value:function(){var R=this;this.transitionListener=d(this.containerNode,"transitionend",function(T){T.target===R.containerNode&&R.handleTransitionEnd()}),this.touchMoveListener=d(this.rootNode,"touchmove",function(T){R.props.disabled||R.handleSwipeMove(T)},{passive:!1}),this.props.disableLazyLoading||(this.firstRenderTimeout=setTimeout(function(){R.setState({renderOnlyActive:!1})},0)),this.props.action&&this.props.action({updateHeight:this.updateHeight})}},{key:"componentDidUpdate",value:function(R,T,M){M&&this.onUpdate(M)}},{key:"getSnapshotBeforeUpdate",value:function(R){var T=this.props.index;return typeof T=="number"&&T!==R.index?(this.setIndexCurrent(T),{displaySameSlide:(0,u.getDisplaySameSlide)(R,this.props),indexLatest:T}):null}},{key:"componentWillUnmount",value:function(){this.transitionListener.remove(),this.touchMoveListener.remove(),clearTimeout(this.firstRenderTimeout)}},{key:"onUpdate",value:function(R){this.setState((0,r.default)({},R))}},{key:"getSwipeableViewsContext",value:function(){var R=this;return{slideUpdateHeight:function(){R.updateHeight()}}}},{key:"setIndexCurrent",value:function(R){if(!this.props.animateTransitions&&this.indexCurrent!==R&&this.handleTransitionEnd(),this.indexCurrent=R,this.containerNode){var T=this.props.axis,M=h.transform[T](R*100);this.containerNode.style.WebkitTransform=M,this.containerNode.style.transform=M}}},{key:"handleTransitionEnd",value:function(){this.props.onTransitionEnd&&(this.state.displaySameSlide||this.state.isDragging||this.props.onTransitionEnd())}},{key:"render",value:function(){var R=this,T=this.props;T.action;var M=T.animateHeight,$=T.animateTransitions,O=T.axis,z=T.children,N=T.containerStyle,D=T.disabled;T.disableLazyLoading;var j=T.enableMouseEvents;T.hysteresis,T.ignoreNativeScroll,T.index,T.onChangeIndex,T.onSwitching,T.onTransitionEnd,T.resistance;var L=T.slideStyle,W=T.slideClassName,se=T.springConfig,ae=T.style;T.threshold;var Re=(0,n.default)(T,["action","animateHeight","animateTransitions","axis","children","containerStyle","disabled","disableLazyLoading","enableMouseEvents","hysteresis","ignoreNativeScroll","index","onChangeIndex","onSwitching","onTransitionEnd","resistance","slideStyle","slideClassName","springConfig","style","threshold"]),Y=this.state,ce=Y.displaySameSlide,q=Y.heightLatest,fe=Y.indexLatest,pe=Y.isDragging,ge=Y.renderOnlyActive,Oe=D?{}:{onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd},ve=!D&&j?{onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave,onMouseMove:this.handleMouseMove}:{},Ae=(0,r.default)({},p.slide,L),Ee,Te;if(pe||!$||ce)Ee="all 0s ease 0s",Te="all 0s ease 0s";else if(Ee=v("transform",se),Te=v("-webkit-transform",se),q!==0){var Ie=", ".concat(v("height",se));Ee+=Ie,Te+=Ie}var le={height:null,WebkitFlexDirection:h.flexDirection[O],flexDirection:h.flexDirection[O],WebkitTransition:Te,transition:Ee};if(!ge){var at=h.transform[O](this.indexCurrent*100);le.WebkitTransform=at,le.transform=at}return M&&(le.height=q),c.createElement(S.Provider,{value:this.getSwipeableViewsContext()},c.createElement("div",(0,r.default)({ref:this.setRootNode,style:(0,r.default)({},h.root[O],ae)},Re,Oe,ve,{onScroll:this.handleScroll}),c.createElement("div",{ref:this.setContainerNode,style:(0,r.default)({},le,p.container,N),className:"react-swipeable-view-container"},c.Children.map(z,function(ue,Je){if(ge&&Je!==fe)return null;var Ge,Le=!0;return Je===fe&&(Le=!1,M&&(Ge=R.setActiveSlide,Ae.overflowY="hidden")),c.createElement("div",{ref:Ge,style:Ae,className:W,"aria-hidden":Le,"data-swipeable":"true"},ue)}))))}}]),P}(c.Component);C.displayName="ReactSwipableView",C.propTypes={},C.defaultProps={animateHeight:!1,animateTransitions:!0,axis:"x",disabled:!1,disableLazyLoading:!1,enableMouseEvents:!1,hysteresis:.6,ignoreNativeScroll:!1,index:0,threshold:5,springConfig:{duration:"0.35s",easeFunction:"cubic-bezier(0.15, 0.3, 0.25, 1)",delay:"0s"},resistance:!1};var E=C;return Ao.default=E,Ao}(function(e){var t=AE;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"SwipeableViewsContext",{enumerable:!0,get:function(){return n.SwipeableViewsContext}});var n=t(wH())})(CE);const SH=Mf(CE);function CH(e){return e&&e.sector===0}function AH({data:e,lists:t,clickedDownload:n,setClickedDownload:r}){const[o,i]=b.useState(0),[s,a]=b.useState([0,1,2]),l=e.length;b.useEffect(()=>{const m=[Math.max(0,o-1),o,Math.min(l-1,o+1)];a(m)},[o,l]);function c(){i(m=>Math.min(m+1,l-1))}function u(){i(m=>Math.max(m-1,0))}function d(m){i(m)}function p(m){i(m)}const h=e.find(CH);function v(){const m=LF({allSectorsData:h,lists:t});Si(m,"global_indicators")}return f.jsxs(H,{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",width:"100%",position:"relative",children:[f.jsx(H,{style:{position:"absolute",top:"0",right:"0",paddingTop:"1.2em",paddingRight:"1.5em",cursor:"pointer",zIndex:1e3,display:"flex",flexDirection:"column"},children:f.jsx(uE,{handleDownloadClick:v,clickedDownload:n,setClickedDownload:r,type:"indicators"})}),f.jsxs(H,{display:"flex",justifyContent:"center",alignItems:"center",mt:2,children:[f.jsx(Fo,{onClick:u,disabled:o===0,startIcon:f.jsx(xE,{}),sx:{marginRight:"8px"},children:"Back"}),f.jsx(CV,{activeStep:o,nonLinear:!0,children:e.map((m,w)=>f.jsx(TV,{sx:{padding:"4px"},children:f.jsx(H,{onClick:()=>p(w),children:f.jsx(qV,{sx:{backgroundColor:w===o?"primary.main":"grey.300",borderRadius:"50%",margin:0,padding:0,width:"28px",height:"28px",display:"flex",justifyContent:"center",alignItems:"center"},icon:m.sector===0?f.jsx(me,{variant:"caption",style:{fontWeight:"bold",marginLeft:"8px",color:w===o?"white":Fe.unColor},children:"All"}):f.jsx("img",{src:r1[m.sector],style:{width:"16px",height:"16px",marginLeft:"8px",filter:w===o?"brightness(0.1) invert(1)":"none"}})})})},m.sector))}),f.jsx(Fo,{onClick:c,disabled:o===l-1,endIcon:f.jsx(bE,{}),sx:{marginLeft:"8px"},children:"Next"})]}),f.jsx(H,{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",mt:2,children:f.jsx(SH,{axis:"x",index:o,onChangeIndex:d,enableMouseEvents:!0,children:e.map((m,w)=>f.jsx(H,{display:"flex",justifyContent:"center",alignItems:"flex-start",padding:2,children:s.includes(w)&&f.jsx(nH,{datumIndicator:m,lists:t})},m.sector))})})]})}const kH=ft.memo(AH),{beneficiaryCategories:s1,beneficiariesStatuses:RH}=Cn;function EH({dataIndicators:e,lists:t,year:n,fund:r,allocationSource:o,allocationType:i,implementationsStatus:s}){const a=[],l={sector:0,totalProjects:new Set,sectorData:[]};return e.forEach(c=>{const u=t.globalIndicatorsDetails.get(c.GlbIndicId),d=t.projectDetails.get(c.CHFId);if(!u){Ui(c.CHFProjectCode,c,"Global indicator not found in global indicators master");return}if(!d){Ui(c.CHFProjectCode,c,"Global indicator without corresponding project ID");return}const p=Qr(d,t);if(n.includes(d.year)&&r.includes(d.fund)&&o.includes(d.allocationSource)&&i.includes(d.allocationType)&&s.includes(p)){const h=a.find(m=>m.sector===c.GlbClstrId);if(h){h.totalProjects.add(c.CHFId);const m=h.sectorData.find(w=>w.indicatorId===c.GlbIndicId);m?(ad(m.targetedTemporary,c,u,"Tgt"),ad(m.reachedTemporary,c,u,"Ach"),m.targetedTotalTemporary.push(c.TgtTotal),m.reachedTotalTemporary.push(c.AchTotal??0),m.projects.add(c.CHFId)):h.sectorData.push({indicatorId:c.GlbIndicId,unit:u.unit,unitName:u.unitName,projects:new Set([c.CHFId]),targeted:$s(),reached:$s(),targetedTotal:0,reachedTotal:0,targetedTemporary:Os(c,u,"Tgt"),reachedTemporary:Os(c,u,"Ach"),targetedTotalTemporary:[c.TgtTotal],reachedTotalTemporary:[c.AchTotal??0]})}else a.push({sector:c.GlbClstrId,totalProjects:new Set([c.CHFId]),sectorData:[{indicatorId:c.GlbIndicId,unit:u.unit,unitName:u.unitName,projects:new Set([c.CHFId]),targeted:$s(),reached:$s(),targetedTotal:0,reachedTotal:0,targetedTemporary:Os(c,u,"Tgt"),reachedTemporary:Os(c,u,"Ach"),targetedTotalTemporary:[c.TgtTotal],reachedTotalTemporary:[c.AchTotal??0]}]});l.totalProjects.add(c.CHFId);const v=l.sectorData.find(m=>m.indicatorId===c.GlbIndicId);v?(ad(v.targetedTemporary,c,u,"Tgt"),ad(v.reachedTemporary,c,u,"Ach"),v.targetedTotalTemporary.push(c.TgtTotal),v.reachedTotalTemporary.push(c.AchTotal??0),v.projects.add(c.CHFId)):l.sectorData.push({indicatorId:c.GlbIndicId,sector:c.GlbClstrId,unit:u.unit,unitName:u.unitName,projects:new Set([c.CHFId]),targeted:$s(),reached:$s(),targetedTotal:0,reachedTotal:0,targetedTemporary:Os(c,u,"Tgt"),reachedTemporary:Os(c,u,"Ach"),targetedTotalTemporary:[c.TgtTotal],reachedTotalTemporary:[c.AchTotal??0]})}}),a.forEach(c=>{c.sectorData.forEach(u=>{B2(u),delete u.targetedTemporary,delete u.reachedTemporary,delete u.targetedTotalTemporary,delete u.reachedTotalTemporary})}),l.sectorData.forEach(c=>{B2(c),delete c.targetedTemporary,delete c.reachedTemporary,delete c.targetedTotalTemporary,delete c.reachedTotalTemporary}),a.length&&a.unshift(l),a}function B2(e){const t=e.unit==="%"?gx:Mr;RH.forEach(n=>{const r=e[n],o=e[`${n}Temporary`];for(const i in e[`${n}Temporary`]){const s=o[i];s?r[i]=t(s)??0:r[i]=null}e[`${n}Total`]=e.unit==="%"?gx(e[`${n}TotalTemporary`])??0:Mr(e[`${n}TotalTemporary`])??0})}function Os(e,t,n){const r={};return s1.forEach(o=>{r[o]=t[o]?[Number(e[`${n}${o.charAt(0).toUpperCase()}`])||0]:null}),r}function ad(e,t,n,r){s1.forEach(o=>{n[o]?e[o].push(Number(t[`${r}${o.charAt(0).toUpperCase()}`])||0):e[o]=null})}function $s(){const e={};for(const t of s1)e[t]=0;return e}function TH({dataIndicators:e,year:t,fund:n,allocationSource:r,allocationType:o,indicatorsRef:i,refIds:s,lists:a,clickedDownload:l,setClickedDownload:c,implementationsStatus:u}){const[d,p]=b.useState([]),[h,v]=b.useState(!1);function m(){v(!0)}return b.useEffect(()=>{const w=EH({dataIndicators:e,lists:a,year:t,fund:n,allocationSource:r,allocationType:o,implementationsStatus:u});w.length===0&&v(!1),p(w)},[e,t,n,r,o,a,u]),f.jsxs(Ke,{container:!0,spacing:2,mt:6,justifyContent:"center",children:[f.jsx(Ke,{xs:12,ref:i,id:s.indicatorsRefId,children:f.jsx(me,{variant:"h4",style:{fontFamily:"Montserrat",fontWeight:600,textAlign:"center"},children:"Global Indicators"})}),f.jsxs(Ke,{xs:10,mb:3,justifyContent:"center",display:"flex",flexDirection:"column",children:[f.jsx(me,{variant:"body1",style:{fontFamily:"Montserrat",fontSize:"14px",textAlign:"center"},children:"The Global Indicators are a set of metrics used to access and measure the performance and impact of projects funded by OCHA. These indicators cover various aspects of humanitarian response, including beneficiary reach, funding allocation, response time, and the effectiveness of interventions. They provide a standardized framework for monitoring and evaluating OCHA-funded projects, allowing for better accountability and transparency"}),f.jsx(Fo,{"data-tooltip-id":"tooltip","data-tooltip-content":"The table will be generated based on the selected filters","data-tooltip-place":"top",variant:"contained",disabled:h||!(d!=null&&d.length),onClick:m,style:{marginTop:"2em",alignSelf:"center"},children:d!=null&&d.length?"Generate Table":"No Global Indicators for the filters selected"})]}),f.jsx(Ke,{xs:12,children:d.length>0&&h&&f.jsx(kH,{data:d,lists:a,clickedDownload:l,setClickedDownload:c})})]})}const{implementationStatuses:PH,charts:IH}=Cn,P0=IH.reduce((e,t)=>(e[t]=!1,e),{}),F2="RefId",Lm=Object.keys(P0).reduce((e,t)=>(e[`${t}${F2}`]=`${t}${F2}`,e),{}),_H=new URLSearchParams(location.search);function jH({defaultYear:e}){const{data:t,dataIndicators:n,inDataLists:r,lists:o}=b.useContext(Ho),[i,s]=b.useState([e]),[a,l]=b.useState([...r.funds]),[c,u]=b.useState([...r.allocationTypes]),[d,p]=b.useState([...r.allocationSources]),[h,v]=b.useState([...PH]),[m,w]=b.useState(P0),[g,y]=Jr({threshold:.999}),[x,S]=Jr({threshold:0}),C={threshold:.9},[E,k]=Jr(C),[P,_]=Jr(C),[R,T]=Jr(C),[M,$]=Jr(C),[O,z]=Jr(C),[N,D]=Jr(C),[j,L]=Jr(C),[W,se]=Jr(C),ae=b.useMemo(()=>kF({data:t,year:i,fund:a,allocationSource:d,allocationType:c,lists:o}),[t,i,a,d,c,o]),{dataSummary:Re,dataPictogram:Y,dataDisability:ce,dataGBV:q,inSelectionData:fe}=b.useMemo(()=>CF({data:t,year:i,fund:a,allocationSource:d,allocationType:c,implementationStatus:h,lists:o}),[t,i,a,d,c,h,o]),{dataBeneficiaryByType:pe,dataSector:ge,dataOrganization:Oe}=b.useMemo(()=>dV({data:t,year:i,fund:a,allocationSource:d,allocationType:c,implementationStatus:h,lists:o}),[t,i,a,d,c,h,o]);pN({allocationSource:d,allocationType:c,fund:a,implementationStatus:h,inDataLists:r,queryStringValues:_H,setAllocationSource:p,setAllocationType:u,setClickedDownload:w,setFund:l,setImplementationStatus:v,setYear:s,year:i,downloadStates:P0,defaultYear:e});const ve={year:i,setYear:s,fund:a,setFund:l,allocationSource:d,setAllocationSource:p,allocationType:c,setAllocationType:u,inSelectionData:fe};return f.jsxs(Va,{disableGutters:!0,style:{paddingLeft:"12px",paddingRight:"12px"},children:[f.jsx(_8,{id:"tooltip",style:{zIndex:9999,maxWidth:"400px",textAlign:"center"}}),f.jsx(uN,{...ve,titleRef:g,inViewTitle:y,inViewMenus:S,inViewSummary:k,inViewPictogram:_,inViewBeneficiaryTypes:T,inViewOrganizations:z,inViewSectors:$,inViewIndicators:se,inViewDisability:D,inViewGBV:L,refIds:Lm}),f.jsx(dN,{}),f.jsx(mF,{...ve,implementationStatus:h,setImplementationStatus:v,menusRef:x,dataStatuses:ae}),f.jsx(H,{mt:4,mb:4}),f.jsx(cV,{dataSummary:Re,dataPictogram:Y,dataBeneficiaryByType:pe,dataSector:ge,dataOrganization:Oe,dataDisability:ce,dataGBV:q,setClickedDownload:w,clickedDownload:m,lists:o,refIds:Lm,summaryRef:E,pictogramRef:P,beneficiaryTypesRef:R,sectorsRef:M,organizationsRef:O,disabilityRef:N,gbvRef:j,year:i,fund:a,allocationSource:d,allocationType:c,implementationsStatus:h}),f.jsx(TH,{dataIndicators:n,year:i,fund:a,allocationSource:d,allocationType:c,indicatorsRef:W,refIds:Lm,lists:o,setClickedDownload:w,clickedDownload:m,implementationsStatus:h})]})}function MH({defaultYear:e,defaultFundType:t,startYear:n}){const{data:r,dataIndicators:o,lists:i,inDataLists:s,loading:a,error:l}=KI(t,n);return a?f.jsx(UO,{}):l?f.jsx(z$,{error:l}):f.jsx(Ho.Provider,{value:{data:r,dataIndicators:o,lists:i,inDataLists:s},children:f.jsx(jH,{defaultYear:e})})}const mo=document.getElementById("progressroot"),Nm=mo==null?void 0:mo.dataset.year,Dm=mo==null?void 0:mo.dataset.fundtype,zm=mo==null?void 0:mo.dataset.startyear,OH=!Nm||!parseInt(Nm)?new Date().getFullYear():parseInt(Nm),$H=!Dm||!parseInt(Dm)?null:parseInt(Dm),LH=!zm||!parseInt(zm)?null:parseInt(zm);Fm.createRoot(mo).render(f.jsx(ft.StrictMode,{children:f.jsx(MH,{defaultYear:OH,defaultFundType:$H,startYear:LH})})); diff --git a/progress.html b/progress.html index fbbc17a..e574bd1 100644 --- a/progress.html +++ b/progress.html @@ -6,10 +6,10 @@ Allocation Progress Dashboard | CBPF - - - - + + + +