diff --git a/assets/index-dcfe0698.js b/assets/index-42d7fe0b.js similarity index 77% rename from assets/index-dcfe0698.js rename to assets/index-42d7fe0b.js index ead74ea..d1929e6 100644 --- a/assets/index-dcfe0698.js +++ b/assets/index-42d7fe0b.js @@ -1,4 +1,4 @@ -function Rv(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 s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).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)}})();var Av=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Dv={exports:{}},_u={},$v={exports:{}},je={};/** +function Rv(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 s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).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)}})();var Av=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Dv={exports:{}},_u={},$v={exports:{}},je={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function Rv(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hd=Object.prototype.hasOwnProperty,W_=/^[: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]*$/,xm={},_m={};function V_(e){return hd.call(_m,e)?!0:hd.call(xm,e)?!1:W_.test(e)?_m[e]=!0:(xm[e]=!0,!1)}function G_(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 K_(e,t,n,r){if(t===null||typeof t>"u"||G_(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 Wt(e,t,n,r,i,o,s){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=s}var Rt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Rt[e]=new Wt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Rt[t]=new Wt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Rt[e]=new Wt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Rt[e]=new Wt(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){Rt[e]=new Wt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Rt[e]=new Wt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Rt[e]=new Wt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Rt[e]=new Wt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Rt[e]=new Wt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Df=/[\-:]([a-z])/g;function $f(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(Df,$f);Rt[t]=new Wt(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(Df,$f);Rt[t]=new Wt(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(Df,$f);Rt[t]=new Wt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Rt[e]=new Wt(e,1,!1,e.toLowerCase(),null,!1,!1)});Rt.xlinkHref=new Wt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Rt[e]=new Wt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Mf(e,t,n,r){var i=Rt.hasOwnProperty(t)?Rt[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hd=Object.prototype.hasOwnProperty,W_=/^[: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]*$/,xm={},_m={};function V_(e){return hd.call(_m,e)?!0:hd.call(xm,e)?!1:W_.test(e)?_m[e]=!0:(xm[e]=!0,!1)}function G_(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 K_(e,t,n,r){if(t===null||typeof t>"u"||G_(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 Wt(e,t,n,r,i,o,s){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=s}var Rt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Rt[e]=new Wt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Rt[t]=new Wt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Rt[e]=new Wt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Rt[e]=new Wt(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){Rt[e]=new Wt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Rt[e]=new Wt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Rt[e]=new Wt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Rt[e]=new Wt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Rt[e]=new Wt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Df=/[\-:]([a-z])/g;function $f(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(Df,$f);Rt[t]=new Wt(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(Df,$f);Rt[t]=new Wt(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(Df,$f);Rt[t]=new Wt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Rt[e]=new Wt(e,1,!1,e.toLowerCase(),null,!1,!1)});Rt.xlinkHref=new Wt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Rt[e]=new Wt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Mf(e,t,n,r){var i=Rt.hasOwnProperty(t)?Rt[t]:null;(i!==null?i.type!==0:r||!(2l||i[s]!==o[l]){var u=` -`+i[s].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=s&&0<=l);break}}}finally{Nc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ps(e):""}function Q_(e){switch(e.tag){case 5:return Ps(e.type);case 16:return Ps("Lazy");case 13:return Ps("Suspense");case 19:return Ps("SuspenseList");case 0:case 2:case 15:return e=Lc(e.type,!1),e;case 11:return e=Lc(e.type.render,!1),e;case 1:return e=Lc(e.type,!0),e;default:return""}}function yd(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 fo:return"Fragment";case co:return"Portal";case md:return"Profiler";case If:return"StrictMode";case gd:return"Suspense";case vd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xv:return(e.displayName||"Context")+".Consumer";case qv:return(e._context.displayName||"Context")+".Provider";case zf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ff:return t=e.displayName||null,t!==null?t:yd(e.type)||"Memo";case Ir:t=e._payload,e=e._init;try{return yd(e(t))}catch{}}return null}function Y_(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 yd(t);case 8:return t===If?"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 ei(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function q_(e){var t=Jv(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(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function rl(e){e._valueTracker||(e._valueTracker=q_(e))}function e0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Jv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Wl(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 wd(e,t){var n=t.checked;return it({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function bm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ei(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 t0(e,t){t=t.checked,t!=null&&Mf(e,"checked",t,!1)}function xd(e,t){t0(e,t);var n=ei(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")?_d(e,t.type,n):t.hasOwnProperty("defaultValue")&&_d(e,t.type,ei(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Sm(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 _d(e,t,n){(t!=="number"||Wl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ns=Array.isArray;function Co(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=il.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ta(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Is={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},X_=["Webkit","ms","Moz","O"];Object.keys(Is).forEach(function(e){X_.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Is[t]=Is[e]})});function o0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Is.hasOwnProperty(e)&&Is[e]?(""+t).trim():t+"px"}function s0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=o0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Z_=it({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 Sd(e,t){if(t){if(Z_[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(W(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(W(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(W(61))}if(t.style!=null&&typeof t.style!="object")throw Error(W(62))}}function kd(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 Cd=null;function Bf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Td=null,To=null,Oo=null;function Tm(e){if(e=Ca(e)){if(typeof Td!="function")throw Error(W(280));var t=e.stateNode;t&&(t=Cu(t),Td(e.stateNode,e.type,t))}}function a0(e){To?Oo?Oo.push(e):Oo=[e]:To=e}function l0(){if(To){var e=To,t=Oo;if(Oo=To=null,Tm(e),t)for(e=0;e>>=0,e===0?32:31-(uE(e)/cE|0)|0}var ol=64,sl=4194304;function Ls(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 Ql(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=Ls(l):(o&=s,o!==0&&(r=Ls(o)))}else s=n&~i,s!==0?r=Ls(s):o!==0&&(r=Ls(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 Sa(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Vn(t),e[t]=n}function hE(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=Fs),$m=String.fromCharCode(32),Mm=!1;function O0(e,t){switch(e){case"keyup":return UE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function j0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var po=!1;function WE(e,t){switch(e){case"compositionend":return j0(t);case"keypress":return t.which!==32?null:(Mm=!0,$m);case"textInput":return e=t.data,e===$m&&Mm?null:e;default:return null}}function VE(e,t){if(po)return e==="compositionend"||!Yf&&O0(e,t)?(e=C0(),Tl=Gf=Hr=null,po=!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=Bm(n)}}function R0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?R0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function A0(){for(var e=window,t=Wl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Wl(e.document)}return t}function qf(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 eb(e){var t=A0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&R0(n.ownerDocument.documentElement,n)){if(r!==null&&qf(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=Um(n,o);var s=Um(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ho=null,Rd=null,Us=null,Ad=!1;function Hm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ad||ho==null||ho!==Wl(r)||(r=ho,"selectionStart"in r&&qf(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}),Us&&aa(Us,r)||(Us=r,r=Xl(Rd,"onSelect"),0vo||(e.current=Fd[vo],Fd[vo]=null,vo--)}function qe(e,t){vo++,Fd[vo]=e.current,e.current=t}var ti={},Mt=si(ti),Xt=si(!1),Bi=ti;function Ro(e,t){var n=e.type.contextTypes;if(!n)return ti;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 Zt(e){return e=e.childContextTypes,e!=null}function Jl(){Je(Xt),Je(Mt)}function qm(e,t,n){if(Mt.current!==ti)throw Error(W(168));qe(Mt,t),qe(Xt,n)}function H0(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(W(108,Y_(e)||"Unknown",i));return it({},n,r)}function eu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ti,Bi=Mt.current,qe(Mt,e),qe(Xt,Xt.current),!0}function Xm(e,t,n){var r=e.stateNode;if(!r)throw Error(W(169));n?(e=H0(e,t,Bi),r.__reactInternalMemoizedMergedChildContext=e,Je(Xt),Je(Mt),qe(Mt,e)):Je(Xt),qe(Xt,n)}var gr=null,Tu=!1,Gc=!1;function W0(e){gr===null?gr=[e]:gr.push(e)}function fb(e){Tu=!0,W0(e)}function ai(){if(!Gc&&gr!==null){Gc=!0;var e=0,t=He;try{var n=gr;for(He=1;e>=s,i-=s,vr=1<<32-Vn(t)+i|n<A?(F=O,O=null):F=O.sibling;var H=m(v,O,b[A],T);if(H===null){O===null&&(O=F);break}e&&O&&H.alternate===null&&t(v,O),g=o(H,g,A),k===null?N=H:k.sibling=H,k=H,O=F}if(A===b.length)return n(v,O),tt&&bi(v,A),N;if(O===null){for(;AA?(F=O,O=null):F=O.sibling;var z=m(v,O,H.value,T);if(z===null){O===null&&(O=F);break}e&&O&&z.alternate===null&&t(v,O),g=o(z,g,A),k===null?N=z:k.sibling=z,k=z,O=F}if(H.done)return n(v,O),tt&&bi(v,A),N;if(O===null){for(;!H.done;A++,H=b.next())H=h(v,H.value,T),H!==null&&(g=o(H,g,A),k===null?N=H:k.sibling=H,k=H);return tt&&bi(v,A),N}for(O=r(v,O);!H.done;A++,H=b.next())H=y(O,v,A,H.value,T),H!==null&&(e&&H.alternate!==null&&O.delete(H.key===null?A:H.key),g=o(H,g,A),k===null?N=H:k.sibling=H,k=H);return e&&O.forEach(function(I){return t(v,I)}),tt&&bi(v,A),N}function C(v,g,b,T){if(typeof b=="object"&&b!==null&&b.type===fo&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case nl:e:{for(var N=b.key,k=g;k!==null;){if(k.key===N){if(N=b.type,N===fo){if(k.tag===7){n(v,k.sibling),g=i(k,b.props.children),g.return=v,v=g;break e}}else if(k.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===Ir&&ig(N)===k.type){n(v,k.sibling),g=i(k,b.props),g.ref=_s(v,k,b),g.return=v,v=g;break e}n(v,k);break}else t(v,k);k=k.sibling}b.type===fo?(g=Mi(b.props.children,v.mode,T,b.key),g.return=v,v=g):(T=Dl(b.type,b.key,b.props,null,v.mode,T),T.ref=_s(v,g,b),T.return=v,v=T)}return s(v);case co:e:{for(k=b.key;g!==null;){if(g.key===k)if(g.tag===4&&g.stateNode.containerInfo===b.containerInfo&&g.stateNode.implementation===b.implementation){n(v,g.sibling),g=i(g,b.children||[]),g.return=v,v=g;break e}else{n(v,g);break}else t(v,g);g=g.sibling}g=ed(b,v.mode,T),g.return=v,v=g}return s(v);case Ir:return k=b._init,C(v,g,k(b._payload),T)}if(Ns(b))return x(v,g,b,T);if(gs(b))return _(v,g,b,T);pl(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,g!==null&&g.tag===6?(n(v,g.sibling),g=i(g,b),g.return=v,v=g):(n(v,g),g=Jc(b,v.mode,T),g.return=v,v=g),s(v)):n(v,g)}return C}var Do=Z0(!0),J0=Z0(!1),Ta={},or=si(Ta),da=si(Ta),fa=si(Ta);function Pi(e){if(e===Ta)throw Error(W(174));return e}function op(e,t){switch(qe(fa,t),qe(da,e),qe(or,Ta),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:bd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=bd(t,e)}Je(or),qe(or,t)}function $o(){Je(or),Je(da),Je(fa)}function ey(e){Pi(fa.current);var t=Pi(or.current),n=bd(t,e.type);t!==n&&(qe(da,e),qe(or,n))}function sp(e){da.current===e&&(Je(or),Je(da))}var nt=si(0);function su(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 Kc=[];function ap(){for(var e=0;en?n:4,e(!0);var r=Qc.transition;Qc.transition={};try{e(!1),t()}finally{He=n,Qc.transition=r}}function gy(){return Pn().memoizedState}function gb(e,t,n){var r=Zr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vy(e))yy(t,n);else if(n=Q0(e,t,n,r),n!==null){var i=Ut();Gn(n,e,r,i),wy(n,t,r)}}function vb(e,t,n){var r=Zr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vy(e))yy(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,Qn(l,s)){var u=t.interleaved;u===null?(i.next=i,rp(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=Q0(e,t,i,r),n!==null&&(i=Ut(),Gn(n,e,r,i),wy(n,t,r))}}function vy(e){var t=e.alternate;return e===rt||t!==null&&t===rt}function yy(e,t){Hs=au=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hf(e,n)}}var lu={readContext:jn,useCallback:At,useContext:At,useEffect:At,useImperativeHandle:At,useInsertionEffect:At,useLayoutEffect:At,useMemo:At,useReducer:At,useRef:At,useState:At,useDebugValue:At,useDeferredValue:At,useTransition:At,useMutableSource:At,useSyncExternalStore:At,useId:At,unstable_isNewReconciler:!1},yb={readContext:jn,useCallback:function(e,t){return tr().memoizedState=[e,t===void 0?null:t],e},useContext:jn,useEffect:sg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Nl(4194308,4,dy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Nl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Nl(4,2,e,t)},useMemo:function(e,t){var n=tr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=tr();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=gb.bind(null,rt,e),[r.memoizedState,e]},useRef:function(e){var t=tr();return e={current:e},t.memoizedState=e},useState:og,useDebugValue:fp,useDeferredValue:function(e){return tr().memoizedState=e},useTransition:function(){var e=og(!1),t=e[0];return e=mb.bind(null,e[1]),tr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=rt,i=tr();if(tt){if(n===void 0)throw Error(W(407));n=n()}else{if(n=t(),Tt===null)throw Error(W(349));Hi&30||ry(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,sg(oy.bind(null,r,o,e),[e]),r.flags|=2048,ma(9,iy.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=tr(),t=Tt.identifierPrefix;if(tt){var n=yr,r=vr;n=(r&~(1<<32-Vn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=pa++,0")&&(u=u.replace("",e.displayName)),u}while(1<=s&&0<=l);break}}}finally{Nc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?js(e):""}function Q_(e){switch(e.tag){case 5:return js(e.type);case 16:return js("Lazy");case 13:return js("Suspense");case 19:return js("SuspenseList");case 0:case 2:case 15:return e=Lc(e.type,!1),e;case 11:return e=Lc(e.type.render,!1),e;case 1:return e=Lc(e.type,!0),e;default:return""}}function yd(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 fo:return"Fragment";case co:return"Portal";case md:return"Profiler";case If:return"StrictMode";case gd:return"Suspense";case vd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xv:return(e.displayName||"Context")+".Consumer";case qv:return(e._context.displayName||"Context")+".Provider";case zf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ff:return t=e.displayName||null,t!==null?t:yd(e.type)||"Memo";case Ir:t=e._payload,e=e._init;try{return yd(e(t))}catch{}}return null}function Y_(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 yd(t);case 8:return t===If?"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 ei(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function q_(e){var t=Jv(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(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function rl(e){e._valueTracker||(e._valueTracker=q_(e))}function e0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Jv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Wl(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 wd(e,t){var n=t.checked;return it({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function bm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ei(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 t0(e,t){t=t.checked,t!=null&&Mf(e,"checked",t,!1)}function xd(e,t){t0(e,t);var n=ei(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")?_d(e,t.type,n):t.hasOwnProperty("defaultValue")&&_d(e,t.type,ei(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Sm(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 _d(e,t,n){(t!=="number"||Wl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ps=Array.isArray;function Co(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=il.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ea(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ms={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},X_=["Webkit","ms","Moz","O"];Object.keys(Ms).forEach(function(e){X_.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ms[t]=Ms[e]})});function o0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ms.hasOwnProperty(e)&&Ms[e]?(""+t).trim():t+"px"}function s0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=o0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Z_=it({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 Sd(e,t){if(t){if(Z_[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(W(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(W(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(W(61))}if(t.style!=null&&typeof t.style!="object")throw Error(W(62))}}function kd(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 Cd=null;function Bf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Td=null,To=null,Oo=null;function Tm(e){if(e=Ca(e)){if(typeof Td!="function")throw Error(W(280));var t=e.stateNode;t&&(t=Cu(t),Td(e.stateNode,e.type,t))}}function a0(e){To?Oo?Oo.push(e):Oo=[e]:To=e}function l0(){if(To){var e=To,t=Oo;if(Oo=To=null,Tm(e),t)for(e=0;e>>=0,e===0?32:31-(uE(e)/cE|0)|0}var ol=64,sl=4194304;function Ns(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 Ql(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=Ns(l):(o&=s,o!==0&&(r=Ns(o)))}else s=n&~i,s!==0?r=Ns(s):o!==0&&(r=Ns(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 Sa(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Vn(t),e[t]=n}function hE(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=zs),$m=String.fromCharCode(32),Mm=!1;function O0(e,t){switch(e){case"keyup":return UE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function j0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var po=!1;function WE(e,t){switch(e){case"compositionend":return j0(t);case"keypress":return t.which!==32?null:(Mm=!0,$m);case"textInput":return e=t.data,e===$m&&Mm?null:e;default:return null}}function VE(e,t){if(po)return e==="compositionend"||!Yf&&O0(e,t)?(e=C0(),Tl=Gf=Hr=null,po=!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=Bm(n)}}function R0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?R0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function A0(){for(var e=window,t=Wl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Wl(e.document)}return t}function qf(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 eb(e){var t=A0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&R0(n.ownerDocument.documentElement,n)){if(r!==null&&qf(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=Um(n,o);var s=Um(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ho=null,Rd=null,Bs=null,Ad=!1;function Hm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ad||ho==null||ho!==Wl(r)||(r=ho,"selectionStart"in r&&qf(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}),Bs&&sa(Bs,r)||(Bs=r,r=Xl(Rd,"onSelect"),0vo||(e.current=Fd[vo],Fd[vo]=null,vo--)}function qe(e,t){vo++,Fd[vo]=e.current,e.current=t}var ti={},Mt=oi(ti),Xt=oi(!1),Fi=ti;function Ro(e,t){var n=e.type.contextTypes;if(!n)return ti;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 Zt(e){return e=e.childContextTypes,e!=null}function Jl(){Je(Xt),Je(Mt)}function qm(e,t,n){if(Mt.current!==ti)throw Error(W(168));qe(Mt,t),qe(Xt,n)}function H0(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(W(108,Y_(e)||"Unknown",i));return it({},n,r)}function eu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ti,Fi=Mt.current,qe(Mt,e),qe(Xt,Xt.current),!0}function Xm(e,t,n){var r=e.stateNode;if(!r)throw Error(W(169));n?(e=H0(e,t,Fi),r.__reactInternalMemoizedMergedChildContext=e,Je(Xt),Je(Mt),qe(Mt,e)):Je(Xt),qe(Xt,n)}var gr=null,Tu=!1,Gc=!1;function W0(e){gr===null?gr=[e]:gr.push(e)}function fb(e){Tu=!0,W0(e)}function si(){if(!Gc&&gr!==null){Gc=!0;var e=0,t=He;try{var n=gr;for(He=1;e>=s,i-=s,vr=1<<32-Vn(t)+i|n<A?(F=O,O=null):F=O.sibling;var H=m(v,O,b[A],T);if(H===null){O===null&&(O=F);break}e&&O&&H.alternate===null&&t(v,O),g=o(H,g,A),k===null?N=H:k.sibling=H,k=H,O=F}if(A===b.length)return n(v,O),tt&&Ei(v,A),N;if(O===null){for(;AA?(F=O,O=null):F=O.sibling;var z=m(v,O,H.value,T);if(z===null){O===null&&(O=F);break}e&&O&&z.alternate===null&&t(v,O),g=o(z,g,A),k===null?N=z:k.sibling=z,k=z,O=F}if(H.done)return n(v,O),tt&&Ei(v,A),N;if(O===null){for(;!H.done;A++,H=b.next())H=h(v,H.value,T),H!==null&&(g=o(H,g,A),k===null?N=H:k.sibling=H,k=H);return tt&&Ei(v,A),N}for(O=r(v,O);!H.done;A++,H=b.next())H=y(O,v,A,H.value,T),H!==null&&(e&&H.alternate!==null&&O.delete(H.key===null?A:H.key),g=o(H,g,A),k===null?N=H:k.sibling=H,k=H);return e&&O.forEach(function(I){return t(v,I)}),tt&&Ei(v,A),N}function C(v,g,b,T){if(typeof b=="object"&&b!==null&&b.type===fo&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case nl:e:{for(var N=b.key,k=g;k!==null;){if(k.key===N){if(N=b.type,N===fo){if(k.tag===7){n(v,k.sibling),g=i(k,b.props.children),g.return=v,v=g;break e}}else if(k.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===Ir&&ig(N)===k.type){n(v,k.sibling),g=i(k,b.props),g.ref=xs(v,k,b),g.return=v,v=g;break e}n(v,k);break}else t(v,k);k=k.sibling}b.type===fo?(g=$i(b.props.children,v.mode,T,b.key),g.return=v,v=g):(T=Dl(b.type,b.key,b.props,null,v.mode,T),T.ref=xs(v,g,b),T.return=v,v=T)}return s(v);case co:e:{for(k=b.key;g!==null;){if(g.key===k)if(g.tag===4&&g.stateNode.containerInfo===b.containerInfo&&g.stateNode.implementation===b.implementation){n(v,g.sibling),g=i(g,b.children||[]),g.return=v,v=g;break e}else{n(v,g);break}else t(v,g);g=g.sibling}g=ed(b,v.mode,T),g.return=v,v=g}return s(v);case Ir:return k=b._init,C(v,g,k(b._payload),T)}if(Ps(b))return x(v,g,b,T);if(ms(b))return _(v,g,b,T);pl(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,g!==null&&g.tag===6?(n(v,g.sibling),g=i(g,b),g.return=v,v=g):(n(v,g),g=Jc(b,v.mode,T),g.return=v,v=g),s(v)):n(v,g)}return C}var Do=Z0(!0),J0=Z0(!1),Ta={},or=oi(Ta),ca=oi(Ta),da=oi(Ta);function ji(e){if(e===Ta)throw Error(W(174));return e}function op(e,t){switch(qe(da,t),qe(ca,e),qe(or,Ta),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:bd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=bd(t,e)}Je(or),qe(or,t)}function $o(){Je(or),Je(ca),Je(da)}function ey(e){ji(da.current);var t=ji(or.current),n=bd(t,e.type);t!==n&&(qe(ca,e),qe(or,n))}function sp(e){ca.current===e&&(Je(or),Je(ca))}var nt=oi(0);function su(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 Kc=[];function ap(){for(var e=0;en?n:4,e(!0);var r=Qc.transition;Qc.transition={};try{e(!1),t()}finally{He=n,Qc.transition=r}}function gy(){return Pn().memoizedState}function gb(e,t,n){var r=Zr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vy(e))yy(t,n);else if(n=Q0(e,t,n,r),n!==null){var i=Ut();Gn(n,e,r,i),wy(n,t,r)}}function vb(e,t,n){var r=Zr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vy(e))yy(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,Qn(l,s)){var u=t.interleaved;u===null?(i.next=i,rp(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=Q0(e,t,i,r),n!==null&&(i=Ut(),Gn(n,e,r,i),wy(n,t,r))}}function vy(e){var t=e.alternate;return e===rt||t!==null&&t===rt}function yy(e,t){Us=au=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hf(e,n)}}var lu={readContext:jn,useCallback:At,useContext:At,useEffect:At,useImperativeHandle:At,useInsertionEffect:At,useLayoutEffect:At,useMemo:At,useReducer:At,useRef:At,useState:At,useDebugValue:At,useDeferredValue:At,useTransition:At,useMutableSource:At,useSyncExternalStore:At,useId:At,unstable_isNewReconciler:!1},yb={readContext:jn,useCallback:function(e,t){return tr().memoizedState=[e,t===void 0?null:t],e},useContext:jn,useEffect:sg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Nl(4194308,4,dy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Nl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Nl(4,2,e,t)},useMemo:function(e,t){var n=tr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=tr();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=gb.bind(null,rt,e),[r.memoizedState,e]},useRef:function(e){var t=tr();return e={current:e},t.memoizedState=e},useState:og,useDebugValue:fp,useDeferredValue:function(e){return tr().memoizedState=e},useTransition:function(){var e=og(!1),t=e[0];return e=mb.bind(null,e[1]),tr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=rt,i=tr();if(tt){if(n===void 0)throw Error(W(407));n=n()}else{if(n=t(),Tt===null)throw Error(W(349));Ui&30||ry(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,sg(oy.bind(null,r,o,e),[e]),r.flags|=2048,ha(9,iy.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=tr(),t=Tt.identifierPrefix;if(tt){var n=yr,r=vr;n=(r&~(1<<32-Vn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=fa++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[rr]=t,e[ca]=r,Oy(e,t,!1,!1),t.stateNode=e;e:{switch(s=kd(n,r),n){case"dialog":Xe("cancel",e),Xe("close",e),i=r;break;case"iframe":case"object":case"embed":Xe("load",e),i=r;break;case"video":case"audio":for(i=0;iIo&&(t.flags|=128,r=!0,Es(o,!1),t.lanes=4194304)}else{if(!r)if(e=su(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Es(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!tt)return Dt(t),null}else 2*ht()-o.renderingStartTime>Io&&n!==1073741824&&(t.flags|=128,r=!0,Es(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ht(),t.sibling=null,n=nt.current,qe(nt,r?n&1|2:n&1),t):(Dt(t),null);case 22:case 23:return yp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?un&1073741824&&(Dt(t),t.subtreeFlags&6&&(t.flags|=8192)):Dt(t),null;case 24:return null;case 25:return null}throw Error(W(156,t.tag))}function Cb(e,t){switch(Zf(t),t.tag){case 1:return Zt(t.type)&&Jl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $o(),Je(Xt),Je(Mt),ap(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return sp(t),null;case 13:if(Je(nt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));Ao()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Je(nt),null;case 4:return $o(),null;case 10:return np(t.type._context),null;case 22:case 23:return yp(),null;case 24:return null;default:return null}}var ml=!1,$t=!1,Tb=typeof WeakSet=="function"?WeakSet:Set,ee=null;function _o(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ut(e,t,r)}else n.current=null}function Zd(e,t,n){try{n()}catch(r){ut(e,t,r)}}var mg=!1;function Ob(e,t){if(Dd=Yl,e=A0(),qf(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 s=0,l=-1,u=-1,c=0,f=0,h=e,m=null;t:for(;;){for(var y;h!==n||i!==0&&h.nodeType!==3||(l=s+i),h!==o||r!==0&&h.nodeType!==3||(u=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(y=h.firstChild)!==null;)m=h,h=y;for(;;){if(h===e)break t;if(m===n&&++c===i&&(l=s),m===o&&++f===r&&(u=s),(y=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=y}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for($d={focusedElem:e,selectionRange:n},Yl=!1,ee=t;ee!==null;)if(t=ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ee=e;else for(;ee!==null;){t=ee;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var _=x.memoizedProps,C=x.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?_:Bn(t.type,_),C);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(W(163))}}catch(T){ut(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return x=mg,mg=!1,x}function Ws(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&&Zd(t,n,o)}i=i.next}while(i!==r)}}function Pu(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 Jd(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 Ny(e){var t=e.alternate;t!==null&&(e.alternate=null,Ny(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[rr],delete t[ca],delete t[zd],delete t[cb],delete t[db])),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 Ly(e){return e.tag===5||e.tag===3||e.tag===4}function gg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ly(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 ef(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=Zl));else if(r!==4&&(e=e.child,e!==null))for(ef(e,t,n),e=e.sibling;e!==null;)ef(e,t,n),e=e.sibling}function tf(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(tf(e,t,n),e=e.sibling;e!==null;)tf(e,t,n),e=e.sibling}var Nt=null,Un=!1;function Dr(e,t,n){for(n=n.child;n!==null;)Ry(e,t,n),n=n.sibling}function Ry(e,t,n){if(ir&&typeof ir.onCommitFiberUnmount=="function")try{ir.onCommitFiberUnmount(Eu,n)}catch{}switch(n.tag){case 5:$t||_o(n,t);case 6:var r=Nt,i=Un;Nt=null,Dr(e,t,n),Nt=r,Un=i,Nt!==null&&(Un?(e=Nt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Nt.removeChild(n.stateNode));break;case 18:Nt!==null&&(Un?(e=Nt,n=n.stateNode,e.nodeType===8?Vc(e.parentNode,n):e.nodeType===1&&Vc(e,n),oa(e)):Vc(Nt,n.stateNode));break;case 4:r=Nt,i=Un,Nt=n.stateNode.containerInfo,Un=!0,Dr(e,t,n),Nt=r,Un=i;break;case 0:case 11:case 14:case 15:if(!$t&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Zd(n,t,s),i=i.next}while(i!==r)}Dr(e,t,n);break;case 1:if(!$t&&(_o(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ut(n,t,l)}Dr(e,t,n);break;case 21:Dr(e,t,n);break;case 22:n.mode&1?($t=(r=$t)||n.memoizedState!==null,Dr(e,t,n),$t=r):Dr(e,t,n);break;default:Dr(e,t,n)}}function vg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Tb),t.forEach(function(r){var i=Mb.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Fn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=ht()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Pb(r/1960))-r,10e?16:e,Wr===null)var r=!1;else{if(e=Wr,Wr=null,du=0,Me&6)throw Error(W(331));var i=Me;for(Me|=4,ee=e.current;ee!==null;){var o=ee,s=o.child;if(ee.flags&16){var l=o.deletions;if(l!==null){for(var u=0;uht()-gp?$i(e,0):mp|=n),Jt(e,t)}function By(e,t){t===0&&(e.mode&1?(t=sl,sl<<=1,!(sl&130023424)&&(sl=4194304)):t=1);var n=Ut();e=br(e,t),e!==null&&(Sa(e,t,n),Jt(e,n))}function $b(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),By(e,n)}function Mb(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(W(314))}r!==null&&r.delete(t),By(e,n)}var Uy;Uy=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xt.current)Qt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Qt=!1,Sb(e,t,n);Qt=!!(e.flags&131072)}else Qt=!1,tt&&t.flags&1048576&&V0(t,nu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ll(e,t),e=t.pendingProps;var i=Ro(t,Mt.current);Po(t,n),i=up(null,t,r,e,i,n);var o=cp();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,Zt(r)?(o=!0,eu(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ip(t),i.updater=Ou,t.stateNode=i,i._reactInternals=t,Vd(t,r,e,n),t=Qd(null,t,r,!0,o,n)):(t.tag=0,tt&&o&&Xf(t),Bt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ll(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=zb(r),e=Bn(r,e),i){case 0:t=Kd(null,t,r,e,n);break e;case 1:t=fg(null,t,r,e,n);break e;case 11:t=cg(null,t,r,e,n);break e;case 14:t=dg(null,t,r,Bn(r.type,e),n);break e}throw Error(W(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bn(r,i),Kd(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bn(r,i),fg(e,t,r,i,n);case 3:e:{if(ky(t),e===null)throw Error(W(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Y0(e,t),ou(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Mo(Error(W(423)),t),t=pg(e,t,r,n,i);break e}else if(r!==i){i=Mo(Error(W(424)),t),t=pg(e,t,r,n,i);break e}else for(cn=Yr(t.stateNode.containerInfo.firstChild),dn=t,tt=!0,Wn=null,n=J0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ao(),r===i){t=Sr(e,t,n);break e}Bt(e,t,r,n)}t=t.child}return t;case 5:return ey(t),e===null&&Ud(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Md(r,i)?s=null:o!==null&&Md(r,o)&&(t.flags|=32),Sy(e,t),Bt(e,t,s,n),t.child;case 6:return e===null&&Ud(t),null;case 13:return Cy(e,t,n);case 4:return op(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Do(t,null,r,n):Bt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bn(r,i),cg(e,t,r,i,n);case 7:return Bt(e,t,t.pendingProps,n),t.child;case 8:return Bt(e,t,t.pendingProps.children,n),t.child;case 12:return Bt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,qe(ru,r._currentValue),r._currentValue=s,o!==null)if(Qn(o.value,s)){if(o.children===i.children&&!Xt.current){t=Sr(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var u=l.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=wr(-1,n&-n),u.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Hd(o.return,n,t),l.lanes|=n;break}u=u.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(W(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Hd(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Bt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Po(t,n),i=jn(i),r=r(i),t.flags|=1,Bt(e,t,r,n),t.child;case 14:return r=t.type,i=Bn(r,t.pendingProps),i=Bn(r.type,i),dg(e,t,r,i,n);case 15:return Ey(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bn(r,i),Ll(e,t),t.tag=1,Zt(r)?(e=!0,eu(t)):e=!1,Po(t,n),X0(t,r,i),Vd(t,r,i,n),Qd(null,t,r,!0,e,n);case 19:return Ty(e,t,n);case 22:return by(e,t,n)}throw Error(W(156,t.tag))};function Hy(e,t){return m0(e,t)}function Ib(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 Tn(e,t,n,r){return new Ib(e,t,n,r)}function xp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function zb(e){if(typeof e=="function")return xp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===zf)return 11;if(e===Ff)return 14}return 2}function Jr(e,t){var n=e.alternate;return n===null?(n=Tn(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 Dl(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")xp(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case fo:return Mi(n.children,i,o,t);case If:s=8,i|=8;break;case md:return e=Tn(12,n,t,i|2),e.elementType=md,e.lanes=o,e;case gd:return e=Tn(13,n,t,i),e.elementType=gd,e.lanes=o,e;case vd:return e=Tn(19,n,t,i),e.elementType=vd,e.lanes=o,e;case Zv:return Lu(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qv:s=10;break e;case Xv:s=9;break e;case zf:s=11;break e;case Ff:s=14;break e;case Ir:s=16,r=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return t=Tn(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Mi(e,t,n,r){return e=Tn(7,e,r,t),e.lanes=n,e}function Lu(e,t,n,r){return e=Tn(22,e,r,t),e.elementType=Zv,e.lanes=n,e.stateNode={isHidden:!1},e}function Jc(e,t,n){return e=Tn(6,e,null,t),e.lanes=n,e}function ed(e,t,n){return t=Tn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fb(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=Ac(0),this.expirationTimes=Ac(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ac(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function _p(e,t,n,r,i,o,s,l,u){return e=new Fb(e,t,n,l,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Tn(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ip(o),e}function Bb(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ky)}catch(e){console.error(e)}}Ky(),Vv.exports=hn;var kp=Vv.exports;const Ni=qo(kp),Gb=Rv({__proto__:null,default:Ni},[kp]);var kg=kp;pd.createRoot=kg.createRoot,pd.hydrateRoot=kg.hydrateRoot;/** +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Xc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Gd(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var _b=typeof WeakMap=="function"?WeakMap:Map;function xy(e,t,n){n=wr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){cu||(cu=!0,nf=r),Gd(e,t)},n}function _y(e,t,n){n=wr(-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(){Gd(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Gd(e,t),typeof r!="function"&&(Xr===null?Xr=new Set([this]):Xr.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function ag(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new _b;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=Db.bind(null,e,t,n),t.then(e,e))}function lg(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 ug(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=wr(-1,1),t.tag=2,qr(n,t,1))),n.lanes|=1),e)}var Eb=Cr.ReactCurrentOwner,Qt=!1;function Bt(e,t,n,r){t.child=e===null?J0(t,null,n,r):Do(t,e.child,n,r)}function cg(e,t,n,r,i){n=n.render;var o=t.ref;return Po(t,i),r=up(e,t,n,r,o,i),n=cp(),e!==null&&!Qt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Sr(e,t,i)):(tt&&n&&Xf(t),t.flags|=1,Bt(e,t,r,i),t.child)}function dg(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!xp(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Ey(e,t,o,r,i)):(e=Dl(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 s=o.memoizedProps;if(n=n.compare,n=n!==null?n:sa,n(s,r)&&e.ref===t.ref)return Sr(e,t,i)}return t.flags|=1,e=Jr(o,r),e.ref=t.ref,e.return=t,t.child=e}function Ey(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(sa(o,r)&&e.ref===t.ref)if(Qt=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Qt=!0);else return t.lanes=e.lanes,Sr(e,t,i)}return Kd(e,t,n,r,i)}function by(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},qe(Eo,un),un|=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,qe(Eo,un),un|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,qe(Eo,un),un|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,qe(Eo,un),un|=r;return Bt(e,t,i,n),t.child}function Sy(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Kd(e,t,n,r,i){var o=Zt(n)?Fi:Mt.current;return o=Ro(t,o),Po(t,i),n=up(e,t,n,r,o,i),r=cp(),e!==null&&!Qt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Sr(e,t,i)):(tt&&r&&Xf(t),t.flags|=1,Bt(e,t,n,i),t.child)}function fg(e,t,n,r,i){if(Zt(n)){var o=!0;eu(t)}else o=!1;if(Po(t,i),t.stateNode===null)Ll(e,t),X0(t,n,r),Vd(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var u=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=jn(c):(c=Zt(n)?Fi:Mt.current,c=Ro(t,c));var f=n.getDerivedStateFromProps,h=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||u!==c)&&rg(t,s,r,c),zr=!1;var m=t.memoizedState;s.state=m,ou(t,r,s,i),u=t.memoizedState,l!==r||m!==u||Xt.current||zr?(typeof f=="function"&&(Wd(t,n,f,r),u=t.memoizedState),(l=zr||ng(t,n,l,r,m,u,c))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),s.props=r,s.state=u,s.context=c,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Y0(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Bn(t.type,l),s.props=c,h=t.pendingProps,m=s.context,u=n.contextType,typeof u=="object"&&u!==null?u=jn(u):(u=Zt(n)?Fi:Mt.current,u=Ro(t,u));var y=n.getDerivedStateFromProps;(f=typeof y=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==h||m!==u)&&rg(t,s,r,u),zr=!1,m=t.memoizedState,s.state=m,ou(t,r,s,i);var x=t.memoizedState;l!==h||m!==x||Xt.current||zr?(typeof y=="function"&&(Wd(t,n,y,r),x=t.memoizedState),(c=zr||ng(t,n,c,r,m,x,u)||!1)?(f||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,x,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,x,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),s.props=r,s.state=x,s.context=u,r=c):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Qd(e,t,n,r,o,i)}function Qd(e,t,n,r,i,o){Sy(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&Xm(t,n,!1),Sr(e,t,o);r=t.stateNode,Eb.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Do(t,e.child,null,o),t.child=Do(t,null,l,o)):Bt(e,t,l,o),t.memoizedState=r.state,i&&Xm(t,n,!0),t.child}function ky(e){var t=e.stateNode;t.pendingContext?qm(e,t.pendingContext,t.pendingContext!==t.context):t.context&&qm(e,t.context,!1),op(e,t.containerInfo)}function pg(e,t,n,r,i){return Ao(),Jf(i),t.flags|=256,Bt(e,t,n,r),t.child}var Yd={dehydrated:null,treeContext:null,retryLane:0};function qd(e){return{baseLanes:e,cachePool:null,transitions:null}}function Cy(e,t,n){var r=t.pendingProps,i=nt.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),qe(nt,i&1),e===null)return Ud(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):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Lu(s,r,0,null),e=$i(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=qd(n),t.memoizedState=Yd,e):pp(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return bb(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var u={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Jr(i,u),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=Jr(l,o):(o=$i(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?qd(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Yd,r}return o=e.child,e=o.sibling,r=Jr(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 pp(e,t){return t=Lu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function hl(e,t,n,r){return r!==null&&Jf(r),Do(t,e.child,null,n),e=pp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bb(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=Xc(Error(W(422))),hl(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Lu({mode:"visible",children:r.children},i,0,null),o=$i(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Do(t,e.child,null,s),t.child.memoizedState=qd(s),t.memoizedState=Yd,o);if(!(t.mode&1))return hl(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(W(419)),r=Xc(o,r,void 0),hl(e,t,s,r)}if(l=(s&e.childLanes)!==0,Qt||l){if(r=Tt,r!==null){switch(s&-s){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|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,br(e,i),Gn(r,e,i,-1))}return wp(),r=Xc(Error(W(421))),hl(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=$b.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,cn=Yr(i.nextSibling),dn=t,tt=!0,Wn=null,e!==null&&(kn[Cn++]=vr,kn[Cn++]=yr,kn[Cn++]=Bi,vr=e.id,yr=e.overflow,Bi=t),t=pp(t,r.children),t.flags|=4096,t)}function hg(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Hd(e.return,t,n)}function Zc(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 Ty(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Bt(e,t,r.children,n),r=nt.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&&hg(e,n,t);else if(e.tag===19)hg(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(qe(nt,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&&su(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Zc(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&&su(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Zc(t,!0,n,null,o);break;case"together":Zc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ll(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Sr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Hi|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(W(153));if(t.child!==null){for(e=t.child,n=Jr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Jr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Sb(e,t,n){switch(t.tag){case 3:ky(t),Ao();break;case 5:ey(t);break;case 1:Zt(t.type)&&eu(t);break;case 4:op(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;qe(ru,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(qe(nt,nt.current&1),t.flags|=128,null):n&t.child.childLanes?Cy(e,t,n):(qe(nt,nt.current&1),e=Sr(e,t,n),e!==null?e.sibling:null);qe(nt,nt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Ty(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),qe(nt,nt.current),r)break;return null;case 22:case 23:return t.lanes=0,by(e,t,n)}return Sr(e,t,n)}var Oy,Xd,jy,Py;Oy=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}};Xd=function(){};jy=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ji(or.current);var o=null;switch(n){case"input":i=wd(e,i),r=wd(e,r),o=[];break;case"select":i=it({},i,{value:void 0}),r=it({},r,{value:void 0}),o=[];break;case"textarea":i=Ed(e,i),r=Ed(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Zl)}Sd(n,r);var s;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var l=i[c];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Js.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var u=r[c];if(l=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(u!=null||l!=null))if(c==="style")if(l){for(s in l)!l.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in u)u.hasOwnProperty(s)&&l[s]!==u[s]&&(n||(n={}),n[s]=u[s])}else n||(o||(o=[]),o.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,l=l?l.__html:void 0,u!=null&&l!==u&&(o=o||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Js.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&Xe("scroll",e),o||l===u||(o=[])):(o=o||[]).push(c,u))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};Py=function(e,t,n,r){n!==r&&(t.flags|=4)};function _s(e,t){if(!tt)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 Dt(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 kb(e,t,n){var r=t.pendingProps;switch(Zf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dt(t),null;case 1:return Zt(t.type)&&Jl(),Dt(t),null;case 3:return r=t.stateNode,$o(),Je(Xt),Je(Mt),ap(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(fl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Wn!==null&&(sf(Wn),Wn=null))),Xd(e,t),Dt(t),null;case 5:sp(t);var i=ji(da.current);if(n=t.type,e!==null&&t.stateNode!=null)jy(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(W(166));return Dt(t),null}if(e=ji(or.current),fl(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[rr]=t,r[ua]=o,e=(t.mode&1)!==0,n){case"dialog":Xe("cancel",r),Xe("close",r);break;case"iframe":case"object":case"embed":Xe("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[rr]=t,e[ua]=r,Oy(e,t,!1,!1),t.stateNode=e;e:{switch(s=kd(n,r),n){case"dialog":Xe("cancel",e),Xe("close",e),i=r;break;case"iframe":case"object":case"embed":Xe("load",e),i=r;break;case"video":case"audio":for(i=0;iIo&&(t.flags|=128,r=!0,_s(o,!1),t.lanes=4194304)}else{if(!r)if(e=su(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),_s(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!tt)return Dt(t),null}else 2*ht()-o.renderingStartTime>Io&&n!==1073741824&&(t.flags|=128,r=!0,_s(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ht(),t.sibling=null,n=nt.current,qe(nt,r?n&1|2:n&1),t):(Dt(t),null);case 22:case 23:return yp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?un&1073741824&&(Dt(t),t.subtreeFlags&6&&(t.flags|=8192)):Dt(t),null;case 24:return null;case 25:return null}throw Error(W(156,t.tag))}function Cb(e,t){switch(Zf(t),t.tag){case 1:return Zt(t.type)&&Jl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $o(),Je(Xt),Je(Mt),ap(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return sp(t),null;case 13:if(Je(nt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));Ao()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Je(nt),null;case 4:return $o(),null;case 10:return np(t.type._context),null;case 22:case 23:return yp(),null;case 24:return null;default:return null}}var ml=!1,$t=!1,Tb=typeof WeakSet=="function"?WeakSet:Set,ee=null;function _o(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ut(e,t,r)}else n.current=null}function Zd(e,t,n){try{n()}catch(r){ut(e,t,r)}}var mg=!1;function Ob(e,t){if(Dd=Yl,e=A0(),qf(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 s=0,l=-1,u=-1,c=0,f=0,h=e,m=null;t:for(;;){for(var y;h!==n||i!==0&&h.nodeType!==3||(l=s+i),h!==o||r!==0&&h.nodeType!==3||(u=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(y=h.firstChild)!==null;)m=h,h=y;for(;;){if(h===e)break t;if(m===n&&++c===i&&(l=s),m===o&&++f===r&&(u=s),(y=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=y}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for($d={focusedElem:e,selectionRange:n},Yl=!1,ee=t;ee!==null;)if(t=ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ee=e;else for(;ee!==null;){t=ee;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var _=x.memoizedProps,C=x.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?_:Bn(t.type,_),C);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(W(163))}}catch(T){ut(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return x=mg,mg=!1,x}function Hs(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&&Zd(t,n,o)}i=i.next}while(i!==r)}}function Pu(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 Jd(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 Ny(e){var t=e.alternate;t!==null&&(e.alternate=null,Ny(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[rr],delete t[ua],delete t[zd],delete t[cb],delete t[db])),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 Ly(e){return e.tag===5||e.tag===3||e.tag===4}function gg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ly(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 ef(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=Zl));else if(r!==4&&(e=e.child,e!==null))for(ef(e,t,n),e=e.sibling;e!==null;)ef(e,t,n),e=e.sibling}function tf(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(tf(e,t,n),e=e.sibling;e!==null;)tf(e,t,n),e=e.sibling}var Nt=null,Un=!1;function Dr(e,t,n){for(n=n.child;n!==null;)Ry(e,t,n),n=n.sibling}function Ry(e,t,n){if(ir&&typeof ir.onCommitFiberUnmount=="function")try{ir.onCommitFiberUnmount(Eu,n)}catch{}switch(n.tag){case 5:$t||_o(n,t);case 6:var r=Nt,i=Un;Nt=null,Dr(e,t,n),Nt=r,Un=i,Nt!==null&&(Un?(e=Nt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Nt.removeChild(n.stateNode));break;case 18:Nt!==null&&(Un?(e=Nt,n=n.stateNode,e.nodeType===8?Vc(e.parentNode,n):e.nodeType===1&&Vc(e,n),ia(e)):Vc(Nt,n.stateNode));break;case 4:r=Nt,i=Un,Nt=n.stateNode.containerInfo,Un=!0,Dr(e,t,n),Nt=r,Un=i;break;case 0:case 11:case 14:case 15:if(!$t&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Zd(n,t,s),i=i.next}while(i!==r)}Dr(e,t,n);break;case 1:if(!$t&&(_o(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ut(n,t,l)}Dr(e,t,n);break;case 21:Dr(e,t,n);break;case 22:n.mode&1?($t=(r=$t)||n.memoizedState!==null,Dr(e,t,n),$t=r):Dr(e,t,n);break;default:Dr(e,t,n)}}function vg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Tb),t.forEach(function(r){var i=Mb.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Fn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=ht()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Pb(r/1960))-r,10e?16:e,Wr===null)var r=!1;else{if(e=Wr,Wr=null,du=0,Me&6)throw Error(W(331));var i=Me;for(Me|=4,ee=e.current;ee!==null;){var o=ee,s=o.child;if(ee.flags&16){var l=o.deletions;if(l!==null){for(var u=0;uht()-gp?Di(e,0):mp|=n),Jt(e,t)}function By(e,t){t===0&&(e.mode&1?(t=sl,sl<<=1,!(sl&130023424)&&(sl=4194304)):t=1);var n=Ut();e=br(e,t),e!==null&&(Sa(e,t,n),Jt(e,n))}function $b(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),By(e,n)}function Mb(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(W(314))}r!==null&&r.delete(t),By(e,n)}var Uy;Uy=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xt.current)Qt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Qt=!1,Sb(e,t,n);Qt=!!(e.flags&131072)}else Qt=!1,tt&&t.flags&1048576&&V0(t,nu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ll(e,t),e=t.pendingProps;var i=Ro(t,Mt.current);Po(t,n),i=up(null,t,r,e,i,n);var o=cp();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,Zt(r)?(o=!0,eu(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ip(t),i.updater=Ou,t.stateNode=i,i._reactInternals=t,Vd(t,r,e,n),t=Qd(null,t,r,!0,o,n)):(t.tag=0,tt&&o&&Xf(t),Bt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ll(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=zb(r),e=Bn(r,e),i){case 0:t=Kd(null,t,r,e,n);break e;case 1:t=fg(null,t,r,e,n);break e;case 11:t=cg(null,t,r,e,n);break e;case 14:t=dg(null,t,r,Bn(r.type,e),n);break e}throw Error(W(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bn(r,i),Kd(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bn(r,i),fg(e,t,r,i,n);case 3:e:{if(ky(t),e===null)throw Error(W(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Y0(e,t),ou(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Mo(Error(W(423)),t),t=pg(e,t,r,n,i);break e}else if(r!==i){i=Mo(Error(W(424)),t),t=pg(e,t,r,n,i);break e}else for(cn=Yr(t.stateNode.containerInfo.firstChild),dn=t,tt=!0,Wn=null,n=J0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ao(),r===i){t=Sr(e,t,n);break e}Bt(e,t,r,n)}t=t.child}return t;case 5:return ey(t),e===null&&Ud(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Md(r,i)?s=null:o!==null&&Md(r,o)&&(t.flags|=32),Sy(e,t),Bt(e,t,s,n),t.child;case 6:return e===null&&Ud(t),null;case 13:return Cy(e,t,n);case 4:return op(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Do(t,null,r,n):Bt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bn(r,i),cg(e,t,r,i,n);case 7:return Bt(e,t,t.pendingProps,n),t.child;case 8:return Bt(e,t,t.pendingProps.children,n),t.child;case 12:return Bt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,qe(ru,r._currentValue),r._currentValue=s,o!==null)if(Qn(o.value,s)){if(o.children===i.children&&!Xt.current){t=Sr(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var u=l.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=wr(-1,n&-n),u.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Hd(o.return,n,t),l.lanes|=n;break}u=u.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(W(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Hd(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Bt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Po(t,n),i=jn(i),r=r(i),t.flags|=1,Bt(e,t,r,n),t.child;case 14:return r=t.type,i=Bn(r,t.pendingProps),i=Bn(r.type,i),dg(e,t,r,i,n);case 15:return Ey(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bn(r,i),Ll(e,t),t.tag=1,Zt(r)?(e=!0,eu(t)):e=!1,Po(t,n),X0(t,r,i),Vd(t,r,i,n),Qd(null,t,r,!0,e,n);case 19:return Ty(e,t,n);case 22:return by(e,t,n)}throw Error(W(156,t.tag))};function Hy(e,t){return m0(e,t)}function Ib(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 Tn(e,t,n,r){return new Ib(e,t,n,r)}function xp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function zb(e){if(typeof e=="function")return xp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===zf)return 11;if(e===Ff)return 14}return 2}function Jr(e,t){var n=e.alternate;return n===null?(n=Tn(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 Dl(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")xp(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case fo:return $i(n.children,i,o,t);case If:s=8,i|=8;break;case md:return e=Tn(12,n,t,i|2),e.elementType=md,e.lanes=o,e;case gd:return e=Tn(13,n,t,i),e.elementType=gd,e.lanes=o,e;case vd:return e=Tn(19,n,t,i),e.elementType=vd,e.lanes=o,e;case Zv:return Lu(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qv:s=10;break e;case Xv:s=9;break e;case zf:s=11;break e;case Ff:s=14;break e;case Ir:s=16,r=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return t=Tn(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function $i(e,t,n,r){return e=Tn(7,e,r,t),e.lanes=n,e}function Lu(e,t,n,r){return e=Tn(22,e,r,t),e.elementType=Zv,e.lanes=n,e.stateNode={isHidden:!1},e}function Jc(e,t,n){return e=Tn(6,e,null,t),e.lanes=n,e}function ed(e,t,n){return t=Tn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fb(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=Ac(0),this.expirationTimes=Ac(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ac(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function _p(e,t,n,r,i,o,s,l,u){return e=new Fb(e,t,n,l,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Tn(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ip(o),e}function Bb(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ky)}catch(e){console.error(e)}}Ky(),Vv.exports=hn;var kp=Vv.exports;const Pi=Yo(kp),Gb=Rv({__proto__:null,default:Pi},[kp]);var kg=kp;pd.createRoot=kg.createRoot,pd.hydrateRoot=kg.hydrateRoot;/** * @remix-run/router v1.14.1 * * Copyright (c) Remix Software Inc. @@ -46,8 +46,8 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ct(){return ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function ni(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Yb(){return Math.random().toString(36).substr(2,8)}function Tg(e,t){return{usr:e.state,key:e.key,idx:t}}function zo(e,t,n,r){return n===void 0&&(n=null),ct({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ur(t):t,{state:n,key:t&&t.key||r||Yb()})}function ri(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 ur(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 Qy(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,l=pt.Pop,u=null,c=f();c==null&&(c=0,s.replaceState(ct({},s.state,{idx:c}),""));function f(){return(s.state||{idx:null}).idx}function h(){l=pt.Pop;let C=f(),v=C==null?null:C-c;c=C,u&&u({action:l,location:_.location,delta:v})}function m(C,v){l=pt.Push;let g=zo(_.location,C,v);n&&n(g,C),c=f()+1;let b=Tg(g,c),T=_.createHref(g);try{s.pushState(b,"",T)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;i.location.assign(T)}o&&u&&u({action:l,location:_.location,delta:1})}function y(C,v){l=pt.Replace;let g=zo(_.location,C,v);n&&n(g,C),c=f();let b=Tg(g,c),T=_.createHref(g);s.replaceState(b,"",T),o&&u&&u({action:l,location:_.location,delta:0})}function x(C){let v=i.location.origin!=="null"?i.location.origin:i.location.href,g=typeof C=="string"?C:ri(C);return Se(v,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,v)}let _={get action(){return l},get location(){return e(i,s)},listen(C){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(Cg,h),u=C,()=>{i.removeEventListener(Cg,h),u=null}},createHref(C){return t(i,C)},createURL:x,encodeLocation(C){let v=x(C);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:m,replace:y,go(C){return s.go(C)}};return _}var lt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(lt||(lt={}));const qb=new Set(["lazy","caseSensitive","path","id","index","children"]);function Xb(e){return e.index===!0}function af(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let s=[...n,o],l=typeof i.id=="string"?i.id:s.join("-");if(Se(i.index!==!0||!i.children,"Cannot specify children on an index route"),Se(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),Xb(i)){let u=ct({},i,t(i),{id:l});return r[l]=u,u}else{let u=ct({},i,t(i),{id:l,children:void 0});return r[l]=u,i.children&&(u.children=af(i.children,t,s,r)),u}})}function bo(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ur(t):t,i=es(r.pathname||"/",n);if(i==null)return null;let o=Yy(e);Jb(o);let s=null;for(let l=0;s==null&&l{let u={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};u.relativePath.startsWith("/")&&(Se(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 c=xr([r,u.relativePath]),f=n.concat(u);o.children&&o.children.length>0&&(Se(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Yy(o.children,t,f,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:sS(c,o.index),routesMeta:f})};return e.forEach((o,s)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,s);else for(let u of qy(o.path))i(o,s,u)}),t}function qy(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 s=qy(r.join("/")),l=[];return l.push(...s.map(u=>u===""?o:[o,u].join("/"))),i&&l.push(...s),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function Jb(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:aS(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const eS=/^:\w+$/,tS=3,nS=2,rS=1,iS=10,oS=-2,Og=e=>e==="*";function sS(e,t){let n=e.split("/"),r=n.length;return n.some(Og)&&(r+=oS),t&&(r+=nS),n.filter(i=>!Og(i)).reduce((i,o)=>i+(eS.test(o)?tS:o===""?rS:iS),r)}function aS(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 lS(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let s=0;s{let{paramName:m,isOptional:y}=f;if(m==="*"){let _=l[h]||"";s=o.slice(0,o.length-_.length).replace(/(.)\/+$/,"$1")}const x=l[h];return y&&!x?c[m]=void 0:c[m]=fS(x||"",m),c},{}),pathname:o,pathnameBase:s,pattern:e}}function cS(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ni(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,(s,l,u)=>(r.push({paramName:l,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 dS(e){try{return decodeURI(e)}catch(t){return ni(!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 fS(e,t){try{return decodeURIComponent(e)}catch(n){return ni(!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 es(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 pS(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ur(e):e;return{pathname:n?n.startsWith("/")?n:hS(n,t):t,search:gS(r),hash:vS(i)}}function hS(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 td(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 Xy(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Cp(e,t){let n=Xy(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Tp(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=ur(e):(i=ct({},e),Se(!i.pathname||!i.pathname.includes("?"),td("?","pathname","search",i)),Se(!i.pathname||!i.pathname.includes("#"),td("#","pathname","hash",i)),Se(!i.search||!i.search.includes("#"),td("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,l;if(s==null)l=n;else{let h=t.length-1;if(!r&&s.startsWith("..")){let m=s.split("/");for(;m[0]==="..";)m.shift(),h-=1;i.pathname=m.join("/")}l=h>=0?t[h]:"/"}let u=pS(i,l),c=s&&s!=="/"&&s.endsWith("/"),f=(o||s===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||f)&&(u.pathname+="/"),u}const xr=e=>e.join("/").replace(/\/\/+/g,"/"),mS=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),gS=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,vS=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Op{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Zy(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Jy=["post","put","patch","delete"],yS=new Set(Jy),wS=["get",...Jy],xS=new Set(wS),_S=new Set([301,302,303,307,308]),ES=new Set([307,308]),nd={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},bS={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ss={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},e1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,SS=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),t1="remix-router-transitions";function kS(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Se(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let L=e.detectErrorBoundary;i=D=>({hasErrorBoundary:L(D)})}else i=SS;let o={},s=af(e.routes,i,void 0,o),l,u=e.basename||"/",c=ct({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),f=null,h=new Set,m=null,y=null,x=null,_=e.hydrationData!=null,C=bo(s,e.history.location,u),v=null;if(C==null){let L=bn(404,{pathname:e.history.location.pathname}),{matches:D,route:M}=$g(s);C=D,v={[M.id]:L}}let g,b=C.some(L=>L.route.lazy),T=C.some(L=>L.route.loader);if(b)g=!1;else if(!T)g=!0;else if(c.v7_partialHydration){let L=e.hydrationData?e.hydrationData.loaderData:null,D=e.hydrationData?e.hydrationData.errors:null;g=C.every(M=>M.route.loader&&M.route.loader.hydrate!==!0&&(L&&L[M.route.id]!==void 0||D&&D[M.route.id]!==void 0))}else g=e.hydrationData!=null;let N,k={historyAction:e.history.action,location:e.history.location,matches:C,initialized:g,navigation:nd,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},O=pt.Pop,A=!1,F,H=!1,z=new Map,I=null,K=!1,V=!1,re=[],oe=[],ne=new Map,U=0,q=-1,R=new Map,se=new Set,ve=new Map,Re=new Map,ae=new Set,ye=new Map,ue=new Map,xe=!1;function G(){if(f=e.history.listen(L=>{let{action:D,location:M,delta:Y}=L;if(xe){xe=!1;return}ni(ue.size===0||Y!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Z=Ma({currentLocation:k.location,nextLocation:M,historyAction:D});if(Z&&Y!=null){xe=!0,e.history.go(Y*-1),Zi(Z,{state:"blocked",location:M,proceed(){Zi(Z,{state:"proceeding",proceed:void 0,reset:void 0,location:M}),e.history.go(Y)},reset(){let pe=new Map(k.blockers);pe.set(Z,Ss),Te({blockers:pe})}});return}return ze(D,M)}),n){$S(t,z);let L=()=>MS(t,z);t.addEventListener("pagehide",L),I=()=>t.removeEventListener("pagehide",L)}return k.initialized||ze(pt.Pop,k.location,{initialHydration:!0}),N}function We(){f&&f(),I&&I(),h.clear(),F&&F.abort(),k.fetchers.forEach((L,D)=>rn(D)),k.blockers.forEach((L,D)=>$a(D))}function mt(L){return h.add(L),()=>h.delete(L)}function Te(L,D){D===void 0&&(D={}),k=ct({},k,L);let M=[],Y=[];c.v7_fetcherPersist&&k.fetchers.forEach((Z,pe)=>{Z.state==="idle"&&(ae.has(pe)?Y.push(pe):M.push(pe))}),[...h].forEach(Z=>Z(k,{deletedFetchers:Y,unstable_viewTransitionOpts:D.viewTransitionOpts,unstable_flushSync:D.flushSync===!0})),c.v7_fetcherPersist&&(M.forEach(Z=>k.fetchers.delete(Z)),Y.forEach(Z=>rn(Z)))}function xt(L,D,M){var Y,Z;let{flushSync:pe}=M===void 0?{}:M,de=k.actionData!=null&&k.navigation.formMethod!=null&&Hn(k.navigation.formMethod)&&k.navigation.state==="loading"&&((Y=L.state)==null?void 0:Y._isRedirect)!==!0,le;D.actionData?Object.keys(D.actionData).length>0?le=D.actionData:le=null:de?le=k.actionData:le=null;let ie=D.loaderData?Dg(k.loaderData,D.loaderData,D.matches||[],D.errors):k.loaderData,Oe=k.blockers;Oe.size>0&&(Oe=new Map(Oe),Oe.forEach((De,ot)=>Oe.set(ot,Ss)));let vt=A===!0||k.navigation.formMethod!=null&&Hn(k.navigation.formMethod)&&((Z=L.state)==null?void 0:Z._isRedirect)!==!0;l&&(s=l,l=void 0),K||O===pt.Pop||(O===pt.Push?e.history.push(L,L.state):O===pt.Replace&&e.history.replace(L,L.state));let he;if(O===pt.Pop){let De=z.get(k.location.pathname);De&&De.has(L.pathname)?he={currentLocation:k.location,nextLocation:L}:z.has(L.pathname)&&(he={currentLocation:L,nextLocation:k.location})}else if(H){let De=z.get(k.location.pathname);De?De.add(L.pathname):(De=new Set([L.pathname]),z.set(k.location.pathname,De)),he={currentLocation:k.location,nextLocation:L}}Te(ct({},D,{actionData:le,loaderData:ie,historyAction:O,location:L,initialized:!0,navigation:nd,revalidation:"idle",restoreScrollPosition:ls(L,D.matches||k.matches),preventScrollReset:vt,blockers:Oe}),{viewTransitionOpts:he,flushSync:pe===!0}),O=pt.Pop,A=!1,H=!1,K=!1,V=!1,re=[],oe=[]}async function Pe(L,D){if(typeof L=="number"){e.history.go(L);return}let M=lf(k.location,k.matches,u,c.v7_prependBasename,L,c.v7_relativeSplatPath,D==null?void 0:D.fromRouteId,D==null?void 0:D.relative),{path:Y,submission:Z,error:pe}=jg(c.v7_normalizeFormMethod,!1,M,D),de=k.location,le=zo(k.location,Y,D&&D.state);le=ct({},le,e.history.encodeLocation(le));let ie=D&&D.replace!=null?D.replace:void 0,Oe=pt.Push;ie===!0?Oe=pt.Replace:ie===!1||Z!=null&&Hn(Z.formMethod)&&Z.formAction===k.location.pathname+k.location.search&&(Oe=pt.Replace);let vt=D&&"preventScrollReset"in D?D.preventScrollReset===!0:void 0,he=(D&&D.unstable_flushSync)===!0,De=Ma({currentLocation:de,nextLocation:le,historyAction:Oe});if(De){Zi(De,{state:"blocked",location:le,proceed(){Zi(De,{state:"proceeding",proceed:void 0,reset:void 0,location:le}),Pe(L,D)},reset(){let ot=new Map(k.blockers);ot.set(De,Ss),Te({blockers:ot})}});return}return await ze(Oe,le,{submission:Z,pendingError:pe,preventScrollReset:vt,replace:D&&D.replace,enableViewTransition:D&&D.unstable_viewTransition,flushSync:he})}function Ne(){if(Or(),Te({revalidation:"loading"}),k.navigation.state!=="submitting"){if(k.navigation.state==="idle"){ze(k.historyAction,k.location,{startUninterruptedRevalidation:!0});return}ze(O||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation})}}async function ze(L,D,M){F&&F.abort(),F=null,O=L,K=(M&&M.startUninterruptedRevalidation)===!0,Ji(k.location,k.matches),A=(M&&M.preventScrollReset)===!0,H=(M&&M.enableViewTransition)===!0;let Y=l||s,Z=M&&M.overrideNavigation,pe=bo(Y,D,u),de=(M&&M.flushSync)===!0;if(!pe){let ot=bn(404,{pathname:D.pathname}),{matches:Vt,route:st}=$g(Y);ss(),xt(D,{matches:Vt,loaderData:{},errors:{[st.id]:ot}},{flushSync:de});return}if(k.initialized&&!V&&PS(k.location,D)&&!(M&&M.submission&&Hn(M.submission.formMethod))){xt(D,{matches:pe},{flushSync:de});return}F=new AbortController;let le=Cs(e.history,D,F.signal,M&&M.submission),ie,Oe;if(M&&M.pendingError)Oe={[Ks(pe).route.id]:M.pendingError};else if(M&&M.submission&&Hn(M.submission.formMethod)){let ot=await gt(le,D,M.submission,pe,{replace:M.replace,flushSync:de});if(ot.shortCircuited)return;ie=ot.pendingActionData,Oe=ot.pendingActionError,Z=rd(D,M.submission),de=!1,le=new Request(le.url,{signal:le.signal})}let{shortCircuited:vt,loaderData:he,errors:De}=await cr(le,D,pe,Z,M&&M.submission,M&&M.fetcherSubmission,M&&M.replace,M&&M.initialHydration===!0,de,ie,Oe);vt||(F=null,xt(D,ct({matches:pe},ie?{actionData:ie}:{},{loaderData:he,errors:De})))}async function gt(L,D,M,Y,Z){Z===void 0&&(Z={}),Or();let pe=AS(D,M);Te({navigation:pe},{flushSync:Z.flushSync===!0});let de,le=cf(Y,D);if(!le.route.action&&!le.route.lazy)de={type:lt.error,error:bn(405,{method:L.method,pathname:D.pathname,routeId:le.route.id})};else if(de=await ks("action",L,le,Y,o,i,u,c.v7_relativeSplatPath),L.signal.aborted)return{shortCircuited:!0};if(Ri(de)){let ie;return Z&&Z.replace!=null?ie=Z.replace:ie=de.location===k.location.pathname+k.location.search,await gn(k,de,{submission:M,replace:ie}),{shortCircuited:!0}}if(So(de)){let ie=Ks(Y,le.route.id);return(Z&&Z.replace)!==!0&&(O=pt.Push),{pendingActionData:{},pendingActionError:{[ie.route.id]:de.error}}}if(Li(de))throw bn(400,{type:"defer-action"});return{pendingActionData:{[le.route.id]:de.data}}}async function cr(L,D,M,Y,Z,pe,de,le,ie,Oe,vt){let he=Y||rd(D,Z),De=Z||pe||zg(he),ot=l||s,[Vt,st]=Pg(e.history,k,M,De,D,c.v7_partialHydration&&le===!0,V,re,oe,ae,ve,se,ot,u,Oe,vt);if(ss(Ae=>!(M&&M.some(Ke=>Ke.route.id===Ae))||Vt&&Vt.some(Ke=>Ke.route.id===Ae)),q=++U,Vt.length===0&&st.length===0){let Ae=Da();return xt(D,ct({matches:M,loaderData:{},errors:vt||null},Oe?{actionData:Oe}:{},Ae?{fetchers:new Map(k.fetchers)}:{}),{flushSync:ie}),{shortCircuited:!0}}if(!K&&(!c.v7_partialHydration||!le)){st.forEach(Ke=>{let Gt=k.fetchers.get(Ke.key),Mn=Ts(void 0,Gt?Gt.data:void 0);k.fetchers.set(Ke.key,Mn)});let Ae=Oe||k.actionData;Te(ct({navigation:he},Ae?Object.keys(Ae).length===0?{actionData:null}:{actionData:Ae}:{},st.length>0?{fetchers:new Map(k.fetchers)}:{}),{flushSync:ie})}st.forEach(Ae=>{ne.has(Ae.key)&&It(Ae.key),Ae.controller&&ne.set(Ae.key,Ae.controller)});let Pr=()=>st.forEach(Ae=>It(Ae.key));F&&F.signal.addEventListener("abort",Pr);let{results:us,loaderResults:on,fetcherResults:et}=await di(k.matches,M,Vt,st,L);if(L.signal.aborted)return{shortCircuited:!0};F&&F.signal.removeEventListener("abort",Pr),st.forEach(Ae=>ne.delete(Ae.key));let dt=Mg(us);if(dt){if(dt.idx>=Vt.length){let Ae=st[dt.idx-Vt.length].key;se.add(Ae)}return await gn(k,dt.result,{replace:de}),{shortCircuited:!0}}let{loaderData:Pt,errors:_t}=Ag(k,M,Vt,on,vt,st,et,ye);ye.forEach((Ae,Ke)=>{Ae.subscribe(Gt=>{(Gt||Ae.done)&&ye.delete(Ke)})});let Nr=Da(),sn=Xi(q),vn=Nr||sn||st.length>0;return ct({loaderData:Pt,errors:_t},vn?{fetchers:new Map(k.fetchers)}:{})}function is(L,D,M,Y){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");ne.has(L)&&It(L);let Z=(Y&&Y.unstable_flushSync)===!0,pe=l||s,de=lf(k.location,k.matches,u,c.v7_prependBasename,M,c.v7_relativeSplatPath,D,Y==null?void 0:Y.relative),le=bo(pe,de,u);if(!le){jt(L,D,bn(404,{pathname:de}),{flushSync:Z});return}let{path:ie,submission:Oe,error:vt}=jg(c.v7_normalizeFormMethod,!0,de,Y);if(vt){jt(L,D,vt,{flushSync:Z});return}let he=cf(le,ie);if(A=(Y&&Y.preventScrollReset)===!0,Oe&&Hn(Oe.formMethod)){os(L,D,ie,he,le,Z,Oe);return}ve.set(L,{routeId:D,path:ie}),Dn(L,D,ie,he,le,Z,Oe)}async function os(L,D,M,Y,Z,pe,de){if(Or(),ve.delete(L),!Y.route.action&&!Y.route.lazy){let Ke=bn(405,{method:de.formMethod,pathname:M,routeId:D});jt(L,D,Ke,{flushSync:pe});return}let le=k.fetchers.get(L);Ot(L,DS(de,le),{flushSync:pe});let ie=new AbortController,Oe=Cs(e.history,M,ie.signal,de);ne.set(L,ie);let vt=U,he=await ks("action",Oe,Y,Z,o,i,u,c.v7_relativeSplatPath);if(Oe.signal.aborted){ne.get(L)===ie&&ne.delete(L);return}if(c.v7_fetcherPersist&&ae.has(L)){if(Ri(he)||So(he)){Ot(L,$r(void 0));return}}else{if(Ri(he))if(ne.delete(L),q>vt){Ot(L,$r(void 0));return}else return se.add(L),Ot(L,Ts(de)),gn(k,he,{fetcherSubmission:de});if(So(he)){jt(L,D,he.error);return}}if(Li(he))throw bn(400,{type:"defer-action"});let De=k.navigation.location||k.location,ot=Cs(e.history,De,ie.signal),Vt=l||s,st=k.navigation.state!=="idle"?bo(Vt,k.navigation.location,u):k.matches;Se(st,"Didn't find any matches after fetcher action");let Pr=++U;R.set(L,Pr);let us=Ts(de,he.data);k.fetchers.set(L,us);let[on,et]=Pg(e.history,k,st,de,De,!1,V,re,oe,ae,ve,se,Vt,u,{[Y.route.id]:he.data},void 0);et.filter(Ke=>Ke.key!==L).forEach(Ke=>{let Gt=Ke.key,Mn=k.fetchers.get(Gt),za=Ts(void 0,Mn?Mn.data:void 0);k.fetchers.set(Gt,za),ne.has(Gt)&&It(Gt),Ke.controller&&ne.set(Gt,Ke.controller)}),Te({fetchers:new Map(k.fetchers)});let dt=()=>et.forEach(Ke=>It(Ke.key));ie.signal.addEventListener("abort",dt);let{results:Pt,loaderResults:_t,fetcherResults:Nr}=await di(k.matches,st,on,et,ot);if(ie.signal.aborted)return;ie.signal.removeEventListener("abort",dt),R.delete(L),ne.delete(L),et.forEach(Ke=>ne.delete(Ke.key));let sn=Mg(Pt);if(sn){if(sn.idx>=on.length){let Ke=et[sn.idx-on.length].key;se.add(Ke)}return gn(k,sn.result)}let{loaderData:vn,errors:Ae}=Ag(k,k.matches,on,_t,void 0,et,Nr,ye);if(k.fetchers.has(L)){let Ke=$r(he.data);k.fetchers.set(L,Ke)}Xi(Pr),k.navigation.state==="loading"&&Pr>q?(Se(O,"Expected pending action"),F&&F.abort(),xt(k.navigation.location,{matches:st,loaderData:vn,errors:Ae,fetchers:new Map(k.fetchers)})):(Te({errors:Ae,loaderData:Dg(k.loaderData,vn,st,Ae),fetchers:new Map(k.fetchers)}),V=!1)}async function Dn(L,D,M,Y,Z,pe,de){let le=k.fetchers.get(L);Ot(L,Ts(de,le?le.data:void 0),{flushSync:pe});let ie=new AbortController,Oe=Cs(e.history,M,ie.signal);ne.set(L,ie);let vt=U,he=await ks("loader",Oe,Y,Z,o,i,u,c.v7_relativeSplatPath);if(Li(he)&&(he=await i1(he,Oe.signal,!0)||he),ne.get(L)===ie&&ne.delete(L),!Oe.signal.aborted){if(ae.has(L)){Ot(L,$r(void 0));return}if(Ri(he))if(q>vt){Ot(L,$r(void 0));return}else{se.add(L),await gn(k,he);return}if(So(he)){jt(L,D,he.error);return}Se(!Li(he),"Unhandled fetcher deferred data"),Ot(L,$r(he.data))}}async function gn(L,D,M){let{submission:Y,fetcherSubmission:Z,replace:pe}=M===void 0?{}:M;D.revalidate&&(V=!0);let de=zo(L.location,D.location,{_isRedirect:!0});if(Se(de,"Expected a location on the redirect navigation"),n){let De=!1;if(D.reloadDocument)De=!0;else if(e1.test(D.location)){const ot=e.history.createURL(D.location);De=ot.origin!==t.location.origin||es(ot.pathname,u)==null}if(De){pe?t.location.replace(D.location):t.location.assign(D.location);return}}F=null;let le=pe===!0?pt.Replace:pt.Push,{formMethod:ie,formAction:Oe,formEncType:vt}=L.navigation;!Y&&!Z&&ie&&Oe&&vt&&(Y=zg(L.navigation));let he=Y||Z;if(ES.has(D.status)&&he&&Hn(he.formMethod))await ze(le,de,{submission:ct({},he,{formAction:D.location}),preventScrollReset:A});else{let De=rd(de,Y);await ze(le,de,{overrideNavigation:De,fetcherSubmission:Z,preventScrollReset:A})}}async function di(L,D,M,Y,Z){let pe=await Promise.all([...M.map(ie=>ks("loader",Z,ie,D,o,i,u,c.v7_relativeSplatPath)),...Y.map(ie=>ie.matches&&ie.match&&ie.controller?ks("loader",Cs(e.history,ie.path,ie.controller.signal),ie.match,ie.matches,o,i,u,c.v7_relativeSplatPath):{type:lt.error,error:bn(404,{pathname:ie.path})})]),de=pe.slice(0,M.length),le=pe.slice(M.length);return await Promise.all([Ig(L,M,de,de.map(()=>Z.signal),!1,k.loaderData),Ig(L,Y.map(ie=>ie.match),le,Y.map(ie=>ie.controller?ie.controller.signal:null),!0)]),{results:pe,loaderResults:de,fetcherResults:le}}function Or(){V=!0,re.push(...ss()),ve.forEach((L,D)=>{ne.has(D)&&(oe.push(D),It(D))})}function Ot(L,D,M){M===void 0&&(M={}),k.fetchers.set(L,D),Te({fetchers:new Map(k.fetchers)},{flushSync:(M&&M.flushSync)===!0})}function jt(L,D,M,Y){Y===void 0&&(Y={});let Z=Ks(k.matches,D);rn(L),Te({errors:{[Z.route.id]:M},fetchers:new Map(k.fetchers)},{flushSync:(Y&&Y.flushSync)===!0})}function jr(L){return c.v7_fetcherPersist&&(Re.set(L,(Re.get(L)||0)+1),ae.has(L)&&ae.delete(L)),k.fetchers.get(L)||bS}function rn(L){let D=k.fetchers.get(L);ne.has(L)&&!(D&&D.state==="loading"&&R.has(L))&&It(L),ve.delete(L),R.delete(L),se.delete(L),ae.delete(L),k.fetchers.delete(L)}function $n(L){if(c.v7_fetcherPersist){let D=(Re.get(L)||0)-1;D<=0?(Re.delete(L),ae.add(L)):Re.set(L,D)}else rn(L);Te({fetchers:new Map(k.fetchers)})}function It(L){let D=ne.get(L);Se(D,"Expected fetch controller: "+L),D.abort(),ne.delete(L)}function fi(L){for(let D of L){let M=jr(D),Y=$r(M.data);k.fetchers.set(D,Y)}}function Da(){let L=[],D=!1;for(let M of se){let Y=k.fetchers.get(M);Se(Y,"Expected fetcher: "+M),Y.state==="loading"&&(se.delete(M),L.push(M),D=!0)}return fi(L),D}function Xi(L){let D=[];for(let[M,Y]of R)if(Y0}function Zu(L,D){let M=k.blockers.get(L)||Ss;return ue.get(L)!==D&&ue.set(L,D),M}function $a(L){k.blockers.delete(L),ue.delete(L)}function Zi(L,D){let M=k.blockers.get(L)||Ss;Se(M.state==="unblocked"&&D.state==="blocked"||M.state==="blocked"&&D.state==="blocked"||M.state==="blocked"&&D.state==="proceeding"||M.state==="blocked"&&D.state==="unblocked"||M.state==="proceeding"&&D.state==="unblocked","Invalid blocker state transition: "+M.state+" -> "+D.state);let Y=new Map(k.blockers);Y.set(L,D),Te({blockers:Y})}function Ma(L){let{currentLocation:D,nextLocation:M,historyAction:Y}=L;if(ue.size===0)return;ue.size>1&&ni(!1,"A router only supports one blocker at a time");let Z=Array.from(ue.entries()),[pe,de]=Z[Z.length-1],le=k.blockers.get(pe);if(!(le&&le.state==="proceeding")&&de({currentLocation:D,nextLocation:M,historyAction:Y}))return pe}function ss(L){let D=[];return ye.forEach((M,Y)=>{(!L||L(Y))&&(M.cancel(),D.push(Y),ye.delete(Y))}),D}function Ju(L,D,M){if(m=L,x=D,y=M||null,!_&&k.navigation===nd){_=!0;let Y=ls(k.location,k.matches);Y!=null&&Te({restoreScrollPosition:Y})}return()=>{m=null,x=null,y=null}}function as(L,D){return y&&y(L,D.map(Y=>Zb(Y,k.loaderData)))||L.key}function Ji(L,D){if(m&&x){let M=as(L,D);m[M]=x()}}function ls(L,D){if(m){let M=as(L,D),Y=m[M];if(typeof Y=="number")return Y}return null}function Ia(L){o={},l=af(L,i,void 0,o)}return N={get basename(){return u},get future(){return c},get state(){return k},get routes(){return s},get window(){return t},initialize:G,subscribe:mt,enableScrollRestoration:Ju,navigate:Pe,fetch:is,revalidate:Ne,createHref:L=>e.history.createHref(L),encodeLocation:L=>e.history.encodeLocation(L),getFetcher:jr,deleteFetcher:$n,dispose:We,getBlocker:Zu,deleteBlocker:$a,_internalFetchControllers:ne,_internalActiveDeferreds:ye,_internalSetRoutes:Ia},N}function CS(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function lf(e,t,n,r,i,o,s,l){let u,c;if(s){u=[];for(let h of t)if(u.push(h),h.route.id===s){c=h;break}}else u=t,c=t[t.length-1];let f=Tp(i||".",Cp(u,o),es(e.pathname,n)||e.pathname,l==="path");return i==null&&(f.search=e.search,f.hash=e.hash),(i==null||i===""||i===".")&&c&&c.route.index&&!jp(f.search)&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(f.pathname=f.pathname==="/"?n:xr([n,f.pathname])),ri(f)}function jg(e,t,n,r){if(!r||!CS(r))return{path:n};if(r.formMethod&&!RS(r.formMethod))return{path:n,error:bn(405,{method:r.formMethod})};let i=()=>({path:n,error:bn(400,{type:"invalid-body"})}),o=r.formMethod||"get",s=e?o.toUpperCase():o.toLowerCase(),l=r1(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Hn(s))return i();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((y,x)=>{let[_,C]=x;return""+y+_+"="+C+` -`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!Hn(s))return i();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:l,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return i()}}}Se(typeof FormData=="function","FormData is not available in this environment");let u,c;if(r.formData)u=uf(r.formData),c=r.formData;else if(r.body instanceof FormData)u=uf(r.body),c=r.body;else if(r.body instanceof URLSearchParams)u=r.body,c=Rg(u);else if(r.body==null)u=new URLSearchParams,c=new FormData;else try{u=new URLSearchParams(r.body),c=Rg(u)}catch{return i()}let f={formMethod:s,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Hn(f.formMethod))return{path:n,submission:f};let h=ur(n);return t&&h.search&&jp(h.search)&&u.append("index",""),h.search="?"+u,{path:ri(h),submission:f}}function TS(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Pg(e,t,n,r,i,o,s,l,u,c,f,h,m,y,x,_){let C=_?Object.values(_)[0]:x?Object.values(x)[0]:void 0,v=e.createURL(t.location),g=e.createURL(i),b=_?Object.keys(_)[0]:void 0,N=TS(n,b).filter((O,A)=>{let{route:F}=O;if(F.lazy)return!0;if(F.loader==null)return!1;if(o)return F.loader.hydrate?!0:t.loaderData[F.id]===void 0&&(!t.errors||t.errors[F.id]===void 0);if(OS(t.loaderData,t.matches[A],O)||l.some(I=>I===O.route.id))return!0;let H=t.matches[A],z=O;return Ng(O,ct({currentUrl:v,currentParams:H.params,nextUrl:g,nextParams:z.params},r,{actionResult:C,defaultShouldRevalidate:s||v.pathname+v.search===g.pathname+g.search||v.search!==g.search||n1(H,z)}))}),k=[];return f.forEach((O,A)=>{if(o||!n.some(K=>K.route.id===O.routeId)||c.has(A))return;let F=bo(m,O.path,y);if(!F){k.push({key:A,routeId:O.routeId,path:O.path,matches:null,match:null,controller:null});return}let H=t.fetchers.get(A),z=cf(F,O.path),I=!1;h.has(A)?I=!1:u.includes(A)?I=!0:H&&H.state!=="idle"&&H.data===void 0?I=s:I=Ng(z,ct({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params},r,{actionResult:C,defaultShouldRevalidate:s})),I&&k.push({key:A,routeId:O.routeId,path:O.path,matches:F,match:z,controller:new AbortController})}),[N,k]}function OS(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function n1(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Ng(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Lg(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];Se(i,"No route found in manifest");let o={};for(let s in r){let u=i[s]!==void 0&&s!=="hasErrorBoundary";ni(!u,'Route "'+i.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!u&&!qb.has(s)&&(o[s]=r[s])}Object.assign(i,o),Object.assign(i,ct({},t(i),{lazy:void 0}))}async function ks(e,t,n,r,i,o,s,l,u){u===void 0&&(u={});let c,f,h,m=_=>{let C,v=new Promise((g,b)=>C=b);return h=()=>C(),t.signal.addEventListener("abort",h),Promise.race([_({request:t,params:n.params,context:u.requestContext}),v])};try{let _=n.route[e];if(n.route.lazy)if(_){let C,v=await Promise.all([m(_).catch(g=>{C=g}),Lg(n.route,o,i)]);if(C)throw C;f=v[0]}else if(await Lg(n.route,o,i),_=n.route[e],_)f=await m(_);else if(e==="action"){let C=new URL(t.url),v=C.pathname+C.search;throw bn(405,{method:t.method,pathname:v,routeId:n.route.id})}else return{type:lt.data,data:void 0};else if(_)f=await m(_);else{let C=new URL(t.url),v=C.pathname+C.search;throw bn(404,{pathname:v})}Se(f!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(_){c=lt.error,f=_}finally{h&&t.signal.removeEventListener("abort",h)}if(LS(f)){let _=f.status;if(_S.has(_)){let v=f.headers.get("Location");if(Se(v,"Redirects returned/thrown from loaders/actions must have a Location header"),!e1.test(v))v=lf(new URL(t.url),r.slice(0,r.indexOf(n)+1),s,!0,v,l);else if(!u.isStaticRequest){let g=new URL(t.url),b=v.startsWith("//")?new URL(g.protocol+v):new URL(v),T=es(b.pathname,s)!=null;b.origin===g.origin&&T&&(v=b.pathname+b.search+b.hash)}if(u.isStaticRequest)throw f.headers.set("Location",v),f;return{type:lt.redirect,status:_,location:v,revalidate:f.headers.get("X-Remix-Revalidate")!==null,reloadDocument:f.headers.get("X-Remix-Reload-Document")!==null}}if(u.isRouteRequest)throw{type:c===lt.error?lt.error:lt.data,response:f};let C;try{let v=f.headers.get("Content-Type");v&&/\bapplication\/json\b/.test(v)?C=await f.json():C=await f.text()}catch(v){return{type:lt.error,error:v}}return c===lt.error?{type:c,error:new Op(_,f.statusText,C),headers:f.headers}:{type:lt.data,data:C,statusCode:f.status,headers:f.headers}}if(c===lt.error)return{type:c,error:f};if(NS(f)){var y,x;return{type:lt.deferred,deferredData:f,statusCode:(y=f.init)==null?void 0:y.status,headers:((x=f.init)==null?void 0:x.headers)&&new Headers(f.init.headers)}}return{type:lt.data,data:f}}function Cs(e,t,n,r){let i=e.createURL(r1(t)).toString(),o={signal:n};if(r&&Hn(r.formMethod)){let{formMethod:s,formEncType:l}=r;o.method=s.toUpperCase(),l==="application/json"?(o.headers=new Headers({"Content-Type":l}),o.body=JSON.stringify(r.json)):l==="text/plain"?o.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?o.body=uf(r.formData):o.body=r.formData}return new Request(i,o)}function uf(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Rg(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function jS(e,t,n,r,i){let o={},s=null,l,u=!1,c={};return n.forEach((f,h)=>{let m=t[h].route.id;if(Se(!Ri(f),"Cannot handle redirect results in processLoaderData"),So(f)){let y=Ks(e,m),x=f.error;r&&(x=Object.values(r)[0],r=void 0),s=s||{},s[y.route.id]==null&&(s[y.route.id]=x),o[m]=void 0,u||(u=!0,l=Zy(f.error)?f.error.status:500),f.headers&&(c[m]=f.headers)}else Li(f)?(i.set(m,f.deferredData),o[m]=f.deferredData.data):o[m]=f.data,f.statusCode!=null&&f.statusCode!==200&&!u&&(l=f.statusCode),f.headers&&(c[m]=f.headers)}),r&&(s=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:s,statusCode:l||200,loaderHeaders:c}}function Ag(e,t,n,r,i,o,s,l){let{loaderData:u,errors:c}=jS(t,n,r,i,l);for(let f=0;fr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function $g(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function bn(e,t){let{pathname:n,routeId:r,method:i,type:o}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",i&&n&&r?l="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?l="defer() is not supported in actions":o==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",l='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",i&&n&&r?l="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new Op(e||500,s,new Error(l),!0)}function Mg(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Ri(n))return{result:n,idx:t}}}function r1(e){let t=typeof e=="string"?ur(e):e;return ri(ct({},t,{hash:""}))}function PS(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Li(e){return e.type===lt.deferred}function So(e){return e.type===lt.error}function Ri(e){return(e&&e.type)===lt.redirect}function NS(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function LS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function RS(e){return xS.has(e.toLowerCase())}function Hn(e){return yS.has(e.toLowerCase())}async function Ig(e,t,n,r,i,o){for(let s=0;sh.route.id===u.route.id),f=c!=null&&!n1(c,u)&&(o&&o[u.route.id])!==void 0;if(Li(l)&&(i||f)){let h=r[s];Se(h,"Expected an AbortSignal for revalidating fetcher deferred result"),await i1(l,h,i).then(m=>{m&&(n[s]=m||n[s])})}}}async function i1(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:lt.data,data:e.deferredData.unwrappedData}}catch(i){return{type:lt.error,error:i}}return{type:lt.data,data:e.deferredData.data}}}function jp(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function cf(e,t){let n=typeof t=="string"?ur(t).search:t.search;if(e[e.length-1].route.index&&jp(n||""))return e[e.length-1];let r=Xy(e);return r[r.length-1]}function zg(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:s}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function rd(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function AS(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Ts(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function DS(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function $r(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function $S(e,t){try{let n=e.sessionStorage.getItem(t1);if(n){let r=JSON.parse(n);for(let[i,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function MS(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(t1,JSON.stringify(n))}catch(r){ni(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function ct(){return ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function ni(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Kb(){return Math.random().toString(36).substr(2,8)}function Tg(e,t){return{usr:e.state,key:e.key,idx:t}}function ga(e,t,n,r){return n===void 0&&(n=null),ct({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ur(t):t,{state:n,key:t&&t.key||r||Kb()})}function Vi(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 ur(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 Qb(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,l=pt.Pop,u=null,c=f();c==null&&(c=0,s.replaceState(ct({},s.state,{idx:c}),""));function f(){return(s.state||{idx:null}).idx}function h(){l=pt.Pop;let C=f(),v=C==null?null:C-c;c=C,u&&u({action:l,location:_.location,delta:v})}function m(C,v){l=pt.Push;let g=ga(_.location,C,v);n&&n(g,C),c=f()+1;let b=Tg(g,c),T=_.createHref(g);try{s.pushState(b,"",T)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;i.location.assign(T)}o&&u&&u({action:l,location:_.location,delta:1})}function y(C,v){l=pt.Replace;let g=ga(_.location,C,v);n&&n(g,C),c=f();let b=Tg(g,c),T=_.createHref(g);s.replaceState(b,"",T),o&&u&&u({action:l,location:_.location,delta:0})}function x(C){let v=i.location.origin!=="null"?i.location.origin:i.location.href,g=typeof C=="string"?C:Vi(C);return Se(v,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,v)}let _={get action(){return l},get location(){return e(i,s)},listen(C){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(Cg,h),u=C,()=>{i.removeEventListener(Cg,h),u=null}},createHref(C){return t(i,C)},createURL:x,encodeLocation(C){let v=x(C);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:m,replace:y,go(C){return s.go(C)}};return _}var lt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(lt||(lt={}));const Yb=new Set(["lazy","caseSensitive","path","id","index","children"]);function qb(e){return e.index===!0}function af(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let s=[...n,o],l=typeof i.id=="string"?i.id:s.join("-");if(Se(i.index!==!0||!i.children,"Cannot specify children on an index route"),Se(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),qb(i)){let u=ct({},i,t(i),{id:l});return r[l]=u,u}else{let u=ct({},i,t(i),{id:l,children:void 0});return r[l]=u,i.children&&(u.children=af(i.children,t,s,r)),u}})}function bo(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ur(t):t,i=Jo(r.pathname||"/",n);if(i==null)return null;let o=Yy(e);Zb(o);let s=null;for(let l=0;s==null&&l{let u={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};u.relativePath.startsWith("/")&&(Se(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 c=xr([r,u.relativePath]),f=n.concat(u);o.children&&o.children.length>0&&(Se(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Yy(o.children,t,f,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:oS(c,o.index),routesMeta:f})};return e.forEach((o,s)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,s);else for(let u of qy(o.path))i(o,s,u)}),t}function qy(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 s=qy(r.join("/")),l=[];return l.push(...s.map(u=>u===""?o:[o,u].join("/"))),i&&l.push(...s),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function Zb(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:sS(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Jb=/^:\w+$/,eS=3,tS=2,nS=1,rS=10,iS=-2,Og=e=>e==="*";function oS(e,t){let n=e.split("/"),r=n.length;return n.some(Og)&&(r+=iS),t&&(r+=tS),n.filter(i=>!Og(i)).reduce((i,o)=>i+(Jb.test(o)?eS:o===""?nS:rS),r)}function sS(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 aS(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let s=0;s{let{paramName:m,isOptional:y}=f;if(m==="*"){let _=l[h]||"";s=o.slice(0,o.length-_.length).replace(/(.)\/+$/,"$1")}const x=l[h];return y&&!x?c[m]=void 0:c[m]=dS(x||"",m),c},{}),pathname:o,pathnameBase:s,pattern:e}}function uS(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ni(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,(s,l,u)=>(r.push({paramName:l,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 cS(e){try{return decodeURI(e)}catch(t){return ni(!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 dS(e,t){try{return decodeURIComponent(e)}catch(n){return ni(!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 Jo(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 fS(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ur(e):e;return{pathname:n?n.startsWith("/")?n:pS(n,t):t,search:mS(r),hash:gS(i)}}function pS(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 td(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 Xy(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Cp(e,t){let n=Xy(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Tp(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=ur(e):(i=ct({},e),Se(!i.pathname||!i.pathname.includes("?"),td("?","pathname","search",i)),Se(!i.pathname||!i.pathname.includes("#"),td("#","pathname","hash",i)),Se(!i.search||!i.search.includes("#"),td("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,l;if(s==null)l=n;else{let h=t.length-1;if(!r&&s.startsWith("..")){let m=s.split("/");for(;m[0]==="..";)m.shift(),h-=1;i.pathname=m.join("/")}l=h>=0?t[h]:"/"}let u=fS(i,l),c=s&&s!=="/"&&s.endsWith("/"),f=(o||s===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||f)&&(u.pathname+="/"),u}const xr=e=>e.join("/").replace(/\/\/+/g,"/"),hS=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),mS=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,gS=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Op{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Zy(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Jy=["post","put","patch","delete"],vS=new Set(Jy),yS=["get",...Jy],wS=new Set(yS),xS=new Set([301,302,303,307,308]),_S=new Set([307,308]),nd={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ES={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},bs={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},e1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,bS=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),t1="remix-router-transitions";function SS(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Se(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let L=e.detectErrorBoundary;i=D=>({hasErrorBoundary:L(D)})}else i=bS;let o={},s=af(e.routes,i,void 0,o),l,u=e.basename||"/",c=ct({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),f=null,h=new Set,m=null,y=null,x=null,_=e.hydrationData!=null,C=bo(s,e.history.location,u),v=null;if(C==null){let L=bn(404,{pathname:e.history.location.pathname}),{matches:D,route:M}=$g(s);C=D,v={[M.id]:L}}let g,b=C.some(L=>L.route.lazy),T=C.some(L=>L.route.loader);if(b)g=!1;else if(!T)g=!0;else if(c.v7_partialHydration){let L=e.hydrationData?e.hydrationData.loaderData:null,D=e.hydrationData?e.hydrationData.errors:null;g=C.every(M=>M.route.loader&&M.route.loader.hydrate!==!0&&(L&&L[M.route.id]!==void 0||D&&D[M.route.id]!==void 0))}else g=e.hydrationData!=null;let N,k={historyAction:e.history.action,location:e.history.location,matches:C,initialized:g,navigation:nd,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},O=pt.Pop,A=!1,F,H=!1,z=new Map,I=null,K=!1,V=!1,re=[],oe=[],ne=new Map,U=0,q=-1,R=new Map,se=new Set,ve=new Map,Re=new Map,ae=new Set,ye=new Map,ue=new Map,xe=!1;function G(){if(f=e.history.listen(L=>{let{action:D,location:M,delta:Y}=L;if(xe){xe=!1;return}ni(ue.size===0||Y!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Z=Ma({currentLocation:k.location,nextLocation:M,historyAction:D});if(Z&&Y!=null){xe=!0,e.history.go(Y*-1),Zi(Z,{state:"blocked",location:M,proceed(){Zi(Z,{state:"proceeding",proceed:void 0,reset:void 0,location:M}),e.history.go(Y)},reset(){let pe=new Map(k.blockers);pe.set(Z,bs),Te({blockers:pe})}});return}return ze(D,M)}),n){DS(t,z);let L=()=>$S(t,z);t.addEventListener("pagehide",L),I=()=>t.removeEventListener("pagehide",L)}return k.initialized||ze(pt.Pop,k.location,{initialHydration:!0}),N}function We(){f&&f(),I&&I(),h.clear(),F&&F.abort(),k.fetchers.forEach((L,D)=>rn(D)),k.blockers.forEach((L,D)=>$a(D))}function mt(L){return h.add(L),()=>h.delete(L)}function Te(L,D){D===void 0&&(D={}),k=ct({},k,L);let M=[],Y=[];c.v7_fetcherPersist&&k.fetchers.forEach((Z,pe)=>{Z.state==="idle"&&(ae.has(pe)?Y.push(pe):M.push(pe))}),[...h].forEach(Z=>Z(k,{deletedFetchers:Y,unstable_viewTransitionOpts:D.viewTransitionOpts,unstable_flushSync:D.flushSync===!0})),c.v7_fetcherPersist&&(M.forEach(Z=>k.fetchers.delete(Z)),Y.forEach(Z=>rn(Z)))}function xt(L,D,M){var Y,Z;let{flushSync:pe}=M===void 0?{}:M,de=k.actionData!=null&&k.navigation.formMethod!=null&&Hn(k.navigation.formMethod)&&k.navigation.state==="loading"&&((Y=L.state)==null?void 0:Y._isRedirect)!==!0,le;D.actionData?Object.keys(D.actionData).length>0?le=D.actionData:le=null:de?le=k.actionData:le=null;let ie=D.loaderData?Dg(k.loaderData,D.loaderData,D.matches||[],D.errors):k.loaderData,Oe=k.blockers;Oe.size>0&&(Oe=new Map(Oe),Oe.forEach((De,ot)=>Oe.set(ot,bs)));let vt=A===!0||k.navigation.formMethod!=null&&Hn(k.navigation.formMethod)&&((Z=L.state)==null?void 0:Z._isRedirect)!==!0;l&&(s=l,l=void 0),K||O===pt.Pop||(O===pt.Push?e.history.push(L,L.state):O===pt.Replace&&e.history.replace(L,L.state));let he;if(O===pt.Pop){let De=z.get(k.location.pathname);De&&De.has(L.pathname)?he={currentLocation:k.location,nextLocation:L}:z.has(L.pathname)&&(he={currentLocation:L,nextLocation:k.location})}else if(H){let De=z.get(k.location.pathname);De?De.add(L.pathname):(De=new Set([L.pathname]),z.set(k.location.pathname,De)),he={currentLocation:k.location,nextLocation:L}}Te(ct({},D,{actionData:le,loaderData:ie,historyAction:O,location:L,initialized:!0,navigation:nd,revalidation:"idle",restoreScrollPosition:as(L,D.matches||k.matches),preventScrollReset:vt,blockers:Oe}),{viewTransitionOpts:he,flushSync:pe===!0}),O=pt.Pop,A=!1,H=!1,K=!1,V=!1,re=[],oe=[]}async function Pe(L,D){if(typeof L=="number"){e.history.go(L);return}let M=lf(k.location,k.matches,u,c.v7_prependBasename,L,c.v7_relativeSplatPath,D==null?void 0:D.fromRouteId,D==null?void 0:D.relative),{path:Y,submission:Z,error:pe}=jg(c.v7_normalizeFormMethod,!1,M,D),de=k.location,le=ga(k.location,Y,D&&D.state);le=ct({},le,e.history.encodeLocation(le));let ie=D&&D.replace!=null?D.replace:void 0,Oe=pt.Push;ie===!0?Oe=pt.Replace:ie===!1||Z!=null&&Hn(Z.formMethod)&&Z.formAction===k.location.pathname+k.location.search&&(Oe=pt.Replace);let vt=D&&"preventScrollReset"in D?D.preventScrollReset===!0:void 0,he=(D&&D.unstable_flushSync)===!0,De=Ma({currentLocation:de,nextLocation:le,historyAction:Oe});if(De){Zi(De,{state:"blocked",location:le,proceed(){Zi(De,{state:"proceeding",proceed:void 0,reset:void 0,location:le}),Pe(L,D)},reset(){let ot=new Map(k.blockers);ot.set(De,bs),Te({blockers:ot})}});return}return await ze(Oe,le,{submission:Z,pendingError:pe,preventScrollReset:vt,replace:D&&D.replace,enableViewTransition:D&&D.unstable_viewTransition,flushSync:he})}function Ne(){if(Or(),Te({revalidation:"loading"}),k.navigation.state!=="submitting"){if(k.navigation.state==="idle"){ze(k.historyAction,k.location,{startUninterruptedRevalidation:!0});return}ze(O||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation})}}async function ze(L,D,M){F&&F.abort(),F=null,O=L,K=(M&&M.startUninterruptedRevalidation)===!0,Ji(k.location,k.matches),A=(M&&M.preventScrollReset)===!0,H=(M&&M.enableViewTransition)===!0;let Y=l||s,Z=M&&M.overrideNavigation,pe=bo(Y,D,u),de=(M&&M.flushSync)===!0;if(!pe){let ot=bn(404,{pathname:D.pathname}),{matches:Vt,route:st}=$g(Y);os(),xt(D,{matches:Vt,loaderData:{},errors:{[st.id]:ot}},{flushSync:de});return}if(k.initialized&&!V&&jS(k.location,D)&&!(M&&M.submission&&Hn(M.submission.formMethod))){xt(D,{matches:pe},{flushSync:de});return}F=new AbortController;let le=ks(e.history,D,F.signal,M&&M.submission),ie,Oe;if(M&&M.pendingError)Oe={[Gs(pe).route.id]:M.pendingError};else if(M&&M.submission&&Hn(M.submission.formMethod)){let ot=await gt(le,D,M.submission,pe,{replace:M.replace,flushSync:de});if(ot.shortCircuited)return;ie=ot.pendingActionData,Oe=ot.pendingActionError,Z=rd(D,M.submission),de=!1,le=new Request(le.url,{signal:le.signal})}let{shortCircuited:vt,loaderData:he,errors:De}=await cr(le,D,pe,Z,M&&M.submission,M&&M.fetcherSubmission,M&&M.replace,M&&M.initialHydration===!0,de,ie,Oe);vt||(F=null,xt(D,ct({matches:pe},ie?{actionData:ie}:{},{loaderData:he,errors:De})))}async function gt(L,D,M,Y,Z){Z===void 0&&(Z={}),Or();let pe=RS(D,M);Te({navigation:pe},{flushSync:Z.flushSync===!0});let de,le=cf(Y,D);if(!le.route.action&&!le.route.lazy)de={type:lt.error,error:bn(405,{method:L.method,pathname:D.pathname,routeId:le.route.id})};else if(de=await Ss("action",L,le,Y,o,i,u,c.v7_relativeSplatPath),L.signal.aborted)return{shortCircuited:!0};if(Li(de)){let ie;return Z&&Z.replace!=null?ie=Z.replace:ie=de.location===k.location.pathname+k.location.search,await gn(k,de,{submission:M,replace:ie}),{shortCircuited:!0}}if(So(de)){let ie=Gs(Y,le.route.id);return(Z&&Z.replace)!==!0&&(O=pt.Push),{pendingActionData:{},pendingActionError:{[ie.route.id]:de.error}}}if(Ni(de))throw bn(400,{type:"defer-action"});return{pendingActionData:{[le.route.id]:de.data}}}async function cr(L,D,M,Y,Z,pe,de,le,ie,Oe,vt){let he=Y||rd(D,Z),De=Z||pe||zg(he),ot=l||s,[Vt,st]=Pg(e.history,k,M,De,D,c.v7_partialHydration&&le===!0,V,re,oe,ae,ve,se,ot,u,Oe,vt);if(os(Ae=>!(M&&M.some(Ke=>Ke.route.id===Ae))||Vt&&Vt.some(Ke=>Ke.route.id===Ae)),q=++U,Vt.length===0&&st.length===0){let Ae=Da();return xt(D,ct({matches:M,loaderData:{},errors:vt||null},Oe?{actionData:Oe}:{},Ae?{fetchers:new Map(k.fetchers)}:{}),{flushSync:ie}),{shortCircuited:!0}}if(!K&&(!c.v7_partialHydration||!le)){st.forEach(Ke=>{let Gt=k.fetchers.get(Ke.key),Mn=Cs(void 0,Gt?Gt.data:void 0);k.fetchers.set(Ke.key,Mn)});let Ae=Oe||k.actionData;Te(ct({navigation:he},Ae?Object.keys(Ae).length===0?{actionData:null}:{actionData:Ae}:{},st.length>0?{fetchers:new Map(k.fetchers)}:{}),{flushSync:ie})}st.forEach(Ae=>{ne.has(Ae.key)&&It(Ae.key),Ae.controller&&ne.set(Ae.key,Ae.controller)});let Pr=()=>st.forEach(Ae=>It(Ae.key));F&&F.signal.addEventListener("abort",Pr);let{results:ls,loaderResults:on,fetcherResults:et}=await ci(k.matches,M,Vt,st,L);if(L.signal.aborted)return{shortCircuited:!0};F&&F.signal.removeEventListener("abort",Pr),st.forEach(Ae=>ne.delete(Ae.key));let dt=Mg(ls);if(dt){if(dt.idx>=Vt.length){let Ae=st[dt.idx-Vt.length].key;se.add(Ae)}return await gn(k,dt.result,{replace:de}),{shortCircuited:!0}}let{loaderData:Pt,errors:_t}=Ag(k,M,Vt,on,vt,st,et,ye);ye.forEach((Ae,Ke)=>{Ae.subscribe(Gt=>{(Gt||Ae.done)&&ye.delete(Ke)})});let Nr=Da(),sn=Xi(q),vn=Nr||sn||st.length>0;return ct({loaderData:Pt,errors:_t},vn?{fetchers:new Map(k.fetchers)}:{})}function rs(L,D,M,Y){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");ne.has(L)&&It(L);let Z=(Y&&Y.unstable_flushSync)===!0,pe=l||s,de=lf(k.location,k.matches,u,c.v7_prependBasename,M,c.v7_relativeSplatPath,D,Y==null?void 0:Y.relative),le=bo(pe,de,u);if(!le){jt(L,D,bn(404,{pathname:de}),{flushSync:Z});return}let{path:ie,submission:Oe,error:vt}=jg(c.v7_normalizeFormMethod,!0,de,Y);if(vt){jt(L,D,vt,{flushSync:Z});return}let he=cf(le,ie);if(A=(Y&&Y.preventScrollReset)===!0,Oe&&Hn(Oe.formMethod)){is(L,D,ie,he,le,Z,Oe);return}ve.set(L,{routeId:D,path:ie}),Dn(L,D,ie,he,le,Z,Oe)}async function is(L,D,M,Y,Z,pe,de){if(Or(),ve.delete(L),!Y.route.action&&!Y.route.lazy){let Ke=bn(405,{method:de.formMethod,pathname:M,routeId:D});jt(L,D,Ke,{flushSync:pe});return}let le=k.fetchers.get(L);Ot(L,AS(de,le),{flushSync:pe});let ie=new AbortController,Oe=ks(e.history,M,ie.signal,de);ne.set(L,ie);let vt=U,he=await Ss("action",Oe,Y,Z,o,i,u,c.v7_relativeSplatPath);if(Oe.signal.aborted){ne.get(L)===ie&&ne.delete(L);return}if(c.v7_fetcherPersist&&ae.has(L)){if(Li(he)||So(he)){Ot(L,$r(void 0));return}}else{if(Li(he))if(ne.delete(L),q>vt){Ot(L,$r(void 0));return}else return se.add(L),Ot(L,Cs(de)),gn(k,he,{fetcherSubmission:de});if(So(he)){jt(L,D,he.error);return}}if(Ni(he))throw bn(400,{type:"defer-action"});let De=k.navigation.location||k.location,ot=ks(e.history,De,ie.signal),Vt=l||s,st=k.navigation.state!=="idle"?bo(Vt,k.navigation.location,u):k.matches;Se(st,"Didn't find any matches after fetcher action");let Pr=++U;R.set(L,Pr);let ls=Cs(de,he.data);k.fetchers.set(L,ls);let[on,et]=Pg(e.history,k,st,de,De,!1,V,re,oe,ae,ve,se,Vt,u,{[Y.route.id]:he.data},void 0);et.filter(Ke=>Ke.key!==L).forEach(Ke=>{let Gt=Ke.key,Mn=k.fetchers.get(Gt),za=Cs(void 0,Mn?Mn.data:void 0);k.fetchers.set(Gt,za),ne.has(Gt)&&It(Gt),Ke.controller&&ne.set(Gt,Ke.controller)}),Te({fetchers:new Map(k.fetchers)});let dt=()=>et.forEach(Ke=>It(Ke.key));ie.signal.addEventListener("abort",dt);let{results:Pt,loaderResults:_t,fetcherResults:Nr}=await ci(k.matches,st,on,et,ot);if(ie.signal.aborted)return;ie.signal.removeEventListener("abort",dt),R.delete(L),ne.delete(L),et.forEach(Ke=>ne.delete(Ke.key));let sn=Mg(Pt);if(sn){if(sn.idx>=on.length){let Ke=et[sn.idx-on.length].key;se.add(Ke)}return gn(k,sn.result)}let{loaderData:vn,errors:Ae}=Ag(k,k.matches,on,_t,void 0,et,Nr,ye);if(k.fetchers.has(L)){let Ke=$r(he.data);k.fetchers.set(L,Ke)}Xi(Pr),k.navigation.state==="loading"&&Pr>q?(Se(O,"Expected pending action"),F&&F.abort(),xt(k.navigation.location,{matches:st,loaderData:vn,errors:Ae,fetchers:new Map(k.fetchers)})):(Te({errors:Ae,loaderData:Dg(k.loaderData,vn,st,Ae),fetchers:new Map(k.fetchers)}),V=!1)}async function Dn(L,D,M,Y,Z,pe,de){let le=k.fetchers.get(L);Ot(L,Cs(de,le?le.data:void 0),{flushSync:pe});let ie=new AbortController,Oe=ks(e.history,M,ie.signal);ne.set(L,ie);let vt=U,he=await Ss("loader",Oe,Y,Z,o,i,u,c.v7_relativeSplatPath);if(Ni(he)&&(he=await i1(he,Oe.signal,!0)||he),ne.get(L)===ie&&ne.delete(L),!Oe.signal.aborted){if(ae.has(L)){Ot(L,$r(void 0));return}if(Li(he))if(q>vt){Ot(L,$r(void 0));return}else{se.add(L),await gn(k,he);return}if(So(he)){jt(L,D,he.error);return}Se(!Ni(he),"Unhandled fetcher deferred data"),Ot(L,$r(he.data))}}async function gn(L,D,M){let{submission:Y,fetcherSubmission:Z,replace:pe}=M===void 0?{}:M;D.revalidate&&(V=!0);let de=ga(L.location,D.location,{_isRedirect:!0});if(Se(de,"Expected a location on the redirect navigation"),n){let De=!1;if(D.reloadDocument)De=!0;else if(e1.test(D.location)){const ot=e.history.createURL(D.location);De=ot.origin!==t.location.origin||Jo(ot.pathname,u)==null}if(De){pe?t.location.replace(D.location):t.location.assign(D.location);return}}F=null;let le=pe===!0?pt.Replace:pt.Push,{formMethod:ie,formAction:Oe,formEncType:vt}=L.navigation;!Y&&!Z&&ie&&Oe&&vt&&(Y=zg(L.navigation));let he=Y||Z;if(_S.has(D.status)&&he&&Hn(he.formMethod))await ze(le,de,{submission:ct({},he,{formAction:D.location}),preventScrollReset:A});else{let De=rd(de,Y);await ze(le,de,{overrideNavigation:De,fetcherSubmission:Z,preventScrollReset:A})}}async function ci(L,D,M,Y,Z){let pe=await Promise.all([...M.map(ie=>Ss("loader",Z,ie,D,o,i,u,c.v7_relativeSplatPath)),...Y.map(ie=>ie.matches&&ie.match&&ie.controller?Ss("loader",ks(e.history,ie.path,ie.controller.signal),ie.match,ie.matches,o,i,u,c.v7_relativeSplatPath):{type:lt.error,error:bn(404,{pathname:ie.path})})]),de=pe.slice(0,M.length),le=pe.slice(M.length);return await Promise.all([Ig(L,M,de,de.map(()=>Z.signal),!1,k.loaderData),Ig(L,Y.map(ie=>ie.match),le,Y.map(ie=>ie.controller?ie.controller.signal:null),!0)]),{results:pe,loaderResults:de,fetcherResults:le}}function Or(){V=!0,re.push(...os()),ve.forEach((L,D)=>{ne.has(D)&&(oe.push(D),It(D))})}function Ot(L,D,M){M===void 0&&(M={}),k.fetchers.set(L,D),Te({fetchers:new Map(k.fetchers)},{flushSync:(M&&M.flushSync)===!0})}function jt(L,D,M,Y){Y===void 0&&(Y={});let Z=Gs(k.matches,D);rn(L),Te({errors:{[Z.route.id]:M},fetchers:new Map(k.fetchers)},{flushSync:(Y&&Y.flushSync)===!0})}function jr(L){return c.v7_fetcherPersist&&(Re.set(L,(Re.get(L)||0)+1),ae.has(L)&&ae.delete(L)),k.fetchers.get(L)||ES}function rn(L){let D=k.fetchers.get(L);ne.has(L)&&!(D&&D.state==="loading"&&R.has(L))&&It(L),ve.delete(L),R.delete(L),se.delete(L),ae.delete(L),k.fetchers.delete(L)}function $n(L){if(c.v7_fetcherPersist){let D=(Re.get(L)||0)-1;D<=0?(Re.delete(L),ae.add(L)):Re.set(L,D)}else rn(L);Te({fetchers:new Map(k.fetchers)})}function It(L){let D=ne.get(L);Se(D,"Expected fetch controller: "+L),D.abort(),ne.delete(L)}function di(L){for(let D of L){let M=jr(D),Y=$r(M.data);k.fetchers.set(D,Y)}}function Da(){let L=[],D=!1;for(let M of se){let Y=k.fetchers.get(M);Se(Y,"Expected fetcher: "+M),Y.state==="loading"&&(se.delete(M),L.push(M),D=!0)}return di(L),D}function Xi(L){let D=[];for(let[M,Y]of R)if(Y0}function Zu(L,D){let M=k.blockers.get(L)||bs;return ue.get(L)!==D&&ue.set(L,D),M}function $a(L){k.blockers.delete(L),ue.delete(L)}function Zi(L,D){let M=k.blockers.get(L)||bs;Se(M.state==="unblocked"&&D.state==="blocked"||M.state==="blocked"&&D.state==="blocked"||M.state==="blocked"&&D.state==="proceeding"||M.state==="blocked"&&D.state==="unblocked"||M.state==="proceeding"&&D.state==="unblocked","Invalid blocker state transition: "+M.state+" -> "+D.state);let Y=new Map(k.blockers);Y.set(L,D),Te({blockers:Y})}function Ma(L){let{currentLocation:D,nextLocation:M,historyAction:Y}=L;if(ue.size===0)return;ue.size>1&&ni(!1,"A router only supports one blocker at a time");let Z=Array.from(ue.entries()),[pe,de]=Z[Z.length-1],le=k.blockers.get(pe);if(!(le&&le.state==="proceeding")&&de({currentLocation:D,nextLocation:M,historyAction:Y}))return pe}function os(L){let D=[];return ye.forEach((M,Y)=>{(!L||L(Y))&&(M.cancel(),D.push(Y),ye.delete(Y))}),D}function Ju(L,D,M){if(m=L,x=D,y=M||null,!_&&k.navigation===nd){_=!0;let Y=as(k.location,k.matches);Y!=null&&Te({restoreScrollPosition:Y})}return()=>{m=null,x=null,y=null}}function ss(L,D){return y&&y(L,D.map(Y=>Xb(Y,k.loaderData)))||L.key}function Ji(L,D){if(m&&x){let M=ss(L,D);m[M]=x()}}function as(L,D){if(m){let M=ss(L,D),Y=m[M];if(typeof Y=="number")return Y}return null}function Ia(L){o={},l=af(L,i,void 0,o)}return N={get basename(){return u},get future(){return c},get state(){return k},get routes(){return s},get window(){return t},initialize:G,subscribe:mt,enableScrollRestoration:Ju,navigate:Pe,fetch:rs,revalidate:Ne,createHref:L=>e.history.createHref(L),encodeLocation:L=>e.history.encodeLocation(L),getFetcher:jr,deleteFetcher:$n,dispose:We,getBlocker:Zu,deleteBlocker:$a,_internalFetchControllers:ne,_internalActiveDeferreds:ye,_internalSetRoutes:Ia},N}function kS(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function lf(e,t,n,r,i,o,s,l){let u,c;if(s){u=[];for(let h of t)if(u.push(h),h.route.id===s){c=h;break}}else u=t,c=t[t.length-1];let f=Tp(i||".",Cp(u,o),Jo(e.pathname,n)||e.pathname,l==="path");return i==null&&(f.search=e.search,f.hash=e.hash),(i==null||i===""||i===".")&&c&&c.route.index&&!jp(f.search)&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(f.pathname=f.pathname==="/"?n:xr([n,f.pathname])),Vi(f)}function jg(e,t,n,r){if(!r||!kS(r))return{path:n};if(r.formMethod&&!LS(r.formMethod))return{path:n,error:bn(405,{method:r.formMethod})};let i=()=>({path:n,error:bn(400,{type:"invalid-body"})}),o=r.formMethod||"get",s=e?o.toUpperCase():o.toLowerCase(),l=r1(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Hn(s))return i();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((y,x)=>{let[_,C]=x;return""+y+_+"="+C+` +`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!Hn(s))return i();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:l,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return i()}}}Se(typeof FormData=="function","FormData is not available in this environment");let u,c;if(r.formData)u=uf(r.formData),c=r.formData;else if(r.body instanceof FormData)u=uf(r.body),c=r.body;else if(r.body instanceof URLSearchParams)u=r.body,c=Rg(u);else if(r.body==null)u=new URLSearchParams,c=new FormData;else try{u=new URLSearchParams(r.body),c=Rg(u)}catch{return i()}let f={formMethod:s,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Hn(f.formMethod))return{path:n,submission:f};let h=ur(n);return t&&h.search&&jp(h.search)&&u.append("index",""),h.search="?"+u,{path:Vi(h),submission:f}}function CS(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Pg(e,t,n,r,i,o,s,l,u,c,f,h,m,y,x,_){let C=_?Object.values(_)[0]:x?Object.values(x)[0]:void 0,v=e.createURL(t.location),g=e.createURL(i),b=_?Object.keys(_)[0]:void 0,N=CS(n,b).filter((O,A)=>{let{route:F}=O;if(F.lazy)return!0;if(F.loader==null)return!1;if(o)return F.loader.hydrate?!0:t.loaderData[F.id]===void 0&&(!t.errors||t.errors[F.id]===void 0);if(TS(t.loaderData,t.matches[A],O)||l.some(I=>I===O.route.id))return!0;let H=t.matches[A],z=O;return Ng(O,ct({currentUrl:v,currentParams:H.params,nextUrl:g,nextParams:z.params},r,{actionResult:C,defaultShouldRevalidate:s||v.pathname+v.search===g.pathname+g.search||v.search!==g.search||n1(H,z)}))}),k=[];return f.forEach((O,A)=>{if(o||!n.some(K=>K.route.id===O.routeId)||c.has(A))return;let F=bo(m,O.path,y);if(!F){k.push({key:A,routeId:O.routeId,path:O.path,matches:null,match:null,controller:null});return}let H=t.fetchers.get(A),z=cf(F,O.path),I=!1;h.has(A)?I=!1:u.includes(A)?I=!0:H&&H.state!=="idle"&&H.data===void 0?I=s:I=Ng(z,ct({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params},r,{actionResult:C,defaultShouldRevalidate:s})),I&&k.push({key:A,routeId:O.routeId,path:O.path,matches:F,match:z,controller:new AbortController})}),[N,k]}function TS(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function n1(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Ng(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Lg(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];Se(i,"No route found in manifest");let o={};for(let s in r){let u=i[s]!==void 0&&s!=="hasErrorBoundary";ni(!u,'Route "'+i.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!u&&!Yb.has(s)&&(o[s]=r[s])}Object.assign(i,o),Object.assign(i,ct({},t(i),{lazy:void 0}))}async function Ss(e,t,n,r,i,o,s,l,u){u===void 0&&(u={});let c,f,h,m=_=>{let C,v=new Promise((g,b)=>C=b);return h=()=>C(),t.signal.addEventListener("abort",h),Promise.race([_({request:t,params:n.params,context:u.requestContext}),v])};try{let _=n.route[e];if(n.route.lazy)if(_){let C,v=await Promise.all([m(_).catch(g=>{C=g}),Lg(n.route,o,i)]);if(C)throw C;f=v[0]}else if(await Lg(n.route,o,i),_=n.route[e],_)f=await m(_);else if(e==="action"){let C=new URL(t.url),v=C.pathname+C.search;throw bn(405,{method:t.method,pathname:v,routeId:n.route.id})}else return{type:lt.data,data:void 0};else if(_)f=await m(_);else{let C=new URL(t.url),v=C.pathname+C.search;throw bn(404,{pathname:v})}Se(f!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(_){c=lt.error,f=_}finally{h&&t.signal.removeEventListener("abort",h)}if(NS(f)){let _=f.status;if(xS.has(_)){let v=f.headers.get("Location");if(Se(v,"Redirects returned/thrown from loaders/actions must have a Location header"),!e1.test(v))v=lf(new URL(t.url),r.slice(0,r.indexOf(n)+1),s,!0,v,l);else if(!u.isStaticRequest){let g=new URL(t.url),b=v.startsWith("//")?new URL(g.protocol+v):new URL(v),T=Jo(b.pathname,s)!=null;b.origin===g.origin&&T&&(v=b.pathname+b.search+b.hash)}if(u.isStaticRequest)throw f.headers.set("Location",v),f;return{type:lt.redirect,status:_,location:v,revalidate:f.headers.get("X-Remix-Revalidate")!==null,reloadDocument:f.headers.get("X-Remix-Reload-Document")!==null}}if(u.isRouteRequest)throw{type:c===lt.error?lt.error:lt.data,response:f};let C;try{let v=f.headers.get("Content-Type");v&&/\bapplication\/json\b/.test(v)?C=await f.json():C=await f.text()}catch(v){return{type:lt.error,error:v}}return c===lt.error?{type:c,error:new Op(_,f.statusText,C),headers:f.headers}:{type:lt.data,data:C,statusCode:f.status,headers:f.headers}}if(c===lt.error)return{type:c,error:f};if(PS(f)){var y,x;return{type:lt.deferred,deferredData:f,statusCode:(y=f.init)==null?void 0:y.status,headers:((x=f.init)==null?void 0:x.headers)&&new Headers(f.init.headers)}}return{type:lt.data,data:f}}function ks(e,t,n,r){let i=e.createURL(r1(t)).toString(),o={signal:n};if(r&&Hn(r.formMethod)){let{formMethod:s,formEncType:l}=r;o.method=s.toUpperCase(),l==="application/json"?(o.headers=new Headers({"Content-Type":l}),o.body=JSON.stringify(r.json)):l==="text/plain"?o.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?o.body=uf(r.formData):o.body=r.formData}return new Request(i,o)}function uf(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Rg(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function OS(e,t,n,r,i){let o={},s=null,l,u=!1,c={};return n.forEach((f,h)=>{let m=t[h].route.id;if(Se(!Li(f),"Cannot handle redirect results in processLoaderData"),So(f)){let y=Gs(e,m),x=f.error;r&&(x=Object.values(r)[0],r=void 0),s=s||{},s[y.route.id]==null&&(s[y.route.id]=x),o[m]=void 0,u||(u=!0,l=Zy(f.error)?f.error.status:500),f.headers&&(c[m]=f.headers)}else Ni(f)?(i.set(m,f.deferredData),o[m]=f.deferredData.data):o[m]=f.data,f.statusCode!=null&&f.statusCode!==200&&!u&&(l=f.statusCode),f.headers&&(c[m]=f.headers)}),r&&(s=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:s,statusCode:l||200,loaderHeaders:c}}function Ag(e,t,n,r,i,o,s,l){let{loaderData:u,errors:c}=OS(t,n,r,i,l);for(let f=0;fr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function $g(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function bn(e,t){let{pathname:n,routeId:r,method:i,type:o}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",i&&n&&r?l="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?l="defer() is not supported in actions":o==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",l='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",i&&n&&r?l="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new Op(e||500,s,new Error(l),!0)}function Mg(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Li(n))return{result:n,idx:t}}}function r1(e){let t=typeof e=="string"?ur(e):e;return Vi(ct({},t,{hash:""}))}function jS(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Ni(e){return e.type===lt.deferred}function So(e){return e.type===lt.error}function Li(e){return(e&&e.type)===lt.redirect}function PS(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function NS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function LS(e){return wS.has(e.toLowerCase())}function Hn(e){return vS.has(e.toLowerCase())}async function Ig(e,t,n,r,i,o){for(let s=0;sh.route.id===u.route.id),f=c!=null&&!n1(c,u)&&(o&&o[u.route.id])!==void 0;if(Ni(l)&&(i||f)){let h=r[s];Se(h,"Expected an AbortSignal for revalidating fetcher deferred result"),await i1(l,h,i).then(m=>{m&&(n[s]=m||n[s])})}}}async function i1(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:lt.data,data:e.deferredData.unwrappedData}}catch(i){return{type:lt.error,error:i}}return{type:lt.data,data:e.deferredData.data}}}function jp(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function cf(e,t){let n=typeof t=="string"?ur(t).search:t.search;if(e[e.length-1].route.index&&jp(n||""))return e[e.length-1];let r=Xy(e);return r[r.length-1]}function zg(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:s}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function rd(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function RS(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Cs(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function AS(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function $r(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function DS(e,t){try{let n=e.sessionStorage.getItem(t1);if(n){let r=JSON.parse(n);for(let[i,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function $S(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(t1,JSON.stringify(n))}catch(r){ni(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.21.1 * * Copyright (c) Remix Software Inc. @@ -56,7 +56,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function va(){return va=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),S.useCallback(function(c,f){if(f===void 0&&(f={}),!l.current)return;if(typeof c=="number"){r.go(c);return}let h=Tp(c,JSON.parse(s),o,f.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:xr([t,h.pathname])),(f.replace?r.replace:r.push)(h,f.state,f)},[t,r,s,o,e])}function FS(){let{matches:e}=S.useContext(li),t=e[e.length-1];return t?t.params:{}}function l1(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=S.useContext(qi),{matches:i}=S.useContext(li),{pathname:o}=ja(),s=JSON.stringify(Cp(i,r.v7_relativeSplatPath));return S.useMemo(()=>Tp(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function BS(e,t){return u1(e,t)}function u1(e,t,n,r){Oa()||Se(!1);let{navigator:i}=S.useContext(qi),{matches:o}=S.useContext(li),s=o[o.length-1],l=s?s.params:{};s&&s.pathname;let u=s?s.pathnameBase:"/";s&&s.route;let c=ja(),f;if(t){var h;let C=typeof t=="string"?ur(t):t;u==="/"||(h=C.pathname)!=null&&h.startsWith(u)||Se(!1),f=C}else f=c;let m=f.pathname||"/",y=u==="/"?m:m.slice(u.length)||"/",x=bo(e,{pathname:y}),_=GS(x&&x.map(C=>Object.assign({},C,{params:Object.assign({},l,C.params),pathname:xr([u,i.encodeLocation?i.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:xr([u,i.encodeLocation?i.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),o,n,r);return t&&_?S.createElement(Iu.Provider,{value:{location:va({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:pt.Pop}},_):_}function US(){let e=qS(),t=Zy(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 S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:i},n):null,o)}const HS=S.createElement(US,null);class WS extends S.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!==void 0?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!==void 0?S.createElement(li.Provider,{value:this.props.routeContext},S.createElement(s1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function VS(e){let{routeContext:t,match:n,children:r}=e,i=S.useContext(Mu);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(li.Provider,{value:t},r)}function GS(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let s=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let f=s.findIndex(h=>h.route.id&&(l==null?void 0:l[h.route.id]));f>=0||Se(!1),s=s.slice(0,Math.min(s.length,f+1))}let u=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((f,h,m)=>{let y,x=!1,_=null,C=null;n&&(y=l&&h.route.id?l[h.route.id]:void 0,_=h.route.errorElement||HS,u&&(c<0&&m===0?(ZS("route-fallback",!1),x=!0,C=null):c===m&&(x=!0,C=h.route.hydrateFallbackElement||null)));let v=t.concat(s.slice(0,m+1)),g=()=>{let b;return y?b=_:x?b=C:h.route.Component?b=S.createElement(h.route.Component,null):h.route.element?b=h.route.element:b=f,S.createElement(VS,{match:h,routeContext:{outlet:f,matches:v,isDataRoute:n!=null},children:b})};return n&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?S.createElement(WS,{location:n.location,revalidation:n.revalidation,component:_,error:y,children:g(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):g()},null)}var c1=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(c1||{}),hu=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}(hu||{});function KS(e){let t=S.useContext(Mu);return t||Se(!1),t}function QS(e){let t=S.useContext(o1);return t||Se(!1),t}function YS(e){let t=S.useContext(li);return t||Se(!1),t}function d1(e){let t=YS(),n=t.matches[t.matches.length-1];return n.route.id||Se(!1),n.route.id}function qS(){var e;let t=S.useContext(s1),n=QS(hu.UseRouteError),r=d1(hu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function XS(){let{router:e}=KS(c1.UseNavigateStable),t=d1(hu.UseNavigateStable),n=S.useRef(!1);return a1(()=>{n.current=!0}),S.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,va({fromRouteId:t},o)))},[e,t])}const Fg={};function ZS(e,t,n){!t&&!Fg[e]&&(Fg[e]=!0)}function As(e){Se(!1)}function f1(e){let{basename:t="/",children:n=null,location:r,navigationType:i=pt.Pop,navigator:o,static:s=!1,future:l}=e;Oa()&&Se(!1);let u=t.replace(/^\/*/,"/"),c=S.useMemo(()=>({basename:u,navigator:o,static:s,future:va({v7_relativeSplatPath:!1},l)}),[u,l,o,s]);typeof r=="string"&&(r=ur(r));let{pathname:f="/",search:h="",hash:m="",state:y=null,key:x="default"}=r,_=S.useMemo(()=>{let C=es(f,u);return C==null?null:{location:{pathname:C,search:h,hash:m,state:y,key:x},navigationType:i}},[u,f,h,m,y,x,i]);return _==null?null:S.createElement(qi.Provider,{value:c},S.createElement(Iu.Provider,{children:n,value:_}))}function JS(e){let{children:t,location:n}=e;return BS(df(t),n)}new Promise(()=>{});function df(e,t){t===void 0&&(t=[]);let n=[];return S.Children.forEach(e,(r,i)=>{if(!S.isValidElement(r))return;let o=[...t,i];if(r.type===S.Fragment){n.push.apply(n,df(r.props.children,o));return}r.type!==As&&Se(!1),!r.props.index||!r.props.children||Se(!1);let s={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&&(s.children=df(r.props.children,o)),n.push(s)}),n}function e2(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:S.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:S.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:S.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function va(){return va=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),S.useCallback(function(c,f){if(f===void 0&&(f={}),!l.current)return;if(typeof c=="number"){r.go(c);return}let h=Tp(c,JSON.parse(s),o,f.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:xr([t,h.pathname])),(f.replace?r.replace:r.push)(h,f.state,f)},[t,r,s,o,e])}function zS(){let{matches:e}=S.useContext(ai),t=e[e.length-1];return t?t.params:{}}function l1(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=S.useContext(qi),{matches:i}=S.useContext(ai),{pathname:o}=ja(),s=JSON.stringify(Cp(i,r.v7_relativeSplatPath));return S.useMemo(()=>Tp(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function FS(e,t){return u1(e,t)}function u1(e,t,n,r){Oa()||Se(!1);let{navigator:i}=S.useContext(qi),{matches:o}=S.useContext(ai),s=o[o.length-1],l=s?s.params:{};s&&s.pathname;let u=s?s.pathnameBase:"/";s&&s.route;let c=ja(),f;if(t){var h;let C=typeof t=="string"?ur(t):t;u==="/"||(h=C.pathname)!=null&&h.startsWith(u)||Se(!1),f=C}else f=c;let m=f.pathname||"/",y=u==="/"?m:m.slice(u.length)||"/",x=bo(e,{pathname:y}),_=VS(x&&x.map(C=>Object.assign({},C,{params:Object.assign({},l,C.params),pathname:xr([u,i.encodeLocation?i.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:xr([u,i.encodeLocation?i.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),o,n,r);return t&&_?S.createElement(Iu.Provider,{value:{location:va({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:pt.Pop}},_):_}function BS(){let e=YS(),t=Zy(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 S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:i},n):null,o)}const US=S.createElement(BS,null);class HS extends S.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!==void 0?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!==void 0?S.createElement(ai.Provider,{value:this.props.routeContext},S.createElement(s1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function WS(e){let{routeContext:t,match:n,children:r}=e,i=S.useContext(Mu);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(ai.Provider,{value:t},r)}function VS(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let s=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let f=s.findIndex(h=>h.route.id&&(l==null?void 0:l[h.route.id]));f>=0||Se(!1),s=s.slice(0,Math.min(s.length,f+1))}let u=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((f,h,m)=>{let y,x=!1,_=null,C=null;n&&(y=l&&h.route.id?l[h.route.id]:void 0,_=h.route.errorElement||US,u&&(c<0&&m===0?(XS("route-fallback",!1),x=!0,C=null):c===m&&(x=!0,C=h.route.hydrateFallbackElement||null)));let v=t.concat(s.slice(0,m+1)),g=()=>{let b;return y?b=_:x?b=C:h.route.Component?b=S.createElement(h.route.Component,null):h.route.element?b=h.route.element:b=f,S.createElement(WS,{match:h,routeContext:{outlet:f,matches:v,isDataRoute:n!=null},children:b})};return n&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?S.createElement(HS,{location:n.location,revalidation:n.revalidation,component:_,error:y,children:g(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):g()},null)}var c1=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(c1||{}),hu=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}(hu||{});function GS(e){let t=S.useContext(Mu);return t||Se(!1),t}function KS(e){let t=S.useContext(o1);return t||Se(!1),t}function QS(e){let t=S.useContext(ai);return t||Se(!1),t}function d1(e){let t=QS(),n=t.matches[t.matches.length-1];return n.route.id||Se(!1),n.route.id}function YS(){var e;let t=S.useContext(s1),n=KS(hu.UseRouteError),r=d1(hu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function qS(){let{router:e}=GS(c1.UseNavigateStable),t=d1(hu.UseNavigateStable),n=S.useRef(!1);return a1(()=>{n.current=!0}),S.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,va({fromRouteId:t},o)))},[e,t])}const Fg={};function XS(e,t,n){!t&&!Fg[e]&&(Fg[e]=!0)}function Rs(e){Se(!1)}function f1(e){let{basename:t="/",children:n=null,location:r,navigationType:i=pt.Pop,navigator:o,static:s=!1,future:l}=e;Oa()&&Se(!1);let u=t.replace(/^\/*/,"/"),c=S.useMemo(()=>({basename:u,navigator:o,static:s,future:va({v7_relativeSplatPath:!1},l)}),[u,l,o,s]);typeof r=="string"&&(r=ur(r));let{pathname:f="/",search:h="",hash:m="",state:y=null,key:x="default"}=r,_=S.useMemo(()=>{let C=Jo(f,u);return C==null?null:{location:{pathname:C,search:h,hash:m,state:y,key:x},navigationType:i}},[u,f,h,m,y,x,i]);return _==null?null:S.createElement(qi.Provider,{value:c},S.createElement(Iu.Provider,{children:n,value:_}))}function ZS(e){let{children:t,location:n}=e;return FS(df(t),n)}new Promise(()=>{});function df(e,t){t===void 0&&(t=[]);let n=[];return S.Children.forEach(e,(r,i)=>{if(!S.isValidElement(r))return;let o=[...t,i];if(r.type===S.Fragment){n.push.apply(n,df(r.props.children,o));return}r.type!==Rs&&Se(!1),!r.props.index||!r.props.children||Se(!1);let s={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&&(s.children=df(r.props.children,o)),n.push(s)}),n}function JS(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:S.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:S.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:S.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.21.1 * * Copyright (c) Remix Software Inc. @@ -65,34 +65,34 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ya(){return ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function n2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function r2(e,t){return e.button===0&&(!t||t==="_self")&&!n2(e)}const i2=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];function o2(e,t){return kS({basename:t==null?void 0:t.basename,future:ya({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Qb({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||s2(),routes:e,mapRouteProperties:e2,window:t==null?void 0:t.window}).initialize()}function s2(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=ya({},t,{errors:a2(t.errors)})),t}function a2(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new Op(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let s=new o(i.message);s.stack="",n[r]=s}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}const l2=S.createContext({isTransitioning:!1}),u2=S.createContext(new Map),c2="startTransition",mu=$_[c2],d2="flushSync",Bg=Gb[d2];function f2(e){mu?mu(e):e()}function Os(e){Bg?Bg(e):e()}class p2{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function h2(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=S.useState(n.state),[s,l]=S.useState(),[u,c]=S.useState({isTransitioning:!1}),[f,h]=S.useState(),[m,y]=S.useState(),[x,_]=S.useState(),C=S.useRef(new Map),{v7_startTransition:v}=r||{},g=S.useCallback(O=>{v?f2(O):O()},[v]),b=S.useCallback((O,A)=>{let{deletedFetchers:F,unstable_flushSync:H,unstable_viewTransitionOpts:z}=A;F.forEach(K=>C.current.delete(K)),O.fetchers.forEach((K,V)=>{K.data!==void 0&&C.current.set(V,K.data)});let I=n.window==null||typeof n.window.document.startViewTransition!="function";if(!z||I){H?Os(()=>o(O)):g(()=>o(O));return}if(H){Os(()=>{m&&(f&&f.resolve(),m.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:z.currentLocation,nextLocation:z.nextLocation})});let K=n.window.document.startViewTransition(()=>{Os(()=>o(O))});K.finished.finally(()=>{Os(()=>{h(void 0),y(void 0),l(void 0),c({isTransitioning:!1})})}),Os(()=>y(K));return}m?(f&&f.resolve(),m.skipTransition(),_({state:O,currentLocation:z.currentLocation,nextLocation:z.nextLocation})):(l(O),c({isTransitioning:!0,flushSync:!1,currentLocation:z.currentLocation,nextLocation:z.nextLocation}))},[n.window,m,f,C,g]);S.useLayoutEffect(()=>n.subscribe(b),[n,b]),S.useEffect(()=>{u.isTransitioning&&!u.flushSync&&h(new p2)},[u]),S.useEffect(()=>{if(f&&s&&n.window){let O=s,A=f.promise,F=n.window.document.startViewTransition(async()=>{g(()=>o(O)),await A});F.finished.finally(()=>{h(void 0),y(void 0),l(void 0),c({isTransitioning:!1})}),y(F)}},[g,s,f,n.window]),S.useEffect(()=>{f&&s&&i.location.key===s.location.key&&f.resolve()},[f,m,i.location,s]),S.useEffect(()=>{!u.isTransitioning&&x&&(l(x.state),c({isTransitioning:!0,flushSync:!1,currentLocation:x.currentLocation,nextLocation:x.nextLocation}),_(void 0))},[u.isTransitioning,x]),S.useEffect(()=>{},[]);let T=S.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:O=>n.navigate(O),push:(O,A,F)=>n.navigate(O,{state:A,preventScrollReset:F==null?void 0:F.preventScrollReset}),replace:(O,A,F)=>n.navigate(O,{replace:!0,state:A,preventScrollReset:F==null?void 0:F.preventScrollReset})}),[n]),N=n.basename||"/",k=S.useMemo(()=>({router:n,navigator:T,static:!1,basename:N}),[n,T,N]);return S.createElement(S.Fragment,null,S.createElement(Mu.Provider,{value:k},S.createElement(o1.Provider,{value:i},S.createElement(u2.Provider,{value:C.current},S.createElement(l2.Provider,{value:u},S.createElement(f1,{basename:N,location:i.location,navigationType:i.historyAction,navigator:T,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},i.initialized||n.future.v7_partialHydration?S.createElement(m2,{routes:n.routes,future:n.future,state:i}):t))))),null)}function m2(e){let{routes:t,future:n,state:r}=e;return u1(t,void 0,r,n)}function g2(e){let{basename:t,children:n,future:r,window:i}=e,o=S.useRef();o.current==null&&(o.current=Kb({window:i,v5Compat:!0}));let s=o.current,[l,u]=S.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},f=S.useCallback(h=>{c&&mu?mu(()=>u(h)):u(h)},[u,c]);return S.useLayoutEffect(()=>s.listen(f),[s,f]),S.createElement(f1,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}const v2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",y2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pp=S.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:l,target:u,to:c,preventScrollReset:f,unstable_viewTransition:h}=t,m=t2(t,i2),{basename:y}=S.useContext(qi),x,_=!1;if(typeof c=="string"&&y2.test(c)&&(x=c,v2))try{let b=new URL(window.location.href),T=c.startsWith("//")?new URL(b.protocol+c):new URL(c),N=es(T.pathname,y);T.origin===b.origin&&N!=null?c=N+T.search+T.hash:_=!0}catch{}let C=IS(c,{relative:i}),v=w2(c,{replace:s,state:l,target:u,preventScrollReset:f,relative:i,unstable_viewTransition:h});function g(b){r&&r(b),b.defaultPrevented||v(b)}return S.createElement("a",ya({},m,{href:x||C,onClick:_||o?r:g,ref:n,target:u}))});var Ug;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ug||(Ug={}));var Hg;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Hg||(Hg={}));function w2(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:l}=t===void 0?{}:t,u=ui(),c=ja(),f=l1(e,{relative:s});return S.useCallback(h=>{if(r2(h,n)){h.preventDefault();let m=r!==void 0?r:ri(c)===ri(f);u(e,{replace:m,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:l})}},[c,u,f,r,i,n,e,o,s,l])}var p1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Av,function(){return function(n){function r(o){if(i[o])return i[o].exports;var s=i[o]={exports:{},id:o,loaded:!1};return n[o].call(s.exports,s,s.exports,r),s.loaded=!0,s.exports}var i={};return r.m=n,r.c=i,r.p="dist/",r(0)}([function(n,r,i){function o(V){return V&&V.__esModule?V:{default:V}}var s=Object.assign||function(V){for(var re=1;re0&&arguments[0]!==void 0&&arguments[0];if(V&&(O=!0),O)return k=(0,b.default)(k,A),(0,v.default)(k,A.once),k},H=function(){k=(0,N.default)(),F()},z=function(){k.forEach(function(V,re){V.node.removeAttribute("data-aos"),V.node.removeAttribute("data-aos-easing"),V.node.removeAttribute("data-aos-duration"),V.node.removeAttribute("data-aos-delay")})},I=function(V){return V===!0||V==="mobile"&&_.default.mobile()||V==="phone"&&_.default.phone()||V==="tablet"&&_.default.tablet()||typeof V=="function"&&V()===!0},K=function(V){A=s(A,V),k=(0,N.default)();var re=document.all&&!window.atob;return I(A.disable)||re?z():(A.disableMutationObserver||y.default.isSupported()||(console.info(` + */function ya(){return ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function t2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function n2(e,t){return e.button===0&&(!t||t==="_self")&&!t2(e)}const r2=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];function i2(e,t){return SS({basename:t==null?void 0:t.basename,future:ya({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Qy({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||o2(),routes:e,mapRouteProperties:JS,window:t==null?void 0:t.window}).initialize()}function o2(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=ya({},t,{errors:s2(t.errors)})),t}function s2(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new Op(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let s=new o(i.message);s.stack="",n[r]=s}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}const a2=S.createContext({isTransitioning:!1}),l2=S.createContext(new Map),u2="startTransition",mu=$_[u2],c2="flushSync",Bg=Gb[c2];function d2(e){mu?mu(e):e()}function Ts(e){Bg?Bg(e):e()}class f2{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function p2(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=S.useState(n.state),[s,l]=S.useState(),[u,c]=S.useState({isTransitioning:!1}),[f,h]=S.useState(),[m,y]=S.useState(),[x,_]=S.useState(),C=S.useRef(new Map),{v7_startTransition:v}=r||{},g=S.useCallback(O=>{v?d2(O):O()},[v]),b=S.useCallback((O,A)=>{let{deletedFetchers:F,unstable_flushSync:H,unstable_viewTransitionOpts:z}=A;F.forEach(K=>C.current.delete(K)),O.fetchers.forEach((K,V)=>{K.data!==void 0&&C.current.set(V,K.data)});let I=n.window==null||typeof n.window.document.startViewTransition!="function";if(!z||I){H?Ts(()=>o(O)):g(()=>o(O));return}if(H){Ts(()=>{m&&(f&&f.resolve(),m.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:z.currentLocation,nextLocation:z.nextLocation})});let K=n.window.document.startViewTransition(()=>{Ts(()=>o(O))});K.finished.finally(()=>{Ts(()=>{h(void 0),y(void 0),l(void 0),c({isTransitioning:!1})})}),Ts(()=>y(K));return}m?(f&&f.resolve(),m.skipTransition(),_({state:O,currentLocation:z.currentLocation,nextLocation:z.nextLocation})):(l(O),c({isTransitioning:!0,flushSync:!1,currentLocation:z.currentLocation,nextLocation:z.nextLocation}))},[n.window,m,f,C,g]);S.useLayoutEffect(()=>n.subscribe(b),[n,b]),S.useEffect(()=>{u.isTransitioning&&!u.flushSync&&h(new f2)},[u]),S.useEffect(()=>{if(f&&s&&n.window){let O=s,A=f.promise,F=n.window.document.startViewTransition(async()=>{g(()=>o(O)),await A});F.finished.finally(()=>{h(void 0),y(void 0),l(void 0),c({isTransitioning:!1})}),y(F)}},[g,s,f,n.window]),S.useEffect(()=>{f&&s&&i.location.key===s.location.key&&f.resolve()},[f,m,i.location,s]),S.useEffect(()=>{!u.isTransitioning&&x&&(l(x.state),c({isTransitioning:!0,flushSync:!1,currentLocation:x.currentLocation,nextLocation:x.nextLocation}),_(void 0))},[u.isTransitioning,x]),S.useEffect(()=>{},[]);let T=S.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:O=>n.navigate(O),push:(O,A,F)=>n.navigate(O,{state:A,preventScrollReset:F==null?void 0:F.preventScrollReset}),replace:(O,A,F)=>n.navigate(O,{replace:!0,state:A,preventScrollReset:F==null?void 0:F.preventScrollReset})}),[n]),N=n.basename||"/",k=S.useMemo(()=>({router:n,navigator:T,static:!1,basename:N}),[n,T,N]);return S.createElement(S.Fragment,null,S.createElement(Mu.Provider,{value:k},S.createElement(o1.Provider,{value:i},S.createElement(l2.Provider,{value:C.current},S.createElement(a2.Provider,{value:u},S.createElement(f1,{basename:N,location:i.location,navigationType:i.historyAction,navigator:T,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},i.initialized||n.future.v7_partialHydration?S.createElement(h2,{routes:n.routes,future:n.future,state:i}):t))))),null)}function h2(e){let{routes:t,future:n,state:r}=e;return u1(t,void 0,r,n)}function m2(e){let{basename:t,children:n,future:r,window:i}=e,o=S.useRef();o.current==null&&(o.current=Qy({window:i,v5Compat:!0}));let s=o.current,[l,u]=S.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},f=S.useCallback(h=>{c&&mu?mu(()=>u(h)):u(h)},[u,c]);return S.useLayoutEffect(()=>s.listen(f),[s,f]),S.createElement(f1,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}const g2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",v2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pp=S.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:l,target:u,to:c,preventScrollReset:f,unstable_viewTransition:h}=t,m=e2(t,r2),{basename:y}=S.useContext(qi),x,_=!1;if(typeof c=="string"&&v2.test(c)&&(x=c,g2))try{let b=new URL(window.location.href),T=c.startsWith("//")?new URL(b.protocol+c):new URL(c),N=Jo(T.pathname,y);T.origin===b.origin&&N!=null?c=N+T.search+T.hash:_=!0}catch{}let C=MS(c,{relative:i}),v=y2(c,{replace:s,state:l,target:u,preventScrollReset:f,relative:i,unstable_viewTransition:h});function g(b){r&&r(b),b.defaultPrevented||v(b)}return S.createElement("a",ya({},m,{href:x||C,onClick:_||o?r:g,ref:n,target:u}))});var Ug;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ug||(Ug={}));var Hg;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Hg||(Hg={}));function y2(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:l}=t===void 0?{}:t,u=li(),c=ja(),f=l1(e,{relative:s});return S.useCallback(h=>{if(n2(h,n)){h.preventDefault();let m=r!==void 0?r:Vi(c)===Vi(f);u(e,{replace:m,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:l})}},[c,u,f,r,i,n,e,o,s,l])}var p1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Av,function(){return function(n){function r(o){if(i[o])return i[o].exports;var s=i[o]={exports:{},id:o,loaded:!1};return n[o].call(s.exports,s,s.exports,r),s.loaded=!0,s.exports}var i={};return r.m=n,r.c=i,r.p="dist/",r(0)}([function(n,r,i){function o(V){return V&&V.__esModule?V:{default:V}}var s=Object.assign||function(V){for(var re=1;re0&&arguments[0]!==void 0&&arguments[0];if(V&&(O=!0),O)return k=(0,b.default)(k,A),(0,v.default)(k,A.once),k},H=function(){k=(0,N.default)(),F()},z=function(){k.forEach(function(V,re){V.node.removeAttribute("data-aos"),V.node.removeAttribute("data-aos-easing"),V.node.removeAttribute("data-aos-duration"),V.node.removeAttribute("data-aos-delay")})},I=function(V){return V===!0||V==="mobile"&&_.default.mobile()||V==="phone"&&_.default.phone()||V==="tablet"&&_.default.tablet()||typeof V=="function"&&V()===!0},K=function(V){A=s(A,V),k=(0,N.default)();var re=document.all&&!window.atob;return I(A.disable)||re?z():(A.disableMutationObserver||y.default.isSupported()||(console.info(` aos: MutationObserver is not supported on this browser, code mutations observing has been disabled. You may have to call "refreshHard()" by yourself. - `),A.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",A.easing),document.querySelector("body").setAttribute("data-aos-duration",A.duration),document.querySelector("body").setAttribute("data-aos-delay",A.delay),A.startEvent==="DOMContentLoaded"&&["complete","interactive"].indexOf(document.readyState)>-1?F(!0):A.startEvent==="load"?window.addEventListener(A.startEvent,function(){F(!0)}):document.addEventListener(A.startEvent,function(){F(!0)}),window.addEventListener("resize",(0,h.default)(F,A.debounceDelay,!0)),window.addEventListener("orientationchange",(0,h.default)(F,A.debounceDelay,!0)),window.addEventListener("scroll",(0,c.default)(function(){(0,v.default)(k,A.once)},A.throttleDelay)),A.disableMutationObserver||y.default.ready("[data-aos]",H),k)};n.exports={init:K,refresh:F,refreshHard:H}},function(n,r){},,,,,function(n,r){(function(i){function o(I,K,V){function re(Ne){var ze=ae,gt=ye;return ae=ye=void 0,mt=Ne,xe=I.apply(gt,ze)}function oe(Ne){return mt=Ne,G=setTimeout(q,K),Te?re(Ne):xe}function ne(Ne){var ze=Ne-We,gt=Ne-mt,cr=K-ze;return xt?H(cr,ue-gt):cr}function U(Ne){var ze=Ne-We,gt=Ne-mt;return We===void 0||ze>=K||ze<0||xt&>>=ue}function q(){var Ne=z();return U(Ne)?R(Ne):void(G=setTimeout(q,ne(Ne)))}function R(Ne){return G=void 0,Pe&&ae?re(Ne):(ae=ye=void 0,xe)}function se(){G!==void 0&&clearTimeout(G),mt=0,ae=We=ye=G=void 0}function ve(){return G===void 0?xe:R(z())}function Re(){var Ne=z(),ze=U(Ne);if(ae=arguments,ye=this,We=Ne,ze){if(G===void 0)return oe(We);if(xt)return G=setTimeout(q,K),re(We)}return G===void 0&&(G=setTimeout(q,K)),xe}var ae,ye,ue,xe,G,We,mt=0,Te=!1,xt=!1,Pe=!0;if(typeof I!="function")throw new TypeError(m);return K=f(K)||0,l(V)&&(Te=!!V.leading,xt="maxWait"in V,ue=xt?F(f(V.maxWait)||0,K):ue,Pe="trailing"in V?!!V.trailing:Pe),Re.cancel=se,Re.flush=ve,Re}function s(I,K,V){var re=!0,oe=!0;if(typeof I!="function")throw new TypeError(m);return l(V)&&(re="leading"in V?!!V.leading:re,oe="trailing"in V?!!V.trailing:oe),o(I,K,{leading:re,maxWait:K,trailing:oe})}function l(I){var K=typeof I>"u"?"undefined":h(I);return!!I&&(K=="object"||K=="function")}function u(I){return!!I&&(typeof I>"u"?"undefined":h(I))=="object"}function c(I){return(typeof I>"u"?"undefined":h(I))=="symbol"||u(I)&&A.call(I)==x}function f(I){if(typeof I=="number")return I;if(c(I))return y;if(l(I)){var K=typeof I.valueOf=="function"?I.valueOf():I;I=l(K)?K+"":K}if(typeof I!="string")return I===0?I:+I;I=I.replace(_,"");var V=v.test(I);return V||g.test(I)?b(I.slice(2),V?2:8):C.test(I)?y:+I}var h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(I){return typeof I}:function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},m="Expected a function",y=NaN,x="[object Symbol]",_=/^\s+|\s+$/g,C=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,g=/^0o[0-7]+$/i,b=parseInt,T=(typeof i>"u"?"undefined":h(i))=="object"&&i&&i.Object===Object&&i,N=(typeof self>"u"?"undefined":h(self))=="object"&&self&&self.Object===Object&&self,k=T||N||Function("return this")(),O=Object.prototype,A=O.toString,F=Math.max,H=Math.min,z=function(){return k.Date.now()};n.exports=s}).call(r,function(){return this}())},function(n,r){(function(i){function o(z,I,K){function V(Pe){var Ne=Re,ze=ae;return Re=ae=void 0,We=Pe,ue=z.apply(ze,Ne)}function re(Pe){return We=Pe,xe=setTimeout(U,I),mt?V(Pe):ue}function oe(Pe){var Ne=Pe-G,ze=Pe-We,gt=I-Ne;return Te?F(gt,ye-ze):gt}function ne(Pe){var Ne=Pe-G,ze=Pe-We;return G===void 0||Ne>=I||Ne<0||Te&&ze>=ye}function U(){var Pe=H();return ne(Pe)?q(Pe):void(xe=setTimeout(U,oe(Pe)))}function q(Pe){return xe=void 0,xt&&Re?V(Pe):(Re=ae=void 0,ue)}function R(){xe!==void 0&&clearTimeout(xe),We=0,Re=G=ae=xe=void 0}function se(){return xe===void 0?ue:q(H())}function ve(){var Pe=H(),Ne=ne(Pe);if(Re=arguments,ae=this,G=Pe,Ne){if(xe===void 0)return re(G);if(Te)return xe=setTimeout(U,I),V(G)}return xe===void 0&&(xe=setTimeout(U,I)),ue}var Re,ae,ye,ue,xe,G,We=0,mt=!1,Te=!1,xt=!0;if(typeof z!="function")throw new TypeError(h);return I=c(I)||0,s(K)&&(mt=!!K.leading,Te="maxWait"in K,ye=Te?A(c(K.maxWait)||0,I):ye,xt="trailing"in K?!!K.trailing:xt),ve.cancel=R,ve.flush=se,ve}function s(z){var I=typeof z>"u"?"undefined":f(z);return!!z&&(I=="object"||I=="function")}function l(z){return!!z&&(typeof z>"u"?"undefined":f(z))=="object"}function u(z){return(typeof z>"u"?"undefined":f(z))=="symbol"||l(z)&&O.call(z)==y}function c(z){if(typeof z=="number")return z;if(u(z))return m;if(s(z)){var I=typeof z.valueOf=="function"?z.valueOf():z;z=s(I)?I+"":I}if(typeof z!="string")return z===0?z:+z;z=z.replace(x,"");var K=C.test(z);return K||v.test(z)?g(z.slice(2),K?2:8):_.test(z)?m:+z}var f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},h="Expected a function",m=NaN,y="[object Symbol]",x=/^\s+|\s+$/g,_=/^[-+]0x[0-9a-f]+$/i,C=/^0b[01]+$/i,v=/^0o[0-7]+$/i,g=parseInt,b=(typeof i>"u"?"undefined":f(i))=="object"&&i&&i.Object===Object&&i,T=(typeof self>"u"?"undefined":f(self))=="object"&&self&&self.Object===Object&&self,N=b||T||Function("return this")(),k=Object.prototype,O=k.toString,A=Math.max,F=Math.min,H=function(){return N.Date.now()};n.exports=o}).call(r,function(){return this}())},function(n,r){function i(f){var h=void 0,m=void 0;for(h=0;hs.position?s.node.classList.add("aos-animate"):typeof c<"u"&&(c==="false"||!u&&c!=="true")&&s.node.classList.remove("aos-animate")},o=function(s,l){var u=window.pageYOffset,c=window.innerHeight;s.forEach(function(f,h){i(f,c+u,l)})};r.default=o},function(n,r,i){function o(c){return c&&c.__esModule?c:{default:c}}Object.defineProperty(r,"__esModule",{value:!0});var s=i(12),l=o(s),u=function(c,f){return c.forEach(function(h,m){h.node.classList.add("aos-init"),h.position=(0,l.default)(h.node,f.offset)}),c};r.default=u},function(n,r,i){function o(c){return c&&c.__esModule?c:{default:c}}Object.defineProperty(r,"__esModule",{value:!0});var s=i(13),l=o(s),u=function(c,f){var h=0,m=0,y=window.innerHeight,x={offset:c.getAttribute("data-aos-offset"),anchor:c.getAttribute("data-aos-anchor"),anchorPlacement:c.getAttribute("data-aos-anchor-placement")};switch(x.offset&&!isNaN(x.offset)&&(m=parseInt(x.offset)),x.anchor&&document.querySelectorAll(x.anchor)&&(c=document.querySelectorAll(x.anchor)[0]),h=(0,l.default)(c).top,x.anchorPlacement){case"top-bottom":break;case"center-bottom":h+=c.offsetHeight/2;break;case"bottom-bottom":h+=c.offsetHeight;break;case"top-center":h+=y/2;break;case"bottom-center":h+=y/2+c.offsetHeight;break;case"center-center":h+=y/2+c.offsetHeight/2;break;case"top-top":h+=y;break;case"bottom-top":h+=c.offsetHeight+y;break;case"center-top":h+=c.offsetHeight/2+y}return x.anchorPlacement||x.offset||isNaN(f)||(m=f),h+m};r.default=u},function(n,r){Object.defineProperty(r,"__esModule",{value:!0});var i=function(o){for(var s=0,l=0;o&&!isNaN(o.offsetLeft)&&!isNaN(o.offsetTop);)s+=o.offsetLeft-(o.tagName!="BODY"?o.scrollLeft:0),l+=o.offsetTop-(o.tagName!="BODY"?o.scrollTop:0),o=o.offsetParent;return{top:l,left:s}};r.default=i},function(n,r){Object.defineProperty(r,"__esModule",{value:!0});var i=function(o){return o=o||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(o,function(s){return{node:s}})};r.default=i}])})})(p1);var x2=p1.exports;const Wg=qo(x2);var _2={exports:{}};/*! + `),A.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",A.easing),document.querySelector("body").setAttribute("data-aos-duration",A.duration),document.querySelector("body").setAttribute("data-aos-delay",A.delay),A.startEvent==="DOMContentLoaded"&&["complete","interactive"].indexOf(document.readyState)>-1?F(!0):A.startEvent==="load"?window.addEventListener(A.startEvent,function(){F(!0)}):document.addEventListener(A.startEvent,function(){F(!0)}),window.addEventListener("resize",(0,h.default)(F,A.debounceDelay,!0)),window.addEventListener("orientationchange",(0,h.default)(F,A.debounceDelay,!0)),window.addEventListener("scroll",(0,c.default)(function(){(0,v.default)(k,A.once)},A.throttleDelay)),A.disableMutationObserver||y.default.ready("[data-aos]",H),k)};n.exports={init:K,refresh:F,refreshHard:H}},function(n,r){},,,,,function(n,r){(function(i){function o(I,K,V){function re(Ne){var ze=ae,gt=ye;return ae=ye=void 0,mt=Ne,xe=I.apply(gt,ze)}function oe(Ne){return mt=Ne,G=setTimeout(q,K),Te?re(Ne):xe}function ne(Ne){var ze=Ne-We,gt=Ne-mt,cr=K-ze;return xt?H(cr,ue-gt):cr}function U(Ne){var ze=Ne-We,gt=Ne-mt;return We===void 0||ze>=K||ze<0||xt&>>=ue}function q(){var Ne=z();return U(Ne)?R(Ne):void(G=setTimeout(q,ne(Ne)))}function R(Ne){return G=void 0,Pe&&ae?re(Ne):(ae=ye=void 0,xe)}function se(){G!==void 0&&clearTimeout(G),mt=0,ae=We=ye=G=void 0}function ve(){return G===void 0?xe:R(z())}function Re(){var Ne=z(),ze=U(Ne);if(ae=arguments,ye=this,We=Ne,ze){if(G===void 0)return oe(We);if(xt)return G=setTimeout(q,K),re(We)}return G===void 0&&(G=setTimeout(q,K)),xe}var ae,ye,ue,xe,G,We,mt=0,Te=!1,xt=!1,Pe=!0;if(typeof I!="function")throw new TypeError(m);return K=f(K)||0,l(V)&&(Te=!!V.leading,xt="maxWait"in V,ue=xt?F(f(V.maxWait)||0,K):ue,Pe="trailing"in V?!!V.trailing:Pe),Re.cancel=se,Re.flush=ve,Re}function s(I,K,V){var re=!0,oe=!0;if(typeof I!="function")throw new TypeError(m);return l(V)&&(re="leading"in V?!!V.leading:re,oe="trailing"in V?!!V.trailing:oe),o(I,K,{leading:re,maxWait:K,trailing:oe})}function l(I){var K=typeof I>"u"?"undefined":h(I);return!!I&&(K=="object"||K=="function")}function u(I){return!!I&&(typeof I>"u"?"undefined":h(I))=="object"}function c(I){return(typeof I>"u"?"undefined":h(I))=="symbol"||u(I)&&A.call(I)==x}function f(I){if(typeof I=="number")return I;if(c(I))return y;if(l(I)){var K=typeof I.valueOf=="function"?I.valueOf():I;I=l(K)?K+"":K}if(typeof I!="string")return I===0?I:+I;I=I.replace(_,"");var V=v.test(I);return V||g.test(I)?b(I.slice(2),V?2:8):C.test(I)?y:+I}var h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(I){return typeof I}:function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},m="Expected a function",y=NaN,x="[object Symbol]",_=/^\s+|\s+$/g,C=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,g=/^0o[0-7]+$/i,b=parseInt,T=(typeof i>"u"?"undefined":h(i))=="object"&&i&&i.Object===Object&&i,N=(typeof self>"u"?"undefined":h(self))=="object"&&self&&self.Object===Object&&self,k=T||N||Function("return this")(),O=Object.prototype,A=O.toString,F=Math.max,H=Math.min,z=function(){return k.Date.now()};n.exports=s}).call(r,function(){return this}())},function(n,r){(function(i){function o(z,I,K){function V(Pe){var Ne=Re,ze=ae;return Re=ae=void 0,We=Pe,ue=z.apply(ze,Ne)}function re(Pe){return We=Pe,xe=setTimeout(U,I),mt?V(Pe):ue}function oe(Pe){var Ne=Pe-G,ze=Pe-We,gt=I-Ne;return Te?F(gt,ye-ze):gt}function ne(Pe){var Ne=Pe-G,ze=Pe-We;return G===void 0||Ne>=I||Ne<0||Te&&ze>=ye}function U(){var Pe=H();return ne(Pe)?q(Pe):void(xe=setTimeout(U,oe(Pe)))}function q(Pe){return xe=void 0,xt&&Re?V(Pe):(Re=ae=void 0,ue)}function R(){xe!==void 0&&clearTimeout(xe),We=0,Re=G=ae=xe=void 0}function se(){return xe===void 0?ue:q(H())}function ve(){var Pe=H(),Ne=ne(Pe);if(Re=arguments,ae=this,G=Pe,Ne){if(xe===void 0)return re(G);if(Te)return xe=setTimeout(U,I),V(G)}return xe===void 0&&(xe=setTimeout(U,I)),ue}var Re,ae,ye,ue,xe,G,We=0,mt=!1,Te=!1,xt=!0;if(typeof z!="function")throw new TypeError(h);return I=c(I)||0,s(K)&&(mt=!!K.leading,Te="maxWait"in K,ye=Te?A(c(K.maxWait)||0,I):ye,xt="trailing"in K?!!K.trailing:xt),ve.cancel=R,ve.flush=se,ve}function s(z){var I=typeof z>"u"?"undefined":f(z);return!!z&&(I=="object"||I=="function")}function l(z){return!!z&&(typeof z>"u"?"undefined":f(z))=="object"}function u(z){return(typeof z>"u"?"undefined":f(z))=="symbol"||l(z)&&O.call(z)==y}function c(z){if(typeof z=="number")return z;if(u(z))return m;if(s(z)){var I=typeof z.valueOf=="function"?z.valueOf():z;z=s(I)?I+"":I}if(typeof z!="string")return z===0?z:+z;z=z.replace(x,"");var K=C.test(z);return K||v.test(z)?g(z.slice(2),K?2:8):_.test(z)?m:+z}var f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},h="Expected a function",m=NaN,y="[object Symbol]",x=/^\s+|\s+$/g,_=/^[-+]0x[0-9a-f]+$/i,C=/^0b[01]+$/i,v=/^0o[0-7]+$/i,g=parseInt,b=(typeof i>"u"?"undefined":f(i))=="object"&&i&&i.Object===Object&&i,T=(typeof self>"u"?"undefined":f(self))=="object"&&self&&self.Object===Object&&self,N=b||T||Function("return this")(),k=Object.prototype,O=k.toString,A=Math.max,F=Math.min,H=function(){return N.Date.now()};n.exports=o}).call(r,function(){return this}())},function(n,r){function i(f){var h=void 0,m=void 0;for(h=0;hs.position?s.node.classList.add("aos-animate"):typeof c<"u"&&(c==="false"||!u&&c!=="true")&&s.node.classList.remove("aos-animate")},o=function(s,l){var u=window.pageYOffset,c=window.innerHeight;s.forEach(function(f,h){i(f,c+u,l)})};r.default=o},function(n,r,i){function o(c){return c&&c.__esModule?c:{default:c}}Object.defineProperty(r,"__esModule",{value:!0});var s=i(12),l=o(s),u=function(c,f){return c.forEach(function(h,m){h.node.classList.add("aos-init"),h.position=(0,l.default)(h.node,f.offset)}),c};r.default=u},function(n,r,i){function o(c){return c&&c.__esModule?c:{default:c}}Object.defineProperty(r,"__esModule",{value:!0});var s=i(13),l=o(s),u=function(c,f){var h=0,m=0,y=window.innerHeight,x={offset:c.getAttribute("data-aos-offset"),anchor:c.getAttribute("data-aos-anchor"),anchorPlacement:c.getAttribute("data-aos-anchor-placement")};switch(x.offset&&!isNaN(x.offset)&&(m=parseInt(x.offset)),x.anchor&&document.querySelectorAll(x.anchor)&&(c=document.querySelectorAll(x.anchor)[0]),h=(0,l.default)(c).top,x.anchorPlacement){case"top-bottom":break;case"center-bottom":h+=c.offsetHeight/2;break;case"bottom-bottom":h+=c.offsetHeight;break;case"top-center":h+=y/2;break;case"bottom-center":h+=y/2+c.offsetHeight;break;case"center-center":h+=y/2+c.offsetHeight/2;break;case"top-top":h+=y;break;case"bottom-top":h+=c.offsetHeight+y;break;case"center-top":h+=c.offsetHeight/2+y}return x.anchorPlacement||x.offset||isNaN(f)||(m=f),h+m};r.default=u},function(n,r){Object.defineProperty(r,"__esModule",{value:!0});var i=function(o){for(var s=0,l=0;o&&!isNaN(o.offsetLeft)&&!isNaN(o.offsetTop);)s+=o.offsetLeft-(o.tagName!="BODY"?o.scrollLeft:0),l+=o.offsetTop-(o.tagName!="BODY"?o.scrollTop:0),o=o.offsetParent;return{top:l,left:s}};r.default=i},function(n,r){Object.defineProperty(r,"__esModule",{value:!0});var i=function(o){return o=o||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(o,function(s){return{node:s}})};r.default=i}])})})(p1);var w2=p1.exports;const Wg=Yo(w2);var x2={exports:{}};/*! * Bootstrap v5.3.2 (https://getbootstrap.com/) * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */(function(e,t){(function(n,r){e.exports=r()})(Av,function(){const n=new Map,r={set(p,a,d){n.has(p)||n.set(p,new Map);const w=n.get(p);w.has(a)||w.size===0?w.set(a,d):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(w.keys())[0]}.`)},get:(p,a)=>n.has(p)&&n.get(p).get(a)||null,remove(p,a){if(!n.has(p))return;const d=n.get(p);d.delete(a),d.size===0&&n.delete(p)}},i="transitionend",o=p=>(p&&window.CSS&&window.CSS.escape&&(p=p.replace(/#([^\s"#']+)/g,(a,d)=>`#${CSS.escape(d)}`)),p),s=p=>{p.dispatchEvent(new Event(i))},l=p=>!(!p||typeof p!="object")&&(p.jquery!==void 0&&(p=p[0]),p.nodeType!==void 0),u=p=>l(p)?p.jquery?p[0]:p:typeof p=="string"&&p.length>0?document.querySelector(o(p)):null,c=p=>{if(!l(p)||p.getClientRects().length===0)return!1;const a=getComputedStyle(p).getPropertyValue("visibility")==="visible",d=p.closest("details:not([open])");if(!d)return a;if(d!==p){const w=p.closest("summary");if(w&&w.parentNode!==d||w===null)return!1}return a},f=p=>!p||p.nodeType!==Node.ELEMENT_NODE||!!p.classList.contains("disabled")||(p.disabled!==void 0?p.disabled:p.hasAttribute("disabled")&&p.getAttribute("disabled")!=="false"),h=p=>{if(!document.documentElement.attachShadow)return null;if(typeof p.getRootNode=="function"){const a=p.getRootNode();return a instanceof ShadowRoot?a:null}return p instanceof ShadowRoot?p:p.parentNode?h(p.parentNode):null},m=()=>{},y=p=>{p.offsetHeight},x=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,_=[],C=()=>document.documentElement.dir==="rtl",v=p=>{var a;a=()=>{const d=x();if(d){const w=p.NAME,j=d.fn[w];d.fn[w]=p.jQueryInterface,d.fn[w].Constructor=p,d.fn[w].noConflict=()=>(d.fn[w]=j,p.jQueryInterface)}},document.readyState==="loading"?(_.length||document.addEventListener("DOMContentLoaded",()=>{for(const d of _)d()}),_.push(a)):a()},g=(p,a=[],d=p)=>typeof p=="function"?p(...a):d,b=(p,a,d=!0)=>{if(!d)return void g(p);const w=($=>{if(!$)return 0;let{transitionDuration:B,transitionDelay:Q}=window.getComputedStyle($);const J=Number.parseFloat(B),te=Number.parseFloat(Q);return J||te?(B=B.split(",")[0],Q=Q.split(",")[0],1e3*(Number.parseFloat(B)+Number.parseFloat(Q))):0})(a)+5;let j=!1;const P=({target:$})=>{$===a&&(j=!0,a.removeEventListener(i,P),g(p))};a.addEventListener(i,P),setTimeout(()=>{j||s(a)},w)},T=(p,a,d,w)=>{const j=p.length;let P=p.indexOf(a);return P===-1?!d&&w?p[j-1]:p[0]:(P+=d?1:-1,w&&(P=(P+j)%j),p[Math.max(0,Math.min(P,j-1))])},N=/[^.]*(?=\..*)\.|.*/,k=/\..*/,O=/::\d+$/,A={};let F=1;const H={mouseenter:"mouseover",mouseleave:"mouseout"},z=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function I(p,a){return a&&`${a}::${F++}`||p.uidEvent||F++}function K(p){const a=I(p);return p.uidEvent=a,A[a]=A[a]||{},A[a]}function V(p,a,d=null){return Object.values(p).find(w=>w.callable===a&&w.delegationSelector===d)}function re(p,a,d){const w=typeof a=="string",j=w?d:a||d;let P=q(p);return z.has(P)||(P=p),[w,j,P]}function oe(p,a,d,w,j){if(typeof a!="string"||!p)return;let[P,$,B]=re(a,d,w);a in H&&($=(me=>function(fe){if(!fe.relatedTarget||fe.relatedTarget!==fe.delegateTarget&&!fe.delegateTarget.contains(fe.relatedTarget))return me.call(this,fe)})($));const Q=K(p),J=Q[B]||(Q[B]={}),te=V(J,$,P?d:null);if(te)return void(te.oneOff=te.oneOff&&j);const X=I($,a.replace(N,"")),_e=P?function(ce,me,fe){return function ge(Ve){const Ye=ce.querySelectorAll(me);for(let{target:Ce}=Ve;Ce&&Ce!==this;Ce=Ce.parentNode)for(const Ie of Ye)if(Ie===Ce)return se(Ve,{delegateTarget:Ce}),ge.oneOff&&R.off(ce,Ve.type,me,fe),fe.apply(Ce,[Ve])}}(p,d,$):function(ce,me){return function fe(ge){return se(ge,{delegateTarget:ce}),fe.oneOff&&R.off(ce,ge.type,me),me.apply(ce,[ge])}}(p,$);_e.delegationSelector=P?d:null,_e.callable=$,_e.oneOff=j,_e.uidEvent=X,J[X]=_e,p.addEventListener(B,_e,P)}function ne(p,a,d,w,j){const P=V(a[d],w,j);P&&(p.removeEventListener(d,P,!!j),delete a[d][P.uidEvent])}function U(p,a,d,w){const j=a[d]||{};for(const[P,$]of Object.entries(j))P.includes(w)&&ne(p,a,d,$.callable,$.delegationSelector)}function q(p){return p=p.replace(k,""),H[p]||p}const R={on(p,a,d,w){oe(p,a,d,w,!1)},one(p,a,d,w){oe(p,a,d,w,!0)},off(p,a,d,w){if(typeof a!="string"||!p)return;const[j,P,$]=re(a,d,w),B=$!==a,Q=K(p),J=Q[$]||{},te=a.startsWith(".");if(P===void 0){if(te)for(const X of Object.keys(Q))U(p,Q,X,a.slice(1));for(const[X,_e]of Object.entries(J)){const ce=X.replace(O,"");B&&!a.includes(ce)||ne(p,Q,$,_e.callable,_e.delegationSelector)}}else{if(!Object.keys(J).length)return;ne(p,Q,$,P,j?d:null)}},trigger(p,a,d){if(typeof a!="string"||!p)return null;const w=x();let j=null,P=!0,$=!0,B=!1;a!==q(a)&&w&&(j=w.Event(a,d),w(p).trigger(j),P=!j.isPropagationStopped(),$=!j.isImmediatePropagationStopped(),B=j.isDefaultPrevented());const Q=se(new Event(a,{bubbles:P,cancelable:!0}),d);return B&&Q.preventDefault(),$&&p.dispatchEvent(Q),Q.defaultPrevented&&j&&j.preventDefault(),Q}};function se(p,a={}){for(const[d,w]of Object.entries(a))try{p[d]=w}catch{Object.defineProperty(p,d,{configurable:!0,get:()=>w})}return p}function ve(p){if(p==="true")return!0;if(p==="false")return!1;if(p===Number(p).toString())return Number(p);if(p===""||p==="null")return null;if(typeof p!="string")return p;try{return JSON.parse(decodeURIComponent(p))}catch{return p}}function Re(p){return p.replace(/[A-Z]/g,a=>`-${a.toLowerCase()}`)}const ae={setDataAttribute(p,a,d){p.setAttribute(`data-bs-${Re(a)}`,d)},removeDataAttribute(p,a){p.removeAttribute(`data-bs-${Re(a)}`)},getDataAttributes(p){if(!p)return{};const a={},d=Object.keys(p.dataset).filter(w=>w.startsWith("bs")&&!w.startsWith("bsConfig"));for(const w of d){let j=w.replace(/^bs/,"");j=j.charAt(0).toLowerCase()+j.slice(1,j.length),a[j]=ve(p.dataset[w])}return a},getDataAttribute:(p,a)=>ve(p.getAttribute(`data-bs-${Re(a)}`))};class ye{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(a){return a=this._mergeConfigObj(a),a=this._configAfterMerge(a),this._typeCheckConfig(a),a}_configAfterMerge(a){return a}_mergeConfigObj(a,d){const w=l(d)?ae.getDataAttribute(d,"config"):{};return{...this.constructor.Default,...typeof w=="object"?w:{},...l(d)?ae.getDataAttributes(d):{},...typeof a=="object"?a:{}}}_typeCheckConfig(a,d=this.constructor.DefaultType){for(const[j,P]of Object.entries(d)){const $=a[j],B=l($)?"element":(w=$)==null?`${w}`:Object.prototype.toString.call(w).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(P).test(B))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${j}" provided type "${B}" but expected type "${P}".`)}var w}}class ue extends ye{constructor(a,d){super(),(a=u(a))&&(this._element=a,this._config=this._getConfig(d),r.set(this._element,this.constructor.DATA_KEY,this))}dispose(){r.remove(this._element,this.constructor.DATA_KEY),R.off(this._element,this.constructor.EVENT_KEY);for(const a of Object.getOwnPropertyNames(this))this[a]=null}_queueCallback(a,d,w=!0){b(a,d,w)}_getConfig(a){return a=this._mergeConfigObj(a,this._element),a=this._configAfterMerge(a),this._typeCheckConfig(a),a}static getInstance(a){return r.get(u(a),this.DATA_KEY)}static getOrCreateInstance(a,d={}){return this.getInstance(a)||new this(a,typeof d=="object"?d:null)}static get VERSION(){return"5.3.2"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(a){return`${a}${this.EVENT_KEY}`}}const xe=p=>{let a=p.getAttribute("data-bs-target");if(!a||a==="#"){let d=p.getAttribute("href");if(!d||!d.includes("#")&&!d.startsWith("."))return null;d.includes("#")&&!d.startsWith("#")&&(d=`#${d.split("#")[1]}`),a=d&&d!=="#"?o(d.trim()):null}return a},G={find:(p,a=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(a,p)),findOne:(p,a=document.documentElement)=>Element.prototype.querySelector.call(a,p),children:(p,a)=>[].concat(...p.children).filter(d=>d.matches(a)),parents(p,a){const d=[];let w=p.parentNode.closest(a);for(;w;)d.push(w),w=w.parentNode.closest(a);return d},prev(p,a){let d=p.previousElementSibling;for(;d;){if(d.matches(a))return[d];d=d.previousElementSibling}return[]},next(p,a){let d=p.nextElementSibling;for(;d;){if(d.matches(a))return[d];d=d.nextElementSibling}return[]},focusableChildren(p){const a=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(d=>`${d}:not([tabindex^="-"])`).join(",");return this.find(a,p).filter(d=>!f(d)&&c(d))},getSelectorFromElement(p){const a=xe(p);return a&&G.findOne(a)?a:null},getElementFromSelector(p){const a=xe(p);return a?G.findOne(a):null},getMultipleElementsFromSelector(p){const a=xe(p);return a?G.find(a):[]}},We=(p,a="hide")=>{const d=`click.dismiss${p.EVENT_KEY}`,w=p.NAME;R.on(document,d,`[data-bs-dismiss="${w}"]`,function(j){if(["A","AREA"].includes(this.tagName)&&j.preventDefault(),f(this))return;const P=G.getElementFromSelector(this)||this.closest(`.${w}`);p.getOrCreateInstance(P)[a]()})},mt=".bs.alert",Te=`close${mt}`,xt=`closed${mt}`;class Pe extends ue{static get NAME(){return"alert"}close(){if(R.trigger(this._element,Te).defaultPrevented)return;this._element.classList.remove("show");const a=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,a)}_destroyElement(){this._element.remove(),R.trigger(this._element,xt),this.dispose()}static jQueryInterface(a){return this.each(function(){const d=Pe.getOrCreateInstance(this);if(typeof a=="string"){if(d[a]===void 0||a.startsWith("_")||a==="constructor")throw new TypeError(`No method named "${a}"`);d[a](this)}})}}We(Pe,"close"),v(Pe);const Ne='[data-bs-toggle="button"]';class ze extends ue{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(a){return this.each(function(){const d=ze.getOrCreateInstance(this);a==="toggle"&&d[a]()})}}R.on(document,"click.bs.button.data-api",Ne,p=>{p.preventDefault();const a=p.target.closest(Ne);ze.getOrCreateInstance(a).toggle()}),v(ze);const gt=".bs.swipe",cr=`touchstart${gt}`,is=`touchmove${gt}`,os=`touchend${gt}`,Dn=`pointerdown${gt}`,gn=`pointerup${gt}`,di={endCallback:null,leftCallback:null,rightCallback:null},Or={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Ot extends ye{constructor(a,d){super(),this._element=a,a&&Ot.isSupported()&&(this._config=this._getConfig(d),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return di}static get DefaultType(){return Or}static get NAME(){return"swipe"}dispose(){R.off(this._element,gt)}_start(a){this._supportPointerEvents?this._eventIsPointerPenTouch(a)&&(this._deltaX=a.clientX):this._deltaX=a.touches[0].clientX}_end(a){this._eventIsPointerPenTouch(a)&&(this._deltaX=a.clientX-this._deltaX),this._handleSwipe(),g(this._config.endCallback)}_move(a){this._deltaX=a.touches&&a.touches.length>1?0:a.touches[0].clientX-this._deltaX}_handleSwipe(){const a=Math.abs(this._deltaX);if(a<=40)return;const d=a/this._deltaX;this._deltaX=0,d&&g(d>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(R.on(this._element,Dn,a=>this._start(a)),R.on(this._element,gn,a=>this._end(a)),this._element.classList.add("pointer-event")):(R.on(this._element,cr,a=>this._start(a)),R.on(this._element,is,a=>this._move(a)),R.on(this._element,os,a=>this._end(a)))}_eventIsPointerPenTouch(a){return this._supportPointerEvents&&(a.pointerType==="pen"||a.pointerType==="touch")}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const jt=".bs.carousel",jr=".data-api",rn="next",$n="prev",It="left",fi="right",Da=`slide${jt}`,Xi=`slid${jt}`,Zu=`keydown${jt}`,$a=`mouseenter${jt}`,Zi=`mouseleave${jt}`,Ma=`dragstart${jt}`,ss=`load${jt}${jr}`,Ju=`click${jt}${jr}`,as="carousel",Ji="active",ls=".active",Ia=".carousel-item",L=ls+Ia,D={ArrowLeft:fi,ArrowRight:It},M={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Y={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Z extends ue{constructor(a,d){super(a,d),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=G.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===as&&this.cycle()}static get Default(){return M}static get DefaultType(){return Y}static get NAME(){return"carousel"}next(){this._slide(rn)}nextWhenVisible(){!document.hidden&&c(this._element)&&this.next()}prev(){this._slide($n)}pause(){this._isSliding&&s(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?R.one(this._element,Xi,()=>this.cycle()):this.cycle())}to(a){const d=this._getItems();if(a>d.length-1||a<0)return;if(this._isSliding)return void R.one(this._element,Xi,()=>this.to(a));const w=this._getItemIndex(this._getActive());if(w===a)return;const j=a>w?rn:$n;this._slide(j,d[a])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(a){return a.defaultInterval=a.interval,a}_addEventListeners(){this._config.keyboard&&R.on(this._element,Zu,a=>this._keydown(a)),this._config.pause==="hover"&&(R.on(this._element,$a,()=>this.pause()),R.on(this._element,Zi,()=>this._maybeEnableCycle())),this._config.touch&&Ot.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const d of G.find(".carousel-item img",this._element))R.on(d,Ma,w=>w.preventDefault());const a={leftCallback:()=>this._slide(this._directionToOrder(It)),rightCallback:()=>this._slide(this._directionToOrder(fi)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new Ot(this._element,a)}_keydown(a){if(/input|textarea/i.test(a.target.tagName))return;const d=D[a.key];d&&(a.preventDefault(),this._slide(this._directionToOrder(d)))}_getItemIndex(a){return this._getItems().indexOf(a)}_setActiveIndicatorElement(a){if(!this._indicatorsElement)return;const d=G.findOne(ls,this._indicatorsElement);d.classList.remove(Ji),d.removeAttribute("aria-current");const w=G.findOne(`[data-bs-slide-to="${a}"]`,this._indicatorsElement);w&&(w.classList.add(Ji),w.setAttribute("aria-current","true"))}_updateInterval(){const a=this._activeElement||this._getActive();if(!a)return;const d=Number.parseInt(a.getAttribute("data-bs-interval"),10);this._config.interval=d||this._config.defaultInterval}_slide(a,d=null){if(this._isSliding)return;const w=this._getActive(),j=a===rn,P=d||T(this._getItems(),w,j,this._config.wrap);if(P===w)return;const $=this._getItemIndex(P),B=X=>R.trigger(this._element,X,{relatedTarget:P,direction:this._orderToDirection(a),from:this._getItemIndex(w),to:$});if(B(Da).defaultPrevented||!w||!P)return;const Q=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement($),this._activeElement=P;const J=j?"carousel-item-start":"carousel-item-end",te=j?"carousel-item-next":"carousel-item-prev";P.classList.add(te),y(P),w.classList.add(J),P.classList.add(J),this._queueCallback(()=>{P.classList.remove(J,te),P.classList.add(Ji),w.classList.remove(Ji,te,J),this._isSliding=!1,B(Xi)},w,this._isAnimated()),Q&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return G.findOne(L,this._element)}_getItems(){return G.find(Ia,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(a){return C()?a===It?$n:rn:a===It?rn:$n}_orderToDirection(a){return C()?a===$n?It:fi:a===$n?fi:It}static jQueryInterface(a){return this.each(function(){const d=Z.getOrCreateInstance(this,a);if(typeof a!="number"){if(typeof a=="string"){if(d[a]===void 0||a.startsWith("_")||a==="constructor")throw new TypeError(`No method named "${a}"`);d[a]()}}else d.to(a)})}}R.on(document,Ju,"[data-bs-slide], [data-bs-slide-to]",function(p){const a=G.getElementFromSelector(this);if(!a||!a.classList.contains(as))return;p.preventDefault();const d=Z.getOrCreateInstance(a),w=this.getAttribute("data-bs-slide-to");return w?(d.to(w),void d._maybeEnableCycle()):ae.getDataAttribute(this,"slide")==="next"?(d.next(),void d._maybeEnableCycle()):(d.prev(),void d._maybeEnableCycle())}),R.on(window,ss,()=>{const p=G.find('[data-bs-ride="carousel"]');for(const a of p)Z.getOrCreateInstance(a)}),v(Z);const pe=".bs.collapse",de=`show${pe}`,le=`shown${pe}`,ie=`hide${pe}`,Oe=`hidden${pe}`,vt=`click${pe}.data-api`,he="show",De="collapse",ot="collapsing",Vt=`:scope .${De} .${De}`,st='[data-bs-toggle="collapse"]',Pr={parent:null,toggle:!0},us={parent:"(null|element)",toggle:"boolean"};class on extends ue{constructor(a,d){super(a,d),this._isTransitioning=!1,this._triggerArray=[];const w=G.find(st);for(const j of w){const P=G.getSelectorFromElement(j),$=G.find(P).filter(B=>B===this._element);P!==null&&$.length&&this._triggerArray.push(j)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Pr}static get DefaultType(){return us}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let a=[];if(this._config.parent&&(a=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(j=>j!==this._element).map(j=>on.getOrCreateInstance(j,{toggle:!1}))),a.length&&a[0]._isTransitioning||R.trigger(this._element,de).defaultPrevented)return;for(const j of a)j.hide();const d=this._getDimension();this._element.classList.remove(De),this._element.classList.add(ot),this._element.style[d]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const w=`scroll${d[0].toUpperCase()+d.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ot),this._element.classList.add(De,he),this._element.style[d]="",R.trigger(this._element,le)},this._element,!0),this._element.style[d]=`${this._element[w]}px`}hide(){if(this._isTransitioning||!this._isShown()||R.trigger(this._element,ie).defaultPrevented)return;const a=this._getDimension();this._element.style[a]=`${this._element.getBoundingClientRect()[a]}px`,y(this._element),this._element.classList.add(ot),this._element.classList.remove(De,he);for(const d of this._triggerArray){const w=G.getElementFromSelector(d);w&&!this._isShown(w)&&this._addAriaAndCollapsedClass([d],!1)}this._isTransitioning=!0,this._element.style[a]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ot),this._element.classList.add(De),R.trigger(this._element,Oe)},this._element,!0)}_isShown(a=this._element){return a.classList.contains(he)}_configAfterMerge(a){return a.toggle=!!a.toggle,a.parent=u(a.parent),a}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const a=this._getFirstLevelChildren(st);for(const d of a){const w=G.getElementFromSelector(d);w&&this._addAriaAndCollapsedClass([d],this._isShown(w))}}_getFirstLevelChildren(a){const d=G.find(Vt,this._config.parent);return G.find(a,this._config.parent).filter(w=>!d.includes(w))}_addAriaAndCollapsedClass(a,d){if(a.length)for(const w of a)w.classList.toggle("collapsed",!d),w.setAttribute("aria-expanded",d)}static jQueryInterface(a){const d={};return typeof a=="string"&&/show|hide/.test(a)&&(d.toggle=!1),this.each(function(){const w=on.getOrCreateInstance(this,d);if(typeof a=="string"){if(w[a]===void 0)throw new TypeError(`No method named "${a}"`);w[a]()}})}}R.on(document,vt,st,function(p){(p.target.tagName==="A"||p.delegateTarget&&p.delegateTarget.tagName==="A")&&p.preventDefault();for(const a of G.getMultipleElementsFromSelector(this))on.getOrCreateInstance(a,{toggle:!1}).toggle()}),v(on);var et="top",dt="bottom",Pt="right",_t="left",Nr="auto",sn=[et,dt,Pt,_t],vn="start",Ae="end",Ke="clippingParents",Gt="viewport",Mn="popper",za="reference",ec=sn.reduce(function(p,a){return p.concat([a+"-"+vn,a+"-"+Ae])},[]),tc=[].concat(sn,[Nr]).reduce(function(p,a){return p.concat([a,a+"-"+vn,a+"-"+Ae])},[]),Kp="beforeRead",Qp="read",Yp="afterRead",qp="beforeMain",Xp="main",Zp="afterMain",Jp="beforeWrite",eh="write",th="afterWrite",nh=[Kp,Qp,Yp,qp,Xp,Zp,Jp,eh,th];function qn(p){return p?(p.nodeName||"").toLowerCase():null}function an(p){if(p==null)return window;if(p.toString()!=="[object Window]"){var a=p.ownerDocument;return a&&a.defaultView||window}return p}function pi(p){return p instanceof an(p).Element||p instanceof Element}function yn(p){return p instanceof an(p).HTMLElement||p instanceof HTMLElement}function nc(p){return typeof ShadowRoot<"u"&&(p instanceof an(p).ShadowRoot||p instanceof ShadowRoot)}const rc={name:"applyStyles",enabled:!0,phase:"write",fn:function(p){var a=p.state;Object.keys(a.elements).forEach(function(d){var w=a.styles[d]||{},j=a.attributes[d]||{},P=a.elements[d];yn(P)&&qn(P)&&(Object.assign(P.style,w),Object.keys(j).forEach(function($){var B=j[$];B===!1?P.removeAttribute($):P.setAttribute($,B===!0?"":B)}))})},effect:function(p){var a=p.state,d={popper:{position:a.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(a.elements.popper.style,d.popper),a.styles=d,a.elements.arrow&&Object.assign(a.elements.arrow.style,d.arrow),function(){Object.keys(a.elements).forEach(function(w){var j=a.elements[w],P=a.attributes[w]||{},$=Object.keys(a.styles.hasOwnProperty(w)?a.styles[w]:d[w]).reduce(function(B,Q){return B[Q]="",B},{});yn(j)&&qn(j)&&(Object.assign(j.style,$),Object.keys(P).forEach(function(B){j.removeAttribute(B)}))})}},requires:["computeStyles"]};function Xn(p){return p.split("-")[0]}var hi=Math.max,Fa=Math.min,eo=Math.round;function ic(){var p=navigator.userAgentData;return p!=null&&p.brands&&Array.isArray(p.brands)?p.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}function rh(){return!/^((?!chrome|android).)*safari/i.test(ic())}function to(p,a,d){a===void 0&&(a=!1),d===void 0&&(d=!1);var w=p.getBoundingClientRect(),j=1,P=1;a&&yn(p)&&(j=p.offsetWidth>0&&eo(w.width)/p.offsetWidth||1,P=p.offsetHeight>0&&eo(w.height)/p.offsetHeight||1);var $=(pi(p)?an(p):window).visualViewport,B=!rh()&&d,Q=(w.left+(B&&$?$.offsetLeft:0))/j,J=(w.top+(B&&$?$.offsetTop:0))/P,te=w.width/j,X=w.height/P;return{width:te,height:X,top:J,right:Q+te,bottom:J+X,left:Q,x:Q,y:J}}function oc(p){var a=to(p),d=p.offsetWidth,w=p.offsetHeight;return Math.abs(a.width-d)<=1&&(d=a.width),Math.abs(a.height-w)<=1&&(w=a.height),{x:p.offsetLeft,y:p.offsetTop,width:d,height:w}}function ih(p,a){var d=a.getRootNode&&a.getRootNode();if(p.contains(a))return!0;if(d&&nc(d)){var w=a;do{if(w&&p.isSameNode(w))return!0;w=w.parentNode||w.host}while(w)}return!1}function dr(p){return an(p).getComputedStyle(p)}function Aw(p){return["table","td","th"].indexOf(qn(p))>=0}function Lr(p){return((pi(p)?p.ownerDocument:p.document)||window.document).documentElement}function Ba(p){return qn(p)==="html"?p:p.assignedSlot||p.parentNode||(nc(p)?p.host:null)||Lr(p)}function oh(p){return yn(p)&&dr(p).position!=="fixed"?p.offsetParent:null}function cs(p){for(var a=an(p),d=oh(p);d&&Aw(d)&&dr(d).position==="static";)d=oh(d);return d&&(qn(d)==="html"||qn(d)==="body"&&dr(d).position==="static")?a:d||function(w){var j=/firefox/i.test(ic());if(/Trident/i.test(ic())&&yn(w)&&dr(w).position==="fixed")return null;var P=Ba(w);for(nc(P)&&(P=P.host);yn(P)&&["html","body"].indexOf(qn(P))<0;){var $=dr(P);if($.transform!=="none"||$.perspective!=="none"||$.contain==="paint"||["transform","perspective"].indexOf($.willChange)!==-1||j&&$.willChange==="filter"||j&&$.filter&&$.filter!=="none")return P;P=P.parentNode}return null}(p)||a}function sc(p){return["top","bottom"].indexOf(p)>=0?"x":"y"}function ds(p,a,d){return hi(p,Fa(a,d))}function sh(p){return Object.assign({},{top:0,right:0,bottom:0,left:0},p)}function ah(p,a){return a.reduce(function(d,w){return d[w]=p,d},{})}const lh={name:"arrow",enabled:!0,phase:"main",fn:function(p){var a,d=p.state,w=p.name,j=p.options,P=d.elements.arrow,$=d.modifiersData.popperOffsets,B=Xn(d.placement),Q=sc(B),J=[_t,Pt].indexOf(B)>=0?"height":"width";if(P&&$){var te=function(Ge,Ue){return sh(typeof(Ge=typeof Ge=="function"?Ge(Object.assign({},Ue.rects,{placement:Ue.placement})):Ge)!="number"?Ge:ah(Ge,sn))}(j.padding,d),X=oc(P),_e=Q==="y"?et:_t,ce=Q==="y"?dt:Pt,me=d.rects.reference[J]+d.rects.reference[Q]-$[Q]-d.rects.popper[J],fe=$[Q]-d.rects.reference[Q],ge=cs(P),Ve=ge?Q==="y"?ge.clientHeight||0:ge.clientWidth||0:0,Ye=me/2-fe/2,Ce=te[_e],Ie=Ve-X[J]-te[ce],Ee=Ve/2-X[J]/2+Ye,Le=ds(Ce,Ee,Ie),Be=Q;d.modifiersData[w]=((a={})[Be]=Le,a.centerOffset=Le-Ee,a)}},effect:function(p){var a=p.state,d=p.options.element,w=d===void 0?"[data-popper-arrow]":d;w!=null&&(typeof w!="string"||(w=a.elements.popper.querySelector(w)))&&ih(a.elements.popper,w)&&(a.elements.arrow=w)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function no(p){return p.split("-")[1]}var Dw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uh(p){var a,d=p.popper,w=p.popperRect,j=p.placement,P=p.variation,$=p.offsets,B=p.position,Q=p.gpuAcceleration,J=p.adaptive,te=p.roundOffsets,X=p.isFixed,_e=$.x,ce=_e===void 0?0:_e,me=$.y,fe=me===void 0?0:me,ge=typeof te=="function"?te({x:ce,y:fe}):{x:ce,y:fe};ce=ge.x,fe=ge.y;var Ve=$.hasOwnProperty("x"),Ye=$.hasOwnProperty("y"),Ce=_t,Ie=et,Ee=window;if(J){var Le=cs(d),Be="clientHeight",Ge="clientWidth";Le===an(d)&&dr(Le=Lr(d)).position!=="static"&&B==="absolute"&&(Be="scrollHeight",Ge="scrollWidth"),(j===et||(j===_t||j===Pt)&&P===Ae)&&(Ie=dt,fe-=(X&&Le===Ee&&Ee.visualViewport?Ee.visualViewport.height:Le[Be])-w.height,fe*=Q?1:-1),j!==_t&&(j!==et&&j!==dt||P!==Ae)||(Ce=Pt,ce-=(X&&Le===Ee&&Ee.visualViewport?Ee.visualViewport.width:Le[Ge])-w.width,ce*=Q?1:-1)}var Ue,ft=Object.assign({position:B},J&&Dw),ln=te===!0?function(zn,zt){var xn=zn.x,_n=zn.y,at=zt.devicePixelRatio||1;return{x:eo(xn*at)/at||0,y:eo(_n*at)/at||0}}({x:ce,y:fe},an(d)):{x:ce,y:fe};return ce=ln.x,fe=ln.y,Q?Object.assign({},ft,((Ue={})[Ie]=Ye?"0":"",Ue[Ce]=Ve?"0":"",Ue.transform=(Ee.devicePixelRatio||1)<=1?"translate("+ce+"px, "+fe+"px)":"translate3d("+ce+"px, "+fe+"px, 0)",Ue)):Object.assign({},ft,((a={})[Ie]=Ye?fe+"px":"",a[Ce]=Ve?ce+"px":"",a.transform="",a))}const ac={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(p){var a=p.state,d=p.options,w=d.gpuAcceleration,j=w===void 0||w,P=d.adaptive,$=P===void 0||P,B=d.roundOffsets,Q=B===void 0||B,J={placement:Xn(a.placement),variation:no(a.placement),popper:a.elements.popper,popperRect:a.rects.popper,gpuAcceleration:j,isFixed:a.options.strategy==="fixed"};a.modifiersData.popperOffsets!=null&&(a.styles.popper=Object.assign({},a.styles.popper,uh(Object.assign({},J,{offsets:a.modifiersData.popperOffsets,position:a.options.strategy,adaptive:$,roundOffsets:Q})))),a.modifiersData.arrow!=null&&(a.styles.arrow=Object.assign({},a.styles.arrow,uh(Object.assign({},J,{offsets:a.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Q})))),a.attributes.popper=Object.assign({},a.attributes.popper,{"data-popper-placement":a.placement})},data:{}};var Ua={passive:!0};const lc={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(p){var a=p.state,d=p.instance,w=p.options,j=w.scroll,P=j===void 0||j,$=w.resize,B=$===void 0||$,Q=an(a.elements.popper),J=[].concat(a.scrollParents.reference,a.scrollParents.popper);return P&&J.forEach(function(te){te.addEventListener("scroll",d.update,Ua)}),B&&Q.addEventListener("resize",d.update,Ua),function(){P&&J.forEach(function(te){te.removeEventListener("scroll",d.update,Ua)}),B&&Q.removeEventListener("resize",d.update,Ua)}},data:{}};var $w={left:"right",right:"left",bottom:"top",top:"bottom"};function Ha(p){return p.replace(/left|right|bottom|top/g,function(a){return $w[a]})}var Mw={start:"end",end:"start"};function ch(p){return p.replace(/start|end/g,function(a){return Mw[a]})}function uc(p){var a=an(p);return{scrollLeft:a.pageXOffset,scrollTop:a.pageYOffset}}function cc(p){return to(Lr(p)).left+uc(p).scrollLeft}function dc(p){var a=dr(p),d=a.overflow,w=a.overflowX,j=a.overflowY;return/auto|scroll|overlay|hidden/.test(d+j+w)}function dh(p){return["html","body","#document"].indexOf(qn(p))>=0?p.ownerDocument.body:yn(p)&&dc(p)?p:dh(Ba(p))}function fs(p,a){var d;a===void 0&&(a=[]);var w=dh(p),j=w===((d=p.ownerDocument)==null?void 0:d.body),P=an(w),$=j?[P].concat(P.visualViewport||[],dc(w)?w:[]):w,B=a.concat($);return j?B:B.concat(fs(Ba($)))}function fc(p){return Object.assign({},p,{left:p.x,top:p.y,right:p.x+p.width,bottom:p.y+p.height})}function fh(p,a,d){return a===Gt?fc(function(w,j){var P=an(w),$=Lr(w),B=P.visualViewport,Q=$.clientWidth,J=$.clientHeight,te=0,X=0;if(B){Q=B.width,J=B.height;var _e=rh();(_e||!_e&&j==="fixed")&&(te=B.offsetLeft,X=B.offsetTop)}return{width:Q,height:J,x:te+cc(w),y:X}}(p,d)):pi(a)?function(w,j){var P=to(w,!1,j==="fixed");return P.top=P.top+w.clientTop,P.left=P.left+w.clientLeft,P.bottom=P.top+w.clientHeight,P.right=P.left+w.clientWidth,P.width=w.clientWidth,P.height=w.clientHeight,P.x=P.left,P.y=P.top,P}(a,d):fc(function(w){var j,P=Lr(w),$=uc(w),B=(j=w.ownerDocument)==null?void 0:j.body,Q=hi(P.scrollWidth,P.clientWidth,B?B.scrollWidth:0,B?B.clientWidth:0),J=hi(P.scrollHeight,P.clientHeight,B?B.scrollHeight:0,B?B.clientHeight:0),te=-$.scrollLeft+cc(w),X=-$.scrollTop;return dr(B||P).direction==="rtl"&&(te+=hi(P.clientWidth,B?B.clientWidth:0)-Q),{width:Q,height:J,x:te,y:X}}(Lr(p)))}function ph(p){var a,d=p.reference,w=p.element,j=p.placement,P=j?Xn(j):null,$=j?no(j):null,B=d.x+d.width/2-w.width/2,Q=d.y+d.height/2-w.height/2;switch(P){case et:a={x:B,y:d.y-w.height};break;case dt:a={x:B,y:d.y+d.height};break;case Pt:a={x:d.x+d.width,y:Q};break;case _t:a={x:d.x-w.width,y:Q};break;default:a={x:d.x,y:d.y}}var J=P?sc(P):null;if(J!=null){var te=J==="y"?"height":"width";switch($){case vn:a[J]=a[J]-(d[te]/2-w[te]/2);break;case Ae:a[J]=a[J]+(d[te]/2-w[te]/2)}}return a}function ro(p,a){a===void 0&&(a={});var d=a,w=d.placement,j=w===void 0?p.placement:w,P=d.strategy,$=P===void 0?p.strategy:P,B=d.boundary,Q=B===void 0?Ke:B,J=d.rootBoundary,te=J===void 0?Gt:J,X=d.elementContext,_e=X===void 0?Mn:X,ce=d.altBoundary,me=ce!==void 0&&ce,fe=d.padding,ge=fe===void 0?0:fe,Ve=sh(typeof ge!="number"?ge:ah(ge,sn)),Ye=_e===Mn?za:Mn,Ce=p.rects.popper,Ie=p.elements[me?Ye:_e],Ee=function(zt,xn,_n,at){var Zn=xn==="clippingParents"?function(Qe){var Ft=fs(Ba(Qe)),En=["absolute","fixed"].indexOf(dr(Qe).position)>=0&&yn(Qe)?cs(Qe):Qe;return pi(En)?Ft.filter(function(Ar){return pi(Ar)&&ih(Ar,En)&&qn(Ar)!=="body"}):[]}(zt):[].concat(xn),Jn=[].concat(Zn,[_n]),so=Jn[0],St=Jn.reduce(function(Qe,Ft){var En=fh(zt,Ft,at);return Qe.top=hi(En.top,Qe.top),Qe.right=Fa(En.right,Qe.right),Qe.bottom=Fa(En.bottom,Qe.bottom),Qe.left=hi(En.left,Qe.left),Qe},fh(zt,so,at));return St.width=St.right-St.left,St.height=St.bottom-St.top,St.x=St.left,St.y=St.top,St}(pi(Ie)?Ie:Ie.contextElement||Lr(p.elements.popper),Q,te,$),Le=to(p.elements.reference),Be=ph({reference:Le,element:Ce,strategy:"absolute",placement:j}),Ge=fc(Object.assign({},Ce,Be)),Ue=_e===Mn?Ge:Le,ft={top:Ee.top-Ue.top+Ve.top,bottom:Ue.bottom-Ee.bottom+Ve.bottom,left:Ee.left-Ue.left+Ve.left,right:Ue.right-Ee.right+Ve.right},ln=p.modifiersData.offset;if(_e===Mn&&ln){var zn=ln[j];Object.keys(ft).forEach(function(zt){var xn=[Pt,dt].indexOf(zt)>=0?1:-1,_n=[et,dt].indexOf(zt)>=0?"y":"x";ft[zt]+=zn[_n]*xn})}return ft}function Iw(p,a){a===void 0&&(a={});var d=a,w=d.placement,j=d.boundary,P=d.rootBoundary,$=d.padding,B=d.flipVariations,Q=d.allowedAutoPlacements,J=Q===void 0?tc:Q,te=no(w),X=te?B?ec:ec.filter(function(me){return no(me)===te}):sn,_e=X.filter(function(me){return J.indexOf(me)>=0});_e.length===0&&(_e=X);var ce=_e.reduce(function(me,fe){return me[fe]=ro(p,{placement:fe,boundary:j,rootBoundary:P,padding:$})[Xn(fe)],me},{});return Object.keys(ce).sort(function(me,fe){return ce[me]-ce[fe]})}const hh={name:"flip",enabled:!0,phase:"main",fn:function(p){var a=p.state,d=p.options,w=p.name;if(!a.modifiersData[w]._skip){for(var j=d.mainAxis,P=j===void 0||j,$=d.altAxis,B=$===void 0||$,Q=d.fallbackPlacements,J=d.padding,te=d.boundary,X=d.rootBoundary,_e=d.altBoundary,ce=d.flipVariations,me=ce===void 0||ce,fe=d.allowedAutoPlacements,ge=a.options.placement,Ve=Xn(ge),Ye=Q||(Ve!==ge&&me?function(Qe){if(Xn(Qe)===Nr)return[];var Ft=Ha(Qe);return[ch(Qe),Ft,ch(Ft)]}(ge):[Ha(ge)]),Ce=[ge].concat(Ye).reduce(function(Qe,Ft){return Qe.concat(Xn(Ft)===Nr?Iw(a,{placement:Ft,boundary:te,rootBoundary:X,padding:J,flipVariations:me,allowedAutoPlacements:fe}):Ft)},[]),Ie=a.rects.reference,Ee=a.rects.popper,Le=new Map,Be=!0,Ge=Ce[0],Ue=0;Ue=0,xn=zt?"width":"height",_n=ro(a,{placement:ft,boundary:te,rootBoundary:X,altBoundary:_e,padding:J}),at=zt?zn?Pt:_t:zn?dt:et;Ie[xn]>Ee[xn]&&(at=Ha(at));var Zn=Ha(at),Jn=[];if(P&&Jn.push(_n[ln]<=0),B&&Jn.push(_n[at]<=0,_n[Zn]<=0),Jn.every(function(Qe){return Qe})){Ge=ft,Be=!1;break}Le.set(ft,Jn)}if(Be)for(var so=function(Qe){var Ft=Ce.find(function(En){var Ar=Le.get(En);if(Ar)return Ar.slice(0,Qe).every(function(Za){return Za})});if(Ft)return Ge=Ft,"break"},St=me?3:1;St>0&&so(St)!=="break";St--);a.placement!==Ge&&(a.modifiersData[w]._skip=!0,a.placement=Ge,a.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function mh(p,a,d){return d===void 0&&(d={x:0,y:0}),{top:p.top-a.height-d.y,right:p.right-a.width+d.x,bottom:p.bottom-a.height+d.y,left:p.left-a.width-d.x}}function gh(p){return[et,Pt,dt,_t].some(function(a){return p[a]>=0})}const vh={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(p){var a=p.state,d=p.name,w=a.rects.reference,j=a.rects.popper,P=a.modifiersData.preventOverflow,$=ro(a,{elementContext:"reference"}),B=ro(a,{altBoundary:!0}),Q=mh($,w),J=mh(B,j,P),te=gh(Q),X=gh(J);a.modifiersData[d]={referenceClippingOffsets:Q,popperEscapeOffsets:J,isReferenceHidden:te,hasPopperEscaped:X},a.attributes.popper=Object.assign({},a.attributes.popper,{"data-popper-reference-hidden":te,"data-popper-escaped":X})}},yh={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(p){var a=p.state,d=p.options,w=p.name,j=d.offset,P=j===void 0?[0,0]:j,$=tc.reduce(function(te,X){return te[X]=function(_e,ce,me){var fe=Xn(_e),ge=[_t,et].indexOf(fe)>=0?-1:1,Ve=typeof me=="function"?me(Object.assign({},ce,{placement:_e})):me,Ye=Ve[0],Ce=Ve[1];return Ye=Ye||0,Ce=(Ce||0)*ge,[_t,Pt].indexOf(fe)>=0?{x:Ce,y:Ye}:{x:Ye,y:Ce}}(X,a.rects,P),te},{}),B=$[a.placement],Q=B.x,J=B.y;a.modifiersData.popperOffsets!=null&&(a.modifiersData.popperOffsets.x+=Q,a.modifiersData.popperOffsets.y+=J),a.modifiersData[w]=$}},pc={name:"popperOffsets",enabled:!0,phase:"read",fn:function(p){var a=p.state,d=p.name;a.modifiersData[d]=ph({reference:a.rects.reference,element:a.rects.popper,strategy:"absolute",placement:a.placement})},data:{}},wh={name:"preventOverflow",enabled:!0,phase:"main",fn:function(p){var a=p.state,d=p.options,w=p.name,j=d.mainAxis,P=j===void 0||j,$=d.altAxis,B=$!==void 0&&$,Q=d.boundary,J=d.rootBoundary,te=d.altBoundary,X=d.padding,_e=d.tether,ce=_e===void 0||_e,me=d.tetherOffset,fe=me===void 0?0:me,ge=ro(a,{boundary:Q,rootBoundary:J,padding:X,altBoundary:te}),Ve=Xn(a.placement),Ye=no(a.placement),Ce=!Ye,Ie=sc(Ve),Ee=Ie==="x"?"y":"x",Le=a.modifiersData.popperOffsets,Be=a.rects.reference,Ge=a.rects.popper,Ue=typeof fe=="function"?fe(Object.assign({},a.rects,{placement:a.placement})):fe,ft=typeof Ue=="number"?{mainAxis:Ue,altAxis:Ue}:Object.assign({mainAxis:0,altAxis:0},Ue),ln=a.modifiersData.offset?a.modifiersData.offset[a.placement]:null,zn={x:0,y:0};if(Le){if(P){var zt,xn=Ie==="y"?et:_t,_n=Ie==="y"?dt:Pt,at=Ie==="y"?"height":"width",Zn=Le[Ie],Jn=Zn+ge[xn],so=Zn-ge[_n],St=ce?-Ge[at]/2:0,Qe=Ye===vn?Be[at]:Ge[at],Ft=Ye===vn?-Ge[at]:-Be[at],En=a.elements.arrow,Ar=ce&&En?oc(En):{width:0,height:0},Za=a.modifiersData["arrow#persistent"]?a.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},om=Za[xn],sm=Za[_n],Ja=ds(0,Be[at],Ar[at]),p_=Ce?Be[at]/2-St-Ja-om-ft.mainAxis:Qe-Ja-om-ft.mainAxis,h_=Ce?-Be[at]/2+St+Ja+sm+ft.mainAxis:Ft+Ja+sm+ft.mainAxis,Cc=a.elements.arrow&&cs(a.elements.arrow),m_=Cc?Ie==="y"?Cc.clientTop||0:Cc.clientLeft||0:0,am=(zt=ln==null?void 0:ln[Ie])!=null?zt:0,g_=Zn+h_-am,lm=ds(ce?Fa(Jn,Zn+p_-am-m_):Jn,Zn,ce?hi(so,g_):so);Le[Ie]=lm,zn[Ie]=lm-Zn}if(B){var um,v_=Ie==="x"?et:_t,y_=Ie==="x"?dt:Pt,Ei=Le[Ee],el=Ee==="y"?"height":"width",cm=Ei+ge[v_],dm=Ei-ge[y_],Tc=[et,_t].indexOf(Ve)!==-1,fm=(um=ln==null?void 0:ln[Ee])!=null?um:0,pm=Tc?cm:Ei-Be[el]-Ge[el]-fm+ft.altAxis,hm=Tc?Ei+Be[el]+Ge[el]-fm-ft.altAxis:dm,mm=ce&&Tc?function(w_,x_,Oc){var gm=ds(w_,x_,Oc);return gm>Oc?Oc:gm}(pm,Ei,hm):ds(ce?pm:cm,Ei,ce?hm:dm);Le[Ee]=mm,zn[Ee]=mm-Ei}a.modifiersData[w]=zn}},requiresIfExists:["offset"]};function zw(p,a,d){d===void 0&&(d=!1);var w,j,P=yn(a),$=yn(a)&&function(X){var _e=X.getBoundingClientRect(),ce=eo(_e.width)/X.offsetWidth||1,me=eo(_e.height)/X.offsetHeight||1;return ce!==1||me!==1}(a),B=Lr(a),Q=to(p,$,d),J={scrollLeft:0,scrollTop:0},te={x:0,y:0};return(P||!P&&!d)&&((qn(a)!=="body"||dc(B))&&(J=(w=a)!==an(w)&&yn(w)?{scrollLeft:(j=w).scrollLeft,scrollTop:j.scrollTop}:uc(w)),yn(a)?((te=to(a,!0)).x+=a.clientLeft,te.y+=a.clientTop):B&&(te.x=cc(B))),{x:Q.left+J.scrollLeft-te.x,y:Q.top+J.scrollTop-te.y,width:Q.width,height:Q.height}}function Fw(p){var a=new Map,d=new Set,w=[];function j(P){d.add(P.name),[].concat(P.requires||[],P.requiresIfExists||[]).forEach(function($){if(!d.has($)){var B=a.get($);B&&j(B)}}),w.push(P)}return p.forEach(function(P){a.set(P.name,P)}),p.forEach(function(P){d.has(P.name)||j(P)}),w}var xh={placement:"bottom",modifiers:[],strategy:"absolute"};function _h(){for(var p=arguments.length,a=new Array(p),d=0;dNumber.parseInt(d,10)):typeof a=="function"?d=>a(d,this._element):a}_getPopperConfig(){const a={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(ae.setDataAttribute(this._menu,"popper","static"),a.modifiers=[{name:"applyStyles",enabled:!1}]),{...a,...g(this._config.popperConfig,[a])}}_selectMenuItem({key:a,target:d}){const w=G.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(j=>c(j));w.length&&T(w,d,a===Sh,!w.includes(d)).focus()}static jQueryInterface(a){return this.each(function(){const d=In.getOrCreateInstance(this,a);if(typeof a=="string"){if(d[a]===void 0)throw new TypeError(`No method named "${a}"`);d[a]()}})}static clearMenus(a){if(a.button===2||a.type==="keyup"&&a.key!=="Tab")return;const d=G.find(Yw);for(const w of d){const j=In.getInstance(w);if(!j||j._config.autoClose===!1)continue;const P=a.composedPath(),$=P.includes(j._menu);if(P.includes(j._element)||j._config.autoClose==="inside"&&!$||j._config.autoClose==="outside"&&$||j._menu.contains(a.target)&&(a.type==="keyup"&&a.key==="Tab"||/input|select|option|textarea|form/i.test(a.target.tagName)))continue;const B={relatedTarget:j._element};a.type==="click"&&(B.clickEvent=a),j._completeHide(B)}}static dataApiKeydownHandler(a){const d=/input|textarea/i.test(a.target.tagName),w=a.key==="Escape",j=[Hw,Sh].includes(a.key);if(!j&&!w||d&&!w)return;a.preventDefault();const P=this.matches(gi)?this:G.prev(this,gi)[0]||G.next(this,gi)[0]||G.findOne(gi,a.delegateTarget.parentNode),$=In.getOrCreateInstance(P);if(j)return a.stopPropagation(),$.show(),void $._selectMenuItem(a);$._isShown()&&(a.stopPropagation(),$.hide(),P.focus())}}R.on(document,Ch,gi,In.dataApiKeydownHandler),R.on(document,Ch,Va,In.dataApiKeydownHandler),R.on(document,kh,In.clearMenus),R.on(document,Qw,In.clearMenus),R.on(document,kh,gi,function(p){p.preventDefault(),In.getOrCreateInstance(this).toggle()}),v(In);const Th="backdrop",Oh="show",jh=`mousedown.bs.${Th}`,ix={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ox={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Ph extends ye{constructor(a){super(),this._config=this._getConfig(a),this._isAppended=!1,this._element=null}static get Default(){return ix}static get DefaultType(){return ox}static get NAME(){return Th}show(a){if(!this._config.isVisible)return void g(a);this._append();const d=this._getElement();this._config.isAnimated&&y(d),d.classList.add(Oh),this._emulateAnimation(()=>{g(a)})}hide(a){this._config.isVisible?(this._getElement().classList.remove(Oh),this._emulateAnimation(()=>{this.dispose(),g(a)})):g(a)}dispose(){this._isAppended&&(R.off(this._element,jh),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const a=document.createElement("div");a.className=this._config.className,this._config.isAnimated&&a.classList.add("fade"),this._element=a}return this._element}_configAfterMerge(a){return a.rootElement=u(a.rootElement),a}_append(){if(this._isAppended)return;const a=this._getElement();this._config.rootElement.append(a),R.on(a,jh,()=>{g(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(a){b(a,this._getElement(),this._config.isAnimated)}}const Ga=".bs.focustrap",sx=`focusin${Ga}`,ax=`keydown.tab${Ga}`,Nh="backward",lx={autofocus:!0,trapElement:null},ux={autofocus:"boolean",trapElement:"element"};class Lh extends ye{constructor(a){super(),this._config=this._getConfig(a),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return lx}static get DefaultType(){return ux}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),R.off(document,Ga),R.on(document,sx,a=>this._handleFocusin(a)),R.on(document,ax,a=>this._handleKeydown(a)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,R.off(document,Ga))}_handleFocusin(a){const{trapElement:d}=this._config;if(a.target===document||a.target===d||d.contains(a.target))return;const w=G.focusableChildren(d);w.length===0?d.focus():this._lastTabNavDirection===Nh?w[w.length-1].focus():w[0].focus()}_handleKeydown(a){a.key==="Tab"&&(this._lastTabNavDirection=a.shiftKey?Nh:"forward")}}const Rh=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Ah=".sticky-top",Ka="padding-right",Dh="margin-right";class gc{constructor(){this._element=document.body}getWidth(){const a=document.documentElement.clientWidth;return Math.abs(window.innerWidth-a)}hide(){const a=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Ka,d=>d+a),this._setElementAttributes(Rh,Ka,d=>d+a),this._setElementAttributes(Ah,Dh,d=>d-a)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Ka),this._resetElementAttributes(Rh,Ka),this._resetElementAttributes(Ah,Dh)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(a,d,w){const j=this.getWidth();this._applyManipulationCallback(a,P=>{if(P!==this._element&&window.innerWidth>P.clientWidth+j)return;this._saveInitialAttribute(P,d);const $=window.getComputedStyle(P).getPropertyValue(d);P.style.setProperty(d,`${w(Number.parseFloat($))}px`)})}_saveInitialAttribute(a,d){const w=a.style.getPropertyValue(d);w&&ae.setDataAttribute(a,d,w)}_resetElementAttributes(a,d){this._applyManipulationCallback(a,w=>{const j=ae.getDataAttribute(w,d);j!==null?(ae.removeDataAttribute(w,d),w.style.setProperty(d,j)):w.style.removeProperty(d)})}_applyManipulationCallback(a,d){if(l(a))d(a);else for(const w of G.find(a,this._element))d(w)}}const wn=".bs.modal",cx=`hide${wn}`,dx=`hidePrevented${wn}`,$h=`hidden${wn}`,Mh=`show${wn}`,fx=`shown${wn}`,px=`resize${wn}`,hx=`click.dismiss${wn}`,mx=`mousedown.dismiss${wn}`,gx=`keydown.dismiss${wn}`,vx=`click${wn}.data-api`,Ih="modal-open",zh="show",vc="modal-static",yx={backdrop:!0,focus:!0,keyboard:!0},wx={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class vi extends ue{constructor(a,d){super(a,d),this._dialog=G.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new gc,this._addEventListeners()}static get Default(){return yx}static get DefaultType(){return wx}static get NAME(){return"modal"}toggle(a){return this._isShown?this.hide():this.show(a)}show(a){this._isShown||this._isTransitioning||R.trigger(this._element,Mh,{relatedTarget:a}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Ih),this._adjustDialog(),this._backdrop.show(()=>this._showElement(a)))}hide(){this._isShown&&!this._isTransitioning&&(R.trigger(this._element,cx).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(zh),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){R.off(window,wn),R.off(this._dialog,wn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ph({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Lh({trapElement:this._element})}_showElement(a){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const d=G.findOne(".modal-body",this._dialog);d&&(d.scrollTop=0),y(this._element),this._element.classList.add(zh),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,R.trigger(this._element,fx,{relatedTarget:a})},this._dialog,this._isAnimated())}_addEventListeners(){R.on(this._element,gx,a=>{a.key==="Escape"&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),R.on(window,px,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),R.on(this._element,mx,a=>{R.one(this._element,hx,d=>{this._element===a.target&&this._element===d.target&&(this._config.backdrop!=="static"?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Ih),this._resetAdjustments(),this._scrollBar.reset(),R.trigger(this._element,$h)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(R.trigger(this._element,dx).defaultPrevented)return;const a=this._element.scrollHeight>document.documentElement.clientHeight,d=this._element.style.overflowY;d==="hidden"||this._element.classList.contains(vc)||(a||(this._element.style.overflowY="hidden"),this._element.classList.add(vc),this._queueCallback(()=>{this._element.classList.remove(vc),this._queueCallback(()=>{this._element.style.overflowY=d},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const a=this._element.scrollHeight>document.documentElement.clientHeight,d=this._scrollBar.getWidth(),w=d>0;if(w&&!a){const j=C()?"paddingLeft":"paddingRight";this._element.style[j]=`${d}px`}if(!w&&a){const j=C()?"paddingRight":"paddingLeft";this._element.style[j]=`${d}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(a,d){return this.each(function(){const w=vi.getOrCreateInstance(this,a);if(typeof a=="string"){if(w[a]===void 0)throw new TypeError(`No method named "${a}"`);w[a](d)}})}}R.on(document,vx,'[data-bs-toggle="modal"]',function(p){const a=G.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&p.preventDefault(),R.one(a,Mh,w=>{w.defaultPrevented||R.one(a,$h,()=>{c(this)&&this.focus()})});const d=G.findOne(".modal.show");d&&vi.getInstance(d).hide(),vi.getOrCreateInstance(a).toggle(this)}),We(vi),v(vi);const fr=".bs.offcanvas",Fh=".data-api",xx=`load${fr}${Fh}`,Bh="show",Uh="showing",Hh="hiding",Wh=".offcanvas.show",_x=`show${fr}`,Ex=`shown${fr}`,bx=`hide${fr}`,Vh=`hidePrevented${fr}`,Gh=`hidden${fr}`,Sx=`resize${fr}`,kx=`click${fr}${Fh}`,Cx=`keydown.dismiss${fr}`,Tx={backdrop:!0,keyboard:!0,scroll:!1},Ox={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class pr extends ue{constructor(a,d){super(a,d),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Tx}static get DefaultType(){return Ox}static get NAME(){return"offcanvas"}toggle(a){return this._isShown?this.hide():this.show(a)}show(a){this._isShown||R.trigger(this._element,_x,{relatedTarget:a}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new gc().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Uh),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Bh),this._element.classList.remove(Uh),R.trigger(this._element,Ex,{relatedTarget:a})},this._element,!0))}hide(){this._isShown&&(R.trigger(this._element,bx).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Hh),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Bh,Hh),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new gc().reset(),R.trigger(this._element,Gh)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const a=!!this._config.backdrop;return new Ph({className:"offcanvas-backdrop",isVisible:a,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:a?()=>{this._config.backdrop!=="static"?this.hide():R.trigger(this._element,Vh)}:null})}_initializeFocusTrap(){return new Lh({trapElement:this._element})}_addEventListeners(){R.on(this._element,Cx,a=>{a.key==="Escape"&&(this._config.keyboard?this.hide():R.trigger(this._element,Vh))})}static jQueryInterface(a){return this.each(function(){const d=pr.getOrCreateInstance(this,a);if(typeof a=="string"){if(d[a]===void 0||a.startsWith("_")||a==="constructor")throw new TypeError(`No method named "${a}"`);d[a](this)}})}}R.on(document,kx,'[data-bs-toggle="offcanvas"]',function(p){const a=G.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&p.preventDefault(),f(this))return;R.one(a,Gh,()=>{c(this)&&this.focus()});const d=G.findOne(Wh);d&&d!==a&&pr.getInstance(d).hide(),pr.getOrCreateInstance(a).toggle(this)}),R.on(window,xx,()=>{for(const p of G.find(Wh))pr.getOrCreateInstance(p).show()}),R.on(window,Sx,()=>{for(const p of G.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(p).position!=="fixed"&&pr.getOrCreateInstance(p).hide()}),We(pr),v(pr);const Kh={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},jx=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Px=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Nx=(p,a)=>{const d=p.nodeName.toLowerCase();return a.includes(d)?!jx.has(d)||!!Px.test(p.nodeValue):a.filter(w=>w instanceof RegExp).some(w=>w.test(d))},Lx={allowList:Kh,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Rx={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Ax={entry:"(string|element|function|null)",selector:"(string|element)"};class Dx extends ye{constructor(a){super(),this._config=this._getConfig(a)}static get Default(){return Lx}static get DefaultType(){return Rx}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(a=>this._resolvePossibleFunction(a)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(a){return this._checkContent(a),this._config.content={...this._config.content,...a},this}toHtml(){const a=document.createElement("div");a.innerHTML=this._maybeSanitize(this._config.template);for(const[j,P]of Object.entries(this._config.content))this._setContent(a,P,j);const d=a.children[0],w=this._resolvePossibleFunction(this._config.extraClass);return w&&d.classList.add(...w.split(" ")),d}_typeCheckConfig(a){super._typeCheckConfig(a),this._checkContent(a.content)}_checkContent(a){for(const[d,w]of Object.entries(a))super._typeCheckConfig({selector:d,entry:w},Ax)}_setContent(a,d,w){const j=G.findOne(w,a);j&&((d=this._resolvePossibleFunction(d))?l(d)?this._putElementInTemplate(u(d),j):this._config.html?j.innerHTML=this._maybeSanitize(d):j.textContent=d:j.remove())}_maybeSanitize(a){return this._config.sanitize?function(d,w,j){if(!d.length)return d;if(j&&typeof j=="function")return j(d);const P=new window.DOMParser().parseFromString(d,"text/html"),$=[].concat(...P.body.querySelectorAll("*"));for(const B of $){const Q=B.nodeName.toLowerCase();if(!Object.keys(w).includes(Q)){B.remove();continue}const J=[].concat(...B.attributes),te=[].concat(w["*"]||[],w[Q]||[]);for(const X of J)Nx(X,te)||B.removeAttribute(X.nodeName)}return P.body.innerHTML}(a,this._config.allowList,this._config.sanitizeFn):a}_resolvePossibleFunction(a){return g(a,[this])}_putElementInTemplate(a,d){if(this._config.html)return d.innerHTML="",void d.append(a);d.textContent=a.textContent}}const $x=new Set(["sanitize","allowList","sanitizeFn"]),yc="fade",Qa="show",Qh=".modal",Yh="hide.bs.modal",ps="hover",wc="focus",Mx={AUTO:"auto",TOP:"top",RIGHT:C()?"left":"right",BOTTOM:"bottom",LEFT:C()?"right":"left"},Ix={allowList:Kh,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},zx={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class yi extends ue{constructor(a,d){if(Eh===void 0)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(a,d),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Ix}static get DefaultType(){return zx}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),R.off(this._element.closest(Qh),Yh,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const a=R.trigger(this._element,this.constructor.eventName("show")),d=(h(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(a.defaultPrevented||!d)return;this._disposePopper();const w=this._getTipElement();this._element.setAttribute("aria-describedby",w.getAttribute("id"));const{container:j}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(j.append(w),R.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(w),w.classList.add(Qa),"ontouchstart"in document.documentElement)for(const P of[].concat(...document.body.children))R.on(P,"mouseover",m);this._queueCallback(()=>{R.trigger(this._element,this.constructor.eventName("shown")),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!R.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(Qa),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))R.off(a,"mouseover",m);this._activeTrigger.click=!1,this._activeTrigger[wc]=!1,this._activeTrigger[ps]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),R.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(a){const d=this._getTemplateFactory(a).toHtml();if(!d)return null;d.classList.remove(yc,Qa),d.classList.add(`bs-${this.constructor.NAME}-auto`);const w=(j=>{do j+=Math.floor(1e6*Math.random());while(document.getElementById(j));return j})(this.constructor.NAME).toString();return d.setAttribute("id",w),this._isAnimated()&&d.classList.add(yc),d}setContent(a){this._newContent=a,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(a){return this._templateFactory?this._templateFactory.changeContent(a):this._templateFactory=new Dx({...this._config,content:a,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(a){return this.constructor.getOrCreateInstance(a.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(yc)}_isShown(){return this.tip&&this.tip.classList.contains(Qa)}_createPopper(a){const d=g(this._config.placement,[this,a,this._element]),w=Mx[d.toUpperCase()];return hc(this._element,a,this._getPopperConfig(w))}_getOffset(){const{offset:a}=this._config;return typeof a=="string"?a.split(",").map(d=>Number.parseInt(d,10)):typeof a=="function"?d=>a(d,this._element):a}_resolvePossibleFunction(a){return g(a,[this._element])}_getPopperConfig(a){const d={placement:a,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:w=>{this._getTipElement().setAttribute("data-popper-placement",w.state.placement)}}]};return{...d,...g(this._config.popperConfig,[d])}}_setListeners(){const a=this._config.trigger.split(" ");for(const d of a)if(d==="click")R.on(this._element,this.constructor.eventName("click"),this._config.selector,w=>{this._initializeOnDelegatedTarget(w).toggle()});else if(d!=="manual"){const w=d===ps?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),j=d===ps?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");R.on(this._element,w,this._config.selector,P=>{const $=this._initializeOnDelegatedTarget(P);$._activeTrigger[P.type==="focusin"?wc:ps]=!0,$._enter()}),R.on(this._element,j,this._config.selector,P=>{const $=this._initializeOnDelegatedTarget(P);$._activeTrigger[P.type==="focusout"?wc:ps]=$._element.contains(P.relatedTarget),$._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},R.on(this._element.closest(Qh),Yh,this._hideModalHandler)}_fixTitle(){const a=this._element.getAttribute("title");a&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",a),this._element.setAttribute("data-bs-original-title",a),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(a,d){clearTimeout(this._timeout),this._timeout=setTimeout(a,d)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(a){const d=ae.getDataAttributes(this._element);for(const w of Object.keys(d))$x.has(w)&&delete d[w];return a={...d,...typeof a=="object"&&a?a:{}},a=this._mergeConfigObj(a),a=this._configAfterMerge(a),this._typeCheckConfig(a),a}_configAfterMerge(a){return a.container=a.container===!1?document.body:u(a.container),typeof a.delay=="number"&&(a.delay={show:a.delay,hide:a.delay}),typeof a.title=="number"&&(a.title=a.title.toString()),typeof a.content=="number"&&(a.content=a.content.toString()),a}_getDelegateConfig(){const a={};for(const[d,w]of Object.entries(this._config))this.constructor.Default[d]!==w&&(a[d]=w);return a.selector=!1,a.trigger="manual",a}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(a){return this.each(function(){const d=yi.getOrCreateInstance(this,a);if(typeof a=="string"){if(d[a]===void 0)throw new TypeError(`No method named "${a}"`);d[a]()}})}}v(yi);const Fx={...yi.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},Bx={...yi.DefaultType,content:"(null|string|element|function)"};class Ya extends yi{static get Default(){return Fx}static get DefaultType(){return Bx}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(a){return this.each(function(){const d=Ya.getOrCreateInstance(this,a);if(typeof a=="string"){if(d[a]===void 0)throw new TypeError(`No method named "${a}"`);d[a]()}})}}v(Ya);const xc=".bs.scrollspy",Ux=`activate${xc}`,qh=`click${xc}`,Hx=`load${xc}.data-api`,oo="active",_c="[href]",Xh=".nav-link",Wx=`${Xh}, .nav-item > ${Xh}, .list-group-item`,Vx={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Gx={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class hs extends ue{constructor(a,d){super(a,d),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Vx}static get DefaultType(){return Gx}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const a of this._observableSections.values())this._observer.observe(a)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(a){return a.target=u(a.target)||document.body,a.rootMargin=a.offset?`${a.offset}px 0px -30%`:a.rootMargin,typeof a.threshold=="string"&&(a.threshold=a.threshold.split(",").map(d=>Number.parseFloat(d))),a}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(R.off(this._config.target,qh),R.on(this._config.target,qh,_c,a=>{const d=this._observableSections.get(a.target.hash);if(d){a.preventDefault();const w=this._rootElement||window,j=d.offsetTop-this._element.offsetTop;if(w.scrollTo)return void w.scrollTo({top:j,behavior:"smooth"});w.scrollTop=j}}))}_getNewObserver(){const a={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(d=>this._observerCallback(d),a)}_observerCallback(a){const d=$=>this._targetLinks.get(`#${$.target.id}`),w=$=>{this._previousScrollData.visibleEntryTop=$.target.offsetTop,this._process(d($))},j=(this._rootElement||document.documentElement).scrollTop,P=j>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=j;for(const $ of a){if(!$.isIntersecting){this._activeTarget=null,this._clearActiveClass(d($));continue}const B=$.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(P&&B){if(w($),!j)return}else P||B||w($)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const a=G.find(_c,this._config.target);for(const d of a){if(!d.hash||f(d))continue;const w=G.findOne(decodeURI(d.hash),this._element);c(w)&&(this._targetLinks.set(decodeURI(d.hash),d),this._observableSections.set(d.hash,w))}}_process(a){this._activeTarget!==a&&(this._clearActiveClass(this._config.target),this._activeTarget=a,a.classList.add(oo),this._activateParents(a),R.trigger(this._element,Ux,{relatedTarget:a}))}_activateParents(a){if(a.classList.contains("dropdown-item"))G.findOne(".dropdown-toggle",a.closest(".dropdown")).classList.add(oo);else for(const d of G.parents(a,".nav, .list-group"))for(const w of G.prev(d,Wx))w.classList.add(oo)}_clearActiveClass(a){a.classList.remove(oo);const d=G.find(`${_c}.${oo}`,a);for(const w of d)w.classList.remove(oo)}static jQueryInterface(a){return this.each(function(){const d=hs.getOrCreateInstance(this,a);if(typeof a=="string"){if(d[a]===void 0||a.startsWith("_")||a==="constructor")throw new TypeError(`No method named "${a}"`);d[a]()}})}}R.on(window,Hx,()=>{for(const p of G.find('[data-bs-spy="scroll"]'))hs.getOrCreateInstance(p)}),v(hs);const wi=".bs.tab",Kx=`hide${wi}`,Qx=`hidden${wi}`,Yx=`show${wi}`,qx=`shown${wi}`,Xx=`click${wi}`,Zx=`keydown${wi}`,Jx=`load${wi}`,e_="ArrowLeft",Zh="ArrowRight",t_="ArrowUp",Jh="ArrowDown",Ec="Home",em="End",xi="active",tm="fade",bc="show",nm=".dropdown-toggle",Sc=`:not(${nm})`,rm='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',kc=`.nav-link${Sc}, .list-group-item${Sc}, [role="tab"]${Sc}, ${rm}`,n_=`.${xi}[data-bs-toggle="tab"], .${xi}[data-bs-toggle="pill"], .${xi}[data-bs-toggle="list"]`;class _i extends ue{constructor(a){super(a),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),R.on(this._element,Zx,d=>this._keydown(d)))}static get NAME(){return"tab"}show(){const a=this._element;if(this._elemIsActive(a))return;const d=this._getActiveElem(),w=d?R.trigger(d,Kx,{relatedTarget:a}):null;R.trigger(a,Yx,{relatedTarget:d}).defaultPrevented||w&&w.defaultPrevented||(this._deactivate(d,a),this._activate(a,d))}_activate(a,d){a&&(a.classList.add(xi),this._activate(G.getElementFromSelector(a)),this._queueCallback(()=>{a.getAttribute("role")==="tab"?(a.removeAttribute("tabindex"),a.setAttribute("aria-selected",!0),this._toggleDropDown(a,!0),R.trigger(a,qx,{relatedTarget:d})):a.classList.add(bc)},a,a.classList.contains(tm)))}_deactivate(a,d){a&&(a.classList.remove(xi),a.blur(),this._deactivate(G.getElementFromSelector(a)),this._queueCallback(()=>{a.getAttribute("role")==="tab"?(a.setAttribute("aria-selected",!1),a.setAttribute("tabindex","-1"),this._toggleDropDown(a,!1),R.trigger(a,Qx,{relatedTarget:d})):a.classList.remove(bc)},a,a.classList.contains(tm)))}_keydown(a){if(![e_,Zh,t_,Jh,Ec,em].includes(a.key))return;a.stopPropagation(),a.preventDefault();const d=this._getChildren().filter(j=>!f(j));let w;if([Ec,em].includes(a.key))w=d[a.key===Ec?0:d.length-1];else{const j=[Zh,Jh].includes(a.key);w=T(d,a.target,j,!0)}w&&(w.focus({preventScroll:!0}),_i.getOrCreateInstance(w).show())}_getChildren(){return G.find(kc,this._parent)}_getActiveElem(){return this._getChildren().find(a=>this._elemIsActive(a))||null}_setInitialAttributes(a,d){this._setAttributeIfNotExists(a,"role","tablist");for(const w of d)this._setInitialAttributesOnChild(w)}_setInitialAttributesOnChild(a){a=this._getInnerElement(a);const d=this._elemIsActive(a),w=this._getOuterElement(a);a.setAttribute("aria-selected",d),w!==a&&this._setAttributeIfNotExists(w,"role","presentation"),d||a.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(a,"role","tab"),this._setInitialAttributesOnTargetPanel(a)}_setInitialAttributesOnTargetPanel(a){const d=G.getElementFromSelector(a);d&&(this._setAttributeIfNotExists(d,"role","tabpanel"),a.id&&this._setAttributeIfNotExists(d,"aria-labelledby",`${a.id}`))}_toggleDropDown(a,d){const w=this._getOuterElement(a);if(!w.classList.contains("dropdown"))return;const j=(P,$)=>{const B=G.findOne(P,w);B&&B.classList.toggle($,d)};j(nm,xi),j(".dropdown-menu",bc),w.setAttribute("aria-expanded",d)}_setAttributeIfNotExists(a,d,w){a.hasAttribute(d)||a.setAttribute(d,w)}_elemIsActive(a){return a.classList.contains(xi)}_getInnerElement(a){return a.matches(kc)?a:G.findOne(kc,a)}_getOuterElement(a){return a.closest(".nav-item, .list-group-item")||a}static jQueryInterface(a){return this.each(function(){const d=_i.getOrCreateInstance(this);if(typeof a=="string"){if(d[a]===void 0||a.startsWith("_")||a==="constructor")throw new TypeError(`No method named "${a}"`);d[a]()}})}}R.on(document,Xx,rm,function(p){["A","AREA"].includes(this.tagName)&&p.preventDefault(),f(this)||_i.getOrCreateInstance(this).show()}),R.on(window,Jx,()=>{for(const p of G.find(n_))_i.getOrCreateInstance(p)}),v(_i);const Rr=".bs.toast",r_=`mouseover${Rr}`,i_=`mouseout${Rr}`,o_=`focusin${Rr}`,s_=`focusout${Rr}`,a_=`hide${Rr}`,l_=`hidden${Rr}`,u_=`show${Rr}`,c_=`shown${Rr}`,im="hide",qa="show",Xa="showing",d_={animation:"boolean",autohide:"boolean",delay:"number"},f_={animation:!0,autohide:!0,delay:5e3};class ms extends ue{constructor(a,d){super(a,d),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return f_}static get DefaultType(){return d_}static get NAME(){return"toast"}show(){R.trigger(this._element,u_).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(im),y(this._element),this._element.classList.add(qa,Xa),this._queueCallback(()=>{this._element.classList.remove(Xa),R.trigger(this._element,c_),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(R.trigger(this._element,a_).defaultPrevented||(this._element.classList.add(Xa),this._queueCallback(()=>{this._element.classList.add(im),this._element.classList.remove(Xa,qa),R.trigger(this._element,l_)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(qa),super.dispose()}isShown(){return this._element.classList.contains(qa)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(a,d){switch(a.type){case"mouseover":case"mouseout":this._hasMouseInteraction=d;break;case"focusin":case"focusout":this._hasKeyboardInteraction=d}if(d)return void this._clearTimeout();const w=a.relatedTarget;this._element===w||this._element.contains(w)||this._maybeScheduleHide()}_setListeners(){R.on(this._element,r_,a=>this._onInteraction(a,!0)),R.on(this._element,i_,a=>this._onInteraction(a,!1)),R.on(this._element,o_,a=>this._onInteraction(a,!0)),R.on(this._element,s_,a=>this._onInteraction(a,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(a){return this.each(function(){const d=ms.getOrCreateInstance(this,a);if(typeof a=="string"){if(d[a]===void 0)throw new TypeError(`No method named "${a}"`);d[a](this)}})}}return We(ms),v(ms),{Alert:Pe,Button:ze,Carousel:Z,Collapse:on,Dropdown:In,Modal:vi,Offcanvas:pr,Popover:Ya,ScrollSpy:hs,Tab:_i,Toast:ms,Tooltip:yi}})})(_2);var Yt=function(){return Yt=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0?Ct(ts,--Nn):0,Bo--,yt===10&&(Bo=1,Fu--),yt}function Kn(){return yt=Nn2||pf(yt)>3?"":" "}function L2(e,t){for(;--t&&Kn()&&!(yt<48||yt>102||yt>57&&yt<65||yt>70&&yt<97););return Uu(e,Ml()+(t<6&&Ii()==32&&Kn()==32))}function hf(e){for(;Kn();)switch(yt){case e:return Nn;case 34:case 39:e!==34&&e!==39&&hf(yt);break;case 40:e===41&&hf(e);break;case 92:Kn();break}return Nn}function R2(e,t){for(;Kn()&&e+yt!==47+10;)if(e+yt===42+42&&Ii()===47)break;return"/*"+Uu(t,Nn-1)+"*"+Lp(e===47?e:Kn())}function A2(e){for(;!pf(Ii());)Kn();return Uu(e,Nn)}function D2(e){return P2(Il("",null,null,null,[""],e=j2(e),0,[0],e))}function Il(e,t,n,r,i,o,s,l,u){for(var c=0,f=0,h=s,m=0,y=0,x=0,_=1,C=1,v=1,g=0,b="",T=i,N=o,k=r,O=b;C;)switch(x=g,g=Kn()){case 40:if(x!=108&&Ct(O,h-1)==58){$l(O+=be(id(g),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:O+=id(g);break;case 9:case 10:case 13:case 32:O+=N2(x);break;case 92:O+=L2(Ml()-1,7);continue;case 47:switch(Ii()){case 42:case 47:Ds($2(R2(Kn(),Ml()),t,n,u),u);break;default:O+="/"}break;case 123*_:l[c++]=nr(O)*v;case 125*_:case 59:case 0:switch(g){case 0:case 125:C=0;case 59+f:v==-1&&(O=be(O,/\f/g,"")),y>0&&nr(O)-h&&Ds(y>32?Kg(O+";",r,n,h-1,u):Kg(be(O," ","")+";",r,n,h-2,u),u);break;case 59:O+=";";default:if(Ds(k=Gg(O,t,n,c,f,i,l,b,T=[],N=[],h,o),o),g===123)if(f===0)Il(O,t,k,k,T,o,h,l,N);else switch(m===99&&Ct(O,3)===110?100:m){case 100:case 108:case 109:case 115:Il(e,k,k,r&&Ds(Gg(e,k,k,0,0,i,l,b,i,T=[],h,N),N),i,N,h,l,r?T:N);break;default:Il(O,k,k,k,[""],N,0,l,N)}}c=f=y=0,_=v=1,b=O="",h=s;break;case 58:h=1+nr(O),y=x;default:if(_<1){if(g==123)--_;else if(g==125&&_++==0&&O2()==125)continue}switch(O+=Lp(g),g*_){case 38:v=f>0?1:(O+="\f",-1);break;case 44:l[c++]=(nr(O)-1)*v,v=1;break;case 64:Ii()===45&&(O+=id(Kn())),m=Ii(),f=h=nr(b=O+=A2(Ml())),g++;break;case 45:x===45&&nr(O)==2&&(_=0)}}return o}function Gg(e,t,n,r,i,o,s,l,u,c,f,h){for(var m=i-1,y=i===0?o:[""],x=v1(y),_=0,C=0,v=0;_0?y[g]+" "+b:be(b,/&\f/g,y[g])))&&(u[v++]=T);return Bu(e,t,n,i===0?zu:l,u,c,f,h)}function $2(e,t,n,r){return Bu(e,t,n,h1,Lp(T2()),Fo(e,2,-2),0,r)}function Kg(e,t,n,r,i){return Bu(e,t,n,Np,Fo(e,0,r),Fo(e,r+1,-1),r,i)}function w1(e,t,n){switch(k2(e,t)){case 5103:return Fe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Fe+e+e;case 4789:return Qs+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Fe+e+Qs+e+Ze+e+e;case 5936:switch(Ct(e,t+11)){case 114:return Fe+e+Ze+be(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Fe+e+Ze+be(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Fe+e+Ze+be(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Fe+e+Ze+e+e;case 6165:return Fe+e+Ze+"flex-"+e+e;case 5187:return Fe+e+be(e,/(\w+).+(:[^]+)/,Fe+"box-$1$2"+Ze+"flex-$1$2")+e;case 5443:return Fe+e+Ze+"flex-item-"+be(e,/flex-|-self/g,"")+(mr(e,/flex-|baseline/)?"":Ze+"grid-row-"+be(e,/flex-|-self/g,""))+e;case 4675:return Fe+e+Ze+"flex-line-pack"+be(e,/align-content|flex-|-self/g,"")+e;case 5548:return Fe+e+Ze+be(e,"shrink","negative")+e;case 5292:return Fe+e+Ze+be(e,"basis","preferred-size")+e;case 6060:return Fe+"box-"+be(e,"-grow","")+Fe+e+Ze+be(e,"grow","positive")+e;case 4554:return Fe+be(e,/([^-])(transform)/g,"$1"+Fe+"$2")+e;case 6187:return be(be(be(e,/(zoom-|grab)/,Fe+"$1"),/(image-set)/,Fe+"$1"),e,"")+e;case 5495:case 3959:return be(e,/(image-set\([^]*)/,Fe+"$1$`$1");case 4968:return be(be(e,/(.+:)(flex-)?(.*)/,Fe+"box-pack:$3"+Ze+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Fe+e+e;case 4200:if(!mr(e,/flex-|baseline/))return Ze+"grid-column-align"+Fo(e,t)+e;break;case 2592:case 3360:return Ze+be(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,mr(r.props,/grid-\w+-end/)})?~$l(e+(n=n[t].value),"span")?e:Ze+be(e,"-start","")+e+Ze+"grid-row-span:"+(~$l(n,"span")?mr(n,/\d+/):+mr(n,/\d+/)-+mr(e,/\d+/))+";":Ze+be(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return mr(r.props,/grid-\w+-start/)})?e:Ze+be(be(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return be(e,/(.+)-inline(.+)/,Fe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(nr(e)-1-t>6)switch(Ct(e,t+1)){case 109:if(Ct(e,t+4)!==45)break;case 102:return be(e,/(.+:)(.+)-([^]+)/,"$1"+Fe+"$2-$3$1"+Qs+(Ct(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~$l(e,"stretch")?w1(be(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return be(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,s,l,u,c){return Ze+i+":"+o+c+(s?Ze+i+"-span:"+(l?u:+u-+o)+c:"")+e});case 4949:if(Ct(e,t+6)===121)return be(e,":",":"+Fe)+e;break;case 6444:switch(Ct(e,Ct(e,14)===45?18:11)){case 120:return be(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Fe+(Ct(e,14)===45?"inline-":"")+"box$3$1"+Fe+"$2$3$1"+Ze+"$2box$3")+e;case 100:return be(e,":",":"+Ze)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return be(e,"scroll-","scroll-snap-")+e}return e}function gu(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case Np:e.return=w1(e.value,e.length,n);return;case m1:return gu([Mr(e,{value:be(e.value,"@","@"+Fe)})],r);case zu:if(e.length)return C2(n=e.props,function(i){switch(mr(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":lo(Mr(e,{props:[be(i,/:(read-\w+)/,":"+Qs+"$1")]})),lo(Mr(e,{props:[i]})),ff(e,{props:Vg(n,r)});break;case"::placeholder":lo(Mr(e,{props:[be(i,/:(plac\w+)/,":"+Fe+"input-$1")]})),lo(Mr(e,{props:[be(i,/:(plac\w+)/,":"+Qs+"$1")]})),lo(Mr(e,{props:[be(i,/:(plac\w+)/,Ze+"input-$1")]})),lo(Mr(e,{props:[i]})),ff(e,{props:Vg(n,r)});break}return""})}}var B2={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Uo=typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",x1="active",_1="data-styled-version",Hu="6.1.3",Rp=`/*!sc*/ -`,Ap=typeof window<"u"&&"HTMLElement"in window,U2=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==""?{}.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&{}.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.SC_DISABLE_SPEEDY!==void 0&&{}.SC_DISABLE_SPEEDY!==""&&{}.SC_DISABLE_SPEEDY!=="false"&&{}.SC_DISABLE_SPEEDY),Wu=Object.freeze([]),Ho=Object.freeze({});function H2(e,t,n){return n===void 0&&(n=Ho),e.theme!==n.theme&&e.theme||t||n.theme}var E1=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),W2=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,V2=/(^-|-$)/g;function Qg(e){return e.replace(W2,"-").replace(V2,"")}var G2=/(a)(d)/gi,yl=52,Yg=function(e){return String.fromCharCode(e+(e>25?39:97))};function mf(e){var t,n="";for(t=Math.abs(e);t>yl;t=t/yl|0)n=Yg(t%yl)+n;return(Yg(t%yl)+n).replace(G2,"$1-$2")}var od,b1=5381,ko=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},S1=function(e){return ko(b1,e)};function k1(e){return mf(S1(e)>>>0)}function K2(e){return e.displayName||e.name||"Component"}function sd(e){return typeof e=="string"&&!0}var C1=typeof Symbol=="function"&&Symbol.for,T1=C1?Symbol.for("react.memo"):60115,Q2=C1?Symbol.for("react.forward_ref"):60112,Y2={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},q2={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},O1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},X2=((od={})[Q2]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},od[T1]=O1,od);function qg(e){return("type"in(t=e)&&t.type.$$typeof)===T1?O1:"$$typeof"in e?X2[e.$$typeof]:Y2;var t}var Z2=Object.defineProperty,J2=Object.getOwnPropertyNames,Xg=Object.getOwnPropertySymbols,ek=Object.getOwnPropertyDescriptor,tk=Object.getPrototypeOf,Zg=Object.prototype;function j1(e,t,n){if(typeof t!="string"){if(Zg){var r=tk(t);r&&r!==Zg&&j1(e,r,n)}var i=J2(t);Xg&&(i=i.concat(Xg(t)));for(var o=qg(e),s=qg(t),l=0;l0?" Args: ".concat(t.join(", ")):""))}var nk=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw Pa(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var s=i;s=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,s=i;s=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(C+="".concat(v,","))}),u+="".concat(x).concat(_,'{content:"').concat(C,'"}').concat(Rp)},f=0;f0?".".concat(t):m},f=u.slice();f.push(function(m){m.type===zu&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(pk,n).replace(r,c))}),s.prefix&&f.push(F2),f.push(M2);var h=function(m,y,x,_){y===void 0&&(y=""),x===void 0&&(x=""),_===void 0&&(_="&"),t=_,n=y,r=new RegExp("\\".concat(n,"\\b"),"g");var C=m.replace(hk,""),v=D2(x||y?"".concat(x," ").concat(y," { ").concat(C," }"):C);s.namespace&&(v=L1(v,s.namespace));var g=[];return gu(v,I2(f.concat(z2(function(b){return g.push(b)})))),g};return h.hash=u.length?u.reduce(function(m,y){return y.name||Pa(15),ko(m,y.name)},b1).toString():"",h}var gk=new N1,yf=mk(),R1=ke.createContext({shouldForwardProp:void 0,styleSheet:gk,stylis:yf});R1.Consumer;ke.createContext(void 0);function ev(){return S.useContext(R1)}var A1=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=yf);var s=r.name+o.hash;i.hasNameForId(r.id,s)||i.insertRules(r.id,s,o(r.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,$p(this,function(){throw Pa(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=yf),this.name+t.hash},e}(),vk=function(e){return e>="A"&&e<="Z"};function tv(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,s)){var l=r(o,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,l)}i=Ai(i,s),this.staticRulesId=s}else{for(var u=ko(this.baseHash,r.hash),c="",f=0;f>>0);n.hasNameForId(this.componentId,y)||n.insertRules(this.componentId,y,r(c,".".concat(y),void 0,this.componentId)),i=Ai(i,y)}}return i},e}(),M1=ke.createContext(void 0);M1.Consumer;var ad={};function _k(e,t,n){var r=Dp(e),i=e,o=!sd(e),s=t.attrs,l=s===void 0?Wu:s,u=t.componentId,c=u===void 0?function(T,N){var k=typeof T!="string"?"sc":Qg(T);ad[k]=(ad[k]||0)+1;var O="".concat(k,"-").concat(k1(Hu+k+ad[k]));return N?"".concat(N,"-").concat(O):O}(t.displayName,t.parentComponentId):u,f=t.displayName,h=f===void 0?function(T){return sd(T)?"styled.".concat(T):"Styled(".concat(K2(T),")")}(e):f,m=t.displayName&&t.componentId?"".concat(Qg(t.displayName),"-").concat(t.componentId):t.componentId||c,y=r&&i.attrs?i.attrs.concat(l).filter(Boolean):l,x=t.shouldForwardProp;if(r&&i.shouldForwardProp){var _=i.shouldForwardProp;if(t.shouldForwardProp){var C=t.shouldForwardProp;x=function(T,N){return _(T,N)&&C(T,N)}}else x=_}var v=new xk(n,m,r?i.componentStyle:void 0);function g(T,N){return function(k,O,A){var F=k.attrs,H=k.componentStyle,z=k.defaultProps,I=k.foldedComponentIds,K=k.styledComponentId,V=k.target,re=ke.useContext(M1),oe=ev(),ne=k.shouldForwardProp||oe.shouldForwardProp,U=function(ae,ye,ue){for(var xe,G=Yt(Yt({},ye),{className:void 0,theme:ue}),We=0;Wen.has(p)&&n.get(p).get(a)||null,remove(p,a){if(!n.has(p))return;const d=n.get(p);d.delete(a),d.size===0&&n.delete(p)}},i="transitionend",o=p=>(p&&window.CSS&&window.CSS.escape&&(p=p.replace(/#([^\s"#']+)/g,(a,d)=>`#${CSS.escape(d)}`)),p),s=p=>{p.dispatchEvent(new Event(i))},l=p=>!(!p||typeof p!="object")&&(p.jquery!==void 0&&(p=p[0]),p.nodeType!==void 0),u=p=>l(p)?p.jquery?p[0]:p:typeof p=="string"&&p.length>0?document.querySelector(o(p)):null,c=p=>{if(!l(p)||p.getClientRects().length===0)return!1;const a=getComputedStyle(p).getPropertyValue("visibility")==="visible",d=p.closest("details:not([open])");if(!d)return a;if(d!==p){const w=p.closest("summary");if(w&&w.parentNode!==d||w===null)return!1}return a},f=p=>!p||p.nodeType!==Node.ELEMENT_NODE||!!p.classList.contains("disabled")||(p.disabled!==void 0?p.disabled:p.hasAttribute("disabled")&&p.getAttribute("disabled")!=="false"),h=p=>{if(!document.documentElement.attachShadow)return null;if(typeof p.getRootNode=="function"){const a=p.getRootNode();return a instanceof ShadowRoot?a:null}return p instanceof ShadowRoot?p:p.parentNode?h(p.parentNode):null},m=()=>{},y=p=>{p.offsetHeight},x=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,_=[],C=()=>document.documentElement.dir==="rtl",v=p=>{var a;a=()=>{const d=x();if(d){const w=p.NAME,j=d.fn[w];d.fn[w]=p.jQueryInterface,d.fn[w].Constructor=p,d.fn[w].noConflict=()=>(d.fn[w]=j,p.jQueryInterface)}},document.readyState==="loading"?(_.length||document.addEventListener("DOMContentLoaded",()=>{for(const d of _)d()}),_.push(a)):a()},g=(p,a=[],d=p)=>typeof p=="function"?p(...a):d,b=(p,a,d=!0)=>{if(!d)return void g(p);const w=($=>{if(!$)return 0;let{transitionDuration:B,transitionDelay:Q}=window.getComputedStyle($);const J=Number.parseFloat(B),te=Number.parseFloat(Q);return J||te?(B=B.split(",")[0],Q=Q.split(",")[0],1e3*(Number.parseFloat(B)+Number.parseFloat(Q))):0})(a)+5;let j=!1;const P=({target:$})=>{$===a&&(j=!0,a.removeEventListener(i,P),g(p))};a.addEventListener(i,P),setTimeout(()=>{j||s(a)},w)},T=(p,a,d,w)=>{const j=p.length;let P=p.indexOf(a);return P===-1?!d&&w?p[j-1]:p[0]:(P+=d?1:-1,w&&(P=(P+j)%j),p[Math.max(0,Math.min(P,j-1))])},N=/[^.]*(?=\..*)\.|.*/,k=/\..*/,O=/::\d+$/,A={};let F=1;const H={mouseenter:"mouseover",mouseleave:"mouseout"},z=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function I(p,a){return a&&`${a}::${F++}`||p.uidEvent||F++}function K(p){const a=I(p);return p.uidEvent=a,A[a]=A[a]||{},A[a]}function V(p,a,d=null){return Object.values(p).find(w=>w.callable===a&&w.delegationSelector===d)}function re(p,a,d){const w=typeof a=="string",j=w?d:a||d;let P=q(p);return z.has(P)||(P=p),[w,j,P]}function oe(p,a,d,w,j){if(typeof a!="string"||!p)return;let[P,$,B]=re(a,d,w);a in H&&($=(me=>function(fe){if(!fe.relatedTarget||fe.relatedTarget!==fe.delegateTarget&&!fe.delegateTarget.contains(fe.relatedTarget))return me.call(this,fe)})($));const Q=K(p),J=Q[B]||(Q[B]={}),te=V(J,$,P?d:null);if(te)return void(te.oneOff=te.oneOff&&j);const X=I($,a.replace(N,"")),_e=P?function(ce,me,fe){return function ge(Ve){const Ye=ce.querySelectorAll(me);for(let{target:Ce}=Ve;Ce&&Ce!==this;Ce=Ce.parentNode)for(const Ie of Ye)if(Ie===Ce)return se(Ve,{delegateTarget:Ce}),ge.oneOff&&R.off(ce,Ve.type,me,fe),fe.apply(Ce,[Ve])}}(p,d,$):function(ce,me){return function fe(ge){return se(ge,{delegateTarget:ce}),fe.oneOff&&R.off(ce,ge.type,me),me.apply(ce,[ge])}}(p,$);_e.delegationSelector=P?d:null,_e.callable=$,_e.oneOff=j,_e.uidEvent=X,J[X]=_e,p.addEventListener(B,_e,P)}function ne(p,a,d,w,j){const P=V(a[d],w,j);P&&(p.removeEventListener(d,P,!!j),delete a[d][P.uidEvent])}function U(p,a,d,w){const j=a[d]||{};for(const[P,$]of Object.entries(j))P.includes(w)&&ne(p,a,d,$.callable,$.delegationSelector)}function q(p){return p=p.replace(k,""),H[p]||p}const R={on(p,a,d,w){oe(p,a,d,w,!1)},one(p,a,d,w){oe(p,a,d,w,!0)},off(p,a,d,w){if(typeof a!="string"||!p)return;const[j,P,$]=re(a,d,w),B=$!==a,Q=K(p),J=Q[$]||{},te=a.startsWith(".");if(P===void 0){if(te)for(const X of Object.keys(Q))U(p,Q,X,a.slice(1));for(const[X,_e]of Object.entries(J)){const ce=X.replace(O,"");B&&!a.includes(ce)||ne(p,Q,$,_e.callable,_e.delegationSelector)}}else{if(!Object.keys(J).length)return;ne(p,Q,$,P,j?d:null)}},trigger(p,a,d){if(typeof a!="string"||!p)return null;const w=x();let j=null,P=!0,$=!0,B=!1;a!==q(a)&&w&&(j=w.Event(a,d),w(p).trigger(j),P=!j.isPropagationStopped(),$=!j.isImmediatePropagationStopped(),B=j.isDefaultPrevented());const Q=se(new Event(a,{bubbles:P,cancelable:!0}),d);return B&&Q.preventDefault(),$&&p.dispatchEvent(Q),Q.defaultPrevented&&j&&j.preventDefault(),Q}};function se(p,a={}){for(const[d,w]of Object.entries(a))try{p[d]=w}catch{Object.defineProperty(p,d,{configurable:!0,get:()=>w})}return p}function ve(p){if(p==="true")return!0;if(p==="false")return!1;if(p===Number(p).toString())return Number(p);if(p===""||p==="null")return null;if(typeof p!="string")return p;try{return JSON.parse(decodeURIComponent(p))}catch{return p}}function Re(p){return p.replace(/[A-Z]/g,a=>`-${a.toLowerCase()}`)}const ae={setDataAttribute(p,a,d){p.setAttribute(`data-bs-${Re(a)}`,d)},removeDataAttribute(p,a){p.removeAttribute(`data-bs-${Re(a)}`)},getDataAttributes(p){if(!p)return{};const a={},d=Object.keys(p.dataset).filter(w=>w.startsWith("bs")&&!w.startsWith("bsConfig"));for(const w of d){let j=w.replace(/^bs/,"");j=j.charAt(0).toLowerCase()+j.slice(1,j.length),a[j]=ve(p.dataset[w])}return a},getDataAttribute:(p,a)=>ve(p.getAttribute(`data-bs-${Re(a)}`))};class ye{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(a){return a=this._mergeConfigObj(a),a=this._configAfterMerge(a),this._typeCheckConfig(a),a}_configAfterMerge(a){return a}_mergeConfigObj(a,d){const w=l(d)?ae.getDataAttribute(d,"config"):{};return{...this.constructor.Default,...typeof w=="object"?w:{},...l(d)?ae.getDataAttributes(d):{},...typeof a=="object"?a:{}}}_typeCheckConfig(a,d=this.constructor.DefaultType){for(const[j,P]of Object.entries(d)){const $=a[j],B=l($)?"element":(w=$)==null?`${w}`:Object.prototype.toString.call(w).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(P).test(B))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${j}" provided type "${B}" but expected type "${P}".`)}var w}}class ue extends ye{constructor(a,d){super(),(a=u(a))&&(this._element=a,this._config=this._getConfig(d),r.set(this._element,this.constructor.DATA_KEY,this))}dispose(){r.remove(this._element,this.constructor.DATA_KEY),R.off(this._element,this.constructor.EVENT_KEY);for(const a of Object.getOwnPropertyNames(this))this[a]=null}_queueCallback(a,d,w=!0){b(a,d,w)}_getConfig(a){return a=this._mergeConfigObj(a,this._element),a=this._configAfterMerge(a),this._typeCheckConfig(a),a}static getInstance(a){return r.get(u(a),this.DATA_KEY)}static getOrCreateInstance(a,d={}){return this.getInstance(a)||new this(a,typeof d=="object"?d:null)}static get VERSION(){return"5.3.2"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(a){return`${a}${this.EVENT_KEY}`}}const xe=p=>{let a=p.getAttribute("data-bs-target");if(!a||a==="#"){let d=p.getAttribute("href");if(!d||!d.includes("#")&&!d.startsWith("."))return null;d.includes("#")&&!d.startsWith("#")&&(d=`#${d.split("#")[1]}`),a=d&&d!=="#"?o(d.trim()):null}return a},G={find:(p,a=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(a,p)),findOne:(p,a=document.documentElement)=>Element.prototype.querySelector.call(a,p),children:(p,a)=>[].concat(...p.children).filter(d=>d.matches(a)),parents(p,a){const d=[];let w=p.parentNode.closest(a);for(;w;)d.push(w),w=w.parentNode.closest(a);return d},prev(p,a){let d=p.previousElementSibling;for(;d;){if(d.matches(a))return[d];d=d.previousElementSibling}return[]},next(p,a){let d=p.nextElementSibling;for(;d;){if(d.matches(a))return[d];d=d.nextElementSibling}return[]},focusableChildren(p){const a=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(d=>`${d}:not([tabindex^="-"])`).join(",");return this.find(a,p).filter(d=>!f(d)&&c(d))},getSelectorFromElement(p){const a=xe(p);return a&&G.findOne(a)?a:null},getElementFromSelector(p){const a=xe(p);return a?G.findOne(a):null},getMultipleElementsFromSelector(p){const a=xe(p);return a?G.find(a):[]}},We=(p,a="hide")=>{const d=`click.dismiss${p.EVENT_KEY}`,w=p.NAME;R.on(document,d,`[data-bs-dismiss="${w}"]`,function(j){if(["A","AREA"].includes(this.tagName)&&j.preventDefault(),f(this))return;const P=G.getElementFromSelector(this)||this.closest(`.${w}`);p.getOrCreateInstance(P)[a]()})},mt=".bs.alert",Te=`close${mt}`,xt=`closed${mt}`;class Pe extends ue{static get NAME(){return"alert"}close(){if(R.trigger(this._element,Te).defaultPrevented)return;this._element.classList.remove("show");const a=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,a)}_destroyElement(){this._element.remove(),R.trigger(this._element,xt),this.dispose()}static jQueryInterface(a){return this.each(function(){const d=Pe.getOrCreateInstance(this);if(typeof a=="string"){if(d[a]===void 0||a.startsWith("_")||a==="constructor")throw new TypeError(`No method named "${a}"`);d[a](this)}})}}We(Pe,"close"),v(Pe);const Ne='[data-bs-toggle="button"]';class ze extends ue{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(a){return this.each(function(){const d=ze.getOrCreateInstance(this);a==="toggle"&&d[a]()})}}R.on(document,"click.bs.button.data-api",Ne,p=>{p.preventDefault();const a=p.target.closest(Ne);ze.getOrCreateInstance(a).toggle()}),v(ze);const gt=".bs.swipe",cr=`touchstart${gt}`,rs=`touchmove${gt}`,is=`touchend${gt}`,Dn=`pointerdown${gt}`,gn=`pointerup${gt}`,ci={endCallback:null,leftCallback:null,rightCallback:null},Or={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Ot extends ye{constructor(a,d){super(),this._element=a,a&&Ot.isSupported()&&(this._config=this._getConfig(d),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return ci}static get DefaultType(){return Or}static get NAME(){return"swipe"}dispose(){R.off(this._element,gt)}_start(a){this._supportPointerEvents?this._eventIsPointerPenTouch(a)&&(this._deltaX=a.clientX):this._deltaX=a.touches[0].clientX}_end(a){this._eventIsPointerPenTouch(a)&&(this._deltaX=a.clientX-this._deltaX),this._handleSwipe(),g(this._config.endCallback)}_move(a){this._deltaX=a.touches&&a.touches.length>1?0:a.touches[0].clientX-this._deltaX}_handleSwipe(){const a=Math.abs(this._deltaX);if(a<=40)return;const d=a/this._deltaX;this._deltaX=0,d&&g(d>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(R.on(this._element,Dn,a=>this._start(a)),R.on(this._element,gn,a=>this._end(a)),this._element.classList.add("pointer-event")):(R.on(this._element,cr,a=>this._start(a)),R.on(this._element,rs,a=>this._move(a)),R.on(this._element,is,a=>this._end(a)))}_eventIsPointerPenTouch(a){return this._supportPointerEvents&&(a.pointerType==="pen"||a.pointerType==="touch")}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const jt=".bs.carousel",jr=".data-api",rn="next",$n="prev",It="left",di="right",Da=`slide${jt}`,Xi=`slid${jt}`,Zu=`keydown${jt}`,$a=`mouseenter${jt}`,Zi=`mouseleave${jt}`,Ma=`dragstart${jt}`,os=`load${jt}${jr}`,Ju=`click${jt}${jr}`,ss="carousel",Ji="active",as=".active",Ia=".carousel-item",L=as+Ia,D={ArrowLeft:di,ArrowRight:It},M={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Y={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Z extends ue{constructor(a,d){super(a,d),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=G.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===ss&&this.cycle()}static get Default(){return M}static get DefaultType(){return Y}static get NAME(){return"carousel"}next(){this._slide(rn)}nextWhenVisible(){!document.hidden&&c(this._element)&&this.next()}prev(){this._slide($n)}pause(){this._isSliding&&s(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?R.one(this._element,Xi,()=>this.cycle()):this.cycle())}to(a){const d=this._getItems();if(a>d.length-1||a<0)return;if(this._isSliding)return void R.one(this._element,Xi,()=>this.to(a));const w=this._getItemIndex(this._getActive());if(w===a)return;const j=a>w?rn:$n;this._slide(j,d[a])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(a){return a.defaultInterval=a.interval,a}_addEventListeners(){this._config.keyboard&&R.on(this._element,Zu,a=>this._keydown(a)),this._config.pause==="hover"&&(R.on(this._element,$a,()=>this.pause()),R.on(this._element,Zi,()=>this._maybeEnableCycle())),this._config.touch&&Ot.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const d of G.find(".carousel-item img",this._element))R.on(d,Ma,w=>w.preventDefault());const a={leftCallback:()=>this._slide(this._directionToOrder(It)),rightCallback:()=>this._slide(this._directionToOrder(di)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new Ot(this._element,a)}_keydown(a){if(/input|textarea/i.test(a.target.tagName))return;const d=D[a.key];d&&(a.preventDefault(),this._slide(this._directionToOrder(d)))}_getItemIndex(a){return this._getItems().indexOf(a)}_setActiveIndicatorElement(a){if(!this._indicatorsElement)return;const d=G.findOne(as,this._indicatorsElement);d.classList.remove(Ji),d.removeAttribute("aria-current");const w=G.findOne(`[data-bs-slide-to="${a}"]`,this._indicatorsElement);w&&(w.classList.add(Ji),w.setAttribute("aria-current","true"))}_updateInterval(){const a=this._activeElement||this._getActive();if(!a)return;const d=Number.parseInt(a.getAttribute("data-bs-interval"),10);this._config.interval=d||this._config.defaultInterval}_slide(a,d=null){if(this._isSliding)return;const w=this._getActive(),j=a===rn,P=d||T(this._getItems(),w,j,this._config.wrap);if(P===w)return;const $=this._getItemIndex(P),B=X=>R.trigger(this._element,X,{relatedTarget:P,direction:this._orderToDirection(a),from:this._getItemIndex(w),to:$});if(B(Da).defaultPrevented||!w||!P)return;const Q=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement($),this._activeElement=P;const J=j?"carousel-item-start":"carousel-item-end",te=j?"carousel-item-next":"carousel-item-prev";P.classList.add(te),y(P),w.classList.add(J),P.classList.add(J),this._queueCallback(()=>{P.classList.remove(J,te),P.classList.add(Ji),w.classList.remove(Ji,te,J),this._isSliding=!1,B(Xi)},w,this._isAnimated()),Q&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return G.findOne(L,this._element)}_getItems(){return G.find(Ia,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(a){return C()?a===It?$n:rn:a===It?rn:$n}_orderToDirection(a){return C()?a===$n?It:di:a===$n?di:It}static jQueryInterface(a){return this.each(function(){const d=Z.getOrCreateInstance(this,a);if(typeof a!="number"){if(typeof a=="string"){if(d[a]===void 0||a.startsWith("_")||a==="constructor")throw new TypeError(`No method named "${a}"`);d[a]()}}else d.to(a)})}}R.on(document,Ju,"[data-bs-slide], [data-bs-slide-to]",function(p){const a=G.getElementFromSelector(this);if(!a||!a.classList.contains(ss))return;p.preventDefault();const d=Z.getOrCreateInstance(a),w=this.getAttribute("data-bs-slide-to");return w?(d.to(w),void d._maybeEnableCycle()):ae.getDataAttribute(this,"slide")==="next"?(d.next(),void d._maybeEnableCycle()):(d.prev(),void d._maybeEnableCycle())}),R.on(window,os,()=>{const p=G.find('[data-bs-ride="carousel"]');for(const a of p)Z.getOrCreateInstance(a)}),v(Z);const pe=".bs.collapse",de=`show${pe}`,le=`shown${pe}`,ie=`hide${pe}`,Oe=`hidden${pe}`,vt=`click${pe}.data-api`,he="show",De="collapse",ot="collapsing",Vt=`:scope .${De} .${De}`,st='[data-bs-toggle="collapse"]',Pr={parent:null,toggle:!0},ls={parent:"(null|element)",toggle:"boolean"};class on extends ue{constructor(a,d){super(a,d),this._isTransitioning=!1,this._triggerArray=[];const w=G.find(st);for(const j of w){const P=G.getSelectorFromElement(j),$=G.find(P).filter(B=>B===this._element);P!==null&&$.length&&this._triggerArray.push(j)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Pr}static get DefaultType(){return ls}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let a=[];if(this._config.parent&&(a=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(j=>j!==this._element).map(j=>on.getOrCreateInstance(j,{toggle:!1}))),a.length&&a[0]._isTransitioning||R.trigger(this._element,de).defaultPrevented)return;for(const j of a)j.hide();const d=this._getDimension();this._element.classList.remove(De),this._element.classList.add(ot),this._element.style[d]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const w=`scroll${d[0].toUpperCase()+d.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ot),this._element.classList.add(De,he),this._element.style[d]="",R.trigger(this._element,le)},this._element,!0),this._element.style[d]=`${this._element[w]}px`}hide(){if(this._isTransitioning||!this._isShown()||R.trigger(this._element,ie).defaultPrevented)return;const a=this._getDimension();this._element.style[a]=`${this._element.getBoundingClientRect()[a]}px`,y(this._element),this._element.classList.add(ot),this._element.classList.remove(De,he);for(const d of this._triggerArray){const w=G.getElementFromSelector(d);w&&!this._isShown(w)&&this._addAriaAndCollapsedClass([d],!1)}this._isTransitioning=!0,this._element.style[a]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ot),this._element.classList.add(De),R.trigger(this._element,Oe)},this._element,!0)}_isShown(a=this._element){return a.classList.contains(he)}_configAfterMerge(a){return a.toggle=!!a.toggle,a.parent=u(a.parent),a}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const a=this._getFirstLevelChildren(st);for(const d of a){const w=G.getElementFromSelector(d);w&&this._addAriaAndCollapsedClass([d],this._isShown(w))}}_getFirstLevelChildren(a){const d=G.find(Vt,this._config.parent);return G.find(a,this._config.parent).filter(w=>!d.includes(w))}_addAriaAndCollapsedClass(a,d){if(a.length)for(const w of a)w.classList.toggle("collapsed",!d),w.setAttribute("aria-expanded",d)}static jQueryInterface(a){const d={};return typeof a=="string"&&/show|hide/.test(a)&&(d.toggle=!1),this.each(function(){const w=on.getOrCreateInstance(this,d);if(typeof a=="string"){if(w[a]===void 0)throw new TypeError(`No method named "${a}"`);w[a]()}})}}R.on(document,vt,st,function(p){(p.target.tagName==="A"||p.delegateTarget&&p.delegateTarget.tagName==="A")&&p.preventDefault();for(const a of G.getMultipleElementsFromSelector(this))on.getOrCreateInstance(a,{toggle:!1}).toggle()}),v(on);var et="top",dt="bottom",Pt="right",_t="left",Nr="auto",sn=[et,dt,Pt,_t],vn="start",Ae="end",Ke="clippingParents",Gt="viewport",Mn="popper",za="reference",ec=sn.reduce(function(p,a){return p.concat([a+"-"+vn,a+"-"+Ae])},[]),tc=[].concat(sn,[Nr]).reduce(function(p,a){return p.concat([a,a+"-"+vn,a+"-"+Ae])},[]),Kp="beforeRead",Qp="read",Yp="afterRead",qp="beforeMain",Xp="main",Zp="afterMain",Jp="beforeWrite",eh="write",th="afterWrite",nh=[Kp,Qp,Yp,qp,Xp,Zp,Jp,eh,th];function qn(p){return p?(p.nodeName||"").toLowerCase():null}function an(p){if(p==null)return window;if(p.toString()!=="[object Window]"){var a=p.ownerDocument;return a&&a.defaultView||window}return p}function fi(p){return p instanceof an(p).Element||p instanceof Element}function yn(p){return p instanceof an(p).HTMLElement||p instanceof HTMLElement}function nc(p){return typeof ShadowRoot<"u"&&(p instanceof an(p).ShadowRoot||p instanceof ShadowRoot)}const rc={name:"applyStyles",enabled:!0,phase:"write",fn:function(p){var a=p.state;Object.keys(a.elements).forEach(function(d){var w=a.styles[d]||{},j=a.attributes[d]||{},P=a.elements[d];yn(P)&&qn(P)&&(Object.assign(P.style,w),Object.keys(j).forEach(function($){var B=j[$];B===!1?P.removeAttribute($):P.setAttribute($,B===!0?"":B)}))})},effect:function(p){var a=p.state,d={popper:{position:a.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(a.elements.popper.style,d.popper),a.styles=d,a.elements.arrow&&Object.assign(a.elements.arrow.style,d.arrow),function(){Object.keys(a.elements).forEach(function(w){var j=a.elements[w],P=a.attributes[w]||{},$=Object.keys(a.styles.hasOwnProperty(w)?a.styles[w]:d[w]).reduce(function(B,Q){return B[Q]="",B},{});yn(j)&&qn(j)&&(Object.assign(j.style,$),Object.keys(P).forEach(function(B){j.removeAttribute(B)}))})}},requires:["computeStyles"]};function Xn(p){return p.split("-")[0]}var pi=Math.max,Fa=Math.min,eo=Math.round;function ic(){var p=navigator.userAgentData;return p!=null&&p.brands&&Array.isArray(p.brands)?p.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}function rh(){return!/^((?!chrome|android).)*safari/i.test(ic())}function to(p,a,d){a===void 0&&(a=!1),d===void 0&&(d=!1);var w=p.getBoundingClientRect(),j=1,P=1;a&&yn(p)&&(j=p.offsetWidth>0&&eo(w.width)/p.offsetWidth||1,P=p.offsetHeight>0&&eo(w.height)/p.offsetHeight||1);var $=(fi(p)?an(p):window).visualViewport,B=!rh()&&d,Q=(w.left+(B&&$?$.offsetLeft:0))/j,J=(w.top+(B&&$?$.offsetTop:0))/P,te=w.width/j,X=w.height/P;return{width:te,height:X,top:J,right:Q+te,bottom:J+X,left:Q,x:Q,y:J}}function oc(p){var a=to(p),d=p.offsetWidth,w=p.offsetHeight;return Math.abs(a.width-d)<=1&&(d=a.width),Math.abs(a.height-w)<=1&&(w=a.height),{x:p.offsetLeft,y:p.offsetTop,width:d,height:w}}function ih(p,a){var d=a.getRootNode&&a.getRootNode();if(p.contains(a))return!0;if(d&&nc(d)){var w=a;do{if(w&&p.isSameNode(w))return!0;w=w.parentNode||w.host}while(w)}return!1}function dr(p){return an(p).getComputedStyle(p)}function Aw(p){return["table","td","th"].indexOf(qn(p))>=0}function Lr(p){return((fi(p)?p.ownerDocument:p.document)||window.document).documentElement}function Ba(p){return qn(p)==="html"?p:p.assignedSlot||p.parentNode||(nc(p)?p.host:null)||Lr(p)}function oh(p){return yn(p)&&dr(p).position!=="fixed"?p.offsetParent:null}function us(p){for(var a=an(p),d=oh(p);d&&Aw(d)&&dr(d).position==="static";)d=oh(d);return d&&(qn(d)==="html"||qn(d)==="body"&&dr(d).position==="static")?a:d||function(w){var j=/firefox/i.test(ic());if(/Trident/i.test(ic())&&yn(w)&&dr(w).position==="fixed")return null;var P=Ba(w);for(nc(P)&&(P=P.host);yn(P)&&["html","body"].indexOf(qn(P))<0;){var $=dr(P);if($.transform!=="none"||$.perspective!=="none"||$.contain==="paint"||["transform","perspective"].indexOf($.willChange)!==-1||j&&$.willChange==="filter"||j&&$.filter&&$.filter!=="none")return P;P=P.parentNode}return null}(p)||a}function sc(p){return["top","bottom"].indexOf(p)>=0?"x":"y"}function cs(p,a,d){return pi(p,Fa(a,d))}function sh(p){return Object.assign({},{top:0,right:0,bottom:0,left:0},p)}function ah(p,a){return a.reduce(function(d,w){return d[w]=p,d},{})}const lh={name:"arrow",enabled:!0,phase:"main",fn:function(p){var a,d=p.state,w=p.name,j=p.options,P=d.elements.arrow,$=d.modifiersData.popperOffsets,B=Xn(d.placement),Q=sc(B),J=[_t,Pt].indexOf(B)>=0?"height":"width";if(P&&$){var te=function(Ge,Ue){return sh(typeof(Ge=typeof Ge=="function"?Ge(Object.assign({},Ue.rects,{placement:Ue.placement})):Ge)!="number"?Ge:ah(Ge,sn))}(j.padding,d),X=oc(P),_e=Q==="y"?et:_t,ce=Q==="y"?dt:Pt,me=d.rects.reference[J]+d.rects.reference[Q]-$[Q]-d.rects.popper[J],fe=$[Q]-d.rects.reference[Q],ge=us(P),Ve=ge?Q==="y"?ge.clientHeight||0:ge.clientWidth||0:0,Ye=me/2-fe/2,Ce=te[_e],Ie=Ve-X[J]-te[ce],Ee=Ve/2-X[J]/2+Ye,Le=cs(Ce,Ee,Ie),Be=Q;d.modifiersData[w]=((a={})[Be]=Le,a.centerOffset=Le-Ee,a)}},effect:function(p){var a=p.state,d=p.options.element,w=d===void 0?"[data-popper-arrow]":d;w!=null&&(typeof w!="string"||(w=a.elements.popper.querySelector(w)))&&ih(a.elements.popper,w)&&(a.elements.arrow=w)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function no(p){return p.split("-")[1]}var Dw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uh(p){var a,d=p.popper,w=p.popperRect,j=p.placement,P=p.variation,$=p.offsets,B=p.position,Q=p.gpuAcceleration,J=p.adaptive,te=p.roundOffsets,X=p.isFixed,_e=$.x,ce=_e===void 0?0:_e,me=$.y,fe=me===void 0?0:me,ge=typeof te=="function"?te({x:ce,y:fe}):{x:ce,y:fe};ce=ge.x,fe=ge.y;var Ve=$.hasOwnProperty("x"),Ye=$.hasOwnProperty("y"),Ce=_t,Ie=et,Ee=window;if(J){var Le=us(d),Be="clientHeight",Ge="clientWidth";Le===an(d)&&dr(Le=Lr(d)).position!=="static"&&B==="absolute"&&(Be="scrollHeight",Ge="scrollWidth"),(j===et||(j===_t||j===Pt)&&P===Ae)&&(Ie=dt,fe-=(X&&Le===Ee&&Ee.visualViewport?Ee.visualViewport.height:Le[Be])-w.height,fe*=Q?1:-1),j!==_t&&(j!==et&&j!==dt||P!==Ae)||(Ce=Pt,ce-=(X&&Le===Ee&&Ee.visualViewport?Ee.visualViewport.width:Le[Ge])-w.width,ce*=Q?1:-1)}var Ue,ft=Object.assign({position:B},J&&Dw),ln=te===!0?function(zn,zt){var xn=zn.x,_n=zn.y,at=zt.devicePixelRatio||1;return{x:eo(xn*at)/at||0,y:eo(_n*at)/at||0}}({x:ce,y:fe},an(d)):{x:ce,y:fe};return ce=ln.x,fe=ln.y,Q?Object.assign({},ft,((Ue={})[Ie]=Ye?"0":"",Ue[Ce]=Ve?"0":"",Ue.transform=(Ee.devicePixelRatio||1)<=1?"translate("+ce+"px, "+fe+"px)":"translate3d("+ce+"px, "+fe+"px, 0)",Ue)):Object.assign({},ft,((a={})[Ie]=Ye?fe+"px":"",a[Ce]=Ve?ce+"px":"",a.transform="",a))}const ac={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(p){var a=p.state,d=p.options,w=d.gpuAcceleration,j=w===void 0||w,P=d.adaptive,$=P===void 0||P,B=d.roundOffsets,Q=B===void 0||B,J={placement:Xn(a.placement),variation:no(a.placement),popper:a.elements.popper,popperRect:a.rects.popper,gpuAcceleration:j,isFixed:a.options.strategy==="fixed"};a.modifiersData.popperOffsets!=null&&(a.styles.popper=Object.assign({},a.styles.popper,uh(Object.assign({},J,{offsets:a.modifiersData.popperOffsets,position:a.options.strategy,adaptive:$,roundOffsets:Q})))),a.modifiersData.arrow!=null&&(a.styles.arrow=Object.assign({},a.styles.arrow,uh(Object.assign({},J,{offsets:a.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Q})))),a.attributes.popper=Object.assign({},a.attributes.popper,{"data-popper-placement":a.placement})},data:{}};var Ua={passive:!0};const lc={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(p){var a=p.state,d=p.instance,w=p.options,j=w.scroll,P=j===void 0||j,$=w.resize,B=$===void 0||$,Q=an(a.elements.popper),J=[].concat(a.scrollParents.reference,a.scrollParents.popper);return P&&J.forEach(function(te){te.addEventListener("scroll",d.update,Ua)}),B&&Q.addEventListener("resize",d.update,Ua),function(){P&&J.forEach(function(te){te.removeEventListener("scroll",d.update,Ua)}),B&&Q.removeEventListener("resize",d.update,Ua)}},data:{}};var $w={left:"right",right:"left",bottom:"top",top:"bottom"};function Ha(p){return p.replace(/left|right|bottom|top/g,function(a){return $w[a]})}var Mw={start:"end",end:"start"};function ch(p){return p.replace(/start|end/g,function(a){return Mw[a]})}function uc(p){var a=an(p);return{scrollLeft:a.pageXOffset,scrollTop:a.pageYOffset}}function cc(p){return to(Lr(p)).left+uc(p).scrollLeft}function dc(p){var a=dr(p),d=a.overflow,w=a.overflowX,j=a.overflowY;return/auto|scroll|overlay|hidden/.test(d+j+w)}function dh(p){return["html","body","#document"].indexOf(qn(p))>=0?p.ownerDocument.body:yn(p)&&dc(p)?p:dh(Ba(p))}function ds(p,a){var d;a===void 0&&(a=[]);var w=dh(p),j=w===((d=p.ownerDocument)==null?void 0:d.body),P=an(w),$=j?[P].concat(P.visualViewport||[],dc(w)?w:[]):w,B=a.concat($);return j?B:B.concat(ds(Ba($)))}function fc(p){return Object.assign({},p,{left:p.x,top:p.y,right:p.x+p.width,bottom:p.y+p.height})}function fh(p,a,d){return a===Gt?fc(function(w,j){var P=an(w),$=Lr(w),B=P.visualViewport,Q=$.clientWidth,J=$.clientHeight,te=0,X=0;if(B){Q=B.width,J=B.height;var _e=rh();(_e||!_e&&j==="fixed")&&(te=B.offsetLeft,X=B.offsetTop)}return{width:Q,height:J,x:te+cc(w),y:X}}(p,d)):fi(a)?function(w,j){var P=to(w,!1,j==="fixed");return P.top=P.top+w.clientTop,P.left=P.left+w.clientLeft,P.bottom=P.top+w.clientHeight,P.right=P.left+w.clientWidth,P.width=w.clientWidth,P.height=w.clientHeight,P.x=P.left,P.y=P.top,P}(a,d):fc(function(w){var j,P=Lr(w),$=uc(w),B=(j=w.ownerDocument)==null?void 0:j.body,Q=pi(P.scrollWidth,P.clientWidth,B?B.scrollWidth:0,B?B.clientWidth:0),J=pi(P.scrollHeight,P.clientHeight,B?B.scrollHeight:0,B?B.clientHeight:0),te=-$.scrollLeft+cc(w),X=-$.scrollTop;return dr(B||P).direction==="rtl"&&(te+=pi(P.clientWidth,B?B.clientWidth:0)-Q),{width:Q,height:J,x:te,y:X}}(Lr(p)))}function ph(p){var a,d=p.reference,w=p.element,j=p.placement,P=j?Xn(j):null,$=j?no(j):null,B=d.x+d.width/2-w.width/2,Q=d.y+d.height/2-w.height/2;switch(P){case et:a={x:B,y:d.y-w.height};break;case dt:a={x:B,y:d.y+d.height};break;case Pt:a={x:d.x+d.width,y:Q};break;case _t:a={x:d.x-w.width,y:Q};break;default:a={x:d.x,y:d.y}}var J=P?sc(P):null;if(J!=null){var te=J==="y"?"height":"width";switch($){case vn:a[J]=a[J]-(d[te]/2-w[te]/2);break;case Ae:a[J]=a[J]+(d[te]/2-w[te]/2)}}return a}function ro(p,a){a===void 0&&(a={});var d=a,w=d.placement,j=w===void 0?p.placement:w,P=d.strategy,$=P===void 0?p.strategy:P,B=d.boundary,Q=B===void 0?Ke:B,J=d.rootBoundary,te=J===void 0?Gt:J,X=d.elementContext,_e=X===void 0?Mn:X,ce=d.altBoundary,me=ce!==void 0&&ce,fe=d.padding,ge=fe===void 0?0:fe,Ve=sh(typeof ge!="number"?ge:ah(ge,sn)),Ye=_e===Mn?za:Mn,Ce=p.rects.popper,Ie=p.elements[me?Ye:_e],Ee=function(zt,xn,_n,at){var Zn=xn==="clippingParents"?function(Qe){var Ft=ds(Ba(Qe)),En=["absolute","fixed"].indexOf(dr(Qe).position)>=0&&yn(Qe)?us(Qe):Qe;return fi(En)?Ft.filter(function(Ar){return fi(Ar)&&ih(Ar,En)&&qn(Ar)!=="body"}):[]}(zt):[].concat(xn),Jn=[].concat(Zn,[_n]),so=Jn[0],St=Jn.reduce(function(Qe,Ft){var En=fh(zt,Ft,at);return Qe.top=pi(En.top,Qe.top),Qe.right=Fa(En.right,Qe.right),Qe.bottom=Fa(En.bottom,Qe.bottom),Qe.left=pi(En.left,Qe.left),Qe},fh(zt,so,at));return St.width=St.right-St.left,St.height=St.bottom-St.top,St.x=St.left,St.y=St.top,St}(fi(Ie)?Ie:Ie.contextElement||Lr(p.elements.popper),Q,te,$),Le=to(p.elements.reference),Be=ph({reference:Le,element:Ce,strategy:"absolute",placement:j}),Ge=fc(Object.assign({},Ce,Be)),Ue=_e===Mn?Ge:Le,ft={top:Ee.top-Ue.top+Ve.top,bottom:Ue.bottom-Ee.bottom+Ve.bottom,left:Ee.left-Ue.left+Ve.left,right:Ue.right-Ee.right+Ve.right},ln=p.modifiersData.offset;if(_e===Mn&&ln){var zn=ln[j];Object.keys(ft).forEach(function(zt){var xn=[Pt,dt].indexOf(zt)>=0?1:-1,_n=[et,dt].indexOf(zt)>=0?"y":"x";ft[zt]+=zn[_n]*xn})}return ft}function Iw(p,a){a===void 0&&(a={});var d=a,w=d.placement,j=d.boundary,P=d.rootBoundary,$=d.padding,B=d.flipVariations,Q=d.allowedAutoPlacements,J=Q===void 0?tc:Q,te=no(w),X=te?B?ec:ec.filter(function(me){return no(me)===te}):sn,_e=X.filter(function(me){return J.indexOf(me)>=0});_e.length===0&&(_e=X);var ce=_e.reduce(function(me,fe){return me[fe]=ro(p,{placement:fe,boundary:j,rootBoundary:P,padding:$})[Xn(fe)],me},{});return Object.keys(ce).sort(function(me,fe){return ce[me]-ce[fe]})}const hh={name:"flip",enabled:!0,phase:"main",fn:function(p){var a=p.state,d=p.options,w=p.name;if(!a.modifiersData[w]._skip){for(var j=d.mainAxis,P=j===void 0||j,$=d.altAxis,B=$===void 0||$,Q=d.fallbackPlacements,J=d.padding,te=d.boundary,X=d.rootBoundary,_e=d.altBoundary,ce=d.flipVariations,me=ce===void 0||ce,fe=d.allowedAutoPlacements,ge=a.options.placement,Ve=Xn(ge),Ye=Q||(Ve!==ge&&me?function(Qe){if(Xn(Qe)===Nr)return[];var Ft=Ha(Qe);return[ch(Qe),Ft,ch(Ft)]}(ge):[Ha(ge)]),Ce=[ge].concat(Ye).reduce(function(Qe,Ft){return Qe.concat(Xn(Ft)===Nr?Iw(a,{placement:Ft,boundary:te,rootBoundary:X,padding:J,flipVariations:me,allowedAutoPlacements:fe}):Ft)},[]),Ie=a.rects.reference,Ee=a.rects.popper,Le=new Map,Be=!0,Ge=Ce[0],Ue=0;Ue=0,xn=zt?"width":"height",_n=ro(a,{placement:ft,boundary:te,rootBoundary:X,altBoundary:_e,padding:J}),at=zt?zn?Pt:_t:zn?dt:et;Ie[xn]>Ee[xn]&&(at=Ha(at));var Zn=Ha(at),Jn=[];if(P&&Jn.push(_n[ln]<=0),B&&Jn.push(_n[at]<=0,_n[Zn]<=0),Jn.every(function(Qe){return Qe})){Ge=ft,Be=!1;break}Le.set(ft,Jn)}if(Be)for(var so=function(Qe){var Ft=Ce.find(function(En){var Ar=Le.get(En);if(Ar)return Ar.slice(0,Qe).every(function(Za){return Za})});if(Ft)return Ge=Ft,"break"},St=me?3:1;St>0&&so(St)!=="break";St--);a.placement!==Ge&&(a.modifiersData[w]._skip=!0,a.placement=Ge,a.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function mh(p,a,d){return d===void 0&&(d={x:0,y:0}),{top:p.top-a.height-d.y,right:p.right-a.width+d.x,bottom:p.bottom-a.height+d.y,left:p.left-a.width-d.x}}function gh(p){return[et,Pt,dt,_t].some(function(a){return p[a]>=0})}const vh={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(p){var a=p.state,d=p.name,w=a.rects.reference,j=a.rects.popper,P=a.modifiersData.preventOverflow,$=ro(a,{elementContext:"reference"}),B=ro(a,{altBoundary:!0}),Q=mh($,w),J=mh(B,j,P),te=gh(Q),X=gh(J);a.modifiersData[d]={referenceClippingOffsets:Q,popperEscapeOffsets:J,isReferenceHidden:te,hasPopperEscaped:X},a.attributes.popper=Object.assign({},a.attributes.popper,{"data-popper-reference-hidden":te,"data-popper-escaped":X})}},yh={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(p){var a=p.state,d=p.options,w=p.name,j=d.offset,P=j===void 0?[0,0]:j,$=tc.reduce(function(te,X){return te[X]=function(_e,ce,me){var fe=Xn(_e),ge=[_t,et].indexOf(fe)>=0?-1:1,Ve=typeof me=="function"?me(Object.assign({},ce,{placement:_e})):me,Ye=Ve[0],Ce=Ve[1];return Ye=Ye||0,Ce=(Ce||0)*ge,[_t,Pt].indexOf(fe)>=0?{x:Ce,y:Ye}:{x:Ye,y:Ce}}(X,a.rects,P),te},{}),B=$[a.placement],Q=B.x,J=B.y;a.modifiersData.popperOffsets!=null&&(a.modifiersData.popperOffsets.x+=Q,a.modifiersData.popperOffsets.y+=J),a.modifiersData[w]=$}},pc={name:"popperOffsets",enabled:!0,phase:"read",fn:function(p){var a=p.state,d=p.name;a.modifiersData[d]=ph({reference:a.rects.reference,element:a.rects.popper,strategy:"absolute",placement:a.placement})},data:{}},wh={name:"preventOverflow",enabled:!0,phase:"main",fn:function(p){var a=p.state,d=p.options,w=p.name,j=d.mainAxis,P=j===void 0||j,$=d.altAxis,B=$!==void 0&&$,Q=d.boundary,J=d.rootBoundary,te=d.altBoundary,X=d.padding,_e=d.tether,ce=_e===void 0||_e,me=d.tetherOffset,fe=me===void 0?0:me,ge=ro(a,{boundary:Q,rootBoundary:J,padding:X,altBoundary:te}),Ve=Xn(a.placement),Ye=no(a.placement),Ce=!Ye,Ie=sc(Ve),Ee=Ie==="x"?"y":"x",Le=a.modifiersData.popperOffsets,Be=a.rects.reference,Ge=a.rects.popper,Ue=typeof fe=="function"?fe(Object.assign({},a.rects,{placement:a.placement})):fe,ft=typeof Ue=="number"?{mainAxis:Ue,altAxis:Ue}:Object.assign({mainAxis:0,altAxis:0},Ue),ln=a.modifiersData.offset?a.modifiersData.offset[a.placement]:null,zn={x:0,y:0};if(Le){if(P){var zt,xn=Ie==="y"?et:_t,_n=Ie==="y"?dt:Pt,at=Ie==="y"?"height":"width",Zn=Le[Ie],Jn=Zn+ge[xn],so=Zn-ge[_n],St=ce?-Ge[at]/2:0,Qe=Ye===vn?Be[at]:Ge[at],Ft=Ye===vn?-Ge[at]:-Be[at],En=a.elements.arrow,Ar=ce&&En?oc(En):{width:0,height:0},Za=a.modifiersData["arrow#persistent"]?a.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},om=Za[xn],sm=Za[_n],Ja=cs(0,Be[at],Ar[at]),p_=Ce?Be[at]/2-St-Ja-om-ft.mainAxis:Qe-Ja-om-ft.mainAxis,h_=Ce?-Be[at]/2+St+Ja+sm+ft.mainAxis:Ft+Ja+sm+ft.mainAxis,Cc=a.elements.arrow&&us(a.elements.arrow),m_=Cc?Ie==="y"?Cc.clientTop||0:Cc.clientLeft||0:0,am=(zt=ln==null?void 0:ln[Ie])!=null?zt:0,g_=Zn+h_-am,lm=cs(ce?Fa(Jn,Zn+p_-am-m_):Jn,Zn,ce?pi(so,g_):so);Le[Ie]=lm,zn[Ie]=lm-Zn}if(B){var um,v_=Ie==="x"?et:_t,y_=Ie==="x"?dt:Pt,_i=Le[Ee],el=Ee==="y"?"height":"width",cm=_i+ge[v_],dm=_i-ge[y_],Tc=[et,_t].indexOf(Ve)!==-1,fm=(um=ln==null?void 0:ln[Ee])!=null?um:0,pm=Tc?cm:_i-Be[el]-Ge[el]-fm+ft.altAxis,hm=Tc?_i+Be[el]+Ge[el]-fm-ft.altAxis:dm,mm=ce&&Tc?function(w_,x_,Oc){var gm=cs(w_,x_,Oc);return gm>Oc?Oc:gm}(pm,_i,hm):cs(ce?pm:cm,_i,ce?hm:dm);Le[Ee]=mm,zn[Ee]=mm-_i}a.modifiersData[w]=zn}},requiresIfExists:["offset"]};function zw(p,a,d){d===void 0&&(d=!1);var w,j,P=yn(a),$=yn(a)&&function(X){var _e=X.getBoundingClientRect(),ce=eo(_e.width)/X.offsetWidth||1,me=eo(_e.height)/X.offsetHeight||1;return ce!==1||me!==1}(a),B=Lr(a),Q=to(p,$,d),J={scrollLeft:0,scrollTop:0},te={x:0,y:0};return(P||!P&&!d)&&((qn(a)!=="body"||dc(B))&&(J=(w=a)!==an(w)&&yn(w)?{scrollLeft:(j=w).scrollLeft,scrollTop:j.scrollTop}:uc(w)),yn(a)?((te=to(a,!0)).x+=a.clientLeft,te.y+=a.clientTop):B&&(te.x=cc(B))),{x:Q.left+J.scrollLeft-te.x,y:Q.top+J.scrollTop-te.y,width:Q.width,height:Q.height}}function Fw(p){var a=new Map,d=new Set,w=[];function j(P){d.add(P.name),[].concat(P.requires||[],P.requiresIfExists||[]).forEach(function($){if(!d.has($)){var B=a.get($);B&&j(B)}}),w.push(P)}return p.forEach(function(P){a.set(P.name,P)}),p.forEach(function(P){d.has(P.name)||j(P)}),w}var xh={placement:"bottom",modifiers:[],strategy:"absolute"};function _h(){for(var p=arguments.length,a=new Array(p),d=0;dNumber.parseInt(d,10)):typeof a=="function"?d=>a(d,this._element):a}_getPopperConfig(){const a={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(ae.setDataAttribute(this._menu,"popper","static"),a.modifiers=[{name:"applyStyles",enabled:!1}]),{...a,...g(this._config.popperConfig,[a])}}_selectMenuItem({key:a,target:d}){const w=G.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(j=>c(j));w.length&&T(w,d,a===Sh,!w.includes(d)).focus()}static jQueryInterface(a){return this.each(function(){const d=In.getOrCreateInstance(this,a);if(typeof a=="string"){if(d[a]===void 0)throw new TypeError(`No method named "${a}"`);d[a]()}})}static clearMenus(a){if(a.button===2||a.type==="keyup"&&a.key!=="Tab")return;const d=G.find(Yw);for(const w of d){const j=In.getInstance(w);if(!j||j._config.autoClose===!1)continue;const P=a.composedPath(),$=P.includes(j._menu);if(P.includes(j._element)||j._config.autoClose==="inside"&&!$||j._config.autoClose==="outside"&&$||j._menu.contains(a.target)&&(a.type==="keyup"&&a.key==="Tab"||/input|select|option|textarea|form/i.test(a.target.tagName)))continue;const B={relatedTarget:j._element};a.type==="click"&&(B.clickEvent=a),j._completeHide(B)}}static dataApiKeydownHandler(a){const d=/input|textarea/i.test(a.target.tagName),w=a.key==="Escape",j=[Hw,Sh].includes(a.key);if(!j&&!w||d&&!w)return;a.preventDefault();const P=this.matches(mi)?this:G.prev(this,mi)[0]||G.next(this,mi)[0]||G.findOne(mi,a.delegateTarget.parentNode),$=In.getOrCreateInstance(P);if(j)return a.stopPropagation(),$.show(),void $._selectMenuItem(a);$._isShown()&&(a.stopPropagation(),$.hide(),P.focus())}}R.on(document,Ch,mi,In.dataApiKeydownHandler),R.on(document,Ch,Va,In.dataApiKeydownHandler),R.on(document,kh,In.clearMenus),R.on(document,Qw,In.clearMenus),R.on(document,kh,mi,function(p){p.preventDefault(),In.getOrCreateInstance(this).toggle()}),v(In);const Th="backdrop",Oh="show",jh=`mousedown.bs.${Th}`,ix={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ox={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Ph extends ye{constructor(a){super(),this._config=this._getConfig(a),this._isAppended=!1,this._element=null}static get Default(){return ix}static get DefaultType(){return ox}static get NAME(){return Th}show(a){if(!this._config.isVisible)return void g(a);this._append();const d=this._getElement();this._config.isAnimated&&y(d),d.classList.add(Oh),this._emulateAnimation(()=>{g(a)})}hide(a){this._config.isVisible?(this._getElement().classList.remove(Oh),this._emulateAnimation(()=>{this.dispose(),g(a)})):g(a)}dispose(){this._isAppended&&(R.off(this._element,jh),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const a=document.createElement("div");a.className=this._config.className,this._config.isAnimated&&a.classList.add("fade"),this._element=a}return this._element}_configAfterMerge(a){return a.rootElement=u(a.rootElement),a}_append(){if(this._isAppended)return;const a=this._getElement();this._config.rootElement.append(a),R.on(a,jh,()=>{g(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(a){b(a,this._getElement(),this._config.isAnimated)}}const Ga=".bs.focustrap",sx=`focusin${Ga}`,ax=`keydown.tab${Ga}`,Nh="backward",lx={autofocus:!0,trapElement:null},ux={autofocus:"boolean",trapElement:"element"};class Lh extends ye{constructor(a){super(),this._config=this._getConfig(a),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return lx}static get DefaultType(){return ux}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),R.off(document,Ga),R.on(document,sx,a=>this._handleFocusin(a)),R.on(document,ax,a=>this._handleKeydown(a)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,R.off(document,Ga))}_handleFocusin(a){const{trapElement:d}=this._config;if(a.target===document||a.target===d||d.contains(a.target))return;const w=G.focusableChildren(d);w.length===0?d.focus():this._lastTabNavDirection===Nh?w[w.length-1].focus():w[0].focus()}_handleKeydown(a){a.key==="Tab"&&(this._lastTabNavDirection=a.shiftKey?Nh:"forward")}}const Rh=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Ah=".sticky-top",Ka="padding-right",Dh="margin-right";class gc{constructor(){this._element=document.body}getWidth(){const a=document.documentElement.clientWidth;return Math.abs(window.innerWidth-a)}hide(){const a=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Ka,d=>d+a),this._setElementAttributes(Rh,Ka,d=>d+a),this._setElementAttributes(Ah,Dh,d=>d-a)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Ka),this._resetElementAttributes(Rh,Ka),this._resetElementAttributes(Ah,Dh)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(a,d,w){const j=this.getWidth();this._applyManipulationCallback(a,P=>{if(P!==this._element&&window.innerWidth>P.clientWidth+j)return;this._saveInitialAttribute(P,d);const $=window.getComputedStyle(P).getPropertyValue(d);P.style.setProperty(d,`${w(Number.parseFloat($))}px`)})}_saveInitialAttribute(a,d){const w=a.style.getPropertyValue(d);w&&ae.setDataAttribute(a,d,w)}_resetElementAttributes(a,d){this._applyManipulationCallback(a,w=>{const j=ae.getDataAttribute(w,d);j!==null?(ae.removeDataAttribute(w,d),w.style.setProperty(d,j)):w.style.removeProperty(d)})}_applyManipulationCallback(a,d){if(l(a))d(a);else for(const w of G.find(a,this._element))d(w)}}const wn=".bs.modal",cx=`hide${wn}`,dx=`hidePrevented${wn}`,$h=`hidden${wn}`,Mh=`show${wn}`,fx=`shown${wn}`,px=`resize${wn}`,hx=`click.dismiss${wn}`,mx=`mousedown.dismiss${wn}`,gx=`keydown.dismiss${wn}`,vx=`click${wn}.data-api`,Ih="modal-open",zh="show",vc="modal-static",yx={backdrop:!0,focus:!0,keyboard:!0},wx={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class gi extends ue{constructor(a,d){super(a,d),this._dialog=G.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new gc,this._addEventListeners()}static get Default(){return yx}static get DefaultType(){return wx}static get NAME(){return"modal"}toggle(a){return this._isShown?this.hide():this.show(a)}show(a){this._isShown||this._isTransitioning||R.trigger(this._element,Mh,{relatedTarget:a}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Ih),this._adjustDialog(),this._backdrop.show(()=>this._showElement(a)))}hide(){this._isShown&&!this._isTransitioning&&(R.trigger(this._element,cx).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(zh),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){R.off(window,wn),R.off(this._dialog,wn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ph({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Lh({trapElement:this._element})}_showElement(a){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const d=G.findOne(".modal-body",this._dialog);d&&(d.scrollTop=0),y(this._element),this._element.classList.add(zh),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,R.trigger(this._element,fx,{relatedTarget:a})},this._dialog,this._isAnimated())}_addEventListeners(){R.on(this._element,gx,a=>{a.key==="Escape"&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),R.on(window,px,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),R.on(this._element,mx,a=>{R.one(this._element,hx,d=>{this._element===a.target&&this._element===d.target&&(this._config.backdrop!=="static"?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Ih),this._resetAdjustments(),this._scrollBar.reset(),R.trigger(this._element,$h)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(R.trigger(this._element,dx).defaultPrevented)return;const a=this._element.scrollHeight>document.documentElement.clientHeight,d=this._element.style.overflowY;d==="hidden"||this._element.classList.contains(vc)||(a||(this._element.style.overflowY="hidden"),this._element.classList.add(vc),this._queueCallback(()=>{this._element.classList.remove(vc),this._queueCallback(()=>{this._element.style.overflowY=d},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const a=this._element.scrollHeight>document.documentElement.clientHeight,d=this._scrollBar.getWidth(),w=d>0;if(w&&!a){const j=C()?"paddingLeft":"paddingRight";this._element.style[j]=`${d}px`}if(!w&&a){const j=C()?"paddingRight":"paddingLeft";this._element.style[j]=`${d}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(a,d){return this.each(function(){const w=gi.getOrCreateInstance(this,a);if(typeof a=="string"){if(w[a]===void 0)throw new TypeError(`No method named "${a}"`);w[a](d)}})}}R.on(document,vx,'[data-bs-toggle="modal"]',function(p){const a=G.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&p.preventDefault(),R.one(a,Mh,w=>{w.defaultPrevented||R.one(a,$h,()=>{c(this)&&this.focus()})});const d=G.findOne(".modal.show");d&&gi.getInstance(d).hide(),gi.getOrCreateInstance(a).toggle(this)}),We(gi),v(gi);const fr=".bs.offcanvas",Fh=".data-api",xx=`load${fr}${Fh}`,Bh="show",Uh="showing",Hh="hiding",Wh=".offcanvas.show",_x=`show${fr}`,Ex=`shown${fr}`,bx=`hide${fr}`,Vh=`hidePrevented${fr}`,Gh=`hidden${fr}`,Sx=`resize${fr}`,kx=`click${fr}${Fh}`,Cx=`keydown.dismiss${fr}`,Tx={backdrop:!0,keyboard:!0,scroll:!1},Ox={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class pr extends ue{constructor(a,d){super(a,d),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Tx}static get DefaultType(){return Ox}static get NAME(){return"offcanvas"}toggle(a){return this._isShown?this.hide():this.show(a)}show(a){this._isShown||R.trigger(this._element,_x,{relatedTarget:a}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new gc().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Uh),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Bh),this._element.classList.remove(Uh),R.trigger(this._element,Ex,{relatedTarget:a})},this._element,!0))}hide(){this._isShown&&(R.trigger(this._element,bx).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Hh),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Bh,Hh),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new gc().reset(),R.trigger(this._element,Gh)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const a=!!this._config.backdrop;return new Ph({className:"offcanvas-backdrop",isVisible:a,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:a?()=>{this._config.backdrop!=="static"?this.hide():R.trigger(this._element,Vh)}:null})}_initializeFocusTrap(){return new Lh({trapElement:this._element})}_addEventListeners(){R.on(this._element,Cx,a=>{a.key==="Escape"&&(this._config.keyboard?this.hide():R.trigger(this._element,Vh))})}static jQueryInterface(a){return this.each(function(){const d=pr.getOrCreateInstance(this,a);if(typeof a=="string"){if(d[a]===void 0||a.startsWith("_")||a==="constructor")throw new TypeError(`No method named "${a}"`);d[a](this)}})}}R.on(document,kx,'[data-bs-toggle="offcanvas"]',function(p){const a=G.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&p.preventDefault(),f(this))return;R.one(a,Gh,()=>{c(this)&&this.focus()});const d=G.findOne(Wh);d&&d!==a&&pr.getInstance(d).hide(),pr.getOrCreateInstance(a).toggle(this)}),R.on(window,xx,()=>{for(const p of G.find(Wh))pr.getOrCreateInstance(p).show()}),R.on(window,Sx,()=>{for(const p of G.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(p).position!=="fixed"&&pr.getOrCreateInstance(p).hide()}),We(pr),v(pr);const Kh={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},jx=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Px=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Nx=(p,a)=>{const d=p.nodeName.toLowerCase();return a.includes(d)?!jx.has(d)||!!Px.test(p.nodeValue):a.filter(w=>w instanceof RegExp).some(w=>w.test(d))},Lx={allowList:Kh,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Rx={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Ax={entry:"(string|element|function|null)",selector:"(string|element)"};class Dx extends ye{constructor(a){super(),this._config=this._getConfig(a)}static get Default(){return Lx}static get DefaultType(){return Rx}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(a=>this._resolvePossibleFunction(a)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(a){return this._checkContent(a),this._config.content={...this._config.content,...a},this}toHtml(){const a=document.createElement("div");a.innerHTML=this._maybeSanitize(this._config.template);for(const[j,P]of Object.entries(this._config.content))this._setContent(a,P,j);const d=a.children[0],w=this._resolvePossibleFunction(this._config.extraClass);return w&&d.classList.add(...w.split(" ")),d}_typeCheckConfig(a){super._typeCheckConfig(a),this._checkContent(a.content)}_checkContent(a){for(const[d,w]of Object.entries(a))super._typeCheckConfig({selector:d,entry:w},Ax)}_setContent(a,d,w){const j=G.findOne(w,a);j&&((d=this._resolvePossibleFunction(d))?l(d)?this._putElementInTemplate(u(d),j):this._config.html?j.innerHTML=this._maybeSanitize(d):j.textContent=d:j.remove())}_maybeSanitize(a){return this._config.sanitize?function(d,w,j){if(!d.length)return d;if(j&&typeof j=="function")return j(d);const P=new window.DOMParser().parseFromString(d,"text/html"),$=[].concat(...P.body.querySelectorAll("*"));for(const B of $){const Q=B.nodeName.toLowerCase();if(!Object.keys(w).includes(Q)){B.remove();continue}const J=[].concat(...B.attributes),te=[].concat(w["*"]||[],w[Q]||[]);for(const X of J)Nx(X,te)||B.removeAttribute(X.nodeName)}return P.body.innerHTML}(a,this._config.allowList,this._config.sanitizeFn):a}_resolvePossibleFunction(a){return g(a,[this])}_putElementInTemplate(a,d){if(this._config.html)return d.innerHTML="",void d.append(a);d.textContent=a.textContent}}const $x=new Set(["sanitize","allowList","sanitizeFn"]),yc="fade",Qa="show",Qh=".modal",Yh="hide.bs.modal",fs="hover",wc="focus",Mx={AUTO:"auto",TOP:"top",RIGHT:C()?"left":"right",BOTTOM:"bottom",LEFT:C()?"right":"left"},Ix={allowList:Kh,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},zx={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class vi extends ue{constructor(a,d){if(Eh===void 0)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(a,d),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Ix}static get DefaultType(){return zx}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),R.off(this._element.closest(Qh),Yh,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const a=R.trigger(this._element,this.constructor.eventName("show")),d=(h(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(a.defaultPrevented||!d)return;this._disposePopper();const w=this._getTipElement();this._element.setAttribute("aria-describedby",w.getAttribute("id"));const{container:j}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(j.append(w),R.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(w),w.classList.add(Qa),"ontouchstart"in document.documentElement)for(const P of[].concat(...document.body.children))R.on(P,"mouseover",m);this._queueCallback(()=>{R.trigger(this._element,this.constructor.eventName("shown")),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!R.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(Qa),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))R.off(a,"mouseover",m);this._activeTrigger.click=!1,this._activeTrigger[wc]=!1,this._activeTrigger[fs]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),R.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(a){const d=this._getTemplateFactory(a).toHtml();if(!d)return null;d.classList.remove(yc,Qa),d.classList.add(`bs-${this.constructor.NAME}-auto`);const w=(j=>{do j+=Math.floor(1e6*Math.random());while(document.getElementById(j));return j})(this.constructor.NAME).toString();return d.setAttribute("id",w),this._isAnimated()&&d.classList.add(yc),d}setContent(a){this._newContent=a,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(a){return this._templateFactory?this._templateFactory.changeContent(a):this._templateFactory=new Dx({...this._config,content:a,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(a){return this.constructor.getOrCreateInstance(a.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(yc)}_isShown(){return this.tip&&this.tip.classList.contains(Qa)}_createPopper(a){const d=g(this._config.placement,[this,a,this._element]),w=Mx[d.toUpperCase()];return hc(this._element,a,this._getPopperConfig(w))}_getOffset(){const{offset:a}=this._config;return typeof a=="string"?a.split(",").map(d=>Number.parseInt(d,10)):typeof a=="function"?d=>a(d,this._element):a}_resolvePossibleFunction(a){return g(a,[this._element])}_getPopperConfig(a){const d={placement:a,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:w=>{this._getTipElement().setAttribute("data-popper-placement",w.state.placement)}}]};return{...d,...g(this._config.popperConfig,[d])}}_setListeners(){const a=this._config.trigger.split(" ");for(const d of a)if(d==="click")R.on(this._element,this.constructor.eventName("click"),this._config.selector,w=>{this._initializeOnDelegatedTarget(w).toggle()});else if(d!=="manual"){const w=d===fs?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),j=d===fs?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");R.on(this._element,w,this._config.selector,P=>{const $=this._initializeOnDelegatedTarget(P);$._activeTrigger[P.type==="focusin"?wc:fs]=!0,$._enter()}),R.on(this._element,j,this._config.selector,P=>{const $=this._initializeOnDelegatedTarget(P);$._activeTrigger[P.type==="focusout"?wc:fs]=$._element.contains(P.relatedTarget),$._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},R.on(this._element.closest(Qh),Yh,this._hideModalHandler)}_fixTitle(){const a=this._element.getAttribute("title");a&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",a),this._element.setAttribute("data-bs-original-title",a),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(a,d){clearTimeout(this._timeout),this._timeout=setTimeout(a,d)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(a){const d=ae.getDataAttributes(this._element);for(const w of Object.keys(d))$x.has(w)&&delete d[w];return a={...d,...typeof a=="object"&&a?a:{}},a=this._mergeConfigObj(a),a=this._configAfterMerge(a),this._typeCheckConfig(a),a}_configAfterMerge(a){return a.container=a.container===!1?document.body:u(a.container),typeof a.delay=="number"&&(a.delay={show:a.delay,hide:a.delay}),typeof a.title=="number"&&(a.title=a.title.toString()),typeof a.content=="number"&&(a.content=a.content.toString()),a}_getDelegateConfig(){const a={};for(const[d,w]of Object.entries(this._config))this.constructor.Default[d]!==w&&(a[d]=w);return a.selector=!1,a.trigger="manual",a}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(a){return this.each(function(){const d=vi.getOrCreateInstance(this,a);if(typeof a=="string"){if(d[a]===void 0)throw new TypeError(`No method named "${a}"`);d[a]()}})}}v(vi);const Fx={...vi.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},Bx={...vi.DefaultType,content:"(null|string|element|function)"};class Ya extends vi{static get Default(){return Fx}static get DefaultType(){return Bx}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(a){return this.each(function(){const d=Ya.getOrCreateInstance(this,a);if(typeof a=="string"){if(d[a]===void 0)throw new TypeError(`No method named "${a}"`);d[a]()}})}}v(Ya);const xc=".bs.scrollspy",Ux=`activate${xc}`,qh=`click${xc}`,Hx=`load${xc}.data-api`,oo="active",_c="[href]",Xh=".nav-link",Wx=`${Xh}, .nav-item > ${Xh}, .list-group-item`,Vx={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Gx={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class ps extends ue{constructor(a,d){super(a,d),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Vx}static get DefaultType(){return Gx}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const a of this._observableSections.values())this._observer.observe(a)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(a){return a.target=u(a.target)||document.body,a.rootMargin=a.offset?`${a.offset}px 0px -30%`:a.rootMargin,typeof a.threshold=="string"&&(a.threshold=a.threshold.split(",").map(d=>Number.parseFloat(d))),a}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(R.off(this._config.target,qh),R.on(this._config.target,qh,_c,a=>{const d=this._observableSections.get(a.target.hash);if(d){a.preventDefault();const w=this._rootElement||window,j=d.offsetTop-this._element.offsetTop;if(w.scrollTo)return void w.scrollTo({top:j,behavior:"smooth"});w.scrollTop=j}}))}_getNewObserver(){const a={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(d=>this._observerCallback(d),a)}_observerCallback(a){const d=$=>this._targetLinks.get(`#${$.target.id}`),w=$=>{this._previousScrollData.visibleEntryTop=$.target.offsetTop,this._process(d($))},j=(this._rootElement||document.documentElement).scrollTop,P=j>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=j;for(const $ of a){if(!$.isIntersecting){this._activeTarget=null,this._clearActiveClass(d($));continue}const B=$.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(P&&B){if(w($),!j)return}else P||B||w($)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const a=G.find(_c,this._config.target);for(const d of a){if(!d.hash||f(d))continue;const w=G.findOne(decodeURI(d.hash),this._element);c(w)&&(this._targetLinks.set(decodeURI(d.hash),d),this._observableSections.set(d.hash,w))}}_process(a){this._activeTarget!==a&&(this._clearActiveClass(this._config.target),this._activeTarget=a,a.classList.add(oo),this._activateParents(a),R.trigger(this._element,Ux,{relatedTarget:a}))}_activateParents(a){if(a.classList.contains("dropdown-item"))G.findOne(".dropdown-toggle",a.closest(".dropdown")).classList.add(oo);else for(const d of G.parents(a,".nav, .list-group"))for(const w of G.prev(d,Wx))w.classList.add(oo)}_clearActiveClass(a){a.classList.remove(oo);const d=G.find(`${_c}.${oo}`,a);for(const w of d)w.classList.remove(oo)}static jQueryInterface(a){return this.each(function(){const d=ps.getOrCreateInstance(this,a);if(typeof a=="string"){if(d[a]===void 0||a.startsWith("_")||a==="constructor")throw new TypeError(`No method named "${a}"`);d[a]()}})}}R.on(window,Hx,()=>{for(const p of G.find('[data-bs-spy="scroll"]'))ps.getOrCreateInstance(p)}),v(ps);const yi=".bs.tab",Kx=`hide${yi}`,Qx=`hidden${yi}`,Yx=`show${yi}`,qx=`shown${yi}`,Xx=`click${yi}`,Zx=`keydown${yi}`,Jx=`load${yi}`,e_="ArrowLeft",Zh="ArrowRight",t_="ArrowUp",Jh="ArrowDown",Ec="Home",em="End",wi="active",tm="fade",bc="show",nm=".dropdown-toggle",Sc=`:not(${nm})`,rm='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',kc=`.nav-link${Sc}, .list-group-item${Sc}, [role="tab"]${Sc}, ${rm}`,n_=`.${wi}[data-bs-toggle="tab"], .${wi}[data-bs-toggle="pill"], .${wi}[data-bs-toggle="list"]`;class xi extends ue{constructor(a){super(a),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),R.on(this._element,Zx,d=>this._keydown(d)))}static get NAME(){return"tab"}show(){const a=this._element;if(this._elemIsActive(a))return;const d=this._getActiveElem(),w=d?R.trigger(d,Kx,{relatedTarget:a}):null;R.trigger(a,Yx,{relatedTarget:d}).defaultPrevented||w&&w.defaultPrevented||(this._deactivate(d,a),this._activate(a,d))}_activate(a,d){a&&(a.classList.add(wi),this._activate(G.getElementFromSelector(a)),this._queueCallback(()=>{a.getAttribute("role")==="tab"?(a.removeAttribute("tabindex"),a.setAttribute("aria-selected",!0),this._toggleDropDown(a,!0),R.trigger(a,qx,{relatedTarget:d})):a.classList.add(bc)},a,a.classList.contains(tm)))}_deactivate(a,d){a&&(a.classList.remove(wi),a.blur(),this._deactivate(G.getElementFromSelector(a)),this._queueCallback(()=>{a.getAttribute("role")==="tab"?(a.setAttribute("aria-selected",!1),a.setAttribute("tabindex","-1"),this._toggleDropDown(a,!1),R.trigger(a,Qx,{relatedTarget:d})):a.classList.remove(bc)},a,a.classList.contains(tm)))}_keydown(a){if(![e_,Zh,t_,Jh,Ec,em].includes(a.key))return;a.stopPropagation(),a.preventDefault();const d=this._getChildren().filter(j=>!f(j));let w;if([Ec,em].includes(a.key))w=d[a.key===Ec?0:d.length-1];else{const j=[Zh,Jh].includes(a.key);w=T(d,a.target,j,!0)}w&&(w.focus({preventScroll:!0}),xi.getOrCreateInstance(w).show())}_getChildren(){return G.find(kc,this._parent)}_getActiveElem(){return this._getChildren().find(a=>this._elemIsActive(a))||null}_setInitialAttributes(a,d){this._setAttributeIfNotExists(a,"role","tablist");for(const w of d)this._setInitialAttributesOnChild(w)}_setInitialAttributesOnChild(a){a=this._getInnerElement(a);const d=this._elemIsActive(a),w=this._getOuterElement(a);a.setAttribute("aria-selected",d),w!==a&&this._setAttributeIfNotExists(w,"role","presentation"),d||a.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(a,"role","tab"),this._setInitialAttributesOnTargetPanel(a)}_setInitialAttributesOnTargetPanel(a){const d=G.getElementFromSelector(a);d&&(this._setAttributeIfNotExists(d,"role","tabpanel"),a.id&&this._setAttributeIfNotExists(d,"aria-labelledby",`${a.id}`))}_toggleDropDown(a,d){const w=this._getOuterElement(a);if(!w.classList.contains("dropdown"))return;const j=(P,$)=>{const B=G.findOne(P,w);B&&B.classList.toggle($,d)};j(nm,wi),j(".dropdown-menu",bc),w.setAttribute("aria-expanded",d)}_setAttributeIfNotExists(a,d,w){a.hasAttribute(d)||a.setAttribute(d,w)}_elemIsActive(a){return a.classList.contains(wi)}_getInnerElement(a){return a.matches(kc)?a:G.findOne(kc,a)}_getOuterElement(a){return a.closest(".nav-item, .list-group-item")||a}static jQueryInterface(a){return this.each(function(){const d=xi.getOrCreateInstance(this);if(typeof a=="string"){if(d[a]===void 0||a.startsWith("_")||a==="constructor")throw new TypeError(`No method named "${a}"`);d[a]()}})}}R.on(document,Xx,rm,function(p){["A","AREA"].includes(this.tagName)&&p.preventDefault(),f(this)||xi.getOrCreateInstance(this).show()}),R.on(window,Jx,()=>{for(const p of G.find(n_))xi.getOrCreateInstance(p)}),v(xi);const Rr=".bs.toast",r_=`mouseover${Rr}`,i_=`mouseout${Rr}`,o_=`focusin${Rr}`,s_=`focusout${Rr}`,a_=`hide${Rr}`,l_=`hidden${Rr}`,u_=`show${Rr}`,c_=`shown${Rr}`,im="hide",qa="show",Xa="showing",d_={animation:"boolean",autohide:"boolean",delay:"number"},f_={animation:!0,autohide:!0,delay:5e3};class hs extends ue{constructor(a,d){super(a,d),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return f_}static get DefaultType(){return d_}static get NAME(){return"toast"}show(){R.trigger(this._element,u_).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(im),y(this._element),this._element.classList.add(qa,Xa),this._queueCallback(()=>{this._element.classList.remove(Xa),R.trigger(this._element,c_),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(R.trigger(this._element,a_).defaultPrevented||(this._element.classList.add(Xa),this._queueCallback(()=>{this._element.classList.add(im),this._element.classList.remove(Xa,qa),R.trigger(this._element,l_)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(qa),super.dispose()}isShown(){return this._element.classList.contains(qa)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(a,d){switch(a.type){case"mouseover":case"mouseout":this._hasMouseInteraction=d;break;case"focusin":case"focusout":this._hasKeyboardInteraction=d}if(d)return void this._clearTimeout();const w=a.relatedTarget;this._element===w||this._element.contains(w)||this._maybeScheduleHide()}_setListeners(){R.on(this._element,r_,a=>this._onInteraction(a,!0)),R.on(this._element,i_,a=>this._onInteraction(a,!1)),R.on(this._element,o_,a=>this._onInteraction(a,!0)),R.on(this._element,s_,a=>this._onInteraction(a,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(a){return this.each(function(){const d=hs.getOrCreateInstance(this,a);if(typeof a=="string"){if(d[a]===void 0)throw new TypeError(`No method named "${a}"`);d[a](this)}})}}return We(hs),v(hs),{Alert:Pe,Button:ze,Carousel:Z,Collapse:on,Dropdown:In,Modal:gi,Offcanvas:pr,Popover:Ya,ScrollSpy:ps,Tab:xi,Toast:hs,Tooltip:vi}})})(x2);var Yt=function(){return Yt=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0?Ct(es,--Nn):0,Fo--,yt===10&&(Fo=1,Fu--),yt}function Kn(){return yt=Nn2||pf(yt)>3?"":" "}function N2(e,t){for(;--t&&Kn()&&!(yt<48||yt>102||yt>57&&yt<65||yt>70&&yt<97););return Uu(e,Ml()+(t<6&&Mi()==32&&Kn()==32))}function hf(e){for(;Kn();)switch(yt){case e:return Nn;case 34:case 39:e!==34&&e!==39&&hf(yt);break;case 40:e===41&&hf(e);break;case 92:Kn();break}return Nn}function L2(e,t){for(;Kn()&&e+yt!==47+10;)if(e+yt===42+42&&Mi()===47)break;return"/*"+Uu(t,Nn-1)+"*"+Lp(e===47?e:Kn())}function R2(e){for(;!pf(Mi());)Kn();return Uu(e,Nn)}function A2(e){return j2(Il("",null,null,null,[""],e=O2(e),0,[0],e))}function Il(e,t,n,r,i,o,s,l,u){for(var c=0,f=0,h=s,m=0,y=0,x=0,_=1,C=1,v=1,g=0,b="",T=i,N=o,k=r,O=b;C;)switch(x=g,g=Kn()){case 40:if(x!=108&&Ct(O,h-1)==58){$l(O+=be(id(g),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:O+=id(g);break;case 9:case 10:case 13:case 32:O+=P2(x);break;case 92:O+=N2(Ml()-1,7);continue;case 47:switch(Mi()){case 42:case 47:As(D2(L2(Kn(),Ml()),t,n,u),u);break;default:O+="/"}break;case 123*_:l[c++]=nr(O)*v;case 125*_:case 59:case 0:switch(g){case 0:case 125:C=0;case 59+f:v==-1&&(O=be(O,/\f/g,"")),y>0&&nr(O)-h&&As(y>32?Kg(O+";",r,n,h-1,u):Kg(be(O," ","")+";",r,n,h-2,u),u);break;case 59:O+=";";default:if(As(k=Gg(O,t,n,c,f,i,l,b,T=[],N=[],h,o),o),g===123)if(f===0)Il(O,t,k,k,T,o,h,l,N);else switch(m===99&&Ct(O,3)===110?100:m){case 100:case 108:case 109:case 115:Il(e,k,k,r&&As(Gg(e,k,k,0,0,i,l,b,i,T=[],h,N),N),i,N,h,l,r?T:N);break;default:Il(O,k,k,k,[""],N,0,l,N)}}c=f=y=0,_=v=1,b=O="",h=s;break;case 58:h=1+nr(O),y=x;default:if(_<1){if(g==123)--_;else if(g==125&&_++==0&&T2()==125)continue}switch(O+=Lp(g),g*_){case 38:v=f>0?1:(O+="\f",-1);break;case 44:l[c++]=(nr(O)-1)*v,v=1;break;case 64:Mi()===45&&(O+=id(Kn())),m=Mi(),f=h=nr(b=O+=R2(Ml())),g++;break;case 45:x===45&&nr(O)==2&&(_=0)}}return o}function Gg(e,t,n,r,i,o,s,l,u,c,f,h){for(var m=i-1,y=i===0?o:[""],x=v1(y),_=0,C=0,v=0;_0?y[g]+" "+b:be(b,/&\f/g,y[g])))&&(u[v++]=T);return Bu(e,t,n,i===0?zu:l,u,c,f,h)}function D2(e,t,n,r){return Bu(e,t,n,h1,Lp(C2()),zo(e,2,-2),0,r)}function Kg(e,t,n,r,i){return Bu(e,t,n,Np,zo(e,0,r),zo(e,r+1,-1),r,i)}function w1(e,t,n){switch(S2(e,t)){case 5103:return Fe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Fe+e+e;case 4789:return Ks+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Fe+e+Ks+e+Ze+e+e;case 5936:switch(Ct(e,t+11)){case 114:return Fe+e+Ze+be(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Fe+e+Ze+be(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Fe+e+Ze+be(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Fe+e+Ze+e+e;case 6165:return Fe+e+Ze+"flex-"+e+e;case 5187:return Fe+e+be(e,/(\w+).+(:[^]+)/,Fe+"box-$1$2"+Ze+"flex-$1$2")+e;case 5443:return Fe+e+Ze+"flex-item-"+be(e,/flex-|-self/g,"")+(mr(e,/flex-|baseline/)?"":Ze+"grid-row-"+be(e,/flex-|-self/g,""))+e;case 4675:return Fe+e+Ze+"flex-line-pack"+be(e,/align-content|flex-|-self/g,"")+e;case 5548:return Fe+e+Ze+be(e,"shrink","negative")+e;case 5292:return Fe+e+Ze+be(e,"basis","preferred-size")+e;case 6060:return Fe+"box-"+be(e,"-grow","")+Fe+e+Ze+be(e,"grow","positive")+e;case 4554:return Fe+be(e,/([^-])(transform)/g,"$1"+Fe+"$2")+e;case 6187:return be(be(be(e,/(zoom-|grab)/,Fe+"$1"),/(image-set)/,Fe+"$1"),e,"")+e;case 5495:case 3959:return be(e,/(image-set\([^]*)/,Fe+"$1$`$1");case 4968:return be(be(e,/(.+:)(flex-)?(.*)/,Fe+"box-pack:$3"+Ze+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Fe+e+e;case 4200:if(!mr(e,/flex-|baseline/))return Ze+"grid-column-align"+zo(e,t)+e;break;case 2592:case 3360:return Ze+be(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,mr(r.props,/grid-\w+-end/)})?~$l(e+(n=n[t].value),"span")?e:Ze+be(e,"-start","")+e+Ze+"grid-row-span:"+(~$l(n,"span")?mr(n,/\d+/):+mr(n,/\d+/)-+mr(e,/\d+/))+";":Ze+be(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return mr(r.props,/grid-\w+-start/)})?e:Ze+be(be(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return be(e,/(.+)-inline(.+)/,Fe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(nr(e)-1-t>6)switch(Ct(e,t+1)){case 109:if(Ct(e,t+4)!==45)break;case 102:return be(e,/(.+:)(.+)-([^]+)/,"$1"+Fe+"$2-$3$1"+Ks+(Ct(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~$l(e,"stretch")?w1(be(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return be(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,s,l,u,c){return Ze+i+":"+o+c+(s?Ze+i+"-span:"+(l?u:+u-+o)+c:"")+e});case 4949:if(Ct(e,t+6)===121)return be(e,":",":"+Fe)+e;break;case 6444:switch(Ct(e,Ct(e,14)===45?18:11)){case 120:return be(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Fe+(Ct(e,14)===45?"inline-":"")+"box$3$1"+Fe+"$2$3$1"+Ze+"$2box$3")+e;case 100:return be(e,":",":"+Ze)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return be(e,"scroll-","scroll-snap-")+e}return e}function gu(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case Np:e.return=w1(e.value,e.length,n);return;case m1:return gu([Mr(e,{value:be(e.value,"@","@"+Fe)})],r);case zu:if(e.length)return k2(n=e.props,function(i){switch(mr(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":lo(Mr(e,{props:[be(i,/:(read-\w+)/,":"+Ks+"$1")]})),lo(Mr(e,{props:[i]})),ff(e,{props:Vg(n,r)});break;case"::placeholder":lo(Mr(e,{props:[be(i,/:(plac\w+)/,":"+Fe+"input-$1")]})),lo(Mr(e,{props:[be(i,/:(plac\w+)/,":"+Ks+"$1")]})),lo(Mr(e,{props:[be(i,/:(plac\w+)/,Ze+"input-$1")]})),lo(Mr(e,{props:[i]})),ff(e,{props:Vg(n,r)});break}return""})}}var F2={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Bo=typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",x1="active",_1="data-styled-version",Hu="6.1.3",Rp=`/*!sc*/ +`,Ap=typeof window<"u"&&"HTMLElement"in window,B2=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==""?{}.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&{}.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.SC_DISABLE_SPEEDY!==void 0&&{}.SC_DISABLE_SPEEDY!==""&&{}.SC_DISABLE_SPEEDY!=="false"&&{}.SC_DISABLE_SPEEDY),Wu=Object.freeze([]),Uo=Object.freeze({});function U2(e,t,n){return n===void 0&&(n=Uo),e.theme!==n.theme&&e.theme||t||n.theme}var E1=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),H2=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,W2=/(^-|-$)/g;function Qg(e){return e.replace(H2,"-").replace(W2,"")}var V2=/(a)(d)/gi,yl=52,Yg=function(e){return String.fromCharCode(e+(e>25?39:97))};function mf(e){var t,n="";for(t=Math.abs(e);t>yl;t=t/yl|0)n=Yg(t%yl)+n;return(Yg(t%yl)+n).replace(V2,"$1-$2")}var od,b1=5381,ko=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},S1=function(e){return ko(b1,e)};function k1(e){return mf(S1(e)>>>0)}function G2(e){return e.displayName||e.name||"Component"}function sd(e){return typeof e=="string"&&!0}var C1=typeof Symbol=="function"&&Symbol.for,T1=C1?Symbol.for("react.memo"):60115,K2=C1?Symbol.for("react.forward_ref"):60112,Q2={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Y2={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},O1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},q2=((od={})[K2]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},od[T1]=O1,od);function qg(e){return("type"in(t=e)&&t.type.$$typeof)===T1?O1:"$$typeof"in e?q2[e.$$typeof]:Q2;var t}var X2=Object.defineProperty,Z2=Object.getOwnPropertyNames,Xg=Object.getOwnPropertySymbols,J2=Object.getOwnPropertyDescriptor,ek=Object.getPrototypeOf,Zg=Object.prototype;function j1(e,t,n){if(typeof t!="string"){if(Zg){var r=ek(t);r&&r!==Zg&&j1(e,r,n)}var i=Z2(t);Xg&&(i=i.concat(Xg(t)));for(var o=qg(e),s=qg(t),l=0;l0?" Args: ".concat(t.join(", ")):""))}var tk=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw Pa(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var s=i;s=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,s=i;s=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(C+="".concat(v,","))}),u+="".concat(x).concat(_,'{content:"').concat(C,'"}').concat(Rp)},f=0;f0?".".concat(t):m},f=u.slice();f.push(function(m){m.type===zu&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(fk,n).replace(r,c))}),s.prefix&&f.push(z2),f.push($2);var h=function(m,y,x,_){y===void 0&&(y=""),x===void 0&&(x=""),_===void 0&&(_="&"),t=_,n=y,r=new RegExp("\\".concat(n,"\\b"),"g");var C=m.replace(pk,""),v=A2(x||y?"".concat(x," ").concat(y," { ").concat(C," }"):C);s.namespace&&(v=L1(v,s.namespace));var g=[];return gu(v,M2(f.concat(I2(function(b){return g.push(b)})))),g};return h.hash=u.length?u.reduce(function(m,y){return y.name||Pa(15),ko(m,y.name)},b1).toString():"",h}var mk=new N1,yf=hk(),R1=ke.createContext({shouldForwardProp:void 0,styleSheet:mk,stylis:yf});R1.Consumer;ke.createContext(void 0);function ev(){return S.useContext(R1)}var A1=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=yf);var s=r.name+o.hash;i.hasNameForId(r.id,s)||i.insertRules(r.id,s,o(r.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,$p(this,function(){throw Pa(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=yf),this.name+t.hash},e}(),gk=function(e){return e>="A"&&e<="Z"};function tv(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,s)){var l=r(o,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,l)}i=Ri(i,s),this.staticRulesId=s}else{for(var u=ko(this.baseHash,r.hash),c="",f=0;f>>0);n.hasNameForId(this.componentId,y)||n.insertRules(this.componentId,y,r(c,".".concat(y),void 0,this.componentId)),i=Ri(i,y)}}return i},e}(),M1=ke.createContext(void 0);M1.Consumer;var ad={};function xk(e,t,n){var r=Dp(e),i=e,o=!sd(e),s=t.attrs,l=s===void 0?Wu:s,u=t.componentId,c=u===void 0?function(T,N){var k=typeof T!="string"?"sc":Qg(T);ad[k]=(ad[k]||0)+1;var O="".concat(k,"-").concat(k1(Hu+k+ad[k]));return N?"".concat(N,"-").concat(O):O}(t.displayName,t.parentComponentId):u,f=t.displayName,h=f===void 0?function(T){return sd(T)?"styled.".concat(T):"Styled(".concat(G2(T),")")}(e):f,m=t.displayName&&t.componentId?"".concat(Qg(t.displayName),"-").concat(t.componentId):t.componentId||c,y=r&&i.attrs?i.attrs.concat(l).filter(Boolean):l,x=t.shouldForwardProp;if(r&&i.shouldForwardProp){var _=i.shouldForwardProp;if(t.shouldForwardProp){var C=t.shouldForwardProp;x=function(T,N){return _(T,N)&&C(T,N)}}else x=_}var v=new wk(n,m,r?i.componentStyle:void 0);function g(T,N){return function(k,O,A){var F=k.attrs,H=k.componentStyle,z=k.defaultProps,I=k.foldedComponentIds,K=k.styledComponentId,V=k.target,re=ke.useContext(M1),oe=ev(),ne=k.shouldForwardProp||oe.shouldForwardProp,U=function(ae,ye,ue){for(var xe,G=Yt(Yt({},ye),{className:void 0,theme:ue}),We=0;We{try{const e=await fetch(`${B1}/auth/me`,{headers:{"Content-Type":"application/json"},credentials:"include"});if(!e.ok)throw new Error("Authentification non vérifiée");return(await e.json()).data}catch(e){throw console.error("Erreur lors de la vérification de l’authentification:",e),e}},Sk=async()=>{try{const e=await fetch(B1+"/auth/logout",{credentials:"include",method:"GET",headers:{"Content-type":"application/json"}});if(!e.ok)throw new Error("Impossible de déconnecter l'utilisateur authentifié");return await e.json()}catch(e){throw console.error("Une erreur est survenue lors de la déconnexion de l'utilisateur: "+e),e}};function kk(){return E.jsx("p",{className:"fw-bold text-primary mb-2",children:"Let's play together!"})}const Ck=F1` +`;function Mp(){return E.jsxs("div",{"data-aos":"zoom-in","data-aos-duration":"1000",className:"text-center",children:[E.jsxs(Ek,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:"bi bi-steam text-info",children:[E.jsx("path",{d:"M.329 10.333A8.01 8.01 0 0 0 7.99 16C12.414 16 16 12.418 16 8s-3.586-8-8.009-8A8.006 8.006 0 0 0 0 7.468l.003.006 4.304 1.769A2.198 2.198 0 0 1 5.62 8.88l1.96-2.844-.001-.04a3.046 3.046 0 0 1 3.042-3.043 3.046 3.046 0 0 1 3.042 3.043 3.047 3.047 0 0 1-3.111 3.044l-2.804 2a2.223 2.223 0 0 1-3.075 2.11 2.217 2.217 0 0 1-1.312-1.568L.33 10.333Z"}),E.jsx("path",{d:"M4.868 12.683a1.715 1.715 0 0 0 1.318-3.165 1.705 1.705 0 0 0-1.263-.02l1.023.424a1.261 1.261 0 1 1-.97 2.33l-.99-.41a1.7 1.7 0 0 0 .882.84Zm3.726-6.687a2.03 2.03 0 0 0 2.027 2.029 2.03 2.03 0 0 0 2.027-2.029 2.03 2.03 0 0 0-2.027-2.027 2.03 2.03 0 0 0-2.027 2.027Zm2.03-1.527a1.524 1.524 0 1 1-.002 3.048 1.524 1.524 0 0 1 .002-3.048Z"})]}),E.jsx(_k,{className:"spinner-border text-info-emphasis",role:"status"})]})}const B1="https://steam-wgp-production.up.railway.app",U1=async()=>{try{const e=await fetch(`${B1}/auth/me`,{headers:{"Content-Type":"application/json"},credentials:"include"});if(!e.ok)throw new Error("Authentification non vérifiée");return(await e.json()).data}catch(e){throw console.error("Erreur lors de la vérification de l’authentification:",e),e}},bk=async()=>{try{const e=await fetch(B1+"/auth/logout",{credentials:"include",method:"GET",headers:{"Content-type":"application/json"}});if(!e.ok)throw new Error("Impossible de déconnecter l'utilisateur authentifié");return await e.json()}catch(e){throw console.error("Une erreur est survenue lors de la déconnexion de l'utilisateur: "+e),e}};function Sk(){return E.jsx("p",{className:"fw-bold text-primary mb-2",children:"Let's play together!"})}const kk=F1` 0%, 100% { background-image: linear-gradient(45deg, #391ee4, #af4261); } 50% { background-image: linear-gradient(45deg, #4723d5, #c15372); } -`,Tk=we.h1` +`,Ck=we.h1` background-image: linear-gradient(45deg, #391ee4, #af4261); background-size: 100%; -webkit-background-clip: text; @@ -101,10 +101,10 @@ Error generating stack: `+o.message+` -webkit-text-fill-color: transparent; -moz-text-fill-color: transparent; margin-bottom: 0px; - animation: ${Ck} 8s ease-in-out infinite; -`;function H1(){return E.jsx(Tk,{className:"fw-bold",children:"SteamWGP"})}const Ok=we.h4` + animation: ${kk} 8s ease-in-out infinite; +`;function H1(){return E.jsx(Ck,{className:"fw-bold",children:"SteamWGP"})}const Tk=we.h4` margin-bottom: 37px; -`;function jk(){return E.jsx(Ok,{className:"font-monospace text-center text-secondary text-opacity-50",children:"What are we Going to Play?"})}const Pk="https://steam-wgp-production.up.railway.app",Nk=we.img` +`;function Ok(){return E.jsx(Tk,{className:"font-monospace text-center text-secondary text-opacity-50",children:"What are we Going to Play?"})}const jk="https://steam-wgp-production.up.railway.app",Pk=we.img` width: 250px; box-shadow: 0px 0px 20px 0px rgba(153,51,204,0.37); margin: auto; @@ -116,28 +116,28 @@ Error generating stack: `+o.message+` transform: scale(1.1); opacity: 1; } -`;function Lk(){return E.jsx(Pp,{to:Pk+"/auth/steam",children:E.jsx(Nk,{className:"img-fluid","data-bss-hover-animate":"pulse",src:"./assets/img/loginsteamlarge.png",alt:"openid_steam",loading:"lazy"})})}const Rk=we.p` +`;function Nk(){return E.jsx(Pp,{to:jk+"/auth/steam",children:E.jsx(Pk,{className:"img-fluid","data-bss-hover-animate":"pulse",src:"./assets/img/loginsteamlarge.png",alt:"openid_steam",loading:"lazy"})})}const Lk=we.p` font-size: 9px; -`;function Ak(){return E.jsx(Rk,{children:"This site is not associated with Valve Corp."})}const Dk=we.div` +`;function Rk(){return E.jsx(Lk,{children:"This site is not associated with Valve Corp."})}const Ak=we.div` cursor: default; user-select: none; -`;function $k(){return E.jsxs("div",{className:"text-center p-4 p-lg-5",children:[E.jsxs(Dk,{"data-aos":"fade-down","data-aos-duration":"1000",children:[E.jsx(kk,{}),E.jsx(H1,{}),E.jsx(jk,{})]}),E.jsx(Lk,{}),E.jsx(Ak,{})]})}function Mk(){return E.jsx("div",{className:"container",children:E.jsx($k,{})})}const Ik=we.strong` +`;function Dk(){return E.jsxs("div",{className:"text-center p-4 p-lg-5",children:[E.jsxs(Ak,{"data-aos":"fade-down","data-aos-duration":"1000",children:[E.jsx(Sk,{}),E.jsx(H1,{}),E.jsx(Ok,{})]}),E.jsx(Nk,{}),E.jsx(Rk,{})]})}function $k(){return E.jsx("div",{className:"container",children:E.jsx(Dk,{})})}const Mk=we.strong` color: rgb(105, 34, 140); -`,zk=({username:e})=>E.jsxs("h3",{className:"text-primary-emphasis",children:["Bonjour ",E.jsx(Ik,{children:e})," !"]}),Fk={isAuthenticated:!1,user:{id:"",username:"",waitlist:""}},An=S.createContext(null),Bk=({children:e})=>{const[t,n]=S.useState(Fk);return E.jsx(An.Provider,{value:{auth:t,setAuth:n},children:e})},Na=S.createContext(null),Uk=({children:e})=>{const[t,n]=S.useState(!1);return E.jsx(Na.Provider,{value:{loadingComplete:t,setLoadingComplete:n},children:e})},nn=S.createContext(null),Hk=({children:e})=>{const[t,n]=S.useState(null);return E.jsx(nn.Provider,{value:{room:t,setRoom:n},children:e})},Wk="wss://steam-wgp-production.up.railway.app/ws",Vk=(e,t)=>{const n=`${Wk}/ws/${e}`,r=new WebSocket(n,[t]);return r.onopen=()=>{console.log("WebSocket connection established")},r.onmessage=i=>{const o=JSON.parse(i.data);console.log("Data received from server",o)},r.onclose=()=>{console.log("WebSocket connection closed")},r.onerror=i=>{console.error("WebSocket error",i)},r},Gk=(e,t)=>{if(e.readyState===WebSocket.OPEN){const n=JSON.stringify({action:"swipe",payload:{gameId:t}});e.send(n)}},Kk=(e,t)=>{if(e.readyState===WebSocket.OPEN){const n=JSON.stringify({action:"unswipe",payload:{gameId:t}});e.send(n)}},Qk=e=>{const t=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return t?decodeURIComponent(t[1]):void 0},ns=S.createContext(null),Yk=({children:e})=>{const[t,n]=S.useState(null),{room:r}=S.useContext(nn),i=r==null?void 0:r.id;return S.useEffect(()=>{const o=Qk("token");if(!o||!i)return;const s=Vk(i,o);return n(s),()=>{s&&s.close()}},[i]),E.jsx(ns.Provider,{value:{socket:t,setSocket:n},children:e})},qk=we.svg` +`,Ik=({username:e})=>E.jsxs("h3",{className:"text-primary-emphasis",children:["Bonjour ",E.jsx(Mk,{children:e})," !"]}),zk={isAuthenticated:!1,user:{id:"",username:"",waitlist:""}},An=S.createContext(null),Fk=({children:e})=>{const[t,n]=S.useState(zk);return E.jsx(An.Provider,{value:{auth:t,setAuth:n},children:e})},Na=S.createContext(null),Bk=({children:e})=>{const[t,n]=S.useState(!1);return E.jsx(Na.Provider,{value:{loadingComplete:t,setLoadingComplete:n},children:e})},nn=S.createContext(null),Uk=({children:e})=>{const[t,n]=S.useState(null);return E.jsx(nn.Provider,{value:{room:t,setRoom:n},children:e})},Hk="wss://steam-wgp-production.up.railway.app/ws",Wk=(e,t)=>{const n=`${Hk}/ws/${e}`,r=new WebSocket(n,[t]);return r.onopen=()=>{console.log("WebSocket connection established")},r.onmessage=i=>{const o=JSON.parse(i.data);console.log("Data received from server",o)},r.onclose=()=>{console.log("WebSocket connection closed")},r.onerror=i=>{console.error("WebSocket error",i)},r},Vk=(e,t)=>{if(e.readyState===WebSocket.OPEN){const n=JSON.stringify({action:"swipe",payload:{gameId:t}});e.send(n)}},Gk=(e,t)=>{if(e.readyState===WebSocket.OPEN){const n=JSON.stringify({action:"unswipe",payload:{gameId:t}});e.send(n)}},Kk=e=>{const t=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return t?decodeURIComponent(t[1]):void 0},ts=S.createContext(null),Qk=({children:e})=>{const[t,n]=S.useState(null),{room:r}=S.useContext(nn),i=r==null?void 0:r.id;return S.useEffect(()=>{const o=Kk("token");if(!o||!i)return;const s=Wk(i,o);return n(s),()=>{s&&s.close()}},[i]),E.jsx(ts.Provider,{value:{socket:t,setSocket:n},children:e})},Yk=we.svg` margin-top: -2px; margin-right: 4px; -`,Xk=()=>E.jsxs(qk,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:"bi bi-exclamation-diamond",children:[E.jsx("path",{d:"M6.95.435c.58-.58 1.52-.58 2.1 0l6.515 6.516c.58.58.58 1.519 0 2.098L9.05 15.565c-.58.58-1.519.58-2.098 0L.435 9.05a1.482 1.482 0 0 1 0-2.098L6.95.435zm1.4.7a.495.495 0 0 0-.7 0L1.134 7.65a.495.495 0 0 0 0 .7l6.516 6.516a.495.495 0 0 0 .7 0l6.516-6.516a.495.495 0 0 0 0-.7L8.35 1.134z"}),E.jsx("path",{d:"M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995z"})]}),Zk=we.p` +`,qk=()=>E.jsxs(Yk,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:"bi bi-exclamation-diamond",children:[E.jsx("path",{d:"M6.95.435c.58-.58 1.52-.58 2.1 0l6.515 6.516c.58.58.58 1.519 0 2.098L9.05 15.565c-.58.58-1.519.58-2.098 0L.435 9.05a1.482 1.482 0 0 1 0-2.098L6.95.435zm1.4.7a.495.495 0 0 0-.7 0L1.134 7.65a.495.495 0 0 0 0 .7l6.516 6.516a.495.495 0 0 0 .7 0l6.516-6.516a.495.495 0 0 0 0-.7L8.35 1.134z"}),E.jsx("path",{d:"M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995z"})]}),Xk=we.p` font-family: Abel, sans-serif; margin-bottom: 0px; -`,Jk=({type:e,message:t})=>E.jsxs(Zk,{className:"text-center text-"+e+"-emphasis","data-aos":"fade-up","data-aos-duration":"700","data-aos-once":"true",children:[e==="danger"?E.jsx(Xk,{}):null,t]}),eC=we.p` +`,Zk=({type:e,message:t})=>E.jsxs(Xk,{className:"text-center text-"+e+"-emphasis","data-aos":"fade-up","data-aos-duration":"700","data-aos-once":"true",children:[e==="danger"?E.jsx(qk,{}):null,t]}),Jk=we.p` margin-bottom: 42px; -`;function tC({messages:e,animateFirstDiv:t}){const{auth:n}=S.useContext(An);return E.jsx("div",{className:"text-center p-4 p-lg-5",children:E.jsxs("div",{id:"sectionHeadingHomepage",className:t?"animate__animated animate__zoomOut animate__slower":"",children:[E.jsx(H1,{}),E.jsx(Mp,{}),E.jsx(zk,{username:n.user.username}),E.jsxs(eC,{className:"text-light-emphasis",children:["Nous préparons tout ce qu'il faut pour vous,",E.jsx("br",{}),"merci de patienter un instant, ça ne devrait pas être",E.jsx("br",{}),"long ! "]}),e.map((r,i)=>E.jsx("div",{children:E.jsx(Jk,{message:r.message,type:r.type})},i))]})})}const La="https://steam-wgp-production.up.railway.app",nC=async e=>{try{const t=await fetch(La+"/waitlist/"+e,{credentials:"include"}),n=await t.json();if(!t.ok)throw new Error(n.message||"Impossible de récupérer les informations de la room");return n}catch(t){throw console.error("Une erreur est survenue lors de la récupération des informations de la room: "+t),t}},rC=async(e,t)=>{try{const n=await fetch(La+"/waitlist/"+e,{method:"PATCH",credentials:"include"}),r=await n.json();if(!n.ok)throw new Error(r.message||"Impossible de rejoindre la room");return t(i=>({...i,user:{...i.user,waitlist:e}})),r}catch(n){throw console.error("Une erreur est survenue lors de l'action sur la room: "+n),n}},iC=async(e,t)=>{try{const n=await fetch(La+"/waitlist/"+e,{method:"DELETE",credentials:"include"}),r=await n.json();if(!n.ok)throw new Error(r.message||"Impossible de quitter la room");return t(i=>({...i,user:{...i.user,waitlist:null}})),r}catch(n){throw console.error("Une erreur est survenue lors de l'action sur la room: "+n),n}},oC=async(e,t)=>{try{const n=await fetch(La+"/waitlist/"+e+"/kick/"+t,{method:"DELETE",credentials:"include"}),r=await n.json();if(!n.ok)throw new Error(r.message||"Impossible de kick le joueur");return r}catch(n){throw console.error("Une erreur est survenue lors du kick du joueur: "+n),n}},sC=async e=>{try{const t=await fetch(La+"/waitlist",{credentials:"include",method:"POST"}),n=await t.json();if(!t.ok)throw new Error(n.message||"Impossible de créer la room");return e(r=>({...r,user:{...r.user,waitlist:n.data.id}})),n}catch(t){throw console.error("Une erreur est survenue lors de la création de la room: ",t),t}},aC=we.svg` +`;function eC({messages:e,animateFirstDiv:t}){const{auth:n}=S.useContext(An);return E.jsx("div",{className:"text-center p-4 p-lg-5",children:E.jsxs("div",{id:"sectionHeadingHomepage",className:t?"animate__animated animate__zoomOut animate__slower":"",children:[E.jsx(H1,{}),E.jsx(Mp,{}),E.jsx(Ik,{username:n.user.username}),E.jsxs(Jk,{className:"text-light-emphasis",children:["Nous préparons tout ce qu'il faut pour vous,",E.jsx("br",{}),"merci de patienter un instant, ça ne devrait pas être",E.jsx("br",{}),"long ! "]}),e.map((r,i)=>E.jsx("div",{children:E.jsx(Zk,{message:r.message,type:r.type})},i))]})})}const La="https://steam-wgp-production.up.railway.app",tC=async e=>{try{const t=await fetch(La+"/waitlist/"+e,{credentials:"include"}),n=await t.json();if(!t.ok)throw new Error(n.message||"Impossible de récupérer les informations de la room");return n}catch(t){throw console.error("Une erreur est survenue lors de la récupération des informations de la room: "+t),t}},nC=async(e,t)=>{try{const n=await fetch(La+"/waitlist/"+e,{method:"PATCH",credentials:"include"}),r=await n.json();if(!n.ok)throw new Error(r.message||"Impossible de rejoindre la room");return t(i=>({...i,user:{...i.user,waitlist:e}})),r}catch(n){throw console.error("Une erreur est survenue lors de l'action sur la room: "+n),n}},rC=async(e,t)=>{try{const n=await fetch(La+"/waitlist/"+e,{method:"DELETE",credentials:"include"}),r=await n.json();if(!n.ok)throw new Error(r.message||"Impossible de quitter la room");return t(i=>({...i,user:{...i.user,waitlist:null}})),r}catch(n){throw console.error("Une erreur est survenue lors de l'action sur la room: "+n),n}},iC=async(e,t)=>{try{const n=await fetch(La+"/waitlist/"+e+"/kick/"+t,{method:"DELETE",credentials:"include"}),r=await n.json();if(!n.ok)throw new Error(r.message||"Impossible de kick le joueur");return r}catch(n){throw console.error("Une erreur est survenue lors du kick du joueur: "+n),n}},oC=async e=>{try{const t=await fetch(La+"/waitlist",{credentials:"include",method:"POST"}),n=await t.json();if(!t.ok)throw new Error(n.message||"Impossible de créer la room");return e(r=>({...r,user:{...r.user,waitlist:n.data.id}})),n}catch(t){throw console.error("Une erreur est survenue lors de la création de la room: ",t),t}},sC=we.svg` font-size: 47px; margin-bottom: 10px; -`;function lC({className:e}){return E.jsx(aC,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:e+" bi bi-capslock-fill fs-2",children:E.jsx("path",{d:"M7.27 1.047a1 1 0 0 1 1.46 0l6.345 6.77c.6.638.146 1.683-.73 1.683H11.5v1a1 1 0 0 1-1 1h-5a1 1 0 0 1-1-1v-1H1.654C.78 9.5.326 8.455.924 7.816L7.27 1.047zM4.5 13.5a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-5a1 1 0 0 1-1-1v-1z"})})}const uC=we.svg` +`;function aC({className:e}){return E.jsx(sC,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:e+" bi bi-capslock-fill fs-2",children:E.jsx("path",{d:"M7.27 1.047a1 1 0 0 1 1.46 0l6.345 6.77c.6.638.146 1.683-.73 1.683H11.5v1a1 1 0 0 1-1 1h-5a1 1 0 0 1-1-1v-1H1.654C.78 9.5.326 8.455.924 7.816L7.27 1.047zM4.5 13.5a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-5a1 1 0 0 1-1-1v-1z"})})}const lC=we.svg` font-size: 47px; margin-bottom: 10px; -`;function cC({className:e}){return E.jsx(uC,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:e+" bi bi-door-open-fill fs-2",children:E.jsx("path",{d:"M1.5 15a.5.5 0 0 0 0 1h13a.5.5 0 0 0 0-1H13V2.5A1.5 1.5 0 0 0 11.5 1H11V.5a.5.5 0 0 0-.57-.495l-7 1A.5.5 0 0 0 3 1.5V15H1.5zM11 2h.5a.5.5 0 0 1 .5.5V15h-1V2zm-2.5 8c-.276 0-.5-.448-.5-1s.224-1 .5-1 .5.448.5 1-.224 1-.5 1z"})})}const dC=F1` +`;function uC({className:e}){return E.jsx(lC,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:e+" bi bi-door-open-fill fs-2",children:E.jsx("path",{d:"M1.5 15a.5.5 0 0 0 0 1h13a.5.5 0 0 0 0-1H13V2.5A1.5 1.5 0 0 0 11.5 1H11V.5a.5.5 0 0 0-.57-.495l-7 1A.5.5 0 0 0 3 1.5V15H1.5zM11 2h.5a.5.5 0 0 1 .5.5V15h-1V2zm-2.5 8c-.276 0-.5-.448-.5-1s.224-1 .5-1 .5.448.5 1-.224 1-.5 1z"})})}const cC=F1` 8.33% { x: 13px; y: 1px; } 25% { x: 13px; y: 1px; } 33.3% { x: 13px; y: 13px; } @@ -146,83 +146,83 @@ Error generating stack: `+o.message+` 75% { x: 1px; y: 13px; } 83.33% { x: 1px; y: 1px; } `,Ip=we.rect` - animation: ${dC} 2.4s linear infinite; -`,fC=we(Ip)` + animation: ${cC} 2.4s linear infinite; +`,dC=we(Ip)` animation-delay: -2.4s; -`,pC=we(Ip)` +`,fC=we(Ip)` animation-delay: -1.6s; -`,hC=we(Ip)` +`,pC=we(Ip)` animation-delay: -0.8s; -`,mC=()=>E.jsxs("svg",{viewBox:"-5 -6 30 30",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx(fC,{x:"1",y:"1",rx:"1",width:5,height:5,fill:"#09202B"}),E.jsx(pC,{x:"1",y:"1",rx:"1",width:5,height:5,fill:"#09202B"}),E.jsx(hC,{x:"1",y:"1",rx:"1",width:5,height:5,fill:"#09202B"})]});function W1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="number"&&!isNaN(e),Gi=e=>typeof e=="string",qt=e=>typeof e=="function",Bl=e=>Gi(e)||qt(e)?e:null,ld=e=>S.isValidElement(e)||Gi(e)||qt(e)||Ys(e);function gC(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Vu(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(s){let{children:l,position:u,preventExitTransition:c,done:f,nodeRef:h,isIn:m}=s;const y=r?`${t}--${u}`:t,x=r?`${n}--${u}`:n,_=S.useRef(0);return S.useLayoutEffect(()=>{const C=h.current,v=y.split(" "),g=b=>{b.target===h.current&&(C.dispatchEvent(new Event("d")),C.removeEventListener("animationend",g),C.removeEventListener("animationcancel",g),_.current===0&&b.type!=="animationcancel"&&C.classList.remove(...v))};C.classList.add(...v),C.addEventListener("animationend",g),C.addEventListener("animationcancel",g)},[]),S.useEffect(()=>{const C=h.current,v=()=>{C.removeEventListener("animationend",v),i?gC(C,f,o):f()};m||(c?v():(_.current=1,C.className+=` ${x}`,C.addEventListener("animationend",v)))},[m]),ke.createElement(ke.Fragment,null,l)}}function iv(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Sn={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter(r=>r!==t);return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{const n=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)})}},xl=e=>{let{theme:t,type:n,...r}=e;return ke.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...r})},ud={info:function(e){return ke.createElement(xl,{...e},ke.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return ke.createElement(xl,{...e},ke.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return ke.createElement(xl,{...e},ke.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return ke.createElement(xl,{...e},ke.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return ke.createElement("div",{className:"Toastify__spinner"})}};function vC(e){const[,t]=S.useReducer(y=>y+1,0),[n,r]=S.useState([]),i=S.useRef(null),o=S.useRef(new Map).current,s=y=>n.indexOf(y)!==-1,l=S.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:s,getToast:y=>o.get(y)}).current;function u(y){let{containerId:x}=y;const{limit:_}=l.props;!_||x&&l.containerId!==x||(l.count-=l.queue.length,l.queue=[])}function c(y){r(x=>y==null?[]:x.filter(_=>_!==y))}function f(){const{toastContent:y,toastProps:x,staleId:_}=l.queue.shift();m(y,x,_)}function h(y,x){let{delay:_,staleId:C,...v}=x;if(!ld(y)||function(I){return!i.current||l.props.enableMultiContainer&&I.containerId!==l.props.containerId||o.has(I.toastId)&&I.updateId==null}(v))return;const{toastId:g,updateId:b,data:T}=v,{props:N}=l,k=()=>c(g),O=b==null;O&&l.count++;const A={...N,style:N.toastStyle,key:l.toastKey++,...Object.fromEntries(Object.entries(v).filter(I=>{let[K,V]=I;return V!=null})),toastId:g,updateId:b,data:T,closeToast:k,isIn:!1,className:Bl(v.className||N.toastClassName),bodyClassName:Bl(v.bodyClassName||N.bodyClassName),progressClassName:Bl(v.progressClassName||N.progressClassName),autoClose:!v.isLoading&&(F=v.autoClose,H=N.autoClose,F===!1||Ys(F)&&F>0?F:H),deleteToast(){const I=iv(o.get(g),"removed");o.delete(g),Sn.emit(4,I);const K=l.queue.length;if(l.count=g==null?l.count-l.displayedToast:l.count-1,l.count<0&&(l.count=0),K>0){const V=g==null?l.props.limit:1;if(K===1||V===1)l.displayedToast++,f();else{const re=V>K?K:V;l.displayedToast=re;for(let oe=0;oeq in ud)(V)&&(ne=ud[V](U))),ne}(A),qt(v.onOpen)&&(A.onOpen=v.onOpen),qt(v.onClose)&&(A.onClose=v.onClose),A.closeButton=N.closeButton,v.closeButton===!1||ld(v.closeButton)?A.closeButton=v.closeButton:v.closeButton===!0&&(A.closeButton=!ld(N.closeButton)||N.closeButton);let z=y;S.isValidElement(y)&&!Gi(y.type)?z=S.cloneElement(y,{closeToast:k,toastProps:A,data:T}):qt(y)&&(z=y({closeToast:k,toastProps:A,data:T})),N.limit&&N.limit>0&&l.count>N.limit&&O?l.queue.push({toastContent:z,toastProps:A,staleId:C}):Ys(_)?setTimeout(()=>{m(z,A,C)},_):m(z,A,C)}function m(y,x,_){const{toastId:C}=x;_&&o.delete(_);const v={content:y,props:x};o.set(C,v),r(g=>[...g,C].filter(b=>b!==_)),Sn.emit(4,iv(v,v.props.updateId==null?"added":"updated"))}return S.useEffect(()=>(l.containerId=e.containerId,Sn.cancelEmit(3).on(0,h).on(1,y=>i.current&&c(y)).on(5,u).emit(2,l),()=>{o.clear(),Sn.emit(3,l)}),[]),S.useEffect(()=>{l.props=e,l.isToastActive=s,l.displayedToast=n.length}),{getToastToRender:function(y){const x=new Map,_=Array.from(o.values());return e.newestOnTop&&_.reverse(),_.forEach(C=>{const{position:v}=C.props;x.has(v)||x.set(v,[]),x.get(v).push(C)}),Array.from(x,C=>y(C[0],C[1]))},containerRef:i,isToastActive:s}}function ov(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function sv(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function yC(e){const[t,n]=S.useState(!1),[r,i]=S.useState(!1),o=S.useRef(null),s=S.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,l=S.useRef(e),{autoClose:u,pauseOnHover:c,closeToast:f,onClick:h,closeOnClick:m}=e;function y(T){if(e.draggable){T.nativeEvent.type==="touchstart"&&T.nativeEvent.preventDefault(),s.didMove=!1,document.addEventListener("mousemove",v),document.addEventListener("mouseup",g),document.addEventListener("touchmove",v),document.addEventListener("touchend",g);const N=o.current;s.canCloseOnClick=!0,s.canDrag=!0,s.boundingRect=N.getBoundingClientRect(),N.style.transition="",s.x=ov(T.nativeEvent),s.y=sv(T.nativeEvent),e.draggableDirection==="x"?(s.start=s.x,s.removalDistance=N.offsetWidth*(e.draggablePercent/100)):(s.start=s.y,s.removalDistance=N.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent/100))}}function x(T){if(s.boundingRect){const{top:N,bottom:k,left:O,right:A}=s.boundingRect;T.nativeEvent.type!=="touchend"&&e.pauseOnHover&&s.x>=O&&s.x<=A&&s.y>=N&&s.y<=k?C():_()}}function _(){n(!0)}function C(){n(!1)}function v(T){const N=o.current;s.canDrag&&N&&(s.didMove=!0,t&&C(),s.x=ov(T),s.y=sv(T),s.delta=e.draggableDirection==="x"?s.x-s.start:s.y-s.start,s.start!==s.x&&(s.canCloseOnClick=!1),N.style.transform=`translate${e.draggableDirection}(${s.delta}px)`,N.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function g(){document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",g),document.removeEventListener("touchmove",v),document.removeEventListener("touchend",g);const T=o.current;if(s.canDrag&&s.didMove&&T){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),void e.closeToast();T.style.transition="transform 0.2s, opacity 0.2s",T.style.transform=`translate${e.draggableDirection}(0)`,T.style.opacity="1"}}S.useEffect(()=>{l.current=e}),S.useEffect(()=>(o.current&&o.current.addEventListener("d",_,{once:!0}),qt(e.onOpen)&&e.onOpen(S.isValidElement(e.children)&&e.children.props),()=>{const T=l.current;qt(T.onClose)&&T.onClose(S.isValidElement(T.children)&&T.children.props)}),[]),S.useEffect(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||C(),window.addEventListener("focus",_),window.addEventListener("blur",C)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",_),window.removeEventListener("blur",C))}),[e.pauseOnFocusLoss]);const b={onMouseDown:y,onTouchStart:y,onMouseUp:x,onTouchEnd:x};return u&&c&&(b.onMouseEnter=C,b.onMouseLeave=_),m&&(b.onClick=T=>{h&&h(T),s.canCloseOnClick&&f()}),{playToast:_,pauseToast:C,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:b}}function V1(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return ke.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:i=>{i.stopPropagation(),t(i)},"aria-label":r},ke.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},ke.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function wC(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:o,className:s,style:l,controlledProgress:u,progress:c,rtl:f,isIn:h,theme:m}=e;const y=o||u&&c===0,x={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:y?0:1};u&&(x.transform=`scaleX(${c})`);const _=Vr("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${m}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":f}),C=qt(s)?s({rtl:f,type:i,defaultClassName:_}):Vr(_,s);return ke.createElement("div",{role:"progressbar","aria-hidden":y?"true":"false","aria-label":"notification timer",className:C,style:x,[u&&c>=1?"onTransitionEnd":"onAnimationEnd"]:u&&c<1?null:()=>{h&&r()}})}const xC=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i}=yC(e),{closeButton:o,children:s,autoClose:l,onClick:u,type:c,hideProgressBar:f,closeToast:h,transition:m,position:y,className:x,style:_,bodyClassName:C,bodyStyle:v,progressClassName:g,progressStyle:b,updateId:T,role:N,progress:k,rtl:O,toastId:A,deleteToast:F,isIn:H,isLoading:z,iconOut:I,closeOnClick:K,theme:V}=e,re=Vr("Toastify__toast",`Toastify__toast-theme--${V}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":O},{"Toastify__toast--close-on-click":K}),oe=qt(x)?x({rtl:O,position:y,type:c,defaultClassName:re}):Vr(re,x),ne=!!k||!l,U={closeToast:h,type:c,theme:V};let q=null;return o===!1||(q=qt(o)?o(U):S.isValidElement(o)?S.cloneElement(o,U):V1(U)),ke.createElement(m,{isIn:H,done:F,position:y,preventExitTransition:n,nodeRef:r},ke.createElement("div",{id:A,onClick:u,className:oe,...i,style:_,ref:r},ke.createElement("div",{...H&&{role:N},className:qt(C)?C({type:c}):Vr("Toastify__toast-body",C),style:v},I!=null&&ke.createElement("div",{className:Vr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!z})},I),ke.createElement("div",null,s)),q,ke.createElement(wC,{...T&&!ne?{key:`pb-${T}`}:{},rtl:O,theme:V,delay:l,isRunning:t,isIn:H,closeToast:h,hide:f,type:c,style:b,className:g,controlledProgress:ne,progress:k||0})))},Gu=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},_C=Vu(Gu("bounce",!0));Vu(Gu("slide",!0));Vu(Gu("zoom"));Vu(Gu("flip"));const xf=S.forwardRef((e,t)=>{const{getToastToRender:n,containerRef:r,isToastActive:i}=vC(e),{className:o,style:s,rtl:l,containerId:u}=e;function c(f){const h=Vr("Toastify__toast-container",`Toastify__toast-container--${f}`,{"Toastify__toast-container--rtl":l});return qt(o)?o({position:f,rtl:l,defaultClassName:h}):Vr(h,Bl(o))}return S.useEffect(()=>{t&&(t.current=r.current)},[]),ke.createElement("div",{ref:r,className:"Toastify",id:u},n((f,h)=>{const m=h.length?{...s}:{...s,pointerEvents:"none"};return ke.createElement("div",{className:c(f),style:m,key:`container-${f}`},h.map((y,x)=>{let{content:_,props:C}=y;return ke.createElement(xC,{...C,isIn:i(C.toastId),style:{...C.style,"--nth":x+1,"--len":h.length},key:`toast-${C.key}`},_)}))}))});xf.displayName="ToastContainer",xf.defaultProps={position:"top-right",transition:_C,autoClose:5e3,closeButton:V1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let cd,ki=new Map,$s=[],EC=1;function G1(){return""+EC++}function bC(e){return e&&(Gi(e.toastId)||Ys(e.toastId))?e.toastId:G1()}function qs(e,t){return ki.size>0?Sn.emit(0,e,t):$s.push({content:e,options:t}),t.toastId}function yu(e,t){return{...t,type:t&&t.type||e,toastId:bC(t)}}function _l(e){return(t,n)=>qs(t,yu(e,n))}function $e(e,t){return qs(e,yu("default",t))}$e.loading=(e,t)=>qs(e,yu("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),$e.promise=function(e,t,n){let r,{pending:i,error:o,success:s}=t;i&&(r=Gi(i)?$e.loading(i,n):$e.loading(i.render,{...n,...i}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(f,h,m)=>{if(h==null)return void $e.dismiss(r);const y={type:f,...l,...n,data:m},x=Gi(h)?{render:h}:h;return r?$e.update(r,{...y,...x}):$e(x.render,{...y,...x}),m},c=qt(e)?e():e;return c.then(f=>u("success",s,f)).catch(f=>u("error",o,f)),c},$e.success=_l("success"),$e.info=_l("info"),$e.error=_l("error"),$e.warning=_l("warning"),$e.warn=$e.warning,$e.dark=(e,t)=>qs(e,yu("default",{theme:"dark",...t})),$e.dismiss=e=>{ki.size>0?Sn.emit(1,e):$s=$s.filter(t=>e!=null&&t.options.toastId!==e)},$e.clearWaitingQueue=function(e){return e===void 0&&(e={}),Sn.emit(5,e)},$e.isActive=e=>{let t=!1;return ki.forEach(n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},$e.update=function(e,t){t===void 0&&(t={}),setTimeout(()=>{const n=function(r,i){let{containerId:o}=i;const s=ki.get(o||cd);return s&&s.getToast(r)}(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:G1()};o.toastId!==e&&(o.staleId=e);const s=o.render||i;delete o.render,qs(s,o)}},0)},$e.done=e=>{$e.update(e,{progress:1})},$e.onChange=e=>(Sn.on(4,e),()=>{Sn.off(4,e)}),$e.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},$e.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},Sn.on(2,e=>{cd=e.containerId||e,ki.set(cd,e),$s.forEach(t=>{Sn.emit(0,t.content,t.options)}),$s=[]}).on(3,e=>{ki.delete(e.containerId||e),ki.size===0&&Sn.off(0).off(1).off(5)});const SC=we.span` +`,hC=()=>E.jsxs("svg",{viewBox:"-5 -6 30 30",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx(dC,{x:"1",y:"1",rx:"1",width:5,height:5,fill:"#09202B"}),E.jsx(fC,{x:"1",y:"1",rx:"1",width:5,height:5,fill:"#09202B"}),E.jsx(pC,{x:"1",y:"1",rx:"1",width:5,height:5,fill:"#09202B"})]});function W1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="number"&&!isNaN(e),Gi=e=>typeof e=="string",qt=e=>typeof e=="function",Bl=e=>Gi(e)||qt(e)?e:null,ld=e=>S.isValidElement(e)||Gi(e)||qt(e)||Qs(e);function mC(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Vu(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(s){let{children:l,position:u,preventExitTransition:c,done:f,nodeRef:h,isIn:m}=s;const y=r?`${t}--${u}`:t,x=r?`${n}--${u}`:n,_=S.useRef(0);return S.useLayoutEffect(()=>{const C=h.current,v=y.split(" "),g=b=>{b.target===h.current&&(C.dispatchEvent(new Event("d")),C.removeEventListener("animationend",g),C.removeEventListener("animationcancel",g),_.current===0&&b.type!=="animationcancel"&&C.classList.remove(...v))};C.classList.add(...v),C.addEventListener("animationend",g),C.addEventListener("animationcancel",g)},[]),S.useEffect(()=>{const C=h.current,v=()=>{C.removeEventListener("animationend",v),i?mC(C,f,o):f()};m||(c?v():(_.current=1,C.className+=` ${x}`,C.addEventListener("animationend",v)))},[m]),ke.createElement(ke.Fragment,null,l)}}function iv(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Sn={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter(r=>r!==t);return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{const n=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)})}},xl=e=>{let{theme:t,type:n,...r}=e;return ke.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...r})},ud={info:function(e){return ke.createElement(xl,{...e},ke.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return ke.createElement(xl,{...e},ke.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return ke.createElement(xl,{...e},ke.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return ke.createElement(xl,{...e},ke.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return ke.createElement("div",{className:"Toastify__spinner"})}};function gC(e){const[,t]=S.useReducer(y=>y+1,0),[n,r]=S.useState([]),i=S.useRef(null),o=S.useRef(new Map).current,s=y=>n.indexOf(y)!==-1,l=S.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:s,getToast:y=>o.get(y)}).current;function u(y){let{containerId:x}=y;const{limit:_}=l.props;!_||x&&l.containerId!==x||(l.count-=l.queue.length,l.queue=[])}function c(y){r(x=>y==null?[]:x.filter(_=>_!==y))}function f(){const{toastContent:y,toastProps:x,staleId:_}=l.queue.shift();m(y,x,_)}function h(y,x){let{delay:_,staleId:C,...v}=x;if(!ld(y)||function(I){return!i.current||l.props.enableMultiContainer&&I.containerId!==l.props.containerId||o.has(I.toastId)&&I.updateId==null}(v))return;const{toastId:g,updateId:b,data:T}=v,{props:N}=l,k=()=>c(g),O=b==null;O&&l.count++;const A={...N,style:N.toastStyle,key:l.toastKey++,...Object.fromEntries(Object.entries(v).filter(I=>{let[K,V]=I;return V!=null})),toastId:g,updateId:b,data:T,closeToast:k,isIn:!1,className:Bl(v.className||N.toastClassName),bodyClassName:Bl(v.bodyClassName||N.bodyClassName),progressClassName:Bl(v.progressClassName||N.progressClassName),autoClose:!v.isLoading&&(F=v.autoClose,H=N.autoClose,F===!1||Qs(F)&&F>0?F:H),deleteToast(){const I=iv(o.get(g),"removed");o.delete(g),Sn.emit(4,I);const K=l.queue.length;if(l.count=g==null?l.count-l.displayedToast:l.count-1,l.count<0&&(l.count=0),K>0){const V=g==null?l.props.limit:1;if(K===1||V===1)l.displayedToast++,f();else{const re=V>K?K:V;l.displayedToast=re;for(let oe=0;oeq in ud)(V)&&(ne=ud[V](U))),ne}(A),qt(v.onOpen)&&(A.onOpen=v.onOpen),qt(v.onClose)&&(A.onClose=v.onClose),A.closeButton=N.closeButton,v.closeButton===!1||ld(v.closeButton)?A.closeButton=v.closeButton:v.closeButton===!0&&(A.closeButton=!ld(N.closeButton)||N.closeButton);let z=y;S.isValidElement(y)&&!Gi(y.type)?z=S.cloneElement(y,{closeToast:k,toastProps:A,data:T}):qt(y)&&(z=y({closeToast:k,toastProps:A,data:T})),N.limit&&N.limit>0&&l.count>N.limit&&O?l.queue.push({toastContent:z,toastProps:A,staleId:C}):Qs(_)?setTimeout(()=>{m(z,A,C)},_):m(z,A,C)}function m(y,x,_){const{toastId:C}=x;_&&o.delete(_);const v={content:y,props:x};o.set(C,v),r(g=>[...g,C].filter(b=>b!==_)),Sn.emit(4,iv(v,v.props.updateId==null?"added":"updated"))}return S.useEffect(()=>(l.containerId=e.containerId,Sn.cancelEmit(3).on(0,h).on(1,y=>i.current&&c(y)).on(5,u).emit(2,l),()=>{o.clear(),Sn.emit(3,l)}),[]),S.useEffect(()=>{l.props=e,l.isToastActive=s,l.displayedToast=n.length}),{getToastToRender:function(y){const x=new Map,_=Array.from(o.values());return e.newestOnTop&&_.reverse(),_.forEach(C=>{const{position:v}=C.props;x.has(v)||x.set(v,[]),x.get(v).push(C)}),Array.from(x,C=>y(C[0],C[1]))},containerRef:i,isToastActive:s}}function ov(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function sv(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function vC(e){const[t,n]=S.useState(!1),[r,i]=S.useState(!1),o=S.useRef(null),s=S.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,l=S.useRef(e),{autoClose:u,pauseOnHover:c,closeToast:f,onClick:h,closeOnClick:m}=e;function y(T){if(e.draggable){T.nativeEvent.type==="touchstart"&&T.nativeEvent.preventDefault(),s.didMove=!1,document.addEventListener("mousemove",v),document.addEventListener("mouseup",g),document.addEventListener("touchmove",v),document.addEventListener("touchend",g);const N=o.current;s.canCloseOnClick=!0,s.canDrag=!0,s.boundingRect=N.getBoundingClientRect(),N.style.transition="",s.x=ov(T.nativeEvent),s.y=sv(T.nativeEvent),e.draggableDirection==="x"?(s.start=s.x,s.removalDistance=N.offsetWidth*(e.draggablePercent/100)):(s.start=s.y,s.removalDistance=N.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent/100))}}function x(T){if(s.boundingRect){const{top:N,bottom:k,left:O,right:A}=s.boundingRect;T.nativeEvent.type!=="touchend"&&e.pauseOnHover&&s.x>=O&&s.x<=A&&s.y>=N&&s.y<=k?C():_()}}function _(){n(!0)}function C(){n(!1)}function v(T){const N=o.current;s.canDrag&&N&&(s.didMove=!0,t&&C(),s.x=ov(T),s.y=sv(T),s.delta=e.draggableDirection==="x"?s.x-s.start:s.y-s.start,s.start!==s.x&&(s.canCloseOnClick=!1),N.style.transform=`translate${e.draggableDirection}(${s.delta}px)`,N.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function g(){document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",g),document.removeEventListener("touchmove",v),document.removeEventListener("touchend",g);const T=o.current;if(s.canDrag&&s.didMove&&T){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),void e.closeToast();T.style.transition="transform 0.2s, opacity 0.2s",T.style.transform=`translate${e.draggableDirection}(0)`,T.style.opacity="1"}}S.useEffect(()=>{l.current=e}),S.useEffect(()=>(o.current&&o.current.addEventListener("d",_,{once:!0}),qt(e.onOpen)&&e.onOpen(S.isValidElement(e.children)&&e.children.props),()=>{const T=l.current;qt(T.onClose)&&T.onClose(S.isValidElement(T.children)&&T.children.props)}),[]),S.useEffect(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||C(),window.addEventListener("focus",_),window.addEventListener("blur",C)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",_),window.removeEventListener("blur",C))}),[e.pauseOnFocusLoss]);const b={onMouseDown:y,onTouchStart:y,onMouseUp:x,onTouchEnd:x};return u&&c&&(b.onMouseEnter=C,b.onMouseLeave=_),m&&(b.onClick=T=>{h&&h(T),s.canCloseOnClick&&f()}),{playToast:_,pauseToast:C,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:b}}function V1(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return ke.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:i=>{i.stopPropagation(),t(i)},"aria-label":r},ke.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},ke.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function yC(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:o,className:s,style:l,controlledProgress:u,progress:c,rtl:f,isIn:h,theme:m}=e;const y=o||u&&c===0,x={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:y?0:1};u&&(x.transform=`scaleX(${c})`);const _=Vr("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${m}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":f}),C=qt(s)?s({rtl:f,type:i,defaultClassName:_}):Vr(_,s);return ke.createElement("div",{role:"progressbar","aria-hidden":y?"true":"false","aria-label":"notification timer",className:C,style:x,[u&&c>=1?"onTransitionEnd":"onAnimationEnd"]:u&&c<1?null:()=>{h&&r()}})}const wC=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i}=vC(e),{closeButton:o,children:s,autoClose:l,onClick:u,type:c,hideProgressBar:f,closeToast:h,transition:m,position:y,className:x,style:_,bodyClassName:C,bodyStyle:v,progressClassName:g,progressStyle:b,updateId:T,role:N,progress:k,rtl:O,toastId:A,deleteToast:F,isIn:H,isLoading:z,iconOut:I,closeOnClick:K,theme:V}=e,re=Vr("Toastify__toast",`Toastify__toast-theme--${V}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":O},{"Toastify__toast--close-on-click":K}),oe=qt(x)?x({rtl:O,position:y,type:c,defaultClassName:re}):Vr(re,x),ne=!!k||!l,U={closeToast:h,type:c,theme:V};let q=null;return o===!1||(q=qt(o)?o(U):S.isValidElement(o)?S.cloneElement(o,U):V1(U)),ke.createElement(m,{isIn:H,done:F,position:y,preventExitTransition:n,nodeRef:r},ke.createElement("div",{id:A,onClick:u,className:oe,...i,style:_,ref:r},ke.createElement("div",{...H&&{role:N},className:qt(C)?C({type:c}):Vr("Toastify__toast-body",C),style:v},I!=null&&ke.createElement("div",{className:Vr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!z})},I),ke.createElement("div",null,s)),q,ke.createElement(yC,{...T&&!ne?{key:`pb-${T}`}:{},rtl:O,theme:V,delay:l,isRunning:t,isIn:H,closeToast:h,hide:f,type:c,style:b,className:g,controlledProgress:ne,progress:k||0})))},Gu=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},xC=Vu(Gu("bounce",!0));Vu(Gu("slide",!0));Vu(Gu("zoom"));Vu(Gu("flip"));const xf=S.forwardRef((e,t)=>{const{getToastToRender:n,containerRef:r,isToastActive:i}=gC(e),{className:o,style:s,rtl:l,containerId:u}=e;function c(f){const h=Vr("Toastify__toast-container",`Toastify__toast-container--${f}`,{"Toastify__toast-container--rtl":l});return qt(o)?o({position:f,rtl:l,defaultClassName:h}):Vr(h,Bl(o))}return S.useEffect(()=>{t&&(t.current=r.current)},[]),ke.createElement("div",{ref:r,className:"Toastify",id:u},n((f,h)=>{const m=h.length?{...s}:{...s,pointerEvents:"none"};return ke.createElement("div",{className:c(f),style:m,key:`container-${f}`},h.map((y,x)=>{let{content:_,props:C}=y;return ke.createElement(wC,{...C,isIn:i(C.toastId),style:{...C.style,"--nth":x+1,"--len":h.length},key:`toast-${C.key}`},_)}))}))});xf.displayName="ToastContainer",xf.defaultProps={position:"top-right",transition:xC,autoClose:5e3,closeButton:V1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let cd,Si=new Map,Ds=[],_C=1;function G1(){return""+_C++}function EC(e){return e&&(Gi(e.toastId)||Qs(e.toastId))?e.toastId:G1()}function Ys(e,t){return Si.size>0?Sn.emit(0,e,t):Ds.push({content:e,options:t}),t.toastId}function yu(e,t){return{...t,type:t&&t.type||e,toastId:EC(t)}}function _l(e){return(t,n)=>Ys(t,yu(e,n))}function $e(e,t){return Ys(e,yu("default",t))}$e.loading=(e,t)=>Ys(e,yu("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),$e.promise=function(e,t,n){let r,{pending:i,error:o,success:s}=t;i&&(r=Gi(i)?$e.loading(i,n):$e.loading(i.render,{...n,...i}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(f,h,m)=>{if(h==null)return void $e.dismiss(r);const y={type:f,...l,...n,data:m},x=Gi(h)?{render:h}:h;return r?$e.update(r,{...y,...x}):$e(x.render,{...y,...x}),m},c=qt(e)?e():e;return c.then(f=>u("success",s,f)).catch(f=>u("error",o,f)),c},$e.success=_l("success"),$e.info=_l("info"),$e.error=_l("error"),$e.warning=_l("warning"),$e.warn=$e.warning,$e.dark=(e,t)=>Ys(e,yu("default",{theme:"dark",...t})),$e.dismiss=e=>{Si.size>0?Sn.emit(1,e):Ds=Ds.filter(t=>e!=null&&t.options.toastId!==e)},$e.clearWaitingQueue=function(e){return e===void 0&&(e={}),Sn.emit(5,e)},$e.isActive=e=>{let t=!1;return Si.forEach(n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},$e.update=function(e,t){t===void 0&&(t={}),setTimeout(()=>{const n=function(r,i){let{containerId:o}=i;const s=Si.get(o||cd);return s&&s.getToast(r)}(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:G1()};o.toastId!==e&&(o.staleId=e);const s=o.render||i;delete o.render,Ys(s,o)}},0)},$e.done=e=>{$e.update(e,{progress:1})},$e.onChange=e=>(Sn.on(4,e),()=>{Sn.off(4,e)}),$e.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},$e.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},Sn.on(2,e=>{cd=e.containerId||e,Si.set(cd,e),Ds.forEach(t=>{Sn.emit(0,t.content,t.options)}),Ds=[]}).on(3,e=>{Si.delete(e.containerId||e),Si.size===0&&Sn.off(0).off(1).off(5)});const bC=we.span` font-size: 1.2rem; font-weight: bolder; -`,kC=we.div` +`,SC=we.div` --animate-duration: ${e=>e.delay}s; -`;function av({text:e,target:t,icon:n,delay:r,onClick:i}){const[o,s]=S.useState(!1),l=ui(),u=async()=>{if(s(!0),i)try{const c=await i();l(`/waitlist/${c.data.id}`),s(!1)}catch(c){console.error(c),$e.error(c.message,{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!0}),s(!1)}};return E.jsx(kC,{className:"col-auto align-self-center animate__animated animate__fadeInUp",delay:r,children:E.jsxs("button",{className:`btn bg-black bg-opacity-75 joinOrCreateBtn ${o?"disabled btn-outline-secondary":"bg-gradient btn-outline-primary"}`,type:"button","data-bs-target":i?void 0:t,"data-bs-toggle":i?void 0:"modal",onClick:i?u:void 0,disabled:o,children:[o?E.jsx(mC,{}):n,E.jsx("br",{}),E.jsx(SC,{children:o?"":e})]})})}function CC(){const{setAuth:e}=S.useContext(An);return E.jsxs("div",{className:"row justify-content-center",children:[E.jsx(av,{text:"Rejoindre",target:"#join_room",icon:E.jsx(cC,{className:"text-primary-emphasis"}),delay:"0.5"}),E.jsx(av,{text:"Créer",target:"#create_room",icon:E.jsx(lC,{className:"text-primary-emphasis"}),delay:"1",onClick:async()=>await sC(e)})]})}const TC=we.div` +`;function av({text:e,target:t,icon:n,delay:r,onClick:i}){const[o,s]=S.useState(!1),l=li(),u=async()=>{if(s(!0),i)try{const c=await i();l(`/waitlist/${c.data.id}`),s(!1)}catch(c){console.error(c),$e.error(c.message,{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!0}),s(!1)}};return E.jsx(SC,{className:"col-auto align-self-center animate__animated animate__fadeInUp",delay:r,children:E.jsxs("button",{className:`btn bg-black bg-opacity-75 joinOrCreateBtn ${o?"disabled btn-outline-secondary":"bg-gradient btn-outline-primary"}`,type:"button","data-bs-target":i?void 0:t,"data-bs-toggle":i?void 0:"modal",onClick:i?u:void 0,disabled:o,children:[o?E.jsx(hC,{}):n,E.jsx("br",{}),E.jsx(bC,{children:o?"":e})]})})}function kC(){const{setAuth:e}=S.useContext(An);return E.jsxs("div",{className:"row justify-content-center",children:[E.jsx(av,{text:"Rejoindre",target:"#join_room",icon:E.jsx(uC,{className:"text-primary-emphasis"}),delay:"0.5"}),E.jsx(av,{text:"Créer",target:"#create_room",icon:E.jsx(aC,{className:"text-primary-emphasis"}),delay:"1",onClick:async()=>await oC(e)})]})}const CC=we.div` cursor: default; user-select: none; -`,OC=we.h4` +`,TC=we.h4` margin-bottom: 37px; -`;function jC(){const{auth:e}=S.useContext(An);return E.jsx("div",{className:"text-center p-4 p-lg-5 animate__animated animate__fadeIn",children:E.jsxs(TC,{children:[E.jsx("p",{className:"text-primary mb-2",children:E.jsxs("span",{children:["Bienvenue ",E.jsxs("strong",{children:[e.user.username," "]}),"!"]})}),E.jsxs(OC,{className:"text-center text-primary-emphasis",children:["Organisez-vous et choisissez des jeux",E.jsx("br",{}),"avec vos amis !"]})]})})}var K1={exports:{}};/*! +`;function OC(){const{auth:e}=S.useContext(An);return E.jsx("div",{className:"text-center p-4 p-lg-5 animate__animated animate__fadeIn",children:E.jsxs(CC,{children:[E.jsx("p",{className:"text-primary mb-2",children:E.jsxs("span",{children:["Bienvenue ",E.jsxs("strong",{children:[e.user.username," "]}),"!"]})}),E.jsxs(TC,{className:"text-center text-primary-emphasis",children:["Organisez-vous et choisissez des jeux",E.jsx("br",{}),"avec vos amis !"]})]})})}var K1={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 LC(e,t,n){var r=S.useRef(e!==void 0),i=S.useState(t),o=i[0],s=i[1],l=e!==void 0,u=r.current;return r.current=l,!l&&u&&o!==t&&s(t),[l?e:o,S.useCallback(function(c){for(var f=arguments.length,h=new Array(f>1?f-1:0),m=1;m{o.target===e&&(i(),t(o))},n+r)}function i3(e){e.offsetHeight}const cv=e=>!e||typeof e=="function"?e:t=>{e.current=t};function o3(e,t){const n=cv(e),r=cv(t);return i=>{n&&n(i),r&&r(i)}}function rs(e,t){return S.useMemo(()=>o3(e,t),[e,t])}function wu(e){return e&&"setState"in e?Ni.findDOMNode(e):e??null}const s3=ke.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:o,addEndListener:s,children:l,childRef:u,...c},f)=>{const h=S.useRef(null),m=rs(h,u),y=k=>{m(wu(k))},x=k=>O=>{k&&h.current&&k(h.current,O)},_=S.useCallback(x(e),[e]),C=S.useCallback(x(t),[t]),v=S.useCallback(x(n),[n]),g=S.useCallback(x(r),[r]),b=S.useCallback(x(i),[i]),T=S.useCallback(x(o),[o]),N=S.useCallback(x(s),[s]);return E.jsx(qC,{ref:f,...c,onEnter:_,onEntered:v,onEntering:C,onExit:g,onExited:T,onExiting:b,addEndListener:N,nodeRef:h,children:typeof l=="function"?(k,O)=>l(k,{...O,ref:y}):ke.cloneElement(l,{ref:y})})}),a3=s3;function l3(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e},[e]),t}function Vo(e){const t=l3(e);return S.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function dv(){return S.useState(null)}function nw(){const e=S.useRef(!0),t=S.useRef(()=>e.current);return S.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}const u3=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",c3=typeof document<"u",kf=c3||u3?S.useLayoutEffect:S.useEffect,d3=["as","disabled"];function f3(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 p3(e){return!e||e.trim()==="#"}function rw({tagName:e,disabled:t,href:n,target:r,rel:i,role:o,onClick:s,tabIndex:l=0,type:u}){e||(n!=null||r!=null||i!=null?e="a":e="button");const c={tagName:e};if(e==="button")return[{type:u||"button",disabled:t},c];const f=m=>{if((t||e==="a"&&p3(n))&&m.preventDefault(),t){m.stopPropagation();return}s==null||s(m)},h=m=>{m.key===" "&&(m.preventDefault(),f(m))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:o??"button",disabled:void 0,tabIndex:t?void 0:l,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?i:void 0,onClick:f,onKeyDown:h},c]}const h3=S.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=f3(e,d3);const[o,{tagName:s}]=rw(Object.assign({tagName:n,disabled:r},i));return E.jsx(s,Object.assign({},i,o,{ref:t}))});h3.displayName="Button";const m3={[Fr]:"show",[Ti]:"show"},iw=S.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...i},o)=>{const s={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},l=S.useCallback((u,c)=>{i3(u),r==null||r(u,c)},[r]);return E.jsx(a3,{ref:o,addEndListener:r3,...s,onEnter:l,childRef:t.ref,children:(u,c)=>S.cloneElement(t,{...c,className:Yn("fade",e,t.props.className,m3[u],n[u])})})});iw.displayName="Fade";const fv=iw,ow=S.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:i=!1,disabled:o=!1,className:s,...l},u)=>{const c=lr(t,"btn"),[f,{tagName:h}]=rw({tagName:e,disabled:o,...l}),m=h;return E.jsx(m,{...f,...l,ref:u,disabled:o,className:Yn(s,c,i&&"active",n&&`${c}-${n}`,r&&`${c}-${r}`,l.href&&o&&"disabled")})});ow.displayName="Button";const pv=ow;function g3(e){const t=S.useRef(e);return t.current=e,t}function v3(e){const t=g3(e);S.useEffect(()=>()=>t.current(),[])}const Cf=2**31-1;function sw(e,t,n){const r=n-Date.now();e.current=r<=Cf?setTimeout(t,r):setTimeout(()=>sw(e,t,n),Cf)}function y3(){const e=nw(),t=S.useRef();return v3(()=>clearTimeout(t.current)),S.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(i,o=0){e()&&(n(),o<=Cf?t.current=setTimeout(i,o):sw(t,i,Date.now()+o))}return{set:r,clear:n,handleRef:t}},[])}function w3({as:e,bsPrefix:t,className:n,...r}){t=lr(t,"col");const i=Q1(),o=Y1(),s=[],l=[];return i.forEach(u=>{const c=r[u];delete r[u];let f,h,m;typeof c=="object"&&c!=null?{span:f,offset:h,order:m}=c:f=c;const y=u!==o?`-${u}`:"";f&&s.push(f===!0?`${t}${y}`:`${t}${y}-${f}`),m!=null&&l.push(`order${y}-${m}`),h!=null&&l.push(`offset${y}-${h}`)}),[{...r,className:Yn(n,...s,...l)},{as:e,bsPrefix:t,spans:s}]}const aw=S.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:o,spans:s}]=w3(e);return E.jsx(i,{...r,ref:t,className:Yn(n,!s.length&&o)})});aw.displayName="Col";const hv=aw;var mv=Object.prototype.hasOwnProperty;function gv(e,t,n){for(n of e.keys())if(Xs(n,t))return n}function Xs(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Xs(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(i=r,i&&typeof i=="object"&&(i=gv(t,i),!i)||!t.has(i))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(i=r[0],i&&typeof i=="object"&&(i=gv(t,i),!i)||!Xs(r[1],t.get(i)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(mv.call(e,n)&&++r&&!mv.call(t,n)||!(n in t)||!Xs(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function x3(e){const t=nw();return[e[0],S.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var en="top",Ln="bottom",Rn="right",tn="left",Fp="auto",Ra=[en,Ln,Rn,tn],Go="start",_a="end",_3="clippingParents",lw="viewport",js="popper",E3="reference",vv=Ra.reduce(function(e,t){return e.concat([t+"-"+Go,t+"-"+_a])},[]),uw=[].concat(Ra,[Fp]).reduce(function(e,t){return e.concat([t,t+"-"+Go,t+"-"+_a])},[]),b3="beforeRead",S3="read",k3="afterRead",C3="beforeMain",T3="main",O3="afterMain",j3="beforeWrite",P3="write",N3="afterWrite",L3=[b3,S3,k3,C3,T3,O3,j3,P3,N3];function sr(e){return e.split("-")[0]}function pn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ki(e){var t=pn(e).Element;return e instanceof t||e instanceof Element}function ar(e){var t=pn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Bp(e){if(typeof ShadowRoot>"u")return!1;var t=pn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Fi=Math.max,xu=Math.min,Ko=Math.round;function Tf(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function cw(){return!/^((?!chrome|android).)*safari/i.test(Tf())}function Qo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&ar(e)&&(i=e.offsetWidth>0&&Ko(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Ko(r.height)/e.offsetHeight||1);var s=Ki(e)?pn(e):window,l=s.visualViewport,u=!cw()&&n,c=(r.left+(u&&l?l.offsetLeft:0))/i,f=(r.top+(u&&l?l.offsetTop:0))/o,h=r.width/i,m=r.height/o;return{width:h,height:m,top:f,right:c+h,bottom:f+m,left:c,x:c,y:f}}function Up(e){var t=Qo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function dw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Bp(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ii(e){return e?(e.nodeName||"").toLowerCase():null}function kr(e){return pn(e).getComputedStyle(e)}function R3(e){return["table","td","th"].indexOf(ii(e))>=0}function ci(e){return((Ki(e)?e.ownerDocument:e.document)||window.document).documentElement}function Yu(e){return ii(e)==="html"?e:e.assignedSlot||e.parentNode||(Bp(e)?e.host:null)||ci(e)}function yv(e){return!ar(e)||kr(e).position==="fixed"?null:e.offsetParent}function A3(e){var t=/firefox/i.test(Tf()),n=/Trident/i.test(Tf());if(n&&ar(e)){var r=kr(e);if(r.position==="fixed")return null}var i=Yu(e);for(Bp(i)&&(i=i.host);ar(i)&&["html","body"].indexOf(ii(i))<0;){var o=kr(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Aa(e){for(var t=pn(e),n=yv(e);n&&R3(n)&&kr(n).position==="static";)n=yv(n);return n&&(ii(n)==="html"||ii(n)==="body"&&kr(n).position==="static")?t:n||A3(e)||t}function Hp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Zs(e,t,n){return Fi(e,xu(t,n))}function D3(e,t,n){var r=Zs(e,t,n);return r>n?n:r}function fw(){return{top:0,right:0,bottom:0,left:0}}function pw(e){return Object.assign({},fw(),e)}function hw(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var $3=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,pw(typeof t!="number"?t:hw(t,Ra))};function M3(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,l=sr(n.placement),u=Hp(l),c=[tn,Rn].indexOf(l)>=0,f=c?"height":"width";if(!(!o||!s)){var h=$3(i.padding,n),m=Up(o),y=u==="y"?en:tn,x=u==="y"?Ln:Rn,_=n.rects.reference[f]+n.rects.reference[u]-s[u]-n.rects.popper[f],C=s[u]-n.rects.reference[u],v=Aa(o),g=v?u==="y"?v.clientHeight||0:v.clientWidth||0:0,b=_/2-C/2,T=h[y],N=g-m[f]-h[x],k=g/2-m[f]/2+b,O=Zs(T,k,N),A=u;n.modifiersData[r]=(t={},t[A]=O,t.centerOffset=O-k,t)}}function I3(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||dw(t.elements.popper,i)&&(t.elements.arrow=i))}const z3={name:"arrow",enabled:!0,phase:"main",fn:M3,effect:I3,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yo(e){return e.split("-")[1]}var F3={top:"auto",right:"auto",bottom:"auto",left:"auto"};function B3(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Ko(n*i)/i||0,y:Ko(r*i)/i||0}}function wv(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,l=e.position,u=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,h=e.isFixed,m=s.x,y=m===void 0?0:m,x=s.y,_=x===void 0?0:x,C=typeof f=="function"?f({x:y,y:_}):{x:y,y:_};y=C.x,_=C.y;var v=s.hasOwnProperty("x"),g=s.hasOwnProperty("y"),b=tn,T=en,N=window;if(c){var k=Aa(n),O="clientHeight",A="clientWidth";if(k===pn(n)&&(k=ci(n),kr(k).position!=="static"&&l==="absolute"&&(O="scrollHeight",A="scrollWidth")),k=k,i===en||(i===tn||i===Rn)&&o===_a){T=Ln;var F=h&&k===N&&N.visualViewport?N.visualViewport.height:k[O];_-=F-r.height,_*=u?1:-1}if(i===tn||(i===en||i===Ln)&&o===_a){b=Rn;var H=h&&k===N&&N.visualViewport?N.visualViewport.width:k[A];y-=H-r.width,y*=u?1:-1}}var z=Object.assign({position:l},c&&F3),I=f===!0?B3({x:y,y:_},pn(n)):{x:y,y:_};if(y=I.x,_=I.y,u){var K;return Object.assign({},z,(K={},K[T]=g?"0":"",K[b]=v?"0":"",K.transform=(N.devicePixelRatio||1)<=1?"translate("+y+"px, "+_+"px)":"translate3d("+y+"px, "+_+"px, 0)",K))}return Object.assign({},z,(t={},t[T]=g?_+"px":"",t[b]=v?y+"px":"",t.transform="",t))}function U3(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,l=n.roundOffsets,u=l===void 0?!0:l,c={placement:sr(t.placement),variation:Yo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,wv(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,wv(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const H3={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:U3,data:{}};var bl={passive:!0};function W3(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,l=s===void 0?!0:s,u=pn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(f){f.addEventListener("scroll",n.update,bl)}),l&&u.addEventListener("resize",n.update,bl),function(){o&&c.forEach(function(f){f.removeEventListener("scroll",n.update,bl)}),l&&u.removeEventListener("resize",n.update,bl)}}const V3={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:W3,data:{}};var G3={left:"right",right:"left",bottom:"top",top:"bottom"};function Ul(e){return e.replace(/left|right|bottom|top/g,function(t){return G3[t]})}var K3={start:"end",end:"start"};function xv(e){return e.replace(/start|end/g,function(t){return K3[t]})}function Wp(e){var t=pn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Vp(e){return Qo(ci(e)).left+Wp(e).scrollLeft}function Q3(e,t){var n=pn(e),r=ci(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,l=0,u=0;if(i){o=i.width,s=i.height;var c=cw();(c||!c&&t==="fixed")&&(l=i.offsetLeft,u=i.offsetTop)}return{width:o,height:s,x:l+Vp(e),y:u}}function Y3(e){var t,n=ci(e),r=Wp(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Fi(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Fi(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+Vp(e),u=-r.scrollTop;return kr(i||n).direction==="rtl"&&(l+=Fi(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:l,y:u}}function Gp(e){var t=kr(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function mw(e){return["html","body","#document"].indexOf(ii(e))>=0?e.ownerDocument.body:ar(e)&&Gp(e)?e:mw(Yu(e))}function Js(e,t){var n;t===void 0&&(t=[]);var r=mw(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=pn(r),s=i?[o].concat(o.visualViewport||[],Gp(r)?r:[]):r,l=t.concat(s);return i?l:l.concat(Js(Yu(s)))}function Of(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function q3(e,t){var n=Qo(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function _v(e,t,n){return t===lw?Of(Q3(e,n)):Ki(t)?q3(t,n):Of(Y3(ci(e)))}function X3(e){var t=Js(Yu(e)),n=["absolute","fixed"].indexOf(kr(e).position)>=0,r=n&&ar(e)?Aa(e):e;return Ki(r)?t.filter(function(i){return Ki(i)&&dw(i,r)&&ii(i)!=="body"}):[]}function Z3(e,t,n,r){var i=t==="clippingParents"?X3(e):[].concat(t),o=[].concat(i,[n]),s=o[0],l=o.reduce(function(u,c){var f=_v(e,c,r);return u.top=Fi(f.top,u.top),u.right=xu(f.right,u.right),u.bottom=xu(f.bottom,u.bottom),u.left=Fi(f.left,u.left),u},_v(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function gw(e){var t=e.reference,n=e.element,r=e.placement,i=r?sr(r):null,o=r?Yo(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(i){case en:u={x:s,y:t.y-n.height};break;case Ln:u={x:s,y:t.y+t.height};break;case Rn:u={x:t.x+t.width,y:l};break;case tn:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var c=i?Hp(i):null;if(c!=null){var f=c==="y"?"height":"width";switch(o){case Go:u[c]=u[c]-(t[f]/2-n[f]/2);break;case _a:u[c]=u[c]+(t[f]/2-n[f]/2);break}}return u}function Ea(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,l=n.boundary,u=l===void 0?_3:l,c=n.rootBoundary,f=c===void 0?lw:c,h=n.elementContext,m=h===void 0?js:h,y=n.altBoundary,x=y===void 0?!1:y,_=n.padding,C=_===void 0?0:_,v=pw(typeof C!="number"?C:hw(C,Ra)),g=m===js?E3:js,b=e.rects.popper,T=e.elements[x?g:m],N=Z3(Ki(T)?T:T.contextElement||ci(e.elements.popper),u,f,s),k=Qo(e.elements.reference),O=gw({reference:k,element:b,strategy:"absolute",placement:i}),A=Of(Object.assign({},b,O)),F=m===js?A:k,H={top:N.top-F.top+v.top,bottom:F.bottom-N.bottom+v.bottom,left:N.left-F.left+v.left,right:F.right-N.right+v.right},z=e.modifiersData.offset;if(m===js&&z){var I=z[i];Object.keys(H).forEach(function(K){var V=[Rn,Ln].indexOf(K)>=0?1:-1,re=[en,Ln].indexOf(K)>=0?"y":"x";H[K]+=I[re]*V})}return H}function J3(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?uw:u,f=Yo(r),h=f?l?vv:vv.filter(function(x){return Yo(x)===f}):Ra,m=h.filter(function(x){return c.indexOf(x)>=0});m.length===0&&(m=h);var y=m.reduce(function(x,_){return x[_]=Ea(e,{placement:_,boundary:i,rootBoundary:o,padding:s})[sr(_)],x},{});return Object.keys(y).sort(function(x,_){return y[x]-y[_]})}function e4(e){if(sr(e)===Fp)return[];var t=Ul(e);return[xv(e),t,xv(t)]}function t4(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,l=s===void 0?!0:s,u=n.fallbackPlacements,c=n.padding,f=n.boundary,h=n.rootBoundary,m=n.altBoundary,y=n.flipVariations,x=y===void 0?!0:y,_=n.allowedAutoPlacements,C=t.options.placement,v=sr(C),g=v===C,b=u||(g||!x?[Ul(C)]:e4(C)),T=[C].concat(b).reduce(function(ae,ye){return ae.concat(sr(ye)===Fp?J3(t,{placement:ye,boundary:f,rootBoundary:h,padding:c,flipVariations:x,allowedAutoPlacements:_}):ye)},[]),N=t.rects.reference,k=t.rects.popper,O=new Map,A=!0,F=T[0],H=0;H=0,re=V?"width":"height",oe=Ea(t,{placement:z,boundary:f,rootBoundary:h,altBoundary:m,padding:c}),ne=V?K?Rn:tn:K?Ln:en;N[re]>k[re]&&(ne=Ul(ne));var U=Ul(ne),q=[];if(o&&q.push(oe[I]<=0),l&&q.push(oe[ne]<=0,oe[U]<=0),q.every(function(ae){return ae})){F=z,A=!1;break}O.set(z,q)}if(A)for(var R=x?3:1,se=function(ye){var ue=T.find(function(xe){var G=O.get(xe);if(G)return G.slice(0,ye).every(function(We){return We})});if(ue)return F=ue,"break"},ve=R;ve>0;ve--){var Re=se(ve);if(Re==="break")break}t.placement!==F&&(t.modifiersData[r]._skip=!0,t.placement=F,t.reset=!0)}}const n4={name:"flip",enabled:!0,phase:"main",fn:t4,requiresIfExists:["offset"],data:{_skip:!1}};function Ev(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function bv(e){return[en,Rn,Ln,tn].some(function(t){return e[t]>=0})}function r4(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=Ea(t,{elementContext:"reference"}),l=Ea(t,{altBoundary:!0}),u=Ev(s,r),c=Ev(l,i,o),f=bv(u),h=bv(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const i4={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:r4};function o4(e,t,n){var r=sr(e),i=[tn,en].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],l=o[1];return s=s||0,l=(l||0)*i,[tn,Rn].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function s4(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=uw.reduce(function(f,h){return f[h]=o4(h,t.rects,o),f},{}),l=s[t.placement],u=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const a4={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:s4};function l4(e){var t=e.state,n=e.name;t.modifiersData[n]=gw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const u4={name:"popperOffsets",enabled:!0,phase:"read",fn:l4,data:{}};function c4(e){return e==="x"?"y":"x"}function d4(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,l=s===void 0?!1:s,u=n.boundary,c=n.rootBoundary,f=n.altBoundary,h=n.padding,m=n.tether,y=m===void 0?!0:m,x=n.tetherOffset,_=x===void 0?0:x,C=Ea(t,{boundary:u,rootBoundary:c,padding:h,altBoundary:f}),v=sr(t.placement),g=Yo(t.placement),b=!g,T=Hp(v),N=c4(T),k=t.modifiersData.popperOffsets,O=t.rects.reference,A=t.rects.popper,F=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,H=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(k){if(o){var K,V=T==="y"?en:tn,re=T==="y"?Ln:Rn,oe=T==="y"?"height":"width",ne=k[T],U=ne+C[V],q=ne-C[re],R=y?-A[oe]/2:0,se=g===Go?O[oe]:A[oe],ve=g===Go?-A[oe]:-O[oe],Re=t.elements.arrow,ae=y&&Re?Up(Re):{width:0,height:0},ye=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:fw(),ue=ye[V],xe=ye[re],G=Zs(0,O[oe],ae[oe]),We=b?O[oe]/2-R-G-ue-H.mainAxis:se-G-ue-H.mainAxis,mt=b?-O[oe]/2+R+G+xe+H.mainAxis:ve+G+xe+H.mainAxis,Te=t.elements.arrow&&Aa(t.elements.arrow),xt=Te?T==="y"?Te.clientTop||0:Te.clientLeft||0:0,Pe=(K=z==null?void 0:z[T])!=null?K:0,Ne=ne+We-Pe-xt,ze=ne+mt-Pe,gt=Zs(y?xu(U,Ne):U,ne,y?Fi(q,ze):q);k[T]=gt,I[T]=gt-ne}if(l){var cr,is=T==="x"?en:tn,os=T==="x"?Ln:Rn,Dn=k[N],gn=N==="y"?"height":"width",di=Dn+C[is],Or=Dn-C[os],Ot=[en,tn].indexOf(v)!==-1,jt=(cr=z==null?void 0:z[N])!=null?cr:0,jr=Ot?di:Dn-O[gn]-A[gn]-jt+H.altAxis,rn=Ot?Dn+O[gn]+A[gn]-jt-H.altAxis:Or,$n=y&&Ot?D3(jr,Dn,rn):Zs(y?jr:di,Dn,y?rn:Or);k[N]=$n,I[N]=$n-Dn}t.modifiersData[r]=I}}const f4={name:"preventOverflow",enabled:!0,phase:"main",fn:d4,requiresIfExists:["offset"]};function p4(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function h4(e){return e===pn(e)||!ar(e)?Wp(e):p4(e)}function m4(e){var t=e.getBoundingClientRect(),n=Ko(t.width)/e.offsetWidth||1,r=Ko(t.height)/e.offsetHeight||1;return n!==1||r!==1}function g4(e,t,n){n===void 0&&(n=!1);var r=ar(t),i=ar(t)&&m4(t),o=ci(t),s=Qo(e,i,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((ii(t)!=="body"||Gp(o))&&(l=h4(t)),ar(t)?(u=Qo(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=Vp(o))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function v4(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var u=t.get(l);u&&i(u)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function y4(e){var t=v4(e);return L3.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function w4(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function x4(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Sv={placement:"bottom",modifiers:[],strategy:"absolute"};function kv(){for(var e=arguments.length,t=new Array(e),n=0;n=0)&&(n[i]=e[i]);return n}const k4={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},C4={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(i=>i.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,i=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&i==="tooltip"&&"setAttribute"in r){const o=r.getAttribute("aria-describedby");if(o&&o.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",o?`${o},${n.id}`:n.id)}}},T4=[];function O4(e,t,n={}){let{enabled:r=!0,placement:i="bottom",strategy:o="absolute",modifiers:s=T4}=n,l=S4(n,b4);const u=S.useRef(s),c=S.useRef(),f=S.useCallback(()=>{var C;(C=c.current)==null||C.update()},[]),h=S.useCallback(()=>{var C;(C=c.current)==null||C.forceUpdate()},[]),[m,y]=x3(S.useState({placement:i,update:f,forceUpdate:h,attributes:{},styles:{popper:{},arrow:{}}})),x=S.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:C})=>{const v={},g={};Object.keys(C.elements).forEach(b=>{v[b]=C.styles[b],g[b]=C.attributes[b]}),y({state:C,styles:v,attributes:g,update:f,forceUpdate:h,placement:C.placement})}}),[f,h,y]),_=S.useMemo(()=>(Xs(u.current,s)||(u.current=s),u.current),[s]);return S.useEffect(()=>{!c.current||!r||c.current.setOptions({placement:i,strategy:o,modifiers:[..._,x,k4]})},[o,i,x,r,_]),S.useEffect(()=>{if(!(!r||e==null||t==null))return c.current=E4(e,t,Object.assign({},l,{placement:i,strategy:o,modifiers:[..._,C4,x]})),()=>{c.current!=null&&(c.current.destroy(),c.current=void 0,y(C=>Object.assign({},C,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),m}function jf(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var j4=function(){},P4=j4;const N4=qo(P4),Cv=()=>{};function L4(e){return e.button===0}function R4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Hl=e=>e&&("current"in e?e.current:e),Tv={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function A4(e,t=Cv,{disabled:n,clickTrigger:r="click"}={}){const i=S.useRef(!1),o=S.useRef(!1),s=S.useCallback(c=>{const f=Hl(e);N4(!!f,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!f||R4(c)||!L4(c)||!!jf(f,c.target)||o.current,o.current=!1},[e]),l=Vo(c=>{const f=Hl(e);f&&jf(f,c.target)&&(o.current=!0)}),u=Vo(c=>{i.current||t(c)});S.useEffect(()=>{var c,f;if(n||e==null)return;const h=Qu(Hl(e)),m=h.defaultView||window;let y=(c=m.event)!=null?c:(f=m.parent)==null?void 0:f.event,x=null;Tv[r]&&(x=Di(h,Tv[r],l,!0));const _=Di(h,r,s,!0),C=Di(h,r,g=>{if(g===y){y=void 0;return}u(g)});let v=[];return"ontouchstart"in h.documentElement&&(v=[].slice.call(h.body.children).map(g=>Di(g,"mousemove",Cv))),()=>{x==null||x(),_(),C(),v.forEach(g=>g())}},[e,n,r,s,l,u])}function D4(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function $4(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function M4({enabled:e,enableEvents:t,placement:n,flip:r,offset:i,fixed:o,containerPadding:s,arrowElement:l,popperConfig:u={}}){var c,f,h,m,y;const x=D4(u.modifiers);return Object.assign({},u,{placement:n,enabled:e,strategy:o?"fixed":u.strategy,modifiers:$4(Object.assign({},x,{eventListeners:{enabled:t,options:(c=x.eventListeners)==null?void 0:c.options},preventOverflow:Object.assign({},x.preventOverflow,{options:s?Object.assign({padding:s},(f=x.preventOverflow)==null?void 0:f.options):(h=x.preventOverflow)==null?void 0:h.options}),offset:{options:Object.assign({offset:i},(m=x.offset)==null?void 0:m.options)},arrow:Object.assign({},x.arrow,{enabled:!!l,options:Object.assign({},(y=x.arrow)==null?void 0:y.options,{element:l})}),flip:Object.assign({enabled:!!r},x.flip)}))})}const vw=S.createContext(zp?window:void 0);vw.Provider;function I4(){return S.useContext(vw)}const fd=(e,t)=>zp?e==null?(t||Qu()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Ov(e,t){const n=I4(),[r,i]=S.useState(()=>fd(e,n==null?void 0:n.document));if(!r){const o=fd(e);o&&i(o)}return S.useEffect(()=>{t&&r&&t(r)},[t,r]),S.useEffect(()=>{const o=fd(e);o!==r&&i(o)},[e,r]),r}function z4({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const o=S.useRef(null),s=S.useRef(t),l=Vo(n);S.useEffect(()=>{t?s.current=!0:l(o.current)},[t,l]);const u=rs(o,e.ref),c=S.cloneElement(e,{ref:u});return t?c:i||!s.current&&r?null:c}function F4({in:e,onTransition:t}){const n=S.useRef(null),r=S.useRef(!0),i=Vo(t);return kf(()=>{if(!n.current)return;let o=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>o}),()=>{o=!0}},[e,i]),kf(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function B4({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[o,s]=S.useState(!t);t&&o&&s(!1);const l=F4({in:!!t,onTransition:c=>{const f=()=>{c.isStale()||(c.in?r==null||r(c.element,c.initial):(s(!0),n==null||n(c.element)))};Promise.resolve(i(c)).then(f,h=>{throw c.in||s(!0),h})}}),u=rs(l,e.ref);return o&&!t?null:S.cloneElement(e,{ref:u})}function U4(e,t,n){return e?E.jsx(e,Object.assign({},n)):t?E.jsx(B4,Object.assign({},n,{transition:t})):E.jsx(z4,Object.assign({},n))}function H4(e){return e.code==="Escape"||e.keyCode===27}function jv(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}const W4=()=>{};function V4(e,t,{disabled:n,clickTrigger:r}={}){const i=t||W4;A4(e,i,{disabled:n,clickTrigger:r});const o=Vo(s=>{H4(s)&&i(s)});S.useEffect(()=>{if(n||e==null)return;const s=Qu(Hl(e));let l=(s.defaultView||window).event;const u=Di(s,"keyup",c=>{if(c===l){l=void 0;return}o(c)});return()=>{u()}},[e,n,o])}const yw=S.forwardRef((e,t)=>{const{flip:n,offset:r,placement:i,containerPadding:o,popperConfig:s={},transition:l,runTransition:u}=e,[c,f]=dv(),[h,m]=dv(),y=rs(f,t),x=Ov(e.container),_=Ov(e.target),[C,v]=S.useState(!e.show),g=O4(_,c,M4({placement:i,enableEvents:!!e.show,containerPadding:o||5,flip:n,offset:r,arrowElement:h,popperConfig:s}));e.show&&C&&v(!1);const b=(...z)=>{v(!0),e.onExited&&e.onExited(...z)},T=e.show||!C;if(V4(c,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!T)return null;const{onExit:N,onExiting:k,onEnter:O,onEntering:A,onEntered:F}=e;let H=e.children(Object.assign({},g.attributes.popper,{style:g.styles.popper,ref:y}),{popper:g,placement:i,show:!!e.show,arrowProps:Object.assign({},g.attributes.arrow,{style:g.styles.arrow,ref:m})});return H=U4(l,u,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:H,onExit:N,onExiting:k,onExited:b,onEnter:O,onEntering:A,onEntered:F}),x?Ni.createPortal(H,x):null});yw.displayName="Overlay";const G4=yw,ww=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=lr(t,"popover-header"),E.jsx(n,{ref:i,className:Yn(e,t),...r})));ww.displayName="PopoverHeader";const K4=ww,xw=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=lr(t,"popover-body"),E.jsx(n,{ref:i,className:Yn(e,t),...r})));xw.displayName="PopoverBody";const _w=xw;function Ew(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function bw(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const Q4=S.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,body:o,arrowProps:s,hasDoneInitialMeasure:l,popper:u,show:c,...f},h)=>{const m=lr(e,"popover"),y=q1(),[x]=(t==null?void 0:t.split("-"))||[],_=Ew(x,y);let C=r;return c&&!l&&(C={...r,...bw(u==null?void 0:u.strategy)}),E.jsxs("div",{ref:h,role:"tooltip",style:C,"x-placement":x,className:Yn(n,m,x&&`bs-popover-${_}`),...f,children:[E.jsx("div",{className:"popover-arrow",...s}),o?E.jsx(_w,{children:i}):i]})}),Y4=Object.assign(Q4,{Header:K4,Body:_w,POPPER_OFFSET:[0,8]}),Sw=S.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,arrowProps:o,hasDoneInitialMeasure:s,popper:l,show:u,...c},f)=>{e=lr(e,"tooltip");const h=q1(),[m]=(t==null?void 0:t.split("-"))||[],y=Ew(m,h);let x=r;return u&&!s&&(x={...r,...bw(l==null?void 0:l.strategy)}),E.jsxs("div",{ref:f,style:x,role:"tooltip","x-placement":m,className:Yn(n,e,`bs-tooltip-${y}`),...c,children:[E.jsx("div",{className:"tooltip-arrow",...o}),E.jsx("div",{className:`${e}-inner`,children:i})]})});Sw.displayName="Tooltip";const Pf=Object.assign(Sw,{TOOLTIP_OFFSET:[0,6]});function q4(e){const t=S.useRef(null),n=lr(void 0,"popover"),r=lr(void 0,"tooltip"),i=S.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(jv(t.current,n))return Y4.POPPER_OFFSET;if(jv(t.current,r))return Pf.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[i]]}function X4(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=i=>n(wu(i))),t.ref=r.__wrapped||(r.__wrapped=i=>r(wu(i)))}const kw=S.forwardRef(({children:e,transition:t=fv,popperConfig:n={},rootClose:r=!1,placement:i="top",show:o=!1,...s},l)=>{const u=S.useRef({}),[c,f]=S.useState(null),[h,m]=q4(s.offset),y=rs(l,h),x=t===!0?fv:t||void 0,_=Vo(C=>{f(C),n==null||n.onFirstUpdate==null||n.onFirstUpdate(C)});return kf(()=>{c&&s.target&&(u.current.scheduleUpdate==null||u.current.scheduleUpdate())},[c,s.target]),S.useEffect(()=>{o||f(null)},[o]),E.jsx(G4,{...s,ref:y,popperConfig:{...n,modifiers:m.concat(n.modifiers||[]),onFirstUpdate:_},transition:x,rootClose:r,placement:i,show:o,children:(C,{arrowProps:v,popper:g,show:b})=>{var T,N;X4(C,v);const k=g==null?void 0:g.placement,O=Object.assign(u.current,{state:g==null?void 0:g.state,scheduleUpdate:g==null?void 0:g.update,placement:k,outOfBoundaries:(g==null||(T=g.state)==null||(N=T.modifiersData.hide)==null?void 0:N.isReferenceHidden)||!1,strategy:n.strategy}),A=!!c;return typeof e=="function"?e({...C,placement:k,show:b,...!t&&b&&{className:"show"},popper:O,arrowProps:v,hasDoneInitialMeasure:A}):S.cloneElement(e,{...C,placement:k,arrowProps:v,popper:O,hasDoneInitialMeasure:A,className:Yn(e.props.className,!t&&b&&"show"),style:{...e.props.style,...C.style}})}})});kw.displayName="Overlay";const Z4=kw;function J4(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function Pv(e,t,n){const[r]=t,i=r.currentTarget,o=r.relatedTarget||r.nativeEvent[n];(!o||o!==i)&&!jf(i,o)&&e(...t)}QC.oneOf(["click","hover","focus"]);const eT=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:i,defaultShow:o=!1,onToggle:s,delay:l,placement:u,flip:c=u&&u.indexOf("auto")!==-1,...f})=>{const h=S.useRef(null),m=rs(h,n.ref),y=y3(),x=S.useRef(""),[_,C]=LC(i,o,s),v=J4(l),{onFocus:g,onBlur:b,onClick:T}=typeof n!="function"?S.Children.only(n).props:{},N=re=>{m(wu(re))},k=S.useCallback(()=>{if(y.clear(),x.current="show",!v.show){C(!0);return}y.set(()=>{x.current==="show"&&C(!0)},v.show)},[v.show,C,y]),O=S.useCallback(()=>{if(y.clear(),x.current="hide",!v.hide){C(!1);return}y.set(()=>{x.current==="hide"&&C(!1)},v.hide)},[v.hide,C,y]),A=S.useCallback((...re)=>{k(),g==null||g(...re)},[k,g]),F=S.useCallback((...re)=>{O(),b==null||b(...re)},[O,b]),H=S.useCallback((...re)=>{C(!_),T==null||T(...re)},[T,C,_]),z=S.useCallback((...re)=>{Pv(k,re,"fromElement")},[k]),I=S.useCallback((...re)=>{Pv(O,re,"toElement")},[O]),K=e==null?[]:[].concat(e),V={ref:N};return K.indexOf("click")!==-1&&(V.onClick=H),K.indexOf("focus")!==-1&&(V.onFocus=A,V.onBlur=F),K.indexOf("hover")!==-1&&(V.onMouseOver=z,V.onMouseOut=I),E.jsxs(E.Fragment,{children:[typeof n=="function"?n(V):S.cloneElement(n,V),E.jsx(Z4,{...f,show:_,onHide:O,flip:c,placement:u,popperConfig:r,target:h.current,children:t})]})},Nv=eT,Cw=S.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},i)=>{const o=lr(e,"row"),s=Q1(),l=Y1(),u=`${o}-cols`,c=[];return s.forEach(f=>{const h=r[f];delete r[f];let m;h!=null&&typeof h=="object"?{cols:m}=h:m=h;const y=f!==l?`-${f}`:"";m!=null&&c.push(`${u}${y}-${m}`)}),E.jsx(n,{ref:i,...r,className:Yn(t,o,...c)})});Cw.displayName="Row";const tT=Cw,Tw=S.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:i="div",className:o,...s},l)=>{e=lr(e,"spinner");const u=`${e}-${n}`;return E.jsx(i,{ref:l,...s,className:Yn(o,u,r&&`${u}-${r}`,t&&`text-${t}`)})});Tw.displayName="Spinner";const qu=Tw,nT=we.div` +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i=0)&&(n[i]=e[i]);return n}function NC(e,t,n){var r=S.useRef(e!==void 0),i=S.useState(t),o=i[0],s=i[1],l=e!==void 0,u=r.current;return r.current=l,!l&&u&&o!==t&&s(t),[l?e:o,S.useCallback(function(c){for(var f=arguments.length,h=new Array(f>1?f-1:0),m=1;m{o.target===e&&(i(),t(o))},n+r)}function r3(e){e.offsetHeight}const cv=e=>!e||typeof e=="function"?e:t=>{e.current=t};function i3(e,t){const n=cv(e),r=cv(t);return i=>{n&&n(i),r&&r(i)}}function ns(e,t){return S.useMemo(()=>i3(e,t),[e,t])}function wu(e){return e&&"setState"in e?Pi.findDOMNode(e):e??null}const o3=ke.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:o,addEndListener:s,children:l,childRef:u,...c},f)=>{const h=S.useRef(null),m=ns(h,u),y=k=>{m(wu(k))},x=k=>O=>{k&&h.current&&k(h.current,O)},_=S.useCallback(x(e),[e]),C=S.useCallback(x(t),[t]),v=S.useCallback(x(n),[n]),g=S.useCallback(x(r),[r]),b=S.useCallback(x(i),[i]),T=S.useCallback(x(o),[o]),N=S.useCallback(x(s),[s]);return E.jsx(YC,{ref:f,...c,onEnter:_,onEntered:v,onEntering:C,onExit:g,onExited:T,onExiting:b,addEndListener:N,nodeRef:h,children:typeof l=="function"?(k,O)=>l(k,{...O,ref:y}):ke.cloneElement(l,{ref:y})})}),s3=o3;function a3(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e},[e]),t}function Wo(e){const t=a3(e);return S.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function dv(){return S.useState(null)}function nw(){const e=S.useRef(!0),t=S.useRef(()=>e.current);return S.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}const l3=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",u3=typeof document<"u",kf=u3||l3?S.useLayoutEffect:S.useEffect,c3=["as","disabled"];function d3(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 f3(e){return!e||e.trim()==="#"}function rw({tagName:e,disabled:t,href:n,target:r,rel:i,role:o,onClick:s,tabIndex:l=0,type:u}){e||(n!=null||r!=null||i!=null?e="a":e="button");const c={tagName:e};if(e==="button")return[{type:u||"button",disabled:t},c];const f=m=>{if((t||e==="a"&&f3(n))&&m.preventDefault(),t){m.stopPropagation();return}s==null||s(m)},h=m=>{m.key===" "&&(m.preventDefault(),f(m))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:o??"button",disabled:void 0,tabIndex:t?void 0:l,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?i:void 0,onClick:f,onKeyDown:h},c]}const p3=S.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=d3(e,c3);const[o,{tagName:s}]=rw(Object.assign({tagName:n,disabled:r},i));return E.jsx(s,Object.assign({},i,o,{ref:t}))});p3.displayName="Button";const h3={[Fr]:"show",[Ci]:"show"},iw=S.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...i},o)=>{const s={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},l=S.useCallback((u,c)=>{r3(u),r==null||r(u,c)},[r]);return E.jsx(s3,{ref:o,addEndListener:n3,...s,onEnter:l,childRef:t.ref,children:(u,c)=>S.cloneElement(t,{...c,className:Yn("fade",e,t.props.className,h3[u],n[u])})})});iw.displayName="Fade";const fv=iw,ow=S.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:i=!1,disabled:o=!1,className:s,...l},u)=>{const c=lr(t,"btn"),[f,{tagName:h}]=rw({tagName:e,disabled:o,...l}),m=h;return E.jsx(m,{...f,...l,ref:u,disabled:o,className:Yn(s,c,i&&"active",n&&`${c}-${n}`,r&&`${c}-${r}`,l.href&&o&&"disabled")})});ow.displayName="Button";const pv=ow;function m3(e){const t=S.useRef(e);return t.current=e,t}function g3(e){const t=m3(e);S.useEffect(()=>()=>t.current(),[])}const Cf=2**31-1;function sw(e,t,n){const r=n-Date.now();e.current=r<=Cf?setTimeout(t,r):setTimeout(()=>sw(e,t,n),Cf)}function v3(){const e=nw(),t=S.useRef();return g3(()=>clearTimeout(t.current)),S.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(i,o=0){e()&&(n(),o<=Cf?t.current=setTimeout(i,o):sw(t,i,Date.now()+o))}return{set:r,clear:n,handleRef:t}},[])}function y3({as:e,bsPrefix:t,className:n,...r}){t=lr(t,"col");const i=Q1(),o=Y1(),s=[],l=[];return i.forEach(u=>{const c=r[u];delete r[u];let f,h,m;typeof c=="object"&&c!=null?{span:f,offset:h,order:m}=c:f=c;const y=u!==o?`-${u}`:"";f&&s.push(f===!0?`${t}${y}`:`${t}${y}-${f}`),m!=null&&l.push(`order${y}-${m}`),h!=null&&l.push(`offset${y}-${h}`)}),[{...r,className:Yn(n,...s,...l)},{as:e,bsPrefix:t,spans:s}]}const aw=S.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:o,spans:s}]=y3(e);return E.jsx(i,{...r,ref:t,className:Yn(n,!s.length&&o)})});aw.displayName="Col";const hv=aw;var mv=Object.prototype.hasOwnProperty;function gv(e,t,n){for(n of e.keys())if(qs(n,t))return n}function qs(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&qs(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(i=r,i&&typeof i=="object"&&(i=gv(t,i),!i)||!t.has(i))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(i=r[0],i&&typeof i=="object"&&(i=gv(t,i),!i)||!qs(r[1],t.get(i)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(mv.call(e,n)&&++r&&!mv.call(t,n)||!(n in t)||!qs(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function w3(e){const t=nw();return[e[0],S.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var en="top",Ln="bottom",Rn="right",tn="left",Fp="auto",Ra=[en,Ln,Rn,tn],Vo="start",_a="end",x3="clippingParents",lw="viewport",Os="popper",_3="reference",vv=Ra.reduce(function(e,t){return e.concat([t+"-"+Vo,t+"-"+_a])},[]),uw=[].concat(Ra,[Fp]).reduce(function(e,t){return e.concat([t,t+"-"+Vo,t+"-"+_a])},[]),E3="beforeRead",b3="read",S3="afterRead",k3="beforeMain",C3="main",T3="afterMain",O3="beforeWrite",j3="write",P3="afterWrite",N3=[E3,b3,S3,k3,C3,T3,O3,j3,P3];function sr(e){return e.split("-")[0]}function pn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ki(e){var t=pn(e).Element;return e instanceof t||e instanceof Element}function ar(e){var t=pn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Bp(e){if(typeof ShadowRoot>"u")return!1;var t=pn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var zi=Math.max,xu=Math.min,Go=Math.round;function Tf(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function cw(){return!/^((?!chrome|android).)*safari/i.test(Tf())}function Ko(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&ar(e)&&(i=e.offsetWidth>0&&Go(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Go(r.height)/e.offsetHeight||1);var s=Ki(e)?pn(e):window,l=s.visualViewport,u=!cw()&&n,c=(r.left+(u&&l?l.offsetLeft:0))/i,f=(r.top+(u&&l?l.offsetTop:0))/o,h=r.width/i,m=r.height/o;return{width:h,height:m,top:f,right:c+h,bottom:f+m,left:c,x:c,y:f}}function Up(e){var t=Ko(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function dw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Bp(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ri(e){return e?(e.nodeName||"").toLowerCase():null}function kr(e){return pn(e).getComputedStyle(e)}function L3(e){return["table","td","th"].indexOf(ri(e))>=0}function ui(e){return((Ki(e)?e.ownerDocument:e.document)||window.document).documentElement}function Yu(e){return ri(e)==="html"?e:e.assignedSlot||e.parentNode||(Bp(e)?e.host:null)||ui(e)}function yv(e){return!ar(e)||kr(e).position==="fixed"?null:e.offsetParent}function R3(e){var t=/firefox/i.test(Tf()),n=/Trident/i.test(Tf());if(n&&ar(e)){var r=kr(e);if(r.position==="fixed")return null}var i=Yu(e);for(Bp(i)&&(i=i.host);ar(i)&&["html","body"].indexOf(ri(i))<0;){var o=kr(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Aa(e){for(var t=pn(e),n=yv(e);n&&L3(n)&&kr(n).position==="static";)n=yv(n);return n&&(ri(n)==="html"||ri(n)==="body"&&kr(n).position==="static")?t:n||R3(e)||t}function Hp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Xs(e,t,n){return zi(e,xu(t,n))}function A3(e,t,n){var r=Xs(e,t,n);return r>n?n:r}function fw(){return{top:0,right:0,bottom:0,left:0}}function pw(e){return Object.assign({},fw(),e)}function hw(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var D3=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,pw(typeof t!="number"?t:hw(t,Ra))};function $3(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,l=sr(n.placement),u=Hp(l),c=[tn,Rn].indexOf(l)>=0,f=c?"height":"width";if(!(!o||!s)){var h=D3(i.padding,n),m=Up(o),y=u==="y"?en:tn,x=u==="y"?Ln:Rn,_=n.rects.reference[f]+n.rects.reference[u]-s[u]-n.rects.popper[f],C=s[u]-n.rects.reference[u],v=Aa(o),g=v?u==="y"?v.clientHeight||0:v.clientWidth||0:0,b=_/2-C/2,T=h[y],N=g-m[f]-h[x],k=g/2-m[f]/2+b,O=Xs(T,k,N),A=u;n.modifiersData[r]=(t={},t[A]=O,t.centerOffset=O-k,t)}}function M3(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||dw(t.elements.popper,i)&&(t.elements.arrow=i))}const I3={name:"arrow",enabled:!0,phase:"main",fn:$3,effect:M3,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qo(e){return e.split("-")[1]}var z3={top:"auto",right:"auto",bottom:"auto",left:"auto"};function F3(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Go(n*i)/i||0,y:Go(r*i)/i||0}}function wv(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,l=e.position,u=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,h=e.isFixed,m=s.x,y=m===void 0?0:m,x=s.y,_=x===void 0?0:x,C=typeof f=="function"?f({x:y,y:_}):{x:y,y:_};y=C.x,_=C.y;var v=s.hasOwnProperty("x"),g=s.hasOwnProperty("y"),b=tn,T=en,N=window;if(c){var k=Aa(n),O="clientHeight",A="clientWidth";if(k===pn(n)&&(k=ui(n),kr(k).position!=="static"&&l==="absolute"&&(O="scrollHeight",A="scrollWidth")),k=k,i===en||(i===tn||i===Rn)&&o===_a){T=Ln;var F=h&&k===N&&N.visualViewport?N.visualViewport.height:k[O];_-=F-r.height,_*=u?1:-1}if(i===tn||(i===en||i===Ln)&&o===_a){b=Rn;var H=h&&k===N&&N.visualViewport?N.visualViewport.width:k[A];y-=H-r.width,y*=u?1:-1}}var z=Object.assign({position:l},c&&z3),I=f===!0?F3({x:y,y:_},pn(n)):{x:y,y:_};if(y=I.x,_=I.y,u){var K;return Object.assign({},z,(K={},K[T]=g?"0":"",K[b]=v?"0":"",K.transform=(N.devicePixelRatio||1)<=1?"translate("+y+"px, "+_+"px)":"translate3d("+y+"px, "+_+"px, 0)",K))}return Object.assign({},z,(t={},t[T]=g?_+"px":"",t[b]=v?y+"px":"",t.transform="",t))}function B3(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,l=n.roundOffsets,u=l===void 0?!0:l,c={placement:sr(t.placement),variation:Qo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,wv(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,wv(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const U3={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:B3,data:{}};var bl={passive:!0};function H3(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,l=s===void 0?!0:s,u=pn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(f){f.addEventListener("scroll",n.update,bl)}),l&&u.addEventListener("resize",n.update,bl),function(){o&&c.forEach(function(f){f.removeEventListener("scroll",n.update,bl)}),l&&u.removeEventListener("resize",n.update,bl)}}const W3={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:H3,data:{}};var V3={left:"right",right:"left",bottom:"top",top:"bottom"};function Ul(e){return e.replace(/left|right|bottom|top/g,function(t){return V3[t]})}var G3={start:"end",end:"start"};function xv(e){return e.replace(/start|end/g,function(t){return G3[t]})}function Wp(e){var t=pn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Vp(e){return Ko(ui(e)).left+Wp(e).scrollLeft}function K3(e,t){var n=pn(e),r=ui(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,l=0,u=0;if(i){o=i.width,s=i.height;var c=cw();(c||!c&&t==="fixed")&&(l=i.offsetLeft,u=i.offsetTop)}return{width:o,height:s,x:l+Vp(e),y:u}}function Q3(e){var t,n=ui(e),r=Wp(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=zi(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=zi(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+Vp(e),u=-r.scrollTop;return kr(i||n).direction==="rtl"&&(l+=zi(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:l,y:u}}function Gp(e){var t=kr(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function mw(e){return["html","body","#document"].indexOf(ri(e))>=0?e.ownerDocument.body:ar(e)&&Gp(e)?e:mw(Yu(e))}function Zs(e,t){var n;t===void 0&&(t=[]);var r=mw(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=pn(r),s=i?[o].concat(o.visualViewport||[],Gp(r)?r:[]):r,l=t.concat(s);return i?l:l.concat(Zs(Yu(s)))}function Of(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Y3(e,t){var n=Ko(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function _v(e,t,n){return t===lw?Of(K3(e,n)):Ki(t)?Y3(t,n):Of(Q3(ui(e)))}function q3(e){var t=Zs(Yu(e)),n=["absolute","fixed"].indexOf(kr(e).position)>=0,r=n&&ar(e)?Aa(e):e;return Ki(r)?t.filter(function(i){return Ki(i)&&dw(i,r)&&ri(i)!=="body"}):[]}function X3(e,t,n,r){var i=t==="clippingParents"?q3(e):[].concat(t),o=[].concat(i,[n]),s=o[0],l=o.reduce(function(u,c){var f=_v(e,c,r);return u.top=zi(f.top,u.top),u.right=xu(f.right,u.right),u.bottom=xu(f.bottom,u.bottom),u.left=zi(f.left,u.left),u},_v(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function gw(e){var t=e.reference,n=e.element,r=e.placement,i=r?sr(r):null,o=r?Qo(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(i){case en:u={x:s,y:t.y-n.height};break;case Ln:u={x:s,y:t.y+t.height};break;case Rn:u={x:t.x+t.width,y:l};break;case tn:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var c=i?Hp(i):null;if(c!=null){var f=c==="y"?"height":"width";switch(o){case Vo:u[c]=u[c]-(t[f]/2-n[f]/2);break;case _a:u[c]=u[c]+(t[f]/2-n[f]/2);break}}return u}function Ea(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,l=n.boundary,u=l===void 0?x3:l,c=n.rootBoundary,f=c===void 0?lw:c,h=n.elementContext,m=h===void 0?Os:h,y=n.altBoundary,x=y===void 0?!1:y,_=n.padding,C=_===void 0?0:_,v=pw(typeof C!="number"?C:hw(C,Ra)),g=m===Os?_3:Os,b=e.rects.popper,T=e.elements[x?g:m],N=X3(Ki(T)?T:T.contextElement||ui(e.elements.popper),u,f,s),k=Ko(e.elements.reference),O=gw({reference:k,element:b,strategy:"absolute",placement:i}),A=Of(Object.assign({},b,O)),F=m===Os?A:k,H={top:N.top-F.top+v.top,bottom:F.bottom-N.bottom+v.bottom,left:N.left-F.left+v.left,right:F.right-N.right+v.right},z=e.modifiersData.offset;if(m===Os&&z){var I=z[i];Object.keys(H).forEach(function(K){var V=[Rn,Ln].indexOf(K)>=0?1:-1,re=[en,Ln].indexOf(K)>=0?"y":"x";H[K]+=I[re]*V})}return H}function Z3(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?uw:u,f=Qo(r),h=f?l?vv:vv.filter(function(x){return Qo(x)===f}):Ra,m=h.filter(function(x){return c.indexOf(x)>=0});m.length===0&&(m=h);var y=m.reduce(function(x,_){return x[_]=Ea(e,{placement:_,boundary:i,rootBoundary:o,padding:s})[sr(_)],x},{});return Object.keys(y).sort(function(x,_){return y[x]-y[_]})}function J3(e){if(sr(e)===Fp)return[];var t=Ul(e);return[xv(e),t,xv(t)]}function e4(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,l=s===void 0?!0:s,u=n.fallbackPlacements,c=n.padding,f=n.boundary,h=n.rootBoundary,m=n.altBoundary,y=n.flipVariations,x=y===void 0?!0:y,_=n.allowedAutoPlacements,C=t.options.placement,v=sr(C),g=v===C,b=u||(g||!x?[Ul(C)]:J3(C)),T=[C].concat(b).reduce(function(ae,ye){return ae.concat(sr(ye)===Fp?Z3(t,{placement:ye,boundary:f,rootBoundary:h,padding:c,flipVariations:x,allowedAutoPlacements:_}):ye)},[]),N=t.rects.reference,k=t.rects.popper,O=new Map,A=!0,F=T[0],H=0;H=0,re=V?"width":"height",oe=Ea(t,{placement:z,boundary:f,rootBoundary:h,altBoundary:m,padding:c}),ne=V?K?Rn:tn:K?Ln:en;N[re]>k[re]&&(ne=Ul(ne));var U=Ul(ne),q=[];if(o&&q.push(oe[I]<=0),l&&q.push(oe[ne]<=0,oe[U]<=0),q.every(function(ae){return ae})){F=z,A=!1;break}O.set(z,q)}if(A)for(var R=x?3:1,se=function(ye){var ue=T.find(function(xe){var G=O.get(xe);if(G)return G.slice(0,ye).every(function(We){return We})});if(ue)return F=ue,"break"},ve=R;ve>0;ve--){var Re=se(ve);if(Re==="break")break}t.placement!==F&&(t.modifiersData[r]._skip=!0,t.placement=F,t.reset=!0)}}const t4={name:"flip",enabled:!0,phase:"main",fn:e4,requiresIfExists:["offset"],data:{_skip:!1}};function Ev(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function bv(e){return[en,Rn,Ln,tn].some(function(t){return e[t]>=0})}function n4(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=Ea(t,{elementContext:"reference"}),l=Ea(t,{altBoundary:!0}),u=Ev(s,r),c=Ev(l,i,o),f=bv(u),h=bv(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const r4={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:n4};function i4(e,t,n){var r=sr(e),i=[tn,en].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],l=o[1];return s=s||0,l=(l||0)*i,[tn,Rn].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function o4(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=uw.reduce(function(f,h){return f[h]=i4(h,t.rects,o),f},{}),l=s[t.placement],u=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const s4={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:o4};function a4(e){var t=e.state,n=e.name;t.modifiersData[n]=gw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const l4={name:"popperOffsets",enabled:!0,phase:"read",fn:a4,data:{}};function u4(e){return e==="x"?"y":"x"}function c4(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,l=s===void 0?!1:s,u=n.boundary,c=n.rootBoundary,f=n.altBoundary,h=n.padding,m=n.tether,y=m===void 0?!0:m,x=n.tetherOffset,_=x===void 0?0:x,C=Ea(t,{boundary:u,rootBoundary:c,padding:h,altBoundary:f}),v=sr(t.placement),g=Qo(t.placement),b=!g,T=Hp(v),N=u4(T),k=t.modifiersData.popperOffsets,O=t.rects.reference,A=t.rects.popper,F=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,H=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(k){if(o){var K,V=T==="y"?en:tn,re=T==="y"?Ln:Rn,oe=T==="y"?"height":"width",ne=k[T],U=ne+C[V],q=ne-C[re],R=y?-A[oe]/2:0,se=g===Vo?O[oe]:A[oe],ve=g===Vo?-A[oe]:-O[oe],Re=t.elements.arrow,ae=y&&Re?Up(Re):{width:0,height:0},ye=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:fw(),ue=ye[V],xe=ye[re],G=Xs(0,O[oe],ae[oe]),We=b?O[oe]/2-R-G-ue-H.mainAxis:se-G-ue-H.mainAxis,mt=b?-O[oe]/2+R+G+xe+H.mainAxis:ve+G+xe+H.mainAxis,Te=t.elements.arrow&&Aa(t.elements.arrow),xt=Te?T==="y"?Te.clientTop||0:Te.clientLeft||0:0,Pe=(K=z==null?void 0:z[T])!=null?K:0,Ne=ne+We-Pe-xt,ze=ne+mt-Pe,gt=Xs(y?xu(U,Ne):U,ne,y?zi(q,ze):q);k[T]=gt,I[T]=gt-ne}if(l){var cr,rs=T==="x"?en:tn,is=T==="x"?Ln:Rn,Dn=k[N],gn=N==="y"?"height":"width",ci=Dn+C[rs],Or=Dn-C[is],Ot=[en,tn].indexOf(v)!==-1,jt=(cr=z==null?void 0:z[N])!=null?cr:0,jr=Ot?ci:Dn-O[gn]-A[gn]-jt+H.altAxis,rn=Ot?Dn+O[gn]+A[gn]-jt-H.altAxis:Or,$n=y&&Ot?A3(jr,Dn,rn):Xs(y?jr:ci,Dn,y?rn:Or);k[N]=$n,I[N]=$n-Dn}t.modifiersData[r]=I}}const d4={name:"preventOverflow",enabled:!0,phase:"main",fn:c4,requiresIfExists:["offset"]};function f4(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function p4(e){return e===pn(e)||!ar(e)?Wp(e):f4(e)}function h4(e){var t=e.getBoundingClientRect(),n=Go(t.width)/e.offsetWidth||1,r=Go(t.height)/e.offsetHeight||1;return n!==1||r!==1}function m4(e,t,n){n===void 0&&(n=!1);var r=ar(t),i=ar(t)&&h4(t),o=ui(t),s=Ko(e,i,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((ri(t)!=="body"||Gp(o))&&(l=p4(t)),ar(t)?(u=Ko(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=Vp(o))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function g4(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var u=t.get(l);u&&i(u)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function v4(e){var t=g4(e);return N3.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function y4(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function w4(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Sv={placement:"bottom",modifiers:[],strategy:"absolute"};function kv(){for(var e=arguments.length,t=new Array(e),n=0;n=0)&&(n[i]=e[i]);return n}const S4={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},k4={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(i=>i.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,i=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&i==="tooltip"&&"setAttribute"in r){const o=r.getAttribute("aria-describedby");if(o&&o.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",o?`${o},${n.id}`:n.id)}}},C4=[];function T4(e,t,n={}){let{enabled:r=!0,placement:i="bottom",strategy:o="absolute",modifiers:s=C4}=n,l=b4(n,E4);const u=S.useRef(s),c=S.useRef(),f=S.useCallback(()=>{var C;(C=c.current)==null||C.update()},[]),h=S.useCallback(()=>{var C;(C=c.current)==null||C.forceUpdate()},[]),[m,y]=w3(S.useState({placement:i,update:f,forceUpdate:h,attributes:{},styles:{popper:{},arrow:{}}})),x=S.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:C})=>{const v={},g={};Object.keys(C.elements).forEach(b=>{v[b]=C.styles[b],g[b]=C.attributes[b]}),y({state:C,styles:v,attributes:g,update:f,forceUpdate:h,placement:C.placement})}}),[f,h,y]),_=S.useMemo(()=>(qs(u.current,s)||(u.current=s),u.current),[s]);return S.useEffect(()=>{!c.current||!r||c.current.setOptions({placement:i,strategy:o,modifiers:[..._,x,S4]})},[o,i,x,r,_]),S.useEffect(()=>{if(!(!r||e==null||t==null))return c.current=_4(e,t,Object.assign({},l,{placement:i,strategy:o,modifiers:[..._,k4,x]})),()=>{c.current!=null&&(c.current.destroy(),c.current=void 0,y(C=>Object.assign({},C,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),m}function jf(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var O4=function(){},j4=O4;const P4=Yo(j4),Cv=()=>{};function N4(e){return e.button===0}function L4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Hl=e=>e&&("current"in e?e.current:e),Tv={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function R4(e,t=Cv,{disabled:n,clickTrigger:r="click"}={}){const i=S.useRef(!1),o=S.useRef(!1),s=S.useCallback(c=>{const f=Hl(e);P4(!!f,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!f||L4(c)||!N4(c)||!!jf(f,c.target)||o.current,o.current=!1},[e]),l=Wo(c=>{const f=Hl(e);f&&jf(f,c.target)&&(o.current=!0)}),u=Wo(c=>{i.current||t(c)});S.useEffect(()=>{var c,f;if(n||e==null)return;const h=Qu(Hl(e)),m=h.defaultView||window;let y=(c=m.event)!=null?c:(f=m.parent)==null?void 0:f.event,x=null;Tv[r]&&(x=Ai(h,Tv[r],l,!0));const _=Ai(h,r,s,!0),C=Ai(h,r,g=>{if(g===y){y=void 0;return}u(g)});let v=[];return"ontouchstart"in h.documentElement&&(v=[].slice.call(h.body.children).map(g=>Ai(g,"mousemove",Cv))),()=>{x==null||x(),_(),C(),v.forEach(g=>g())}},[e,n,r,s,l,u])}function A4(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function D4(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function $4({enabled:e,enableEvents:t,placement:n,flip:r,offset:i,fixed:o,containerPadding:s,arrowElement:l,popperConfig:u={}}){var c,f,h,m,y;const x=A4(u.modifiers);return Object.assign({},u,{placement:n,enabled:e,strategy:o?"fixed":u.strategy,modifiers:D4(Object.assign({},x,{eventListeners:{enabled:t,options:(c=x.eventListeners)==null?void 0:c.options},preventOverflow:Object.assign({},x.preventOverflow,{options:s?Object.assign({padding:s},(f=x.preventOverflow)==null?void 0:f.options):(h=x.preventOverflow)==null?void 0:h.options}),offset:{options:Object.assign({offset:i},(m=x.offset)==null?void 0:m.options)},arrow:Object.assign({},x.arrow,{enabled:!!l,options:Object.assign({},(y=x.arrow)==null?void 0:y.options,{element:l})}),flip:Object.assign({enabled:!!r},x.flip)}))})}const vw=S.createContext(zp?window:void 0);vw.Provider;function M4(){return S.useContext(vw)}const fd=(e,t)=>zp?e==null?(t||Qu()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Ov(e,t){const n=M4(),[r,i]=S.useState(()=>fd(e,n==null?void 0:n.document));if(!r){const o=fd(e);o&&i(o)}return S.useEffect(()=>{t&&r&&t(r)},[t,r]),S.useEffect(()=>{const o=fd(e);o!==r&&i(o)},[e,r]),r}function I4({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const o=S.useRef(null),s=S.useRef(t),l=Wo(n);S.useEffect(()=>{t?s.current=!0:l(o.current)},[t,l]);const u=ns(o,e.ref),c=S.cloneElement(e,{ref:u});return t?c:i||!s.current&&r?null:c}function z4({in:e,onTransition:t}){const n=S.useRef(null),r=S.useRef(!0),i=Wo(t);return kf(()=>{if(!n.current)return;let o=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>o}),()=>{o=!0}},[e,i]),kf(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function F4({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[o,s]=S.useState(!t);t&&o&&s(!1);const l=z4({in:!!t,onTransition:c=>{const f=()=>{c.isStale()||(c.in?r==null||r(c.element,c.initial):(s(!0),n==null||n(c.element)))};Promise.resolve(i(c)).then(f,h=>{throw c.in||s(!0),h})}}),u=ns(l,e.ref);return o&&!t?null:S.cloneElement(e,{ref:u})}function B4(e,t,n){return e?E.jsx(e,Object.assign({},n)):t?E.jsx(F4,Object.assign({},n,{transition:t})):E.jsx(I4,Object.assign({},n))}function U4(e){return e.code==="Escape"||e.keyCode===27}function jv(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}const H4=()=>{};function W4(e,t,{disabled:n,clickTrigger:r}={}){const i=t||H4;R4(e,i,{disabled:n,clickTrigger:r});const o=Wo(s=>{U4(s)&&i(s)});S.useEffect(()=>{if(n||e==null)return;const s=Qu(Hl(e));let l=(s.defaultView||window).event;const u=Ai(s,"keyup",c=>{if(c===l){l=void 0;return}o(c)});return()=>{u()}},[e,n,o])}const yw=S.forwardRef((e,t)=>{const{flip:n,offset:r,placement:i,containerPadding:o,popperConfig:s={},transition:l,runTransition:u}=e,[c,f]=dv(),[h,m]=dv(),y=ns(f,t),x=Ov(e.container),_=Ov(e.target),[C,v]=S.useState(!e.show),g=T4(_,c,$4({placement:i,enableEvents:!!e.show,containerPadding:o||5,flip:n,offset:r,arrowElement:h,popperConfig:s}));e.show&&C&&v(!1);const b=(...z)=>{v(!0),e.onExited&&e.onExited(...z)},T=e.show||!C;if(W4(c,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!T)return null;const{onExit:N,onExiting:k,onEnter:O,onEntering:A,onEntered:F}=e;let H=e.children(Object.assign({},g.attributes.popper,{style:g.styles.popper,ref:y}),{popper:g,placement:i,show:!!e.show,arrowProps:Object.assign({},g.attributes.arrow,{style:g.styles.arrow,ref:m})});return H=B4(l,u,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:H,onExit:N,onExiting:k,onExited:b,onEnter:O,onEntering:A,onEntered:F}),x?Pi.createPortal(H,x):null});yw.displayName="Overlay";const V4=yw,ww=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=lr(t,"popover-header"),E.jsx(n,{ref:i,className:Yn(e,t),...r})));ww.displayName="PopoverHeader";const G4=ww,xw=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=lr(t,"popover-body"),E.jsx(n,{ref:i,className:Yn(e,t),...r})));xw.displayName="PopoverBody";const _w=xw;function Ew(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function bw(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const K4=S.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,body:o,arrowProps:s,hasDoneInitialMeasure:l,popper:u,show:c,...f},h)=>{const m=lr(e,"popover"),y=q1(),[x]=(t==null?void 0:t.split("-"))||[],_=Ew(x,y);let C=r;return c&&!l&&(C={...r,...bw(u==null?void 0:u.strategy)}),E.jsxs("div",{ref:h,role:"tooltip",style:C,"x-placement":x,className:Yn(n,m,x&&`bs-popover-${_}`),...f,children:[E.jsx("div",{className:"popover-arrow",...s}),o?E.jsx(_w,{children:i}):i]})}),Q4=Object.assign(K4,{Header:G4,Body:_w,POPPER_OFFSET:[0,8]}),Sw=S.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,arrowProps:o,hasDoneInitialMeasure:s,popper:l,show:u,...c},f)=>{e=lr(e,"tooltip");const h=q1(),[m]=(t==null?void 0:t.split("-"))||[],y=Ew(m,h);let x=r;return u&&!s&&(x={...r,...bw(l==null?void 0:l.strategy)}),E.jsxs("div",{ref:f,style:x,role:"tooltip","x-placement":m,className:Yn(n,e,`bs-tooltip-${y}`),...c,children:[E.jsx("div",{className:"tooltip-arrow",...o}),E.jsx("div",{className:`${e}-inner`,children:i})]})});Sw.displayName="Tooltip";const Pf=Object.assign(Sw,{TOOLTIP_OFFSET:[0,6]});function Y4(e){const t=S.useRef(null),n=lr(void 0,"popover"),r=lr(void 0,"tooltip"),i=S.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(jv(t.current,n))return Q4.POPPER_OFFSET;if(jv(t.current,r))return Pf.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[i]]}function q4(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=i=>n(wu(i))),t.ref=r.__wrapped||(r.__wrapped=i=>r(wu(i)))}const kw=S.forwardRef(({children:e,transition:t=fv,popperConfig:n={},rootClose:r=!1,placement:i="top",show:o=!1,...s},l)=>{const u=S.useRef({}),[c,f]=S.useState(null),[h,m]=Y4(s.offset),y=ns(l,h),x=t===!0?fv:t||void 0,_=Wo(C=>{f(C),n==null||n.onFirstUpdate==null||n.onFirstUpdate(C)});return kf(()=>{c&&s.target&&(u.current.scheduleUpdate==null||u.current.scheduleUpdate())},[c,s.target]),S.useEffect(()=>{o||f(null)},[o]),E.jsx(V4,{...s,ref:y,popperConfig:{...n,modifiers:m.concat(n.modifiers||[]),onFirstUpdate:_},transition:x,rootClose:r,placement:i,show:o,children:(C,{arrowProps:v,popper:g,show:b})=>{var T,N;q4(C,v);const k=g==null?void 0:g.placement,O=Object.assign(u.current,{state:g==null?void 0:g.state,scheduleUpdate:g==null?void 0:g.update,placement:k,outOfBoundaries:(g==null||(T=g.state)==null||(N=T.modifiersData.hide)==null?void 0:N.isReferenceHidden)||!1,strategy:n.strategy}),A=!!c;return typeof e=="function"?e({...C,placement:k,show:b,...!t&&b&&{className:"show"},popper:O,arrowProps:v,hasDoneInitialMeasure:A}):S.cloneElement(e,{...C,placement:k,arrowProps:v,popper:O,hasDoneInitialMeasure:A,className:Yn(e.props.className,!t&&b&&"show"),style:{...e.props.style,...C.style}})}})});kw.displayName="Overlay";const X4=kw;function Z4(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function Pv(e,t,n){const[r]=t,i=r.currentTarget,o=r.relatedTarget||r.nativeEvent[n];(!o||o!==i)&&!jf(i,o)&&e(...t)}KC.oneOf(["click","hover","focus"]);const J4=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:i,defaultShow:o=!1,onToggle:s,delay:l,placement:u,flip:c=u&&u.indexOf("auto")!==-1,...f})=>{const h=S.useRef(null),m=ns(h,n.ref),y=v3(),x=S.useRef(""),[_,C]=NC(i,o,s),v=Z4(l),{onFocus:g,onBlur:b,onClick:T}=typeof n!="function"?S.Children.only(n).props:{},N=re=>{m(wu(re))},k=S.useCallback(()=>{if(y.clear(),x.current="show",!v.show){C(!0);return}y.set(()=>{x.current==="show"&&C(!0)},v.show)},[v.show,C,y]),O=S.useCallback(()=>{if(y.clear(),x.current="hide",!v.hide){C(!1);return}y.set(()=>{x.current==="hide"&&C(!1)},v.hide)},[v.hide,C,y]),A=S.useCallback((...re)=>{k(),g==null||g(...re)},[k,g]),F=S.useCallback((...re)=>{O(),b==null||b(...re)},[O,b]),H=S.useCallback((...re)=>{C(!_),T==null||T(...re)},[T,C,_]),z=S.useCallback((...re)=>{Pv(k,re,"fromElement")},[k]),I=S.useCallback((...re)=>{Pv(O,re,"toElement")},[O]),K=e==null?[]:[].concat(e),V={ref:N};return K.indexOf("click")!==-1&&(V.onClick=H),K.indexOf("focus")!==-1&&(V.onFocus=A,V.onBlur=F),K.indexOf("hover")!==-1&&(V.onMouseOver=z,V.onMouseOut=I),E.jsxs(E.Fragment,{children:[typeof n=="function"?n(V):S.cloneElement(n,V),E.jsx(X4,{...f,show:_,onHide:O,flip:c,placement:u,popperConfig:r,target:h.current,children:t})]})},Nv=J4,Cw=S.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},i)=>{const o=lr(e,"row"),s=Q1(),l=Y1(),u=`${o}-cols`,c=[];return s.forEach(f=>{const h=r[f];delete r[f];let m;h!=null&&typeof h=="object"?{cols:m}=h:m=h;const y=f!==l?`-${f}`:"";m!=null&&c.push(`${u}${y}-${m}`)}),E.jsx(n,{ref:i,...r,className:Yn(t,o,...c)})});Cw.displayName="Row";const eT=Cw,Tw=S.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:i="div",className:o,...s},l)=>{e=lr(e,"spinner");const u=`${e}-${n}`;return E.jsx(i,{ref:l,...s,className:Yn(o,u,r&&`${u}-${r}`,t&&`text-${t}`)})});Tw.displayName="Spinner";const qu=Tw,tT=we.div` background: url('assets/img/dots.png'); background-size: cover; -`,rT=we.div` +`,nT=we.div` background: rgba(6,6,6,0.79); padding-top: 140px; -`;function iT(){const{setAuth:e}=S.useContext(An),[t,n]=S.useState(""),[r,i]=S.useState(!1),o=ui(),s=u=>/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(u),l=async()=>{if(i(!0),!s(t)){$e.error("UUID non valide!",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!1}),i(!1);return}try{await rC(t,e),setTimeout(()=>{document.querySelectorAll(".modal-backdrop").forEach(c=>{c.remove()}),o("/waitlist/"+t)},500),i(!1)}catch(u){$e.error(u.message,{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!1}),i(!1)}};return E.jsx(rT,{className:"modal fade",role:"dialog",id:"join_room",children:E.jsx("div",{className:"modal-dialog",role:"document",children:E.jsx("div",{className:"modal-content",children:E.jsxs(nT,{className:"modal-body",children:[E.jsx("label",{className:"form-label",children:"ID de la room"}),E.jsxs("div",{className:"input-group",children:[E.jsx("input",{className:"form-control",type:"text",value:t,onChange:u=>n(u.target.value),placeholder:"8ad3e88e-cffb-4219-af7b-07c8cb47c12a",required:!0}),E.jsx("button",{className:`btn ${!s(t)||r?"btn-secondary disabled":"btn-primary"}`,type:"button",onClick:l,disabled:!s(t)||r,children:r?E.jsx(qu,{animation:"grow",variant:"dark",size:"sm"}):"Rejoindre"})]})]})})})})}function oT(){return E.jsxs("div",{children:[E.jsx(iT,{}),E.jsx(jC,{}),E.jsx(CC,{})]})}const sT="https://steam-wgp-production.up.railway.app";function aT(){const[e,t]=S.useState([]),[n,r]=S.useState(!0),[i,o]=S.useState(!1),{setLoadingComplete:s,loadingComplete:l}=S.useContext(Na);return S.useEffect(()=>{if(localStorage.getItem("animationPlayed")==="true"){r(!1),s(!0);return}const c=new EventSource(`${sT}/players/library-checker`,{withCredentials:!0});return c.onmessage=f=>{const h=JSON.parse(f.data);h.complete&&(c.close(),setTimeout(()=>{o(!0)},1e3),setTimeout(()=>{r(!1),s(!0),localStorage.setItem("animationPlayed","true")},2e3)),t(m=>[...m,h])},c.onerror=f=>{console.error("SSE error:",f),c.close()},()=>{c.close()}},[s]),E.jsx("section",{className:"py-4 py-xl-5",children:E.jsxs("div",{className:"container",children:[n&&E.jsx(tC,{messages:e,animateFirstDiv:i}),l&&E.jsx(oT,{})]})})}function Ow(){return E.jsx("footer",{className:"text-center py-4","data-aos":"fade-up","data-aos-offset":"5","data-aos-once":"true",children:E.jsx("div",{className:"container-fluid",children:E.jsx("div",{className:"row",children:E.jsx("div",{className:"col-12 text-primary-emphasis align-self-center",children:E.jsxs("p",{className:"d-inline",children:["Ce site ",E.jsx("strong",{children:"n'est pas associé"})," à Valve Corp."]})})})})})}const jw=(e,t,n=!1,r,i)=>{t(null),e.close(),!n&&r?r("/"):i&&n&&i(o=>o&&{...o,user:{...o.user,waitlist:null}}),e.close(),$e.info("L'administrateur a fermé le salon",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!0})},Xu=e=>{if(e.players.length===0)return null;let t=e.players[0].games;return e.players.forEach(n=>{t=t.filter(r=>n.games.includes(r))}),t},Pw=(e,t)=>{e(n=>{if(!n)return n;const r=Xu({...n,players:n.players.filter(i=>i.player_id!==t.player_id)})||[];return{...n,players:n.players.filter(i=>i.player_id!==t.player_id),commonGames:r}})},Nw=(e,t,n)=>{$e.success("La partie a commencé",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!0}),e(r=>r&&{...r,started:!0}),t&&n&&n(`/waitlist/${t}`)},Lw=(e,t,n,r,i,o,s)=>{t===n?($e.warn("Vous avez été expulsé de la room",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!0}),i(null),s&&s(l=>l&&{...l,user:{...l.user,waitlist:null}}),e.close(),o&&o("/")):(r!==n&&$e.warn("Un joueur a été expulsé de la room",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!0}),i(l=>{if(!l)return l;const u=Xu({...l,players:l.players.filter(c=>c.player_id!==t)})||[];return{...l,players:l.players.filter(c=>c.player_id!==t),commonGames:u}}))},lT=(e,t,n)=>{e(r=>r&&{...r,ended:!0,winner:n}),t(r=>r&&{...r,user:{...r.user,waitlist:null}})},uT=(e,t)=>{e(n=>{if(!n||n.players.some(o=>o.player_id===t.player_id))return n;const i=Xu({...n,players:[...n.players,t]})||[];return{...n,players:[...n.players,t],commonGames:i}})},Rw=(e,t)=>{const n=t.map(r=>parseInt(r));e(r=>r&&{...r,commonGames:r.commonGames.filter(i=>!n.includes(i)),swipedGames:n})};function cT(){var y;const{auth:e,setAuth:t}=S.useContext(An),{loadingComplete:n}=S.useContext(Na),{socket:r}=S.useContext(ns),{room:i,setRoom:o}=S.useContext(nn),[s,l]=S.useState(!1),[u,c]=S.useState(!0),f=ui(),h=i==null?void 0:i.id,m=i==null?void 0:i.admin_id;return h&&i.winner&&(o(null),t(x=>({...x,user:{...x.user,waitlist:null}}))),S.useEffect(()=>{c(!0),(async()=>{try{const _=await U1();t({isAuthenticated:!0,user:_}),l(!0)}catch{console.error("Utilisateur non authentifié"),localStorage.removeItem("animationPlayed"),t({isAuthenticated:!1,user:{id:"",username:"",waitlist:null}}),l(!1)}c(!1)})()},[t]),S.useEffect(()=>{r&&h&&(r.onmessage=x=>{var C;const _=JSON.parse(x.data);_.action==="leave"?Pw(o,_.player):_.action==="end"?jw(r,o,!0,f,t):_.action==="kicked"?Lw(r,_.playerId,(C=e.user)==null?void 0:C.id,m??"",o,void 0,t):_.action==="start"?Nw(o,h,f):_.action==="retrieve"&&Rw(o,_.swipedGames)})},[r,h,m,o,(y=e.user)==null?void 0:y.id,f,t]),E.jsxs("div",{children:[E.jsx("section",{className:"py-4 py-xl-5",children:u?E.jsx(Mp,{}):s?E.jsx(aT,{}):E.jsx(Mk,{})}),!u&&n?E.jsx(Ow,{}):""]})}function dT(){return S.useEffect(()=>{(async()=>{try{await Sk(),window.location.href="/"}catch(t){console.error("Impossible de déconnecter l'utilisateur: "+t)}})()},[]),E.jsx("div",{className:"container"})}const fT=we.p` +`;function rT(){const{setAuth:e}=S.useContext(An),[t,n]=S.useState(""),[r,i]=S.useState(!1),o=li(),s=u=>/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(u),l=async()=>{if(i(!0),!s(t)){$e.error("UUID non valide!",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!1}),i(!1);return}try{await nC(t,e),setTimeout(()=>{document.querySelectorAll(".modal-backdrop").forEach(c=>{c.remove()}),o("/waitlist/"+t)},500),i(!1)}catch(u){$e.error(u.message,{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!1}),i(!1)}};return E.jsx(nT,{className:"modal fade",role:"dialog",id:"join_room",children:E.jsx("div",{className:"modal-dialog",role:"document",children:E.jsx("div",{className:"modal-content",children:E.jsxs(tT,{className:"modal-body",children:[E.jsx("label",{className:"form-label",children:"ID de la room"}),E.jsxs("div",{className:"input-group",children:[E.jsx("input",{className:"form-control",type:"text",value:t,onChange:u=>n(u.target.value),placeholder:"8ad3e88e-cffb-4219-af7b-07c8cb47c12a",required:!0}),E.jsx("button",{className:`btn ${!s(t)||r?"btn-secondary disabled":"btn-primary"}`,type:"button",onClick:l,disabled:!s(t)||r,children:r?E.jsx(qu,{animation:"grow",variant:"dark",size:"sm"}):"Rejoindre"})]})]})})})})}function iT(){return E.jsxs("div",{children:[E.jsx(rT,{}),E.jsx(OC,{}),E.jsx(kC,{})]})}const oT="https://steam-wgp-production.up.railway.app";function sT(){const[e,t]=S.useState([]),[n,r]=S.useState(!0),[i,o]=S.useState(!1),{setLoadingComplete:s,loadingComplete:l}=S.useContext(Na);return S.useEffect(()=>{if(localStorage.getItem("animationPlayed")==="true"){r(!1),s(!0);return}const c=new EventSource(`${oT}/players/library-checker`,{withCredentials:!0});return c.onmessage=f=>{const h=JSON.parse(f.data);h.complete&&(c.close(),setTimeout(()=>{o(!0)},1e3),setTimeout(()=>{r(!1),s(!0),localStorage.setItem("animationPlayed","true")},2e3)),t(m=>[...m,h])},c.onerror=f=>{console.error("SSE error:",f),c.close()},()=>{c.close()}},[s]),E.jsx("section",{className:"py-4 py-xl-5",children:E.jsxs("div",{className:"container",children:[n&&E.jsx(eC,{messages:e,animateFirstDiv:i}),l&&E.jsx(iT,{})]})})}function Ow(){return E.jsx("footer",{className:"text-center py-4","data-aos":"fade-up","data-aos-offset":"5","data-aos-once":"true",children:E.jsx("div",{className:"container-fluid",children:E.jsx("div",{className:"row",children:E.jsx("div",{className:"col-12 text-primary-emphasis align-self-center",children:E.jsxs("p",{className:"d-inline",children:["Ce site ",E.jsx("strong",{children:"n'est pas associé"})," à Valve Corp."]})})})})})}const jw=(e,t,n=!1,r,i)=>{t(null),e.close(),!n&&r?r("/"):i&&n&&i(o=>o&&{...o,user:{...o.user,waitlist:null}}),e.close(),$e.info("L'administrateur a fermé le salon",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!0})},Xu=e=>{if(e.players.length===0)return null;let t=e.players[0].games;return e.players.forEach(n=>{t=t.filter(r=>n.games.includes(r))}),t},Pw=(e,t)=>{e(n=>{if(!n)return n;const r=Xu({...n,players:n.players.filter(i=>i.player_id!==t.player_id)})||[];return{...n,players:n.players.filter(i=>i.player_id!==t.player_id),commonGames:r}})},Nw=(e,t,n)=>{$e.success("La partie a commencé",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!0}),e(r=>r&&{...r,started:!0}),t&&n&&n(`/waitlist/${t}`)},Lw=(e,t,n,r,i,o,s)=>{t===n?($e.warn("Vous avez été expulsé de la room",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!0}),i(null),s&&s(l=>l&&{...l,user:{...l.user,waitlist:null}}),e.close(),o&&o("/")):(r!==n&&$e.warn("Un joueur a été expulsé de la room",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!0}),i(l=>{if(!l)return l;const u=Xu({...l,players:l.players.filter(c=>c.player_id!==t)})||[];return{...l,players:l.players.filter(c=>c.player_id!==t),commonGames:u}}))},aT=(e,t,n)=>{e(r=>r&&{...r,ended:!0,winner:n}),t(r=>r&&{...r,user:{...r.user,waitlist:null}})},lT=(e,t)=>{e(n=>{if(!n||n.players.some(o=>o.player_id===t.player_id))return n;const i=Xu({...n,players:[...n.players,t]})||[];return{...n,players:[...n.players,t],commonGames:i}})},Rw=(e,t)=>{const n=t.map(r=>parseInt(r));e(r=>r&&{...r,commonGames:r.commonGames.filter(i=>!n.includes(i)),swipedGames:n})};function uT(){var y;const{auth:e,setAuth:t}=S.useContext(An),{loadingComplete:n}=S.useContext(Na),{socket:r}=S.useContext(ts),{room:i,setRoom:o}=S.useContext(nn),[s,l]=S.useState(!1),[u,c]=S.useState(!0),f=li(),h=i==null?void 0:i.id,m=i==null?void 0:i.admin_id;return h&&i.winner&&(o(null),t(x=>({...x,user:{...x.user,waitlist:null}}))),S.useEffect(()=>{c(!0),(async()=>{try{const _=await U1();t({isAuthenticated:!0,user:_}),l(!0)}catch{console.error("Utilisateur non authentifié"),localStorage.removeItem("animationPlayed"),t({isAuthenticated:!1,user:{id:"",username:"",waitlist:null}}),l(!1)}c(!1)})()},[t]),S.useEffect(()=>{r&&h&&(r.onmessage=x=>{var C;const _=JSON.parse(x.data);_.action==="leave"?Pw(o,_.player):_.action==="end"?jw(r,o,!0,f,t):_.action==="kicked"?Lw(r,_.playerId,(C=e.user)==null?void 0:C.id,m??"",o,void 0,t):_.action==="start"?Nw(o,h,f):_.action==="retrieve"&&Rw(o,_.swipedGames)})},[r,h,m,o,(y=e.user)==null?void 0:y.id,f,t]),E.jsxs("div",{children:[E.jsx("section",{className:"py-4 py-xl-5",children:u?E.jsx(Mp,{}):s?E.jsx(sT,{}):E.jsx($k,{})}),!u&&n?E.jsx(Ow,{}):""]})}function cT(){return S.useEffect(()=>{(async()=>{try{await bk(),window.location.href="/"}catch(t){console.error("Impossible de déconnecter l'utilisateur: "+t)}})()},[]),E.jsx("div",{className:"container"})}const dT=we.p` margin-bottom: 0px; -`,pT=()=>{const{room:e}=S.useContext(nn),t=e==null?void 0:e.players.find(n=>n.player_id===e.admin_id);return E.jsxs(fT,{className:"text-primary-emphasis",children:[E.jsx(qu,{size:"sm",animation:"border",variant:"primary",role:"status"}),"   En attente de ",E.jsx("b",{children:t==null?void 0:t.username})," pour démarrer la room ..."]})},hT=we.p` +`,fT=()=>{const{room:e}=S.useContext(nn),t=e==null?void 0:e.players.find(n=>n.player_id===e.admin_id);return E.jsxs(dT,{className:"text-primary-emphasis",children:[E.jsx(qu,{size:"sm",animation:"border",variant:"primary",role:"status"}),"   En attente de ",E.jsx("b",{children:t==null?void 0:t.username})," pour démarrer la room ..."]})},pT=we.p` margin-bottom: 0px; -`,mT=()=>{const{room:e}=S.useContext(nn);return e?E.jsxs(hT,{className:`${e.commonGames.length>0?"text-primary":"text-danger"}`,children:[E.jsxs("b",{children:[e.commonGames.length," jeu",e.commonGames.length>1?"x":""]})," dans la liste"]}):E.jsx(E.Fragment,{})},gT=we.div` +`,hT=()=>{const{room:e}=S.useContext(nn);return e?E.jsxs(pT,{className:`${e.commonGames.length>0?"text-primary":"text-danger"}`,children:[E.jsxs("b",{children:[e.commonGames.length," jeu",e.commonGames.length>1?"x":""]})," dans la liste"]}):E.jsx(E.Fragment,{})},mT=we.div` cursor: default; user-select: none; -`,vT=()=>{const{room:e}=S.useContext(nn),{auth:t}=S.useContext(An);return E.jsx("div",{className:"text-center p-4 p-lg-5",children:E.jsxs(gT,{children:[t.user.id!==(e==null?void 0:e.admin_id)?E.jsx(pT,{}):E.jsx(E.Fragment,{}),E.jsx(mT,{})]})})},yT=()=>{var m;const{room:e,setRoom:t}=S.useContext(nn),{socket:n}=S.useContext(ns),{setAuth:r,auth:i}=S.useContext(An),o=ui();if(!e)return E.jsx(E.Fragment,{});const s=((m=i.user)==null?void 0:m.id)===e.admin_id,l=()=>{n&&iC(e.id,r).then(()=>{n.send(JSON.stringify({action:"leave"})),t(null),n.close(),o("/")}).catch(y=>{$e.error(y.message,{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!1})})},u=e.commonGames.length>0,c=e.players.length,f=!u||c<=1,h=()=>{!n||f||n.send(JSON.stringify({action:"start"}))};return E.jsxs(tT,{className:"justify-content-center",children:[s?E.jsx(hv,{xs:"auto",children:E.jsx(pv,{variant:f?"outline-light":"outline-primary",size:"lg",disabled:f,onClick:h,children:"Démarrer"})}):E.jsx(E.Fragment,{}),E.jsx(hv,{xs:"auto",children:E.jsx(pv,{variant:"outline-danger",size:"lg",onClick:l,children:"Quitter"})})]})},wT=()=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:"bi bi-exclamation-octagon",children:[E.jsx("path",{d:"M4.54.146A.5.5 0 0 1 4.893 0h6.214a.5.5 0 0 1 .353.146l4.394 4.394a.5.5 0 0 1 .146.353v6.214a.5.5 0 0 1-.146.353l-4.394 4.394a.5.5 0 0 1-.353.146H4.893a.5.5 0 0 1-.353-.146L.146 11.46A.5.5 0 0 1 0 11.107V4.893a.5.5 0 0 1 .146-.353L4.54.146zM5.1 1 1 5.1v5.8L5.1 15h5.8l4.1-4.1V5.1L10.9 1H5.1z"}),E.jsx("path",{d:"M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995z"})]}),xT=we.p` +`,gT=()=>{const{room:e}=S.useContext(nn),{auth:t}=S.useContext(An);return E.jsx("div",{className:"text-center p-4 p-lg-5",children:E.jsxs(mT,{children:[t.user.id!==(e==null?void 0:e.admin_id)?E.jsx(fT,{}):E.jsx(E.Fragment,{}),E.jsx(hT,{})]})})},vT=()=>{var m;const{room:e,setRoom:t}=S.useContext(nn),{socket:n}=S.useContext(ts),{setAuth:r,auth:i}=S.useContext(An),o=li();if(!e)return E.jsx(E.Fragment,{});const s=((m=i.user)==null?void 0:m.id)===e.admin_id,l=()=>{n&&rC(e.id,r).then(()=>{n.send(JSON.stringify({action:"leave"})),t(null),n.close(),o("/")}).catch(y=>{$e.error(y.message,{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!1})})},u=e.commonGames.length>0,c=e.players.length,f=!u||c<=1,h=()=>{!n||f||n.send(JSON.stringify({action:"start"}))};return E.jsxs(eT,{className:"justify-content-center",children:[s?E.jsx(hv,{xs:"auto",children:E.jsx(pv,{variant:f?"outline-light":"outline-primary",size:"lg",disabled:f,onClick:h,children:"Démarrer"})}):E.jsx(E.Fragment,{}),E.jsx(hv,{xs:"auto",children:E.jsx(pv,{variant:"outline-danger",size:"lg",onClick:l,children:"Quitter"})})]})},yT=()=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:"bi bi-exclamation-octagon",children:[E.jsx("path",{d:"M4.54.146A.5.5 0 0 1 4.893 0h6.214a.5.5 0 0 1 .353.146l4.394 4.394a.5.5 0 0 1 .146.353v6.214a.5.5 0 0 1-.146.353l-4.394 4.394a.5.5 0 0 1-.353.146H4.893a.5.5 0 0 1-.353-.146L.146 11.46A.5.5 0 0 1 0 11.107V4.893a.5.5 0 0 1 .146-.353L4.54.146zM5.1 1 1 5.1v5.8L5.1 15h5.8l4.1-4.1V5.1L10.9 1H5.1z"}),E.jsx("path",{d:"M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995z"})]}),wT=we.p` margin-bottom: 0px; -`,_T=()=>{const{room:e}=S.useContext(nn);if(!e)return E.jsx(E.Fragment,{});const n=(()=>{if(!e||e.players.length<2)return[];const r=[];for(let i=0;il.games.includes(c)).length===0&&r.push(`Les jeux de ${s.username} et ${l.username} ne matchent pas !`)}return r})();return E.jsx("div",{children:n.map((r,i)=>E.jsxs(xT,{className:"text-danger",children:[E.jsx(wT,{})," ",r]},i))})},ET=we.p` +`,xT=()=>{const{room:e}=S.useContext(nn);if(!e)return E.jsx(E.Fragment,{});const n=(()=>{if(!e||e.players.length<2)return[];const r=[];for(let i=0;il.games.includes(c)).length===0&&r.push(`Les jeux de ${s.username} et ${l.username} ne matchent pas !`)}return r})();return E.jsx("div",{children:n.map((r,i)=>E.jsxs(wT,{className:"text-danger",children:[E.jsx(yT,{})," ",r]},i))})},_T=we.p` margin-bottom: 0px; -`,bT=()=>{const{room:e}=S.useContext(nn);return!e||e.players.length>1?E.jsx(E.Fragment,{}):E.jsx(ET,{className:"text-dark text-opacity-25",children:"Il faut au moins deux joueurs dans la room pour commencer"})};function ST({isLoggedUser:e}){const t=we.svg` +`,ET=()=>{const{room:e}=S.useContext(nn);return!e||e.players.length>1?E.jsx(E.Fragment,{}):E.jsx(_T,{className:"text-dark text-opacity-25",children:"Il faut au moins deux joueurs dans la room pour commencer"})};function bT({isLoggedUser:e}){const t=we.svg` position: absolute; color: var(--bs-warning); font-size: 44px; margin: -14px; ${e?"margin-top: 0px;":"margin-top: 55px;"} - `;return E.jsx(t,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:"bi bi-star-fill border rounded-pill border-5 shadow",children:E.jsx("path",{d:"M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"})})}const kT=we.svg` + `;return E.jsx(t,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:"bi bi-star-fill border rounded-pill border-5 shadow",children:E.jsx("path",{d:"M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"})})}const ST=we.svg` margin-left: 5px; -`,CT=()=>E.jsxs(kT,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:"bi bi-controller",children:[E.jsx("path",{d:"M11.5 6.027a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zm-1.5 1.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1zm2.5-.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zm-1.5 1.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1zm-6.5-3h1v1h1v1h-1v1h-1v-1h-1v-1h1v-1z"}),E.jsx("path",{d:"M3.051 3.26a.5.5 0 0 1 .354-.613l1.932-.518a.5.5 0 0 1 .62.39c.655-.079 1.35-.117 2.043-.117.72 0 1.443.041 2.12.126a.5.5 0 0 1 .622-.399l1.932.518a.5.5 0 0 1 .306.729c.14.09.266.19.373.297.408.408.78 1.05 1.095 1.772.32.733.599 1.591.805 2.466.206.875.34 1.78.364 2.606.024.816-.059 1.602-.328 2.21a1.42 1.42 0 0 1-1.445.83c-.636-.067-1.115-.394-1.513-.773-.245-.232-.496-.526-.739-.808-.126-.148-.25-.292-.368-.423-.728-.804-1.597-1.527-3.224-1.527-1.627 0-2.496.723-3.224 1.527-.119.131-.242.275-.368.423-.243.282-.494.575-.739.808-.398.38-.877.706-1.513.773a1.42 1.42 0 0 1-1.445-.83c-.27-.608-.352-1.395-.329-2.21.024-.826.16-1.73.365-2.606.206-.875.486-1.733.805-2.466.315-.722.687-1.364 1.094-1.772a2.34 2.34 0 0 1 .433-.335.504.504 0 0 1-.028-.079zm2.036.412c-.877.185-1.469.443-1.733.708-.276.276-.587.783-.885 1.465a13.748 13.748 0 0 0-.748 2.295 12.351 12.351 0 0 0-.339 2.406c-.022.755.062 1.368.243 1.776a.42.42 0 0 0 .426.24c.327-.034.61-.199.929-.502.212-.202.4-.423.615-.674.133-.156.276-.323.44-.504C4.861 9.969 5.978 9.027 8 9.027s3.139.942 3.965 1.855c.164.181.307.348.44.504.214.251.403.472.615.674.318.303.601.468.929.503a.42.42 0 0 0 .426-.241c.18-.408.265-1.02.243-1.776a12.354 12.354 0 0 0-.339-2.406 13.753 13.753 0 0 0-.748-2.295c-.298-.682-.61-1.19-.885-1.465-.264-.265-.856-.523-1.733-.708-.85-.179-1.877-.27-2.913-.27-1.036 0-2.063.091-2.913.27z"})]}),TT=we.svg` +`,kT=()=>E.jsxs(ST,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:"bi bi-controller",children:[E.jsx("path",{d:"M11.5 6.027a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zm-1.5 1.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1zm2.5-.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zm-1.5 1.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1zm-6.5-3h1v1h1v1h-1v1h-1v-1h-1v-1h1v-1z"}),E.jsx("path",{d:"M3.051 3.26a.5.5 0 0 1 .354-.613l1.932-.518a.5.5 0 0 1 .62.39c.655-.079 1.35-.117 2.043-.117.72 0 1.443.041 2.12.126a.5.5 0 0 1 .622-.399l1.932.518a.5.5 0 0 1 .306.729c.14.09.266.19.373.297.408.408.78 1.05 1.095 1.772.32.733.599 1.591.805 2.466.206.875.34 1.78.364 2.606.024.816-.059 1.602-.328 2.21a1.42 1.42 0 0 1-1.445.83c-.636-.067-1.115-.394-1.513-.773-.245-.232-.496-.526-.739-.808-.126-.148-.25-.292-.368-.423-.728-.804-1.597-1.527-3.224-1.527-1.627 0-2.496.723-3.224 1.527-.119.131-.242.275-.368.423-.243.282-.494.575-.739.808-.398.38-.877.706-1.513.773a1.42 1.42 0 0 1-1.445-.83c-.27-.608-.352-1.395-.329-2.21.024-.826.16-1.73.365-2.606.206-.875.486-1.733.805-2.466.315-.722.687-1.364 1.094-1.772a2.34 2.34 0 0 1 .433-.335.504.504 0 0 1-.028-.079zm2.036.412c-.877.185-1.469.443-1.733.708-.276.276-.587.783-.885 1.465a13.748 13.748 0 0 0-.748 2.295 12.351 12.351 0 0 0-.339 2.406c-.022.755.062 1.368.243 1.776a.42.42 0 0 0 .426.24c.327-.034.61-.199.929-.502.212-.202.4-.423.615-.674.133-.156.276-.323.44-.504C4.861 9.969 5.978 9.027 8 9.027s3.139.942 3.965 1.855c.164.181.307.348.44.504.214.251.403.472.615.674.318.303.601.468.929.503a.42.42 0 0 0 .426-.241c.18-.408.265-1.02.243-1.776a12.354 12.354 0 0 0-.339-2.406 13.753 13.753 0 0 0-.748-2.295c-.298-.682-.61-1.19-.885-1.465-.264-.265-.856-.523-1.733-.708-.85-.179-1.877-.27-2.913-.27-1.036 0-2.063.091-2.913.27z"})]}),CT=we.svg` font-size: 26px; margin-left: 59px; position: absolute; margin-top: 13px; -`,OT=()=>E.jsx(TT,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:"bi bi-exclamation-octagon-fill text-danger",children:E.jsx("path",{d:"M11.46.146A.5.5 0 0 0 11.107 0H4.893a.5.5 0 0 0-.353.146L.146 4.54A.5.5 0 0 0 0 4.893v6.214a.5.5 0 0 0 .146.353l4.394 4.394a.5.5 0 0 0 .353.146h6.214a.5.5 0 0 0 .353-.146l4.394-4.394a.5.5 0 0 0 .146-.353V4.893a.5.5 0 0 0-.146-.353L11.46.146zM8 4c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995A.905.905 0 0 1 8 4zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})}),jT=we.svg` +`,TT=()=>E.jsx(CT,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:"bi bi-exclamation-octagon-fill text-danger",children:E.jsx("path",{d:"M11.46.146A.5.5 0 0 0 11.107 0H4.893a.5.5 0 0 0-.353.146L.146 4.54A.5.5 0 0 0 0 4.893v6.214a.5.5 0 0 0 .146.353l4.394 4.394a.5.5 0 0 0 .353.146h6.214a.5.5 0 0 0 .353-.146l4.394-4.394a.5.5 0 0 0 .146-.353V4.893a.5.5 0 0 0-.146-.353L11.46.146zM8 4c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995A.905.905 0 0 1 8 4zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})}),OT=we.svg` font-size: 29px; -`,PT=()=>E.jsxs(jT,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:"bi bi-person-fill-x text-white",children:[E.jsx("path",{d:"M11 5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm-9 8c0 1 1 1 1 1h5.256A4.493 4.493 0 0 1 8 12.5a4.49 4.49 0 0 1 1.544-3.393C9.077 9.038 8.564 9 8 9c-5 0-6 3-6 4Z"}),E.jsx("path",{d:"M12.5 16a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm-.646-4.854.646.647.646-.647a.5.5 0 0 1 .708.708l-.647.646.647.646a.5.5 0 0 1-.708.708l-.646-.647-.646.647a.5.5 0 0 1-.708-.708l.647-.646-.647-.646a.5.5 0 0 1 .708-.708Z"})]});function NT({playerId:e}){const[t,n]=S.useState(!1),{room:r}=S.useContext(nn),{socket:i}=S.useContext(ns);if(!r||!i)return E.jsx(E.Fragment,{});const o=async()=>{t||(n(!0),oC(r.id,e).then(()=>{i.send(JSON.stringify({action:"kick",payload:{playerId:e}})),$e.success("Joueur expulsé",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!0})}).catch(s=>{console.error("Erreur lors du kick du joueur:",s),$e.error(s.message,{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!0})}).finally(()=>{n(!1)}))};return E.jsx("button",{className:`btn ${t?"btn-light":"btn-danger"} btn-sm kick_player_btn`,type:"button",onClick:o,disabled:t,children:t?E.jsx(qu,{animation:"border",size:"sm"}):E.jsx(PT,{})})}const LT=we.p` +`,jT=()=>E.jsxs(OT,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:"bi bi-person-fill-x text-white",children:[E.jsx("path",{d:"M11 5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm-9 8c0 1 1 1 1 1h5.256A4.493 4.493 0 0 1 8 12.5a4.49 4.49 0 0 1 1.544-3.393C9.077 9.038 8.564 9 8 9c-5 0-6 3-6 4Z"}),E.jsx("path",{d:"M12.5 16a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm-.646-4.854.646.647.646-.647a.5.5 0 0 1 .708.708l-.647.646.647.646a.5.5 0 0 1-.708.708l-.646-.647-.646.647a.5.5 0 0 1-.708-.708l.647-.646-.647-.646a.5.5 0 0 1 .708-.708Z"})]});function PT({playerId:e}){const[t,n]=S.useState(!1),{room:r}=S.useContext(nn),{socket:i}=S.useContext(ts);if(!r||!i)return E.jsx(E.Fragment,{});const o=async()=>{t||(n(!0),iC(r.id,e).then(()=>{i.send(JSON.stringify({action:"kick",payload:{playerId:e}})),$e.success("Joueur expulsé",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!0})}).catch(s=>{console.error("Erreur lors du kick du joueur:",s),$e.error(s.message,{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!0})}).finally(()=>{n(!1)}))};return E.jsx("button",{className:`btn ${t?"btn-light":"btn-danger"} btn-sm kick_player_btn`,type:"button",onClick:o,disabled:t,children:t?E.jsx(qu,{animation:"border",size:"sm"}):E.jsx(jT,{})})}const NT=we.p` margin-top: 7px; -`,RT=e=>e>0?`${e} jeu${e>1?"x":""} en commun`:"Aucun jeu en commun ... :(";function AT({player:e}){var u,c;const{room:t}=S.useContext(nn),{auth:n}=S.useContext(An),r=((u=n.user)==null?void 0:u.id)===(t==null?void 0:t.admin_id),i=((c=n.user)==null?void 0:c.id)===e.player_id,o=t==null?void 0:t.players.find(f=>{var h;return f.player_id===((h=n.user)==null?void 0:h.id)}),s=(o==null?void 0:o.games.filter(f=>e.games.includes(f)))??[],l=()=>t?t.players.some(f=>f.player_id===e.player_id?!1:!e.games.some(h=>f.games.includes(h))):!1;return E.jsxs("div",{className:"col-auto align-self-center",children:[e.player_id===(t==null?void 0:t.admin_id)?E.jsx(ST,{isLoggedUser:i}):E.jsx(E.Fragment,{}),r&&e.player_id!==(t==null?void 0:t.admin_id)?E.jsx(NT,{playerId:e.player_id}):E.jsx(E.Fragment,{}),!i&&s.length!==0&&l()&&E.jsx(OT,{}),E.jsx(Nv,{placement:"top",overlay:E.jsx(Pf,{id:`Tooltip for Player #${e.player_id}`,children:e.username}),children:E.jsx("img",{className:`img-fluid profil_picture_room ${i?"":"other_player_wroom"} ${s.length===0?"no_games_in_commun":""}`,src:`https://avatars.akamai.steamstatic.com/${e==null?void 0:e.avatar_hash}_full.jpg`,loading:"lazy"})}),i?E.jsx(E.Fragment,{}):E.jsx(Nv,{placement:"bottom",overlay:E.jsx(Pf,{id:`Tooltip for Games in Commun with #${e.player_id}`,children:RT(s.length)}),children:E.jsxs(LT,{className:`lead text-center text-bold ${s.length>0?"text-primary":"text-danger"}`,children:[s.length,E.jsx(CT,{})]})})]})}const DT=we.span` +`,LT=e=>e>0?`${e} jeu${e>1?"x":""} en commun`:"Aucun jeu en commun ... :(";function RT({player:e}){var u,c;const{room:t}=S.useContext(nn),{auth:n}=S.useContext(An),r=((u=n.user)==null?void 0:u.id)===(t==null?void 0:t.admin_id),i=((c=n.user)==null?void 0:c.id)===e.player_id,o=t==null?void 0:t.players.find(f=>{var h;return f.player_id===((h=n.user)==null?void 0:h.id)}),s=(o==null?void 0:o.games.filter(f=>e.games.includes(f)))??[],l=()=>t?t.players.some(f=>f.player_id===e.player_id?!1:!e.games.some(h=>f.games.includes(h))):!1;return E.jsxs("div",{className:"col-auto align-self-center",children:[e.player_id===(t==null?void 0:t.admin_id)?E.jsx(bT,{isLoggedUser:i}):E.jsx(E.Fragment,{}),r&&e.player_id!==(t==null?void 0:t.admin_id)?E.jsx(PT,{playerId:e.player_id}):E.jsx(E.Fragment,{}),!i&&s.length!==0&&l()&&E.jsx(TT,{}),E.jsx(Nv,{placement:"top",overlay:E.jsx(Pf,{id:`Tooltip for Player #${e.player_id}`,children:e.username}),children:E.jsx("img",{className:`img-fluid profil_picture_room ${i?"":"other_player_wroom"} ${s.length===0?"no_games_in_commun":""}`,src:`https://avatars.akamai.steamstatic.com/${e==null?void 0:e.avatar_hash}_full.jpg`,loading:"lazy"})}),i?E.jsx(E.Fragment,{}):E.jsx(Nv,{placement:"bottom",overlay:E.jsx(Pf,{id:`Tooltip for Games in Commun with #${e.player_id}`,children:LT(s.length)}),children:E.jsxs(NT,{className:`lead text-center text-bold ${s.length>0?"text-primary":"text-danger"}`,children:[s.length,E.jsx(kT,{})]})})]})}const AT=we.span` font-weight: normal !important; -`,$T=we.div` +`,DT=we.div` font-size: 13px; font-style: italic; margin-top: 9px; text-align: center; -`;function MT(){const{room:e}=S.useContext(nn),t=ui();return e?E.jsxs("div",{className:"container",children:[E.jsx("div",{className:"text-center p-4 p-lg-5",children:E.jsx("div",{children:E.jsxs("p",{className:"fw-bold text-primary mb-2",children:["Room ID: ",E.jsx(DT,{children:e.id})]})})}),E.jsxs("div",{className:"row gy-1 justify-content-center",children:[e.players.map((n,r)=>E.jsx(AT,{player:n},r)),E.jsx(vT,{}),E.jsx(yT,{}),E.jsxs($T,{children:[E.jsx(_T,{}),E.jsx(bT,{})]})]})]}):(t("/"),E.jsx(E.Fragment,{}))}const IT=()=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:"bi bi-heart-fill",children:E.jsx("path",{fillRule:"evenodd",d:"M8 1.314C12.438-3.248 23.534 4.735 8 15-7.534 4.736 3.562-3.248 8 1.314z"})});function zT(){var f,h;const{room:e,setRoom:t}=S.useContext(nn),[n,r]=S.useState(0),[i,o]=S.useState(!1),s=S.useContext(ns);if(S.useEffect(()=>{e!=null&&e.winner&&setTimeout(()=>{o(!0)},1e3)},[e==null?void 0:e.winner]),!e||!s)return E.jsx(E.Fragment,{});const l=(m,y)=>{!s.socket||!e||!y||(m?(t(x=>x?{...x,commonGames:x.commonGames.filter(_=>_!==y),swipedGames:x.swipedGames?[...x.swipedGames,y]:[y]}:null),Gk(s.socket,y),n===e.commonGames.length-1&&r(0)):r(x=>(x+1)%e.commonGames.length))},u=m=>{!s.socket||!e||!m||(t(y=>{var x;return y?{...y,commonGames:[...y.commonGames.slice(0,n),m,...y.commonGames.slice(n)],swipedGames:(x=y.swipedGames)==null?void 0:x.filter(_=>_!==m)}:null}),Kk(s.socket,m))},c=m=>e.commonGames.indexOf(m);return E.jsx("div",{className:"container",children:e.ended?E.jsx("div",{className:"victory align-self-center d-flex justify-content-center",children:E.jsx("img",{src:`https://steamcdn-a.akamaihd.net/steam/apps/${e.winner}/library_600x900.jpg`,className:i?"animate":""})}):E.jsxs("div",{className:"game-page-container",children:[E.jsx("div",{className:"card-stack",style:{transform:`translateY(${n*-700}px)`},children:e.commonGames.map(m=>E.jsx("div",{children:E.jsx("div",{className:`card ${n===c(m)?"active":""}`,style:{backgroundImage:`url(https://steamcdn-a.akamaihd.net/steam/apps/${m}/library_600x900.jpg)`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",width:"100%",height:"100%"}})},m))}),E.jsxs("div",{className:"action-buttons",children:[E.jsxs("button",{className:`btn btn-${e.commonGames.length===0?"disabled":"danger"} btn-lg`,onClick:()=>l(!0,e.commonGames[n]),disabled:e.commonGames.length===0,children:[E.jsx(IT,{})," J'aime !"]}),E.jsx("button",{className:`btn btn-outline-${e.commonGames.length===0?"disabled":"warning"} btn-lg`,onClick:()=>l(!1,e.commonGames[n]),disabled:e.commonGames.length===0,children:"Pas intéressé"}),E.jsx("p",{className:"text-light",children:"Aimez ou ignorez les jeux affichés. Le premier jeu qui aura été aimé par tout les joueurs de la room sera affiché, et vous saurez comment gaspiller les prochaines heures de votre précieuse vie."}),E.jsxs("p",{className:"text-info-emphasis",children:[E.jsx(qu,{color:"info",size:"sm"})," La room sélectionnera un jeu aléatoire 10 minutes après sa création si aucun choix n'a pas été fait ..."]})]}),E.jsxs("div",{className:"game-page-background-container",children:[((f=e.swipedGames)==null?void 0:f.length)>0?E.jsx("h5",{className:"text-warning-emphasis",children:"Cliquez sur un jeu pour le retirer de vos J'aimes"}):E.jsx(E.Fragment,{children:" "}),(h=e.swipedGames)==null?void 0:h.map(m=>E.jsx("img",{src:`https://steamcdn-a.akamaihd.net/steam/apps/${m}/header.jpg?t=1628007606`,alt:"Swipped game",className:"game-page-background",onClick:()=>u(m)},m))]})]})})}function FT(){var y;const{id:e}=FS(),{setAuth:t,auth:n}=S.useContext(An),{setLoadingComplete:r,loadingComplete:i}=S.useContext(Na),{room:o,setRoom:s}=S.useContext(nn),{socket:l}=S.useContext(ns),[u,c]=S.useState(!0),f=ui(),h=o==null?void 0:o.id,m=o==null?void 0:o.admin_id;return S.useEffect(()=>{n.isAuthenticated||(async()=>{try{const _=await U1();t({isAuthenticated:!0,user:_}),r(!0)}catch{console.error("Utilisateur non authentifié"),f("/")}})()},[n.isAuthenticated,r,t,f]),S.useEffect(()=>{if(!e)return;(async()=>{try{const _=await nC(e);s(C=>{const v=Xu(_.data);return{...C,..._.data,commonGames:v}})}catch(_){console.error("Erreur lors du chargement des informations de la room:",_),f("/")}finally{c(!1)}})()},[e,f,s,o==null?void 0:o.started]),S.useEffect(()=>{l&&h&&(l.onmessage=x=>{var C;const _=JSON.parse(x.data);_.action==="join"?uT(s,_.player):_.action==="leave"?Pw(s,_.player):_.action==="end"?jw(l,s,!1,f):_.action==="kicked"?Lw(l,_.playerId,(C=n.user)==null?void 0:C.id,m??"",s,f,t):_.action==="start"?Nw(s):_.action==="gameEnd"?lT(s,t,_.winner):_.action==="retrieve"&&Rw(s,_.swipedGames)})},[t,s,h,l,f,(y=n.user)==null?void 0:y.id,m]),E.jsxs("div",{children:[E.jsx("section",{className:"py-4 py-xl-5",children:u?E.jsx(Mp,{}):o!=null&&o.started?E.jsx(zT,{}):E.jsx(MT,{})}),!u&&i?E.jsx(Ow,{}):""]})}const BT=we.div` +`;function $T(){const{room:e}=S.useContext(nn),t=li();return e?E.jsxs("div",{className:"container",children:[E.jsx("div",{className:"text-center p-4 p-lg-5",children:E.jsx("div",{children:E.jsxs("p",{className:"fw-bold text-primary mb-2",children:["Room ID: ",E.jsx(AT,{children:e.id})]})})}),E.jsxs("div",{className:"row gy-1 justify-content-center",children:[e.players.map((n,r)=>E.jsx(RT,{player:n},r)),E.jsx(gT,{}),E.jsx(vT,{}),E.jsxs(DT,{children:[E.jsx(xT,{}),E.jsx(ET,{})]})]})]}):(t("/"),E.jsx(E.Fragment,{}))}const MT=()=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:"bi bi-heart-fill",children:E.jsx("path",{fillRule:"evenodd",d:"M8 1.314C12.438-3.248 23.534 4.735 8 15-7.534 4.736 3.562-3.248 8 1.314z"})});function IT(){var f,h;const{room:e,setRoom:t}=S.useContext(nn),[n,r]=S.useState(0),[i,o]=S.useState(!1),s=S.useContext(ts);if(S.useEffect(()=>{e!=null&&e.winner&&setTimeout(()=>{o(!0)},1e3)},[e==null?void 0:e.winner]),!e||!s)return E.jsx(E.Fragment,{});const l=(m,y)=>{!s.socket||!e||!y||(m?(t(x=>x?{...x,commonGames:x.commonGames.filter(_=>_!==y),swipedGames:x.swipedGames?[...x.swipedGames,y]:[y]}:null),Vk(s.socket,y),n===e.commonGames.length-1&&r(0)):r(x=>(x+1)%e.commonGames.length))},u=m=>{!s.socket||!e||!m||(t(y=>{var x;return y?{...y,commonGames:[...y.commonGames.slice(0,n),m,...y.commonGames.slice(n)],swipedGames:(x=y.swipedGames)==null?void 0:x.filter(_=>_!==m)}:null}),Gk(s.socket,m))},c=m=>e.commonGames.indexOf(m);return E.jsx("div",{className:"container",children:e.ended?E.jsx("div",{className:"victory align-self-center d-flex justify-content-center",children:E.jsx("img",{src:`https://steamcdn-a.akamaihd.net/steam/apps/${e.winner}/library_600x900.jpg`,className:i?"animate":""})}):E.jsxs("div",{className:"game-page-container",children:[E.jsx("div",{className:"card-stack",style:{transform:`translateY(${n*-700}px)`},children:e.commonGames.map(m=>E.jsx("div",{children:E.jsx("div",{className:`card ${n===c(m)?"active":""}`,style:{backgroundImage:`url(https://steamcdn-a.akamaihd.net/steam/apps/${m}/library_600x900.jpg)`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",width:"100%",height:"100%"}})},m))}),E.jsxs("div",{className:"action-buttons",children:[E.jsxs("button",{className:`btn btn-${e.commonGames.length===0?"disabled":"danger"} btn-lg`,onClick:()=>l(!0,e.commonGames[n]),disabled:e.commonGames.length===0,children:[E.jsx(MT,{})," J'aime !"]}),E.jsx("button",{className:`btn btn-outline-${e.commonGames.length===0?"disabled":"warning"} btn-lg`,onClick:()=>l(!1,e.commonGames[n]),disabled:e.commonGames.length===0,children:"Pas intéressé"}),E.jsx("p",{className:"text-light",children:"Aimez ou ignorez les jeux affichés. Le premier jeu qui aura été aimé par tout les joueurs de la room sera affiché, et vous saurez comment gaspiller les prochaines heures de votre précieuse vie."}),E.jsxs("p",{className:"text-info-emphasis",children:[E.jsx(qu,{color:"info",size:"sm"})," La room sélectionnera un jeu aléatoire 10 minutes après sa création si aucun choix n'a pas été fait ..."]})]}),E.jsxs("div",{className:"game-page-background-container",children:[((f=e.swipedGames)==null?void 0:f.length)>0?E.jsx("h5",{className:"text-warning-emphasis",children:"Cliquez sur un jeu pour le retirer de vos J'aimes"}):E.jsx(E.Fragment,{children:" "}),(h=e.swipedGames)==null?void 0:h.map(m=>E.jsx("img",{src:`https://steamcdn-a.akamaihd.net/steam/apps/${m}/header.jpg?t=1628007606`,alt:"Swipped game",className:"game-page-background",onClick:()=>u(m)},m))]})]})})}function zT(){var y;const{id:e}=zS(),{setAuth:t,auth:n}=S.useContext(An),{setLoadingComplete:r,loadingComplete:i}=S.useContext(Na),{room:o,setRoom:s}=S.useContext(nn),{socket:l}=S.useContext(ts),[u,c]=S.useState(!0),f=li(),h=o==null?void 0:o.id,m=o==null?void 0:o.admin_id;return S.useEffect(()=>{n.isAuthenticated||(async()=>{try{const _=await U1();t({isAuthenticated:!0,user:_}),r(!0)}catch{console.error("Utilisateur non authentifié"),f("/")}})()},[n.isAuthenticated,r,t,f]),S.useEffect(()=>{if(!e)return;(async()=>{try{const _=await tC(e);s(C=>{const v=Xu(_.data);return{...C,..._.data,commonGames:v}})}catch(_){console.error("Erreur lors du chargement des informations de la room:",_),f("/")}finally{c(!1)}})()},[e,f,s,o==null?void 0:o.started]),S.useEffect(()=>{l&&h&&(l.onmessage=x=>{var C;const _=JSON.parse(x.data);_.action==="join"?lT(s,_.player):_.action==="leave"?Pw(s,_.player):_.action==="end"?jw(l,s,!1,f):_.action==="kicked"?Lw(l,_.playerId,(C=n.user)==null?void 0:C.id,m??"",s,f,t):_.action==="start"?Nw(s):_.action==="gameEnd"?aT(s,t,_.winner):_.action==="retrieve"&&Rw(s,_.swipedGames)})},[t,s,h,l,f,(y=n.user)==null?void 0:y.id,m]),E.jsxs("div",{children:[E.jsx("section",{className:"py-4 py-xl-5",children:u?E.jsx(Mp,{}):o!=null&&o.started?E.jsx(IT,{}):E.jsx($T,{})}),!u&&i?E.jsx(Ow,{}):""]})}const FT=we.div` cursor: default; user-select: none; `,Lv=we.span` font-weight: normal !important; -`,UT=we.img` +`,BT=we.img` width: 235px; -`,HT=we.h1` +`,UT=we.h1` text-shadow: 0px 0px 20px; -`,WT=we.button` +`,HT=we.button` box-shadow: 0px 0px 15px 3px #24a3de; border-radius: 10px; -`;function VT(){const e=ui();return E.jsx("section",{className:"py-4 py-xl-5","data-aos":"zoom-in","data-aos-duration":"600",children:E.jsxs("div",{className:"container",children:[E.jsx("div",{className:"text-center p-4 p-lg-5",children:E.jsx(BT,{children:E.jsxs("p",{className:"fw-bold text-primary mb-2",children:[E.jsx(Lv,{children:"La page que vous recherchez n'existe pas ..."}),E.jsx("br",{}),E.jsx(Lv,{children:"Mais pas grave, un jour ça existera peut-être."})]})})}),E.jsxs("div",{className:"row justify-content-center",children:[E.jsx("div",{className:"col-auto","data-aos":"zoom-out",children:E.jsx(UT,{src:"./assets/img/404.png"})}),E.jsx("div",{className:"col-12","data-aos":"zoom-in",children:E.jsx(HT,{className:"display-1 text-center text-primary",children:"404"})}),E.jsx("div",{className:"col-auto",children:E.jsx(WT,{className:"btn btn-primary",type:"button",onClick:()=>e("/"),children:"Retourner à l'accueil"})})]})]})})}function GT({title:e}){const t=we.span` +`;function WT(){const e=li();return E.jsx("section",{className:"py-4 py-xl-5","data-aos":"zoom-in","data-aos-duration":"600",children:E.jsxs("div",{className:"container",children:[E.jsx("div",{className:"text-center p-4 p-lg-5",children:E.jsx(FT,{children:E.jsxs("p",{className:"fw-bold text-primary mb-2",children:[E.jsx(Lv,{children:"La page que vous recherchez n'existe pas ..."}),E.jsx("br",{}),E.jsx(Lv,{children:"Mais pas grave, un jour ça existera peut-être."})]})})}),E.jsxs("div",{className:"row justify-content-center",children:[E.jsx("div",{className:"col-auto","data-aos":"zoom-out",children:E.jsx(BT,{src:"./assets/img/404.png"})}),E.jsx("div",{className:"col-12","data-aos":"zoom-in",children:E.jsx(UT,{className:"display-1 text-center text-primary",children:"404"})}),E.jsx("div",{className:"col-auto",children:E.jsx(HT,{className:"btn btn-primary",type:"button",onClick:()=>e("/"),children:"Retourner à l'accueil"})})]})]})})}function VT({title:e}){const t=we.span` background: #2ca3db; border-color: #e56a6a; `,n=we.svg` color: white; - `;return E.jsxs(Pp,{to:"/",className:"navbar-brand d-flex align-items-center",children:[E.jsx(t,{className:"bs-icon-sm bs-icon-rounded d-flex justify-content-center align-items-center me-2 bs-icon",children:E.jsxs(n,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:"bi bi-steam",children:[E.jsx("path",{d:"M.329 10.333A8.01 8.01 0 0 0 7.99 16C12.414 16 16 12.418 16 8s-3.586-8-8.009-8A8.006 8.006 0 0 0 0 7.468l.003.006 4.304 1.769A2.198 2.198 0 0 1 5.62 8.88l1.96-2.844-.001-.04a3.046 3.046 0 0 1 3.042-3.043 3.046 3.046 0 0 1 3.042 3.043 3.047 3.047 0 0 1-3.111 3.044l-2.804 2a2.223 2.223 0 0 1-3.075 2.11 2.217 2.217 0 0 1-1.312-1.568L.33 10.333Z"}),E.jsx("path",{d:"M4.868 12.683a1.715 1.715 0 0 0 1.318-3.165 1.705 1.705 0 0 0-1.263-.02l1.023.424a1.261 1.261 0 1 1-.97 2.33l-.99-.41a1.7 1.7 0 0 0 .882.84Zm3.726-6.687a2.03 2.03 0 0 0 2.027 2.029 2.03 2.03 0 0 0 2.027-2.029 2.03 2.03 0 0 0-2.027-2.027 2.03 2.03 0 0 0-2.027 2.027Zm2.03-1.527a1.524 1.524 0 1 1-.002 3.048 1.524 1.524 0 0 1 .002-3.048Z"})]})}),E.jsx("span",{className:"text-primary",children:e})]})}function KT(){return E.jsxs("button",{"data-bs-toggle":"collapse",className:"navbar-toggler","data-bs-target":"#navcol-1",children:[E.jsx("span",{className:"visually-hidden",children:"Toggle navigation"}),E.jsx("span",{className:"navbar-toggler-icon"})]})}function QT(){const{auth:e}=S.useContext(An),n=ja().pathname;return E.jsxs("div",{className:"collapse navbar-collapse",id:"navcol-1",children:[E.jsxs("ul",{className:"navbar-nav me-auto",children:[E.jsx("li",{className:"nav-item",children:E.jsx("a",{className:"nav-link",href:"https://ko-fi.com/dilaouid",target:"_blank",children:"Faire un don"})}),e.user.waitlist?E.jsx("li",{className:"nav-item",children:E.jsx(Pp,{to:"/waitlist/"+e.user.waitlist,className:`nav-link ${n.includes("/waitlist")?"active":""}`,children:"Room actuelle"})}):""]}),E.jsx("a",{className:"btn btn-outline-primary",role:"button",href:"/logout",children:"Déconnexion"})]})}function YT(){const{auth:e}=S.useContext(An),{loadingComplete:t}=S.useContext(Na);return E.jsx("div",{children:e.isAuthenticated&&t?E.jsx("nav",{className:"navbar navbar-expand-md bg-body bg-opacity-50 py-3","data-aos":"fade-down","data-bs-theme":"dark",children:E.jsxs("div",{className:"container",children:[E.jsx(GT,{title:"SteamWGP"}),E.jsx(KT,{}),E.jsx(QT,{})]})}):E.jsx(E.Fragment,{})})}function qT(){return S.useEffect(()=>{Wg.init(),Wg.refresh()},[]),E.jsx(Bk,{children:E.jsx(Uk,{children:E.jsx(Hk,{children:E.jsx(Yk,{children:E.jsxs(g2,{children:[E.jsx(xf,{position:"bottom-right",autoClose:5e3,newestOnTop:!1,closeOnClick:!0,pauseOnFocusLoss:!0,closeButton:!1,theme:"colored"}),E.jsx(YT,{}),E.jsxs(JS,{children:[E.jsx(As,{path:"/",element:E.jsx(cT,{})}),E.jsx(As,{path:"/logout",element:E.jsx(dT,{})}),E.jsx(As,{path:"/waitlist/:id",element:E.jsx(FT,{})}),E.jsx(As,{path:"*",element:E.jsx(VT,{})})]})]})})})})})}const XT=o2([{path:"/*",element:E.jsx(qT,{})}]);pd.createRoot(document.getElementById("root")).render(E.jsx(ke.StrictMode,{children:E.jsx(h2,{router:XT})})); + `;return E.jsxs(Pp,{to:"/",className:"navbar-brand d-flex align-items-center",children:[E.jsx(t,{className:"bs-icon-sm bs-icon-rounded d-flex justify-content-center align-items-center me-2 bs-icon",children:E.jsxs(n,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:"bi bi-steam",children:[E.jsx("path",{d:"M.329 10.333A8.01 8.01 0 0 0 7.99 16C12.414 16 16 12.418 16 8s-3.586-8-8.009-8A8.006 8.006 0 0 0 0 7.468l.003.006 4.304 1.769A2.198 2.198 0 0 1 5.62 8.88l1.96-2.844-.001-.04a3.046 3.046 0 0 1 3.042-3.043 3.046 3.046 0 0 1 3.042 3.043 3.047 3.047 0 0 1-3.111 3.044l-2.804 2a2.223 2.223 0 0 1-3.075 2.11 2.217 2.217 0 0 1-1.312-1.568L.33 10.333Z"}),E.jsx("path",{d:"M4.868 12.683a1.715 1.715 0 0 0 1.318-3.165 1.705 1.705 0 0 0-1.263-.02l1.023.424a1.261 1.261 0 1 1-.97 2.33l-.99-.41a1.7 1.7 0 0 0 .882.84Zm3.726-6.687a2.03 2.03 0 0 0 2.027 2.029 2.03 2.03 0 0 0 2.027-2.029 2.03 2.03 0 0 0-2.027-2.027 2.03 2.03 0 0 0-2.027 2.027Zm2.03-1.527a1.524 1.524 0 1 1-.002 3.048 1.524 1.524 0 0 1 .002-3.048Z"})]})}),E.jsx("span",{className:"text-primary",children:e})]})}function GT(){return E.jsxs("button",{"data-bs-toggle":"collapse",className:"navbar-toggler","data-bs-target":"#navcol-1",children:[E.jsx("span",{className:"visually-hidden",children:"Toggle navigation"}),E.jsx("span",{className:"navbar-toggler-icon"})]})}function KT(){const{auth:e}=S.useContext(An),n=ja().pathname;return E.jsxs("div",{className:"collapse navbar-collapse",id:"navcol-1",children:[E.jsxs("ul",{className:"navbar-nav me-auto",children:[E.jsx("li",{className:"nav-item",children:E.jsx("a",{className:"nav-link",href:"https://ko-fi.com/dilaouid",target:"_blank",children:"Faire un don"})}),e.user.waitlist?E.jsx("li",{className:"nav-item",children:E.jsx(Pp,{to:"/waitlist/"+e.user.waitlist,className:`nav-link ${n.includes("/waitlist")?"active":""}`,children:"Room actuelle"})}):""]}),E.jsx("a",{className:"btn btn-outline-primary",role:"button",href:"/logout",children:"Déconnexion"})]})}function QT(){const{auth:e}=S.useContext(An),{loadingComplete:t}=S.useContext(Na);return E.jsx("div",{children:e.isAuthenticated&&t?E.jsx("nav",{className:"navbar navbar-expand-md bg-body bg-opacity-50 py-3","data-aos":"fade-down","data-bs-theme":"dark",children:E.jsxs("div",{className:"container",children:[E.jsx(VT,{title:"SteamWGP"}),E.jsx(GT,{}),E.jsx(KT,{})]})}):E.jsx(E.Fragment,{})})}function YT(){return S.useEffect(()=>{Wg.init(),Wg.refresh()},[]),E.jsx(Fk,{children:E.jsx(Bk,{children:E.jsx(Uk,{children:E.jsx(Qk,{children:E.jsxs(m2,{children:[E.jsx(xf,{position:"bottom-right",autoClose:5e3,newestOnTop:!1,closeOnClick:!0,pauseOnFocusLoss:!0,closeButton:!1,theme:"colored"}),E.jsx(QT,{}),E.jsxs(ZS,{children:[E.jsx(Rs,{path:"/",element:E.jsx(uT,{})}),E.jsx(Rs,{path:"/logout",element:E.jsx(cT,{})}),E.jsx(Rs,{path:"/waitlist/:id",element:E.jsx(zT,{})}),E.jsx(Rs,{path:"*",element:E.jsx(WT,{})})]})]})})})})})}const qT=i2([{path:"/*",element:E.jsx(YT,{})}]);pd.createRoot(document.getElementById("root")).render(E.jsx(ke.StrictMode,{children:E.jsx(p2,{router:qT})})); diff --git a/index.html b/index.html index 48c075b..6117c3f 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ SteamWGP - +