diff --git a/assets/index-CHcAftge.js b/assets/index-Z56C2-z3.js similarity index 88% rename from assets/index-CHcAftge.js rename to assets/index-Z56C2-z3.js index d05e2bd..21e9a30 100644 --- a/assets/index-CHcAftge.js +++ b/assets/index-Z56C2-z3.js @@ -1,4 +1,4 @@ -function A1(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function ri(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nh={exports:{}},oa={},Mh={exports:{}},te={};/** +function j1(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function ri(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nh={exports:{}},oa={},Mh={exports:{}},te={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function A1(e,t){for(var n=0;n>>1,V=R[G];if(0>>1;Gi(pe,w))Xi(we,pe)?(R[G]=we,R[X]=w,G=X):(R[G]=pe,R[re]=w,G=re);else if(Xi(we,w))R[G]=we,R[X]=w,G=X;else break e}}return z}function i(R,z){var w=R.sortIndex-z.sortIndex;return w!==0?w:R.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var u=[],s=[],c=1,f=null,d=3,p=!1,g=!1,v=!1,k=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(R){for(var z=n(s);z!==null;){if(z.callback===null)r(s);else if(z.startTime<=R)r(s),z.sortIndex=z.expirationTime,t(u,z);else break;z=n(s)}}function E(R){if(v=!1,y(R),!g)if(n(u)!==null)g=!0,H(T);else{var z=n(s);z!==null&&ee(E,z.startTime-R)}}function T(R,z){g=!1,v&&(v=!1,h(P),P=-1),p=!0;var w=d;try{for(y(z),f=n(u);f!==null&&(!(f.expirationTime>z)||R&&!A());){var G=f.callback;if(typeof G=="function"){f.callback=null,d=f.priorityLevel;var V=G(f.expirationTime<=z);z=e.unstable_now(),typeof V=="function"?f.callback=V:f===n(u)&&r(u),y(z)}else r(u);f=n(u)}if(f!==null)var S=!0;else{var re=n(s);re!==null&&ee(E,re.startTime-z),S=!1}return S}finally{f=null,d=w,p=!1}}var C=!1,O=null,P=-1,_=5,M=-1;function A(){return!(e.unstable_now()-M<_)}function D(){if(O!==null){var R=e.unstable_now();M=R;var z=!0;try{z=O(!0,R)}finally{z?Q():(C=!1,O=null)}}else C=!1}var Q;if(typeof m=="function")Q=function(){m(D)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,$=Z.port2;Z.port1.onmessage=D,Q=function(){$.postMessage(null)}}else Q=function(){k(D,0)};function H(R){O=R,C||(C=!0,Q())}function ee(R,z){P=k(function(){R(e.unstable_now())},z)}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(R){R.callback=null},e.unstable_continueExecution=function(){g||p||(g=!0,H(T))},e.unstable_forceFrameRate=function(R){0>R||125G?(R.sortIndex=w,t(s,R),n(u)===null&&R===n(s)&&(v?(h(P),P=-1):v=!0,ee(E,w-G))):(R.sortIndex=V,t(u,R),g||p||(g=!0,H(T))),R},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(R){var z=d;return function(){var w=d;d=z;try{return R.apply(this,arguments)}finally{d=w}}}})(Hh);Uh.exports=Hh;var o0=Uh.exports;/** + */(function(e){function t(R,z){var w=R.length;R.push(z);e:for(;0>>1,V=R[G];if(0>>1;Gi(pe,w))Xi(we,pe)?(R[G]=we,R[X]=w,G=X):(R[G]=pe,R[re]=w,G=re);else if(Xi(we,w))R[G]=we,R[X]=w,G=X;else break e}}return z}function i(R,z){var w=R.sortIndex-z.sortIndex;return w!==0?w:R.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var u=[],s=[],c=1,f=null,d=3,p=!1,g=!1,v=!1,k=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(R){for(var z=n(s);z!==null;){if(z.callback===null)r(s);else if(z.startTime<=R)r(s),z.sortIndex=z.expirationTime,t(u,z);else break;z=n(s)}}function E(R){if(v=!1,y(R),!g)if(n(u)!==null)g=!0,H(T);else{var z=n(s);z!==null&&ee(E,z.startTime-R)}}function T(R,z){g=!1,v&&(v=!1,h(P),P=-1),p=!0;var w=d;try{for(y(z),f=n(u);f!==null&&(!(f.expirationTime>z)||R&&!A());){var G=f.callback;if(typeof G=="function"){f.callback=null,d=f.priorityLevel;var V=G(f.expirationTime<=z);z=e.unstable_now(),typeof V=="function"?f.callback=V:f===n(u)&&r(u),y(z)}else r(u);f=n(u)}if(f!==null)var S=!0;else{var re=n(s);re!==null&&ee(E,re.startTime-z),S=!1}return S}finally{f=null,d=w,p=!1}}var C=!1,O=null,P=-1,_=5,M=-1;function A(){return!(e.unstable_now()-M<_)}function D(){if(O!==null){var R=e.unstable_now();M=R;var z=!0;try{z=O(!0,R)}finally{z?Q():(C=!1,O=null)}}else C=!1}var Q;if(typeof m=="function")Q=function(){m(D)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,$=Z.port2;Z.port1.onmessage=D,Q=function(){$.postMessage(null)}}else Q=function(){k(D,0)};function H(R){O=R,C||(C=!0,Q())}function ee(R,z){P=k(function(){R(e.unstable_now())},z)}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(R){R.callback=null},e.unstable_continueExecution=function(){g||p||(g=!0,H(T))},e.unstable_forceFrameRate=function(R){0>R||125G?(R.sortIndex=w,t(s,R),n(u)===null&&R===n(s)&&(v?(h(P),P=-1):v=!0,ee(E,w-G))):(R.sortIndex=V,t(u,R),g||p||(g=!0,H(T))),R},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(R){var z=d;return function(){var w=d;d=z;try{return R.apply(this,arguments)}finally{d=w}}}})(Hh);Uh.exports=Hh;var l0=Uh.exports;/** * @license React * react-dom.production.min.js * @@ -30,18 +30,18 @@ function A1(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ku=Object.prototype.hasOwnProperty,l0=/^[: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]*$/,Qf={},Kf={};function a0(e){return Ku.call(Kf,e)?!0:Ku.call(Qf,e)?!1:l0.test(e)?Kf[e]=!0:(Qf[e]=!0,!1)}function u0(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 s0(e,t,n,r){if(t===null||typeof t>"u"||u0(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 Je(e,t,n,r,i,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var Ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ue[e]=new Je(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ue[t]=new Je(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ue[e]=new Je(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ue[e]=new Je(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){Ue[e]=new Je(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ue[e]=new Je(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ue[e]=new Je(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ue[e]=new Je(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ue[e]=new Je(e,5,!1,e.toLowerCase(),null,!1,!1)});var pc=/[\-:]([a-z])/g;function hc(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(pc,hc);Ue[t]=new Je(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(pc,hc);Ue[t]=new Je(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(pc,hc);Ue[t]=new Je(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ue[e]=new Je(e,1,!1,e.toLowerCase(),null,!1,!1)});Ue.xlinkHref=new Je("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ue[e]=new Je(e,1,!1,e.toLowerCase(),null,!0,!0)});function mc(e,t,n,r){var i=Ue.hasOwnProperty(t)?Ue[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ku=Object.prototype.hasOwnProperty,a0=/^[: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]*$/,Qf={},Kf={};function u0(e){return Ku.call(Kf,e)?!0:Ku.call(Qf,e)?!1:a0.test(e)?Kf[e]=!0:(Qf[e]=!0,!1)}function s0(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 c0(e,t,n,r){if(t===null||typeof t>"u"||s0(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 Je(e,t,n,r,i,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var Ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ue[e]=new Je(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ue[t]=new Je(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ue[e]=new Je(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ue[e]=new Je(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){Ue[e]=new Je(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ue[e]=new Je(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ue[e]=new Je(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ue[e]=new Je(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ue[e]=new Je(e,5,!1,e.toLowerCase(),null,!1,!1)});var pc=/[\-:]([a-z])/g;function hc(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(pc,hc);Ue[t]=new Je(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(pc,hc);Ue[t]=new Je(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(pc,hc);Ue[t]=new Je(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ue[e]=new Je(e,1,!1,e.toLowerCase(),null,!1,!1)});Ue.xlinkHref=new Je("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ue[e]=new Je(e,1,!1,e.toLowerCase(),null,!0,!0)});function mc(e,t,n,r){var i=Ue.hasOwnProperty(t)?Ue[t]:null;(i!==null?i.type!==0:r||!(2a||i[l]!==o[a]){var u=` -`+i[l].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=l&&0<=a);break}}}finally{Ya=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ti(e):""}function c0(e){switch(e.tag){case 5:return Ti(e.type);case 16:return Ti("Lazy");case 13:return Ti("Suspense");case 19:return Ti("SuspenseList");case 0:case 2:case 15:return e=Xa(e.type,!1),e;case 11:return e=Xa(e.type.render,!1),e;case 1:return e=Xa(e.type,!0),e;default:return""}}function qu(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 Or:return"Fragment";case br:return"Portal";case Gu:return"Profiler";case gc:return"StrictMode";case Yu:return"Suspense";case Xu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Gh:return(e.displayName||"Context")+".Consumer";case Kh:return(e._context.displayName||"Context")+".Provider";case vc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case yc:return t=e.displayName||null,t!==null?t:qu(e.type)||"Memo";case En:t=e._payload,e=e._init;try{return qu(e(t))}catch{}}return null}function f0(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 qu(t);case 8:return t===gc?"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 Vn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Xh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function d0(e){var t=Xh(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function To(e){e._valueTracker||(e._valueTracker=d0(e))}function qh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Xh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function vl(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 Zu(e,t){var n=t.checked;return Ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Yf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Vn(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 Zh(e,t){t=t.checked,t!=null&&mc(e,"checked",t,!1)}function Ju(e,t){Zh(e,t);var n=Vn(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")?es(e,t.type,n):t.hasOwnProperty("defaultValue")&&es(e,t.type,Vn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xf(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 es(e,t,n){(t!=="number"||vl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ii=Array.isArray;function jr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Io.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Di={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},p0=["Webkit","ms","Moz","O"];Object.keys(Di).forEach(function(e){p0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Di[t]=Di[e]})});function nm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Di.hasOwnProperty(e)&&Di[e]?(""+t).trim():t+"px"}function rm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=nm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var h0=Ce({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 rs(e,t){if(t){if(h0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function is(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 os=null;function xc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ls=null,zr=null,$r=null;function Jf(e){if(e=go(e)){if(typeof ls!="function")throw Error(L(280));var t=e.stateNode;t&&(t=ca(t),ls(e.stateNode,e.type,t))}}function im(e){zr?$r?$r.push(e):$r=[e]:zr=e}function om(){if(zr){var e=zr,t=$r;if($r=zr=null,Jf(e),t)for(e=0;e>>=0,e===0?32:31-(b0(e)/O0|0)|0}var Po=64,Ro=4194304;function Pi(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 Sl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~i;a!==0?r=Pi(a):(o&=l,o!==0&&(r=Pi(o)))}else l=n&~i,l!==0?r=Pi(l):o!==0&&(r=Pi(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&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 ho(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ft(t),e[t]=n}function R0(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=Fi),ud=String.fromCharCode(32),sd=!1;function bm(e,t){switch(e){case"keyup":return ix.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Om(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tr=!1;function lx(e,t){switch(e){case"compositionend":return Om(t);case"keypress":return t.which!==32?null:(sd=!0,ud);case"textInput":return e=t.data,e===ud&&sd?null:e;default:return null}}function ax(e,t){if(Tr)return e==="compositionend"||!Tc&&bm(e,t)?(e=Cm(),nl=Ec=Pn=null,Tr=!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=pd(n)}}function Rm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lm(){for(var e=window,t=vl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=vl(e.document)}return t}function Ic(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 gx(e){var t=Lm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Rm(n.ownerDocument.documentElement,n)){if(r!==null&&Ic(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 i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=hd(n,o);var l=hd(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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,Ir=null,ds=null,ji=null,ps=!1;function md(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ps||Ir==null||Ir!==vl(r)||(r=Ir,"selectionStart"in r&&Ic(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}),ji&&Zi(ji,r)||(ji=r,r=El(ds,"onSelect"),0Lr||(e.current=xs[Lr],xs[Lr]=null,Lr--)}function me(e,t){Lr++,xs[Lr]=e.current,e.current=t}var Bn={},Ye=Wn(Bn),it=Wn(!1),ur=Bn;function Yr(e,t){var n=e.type.contextTypes;if(!n)return Bn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ot(e){return e=e.childContextTypes,e!=null}function Ol(){ye(it),ye(Ye)}function kd(e,t,n){if(Ye.current!==Bn)throw Error(L(168));me(Ye,t),me(it,n)}function $m(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(L(108,f0(e)||"Unknown",i));return Ce({},n,r)}function Tl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bn,ur=Ye.current,me(Ye,e),me(it,it.current),!0}function Cd(e,t,n){var r=e.stateNode;if(!r)throw Error(L(169));n?(e=$m(e,t,ur),r.__reactInternalMemoizedMergedChildContext=e,ye(it),ye(Ye),me(Ye,e)):ye(it),me(it,n)}var ln=null,fa=!1,cu=!1;function Vm(e){ln===null?ln=[e]:ln.push(e)}function Ix(e){fa=!0,Vm(e)}function Qn(){if(!cu&&ln!==null){cu=!0;var e=0,t=se;try{var n=ln;for(se=1;e>=l,i-=l,un=1<<32-Ft(t)+i|n<P?(_=O,O=null):_=O.sibling;var M=d(h,O,y[P],E);if(M===null){O===null&&(O=_);break}e&&O&&M.alternate===null&&t(h,O),m=o(M,m,P),C===null?T=M:C.sibling=M,C=M,O=_}if(P===y.length)return n(h,O),xe&&qn(h,P),T;if(O===null){for(;PP?(_=O,O=null):_=O.sibling;var A=d(h,O,M.value,E);if(A===null){O===null&&(O=_);break}e&&O&&A.alternate===null&&t(h,O),m=o(A,m,P),C===null?T=A:C.sibling=A,C=A,O=_}if(M.done)return n(h,O),xe&&qn(h,P),T;if(O===null){for(;!M.done;P++,M=y.next())M=f(h,M.value,E),M!==null&&(m=o(M,m,P),C===null?T=M:C.sibling=M,C=M);return xe&&qn(h,P),T}for(O=r(h,O);!M.done;P++,M=y.next())M=p(O,h,P,M.value,E),M!==null&&(e&&M.alternate!==null&&O.delete(M.key===null?P:M.key),m=o(M,m,P),C===null?T=M:C.sibling=M,C=M);return e&&O.forEach(function(D){return t(h,D)}),xe&&qn(h,P),T}function k(h,m,y,E){if(typeof y=="object"&&y!==null&&y.type===Or&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Oo:e:{for(var T=y.key,C=m;C!==null;){if(C.key===T){if(T=y.type,T===Or){if(C.tag===7){n(h,C.sibling),m=i(C,y.props.children),m.return=h,h=m;break e}}else if(C.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===En&&Rd(T)===C.type){n(h,C.sibling),m=i(C,y.props),m.ref=Si(h,C,y),m.return=h,h=m;break e}n(h,C);break}else t(h,C);C=C.sibling}y.type===Or?(m=lr(y.props.children,h.mode,E,y.key),m.return=h,h=m):(E=cl(y.type,y.key,y.props,null,h.mode,E),E.ref=Si(h,m,y),E.return=h,h=E)}return l(h);case br:e:{for(C=y.key;m!==null;){if(m.key===C)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){n(h,m.sibling),m=i(m,y.children||[]),m.return=h,h=m;break e}else{n(h,m);break}else t(h,m);m=m.sibling}m=yu(y,h.mode,E),m.return=h,h=m}return l(h);case En:return C=y._init,k(h,m,C(y._payload),E)}if(Ii(y))return g(h,m,y,E);if(gi(y))return v(h,m,y,E);Ao(h,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(h,m.sibling),m=i(m,y),m.return=h,h=m):(n(h,m),m=vu(y,h.mode,E),m.return=h,h=m),l(h)):n(h,m)}return k}var qr=Ym(!0),Xm=Ym(!1),vo={},Yt=Wn(vo),no=Wn(vo),ro=Wn(vo);function ir(e){if(e===vo)throw Error(L(174));return e}function Ac(e,t){switch(me(ro,t),me(no,e),me(Yt,vo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ns(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ns(t,e)}ye(Yt),me(Yt,t)}function Zr(){ye(Yt),ye(no),ye(ro)}function qm(e){ir(ro.current);var t=ir(Yt.current),n=ns(t,e.type);t!==n&&(me(no,e),me(Yt,n))}function jc(e){no.current===e&&(ye(Yt),ye(no))}var Se=Wn(0);function Ml(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fu=[];function zc(){for(var e=0;en?n:4,e(!0);var r=du.transition;du.transition={};try{e(!1),t()}finally{se=n,du.transition=r}}function pg(){return Pt().memoizedState}function Nx(e,t,n){var r=jn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},hg(e))mg(t,n);else if(n=Wm(e,t,n,r),n!==null){var i=qe();At(n,e,r,i),gg(n,t,r)}}function Mx(e,t,n){var r=jn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(hg(e))mg(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,a=o(l,n);if(i.hasEagerState=!0,i.eagerState=a,zt(a,l)){var u=t.interleaved;u===null?(i.next=i,_c(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=Wm(e,t,i,r),n!==null&&(i=qe(),At(n,e,r,i),gg(n,t,r))}}function hg(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function mg(e,t){zi=Dl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Sc(e,n)}}var _l={readContext:It,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useInsertionEffect:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useSyncExternalStore:We,useId:We,unstable_isNewReconciler:!1},Dx={readContext:It,useCallback:function(e,t){return Vt().memoizedState=[e,t===void 0?null:t],e},useContext:It,useEffect:Nd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ll(4194308,4,ug.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ll(4194308,4,e,t)},useInsertionEffect:function(e,t){return ll(4,2,e,t)},useMemo:function(e,t){var n=Vt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Vt();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=Nx.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=Vt();return e={current:e},t.memoizedState=e},useState:Ld,useDebugValue:Hc,useDeferredValue:function(e){return Vt().memoizedState=e},useTransition:function(){var e=Ld(!1),t=e[0];return e=Lx.bind(null,e[1]),Vt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,i=Vt();if(xe){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),Fe===null)throw Error(L(349));cr&30||eg(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Nd(ng.bind(null,r,o,e),[e]),r.flags|=2048,lo(9,tg.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Vt(),t=Fe.identifierPrefix;if(xe){var n=sn,r=un;n=(r&~(1<<32-Ft(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=io++,0")&&(u=u.replace("",e.displayName)),u}while(1<=l&&0<=a);break}}}finally{Ya=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ti(e):""}function f0(e){switch(e.tag){case 5:return Ti(e.type);case 16:return Ti("Lazy");case 13:return Ti("Suspense");case 19:return Ti("SuspenseList");case 0:case 2:case 15:return e=Xa(e.type,!1),e;case 11:return e=Xa(e.type.render,!1),e;case 1:return e=Xa(e.type,!0),e;default:return""}}function qu(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 Or:return"Fragment";case br:return"Portal";case Gu:return"Profiler";case gc:return"StrictMode";case Yu:return"Suspense";case Xu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Gh:return(e.displayName||"Context")+".Consumer";case Kh:return(e._context.displayName||"Context")+".Provider";case vc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case yc:return t=e.displayName||null,t!==null?t:qu(e.type)||"Memo";case En:t=e._payload,e=e._init;try{return qu(e(t))}catch{}}return null}function d0(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 qu(t);case 8:return t===gc?"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 Vn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Xh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function p0(e){var t=Xh(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function To(e){e._valueTracker||(e._valueTracker=p0(e))}function qh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Xh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function vl(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 Zu(e,t){var n=t.checked;return Ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Yf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Vn(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 Zh(e,t){t=t.checked,t!=null&&mc(e,"checked",t,!1)}function Ju(e,t){Zh(e,t);var n=Vn(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")?es(e,t.type,n):t.hasOwnProperty("defaultValue")&&es(e,t.type,Vn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xf(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 es(e,t,n){(t!=="number"||vl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ii=Array.isArray;function jr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Io.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Di={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},h0=["Webkit","ms","Moz","O"];Object.keys(Di).forEach(function(e){h0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Di[t]=Di[e]})});function nm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Di.hasOwnProperty(e)&&Di[e]?(""+t).trim():t+"px"}function rm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=nm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var m0=Ce({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 rs(e,t){if(t){if(m0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function is(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 os=null;function xc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ls=null,zr=null,$r=null;function Jf(e){if(e=go(e)){if(typeof ls!="function")throw Error(L(280));var t=e.stateNode;t&&(t=ca(t),ls(e.stateNode,e.type,t))}}function im(e){zr?$r?$r.push(e):$r=[e]:zr=e}function om(){if(zr){var e=zr,t=$r;if($r=zr=null,Jf(e),t)for(e=0;e>>=0,e===0?32:31-(O0(e)/T0|0)|0}var Po=64,Ro=4194304;function Pi(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 Sl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~i;a!==0?r=Pi(a):(o&=l,o!==0&&(r=Pi(o)))}else l=n&~i,l!==0?r=Pi(l):o!==0&&(r=Pi(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&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 ho(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ft(t),e[t]=n}function L0(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=Fi),ud=String.fromCharCode(32),sd=!1;function bm(e,t){switch(e){case"keyup":return ox.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Om(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tr=!1;function ax(e,t){switch(e){case"compositionend":return Om(t);case"keypress":return t.which!==32?null:(sd=!0,ud);case"textInput":return e=t.data,e===ud&&sd?null:e;default:return null}}function ux(e,t){if(Tr)return e==="compositionend"||!Tc&&bm(e,t)?(e=Cm(),nl=Ec=Pn=null,Tr=!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=pd(n)}}function Rm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lm(){for(var e=window,t=vl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=vl(e.document)}return t}function Ic(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 vx(e){var t=Lm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Rm(n.ownerDocument.documentElement,n)){if(r!==null&&Ic(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 i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=hd(n,o);var l=hd(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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,Ir=null,ds=null,ji=null,ps=!1;function md(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ps||Ir==null||Ir!==vl(r)||(r=Ir,"selectionStart"in r&&Ic(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}),ji&&Zi(ji,r)||(ji=r,r=El(ds,"onSelect"),0Lr||(e.current=xs[Lr],xs[Lr]=null,Lr--)}function me(e,t){Lr++,xs[Lr]=e.current,e.current=t}var Bn={},Ye=Wn(Bn),it=Wn(!1),sr=Bn;function Yr(e,t){var n=e.type.contextTypes;if(!n)return Bn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ot(e){return e=e.childContextTypes,e!=null}function Ol(){ye(it),ye(Ye)}function kd(e,t,n){if(Ye.current!==Bn)throw Error(L(168));me(Ye,t),me(it,n)}function $m(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(L(108,d0(e)||"Unknown",i));return Ce({},n,r)}function Tl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bn,sr=Ye.current,me(Ye,e),me(it,it.current),!0}function Cd(e,t,n){var r=e.stateNode;if(!r)throw Error(L(169));n?(e=$m(e,t,sr),r.__reactInternalMemoizedMergedChildContext=e,ye(it),ye(Ye),me(Ye,e)):ye(it),me(it,n)}var ln=null,fa=!1,cu=!1;function Vm(e){ln===null?ln=[e]:ln.push(e)}function Px(e){fa=!0,Vm(e)}function Qn(){if(!cu&&ln!==null){cu=!0;var e=0,t=se;try{var n=ln;for(se=1;e>=l,i-=l,un=1<<32-Ft(t)+i|n<P?(_=O,O=null):_=O.sibling;var M=d(h,O,y[P],E);if(M===null){O===null&&(O=_);break}e&&O&&M.alternate===null&&t(h,O),m=o(M,m,P),C===null?T=M:C.sibling=M,C=M,O=_}if(P===y.length)return n(h,O),xe&&qn(h,P),T;if(O===null){for(;PP?(_=O,O=null):_=O.sibling;var A=d(h,O,M.value,E);if(A===null){O===null&&(O=_);break}e&&O&&A.alternate===null&&t(h,O),m=o(A,m,P),C===null?T=A:C.sibling=A,C=A,O=_}if(M.done)return n(h,O),xe&&qn(h,P),T;if(O===null){for(;!M.done;P++,M=y.next())M=f(h,M.value,E),M!==null&&(m=o(M,m,P),C===null?T=M:C.sibling=M,C=M);return xe&&qn(h,P),T}for(O=r(h,O);!M.done;P++,M=y.next())M=p(O,h,P,M.value,E),M!==null&&(e&&M.alternate!==null&&O.delete(M.key===null?P:M.key),m=o(M,m,P),C===null?T=M:C.sibling=M,C=M);return e&&O.forEach(function(D){return t(h,D)}),xe&&qn(h,P),T}function k(h,m,y,E){if(typeof y=="object"&&y!==null&&y.type===Or&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Oo:e:{for(var T=y.key,C=m;C!==null;){if(C.key===T){if(T=y.type,T===Or){if(C.tag===7){n(h,C.sibling),m=i(C,y.props.children),m.return=h,h=m;break e}}else if(C.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===En&&Rd(T)===C.type){n(h,C.sibling),m=i(C,y.props),m.ref=Si(h,C,y),m.return=h,h=m;break e}n(h,C);break}else t(h,C);C=C.sibling}y.type===Or?(m=ar(y.props.children,h.mode,E,y.key),m.return=h,h=m):(E=cl(y.type,y.key,y.props,null,h.mode,E),E.ref=Si(h,m,y),E.return=h,h=E)}return l(h);case br:e:{for(C=y.key;m!==null;){if(m.key===C)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){n(h,m.sibling),m=i(m,y.children||[]),m.return=h,h=m;break e}else{n(h,m);break}else t(h,m);m=m.sibling}m=yu(y,h.mode,E),m.return=h,h=m}return l(h);case En:return C=y._init,k(h,m,C(y._payload),E)}if(Ii(y))return g(h,m,y,E);if(gi(y))return v(h,m,y,E);Ao(h,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(h,m.sibling),m=i(m,y),m.return=h,h=m):(n(h,m),m=vu(y,h.mode,E),m.return=h,h=m),l(h)):n(h,m)}return k}var qr=Ym(!0),Xm=Ym(!1),vo={},Yt=Wn(vo),no=Wn(vo),ro=Wn(vo);function or(e){if(e===vo)throw Error(L(174));return e}function Ac(e,t){switch(me(ro,t),me(no,e),me(Yt,vo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ns(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ns(t,e)}ye(Yt),me(Yt,t)}function Zr(){ye(Yt),ye(no),ye(ro)}function qm(e){or(ro.current);var t=or(Yt.current),n=ns(t,e.type);t!==n&&(me(no,e),me(Yt,n))}function jc(e){no.current===e&&(ye(Yt),ye(no))}var Se=Wn(0);function Ml(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fu=[];function zc(){for(var e=0;en?n:4,e(!0);var r=du.transition;du.transition={};try{e(!1),t()}finally{se=n,du.transition=r}}function pg(){return Pt().memoizedState}function Mx(e,t,n){var r=jn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},hg(e))mg(t,n);else if(n=Wm(e,t,n,r),n!==null){var i=qe();At(n,e,r,i),gg(n,t,r)}}function Dx(e,t,n){var r=jn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(hg(e))mg(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,a=o(l,n);if(i.hasEagerState=!0,i.eagerState=a,zt(a,l)){var u=t.interleaved;u===null?(i.next=i,_c(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=Wm(e,t,i,r),n!==null&&(i=qe(),At(n,e,r,i),gg(n,t,r))}}function hg(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function mg(e,t){zi=Dl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Sc(e,n)}}var _l={readContext:It,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useInsertionEffect:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useSyncExternalStore:We,useId:We,unstable_isNewReconciler:!1},_x={readContext:It,useCallback:function(e,t){return Vt().memoizedState=[e,t===void 0?null:t],e},useContext:It,useEffect:Nd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ll(4194308,4,ug.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ll(4194308,4,e,t)},useInsertionEffect:function(e,t){return ll(4,2,e,t)},useMemo:function(e,t){var n=Vt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Vt();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=Mx.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=Vt();return e={current:e},t.memoizedState=e},useState:Ld,useDebugValue:Hc,useDeferredValue:function(e){return Vt().memoizedState=e},useTransition:function(){var e=Ld(!1),t=e[0];return e=Nx.bind(null,e[1]),Vt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,i=Vt();if(xe){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),Fe===null)throw Error(L(349));fr&30||eg(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Nd(ng.bind(null,r,o,e),[e]),r.flags|=2048,lo(9,tg.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Vt(),t=Fe.identifierPrefix;if(xe){var n=sn,r=un;n=(r&~(1<<32-Ft(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=io++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Wt]=t,e[to]=r,bg(e,t,!1,!1),t.stateNode=e;e:{switch(l=is(n,r),n){case"dialog":ve("cancel",e),ve("close",e),i=r;break;case"iframe":case"object":case"embed":ve("load",e),i=r;break;case"video":case"audio":for(i=0;iei&&(t.flags|=128,r=!0,ki(o,!1),t.lanes=4194304)}else{if(!r)if(e=Ml(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ki(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!xe)return Qe(t),null}else 2*Te()-o.renderingStartTime>ei&&n!==1073741824&&(t.flags|=128,r=!0,ki(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Te(),t.sibling=null,n=Se.current,me(Se,r?n&1|2:n&1),t):(Qe(t),null);case 22:case 23:return Xc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?dt&1073741824&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function Bx(e,t){switch(Rc(t),t.tag){case 1:return ot(t.type)&&Ol(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zr(),ye(it),ye(Ye),zc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return jc(t),null;case 13:if(ye(Se),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));Xr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ye(Se),null;case 4:return Zr(),null;case 10:return Dc(t.type._context),null;case 22:case 23:return Xc(),null;case 24:return null;default:return null}}var zo=!1,Ge=!1,Ux=typeof WeakSet=="function"?WeakSet:Set,j=null;function _r(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){be(e,t,r)}else n.current=null}function Ls(e,t,n){try{n()}catch(r){be(e,t,r)}}var Vd=!1;function Hx(e,t){if(hs=kl,e=Lm(),Ic(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 i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,a=-1,u=-1,s=0,c=0,f=e,d=null;t:for(;;){for(var p;f!==n||i!==0&&f.nodeType!==3||(a=l+i),f!==o||r!==0&&f.nodeType!==3||(u=l+r),f.nodeType===3&&(l+=f.nodeValue.length),(p=f.firstChild)!==null;)d=f,f=p;for(;;){if(f===e)break t;if(d===n&&++s===i&&(a=l),d===o&&++c===r&&(u=l),(p=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=p}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ms={focusedElem:e,selectionRange:n},kl=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,k=g.memoizedState,h=t.stateNode,m=h.getSnapshotBeforeUpdate(t.elementType===t.type?v:Mt(t.type,v),k);h.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(E){be(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return g=Vd,Vd=!1,g}function $i(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Ls(t,n,o)}i=i.next}while(i!==r)}}function ha(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 Ns(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 Ig(e){var t=e.alternate;t!==null&&(e.alternate=null,Ig(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Wt],delete t[to],delete t[ys],delete t[Ox],delete t[Tx])),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 Pg(e){return e.tag===5||e.tag===3||e.tag===4}function Bd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pg(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 Ms(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=bl));else if(r!==4&&(e=e.child,e!==null))for(Ms(e,t,n),e=e.sibling;e!==null;)Ms(e,t,n),e=e.sibling}function Ds(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(Ds(e,t,n),e=e.sibling;e!==null;)Ds(e,t,n),e=e.sibling}var ze=null,Dt=!1;function kn(e,t,n){for(n=n.child;n!==null;)Rg(e,t,n),n=n.sibling}function Rg(e,t,n){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(la,n)}catch{}switch(n.tag){case 5:Ge||_r(n,t);case 6:var r=ze,i=Dt;ze=null,kn(e,t,n),ze=r,Dt=i,ze!==null&&(Dt?(e=ze,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ze.removeChild(n.stateNode));break;case 18:ze!==null&&(Dt?(e=ze,n=n.stateNode,e.nodeType===8?su(e.parentNode,n):e.nodeType===1&&su(e,n),Xi(e)):su(ze,n.stateNode));break;case 4:r=ze,i=Dt,ze=n.stateNode.containerInfo,Dt=!0,kn(e,t,n),ze=r,Dt=i;break;case 0:case 11:case 14:case 15:if(!Ge&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&Ls(n,t,l),i=i.next}while(i!==r)}kn(e,t,n);break;case 1:if(!Ge&&(_r(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){be(n,t,a)}kn(e,t,n);break;case 21:kn(e,t,n);break;case 22:n.mode&1?(Ge=(r=Ge)||n.memoizedState!==null,kn(e,t,n),Ge=r):kn(e,t,n);break;default:kn(e,t,n)}}function Ud(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ux),t.forEach(function(r){var i=Jx.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~o}if(r=i,r=Te()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Qx(r/1960))-r,10e?16:e,Rn===null)var r=!1;else{if(e=Rn,Rn=null,jl=0,ie&6)throw Error(L(331));var i=ie;for(ie|=4,j=e.current;j!==null;){var o=j,l=o.child;if(j.flags&16){var a=o.deletions;if(a!==null){for(var u=0;uTe()-Gc?or(e,0):Kc|=n),lt(e,t)}function jg(e,t){t===0&&(e.mode&1?(t=Ro,Ro<<=1,!(Ro&130023424)&&(Ro=4194304)):t=1);var n=qe();e=vn(e,t),e!==null&&(ho(e,t,n),lt(e,n))}function Zx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),jg(e,n)}function Jx(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(L(314))}r!==null&&r.delete(t),jg(e,n)}var zg;zg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||it.current)rt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return rt=!1,$x(e,t,n);rt=!!(e.flags&131072)}else rt=!1,xe&&t.flags&1048576&&Bm(t,Pl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;al(e,t),e=t.pendingProps;var i=Yr(t,Ye.current);Br(t,n),i=Vc(null,t,r,e,i,n);var o=Bc();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ot(r)?(o=!0,Tl(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Fc(t),i.updater=da,t.stateNode=i,i._reactInternals=t,Es(t,r,e,n),t=Ts(null,t,r,!0,o,n)):(t.tag=0,xe&&o&&Pc(t),Xe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(al(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=tw(r),e=Mt(r,e),i){case 0:t=Os(null,t,r,e,n);break e;case 1:t=jd(null,t,r,e,n);break e;case 11:t=Fd(null,t,r,e,n);break e;case 14:t=Ad(null,t,r,Mt(r.type,e),n);break e}throw Error(L(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),Os(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),jd(e,t,r,i,n);case 3:e:{if(kg(t),e===null)throw Error(L(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Qm(e,t),Nl(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Jr(Error(L(423)),t),t=zd(e,t,r,n,i);break e}else if(r!==i){i=Jr(Error(L(424)),t),t=zd(e,t,r,n,i);break e}else for(pt=_n(t.stateNode.containerInfo.firstChild),mt=t,xe=!0,_t=null,n=Xm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Xr(),r===i){t=yn(e,t,n);break e}Xe(e,t,r,n)}t=t.child}return t;case 5:return qm(t),e===null&&Ss(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,gs(r,i)?l=null:o!==null&&gs(r,o)&&(t.flags|=32),Sg(e,t),Xe(e,t,l,n),t.child;case 6:return e===null&&Ss(t),null;case 13:return Cg(e,t,n);case 4:return Ac(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=qr(t,null,r,n):Xe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),Fd(e,t,r,i,n);case 7:return Xe(e,t,t.pendingProps,n),t.child;case 8:return Xe(e,t,t.pendingProps.children,n),t.child;case 12:return Xe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,me(Rl,r._currentValue),r._currentValue=l,o!==null)if(zt(o.value,l)){if(o.children===i.children&&!it.current){t=yn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){l=o.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=fn(-1,n&-n),u.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var c=s.pending;c===null?u.next=u:(u.next=c.next,c.next=u),s.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),ks(o.return,n,t),a.lanes|=n;break}u=u.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(L(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),ks(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}Xe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Br(t,n),i=It(i),r=r(i),t.flags|=1,Xe(e,t,r,n),t.child;case 14:return r=t.type,i=Mt(r,t.pendingProps),i=Mt(r.type,i),Ad(e,t,r,i,n);case 15:return xg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),al(e,t),t.tag=1,ot(r)?(e=!0,Tl(t)):e=!1,Br(t,n),Gm(t,r,i),Es(t,r,i,n),Ts(null,t,r,!0,e,n);case 19:return Eg(e,t,n);case 22:return wg(e,t,n)}throw Error(L(156,t.tag))};function $g(e,t){return dm(e,t)}function ew(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 Ot(e,t,n,r){return new ew(e,t,n,r)}function Zc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function tw(e){if(typeof e=="function")return Zc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vc)return 11;if(e===yc)return 14}return 2}function zn(e,t){var n=e.alternate;return n===null?(n=Ot(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 cl(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")Zc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Or:return lr(n.children,i,o,t);case gc:l=8,i|=8;break;case Gu:return e=Ot(12,n,t,i|2),e.elementType=Gu,e.lanes=o,e;case Yu:return e=Ot(13,n,t,i),e.elementType=Yu,e.lanes=o,e;case Xu:return e=Ot(19,n,t,i),e.elementType=Xu,e.lanes=o,e;case Yh:return ga(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Kh:l=10;break e;case Gh:l=9;break e;case vc:l=11;break e;case yc:l=14;break e;case En:l=16,r=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=Ot(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function lr(e,t,n,r){return e=Ot(7,e,r,t),e.lanes=n,e}function ga(e,t,n,r){return e=Ot(22,e,r,t),e.elementType=Yh,e.lanes=n,e.stateNode={isHidden:!1},e}function vu(e,t,n){return e=Ot(6,e,null,t),e.lanes=n,e}function yu(e,t,n){return t=Ot(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function nw(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Za(0),this.expirationTimes=Za(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Za(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Jc(e,t,n,r,i,o,l,a,u){return e=new nw(e,t,n,a,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ot(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fc(o),e}function rw(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Hg)}catch(e){console.error(e)}}Hg(),Bh.exports=yt;var rf=Bh.exports;const Ar=ri(rf);var qd=rf;Qu.createRoot=qd.createRoot,Qu.hydrateRoot=qd.hydrateRoot;var Wg={exports:{}};/*! +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function mu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function bs(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var jx=typeof WeakMap=="function"?WeakMap:Map;function vg(e,t,n){n=fn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Al||(Al=!0,_s=r),bs(e,t)},n}function yg(e,t,n){n=fn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){bs(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){bs(e,t),typeof r!="function"&&(An===null?An=new Set([this]):An.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Md(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new jx;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Zx.bind(null,e,t,n),t.then(e,e))}function Dd(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function _d(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=fn(-1,1),t.tag=2,Fn(n,t,1))),n.lanes|=1),e)}var zx=wn.ReactCurrentOwner,rt=!1;function Xe(e,t,n,r){t.child=e===null?Xm(t,null,n,r):qr(t,e.child,n,r)}function Fd(e,t,n,r,i){n=n.render;var o=t.ref;return Br(t,i),r=Vc(e,t,n,r,o,i),n=Bc(),e!==null&&!rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,yn(e,t,i)):(xe&&n&&Pc(t),t.flags|=1,Xe(e,t,r,i),t.child)}function Ad(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Zc(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,xg(e,t,o,r,i)):(e=cl(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var l=o.memoizedProps;if(n=n.compare,n=n!==null?n:Zi,n(l,r)&&e.ref===t.ref)return yn(e,t,i)}return t.flags|=1,e=zn(o,r),e.ref=t.ref,e.return=t,t.child=e}function xg(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Zi(o,r)&&e.ref===t.ref)if(rt=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(rt=!0);else return t.lanes=e.lanes,yn(e,t,i)}return Os(e,t,n,r,i)}function wg(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},me(Fr,dt),dt|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,me(Fr,dt),dt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,me(Fr,dt),dt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,me(Fr,dt),dt|=r;return Xe(e,t,i,n),t.child}function Sg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Os(e,t,n,r,i){var o=ot(n)?sr:Ye.current;return o=Yr(t,o),Br(t,i),n=Vc(e,t,n,r,o,i),r=Bc(),e!==null&&!rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,yn(e,t,i)):(xe&&r&&Pc(t),t.flags|=1,Xe(e,t,n,i),t.child)}function jd(e,t,n,r,i){if(ot(n)){var o=!0;Tl(t)}else o=!1;if(Br(t,i),t.stateNode===null)al(e,t),Gm(t,n,r),Es(t,n,r,i),r=!0;else if(e===null){var l=t.stateNode,a=t.memoizedProps;l.props=a;var u=l.context,s=n.contextType;typeof s=="object"&&s!==null?s=It(s):(s=ot(n)?sr:Ye.current,s=Yr(t,s));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function";f||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==r||u!==s)&&Pd(t,l,r,s),bn=!1;var d=t.memoizedState;l.state=d,Nl(t,r,l,i),u=t.memoizedState,a!==r||d!==u||it.current||bn?(typeof c=="function"&&(Cs(t,n,c,r),u=t.memoizedState),(a=bn||Id(t,n,a,r,d,u,s))?(f||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),l.props=r,l.state=u,l.context=s,r=a):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Qm(e,t),a=t.memoizedProps,s=t.type===t.elementType?a:Mt(t.type,a),l.props=s,f=t.pendingProps,d=l.context,u=n.contextType,typeof u=="object"&&u!==null?u=It(u):(u=ot(n)?sr:Ye.current,u=Yr(t,u));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==f||d!==u)&&Pd(t,l,r,u),bn=!1,d=t.memoizedState,l.state=d,Nl(t,r,l,i);var g=t.memoizedState;a!==f||d!==g||it.current||bn?(typeof p=="function"&&(Cs(t,n,p,r),g=t.memoizedState),(s=bn||Id(t,n,s,r,d,g,u)||!1)?(c||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,g,u),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,g,u)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),l.props=r,l.state=g,l.context=u,r=s):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Ts(e,t,n,r,o,i)}function Ts(e,t,n,r,i,o){Sg(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return i&&Cd(t,n,!1),yn(e,t,o);r=t.stateNode,zx.current=t;var a=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=qr(t,e.child,null,o),t.child=qr(t,null,a,o)):Xe(e,t,a,o),t.memoizedState=r.state,i&&Cd(t,n,!0),t.child}function kg(e){var t=e.stateNode;t.pendingContext?kd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&kd(e,t.context,!1),Ac(e,t.containerInfo)}function zd(e,t,n,r,i){return Xr(),Lc(i),t.flags|=256,Xe(e,t,n,r),t.child}var Is={dehydrated:null,treeContext:null,retryLane:0};function Ps(e){return{baseLanes:e,cachePool:null,transitions:null}}function Cg(e,t,n){var r=t.pendingProps,i=Se.current,o=!1,l=(t.flags&128)!==0,a;if((a=l)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),me(Se,i&1),e===null)return Ss(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,o?(r=t.mode,o=t.child,l={mode:"hidden",children:l},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=l):o=ga(l,r,0,null),e=ar(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Ps(n),t.memoizedState=Is,e):Wc(t,l));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return $x(e,t,l,r,a,i,n);if(o){o=r.fallback,l=t.mode,i=e.child,a=i.sibling;var u={mode:"hidden",children:r.children};return!(l&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=zn(i,u),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=zn(a,o):(o=ar(o,l,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,l=e.child.memoizedState,l=l===null?Ps(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~n,t.memoizedState=Is,r}return o=e.child,e=o.sibling,r=zn(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Wc(e,t){return t=ga({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function jo(e,t,n,r){return r!==null&&Lc(r),qr(t,e.child,null,n),e=Wc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $x(e,t,n,r,i,o,l){if(n)return t.flags&256?(t.flags&=-257,r=mu(Error(L(422))),jo(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=ga({mode:"visible",children:r.children},i,0,null),o=ar(o,i,l,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&qr(t,e.child,null,l),t.child.memoizedState=Ps(l),t.memoizedState=Is,o);if(!(t.mode&1))return jo(e,t,l,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(L(419)),r=mu(o,r,void 0),jo(e,t,l,r)}if(a=(l&e.childLanes)!==0,rt||a){if(r=Fe,r!==null){switch(l&-l){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|l)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,vn(e,i),At(r,e,i,-1))}return qc(),r=mu(Error(L(421))),jo(e,t,l,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Jx.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,pt=_n(i.nextSibling),mt=t,xe=!0,_t=null,e!==null&&(kt[Ct++]=un,kt[Ct++]=sn,kt[Ct++]=cr,un=e.id,sn=e.overflow,cr=t),t=Wc(t,r.children),t.flags|=4096,t)}function $d(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ks(e.return,t,n)}function gu(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Eg(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Xe(e,t,r.children,n),r=Se.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$d(e,n,t);else if(e.tag===19)$d(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(me(Se,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Ml(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),gu(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ml(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}gu(t,!0,n,null,o);break;case"together":gu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function al(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function yn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),dr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(L(153));if(t.child!==null){for(e=t.child,n=zn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=zn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Vx(e,t,n){switch(t.tag){case 3:kg(t),Xr();break;case 5:qm(t);break;case 1:ot(t.type)&&Tl(t);break;case 4:Ac(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;me(Rl,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(me(Se,Se.current&1),t.flags|=128,null):n&t.child.childLanes?Cg(e,t,n):(me(Se,Se.current&1),e=yn(e,t,n),e!==null?e.sibling:null);me(Se,Se.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Eg(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),me(Se,Se.current),r)break;return null;case 22:case 23:return t.lanes=0,wg(e,t,n)}return yn(e,t,n)}var bg,Rs,Og,Tg;bg=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Rs=function(){};Og=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,or(Yt.current);var o=null;switch(n){case"input":i=Zu(e,i),r=Zu(e,r),o=[];break;case"select":i=Ce({},i,{value:void 0}),r=Ce({},r,{value:void 0}),o=[];break;case"textarea":i=ts(e,i),r=ts(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=bl)}rs(n,r);var l;n=null;for(s in i)if(!r.hasOwnProperty(s)&&i.hasOwnProperty(s)&&i[s]!=null)if(s==="style"){var a=i[s];for(l in a)a.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else s!=="dangerouslySetInnerHTML"&&s!=="children"&&s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Wi.hasOwnProperty(s)?o||(o=[]):(o=o||[]).push(s,null));for(s in r){var u=r[s];if(a=i!=null?i[s]:void 0,r.hasOwnProperty(s)&&u!==a&&(u!=null||a!=null))if(s==="style")if(a){for(l in a)!a.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&a[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(o||(o=[]),o.push(s,n)),n=u;else s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(o=o||[]).push(s,u)):s==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(s,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&(Wi.hasOwnProperty(s)?(u!=null&&s==="onScroll"&&ve("scroll",e),o||a===u||(o=[])):(o=o||[]).push(s,u))}n&&(o=o||[]).push("style",n);var s=o;(t.updateQueue=s)&&(t.flags|=4)}};Tg=function(e,t,n,r){n!==r&&(t.flags|=4)};function ki(e,t){if(!xe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Bx(e,t,n){var r=t.pendingProps;switch(Rc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(t),null;case 1:return ot(t.type)&&Ol(),Qe(t),null;case 3:return r=t.stateNode,Zr(),ye(it),ye(Ye),zc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Fo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,_t!==null&&(js(_t),_t=null))),Rs(e,t),Qe(t),null;case 5:jc(t);var i=or(ro.current);if(n=t.type,e!==null&&t.stateNode!=null)Og(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(L(166));return Qe(t),null}if(e=or(Yt.current),Fo(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Wt]=t,r[to]=o,e=(t.mode&1)!==0,n){case"dialog":ve("cancel",r),ve("close",r);break;case"iframe":case"object":case"embed":ve("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Wt]=t,e[to]=r,bg(e,t,!1,!1),t.stateNode=e;e:{switch(l=is(n,r),n){case"dialog":ve("cancel",e),ve("close",e),i=r;break;case"iframe":case"object":case"embed":ve("load",e),i=r;break;case"video":case"audio":for(i=0;iei&&(t.flags|=128,r=!0,ki(o,!1),t.lanes=4194304)}else{if(!r)if(e=Ml(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ki(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!xe)return Qe(t),null}else 2*Te()-o.renderingStartTime>ei&&n!==1073741824&&(t.flags|=128,r=!0,ki(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Te(),t.sibling=null,n=Se.current,me(Se,r?n&1|2:n&1),t):(Qe(t),null);case 22:case 23:return Xc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?dt&1073741824&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function Ux(e,t){switch(Rc(t),t.tag){case 1:return ot(t.type)&&Ol(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zr(),ye(it),ye(Ye),zc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return jc(t),null;case 13:if(ye(Se),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));Xr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ye(Se),null;case 4:return Zr(),null;case 10:return Dc(t.type._context),null;case 22:case 23:return Xc(),null;case 24:return null;default:return null}}var zo=!1,Ge=!1,Hx=typeof WeakSet=="function"?WeakSet:Set,j=null;function _r(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){be(e,t,r)}else n.current=null}function Ls(e,t,n){try{n()}catch(r){be(e,t,r)}}var Vd=!1;function Wx(e,t){if(hs=kl,e=Lm(),Ic(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 i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,a=-1,u=-1,s=0,c=0,f=e,d=null;t:for(;;){for(var p;f!==n||i!==0&&f.nodeType!==3||(a=l+i),f!==o||r!==0&&f.nodeType!==3||(u=l+r),f.nodeType===3&&(l+=f.nodeValue.length),(p=f.firstChild)!==null;)d=f,f=p;for(;;){if(f===e)break t;if(d===n&&++s===i&&(a=l),d===o&&++c===r&&(u=l),(p=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=p}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ms={focusedElem:e,selectionRange:n},kl=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,k=g.memoizedState,h=t.stateNode,m=h.getSnapshotBeforeUpdate(t.elementType===t.type?v:Mt(t.type,v),k);h.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(E){be(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return g=Vd,Vd=!1,g}function $i(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Ls(t,n,o)}i=i.next}while(i!==r)}}function ha(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 Ns(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 Ig(e){var t=e.alternate;t!==null&&(e.alternate=null,Ig(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Wt],delete t[to],delete t[ys],delete t[Tx],delete t[Ix])),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 Pg(e){return e.tag===5||e.tag===3||e.tag===4}function Bd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pg(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 Ms(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=bl));else if(r!==4&&(e=e.child,e!==null))for(Ms(e,t,n),e=e.sibling;e!==null;)Ms(e,t,n),e=e.sibling}function Ds(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(Ds(e,t,n),e=e.sibling;e!==null;)Ds(e,t,n),e=e.sibling}var ze=null,Dt=!1;function kn(e,t,n){for(n=n.child;n!==null;)Rg(e,t,n),n=n.sibling}function Rg(e,t,n){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(la,n)}catch{}switch(n.tag){case 5:Ge||_r(n,t);case 6:var r=ze,i=Dt;ze=null,kn(e,t,n),ze=r,Dt=i,ze!==null&&(Dt?(e=ze,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ze.removeChild(n.stateNode));break;case 18:ze!==null&&(Dt?(e=ze,n=n.stateNode,e.nodeType===8?su(e.parentNode,n):e.nodeType===1&&su(e,n),Xi(e)):su(ze,n.stateNode));break;case 4:r=ze,i=Dt,ze=n.stateNode.containerInfo,Dt=!0,kn(e,t,n),ze=r,Dt=i;break;case 0:case 11:case 14:case 15:if(!Ge&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&Ls(n,t,l),i=i.next}while(i!==r)}kn(e,t,n);break;case 1:if(!Ge&&(_r(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){be(n,t,a)}kn(e,t,n);break;case 21:kn(e,t,n);break;case 22:n.mode&1?(Ge=(r=Ge)||n.memoizedState!==null,kn(e,t,n),Ge=r):kn(e,t,n);break;default:kn(e,t,n)}}function Ud(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Hx),t.forEach(function(r){var i=ew.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~o}if(r=i,r=Te()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Kx(r/1960))-r,10e?16:e,Rn===null)var r=!1;else{if(e=Rn,Rn=null,jl=0,ie&6)throw Error(L(331));var i=ie;for(ie|=4,j=e.current;j!==null;){var o=j,l=o.child;if(j.flags&16){var a=o.deletions;if(a!==null){for(var u=0;uTe()-Gc?lr(e,0):Kc|=n),lt(e,t)}function jg(e,t){t===0&&(e.mode&1?(t=Ro,Ro<<=1,!(Ro&130023424)&&(Ro=4194304)):t=1);var n=qe();e=vn(e,t),e!==null&&(ho(e,t,n),lt(e,n))}function Jx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),jg(e,n)}function ew(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(L(314))}r!==null&&r.delete(t),jg(e,n)}var zg;zg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||it.current)rt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return rt=!1,Vx(e,t,n);rt=!!(e.flags&131072)}else rt=!1,xe&&t.flags&1048576&&Bm(t,Pl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;al(e,t),e=t.pendingProps;var i=Yr(t,Ye.current);Br(t,n),i=Vc(null,t,r,e,i,n);var o=Bc();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ot(r)?(o=!0,Tl(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Fc(t),i.updater=da,t.stateNode=i,i._reactInternals=t,Es(t,r,e,n),t=Ts(null,t,r,!0,o,n)):(t.tag=0,xe&&o&&Pc(t),Xe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(al(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=nw(r),e=Mt(r,e),i){case 0:t=Os(null,t,r,e,n);break e;case 1:t=jd(null,t,r,e,n);break e;case 11:t=Fd(null,t,r,e,n);break e;case 14:t=Ad(null,t,r,Mt(r.type,e),n);break e}throw Error(L(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),Os(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),jd(e,t,r,i,n);case 3:e:{if(kg(t),e===null)throw Error(L(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Qm(e,t),Nl(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Jr(Error(L(423)),t),t=zd(e,t,r,n,i);break e}else if(r!==i){i=Jr(Error(L(424)),t),t=zd(e,t,r,n,i);break e}else for(pt=_n(t.stateNode.containerInfo.firstChild),mt=t,xe=!0,_t=null,n=Xm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Xr(),r===i){t=yn(e,t,n);break e}Xe(e,t,r,n)}t=t.child}return t;case 5:return qm(t),e===null&&Ss(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,gs(r,i)?l=null:o!==null&&gs(r,o)&&(t.flags|=32),Sg(e,t),Xe(e,t,l,n),t.child;case 6:return e===null&&Ss(t),null;case 13:return Cg(e,t,n);case 4:return Ac(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=qr(t,null,r,n):Xe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),Fd(e,t,r,i,n);case 7:return Xe(e,t,t.pendingProps,n),t.child;case 8:return Xe(e,t,t.pendingProps.children,n),t.child;case 12:return Xe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,me(Rl,r._currentValue),r._currentValue=l,o!==null)if(zt(o.value,l)){if(o.children===i.children&&!it.current){t=yn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){l=o.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=fn(-1,n&-n),u.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var c=s.pending;c===null?u.next=u:(u.next=c.next,c.next=u),s.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),ks(o.return,n,t),a.lanes|=n;break}u=u.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(L(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),ks(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}Xe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Br(t,n),i=It(i),r=r(i),t.flags|=1,Xe(e,t,r,n),t.child;case 14:return r=t.type,i=Mt(r,t.pendingProps),i=Mt(r.type,i),Ad(e,t,r,i,n);case 15:return xg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),al(e,t),t.tag=1,ot(r)?(e=!0,Tl(t)):e=!1,Br(t,n),Gm(t,r,i),Es(t,r,i,n),Ts(null,t,r,!0,e,n);case 19:return Eg(e,t,n);case 22:return wg(e,t,n)}throw Error(L(156,t.tag))};function $g(e,t){return dm(e,t)}function tw(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 Ot(e,t,n,r){return new tw(e,t,n,r)}function Zc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function nw(e){if(typeof e=="function")return Zc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vc)return 11;if(e===yc)return 14}return 2}function zn(e,t){var n=e.alternate;return n===null?(n=Ot(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 cl(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")Zc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Or:return ar(n.children,i,o,t);case gc:l=8,i|=8;break;case Gu:return e=Ot(12,n,t,i|2),e.elementType=Gu,e.lanes=o,e;case Yu:return e=Ot(13,n,t,i),e.elementType=Yu,e.lanes=o,e;case Xu:return e=Ot(19,n,t,i),e.elementType=Xu,e.lanes=o,e;case Yh:return ga(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Kh:l=10;break e;case Gh:l=9;break e;case vc:l=11;break e;case yc:l=14;break e;case En:l=16,r=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=Ot(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function ar(e,t,n,r){return e=Ot(7,e,r,t),e.lanes=n,e}function ga(e,t,n,r){return e=Ot(22,e,r,t),e.elementType=Yh,e.lanes=n,e.stateNode={isHidden:!1},e}function vu(e,t,n){return e=Ot(6,e,null,t),e.lanes=n,e}function yu(e,t,n){return t=Ot(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function rw(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Za(0),this.expirationTimes=Za(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Za(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Jc(e,t,n,r,i,o,l,a,u){return e=new rw(e,t,n,a,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ot(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fc(o),e}function iw(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Hg)}catch(e){console.error(e)}}Hg(),Bh.exports=yt;var rf=Bh.exports;const Ar=ri(rf);var qd=rf;Qu.createRoot=qd.createRoot,Qu.hydrateRoot=qd.hydrateRoot;var Wg={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 r=[],i=0;i=0)&&(n[i]=e[i]);return n}function Vl(e,t){return Vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Vl(e,t)}function sw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Vl(e,t)}const Kg=["xxl","xl","lg","md","sm","xs"],Gg="xs",Sa=x.createContext({prefixes:{},breakpoints:Kg,minBreakpoint:Gg});function oe(e,t){const{prefixes:n}=x.useContext(Sa);return e||n[t]||t}function of(){const{breakpoints:e}=x.useContext(Sa);return e}function lf(){const{minBreakpoint:e}=x.useContext(Sa);return e}function cw(){const{dir:e}=x.useContext(Sa);return e==="rtl"}function ka(e){return e&&e.ownerDocument||document}function fw(e){var t=ka(e);return t&&t.defaultView||window}function dw(e,t){return fw(e).getComputedStyle(e,t)}var pw=/([A-Z])/g;function hw(e){return e.replace(pw,"-$1").toLowerCase()}var mw=/^ms-/;function Bo(e){return hw(e).replace(mw,"-ms-")}var gw=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function vw(e){return!!(e&&gw.test(e))}function ar(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(Bo(t))||dw(e).getPropertyValue(Bo(t));Object.keys(t).forEach(function(i){var o=t[i];!o&&o!==0?e.style.removeProperty(Bo(i)):vw(i)?r+=i+"("+o+") ":n+=Bo(i)+": "+o+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}var Yg={exports:{}},yw="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",xw=yw,ww=xw;function Xg(){}function qg(){}qg.resetWarningCache=Xg;var Sw=function(){function e(r,i,o,l,a,u){if(u!==ww){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:qg,resetWarningCache:Xg};return n.PropTypes=n,n};Yg.exports=Sw();var kw=Yg.exports;const dn=ri(kw),Zd={disabled:!1},Zg=an.createContext(null);var Cw=function(t){return t.scrollTop},Li="unmounted",Jn="exited",On="entering",er="entered",zs="exiting",Sn=function(e){sw(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var l=i,a=l&&!l.isMounting?r.enter:r.appear,u;return o.appearStatus=null,r.in?a?(u=Jn,o.appearStatus=On):u=er:r.unmountOnExit||r.mountOnEnter?u=Li:u=Jn,o.state={status:u},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var l=i.in;return l&&o.status===Li?{status:Jn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var l=this.state.status;this.props.in?l!==On&&l!==er&&(o=On):(l===On||l===er)&&(o=zs)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,l,a;return o=l=a=i,i!=null&&typeof i!="number"&&(o=i.exit,l=i.enter,a=i.appear!==void 0?i.appear:l),{exit:o,enter:l,appear:a}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===On){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:Ar.findDOMNode(this);l&&Cw(l)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Jn&&this.setState({status:Li})},n.performEnter=function(i){var o=this,l=this.props.enter,a=this.context?this.context.isMounting:i,u=this.props.nodeRef?[a]:[Ar.findDOMNode(this),a],s=u[0],c=u[1],f=this.getTimeouts(),d=a?f.appear:f.enter;if(!i&&!l||Zd.disabled){this.safeSetState({status:er},function(){o.props.onEntered(s)});return}this.props.onEnter(s,c),this.safeSetState({status:On},function(){o.props.onEntering(s,c),o.onTransitionEnd(d,function(){o.safeSetState({status:er},function(){o.props.onEntered(s,c)})})})},n.performExit=function(){var i=this,o=this.props.exit,l=this.getTimeouts(),a=this.props.nodeRef?void 0:Ar.findDOMNode(this);if(!o||Zd.disabled){this.safeSetState({status:Jn},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:zs},function(){i.props.onExiting(a),i.onTransitionEnd(l.exit,function(){i.safeSetState({status:Jn},function(){i.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,l=!0;return this.nextCallback=function(a){l&&(l=!1,o.nextCallback=null,i(a))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var l=this.props.nodeRef?this.props.nodeRef.current:Ar.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!l||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],s=u[0],c=u[1];this.props.addEndListener(s,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Li)return null;var o=this.props,l=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var a=Qg(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return an.createElement(Zg.Provider,{value:null},typeof l=="function"?l(i,a):an.cloneElement(an.Children.only(l),a))},t}(an.Component);Sn.contextType=Zg;Sn.propTypes={};function xr(){}Sn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:xr,onEntering:xr,onEntered:xr,onExit:xr,onExiting:xr,onExited:xr};Sn.UNMOUNTED=Li;Sn.EXITED=Jn;Sn.ENTERING=On;Sn.ENTERED=er;Sn.EXITING=zs;const Ew=Sn,ai=!!(typeof window<"u"&&window.document&&window.document.createElement);var $s=!1,Vs=!1;try{var xu={get passive(){return $s=!0},get once(){return Vs=$s=!0}};ai&&(window.addEventListener("test",xu,xu),window.removeEventListener("test",xu,!0))}catch{}function Jg(e,t,n,r){if(r&&typeof r!="boolean"&&!Vs){var i=r.once,o=r.capture,l=n;!Vs&&i&&(l=n.__once||function a(u){this.removeEventListener(t,a,o),n.call(this,u)},n.__once=l),e.addEventListener(t,l,$s?r:o)}e.addEventListener(t,n,r)}function Bs(e,t,n,r){var i=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)}function Bl(e,t,n,r){return Jg(e,t,n,r),function(){Bs(e,t,n,r)}}function bw(e,t,n,r){if(n===void 0&&(n=!1),r===void 0&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,n,r),e.dispatchEvent(i)}}function Ow(e){var t=ar(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function Tw(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||bw(e,"transitionend",!0)},t+n),o=Bl(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),o()}}function ev(e,t,n,r){n==null&&(n=Ow(e)||0);var i=Tw(e,n,r),o=Bl(e,"transitionend",t);return function(){i(),o()}}function Jd(e,t){const n=ar(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function Iw(e,t){const n=Jd(e,"transitionDuration"),r=Jd(e,"transitionDelay"),i=ev(e,o=>{o.target===e&&(i(),t(o))},n+r)}function Pw(e){e.offsetHeight}const ep=e=>!e||typeof e=="function"?e:t=>{e.current=t};function Rw(e,t){const n=ep(e),r=ep(t);return i=>{n&&n(i),r&&r(i)}}function Ca(e,t){return x.useMemo(()=>Rw(e,t),[e,t])}function Lw(e){return e&&"setState"in e?Ar.findDOMNode(e):e??null}const Nw=an.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:o,addEndListener:l,children:a,childRef:u,...s},c)=>{const f=x.useRef(null),d=Ca(f,u),p=C=>{d(Lw(C))},g=C=>O=>{C&&f.current&&C(f.current,O)},v=x.useCallback(g(e),[e]),k=x.useCallback(g(t),[t]),h=x.useCallback(g(n),[n]),m=x.useCallback(g(r),[r]),y=x.useCallback(g(i),[i]),E=x.useCallback(g(o),[o]),T=x.useCallback(g(l),[l]);return b.jsx(Ew,{ref:c,...s,onEnter:v,onEntered:h,onEntering:k,onExit:m,onExited:E,onExiting:y,addEndListener:T,nodeRef:f,children:typeof a=="function"?(C,O)=>a(C,{...O,ref:p}):an.cloneElement(a,{ref:p})})}),Mw=Nw;function Dw(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e},[e]),t}function Qt(e){const t=Dw(e);return x.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const af=e=>x.forwardRef((t,n)=>b.jsx("div",{...t,ref:n,className:J(t.className,e)}));function _w(){return x.useState(null)}function Fw(){const e=x.useRef(!0),t=x.useRef(()=>e.current);return x.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function Aw(e){const t=x.useRef(null);return x.useEffect(()=>{t.current=e}),t.current}const jw=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",zw=typeof document<"u",tp=zw||jw?x.useLayoutEffect:x.useEffect,$w=["as","disabled"];function Vw(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function Bw(e){return!e||e.trim()==="#"}function tv({tagName:e,disabled:t,href:n,target:r,rel:i,role:o,onClick:l,tabIndex:a=0,type:u}){e||(n!=null||r!=null||i!=null?e="a":e="button");const s={tagName:e};if(e==="button")return[{type:u||"button",disabled:t},s];const c=d=>{if((t||e==="a"&&Bw(n))&&d.preventDefault(),t){d.stopPropagation();return}l==null||l(d)},f=d=>{d.key===" "&&(d.preventDefault(),c(d))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:o??"button",disabled:void 0,tabIndex:t?void 0:a,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?i:void 0,onClick:c,onKeyDown:f},s]}const Uw=x.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=Vw(e,$w);const[o,{tagName:l}]=tv(Object.assign({tagName:n,disabled:r},i));return b.jsx(l,Object.assign({},i,o,{ref:t}))});Uw.displayName="Button";const Hw={[On]:"show",[er]:"show"},nv=x.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...i},o)=>{const l={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},a=x.useCallback((u,s)=>{Pw(u),r==null||r(u,s)},[r]);return b.jsx(Mw,{ref:o,addEndListener:Iw,...l,onEnter:a,childRef:t.ref,children:(u,s)=>x.cloneElement(t,{...s,className:J("fade",e,t.props.className,Hw[u],n[u])})})});nv.displayName="Fade";const rv=nv,Ww={"aria-label":dn.string,onClick:dn.func,variant:dn.oneOf(["white"])},uf=x.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>b.jsx("button",{ref:i,type:"button",className:J("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));uf.displayName="CloseButton";uf.propTypes=Ww;const Qw=uf,iv=x.forwardRef(({bsPrefix:e,bg:t="primary",pill:n=!1,text:r,className:i,as:o="span",...l},a)=>{const u=oe(e,"badge");return b.jsx(o,{ref:a,...l,className:J(i,u,n&&"rounded-pill",r&&`text-${r}`,t&&`bg-${t}`)})});iv.displayName="Badge";const ov=iv,lv=x.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:i=!1,disabled:o=!1,className:l,...a},u)=>{const s=oe(t,"btn"),[c,{tagName:f}]=tv({tagName:e,disabled:o,...a}),d=f;return b.jsx(d,{...c,...a,ref:u,disabled:o,className:J(l,s,i&&"active",n&&`${s}-${n}`,r&&`${s}-${r}`,a.href&&o&&"disabled")})});lv.displayName="Button";const pn=lv,av=x.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=oe(t,"card-body"),b.jsx(n,{ref:i,className:J(e,t),...r})));av.displayName="CardBody";const uv=av,sv=x.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=oe(t,"card-footer"),b.jsx(n,{ref:i,className:J(e,t),...r})));sv.displayName="CardFooter";const Kw=sv,cv=x.createContext(null);cv.displayName="CardHeaderContext";const Gw=cv,fv=x.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},i)=>{const o=oe(e,"card-header"),l=x.useMemo(()=>({cardHeaderBsPrefix:o}),[o]);return b.jsx(Gw.Provider,{value:l,children:b.jsx(n,{ref:i,...r,className:J(t,o)})})});fv.displayName="CardHeader";const Yw=fv,dv=x.forwardRef(({bsPrefix:e,className:t,variant:n,as:r="img",...i},o)=>{const l=oe(e,"card-img");return b.jsx(r,{ref:o,className:J(n?`${l}-${n}`:l,t),...i})});dv.displayName="CardImg";const Xw=dv,pv=x.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=oe(t,"card-img-overlay"),b.jsx(n,{ref:i,className:J(e,t),...r})));pv.displayName="CardImgOverlay";const qw=pv,hv=x.forwardRef(({className:e,bsPrefix:t,as:n="a",...r},i)=>(t=oe(t,"card-link"),b.jsx(n,{ref:i,className:J(e,t),...r})));hv.displayName="CardLink";const Zw=hv,Jw=af("h6"),mv=x.forwardRef(({className:e,bsPrefix:t,as:n=Jw,...r},i)=>(t=oe(t,"card-subtitle"),b.jsx(n,{ref:i,className:J(e,t),...r})));mv.displayName="CardSubtitle";const eS=mv,gv=x.forwardRef(({className:e,bsPrefix:t,as:n="p",...r},i)=>(t=oe(t,"card-text"),b.jsx(n,{ref:i,className:J(e,t),...r})));gv.displayName="CardText";const tS=gv,nS=af("h5"),vv=x.forwardRef(({className:e,bsPrefix:t,as:n=nS,...r},i)=>(t=oe(t,"card-title"),b.jsx(n,{ref:i,className:J(e,t),...r})));vv.displayName="CardTitle";const rS=vv,yv=x.forwardRef(({bsPrefix:e,className:t,bg:n,text:r,border:i,body:o=!1,children:l,as:a="div",...u},s)=>{const c=oe(e,"card");return b.jsx(a,{ref:s,...u,className:J(t,c,n&&`bg-${n}`,r&&`text-${r}`,i&&`border-${i}`),children:o?b.jsx(uv,{children:l}):l})});yv.displayName="Card";const np=Object.assign(yv,{Img:Xw,Title:rS,Subtitle:eS,Body:uv,Link:Zw,Text:tS,Header:Yw,Footer:Kw,ImgOverlay:qw});function iS(e){const t=x.useRef(e);return t.current=e,t}function xv(e){const t=iS(e);x.useEffect(()=>()=>t.current(),[])}function oS(e,t){return x.Children.toArray(e).some(n=>x.isValidElement(n)&&n.type===t)}function lS({as:e,bsPrefix:t,className:n,...r}){t=oe(t,"col");const i=of(),o=lf(),l=[],a=[];return i.forEach(u=>{const s=r[u];delete r[u];let c,f,d;typeof s=="object"&&s!=null?{span:c,offset:f,order:d}=s:c=s;const p=u!==o?`-${u}`:"";c&&l.push(c===!0?`${t}${p}`:`${t}${p}-${c}`),d!=null&&a.push(`order${p}-${d}`),f!=null&&a.push(`offset${p}-${f}`)}),[{...r,className:J(n,...l,...a)},{as:e,bsPrefix:t,spans:l}]}const wv=x.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:o,spans:l}]=lS(e);return b.jsx(i,{...r,ref:t,className:J(n,!l.length&&o)})});wv.displayName="Col";const bt=wv,Sv=x.forwardRef(({bsPrefix:e,fluid:t=!1,as:n="div",className:r,...i},o)=>{const l=oe(e,"container"),a=typeof t=="string"?`-${t}`:"-fluid";return b.jsx(n,{ref:o,...i,className:J(r,t?`${l}${a}`:l)})});Sv.displayName="Container";const aS=Sv;var uS=Function.prototype.bind.call(Function.prototype.call,[].slice);function wr(e,t){return uS(e.querySelectorAll(t))}function rp(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}const sS="data-rr-ui-";function cS(e){return`${sS}${e}`}const kv=x.createContext(ai?window:void 0);kv.Provider;function sf(){return x.useContext(kv)}const fS={type:dn.string,tooltip:dn.bool,as:dn.elementType},cf=x.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...i},o)=>b.jsx(e,{...i,ref:o,className:J(t,`${n}-${r?"tooltip":"feedback"}`)}));cf.displayName="Feedback";cf.propTypes=fS;const Cv=cf,dS=x.createContext({}),xn=dS,Ev=x.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:i=!1,isInvalid:o=!1,as:l="input",...a},u)=>{const{controlId:s}=x.useContext(xn);return t=oe(t,"form-check-input"),b.jsx(l,{...a,ref:u,type:r,id:e||s,className:J(n,t,i&&"is-valid",o&&"is-invalid")})});Ev.displayName="FormCheckInput";const bv=Ev,Ov=x.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},i)=>{const{controlId:o}=x.useContext(xn);return e=oe(e,"form-check-label"),b.jsx("label",{...r,ref:i,htmlFor:n||o,className:J(t,e)})});Ov.displayName="FormCheckLabel";const Us=Ov,Tv=x.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:i=!1,disabled:o=!1,isValid:l=!1,isInvalid:a=!1,feedbackTooltip:u=!1,feedback:s,feedbackType:c,className:f,style:d,title:p="",type:g="checkbox",label:v,children:k,as:h="input",...m},y)=>{t=oe(t,"form-check"),n=oe(n,"form-switch");const{controlId:E}=x.useContext(xn),T=x.useMemo(()=>({controlId:e||E}),[E,e]),C=!k&&v!=null&&v!==!1||oS(k,Us),O=b.jsx(bv,{...m,type:g==="switch"?"checkbox":g,ref:y,isValid:l,isInvalid:a,disabled:o,as:h});return b.jsx(xn.Provider,{value:T,children:b.jsx("div",{style:d,className:J(f,C&&t,r&&`${t}-inline`,i&&`${t}-reverse`,g==="switch"&&n),children:k||b.jsxs(b.Fragment,{children:[O,C&&b.jsx(Us,{title:p,children:v}),s&&b.jsx(Cv,{type:c,tooltip:u,children:s})]})})})});Tv.displayName="FormCheck";const Ul=Object.assign(Tv,{Input:bv,Label:Us}),Iv=x.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:i,className:o,isValid:l=!1,isInvalid:a=!1,plaintext:u,readOnly:s,as:c="input",...f},d)=>{const{controlId:p}=x.useContext(xn);return e=oe(e,"form-control"),b.jsx(c,{...f,type:t,size:r,ref:d,readOnly:s,id:i||p,className:J(o,u?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,l&&"is-valid",a&&"is-invalid")})});Iv.displayName="FormControl";const pS=Object.assign(Iv,{Feedback:Cv}),Pv=x.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=oe(t,"form-floating"),b.jsx(n,{ref:i,className:J(e,t),...r})));Pv.displayName="FormFloating";const hS=Pv,Rv=x.forwardRef(({controlId:e,as:t="div",...n},r)=>{const i=x.useMemo(()=>({controlId:e}),[e]);return b.jsx(xn.Provider,{value:i,children:b.jsx(t,{...n,ref:r})})});Rv.displayName="FormGroup";const Lv=Rv,Nv=x.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:i,htmlFor:o,...l},a)=>{const{controlId:u}=x.useContext(xn);t=oe(t,"form-label");let s="col-form-label";typeof n=="string"&&(s=`${s} ${s}-${n}`);const c=J(i,t,r&&"visually-hidden",n&&s);return o=o||u,n?b.jsx(bt,{ref:a,as:"label",className:c,htmlFor:o,...l}):b.jsx(e,{ref:a,className:c,htmlFor:o,...l})});Nv.displayName="FormLabel";const mS=Nv,Mv=x.forwardRef(({bsPrefix:e,className:t,id:n,...r},i)=>{const{controlId:o}=x.useContext(xn);return e=oe(e,"form-range"),b.jsx("input",{...r,type:"range",ref:i,className:J(t,e),id:n||o})});Mv.displayName="FormRange";const gS=Mv,Dv=x.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:i=!1,isInvalid:o=!1,id:l,...a},u)=>{const{controlId:s}=x.useContext(xn);return e=oe(e,"form-select"),b.jsx("select",{...a,size:n,ref:u,className:J(r,e,t&&`${e}-${t}`,i&&"is-valid",o&&"is-invalid"),id:l||s})});Dv.displayName="FormSelect";const vS=Dv,_v=x.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...i},o)=>(e=oe(e,"form-text"),b.jsx(n,{...i,ref:o,className:J(t,e,r&&"text-muted")})));_v.displayName="FormText";const yS=_v,Fv=x.forwardRef((e,t)=>b.jsx(Ul,{...e,ref:t,type:"switch"}));Fv.displayName="Switch";const xS=Object.assign(Fv,{Input:Ul.Input,Label:Ul.Label}),Av=x.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:i,...o},l)=>(e=oe(e,"form-floating"),b.jsxs(Lv,{ref:l,className:J(t,e),controlId:r,...o,children:[n,b.jsx("label",{htmlFor:r,children:i})]})));Av.displayName="FloatingLabel";const wS=Av,SS={_ref:dn.any,validated:dn.bool,as:dn.elementType},ff=x.forwardRef(({className:e,validated:t,as:n="form",...r},i)=>b.jsx(n,{...r,ref:i,className:J(e,t&&"was-validated")}));ff.displayName="Form";ff.propTypes=SS;const $e=Object.assign(ff,{Group:Lv,Control:pS,Floating:hS,Check:Ul,Switch:xS,Label:mS,Text:yS,Range:gS,Select:vS,FloatingLabel:wS});var Uo;function ip(e){if((!Uo&&Uo!==0||e)&&ai){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Uo=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Uo}function wu(e){e===void 0&&(e=ka());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function kS(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const op=cS("modal-open");class CS{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return kS(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();t.style={overflow:i.style.overflow,[r]:i.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(ar(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(op,""),ar(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(op),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const df=CS,Su=(e,t)=>ai?e==null?(t||ka()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function ES(e,t){const n=sf(),[r,i]=x.useState(()=>Su(e,n==null?void 0:n.document));if(!r){const o=Su(e);o&&i(o)}return x.useEffect(()=>{t&&r&&t(r)},[t,r]),x.useEffect(()=>{const o=Su(e);o!==r&&i(o)},[e,r]),r}function bS({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const o=x.useRef(null),l=x.useRef(t),a=Qt(n);x.useEffect(()=>{t?l.current=!0:a(o.current)},[t,a]);const u=Ca(o,e.ref),s=x.cloneElement(e,{ref:u});return t?s:i||!l.current&&r?null:s}function OS({in:e,onTransition:t}){const n=x.useRef(null),r=x.useRef(!0),i=Qt(t);return tp(()=>{if(!n.current)return;let o=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>o}),()=>{o=!0}},[e,i]),tp(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function TS({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[o,l]=x.useState(!t);t&&o&&l(!1);const a=OS({in:!!t,onTransition:s=>{const c=()=>{s.isStale()||(s.in?r==null||r(s.element,s.initial):(l(!0),n==null||n(s.element)))};Promise.resolve(i(s)).then(c,f=>{throw s.in||l(!0),f})}}),u=Ca(a,e.ref);return o&&!t?null:x.cloneElement(e,{ref:u})}function lp(e,t,n){return e?b.jsx(e,Object.assign({},n)):t?b.jsx(TS,Object.assign({},n,{transition:t})):b.jsx(bS,Object.assign({},n))}function IS(e){return e.code==="Escape"||e.keyCode===27}const PS=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function RS(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}let ku;function LS(e){return ku||(ku=new df({ownerDocument:e==null?void 0:e.document})),ku}function NS(e){const t=sf(),n=e||LS(t),r=x.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:x.useCallback(i=>{r.current.dialog=i},[]),setBackdropRef:x.useCallback(i=>{r.current.backdrop=i},[])})}const jv=x.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:i,style:o,children:l,backdrop:a=!0,keyboard:u=!0,onBackdropClick:s,onEscapeKeyDown:c,transition:f,runTransition:d,backdropTransition:p,runBackdropTransition:g,autoFocus:v=!0,enforceFocus:k=!0,restoreFocus:h=!0,restoreFocusOptions:m,renderDialog:y,renderBackdrop:E=fe=>b.jsx("div",Object.assign({},fe)),manager:T,container:C,onShow:O,onHide:P=()=>{},onExit:_,onExited:M,onExiting:A,onEnter:D,onEntering:Q,onEntered:Z}=e,$=RS(e,PS);const H=sf(),ee=ES(C),R=NS(T),z=Fw(),w=Aw(n),[G,V]=x.useState(!n),S=x.useRef(null);x.useImperativeHandle(t,()=>R,[R]),ai&&!w&&n&&(S.current=wu(H==null?void 0:H.document)),n&&G&&V(!1);const re=Qt(()=>{if(R.add(),He.current=Bl(document,"keydown",Ee),De.current=Bl(document,"focus",()=>setTimeout(X),!0),O&&O(),v){var fe,Gn;const Yn=wu((fe=(Gn=R.dialog)==null?void 0:Gn.ownerDocument)!=null?fe:H==null?void 0:H.document);R.dialog&&Yn&&!rp(R.dialog,Yn)&&(S.current=Yn,R.dialog.focus())}}),pe=Qt(()=>{if(R.remove(),He.current==null||He.current(),De.current==null||De.current(),h){var fe;(fe=S.current)==null||fe.focus==null||fe.focus(m),S.current=null}});x.useEffect(()=>{!n||!ee||re()},[n,ee,re]),x.useEffect(()=>{G&&pe()},[G,pe]),xv(()=>{pe()});const X=Qt(()=>{if(!k||!z()||!R.isTopModal())return;const fe=wu(H==null?void 0:H.document);R.dialog&&fe&&!rp(R.dialog,fe)&&R.dialog.focus()}),we=Qt(fe=>{fe.target===fe.currentTarget&&(s==null||s(fe),a===!0&&P())}),Ee=Qt(fe=>{u&&IS(fe)&&R.isTopModal()&&(c==null||c(fe),fe.defaultPrevented||P())}),De=x.useRef(),He=x.useRef(),St=(...fe)=>{V(!0),M==null||M(...fe)};if(!ee)return null;const en=Object.assign({role:r,ref:R.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},$,{style:o,className:i,tabIndex:-1});let tn=y?y(en):b.jsx("div",Object.assign({},en,{children:x.cloneElement(l,{role:"document"})}));tn=lp(f,d,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:_,onExiting:A,onExited:St,onEnter:D,onEntering:Q,onEntered:Z,children:tn});let st=null;return a&&(st=E({ref:R.setBackdropRef,onClick:we}),st=lp(p,g,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:st})),b.jsx(b.Fragment,{children:Ar.createPortal(b.jsxs(b.Fragment,{children:[st,tn]}),ee)})});jv.displayName="Modal";const MS=Object.assign(jv,{Manager:df});function DS(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function _S(e,t){e.classList?e.classList.add(t):DS(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function ap(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function FS(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=ap(e.className,t):e.setAttribute("class",ap(e.className&&e.className.baseVal||"",t))}const Sr={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class AS extends df{adjustAndStore(t,n,r){const i=n.style[t];n.dataset[t]=i,ar(n,{[t]:`${parseFloat(ar(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],ar(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(_S(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";wr(n,Sr.FIXED_CONTENT).forEach(o=>this.adjustAndStore(r,o,t.scrollBarWidth)),wr(n,Sr.STICKY_CONTENT).forEach(o=>this.adjustAndStore(i,o,-t.scrollBarWidth)),wr(n,Sr.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(i,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();FS(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";wr(n,Sr.FIXED_CONTENT).forEach(o=>this.restore(r,o)),wr(n,Sr.STICKY_CONTENT).forEach(o=>this.restore(i,o)),wr(n,Sr.NAVBAR_TOGGLER).forEach(o=>this.restore(i,o))}}let Cu;function jS(e){return Cu||(Cu=new AS(e)),Cu}const zv=x.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=oe(t,"modal-body"),b.jsx(n,{ref:i,className:J(e,t),...r})));zv.displayName="ModalBody";const zS=zv,$S=x.createContext({onHide(){}}),$v=$S,Vv=x.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:o,children:l,scrollable:a,...u},s)=>{e=oe(e,"modal");const c=`${e}-dialog`,f=typeof o=="string"?`${e}-fullscreen-${o}`:`${e}-fullscreen`;return b.jsx("div",{...u,ref:s,className:J(c,t,i&&`${e}-${i}`,r&&`${c}-centered`,a&&`${c}-scrollable`,o&&f),children:b.jsx("div",{className:J(`${e}-content`,n),children:l})})});Vv.displayName="ModalDialog";const Bv=Vv,Uv=x.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=oe(t,"modal-footer"),b.jsx(n,{ref:i,className:J(e,t),...r})));Uv.displayName="ModalFooter";const VS=Uv,BS=x.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...o},l)=>{const a=x.useContext($v),u=Qt(()=>{a==null||a.onHide(),r==null||r()});return b.jsxs("div",{ref:l,...o,children:[i,n&&b.jsx(Qw,{"aria-label":e,variant:t,onClick:u})]})}),US=BS,Hv=x.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},o)=>(e=oe(e,"modal-header"),b.jsx(US,{ref:o,...i,className:J(t,e),closeLabel:n,closeButton:r})));Hv.displayName="ModalHeader";const HS=Hv,WS=af("h4"),Wv=x.forwardRef(({className:e,bsPrefix:t,as:n=WS,...r},i)=>(t=oe(t,"modal-title"),b.jsx(n,{ref:i,className:J(e,t),...r})));Wv.displayName="ModalTitle";const QS=Wv;function KS(e){return b.jsx(rv,{...e,timeout:null})}function GS(e){return b.jsx(rv,{...e,timeout:null})}const Qv=x.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:o,dialogAs:l=Bv,"aria-labelledby":a,"aria-describedby":u,"aria-label":s,show:c=!1,animation:f=!0,backdrop:d=!0,keyboard:p=!0,onEscapeKeyDown:g,onShow:v,onHide:k,container:h,autoFocus:m=!0,enforceFocus:y=!0,restoreFocus:E=!0,restoreFocusOptions:T,onEntered:C,onExit:O,onExiting:P,onEnter:_,onEntering:M,onExited:A,backdropClassName:D,manager:Q,...Z},$)=>{const[H,ee]=x.useState({}),[R,z]=x.useState(!1),w=x.useRef(!1),G=x.useRef(!1),V=x.useRef(null),[S,re]=_w(),pe=Ca($,re),X=Qt(k),we=cw();e=oe(e,"modal");const Ee=x.useMemo(()=>({onHide:X}),[X]);function De(){return Q||jS({isRTL:we})}function He(I){if(!ai)return;const F=De().getScrollbarWidth()>0,Y=I.scrollHeight>ka(I).documentElement.clientHeight;ee({paddingRight:F&&!Y?ip():void 0,paddingLeft:!F&&Y?ip():void 0})}const St=Qt(()=>{S&&He(S.dialog)});xv(()=>{Bs(window,"resize",St),V.current==null||V.current()});const en=()=>{w.current=!0},tn=I=>{w.current&&S&&I.target===S.dialog&&(G.current=!0),w.current=!1},st=()=>{z(!0),V.current=ev(S.dialog,()=>{z(!1)})},fe=I=>{I.target===I.currentTarget&&st()},Gn=I=>{if(d==="static"){fe(I);return}if(G.current||I.target!==I.currentTarget){G.current=!1;return}k==null||k()},Yn=I=>{p?g==null||g(I):(I.preventDefault(),d==="static"&&st())},ko=(I,F)=>{I&&He(I),_==null||_(I,F)},Co=I=>{V.current==null||V.current(),O==null||O(I)},Ua=(I,F)=>{M==null||M(I,F),Jg(window,"resize",St)},Ha=I=>{I&&(I.style.display=""),A==null||A(I),Bs(window,"resize",St)},Wa=x.useCallback(I=>b.jsx("div",{...I,className:J(`${e}-backdrop`,D,!f&&"show")}),[f,D,e]),Eo={...n,...H};Eo.display="block";const Qa=I=>b.jsx("div",{role:"dialog",...I,style:Eo,className:J(t,e,R&&`${e}-static`,!f&&"show"),onClick:d?Gn:void 0,onMouseUp:tn,"aria-label":s,"aria-labelledby":a,"aria-describedby":u,children:b.jsx(l,{...Z,onMouseDown:en,className:r,contentClassName:i,children:o})});return b.jsx($v.Provider,{value:Ee,children:b.jsx(MS,{show:c,ref:pe,backdrop:d,container:h,keyboard:!0,autoFocus:m,enforceFocus:y,restoreFocus:E,restoreFocusOptions:T,onEscapeKeyDown:Yn,onShow:v,onHide:k,onEnter:ko,onEntering:Ua,onEntered:C,onExit:Co,onExiting:P,onExited:Ha,manager:De(),transition:f?KS:void 0,backdropTransition:f?GS:void 0,renderBackdrop:Wa,renderDialog:Qa})})});Qv.displayName="Modal";const Ho=Object.assign(Qv,{Body:zS,Header:HS,Title:QS,Footer:VS,Dialog:Bv,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),Kv=x.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},i)=>{const o=oe(e,"row"),l=of(),a=lf(),u=`${o}-cols`,s=[];return l.forEach(c=>{const f=r[c];delete r[c];let d;f!=null&&typeof f=="object"?{cols:d}=f:d=f;const p=c!==a?`-${c}`:"";d!=null&&s.push(`${u}${p}-${d}`)}),b.jsx(n,{ref:i,...r,className:J(t,o,...s)})});Kv.displayName="Row";const cn=Kv;function YS(e,t=Kg,n=Gg){const r=[];return Object.entries(e).forEach(([i,o])=>{o!=null&&(typeof o=="object"?t.forEach(l=>{const a=o[l];if(a!=null){const u=l!==n?`-${l}`:"";r.push(`${i}${u}-${a}`)}}):r.push(`${i}-${o}`))}),r}const Gv=x.forwardRef(({as:e="div",bsPrefix:t,className:n,direction:r,gap:i,...o},l)=>{t=oe(t,r==="horizontal"?"hstack":"vstack");const a=of(),u=lf();return b.jsx(e,{...o,ref:l,className:J(n,t,...YS({gap:i},a,u))})});Gv.displayName="Stack";const Un=Gv;/** +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i=0)&&(n[i]=e[i]);return n}function Vl(e,t){return Vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Vl(e,t)}function cw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Vl(e,t)}const Kg=["xxl","xl","lg","md","sm","xs"],Gg="xs",Sa=x.createContext({prefixes:{},breakpoints:Kg,minBreakpoint:Gg});function oe(e,t){const{prefixes:n}=x.useContext(Sa);return e||n[t]||t}function of(){const{breakpoints:e}=x.useContext(Sa);return e}function lf(){const{minBreakpoint:e}=x.useContext(Sa);return e}function fw(){const{dir:e}=x.useContext(Sa);return e==="rtl"}function ka(e){return e&&e.ownerDocument||document}function dw(e){var t=ka(e);return t&&t.defaultView||window}function pw(e,t){return dw(e).getComputedStyle(e,t)}var hw=/([A-Z])/g;function mw(e){return e.replace(hw,"-$1").toLowerCase()}var gw=/^ms-/;function Bo(e){return mw(e).replace(gw,"-ms-")}var vw=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function yw(e){return!!(e&&vw.test(e))}function ur(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(Bo(t))||pw(e).getPropertyValue(Bo(t));Object.keys(t).forEach(function(i){var o=t[i];!o&&o!==0?e.style.removeProperty(Bo(i)):yw(i)?r+=i+"("+o+") ":n+=Bo(i)+": "+o+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}var Yg={exports:{}},xw="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ww=xw,Sw=ww;function Xg(){}function qg(){}qg.resetWarningCache=Xg;var kw=function(){function e(r,i,o,l,a,u){if(u!==Sw){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:qg,resetWarningCache:Xg};return n.PropTypes=n,n};Yg.exports=kw();var Cw=Yg.exports;const dn=ri(Cw),Zd={disabled:!1},Zg=an.createContext(null);var Ew=function(t){return t.scrollTop},Li="unmounted",Jn="exited",On="entering",tr="entered",zs="exiting",Sn=function(e){cw(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var l=i,a=l&&!l.isMounting?r.enter:r.appear,u;return o.appearStatus=null,r.in?a?(u=Jn,o.appearStatus=On):u=tr:r.unmountOnExit||r.mountOnEnter?u=Li:u=Jn,o.state={status:u},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var l=i.in;return l&&o.status===Li?{status:Jn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var l=this.state.status;this.props.in?l!==On&&l!==tr&&(o=On):(l===On||l===tr)&&(o=zs)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,l,a;return o=l=a=i,i!=null&&typeof i!="number"&&(o=i.exit,l=i.enter,a=i.appear!==void 0?i.appear:l),{exit:o,enter:l,appear:a}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===On){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:Ar.findDOMNode(this);l&&Ew(l)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Jn&&this.setState({status:Li})},n.performEnter=function(i){var o=this,l=this.props.enter,a=this.context?this.context.isMounting:i,u=this.props.nodeRef?[a]:[Ar.findDOMNode(this),a],s=u[0],c=u[1],f=this.getTimeouts(),d=a?f.appear:f.enter;if(!i&&!l||Zd.disabled){this.safeSetState({status:tr},function(){o.props.onEntered(s)});return}this.props.onEnter(s,c),this.safeSetState({status:On},function(){o.props.onEntering(s,c),o.onTransitionEnd(d,function(){o.safeSetState({status:tr},function(){o.props.onEntered(s,c)})})})},n.performExit=function(){var i=this,o=this.props.exit,l=this.getTimeouts(),a=this.props.nodeRef?void 0:Ar.findDOMNode(this);if(!o||Zd.disabled){this.safeSetState({status:Jn},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:zs},function(){i.props.onExiting(a),i.onTransitionEnd(l.exit,function(){i.safeSetState({status:Jn},function(){i.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,l=!0;return this.nextCallback=function(a){l&&(l=!1,o.nextCallback=null,i(a))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var l=this.props.nodeRef?this.props.nodeRef.current:Ar.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!l||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],s=u[0],c=u[1];this.props.addEndListener(s,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Li)return null;var o=this.props,l=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var a=Qg(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return an.createElement(Zg.Provider,{value:null},typeof l=="function"?l(i,a):an.cloneElement(an.Children.only(l),a))},t}(an.Component);Sn.contextType=Zg;Sn.propTypes={};function wr(){}Sn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:wr,onEntering:wr,onEntered:wr,onExit:wr,onExiting:wr,onExited:wr};Sn.UNMOUNTED=Li;Sn.EXITED=Jn;Sn.ENTERING=On;Sn.ENTERED=tr;Sn.EXITING=zs;const bw=Sn,ai=!!(typeof window<"u"&&window.document&&window.document.createElement);var $s=!1,Vs=!1;try{var xu={get passive(){return $s=!0},get once(){return Vs=$s=!0}};ai&&(window.addEventListener("test",xu,xu),window.removeEventListener("test",xu,!0))}catch{}function Jg(e,t,n,r){if(r&&typeof r!="boolean"&&!Vs){var i=r.once,o=r.capture,l=n;!Vs&&i&&(l=n.__once||function a(u){this.removeEventListener(t,a,o),n.call(this,u)},n.__once=l),e.addEventListener(t,l,$s?r:o)}e.addEventListener(t,n,r)}function Bs(e,t,n,r){var i=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)}function Bl(e,t,n,r){return Jg(e,t,n,r),function(){Bs(e,t,n,r)}}function Ow(e,t,n,r){if(n===void 0&&(n=!1),r===void 0&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,n,r),e.dispatchEvent(i)}}function Tw(e){var t=ur(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function Iw(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||Ow(e,"transitionend",!0)},t+n),o=Bl(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),o()}}function ev(e,t,n,r){n==null&&(n=Tw(e)||0);var i=Iw(e,n,r),o=Bl(e,"transitionend",t);return function(){i(),o()}}function Jd(e,t){const n=ur(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function Pw(e,t){const n=Jd(e,"transitionDuration"),r=Jd(e,"transitionDelay"),i=ev(e,o=>{o.target===e&&(i(),t(o))},n+r)}function Rw(e){e.offsetHeight}const ep=e=>!e||typeof e=="function"?e:t=>{e.current=t};function Lw(e,t){const n=ep(e),r=ep(t);return i=>{n&&n(i),r&&r(i)}}function Ca(e,t){return x.useMemo(()=>Lw(e,t),[e,t])}function Nw(e){return e&&"setState"in e?Ar.findDOMNode(e):e??null}const Mw=an.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:o,addEndListener:l,children:a,childRef:u,...s},c)=>{const f=x.useRef(null),d=Ca(f,u),p=C=>{d(Nw(C))},g=C=>O=>{C&&f.current&&C(f.current,O)},v=x.useCallback(g(e),[e]),k=x.useCallback(g(t),[t]),h=x.useCallback(g(n),[n]),m=x.useCallback(g(r),[r]),y=x.useCallback(g(i),[i]),E=x.useCallback(g(o),[o]),T=x.useCallback(g(l),[l]);return b.jsx(bw,{ref:c,...s,onEnter:v,onEntered:h,onEntering:k,onExit:m,onExited:E,onExiting:y,addEndListener:T,nodeRef:f,children:typeof a=="function"?(C,O)=>a(C,{...O,ref:p}):an.cloneElement(a,{ref:p})})}),Dw=Mw;function _w(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e},[e]),t}function Qt(e){const t=_w(e);return x.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const af=e=>x.forwardRef((t,n)=>b.jsx("div",{...t,ref:n,className:J(t.className,e)}));function Fw(){return x.useState(null)}function Aw(){const e=x.useRef(!0),t=x.useRef(()=>e.current);return x.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function jw(e){const t=x.useRef(null);return x.useEffect(()=>{t.current=e}),t.current}const zw=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",$w=typeof document<"u",tp=$w||zw?x.useLayoutEffect:x.useEffect,Vw=["as","disabled"];function Bw(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function Uw(e){return!e||e.trim()==="#"}function tv({tagName:e,disabled:t,href:n,target:r,rel:i,role:o,onClick:l,tabIndex:a=0,type:u}){e||(n!=null||r!=null||i!=null?e="a":e="button");const s={tagName:e};if(e==="button")return[{type:u||"button",disabled:t},s];const c=d=>{if((t||e==="a"&&Uw(n))&&d.preventDefault(),t){d.stopPropagation();return}l==null||l(d)},f=d=>{d.key===" "&&(d.preventDefault(),c(d))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:o??"button",disabled:void 0,tabIndex:t?void 0:a,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?i:void 0,onClick:c,onKeyDown:f},s]}const Hw=x.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=Bw(e,Vw);const[o,{tagName:l}]=tv(Object.assign({tagName:n,disabled:r},i));return b.jsx(l,Object.assign({},i,o,{ref:t}))});Hw.displayName="Button";const Ww={[On]:"show",[tr]:"show"},nv=x.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...i},o)=>{const l={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},a=x.useCallback((u,s)=>{Rw(u),r==null||r(u,s)},[r]);return b.jsx(Dw,{ref:o,addEndListener:Pw,...l,onEnter:a,childRef:t.ref,children:(u,s)=>x.cloneElement(t,{...s,className:J("fade",e,t.props.className,Ww[u],n[u])})})});nv.displayName="Fade";const rv=nv,Qw={"aria-label":dn.string,onClick:dn.func,variant:dn.oneOf(["white"])},uf=x.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>b.jsx("button",{ref:i,type:"button",className:J("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));uf.displayName="CloseButton";uf.propTypes=Qw;const Kw=uf,iv=x.forwardRef(({bsPrefix:e,bg:t="primary",pill:n=!1,text:r,className:i,as:o="span",...l},a)=>{const u=oe(e,"badge");return b.jsx(o,{ref:a,...l,className:J(i,u,n&&"rounded-pill",r&&`text-${r}`,t&&`bg-${t}`)})});iv.displayName="Badge";const ov=iv,lv=x.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:i=!1,disabled:o=!1,className:l,...a},u)=>{const s=oe(t,"btn"),[c,{tagName:f}]=tv({tagName:e,disabled:o,...a}),d=f;return b.jsx(d,{...c,...a,ref:u,disabled:o,className:J(l,s,i&&"active",n&&`${s}-${n}`,r&&`${s}-${r}`,a.href&&o&&"disabled")})});lv.displayName="Button";const pn=lv,av=x.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=oe(t,"card-body"),b.jsx(n,{ref:i,className:J(e,t),...r})));av.displayName="CardBody";const uv=av,sv=x.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=oe(t,"card-footer"),b.jsx(n,{ref:i,className:J(e,t),...r})));sv.displayName="CardFooter";const Gw=sv,cv=x.createContext(null);cv.displayName="CardHeaderContext";const Yw=cv,fv=x.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},i)=>{const o=oe(e,"card-header"),l=x.useMemo(()=>({cardHeaderBsPrefix:o}),[o]);return b.jsx(Yw.Provider,{value:l,children:b.jsx(n,{ref:i,...r,className:J(t,o)})})});fv.displayName="CardHeader";const Xw=fv,dv=x.forwardRef(({bsPrefix:e,className:t,variant:n,as:r="img",...i},o)=>{const l=oe(e,"card-img");return b.jsx(r,{ref:o,className:J(n?`${l}-${n}`:l,t),...i})});dv.displayName="CardImg";const qw=dv,pv=x.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=oe(t,"card-img-overlay"),b.jsx(n,{ref:i,className:J(e,t),...r})));pv.displayName="CardImgOverlay";const Zw=pv,hv=x.forwardRef(({className:e,bsPrefix:t,as:n="a",...r},i)=>(t=oe(t,"card-link"),b.jsx(n,{ref:i,className:J(e,t),...r})));hv.displayName="CardLink";const Jw=hv,eS=af("h6"),mv=x.forwardRef(({className:e,bsPrefix:t,as:n=eS,...r},i)=>(t=oe(t,"card-subtitle"),b.jsx(n,{ref:i,className:J(e,t),...r})));mv.displayName="CardSubtitle";const tS=mv,gv=x.forwardRef(({className:e,bsPrefix:t,as:n="p",...r},i)=>(t=oe(t,"card-text"),b.jsx(n,{ref:i,className:J(e,t),...r})));gv.displayName="CardText";const nS=gv,rS=af("h5"),vv=x.forwardRef(({className:e,bsPrefix:t,as:n=rS,...r},i)=>(t=oe(t,"card-title"),b.jsx(n,{ref:i,className:J(e,t),...r})));vv.displayName="CardTitle";const iS=vv,yv=x.forwardRef(({bsPrefix:e,className:t,bg:n,text:r,border:i,body:o=!1,children:l,as:a="div",...u},s)=>{const c=oe(e,"card");return b.jsx(a,{ref:s,...u,className:J(t,c,n&&`bg-${n}`,r&&`text-${r}`,i&&`border-${i}`),children:o?b.jsx(uv,{children:l}):l})});yv.displayName="Card";const np=Object.assign(yv,{Img:qw,Title:iS,Subtitle:tS,Body:uv,Link:Jw,Text:nS,Header:Xw,Footer:Gw,ImgOverlay:Zw});function oS(e){const t=x.useRef(e);return t.current=e,t}function xv(e){const t=oS(e);x.useEffect(()=>()=>t.current(),[])}function lS(e,t){return x.Children.toArray(e).some(n=>x.isValidElement(n)&&n.type===t)}function aS({as:e,bsPrefix:t,className:n,...r}){t=oe(t,"col");const i=of(),o=lf(),l=[],a=[];return i.forEach(u=>{const s=r[u];delete r[u];let c,f,d;typeof s=="object"&&s!=null?{span:c,offset:f,order:d}=s:c=s;const p=u!==o?`-${u}`:"";c&&l.push(c===!0?`${t}${p}`:`${t}${p}-${c}`),d!=null&&a.push(`order${p}-${d}`),f!=null&&a.push(`offset${p}-${f}`)}),[{...r,className:J(n,...l,...a)},{as:e,bsPrefix:t,spans:l}]}const wv=x.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:o,spans:l}]=aS(e);return b.jsx(i,{...r,ref:t,className:J(n,!l.length&&o)})});wv.displayName="Col";const bt=wv,Sv=x.forwardRef(({bsPrefix:e,fluid:t=!1,as:n="div",className:r,...i},o)=>{const l=oe(e,"container"),a=typeof t=="string"?`-${t}`:"-fluid";return b.jsx(n,{ref:o,...i,className:J(r,t?`${l}${a}`:l)})});Sv.displayName="Container";const uS=Sv;var sS=Function.prototype.bind.call(Function.prototype.call,[].slice);function Sr(e,t){return sS(e.querySelectorAll(t))}function rp(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}const cS="data-rr-ui-";function fS(e){return`${cS}${e}`}const kv=x.createContext(ai?window:void 0);kv.Provider;function sf(){return x.useContext(kv)}const dS={type:dn.string,tooltip:dn.bool,as:dn.elementType},cf=x.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...i},o)=>b.jsx(e,{...i,ref:o,className:J(t,`${n}-${r?"tooltip":"feedback"}`)}));cf.displayName="Feedback";cf.propTypes=dS;const Cv=cf,pS=x.createContext({}),xn=pS,Ev=x.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:i=!1,isInvalid:o=!1,as:l="input",...a},u)=>{const{controlId:s}=x.useContext(xn);return t=oe(t,"form-check-input"),b.jsx(l,{...a,ref:u,type:r,id:e||s,className:J(n,t,i&&"is-valid",o&&"is-invalid")})});Ev.displayName="FormCheckInput";const bv=Ev,Ov=x.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},i)=>{const{controlId:o}=x.useContext(xn);return e=oe(e,"form-check-label"),b.jsx("label",{...r,ref:i,htmlFor:n||o,className:J(t,e)})});Ov.displayName="FormCheckLabel";const Us=Ov,Tv=x.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:i=!1,disabled:o=!1,isValid:l=!1,isInvalid:a=!1,feedbackTooltip:u=!1,feedback:s,feedbackType:c,className:f,style:d,title:p="",type:g="checkbox",label:v,children:k,as:h="input",...m},y)=>{t=oe(t,"form-check"),n=oe(n,"form-switch");const{controlId:E}=x.useContext(xn),T=x.useMemo(()=>({controlId:e||E}),[E,e]),C=!k&&v!=null&&v!==!1||lS(k,Us),O=b.jsx(bv,{...m,type:g==="switch"?"checkbox":g,ref:y,isValid:l,isInvalid:a,disabled:o,as:h});return b.jsx(xn.Provider,{value:T,children:b.jsx("div",{style:d,className:J(f,C&&t,r&&`${t}-inline`,i&&`${t}-reverse`,g==="switch"&&n),children:k||b.jsxs(b.Fragment,{children:[O,C&&b.jsx(Us,{title:p,children:v}),s&&b.jsx(Cv,{type:c,tooltip:u,children:s})]})})})});Tv.displayName="FormCheck";const Ul=Object.assign(Tv,{Input:bv,Label:Us}),Iv=x.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:i,className:o,isValid:l=!1,isInvalid:a=!1,plaintext:u,readOnly:s,as:c="input",...f},d)=>{const{controlId:p}=x.useContext(xn);return e=oe(e,"form-control"),b.jsx(c,{...f,type:t,size:r,ref:d,readOnly:s,id:i||p,className:J(o,u?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,l&&"is-valid",a&&"is-invalid")})});Iv.displayName="FormControl";const hS=Object.assign(Iv,{Feedback:Cv}),Pv=x.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=oe(t,"form-floating"),b.jsx(n,{ref:i,className:J(e,t),...r})));Pv.displayName="FormFloating";const mS=Pv,Rv=x.forwardRef(({controlId:e,as:t="div",...n},r)=>{const i=x.useMemo(()=>({controlId:e}),[e]);return b.jsx(xn.Provider,{value:i,children:b.jsx(t,{...n,ref:r})})});Rv.displayName="FormGroup";const Lv=Rv,Nv=x.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:i,htmlFor:o,...l},a)=>{const{controlId:u}=x.useContext(xn);t=oe(t,"form-label");let s="col-form-label";typeof n=="string"&&(s=`${s} ${s}-${n}`);const c=J(i,t,r&&"visually-hidden",n&&s);return o=o||u,n?b.jsx(bt,{ref:a,as:"label",className:c,htmlFor:o,...l}):b.jsx(e,{ref:a,className:c,htmlFor:o,...l})});Nv.displayName="FormLabel";const gS=Nv,Mv=x.forwardRef(({bsPrefix:e,className:t,id:n,...r},i)=>{const{controlId:o}=x.useContext(xn);return e=oe(e,"form-range"),b.jsx("input",{...r,type:"range",ref:i,className:J(t,e),id:n||o})});Mv.displayName="FormRange";const vS=Mv,Dv=x.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:i=!1,isInvalid:o=!1,id:l,...a},u)=>{const{controlId:s}=x.useContext(xn);return e=oe(e,"form-select"),b.jsx("select",{...a,size:n,ref:u,className:J(r,e,t&&`${e}-${t}`,i&&"is-valid",o&&"is-invalid"),id:l||s})});Dv.displayName="FormSelect";const yS=Dv,_v=x.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...i},o)=>(e=oe(e,"form-text"),b.jsx(n,{...i,ref:o,className:J(t,e,r&&"text-muted")})));_v.displayName="FormText";const xS=_v,Fv=x.forwardRef((e,t)=>b.jsx(Ul,{...e,ref:t,type:"switch"}));Fv.displayName="Switch";const wS=Object.assign(Fv,{Input:Ul.Input,Label:Ul.Label}),Av=x.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:i,...o},l)=>(e=oe(e,"form-floating"),b.jsxs(Lv,{ref:l,className:J(t,e),controlId:r,...o,children:[n,b.jsx("label",{htmlFor:r,children:i})]})));Av.displayName="FloatingLabel";const SS=Av,kS={_ref:dn.any,validated:dn.bool,as:dn.elementType},ff=x.forwardRef(({className:e,validated:t,as:n="form",...r},i)=>b.jsx(n,{...r,ref:i,className:J(e,t&&"was-validated")}));ff.displayName="Form";ff.propTypes=kS;const $e=Object.assign(ff,{Group:Lv,Control:hS,Floating:mS,Check:Ul,Switch:wS,Label:gS,Text:xS,Range:vS,Select:yS,FloatingLabel:SS});var Uo;function ip(e){if((!Uo&&Uo!==0||e)&&ai){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Uo=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Uo}function wu(e){e===void 0&&(e=ka());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function CS(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const op=fS("modal-open");class ES{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return CS(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();t.style={overflow:i.style.overflow,[r]:i.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(ur(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(op,""),ur(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(op),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const df=ES,Su=(e,t)=>ai?e==null?(t||ka()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function bS(e,t){const n=sf(),[r,i]=x.useState(()=>Su(e,n==null?void 0:n.document));if(!r){const o=Su(e);o&&i(o)}return x.useEffect(()=>{t&&r&&t(r)},[t,r]),x.useEffect(()=>{const o=Su(e);o!==r&&i(o)},[e,r]),r}function OS({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const o=x.useRef(null),l=x.useRef(t),a=Qt(n);x.useEffect(()=>{t?l.current=!0:a(o.current)},[t,a]);const u=Ca(o,e.ref),s=x.cloneElement(e,{ref:u});return t?s:i||!l.current&&r?null:s}function TS({in:e,onTransition:t}){const n=x.useRef(null),r=x.useRef(!0),i=Qt(t);return tp(()=>{if(!n.current)return;let o=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>o}),()=>{o=!0}},[e,i]),tp(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function IS({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[o,l]=x.useState(!t);t&&o&&l(!1);const a=TS({in:!!t,onTransition:s=>{const c=()=>{s.isStale()||(s.in?r==null||r(s.element,s.initial):(l(!0),n==null||n(s.element)))};Promise.resolve(i(s)).then(c,f=>{throw s.in||l(!0),f})}}),u=Ca(a,e.ref);return o&&!t?null:x.cloneElement(e,{ref:u})}function lp(e,t,n){return e?b.jsx(e,Object.assign({},n)):t?b.jsx(IS,Object.assign({},n,{transition:t})):b.jsx(OS,Object.assign({},n))}function PS(e){return e.code==="Escape"||e.keyCode===27}const RS=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function LS(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}let ku;function NS(e){return ku||(ku=new df({ownerDocument:e==null?void 0:e.document})),ku}function MS(e){const t=sf(),n=e||NS(t),r=x.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:x.useCallback(i=>{r.current.dialog=i},[]),setBackdropRef:x.useCallback(i=>{r.current.backdrop=i},[])})}const jv=x.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:i,style:o,children:l,backdrop:a=!0,keyboard:u=!0,onBackdropClick:s,onEscapeKeyDown:c,transition:f,runTransition:d,backdropTransition:p,runBackdropTransition:g,autoFocus:v=!0,enforceFocus:k=!0,restoreFocus:h=!0,restoreFocusOptions:m,renderDialog:y,renderBackdrop:E=fe=>b.jsx("div",Object.assign({},fe)),manager:T,container:C,onShow:O,onHide:P=()=>{},onExit:_,onExited:M,onExiting:A,onEnter:D,onEntering:Q,onEntered:Z}=e,$=LS(e,RS);const H=sf(),ee=bS(C),R=MS(T),z=Aw(),w=jw(n),[G,V]=x.useState(!n),S=x.useRef(null);x.useImperativeHandle(t,()=>R,[R]),ai&&!w&&n&&(S.current=wu(H==null?void 0:H.document)),n&&G&&V(!1);const re=Qt(()=>{if(R.add(),He.current=Bl(document,"keydown",Ee),De.current=Bl(document,"focus",()=>setTimeout(X),!0),O&&O(),v){var fe,Gn;const Yn=wu((fe=(Gn=R.dialog)==null?void 0:Gn.ownerDocument)!=null?fe:H==null?void 0:H.document);R.dialog&&Yn&&!rp(R.dialog,Yn)&&(S.current=Yn,R.dialog.focus())}}),pe=Qt(()=>{if(R.remove(),He.current==null||He.current(),De.current==null||De.current(),h){var fe;(fe=S.current)==null||fe.focus==null||fe.focus(m),S.current=null}});x.useEffect(()=>{!n||!ee||re()},[n,ee,re]),x.useEffect(()=>{G&&pe()},[G,pe]),xv(()=>{pe()});const X=Qt(()=>{if(!k||!z()||!R.isTopModal())return;const fe=wu(H==null?void 0:H.document);R.dialog&&fe&&!rp(R.dialog,fe)&&R.dialog.focus()}),we=Qt(fe=>{fe.target===fe.currentTarget&&(s==null||s(fe),a===!0&&P())}),Ee=Qt(fe=>{u&&PS(fe)&&R.isTopModal()&&(c==null||c(fe),fe.defaultPrevented||P())}),De=x.useRef(),He=x.useRef(),St=(...fe)=>{V(!0),M==null||M(...fe)};if(!ee)return null;const en=Object.assign({role:r,ref:R.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},$,{style:o,className:i,tabIndex:-1});let tn=y?y(en):b.jsx("div",Object.assign({},en,{children:x.cloneElement(l,{role:"document"})}));tn=lp(f,d,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:_,onExiting:A,onExited:St,onEnter:D,onEntering:Q,onEntered:Z,children:tn});let st=null;return a&&(st=E({ref:R.setBackdropRef,onClick:we}),st=lp(p,g,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:st})),b.jsx(b.Fragment,{children:Ar.createPortal(b.jsxs(b.Fragment,{children:[st,tn]}),ee)})});jv.displayName="Modal";const DS=Object.assign(jv,{Manager:df});function _S(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function FS(e,t){e.classList?e.classList.add(t):_S(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function ap(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function AS(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=ap(e.className,t):e.setAttribute("class",ap(e.className&&e.className.baseVal||"",t))}const kr={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class jS extends df{adjustAndStore(t,n,r){const i=n.style[t];n.dataset[t]=i,ur(n,{[t]:`${parseFloat(ur(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],ur(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(FS(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Sr(n,kr.FIXED_CONTENT).forEach(o=>this.adjustAndStore(r,o,t.scrollBarWidth)),Sr(n,kr.STICKY_CONTENT).forEach(o=>this.adjustAndStore(i,o,-t.scrollBarWidth)),Sr(n,kr.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(i,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();AS(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Sr(n,kr.FIXED_CONTENT).forEach(o=>this.restore(r,o)),Sr(n,kr.STICKY_CONTENT).forEach(o=>this.restore(i,o)),Sr(n,kr.NAVBAR_TOGGLER).forEach(o=>this.restore(i,o))}}let Cu;function zS(e){return Cu||(Cu=new jS(e)),Cu}const zv=x.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=oe(t,"modal-body"),b.jsx(n,{ref:i,className:J(e,t),...r})));zv.displayName="ModalBody";const $S=zv,VS=x.createContext({onHide(){}}),$v=VS,Vv=x.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:o,children:l,scrollable:a,...u},s)=>{e=oe(e,"modal");const c=`${e}-dialog`,f=typeof o=="string"?`${e}-fullscreen-${o}`:`${e}-fullscreen`;return b.jsx("div",{...u,ref:s,className:J(c,t,i&&`${e}-${i}`,r&&`${c}-centered`,a&&`${c}-scrollable`,o&&f),children:b.jsx("div",{className:J(`${e}-content`,n),children:l})})});Vv.displayName="ModalDialog";const Bv=Vv,Uv=x.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=oe(t,"modal-footer"),b.jsx(n,{ref:i,className:J(e,t),...r})));Uv.displayName="ModalFooter";const BS=Uv,US=x.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...o},l)=>{const a=x.useContext($v),u=Qt(()=>{a==null||a.onHide(),r==null||r()});return b.jsxs("div",{ref:l,...o,children:[i,n&&b.jsx(Kw,{"aria-label":e,variant:t,onClick:u})]})}),HS=US,Hv=x.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},o)=>(e=oe(e,"modal-header"),b.jsx(HS,{ref:o,...i,className:J(t,e),closeLabel:n,closeButton:r})));Hv.displayName="ModalHeader";const WS=Hv,QS=af("h4"),Wv=x.forwardRef(({className:e,bsPrefix:t,as:n=QS,...r},i)=>(t=oe(t,"modal-title"),b.jsx(n,{ref:i,className:J(e,t),...r})));Wv.displayName="ModalTitle";const KS=Wv;function GS(e){return b.jsx(rv,{...e,timeout:null})}function YS(e){return b.jsx(rv,{...e,timeout:null})}const Qv=x.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:o,dialogAs:l=Bv,"aria-labelledby":a,"aria-describedby":u,"aria-label":s,show:c=!1,animation:f=!0,backdrop:d=!0,keyboard:p=!0,onEscapeKeyDown:g,onShow:v,onHide:k,container:h,autoFocus:m=!0,enforceFocus:y=!0,restoreFocus:E=!0,restoreFocusOptions:T,onEntered:C,onExit:O,onExiting:P,onEnter:_,onEntering:M,onExited:A,backdropClassName:D,manager:Q,...Z},$)=>{const[H,ee]=x.useState({}),[R,z]=x.useState(!1),w=x.useRef(!1),G=x.useRef(!1),V=x.useRef(null),[S,re]=Fw(),pe=Ca($,re),X=Qt(k),we=fw();e=oe(e,"modal");const Ee=x.useMemo(()=>({onHide:X}),[X]);function De(){return Q||zS({isRTL:we})}function He(I){if(!ai)return;const F=De().getScrollbarWidth()>0,Y=I.scrollHeight>ka(I).documentElement.clientHeight;ee({paddingRight:F&&!Y?ip():void 0,paddingLeft:!F&&Y?ip():void 0})}const St=Qt(()=>{S&&He(S.dialog)});xv(()=>{Bs(window,"resize",St),V.current==null||V.current()});const en=()=>{w.current=!0},tn=I=>{w.current&&S&&I.target===S.dialog&&(G.current=!0),w.current=!1},st=()=>{z(!0),V.current=ev(S.dialog,()=>{z(!1)})},fe=I=>{I.target===I.currentTarget&&st()},Gn=I=>{if(d==="static"){fe(I);return}if(G.current||I.target!==I.currentTarget){G.current=!1;return}k==null||k()},Yn=I=>{p?g==null||g(I):(I.preventDefault(),d==="static"&&st())},ko=(I,F)=>{I&&He(I),_==null||_(I,F)},Co=I=>{V.current==null||V.current(),O==null||O(I)},Ua=(I,F)=>{M==null||M(I,F),Jg(window,"resize",St)},Ha=I=>{I&&(I.style.display=""),A==null||A(I),Bs(window,"resize",St)},Wa=x.useCallback(I=>b.jsx("div",{...I,className:J(`${e}-backdrop`,D,!f&&"show")}),[f,D,e]),Eo={...n,...H};Eo.display="block";const Qa=I=>b.jsx("div",{role:"dialog",...I,style:Eo,className:J(t,e,R&&`${e}-static`,!f&&"show"),onClick:d?Gn:void 0,onMouseUp:tn,"aria-label":s,"aria-labelledby":a,"aria-describedby":u,children:b.jsx(l,{...Z,onMouseDown:en,className:r,contentClassName:i,children:o})});return b.jsx($v.Provider,{value:Ee,children:b.jsx(DS,{show:c,ref:pe,backdrop:d,container:h,keyboard:!0,autoFocus:m,enforceFocus:y,restoreFocus:E,restoreFocusOptions:T,onEscapeKeyDown:Yn,onShow:v,onHide:k,onEnter:ko,onEntering:Ua,onEntered:C,onExit:Co,onExiting:P,onExited:Ha,manager:De(),transition:f?GS:void 0,backdropTransition:f?YS:void 0,renderBackdrop:Wa,renderDialog:Qa})})});Qv.displayName="Modal";const Ho=Object.assign(Qv,{Body:$S,Header:WS,Title:KS,Footer:BS,Dialog:Bv,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),Kv=x.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},i)=>{const o=oe(e,"row"),l=of(),a=lf(),u=`${o}-cols`,s=[];return l.forEach(c=>{const f=r[c];delete r[c];let d;f!=null&&typeof f=="object"?{cols:d}=f:d=f;const p=c!==a?`-${c}`:"";d!=null&&s.push(`${u}${p}-${d}`)}),b.jsx(n,{ref:i,...r,className:J(t,o,...s)})});Kv.displayName="Row";const cn=Kv;function XS(e,t=Kg,n=Gg){const r=[];return Object.entries(e).forEach(([i,o])=>{o!=null&&(typeof o=="object"?t.forEach(l=>{const a=o[l];if(a!=null){const u=l!==n?`-${l}`:"";r.push(`${i}${u}-${a}`)}}):r.push(`${i}-${o}`))}),r}const Gv=x.forwardRef(({as:e="div",bsPrefix:t,className:n,direction:r,gap:i,...o},l)=>{t=oe(t,r==="horizontal"?"hstack":"vstack");const a=of(),u=lf();return b.jsx(e,{...o,ref:l,className:J(n,t,...XS({gap:i},a,u))})});Gv.displayName="Stack";const Un=Gv;/** * @remix-run/router v1.12.0 * * Copyright (c) Remix Software Inc. @@ -50,7 +50,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function uo(){return uo=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function pf(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function qS(){return Math.random().toString(36).substr(2,8)}function sp(e,t){return{usr:e.state,key:e.key,idx:t}}function Hs(e,t,n,r){return n===void 0&&(n=null),uo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ui(t):t,{state:n,key:t&&t.key||r||qS()})}function Hl(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ui(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function ZS(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,l=i.history,a=Ln.Pop,u=null,s=c();s==null&&(s=0,l.replaceState(uo({},l.state,{idx:s}),""));function c(){return(l.state||{idx:null}).idx}function f(){a=Ln.Pop;let k=c(),h=k==null?null:k-s;s=k,u&&u({action:a,location:v.location,delta:h})}function d(k,h){a=Ln.Push;let m=Hs(v.location,k,h);n&&n(m,k),s=c()+1;let y=sp(m,s),E=v.createHref(m);try{l.pushState(y,"",E)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;i.location.assign(E)}o&&u&&u({action:a,location:v.location,delta:1})}function p(k,h){a=Ln.Replace;let m=Hs(v.location,k,h);n&&n(m,k),s=c();let y=sp(m,s),E=v.createHref(m);l.replaceState(y,"",E),o&&u&&u({action:a,location:v.location,delta:0})}function g(k){let h=i.location.origin!=="null"?i.location.origin:i.location.href,m=typeof k=="string"?k:Hl(k);return Ie(h,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,h)}let v={get action(){return a},get location(){return e(i,l)},listen(k){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(up,f),u=k,()=>{i.removeEventListener(up,f),u=null}},createHref(k){return t(i,k)},createURL:g,encodeLocation(k){let h=g(k);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:d,replace:p,go(k){return l.go(k)}};return v}var cp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(cp||(cp={}));function JS(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ui(t):t,i=hf(r.pathname||"/",n);if(i==null)return null;let o=Yv(e);ek(o);let l=null;for(let a=0;l==null&&a{let u={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};u.relativePath.startsWith("/")&&(Ie(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let s=$n([r,u.relativePath]),c=n.concat(u);o.children&&o.children.length>0&&(Ie(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),Yv(o.children,t,c,s)),!(o.path==null&&!o.index)&&t.push({path:s,score:ak(s,o.index),routesMeta:c})};return e.forEach((o,l)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,l);else for(let u of Xv(o.path))i(o,l,u)}),t}function Xv(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let l=Xv(r.join("/")),a=[];return a.push(...l.map(u=>u===""?o:[o,u].join("/"))),i&&a.push(...l),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function ek(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:uk(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const tk=/^:\w+$/,nk=3,rk=2,ik=1,ok=10,lk=-2,fp=e=>e==="*";function ak(e,t){let n=e.split("/"),r=n.length;return n.some(fp)&&(r+=lk),t&&(r+=rk),n.filter(i=>!fp(i)).reduce((i,o)=>i+(tk.test(o)?nk:o===""?ik:ok),r)}function uk(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function sk(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let l=0;l{let{paramName:d,isOptional:p}=c;if(d==="*"){let v=a[f]||"";l=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const g=a[f];return p&&!g?s[d]=void 0:s[d]=pk(g||"",d),s},{}),pathname:o,pathnameBase:l,pattern:e}}function fk(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),pf(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(l,a,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function dk(e){try{return decodeURI(e)}catch(t){return pf(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function pk(e,t){try{return decodeURIComponent(e)}catch(n){return pf(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function hf(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function hk(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ui(e):e;return{pathname:n?n.startsWith("/")?n:mk(n,t):t,search:vk(r),hash:yk(i)}}function mk(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Eu(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function mf(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function gf(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=ui(e):(i=uo({},e),Ie(!i.pathname||!i.pathname.includes("?"),Eu("?","pathname","search",i)),Ie(!i.pathname||!i.pathname.includes("#"),Eu("#","pathname","hash",i)),Ie(!i.search||!i.search.includes("#"),Eu("#","search","hash",i)));let o=e===""||i.pathname==="",l=o?"/":i.pathname,a;if(l==null)a=n;else if(r){let f=t[t.length-1].replace(/^\//,"").split("/");if(l.startsWith("..")){let d=l.split("/");for(;d[0]==="..";)d.shift(),f.pop();i.pathname=d.join("/")}a="/"+f.join("/")}else{let f=t.length-1;if(l.startsWith("..")){let d=l.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}a=f>=0?t[f]:"/"}let u=hk(i,a),s=l&&l!=="/"&&l.endsWith("/"),c=(o||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(s||c)&&(u.pathname+="/"),u}const $n=e=>e.join("/").replace(/\/\/+/g,"/"),gk=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),vk=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,yk=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function xk(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const qv=["post","put","patch","delete"];new Set(qv);const wk=["get",...qv];new Set(wk);/** + */function uo(){return uo=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function pf(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ZS(){return Math.random().toString(36).substr(2,8)}function sp(e,t){return{usr:e.state,key:e.key,idx:t}}function Hs(e,t,n,r){return n===void 0&&(n=null),uo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ui(t):t,{state:n,key:t&&t.key||r||ZS()})}function Hl(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ui(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function JS(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,l=i.history,a=Ln.Pop,u=null,s=c();s==null&&(s=0,l.replaceState(uo({},l.state,{idx:s}),""));function c(){return(l.state||{idx:null}).idx}function f(){a=Ln.Pop;let k=c(),h=k==null?null:k-s;s=k,u&&u({action:a,location:v.location,delta:h})}function d(k,h){a=Ln.Push;let m=Hs(v.location,k,h);n&&n(m,k),s=c()+1;let y=sp(m,s),E=v.createHref(m);try{l.pushState(y,"",E)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;i.location.assign(E)}o&&u&&u({action:a,location:v.location,delta:1})}function p(k,h){a=Ln.Replace;let m=Hs(v.location,k,h);n&&n(m,k),s=c();let y=sp(m,s),E=v.createHref(m);l.replaceState(y,"",E),o&&u&&u({action:a,location:v.location,delta:0})}function g(k){let h=i.location.origin!=="null"?i.location.origin:i.location.href,m=typeof k=="string"?k:Hl(k);return Ie(h,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,h)}let v={get action(){return a},get location(){return e(i,l)},listen(k){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(up,f),u=k,()=>{i.removeEventListener(up,f),u=null}},createHref(k){return t(i,k)},createURL:g,encodeLocation(k){let h=g(k);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:d,replace:p,go(k){return l.go(k)}};return v}var cp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(cp||(cp={}));function ek(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ui(t):t,i=hf(r.pathname||"/",n);if(i==null)return null;let o=Yv(e);tk(o);let l=null;for(let a=0;l==null&&a{let u={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};u.relativePath.startsWith("/")&&(Ie(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let s=$n([r,u.relativePath]),c=n.concat(u);o.children&&o.children.length>0&&(Ie(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),Yv(o.children,t,c,s)),!(o.path==null&&!o.index)&&t.push({path:s,score:uk(s,o.index),routesMeta:c})};return e.forEach((o,l)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,l);else for(let u of Xv(o.path))i(o,l,u)}),t}function Xv(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let l=Xv(r.join("/")),a=[];return a.push(...l.map(u=>u===""?o:[o,u].join("/"))),i&&a.push(...l),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function tk(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:sk(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const nk=/^:\w+$/,rk=3,ik=2,ok=1,lk=10,ak=-2,fp=e=>e==="*";function uk(e,t){let n=e.split("/"),r=n.length;return n.some(fp)&&(r+=ak),t&&(r+=ik),n.filter(i=>!fp(i)).reduce((i,o)=>i+(nk.test(o)?rk:o===""?ok:lk),r)}function sk(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function ck(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let l=0;l{let{paramName:d,isOptional:p}=c;if(d==="*"){let v=a[f]||"";l=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const g=a[f];return p&&!g?s[d]=void 0:s[d]=hk(g||"",d),s},{}),pathname:o,pathnameBase:l,pattern:e}}function dk(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),pf(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(l,a,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function pk(e){try{return decodeURI(e)}catch(t){return pf(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function hk(e,t){try{return decodeURIComponent(e)}catch(n){return pf(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function hf(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function mk(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ui(e):e;return{pathname:n?n.startsWith("/")?n:gk(n,t):t,search:yk(r),hash:xk(i)}}function gk(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Eu(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function mf(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function gf(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=ui(e):(i=uo({},e),Ie(!i.pathname||!i.pathname.includes("?"),Eu("?","pathname","search",i)),Ie(!i.pathname||!i.pathname.includes("#"),Eu("#","pathname","hash",i)),Ie(!i.search||!i.search.includes("#"),Eu("#","search","hash",i)));let o=e===""||i.pathname==="",l=o?"/":i.pathname,a;if(l==null)a=n;else if(r){let f=t[t.length-1].replace(/^\//,"").split("/");if(l.startsWith("..")){let d=l.split("/");for(;d[0]==="..";)d.shift(),f.pop();i.pathname=d.join("/")}a="/"+f.join("/")}else{let f=t.length-1;if(l.startsWith("..")){let d=l.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}a=f>=0?t[f]:"/"}let u=mk(i,a),s=l&&l!=="/"&&l.endsWith("/"),c=(o||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(s||c)&&(u.pathname+="/"),u}const $n=e=>e.join("/").replace(/\/\/+/g,"/"),vk=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),yk=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,xk=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function wk(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const qv=["post","put","patch","delete"];new Set(qv);const Sk=["get",...qv];new Set(Sk);/** * React Router v6.19.0 * * Copyright (c) Remix Software Inc. @@ -59,7 +59,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Wl(){return Wl=Object.assign?Object.assign.bind():function(e){for(var t=1;tu.pathnameBase)),l=x.useRef(!1);return Jv(()=>{l.current=!0}),x.useCallback(function(u,s){if(s===void 0&&(s={}),!l.current)return;if(typeof u=="number"){n.go(u);return}let c=gf(u,JSON.parse(o),i,s.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:$n([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,o,i,e])}const ey=x.createContext(null);function Ek(){return x.useContext(ey)}function bk(e){let t=x.useContext(Zt).outlet;return t&&x.createElement(ey.Provider,{value:e},t)}function Ok(){let{matches:e}=x.useContext(Zt),t=e[e.length-1];return t?t.params:{}}function ty(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=x.useContext(Zt),{pathname:i}=yo(),o=JSON.stringify(mf(r).map((l,a)=>a===r.length-1?l.pathname:l.pathnameBase));return x.useMemo(()=>gf(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function Tk(e,t){return Ik(e,t)}function Ik(e,t,n){ci()||Ie(!1);let{navigator:r}=x.useContext(si),{matches:i}=x.useContext(Zt),o=i[i.length-1],l=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let u=yo(),s;if(t){var c;let v=typeof t=="string"?ui(t):t;a==="/"||(c=v.pathname)!=null&&c.startsWith(a)||Ie(!1),s=v}else s=u;let f=s.pathname||"/",d=a==="/"?f:f.slice(a.length)||"/",p=JS(e,{pathname:d}),g=Mk(p&&p.map(v=>Object.assign({},v,{params:Object.assign({},l,v.params),pathname:$n([a,r.encodeLocation?r.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?a:$n([a,r.encodeLocation?r.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,n);return t&&g?x.createElement(Ea.Provider,{value:{location:Wl({pathname:"/",search:"",hash:"",state:null,key:"default"},s),navigationType:Ln.Pop}},g):g}function Pk(){let e=Ak(),t=xk(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:i},n):null,o)}const Rk=x.createElement(Pk,null);class Lk extends x.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?x.createElement(Zt.Provider,{value:this.props.routeContext},x.createElement(Zv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Nk(e){let{routeContext:t,match:n,children:r}=e,i=x.useContext(vf);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(Zt.Provider,{value:t},r)}function Mk(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let o=e,l=(r=n)==null?void 0:r.errors;if(l!=null){let a=o.findIndex(u=>u.route.id&&(l==null?void 0:l[u.route.id]));a>=0||Ie(!1),o=o.slice(0,Math.min(o.length,a+1))}return o.reduceRight((a,u,s)=>{let c=u.route.id?l==null?void 0:l[u.route.id]:null,f=null;n&&(f=u.route.errorElement||Rk);let d=t.concat(o.slice(0,s+1)),p=()=>{let g;return c?g=f:u.route.Component?g=x.createElement(u.route.Component,null):u.route.element?g=u.route.element:g=a,x.createElement(Nk,{match:u,routeContext:{outlet:a,matches:d,isDataRoute:n!=null},children:g})};return n&&(u.route.ErrorBoundary||u.route.errorElement||s===0)?x.createElement(Lk,{location:n.location,revalidation:n.revalidation,component:f,error:c,children:p(),routeContext:{outlet:null,matches:d,isDataRoute:!0}}):p()},null)}var ny=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ny||{}),Ql=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Ql||{});function Dk(e){let t=x.useContext(vf);return t||Ie(!1),t}function _k(e){let t=x.useContext(Sk);return t||Ie(!1),t}function Fk(e){let t=x.useContext(Zt);return t||Ie(!1),t}function ry(e){let t=Fk(),n=t.matches[t.matches.length-1];return n.route.id||Ie(!1),n.route.id}function Ak(){var e;let t=x.useContext(Zv),n=_k(Ql.UseRouteError),r=ry(Ql.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function jk(){let{router:e}=Dk(ny.UseNavigateStable),t=ry(Ql.UseNavigateStable),n=x.useRef(!1);return Jv(()=>{n.current=!0}),x.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Wl({fromRouteId:t},o)))},[e,t])}function zk(e){let{to:t,replace:n,state:r,relative:i}=e;ci()||Ie(!1);let{matches:o}=x.useContext(Zt),{pathname:l}=yo(),a=ba(),u=gf(t,mf(o).map(c=>c.pathnameBase),l,i==="path"),s=JSON.stringify(u);return x.useEffect(()=>a(JSON.parse(s),{replace:n,state:r,relative:i}),[a,s,i,n,r]),null}function $k(e){return bk(e.context)}function Er(e){Ie(!1)}function Vk(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ln.Pop,navigator:o,static:l=!1}=e;ci()&&Ie(!1);let a=t.replace(/^\/*/,"/"),u=x.useMemo(()=>({basename:a,navigator:o,static:l}),[a,o,l]);typeof r=="string"&&(r=ui(r));let{pathname:s="/",search:c="",hash:f="",state:d=null,key:p="default"}=r,g=x.useMemo(()=>{let v=hf(s,a);return v==null?null:{location:{pathname:v,search:c,hash:f,state:d,key:p},navigationType:i}},[a,s,c,f,d,p,i]);return g==null?null:x.createElement(si.Provider,{value:u},x.createElement(Ea.Provider,{children:n,value:g}))}function Bk(e){let{children:t,location:n}=e;return Tk(Ws(t),n)}new Promise(()=>{});function Ws(e,t){t===void 0&&(t=[]);let n=[];return x.Children.forEach(e,(r,i)=>{if(!x.isValidElement(r))return;let o=[...t,i];if(r.type===x.Fragment){n.push.apply(n,Ws(r.props.children,o));return}r.type!==Er&&Ie(!1),!r.props.index||!r.props.children||Ie(!1);let l={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=Ws(r.props.children,o)),n.push(l)}),n}/** + */function Wl(){return Wl=Object.assign?Object.assign.bind():function(e){for(var t=1;tu.pathnameBase)),l=x.useRef(!1);return Jv(()=>{l.current=!0}),x.useCallback(function(u,s){if(s===void 0&&(s={}),!l.current)return;if(typeof u=="number"){n.go(u);return}let c=gf(u,JSON.parse(o),i,s.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:$n([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,o,i,e])}const ey=x.createContext(null);function bk(){return x.useContext(ey)}function Ok(e){let t=x.useContext(Zt).outlet;return t&&x.createElement(ey.Provider,{value:e},t)}function Tk(){let{matches:e}=x.useContext(Zt),t=e[e.length-1];return t?t.params:{}}function ty(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=x.useContext(Zt),{pathname:i}=yo(),o=JSON.stringify(mf(r).map((l,a)=>a===r.length-1?l.pathname:l.pathnameBase));return x.useMemo(()=>gf(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function Ik(e,t){return Pk(e,t)}function Pk(e,t,n){ci()||Ie(!1);let{navigator:r}=x.useContext(si),{matches:i}=x.useContext(Zt),o=i[i.length-1],l=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let u=yo(),s;if(t){var c;let v=typeof t=="string"?ui(t):t;a==="/"||(c=v.pathname)!=null&&c.startsWith(a)||Ie(!1),s=v}else s=u;let f=s.pathname||"/",d=a==="/"?f:f.slice(a.length)||"/",p=ek(e,{pathname:d}),g=Dk(p&&p.map(v=>Object.assign({},v,{params:Object.assign({},l,v.params),pathname:$n([a,r.encodeLocation?r.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?a:$n([a,r.encodeLocation?r.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,n);return t&&g?x.createElement(Ea.Provider,{value:{location:Wl({pathname:"/",search:"",hash:"",state:null,key:"default"},s),navigationType:Ln.Pop}},g):g}function Rk(){let e=jk(),t=wk(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:i},n):null,o)}const Lk=x.createElement(Rk,null);class Nk extends x.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?x.createElement(Zt.Provider,{value:this.props.routeContext},x.createElement(Zv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Mk(e){let{routeContext:t,match:n,children:r}=e,i=x.useContext(vf);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(Zt.Provider,{value:t},r)}function Dk(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let o=e,l=(r=n)==null?void 0:r.errors;if(l!=null){let a=o.findIndex(u=>u.route.id&&(l==null?void 0:l[u.route.id]));a>=0||Ie(!1),o=o.slice(0,Math.min(o.length,a+1))}return o.reduceRight((a,u,s)=>{let c=u.route.id?l==null?void 0:l[u.route.id]:null,f=null;n&&(f=u.route.errorElement||Lk);let d=t.concat(o.slice(0,s+1)),p=()=>{let g;return c?g=f:u.route.Component?g=x.createElement(u.route.Component,null):u.route.element?g=u.route.element:g=a,x.createElement(Mk,{match:u,routeContext:{outlet:a,matches:d,isDataRoute:n!=null},children:g})};return n&&(u.route.ErrorBoundary||u.route.errorElement||s===0)?x.createElement(Nk,{location:n.location,revalidation:n.revalidation,component:f,error:c,children:p(),routeContext:{outlet:null,matches:d,isDataRoute:!0}}):p()},null)}var ny=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ny||{}),Ql=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Ql||{});function _k(e){let t=x.useContext(vf);return t||Ie(!1),t}function Fk(e){let t=x.useContext(kk);return t||Ie(!1),t}function Ak(e){let t=x.useContext(Zt);return t||Ie(!1),t}function ry(e){let t=Ak(),n=t.matches[t.matches.length-1];return n.route.id||Ie(!1),n.route.id}function jk(){var e;let t=x.useContext(Zv),n=Fk(Ql.UseRouteError),r=ry(Ql.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function zk(){let{router:e}=_k(ny.UseNavigateStable),t=ry(Ql.UseNavigateStable),n=x.useRef(!1);return Jv(()=>{n.current=!0}),x.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Wl({fromRouteId:t},o)))},[e,t])}function iy(e){let{to:t,replace:n,state:r,relative:i}=e;ci()||Ie(!1);let{matches:o}=x.useContext(Zt),{pathname:l}=yo(),a=ba(),u=gf(t,mf(o).map(c=>c.pathnameBase),l,i==="path"),s=JSON.stringify(u);return x.useEffect(()=>a(JSON.parse(s),{replace:n,state:r,relative:i}),[a,s,i,n,r]),null}function $k(e){return Ok(e.context)}function er(e){Ie(!1)}function Vk(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ln.Pop,navigator:o,static:l=!1}=e;ci()&&Ie(!1);let a=t.replace(/^\/*/,"/"),u=x.useMemo(()=>({basename:a,navigator:o,static:l}),[a,o,l]);typeof r=="string"&&(r=ui(r));let{pathname:s="/",search:c="",hash:f="",state:d=null,key:p="default"}=r,g=x.useMemo(()=>{let v=hf(s,a);return v==null?null:{location:{pathname:v,search:c,hash:f,state:d,key:p},navigationType:i}},[a,s,c,f,d,p,i]);return g==null?null:x.createElement(si.Provider,{value:u},x.createElement(Ea.Provider,{children:n,value:g}))}function Bk(e){let{children:t,location:n}=e;return Ik(Ws(t),n)}new Promise(()=>{});function Ws(e,t){t===void 0&&(t=[]);let n=[];return x.Children.forEach(e,(r,i)=>{if(!x.isValidElement(r))return;let o=[...t,i];if(r.type===x.Fragment){n.push.apply(n,Ws(r.props.children,o));return}r.type!==er&&Ie(!1),!r.props.index||!r.props.children||Ie(!1);let l={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=Ws(r.props.children,o)),n.push(l)}),n}/** * React Router DOM v6.19.0 * * Copyright (c) Remix Software Inc. @@ -68,29 +68,29 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Qs(){return Qs=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function Hk(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Wk(e,t){return e.button===0&&(!t||t==="_self")&&!Hk(e)}const Qk=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Kk="startTransition",dp=Wu[Kk];function Gk(e){let{basename:t,children:n,future:r,window:i}=e,o=x.useRef();o.current==null&&(o.current=XS({window:i,v5Compat:!0}));let l=o.current,[a,u]=x.useState({action:l.action,location:l.location}),{v7_startTransition:s}=r||{},c=x.useCallback(f=>{s&&dp?dp(()=>u(f)):u(f)},[u,s]);return x.useLayoutEffect(()=>l.listen(c),[l,c]),x.createElement(Vk,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:l})}const Yk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Xk=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ti=x.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:l,state:a,target:u,to:s,preventScrollReset:c,unstable_viewTransition:f}=t,d=Uk(t,Qk),{basename:p}=x.useContext(si),g,v=!1;if(typeof s=="string"&&Xk.test(s)&&(g=s,Yk))try{let y=new URL(window.location.href),E=s.startsWith("//")?new URL(y.protocol+s):new URL(s),T=hf(E.pathname,p);E.origin===y.origin&&T!=null?s=T+E.search+E.hash:v=!0}catch{}let k=kk(s,{relative:i}),h=qk(s,{replace:l,state:a,target:u,preventScrollReset:c,relative:i,unstable_viewTransition:f});function m(y){r&&r(y),y.defaultPrevented||h(y)}return x.createElement("a",Qs({},d,{href:g||k,onClick:v||o?r:m,ref:n,target:u}))});var pp;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(pp||(pp={}));var hp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(hp||(hp={}));function qk(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:l,unstable_viewTransition:a}=t===void 0?{}:t,u=ba(),s=yo(),c=ty(e,{relative:l});return x.useCallback(f=>{if(Wk(f,n)){f.preventDefault();let d=r!==void 0?r:Hl(s)===Hl(c);u(e,{replace:d,state:i,preventScrollReset:o,relative:l,unstable_viewTransition:a})}},[s,u,c,r,i,n,e,o,l,a])}function pr(e){"@babel/helpers - typeof";return pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pr(e)}function Zk(e,t){if(pr(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(pr(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iy(e){var t=Zk(e,"string");return pr(t)==="symbol"?t:String(t)}function Ni(e,t,n){return t=iy(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function B(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iC(e,t){if(t&&(pr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rC(e)}function oC(e){var t=nC();return function(){var r=Kl(e),i;if(t){var o=Kl(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return iC(this,i)}}function Ks(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?Ve(fi,--ut):0,ni--,Re===10&&(ni=1,Ta--),Re}function gt(){return Re=ut2||co(Re)>3?"":" "}function kC(e,t){for(;--t&>()&&!(Re<48||Re>102||Re>57&&Re<65||Re>70&&Re<97););return xo(e,fl()+(t<6&&Xt()==32&>()==32))}function Ys(e){for(;gt();)switch(Re){case e:return ut;case 34:case 39:e!==34&&e!==39&&Ys(Re);break;case 40:e===41&&Ys(e);break;case 92:gt();break}return ut}function CC(e,t){for(;gt()&&e+Re!==47+10;)if(e+Re===42+42&&Xt()===47)break;return"/*"+xo(t,ut-1)+"*"+Oa(e===47?e:gt())}function EC(e){for(;!co(Xt());)gt();return xo(e,ut)}function bC(e){return fy(pl("",null,null,null,[""],e=cy(e),0,[0],e))}function pl(e,t,n,r,i,o,l,a,u){for(var s=0,c=0,f=l,d=0,p=0,g=0,v=1,k=1,h=1,m=0,y="",E=i,T=o,C=r,O=y;k;)switch(g=m,m=gt()){case 40:if(g!=108&&Ve(O,f-1)==58){Gs(O+=ae(dl(m),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:O+=dl(m);break;case 9:case 10:case 13:case 32:O+=SC(g);break;case 92:O+=kC(fl()-1,7);continue;case 47:switch(Xt()){case 42:case 47:Wo(OC(CC(gt(),fl()),t,n),u);break;default:O+="/"}break;case 123*v:a[s++]=Ut(O)*h;case 125*v:case 59:case 0:switch(m){case 0:case 125:k=0;case 59+c:h==-1&&(O=ae(O,/\f/g,"")),p>0&&Ut(O)-f&&Wo(p>32?yp(O+";",r,n,f-1):yp(ae(O," ","")+";",r,n,f-2),u);break;case 59:O+=";";default:if(Wo(C=vp(O,t,n,s,c,i,a,y,E=[],T=[],f),o),m===123)if(c===0)pl(O,t,C,C,E,o,f,a,T);else switch(d===99&&Ve(O,3)===110?100:d){case 100:case 108:case 109:case 115:pl(e,C,C,r&&Wo(vp(e,C,C,0,0,i,a,y,i,E=[],f),T),i,T,f,a,r?E:T);break;default:pl(O,C,C,C,[""],T,0,a,T)}}s=c=p=0,v=h=1,y=O="",f=l;break;case 58:f=1+Ut(O),p=g;default:if(v<1){if(m==123)--v;else if(m==125&&v++==0&&wC()==125)continue}switch(O+=Oa(m),m*v){case 38:h=c>0?1:(O+="\f",-1);break;case 44:a[s++]=(Ut(O)-1)*h,h=1;break;case 64:Xt()===45&&(O+=dl(gt())),d=Xt(),c=f=Ut(y=O+=EC(fl())),m++;break;case 45:g===45&&Ut(O)==2&&(v=0)}}return o}function vp(e,t,n,r,i,o,l,a,u,s,c){for(var f=i-1,d=i===0?o:[""],p=wf(d),g=0,v=0,k=0;g0?d[h]+" "+m:ae(m,/&\f/g,d[h])))&&(u[k++]=y);return Ia(e,t,n,i===0?yf:a,u,s,c)}function OC(e,t,n){return Ia(e,t,n,ly,Oa(xC()),so(e,2,-2),0)}function yp(e,t,n,r){return Ia(e,t,n,xf,so(e,0,r),so(e,r+1,-1),r)}function Wr(e,t){for(var n="",r=wf(e),i=0;i6)switch(Ve(e,t+1)){case 109:if(Ve(e,t+4)!==45)break;case 102:return ae(e,/(.+:)(.+)-([^]+)/,"$1"+le+"$2-$3$1"+Gl+(Ve(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Gs(e,"stretch")?dy(ae(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ve(e,t+1)!==115)break;case 6444:switch(Ve(e,Ut(e)-3-(~Gs(e,"!important")&&10))){case 107:return ae(e,":",":"+le)+e;case 101:return ae(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+le+(Ve(e,14)===45?"inline-":"")+"box$3$1"+le+"$2$3$1"+Ke+"$2box$3")+e}break;case 5936:switch(Ve(e,t+11)){case 114:return le+e+Ke+ae(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return le+e+Ke+ae(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return le+e+Ke+ae(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return le+e+Ke+e+e}return e}var FC=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case xf:t.return=dy(t.value,t.length);break;case ay:return Wr([Ei(t,{value:ae(t.value,"@","@"+le)})],i);case yf:if(t.length)return yC(t.props,function(o){switch(vC(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Wr([Ei(t,{props:[ae(o,/:(read-\w+)/,":"+Gl+"$1")]})],i);case"::placeholder":return Wr([Ei(t,{props:[ae(o,/:(plac\w+)/,":"+le+"input-$1")]}),Ei(t,{props:[ae(o,/:(plac\w+)/,":"+Gl+"$1")]}),Ei(t,{props:[ae(o,/:(plac\w+)/,Ke+"input-$1")]})],i)}return""})}},AC=[FC],jC=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(v){var k=v.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=t.stylisPlugins||AC,o={},l,a=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var k=v.getAttribute("data-emotion").split(" "),h=1;h=0)&&(n[i]=e[i]);return n}function Hk(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Wk(e,t){return e.button===0&&(!t||t==="_self")&&!Hk(e)}const Qk=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Kk="startTransition",dp=Wu[Kk];function Gk(e){let{basename:t,children:n,future:r,window:i}=e,o=x.useRef();o.current==null&&(o.current=qS({window:i,v5Compat:!0}));let l=o.current,[a,u]=x.useState({action:l.action,location:l.location}),{v7_startTransition:s}=r||{},c=x.useCallback(f=>{s&&dp?dp(()=>u(f)):u(f)},[u,s]);return x.useLayoutEffect(()=>l.listen(c),[l,c]),x.createElement(Vk,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:l})}const Yk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Xk=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ti=x.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:l,state:a,target:u,to:s,preventScrollReset:c,unstable_viewTransition:f}=t,d=Uk(t,Qk),{basename:p}=x.useContext(si),g,v=!1;if(typeof s=="string"&&Xk.test(s)&&(g=s,Yk))try{let y=new URL(window.location.href),E=s.startsWith("//")?new URL(y.protocol+s):new URL(s),T=hf(E.pathname,p);E.origin===y.origin&&T!=null?s=T+E.search+E.hash:v=!0}catch{}let k=Ck(s,{relative:i}),h=qk(s,{replace:l,state:a,target:u,preventScrollReset:c,relative:i,unstable_viewTransition:f});function m(y){r&&r(y),y.defaultPrevented||h(y)}return x.createElement("a",Qs({},d,{href:g||k,onClick:v||o?r:m,ref:n,target:u}))});var pp;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(pp||(pp={}));var hp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(hp||(hp={}));function qk(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:l,unstable_viewTransition:a}=t===void 0?{}:t,u=ba(),s=yo(),c=ty(e,{relative:l});return x.useCallback(f=>{if(Wk(f,n)){f.preventDefault();let d=r!==void 0?r:Hl(s)===Hl(c);u(e,{replace:d,state:i,preventScrollReset:o,relative:l,unstable_viewTransition:a})}},[s,u,c,r,i,n,e,o,l,a])}function hr(e){"@babel/helpers - typeof";return hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hr(e)}function Zk(e,t){if(hr(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(hr(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oy(e){var t=Zk(e,"string");return hr(t)==="symbol"?t:String(t)}function Ni(e,t,n){return t=oy(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function B(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iC(e,t){if(t&&(hr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rC(e)}function oC(e){var t=nC();return function(){var r=Kl(e),i;if(t){var o=Kl(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return iC(this,i)}}function Ks(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?Ve(fi,--ut):0,ni--,Re===10&&(ni=1,Ta--),Re}function gt(){return Re=ut2||co(Re)>3?"":" "}function kC(e,t){for(;--t&>()&&!(Re<48||Re>102||Re>57&&Re<65||Re>70&&Re<97););return xo(e,fl()+(t<6&&Xt()==32&>()==32))}function Ys(e){for(;gt();)switch(Re){case e:return ut;case 34:case 39:e!==34&&e!==39&&Ys(Re);break;case 40:e===41&&Ys(e);break;case 92:gt();break}return ut}function CC(e,t){for(;gt()&&e+Re!==47+10;)if(e+Re===42+42&&Xt()===47)break;return"/*"+xo(t,ut-1)+"*"+Oa(e===47?e:gt())}function EC(e){for(;!co(Xt());)gt();return xo(e,ut)}function bC(e){return dy(pl("",null,null,null,[""],e=fy(e),0,[0],e))}function pl(e,t,n,r,i,o,l,a,u){for(var s=0,c=0,f=l,d=0,p=0,g=0,v=1,k=1,h=1,m=0,y="",E=i,T=o,C=r,O=y;k;)switch(g=m,m=gt()){case 40:if(g!=108&&Ve(O,f-1)==58){Gs(O+=ae(dl(m),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:O+=dl(m);break;case 9:case 10:case 13:case 32:O+=SC(g);break;case 92:O+=kC(fl()-1,7);continue;case 47:switch(Xt()){case 42:case 47:Wo(OC(CC(gt(),fl()),t,n),u);break;default:O+="/"}break;case 123*v:a[s++]=Ut(O)*h;case 125*v:case 59:case 0:switch(m){case 0:case 125:k=0;case 59+c:h==-1&&(O=ae(O,/\f/g,"")),p>0&&Ut(O)-f&&Wo(p>32?yp(O+";",r,n,f-1):yp(ae(O," ","")+";",r,n,f-2),u);break;case 59:O+=";";default:if(Wo(C=vp(O,t,n,s,c,i,a,y,E=[],T=[],f),o),m===123)if(c===0)pl(O,t,C,C,E,o,f,a,T);else switch(d===99&&Ve(O,3)===110?100:d){case 100:case 108:case 109:case 115:pl(e,C,C,r&&Wo(vp(e,C,C,0,0,i,a,y,i,E=[],f),T),i,T,f,a,r?E:T);break;default:pl(O,C,C,C,[""],T,0,a,T)}}s=c=p=0,v=h=1,y=O="",f=l;break;case 58:f=1+Ut(O),p=g;default:if(v<1){if(m==123)--v;else if(m==125&&v++==0&&wC()==125)continue}switch(O+=Oa(m),m*v){case 38:h=c>0?1:(O+="\f",-1);break;case 44:a[s++]=(Ut(O)-1)*h,h=1;break;case 64:Xt()===45&&(O+=dl(gt())),d=Xt(),c=f=Ut(y=O+=EC(fl())),m++;break;case 45:g===45&&Ut(O)==2&&(v=0)}}return o}function vp(e,t,n,r,i,o,l,a,u,s,c){for(var f=i-1,d=i===0?o:[""],p=wf(d),g=0,v=0,k=0;g0?d[h]+" "+m:ae(m,/&\f/g,d[h])))&&(u[k++]=y);return Ia(e,t,n,i===0?yf:a,u,s,c)}function OC(e,t,n){return Ia(e,t,n,ay,Oa(xC()),so(e,2,-2),0)}function yp(e,t,n,r){return Ia(e,t,n,xf,so(e,0,r),so(e,r+1,-1),r)}function Wr(e,t){for(var n="",r=wf(e),i=0;i6)switch(Ve(e,t+1)){case 109:if(Ve(e,t+4)!==45)break;case 102:return ae(e,/(.+:)(.+)-([^]+)/,"$1"+le+"$2-$3$1"+Gl+(Ve(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Gs(e,"stretch")?py(ae(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ve(e,t+1)!==115)break;case 6444:switch(Ve(e,Ut(e)-3-(~Gs(e,"!important")&&10))){case 107:return ae(e,":",":"+le)+e;case 101:return ae(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+le+(Ve(e,14)===45?"inline-":"")+"box$3$1"+le+"$2$3$1"+Ke+"$2box$3")+e}break;case 5936:switch(Ve(e,t+11)){case 114:return le+e+Ke+ae(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return le+e+Ke+ae(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return le+e+Ke+ae(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return le+e+Ke+e+e}return e}var FC=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case xf:t.return=py(t.value,t.length);break;case uy:return Wr([Ei(t,{value:ae(t.value,"@","@"+le)})],i);case yf:if(t.length)return yC(t.props,function(o){switch(vC(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Wr([Ei(t,{props:[ae(o,/:(read-\w+)/,":"+Gl+"$1")]})],i);case"::placeholder":return Wr([Ei(t,{props:[ae(o,/:(plac\w+)/,":"+le+"input-$1")]}),Ei(t,{props:[ae(o,/:(plac\w+)/,":"+Gl+"$1")]}),Ei(t,{props:[ae(o,/:(plac\w+)/,Ke+"input-$1")]})],i)}return""})}},AC=[FC],jC=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(v){var k=v.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=t.stylisPlugins||AC,o={},l,a=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var k=v.getAttribute("data-emotion").split(" "),h=1;h=4;++r,i-=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(i){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 qC={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},ZC=/[A-Z]|^ms/g,JC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,yy=function(t){return t.charCodeAt(1)===45},wp=function(t){return t!=null&&typeof t!="boolean"},bu=RC(function(e){return yy(e)?e:e.replace(ZC,"-$&").toLowerCase()}),Sp=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(JC,function(r,i,o){return Ht={name:i,styles:o,next:Ht},i})}return qC[t]!==1&&!yy(t)&&typeof n=="number"&&n!==0?n+"px":n};function fo(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 Ht={name:n.name,styles:n.styles,next:Ht},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Ht={name:r.name,styles:r.styles,next:Ht},r=r.next;var i=n.styles+";";return i}return eE(e,t,n)}case"function":{if(e!==void 0){var o=Ht,l=n(e);return Ht=o,fo(e,t,l)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function eE(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hE(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const mE=Math.min,gE=Math.max,Yl=Math.round,Qo=Math.floor,Xl=e=>({x:e,y:e});function vE(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Sy(e){return Cy(e)?(e.nodeName||"").toLowerCase():"#document"}function jt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ky(e){var t;return(t=(Cy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Cy(e){return e instanceof Node||e instanceof jt(e).Node}function qs(e){return e instanceof Element||e instanceof jt(e).Element}function Of(e){return e instanceof HTMLElement||e instanceof jt(e).HTMLElement}function Cp(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof jt(e).ShadowRoot}function Ey(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Tf(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function yE(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function xE(e){return["html","body","#document"].includes(Sy(e))}function Tf(e){return jt(e).getComputedStyle(e)}function wE(e){if(Sy(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Cp(e)&&e.host||ky(e);return Cp(t)?t.host:t}function by(e){const t=wE(e);return xE(t)?e.ownerDocument?e.ownerDocument.body:e.body:Of(t)&&Ey(t)?t:by(t)}function ql(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=by(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),l=jt(i);return o?t.concat(l,l.visualViewport||[],Ey(i)?i:[],l.frameElement&&n?ql(l.frameElement):[]):t.concat(i,ql(i,[],n))}function SE(e){const t=Tf(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Of(e),o=i?e.offsetWidth:n,l=i?e.offsetHeight:r,a=Yl(n)!==o||Yl(r)!==l;return a&&(n=o,r=l),{width:n,height:r,$:a}}function If(e){return qs(e)?e:e.contextElement}function Ou(e){const t=If(e);if(!Of(t))return Xl(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=SE(t);let l=(o?Yl(n.width):n.width)/r,a=(o?Yl(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!a||!Number.isFinite(a))&&(a=1),{x:l,y:a}}const kE=Xl(0);function CE(e){const t=jt(e);return!yE()||!t.visualViewport?kE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function EE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==jt(e)?!1:t}function Ep(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=If(e);let l=Xl(1);t&&(r?qs(r)&&(l=Ou(r)):l=Ou(e));const a=EE(o,n,r)?CE(o):Xl(0);let u=(i.left+a.x)/l.x,s=(i.top+a.y)/l.y,c=i.width/l.x,f=i.height/l.y;if(o){const d=jt(o),p=r&&qs(r)?jt(r):r;let g=d.frameElement;for(;g&&r&&p!==d;){const v=Ou(g),k=g.getBoundingClientRect(),h=Tf(g),m=k.left+(g.clientLeft+parseFloat(h.paddingLeft))*v.x,y=k.top+(g.clientTop+parseFloat(h.paddingTop))*v.y;u*=v.x,s*=v.y,c*=v.x,f*=v.y,u+=m,s+=y,g=jt(g).frameElement}}return vE({width:c,height:f,x:u,y:s})}function bE(e,t){let n=null,r;const i=ky(e);function o(){clearTimeout(r),n&&n.disconnect(),n=null}function l(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),o();const{left:s,top:c,width:f,height:d}=e.getBoundingClientRect();if(a||t(),!f||!d)return;const p=Qo(c),g=Qo(i.clientWidth-(s+f)),v=Qo(i.clientHeight-(c+d)),k=Qo(s),m={rootMargin:-p+"px "+-g+"px "+-v+"px "+-k+"px",threshold:gE(0,mE(1,u))||1};let y=!0;function E(T){const C=T[0].intersectionRatio;if(C!==u){if(!y)return l();C?l(!1,C):r=setTimeout(()=>{l(!1,1e-7)},100)}y=!1}try{n=new IntersectionObserver(E,{...m,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,m)}n.observe(e)}return l(!0),o}function OE(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,s=If(e),c=i||o?[...s?ql(s):[],...ql(t)]:[];c.forEach(h=>{i&&h.addEventListener("scroll",n,{passive:!0}),o&&h.addEventListener("resize",n)});const f=s&&a?bE(s,n):null;let d=-1,p=null;l&&(p=new ResizeObserver(h=>{let[m]=h;m&&m.target===s&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{p&&p.observe(t)})),n()}),s&&!u&&p.observe(s),p.observe(t));let g,v=u?Ep(e):null;u&&k();function k(){const h=Ep(e);v&&(h.x!==v.x||h.y!==v.y||h.width!==v.width||h.height!==v.height)&&n(),v=h,g=requestAnimationFrame(k)}return n(),()=>{c.forEach(h=>{i&&h.removeEventListener("scroll",n),o&&h.removeEventListener("resize",n)}),f&&f(),p&&p.disconnect(),p=null,u&&cancelAnimationFrame(g)}}var Zs=x.useLayoutEffect,TE=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Zl=function(){};function IE(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function PE(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i-1}function RE(e){return za(e)?window.innerHeight:e.clientHeight}function Ty(e){return za(e)?window.pageYOffset:e.scrollTop}function ea(e,t){if(za(e)){window.scrollTo(0,t);return}e.scrollTop=t}function LE(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function NE(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Ko(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Zl,i=Ty(e),o=t-i,l=10,a=0;function u(){a+=l;var s=NE(a,i,o,n);ea(e,s),an.bottom?ea(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i1?n-1:0),i=1;i=g)return{placement:"bottom",maxHeight:t};if(_>=g&&!l)return o&&Ko(u,M,D),{placement:"bottom",maxHeight:t};if(!l&&_>=r||l&&O>=r){o&&Ko(u,M,D);var Q=l?O-E:_-E;return{placement:"bottom",maxHeight:Q}}if(i==="auto"||l){var Z=t,$=l?C:P;return $>=r&&(Z=Math.min($-E-a,t)),{placement:"top",maxHeight:Z}}if(i==="bottom")return o&&ea(u,M),{placement:"bottom",maxHeight:t};break;case"top":if(C>=g)return{placement:"top",maxHeight:t};if(P>=g&&!l)return o&&Ko(u,A,D),{placement:"top",maxHeight:t};if(!l&&P>=r||l&&C>=r){var H=t;return(!l&&P>=r||l&&C>=r)&&(H=l?C-T:P-T),o&&Ko(u,A,D),{placement:"top",maxHeight:H}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return s}function UE(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Py=function(t){return t==="auto"?"bottom":t},HE=function(t,n){var r,i=t.placement,o=t.theme,l=o.borderRadius,a=o.spacing,u=o.colors;return B((r={label:"menu"},Ni(r,UE(i),"100%"),Ni(r,"position","absolute"),Ni(r,"width","100%"),Ni(r,"zIndex",1),r),n?{}:{backgroundColor:u.neutral0,borderRadius:l,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},Ry=x.createContext(null),WE=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,l=t.menuPosition,a=t.menuShouldScrollIntoView,u=t.theme,s=x.useContext(Ry)||{},c=s.setPortalPlacement,f=x.useRef(null),d=x.useState(i),p=hn(d,2),g=p[0],v=p[1],k=x.useState(null),h=hn(k,2),m=h[0],y=h[1],E=u.spacing.controlHeight;return Zs(function(){var T=f.current;if(T){var C=l==="fixed",O=a&&!C,P=BE({maxHeight:i,menuEl:T,minHeight:r,placement:o,shouldScroll:O,isFixedPosition:C,controlHeight:E});v(P.maxHeight),y(P.placement),c==null||c(P.placement)}},[i,o,l,a,r,c,E]),n({ref:f,placerProps:B(B({},t),{},{placement:m||Py(o),maxHeight:g})})},QE=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return U("div",W({},Oe(t,"menu",{menu:!0}),{ref:r},i),n)},KE=QE,GE=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return B({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},YE=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,o=t.isMulti;return U("div",W({},Oe(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},Ly=function(t,n){var r=t.theme,i=r.spacing.baseUnit,o=r.colors;return B({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},XE=Ly,qE=Ly,ZE=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,o=Jt(t,$E);return U("div",W({},Oe(B(B({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},JE=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,o=Jt(t,VE);return U("div",W({},Oe(B(B({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},eb=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},tb=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,l=t.menuPlacement,a=t.menuPosition,u=x.useRef(null),s=x.useRef(null),c=x.useState(Py(l)),f=hn(c,2),d=f[0],p=f[1],g=x.useMemo(function(){return{setPortalPlacement:p}},[]),v=x.useState(null),k=hn(v,2),h=k[0],m=k[1],y=x.useCallback(function(){if(i){var O=ME(i),P=a==="fixed"?0:window.pageYOffset,_=O[d]+P;(_!==(h==null?void 0:h.offset)||O.left!==(h==null?void 0:h.rect.left)||O.width!==(h==null?void 0:h.rect.width))&&m({offset:_,rect:O})}},[i,a,d,h==null?void 0:h.offset,h==null?void 0:h.rect.left,h==null?void 0:h.rect.width]);Zs(function(){y()},[y]);var E=x.useCallback(function(){typeof s.current=="function"&&(s.current(),s.current=null),i&&u.current&&(s.current=OE(i,u.current,y,{elementResize:"ResizeObserver"in window}))},[i,y]);Zs(function(){E()},[E]);var T=x.useCallback(function(O){u.current=O,E()},[E]);if(!n&&a!=="fixed"||!h)return null;var C=U("div",W({ref:T},Oe(B(B({},t),{},{offset:h.offset,position:a,rect:h.rect}),"menuPortal",{"menu-portal":!0}),o),r);return U(Ry.Provider,{value:g},n?rf.createPortal(C,n):C)},nb=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},rb=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,o=t.isRtl;return U("div",W({},Oe(t,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},ib=function(t,n){var r=t.theme.spacing,i=t.isMulti,o=t.hasValue,l=t.selectProps.controlShouldRenderValue;return B({alignItems:"center",display:i&&o&&l?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},ob=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,o=t.hasValue;return U("div",W({},Oe(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},lb=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},ab=function(t){var n=t.children,r=t.innerProps;return U("div",W({},Oe(t,"indicatorsContainer",{indicators:!0}),r),n)},Tp,ub=["size"],sb=["innerProps","isRtl","size"],cb={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Ny=function(t){var n=t.size,r=Jt(t,ub);return U("svg",W({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:cb},r))},Pf=function(t){return U(Ny,W({size:20},t),U("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},My=function(t){return U(Ny,W({size:20},t),U("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Dy=function(t,n){var r=t.isFocused,i=t.theme,o=i.spacing.baseUnit,l=i.colors;return B({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?l.neutral60:l.neutral20,padding:o*2,":hover":{color:r?l.neutral80:l.neutral40}})},fb=Dy,db=function(t){var n=t.children,r=t.innerProps;return U("div",W({},Oe(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||U(My,null))},pb=Dy,hb=function(t){var n=t.children,r=t.innerProps;return U("div",W({},Oe(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||U(Pf,null))},mb=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,l=i.colors;return B({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?l.neutral10:l.neutral20,marginBottom:o*2,marginTop:o*2})},gb=function(t){var n=t.innerProps;return U("span",W({},n,Oe(t,"indicatorSeparator",{"indicator-separator":!0})))},vb=cE(Tp||(Tp=hE([` + */var Ae=typeof Symbol=="function"&&Symbol.for,Sf=Ae?Symbol.for("react.element"):60103,kf=Ae?Symbol.for("react.portal"):60106,Pa=Ae?Symbol.for("react.fragment"):60107,Ra=Ae?Symbol.for("react.strict_mode"):60108,La=Ae?Symbol.for("react.profiler"):60114,Na=Ae?Symbol.for("react.provider"):60109,Ma=Ae?Symbol.for("react.context"):60110,Cf=Ae?Symbol.for("react.async_mode"):60111,Da=Ae?Symbol.for("react.concurrent_mode"):60111,_a=Ae?Symbol.for("react.forward_ref"):60112,Fa=Ae?Symbol.for("react.suspense"):60113,zC=Ae?Symbol.for("react.suspense_list"):60120,Aa=Ae?Symbol.for("react.memo"):60115,ja=Ae?Symbol.for("react.lazy"):60116,$C=Ae?Symbol.for("react.block"):60121,VC=Ae?Symbol.for("react.fundamental"):60117,BC=Ae?Symbol.for("react.responder"):60118,UC=Ae?Symbol.for("react.scope"):60119;function wt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Sf:switch(e=e.type,e){case Cf:case Da:case Pa:case La:case Ra:case Fa:return e;default:switch(e=e&&e.$$typeof,e){case Ma:case _a:case ja:case Aa:case Na:return e;default:return t}}case kf:return t}}}function my(e){return wt(e)===Da}ce.AsyncMode=Cf;ce.ConcurrentMode=Da;ce.ContextConsumer=Ma;ce.ContextProvider=Na;ce.Element=Sf;ce.ForwardRef=_a;ce.Fragment=Pa;ce.Lazy=ja;ce.Memo=Aa;ce.Portal=kf;ce.Profiler=La;ce.StrictMode=Ra;ce.Suspense=Fa;ce.isAsyncMode=function(e){return my(e)||wt(e)===Cf};ce.isConcurrentMode=my;ce.isContextConsumer=function(e){return wt(e)===Ma};ce.isContextProvider=function(e){return wt(e)===Na};ce.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Sf};ce.isForwardRef=function(e){return wt(e)===_a};ce.isFragment=function(e){return wt(e)===Pa};ce.isLazy=function(e){return wt(e)===ja};ce.isMemo=function(e){return wt(e)===Aa};ce.isPortal=function(e){return wt(e)===kf};ce.isProfiler=function(e){return wt(e)===La};ce.isStrictMode=function(e){return wt(e)===Ra};ce.isSuspense=function(e){return wt(e)===Fa};ce.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Pa||e===Da||e===La||e===Ra||e===Fa||e===zC||typeof e=="object"&&e!==null&&(e.$$typeof===ja||e.$$typeof===Aa||e.$$typeof===Na||e.$$typeof===Ma||e.$$typeof===_a||e.$$typeof===VC||e.$$typeof===BC||e.$$typeof===UC||e.$$typeof===$C)};ce.typeOf=wt;hy.exports=ce;var HC=hy.exports,gy=HC,WC={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},QC={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},vy={};vy[gy.ForwardRef]=WC;vy[gy.Memo]=QC;var KC=!0;function GC(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var yy=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||KC===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},YC=function(t,n,r){yy(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function XC(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=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(i){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 qC={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},ZC=/[A-Z]|^ms/g,JC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,xy=function(t){return t.charCodeAt(1)===45},wp=function(t){return t!=null&&typeof t!="boolean"},bu=RC(function(e){return xy(e)?e:e.replace(ZC,"-$&").toLowerCase()}),Sp=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(JC,function(r,i,o){return Ht={name:i,styles:o,next:Ht},i})}return qC[t]!==1&&!xy(t)&&typeof n=="number"&&n!==0?n+"px":n};function fo(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 Ht={name:n.name,styles:n.styles,next:Ht},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Ht={name:r.name,styles:r.styles,next:Ht},r=r.next;var i=n.styles+";";return i}return eE(e,t,n)}case"function":{if(e!==void 0){var o=Ht,l=n(e);return Ht=o,fo(e,t,l)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function eE(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hE(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const mE=Math.min,gE=Math.max,Yl=Math.round,Qo=Math.floor,Xl=e=>({x:e,y:e});function vE(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function ky(e){return Ey(e)?(e.nodeName||"").toLowerCase():"#document"}function jt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Cy(e){var t;return(t=(Ey(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ey(e){return e instanceof Node||e instanceof jt(e).Node}function qs(e){return e instanceof Element||e instanceof jt(e).Element}function Of(e){return e instanceof HTMLElement||e instanceof jt(e).HTMLElement}function Cp(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof jt(e).ShadowRoot}function by(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Tf(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function yE(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function xE(e){return["html","body","#document"].includes(ky(e))}function Tf(e){return jt(e).getComputedStyle(e)}function wE(e){if(ky(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Cp(e)&&e.host||Cy(e);return Cp(t)?t.host:t}function Oy(e){const t=wE(e);return xE(t)?e.ownerDocument?e.ownerDocument.body:e.body:Of(t)&&by(t)?t:Oy(t)}function ql(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Oy(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),l=jt(i);return o?t.concat(l,l.visualViewport||[],by(i)?i:[],l.frameElement&&n?ql(l.frameElement):[]):t.concat(i,ql(i,[],n))}function SE(e){const t=Tf(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Of(e),o=i?e.offsetWidth:n,l=i?e.offsetHeight:r,a=Yl(n)!==o||Yl(r)!==l;return a&&(n=o,r=l),{width:n,height:r,$:a}}function If(e){return qs(e)?e:e.contextElement}function Ou(e){const t=If(e);if(!Of(t))return Xl(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=SE(t);let l=(o?Yl(n.width):n.width)/r,a=(o?Yl(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!a||!Number.isFinite(a))&&(a=1),{x:l,y:a}}const kE=Xl(0);function CE(e){const t=jt(e);return!yE()||!t.visualViewport?kE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function EE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==jt(e)?!1:t}function Ep(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=If(e);let l=Xl(1);t&&(r?qs(r)&&(l=Ou(r)):l=Ou(e));const a=EE(o,n,r)?CE(o):Xl(0);let u=(i.left+a.x)/l.x,s=(i.top+a.y)/l.y,c=i.width/l.x,f=i.height/l.y;if(o){const d=jt(o),p=r&&qs(r)?jt(r):r;let g=d.frameElement;for(;g&&r&&p!==d;){const v=Ou(g),k=g.getBoundingClientRect(),h=Tf(g),m=k.left+(g.clientLeft+parseFloat(h.paddingLeft))*v.x,y=k.top+(g.clientTop+parseFloat(h.paddingTop))*v.y;u*=v.x,s*=v.y,c*=v.x,f*=v.y,u+=m,s+=y,g=jt(g).frameElement}}return vE({width:c,height:f,x:u,y:s})}function bE(e,t){let n=null,r;const i=Cy(e);function o(){clearTimeout(r),n&&n.disconnect(),n=null}function l(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),o();const{left:s,top:c,width:f,height:d}=e.getBoundingClientRect();if(a||t(),!f||!d)return;const p=Qo(c),g=Qo(i.clientWidth-(s+f)),v=Qo(i.clientHeight-(c+d)),k=Qo(s),m={rootMargin:-p+"px "+-g+"px "+-v+"px "+-k+"px",threshold:gE(0,mE(1,u))||1};let y=!0;function E(T){const C=T[0].intersectionRatio;if(C!==u){if(!y)return l();C?l(!1,C):r=setTimeout(()=>{l(!1,1e-7)},100)}y=!1}try{n=new IntersectionObserver(E,{...m,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,m)}n.observe(e)}return l(!0),o}function OE(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,s=If(e),c=i||o?[...s?ql(s):[],...ql(t)]:[];c.forEach(h=>{i&&h.addEventListener("scroll",n,{passive:!0}),o&&h.addEventListener("resize",n)});const f=s&&a?bE(s,n):null;let d=-1,p=null;l&&(p=new ResizeObserver(h=>{let[m]=h;m&&m.target===s&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{p&&p.observe(t)})),n()}),s&&!u&&p.observe(s),p.observe(t));let g,v=u?Ep(e):null;u&&k();function k(){const h=Ep(e);v&&(h.x!==v.x||h.y!==v.y||h.width!==v.width||h.height!==v.height)&&n(),v=h,g=requestAnimationFrame(k)}return n(),()=>{c.forEach(h=>{i&&h.removeEventListener("scroll",n),o&&h.removeEventListener("resize",n)}),f&&f(),p&&p.disconnect(),p=null,u&&cancelAnimationFrame(g)}}var Zs=x.useLayoutEffect,TE=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Zl=function(){};function IE(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function PE(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i-1}function RE(e){return za(e)?window.innerHeight:e.clientHeight}function Iy(e){return za(e)?window.pageYOffset:e.scrollTop}function ea(e,t){if(za(e)){window.scrollTo(0,t);return}e.scrollTop=t}function LE(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function NE(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Ko(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Zl,i=Iy(e),o=t-i,l=10,a=0;function u(){a+=l;var s=NE(a,i,o,n);ea(e,s),an.bottom?ea(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i1?n-1:0),i=1;i=g)return{placement:"bottom",maxHeight:t};if(_>=g&&!l)return o&&Ko(u,M,D),{placement:"bottom",maxHeight:t};if(!l&&_>=r||l&&O>=r){o&&Ko(u,M,D);var Q=l?O-E:_-E;return{placement:"bottom",maxHeight:Q}}if(i==="auto"||l){var Z=t,$=l?C:P;return $>=r&&(Z=Math.min($-E-a,t)),{placement:"top",maxHeight:Z}}if(i==="bottom")return o&&ea(u,M),{placement:"bottom",maxHeight:t};break;case"top":if(C>=g)return{placement:"top",maxHeight:t};if(P>=g&&!l)return o&&Ko(u,A,D),{placement:"top",maxHeight:t};if(!l&&P>=r||l&&C>=r){var H=t;return(!l&&P>=r||l&&C>=r)&&(H=l?C-T:P-T),o&&Ko(u,A,D),{placement:"top",maxHeight:H}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return s}function UE(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Ry=function(t){return t==="auto"?"bottom":t},HE=function(t,n){var r,i=t.placement,o=t.theme,l=o.borderRadius,a=o.spacing,u=o.colors;return B((r={label:"menu"},Ni(r,UE(i),"100%"),Ni(r,"position","absolute"),Ni(r,"width","100%"),Ni(r,"zIndex",1),r),n?{}:{backgroundColor:u.neutral0,borderRadius:l,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},Ly=x.createContext(null),WE=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,l=t.menuPosition,a=t.menuShouldScrollIntoView,u=t.theme,s=x.useContext(Ly)||{},c=s.setPortalPlacement,f=x.useRef(null),d=x.useState(i),p=hn(d,2),g=p[0],v=p[1],k=x.useState(null),h=hn(k,2),m=h[0],y=h[1],E=u.spacing.controlHeight;return Zs(function(){var T=f.current;if(T){var C=l==="fixed",O=a&&!C,P=BE({maxHeight:i,menuEl:T,minHeight:r,placement:o,shouldScroll:O,isFixedPosition:C,controlHeight:E});v(P.maxHeight),y(P.placement),c==null||c(P.placement)}},[i,o,l,a,r,c,E]),n({ref:f,placerProps:B(B({},t),{},{placement:m||Ry(o),maxHeight:g})})},QE=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return U("div",W({},Oe(t,"menu",{menu:!0}),{ref:r},i),n)},KE=QE,GE=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return B({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},YE=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,o=t.isMulti;return U("div",W({},Oe(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},Ny=function(t,n){var r=t.theme,i=r.spacing.baseUnit,o=r.colors;return B({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},XE=Ny,qE=Ny,ZE=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,o=Jt(t,$E);return U("div",W({},Oe(B(B({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},JE=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,o=Jt(t,VE);return U("div",W({},Oe(B(B({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},eb=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},tb=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,l=t.menuPlacement,a=t.menuPosition,u=x.useRef(null),s=x.useRef(null),c=x.useState(Ry(l)),f=hn(c,2),d=f[0],p=f[1],g=x.useMemo(function(){return{setPortalPlacement:p}},[]),v=x.useState(null),k=hn(v,2),h=k[0],m=k[1],y=x.useCallback(function(){if(i){var O=ME(i),P=a==="fixed"?0:window.pageYOffset,_=O[d]+P;(_!==(h==null?void 0:h.offset)||O.left!==(h==null?void 0:h.rect.left)||O.width!==(h==null?void 0:h.rect.width))&&m({offset:_,rect:O})}},[i,a,d,h==null?void 0:h.offset,h==null?void 0:h.rect.left,h==null?void 0:h.rect.width]);Zs(function(){y()},[y]);var E=x.useCallback(function(){typeof s.current=="function"&&(s.current(),s.current=null),i&&u.current&&(s.current=OE(i,u.current,y,{elementResize:"ResizeObserver"in window}))},[i,y]);Zs(function(){E()},[E]);var T=x.useCallback(function(O){u.current=O,E()},[E]);if(!n&&a!=="fixed"||!h)return null;var C=U("div",W({ref:T},Oe(B(B({},t),{},{offset:h.offset,position:a,rect:h.rect}),"menuPortal",{"menu-portal":!0}),o),r);return U(Ly.Provider,{value:g},n?rf.createPortal(C,n):C)},nb=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},rb=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,o=t.isRtl;return U("div",W({},Oe(t,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},ib=function(t,n){var r=t.theme.spacing,i=t.isMulti,o=t.hasValue,l=t.selectProps.controlShouldRenderValue;return B({alignItems:"center",display:i&&o&&l?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},ob=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,o=t.hasValue;return U("div",W({},Oe(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},lb=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},ab=function(t){var n=t.children,r=t.innerProps;return U("div",W({},Oe(t,"indicatorsContainer",{indicators:!0}),r),n)},Tp,ub=["size"],sb=["innerProps","isRtl","size"],cb={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},My=function(t){var n=t.size,r=Jt(t,ub);return U("svg",W({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:cb},r))},Pf=function(t){return U(My,W({size:20},t),U("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Dy=function(t){return U(My,W({size:20},t),U("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},_y=function(t,n){var r=t.isFocused,i=t.theme,o=i.spacing.baseUnit,l=i.colors;return B({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?l.neutral60:l.neutral20,padding:o*2,":hover":{color:r?l.neutral80:l.neutral40}})},fb=_y,db=function(t){var n=t.children,r=t.innerProps;return U("div",W({},Oe(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||U(Dy,null))},pb=_y,hb=function(t){var n=t.children,r=t.innerProps;return U("div",W({},Oe(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||U(Pf,null))},mb=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,l=i.colors;return B({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?l.neutral10:l.neutral20,marginBottom:o*2,marginTop:o*2})},gb=function(t){var n=t.innerProps;return U("span",W({},n,Oe(t,"indicatorSeparator",{"indicator-separator":!0})))},vb=cE(Tp||(Tp=hE([` 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } -`]))),yb=function(t,n){var r=t.isFocused,i=t.size,o=t.theme,l=o.colors,a=o.spacing.baseUnit;return B({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?l.neutral60:l.neutral20,padding:a*2})},Tu=function(t){var n=t.delay,r=t.offset;return U("span",{css:bf({animation:"".concat(vb," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},xb=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,o=i===void 0?4:i,l=Jt(t,sb);return U("div",W({},Oe(B(B({},l),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),U(Tu,{delay:0,offset:r}),U(Tu,{delay:160,offset:!0}),U(Tu,{delay:320,offset:!r}))},wb=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.theme,l=o.colors,a=o.borderRadius,u=o.spacing;return B({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:u.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?l.neutral5:l.neutral0,borderColor:r?l.neutral10:i?l.primary:l.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(l.primary):void 0,"&:hover":{borderColor:i?l.primary:l.neutral30}})},Sb=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.innerRef,l=t.innerProps,a=t.menuIsOpen;return U("div",W({ref:o},Oe(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":a}),l,{"aria-disabled":r||void 0}),n)},kb=Sb,Cb=["data"],Eb=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},bb=function(t){var n=t.children,r=t.cx,i=t.getStyles,o=t.getClassNames,l=t.Heading,a=t.headingProps,u=t.innerProps,s=t.label,c=t.theme,f=t.selectProps;return U("div",W({},Oe(t,"group",{group:!0}),u),U(l,W({},a,{selectProps:f,theme:c,getStyles:i,getClassNames:o,cx:r}),s),U("div",null,n))},Ob=function(t,n){var r=t.theme,i=r.colors,o=r.spacing;return B({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},Tb=function(t){var n=Oy(t);n.data;var r=Jt(n,Cb);return U("div",W({},Oe(t,"groupHeading",{"group-heading":!0}),r))},Ib=bb,Pb=["innerRef","isDisabled","isHidden","inputClassName"],Rb=function(t,n){var r=t.isDisabled,i=t.value,o=t.theme,l=o.spacing,a=o.colors;return B(B({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},Lb),n?{}:{margin:l.baseUnit/2,paddingBottom:l.baseUnit/2,paddingTop:l.baseUnit/2,color:a.neutral80})},_y={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Lb={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":B({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},_y)},Nb=function(t){return B({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},_y)},Mb=function(t){var n=t.cx,r=t.value,i=Oy(t),o=i.innerRef,l=i.isDisabled,a=i.isHidden,u=i.inputClassName,s=Jt(i,Pb);return U("div",W({},Oe(t,"input",{"input-container":!0}),{"data-value":r||""}),U("input",W({className:n({input:!0},u),ref:o,style:Nb(a),disabled:l},s)))},Db=Mb,_b=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,l=r.colors;return B({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:l.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},Fb=function(t,n){var r=t.theme,i=r.borderRadius,o=r.colors,l=t.cropWithEllipsis;return B({overflow:"hidden",textOverflow:l||l===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Ab=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,l=r.colors,a=t.isFocused;return B({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:a?l.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:l.dangerLight,color:l.danger}})},Fy=function(t){var n=t.children,r=t.innerProps;return U("div",r,n)},jb=Fy,zb=Fy;function $b(e){var t=e.children,n=e.innerProps;return U("div",W({role:"button"},n),t||U(Pf,{size:14}))}var Vb=function(t){var n=t.children,r=t.components,i=t.data,o=t.innerProps,l=t.isDisabled,a=t.removeProps,u=t.selectProps,s=r.Container,c=r.Label,f=r.Remove;return U(s,{data:i,innerProps:B(B({},Oe(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":l})),o),selectProps:u},U(c,{data:i,innerProps:B({},Oe(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},n),U(f,{data:i,innerProps:B(B({},Oe(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},a),selectProps:u}))},Bb=Vb,Ub=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.isSelected,l=t.theme,a=l.spacing,u=l.colors;return B({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?u.primary:i?u.primary25:"transparent",color:r?u.neutral20:o?u.neutral0:"inherit",padding:"".concat(a.baseUnit*2,"px ").concat(a.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?u.primary:u.primary50}})},Hb=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.isSelected,l=t.innerRef,a=t.innerProps;return U("div",W({},Oe(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:l,"aria-disabled":r},a),n)},Wb=Hb,Qb=function(t,n){var r=t.theme,i=r.spacing,o=r.colors;return B({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},Kb=function(t){var n=t.children,r=t.innerProps;return U("div",W({},Oe(t,"placeholder",{placeholder:!0}),r),n)},Gb=Kb,Yb=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing,l=i.colors;return B({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?l.neutral40:l.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Xb=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return U("div",W({},Oe(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},qb=Xb,Zb={ClearIndicator:hb,Control:kb,DropdownIndicator:db,DownChevron:My,CrossIcon:Pf,Group:Ib,GroupHeading:Tb,IndicatorsContainer:ab,IndicatorSeparator:gb,Input:Db,LoadingIndicator:xb,Menu:KE,MenuList:YE,MenuPortal:tb,LoadingMessage:JE,NoOptionsMessage:ZE,MultiValue:Bb,MultiValueContainer:jb,MultiValueLabel:zb,MultiValueRemove:$b,Option:Wb,Placeholder:Gb,SelectContainer:rb,SingleValue:qb,ValueContainer:ob},Jb=function(t){return B(B({},Zb),t.components)},Ip=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function eO(e,t){return!!(e===t||Ip(e)&&Ip(t))}function tO(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return l?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,o=t.label,l=o===void 0?"":o,a=t.selectValue,u=t.isDisabled,s=t.isSelected,c=t.isAppleDevice,f=function(v,k){return v&&v.length?"".concat(v.indexOf(k)+1," of ").concat(v.length):""};if(n==="value"&&a)return"value ".concat(l," focused, ").concat(f(a,r),".");if(n==="menu"&&c){var d=u?" disabled":"",p="".concat(s?" selected":"").concat(d);return"".concat(l).concat(p,", ").concat(f(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},lO=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,l=t.isFocused,a=t.selectValue,u=t.selectProps,s=t.id,c=t.isAppleDevice,f=u.ariaLiveMessages,d=u.getOptionLabel,p=u.inputValue,g=u.isMulti,v=u.isOptionDisabled,k=u.isSearchable,h=u.menuIsOpen,m=u.options,y=u.screenReaderStatus,E=u.tabSelectsValue,T=u.isLoading,C=u["aria-label"],O=u["aria-live"],P=x.useMemo(function(){return B(B({},oO),f||{})},[f]),_=x.useMemo(function(){var $="";if(n&&P.onChange){var H=n.option,ee=n.options,R=n.removedValue,z=n.removedValues,w=n.value,G=function(Ee){return Array.isArray(Ee)?null:Ee},V=R||H||G(w),S=V?d(V):"",re=ee||z||void 0,pe=re?re.map(d):[],X=B({isDisabled:V&&v(V,a),label:S,labels:pe},n);$=P.onChange(X)}return $},[n,P,v,a,d]),M=x.useMemo(function(){var $="",H=r||i,ee=!!(r&&a&&a.includes(r));if(H&&P.onFocus){var R={focused:H,label:d(H),isDisabled:v(H,a),isSelected:ee,options:o,context:H===r?"menu":"value",selectValue:a,isAppleDevice:c};$=P.onFocus(R)}return $},[r,i,d,v,P,o,a,c]),A=x.useMemo(function(){var $="";if(h&&m.length&&!T&&P.onFilter){var H=y({count:o.length});$=P.onFilter({inputValue:p,resultsMessage:H})}return $},[o,p,h,P,m,y,T]),D=(n==null?void 0:n.action)==="initial-input-focus",Q=x.useMemo(function(){var $="";if(P.guidance){var H=i?"value":h?"menu":"input";$=P.guidance({"aria-label":C,context:H,isDisabled:r&&v(r,a),isMulti:g,isSearchable:k,tabSelectsValue:E,isInitialFocus:D})}return $},[C,r,i,g,v,k,h,P,a,E,D]),Z=U(x.Fragment,null,U("span",{id:"aria-selection"},_),U("span",{id:"aria-focused"},M),U("span",{id:"aria-results"},A),U("span",{id:"aria-guidance"},Q));return U(x.Fragment,null,U(Pp,{id:s},D&&Z),U(Pp,{"aria-live":O,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},l&&!D&&Z))},aO=lO,Js=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],uO=new RegExp("["+Js.map(function(e){return e.letters}).join("")+"]","g"),Ay={};for(var Iu=0;Iu-1}},dO=["innerRef"];function pO(e){var t=e.innerRef,n=Jt(e,dO),r=zE(n,"onExited","in","enter","exit","appear");return U("input",W({ref:t},r,{css:bf({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var hO=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function mO(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,l=x.useRef(!1),a=x.useRef(!1),u=x.useRef(0),s=x.useRef(null),c=x.useCallback(function(k,h){if(s.current!==null){var m=s.current,y=m.scrollTop,E=m.scrollHeight,T=m.clientHeight,C=s.current,O=h>0,P=E-T-y,_=!1;P>h&&l.current&&(r&&r(k),l.current=!1),O&&a.current&&(o&&o(k),a.current=!1),O&&h>P?(n&&!l.current&&n(k),C.scrollTop=E,_=!0,l.current=!0):!O&&-h>y&&(i&&!a.current&&i(k),C.scrollTop=0,_=!0,a.current=!0),_&&hO(k)}},[n,r,i,o]),f=x.useCallback(function(k){c(k,k.deltaY)},[c]),d=x.useCallback(function(k){u.current=k.changedTouches[0].clientY},[]),p=x.useCallback(function(k){var h=u.current-k.changedTouches[0].clientY;c(k,h)},[c]),g=x.useCallback(function(k){if(k){var h=FE?{passive:!1}:!1;k.addEventListener("wheel",f,h),k.addEventListener("touchstart",d,h),k.addEventListener("touchmove",p,h)}},[p,d,f]),v=x.useCallback(function(k){k&&(k.removeEventListener("wheel",f,!1),k.removeEventListener("touchstart",d,!1),k.removeEventListener("touchmove",p,!1))},[p,d,f]);return x.useEffect(function(){if(t){var k=s.current;return g(k),function(){v(k)}}},[t,g,v]),function(k){s.current=k}}var Lp=["boxSizing","height","overflow","paddingRight","position"],Np={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Mp(e){e.preventDefault()}function Dp(e){e.stopPropagation()}function _p(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Fp(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ap=!!(typeof window<"u"&&window.document&&window.document.createElement),bi=0,kr={capture:!1,passive:!1};function gO(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=x.useRef({}),o=x.useRef(null),l=x.useCallback(function(u){if(Ap){var s=document.body,c=s&&s.style;if(r&&Lp.forEach(function(g){var v=c&&c[g];i.current[g]=v}),r&&bi<1){var f=parseInt(i.current.paddingRight,10)||0,d=document.body?document.body.clientWidth:0,p=window.innerWidth-d+f||0;Object.keys(Np).forEach(function(g){var v=Np[g];c&&(c[g]=v)}),c&&(c.paddingRight="".concat(p,"px"))}s&&Fp()&&(s.addEventListener("touchmove",Mp,kr),u&&(u.addEventListener("touchstart",_p,kr),u.addEventListener("touchmove",Dp,kr))),bi+=1}},[r]),a=x.useCallback(function(u){if(Ap){var s=document.body,c=s&&s.style;bi=Math.max(bi-1,0),r&&bi<1&&Lp.forEach(function(f){var d=i.current[f];c&&(c[f]=d)}),s&&Fp()&&(s.removeEventListener("touchmove",Mp,kr),u&&(u.removeEventListener("touchstart",_p,kr),u.removeEventListener("touchmove",Dp,kr)))}},[r]);return x.useEffect(function(){if(t){var u=o.current;return l(u),function(){a(u)}}},[t,l,a]),function(u){o.current=u}}var vO=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},yO={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function xO(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,o=e.onBottomArrive,l=e.onBottomLeave,a=e.onTopArrive,u=e.onTopLeave,s=mO({isEnabled:i,onBottomArrive:o,onBottomLeave:l,onTopArrive:a,onTopLeave:u}),c=gO({isEnabled:n}),f=function(p){s(p),c(p)};return U(x.Fragment,null,n&&U("div",{onClick:vO,css:yO}),t(f))}var wO={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},SO=function(t){var n=t.name,r=t.onFocus;return U("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:wO,value:"",onChange:function(){}})},kO=SO;function Rf(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function CO(){return Rf(/^iPhone/i)}function zy(){return Rf(/^Mac/i)}function EO(){return Rf(/^iPad/i)||zy()&&navigator.maxTouchPoints>1}function bO(){return CO()||EO()}function OO(){return zy()||bO()}var TO=function(t){return t.label},$y=function(t){return t.label},Vy=function(t){return t.value},IO=function(t){return!!t.isDisabled},PO={clearIndicator:pb,container:nb,control:wb,dropdownIndicator:fb,group:Eb,groupHeading:Ob,indicatorsContainer:lb,indicatorSeparator:mb,input:Rb,loadingIndicator:yb,loadingMessage:qE,menu:HE,menuList:GE,menuPortal:eb,multiValue:_b,multiValueLabel:Fb,multiValueRemove:Ab,noOptionsMessage:XE,option:Ub,placeholder:Qb,singleValue:Yb,valueContainer:ib},RO={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},LO=4,By=4,NO=38,MO=By*2,DO={baseUnit:By,controlHeight:NO,menuGutter:MO},Lu={borderRadius:LO,colors:RO,spacing:DO},_O={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Op(),captureMenuScroll:!Op(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:fO(),formatGroupLabel:TO,getOptionLabel:$y,getOptionValue:Vy,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:IO,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!DE(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function jp(e,t,n,r){var i=Wy(e,t,n),o=Qy(e,t,n),l=Hy(e,t),a=ta(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:l,value:a,index:r}}function hl(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(l,a){return jp(e,l,t,a)}).filter(function(l){return $p(e,l)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=jp(e,n,t,r);return $p(e,o)?o:void 0}).filter(AE)}function Uy(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Hr(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function zp(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,Hr(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function FO(e,t){return Uy(hl(e,t))}function $p(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,l=t.label,a=t.value;return(!Gy(e)||!o)&&Ky(e,{label:l,value:a,data:i},r)}function AO(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var o=t.indexOf(n);if(o>-1)return n;if(i-1?n:t[0]}var Nu=function(t,n){var r,i=(r=t.find(function(o){return o.data===n}))===null||r===void 0?void 0:r.id;return i||null},Hy=function(t,n){return t.getOptionLabel(n)},ta=function(t,n){return t.getOptionValue(n)};function Wy(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function Qy(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=ta(e,t);return n.some(function(i){return ta(e,i)===r})}function Ky(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Gy=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},zO=1,Yy=function(e){tC(n,e);var t=oC(n);function n(r){var i;if(Jk(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=OO(),i.controlRef=null,i.getControlRef=function(u){i.controlRef=u},i.focusedOptionRef=null,i.getFocusedOptionRef=function(u){i.focusedOptionRef=u},i.menuListRef=null,i.getMenuListRef=function(u){i.menuListRef=u},i.inputRef=null,i.getInputRef=function(u){i.inputRef=u},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(u,s){var c=i.props,f=c.onChange,d=c.name;s.name=d,i.ariaOnChange(u,s),f(u,s)},i.setValue=function(u,s,c){var f=i.props,d=f.closeMenuOnSelect,p=f.isMulti,g=f.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:g}),d&&(i.setState({inputIsHiddenAfterUpdate:!p}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(u,{action:s,option:c})},i.selectOption=function(u){var s=i.props,c=s.blurInputOnSelect,f=s.isMulti,d=s.name,p=i.state.selectValue,g=f&&i.isOptionSelected(u,p),v=i.isOptionDisabled(u,p);if(g){var k=i.getOptionValue(u);i.setValue(p.filter(function(h){return i.getOptionValue(h)!==k}),"deselect-option",u)}else if(!v)f?i.setValue([].concat(Hr(p),[u]),"select-option",u):i.setValue(u,"select-option");else{i.ariaOnChange(u,{action:"select-option",option:u,name:d});return}c&&i.blurInput()},i.removeValue=function(u){var s=i.props.isMulti,c=i.state.selectValue,f=i.getOptionValue(u),d=c.filter(function(g){return i.getOptionValue(g)!==f}),p=Mi(s,d,d[0]||null);i.onChange(p,{action:"remove-value",removedValue:u}),i.focusInput()},i.clearValue=function(){var u=i.state.selectValue;i.onChange(Mi(i.props.isMulti,[],null),{action:"clear",removedValues:u})},i.popValue=function(){var u=i.props.isMulti,s=i.state.selectValue,c=s[s.length-1],f=s.slice(0,s.length-1),d=Mi(u,f,f[0]||null);i.onChange(d,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(u){return Nu(i.state.focusableOptionsWithIds,u)},i.getFocusableOptionsWithIds=function(){return zp(hl(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var u=arguments.length,s=new Array(u),c=0;cp||d>p}},i.onTouchEnd=function(u){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(u.target)&&i.menuListRef&&!i.menuListRef.contains(u.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(u){i.userIsDragging||i.onControlMouseDown(u)},i.onClearIndicatorTouchEnd=function(u){i.userIsDragging||i.onClearIndicatorMouseDown(u)},i.onDropdownIndicatorTouchEnd=function(u){i.userIsDragging||i.onDropdownIndicatorMouseDown(u)},i.handleInputChange=function(u){var s=i.props.inputValue,c=u.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:s}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(u){i.props.onFocus&&i.props.onFocus(u),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(u){var s=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(u),i.onInputChange("",{action:"input-blur",prevInputValue:s}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(u){if(!(i.blockOptionHover||i.state.focusedOption===u)){var s=i.getFocusableOptions(),c=s.indexOf(u);i.setState({focusedOption:u,focusedOptionId:c>-1?i.getFocusedOptionId(u):null})}},i.shouldHideSelectedOptions=function(){return Gy(i.props)},i.onValueInputFocus=function(u){u.preventDefault(),u.stopPropagation(),i.focus()},i.onKeyDown=function(u){var s=i.props,c=s.isMulti,f=s.backspaceRemovesValue,d=s.escapeClearsValue,p=s.inputValue,g=s.isClearable,v=s.isDisabled,k=s.menuIsOpen,h=s.onKeyDown,m=s.tabSelectsValue,y=s.openMenuOnFocus,E=i.state,T=E.focusedOption,C=E.focusedValue,O=E.selectValue;if(!v&&!(typeof h=="function"&&(h(u),u.defaultPrevented))){switch(i.blockOptionHover=!0,u.key){case"ArrowLeft":if(!c||p)return;i.focusValue("previous");break;case"ArrowRight":if(!c||p)return;i.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(C)i.removeValue(C);else{if(!f)return;c?i.popValue():g&&i.clearValue()}break;case"Tab":if(i.isComposing||u.shiftKey||!k||!m||!T||y&&i.isOptionSelected(T,O))return;i.selectOption(T);break;case"Enter":if(u.keyCode===229)break;if(k){if(!T||i.isComposing)return;i.selectOption(T);break}return;case"Escape":k?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:p}),i.onMenuClose()):g&&d&&i.clearValue();break;case" ":if(p)return;if(!k){i.openMenu("first");break}if(!T)return;i.selectOption(T);break;case"ArrowUp":k?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":k?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!k)return;i.focusOption("pageup");break;case"PageDown":if(!k)return;i.focusOption("pagedown");break;case"Home":if(!k)return;i.focusOption("first");break;case"End":if(!k)return;i.focusOption("last");break;default:return}u.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++zO),i.state.selectValue=Jl(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),l=i.buildFocusableOptions(),a=l.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=l[a],i.state.focusedOptionId=Nu(o,l[a])}return i}return eC(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&bp(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,l=o.isDisabled,a=o.menuIsOpen,u=this.state.isFocused;(u&&!l&&i.isDisabled||u&&a&&!i.menuIsOpen)&&this.focusInput(),u&&l&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!u&&!l&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(bp(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,l=this.state,a=l.selectValue,u=l.isFocused,s=this.buildFocusableOptions(),c=i==="first"?0:s.length-1;if(!this.props.isMulti){var f=s.indexOf(a[0]);f>-1&&(c=f)}this.scrollToFocusedOptionOnUpdate=!(u&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:s[c],focusedOptionId:this.getFocusedOptionId(s[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,l=o.selectValue,a=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var u=l.indexOf(a);a||(u=-1);var s=l.length-1,c=-1;if(l.length){switch(i){case"previous":u===0?c=0:u===-1?c=s:c=u-1;break;case"next":u>-1&&u0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,l=this.state.focusedOption,a=this.getFocusableOptions();if(a.length){var u=0,s=a.indexOf(l);l||(s=-1),i==="up"?u=s>0?s-1:a.length-1:i==="down"?u=(s+1)%a.length:i==="pageup"?(u=s-o,u<0&&(u=0)):i==="pagedown"?(u=s+o,u>a.length-1&&(u=a.length-1)):i==="last"&&(u=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[u],focusedValue:null,focusedOptionId:this.getFocusedOptionId(a[u])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Lu):B(B({},Lu),this.props.theme):Lu}},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,l=this.getStyles,a=this.getClassNames,u=this.getValue,s=this.selectOption,c=this.setValue,f=this.props,d=f.isMulti,p=f.isRtl,g=f.options,v=this.hasValue();return{clearValue:i,cx:o,getStyles:l,getClassNames:a,getValue:u,hasValue:v,isMulti:d,isRtl:p,options:g,selectOption:s,selectProps:f,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,l=i.isMulti;return o===void 0?l:o}},{key:"isOptionDisabled",value:function(i,o){return Wy(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return Qy(this.props,i,o)}},{key:"filterOption",value:function(i,o){return Ky(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var l=this.props.inputValue,a=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:l,selectValue:a})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,o=i.isDisabled,l=i.isSearchable,a=i.inputId,u=i.inputValue,s=i.tabIndex,c=i.form,f=i.menuIsOpen,d=i.required,p=this.getComponents(),g=p.Input,v=this.state,k=v.inputIsHidden,h=v.ariaSelection,m=this.commonProps,y=a||this.getElementId("input"),E=B(B(B({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!l&&{"aria-readonly":!0}),this.hasValue()?(h==null?void 0:h.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return l?x.createElement(g,W({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:y,innerRef:this.getInputRef,isDisabled:o,isHidden:k,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:c,type:"text",value:u},E)):x.createElement(pO,W({id:y,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Zl,onFocus:this.onInputFocus,disabled:o,tabIndex:s,inputMode:"none",form:c,value:""},E))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),l=o.MultiValue,a=o.MultiValueContainer,u=o.MultiValueLabel,s=o.MultiValueRemove,c=o.SingleValue,f=o.Placeholder,d=this.commonProps,p=this.props,g=p.controlShouldRenderValue,v=p.isDisabled,k=p.isMulti,h=p.inputValue,m=p.placeholder,y=this.state,E=y.selectValue,T=y.focusedValue,C=y.isFocused;if(!this.hasValue()||!g)return h?null:x.createElement(f,W({},d,{key:"placeholder",isDisabled:v,isFocused:C,innerProps:{id:this.getElementId("placeholder")}}),m);if(k)return E.map(function(P,_){var M=P===T,A="".concat(i.getOptionLabel(P),"-").concat(i.getOptionValue(P));return x.createElement(l,W({},d,{components:{Container:a,Label:u,Remove:s},isFocused:M,isDisabled:v,key:A,index:_,removeProps:{onClick:function(){return i.removeValue(P)},onTouchEnd:function(){return i.removeValue(P)},onMouseDown:function(Q){Q.preventDefault()}},data:P}),i.formatOptionLabel(P,"value"))});if(h)return null;var O=E[0];return x.createElement(c,W({},d,{data:O,isDisabled:v}),this.formatOptionLabel(O,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,l=this.commonProps,a=this.props,u=a.isDisabled,s=a.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||u||!this.hasValue()||s)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return x.createElement(o,W({},l,{innerProps:f,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,l=this.commonProps,a=this.props,u=a.isDisabled,s=a.isLoading,c=this.state.isFocused;if(!o||!s)return null;var f={"aria-hidden":"true"};return x.createElement(o,W({},l,{innerProps:f,isDisabled:u,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,l=i.IndicatorSeparator;if(!o||!l)return null;var a=this.commonProps,u=this.props.isDisabled,s=this.state.isFocused;return x.createElement(l,W({},a,{isDisabled:u,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var l=this.commonProps,a=this.props.isDisabled,u=this.state.isFocused,s={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return x.createElement(o,W({},l,{innerProps:s,isDisabled:a,isFocused:u}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),l=o.Group,a=o.GroupHeading,u=o.Menu,s=o.MenuList,c=o.MenuPortal,f=o.LoadingMessage,d=o.NoOptionsMessage,p=o.Option,g=this.commonProps,v=this.state.focusedOption,k=this.props,h=k.captureMenuScroll,m=k.inputValue,y=k.isLoading,E=k.loadingMessage,T=k.minMenuHeight,C=k.maxMenuHeight,O=k.menuIsOpen,P=k.menuPlacement,_=k.menuPosition,M=k.menuPortalTarget,A=k.menuShouldBlockScroll,D=k.menuShouldScrollIntoView,Q=k.noOptionsMessage,Z=k.onMenuScrollToTop,$=k.onMenuScrollToBottom;if(!O)return null;var H=function(S,re){var pe=S.type,X=S.data,we=S.isDisabled,Ee=S.isSelected,De=S.label,He=S.value,St=v===X,en=we?void 0:function(){return i.onOptionHover(X)},tn=we?void 0:function(){return i.selectOption(X)},st="".concat(i.getElementId("option"),"-").concat(re),fe={id:st,onClick:tn,onMouseMove:en,onMouseOver:en,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:Ee};return x.createElement(p,W({},g,{innerProps:fe,data:X,isDisabled:we,isSelected:Ee,key:st,label:De,type:pe,value:He,isFocused:St,innerRef:St?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(S.data,"menu"))},ee;if(this.hasOptions())ee=this.getCategorizedOptions().map(function(V){if(V.type==="group"){var S=V.data,re=V.options,pe=V.index,X="".concat(i.getElementId("group"),"-").concat(pe),we="".concat(X,"-heading");return x.createElement(l,W({},g,{key:X,data:S,options:re,Heading:a,headingProps:{id:we,data:V.data},label:i.formatGroupLabel(V.data)}),V.options.map(function(Ee){return H(Ee,"".concat(pe,"-").concat(Ee.index))}))}else if(V.type==="option")return H(V,"".concat(V.index))});else if(y){var R=E({inputValue:m});if(R===null)return null;ee=x.createElement(f,g,R)}else{var z=Q({inputValue:m});if(z===null)return null;ee=x.createElement(d,g,z)}var w={minMenuHeight:T,maxMenuHeight:C,menuPlacement:P,menuPosition:_,menuShouldScrollIntoView:D},G=x.createElement(WE,W({},g,w),function(V){var S=V.ref,re=V.placerProps,pe=re.placement,X=re.maxHeight;return x.createElement(u,W({},g,w,{innerRef:S,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:y,placement:pe}),x.createElement(xO,{captureEnabled:h,onTopArrive:Z,onBottomArrive:$,lockEnabled:A},function(we){return x.createElement(s,W({},g,{innerRef:function(De){i.getMenuListRef(De),we(De)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:i.getElementId("listbox")},isLoading:y,maxHeight:X,focusedOption:v}),ee)}))});return M||_==="fixed"?x.createElement(c,W({},g,{appendTo:M,controlElement:this.controlRef,menuPlacement:P,menuPosition:_}),G):G}},{key:"renderFormField",value:function(){var i=this,o=this.props,l=o.delimiter,a=o.isDisabled,u=o.isMulti,s=o.name,c=o.required,f=this.state.selectValue;if(c&&!this.hasValue()&&!a)return x.createElement(kO,{name:s,onFocus:this.onValueInputFocus});if(!(!s||a))if(u)if(l){var d=f.map(function(v){return i.getOptionValue(v)}).join(l);return x.createElement("input",{name:s,type:"hidden",value:d})}else{var p=f.length>0?f.map(function(v,k){return x.createElement("input",{key:"i-".concat(k),name:s,type:"hidden",value:i.getOptionValue(v)})}):x.createElement("input",{name:s,type:"hidden",value:""});return x.createElement("div",null,p)}else{var g=f[0]?this.getOptionValue(f[0]):"";return x.createElement("input",{name:s,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,l=o.ariaSelection,a=o.focusedOption,u=o.focusedValue,s=o.isFocused,c=o.selectValue,f=this.getFocusableOptions();return x.createElement(aO,W({},i,{id:this.getElementId("live-region"),ariaSelection:l,focusedOption:a,focusedValue:u,isFocused:s,selectValue:c,focusableOptions:f,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,l=i.IndicatorsContainer,a=i.SelectContainer,u=i.ValueContainer,s=this.props,c=s.className,f=s.id,d=s.isDisabled,p=s.menuIsOpen,g=this.state.isFocused,v=this.commonProps=this.getCommonProps();return x.createElement(a,W({},v,{className:c,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:d,isFocused:g}),this.renderLiveRegion(),x.createElement(o,W({},v,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:d,isFocused:g,menuIsOpen:p}),x.createElement(u,W({},v,{isDisabled:d}),this.renderPlaceholderOrValue(),this.renderInput()),x.createElement(l,W({},v,{isDisabled:d}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var l=o.prevProps,a=o.clearFocusValueOnUpdate,u=o.inputIsHiddenAfterUpdate,s=o.ariaSelection,c=o.isFocused,f=o.prevWasFocused,d=o.instancePrefix,p=i.options,g=i.value,v=i.menuIsOpen,k=i.inputValue,h=i.isMulti,m=Jl(g),y={};if(l&&(g!==l.value||p!==l.options||v!==l.menuIsOpen||k!==l.inputValue)){var E=v?FO(i,m):[],T=v?zp(hl(i,m),"".concat(d,"-option")):[],C=a?AO(o,m):null,O=jO(o,E),P=Nu(T,O);y={selectValue:m,focusedOption:O,focusedOptionId:P,focusableOptionsWithIds:T,focusedValue:C,clearFocusValueOnUpdate:!1}}var _=u!=null&&i!==l?{inputIsHidden:u,inputIsHiddenAfterUpdate:void 0}:{},M=s,A=c&&f;return c&&!A&&(M={value:Mi(h,m,m[0]||null),options:m,action:"initial-input-focus"},A=!f),(s==null?void 0:s.action)==="initial-input-focus"&&(M=null),B(B(B({},y),_),{},{prevProps:i,ariaSelection:M,prevWasFocused:A})}}]),n}(x.Component);Yy.defaultProps=_O;var $O=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function VO(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,o=e.defaultValue,l=o===void 0?null:o,a=e.inputValue,u=e.menuIsOpen,s=e.onChange,c=e.onInputChange,f=e.onMenuClose,d=e.onMenuOpen,p=e.value,g=Jt(e,$O),v=x.useState(a!==void 0?a:n),k=hn(v,2),h=k[0],m=k[1],y=x.useState(u!==void 0?u:i),E=hn(y,2),T=E[0],C=E[1],O=x.useState(p!==void 0?p:l),P=hn(O,2),_=P[0],M=P[1],A=x.useCallback(function(R,z){typeof s=="function"&&s(R,z),M(R)},[s]),D=x.useCallback(function(R,z){var w;typeof c=="function"&&(w=c(R,z)),m(w!==void 0?w:R)},[c]),Q=x.useCallback(function(){typeof d=="function"&&d(),C(!0)},[d]),Z=x.useCallback(function(){typeof f=="function"&&f(),C(!1)},[f]),$=a!==void 0?a:h,H=u!==void 0?u:T,ee=p!==void 0?p:_;return B(B({},g),{},{inputValue:$,menuIsOpen:H,onChange:A,onInputChange:D,onMenuClose:Z,onMenuOpen:Q,value:ee})}var BO=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Vp=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=String(t).toLowerCase(),o=String(r.getOptionValue(n)).toLowerCase(),l=String(r.getOptionLabel(n)).toLowerCase();return o===i||l===i},Mu={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,n,r,i){return!(!t||n.some(function(o){return Vp(t,o,i)})||r.some(function(o){return Vp(t,o,i)}))},getNewOptionData:function(t,n){return{label:n,value:t,__isNew__:!0}}};function UO(e){var t=e.allowCreateWhileLoading,n=t===void 0?!1:t,r=e.createOptionPosition,i=r===void 0?"last":r,o=e.formatCreateLabel,l=o===void 0?Mu.formatCreateLabel:o,a=e.isValidNewOption,u=a===void 0?Mu.isValidNewOption:a,s=e.getNewOptionData,c=s===void 0?Mu.getNewOptionData:s,f=e.onCreateOption,d=e.options,p=d===void 0?[]:d,g=e.onChange,v=Jt(e,BO),k=v.getOptionValue,h=k===void 0?Vy:k,m=v.getOptionLabel,y=m===void 0?$y:m,E=v.inputValue,T=v.isLoading,C=v.isMulti,O=v.value,P=v.name,_=x.useMemo(function(){return u(E,Jl(O),p,{getOptionValue:h,getOptionLabel:y})?c(E,l(E)):void 0},[l,c,y,h,E,u,p,O]),M=x.useMemo(function(){return(n||!T)&&_?i==="first"?[_].concat(Hr(p)):[].concat(Hr(p),[_]):p},[n,i,T,_,p]),A=x.useCallback(function(D,Q){if(Q.action!=="select-option")return g(D,Q);var Z=Array.isArray(D)?D:[D];if(Z[Z.length-1]===_){if(f)f(E);else{var $=c(E,E),H={action:"create-option",name:P,option:$};g(Mi(C,[].concat(Hr(Jl(O)),[$]),$),H)}return}g(D,Q)},[c,E,C,P,_,f,g,O]);return B(B({},v),{},{options:M,onChange:A})}var HO=x.forwardRef(function(e,t){var n=VO(e),r=UO(n);return x.createElement(Yy,W({ref:t},r))}),Xy=HO;let Yo;const WO=new Uint8Array(16);function QO(){if(!Yo&&(Yo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Yo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Yo(WO)}const je=[];for(let e=0;e<256;++e)je.push((e+256).toString(16).slice(1));function KO(e,t=0){return je[e[t+0]]+je[e[t+1]]+je[e[t+2]]+je[e[t+3]]+"-"+je[e[t+4]]+je[e[t+5]]+"-"+je[e[t+6]]+je[e[t+7]]+"-"+je[e[t+8]]+je[e[t+9]]+"-"+je[e[t+10]]+je[e[t+11]]+je[e[t+12]]+je[e[t+13]]+je[e[t+14]]+je[e[t+15]]}const GO=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Bp={randomUUID:GO};function qy(e,t,n){if(Bp.randomUUID&&!t&&!e)return Bp.randomUUID();e=e||{};const r=e.random||(e.rng||QO)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return KO(r)}const Zy=({onSubmit:e,onAddTag:t,availableTags:n,title:r="",markdown:i="",tags:o=[]})=>{const l=x.useRef(null),a=x.useRef(null),[u,s]=x.useState(o),c=ba(),f=d=>{d.preventDefault(),e({title:l.current.value,markdown:a.current.value,tags:u}),c("..")};return b.jsx($e,{onSubmit:f,children:b.jsxs(Un,{gap:4,children:[b.jsxs(cn,{children:[b.jsx(bt,{children:b.jsxs($e.Group,{controlId:"title",children:[b.jsx($e.Label,{children:"Title"}),b.jsx($e.Control,{ref:l,defaultValue:r,required:!0})]})}),b.jsx(bt,{children:b.jsxs($e.Group,{controlId:"tags",children:[b.jsx($e.Label,{children:"Tags"}),b.jsx(Xy,{onCreateOption:d=>{const p={id:qy(),label:d};t(p),s(g=>[...g,p])},value:u.map(d=>({label:d.label,value:d.id})),options:n.map(d=>({label:d.label,value:d.id})),onChange:d=>{s(d.map(p=>({id:p.value,label:p.label})))},isMulti:!0})]})})]}),b.jsx(cn,{children:b.jsxs($e.Group,{controlId:"markdown",children:[b.jsx($e.Label,{children:"Body"}),b.jsx($e.Control,{ref:a,defaultValue:i,required:!0,as:"textarea",rows:10})]})}),b.jsx(cn,{children:b.jsxs(Un,{direction:"horizontal",gap:2,className:"justify-content-end",children:[b.jsx(pn,{type:"submit",variant:"primary",children:"Save"}),b.jsx(ti,{to:"..",children:b.jsx(pn,{type:"button",variant:"outline-secondary",children:"Cancel"})})]})})]})})},YO=({onSubmit:e,onAddTag:t,availableTags:n})=>b.jsxs("section",{children:[b.jsx("h1",{className:"mb-4",children:"New note"}),b.jsx(Zy,{onSubmit:e,onAddTag:t,availableTags:n})]});function Up(e,t){const[n,r]=x.useState(()=>{const i=localStorage.getItem(e);return i!=null?JSON.parse(i):typeof t=="function"?t():t});return x.useEffect(()=>{localStorage.setItem(e,JSON.stringify(n))},[e,n]),[n,r]}const XO="_card_f0plp_1",qO={card:XO},ZO=({id:e,title:t,tags:n})=>b.jsx(np,{as:ti,to:`/${e}`,className:`h-100 text-reset text-decoration-none ${qO.card}`,children:b.jsx(np.Body,{children:b.jsxs(Un,{gap:2,className:"align-items-center justify-content-center h-100",children:[b.jsx("span",{className:"fs-5",children:t}),n.length>0&&b.jsx(Un,{gap:1,direction:"horizontal",className:"justify-content-center flex-wrap",children:n.map(r=>b.jsx(ov,{className:"text-truncate",children:r.label},r.id))})]})})}),JO=({availableTags:e,notes:t,onUpdateTag:n,onDeleteTag:r})=>{const[i,o]=x.useState([]),[l,a]=x.useState(""),[u,s]=x.useState(!1),c=x.useMemo(()=>t.filter(f=>(l===""||f.title.toLowerCase().includes(l.toLowerCase()))&&(i.length===0||i.every(d=>f.tags.some(p=>p.id===d.id)))),[l,i,t]);return b.jsxs("section",{children:[b.jsxs(cn,{className:"align-items-center mb-4",children:[b.jsx(bt,{children:b.jsx("h1",{children:"Note List"})}),b.jsx(bt,{xs:"auto",children:b.jsxs(Un,{gap:2,direction:"horizontal",children:[b.jsx(ti,{to:"/new",children:b.jsx(pn,{variant:"primary",children:"Create"})}),b.jsx(pn,{variant:"outline-secondary",onClick:()=>{s(!0)},children:"Edit Tags"})]})})]}),b.jsx($e,{children:b.jsxs(cn,{className:"mb-4",children:[b.jsx(bt,{children:b.jsxs($e.Group,{controlId:"title",children:[b.jsx($e.Label,{children:"Title"}),b.jsx($e.Control,{type:"text",value:l,onChange:f=>a(f.target.value)})]})}),b.jsx(bt,{children:b.jsxs($e.Group,{controlId:"tags",children:[b.jsx($e.Label,{children:"Tags"}),b.jsx(Xy,{value:i.map(f=>({label:f.label,value:f.id})),options:e.map(f=>({label:f.label,value:f.id})),onChange:f=>{o(f.map(d=>({id:d.value,label:d.label})))},isMulti:!0})]})})]})}),c.length===0&&b.jsx(cn,{className:"mb-4",children:b.jsxs("p",{children:["Currently, there are no notes available. Please start by",b.jsx(ti,{to:"/new",children:b.jsx(pn,{variant:"primary",className:"ms-2",children:"Creating a Note"})})]})}),b.jsx(cn,{xs:1,sm:2,lg:3,xl:4,className:"g-3 mb-4",children:c.length>0&&c.map(f=>b.jsx(bt,{children:b.jsx(ZO,{id:f.id,title:f.title,tags:f.tags})},f.id))}),b.jsx(e2,{availableTags:e,show:u,handleClose:()=>s(!1),onUpdateTag:n,onDeleteTag:r})]})};function e2({availableTags:e,handleClose:t,show:n,onUpdateTag:r,onDeleteTag:i}){return b.jsxs(Ho,{show:n,onHide:t,children:[b.jsx(Ho.Header,{closeButton:!0,children:b.jsx(Ho.Title,{children:"Edit Tags"})}),b.jsx(Ho.Body,{children:b.jsx($e,{children:b.jsx(Un,{gap:2,children:e.map(o=>b.jsxs(cn,{children:[b.jsx(bt,{children:b.jsx($e.Control,{type:"text",value:o.label,onChange:l=>r(o.id,l.target.value)})}),b.jsx(bt,{xs:"auto",children:b.jsx(pn,{variant:"outline-danger",onClick:()=>i(o.id),children:"×"})})]},o.id))})})})]})}const t2=({notes:e})=>{const{id:t}=Ok(),n=e.find(r=>r.id===t);return n==null?b.jsx(zk,{to:"/",replace:!0}):b.jsx($k,{context:n})};function Jy(){return Ek()}function n2(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const r2=/[ \t\n\f\r]/g;function i2(e){return typeof e=="object"?e.type==="text"?Hp(e.value):!1:Hp(e)}function Hp(e){return e.replace(r2,"")===""}class wo{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}wo.prototype.property={};wo.prototype.normal={};wo.prototype.space=null;function e1(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&s2.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Qp,p2);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Qp.test(o)){let l=o.replace(c2,d2);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=Lf}return new i(r,t)}function d2(e){return"-"+e.toLowerCase()}function p2(e){return e.charAt(1).toUpperCase()}const h2={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},m2=e1([r1,n1,l1,a1,a2],"html"),u1=e1([r1,n1,l1,a1,u2],"svg");function g2(e){return e.join(" ").trim()}var Nf={exports:{}},Kp=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,v2=/\n/g,y2=/^\s*/,x2=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,w2=/^:\s*/,S2=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,k2=/^[;\s]*/,C2=/^\s+|\s+$/g,E2=` -`,Gp="/",Yp="*",tr="",b2="comment",O2="declaration",T2=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(g){var v=g.match(v2);v&&(n+=v.length);var k=g.lastIndexOf(E2);r=~k?g.length-k:r+g.length}function o(){var g={line:n,column:r};return function(v){return v.position=new l(g),s(),v}}function l(g){this.start=g,this.end={line:n,column:r},this.source=t.source}l.prototype.content=e;function a(g){var v=new Error(t.source+":"+n+":"+r+": "+g);if(v.reason=g,v.filename=t.source,v.line=n,v.column=r,v.source=e,!t.silent)throw v}function u(g){var v=g.exec(e);if(v){var k=v[0];return i(k),e=e.slice(k.length),v}}function s(){u(y2)}function c(g){var v;for(g=g||[];v=f();)v!==!1&&g.push(v);return g}function f(){var g=o();if(!(Gp!=e.charAt(0)||Yp!=e.charAt(1))){for(var v=2;tr!=e.charAt(v)&&(Yp!=e.charAt(v)||Gp!=e.charAt(v+1));)++v;if(v+=2,tr===e.charAt(v-1))return a("End of comment missing");var k=e.slice(2,v-2);return r+=2,i(k),e=e.slice(v),r+=2,g({type:b2,comment:k})}}function d(){var g=o(),v=u(x2);if(v){if(f(),!u(w2))return a("property missing ':'");var k=u(S2),h=g({type:O2,property:Xp(v[0].replace(Kp,tr)),value:k?Xp(k[0].replace(Kp,tr)):tr});return u(k2),h}}function p(){var g=[];c(g);for(var v;v=d();)v!==!1&&(g.push(v),c(g));return g}return s(),p()};function Xp(e){return e?e.replace(C2,tr):tr}var I2=T2;function s1(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=I2(e),o=typeof t=="function",l,a,u=0,s=i.length;u0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function L2(e){const t=Mf(e),n=c1(e);if(t&&n)return{start:t,end:n}}function Ui(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?qp(e.position):"start"in e||"end"in e?qp(e):"line"in e||"column"in e?nc(e):""}function nc(e){return Zp(e&&e.line)+":"+Zp(e&&e.column)}function qp(e){return nc(e&&e.start)+"-"+nc(e&&e.end)}function Zp(e){return e&&typeof e=="number"?e:1}class et extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(l=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?o.ruleId=r:(o.source=r.slice(0,u),o.ruleId=r.slice(u+1))}if(!o.place&&o.ancestors&&o.ancestors){const u=o.ancestors[o.ancestors.length-1];u&&(o.place=u.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=Ui(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}et.prototype.file="";et.prototype.name="";et.prototype.reason="";et.prototype.message="";et.prototype.stack="";et.prototype.column=void 0;et.prototype.line=void 0;et.prototype.ancestors=void 0;et.prototype.cause=void 0;et.prototype.fatal=void 0;et.prototype.place=void 0;et.prototype.ruleId=void 0;et.prototype.source=void 0;const Df={}.hasOwnProperty,N2=new Map,M2=/[A-Z]/g,D2=/-([a-z])/g,_2=new Set(["table","tbody","thead","tfoot","tr"]),F2=new Set(["td","th"]);function A2(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=z2(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=j2(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?u1:m2,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=d1(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function d1(e,t,n){if(t.type==="element"||t.type==="root"){const r=e.schema;let i=r;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=u1,e.schema=i),e.ancestors.push(t);let o=$2(e,t);const l=V2(e,e.ancestors);let a=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(o&&_2.has(t.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!i2(u):!0})),Df.call(e.components,t.tagName)){const u=t.tagName;a=e.components[u],typeof a!="string"&&a!==e.Fragment&&e.passNode&&(l.node=t)}else a=t.tagName;if(o.length>0){const u=o.length>1?o:o[0];u&&(l.children=u)}return e.schema=r,e.create(t,a,l,n)}if(t.type==="text")return t.value}function j2(e,t,n){return r;function r(i,o,l,a){const s=Array.isArray(l.children)?n:t;return a?s(o,l,a):s(o,l)}}function z2(e,t){return n;function n(r,i,o,l){const a=Array.isArray(o.children),u=Mf(r);return t(i,o,l,a,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function $2(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:N2;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o0?(qt(e,e.length,0,t),e):t}const th={}.hasOwnProperty;function q2(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Kr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const eT=Kn(new RegExp("\\p{P}","u")),Kt=Kn(/[A-Za-z]/),ht=Kn(/[\dA-Za-z]/),tT=Kn(/[#-'*+\--9=?A-Z^-~]/);function rc(e){return e!==null&&(e<32||e===127)}const ic=Kn(/\d/),nT=Kn(/[\dA-Fa-f]/),m1=Kn(/[!-/:-@[-`{-~]/);function K(e){return e!==null&&e<-2}function at(e){return e!==null&&(e<0||e===32)}function ue(e){return e===-2||e===-1||e===32}function rT(e){return m1(e)||eT(e)}const iT=Kn(/\s/);function Kn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function pi(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ge(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(u){return ue(u)?(e.enter(n),a(u)):t(u)}function a(u){return ue(u)&&o++l))return;const O=t.events.length;let P=O,_,M;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){if(_){M=t.events[P][1].end;break}_=!0}for(h(r),C=O;Cy;){const T=n[E];t.containerState=T[1],T[0].exit.call(t,e)}n.length=y}function m(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function sT(e,t,n){return ge(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function rh(e){if(e===null||at(e)||iT(e))return 1;if(rT(e))return 2}function Ff(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),d=Object.assign({},e[n][1].start);ih(f,-u),ih(d,u),l={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},a={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:d},o={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},l.start),end:Object.assign({},a.end)},e[r][1].end=Object.assign({},l.start),e[n][1].start=Object.assign({},a.end),s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=Et(s,[["enter",e[r][1],t],["exit",e[r][1],t]])),s=Et(s,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",o,t]]),s=Et(s,Ff(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),s=Et(s,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,s=Et(s,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,qt(e,r-1,n-r+3,s),n=r+s.length-c-2;break}}for(n=-1;++n0&&ue(C)?ge(e,m,"linePrefix",o+1)(C):m(C)}function m(C){return C===null||K(C)?e.check(oh,v,E)(C):(e.enter("codeFlowValue"),y(C))}function y(C){return C===null||K(C)?(e.exit("codeFlowValue"),m(C)):(e.consume(C),y)}function E(C){return e.exit("codeFenced"),t(C)}function T(C,O,P){let _=0;return M;function M($){return C.enter("lineEnding"),C.consume($),C.exit("lineEnding"),A}function A($){return C.enter("codeFencedFence"),ue($)?ge(C,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):D($)}function D($){return $===a?(C.enter("codeFencedFenceSequence"),Q($)):P($)}function Q($){return $===a?(_++,C.consume($),Q):_>=l?(C.exit("codeFencedFenceSequence"),ue($)?ge(C,Z,"whitespace")($):Z($)):P($)}function Z($){return $===null||K($)?(C.exit("codeFencedFence"),O($)):P($)}}}function ST(e,t,n){const r=this;return i;function i(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const Fu={name:"codeIndented",tokenize:CT},kT={tokenize:ET,partial:!0};function CT(e,t,n){const r=this;return i;function i(s){return e.enter("codeIndented"),ge(e,o,"linePrefix",4+1)(s)}function o(s){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?l(s):n(s)}function l(s){return s===null?u(s):K(s)?e.attempt(kT,l,u)(s):(e.enter("codeFlowValue"),a(s))}function a(s){return s===null||K(s)?(e.exit("codeFlowValue"),l(s)):(e.consume(s),a)}function u(s){return e.exit("codeIndented"),t(s)}}function ET(e,t,n){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?n(l):K(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):ge(e,o,"linePrefix",4+1)(l)}function o(l){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):K(l)?i(l):n(l)}}const bT={name:"codeText",tokenize:IT,resolve:OT,previous:TT};function OT(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function w1(e,t,n,r,i,o,l,a,u){const s=u||Number.POSITIVE_INFINITY;let c=0;return f;function f(h){return h===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(h),e.exit(o),d):h===null||h===32||h===41||rc(h)?n(h):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),v(h))}function d(h){return h===62?(e.enter(o),e.consume(h),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(h))}function p(h){return h===62?(e.exit("chunkString"),e.exit(a),d(h)):h===null||h===60||K(h)?n(h):(e.consume(h),h===92?g:p)}function g(h){return h===60||h===62||h===92?(e.consume(h),p):p(h)}function v(h){return!c&&(h===null||h===41||at(h))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),t(h)):c999||p===null||p===91||p===93&&!u||p===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):K(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||K(p)||a++>999?(e.exit("chunkString"),c(p)):(e.consume(p),u||(u=!ue(p)),p===92?d:f)}function d(p){return p===91||p===92||p===93?(e.consume(p),a++,f):f(p)}}function k1(e,t,n,r,i,o){let l;return a;function a(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),l=d===40?41:d,u):n(d)}function u(d){return d===l?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(e.enter(o),s(d))}function s(d){return d===l?(e.exit(o),u(l)):d===null?n(d):K(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),ge(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===l||d===null||K(d)?(e.exit("chunkString"),s(d)):(e.consume(d),d===92?f:c)}function f(d){return d===l||d===92?(e.consume(d),c):c(d)}}function Hi(e,t){let n;return r;function r(i){return K(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ue(i)?ge(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const _T={name:"definition",tokenize:AT},FT={tokenize:jT,partial:!0};function AT(e,t,n){const r=this;let i;return o;function o(p){return e.enter("definition"),l(p)}function l(p){return S1.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=Kr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),u):n(p)}function u(p){return at(p)?Hi(e,s)(p):s(p)}function s(p){return w1(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(FT,f,f)(p)}function f(p){return ue(p)?ge(e,d,"whitespace")(p):d(p)}function d(p){return p===null||K(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function jT(e,t,n){return r;function r(a){return at(a)?Hi(e,i)(a):n(a)}function i(a){return k1(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return ue(a)?ge(e,l,"whitespace")(a):l(a)}function l(a){return a===null||K(a)?t(a):n(a)}}const zT={name:"hardBreakEscape",tokenize:$T};function $T(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return K(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const VT={name:"headingAtx",tokenize:UT,resolve:BT};function BT(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},qt(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function UT(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),l(c)}function l(c){return c===35&&r++<6?(e.consume(c),l):c===null||at(c)?(e.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||K(c)?(e.exit("atxHeading"),t(c)):ue(c)?ge(e,a,"whitespace")(c):(e.enter("atxHeadingText"),s(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),a(c))}function s(c){return c===null||c===35||at(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),s)}}const HT=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ah=["pre","script","style","textarea"],WT={name:"htmlFlow",tokenize:YT,resolveTo:GT,concrete:!0},QT={tokenize:qT,partial:!0},KT={tokenize:XT,partial:!0};function GT(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function YT(e,t,n){const r=this;let i,o,l,a,u;return s;function s(S){return c(S)}function c(S){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(S),f}function f(S){return S===33?(e.consume(S),d):S===47?(e.consume(S),o=!0,v):S===63?(e.consume(S),i=3,r.interrupt?t:w):Kt(S)?(e.consume(S),l=String.fromCharCode(S),k):n(S)}function d(S){return S===45?(e.consume(S),i=2,p):S===91?(e.consume(S),i=5,a=0,g):Kt(S)?(e.consume(S),i=4,r.interrupt?t:w):n(S)}function p(S){return S===45?(e.consume(S),r.interrupt?t:w):n(S)}function g(S){const re="CDATA[";return S===re.charCodeAt(a++)?(e.consume(S),a===re.length?r.interrupt?t:D:g):n(S)}function v(S){return Kt(S)?(e.consume(S),l=String.fromCharCode(S),k):n(S)}function k(S){if(S===null||S===47||S===62||at(S)){const re=S===47,pe=l.toLowerCase();return!re&&!o&&ah.includes(pe)?(i=1,r.interrupt?t(S):D(S)):HT.includes(l.toLowerCase())?(i=6,re?(e.consume(S),h):r.interrupt?t(S):D(S)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(S):o?m(S):y(S))}return S===45||ht(S)?(e.consume(S),l+=String.fromCharCode(S),k):n(S)}function h(S){return S===62?(e.consume(S),r.interrupt?t:D):n(S)}function m(S){return ue(S)?(e.consume(S),m):M(S)}function y(S){return S===47?(e.consume(S),M):S===58||S===95||Kt(S)?(e.consume(S),E):ue(S)?(e.consume(S),y):M(S)}function E(S){return S===45||S===46||S===58||S===95||ht(S)?(e.consume(S),E):T(S)}function T(S){return S===61?(e.consume(S),C):ue(S)?(e.consume(S),T):y(S)}function C(S){return S===null||S===60||S===61||S===62||S===96?n(S):S===34||S===39?(e.consume(S),u=S,O):ue(S)?(e.consume(S),C):P(S)}function O(S){return S===u?(e.consume(S),u=null,_):S===null||K(S)?n(S):(e.consume(S),O)}function P(S){return S===null||S===34||S===39||S===47||S===60||S===61||S===62||S===96||at(S)?T(S):(e.consume(S),P)}function _(S){return S===47||S===62||ue(S)?y(S):n(S)}function M(S){return S===62?(e.consume(S),A):n(S)}function A(S){return S===null||K(S)?D(S):ue(S)?(e.consume(S),A):n(S)}function D(S){return S===45&&i===2?(e.consume(S),H):S===60&&i===1?(e.consume(S),ee):S===62&&i===4?(e.consume(S),G):S===63&&i===3?(e.consume(S),w):S===93&&i===5?(e.consume(S),z):K(S)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(QT,V,Q)(S)):S===null||K(S)?(e.exit("htmlFlowData"),Q(S)):(e.consume(S),D)}function Q(S){return e.check(KT,Z,V)(S)}function Z(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),$}function $(S){return S===null||K(S)?Q(S):(e.enter("htmlFlowData"),D(S))}function H(S){return S===45?(e.consume(S),w):D(S)}function ee(S){return S===47?(e.consume(S),l="",R):D(S)}function R(S){if(S===62){const re=l.toLowerCase();return ah.includes(re)?(e.consume(S),G):D(S)}return Kt(S)&&l.length<8?(e.consume(S),l+=String.fromCharCode(S),R):D(S)}function z(S){return S===93?(e.consume(S),w):D(S)}function w(S){return S===62?(e.consume(S),G):S===45&&i===2?(e.consume(S),w):D(S)}function G(S){return S===null||K(S)?(e.exit("htmlFlowData"),V(S)):(e.consume(S),G)}function V(S){return e.exit("htmlFlow"),t(S)}}function XT(e,t,n){const r=this;return i;function i(l){return K(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function qT(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt($a,t,n)}}const ZT={name:"htmlText",tokenize:JT};function JT(e,t,n){const r=this;let i,o,l;return a;function a(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),u}function u(w){return w===33?(e.consume(w),s):w===47?(e.consume(w),T):w===63?(e.consume(w),y):Kt(w)?(e.consume(w),P):n(w)}function s(w){return w===45?(e.consume(w),c):w===91?(e.consume(w),o=0,g):Kt(w)?(e.consume(w),m):n(w)}function c(w){return w===45?(e.consume(w),p):n(w)}function f(w){return w===null?n(w):w===45?(e.consume(w),d):K(w)?(l=f,ee(w)):(e.consume(w),f)}function d(w){return w===45?(e.consume(w),p):f(w)}function p(w){return w===62?H(w):w===45?d(w):f(w)}function g(w){const G="CDATA[";return w===G.charCodeAt(o++)?(e.consume(w),o===G.length?v:g):n(w)}function v(w){return w===null?n(w):w===93?(e.consume(w),k):K(w)?(l=v,ee(w)):(e.consume(w),v)}function k(w){return w===93?(e.consume(w),h):v(w)}function h(w){return w===62?H(w):w===93?(e.consume(w),h):v(w)}function m(w){return w===null||w===62?H(w):K(w)?(l=m,ee(w)):(e.consume(w),m)}function y(w){return w===null?n(w):w===63?(e.consume(w),E):K(w)?(l=y,ee(w)):(e.consume(w),y)}function E(w){return w===62?H(w):y(w)}function T(w){return Kt(w)?(e.consume(w),C):n(w)}function C(w){return w===45||ht(w)?(e.consume(w),C):O(w)}function O(w){return K(w)?(l=O,ee(w)):ue(w)?(e.consume(w),O):H(w)}function P(w){return w===45||ht(w)?(e.consume(w),P):w===47||w===62||at(w)?_(w):n(w)}function _(w){return w===47?(e.consume(w),H):w===58||w===95||Kt(w)?(e.consume(w),M):K(w)?(l=_,ee(w)):ue(w)?(e.consume(w),_):H(w)}function M(w){return w===45||w===46||w===58||w===95||ht(w)?(e.consume(w),M):A(w)}function A(w){return w===61?(e.consume(w),D):K(w)?(l=A,ee(w)):ue(w)?(e.consume(w),A):_(w)}function D(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),i=w,Q):K(w)?(l=D,ee(w)):ue(w)?(e.consume(w),D):(e.consume(w),Z)}function Q(w){return w===i?(e.consume(w),i=void 0,$):w===null?n(w):K(w)?(l=Q,ee(w)):(e.consume(w),Q)}function Z(w){return w===null||w===34||w===39||w===60||w===61||w===96?n(w):w===47||w===62||at(w)?_(w):(e.consume(w),Z)}function $(w){return w===47||w===62||at(w)?_(w):n(w)}function H(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):n(w)}function ee(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),R}function R(w){return ue(w)?ge(e,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):z(w)}function z(w){return e.enter("htmlTextData"),l(w)}}const Af={name:"labelEnd",tokenize:oI,resolveTo:iI,resolveAll:rI},eI={tokenize:lI},tI={tokenize:aI},nI={tokenize:uI};function rI(e){let t=-1;for(;++t=3&&(s===null||K(s))?(e.exit("thematicBreak"),t(s)):n(s)}function u(s){return s===i?(e.consume(s),r++,u):(e.exit("thematicBreakSequence"),ue(s)?ge(e,a,"whitespace")(s):a(s))}}const tt={name:"list",tokenize:vI,continuation:{tokenize:yI},exit:wI},mI={tokenize:SI,partial:!0},gI={tokenize:xI,partial:!0};function vI(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return a;function a(p){const g=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:ic(p)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(ml,n,s)(p):s(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(p)}return n(p)}function u(p){return ic(p)&&++l<10?(e.consume(p),u):(!r.interrupt||l<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),s(p)):n(p)}function s(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check($a,r.interrupt?n:c,e.attempt(mI,d,f))}function c(p){return r.containerState.initialBlankLine=!0,o++,d(p)}function f(p){return ue(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),d):n(p)}function d(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function yI(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check($a,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ge(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!ue(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(gI,t,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,ge(e,e.attempt(tt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function xI(e,t,n){const r=this;return ge(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(o):n(o)}}function wI(e){e.exit(this.containerState.type)}function SI(e,t,n){const r=this;return ge(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(o){const l=r.events[r.events.length-1];return!ue(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const uh={name:"setextUnderline",tokenize:CI,resolveTo:kI};function kI(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[o][1].end)):e[r][1]=l,e.push(["exit",l,t]),e}function CI(e,t,n){const r=this;let i;return o;function o(s){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=s,l(s)):n(s)}function l(s){return e.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(e.consume(s),a):(e.exit("setextHeadingLineSequence"),ue(s)?ge(e,u,"lineSuffix")(s):u(s))}function u(s){return s===null||K(s)?(e.exit("setextHeadingLine"),t(s)):n(s)}}const EI={tokenize:bI};function bI(e){const t=this,n=e.attempt($a,r,e.attempt(this.parser.constructs.flowInitial,i,ge(e,e.attempt(this.parser.constructs.flow,i,e.attempt(RT,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const OI={resolveAll:E1()},TI=C1("string"),II=C1("text");function C1(e){return{tokenize:t,resolveAll:E1(e==="text"?PI:void 0)};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,l,a);return l;function l(c){return s(c)?o(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),u}function u(c){return s(c)?(n.exit("data"),o(c)):(n.consume(c),u)}function s(c){if(c===null)return!0;const f=i[c];let d=-1;if(f)for(;++d-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function NI(e,t){let n=-1;const r=[];let i;for(;++n1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return l?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,o=t.label,l=o===void 0?"":o,a=t.selectValue,u=t.isDisabled,s=t.isSelected,c=t.isAppleDevice,f=function(v,k){return v&&v.length?"".concat(v.indexOf(k)+1," of ").concat(v.length):""};if(n==="value"&&a)return"value ".concat(l," focused, ").concat(f(a,r),".");if(n==="menu"&&c){var d=u?" disabled":"",p="".concat(s?" selected":"").concat(d);return"".concat(l).concat(p,", ").concat(f(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},lO=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,l=t.isFocused,a=t.selectValue,u=t.selectProps,s=t.id,c=t.isAppleDevice,f=u.ariaLiveMessages,d=u.getOptionLabel,p=u.inputValue,g=u.isMulti,v=u.isOptionDisabled,k=u.isSearchable,h=u.menuIsOpen,m=u.options,y=u.screenReaderStatus,E=u.tabSelectsValue,T=u.isLoading,C=u["aria-label"],O=u["aria-live"],P=x.useMemo(function(){return B(B({},oO),f||{})},[f]),_=x.useMemo(function(){var $="";if(n&&P.onChange){var H=n.option,ee=n.options,R=n.removedValue,z=n.removedValues,w=n.value,G=function(Ee){return Array.isArray(Ee)?null:Ee},V=R||H||G(w),S=V?d(V):"",re=ee||z||void 0,pe=re?re.map(d):[],X=B({isDisabled:V&&v(V,a),label:S,labels:pe},n);$=P.onChange(X)}return $},[n,P,v,a,d]),M=x.useMemo(function(){var $="",H=r||i,ee=!!(r&&a&&a.includes(r));if(H&&P.onFocus){var R={focused:H,label:d(H),isDisabled:v(H,a),isSelected:ee,options:o,context:H===r?"menu":"value",selectValue:a,isAppleDevice:c};$=P.onFocus(R)}return $},[r,i,d,v,P,o,a,c]),A=x.useMemo(function(){var $="";if(h&&m.length&&!T&&P.onFilter){var H=y({count:o.length});$=P.onFilter({inputValue:p,resultsMessage:H})}return $},[o,p,h,P,m,y,T]),D=(n==null?void 0:n.action)==="initial-input-focus",Q=x.useMemo(function(){var $="";if(P.guidance){var H=i?"value":h?"menu":"input";$=P.guidance({"aria-label":C,context:H,isDisabled:r&&v(r,a),isMulti:g,isSearchable:k,tabSelectsValue:E,isInitialFocus:D})}return $},[C,r,i,g,v,k,h,P,a,E,D]),Z=U(x.Fragment,null,U("span",{id:"aria-selection"},_),U("span",{id:"aria-focused"},M),U("span",{id:"aria-results"},A),U("span",{id:"aria-guidance"},Q));return U(x.Fragment,null,U(Pp,{id:s},D&&Z),U(Pp,{"aria-live":O,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},l&&!D&&Z))},aO=lO,Js=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],uO=new RegExp("["+Js.map(function(e){return e.letters}).join("")+"]","g"),jy={};for(var Iu=0;Iu-1}},dO=["innerRef"];function pO(e){var t=e.innerRef,n=Jt(e,dO),r=zE(n,"onExited","in","enter","exit","appear");return U("input",W({ref:t},r,{css:bf({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var hO=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function mO(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,l=x.useRef(!1),a=x.useRef(!1),u=x.useRef(0),s=x.useRef(null),c=x.useCallback(function(k,h){if(s.current!==null){var m=s.current,y=m.scrollTop,E=m.scrollHeight,T=m.clientHeight,C=s.current,O=h>0,P=E-T-y,_=!1;P>h&&l.current&&(r&&r(k),l.current=!1),O&&a.current&&(o&&o(k),a.current=!1),O&&h>P?(n&&!l.current&&n(k),C.scrollTop=E,_=!0,l.current=!0):!O&&-h>y&&(i&&!a.current&&i(k),C.scrollTop=0,_=!0,a.current=!0),_&&hO(k)}},[n,r,i,o]),f=x.useCallback(function(k){c(k,k.deltaY)},[c]),d=x.useCallback(function(k){u.current=k.changedTouches[0].clientY},[]),p=x.useCallback(function(k){var h=u.current-k.changedTouches[0].clientY;c(k,h)},[c]),g=x.useCallback(function(k){if(k){var h=FE?{passive:!1}:!1;k.addEventListener("wheel",f,h),k.addEventListener("touchstart",d,h),k.addEventListener("touchmove",p,h)}},[p,d,f]),v=x.useCallback(function(k){k&&(k.removeEventListener("wheel",f,!1),k.removeEventListener("touchstart",d,!1),k.removeEventListener("touchmove",p,!1))},[p,d,f]);return x.useEffect(function(){if(t){var k=s.current;return g(k),function(){v(k)}}},[t,g,v]),function(k){s.current=k}}var Lp=["boxSizing","height","overflow","paddingRight","position"],Np={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Mp(e){e.preventDefault()}function Dp(e){e.stopPropagation()}function _p(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Fp(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ap=!!(typeof window<"u"&&window.document&&window.document.createElement),bi=0,Cr={capture:!1,passive:!1};function gO(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=x.useRef({}),o=x.useRef(null),l=x.useCallback(function(u){if(Ap){var s=document.body,c=s&&s.style;if(r&&Lp.forEach(function(g){var v=c&&c[g];i.current[g]=v}),r&&bi<1){var f=parseInt(i.current.paddingRight,10)||0,d=document.body?document.body.clientWidth:0,p=window.innerWidth-d+f||0;Object.keys(Np).forEach(function(g){var v=Np[g];c&&(c[g]=v)}),c&&(c.paddingRight="".concat(p,"px"))}s&&Fp()&&(s.addEventListener("touchmove",Mp,Cr),u&&(u.addEventListener("touchstart",_p,Cr),u.addEventListener("touchmove",Dp,Cr))),bi+=1}},[r]),a=x.useCallback(function(u){if(Ap){var s=document.body,c=s&&s.style;bi=Math.max(bi-1,0),r&&bi<1&&Lp.forEach(function(f){var d=i.current[f];c&&(c[f]=d)}),s&&Fp()&&(s.removeEventListener("touchmove",Mp,Cr),u&&(u.removeEventListener("touchstart",_p,Cr),u.removeEventListener("touchmove",Dp,Cr)))}},[r]);return x.useEffect(function(){if(t){var u=o.current;return l(u),function(){a(u)}}},[t,l,a]),function(u){o.current=u}}var vO=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},yO={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function xO(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,o=e.onBottomArrive,l=e.onBottomLeave,a=e.onTopArrive,u=e.onTopLeave,s=mO({isEnabled:i,onBottomArrive:o,onBottomLeave:l,onTopArrive:a,onTopLeave:u}),c=gO({isEnabled:n}),f=function(p){s(p),c(p)};return U(x.Fragment,null,n&&U("div",{onClick:vO,css:yO}),t(f))}var wO={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},SO=function(t){var n=t.name,r=t.onFocus;return U("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:wO,value:"",onChange:function(){}})},kO=SO;function Rf(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function CO(){return Rf(/^iPhone/i)}function $y(){return Rf(/^Mac/i)}function EO(){return Rf(/^iPad/i)||$y()&&navigator.maxTouchPoints>1}function bO(){return CO()||EO()}function OO(){return $y()||bO()}var TO=function(t){return t.label},Vy=function(t){return t.label},By=function(t){return t.value},IO=function(t){return!!t.isDisabled},PO={clearIndicator:pb,container:nb,control:wb,dropdownIndicator:fb,group:Eb,groupHeading:Ob,indicatorsContainer:lb,indicatorSeparator:mb,input:Rb,loadingIndicator:yb,loadingMessage:qE,menu:HE,menuList:GE,menuPortal:eb,multiValue:_b,multiValueLabel:Fb,multiValueRemove:Ab,noOptionsMessage:XE,option:Ub,placeholder:Qb,singleValue:Yb,valueContainer:ib},RO={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},LO=4,Uy=4,NO=38,MO=Uy*2,DO={baseUnit:Uy,controlHeight:NO,menuGutter:MO},Lu={borderRadius:LO,colors:RO,spacing:DO},_O={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Op(),captureMenuScroll:!Op(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:fO(),formatGroupLabel:TO,getOptionLabel:Vy,getOptionValue:By,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:IO,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!DE(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function jp(e,t,n,r){var i=Qy(e,t,n),o=Ky(e,t,n),l=Wy(e,t),a=ta(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:l,value:a,index:r}}function hl(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(l,a){return jp(e,l,t,a)}).filter(function(l){return $p(e,l)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=jp(e,n,t,r);return $p(e,o)?o:void 0}).filter(AE)}function Hy(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Hr(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function zp(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,Hr(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function FO(e,t){return Hy(hl(e,t))}function $p(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,l=t.label,a=t.value;return(!Yy(e)||!o)&&Gy(e,{label:l,value:a,data:i},r)}function AO(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var o=t.indexOf(n);if(o>-1)return n;if(i-1?n:t[0]}var Nu=function(t,n){var r,i=(r=t.find(function(o){return o.data===n}))===null||r===void 0?void 0:r.id;return i||null},Wy=function(t,n){return t.getOptionLabel(n)},ta=function(t,n){return t.getOptionValue(n)};function Qy(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function Ky(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=ta(e,t);return n.some(function(i){return ta(e,i)===r})}function Gy(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Yy=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},zO=1,Xy=function(e){tC(n,e);var t=oC(n);function n(r){var i;if(Jk(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=OO(),i.controlRef=null,i.getControlRef=function(u){i.controlRef=u},i.focusedOptionRef=null,i.getFocusedOptionRef=function(u){i.focusedOptionRef=u},i.menuListRef=null,i.getMenuListRef=function(u){i.menuListRef=u},i.inputRef=null,i.getInputRef=function(u){i.inputRef=u},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(u,s){var c=i.props,f=c.onChange,d=c.name;s.name=d,i.ariaOnChange(u,s),f(u,s)},i.setValue=function(u,s,c){var f=i.props,d=f.closeMenuOnSelect,p=f.isMulti,g=f.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:g}),d&&(i.setState({inputIsHiddenAfterUpdate:!p}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(u,{action:s,option:c})},i.selectOption=function(u){var s=i.props,c=s.blurInputOnSelect,f=s.isMulti,d=s.name,p=i.state.selectValue,g=f&&i.isOptionSelected(u,p),v=i.isOptionDisabled(u,p);if(g){var k=i.getOptionValue(u);i.setValue(p.filter(function(h){return i.getOptionValue(h)!==k}),"deselect-option",u)}else if(!v)f?i.setValue([].concat(Hr(p),[u]),"select-option",u):i.setValue(u,"select-option");else{i.ariaOnChange(u,{action:"select-option",option:u,name:d});return}c&&i.blurInput()},i.removeValue=function(u){var s=i.props.isMulti,c=i.state.selectValue,f=i.getOptionValue(u),d=c.filter(function(g){return i.getOptionValue(g)!==f}),p=Mi(s,d,d[0]||null);i.onChange(p,{action:"remove-value",removedValue:u}),i.focusInput()},i.clearValue=function(){var u=i.state.selectValue;i.onChange(Mi(i.props.isMulti,[],null),{action:"clear",removedValues:u})},i.popValue=function(){var u=i.props.isMulti,s=i.state.selectValue,c=s[s.length-1],f=s.slice(0,s.length-1),d=Mi(u,f,f[0]||null);i.onChange(d,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(u){return Nu(i.state.focusableOptionsWithIds,u)},i.getFocusableOptionsWithIds=function(){return zp(hl(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var u=arguments.length,s=new Array(u),c=0;cp||d>p}},i.onTouchEnd=function(u){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(u.target)&&i.menuListRef&&!i.menuListRef.contains(u.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(u){i.userIsDragging||i.onControlMouseDown(u)},i.onClearIndicatorTouchEnd=function(u){i.userIsDragging||i.onClearIndicatorMouseDown(u)},i.onDropdownIndicatorTouchEnd=function(u){i.userIsDragging||i.onDropdownIndicatorMouseDown(u)},i.handleInputChange=function(u){var s=i.props.inputValue,c=u.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:s}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(u){i.props.onFocus&&i.props.onFocus(u),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(u){var s=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(u),i.onInputChange("",{action:"input-blur",prevInputValue:s}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(u){if(!(i.blockOptionHover||i.state.focusedOption===u)){var s=i.getFocusableOptions(),c=s.indexOf(u);i.setState({focusedOption:u,focusedOptionId:c>-1?i.getFocusedOptionId(u):null})}},i.shouldHideSelectedOptions=function(){return Yy(i.props)},i.onValueInputFocus=function(u){u.preventDefault(),u.stopPropagation(),i.focus()},i.onKeyDown=function(u){var s=i.props,c=s.isMulti,f=s.backspaceRemovesValue,d=s.escapeClearsValue,p=s.inputValue,g=s.isClearable,v=s.isDisabled,k=s.menuIsOpen,h=s.onKeyDown,m=s.tabSelectsValue,y=s.openMenuOnFocus,E=i.state,T=E.focusedOption,C=E.focusedValue,O=E.selectValue;if(!v&&!(typeof h=="function"&&(h(u),u.defaultPrevented))){switch(i.blockOptionHover=!0,u.key){case"ArrowLeft":if(!c||p)return;i.focusValue("previous");break;case"ArrowRight":if(!c||p)return;i.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(C)i.removeValue(C);else{if(!f)return;c?i.popValue():g&&i.clearValue()}break;case"Tab":if(i.isComposing||u.shiftKey||!k||!m||!T||y&&i.isOptionSelected(T,O))return;i.selectOption(T);break;case"Enter":if(u.keyCode===229)break;if(k){if(!T||i.isComposing)return;i.selectOption(T);break}return;case"Escape":k?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:p}),i.onMenuClose()):g&&d&&i.clearValue();break;case" ":if(p)return;if(!k){i.openMenu("first");break}if(!T)return;i.selectOption(T);break;case"ArrowUp":k?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":k?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!k)return;i.focusOption("pageup");break;case"PageDown":if(!k)return;i.focusOption("pagedown");break;case"Home":if(!k)return;i.focusOption("first");break;case"End":if(!k)return;i.focusOption("last");break;default:return}u.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++zO),i.state.selectValue=Jl(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),l=i.buildFocusableOptions(),a=l.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=l[a],i.state.focusedOptionId=Nu(o,l[a])}return i}return eC(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&bp(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,l=o.isDisabled,a=o.menuIsOpen,u=this.state.isFocused;(u&&!l&&i.isDisabled||u&&a&&!i.menuIsOpen)&&this.focusInput(),u&&l&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!u&&!l&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(bp(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,l=this.state,a=l.selectValue,u=l.isFocused,s=this.buildFocusableOptions(),c=i==="first"?0:s.length-1;if(!this.props.isMulti){var f=s.indexOf(a[0]);f>-1&&(c=f)}this.scrollToFocusedOptionOnUpdate=!(u&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:s[c],focusedOptionId:this.getFocusedOptionId(s[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,l=o.selectValue,a=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var u=l.indexOf(a);a||(u=-1);var s=l.length-1,c=-1;if(l.length){switch(i){case"previous":u===0?c=0:u===-1?c=s:c=u-1;break;case"next":u>-1&&u0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,l=this.state.focusedOption,a=this.getFocusableOptions();if(a.length){var u=0,s=a.indexOf(l);l||(s=-1),i==="up"?u=s>0?s-1:a.length-1:i==="down"?u=(s+1)%a.length:i==="pageup"?(u=s-o,u<0&&(u=0)):i==="pagedown"?(u=s+o,u>a.length-1&&(u=a.length-1)):i==="last"&&(u=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[u],focusedValue:null,focusedOptionId:this.getFocusedOptionId(a[u])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Lu):B(B({},Lu),this.props.theme):Lu}},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,l=this.getStyles,a=this.getClassNames,u=this.getValue,s=this.selectOption,c=this.setValue,f=this.props,d=f.isMulti,p=f.isRtl,g=f.options,v=this.hasValue();return{clearValue:i,cx:o,getStyles:l,getClassNames:a,getValue:u,hasValue:v,isMulti:d,isRtl:p,options:g,selectOption:s,selectProps:f,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,l=i.isMulti;return o===void 0?l:o}},{key:"isOptionDisabled",value:function(i,o){return Qy(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return Ky(this.props,i,o)}},{key:"filterOption",value:function(i,o){return Gy(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var l=this.props.inputValue,a=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:l,selectValue:a})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,o=i.isDisabled,l=i.isSearchable,a=i.inputId,u=i.inputValue,s=i.tabIndex,c=i.form,f=i.menuIsOpen,d=i.required,p=this.getComponents(),g=p.Input,v=this.state,k=v.inputIsHidden,h=v.ariaSelection,m=this.commonProps,y=a||this.getElementId("input"),E=B(B(B({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!l&&{"aria-readonly":!0}),this.hasValue()?(h==null?void 0:h.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return l?x.createElement(g,W({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:y,innerRef:this.getInputRef,isDisabled:o,isHidden:k,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:c,type:"text",value:u},E)):x.createElement(pO,W({id:y,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Zl,onFocus:this.onInputFocus,disabled:o,tabIndex:s,inputMode:"none",form:c,value:""},E))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),l=o.MultiValue,a=o.MultiValueContainer,u=o.MultiValueLabel,s=o.MultiValueRemove,c=o.SingleValue,f=o.Placeholder,d=this.commonProps,p=this.props,g=p.controlShouldRenderValue,v=p.isDisabled,k=p.isMulti,h=p.inputValue,m=p.placeholder,y=this.state,E=y.selectValue,T=y.focusedValue,C=y.isFocused;if(!this.hasValue()||!g)return h?null:x.createElement(f,W({},d,{key:"placeholder",isDisabled:v,isFocused:C,innerProps:{id:this.getElementId("placeholder")}}),m);if(k)return E.map(function(P,_){var M=P===T,A="".concat(i.getOptionLabel(P),"-").concat(i.getOptionValue(P));return x.createElement(l,W({},d,{components:{Container:a,Label:u,Remove:s},isFocused:M,isDisabled:v,key:A,index:_,removeProps:{onClick:function(){return i.removeValue(P)},onTouchEnd:function(){return i.removeValue(P)},onMouseDown:function(Q){Q.preventDefault()}},data:P}),i.formatOptionLabel(P,"value"))});if(h)return null;var O=E[0];return x.createElement(c,W({},d,{data:O,isDisabled:v}),this.formatOptionLabel(O,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,l=this.commonProps,a=this.props,u=a.isDisabled,s=a.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||u||!this.hasValue()||s)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return x.createElement(o,W({},l,{innerProps:f,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,l=this.commonProps,a=this.props,u=a.isDisabled,s=a.isLoading,c=this.state.isFocused;if(!o||!s)return null;var f={"aria-hidden":"true"};return x.createElement(o,W({},l,{innerProps:f,isDisabled:u,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,l=i.IndicatorSeparator;if(!o||!l)return null;var a=this.commonProps,u=this.props.isDisabled,s=this.state.isFocused;return x.createElement(l,W({},a,{isDisabled:u,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var l=this.commonProps,a=this.props.isDisabled,u=this.state.isFocused,s={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return x.createElement(o,W({},l,{innerProps:s,isDisabled:a,isFocused:u}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),l=o.Group,a=o.GroupHeading,u=o.Menu,s=o.MenuList,c=o.MenuPortal,f=o.LoadingMessage,d=o.NoOptionsMessage,p=o.Option,g=this.commonProps,v=this.state.focusedOption,k=this.props,h=k.captureMenuScroll,m=k.inputValue,y=k.isLoading,E=k.loadingMessage,T=k.minMenuHeight,C=k.maxMenuHeight,O=k.menuIsOpen,P=k.menuPlacement,_=k.menuPosition,M=k.menuPortalTarget,A=k.menuShouldBlockScroll,D=k.menuShouldScrollIntoView,Q=k.noOptionsMessage,Z=k.onMenuScrollToTop,$=k.onMenuScrollToBottom;if(!O)return null;var H=function(S,re){var pe=S.type,X=S.data,we=S.isDisabled,Ee=S.isSelected,De=S.label,He=S.value,St=v===X,en=we?void 0:function(){return i.onOptionHover(X)},tn=we?void 0:function(){return i.selectOption(X)},st="".concat(i.getElementId("option"),"-").concat(re),fe={id:st,onClick:tn,onMouseMove:en,onMouseOver:en,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:Ee};return x.createElement(p,W({},g,{innerProps:fe,data:X,isDisabled:we,isSelected:Ee,key:st,label:De,type:pe,value:He,isFocused:St,innerRef:St?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(S.data,"menu"))},ee;if(this.hasOptions())ee=this.getCategorizedOptions().map(function(V){if(V.type==="group"){var S=V.data,re=V.options,pe=V.index,X="".concat(i.getElementId("group"),"-").concat(pe),we="".concat(X,"-heading");return x.createElement(l,W({},g,{key:X,data:S,options:re,Heading:a,headingProps:{id:we,data:V.data},label:i.formatGroupLabel(V.data)}),V.options.map(function(Ee){return H(Ee,"".concat(pe,"-").concat(Ee.index))}))}else if(V.type==="option")return H(V,"".concat(V.index))});else if(y){var R=E({inputValue:m});if(R===null)return null;ee=x.createElement(f,g,R)}else{var z=Q({inputValue:m});if(z===null)return null;ee=x.createElement(d,g,z)}var w={minMenuHeight:T,maxMenuHeight:C,menuPlacement:P,menuPosition:_,menuShouldScrollIntoView:D},G=x.createElement(WE,W({},g,w),function(V){var S=V.ref,re=V.placerProps,pe=re.placement,X=re.maxHeight;return x.createElement(u,W({},g,w,{innerRef:S,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:y,placement:pe}),x.createElement(xO,{captureEnabled:h,onTopArrive:Z,onBottomArrive:$,lockEnabled:A},function(we){return x.createElement(s,W({},g,{innerRef:function(De){i.getMenuListRef(De),we(De)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:i.getElementId("listbox")},isLoading:y,maxHeight:X,focusedOption:v}),ee)}))});return M||_==="fixed"?x.createElement(c,W({},g,{appendTo:M,controlElement:this.controlRef,menuPlacement:P,menuPosition:_}),G):G}},{key:"renderFormField",value:function(){var i=this,o=this.props,l=o.delimiter,a=o.isDisabled,u=o.isMulti,s=o.name,c=o.required,f=this.state.selectValue;if(c&&!this.hasValue()&&!a)return x.createElement(kO,{name:s,onFocus:this.onValueInputFocus});if(!(!s||a))if(u)if(l){var d=f.map(function(v){return i.getOptionValue(v)}).join(l);return x.createElement("input",{name:s,type:"hidden",value:d})}else{var p=f.length>0?f.map(function(v,k){return x.createElement("input",{key:"i-".concat(k),name:s,type:"hidden",value:i.getOptionValue(v)})}):x.createElement("input",{name:s,type:"hidden",value:""});return x.createElement("div",null,p)}else{var g=f[0]?this.getOptionValue(f[0]):"";return x.createElement("input",{name:s,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,l=o.ariaSelection,a=o.focusedOption,u=o.focusedValue,s=o.isFocused,c=o.selectValue,f=this.getFocusableOptions();return x.createElement(aO,W({},i,{id:this.getElementId("live-region"),ariaSelection:l,focusedOption:a,focusedValue:u,isFocused:s,selectValue:c,focusableOptions:f,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,l=i.IndicatorsContainer,a=i.SelectContainer,u=i.ValueContainer,s=this.props,c=s.className,f=s.id,d=s.isDisabled,p=s.menuIsOpen,g=this.state.isFocused,v=this.commonProps=this.getCommonProps();return x.createElement(a,W({},v,{className:c,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:d,isFocused:g}),this.renderLiveRegion(),x.createElement(o,W({},v,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:d,isFocused:g,menuIsOpen:p}),x.createElement(u,W({},v,{isDisabled:d}),this.renderPlaceholderOrValue(),this.renderInput()),x.createElement(l,W({},v,{isDisabled:d}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var l=o.prevProps,a=o.clearFocusValueOnUpdate,u=o.inputIsHiddenAfterUpdate,s=o.ariaSelection,c=o.isFocused,f=o.prevWasFocused,d=o.instancePrefix,p=i.options,g=i.value,v=i.menuIsOpen,k=i.inputValue,h=i.isMulti,m=Jl(g),y={};if(l&&(g!==l.value||p!==l.options||v!==l.menuIsOpen||k!==l.inputValue)){var E=v?FO(i,m):[],T=v?zp(hl(i,m),"".concat(d,"-option")):[],C=a?AO(o,m):null,O=jO(o,E),P=Nu(T,O);y={selectValue:m,focusedOption:O,focusedOptionId:P,focusableOptionsWithIds:T,focusedValue:C,clearFocusValueOnUpdate:!1}}var _=u!=null&&i!==l?{inputIsHidden:u,inputIsHiddenAfterUpdate:void 0}:{},M=s,A=c&&f;return c&&!A&&(M={value:Mi(h,m,m[0]||null),options:m,action:"initial-input-focus"},A=!f),(s==null?void 0:s.action)==="initial-input-focus"&&(M=null),B(B(B({},y),_),{},{prevProps:i,ariaSelection:M,prevWasFocused:A})}}]),n}(x.Component);Xy.defaultProps=_O;var $O=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function VO(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,o=e.defaultValue,l=o===void 0?null:o,a=e.inputValue,u=e.menuIsOpen,s=e.onChange,c=e.onInputChange,f=e.onMenuClose,d=e.onMenuOpen,p=e.value,g=Jt(e,$O),v=x.useState(a!==void 0?a:n),k=hn(v,2),h=k[0],m=k[1],y=x.useState(u!==void 0?u:i),E=hn(y,2),T=E[0],C=E[1],O=x.useState(p!==void 0?p:l),P=hn(O,2),_=P[0],M=P[1],A=x.useCallback(function(R,z){typeof s=="function"&&s(R,z),M(R)},[s]),D=x.useCallback(function(R,z){var w;typeof c=="function"&&(w=c(R,z)),m(w!==void 0?w:R)},[c]),Q=x.useCallback(function(){typeof d=="function"&&d(),C(!0)},[d]),Z=x.useCallback(function(){typeof f=="function"&&f(),C(!1)},[f]),$=a!==void 0?a:h,H=u!==void 0?u:T,ee=p!==void 0?p:_;return B(B({},g),{},{inputValue:$,menuIsOpen:H,onChange:A,onInputChange:D,onMenuClose:Z,onMenuOpen:Q,value:ee})}var BO=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Vp=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=String(t).toLowerCase(),o=String(r.getOptionValue(n)).toLowerCase(),l=String(r.getOptionLabel(n)).toLowerCase();return o===i||l===i},Mu={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,n,r,i){return!(!t||n.some(function(o){return Vp(t,o,i)})||r.some(function(o){return Vp(t,o,i)}))},getNewOptionData:function(t,n){return{label:n,value:t,__isNew__:!0}}};function UO(e){var t=e.allowCreateWhileLoading,n=t===void 0?!1:t,r=e.createOptionPosition,i=r===void 0?"last":r,o=e.formatCreateLabel,l=o===void 0?Mu.formatCreateLabel:o,a=e.isValidNewOption,u=a===void 0?Mu.isValidNewOption:a,s=e.getNewOptionData,c=s===void 0?Mu.getNewOptionData:s,f=e.onCreateOption,d=e.options,p=d===void 0?[]:d,g=e.onChange,v=Jt(e,BO),k=v.getOptionValue,h=k===void 0?By:k,m=v.getOptionLabel,y=m===void 0?Vy:m,E=v.inputValue,T=v.isLoading,C=v.isMulti,O=v.value,P=v.name,_=x.useMemo(function(){return u(E,Jl(O),p,{getOptionValue:h,getOptionLabel:y})?c(E,l(E)):void 0},[l,c,y,h,E,u,p,O]),M=x.useMemo(function(){return(n||!T)&&_?i==="first"?[_].concat(Hr(p)):[].concat(Hr(p),[_]):p},[n,i,T,_,p]),A=x.useCallback(function(D,Q){if(Q.action!=="select-option")return g(D,Q);var Z=Array.isArray(D)?D:[D];if(Z[Z.length-1]===_){if(f)f(E);else{var $=c(E,E),H={action:"create-option",name:P,option:$};g(Mi(C,[].concat(Hr(Jl(O)),[$]),$),H)}return}g(D,Q)},[c,E,C,P,_,f,g,O]);return B(B({},v),{},{options:M,onChange:A})}var HO=x.forwardRef(function(e,t){var n=VO(e),r=UO(n);return x.createElement(Xy,W({ref:t},r))}),qy=HO;let Yo;const WO=new Uint8Array(16);function QO(){if(!Yo&&(Yo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Yo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Yo(WO)}const je=[];for(let e=0;e<256;++e)je.push((e+256).toString(16).slice(1));function KO(e,t=0){return je[e[t+0]]+je[e[t+1]]+je[e[t+2]]+je[e[t+3]]+"-"+je[e[t+4]]+je[e[t+5]]+"-"+je[e[t+6]]+je[e[t+7]]+"-"+je[e[t+8]]+je[e[t+9]]+"-"+je[e[t+10]]+je[e[t+11]]+je[e[t+12]]+je[e[t+13]]+je[e[t+14]]+je[e[t+15]]}const GO=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Bp={randomUUID:GO};function Zy(e,t,n){if(Bp.randomUUID&&!t&&!e)return Bp.randomUUID();e=e||{};const r=e.random||(e.rng||QO)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return KO(r)}const Jy=({onSubmit:e,onAddTag:t,availableTags:n,title:r="",markdown:i="",tags:o=[]})=>{const l=x.useRef(null),a=x.useRef(null),[u,s]=x.useState(o),c=ba(),f=d=>{d.preventDefault(),e({title:l.current.value,markdown:a.current.value,tags:u}),c("..")};return b.jsx($e,{onSubmit:f,children:b.jsxs(Un,{gap:4,children:[b.jsxs(cn,{children:[b.jsx(bt,{children:b.jsxs($e.Group,{controlId:"title",children:[b.jsx($e.Label,{children:"Title"}),b.jsx($e.Control,{ref:l,defaultValue:r,required:!0})]})}),b.jsx(bt,{children:b.jsxs($e.Group,{controlId:"tags",children:[b.jsx($e.Label,{children:"Tags"}),b.jsx(qy,{onCreateOption:d=>{const p={id:Zy(),label:d};t(p),s(g=>[...g,p])},value:u.map(d=>({label:d.label,value:d.id})),options:n.map(d=>({label:d.label,value:d.id})),onChange:d=>{s(d.map(p=>({id:p.value,label:p.label})))},isMulti:!0})]})})]}),b.jsx(cn,{children:b.jsxs($e.Group,{controlId:"markdown",children:[b.jsx($e.Label,{children:"Body"}),b.jsx($e.Control,{ref:a,defaultValue:i,required:!0,as:"textarea",rows:10})]})}),b.jsx(cn,{children:b.jsxs(Un,{direction:"horizontal",gap:2,className:"justify-content-end",children:[b.jsx(pn,{type:"submit",variant:"primary",children:"Save"}),b.jsx(ti,{to:"..",children:b.jsx(pn,{type:"button",variant:"outline-secondary",children:"Cancel"})})]})})]})})},YO=({onSubmit:e,onAddTag:t,availableTags:n})=>b.jsxs("section",{children:[b.jsx("h1",{className:"mb-4",children:"New note"}),b.jsx(Jy,{onSubmit:e,onAddTag:t,availableTags:n})]});function Up(e,t){const[n,r]=x.useState(()=>{const i=localStorage.getItem(e);return i!=null?JSON.parse(i):typeof t=="function"?t():t});return x.useEffect(()=>{localStorage.setItem(e,JSON.stringify(n))},[e,n]),[n,r]}const XO="_card_f0plp_1",qO={card:XO},ZO=({id:e,title:t,tags:n})=>b.jsx(np,{as:ti,to:`/${e}`,className:`h-100 text-reset text-decoration-none ${qO.card}`,children:b.jsx(np.Body,{children:b.jsxs(Un,{gap:2,className:"align-items-center justify-content-center h-100",children:[b.jsx("span",{className:"fs-5",children:t}),n.length>0&&b.jsx(Un,{gap:1,direction:"horizontal",className:"justify-content-center flex-wrap",children:n.map(r=>b.jsx(ov,{className:"text-truncate",children:r.label},r.id))})]})})}),JO=({availableTags:e,notes:t,onUpdateTag:n,onDeleteTag:r})=>{const[i,o]=x.useState([]),[l,a]=x.useState(""),[u,s]=x.useState(!1),c=x.useMemo(()=>t.filter(f=>(l===""||f.title.toLowerCase().includes(l.toLowerCase()))&&(i.length===0||i.every(d=>f.tags.some(p=>p.id===d.id)))),[l,i,t]);return b.jsxs("section",{children:[b.jsxs(cn,{className:"align-items-center mb-4",children:[b.jsx(bt,{children:b.jsx("h1",{children:"Note List"})}),b.jsx(bt,{xs:"auto",children:b.jsxs(Un,{gap:2,direction:"horizontal",children:[b.jsx(ti,{to:"/new",children:b.jsx(pn,{variant:"primary",children:"Create"})}),b.jsx(pn,{variant:"outline-secondary",onClick:()=>{s(!0)},children:"Edit Tags"})]})})]}),b.jsx($e,{children:b.jsxs(cn,{className:"mb-4",children:[b.jsx(bt,{children:b.jsxs($e.Group,{controlId:"title",children:[b.jsx($e.Label,{children:"Title"}),b.jsx($e.Control,{type:"text",value:l,onChange:f=>a(f.target.value)})]})}),b.jsx(bt,{children:b.jsxs($e.Group,{controlId:"tags",children:[b.jsx($e.Label,{children:"Tags"}),b.jsx(qy,{value:i.map(f=>({label:f.label,value:f.id})),options:e.map(f=>({label:f.label,value:f.id})),onChange:f=>{o(f.map(d=>({id:d.value,label:d.label})))},isMulti:!0})]})})]})}),c.length===0&&b.jsx(cn,{className:"mb-4",children:b.jsxs("p",{children:["Currently, there are no notes available. Please start by",b.jsx(ti,{to:"/new",children:b.jsx(pn,{variant:"primary",className:"ms-2",children:"Creating a Note"})})]})}),b.jsx(cn,{xs:1,sm:2,lg:3,xl:4,className:"g-3 mb-4",children:c.length>0&&c.map(f=>b.jsx(bt,{children:b.jsx(ZO,{id:f.id,title:f.title,tags:f.tags})},f.id))}),b.jsx(e2,{availableTags:e,show:u,handleClose:()=>s(!1),onUpdateTag:n,onDeleteTag:r})]})};function e2({availableTags:e,handleClose:t,show:n,onUpdateTag:r,onDeleteTag:i}){return b.jsxs(Ho,{show:n,onHide:t,children:[b.jsx(Ho.Header,{closeButton:!0,children:b.jsx(Ho.Title,{children:"Edit Tags"})}),b.jsx(Ho.Body,{children:b.jsx($e,{children:b.jsx(Un,{gap:2,children:e.map(o=>b.jsxs(cn,{children:[b.jsx(bt,{children:b.jsx($e.Control,{type:"text",value:o.label,onChange:l=>r(o.id,l.target.value)})}),b.jsx(bt,{xs:"auto",children:b.jsx(pn,{variant:"outline-danger",onClick:()=>i(o.id),children:"×"})})]},o.id))})})})]})}const t2=({notes:e})=>{const{id:t}=Tk(),n=e.find(r=>r.id===t);return n==null?b.jsx(iy,{to:"/",replace:!0}):b.jsx($k,{context:n})};function e1(){return bk()}function n2(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const r2=/[ \t\n\f\r]/g;function i2(e){return typeof e=="object"?e.type==="text"?Hp(e.value):!1:Hp(e)}function Hp(e){return e.replace(r2,"")===""}class wo{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}wo.prototype.property={};wo.prototype.normal={};wo.prototype.space=null;function t1(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&s2.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Qp,p2);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Qp.test(o)){let l=o.replace(c2,d2);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=Lf}return new i(r,t)}function d2(e){return"-"+e.toLowerCase()}function p2(e){return e.charAt(1).toUpperCase()}const h2={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},m2=t1([i1,r1,a1,u1,a2],"html"),s1=t1([i1,r1,a1,u1,u2],"svg");function g2(e){return e.join(" ").trim()}var Nf={exports:{}},Kp=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,v2=/\n/g,y2=/^\s*/,x2=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,w2=/^:\s*/,S2=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,k2=/^[;\s]*/,C2=/^\s+|\s+$/g,E2=` +`,Gp="/",Yp="*",nr="",b2="comment",O2="declaration",T2=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(g){var v=g.match(v2);v&&(n+=v.length);var k=g.lastIndexOf(E2);r=~k?g.length-k:r+g.length}function o(){var g={line:n,column:r};return function(v){return v.position=new l(g),s(),v}}function l(g){this.start=g,this.end={line:n,column:r},this.source=t.source}l.prototype.content=e;function a(g){var v=new Error(t.source+":"+n+":"+r+": "+g);if(v.reason=g,v.filename=t.source,v.line=n,v.column=r,v.source=e,!t.silent)throw v}function u(g){var v=g.exec(e);if(v){var k=v[0];return i(k),e=e.slice(k.length),v}}function s(){u(y2)}function c(g){var v;for(g=g||[];v=f();)v!==!1&&g.push(v);return g}function f(){var g=o();if(!(Gp!=e.charAt(0)||Yp!=e.charAt(1))){for(var v=2;nr!=e.charAt(v)&&(Yp!=e.charAt(v)||Gp!=e.charAt(v+1));)++v;if(v+=2,nr===e.charAt(v-1))return a("End of comment missing");var k=e.slice(2,v-2);return r+=2,i(k),e=e.slice(v),r+=2,g({type:b2,comment:k})}}function d(){var g=o(),v=u(x2);if(v){if(f(),!u(w2))return a("property missing ':'");var k=u(S2),h=g({type:O2,property:Xp(v[0].replace(Kp,nr)),value:k?Xp(k[0].replace(Kp,nr)):nr});return u(k2),h}}function p(){var g=[];c(g);for(var v;v=d();)v!==!1&&(g.push(v),c(g));return g}return s(),p()};function Xp(e){return e?e.replace(C2,nr):nr}var I2=T2;function c1(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=I2(e),o=typeof t=="function",l,a,u=0,s=i.length;u0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function L2(e){const t=Mf(e),n=f1(e);if(t&&n)return{start:t,end:n}}function Ui(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?qp(e.position):"start"in e||"end"in e?qp(e):"line"in e||"column"in e?nc(e):""}function nc(e){return Zp(e&&e.line)+":"+Zp(e&&e.column)}function qp(e){return nc(e&&e.start)+"-"+nc(e&&e.end)}function Zp(e){return e&&typeof e=="number"?e:1}class et extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(l=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?o.ruleId=r:(o.source=r.slice(0,u),o.ruleId=r.slice(u+1))}if(!o.place&&o.ancestors&&o.ancestors){const u=o.ancestors[o.ancestors.length-1];u&&(o.place=u.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=Ui(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}et.prototype.file="";et.prototype.name="";et.prototype.reason="";et.prototype.message="";et.prototype.stack="";et.prototype.column=void 0;et.prototype.line=void 0;et.prototype.ancestors=void 0;et.prototype.cause=void 0;et.prototype.fatal=void 0;et.prototype.place=void 0;et.prototype.ruleId=void 0;et.prototype.source=void 0;const Df={}.hasOwnProperty,N2=new Map,M2=/[A-Z]/g,D2=/-([a-z])/g,_2=new Set(["table","tbody","thead","tfoot","tr"]),F2=new Set(["td","th"]);function A2(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=z2(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=j2(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?s1:m2,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=p1(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function p1(e,t,n){if(t.type==="element"||t.type==="root"){const r=e.schema;let i=r;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=s1,e.schema=i),e.ancestors.push(t);let o=$2(e,t);const l=V2(e,e.ancestors);let a=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(o&&_2.has(t.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!i2(u):!0})),Df.call(e.components,t.tagName)){const u=t.tagName;a=e.components[u],typeof a!="string"&&a!==e.Fragment&&e.passNode&&(l.node=t)}else a=t.tagName;if(o.length>0){const u=o.length>1?o:o[0];u&&(l.children=u)}return e.schema=r,e.create(t,a,l,n)}if(t.type==="text")return t.value}function j2(e,t,n){return r;function r(i,o,l,a){const s=Array.isArray(l.children)?n:t;return a?s(o,l,a):s(o,l)}}function z2(e,t){return n;function n(r,i,o,l){const a=Array.isArray(o.children),u=Mf(r);return t(i,o,l,a,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function $2(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:N2;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o0?(qt(e,e.length,0,t),e):t}const th={}.hasOwnProperty;function q2(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Kr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const eT=Kn(new RegExp("\\p{P}","u")),Kt=Kn(/[A-Za-z]/),ht=Kn(/[\dA-Za-z]/),tT=Kn(/[#-'*+\--9=?A-Z^-~]/);function rc(e){return e!==null&&(e<32||e===127)}const ic=Kn(/\d/),nT=Kn(/[\dA-Fa-f]/),g1=Kn(/[!-/:-@[-`{-~]/);function K(e){return e!==null&&e<-2}function at(e){return e!==null&&(e<0||e===32)}function ue(e){return e===-2||e===-1||e===32}function rT(e){return g1(e)||eT(e)}const iT=Kn(/\s/);function Kn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function pi(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ge(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(u){return ue(u)?(e.enter(n),a(u)):t(u)}function a(u){return ue(u)&&o++l))return;const O=t.events.length;let P=O,_,M;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){if(_){M=t.events[P][1].end;break}_=!0}for(h(r),C=O;Cy;){const T=n[E];t.containerState=T[1],T[0].exit.call(t,e)}n.length=y}function m(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function sT(e,t,n){return ge(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function rh(e){if(e===null||at(e)||iT(e))return 1;if(rT(e))return 2}function Ff(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),d=Object.assign({},e[n][1].start);ih(f,-u),ih(d,u),l={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},a={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:d},o={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},l.start),end:Object.assign({},a.end)},e[r][1].end=Object.assign({},l.start),e[n][1].start=Object.assign({},a.end),s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=Et(s,[["enter",e[r][1],t],["exit",e[r][1],t]])),s=Et(s,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",o,t]]),s=Et(s,Ff(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),s=Et(s,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,s=Et(s,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,qt(e,r-1,n-r+3,s),n=r+s.length-c-2;break}}for(n=-1;++n0&&ue(C)?ge(e,m,"linePrefix",o+1)(C):m(C)}function m(C){return C===null||K(C)?e.check(oh,v,E)(C):(e.enter("codeFlowValue"),y(C))}function y(C){return C===null||K(C)?(e.exit("codeFlowValue"),m(C)):(e.consume(C),y)}function E(C){return e.exit("codeFenced"),t(C)}function T(C,O,P){let _=0;return M;function M($){return C.enter("lineEnding"),C.consume($),C.exit("lineEnding"),A}function A($){return C.enter("codeFencedFence"),ue($)?ge(C,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):D($)}function D($){return $===a?(C.enter("codeFencedFenceSequence"),Q($)):P($)}function Q($){return $===a?(_++,C.consume($),Q):_>=l?(C.exit("codeFencedFenceSequence"),ue($)?ge(C,Z,"whitespace")($):Z($)):P($)}function Z($){return $===null||K($)?(C.exit("codeFencedFence"),O($)):P($)}}}function ST(e,t,n){const r=this;return i;function i(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const Fu={name:"codeIndented",tokenize:CT},kT={tokenize:ET,partial:!0};function CT(e,t,n){const r=this;return i;function i(s){return e.enter("codeIndented"),ge(e,o,"linePrefix",4+1)(s)}function o(s){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?l(s):n(s)}function l(s){return s===null?u(s):K(s)?e.attempt(kT,l,u)(s):(e.enter("codeFlowValue"),a(s))}function a(s){return s===null||K(s)?(e.exit("codeFlowValue"),l(s)):(e.consume(s),a)}function u(s){return e.exit("codeIndented"),t(s)}}function ET(e,t,n){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?n(l):K(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):ge(e,o,"linePrefix",4+1)(l)}function o(l){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):K(l)?i(l):n(l)}}const bT={name:"codeText",tokenize:IT,resolve:OT,previous:TT};function OT(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function S1(e,t,n,r,i,o,l,a,u){const s=u||Number.POSITIVE_INFINITY;let c=0;return f;function f(h){return h===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(h),e.exit(o),d):h===null||h===32||h===41||rc(h)?n(h):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),v(h))}function d(h){return h===62?(e.enter(o),e.consume(h),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(h))}function p(h){return h===62?(e.exit("chunkString"),e.exit(a),d(h)):h===null||h===60||K(h)?n(h):(e.consume(h),h===92?g:p)}function g(h){return h===60||h===62||h===92?(e.consume(h),p):p(h)}function v(h){return!c&&(h===null||h===41||at(h))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),t(h)):c999||p===null||p===91||p===93&&!u||p===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):K(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||K(p)||a++>999?(e.exit("chunkString"),c(p)):(e.consume(p),u||(u=!ue(p)),p===92?d:f)}function d(p){return p===91||p===92||p===93?(e.consume(p),a++,f):f(p)}}function C1(e,t,n,r,i,o){let l;return a;function a(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),l=d===40?41:d,u):n(d)}function u(d){return d===l?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(e.enter(o),s(d))}function s(d){return d===l?(e.exit(o),u(l)):d===null?n(d):K(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),ge(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===l||d===null||K(d)?(e.exit("chunkString"),s(d)):(e.consume(d),d===92?f:c)}function f(d){return d===l||d===92?(e.consume(d),c):c(d)}}function Hi(e,t){let n;return r;function r(i){return K(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ue(i)?ge(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const _T={name:"definition",tokenize:AT},FT={tokenize:jT,partial:!0};function AT(e,t,n){const r=this;let i;return o;function o(p){return e.enter("definition"),l(p)}function l(p){return k1.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=Kr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),u):n(p)}function u(p){return at(p)?Hi(e,s)(p):s(p)}function s(p){return S1(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(FT,f,f)(p)}function f(p){return ue(p)?ge(e,d,"whitespace")(p):d(p)}function d(p){return p===null||K(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function jT(e,t,n){return r;function r(a){return at(a)?Hi(e,i)(a):n(a)}function i(a){return C1(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return ue(a)?ge(e,l,"whitespace")(a):l(a)}function l(a){return a===null||K(a)?t(a):n(a)}}const zT={name:"hardBreakEscape",tokenize:$T};function $T(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return K(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const VT={name:"headingAtx",tokenize:UT,resolve:BT};function BT(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},qt(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function UT(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),l(c)}function l(c){return c===35&&r++<6?(e.consume(c),l):c===null||at(c)?(e.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||K(c)?(e.exit("atxHeading"),t(c)):ue(c)?ge(e,a,"whitespace")(c):(e.enter("atxHeadingText"),s(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),a(c))}function s(c){return c===null||c===35||at(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),s)}}const HT=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ah=["pre","script","style","textarea"],WT={name:"htmlFlow",tokenize:YT,resolveTo:GT,concrete:!0},QT={tokenize:qT,partial:!0},KT={tokenize:XT,partial:!0};function GT(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function YT(e,t,n){const r=this;let i,o,l,a,u;return s;function s(S){return c(S)}function c(S){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(S),f}function f(S){return S===33?(e.consume(S),d):S===47?(e.consume(S),o=!0,v):S===63?(e.consume(S),i=3,r.interrupt?t:w):Kt(S)?(e.consume(S),l=String.fromCharCode(S),k):n(S)}function d(S){return S===45?(e.consume(S),i=2,p):S===91?(e.consume(S),i=5,a=0,g):Kt(S)?(e.consume(S),i=4,r.interrupt?t:w):n(S)}function p(S){return S===45?(e.consume(S),r.interrupt?t:w):n(S)}function g(S){const re="CDATA[";return S===re.charCodeAt(a++)?(e.consume(S),a===re.length?r.interrupt?t:D:g):n(S)}function v(S){return Kt(S)?(e.consume(S),l=String.fromCharCode(S),k):n(S)}function k(S){if(S===null||S===47||S===62||at(S)){const re=S===47,pe=l.toLowerCase();return!re&&!o&&ah.includes(pe)?(i=1,r.interrupt?t(S):D(S)):HT.includes(l.toLowerCase())?(i=6,re?(e.consume(S),h):r.interrupt?t(S):D(S)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(S):o?m(S):y(S))}return S===45||ht(S)?(e.consume(S),l+=String.fromCharCode(S),k):n(S)}function h(S){return S===62?(e.consume(S),r.interrupt?t:D):n(S)}function m(S){return ue(S)?(e.consume(S),m):M(S)}function y(S){return S===47?(e.consume(S),M):S===58||S===95||Kt(S)?(e.consume(S),E):ue(S)?(e.consume(S),y):M(S)}function E(S){return S===45||S===46||S===58||S===95||ht(S)?(e.consume(S),E):T(S)}function T(S){return S===61?(e.consume(S),C):ue(S)?(e.consume(S),T):y(S)}function C(S){return S===null||S===60||S===61||S===62||S===96?n(S):S===34||S===39?(e.consume(S),u=S,O):ue(S)?(e.consume(S),C):P(S)}function O(S){return S===u?(e.consume(S),u=null,_):S===null||K(S)?n(S):(e.consume(S),O)}function P(S){return S===null||S===34||S===39||S===47||S===60||S===61||S===62||S===96||at(S)?T(S):(e.consume(S),P)}function _(S){return S===47||S===62||ue(S)?y(S):n(S)}function M(S){return S===62?(e.consume(S),A):n(S)}function A(S){return S===null||K(S)?D(S):ue(S)?(e.consume(S),A):n(S)}function D(S){return S===45&&i===2?(e.consume(S),H):S===60&&i===1?(e.consume(S),ee):S===62&&i===4?(e.consume(S),G):S===63&&i===3?(e.consume(S),w):S===93&&i===5?(e.consume(S),z):K(S)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(QT,V,Q)(S)):S===null||K(S)?(e.exit("htmlFlowData"),Q(S)):(e.consume(S),D)}function Q(S){return e.check(KT,Z,V)(S)}function Z(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),$}function $(S){return S===null||K(S)?Q(S):(e.enter("htmlFlowData"),D(S))}function H(S){return S===45?(e.consume(S),w):D(S)}function ee(S){return S===47?(e.consume(S),l="",R):D(S)}function R(S){if(S===62){const re=l.toLowerCase();return ah.includes(re)?(e.consume(S),G):D(S)}return Kt(S)&&l.length<8?(e.consume(S),l+=String.fromCharCode(S),R):D(S)}function z(S){return S===93?(e.consume(S),w):D(S)}function w(S){return S===62?(e.consume(S),G):S===45&&i===2?(e.consume(S),w):D(S)}function G(S){return S===null||K(S)?(e.exit("htmlFlowData"),V(S)):(e.consume(S),G)}function V(S){return e.exit("htmlFlow"),t(S)}}function XT(e,t,n){const r=this;return i;function i(l){return K(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function qT(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt($a,t,n)}}const ZT={name:"htmlText",tokenize:JT};function JT(e,t,n){const r=this;let i,o,l;return a;function a(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),u}function u(w){return w===33?(e.consume(w),s):w===47?(e.consume(w),T):w===63?(e.consume(w),y):Kt(w)?(e.consume(w),P):n(w)}function s(w){return w===45?(e.consume(w),c):w===91?(e.consume(w),o=0,g):Kt(w)?(e.consume(w),m):n(w)}function c(w){return w===45?(e.consume(w),p):n(w)}function f(w){return w===null?n(w):w===45?(e.consume(w),d):K(w)?(l=f,ee(w)):(e.consume(w),f)}function d(w){return w===45?(e.consume(w),p):f(w)}function p(w){return w===62?H(w):w===45?d(w):f(w)}function g(w){const G="CDATA[";return w===G.charCodeAt(o++)?(e.consume(w),o===G.length?v:g):n(w)}function v(w){return w===null?n(w):w===93?(e.consume(w),k):K(w)?(l=v,ee(w)):(e.consume(w),v)}function k(w){return w===93?(e.consume(w),h):v(w)}function h(w){return w===62?H(w):w===93?(e.consume(w),h):v(w)}function m(w){return w===null||w===62?H(w):K(w)?(l=m,ee(w)):(e.consume(w),m)}function y(w){return w===null?n(w):w===63?(e.consume(w),E):K(w)?(l=y,ee(w)):(e.consume(w),y)}function E(w){return w===62?H(w):y(w)}function T(w){return Kt(w)?(e.consume(w),C):n(w)}function C(w){return w===45||ht(w)?(e.consume(w),C):O(w)}function O(w){return K(w)?(l=O,ee(w)):ue(w)?(e.consume(w),O):H(w)}function P(w){return w===45||ht(w)?(e.consume(w),P):w===47||w===62||at(w)?_(w):n(w)}function _(w){return w===47?(e.consume(w),H):w===58||w===95||Kt(w)?(e.consume(w),M):K(w)?(l=_,ee(w)):ue(w)?(e.consume(w),_):H(w)}function M(w){return w===45||w===46||w===58||w===95||ht(w)?(e.consume(w),M):A(w)}function A(w){return w===61?(e.consume(w),D):K(w)?(l=A,ee(w)):ue(w)?(e.consume(w),A):_(w)}function D(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),i=w,Q):K(w)?(l=D,ee(w)):ue(w)?(e.consume(w),D):(e.consume(w),Z)}function Q(w){return w===i?(e.consume(w),i=void 0,$):w===null?n(w):K(w)?(l=Q,ee(w)):(e.consume(w),Q)}function Z(w){return w===null||w===34||w===39||w===60||w===61||w===96?n(w):w===47||w===62||at(w)?_(w):(e.consume(w),Z)}function $(w){return w===47||w===62||at(w)?_(w):n(w)}function H(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):n(w)}function ee(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),R}function R(w){return ue(w)?ge(e,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):z(w)}function z(w){return e.enter("htmlTextData"),l(w)}}const Af={name:"labelEnd",tokenize:oI,resolveTo:iI,resolveAll:rI},eI={tokenize:lI},tI={tokenize:aI},nI={tokenize:uI};function rI(e){let t=-1;for(;++t=3&&(s===null||K(s))?(e.exit("thematicBreak"),t(s)):n(s)}function u(s){return s===i?(e.consume(s),r++,u):(e.exit("thematicBreakSequence"),ue(s)?ge(e,a,"whitespace")(s):a(s))}}const tt={name:"list",tokenize:vI,continuation:{tokenize:yI},exit:wI},mI={tokenize:SI,partial:!0},gI={tokenize:xI,partial:!0};function vI(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return a;function a(p){const g=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:ic(p)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(ml,n,s)(p):s(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(p)}return n(p)}function u(p){return ic(p)&&++l<10?(e.consume(p),u):(!r.interrupt||l<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),s(p)):n(p)}function s(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check($a,r.interrupt?n:c,e.attempt(mI,d,f))}function c(p){return r.containerState.initialBlankLine=!0,o++,d(p)}function f(p){return ue(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),d):n(p)}function d(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function yI(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check($a,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ge(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!ue(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(gI,t,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,ge(e,e.attempt(tt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function xI(e,t,n){const r=this;return ge(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(o):n(o)}}function wI(e){e.exit(this.containerState.type)}function SI(e,t,n){const r=this;return ge(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(o){const l=r.events[r.events.length-1];return!ue(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const uh={name:"setextUnderline",tokenize:CI,resolveTo:kI};function kI(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[o][1].end)):e[r][1]=l,e.push(["exit",l,t]),e}function CI(e,t,n){const r=this;let i;return o;function o(s){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=s,l(s)):n(s)}function l(s){return e.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(e.consume(s),a):(e.exit("setextHeadingLineSequence"),ue(s)?ge(e,u,"lineSuffix")(s):u(s))}function u(s){return s===null||K(s)?(e.exit("setextHeadingLine"),t(s)):n(s)}}const EI={tokenize:bI};function bI(e){const t=this,n=e.attempt($a,r,e.attempt(this.parser.constructs.flowInitial,i,ge(e,e.attempt(this.parser.constructs.flow,i,e.attempt(RT,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const OI={resolveAll:b1()},TI=E1("string"),II=E1("text");function E1(e){return{tokenize:t,resolveAll:b1(e==="text"?PI:void 0)};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,l,a);return l;function l(c){return s(c)?o(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),u}function u(c){return s(c)?(n.exit("data"),o(c)):(n.consume(c),u)}function s(c){if(c===null)return!0;const f=i[c];let d=-1;if(f)for(;++d-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function NI(e,t){let n=-1;const r=[];let i;for(;++n0){const Lt=Y.tokenStack[Y.tokenStack.length-1];(Lt[1]||ch).call(Y,void 0,Lt[0])}for(F.position={start:Cn(I.length>0?I[0][1].start:{line:1,column:1,offset:0}),end:Cn(I.length>0?I[I.length-2][1].end:{line:1,column:1,offset:0})},de=-1;++de0){const Lt=Y.tokenStack[Y.tokenStack.length-1];(Lt[1]||ch).call(Y,void 0,Lt[0])}for(F.position={start:Cn(I.length>0?I[0][1].start:{line:1,column:1,offset:0}),end:Cn(I.length>0?I[I.length-2][1].end:{line:1,column:1,offset:0})},de=-1;++de1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,u);const s={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,s),e.applyData(t,s)}function oP(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function lP(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function T1(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function aP(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return T1(e,t);const i={src:pi(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function uP(e,t){const n={src:pi(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function sP(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function cP(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return T1(e,t);const i={href:pi(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function fP(e,t){const n={href:pi(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function dP(e,t,n){const r=e.all(t),i=n?pP(n):I1(t),o={},l=[];if(typeof t.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,u);const s={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,s),e.applyData(t,s)}function oP(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function lP(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function I1(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function aP(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return I1(e,t);const i={src:pi(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function uP(e,t){const n={src:pi(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function sP(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function cP(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return I1(e,t);const i={href:pi(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function fP(e,t){const n={href:pi(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function dP(e,t,n){const r=e.all(t),i=n?pP(n):P1(t),o={},l=[];if(typeof t.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a1}function hP(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=Mf(t.children[1]),u=c1(t.children[t.children.length-1]);a&&u&&(l.position={start:a,end:u}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function xP(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,a=l?l.length:t.children.length;let u=-1;const s=[];for(;++u0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(ph(t.slice(i),i>0,!1)),o.join("")}function ph(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===fh||o===dh;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===fh||o===dh;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function kP(e,t){const n={type:"text",value:SP(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function CP(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const EP={blockquote:JI,break:eP,code:tP,delete:nP,emphasis:rP,footnoteReference:iP,heading:oP,html:lP,imageReference:aP,image:uP,inlineCode:sP,linkReference:cP,link:fP,listItem:dP,list:hP,paragraph:mP,root:gP,strong:vP,table:yP,tableCell:wP,tableRow:xP,text:kP,thematicBreak:CP,toml:Xo,yaml:Xo,definition:Xo,footnoteDefinition:Xo};function Xo(){}const P1=-1,Va=0,na=1,ra=2,jf=3,zf=4,$f=5,Vf=6,R1=7,L1=8,hh=typeof self=="object"?self:globalThis,bP=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=t[i];switch(o){case Va:case P1:return n(l,i);case na:{const a=n([],i);for(const u of l)a.push(r(u));return a}case ra:{const a=n({},i);for(const[u,s]of l)a[r(u)]=r(s);return a}case jf:return n(new Date(l),i);case zf:{const{source:a,flags:u}=l;return n(new RegExp(a,u),i)}case $f:{const a=n(new Map,i);for(const[u,s]of l)a.set(r(u),r(s));return a}case Vf:{const a=n(new Set,i);for(const u of l)a.add(r(u));return a}case R1:{const{name:a,message:u}=l;return n(new hh[a](u),i)}case L1:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i)}return n(new hh[o](l),i)};return r},mh=e=>bP(new Map,e)(0),Cr="",{toString:OP}={},{keys:TP}=Object,Oi=e=>{const t=typeof e;if(t!=="object"||!e)return[Va,t];const n=OP.call(e).slice(8,-1);switch(n){case"Array":return[na,Cr];case"Object":return[ra,Cr];case"Date":return[jf,Cr];case"RegExp":return[zf,Cr];case"Map":return[$f,Cr];case"Set":return[Vf,Cr]}return n.includes("Array")?[na,n]:n.includes("Error")?[R1,n]:[ra,n]},qo=([e,t])=>e===Va&&(t==="function"||t==="symbol"),IP=(e,t,n,r)=>{const i=(l,a)=>{const u=r.push(l)-1;return n.set(a,u),u},o=l=>{if(n.has(l))return n.get(l);let[a,u]=Oi(l);switch(a){case Va:{let c=l;switch(u){case"bigint":a=L1,c=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);c=null;break;case"undefined":return i([P1],l)}return i([a,c],l)}case na:{if(u)return i([u,[...l]],l);const c=[],f=i([a,c],l);for(const d of l)c.push(o(d));return f}case ra:{if(u)switch(u){case"BigInt":return i([u,l.toString()],l);case"Boolean":case"Number":case"String":return i([u,l.valueOf()],l)}if(t&&"toJSON"in l)return o(l.toJSON());const c=[],f=i([a,c],l);for(const d of TP(l))(e||!qo(Oi(l[d])))&&c.push([o(d),o(l[d])]);return f}case jf:return i([a,l.toISOString()],l);case zf:{const{source:c,flags:f}=l;return i([a,{source:c,flags:f}],l)}case $f:{const c=[],f=i([a,c],l);for(const[d,p]of l)(e||!(qo(Oi(d))||qo(Oi(p))))&&c.push([o(d),o(p)]);return f}case Vf:{const c=[],f=i([a,c],l);for(const d of l)(e||!qo(Oi(d)))&&c.push(o(d));return f}}const{message:s}=l;return i([a,{name:u,message:s}],l)};return o},gh=(e,{json:t,lossy:n}={})=>{const r=[];return IP(!(t||n),!!t,new Map,r)(e),r},ia=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?mh(gh(e,t)):structuredClone(e):(e,t)=>mh(gh(e,t));function PP(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function RP(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function LP(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||PP,r=e.options.footnoteBackLabel||RP,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let u=-1;for(;++u0&&g.push({type:"text",value:" "});let m=typeof n=="string"?n:n(u,p);typeof m=="string"&&(m={type:"text",value:m}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,p),className:["data-footnote-backref"]},children:Array.isArray(m)?m:[m]})}const k=c[c.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const m=k.children[k.children.length-1];m&&m.type==="text"?m.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...g)}else c.push(...g);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(c,!0)};e.patch(s,h),a.push(h)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...ia(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` +`});const s={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,s),e.applyData(t,s)}function pP(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r1}function hP(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=Mf(t.children[1]),u=f1(t.children[t.children.length-1]);a&&u&&(l.position={start:a,end:u}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function xP(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,a=l?l.length:t.children.length;let u=-1;const s=[];for(;++u0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(ph(t.slice(i),i>0,!1)),o.join("")}function ph(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===fh||o===dh;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===fh||o===dh;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function kP(e,t){const n={type:"text",value:SP(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function CP(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const EP={blockquote:JI,break:eP,code:tP,delete:nP,emphasis:rP,footnoteReference:iP,heading:oP,html:lP,imageReference:aP,image:uP,inlineCode:sP,linkReference:cP,link:fP,listItem:dP,list:hP,paragraph:mP,root:gP,strong:vP,table:yP,tableCell:wP,tableRow:xP,text:kP,thematicBreak:CP,toml:Xo,yaml:Xo,definition:Xo,footnoteDefinition:Xo};function Xo(){}const R1=-1,Va=0,na=1,ra=2,jf=3,zf=4,$f=5,Vf=6,L1=7,N1=8,hh=typeof self=="object"?self:globalThis,bP=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=t[i];switch(o){case Va:case R1:return n(l,i);case na:{const a=n([],i);for(const u of l)a.push(r(u));return a}case ra:{const a=n({},i);for(const[u,s]of l)a[r(u)]=r(s);return a}case jf:return n(new Date(l),i);case zf:{const{source:a,flags:u}=l;return n(new RegExp(a,u),i)}case $f:{const a=n(new Map,i);for(const[u,s]of l)a.set(r(u),r(s));return a}case Vf:{const a=n(new Set,i);for(const u of l)a.add(r(u));return a}case L1:{const{name:a,message:u}=l;return n(new hh[a](u),i)}case N1:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i)}return n(new hh[o](l),i)};return r},mh=e=>bP(new Map,e)(0),Er="",{toString:OP}={},{keys:TP}=Object,Oi=e=>{const t=typeof e;if(t!=="object"||!e)return[Va,t];const n=OP.call(e).slice(8,-1);switch(n){case"Array":return[na,Er];case"Object":return[ra,Er];case"Date":return[jf,Er];case"RegExp":return[zf,Er];case"Map":return[$f,Er];case"Set":return[Vf,Er]}return n.includes("Array")?[na,n]:n.includes("Error")?[L1,n]:[ra,n]},qo=([e,t])=>e===Va&&(t==="function"||t==="symbol"),IP=(e,t,n,r)=>{const i=(l,a)=>{const u=r.push(l)-1;return n.set(a,u),u},o=l=>{if(n.has(l))return n.get(l);let[a,u]=Oi(l);switch(a){case Va:{let c=l;switch(u){case"bigint":a=N1,c=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);c=null;break;case"undefined":return i([R1],l)}return i([a,c],l)}case na:{if(u)return i([u,[...l]],l);const c=[],f=i([a,c],l);for(const d of l)c.push(o(d));return f}case ra:{if(u)switch(u){case"BigInt":return i([u,l.toString()],l);case"Boolean":case"Number":case"String":return i([u,l.valueOf()],l)}if(t&&"toJSON"in l)return o(l.toJSON());const c=[],f=i([a,c],l);for(const d of TP(l))(e||!qo(Oi(l[d])))&&c.push([o(d),o(l[d])]);return f}case jf:return i([a,l.toISOString()],l);case zf:{const{source:c,flags:f}=l;return i([a,{source:c,flags:f}],l)}case $f:{const c=[],f=i([a,c],l);for(const[d,p]of l)(e||!(qo(Oi(d))||qo(Oi(p))))&&c.push([o(d),o(p)]);return f}case Vf:{const c=[],f=i([a,c],l);for(const d of l)(e||!qo(Oi(d)))&&c.push(o(d));return f}}const{message:s}=l;return i([a,{name:u,message:s}],l)};return o},gh=(e,{json:t,lossy:n}={})=>{const r=[];return IP(!(t||n),!!t,new Map,r)(e),r},ia=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?mh(gh(e,t)):structuredClone(e):(e,t)=>mh(gh(e,t));function PP(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function RP(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function LP(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||PP,r=e.options.footnoteBackLabel||RP,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let u=-1;for(;++u0&&g.push({type:"text",value:" "});let m=typeof n=="string"?n:n(u,p);typeof m=="string"&&(m={type:"text",value:m}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,p),className:["data-footnote-backref"]},children:Array.isArray(m)?m:[m]})}const k=c[c.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const m=k.children[k.children.length-1];m&&m.type==="text"?m.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...g)}else c.push(...g);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(c,!0)};e.patch(s,h),a.push(h)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...ia(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:` -`}]}}const N1=function(e){if(e==null)return _P;if(typeof e=="function")return Ba(e);if(typeof e=="object")return Array.isArray(e)?NP(e):MP(e);if(typeof e=="string")return DP(e);throw new Error("Expected function, string, or object as test")};function NP(e){const t=[];let n=-1;for(;++n":""))+")"})}return d;function d(){let p=M1,g,v,k;if((!t||o(u,s,c[c.length-1]||void 0))&&(p=$P(n(u,c)),p[0]===vh))return p;if("children"in u&&u.children){const h=u;if(h.children&&p[0]!==jP)for(v=(r?h.children.length:-1)+l,k=c.concat(h);v>-1&&v":""))+")"})}return d;function d(){let p=D1,g,v,k;if((!t||o(u,s,c[c.length-1]||void 0))&&(p=$P(n(u,c)),p[0]===vh))return p;if("children"in u&&u.children){const h=u;if(h.children&&p[0]!==jP)for(v=(r?h.children.length:-1)+l,k=c.concat(h);v>-1&&v0&&n.push({type:"text",value:` `}),n}function yh(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function xh(e,t){const n=BP(e,t),r=n.one(e,void 0),i=LP(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:` -`},i),o}function KP(e,t){return e&&"run"in e?async function(n,r){const i=xh(n,t);await e.run(i,r)}:function(n){return xh(n,t||e)}}function wh(e){if(e)throw e}var gl=Object.prototype.hasOwnProperty,_1=Object.prototype.toString,Sh=Object.defineProperty,kh=Object.getOwnPropertyDescriptor,Ch=function(t){return typeof Array.isArray=="function"?Array.isArray(t):_1.call(t)==="[object Array]"},Eh=function(t){if(!t||_1.call(t)!=="[object Object]")return!1;var n=gl.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&gl.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||gl.call(t,i)},bh=function(t,n){Sh&&n.name==="__proto__"?Sh(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Oh=function(t,n){if(n==="__proto__")if(gl.call(t,n)){if(kh)return kh(t,n).value}else return;return t[n]},GP=function e(){var t,n,r,i,o,l,a=arguments[0],u=1,s=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},u=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});ul.length;let u;a&&l.push(i);try{u=e.apply(this,l)}catch(s){const c=s;if(a&&n)throw c;return i(c)}a||(u instanceof Promise?u.then(o,i):u instanceof Error?i(u):o(u))}function i(l,...a){n||(n=!0,t(l,...a))}function o(l){i(null,l)}}const Bt={basename:qP,dirname:ZP,extname:JP,join:eR,sep:"/"};function qP(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');So(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else l<0&&(o=!0,l=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function ZP(e){if(So(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function JP(e){So(e);let t=e.length,n=-1,r=0,i=-1,o=0,l;for(;t--;){const a=e.codePointAt(t);if(a===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),a===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function eR(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function nR(e,t){let n="",r=0,i=-1,o=0,l=-1,a,u;for(;++l<=e.length;){if(l2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=l,o=0;continue}}else if(n.length>0){n="",r=0,i=l,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,l):n=e.slice(i+1,l),r=l-i-1;i=l,o=0}else a===46&&o>-1?o++:o=-1}return n}function So(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const rR={cwd:iR};function iR(){return"/"}function uc(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function oR(e){if(typeof e=="string")e=new URL(e);else if(!uc(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return lR(e)}function lR(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[p,...g]=c;const v=r[d][1];ac(v)&&ac(p)&&(p=ju(!0,v,p)),r[d]=[s,p,...g]}}}}const cR=new Bf().freeze();function Bu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Uu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Hu(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ih(e){if(!ac(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ph(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Zo(e){return fR(e)?e:new F1(e)}function fR(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function dR(e){return typeof e=="string"||pR(e)}function pR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const hR="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Rh=[],Lh={allowDangerousHtml:!0},mR=/^(https?|ircs?|mailto|xmpp)$/i,gR=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function vR(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,l=e.disallowedElements,a=e.rehypePlugins||Rh,u=e.remarkPlugins||Rh,s=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Lh}:Lh,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||yR,p=cR().use(ZI).use(u).use(KP,s).use(a),g=new F1;typeof r=="string"&&(g.value=r);for(const m of gR)Object.hasOwn(e,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+hR+m.id,void 0);const v=p.parse(g);let k=p.runSync(v,g);return i&&(k={type:"element",tagName:"div",properties:{className:i},children:k.type==="root"?k.children:[k]}),D1(k,h),A2(k,{Fragment:b.Fragment,components:o,ignoreInvalidStyle:!0,jsx:b.jsx,jsxs:b.jsxs,passKeys:!0,passNode:!0});function h(m,y,E){if(m.type==="raw"&&E&&typeof y=="number")return c?E.children.splice(y,1):E.children[y]={type:"text",value:m.value},y;if(m.type==="element"){let T;for(T in _u)if(Object.hasOwn(_u,T)&&Object.hasOwn(m.properties,T)){const C=m.properties[T],O=_u[T];(O===null||O.includes(m.tagName))&&(m.properties[T]=d(String(C||""),T,m))}}if(m.type==="element"){let T=t?!t.includes(m.tagName):l?l.includes(m.tagName):!1;if(!T&&n&&typeof y=="number"&&(T=!n(m,y,E)),T&&E&&typeof y=="number")return f&&m.children?E.children.splice(y,1,...m.children):E.children.splice(y,1),y}}}function yR(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||mR.test(e.slice(0,t))?e:""}const xR=({onDelete:e})=>{const t=Jy(),n=ba();return b.jsxs(b.Fragment,{children:[b.jsxs(cn,{className:"align-items-center mb-4",children:[b.jsxs(bt,{children:[b.jsx("h1",{children:t.title}),t.tags.length>0&&b.jsx(Un,{gap:1,direction:"horizontal",className:"flex-wrap",children:t.tags.map(r=>b.jsx(ov,{className:"text-truncate",children:r.label},r.id))})]}),b.jsx(bt,{xs:"auto",children:b.jsxs(Un,{gap:2,direction:"horizontal",children:[b.jsx(ti,{to:`/${t.id}/edit`,children:b.jsx(pn,{variant:"primary",children:"Edit"})}),b.jsx(pn,{variant:"outline-danger",onClick:()=>{e(t.id),n("/")},children:"Delete"}),b.jsx(ti,{to:"/",children:b.jsx(pn,{variant:"outline-secondary",children:"Back"})})]})})]}),b.jsx(vR,{children:t.markdown})]})},wR=({onSubmit:e,onAddTag:t,availableTags:n})=>{const r=Jy();return b.jsxs("section",{children:[b.jsx("h1",{className:"mb-4",children:"Edit note"}),b.jsx(Zy,{title:r.title,markdown:r.markdown,tags:r.tags,onSubmit:i=>e(r.id,i),onAddTag:t,availableTags:n})]})};function SR(){const[e,t]=Up("NOTES",[]),[n,r]=Up("TAGS",[]),i=x.useMemo(()=>e.map(f=>({...f,tags:n.filter(d=>f.tagIds.includes(d.id))})),[e,n]),o=({tags:f,...d})=>{t(p=>[...p,{...d,id:qy(),tagIds:f.map(g=>g.id)}])},l=(f,{tags:d,...p})=>{t(g=>g.map(v=>v.id===f?{...v,...p,tagIds:d.map(k=>k.id)}:v))},a=f=>{t(d=>d.filter(p=>p.id!==f))},u=f=>r(d=>[...d,f]),s=(f,d)=>r(p=>p.map(g=>g.id===f?{...g,label:d}:g)),c=f=>r(d=>d.filter(p=>p.id!==f));return b.jsx(aS,{className:"my-4",children:b.jsxs(Bk,{children:[b.jsx(Er,{path:"/",element:b.jsx(JO,{availableTags:n,notes:i,onUpdateTag:s,onDeleteTag:c})}),b.jsx(Er,{path:"/new",element:b.jsx(YO,{onSubmit:o,onAddTag:u,availableTags:n})}),b.jsxs(Er,{path:"/:id",element:b.jsx(t2,{notes:i}),children:[b.jsx(Er,{index:!0,element:b.jsx(xR,{onDelete:a})}),b.jsx(Er,{path:"edit",element:b.jsx(wR,{onSubmit:l,onAddTag:u,availableTags:n})})]})]})})}Qu.createRoot(document.getElementById("root")).render(b.jsx(an.StrictMode,{children:b.jsx(Gk,{children:b.jsx(SR,{})})})); +`},i),o}function KP(e,t){return e&&"run"in e?async function(n,r){const i=xh(n,t);await e.run(i,r)}:function(n){return xh(n,t||e)}}function wh(e){if(e)throw e}var gl=Object.prototype.hasOwnProperty,F1=Object.prototype.toString,Sh=Object.defineProperty,kh=Object.getOwnPropertyDescriptor,Ch=function(t){return typeof Array.isArray=="function"?Array.isArray(t):F1.call(t)==="[object Array]"},Eh=function(t){if(!t||F1.call(t)!=="[object Object]")return!1;var n=gl.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&gl.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||gl.call(t,i)},bh=function(t,n){Sh&&n.name==="__proto__"?Sh(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Oh=function(t,n){if(n==="__proto__")if(gl.call(t,n)){if(kh)return kh(t,n).value}else return;return t[n]},GP=function e(){var t,n,r,i,o,l,a=arguments[0],u=1,s=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},u=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});ul.length;let u;a&&l.push(i);try{u=e.apply(this,l)}catch(s){const c=s;if(a&&n)throw c;return i(c)}a||(u instanceof Promise?u.then(o,i):u instanceof Error?i(u):o(u))}function i(l,...a){n||(n=!0,t(l,...a))}function o(l){i(null,l)}}const Bt={basename:qP,dirname:ZP,extname:JP,join:eR,sep:"/"};function qP(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');So(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else l<0&&(o=!0,l=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function ZP(e){if(So(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function JP(e){So(e);let t=e.length,n=-1,r=0,i=-1,o=0,l;for(;t--;){const a=e.codePointAt(t);if(a===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),a===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function eR(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function nR(e,t){let n="",r=0,i=-1,o=0,l=-1,a,u;for(;++l<=e.length;){if(l2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=l,o=0;continue}}else if(n.length>0){n="",r=0,i=l,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,l):n=e.slice(i+1,l),r=l-i-1;i=l,o=0}else a===46&&o>-1?o++:o=-1}return n}function So(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const rR={cwd:iR};function iR(){return"/"}function uc(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function oR(e){if(typeof e=="string")e=new URL(e);else if(!uc(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return lR(e)}function lR(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[p,...g]=c;const v=r[d][1];ac(v)&&ac(p)&&(p=ju(!0,v,p)),r[d]=[s,p,...g]}}}}const cR=new Bf().freeze();function Bu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Uu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Hu(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ih(e){if(!ac(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ph(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Zo(e){return fR(e)?e:new A1(e)}function fR(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function dR(e){return typeof e=="string"||pR(e)}function pR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const hR="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Rh=[],Lh={allowDangerousHtml:!0},mR=/^(https?|ircs?|mailto|xmpp)$/i,gR=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function vR(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,l=e.disallowedElements,a=e.rehypePlugins||Rh,u=e.remarkPlugins||Rh,s=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Lh}:Lh,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||yR,p=cR().use(ZI).use(u).use(KP,s).use(a),g=new A1;typeof r=="string"&&(g.value=r);for(const m of gR)Object.hasOwn(e,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+hR+m.id,void 0);const v=p.parse(g);let k=p.runSync(v,g);return i&&(k={type:"element",tagName:"div",properties:{className:i},children:k.type==="root"?k.children:[k]}),_1(k,h),A2(k,{Fragment:b.Fragment,components:o,ignoreInvalidStyle:!0,jsx:b.jsx,jsxs:b.jsxs,passKeys:!0,passNode:!0});function h(m,y,E){if(m.type==="raw"&&E&&typeof y=="number")return c?E.children.splice(y,1):E.children[y]={type:"text",value:m.value},y;if(m.type==="element"){let T;for(T in _u)if(Object.hasOwn(_u,T)&&Object.hasOwn(m.properties,T)){const C=m.properties[T],O=_u[T];(O===null||O.includes(m.tagName))&&(m.properties[T]=d(String(C||""),T,m))}}if(m.type==="element"){let T=t?!t.includes(m.tagName):l?l.includes(m.tagName):!1;if(!T&&n&&typeof y=="number"&&(T=!n(m,y,E)),T&&E&&typeof y=="number")return f&&m.children?E.children.splice(y,1,...m.children):E.children.splice(y,1),y}}}function yR(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||mR.test(e.slice(0,t))?e:""}const xR=({onDelete:e})=>{const t=e1(),n=ba();return b.jsxs(b.Fragment,{children:[b.jsxs(cn,{className:"align-items-center mb-4",children:[b.jsxs(bt,{children:[b.jsx("h1",{children:t.title}),t.tags.length>0&&b.jsx(Un,{gap:1,direction:"horizontal",className:"flex-wrap",children:t.tags.map(r=>b.jsx(ov,{className:"text-truncate",children:r.label},r.id))})]}),b.jsx(bt,{xs:"auto",children:b.jsxs(Un,{gap:2,direction:"horizontal",children:[b.jsx(ti,{to:`/${t.id}/edit`,children:b.jsx(pn,{variant:"primary",children:"Edit"})}),b.jsx(pn,{variant:"outline-danger",onClick:()=>{e(t.id),n("/")},children:"Delete"}),b.jsx(ti,{to:"/",children:b.jsx(pn,{variant:"outline-secondary",children:"Back"})})]})})]}),b.jsx(vR,{children:t.markdown})]})},wR=({onSubmit:e,onAddTag:t,availableTags:n})=>{const r=e1();return b.jsxs("section",{children:[b.jsx("h1",{className:"mb-4",children:"Edit note"}),b.jsx(Jy,{title:r.title,markdown:r.markdown,tags:r.tags,onSubmit:i=>e(r.id,i),onAddTag:t,availableTags:n})]})};function SR(){const[e,t]=Up("NOTES",[]),[n,r]=Up("TAGS",[]),i=x.useMemo(()=>e.map(f=>({...f,tags:n.filter(d=>f.tagIds.includes(d.id))})),[e,n]),o=({tags:f,...d})=>{t(p=>[...p,{...d,id:Zy(),tagIds:f.map(g=>g.id)}])},l=(f,{tags:d,...p})=>{t(g=>g.map(v=>v.id===f?{...v,...p,tagIds:d.map(k=>k.id)}:v))},a=f=>{t(d=>d.filter(p=>p.id!==f))},u=f=>r(d=>[...d,f]),s=(f,d)=>r(p=>p.map(g=>g.id===f?{...g,label:d}:g)),c=f=>r(d=>d.filter(p=>p.id!==f));return b.jsx(uS,{className:"my-4",children:b.jsxs(Bk,{children:[b.jsx(er,{path:"/",element:b.jsx(JO,{availableTags:n,notes:i,onUpdateTag:s,onDeleteTag:c})}),b.jsx(er,{path:"/new",element:b.jsx(YO,{onSubmit:o,onAddTag:u,availableTags:n})}),b.jsxs(er,{path:"/:id",element:b.jsx(t2,{notes:i}),children:[b.jsx(er,{index:!0,element:b.jsx(xR,{onDelete:a})}),b.jsx(er,{path:"edit",element:b.jsx(wR,{onSubmit:l,onAddTag:u,availableTags:n})})]}),b.jsx(er,{path:"*",element:b.jsx(iy,{to:"/"})})]})})}Qu.createRoot(document.getElementById("root")).render(b.jsx(an.StrictMode,{children:b.jsx(Gk,{children:b.jsx(SR,{})})})); diff --git a/index.html b/index.html index 155e492..4519d49 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Vite + React + TS - +