From adc7af6620145e62e8c25339af6363bcb56bb9b2 Mon Sep 17 00:00:00 2001 From: dilaouid Date: Thu, 4 Jan 2024 14:48:58 +0100 Subject: [PATCH] Updates --- .../{index-daec7723.js => index-fdbefd54.js} | 44 +++++++++---------- index.html | 2 +- 2 files changed, 23 insertions(+), 23 deletions(-) rename assets/{index-daec7723.js => index-fdbefd54.js} (96%) diff --git a/assets/index-daec7723.js b/assets/index-fdbefd54.js similarity index 96% rename from assets/index-daec7723.js rename to assets/index-fdbefd54.js index f04dba7..bb10a94 100644 --- a/assets/index-daec7723.js +++ b/assets/index-fdbefd54.js @@ -14,7 +14,7 @@ function Dv(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gd=Object.prototype.hasOwnProperty,Q_=/^[: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]*$/,_m={},Em={};function Y_(e){return gd.call(Em,e)?!0:gd.call(_m,e)?!1:Q_.test(e)?Em[e]=!0:(_m[e]=!0,!1)}function q_(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 X_(e,t,n,r){if(t===null||typeof t>"u"||q_(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 Mf=/[\-:]([a-z])/g;function If(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(Mf,If);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(Mf,If);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(Mf,If);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 zf(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"),gd=Object.prototype.hasOwnProperty,Q_=/^[: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]*$/,_m={},Em={};function Y_(e){return gd.call(Em,e)?!0:gd.call(_m,e)?!1:Q_.test(e)?Em[e]=!0:(_m[e]=!0,!1)}function q_(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 X_(e,t,n,r){if(t===null||typeof t>"u"||q_(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 Mf=/[\-:]([a-z])/g;function If(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(Mf,If);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(Mf,If);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(Mf,If);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 zf(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{Rc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ns(e):""}function Z_(e){switch(e.tag){case 5:return Ns(e.type);case 16:return Ns("Lazy");case 13:return Ns("Suspense");case 19:return Ns("SuspenseList");case 0:case 2:case 15:return e=Ac(e.type,!1),e;case 11:return e=Ac(e.type.render,!1),e;case 1:return e=Ac(e.type,!0),e;default:return""}}function xd(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 po:return"Fragment";case fo:return"Portal";case vd:return"Profiler";case Ff:return"StrictMode";case yd:return"Suspense";case wd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Jv:return(e.displayName||"Context")+".Consumer";case Zv:return(e._context.displayName||"Context")+".Provider";case Bf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Uf:return t=e.displayName||null,t!==null?t:xd(e.type)||"Memo";case zr:t=e._payload,e=e._init;try{return xd(e(t))}catch{}}return null}function J_(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 xd(t);case 8:return t===Ff?"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 ti(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function t0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function eE(e){var t=t0(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 ol(e){e._valueTracker||(e._valueTracker=eE(e))}function n0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=t0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Gl(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 _d(e,t){var n=t.checked;return it({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Sm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ti(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 r0(e,t){t=t.checked,t!=null&&zf(e,"checked",t,!1)}function Ed(e,t){r0(e,t);var n=ti(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")?bd(e,t.type,n):t.hasOwnProperty("defaultValue")&&bd(e,t.type,ti(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function km(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 bd(e,t,n){(t!=="number"||Gl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ls=Array.isArray;function To(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=sl.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},tE=["Webkit","ms","Moz","O"];Object.keys(Is).forEach(function(e){tE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Is[t]=Is[e]})});function a0(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 l0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=a0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var nE=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 Cd(e,t){if(t){if(nE[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 Td(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 Od=null;function Hf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var jd=null,Oo=null,jo=null;function Om(e){if(e=Ta(e)){if(typeof jd!="function")throw Error(W(280));var t=e.stateNode;t&&(t=Ou(t),jd(e.stateNode,e.type,t))}}function u0(e){Oo?jo?jo.push(e):jo=[e]:Oo=e}function c0(){if(Oo){var e=Oo,t=jo;if(jo=Oo=null,Om(e),t)for(e=0;e>>=0,e===0?32:31-(pE(e)/hE|0)|0}var al=64,ll=4194304;function Rs(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=Rs(l):(o&=s,o!==0&&(r=Rs(o)))}else s=n&~i,s!==0?r=Rs(s):o!==0&&(r=Rs(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 ka(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 yE(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),Mm=String.fromCharCode(32),Im=!1;function P0(e,t){switch(e){case"keyup":return GE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function N0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ho=!1;function QE(e,t){switch(e){case"compositionend":return N0(t);case"keypress":return t.which!==32?null:(Im=!0,Mm);case"textInput":return e=t.data,e===Mm&&Im?null:e;default:return null}}function YE(e,t){if(ho)return e==="compositionend"||!Xf&&P0(e,t)?(e=O0(),jl=Qf=Wr=null,ho=!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=Um(n)}}function D0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?D0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $0(){for(var e=window,t=Gl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Gl(e.document)}return t}function Zf(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 ib(e){var t=$0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&D0(n.ownerDocument.documentElement,n)){if(r!==null&&Zf(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=Hm(n,o);var s=Hm(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,mo=null,Dd=null,Us=null,$d=!1;function Wm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$d||mo==null||mo!==Gl(r)||(r=mo,"selectionStart"in r&&Zf(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=Jl(Dd,"onSelect"),0yo||(e.current=Ud[yo],Ud[yo]=null,yo--)}function qe(e,t){yo++,Ud[yo]=e.current,e.current=t}var ni={},Mt=si(ni),Xt=si(!1),Fi=ni;function Ao(e,t){var n=e.type.contextTypes;if(!n)return ni;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 tu(){Je(Xt),Je(Mt)}function Xm(e,t,n){if(Mt.current!==ni)throw Error(W(168));qe(Mt,t),qe(Xt,n)}function V0(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,J_(e)||"Unknown",i));return it({},n,r)}function nu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ni,Fi=Mt.current,qe(Mt,e),qe(Xt,Xt.current),!0}function Zm(e,t,n){var r=e.stateNode;if(!r)throw Error(W(169));n?(e=V0(e,t,Fi),r.__reactInternalMemoizedMergedChildContext=e,Je(Xt),Je(Mt),qe(Mt,e)):Je(Xt),qe(Xt,n)}var gr=null,ju=!1,Qc=!1;function G0(e){gr===null?gr=[e]:gr.push(e)}function gb(e){ju=!0,G0(e)}function ai(){if(!Qc&&gr!==null){Qc=!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===po&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case il:e:{for(var N=b.key,k=g;k!==null;){if(k.key===N){if(N=b.type,N===po){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===zr&&og(N)===k.type){n(v,k.sibling),g=i(k,b.props),g.ref=Es(v,k,b),g.return=v,v=g;break e}n(v,k);break}else t(v,k);k=k.sibling}b.type===po?(g=$i(b.props.children,v.mode,T,b.key),g.return=v,v=g):(T=Ml(b.type,b.key,b.props,null,v.mode,T),T.ref=Es(v,g,b),T.return=v,v=T)}return s(v);case fo: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=nd(b,v.mode,T),g.return=v,v=g}return s(v);case zr:return k=b._init,C(v,g,k(b._payload),T)}if(Ls(b))return x(v,g,b,T);if(vs(b))return _(v,g,b,T);ml(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=td(b,v.mode,T),g.return=v,v=g),s(v)):n(v,g)}return C}var $o=ey(!0),ty=ey(!1),Oa={},or=si(Oa),da=si(Oa),fa=si(Oa);function ji(e){if(e===Oa)throw Error(W(174));return e}function ap(e,t){switch(qe(fa,t),qe(da,e),qe(or,Oa),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:kd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=kd(t,e)}Je(or),qe(or,t)}function Mo(){Je(or),Je(da),Je(fa)}function ny(e){ji(fa.current);var t=ji(or.current),n=kd(t,e.type);t!==n&&(qe(da,e),qe(or,n))}function lp(e){da.current===e&&(Je(or),Je(da))}var nt=si(0);function lu(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 Yc=[];function up(){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 yy(){return Nn().memoizedState}function xb(e,t,n){var r=Jr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},wy(e))xy(t,n);else if(n=q0(e,t,n,r),n!==null){var i=Ut();Gn(n,e,r,i),_y(n,t,r)}}function _b(e,t,n){var r=Jr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(wy(e))xy(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,op(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),_y(n,t,r))}}function wy(e){var t=e.alternate;return e===rt||t!==null&&t===rt}function xy(e,t){Hs=uu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _y(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Vf(e,n)}}var cu={readContext:Pn,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},Eb={readContext:Pn,useCallback:function(e,t){return tr().memoizedState=[e,t===void 0?null:t],e},useContext:Pn,useEffect:ag,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Rl(4194308,4,py.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Rl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Rl(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=xb.bind(null,rt,e),[r.memoizedState,e]},useRef:function(e){var t=tr();return e={current:e},t.memoizedState=e},useState:sg,useDebugValue:hp,useDeferredValue:function(e){return tr().memoizedState=e},useTransition:function(){var e=sg(!1),t=e[0];return e=wb.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||oy(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,ag(ay.bind(null,r,o,e),[e]),r.flags|=2048,ma(9,sy.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{Rc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ns(e):""}function Z_(e){switch(e.tag){case 5:return Ns(e.type);case 16:return Ns("Lazy");case 13:return Ns("Suspense");case 19:return Ns("SuspenseList");case 0:case 2:case 15:return e=Ac(e.type,!1),e;case 11:return e=Ac(e.type.render,!1),e;case 1:return e=Ac(e.type,!0),e;default:return""}}function xd(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 po:return"Fragment";case fo:return"Portal";case vd:return"Profiler";case Ff:return"StrictMode";case yd:return"Suspense";case wd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Jv:return(e.displayName||"Context")+".Consumer";case Zv:return(e._context.displayName||"Context")+".Provider";case Bf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Uf:return t=e.displayName||null,t!==null?t:xd(e.type)||"Memo";case zr:t=e._payload,e=e._init;try{return xd(e(t))}catch{}}return null}function J_(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 xd(t);case 8:return t===Ff?"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 ti(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function t0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function eE(e){var t=t0(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 ol(e){e._valueTracker||(e._valueTracker=eE(e))}function n0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=t0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Gl(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 _d(e,t){var n=t.checked;return it({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Sm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ti(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 r0(e,t){t=t.checked,t!=null&&zf(e,"checked",t,!1)}function Ed(e,t){r0(e,t);var n=ti(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")?bd(e,t.type,n):t.hasOwnProperty("defaultValue")&&bd(e,t.type,ti(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function km(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 bd(e,t,n){(t!=="number"||Gl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ls=Array.isArray;function To(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=sl.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},tE=["Webkit","ms","Moz","O"];Object.keys(Is).forEach(function(e){tE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Is[t]=Is[e]})});function a0(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 l0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=a0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var nE=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 Cd(e,t){if(t){if(nE[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 Td(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 Od=null;function Hf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var jd=null,Oo=null,jo=null;function Om(e){if(e=Ta(e)){if(typeof jd!="function")throw Error(W(280));var t=e.stateNode;t&&(t=Ou(t),jd(e.stateNode,e.type,t))}}function u0(e){Oo?jo?jo.push(e):jo=[e]:Oo=e}function c0(){if(Oo){var e=Oo,t=jo;if(jo=Oo=null,Om(e),t)for(e=0;e>>=0,e===0?32:31-(pE(e)/hE|0)|0}var al=64,ll=4194304;function Rs(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=Rs(l):(o&=s,o!==0&&(r=Rs(o)))}else s=n&~i,s!==0?r=Rs(s):o!==0&&(r=Rs(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 ka(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 yE(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),Mm=String.fromCharCode(32),Im=!1;function P0(e,t){switch(e){case"keyup":return GE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function N0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ho=!1;function QE(e,t){switch(e){case"compositionend":return N0(t);case"keypress":return t.which!==32?null:(Im=!0,Mm);case"textInput":return e=t.data,e===Mm&&Im?null:e;default:return null}}function YE(e,t){if(ho)return e==="compositionend"||!Xf&&P0(e,t)?(e=O0(),jl=Qf=Wr=null,ho=!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=Um(n)}}function D0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?D0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $0(){for(var e=window,t=Gl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Gl(e.document)}return t}function Zf(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 ib(e){var t=$0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&D0(n.ownerDocument.documentElement,n)){if(r!==null&&Zf(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=Hm(n,o);var s=Hm(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,mo=null,Dd=null,Us=null,$d=!1;function Wm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$d||mo==null||mo!==Gl(r)||(r=mo,"selectionStart"in r&&Zf(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=Jl(Dd,"onSelect"),0yo||(e.current=Ud[yo],Ud[yo]=null,yo--)}function qe(e,t){yo++,Ud[yo]=e.current,e.current=t}var ni={},Mt=si(ni),Xt=si(!1),Fi=ni;function Ao(e,t){var n=e.type.contextTypes;if(!n)return ni;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 tu(){Je(Xt),Je(Mt)}function Xm(e,t,n){if(Mt.current!==ni)throw Error(W(168));qe(Mt,t),qe(Xt,n)}function V0(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,J_(e)||"Unknown",i));return it({},n,r)}function nu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ni,Fi=Mt.current,qe(Mt,e),qe(Xt,Xt.current),!0}function Zm(e,t,n){var r=e.stateNode;if(!r)throw Error(W(169));n?(e=V0(e,t,Fi),r.__reactInternalMemoizedMergedChildContext=e,Je(Xt),Je(Mt),qe(Mt,e)):Je(Xt),qe(Xt,n)}var gr=null,ju=!1,Qc=!1;function G0(e){gr===null?gr=[e]:gr.push(e)}function gb(e){ju=!0,G0(e)}function ai(){if(!Qc&&gr!==null){Qc=!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===po&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case il:e:{for(var N=b.key,k=g;k!==null;){if(k.key===N){if(N=b.type,N===po){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===zr&&og(N)===k.type){n(v,k.sibling),g=i(k,b.props),g.ref=Es(v,k,b),g.return=v,v=g;break e}n(v,k);break}else t(v,k);k=k.sibling}b.type===po?(g=$i(b.props.children,v.mode,T,b.key),g.return=v,v=g):(T=Ml(b.type,b.key,b.props,null,v.mode,T),T.ref=Es(v,g,b),T.return=v,v=T)}return s(v);case fo: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=nd(b,v.mode,T),g.return=v,v=g}return s(v);case zr:return k=b._init,C(v,g,k(b._payload),T)}if(Ls(b))return x(v,g,b,T);if(vs(b))return _(v,g,b,T);ml(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=td(b,v.mode,T),g.return=v,v=g),s(v)):n(v,g)}return C}var $o=ey(!0),ty=ey(!1),Oa={},or=si(Oa),da=si(Oa),fa=si(Oa);function ji(e){if(e===Oa)throw Error(W(174));return e}function ap(e,t){switch(qe(fa,t),qe(da,e),qe(or,Oa),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:kd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=kd(t,e)}Je(or),qe(or,t)}function Mo(){Je(or),Je(da),Je(fa)}function ny(e){ji(fa.current);var t=ji(or.current),n=kd(t,e.type);t!==n&&(qe(da,e),qe(or,n))}function lp(e){da.current===e&&(Je(or),Je(da))}var nt=si(0);function lu(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 Yc=[];function up(){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 yy(){return Nn().memoizedState}function xb(e,t,n){var r=Jr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},wy(e))xy(t,n);else if(n=q0(e,t,n,r),n!==null){var i=Ut();Gn(n,e,r,i),_y(n,t,r)}}function _b(e,t,n){var r=Jr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(wy(e))xy(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,op(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),_y(n,t,r))}}function wy(e){var t=e.alternate;return e===rt||t!==null&&t===rt}function xy(e,t){Hs=uu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _y(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Vf(e,n)}}var cu={readContext:Pn,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},Eb={readContext:Pn,useCallback:function(e,t){return tr().memoizedState=[e,t===void 0?null:t],e},useContext:Pn,useEffect:ag,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Rl(4194308,4,py.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Rl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Rl(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=xb.bind(null,rt,e),[r.memoizedState,e]},useRef:function(e){var t=tr();return e={current:e},t.memoizedState=e},useState:sg,useDebugValue:hp,useDeferredValue:function(e){return tr().memoizedState=e},useTransition:function(){var e=sg(!1),t=e[0];return e=wb.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||oy(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,ag(ay.bind(null,r,o,e),[e]),r.flags|=2048,ma(9,sy.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<\/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,Py(e,t,!1,!1),t.stateNode=e;e:{switch(s=Td(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;izo&&(t.flags|=128,r=!0,bs(o,!1),t.lanes=4194304)}else{if(!r)if(e=lu(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),bs(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!tt)return Dt(t),null}else 2*ht()-o.renderingStartTime>zo&&n!==1073741824&&(t.flags|=128,r=!0,bs(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 xp(),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 Pb(e,t){switch(ep(t),t.tag){case 1:return Zt(t.type)&&tu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mo(),Je(Xt),Je(Mt),up(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return lp(t),null;case 13:if(Je(nt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));Do()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Je(nt),null;case 4:return Mo(),null;case 10:return ip(t.type._context),null;case 22:case 23:return xp(),null;case 24:return null;default:return null}}var vl=!1,$t=!1,Nb=typeof WeakSet=="function"?WeakSet:Set,ee=null;function Eo(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 ef(e,t,n){try{n()}catch(r){ut(e,t,r)}}var gg=!1;function Lb(e,t){if(Md=Xl,e=$0(),Zf(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(Id={focusedElem:e,selectionRange:n},Xl=!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=gg,gg=!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&&ef(t,n,o)}i=i.next}while(i!==r)}}function Lu(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 tf(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 Ry(e){var t=e.alternate;t!==null&&(e.alternate=null,Ry(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[Bd],delete t[hb],delete t[mb])),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 Ay(e){return e.tag===5||e.tag===3||e.tag===4}function vg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ay(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 nf(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=eu));else if(r!==4&&(e=e.child,e!==null))for(nf(e,t,n),e=e.sibling;e!==null;)nf(e,t,n),e=e.sibling}function rf(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(rf(e,t,n),e=e.sibling;e!==null;)rf(e,t,n),e=e.sibling}var Nt=null,Un=!1;function $r(e,t,n){for(n=n.child;n!==null;)Dy(e,t,n),n=n.sibling}function Dy(e,t,n){if(ir&&typeof ir.onCommitFiberUnmount=="function")try{ir.onCommitFiberUnmount(Su,n)}catch{}switch(n.tag){case 5:$t||Eo(n,t);case 6:var r=Nt,i=Un;Nt=null,$r(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?Kc(e.parentNode,n):e.nodeType===1&&Kc(e,n),oa(e)):Kc(Nt,n.stateNode));break;case 4:r=Nt,i=Un,Nt=n.stateNode.containerInfo,Un=!0,$r(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)&&ef(n,t,s),i=i.next}while(i!==r)}$r(e,t,n);break;case 1:if(!$t&&(Eo(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)}$r(e,t,n);break;case 21:$r(e,t,n);break;case 22:n.mode&1?($t=(r=$t)||n.memoizedState!==null,$r(e,t,n),$t=r):$r(e,t,n);break;default:$r(e,t,n)}}function yg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Nb),t.forEach(function(r){var i=Bb.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*Ab(r/1960))-r,10e?16:e,Vr===null)var r=!1;else{if(e=Vr,Vr=null,pu=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()-yp?Di(e,0):vp|=n),Jt(e,t)}function Hy(e,t){t===0&&(e.mode&1?(t=ll,ll<<=1,!(ll&130023424)&&(ll=4194304)):t=1);var n=Ut();e=br(e,t),e!==null&&(ka(e,t,n),Jt(e,n))}function Fb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Hy(e,n)}function Bb(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),Hy(e,n)}var Wy;Wy=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,Ob(e,t,n);Qt=!!(e.flags&131072)}else Qt=!1,tt&&t.flags&1048576&&K0(t,iu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Al(e,t),e=t.pendingProps;var i=Ao(t,Mt.current);No(t,n),i=dp(null,t,r,e,i,n);var o=fp();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,nu(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,sp(t),i.updater=Pu,t.stateNode=i,i._reactInternals=t,Kd(t,r,e,n),t=qd(null,t,r,!0,o,n)):(t.tag=0,tt&&o&&Jf(t),Bt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Al(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Hb(r),e=Bn(r,e),i){case 0:t=Yd(null,t,r,e,n);break e;case 1:t=pg(null,t,r,e,n);break e;case 11:t=dg(null,t,r,e,n);break e;case 14:t=fg(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),Yd(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bn(r,i),pg(e,t,r,i,n);case 3:e:{if(Ty(t),e===null)throw Error(W(387));r=t.pendingProps,o=t.memoizedState,i=o.element,X0(e,t),au(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=Io(Error(W(423)),t),t=hg(e,t,r,n,i);break e}else if(r!==i){i=Io(Error(W(424)),t),t=hg(e,t,r,n,i);break e}else for(cn=qr(t.stateNode.containerInfo.firstChild),dn=t,tt=!0,Wn=null,n=ty(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Do(),r===i){t=Sr(e,t,n);break e}Bt(e,t,r,n)}t=t.child}return t;case 5:return ny(t),e===null&&Wd(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,zd(r,i)?s=null:o!==null&&zd(r,o)&&(t.flags|=32),Cy(e,t),Bt(e,t,s,n),t.child;case 6:return e===null&&Wd(t),null;case 13:return Oy(e,t,n);case 4:return ap(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=$o(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),dg(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(ou,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),Vd(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),Vd(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,No(t,n),i=Pn(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),fg(e,t,r,i,n);case 15:return Sy(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bn(r,i),Al(e,t),t.tag=1,Zt(r)?(e=!0,nu(t)):e=!1,No(t,n),J0(t,r,i),Kd(t,r,i,n),qd(null,t,r,!0,e,n);case 19:return jy(e,t,n);case 22:return ky(e,t,n)}throw Error(W(156,t.tag))};function Vy(e,t){return v0(e,t)}function Ub(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 On(e,t,n,r){return new Ub(e,t,n,r)}function Ep(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Hb(e){if(typeof e=="function")return Ep(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bf)return 11;if(e===Uf)return 14}return 2}function ei(e,t){var n=e.alternate;return n===null?(n=On(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 Ml(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Ep(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case po:return $i(n.children,i,o,t);case Ff:s=8,i|=8;break;case vd:return e=On(12,n,t,i|2),e.elementType=vd,e.lanes=o,e;case yd:return e=On(13,n,t,i),e.elementType=yd,e.lanes=o,e;case wd:return e=On(19,n,t,i),e.elementType=wd,e.lanes=o,e;case e0:return Au(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zv:s=10;break e;case Jv:s=9;break e;case Bf:s=11;break e;case Uf:s=14;break e;case zr:s=16,r=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return t=On(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function $i(e,t,n,r){return e=On(7,e,r,t),e.lanes=n,e}function Au(e,t,n,r){return e=On(22,e,r,t),e.elementType=e0,e.lanes=n,e.stateNode={isHidden:!1},e}function td(e,t,n){return e=On(6,e,null,t),e.lanes=n,e}function nd(e,t,n){return t=On(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Wb(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=$c(0),this.expirationTimes=$c(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$c(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function bp(e,t,n,r,i,o,s,l,u){return e=new Wb(e,t,n,l,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=On(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},sp(o),e}function Vb(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Yy)}catch(e){console.error(e)}}Yy(),Kv.exports=hn;var Tp=Kv.exports;const Pi=Xo(Tp),qb=Dv({__proto__:null,default:Pi},[Tp]);var Cg=Tp;md.createRoot=Cg.createRoot,md.hydrateRoot=Cg.hydrateRoot;/** +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Jc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Qd(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var kb=typeof WeakMap=="function"?WeakMap:Map;function Ey(e,t,n){n=wr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){fu||(fu=!0,of=r),Qd(e,t)},n}function by(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(){Qd(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Qd(e,t),typeof r!="function"&&(Zr===null?Zr=new Set([this]):Zr.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function lg(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new kb;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=zb.bind(null,e,t,n),t.then(e,e))}function ug(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 cg(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,Xr(n,t,1))),n.lanes|=1),e)}var Cb=Cr.ReactCurrentOwner,Qt=!1;function Bt(e,t,n,r){t.child=e===null?ty(t,null,n,r):$o(t,e.child,n,r)}function dg(e,t,n,r,i){n=n.render;var o=t.ref;return No(t,i),r=dp(e,t,n,r,o,i),n=fp(),e!==null&&!Qt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Sr(e,t,i)):(tt&&n&&Jf(t),t.flags|=1,Bt(e,t,r,i),t.child)}function fg(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Ep(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Sy(e,t,o,r,i)):(e=Ml(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:aa,n(s,r)&&e.ref===t.ref)return Sr(e,t,i)}return t.flags|=1,e=ei(o,r),e.ref=t.ref,e.return=t,t.child=e}function Sy(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(aa(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 Yd(e,t,n,r,i)}function ky(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(bo,cn),cn|=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(bo,cn),cn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,qe(bo,cn),cn|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,qe(bo,cn),cn|=r;return Bt(e,t,i,n),t.child}function Cy(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yd(e,t,n,r,i){var o=Zt(n)?Fi:Mt.current;return o=Ao(t,o),No(t,i),n=dp(e,t,n,r,o,i),r=fp(),e!==null&&!Qt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Sr(e,t,i)):(tt&&r&&Jf(t),t.flags|=1,Bt(e,t,n,i),t.child)}function pg(e,t,n,r,i){if(Zt(n)){var o=!0;nu(t)}else o=!1;if(No(t,i),t.stateNode===null)Al(e,t),J0(t,n,r),Kd(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=Pn(c):(c=Zt(n)?Fi:Mt.current,c=Ao(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)&&ig(t,s,r,c),Fr=!1;var m=t.memoizedState;s.state=m,au(t,r,s,i),u=t.memoizedState,l!==r||m!==u||Xt.current||Fr?(typeof f=="function"&&(Gd(t,n,f,r),u=t.memoizedState),(l=Fr||rg(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,X0(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=Pn(u):(u=Zt(n)?Fi:Mt.current,u=Ao(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)&&ig(t,s,r,u),Fr=!1,m=t.memoizedState,s.state=m,au(t,r,s,i);var x=t.memoizedState;l!==h||m!==x||Xt.current||Fr?(typeof y=="function"&&(Gd(t,n,y,r),x=t.memoizedState),(c=Fr||rg(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){Cy(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&Zm(t,n,!1),Sr(e,t,o);r=t.stateNode,Cb.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=$o(t,e.child,null,o),t.child=$o(t,null,l,o)):Bt(e,t,l,o),t.memoizedState=r.state,i&&Zm(t,n,!0),t.child}function Ty(e){var t=e.stateNode;t.pendingContext?Xm(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Xm(e,t.context,!1),ap(e,t.containerInfo)}function hg(e,t,n,r,i){return Do(),tp(i),t.flags|=256,Bt(e,t,n,r),t.child}var Xd={dehydrated:null,treeContext:null,retryLane:0};function Zd(e){return{baseLanes:e,cachePool:null,transitions:null}}function Oy(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 Wd(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=Au(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=Zd(n),t.memoizedState=Xd,e):mp(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return Tb(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=ei(i,u),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=ei(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?Zd(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Xd,r}return o=e.child,e=o.sibling,r=ei(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 mp(e,t){return t=Au({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function gl(e,t,n,r){return r!==null&&tp(r),$o(t,e.child,null,n),e=mp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Tb(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=Jc(Error(W(422))),gl(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Au({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&&$o(t,e.child,null,s),t.child.memoizedState=Zd(s),t.memoizedState=Xd,o);if(!(t.mode&1))return gl(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=Jc(o,r,void 0),gl(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 _p(),r=Jc(Error(W(421))),gl(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Fb.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,dn=qr(i.nextSibling),fn=t,tt=!0,Wn=null,e!==null&&(Cn[Tn++]=vr,Cn[Tn++]=yr,Cn[Tn++]=Bi,vr=e.id,yr=e.overflow,Bi=t),t=mp(t,r.children),t.flags|=4096,t)}function mg(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Vd(e.return,t,n)}function ed(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 jy(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&&mg(e,n,t);else if(e.tag===19)mg(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&&lu(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ed(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&&lu(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ed(t,!0,n,null,o);break;case"together":ed(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Al(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function 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=ei(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ei(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ob(e,t,n){switch(t.tag){case 3:Ty(t),Do();break;case 5:ny(t);break;case 1:Zt(t.type)&&nu(t);break;case 4:ap(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;qe(ou,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?Oy(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 jy(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,ky(e,t,n)}return Sr(e,t,n)}var Py,Jd,Ny,Ly;Py=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}};Jd=function(){};Ny=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=_d(e,i),r=_d(e,r),o=[];break;case"select":i=it({},i,{value:void 0}),r=it({},r,{value:void 0}),o=[];break;case"textarea":i=Sd(e,i),r=Sd(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=eu)}Cd(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"&&(ea.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"&&(ea.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)}};Ly=function(e,t,n,r){n!==r&&(t.flags|=4)};function bs(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 jb(e,t,n){var r=t.pendingProps;switch(ep(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)&&tu(),Dt(t),null;case 3:return r=t.stateNode,Mo(),Je(Xt),Je(Mt),up(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(hl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Wn!==null&&(lf(Wn),Wn=null))),Jd(e,t),Dt(t),null;case 5:lp(t);var i=ji(fa.current);if(n=t.type,e!==null&&t.stateNode!=null)Ny(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),hl(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[rr]=t,r[ca]=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[ca]=r,Py(e,t,!1,!1),t.stateNode=e;e:{switch(s=Td(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;izo&&(t.flags|=128,r=!0,bs(o,!1),t.lanes=4194304)}else{if(!r)if(e=lu(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),bs(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!tt)return Dt(t),null}else 2*ht()-o.renderingStartTime>zo&&n!==1073741824&&(t.flags|=128,r=!0,bs(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 xp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?cn&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 Pb(e,t){switch(ep(t),t.tag){case 1:return Zt(t.type)&&tu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mo(),Je(Xt),Je(Mt),up(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return lp(t),null;case 13:if(Je(nt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));Do()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Je(nt),null;case 4:return Mo(),null;case 10:return ip(t.type._context),null;case 22:case 23:return xp(),null;case 24:return null;default:return null}}var vl=!1,$t=!1,Nb=typeof WeakSet=="function"?WeakSet:Set,ee=null;function Eo(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 ef(e,t,n){try{n()}catch(r){ut(e,t,r)}}var gg=!1;function Lb(e,t){if(Md=Xl,e=$0(),Zf(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(Id={focusedElem:e,selectionRange:n},Xl=!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=gg,gg=!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&&ef(t,n,o)}i=i.next}while(i!==r)}}function Lu(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 tf(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 Ry(e){var t=e.alternate;t!==null&&(e.alternate=null,Ry(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[Bd],delete t[hb],delete t[mb])),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 Ay(e){return e.tag===5||e.tag===3||e.tag===4}function vg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ay(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 nf(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=eu));else if(r!==4&&(e=e.child,e!==null))for(nf(e,t,n),e=e.sibling;e!==null;)nf(e,t,n),e=e.sibling}function rf(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(rf(e,t,n),e=e.sibling;e!==null;)rf(e,t,n),e=e.sibling}var Nt=null,Un=!1;function $r(e,t,n){for(n=n.child;n!==null;)Dy(e,t,n),n=n.sibling}function Dy(e,t,n){if(ir&&typeof ir.onCommitFiberUnmount=="function")try{ir.onCommitFiberUnmount(Su,n)}catch{}switch(n.tag){case 5:$t||Eo(n,t);case 6:var r=Nt,i=Un;Nt=null,$r(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?Kc(e.parentNode,n):e.nodeType===1&&Kc(e,n),oa(e)):Kc(Nt,n.stateNode));break;case 4:r=Nt,i=Un,Nt=n.stateNode.containerInfo,Un=!0,$r(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)&&ef(n,t,s),i=i.next}while(i!==r)}$r(e,t,n);break;case 1:if(!$t&&(Eo(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)}$r(e,t,n);break;case 21:$r(e,t,n);break;case 22:n.mode&1?($t=(r=$t)||n.memoizedState!==null,$r(e,t,n),$t=r):$r(e,t,n);break;default:$r(e,t,n)}}function yg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Nb),t.forEach(function(r){var i=Bb.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*Ab(r/1960))-r,10e?16:e,Vr===null)var r=!1;else{if(e=Vr,Vr=null,pu=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()-yp?Di(e,0):vp|=n),Jt(e,t)}function Hy(e,t){t===0&&(e.mode&1?(t=ll,ll<<=1,!(ll&130023424)&&(ll=4194304)):t=1);var n=Ut();e=br(e,t),e!==null&&(ka(e,t,n),Jt(e,n))}function Fb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Hy(e,n)}function Bb(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),Hy(e,n)}var Wy;Wy=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,Ob(e,t,n);Qt=!!(e.flags&131072)}else Qt=!1,tt&&t.flags&1048576&&K0(t,iu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Al(e,t),e=t.pendingProps;var i=Ao(t,Mt.current);No(t,n),i=dp(null,t,r,e,i,n);var o=fp();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,nu(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,sp(t),i.updater=Pu,t.stateNode=i,i._reactInternals=t,Kd(t,r,e,n),t=qd(null,t,r,!0,o,n)):(t.tag=0,tt&&o&&Jf(t),Bt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Al(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Hb(r),e=Bn(r,e),i){case 0:t=Yd(null,t,r,e,n);break e;case 1:t=pg(null,t,r,e,n);break e;case 11:t=dg(null,t,r,e,n);break e;case 14:t=fg(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),Yd(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bn(r,i),pg(e,t,r,i,n);case 3:e:{if(Ty(t),e===null)throw Error(W(387));r=t.pendingProps,o=t.memoizedState,i=o.element,X0(e,t),au(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=Io(Error(W(423)),t),t=hg(e,t,r,n,i);break e}else if(r!==i){i=Io(Error(W(424)),t),t=hg(e,t,r,n,i);break e}else for(dn=qr(t.stateNode.containerInfo.firstChild),fn=t,tt=!0,Wn=null,n=ty(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Do(),r===i){t=Sr(e,t,n);break e}Bt(e,t,r,n)}t=t.child}return t;case 5:return ny(t),e===null&&Wd(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,zd(r,i)?s=null:o!==null&&zd(r,o)&&(t.flags|=32),Cy(e,t),Bt(e,t,s,n),t.child;case 6:return e===null&&Wd(t),null;case 13:return Oy(e,t,n);case 4:return ap(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=$o(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),dg(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(ou,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),Vd(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),Vd(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,No(t,n),i=Pn(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),fg(e,t,r,i,n);case 15:return Sy(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bn(r,i),Al(e,t),t.tag=1,Zt(r)?(e=!0,nu(t)):e=!1,No(t,n),J0(t,r,i),Kd(t,r,i,n),qd(null,t,r,!0,e,n);case 19:return jy(e,t,n);case 22:return ky(e,t,n)}throw Error(W(156,t.tag))};function Vy(e,t){return v0(e,t)}function Ub(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 On(e,t,n,r){return new Ub(e,t,n,r)}function Ep(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Hb(e){if(typeof e=="function")return Ep(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bf)return 11;if(e===Uf)return 14}return 2}function ei(e,t){var n=e.alternate;return n===null?(n=On(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 Ml(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Ep(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case po:return $i(n.children,i,o,t);case Ff:s=8,i|=8;break;case vd:return e=On(12,n,t,i|2),e.elementType=vd,e.lanes=o,e;case yd:return e=On(13,n,t,i),e.elementType=yd,e.lanes=o,e;case wd:return e=On(19,n,t,i),e.elementType=wd,e.lanes=o,e;case e0:return Au(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zv:s=10;break e;case Jv:s=9;break e;case Bf:s=11;break e;case Uf:s=14;break e;case zr:s=16,r=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return t=On(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function $i(e,t,n,r){return e=On(7,e,r,t),e.lanes=n,e}function Au(e,t,n,r){return e=On(22,e,r,t),e.elementType=e0,e.lanes=n,e.stateNode={isHidden:!1},e}function td(e,t,n){return e=On(6,e,null,t),e.lanes=n,e}function nd(e,t,n){return t=On(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Wb(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=$c(0),this.expirationTimes=$c(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$c(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function bp(e,t,n,r,i,o,s,l,u){return e=new Wb(e,t,n,l,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=On(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},sp(o),e}function Vb(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Yy)}catch(e){console.error(e)}}Yy(),Kv.exports=mn;var Tp=Kv.exports;const Pi=Xo(Tp),qb=Dv({__proto__:null,default:Pi},[Tp]);var Cg=Tp;md.createRoot=Cg.createRoot,md.hydrateRoot=Cg.hydrateRoot;/** * @remix-run/router v1.14.1 * * Copyright (c) Remix Software Inc. @@ -46,7 +46,7 @@ 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 ri(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Zb(){return Math.random().toString(36).substr(2,8)}function Og(e,t){return{usr:e.state,key:e.key,idx:t}}function va(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||Zb()})}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 Jb(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=va(_.location,C,v);n&&n(g,C),c=f()+1;let b=Og(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=va(_.location,C,v);n&&n(g,C),c=f();let b=Og(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(Tg,h),u=C,()=>{i.removeEventListener(Tg,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 e2=new Set(["lazy","caseSensitive","path","id","index","children"]);function t2(e){return e.index===!0}function uf(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`),t2(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=uf(i.children,t,s,r)),u}})}function So(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ur(t):t,i=ts(r.pathname||"/",n);if(i==null)return null;let o=qy(e);r2(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+'".')),qy(o.children,t,f,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:c2(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 Xy(o.path))i(o,s,u)}),t}function Xy(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=Xy(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 r2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:d2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const i2=/^:\w+$/,o2=3,s2=2,a2=1,l2=10,u2=-2,jg=e=>e==="*";function c2(e,t){let n=e.split("/"),r=n.length;return n.some(jg)&&(r+=u2),t&&(r+=s2),n.filter(i=>!jg(i)).reduce((i,o)=>i+(i2.test(o)?o2:o===""?a2:l2),r)}function d2(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 f2(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]=g2(x||"",m),c},{}),pathname:o,pathnameBase:s,pattern:e}}function h2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ri(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 m2(e){try{return decodeURI(e)}catch(t){return ri(!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 g2(e,t){try{return decodeURIComponent(e)}catch(n){return ri(!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 ts(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 v2(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:y2(n,t):t,search:x2(r),hash:_2(i)}}function y2(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 rd(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 Zy(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Op(e,t){let n=Zy(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function jp(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("?"),rd("?","pathname","search",i)),Se(!i.pathname||!i.pathname.includes("#"),rd("#","pathname","hash",i)),Se(!i.search||!i.search.includes("#"),rd("#","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=v2(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,"/"),w2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),x2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,_2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Pp{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 Jy(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const e1=["post","put","patch","delete"],E2=new Set(e1),b2=["get",...e1],S2=new Set(b2),k2=new Set([301,302,303,307,308]),C2=new Set([307,308]),id={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},T2={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ks={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},t1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,O2=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),n1="remix-router-transitions";function j2(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=O2;let o={},s=uf(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=So(s,e.history.location,u),v=null;if(C==null){let L=Sn(404,{pathname:e.history.location.pathname}),{matches:D,route:M}=Mg(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:id,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}ri(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=za({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,ks),Te({blockers:pe})}});return}return ze(D,M)}),n){F2(t,z);let L=()=>B2(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)=>Ia(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?$g(k.loaderData,D.loaderData,D.matches||[],D.errors):k.loaderData,Oe=k.blockers;Oe.size>0&&(Oe=new Map(Oe),Oe.forEach(($e,ot)=>Oe.set(ot,ks)));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 $e=z.get(k.location.pathname);$e&&$e.has(L.pathname)?he={currentLocation:k.location,nextLocation:L}:z.has(L.pathname)&&(he={currentLocation:L,nextLocation:k.location})}else if(H){let $e=z.get(k.location.pathname);$e?$e.add(L.pathname):($e=new Set([L.pathname]),z.set(k.location.pathname,$e)),he={currentLocation:k.location,nextLocation:L}}Te(ct({},D,{actionData:le,loaderData:ie,historyAction:O,location:L,initialized:!0,navigation:id,revalidation:"idle",restoreScrollPosition:us(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=cf(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}=Pg(c.v7_normalizeFormMethod,!1,M,D),de=k.location,le=va(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,$e=za({currentLocation:de,nextLocation:le,historyAction:Oe});if($e){Zi($e,{state:"blocked",location:le,proceed(){Zi($e,{state:"proceeding",proceed:void 0,reset:void 0,location:le}),Pe(L,D)},reset(){let ot=new Map(k.blockers);ot.set($e,ks),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(jr(),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=So(Y,D,u),de=(M&&M.flushSync)===!0;if(!pe){let ot=Sn(404,{pathname:D.pathname}),{matches:Vt,route:st}=Mg(Y);as(),xt(D,{matches:Vt,loaderData:{},errors:{[st.id]:ot}},{flushSync:de});return}if(k.initialized&&!V&&A2(k.location,D)&&!(M&&M.submission&&Hn(M.submission.formMethod))){xt(D,{matches:pe},{flushSync:de});return}F=new AbortController;let le=Ts(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=od(D,M.submission),de=!1,le=new Request(le.url,{signal:le.signal})}let{shortCircuited:vt,loaderData:he,errors:$e}=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:$e})))}async function gt(L,D,M,Y,Z){Z===void 0&&(Z={}),jr();let pe=I2(D,M);Te({navigation:pe},{flushSync:Z.flushSync===!0});let de,le=ff(Y,D);if(!le.route.action&&!le.route.lazy)de={type:lt.error,error:Sn(405,{method:L.method,pathname:D.pathname,routeId:le.route.id})};else if(de=await Cs("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 vn(k,de,{submission:M,replace:ie}),{shortCircuited:!0}}if(ko(de)){let ie=Ks(Y,le.route.id);return(Z&&Z.replace)!==!0&&(O=pt.Push),{pendingActionData:{},pendingActionError:{[ie.route.id]:de.error}}}if(Ni(de))throw Sn(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||od(D,Z),$e=Z||pe||Fg(he),ot=l||s,[Vt,st]=Ng(e.history,k,M,$e,D,c.v7_partialHydration&&le===!0,V,re,oe,ae,ve,se,ot,u,Oe,vt);if(as(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=Ma();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=Os(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 Nr=()=>st.forEach(Ae=>It(Ae.key));F&&F.signal.addEventListener("abort",Nr);let{results:cs,loaderResults:on,fetcherResults:et}=await ci(k.matches,M,Vt,st,L);if(L.signal.aborted)return{shortCircuited:!0};F&&F.signal.removeEventListener("abort",Nr),st.forEach(Ae=>ne.delete(Ae.key));let dt=Ig(cs);if(dt){if(dt.idx>=Vt.length){let Ae=st[dt.idx-Vt.length].key;se.add(Ae)}return await vn(k,dt.result,{replace:de}),{shortCircuited:!0}}let{loaderData:Pt,errors:_t}=Dg(k,M,Vt,on,vt,st,et,ye);ye.forEach((Ae,Ke)=>{Ae.subscribe(Gt=>{(Gt||Ae.done)&&ye.delete(Ke)})});let Lr=Ma(),sn=Xi(q),yn=Lr||sn||st.length>0;return ct({loaderData:Pt,errors:_t},yn?{fetchers:new Map(k.fetchers)}:{})}function os(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=cf(k.location,k.matches,u,c.v7_prependBasename,M,c.v7_relativeSplatPath,D,Y==null?void 0:Y.relative),le=So(pe,de,u);if(!le){jt(L,D,Sn(404,{pathname:de}),{flushSync:Z});return}let{path:ie,submission:Oe,error:vt}=Pg(c.v7_normalizeFormMethod,!0,de,Y);if(vt){jt(L,D,vt,{flushSync:Z});return}let he=ff(le,ie);if(A=(Y&&Y.preventScrollReset)===!0,Oe&&Hn(Oe.formMethod)){ss(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 ss(L,D,M,Y,Z,pe,de){if(jr(),ve.delete(L),!Y.route.action&&!Y.route.lazy){let Ke=Sn(405,{method:de.formMethod,pathname:M,routeId:D});jt(L,D,Ke,{flushSync:pe});return}let le=k.fetchers.get(L);Ot(L,z2(de,le),{flushSync:pe});let ie=new AbortController,Oe=Ts(e.history,M,ie.signal,de);ne.set(L,ie);let vt=U,he=await Cs("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)||ko(he)){Ot(L,Mr(void 0));return}}else{if(Li(he))if(ne.delete(L),q>vt){Ot(L,Mr(void 0));return}else return se.add(L),Ot(L,Os(de)),vn(k,he,{fetcherSubmission:de});if(ko(he)){jt(L,D,he.error);return}}if(Ni(he))throw Sn(400,{type:"defer-action"});let $e=k.navigation.location||k.location,ot=Ts(e.history,$e,ie.signal),Vt=l||s,st=k.navigation.state!=="idle"?So(Vt,k.navigation.location,u):k.matches;Se(st,"Didn't find any matches after fetcher action");let Nr=++U;R.set(L,Nr);let cs=Os(de,he.data);k.fetchers.set(L,cs);let[on,et]=Ng(e.history,k,st,de,$e,!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),Ba=Os(void 0,Mn?Mn.data:void 0);k.fetchers.set(Gt,Ba),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:Lr}=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=Ig(Pt);if(sn){if(sn.idx>=on.length){let Ke=et[sn.idx-on.length].key;se.add(Ke)}return vn(k,sn.result)}let{loaderData:yn,errors:Ae}=Dg(k,k.matches,on,_t,void 0,et,Lr,ye);if(k.fetchers.has(L)){let Ke=Mr(he.data);k.fetchers.set(L,Ke)}Xi(Nr),k.navigation.state==="loading"&&Nr>q?(Se(O,"Expected pending action"),F&&F.abort(),xt(k.navigation.location,{matches:st,loaderData:yn,errors:Ae,fetchers:new Map(k.fetchers)})):(Te({errors:Ae,loaderData:$g(k.loaderData,yn,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,Os(de,le?le.data:void 0),{flushSync:pe});let ie=new AbortController,Oe=Ts(e.history,M,ie.signal);ne.set(L,ie);let vt=U,he=await Cs("loader",Oe,Y,Z,o,i,u,c.v7_relativeSplatPath);if(Ni(he)&&(he=await o1(he,Oe.signal,!0)||he),ne.get(L)===ie&&ne.delete(L),!Oe.signal.aborted){if(ae.has(L)){Ot(L,Mr(void 0));return}if(Li(he))if(q>vt){Ot(L,Mr(void 0));return}else{se.add(L),await vn(k,he);return}if(ko(he)){jt(L,D,he.error);return}Se(!Ni(he),"Unhandled fetcher deferred data"),Ot(L,Mr(he.data))}}async function vn(L,D,M){let{submission:Y,fetcherSubmission:Z,replace:pe}=M===void 0?{}:M;D.revalidate&&(V=!0);let de=va(L.location,D.location,{_isRedirect:!0});if(Se(de,"Expected a location on the redirect navigation"),n){let $e=!1;if(D.reloadDocument)$e=!0;else if(t1.test(D.location)){const ot=e.history.createURL(D.location);$e=ot.origin!==t.location.origin||ts(ot.pathname,u)==null}if($e){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=Fg(L.navigation));let he=Y||Z;if(C2.has(D.status)&&he&&Hn(he.formMethod))await ze(le,de,{submission:ct({},he,{formAction:D.location}),preventScrollReset:A});else{let $e=od(de,Y);await ze(le,de,{overrideNavigation:$e,fetcherSubmission:Z,preventScrollReset:A})}}async function ci(L,D,M,Y,Z){let pe=await Promise.all([...M.map(ie=>Cs("loader",Z,ie,D,o,i,u,c.v7_relativeSplatPath)),...Y.map(ie=>ie.matches&&ie.match&&ie.controller?Cs("loader",Ts(e.history,ie.path,ie.controller.signal),ie.match,ie.matches,o,i,u,c.v7_relativeSplatPath):{type:lt.error,error:Sn(404,{pathname:ie.path})})]),de=pe.slice(0,M.length),le=pe.slice(M.length);return await Promise.all([zg(L,M,de,de.map(()=>Z.signal),!1,k.loaderData),zg(L,Y.map(ie=>ie.match),le,Y.map(ie=>ie.controller?ie.controller.signal:null),!0)]),{results:pe,loaderResults:de,fetcherResults:le}}function jr(){V=!0,re.push(...as()),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 Pr(L){return c.v7_fetcherPersist&&(Re.set(L,(Re.get(L)||0)+1),ae.has(L)&&ae.delete(L)),k.fetchers.get(L)||T2}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=Pr(D),Y=Mr(M.data);k.fetchers.set(D,Y)}}function Ma(){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 ec(L,D){let M=k.blockers.get(L)||ks;return ue.get(L)!==D&&ue.set(L,D),M}function Ia(L){k.blockers.delete(L),ue.delete(L)}function Zi(L,D){let M=k.blockers.get(L)||ks;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 za(L){let{currentLocation:D,nextLocation:M,historyAction:Y}=L;if(ue.size===0)return;ue.size>1&&ri(!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 as(L){let D=[];return ye.forEach((M,Y)=>{(!L||L(Y))&&(M.cancel(),D.push(Y),ye.delete(Y))}),D}function tc(L,D,M){if(m=L,x=D,y=M||null,!_&&k.navigation===id){_=!0;let Y=us(k.location,k.matches);Y!=null&&Te({restoreScrollPosition:Y})}return()=>{m=null,x=null,y=null}}function ls(L,D){return y&&y(L,D.map(Y=>n2(Y,k.loaderData)))||L.key}function Ji(L,D){if(m&&x){let M=ls(L,D);m[M]=x()}}function us(L,D){if(m){let M=ls(L,D),Y=m[M];if(typeof Y=="number")return Y}return null}function Fa(L){o={},l=uf(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:tc,navigate:Pe,fetch:os,revalidate:Ne,createHref:L=>e.history.createHref(L),encodeLocation:L=>e.history.encodeLocation(L),getFetcher:Pr,deleteFetcher:$n,dispose:We,getBlocker:ec,deleteBlocker:Ia,_internalFetchControllers:ne,_internalActiveDeferreds:ye,_internalSetRoutes:Fa},N}function P2(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function cf(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=jp(i||".",Op(u,o),ts(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&&!Np(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 Pg(e,t,n,r){if(!r||!P2(r))return{path:n};if(r.formMethod&&!M2(r.formMethod))return{path:n,error:Sn(405,{method:r.formMethod})};let i=()=>({path:n,error:Sn(400,{type:"invalid-body"})}),o=r.formMethod||"get",s=e?o.toUpperCase():o.toLowerCase(),l=i1(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+` + */function ct(){return ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function ri(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Zb(){return Math.random().toString(36).substr(2,8)}function Og(e,t){return{usr:e.state,key:e.key,idx:t}}function va(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||Zb()})}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 Jb(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=va(_.location,C,v);n&&n(g,C),c=f()+1;let b=Og(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=va(_.location,C,v);n&&n(g,C),c=f();let b=Og(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(Tg,h),u=C,()=>{i.removeEventListener(Tg,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 e2=new Set(["lazy","caseSensitive","path","id","index","children"]);function t2(e){return e.index===!0}function uf(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`),t2(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=uf(i.children,t,s,r)),u}})}function So(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ur(t):t,i=ts(r.pathname||"/",n);if(i==null)return null;let o=qy(e);r2(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+'".')),qy(o.children,t,f,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:c2(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 Xy(o.path))i(o,s,u)}),t}function Xy(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=Xy(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 r2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:d2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const i2=/^:\w+$/,o2=3,s2=2,a2=1,l2=10,u2=-2,jg=e=>e==="*";function c2(e,t){let n=e.split("/"),r=n.length;return n.some(jg)&&(r+=u2),t&&(r+=s2),n.filter(i=>!jg(i)).reduce((i,o)=>i+(i2.test(o)?o2:o===""?a2:l2),r)}function d2(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 f2(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]=g2(x||"",m),c},{}),pathname:o,pathnameBase:s,pattern:e}}function h2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ri(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 m2(e){try{return decodeURI(e)}catch(t){return ri(!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 g2(e,t){try{return decodeURIComponent(e)}catch(n){return ri(!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 ts(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 v2(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:y2(n,t):t,search:x2(r),hash:_2(i)}}function y2(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 rd(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 Zy(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Op(e,t){let n=Zy(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function jp(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("?"),rd("?","pathname","search",i)),Se(!i.pathname||!i.pathname.includes("#"),rd("#","pathname","hash",i)),Se(!i.search||!i.search.includes("#"),rd("#","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=v2(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,"/"),w2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),x2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,_2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Pp{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 Jy(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const e1=["post","put","patch","delete"],E2=new Set(e1),b2=["get",...e1],S2=new Set(b2),k2=new Set([301,302,303,307,308]),C2=new Set([307,308]),id={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},T2={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ks={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},t1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,O2=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),n1="remix-router-transitions";function j2(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=O2;let o={},s=uf(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=So(s,e.history.location,u),v=null;if(C==null){let L=Sn(404,{pathname:e.history.location.pathname}),{matches:D,route:M}=Mg(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:id,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}ri(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=za({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,ks),Te({blockers:pe})}});return}return ze(D,M)}),n){F2(t,z);let L=()=>B2(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)=>on(D)),k.blockers.forEach((L,D)=>Ia(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=>on(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?$g(k.loaderData,D.loaderData,D.matches||[],D.errors):k.loaderData,Oe=k.blockers;Oe.size>0&&(Oe=new Map(Oe),Oe.forEach(($e,ot)=>Oe.set(ot,ks)));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 $e=z.get(k.location.pathname);$e&&$e.has(L.pathname)?he={currentLocation:k.location,nextLocation:L}:z.has(L.pathname)&&(he={currentLocation:L,nextLocation:k.location})}else if(H){let $e=z.get(k.location.pathname);$e?$e.add(L.pathname):($e=new Set([L.pathname]),z.set(k.location.pathname,$e)),he={currentLocation:k.location,nextLocation:L}}Te(ct({},D,{actionData:le,loaderData:ie,historyAction:O,location:L,initialized:!0,navigation:id,revalidation:"idle",restoreScrollPosition:us(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=cf(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}=Pg(c.v7_normalizeFormMethod,!1,M,D),de=k.location,le=va(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,$e=za({currentLocation:de,nextLocation:le,historyAction:Oe});if($e){Zi($e,{state:"blocked",location:le,proceed(){Zi($e,{state:"proceeding",proceed:void 0,reset:void 0,location:le}),Pe(L,D)},reset(){let ot=new Map(k.blockers);ot.set($e,ks),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(jr(),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=So(Y,D,u),de=(M&&M.flushSync)===!0;if(!pe){let ot=Sn(404,{pathname:D.pathname}),{matches:Vt,route:st}=Mg(Y);as(),xt(D,{matches:Vt,loaderData:{},errors:{[st.id]:ot}},{flushSync:de});return}if(k.initialized&&!V&&A2(k.location,D)&&!(M&&M.submission&&Hn(M.submission.formMethod))){xt(D,{matches:pe},{flushSync:de});return}F=new AbortController;let le=Ts(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=od(D,M.submission),de=!1,le=new Request(le.url,{signal:le.signal})}let{shortCircuited:vt,loaderData:he,errors:$e}=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:$e})))}async function gt(L,D,M,Y,Z){Z===void 0&&(Z={}),jr();let pe=I2(D,M);Te({navigation:pe},{flushSync:Z.flushSync===!0});let de,le=ff(Y,D);if(!le.route.action&&!le.route.lazy)de={type:lt.error,error:Sn(405,{method:L.method,pathname:D.pathname,routeId:le.route.id})};else if(de=await Cs("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 vn(k,de,{submission:M,replace:ie}),{shortCircuited:!0}}if(ko(de)){let ie=Ks(Y,le.route.id);return(Z&&Z.replace)!==!0&&(O=pt.Push),{pendingActionData:{},pendingActionError:{[ie.route.id]:de.error}}}if(Ni(de))throw Sn(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||od(D,Z),$e=Z||pe||Fg(he),ot=l||s,[Vt,st]=Ng(e.history,k,M,$e,D,c.v7_partialHydration&&le===!0,V,re,oe,ae,ve,se,ot,u,Oe,vt);if(as(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=Ma();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=Os(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 Nr=()=>st.forEach(Ae=>It(Ae.key));F&&F.signal.addEventListener("abort",Nr);let{results:cs,loaderResults:sn,fetcherResults:et}=await ci(k.matches,M,Vt,st,L);if(L.signal.aborted)return{shortCircuited:!0};F&&F.signal.removeEventListener("abort",Nr),st.forEach(Ae=>ne.delete(Ae.key));let dt=Ig(cs);if(dt){if(dt.idx>=Vt.length){let Ae=st[dt.idx-Vt.length].key;se.add(Ae)}return await vn(k,dt.result,{replace:de}),{shortCircuited:!0}}let{loaderData:Pt,errors:_t}=Dg(k,M,Vt,sn,vt,st,et,ye);ye.forEach((Ae,Ke)=>{Ae.subscribe(Gt=>{(Gt||Ae.done)&&ye.delete(Ke)})});let Lr=Ma(),an=Xi(q),yn=Lr||an||st.length>0;return ct({loaderData:Pt,errors:_t},yn?{fetchers:new Map(k.fetchers)}:{})}function os(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=cf(k.location,k.matches,u,c.v7_prependBasename,M,c.v7_relativeSplatPath,D,Y==null?void 0:Y.relative),le=So(pe,de,u);if(!le){jt(L,D,Sn(404,{pathname:de}),{flushSync:Z});return}let{path:ie,submission:Oe,error:vt}=Pg(c.v7_normalizeFormMethod,!0,de,Y);if(vt){jt(L,D,vt,{flushSync:Z});return}let he=ff(le,ie);if(A=(Y&&Y.preventScrollReset)===!0,Oe&&Hn(Oe.formMethod)){ss(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 ss(L,D,M,Y,Z,pe,de){if(jr(),ve.delete(L),!Y.route.action&&!Y.route.lazy){let Ke=Sn(405,{method:de.formMethod,pathname:M,routeId:D});jt(L,D,Ke,{flushSync:pe});return}let le=k.fetchers.get(L);Ot(L,z2(de,le),{flushSync:pe});let ie=new AbortController,Oe=Ts(e.history,M,ie.signal,de);ne.set(L,ie);let vt=U,he=await Cs("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)||ko(he)){Ot(L,Mr(void 0));return}}else{if(Li(he))if(ne.delete(L),q>vt){Ot(L,Mr(void 0));return}else return se.add(L),Ot(L,Os(de)),vn(k,he,{fetcherSubmission:de});if(ko(he)){jt(L,D,he.error);return}}if(Ni(he))throw Sn(400,{type:"defer-action"});let $e=k.navigation.location||k.location,ot=Ts(e.history,$e,ie.signal),Vt=l||s,st=k.navigation.state!=="idle"?So(Vt,k.navigation.location,u):k.matches;Se(st,"Didn't find any matches after fetcher action");let Nr=++U;R.set(L,Nr);let cs=Os(de,he.data);k.fetchers.set(L,cs);let[sn,et]=Ng(e.history,k,st,de,$e,!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),Ba=Os(void 0,Mn?Mn.data:void 0);k.fetchers.set(Gt,Ba),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:Lr}=await ci(k.matches,st,sn,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 an=Ig(Pt);if(an){if(an.idx>=sn.length){let Ke=et[an.idx-sn.length].key;se.add(Ke)}return vn(k,an.result)}let{loaderData:yn,errors:Ae}=Dg(k,k.matches,sn,_t,void 0,et,Lr,ye);if(k.fetchers.has(L)){let Ke=Mr(he.data);k.fetchers.set(L,Ke)}Xi(Nr),k.navigation.state==="loading"&&Nr>q?(Se(O,"Expected pending action"),F&&F.abort(),xt(k.navigation.location,{matches:st,loaderData:yn,errors:Ae,fetchers:new Map(k.fetchers)})):(Te({errors:Ae,loaderData:$g(k.loaderData,yn,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,Os(de,le?le.data:void 0),{flushSync:pe});let ie=new AbortController,Oe=Ts(e.history,M,ie.signal);ne.set(L,ie);let vt=U,he=await Cs("loader",Oe,Y,Z,o,i,u,c.v7_relativeSplatPath);if(Ni(he)&&(he=await o1(he,Oe.signal,!0)||he),ne.get(L)===ie&&ne.delete(L),!Oe.signal.aborted){if(ae.has(L)){Ot(L,Mr(void 0));return}if(Li(he))if(q>vt){Ot(L,Mr(void 0));return}else{se.add(L),await vn(k,he);return}if(ko(he)){jt(L,D,he.error);return}Se(!Ni(he),"Unhandled fetcher deferred data"),Ot(L,Mr(he.data))}}async function vn(L,D,M){let{submission:Y,fetcherSubmission:Z,replace:pe}=M===void 0?{}:M;D.revalidate&&(V=!0);let de=va(L.location,D.location,{_isRedirect:!0});if(Se(de,"Expected a location on the redirect navigation"),n){let $e=!1;if(D.reloadDocument)$e=!0;else if(t1.test(D.location)){const ot=e.history.createURL(D.location);$e=ot.origin!==t.location.origin||ts(ot.pathname,u)==null}if($e){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=Fg(L.navigation));let he=Y||Z;if(C2.has(D.status)&&he&&Hn(he.formMethod))await ze(le,de,{submission:ct({},he,{formAction:D.location}),preventScrollReset:A});else{let $e=od(de,Y);await ze(le,de,{overrideNavigation:$e,fetcherSubmission:Z,preventScrollReset:A})}}async function ci(L,D,M,Y,Z){let pe=await Promise.all([...M.map(ie=>Cs("loader",Z,ie,D,o,i,u,c.v7_relativeSplatPath)),...Y.map(ie=>ie.matches&&ie.match&&ie.controller?Cs("loader",Ts(e.history,ie.path,ie.controller.signal),ie.match,ie.matches,o,i,u,c.v7_relativeSplatPath):{type:lt.error,error:Sn(404,{pathname:ie.path})})]),de=pe.slice(0,M.length),le=pe.slice(M.length);return await Promise.all([zg(L,M,de,de.map(()=>Z.signal),!1,k.loaderData),zg(L,Y.map(ie=>ie.match),le,Y.map(ie=>ie.controller?ie.controller.signal:null),!0)]),{results:pe,loaderResults:de,fetcherResults:le}}function jr(){V=!0,re.push(...as()),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);on(L),Te({errors:{[Z.route.id]:M},fetchers:new Map(k.fetchers)},{flushSync:(Y&&Y.flushSync)===!0})}function Pr(L){return c.v7_fetcherPersist&&(Re.set(L,(Re.get(L)||0)+1),ae.has(L)&&ae.delete(L)),k.fetchers.get(L)||T2}function on(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 on(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=Pr(D),Y=Mr(M.data);k.fetchers.set(D,Y)}}function Ma(){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 ec(L,D){let M=k.blockers.get(L)||ks;return ue.get(L)!==D&&ue.set(L,D),M}function Ia(L){k.blockers.delete(L),ue.delete(L)}function Zi(L,D){let M=k.blockers.get(L)||ks;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 za(L){let{currentLocation:D,nextLocation:M,historyAction:Y}=L;if(ue.size===0)return;ue.size>1&&ri(!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 as(L){let D=[];return ye.forEach((M,Y)=>{(!L||L(Y))&&(M.cancel(),D.push(Y),ye.delete(Y))}),D}function tc(L,D,M){if(m=L,x=D,y=M||null,!_&&k.navigation===id){_=!0;let Y=us(k.location,k.matches);Y!=null&&Te({restoreScrollPosition:Y})}return()=>{m=null,x=null,y=null}}function ls(L,D){return y&&y(L,D.map(Y=>n2(Y,k.loaderData)))||L.key}function Ji(L,D){if(m&&x){let M=ls(L,D);m[M]=x()}}function us(L,D){if(m){let M=ls(L,D),Y=m[M];if(typeof Y=="number")return Y}return null}function Fa(L){o={},l=uf(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:tc,navigate:Pe,fetch:os,revalidate:Ne,createHref:L=>e.history.createHref(L),encodeLocation:L=>e.history.encodeLocation(L),getFetcher:Pr,deleteFetcher:$n,dispose:We,getBlocker:ec,deleteBlocker:Ia,_internalFetchControllers:ne,_internalActiveDeferreds:ye,_internalSetRoutes:Fa},N}function P2(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function cf(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=jp(i||".",Op(u,o),ts(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&&!Np(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 Pg(e,t,n,r){if(!r||!P2(r))return{path:n};if(r.formMethod&&!M2(r.formMethod))return{path:n,error:Sn(405,{method:r.formMethod})};let i=()=>({path:n,error:Sn(400,{type:"invalid-body"})}),o=r.formMethod||"get",s=e?o.toUpperCase():o.toLowerCase(),l=i1(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=df(r.formData),c=r.formData;else if(r.body instanceof FormData)u=df(r.body),c=r.body;else if(r.body instanceof URLSearchParams)u=r.body,c=Ag(u);else if(r.body==null)u=new URLSearchParams,c=new FormData;else try{u=new URLSearchParams(r.body),c=Ag(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&&Np(h.search)&&u.append("index",""),h.search="?"+u,{path:Vi(h),submission:f}}function N2(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 Ng(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=N2(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(L2(t.loaderData,t.matches[A],O)||l.some(I=>I===O.route.id))return!0;let H=t.matches[A],z=O;return Lg(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||r1(H,z)}))}),k=[];return f.forEach((O,A)=>{if(o||!n.some(K=>K.route.id===O.routeId)||c.has(A))return;let F=So(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=ff(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=Lg(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 L2(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function r1(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Lg(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Rg(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";ri(!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&&!e2.has(s)&&(o[s]=r[s])}Object.assign(i,o),Object.assign(i,ct({},t(i),{lazy:void 0}))}async function Cs(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}),Rg(n.route,o,i)]);if(C)throw C;f=v[0]}else if(await Rg(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 Sn(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 Sn(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($2(f)){let _=f.status;if(k2.has(_)){let v=f.headers.get("Location");if(Se(v,"Redirects returned/thrown from loaders/actions must have a Location header"),!t1.test(v))v=cf(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=ts(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 Pp(_,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(D2(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 Ts(e,t,n,r){let i=e.createURL(i1(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=df(r.formData):o.body=r.formData}return new Request(i,o)}function df(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Ag(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function R2(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"),ko(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=Jy(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 Dg(e,t,n,r,i,o,s,l){let{loaderData:u,errors:c}=R2(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 Mg(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 Sn(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 Pp(e||500,s,new Error(l),!0)}function Ig(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Li(n))return{result:n,idx:t}}}function i1(e){let t=typeof e=="string"?ur(e):e;return Vi(ct({},t,{hash:""}))}function A2(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 ko(e){return e.type===lt.error}function Li(e){return(e&&e.type)===lt.redirect}function D2(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 $2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function M2(e){return S2.has(e.toLowerCase())}function Hn(e){return E2.has(e.toLowerCase())}async function zg(e,t,n,r,i,o){for(let s=0;sh.route.id===u.route.id),f=c!=null&&!r1(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 o1(l,h,i).then(m=>{m&&(n[s]=m||n[s])})}}}async function o1(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 Np(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ff(e,t){let n=typeof t=="string"?ur(t).search:t.search;if(e[e.length-1].route.index&&Np(n||""))return e[e.length-1];let r=Zy(e);return r[r.length-1]}function Fg(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 od(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 I2(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 Os(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 z2(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 Mr(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 F2(e,t){try{let n=e.sessionStorage.getItem(n1);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 B2(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(n1,JSON.stringify(n))}catch(r){ri(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.21.1 * @@ -73,7 +73,7 @@ Error generating stack: `+o.message+` * 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()})($v,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}`,os=`touchmove${gt}`,ss=`touchend${gt}`,Dn=`pointerdown${gt}`,vn=`pointerup${gt}`,ci={endCallback:null,leftCallback:null,rightCallback:null},jr={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 jr}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,vn,a=>this._end(a)),this._element.classList.add("pointer-event")):(R.on(this._element,cr,a=>this._start(a)),R.on(this._element,os,a=>this._move(a)),R.on(this._element,ss,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",Pr=".data-api",rn="next",$n="prev",It="left",di="right",Ma=`slide${jt}`,Xi=`slid${jt}`,ec=`keydown${jt}`,Ia=`mouseenter${jt}`,Zi=`mouseleave${jt}`,za=`dragstart${jt}`,as=`load${jt}${Pr}`,tc=`click${jt}${Pr}`,ls="carousel",Ji="active",us=".active",Fa=".carousel-item",L=us+Fa,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===ls&&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,ec,a=>this._keydown(a)),this._config.pause==="hover"&&(R.on(this._element,Ia,()=>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,za,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(us,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(Ma).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(Fa,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,tc,"[data-bs-slide], [data-bs-slide-to]",function(p){const a=G.getElementFromSelector(this);if(!a||!a.classList.contains(ls))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,as,()=>{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",$e="collapse",ot="collapsing",Vt=`:scope .${$e} .${$e}`,st='[data-bs-toggle="collapse"]',Nr={parent:null,toggle:!0},cs={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 Nr}static get DefaultType(){return cs}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($e),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($e,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($e,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($e),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",Lr="auto",sn=[et,dt,Pt,_t],yn="start",Ae="end",Ke="clippingParents",Gt="viewport",Mn="popper",Ba="reference",nc=sn.reduce(function(p,a){return p.concat([a+"-"+yn,a+"-"+Ae])},[]),rc=[].concat(sn,[Lr]).reduce(function(p,a){return p.concat([a,a+"-"+yn,a+"-"+Ae])},[]),Qp="beforeRead",Yp="read",qp="afterRead",Xp="beforeMain",Zp="main",Jp="afterMain",eh="beforeWrite",th="write",nh="afterWrite",rh=[Qp,Yp,qp,Xp,Zp,Jp,eh,th,nh];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 wn(p){return p instanceof an(p).HTMLElement||p instanceof HTMLElement}function ic(p){return typeof ShadowRoot<"u"&&(p instanceof an(p).ShadowRoot||p instanceof ShadowRoot)}const oc={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];wn(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},{});wn(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,Ua=Math.min,eo=Math.round;function sc(){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 ih(){return!/^((?!chrome|android).)*safari/i.test(sc())}function to(p,a,d){a===void 0&&(a=!1),d===void 0&&(d=!1);var w=p.getBoundingClientRect(),j=1,P=1;a&&wn(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=!ih()&&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 ac(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 oh(p,a){var d=a.getRootNode&&a.getRootNode();if(p.contains(a))return!0;if(d&&ic(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 Iw(p){return["table","td","th"].indexOf(qn(p))>=0}function Rr(p){return((fi(p)?p.ownerDocument:p.document)||window.document).documentElement}function Ha(p){return qn(p)==="html"?p:p.assignedSlot||p.parentNode||(ic(p)?p.host:null)||Rr(p)}function sh(p){return wn(p)&&dr(p).position!=="fixed"?p.offsetParent:null}function ds(p){for(var a=an(p),d=sh(p);d&&Iw(d)&&dr(d).position==="static";)d=sh(d);return d&&(qn(d)==="html"||qn(d)==="body"&&dr(d).position==="static")?a:d||function(w){var j=/firefox/i.test(sc());if(/Trident/i.test(sc())&&wn(w)&&dr(w).position==="fixed")return null;var P=Ha(w);for(ic(P)&&(P=P.host);wn(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 lc(p){return["top","bottom"].indexOf(p)>=0?"x":"y"}function fs(p,a,d){return pi(p,Ua(a,d))}function ah(p){return Object.assign({},{top:0,right:0,bottom:0,left:0},p)}function lh(p,a){return a.reduce(function(d,w){return d[w]=p,d},{})}const uh={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=lc(B),J=[_t,Pt].indexOf(B)>=0?"height":"width";if(P&&$){var te=function(Ge,Ue){return ah(typeof(Ge=typeof Ge=="function"?Ge(Object.assign({},Ue.rects,{placement:Ue.placement})):Ge)!="number"?Ge:lh(Ge,sn))}(j.padding,d),X=ac(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=ds(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=fs(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)))&&oh(a.elements.popper,w)&&(a.elements.arrow=w)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function no(p){return p.split("-")[1]}var zw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ch(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=ds(d),Be="clientHeight",Ge="clientWidth";Le===an(d)&&dr(Le=Rr(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&&zw),ln=te===!0?function(zn,zt){var _n=zn.x,En=zn.y,at=zt.devicePixelRatio||1;return{x:eo(_n*at)/at||0,y:eo(En*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 uc={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,ch(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,ch(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 Wa={passive:!0};const cc={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,Wa)}),B&&Q.addEventListener("resize",d.update,Wa),function(){P&&J.forEach(function(te){te.removeEventListener("scroll",d.update,Wa)}),B&&Q.removeEventListener("resize",d.update,Wa)}},data:{}};var Fw={left:"right",right:"left",bottom:"top",top:"bottom"};function Va(p){return p.replace(/left|right|bottom|top/g,function(a){return Fw[a]})}var Bw={start:"end",end:"start"};function dh(p){return p.replace(/start|end/g,function(a){return Bw[a]})}function dc(p){var a=an(p);return{scrollLeft:a.pageXOffset,scrollTop:a.pageYOffset}}function fc(p){return to(Rr(p)).left+dc(p).scrollLeft}function pc(p){var a=dr(p),d=a.overflow,w=a.overflowX,j=a.overflowY;return/auto|scroll|overlay|hidden/.test(d+j+w)}function fh(p){return["html","body","#document"].indexOf(qn(p))>=0?p.ownerDocument.body:wn(p)&&pc(p)?p:fh(Ha(p))}function ps(p,a){var d;a===void 0&&(a=[]);var w=fh(p),j=w===((d=p.ownerDocument)==null?void 0:d.body),P=an(w),$=j?[P].concat(P.visualViewport||[],pc(w)?w:[]):w,B=a.concat($);return j?B:B.concat(ps(Ha($)))}function hc(p){return Object.assign({},p,{left:p.x,top:p.y,right:p.x+p.width,bottom:p.y+p.height})}function ph(p,a,d){return a===Gt?hc(function(w,j){var P=an(w),$=Rr(w),B=P.visualViewport,Q=$.clientWidth,J=$.clientHeight,te=0,X=0;if(B){Q=B.width,J=B.height;var _e=ih();(_e||!_e&&j==="fixed")&&(te=B.offsetLeft,X=B.offsetTop)}return{width:Q,height:J,x:te+fc(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):hc(function(w){var j,P=Rr(w),$=dc(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+fc(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}}(Rr(p)))}function hh(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?lc(P):null;if(J!=null){var te=J==="y"?"height":"width";switch($){case yn: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=ah(typeof ge!="number"?ge:lh(ge,sn)),Ye=_e===Mn?Ba:Mn,Ce=p.rects.popper,Ie=p.elements[me?Ye:_e],Ee=function(zt,_n,En,at){var Zn=_n==="clippingParents"?function(Qe){var Ft=ps(Ha(Qe)),bn=["absolute","fixed"].indexOf(dr(Qe).position)>=0&&wn(Qe)?ds(Qe):Qe;return fi(bn)?Ft.filter(function(Dr){return fi(Dr)&&oh(Dr,bn)&&qn(Dr)!=="body"}):[]}(zt):[].concat(_n),Jn=[].concat(Zn,[En]),so=Jn[0],St=Jn.reduce(function(Qe,Ft){var bn=ph(zt,Ft,at);return Qe.top=pi(bn.top,Qe.top),Qe.right=Ua(bn.right,Qe.right),Qe.bottom=Ua(bn.bottom,Qe.bottom),Qe.left=pi(bn.left,Qe.left),Qe},ph(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||Rr(p.elements.popper),Q,te,$),Le=to(p.elements.reference),Be=hh({reference:Le,element:Ce,strategy:"absolute",placement:j}),Ge=hc(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 _n=[Pt,dt].indexOf(zt)>=0?1:-1,En=[et,dt].indexOf(zt)>=0?"y":"x";ft[zt]+=zn[En]*_n})}return ft}function Uw(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?rc:Q,te=no(w),X=te?B?nc:nc.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 mh={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)===Lr)return[];var Ft=Va(Qe);return[dh(Qe),Ft,dh(Ft)]}(ge):[Va(ge)]),Ce=[ge].concat(Ye).reduce(function(Qe,Ft){return Qe.concat(Xn(Ft)===Lr?Uw(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,_n=zt?"width":"height",En=ro(a,{placement:ft,boundary:te,rootBoundary:X,altBoundary:_e,padding:J}),at=zt?zn?Pt:_t:zn?dt:et;Ie[_n]>Ee[_n]&&(at=Va(at));var Zn=Va(at),Jn=[];if(P&&Jn.push(En[ln]<=0),B&&Jn.push(En[at]<=0,En[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(bn){var Dr=Le.get(bn);if(Dr)return Dr.slice(0,Qe).every(function(el){return el})});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 gh(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 vh(p){return[et,Pt,dt,_t].some(function(a){return p[a]>=0})}const yh={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=gh($,w),J=gh(B,j,P),te=vh(Q),X=vh(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})}},wh={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,$=rc.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]=$}},mc={name:"popperOffsets",enabled:!0,phase:"read",fn:function(p){var a=p.state,d=p.name;a.modifiersData[d]=hh({reference:a.rects.reference,element:a.rects.popper,strategy:"absolute",placement:a.placement})},data:{}},xh={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=lc(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,_n=Ie==="y"?et:_t,En=Ie==="y"?dt:Pt,at=Ie==="y"?"height":"width",Zn=Le[Ie],Jn=Zn+ge[_n],so=Zn-ge[En],St=ce?-Ge[at]/2:0,Qe=Ye===yn?Be[at]:Ge[at],Ft=Ye===yn?-Ge[at]:-Be[at],bn=a.elements.arrow,Dr=ce&&bn?ac(bn):{width:0,height:0},el=a.modifiersData["arrow#persistent"]?a.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},sm=el[_n],am=el[En],tl=fs(0,Be[at],Dr[at]),v_=Ce?Be[at]/2-St-tl-sm-ft.mainAxis:Qe-tl-sm-ft.mainAxis,y_=Ce?-Be[at]/2+St+tl+am+ft.mainAxis:Ft+tl+am+ft.mainAxis,Oc=a.elements.arrow&&ds(a.elements.arrow),w_=Oc?Ie==="y"?Oc.clientTop||0:Oc.clientLeft||0:0,lm=(zt=ln==null?void 0:ln[Ie])!=null?zt:0,x_=Zn+y_-lm,um=fs(ce?Ua(Jn,Zn+v_-lm-w_):Jn,Zn,ce?pi(so,x_):so);Le[Ie]=um,zn[Ie]=um-Zn}if(B){var cm,__=Ie==="x"?et:_t,E_=Ie==="x"?dt:Pt,_i=Le[Ee],nl=Ee==="y"?"height":"width",dm=_i+ge[__],fm=_i-ge[E_],jc=[et,_t].indexOf(Ve)!==-1,pm=(cm=ln==null?void 0:ln[Ee])!=null?cm:0,hm=jc?dm:_i-Be[nl]-Ge[nl]-pm+ft.altAxis,mm=jc?_i+Be[nl]+Ge[nl]-pm-ft.altAxis:fm,gm=ce&&jc?function(b_,S_,Pc){var vm=fs(b_,S_,Pc);return vm>Pc?Pc:vm}(hm,_i,mm):fs(ce?hm:dm,_i,ce?mm:fm);Le[Ee]=gm,zn[Ee]=gm-_i}a.modifiersData[w]=zn}},requiresIfExists:["offset"]};function Hw(p,a,d){d===void 0&&(d=!1);var w,j,P=wn(a),$=wn(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=Rr(a),Q=to(p,$,d),J={scrollLeft:0,scrollTop:0},te={x:0,y:0};return(P||!P&&!d)&&((qn(a)!=="body"||pc(B))&&(J=(w=a)!==an(w)&&wn(w)?{scrollLeft:(j=w).scrollLeft,scrollTop:j.scrollTop}:dc(w)),wn(a)?((te=to(a,!0)).x+=a.clientLeft,te.y+=a.clientTop):B&&(te.x=fc(B))),{x:Q.left+J.scrollLeft-te.x,y:Q.top+J.scrollTop-te.y,width:Q.width,height:Q.height}}function Ww(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 _h={placement:"bottom",modifiers:[],strategy:"absolute"};function Eh(){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===kh,!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(Jw);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=[Kw,kh].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,Th,mi,In.dataApiKeydownHandler),R.on(document,Th,Ka,In.dataApiKeydownHandler),R.on(document,Ch,In.clearMenus),R.on(document,Zw,In.clearMenus),R.on(document,Ch,mi,function(p){p.preventDefault(),In.getOrCreateInstance(this).toggle()}),v(In);const Oh="backdrop",jh="show",Ph=`mousedown.bs.${Oh}`,lx={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ux={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Nh extends ye{constructor(a){super(),this._config=this._getConfig(a),this._isAppended=!1,this._element=null}static get Default(){return lx}static get DefaultType(){return ux}static get NAME(){return Oh}show(a){if(!this._config.isVisible)return void g(a);this._append();const d=this._getElement();this._config.isAnimated&&y(d),d.classList.add(jh),this._emulateAnimation(()=>{g(a)})}hide(a){this._config.isVisible?(this._getElement().classList.remove(jh),this._emulateAnimation(()=>{this.dispose(),g(a)})):g(a)}dispose(){this._isAppended&&(R.off(this._element,Ph),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,Ph,()=>{g(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(a){b(a,this._getElement(),this._config.isAnimated)}}const Qa=".bs.focustrap",cx=`focusin${Qa}`,dx=`keydown.tab${Qa}`,Lh="backward",fx={autofocus:!0,trapElement:null},px={autofocus:"boolean",trapElement:"element"};class Rh extends ye{constructor(a){super(),this._config=this._getConfig(a),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return fx}static get DefaultType(){return px}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),R.off(document,Qa),R.on(document,cx,a=>this._handleFocusin(a)),R.on(document,dx,a=>this._handleKeydown(a)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,R.off(document,Qa))}_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===Lh?w[w.length-1].focus():w[0].focus()}_handleKeydown(a){a.key==="Tab"&&(this._lastTabNavDirection=a.shiftKey?Lh:"forward")}}const Ah=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Dh=".sticky-top",Ya="padding-right",$h="margin-right";class yc{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,Ya,d=>d+a),this._setElementAttributes(Ah,Ya,d=>d+a),this._setElementAttributes(Dh,$h,d=>d-a)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Ya),this._resetElementAttributes(Ah,Ya),this._resetElementAttributes(Dh,$h)}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 xn=".bs.modal",hx=`hide${xn}`,mx=`hidePrevented${xn}`,Mh=`hidden${xn}`,Ih=`show${xn}`,gx=`shown${xn}`,vx=`resize${xn}`,yx=`click.dismiss${xn}`,wx=`mousedown.dismiss${xn}`,xx=`keydown.dismiss${xn}`,_x=`click${xn}.data-api`,zh="modal-open",Fh="show",wc="modal-static",Ex={backdrop:!0,focus:!0,keyboard:!0},bx={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 yc,this._addEventListeners()}static get Default(){return Ex}static get DefaultType(){return bx}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,Ih,{relatedTarget:a}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(zh),this._adjustDialog(),this._backdrop.show(()=>this._showElement(a)))}hide(){this._isShown&&!this._isTransitioning&&(R.trigger(this._element,hx).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Fh),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){R.off(window,xn),R.off(this._dialog,xn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Nh({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Rh({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(Fh),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,R.trigger(this._element,gx,{relatedTarget:a})},this._dialog,this._isAnimated())}_addEventListeners(){R.on(this._element,xx,a=>{a.key==="Escape"&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),R.on(window,vx,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),R.on(this._element,wx,a=>{R.one(this._element,yx,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(zh),this._resetAdjustments(),this._scrollBar.reset(),R.trigger(this._element,Mh)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(R.trigger(this._element,mx).defaultPrevented)return;const a=this._element.scrollHeight>document.documentElement.clientHeight,d=this._element.style.overflowY;d==="hidden"||this._element.classList.contains(wc)||(a||(this._element.style.overflowY="hidden"),this._element.classList.add(wc),this._queueCallback(()=>{this._element.classList.remove(wc),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,_x,'[data-bs-toggle="modal"]',function(p){const a=G.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&p.preventDefault(),R.one(a,Ih,w=>{w.defaultPrevented||R.one(a,Mh,()=>{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",Bh=".data-api",Sx=`load${fr}${Bh}`,Uh="show",Hh="showing",Wh="hiding",Vh=".offcanvas.show",kx=`show${fr}`,Cx=`shown${fr}`,Tx=`hide${fr}`,Gh=`hidePrevented${fr}`,Kh=`hidden${fr}`,Ox=`resize${fr}`,jx=`click${fr}${Bh}`,Px=`keydown.dismiss${fr}`,Nx={backdrop:!0,keyboard:!0,scroll:!1},Lx={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 Nx}static get DefaultType(){return Lx}static get NAME(){return"offcanvas"}toggle(a){return this._isShown?this.hide():this.show(a)}show(a){this._isShown||R.trigger(this._element,kx,{relatedTarget:a}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new yc().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Hh),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Uh),this._element.classList.remove(Hh),R.trigger(this._element,Cx,{relatedTarget:a})},this._element,!0))}hide(){this._isShown&&(R.trigger(this._element,Tx).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Wh),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Uh,Wh),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new yc().reset(),R.trigger(this._element,Kh)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const a=!!this._config.backdrop;return new Nh({className:"offcanvas-backdrop",isVisible:a,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:a?()=>{this._config.backdrop!=="static"?this.hide():R.trigger(this._element,Gh)}:null})}_initializeFocusTrap(){return new Rh({trapElement:this._element})}_addEventListeners(){R.on(this._element,Px,a=>{a.key==="Escape"&&(this._config.keyboard?this.hide():R.trigger(this._element,Gh))})}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,jx,'[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,Kh,()=>{c(this)&&this.focus()});const d=G.findOne(Vh);d&&d!==a&&pr.getInstance(d).hide(),pr.getOrCreateInstance(a).toggle(this)}),R.on(window,Sx,()=>{for(const p of G.find(Vh))pr.getOrCreateInstance(p).show()}),R.on(window,Ox,()=>{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 Qh={"*":["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:[]},Rx=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Ax=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Dx=(p,a)=>{const d=p.nodeName.toLowerCase();return a.includes(d)?!Rx.has(d)||!!Ax.test(p.nodeValue):a.filter(w=>w instanceof RegExp).some(w=>w.test(d))},$x={allowList:Qh,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Mx={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Ix={entry:"(string|element|function|null)",selector:"(string|element)"};class zx extends ye{constructor(a){super(),this._config=this._getConfig(a)}static get Default(){return $x}static get DefaultType(){return Mx}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},Ix)}_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)Dx(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 Fx=new Set(["sanitize","allowList","sanitizeFn"]),xc="fade",qa="show",Yh=".modal",qh="hide.bs.modal",hs="hover",_c="focus",Bx={AUTO:"auto",TOP:"top",RIGHT:C()?"left":"right",BOTTOM:"bottom",LEFT:C()?"right":"left"},Ux={allowList:Qh,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"},Hx={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(bh===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 Ux}static get DefaultType(){return Hx}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(Yh),qh,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[_c]=!1,this._activeTrigger[hs]=!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(xc,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(xc),d}setContent(a){this._newContent=a,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(a){return this._templateFactory?this._templateFactory.changeContent(a):this._templateFactory=new zx({...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(xc)}_isShown(){return this.tip&&this.tip.classList.contains(qa)}_createPopper(a){const d=g(this._config.placement,[this,a,this._element]),w=Bx[d.toUpperCase()];return gc(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===hs?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),j=d===hs?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"?_c:hs]=!0,$._enter()}),R.on(this._element,j,this._config.selector,P=>{const $=this._initializeOnDelegatedTarget(P);$._activeTrigger[P.type==="focusout"?_c:hs]=$._element.contains(P.relatedTarget),$._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},R.on(this._element.closest(Yh),qh,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))Fx.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 Wx={...vi.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},Vx={...vi.DefaultType,content:"(null|string|element|function)"};class Xa extends vi{static get Default(){return Wx}static get DefaultType(){return Vx}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=Xa.getOrCreateInstance(this,a);if(typeof a=="string"){if(d[a]===void 0)throw new TypeError(`No method named "${a}"`);d[a]()}})}}v(Xa);const Ec=".bs.scrollspy",Gx=`activate${Ec}`,Xh=`click${Ec}`,Kx=`load${Ec}.data-api`,oo="active",bc="[href]",Zh=".nav-link",Qx=`${Zh}, .nav-item > ${Zh}, .list-group-item`,Yx={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},qx={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class ms 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 Yx}static get DefaultType(){return qx}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,Xh),R.on(this._config.target,Xh,bc,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(bc,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,Gx,{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,Qx))w.classList.add(oo)}_clearActiveClass(a){a.classList.remove(oo);const d=G.find(`${bc}.${oo}`,a);for(const w of d)w.classList.remove(oo)}static jQueryInterface(a){return this.each(function(){const d=ms.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,Kx,()=>{for(const p of G.find('[data-bs-spy="scroll"]'))ms.getOrCreateInstance(p)}),v(ms);const yi=".bs.tab",Xx=`hide${yi}`,Zx=`hidden${yi}`,Jx=`show${yi}`,e_=`shown${yi}`,t_=`click${yi}`,n_=`keydown${yi}`,r_=`load${yi}`,i_="ArrowLeft",Jh="ArrowRight",o_="ArrowUp",em="ArrowDown",Sc="Home",tm="End",wi="active",nm="fade",kc="show",rm=".dropdown-toggle",Cc=`:not(${rm})`,im='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Tc=`.nav-link${Cc}, .list-group-item${Cc}, [role="tab"]${Cc}, ${im}`,s_=`.${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,n_,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,Xx,{relatedTarget:a}):null;R.trigger(a,Jx,{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,e_,{relatedTarget:d})):a.classList.add(kc)},a,a.classList.contains(nm)))}_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,Zx,{relatedTarget:d})):a.classList.remove(kc)},a,a.classList.contains(nm)))}_keydown(a){if(![i_,Jh,o_,em,Sc,tm].includes(a.key))return;a.stopPropagation(),a.preventDefault();const d=this._getChildren().filter(j=>!f(j));let w;if([Sc,tm].includes(a.key))w=d[a.key===Sc?0:d.length-1];else{const j=[Jh,em].includes(a.key);w=T(d,a.target,j,!0)}w&&(w.focus({preventScroll:!0}),xi.getOrCreateInstance(w).show())}_getChildren(){return G.find(Tc,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(rm,wi),j(".dropdown-menu",kc),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(Tc)?a:G.findOne(Tc,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,t_,im,function(p){["A","AREA"].includes(this.tagName)&&p.preventDefault(),f(this)||xi.getOrCreateInstance(this).show()}),R.on(window,r_,()=>{for(const p of G.find(s_))xi.getOrCreateInstance(p)}),v(xi);const Ar=".bs.toast",a_=`mouseover${Ar}`,l_=`mouseout${Ar}`,u_=`focusin${Ar}`,c_=`focusout${Ar}`,d_=`hide${Ar}`,f_=`hidden${Ar}`,p_=`show${Ar}`,h_=`shown${Ar}`,om="hide",Za="show",Ja="showing",m_={animation:"boolean",autohide:"boolean",delay:"number"},g_={animation:!0,autohide:!0,delay:5e3};class gs extends ue{constructor(a,d){super(a,d),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return g_}static get DefaultType(){return m_}static get NAME(){return"toast"}show(){R.trigger(this._element,p_).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(om),y(this._element),this._element.classList.add(Za,Ja),this._queueCallback(()=>{this._element.classList.remove(Ja),R.trigger(this._element,h_),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(R.trigger(this._element,d_).defaultPrevented||(this._element.classList.add(Ja),this._queueCallback(()=>{this._element.classList.add(om),this._element.classList.remove(Ja,Za),R.trigger(this._element,f_)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Za),super.dispose()}isShown(){return this._element.classList.contains(Za)}_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,a_,a=>this._onInteraction(a,!0)),R.on(this._element,l_,a=>this._onInteraction(a,!1)),R.on(this._element,u_,a=>this._onInteraction(a,!0)),R.on(this._element,c_,a=>this._onInteraction(a,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(a){return this.each(function(){const d=gs.getOrCreateInstance(this,a);if(typeof a=="string"){if(d[a]===void 0)throw new TypeError(`No method named "${a}"`);d[a](this)}})}}return We(gs),v(gs),{Alert:Pe,Button:ze,Carousel:Z,Collapse:on,Dropdown:In,Modal:gi,Offcanvas:pr,Popover:Xa,ScrollSpy:ms,Tab:xi,Toast:gs,Tooltip:vi}})})(kS);var Yt=function(){return Yt=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0?Ct(ns,--Ln):0,Bo--,yt===10&&(Bo=1,Uu--),yt}function Kn(){return yt=Ln2||mf(yt)>3?"":" "}function $S(e,t){for(;--t&&Kn()&&!(yt<48||yt>102||yt>57&&yt<65||yt>70&&yt<97););return Wu(e,zl()+(t<6&&Mi()==32&&Kn()==32))}function gf(e){for(;Kn();)switch(yt){case e:return Ln;case 34:case 39:e!==34&&e!==39&&gf(yt);break;case 40:e===41&&gf(e);break;case 92:Kn();break}return Ln}function MS(e,t){for(;Kn()&&e+yt!==47+10;)if(e+yt===42+42&&Mi()===47)break;return"/*"+Wu(t,Ln-1)+"*"+Rp(e===47?e:Kn())}function IS(e){for(;!mf(Mi());)Kn();return Wu(e,Ln)}function zS(e){return AS(Fl("",null,null,null,[""],e=RS(e),0,[0],e))}function Fl(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){Il(O+=be(sd(g),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:O+=sd(g);break;case 9:case 10:case 13:case 32:O+=DS(x);break;case 92:O+=$S(zl()-1,7);continue;case 47:switch(Mi()){case 42:case 47:Ds(FS(MS(Kn(),zl()),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?Yg(O+";",r,n,h-1,u):Yg(be(O," ","")+";",r,n,h-2,u),u);break;case 59:O+=";";default:if(Ds(k=Qg(O,t,n,c,f,i,l,b,T=[],N=[],h,o),o),g===123)if(f===0)Fl(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:Fl(e,k,k,r&&Ds(Qg(e,k,k,0,0,i,l,b,i,T=[],h,N),N),i,N,h,l,r?T:N);break;default:Fl(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&&LS()==125)continue}switch(O+=Rp(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+=sd(Kn())),m=Mi(),f=h=nr(b=O+=IS(zl())),g++;break;case 45:x===45&&nr(O)==2&&(_=0)}}return o}function Qg(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 Hu(e,t,n,i===0?Bu:l,u,c,f,h)}function FS(e,t,n,r){return Hu(e,t,n,h1,Rp(NS()),Fo(e,2,-2),0,r)}function Yg(e,t,n,r,i){return Hu(e,t,n,Lp,Fo(e,0,r),Fo(e,r+1,-1),r,i)}function w1(e,t,n){switch(jS(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/)})?~Il(e+(n=n[t].value),"span")?e:Ze+be(e,"-start","")+e+Ze+"grid-row-span:"+(~Il(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~Il(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 yu(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case Lp:e.return=w1(e.value,e.length,n);return;case m1:return yu([Ir(e,{value:be(e.value,"@","@"+Fe)})],r);case Bu:if(e.length)return PS(n=e.props,function(i){switch(mr(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":lo(Ir(e,{props:[be(i,/:(read-\w+)/,":"+Qs+"$1")]})),lo(Ir(e,{props:[i]})),hf(e,{props:Kg(n,r)});break;case"::placeholder":lo(Ir(e,{props:[be(i,/:(plac\w+)/,":"+Fe+"input-$1")]})),lo(Ir(e,{props:[be(i,/:(plac\w+)/,":"+Qs+"$1")]})),lo(Ir(e,{props:[be(i,/:(plac\w+)/,Ze+"input-$1")]})),lo(Ir(e,{props:[i]})),hf(e,{props:Kg(n,r)});break}return""})}}var VS={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",Vu="6.1.3",Ap=`/*!sc*/ + */(function(e,t){(function(n,r){e.exports=r()})($v,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}`,os=`touchmove${gt}`,ss=`touchend${gt}`,Dn=`pointerdown${gt}`,vn=`pointerup${gt}`,ci={endCallback:null,leftCallback:null,rightCallback:null},jr={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 jr}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,vn,a=>this._end(a)),this._element.classList.add("pointer-event")):(R.on(this._element,cr,a=>this._start(a)),R.on(this._element,os,a=>this._move(a)),R.on(this._element,ss,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",Pr=".data-api",on="next",$n="prev",It="left",di="right",Ma=`slide${jt}`,Xi=`slid${jt}`,ec=`keydown${jt}`,Ia=`mouseenter${jt}`,Zi=`mouseleave${jt}`,za=`dragstart${jt}`,as=`load${jt}${Pr}`,tc=`click${jt}${Pr}`,ls="carousel",Ji="active",us=".active",Fa=".carousel-item",L=us+Fa,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===ls&&this.cycle()}static get Default(){return M}static get DefaultType(){return Y}static get NAME(){return"carousel"}next(){this._slide(on)}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?on:$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,ec,a=>this._keydown(a)),this._config.pause==="hover"&&(R.on(this._element,Ia,()=>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,za,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(us,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===on,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(Ma).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(Fa,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(a){return C()?a===It?$n:on:a===It?on:$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,tc,"[data-bs-slide], [data-bs-slide-to]",function(p){const a=G.getElementFromSelector(this);if(!a||!a.classList.contains(ls))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,as,()=>{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",$e="collapse",ot="collapsing",Vt=`:scope .${$e} .${$e}`,st='[data-bs-toggle="collapse"]',Nr={parent:null,toggle:!0},cs={parent:"(null|element)",toggle:"boolean"};class sn 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 Nr}static get DefaultType(){return cs}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=>sn.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($e),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($e,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($e,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($e),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=sn.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))sn.getOrCreateInstance(a,{toggle:!1}).toggle()}),v(sn);var et="top",dt="bottom",Pt="right",_t="left",Lr="auto",an=[et,dt,Pt,_t],yn="start",Ae="end",Ke="clippingParents",Gt="viewport",Mn="popper",Ba="reference",nc=an.reduce(function(p,a){return p.concat([a+"-"+yn,a+"-"+Ae])},[]),rc=[].concat(an,[Lr]).reduce(function(p,a){return p.concat([a,a+"-"+yn,a+"-"+Ae])},[]),Qp="beforeRead",Yp="read",qp="afterRead",Xp="beforeMain",Zp="main",Jp="afterMain",eh="beforeWrite",th="write",nh="afterWrite",rh=[Qp,Yp,qp,Xp,Zp,Jp,eh,th,nh];function qn(p){return p?(p.nodeName||"").toLowerCase():null}function ln(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 ln(p).Element||p instanceof Element}function wn(p){return p instanceof ln(p).HTMLElement||p instanceof HTMLElement}function ic(p){return typeof ShadowRoot<"u"&&(p instanceof ln(p).ShadowRoot||p instanceof ShadowRoot)}const oc={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];wn(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},{});wn(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,Ua=Math.min,eo=Math.round;function sc(){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 ih(){return!/^((?!chrome|android).)*safari/i.test(sc())}function to(p,a,d){a===void 0&&(a=!1),d===void 0&&(d=!1);var w=p.getBoundingClientRect(),j=1,P=1;a&&wn(p)&&(j=p.offsetWidth>0&&eo(w.width)/p.offsetWidth||1,P=p.offsetHeight>0&&eo(w.height)/p.offsetHeight||1);var $=(fi(p)?ln(p):window).visualViewport,B=!ih()&&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 ac(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 oh(p,a){var d=a.getRootNode&&a.getRootNode();if(p.contains(a))return!0;if(d&&ic(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 ln(p).getComputedStyle(p)}function Iw(p){return["table","td","th"].indexOf(qn(p))>=0}function Rr(p){return((fi(p)?p.ownerDocument:p.document)||window.document).documentElement}function Ha(p){return qn(p)==="html"?p:p.assignedSlot||p.parentNode||(ic(p)?p.host:null)||Rr(p)}function sh(p){return wn(p)&&dr(p).position!=="fixed"?p.offsetParent:null}function ds(p){for(var a=ln(p),d=sh(p);d&&Iw(d)&&dr(d).position==="static";)d=sh(d);return d&&(qn(d)==="html"||qn(d)==="body"&&dr(d).position==="static")?a:d||function(w){var j=/firefox/i.test(sc());if(/Trident/i.test(sc())&&wn(w)&&dr(w).position==="fixed")return null;var P=Ha(w);for(ic(P)&&(P=P.host);wn(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 lc(p){return["top","bottom"].indexOf(p)>=0?"x":"y"}function fs(p,a,d){return pi(p,Ua(a,d))}function ah(p){return Object.assign({},{top:0,right:0,bottom:0,left:0},p)}function lh(p,a){return a.reduce(function(d,w){return d[w]=p,d},{})}const uh={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=lc(B),J=[_t,Pt].indexOf(B)>=0?"height":"width";if(P&&$){var te=function(Ge,Ue){return ah(typeof(Ge=typeof Ge=="function"?Ge(Object.assign({},Ue.rects,{placement:Ue.placement})):Ge)!="number"?Ge:lh(Ge,an))}(j.padding,d),X=ac(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=ds(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=fs(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)))&&oh(a.elements.popper,w)&&(a.elements.arrow=w)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function no(p){return p.split("-")[1]}var zw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ch(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=ds(d),Be="clientHeight",Ge="clientWidth";Le===ln(d)&&dr(Le=Rr(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&&zw),un=te===!0?function(zn,zt){var _n=zn.x,En=zn.y,at=zt.devicePixelRatio||1;return{x:eo(_n*at)/at||0,y:eo(En*at)/at||0}}({x:ce,y:fe},ln(d)):{x:ce,y:fe};return ce=un.x,fe=un.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 uc={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,ch(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,ch(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 Wa={passive:!0};const cc={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=ln(a.elements.popper),J=[].concat(a.scrollParents.reference,a.scrollParents.popper);return P&&J.forEach(function(te){te.addEventListener("scroll",d.update,Wa)}),B&&Q.addEventListener("resize",d.update,Wa),function(){P&&J.forEach(function(te){te.removeEventListener("scroll",d.update,Wa)}),B&&Q.removeEventListener("resize",d.update,Wa)}},data:{}};var Fw={left:"right",right:"left",bottom:"top",top:"bottom"};function Va(p){return p.replace(/left|right|bottom|top/g,function(a){return Fw[a]})}var Bw={start:"end",end:"start"};function dh(p){return p.replace(/start|end/g,function(a){return Bw[a]})}function dc(p){var a=ln(p);return{scrollLeft:a.pageXOffset,scrollTop:a.pageYOffset}}function fc(p){return to(Rr(p)).left+dc(p).scrollLeft}function pc(p){var a=dr(p),d=a.overflow,w=a.overflowX,j=a.overflowY;return/auto|scroll|overlay|hidden/.test(d+j+w)}function fh(p){return["html","body","#document"].indexOf(qn(p))>=0?p.ownerDocument.body:wn(p)&&pc(p)?p:fh(Ha(p))}function ps(p,a){var d;a===void 0&&(a=[]);var w=fh(p),j=w===((d=p.ownerDocument)==null?void 0:d.body),P=ln(w),$=j?[P].concat(P.visualViewport||[],pc(w)?w:[]):w,B=a.concat($);return j?B:B.concat(ps(Ha($)))}function hc(p){return Object.assign({},p,{left:p.x,top:p.y,right:p.x+p.width,bottom:p.y+p.height})}function ph(p,a,d){return a===Gt?hc(function(w,j){var P=ln(w),$=Rr(w),B=P.visualViewport,Q=$.clientWidth,J=$.clientHeight,te=0,X=0;if(B){Q=B.width,J=B.height;var _e=ih();(_e||!_e&&j==="fixed")&&(te=B.offsetLeft,X=B.offsetTop)}return{width:Q,height:J,x:te+fc(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):hc(function(w){var j,P=Rr(w),$=dc(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+fc(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}}(Rr(p)))}function hh(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?lc(P):null;if(J!=null){var te=J==="y"?"height":"width";switch($){case yn: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=ah(typeof ge!="number"?ge:lh(ge,an)),Ye=_e===Mn?Ba:Mn,Ce=p.rects.popper,Ie=p.elements[me?Ye:_e],Ee=function(zt,_n,En,at){var Zn=_n==="clippingParents"?function(Qe){var Ft=ps(Ha(Qe)),bn=["absolute","fixed"].indexOf(dr(Qe).position)>=0&&wn(Qe)?ds(Qe):Qe;return fi(bn)?Ft.filter(function(Dr){return fi(Dr)&&oh(Dr,bn)&&qn(Dr)!=="body"}):[]}(zt):[].concat(_n),Jn=[].concat(Zn,[En]),so=Jn[0],St=Jn.reduce(function(Qe,Ft){var bn=ph(zt,Ft,at);return Qe.top=pi(bn.top,Qe.top),Qe.right=Ua(bn.right,Qe.right),Qe.bottom=Ua(bn.bottom,Qe.bottom),Qe.left=pi(bn.left,Qe.left),Qe},ph(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||Rr(p.elements.popper),Q,te,$),Le=to(p.elements.reference),Be=hh({reference:Le,element:Ce,strategy:"absolute",placement:j}),Ge=hc(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},un=p.modifiersData.offset;if(_e===Mn&&un){var zn=un[j];Object.keys(ft).forEach(function(zt){var _n=[Pt,dt].indexOf(zt)>=0?1:-1,En=[et,dt].indexOf(zt)>=0?"y":"x";ft[zt]+=zn[En]*_n})}return ft}function Uw(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?rc:Q,te=no(w),X=te?B?nc:nc.filter(function(me){return no(me)===te}):an,_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 mh={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)===Lr)return[];var Ft=Va(Qe);return[dh(Qe),Ft,dh(Ft)]}(ge):[Va(ge)]),Ce=[ge].concat(Ye).reduce(function(Qe,Ft){return Qe.concat(Xn(Ft)===Lr?Uw(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,_n=zt?"width":"height",En=ro(a,{placement:ft,boundary:te,rootBoundary:X,altBoundary:_e,padding:J}),at=zt?zn?Pt:_t:zn?dt:et;Ie[_n]>Ee[_n]&&(at=Va(at));var Zn=Va(at),Jn=[];if(P&&Jn.push(En[un]<=0),B&&Jn.push(En[at]<=0,En[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(bn){var Dr=Le.get(bn);if(Dr)return Dr.slice(0,Qe).every(function(el){return el})});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 gh(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 vh(p){return[et,Pt,dt,_t].some(function(a){return p[a]>=0})}const yh={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=gh($,w),J=gh(B,j,P),te=vh(Q),X=vh(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})}},wh={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,$=rc.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]=$}},mc={name:"popperOffsets",enabled:!0,phase:"read",fn:function(p){var a=p.state,d=p.name;a.modifiersData[d]=hh({reference:a.rects.reference,element:a.rects.popper,strategy:"absolute",placement:a.placement})},data:{}},xh={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=lc(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),un=a.modifiersData.offset?a.modifiersData.offset[a.placement]:null,zn={x:0,y:0};if(Le){if(P){var zt,_n=Ie==="y"?et:_t,En=Ie==="y"?dt:Pt,at=Ie==="y"?"height":"width",Zn=Le[Ie],Jn=Zn+ge[_n],so=Zn-ge[En],St=ce?-Ge[at]/2:0,Qe=Ye===yn?Be[at]:Ge[at],Ft=Ye===yn?-Ge[at]:-Be[at],bn=a.elements.arrow,Dr=ce&&bn?ac(bn):{width:0,height:0},el=a.modifiersData["arrow#persistent"]?a.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},sm=el[_n],am=el[En],tl=fs(0,Be[at],Dr[at]),v_=Ce?Be[at]/2-St-tl-sm-ft.mainAxis:Qe-tl-sm-ft.mainAxis,y_=Ce?-Be[at]/2+St+tl+am+ft.mainAxis:Ft+tl+am+ft.mainAxis,Oc=a.elements.arrow&&ds(a.elements.arrow),w_=Oc?Ie==="y"?Oc.clientTop||0:Oc.clientLeft||0:0,lm=(zt=un==null?void 0:un[Ie])!=null?zt:0,x_=Zn+y_-lm,um=fs(ce?Ua(Jn,Zn+v_-lm-w_):Jn,Zn,ce?pi(so,x_):so);Le[Ie]=um,zn[Ie]=um-Zn}if(B){var cm,__=Ie==="x"?et:_t,E_=Ie==="x"?dt:Pt,_i=Le[Ee],nl=Ee==="y"?"height":"width",dm=_i+ge[__],fm=_i-ge[E_],jc=[et,_t].indexOf(Ve)!==-1,pm=(cm=un==null?void 0:un[Ee])!=null?cm:0,hm=jc?dm:_i-Be[nl]-Ge[nl]-pm+ft.altAxis,mm=jc?_i+Be[nl]+Ge[nl]-pm-ft.altAxis:fm,gm=ce&&jc?function(b_,S_,Pc){var vm=fs(b_,S_,Pc);return vm>Pc?Pc:vm}(hm,_i,mm):fs(ce?hm:dm,_i,ce?mm:fm);Le[Ee]=gm,zn[Ee]=gm-_i}a.modifiersData[w]=zn}},requiresIfExists:["offset"]};function Hw(p,a,d){d===void 0&&(d=!1);var w,j,P=wn(a),$=wn(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=Rr(a),Q=to(p,$,d),J={scrollLeft:0,scrollTop:0},te={x:0,y:0};return(P||!P&&!d)&&((qn(a)!=="body"||pc(B))&&(J=(w=a)!==ln(w)&&wn(w)?{scrollLeft:(j=w).scrollLeft,scrollTop:j.scrollTop}:dc(w)),wn(a)?((te=to(a,!0)).x+=a.clientLeft,te.y+=a.clientTop):B&&(te.x=fc(B))),{x:Q.left+J.scrollLeft-te.x,y:Q.top+J.scrollTop-te.y,width:Q.width,height:Q.height}}function Ww(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 _h={placement:"bottom",modifiers:[],strategy:"absolute"};function Eh(){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===kh,!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(Jw);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=[Kw,kh].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,Th,mi,In.dataApiKeydownHandler),R.on(document,Th,Ka,In.dataApiKeydownHandler),R.on(document,Ch,In.clearMenus),R.on(document,Zw,In.clearMenus),R.on(document,Ch,mi,function(p){p.preventDefault(),In.getOrCreateInstance(this).toggle()}),v(In);const Oh="backdrop",jh="show",Ph=`mousedown.bs.${Oh}`,lx={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ux={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Nh extends ye{constructor(a){super(),this._config=this._getConfig(a),this._isAppended=!1,this._element=null}static get Default(){return lx}static get DefaultType(){return ux}static get NAME(){return Oh}show(a){if(!this._config.isVisible)return void g(a);this._append();const d=this._getElement();this._config.isAnimated&&y(d),d.classList.add(jh),this._emulateAnimation(()=>{g(a)})}hide(a){this._config.isVisible?(this._getElement().classList.remove(jh),this._emulateAnimation(()=>{this.dispose(),g(a)})):g(a)}dispose(){this._isAppended&&(R.off(this._element,Ph),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,Ph,()=>{g(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(a){b(a,this._getElement(),this._config.isAnimated)}}const Qa=".bs.focustrap",cx=`focusin${Qa}`,dx=`keydown.tab${Qa}`,Lh="backward",fx={autofocus:!0,trapElement:null},px={autofocus:"boolean",trapElement:"element"};class Rh extends ye{constructor(a){super(),this._config=this._getConfig(a),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return fx}static get DefaultType(){return px}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),R.off(document,Qa),R.on(document,cx,a=>this._handleFocusin(a)),R.on(document,dx,a=>this._handleKeydown(a)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,R.off(document,Qa))}_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===Lh?w[w.length-1].focus():w[0].focus()}_handleKeydown(a){a.key==="Tab"&&(this._lastTabNavDirection=a.shiftKey?Lh:"forward")}}const Ah=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Dh=".sticky-top",Ya="padding-right",$h="margin-right";class yc{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,Ya,d=>d+a),this._setElementAttributes(Ah,Ya,d=>d+a),this._setElementAttributes(Dh,$h,d=>d-a)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Ya),this._resetElementAttributes(Ah,Ya),this._resetElementAttributes(Dh,$h)}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 xn=".bs.modal",hx=`hide${xn}`,mx=`hidePrevented${xn}`,Mh=`hidden${xn}`,Ih=`show${xn}`,gx=`shown${xn}`,vx=`resize${xn}`,yx=`click.dismiss${xn}`,wx=`mousedown.dismiss${xn}`,xx=`keydown.dismiss${xn}`,_x=`click${xn}.data-api`,zh="modal-open",Fh="show",wc="modal-static",Ex={backdrop:!0,focus:!0,keyboard:!0},bx={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 yc,this._addEventListeners()}static get Default(){return Ex}static get DefaultType(){return bx}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,Ih,{relatedTarget:a}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(zh),this._adjustDialog(),this._backdrop.show(()=>this._showElement(a)))}hide(){this._isShown&&!this._isTransitioning&&(R.trigger(this._element,hx).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Fh),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){R.off(window,xn),R.off(this._dialog,xn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Nh({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Rh({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(Fh),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,R.trigger(this._element,gx,{relatedTarget:a})},this._dialog,this._isAnimated())}_addEventListeners(){R.on(this._element,xx,a=>{a.key==="Escape"&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),R.on(window,vx,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),R.on(this._element,wx,a=>{R.one(this._element,yx,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(zh),this._resetAdjustments(),this._scrollBar.reset(),R.trigger(this._element,Mh)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(R.trigger(this._element,mx).defaultPrevented)return;const a=this._element.scrollHeight>document.documentElement.clientHeight,d=this._element.style.overflowY;d==="hidden"||this._element.classList.contains(wc)||(a||(this._element.style.overflowY="hidden"),this._element.classList.add(wc),this._queueCallback(()=>{this._element.classList.remove(wc),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,_x,'[data-bs-toggle="modal"]',function(p){const a=G.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&p.preventDefault(),R.one(a,Ih,w=>{w.defaultPrevented||R.one(a,Mh,()=>{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",Bh=".data-api",Sx=`load${fr}${Bh}`,Uh="show",Hh="showing",Wh="hiding",Vh=".offcanvas.show",kx=`show${fr}`,Cx=`shown${fr}`,Tx=`hide${fr}`,Gh=`hidePrevented${fr}`,Kh=`hidden${fr}`,Ox=`resize${fr}`,jx=`click${fr}${Bh}`,Px=`keydown.dismiss${fr}`,Nx={backdrop:!0,keyboard:!0,scroll:!1},Lx={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 Nx}static get DefaultType(){return Lx}static get NAME(){return"offcanvas"}toggle(a){return this._isShown?this.hide():this.show(a)}show(a){this._isShown||R.trigger(this._element,kx,{relatedTarget:a}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new yc().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Hh),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Uh),this._element.classList.remove(Hh),R.trigger(this._element,Cx,{relatedTarget:a})},this._element,!0))}hide(){this._isShown&&(R.trigger(this._element,Tx).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Wh),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Uh,Wh),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new yc().reset(),R.trigger(this._element,Kh)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const a=!!this._config.backdrop;return new Nh({className:"offcanvas-backdrop",isVisible:a,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:a?()=>{this._config.backdrop!=="static"?this.hide():R.trigger(this._element,Gh)}:null})}_initializeFocusTrap(){return new Rh({trapElement:this._element})}_addEventListeners(){R.on(this._element,Px,a=>{a.key==="Escape"&&(this._config.keyboard?this.hide():R.trigger(this._element,Gh))})}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,jx,'[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,Kh,()=>{c(this)&&this.focus()});const d=G.findOne(Vh);d&&d!==a&&pr.getInstance(d).hide(),pr.getOrCreateInstance(a).toggle(this)}),R.on(window,Sx,()=>{for(const p of G.find(Vh))pr.getOrCreateInstance(p).show()}),R.on(window,Ox,()=>{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 Qh={"*":["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:[]},Rx=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Ax=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Dx=(p,a)=>{const d=p.nodeName.toLowerCase();return a.includes(d)?!Rx.has(d)||!!Ax.test(p.nodeValue):a.filter(w=>w instanceof RegExp).some(w=>w.test(d))},$x={allowList:Qh,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Mx={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Ix={entry:"(string|element|function|null)",selector:"(string|element)"};class zx extends ye{constructor(a){super(),this._config=this._getConfig(a)}static get Default(){return $x}static get DefaultType(){return Mx}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},Ix)}_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)Dx(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 Fx=new Set(["sanitize","allowList","sanitizeFn"]),xc="fade",qa="show",Yh=".modal",qh="hide.bs.modal",hs="hover",_c="focus",Bx={AUTO:"auto",TOP:"top",RIGHT:C()?"left":"right",BOTTOM:"bottom",LEFT:C()?"right":"left"},Ux={allowList:Qh,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"},Hx={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(bh===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 Ux}static get DefaultType(){return Hx}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(Yh),qh,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[_c]=!1,this._activeTrigger[hs]=!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(xc,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(xc),d}setContent(a){this._newContent=a,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(a){return this._templateFactory?this._templateFactory.changeContent(a):this._templateFactory=new zx({...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(xc)}_isShown(){return this.tip&&this.tip.classList.contains(qa)}_createPopper(a){const d=g(this._config.placement,[this,a,this._element]),w=Bx[d.toUpperCase()];return gc(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===hs?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),j=d===hs?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"?_c:hs]=!0,$._enter()}),R.on(this._element,j,this._config.selector,P=>{const $=this._initializeOnDelegatedTarget(P);$._activeTrigger[P.type==="focusout"?_c:hs]=$._element.contains(P.relatedTarget),$._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},R.on(this._element.closest(Yh),qh,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))Fx.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 Wx={...vi.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},Vx={...vi.DefaultType,content:"(null|string|element|function)"};class Xa extends vi{static get Default(){return Wx}static get DefaultType(){return Vx}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=Xa.getOrCreateInstance(this,a);if(typeof a=="string"){if(d[a]===void 0)throw new TypeError(`No method named "${a}"`);d[a]()}})}}v(Xa);const Ec=".bs.scrollspy",Gx=`activate${Ec}`,Xh=`click${Ec}`,Kx=`load${Ec}.data-api`,oo="active",bc="[href]",Zh=".nav-link",Qx=`${Zh}, .nav-item > ${Zh}, .list-group-item`,Yx={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},qx={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class ms 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 Yx}static get DefaultType(){return qx}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,Xh),R.on(this._config.target,Xh,bc,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(bc,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,Gx,{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,Qx))w.classList.add(oo)}_clearActiveClass(a){a.classList.remove(oo);const d=G.find(`${bc}.${oo}`,a);for(const w of d)w.classList.remove(oo)}static jQueryInterface(a){return this.each(function(){const d=ms.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,Kx,()=>{for(const p of G.find('[data-bs-spy="scroll"]'))ms.getOrCreateInstance(p)}),v(ms);const yi=".bs.tab",Xx=`hide${yi}`,Zx=`hidden${yi}`,Jx=`show${yi}`,e_=`shown${yi}`,t_=`click${yi}`,n_=`keydown${yi}`,r_=`load${yi}`,i_="ArrowLeft",Jh="ArrowRight",o_="ArrowUp",em="ArrowDown",Sc="Home",tm="End",wi="active",nm="fade",kc="show",rm=".dropdown-toggle",Cc=`:not(${rm})`,im='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Tc=`.nav-link${Cc}, .list-group-item${Cc}, [role="tab"]${Cc}, ${im}`,s_=`.${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,n_,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,Xx,{relatedTarget:a}):null;R.trigger(a,Jx,{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,e_,{relatedTarget:d})):a.classList.add(kc)},a,a.classList.contains(nm)))}_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,Zx,{relatedTarget:d})):a.classList.remove(kc)},a,a.classList.contains(nm)))}_keydown(a){if(![i_,Jh,o_,em,Sc,tm].includes(a.key))return;a.stopPropagation(),a.preventDefault();const d=this._getChildren().filter(j=>!f(j));let w;if([Sc,tm].includes(a.key))w=d[a.key===Sc?0:d.length-1];else{const j=[Jh,em].includes(a.key);w=T(d,a.target,j,!0)}w&&(w.focus({preventScroll:!0}),xi.getOrCreateInstance(w).show())}_getChildren(){return G.find(Tc,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(rm,wi),j(".dropdown-menu",kc),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(Tc)?a:G.findOne(Tc,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,t_,im,function(p){["A","AREA"].includes(this.tagName)&&p.preventDefault(),f(this)||xi.getOrCreateInstance(this).show()}),R.on(window,r_,()=>{for(const p of G.find(s_))xi.getOrCreateInstance(p)}),v(xi);const Ar=".bs.toast",a_=`mouseover${Ar}`,l_=`mouseout${Ar}`,u_=`focusin${Ar}`,c_=`focusout${Ar}`,d_=`hide${Ar}`,f_=`hidden${Ar}`,p_=`show${Ar}`,h_=`shown${Ar}`,om="hide",Za="show",Ja="showing",m_={animation:"boolean",autohide:"boolean",delay:"number"},g_={animation:!0,autohide:!0,delay:5e3};class gs extends ue{constructor(a,d){super(a,d),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return g_}static get DefaultType(){return m_}static get NAME(){return"toast"}show(){R.trigger(this._element,p_).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(om),y(this._element),this._element.classList.add(Za,Ja),this._queueCallback(()=>{this._element.classList.remove(Ja),R.trigger(this._element,h_),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(R.trigger(this._element,d_).defaultPrevented||(this._element.classList.add(Ja),this._queueCallback(()=>{this._element.classList.add(om),this._element.classList.remove(Ja,Za),R.trigger(this._element,f_)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Za),super.dispose()}isShown(){return this._element.classList.contains(Za)}_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,a_,a=>this._onInteraction(a,!0)),R.on(this._element,l_,a=>this._onInteraction(a,!1)),R.on(this._element,u_,a=>this._onInteraction(a,!0)),R.on(this._element,c_,a=>this._onInteraction(a,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(a){return this.each(function(){const d=gs.getOrCreateInstance(this,a);if(typeof a=="string"){if(d[a]===void 0)throw new TypeError(`No method named "${a}"`);d[a](this)}})}}return We(gs),v(gs),{Alert:Pe,Button:ze,Carousel:Z,Collapse:sn,Dropdown:In,Modal:gi,Offcanvas:pr,Popover:Xa,ScrollSpy:ms,Tab:xi,Toast:gs,Tooltip:vi}})})(kS);var Yt=function(){return Yt=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0?Ct(ns,--Ln):0,Bo--,yt===10&&(Bo=1,Uu--),yt}function Kn(){return yt=Ln2||mf(yt)>3?"":" "}function $S(e,t){for(;--t&&Kn()&&!(yt<48||yt>102||yt>57&&yt<65||yt>70&&yt<97););return Wu(e,zl()+(t<6&&Mi()==32&&Kn()==32))}function gf(e){for(;Kn();)switch(yt){case e:return Ln;case 34:case 39:e!==34&&e!==39&&gf(yt);break;case 40:e===41&&gf(e);break;case 92:Kn();break}return Ln}function MS(e,t){for(;Kn()&&e+yt!==47+10;)if(e+yt===42+42&&Mi()===47)break;return"/*"+Wu(t,Ln-1)+"*"+Rp(e===47?e:Kn())}function IS(e){for(;!mf(Mi());)Kn();return Wu(e,Ln)}function zS(e){return AS(Fl("",null,null,null,[""],e=RS(e),0,[0],e))}function Fl(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){Il(O+=be(sd(g),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:O+=sd(g);break;case 9:case 10:case 13:case 32:O+=DS(x);break;case 92:O+=$S(zl()-1,7);continue;case 47:switch(Mi()){case 42:case 47:Ds(FS(MS(Kn(),zl()),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?Yg(O+";",r,n,h-1,u):Yg(be(O," ","")+";",r,n,h-2,u),u);break;case 59:O+=";";default:if(Ds(k=Qg(O,t,n,c,f,i,l,b,T=[],N=[],h,o),o),g===123)if(f===0)Fl(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:Fl(e,k,k,r&&Ds(Qg(e,k,k,0,0,i,l,b,i,T=[],h,N),N),i,N,h,l,r?T:N);break;default:Fl(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&&LS()==125)continue}switch(O+=Rp(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+=sd(Kn())),m=Mi(),f=h=nr(b=O+=IS(zl())),g++;break;case 45:x===45&&nr(O)==2&&(_=0)}}return o}function Qg(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 Hu(e,t,n,i===0?Bu:l,u,c,f,h)}function FS(e,t,n,r){return Hu(e,t,n,h1,Rp(NS()),Fo(e,2,-2),0,r)}function Yg(e,t,n,r,i){return Hu(e,t,n,Lp,Fo(e,0,r),Fo(e,r+1,-1),r,i)}function w1(e,t,n){switch(jS(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/)})?~Il(e+(n=n[t].value),"span")?e:Ze+be(e,"-start","")+e+Ze+"grid-row-span:"+(~Il(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~Il(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 yu(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case Lp:e.return=w1(e.value,e.length,n);return;case m1:return yu([Ir(e,{value:be(e.value,"@","@"+Fe)})],r);case Bu:if(e.length)return PS(n=e.props,function(i){switch(mr(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":lo(Ir(e,{props:[be(i,/:(read-\w+)/,":"+Qs+"$1")]})),lo(Ir(e,{props:[i]})),hf(e,{props:Kg(n,r)});break;case"::placeholder":lo(Ir(e,{props:[be(i,/:(plac\w+)/,":"+Fe+"input-$1")]})),lo(Ir(e,{props:[be(i,/:(plac\w+)/,":"+Qs+"$1")]})),lo(Ir(e,{props:[be(i,/:(plac\w+)/,Ze+"input-$1")]})),lo(Ir(e,{props:[i]})),hf(e,{props:Kg(n,r)});break}return""})}}var VS={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",Vu="6.1.3",Ap=`/*!sc*/ `,Dp=typeof window<"u"&&"HTMLElement"in window,GS=!!(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),Gu=Object.freeze([]),Ho=Object.freeze({});function KS(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"]),QS=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,YS=/(^-|-$)/g;function qg(e){return e.replace(QS,"-").replace(YS,"")}var qS=/(a)(d)/gi,xl=52,Xg=function(e){return String.fromCharCode(e+(e>25?39:97))};function vf(e){var t,n="";for(t=Math.abs(e);t>xl;t=t/xl|0)n=Xg(t%xl)+n;return(Xg(t%xl)+n).replace(qS,"$1-$2")}var ad,b1=5381,Co=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},S1=function(e){return Co(b1,e)};function k1(e){return vf(S1(e)>>>0)}function XS(e){return e.displayName||e.name||"Component"}function ld(e){return typeof e=="string"&&!0}var C1=typeof Symbol=="function"&&Symbol.for,T1=C1?Symbol.for("react.memo"):60115,ZS=C1?Symbol.for("react.forward_ref"):60112,JS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ek={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},tk=((ad={})[ZS]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ad[T1]=O1,ad);function Zg(e){return("type"in(t=e)&&t.type.$$typeof)===T1?O1:"$$typeof"in e?tk[e.$$typeof]:JS;var t}var nk=Object.defineProperty,rk=Object.getOwnPropertyNames,Jg=Object.getOwnPropertySymbols,ik=Object.getOwnPropertyDescriptor,ok=Object.getPrototypeOf,ev=Object.prototype;function j1(e,t,n){if(typeof t!="string"){if(ev){var r=ok(t);r&&r!==ev&&j1(e,r,n)}var i=rk(t);Jg&&(i=i.concat(Jg(t)));for(var o=Zg(e),s=Zg(t),l=0;l0?" Args: ".concat(t.join(", ")):""))}var sk=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 Na(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(Ap)},f=0;f0?".".concat(t):m},f=u.slice();f.push(function(m){m.type===Bu&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(vk,n).replace(r,c))}),s.prefix&&f.push(WS),f.push(BS);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(yk,""),v=zS(x||y?"".concat(x," ").concat(y," { ").concat(C," }"):C);s.namespace&&(v=L1(v,s.namespace));var g=[];return yu(v,US(f.concat(HS(function(b){return g.push(b)})))),g};return h.hash=u.length?u.reduce(function(m,y){return y.name||Na(15),Co(m,y.name)},b1).toString():"",h}var xk=new N1,xf=wk(),R1=ke.createContext({shouldForwardProp:void 0,styleSheet:xk,stylis:xf});R1.Consumer;ke.createContext(void 0);function nv(){return S.useContext(R1)}var A1=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=xf);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,Mp(this,function(){throw Na(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=xf),this.name+t.hash},e}(),_k=function(e){return e>="A"&&e<="Z"};function rv(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=Co(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 ud={};function kk(e,t,n){var r=$p(e),i=e,o=!ld(e),s=t.attrs,l=s===void 0?Gu:s,u=t.componentId,c=u===void 0?function(T,N){var k=typeof T!="string"?"sc":qg(T);ud[k]=(ud[k]||0)+1;var O="".concat(k,"-").concat(k1(Vu+k+ud[k]));return N?"".concat(N,"-").concat(O):O}(t.displayName,t.parentComponentId):u,f=t.displayName,h=f===void 0?function(T){return ld(T)?"styled.".concat(T):"Styled(".concat(XS(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 Sk(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=nv(),ne=k.shouldForwardProp||oe.shouldForwardProp,U=function(ae,ye,ue){for(var xe,G=Yt(Yt({},ye),{className:void 0,theme:ue}),We=0;WeE.jsxs("h3",{className:"text-primary-emphasis",children:["Bonjour ",E.jsx(Bk,{children:e})," !"]}),Hk={isAuthenticated:!1,user:{id:"",username:"",waitlist:""}},gn=S.createContext(null),Wk=({children:e})=>{const[t,n]=S.useState(Hk);return E.jsx(gn.Provider,{value:{auth:t,setAuth:n},children:e})},La=S.createContext(null),Vk=({children:e})=>{const[t,n]=S.useState(!1);return E.jsx(La.Provider,{value:{loadingComplete:t,setLoadingComplete:n},children:e})},nn=S.createContext(null),Gk=({children:e})=>{const[t,n]=S.useState(null);return E.jsx(nn.Provider,{value:{room:t,setRoom:n},children:e})},Kk="wss://steam-wgp-production.up.railway.app",Qk=(e,t)=>{const n=`${Kk}/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},Yk=(e,t)=>{if(e.readyState===WebSocket.OPEN){const n=JSON.stringify({action:"swipe",payload:{gameId:t}});e.send(n)}},qk=(e,t)=>{if(e.readyState===WebSocket.OPEN){const n=JSON.stringify({action:"unswipe",payload:{gameId:t}});e.send(n)}},rs=S.createContext(null),Xk=({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=Ku("token");if(!o||!i)return;const s=Qk(i,o);return n(s),()=>{s&&s.close()}},[i]),E.jsx(rs.Provider,{value:{socket:t,setSocket:n},children:e})},Zk=we.svg` +`,Uk=({username:e})=>E.jsxs("h3",{className:"text-primary-emphasis",children:["Bonjour ",E.jsx(Bk,{children:e})," !"]}),Hk={isAuthenticated:!1,user:{id:"",username:"",waitlist:""}},nn=S.createContext(null),Wk=({children:e})=>{const[t,n]=S.useState(Hk);return E.jsx(nn.Provider,{value:{auth:t,setAuth:n},children:e})},La=S.createContext(null),Vk=({children:e})=>{const[t,n]=S.useState(!1);return E.jsx(La.Provider,{value:{loadingComplete:t,setLoadingComplete:n},children:e})},rn=S.createContext(null),Gk=({children:e})=>{const[t,n]=S.useState(null);return E.jsx(rn.Provider,{value:{room:t,setRoom:n},children:e})},Kk="wss://steam-wgp-production.up.railway.app",Qk=(e,t)=>{const n=`${Kk}/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},Yk=(e,t)=>{if(e.readyState===WebSocket.OPEN){const n=JSON.stringify({action:"swipe",payload:{gameId:t}});e.send(n)}},qk=(e,t)=>{if(e.readyState===WebSocket.OPEN){const n=JSON.stringify({action:"unswipe",payload:{gameId:t}});e.send(n)}},rs=S.createContext(null),Xk=({children:e})=>{const[t,n]=S.useState(null),{room:r}=S.useContext(rn),i=r==null?void 0:r.id;return S.useEffect(()=>{const o=Ku("token");if(!o||!i)return;const s=Qk(i,o);return n(s),()=>{s&&s.close()}},[i]),E.jsx(rs.Provider,{value:{socket:t,setSocket:n},children:e})},Zk=we.svg` margin-top: -2px; margin-right: 4px; `,Jk=()=>E.jsxs(Zk,{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"})]}),eC=we.p` @@ -131,7 +131,7 @@ Error generating stack: `+o.message+` margin-bottom: 0px; `,tC=({type:e,message:t})=>E.jsxs(eC,{className:"text-center text-"+e+"-emphasis","data-aos":"fade-up","data-aos-duration":"700","data-aos-once":"true",children:[e==="danger"?E.jsx(Jk,{}):null,t]}),nC=we.p` margin-bottom: 42px; -`;function rC({messages:e,animateFirstDiv:t}){const{auth:n}=S.useContext(gn);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(W1,{}),E.jsx(Ip,{}),E.jsx(Uk,{username:n.user.username}),E.jsxs(nC,{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(tC,{message:r.message,type:r.type})},i))]})})}const Ra="https://steam-wgp-production.up.railway.app",Aa=Ku("token"),G1=async(e,t)=>{try{const n=await fetch(Ra+"/waitlist/"+e,{headers:{Authorization:"Bearer "+Aa},credentials:"include"}),r=await n.json();if(!n.ok)throw new Error(r.message||"Impossible de récupérer les informations de la room");return r}catch(n){return console.error("Une erreur est survenue lors de la récupération des informations de la room: "+n),K1(e,t).then(()=>(t(r=>({...r,user:{...r.user,waitlist:e}})),G1(e,t))).catch(r=>{throw r})}},K1=async(e,t)=>{try{const n=await fetch(Ra+"/waitlist/"+e,{headers:{Authorization:"Bearer "+Aa},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(Ra+"/waitlist/"+e,{headers:{Authorization:"Bearer "+Aa},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(Ra+"/waitlist/"+e+"/kick/"+t,{headers:{Authorization:"Bearer "+Aa},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(Ra+"/waitlist",{headers:{Authorization:"Bearer "+Aa},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 rC({messages:e,animateFirstDiv:t}){const{auth:n}=S.useContext(nn);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(W1,{}),E.jsx(Ip,{}),E.jsx(Uk,{username:n.user.username}),E.jsxs(nC,{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(tC,{message:r.message,type:r.type})},i))]})})}const Ra="https://steam-wgp-production.up.railway.app",Aa=Ku("token"),G1=async(e,t)=>{try{const n=await fetch(Ra+"/waitlist/"+e,{headers:{Authorization:"Bearer "+Aa},credentials:"include"}),r=await n.json();if(!n.ok)throw new Error(r.message||"Impossible de récupérer les informations de la room");return r}catch(n){return console.error("Une erreur est survenue lors de la récupération des informations de la room: "+n),K1(e,t).then(()=>(t(r=>({...r,user:{...r.user,waitlist:e}})),G1(e,t))).catch(r=>{throw r})}},K1=async(e,t)=>{try{const n=await fetch(Ra+"/waitlist/"+e,{headers:{Authorization:"Bearer "+Aa},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(Ra+"/waitlist/"+e,{headers:{Authorization:"Bearer "+Aa},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(Ra+"/waitlist/"+e+"/kick/"+t,{headers:{Authorization:"Bearer "+Aa},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(Ra+"/waitlist",{headers:{Authorization:"Bearer "+Aa},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` 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` @@ -158,33 +158,33 @@ Error generating stack: `+o.message+` font-weight: bolder; `,kC=we.div` --animate-duration: ${e=>e.delay}s; -`;function uv({text:e,target:t,icon:n,delay:r,onClick:i}){const[o,s]=S.useState(!1),l=Tr(),u=async()=>{if(s(!0),i)try{const c=await i();l(`/waitlist/${c.data.id}`),s(!1)}catch(c){console.error(c),De.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(gn);return E.jsxs("div",{className:"row justify-content-center",children:[E.jsx(uv,{text:"Rejoindre",target:"#join_room",icon:E.jsx(cC,{className:"text-primary-emphasis"}),delay:"0.5"}),E.jsx(uv,{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 uv({text:e,target:t,icon:n,delay:r,onClick:i}){const[o,s]=S.useState(!1),l=Tr(),u=async()=>{if(s(!0),i)try{const c=await i();l(`/waitlist/${c.data.id}`),s(!1)}catch(c){console.error(c),De.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(nn);return E.jsxs("div",{className:"row justify-content-center",children:[E.jsx(uv,{text:"Rejoindre",target:"#join_room",icon:E.jsx(cC,{className:"text-primary-emphasis"}),delay:"0.5"}),E.jsx(uv,{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` cursor: default; user-select: none; `,OC=we.h4` margin-bottom: 37px; -`;function jC(){const{auth:e}=S.useContext(gn);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 X1={exports:{}};/*! +`;function jC(){const{auth:e}=S.useContext(nn);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 X1={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 fv=e=>!e||typeof e=="function"?e:t=>{e.current=t};function o3(e,t){const n=fv(e),r=fv(t);return i=>{n&&n(i),r&&r(i)}}function is(e,t){return S.useMemo(()=>o3(e,t),[e,t])}function _u(e){return e&&"setState"in e?Pi.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=is(h,u),y=k=>{m(_u(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 pv(){return S.useState(null)}function sw(){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",Tf=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 aw({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}]=aw(Object.assign({tagName:n,disabled:r},i));return E.jsx(s,Object.assign({},i,o,{ref:t}))});h3.displayName="Button";const m3={[Br]:"show",[Ci]:"show"},lw=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])})})});lw.displayName="Fade";const hv=lw,uw=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}]=aw({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")})});uw.displayName="Button";const mv=uw;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 Of=2**31-1;function cw(e,t,n){const r=n-Date.now();e.current=r<=Of?setTimeout(t,r):setTimeout(()=>cw(e,t,n),Of)}function y3(){const e=sw(),t=S.useRef();return v3(()=>clearTimeout(t.current)),S.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(i,o=0){e()&&(n(),o<=Of?t.current=setTimeout(i,o):cw(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=Z1(),o=J1(),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 dw=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)})});dw.displayName="Col";const gv=dw;var vv=Object.prototype.hasOwnProperty;function yv(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=yv(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=yv(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(vv.call(e,n)&&++r&&!vv.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=sw();return[e[0],S.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var en="top",Rn="bottom",An="right",tn="left",Bp="auto",Da=[en,Rn,An,tn],Go="start",Ea="end",_3="clippingParents",fw="viewport",Ps="popper",E3="reference",wv=Da.reduce(function(e,t){return e.concat([t+"-"+Go,t+"-"+Ea])},[]),pw=[].concat(Da,[Bp]).reduce(function(e,t){return e.concat([t,t+"-"+Go,t+"-"+Ea])},[]),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 Up(e){if(typeof ShadowRoot>"u")return!1;var t=pn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var zi=Math.max,Eu=Math.min,Ko=Math.round;function jf(){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 hw(){return!/^((?!chrome|android).)*safari/i.test(jf())}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=!hw()&&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 Hp(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 mw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Up(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 ui(e){return((Ki(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zu(e){return ii(e)==="html"?e:e.assignedSlot||e.parentNode||(Up(e)?e.host:null)||ui(e)}function xv(e){return!ar(e)||kr(e).position==="fixed"?null:e.offsetParent}function A3(e){var t=/firefox/i.test(jf()),n=/Trident/i.test(jf());if(n&&ar(e)){var r=kr(e);if(r.position==="fixed")return null}var i=Zu(e);for(Up(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 $a(e){for(var t=pn(e),n=xv(e);n&&R3(n)&&kr(n).position==="static";)n=xv(n);return n&&(ii(n)==="html"||ii(n)==="body"&&kr(n).position==="static")?t:n||A3(e)||t}function Wp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Zs(e,t,n){return zi(e,Eu(t,n))}function D3(e,t,n){var r=Zs(e,t,n);return r>n?n:r}function gw(){return{top:0,right:0,bottom:0,left:0}}function vw(e){return Object.assign({},gw(),e)}function yw(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,vw(typeof t!="number"?t:yw(t,Da))};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=Wp(l),c=[tn,An].indexOf(l)>=0,f=c?"height":"width";if(!(!o||!s)){var h=$3(i.padding,n),m=Hp(o),y=u==="y"?en:tn,x=u==="y"?Rn:An,_=n.rects.reference[f]+n.rects.reference[u]-s[u]-n.rects.popper[f],C=s[u]-n.rects.reference[u],v=$a(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)||mw(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 _v(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=$a(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===An)&&o===Ea){T=Rn;var F=h&&k===N&&N.visualViewport?N.visualViewport.height:k[O];_-=F-r.height,_*=u?1:-1}if(i===tn||(i===en||i===Rn)&&o===Ea){b=An;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,_v(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,_v(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 kl={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,kl)}),l&&u.addEventListener("resize",n.update,kl),function(){o&&c.forEach(function(f){f.removeEventListener("scroll",n.update,kl)}),l&&u.removeEventListener("resize",n.update,kl)}}const V3={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:W3,data:{}};var G3={left:"right",right:"left",bottom:"top",top:"bottom"};function Wl(e){return e.replace(/left|right|bottom|top/g,function(t){return G3[t]})}var K3={start:"end",end:"start"};function Ev(e){return e.replace(/start|end/g,function(t){return K3[t]})}function Vp(e){var t=pn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Gp(e){return Qo(ui(e)).left+Vp(e).scrollLeft}function Q3(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=hw();(c||!c&&t==="fixed")&&(l=i.offsetLeft,u=i.offsetTop)}return{width:o,height:s,x:l+Gp(e),y:u}}function Y3(e){var t,n=ui(e),r=Vp(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+Gp(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 Kp(e){var t=kr(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function ww(e){return["html","body","#document"].indexOf(ii(e))>=0?e.ownerDocument.body:ar(e)&&Kp(e)?e:ww(Zu(e))}function Js(e,t){var n;t===void 0&&(t=[]);var r=ww(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=pn(r),s=i?[o].concat(o.visualViewport||[],Kp(r)?r:[]):r,l=t.concat(s);return i?l:l.concat(Js(Zu(s)))}function Pf(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 bv(e,t,n){return t===fw?Pf(Q3(e,n)):Ki(t)?q3(t,n):Pf(Y3(ui(e)))}function X3(e){var t=Js(Zu(e)),n=["absolute","fixed"].indexOf(kr(e).position)>=0,r=n&&ar(e)?$a(e):e;return Ki(r)?t.filter(function(i){return Ki(i)&&mw(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=bv(e,c,r);return u.top=zi(f.top,u.top),u.right=Eu(f.right,u.right),u.bottom=Eu(f.bottom,u.bottom),u.left=zi(f.left,u.left),u},bv(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 xw(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 Rn:u={x:s,y:t.y+t.height};break;case An: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?Wp(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 Ea:u[c]=u[c]+(t[f]/2-n[f]/2);break}}return u}function ba(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?fw:c,h=n.elementContext,m=h===void 0?Ps:h,y=n.altBoundary,x=y===void 0?!1:y,_=n.padding,C=_===void 0?0:_,v=vw(typeof C!="number"?C:yw(C,Da)),g=m===Ps?E3:Ps,b=e.rects.popper,T=e.elements[x?g:m],N=Z3(Ki(T)?T:T.contextElement||ui(e.elements.popper),u,f,s),k=Qo(e.elements.reference),O=xw({reference:k,element:b,strategy:"absolute",placement:i}),A=Pf(Object.assign({},b,O)),F=m===Ps?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===Ps&&z){var I=z[i];Object.keys(H).forEach(function(K){var V=[An,Rn].indexOf(K)>=0?1:-1,re=[en,Rn].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?pw:u,f=Yo(r),h=f?l?wv:wv.filter(function(x){return Yo(x)===f}):Da,m=h.filter(function(x){return c.indexOf(x)>=0});m.length===0&&(m=h);var y=m.reduce(function(x,_){return x[_]=ba(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)===Bp)return[];var t=Wl(e);return[Ev(e),t,Ev(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?[Wl(C)]:e4(C)),T=[C].concat(b).reduce(function(ae,ye){return ae.concat(sr(ye)===Bp?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=ba(t,{placement:z,boundary:f,rootBoundary:h,altBoundary:m,padding:c}),ne=V?K?An:tn:K?Rn:en;N[re]>k[re]&&(ne=Wl(ne));var U=Wl(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 Sv(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 kv(e){return[en,An,Rn,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=ba(t,{elementContext:"reference"}),l=ba(t,{altBoundary:!0}),u=Sv(s,r),c=Sv(l,i,o),f=kv(u),h=kv(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,An].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=pw.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]=xw({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=ba(t,{boundary:u,rootBoundary:c,padding:h,altBoundary:f}),v=sr(t.placement),g=Yo(t.placement),b=!g,T=Wp(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"?Rn:An,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?Hp(Re):{width:0,height:0},ye=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:gw(),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&&$a(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?Eu(U,Ne):U,ne,y?zi(q,ze):q);k[T]=gt,I[T]=gt-ne}if(l){var cr,os=T==="x"?en:tn,ss=T==="x"?Rn:An,Dn=k[N],vn=N==="y"?"height":"width",ci=Dn+C[os],jr=Dn-C[ss],Ot=[en,tn].indexOf(v)!==-1,jt=(cr=z==null?void 0:z[N])!=null?cr:0,Pr=Ot?ci:Dn-O[vn]-A[vn]-jt+H.altAxis,rn=Ot?Dn+O[vn]+A[vn]-jt-H.altAxis:jr,$n=y&&Ot?D3(Pr,Dn,rn):Zs(y?Pr:ci,Dn,y?rn:jr);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)?Vp(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=ui(t),s=Qo(e,i,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((ii(t)!=="body"||Kp(o))&&(l=h4(t)),ar(t)?(u=Qo(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=Gp(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 Cv={placement:"bottom",modifiers:[],strategy:"absolute"};function Tv(){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 Nf(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=Xo(P4),Ov=()=>{};function L4(e){return e.button===0}function R4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Vl=e=>e&&("current"in e?e.current:e),jv={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function A4(e,t=Ov,{disabled:n,clickTrigger:r="click"}={}){const i=S.useRef(!1),o=S.useRef(!1),s=S.useCallback(c=>{const f=Vl(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)||!!Nf(f,c.target)||o.current,o.current=!1},[e]),l=Vo(c=>{const f=Vl(e);f&&Nf(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=Xu(Vl(e)),m=h.defaultView||window;let y=(c=m.event)!=null?c:(f=m.parent)==null?void 0:f.event,x=null;jv[r]&&(x=Ai(h,jv[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",Ov))),()=>{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 _w=S.createContext(Fp?window:void 0);_w.Provider;function I4(){return S.useContext(_w)}const hd=(e,t)=>Fp?e==null?(t||Xu()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Pv(e,t){const n=I4(),[r,i]=S.useState(()=>hd(e,n==null?void 0:n.document));if(!r){const o=hd(e);o&&i(o)}return S.useEffect(()=>{t&&r&&t(r)},[t,r]),S.useEffect(()=>{const o=hd(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=is(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 Tf(()=>{if(!n.current)return;let o=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>o}),()=>{o=!0}},[e,i]),Tf(()=>(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=is(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 Nv(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=Xu(Vl(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 Ew=S.forwardRef((e,t)=>{const{flip:n,offset:r,placement:i,containerPadding:o,popperConfig:s={},transition:l,runTransition:u}=e,[c,f]=pv(),[h,m]=pv(),y=is(f,t),x=Pv(e.container),_=Pv(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?Pi.createPortal(H,x):null});Ew.displayName="Overlay";const G4=Ew,bw=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})));bw.displayName="PopoverHeader";const K4=bw,Sw=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})));Sw.displayName="PopoverBody";const kw=Sw;function Cw(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function Tw(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=ew(),[x]=(t==null?void 0:t.split("-"))||[],_=Cw(x,y);let C=r;return c&&!l&&(C={...r,...Tw(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(kw,{children:i}):i]})}),Y4=Object.assign(Q4,{Header:K4,Body:kw,POPPER_OFFSET:[0,8]}),Ow=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=ew(),[m]=(t==null?void 0:t.split("-"))||[],y=Cw(m,h);let x=r;return u&&!s&&(x={...r,...Tw(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})]})});Ow.displayName="Tooltip";const Lf=Object.assign(Ow,{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(Nv(t.current,n))return Y4.POPPER_OFFSET;if(Nv(t.current,r))return Lf.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(_u(i))),t.ref=r.__wrapped||(r.__wrapped=i=>r(_u(i)))}const jw=S.forwardRef(({children:e,transition:t=hv,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=is(l,h),x=t===!0?hv:t||void 0,_=Vo(C=>{f(C),n==null||n.onFirstUpdate==null||n.onFirstUpdate(C)});return Tf(()=>{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}})}})});jw.displayName="Overlay";const Z4=jw;function J4(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function Lv(e,t,n){const[r]=t,i=r.currentTarget,o=r.relatedTarget||r.nativeEvent[n];(!o||o!==i)&&!Nf(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=is(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(_u(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)=>{Lv(k,re,"fromElement")},[k]),I=S.useCallback((...re)=>{Lv(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})]})},Rv=eT,Pw=S.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},i)=>{const o=lr(e,"row"),s=Z1(),l=J1(),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)})});Pw.displayName="Row";const tT=Pw,Nw=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}`)})});Nw.displayName="Spinner";const qo=Nw,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 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 fv=e=>!e||typeof e=="function"?e:t=>{e.current=t};function o3(e,t){const n=fv(e),r=fv(t);return i=>{n&&n(i),r&&r(i)}}function is(e,t){return S.useMemo(()=>o3(e,t),[e,t])}function _u(e){return e&&"setState"in e?Pi.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=is(h,u),y=k=>{m(_u(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 pv(){return S.useState(null)}function sw(){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",Tf=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 aw({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}]=aw(Object.assign({tagName:n,disabled:r},i));return E.jsx(s,Object.assign({},i,o,{ref:t}))});h3.displayName="Button";const m3={[Br]:"show",[Ci]:"show"},lw=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])})})});lw.displayName="Fade";const hv=lw,uw=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}]=aw({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")})});uw.displayName="Button";const mv=uw;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 Of=2**31-1;function cw(e,t,n){const r=n-Date.now();e.current=r<=Of?setTimeout(t,r):setTimeout(()=>cw(e,t,n),Of)}function y3(){const e=sw(),t=S.useRef();return v3(()=>clearTimeout(t.current)),S.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(i,o=0){e()&&(n(),o<=Of?t.current=setTimeout(i,o):cw(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=Z1(),o=J1(),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 dw=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)})});dw.displayName="Col";const gv=dw;var vv=Object.prototype.hasOwnProperty;function yv(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=yv(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=yv(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(vv.call(e,n)&&++r&&!vv.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=sw();return[e[0],S.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var en="top",Rn="bottom",An="right",tn="left",Bp="auto",Da=[en,Rn,An,tn],Go="start",Ea="end",_3="clippingParents",fw="viewport",Ps="popper",E3="reference",wv=Da.reduce(function(e,t){return e.concat([t+"-"+Go,t+"-"+Ea])},[]),pw=[].concat(Da,[Bp]).reduce(function(e,t){return e.concat([t,t+"-"+Go,t+"-"+Ea])},[]),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 hn(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=hn(e).Element;return e instanceof t||e instanceof Element}function ar(e){var t=hn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Up(e){if(typeof ShadowRoot>"u")return!1;var t=hn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var zi=Math.max,Eu=Math.min,Ko=Math.round;function jf(){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 hw(){return!/^((?!chrome|android).)*safari/i.test(jf())}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)?hn(e):window,l=s.visualViewport,u=!hw()&&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 Hp(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 mw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Up(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 hn(e).getComputedStyle(e)}function R3(e){return["table","td","th"].indexOf(ii(e))>=0}function ui(e){return((Ki(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zu(e){return ii(e)==="html"?e:e.assignedSlot||e.parentNode||(Up(e)?e.host:null)||ui(e)}function xv(e){return!ar(e)||kr(e).position==="fixed"?null:e.offsetParent}function A3(e){var t=/firefox/i.test(jf()),n=/Trident/i.test(jf());if(n&&ar(e)){var r=kr(e);if(r.position==="fixed")return null}var i=Zu(e);for(Up(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 $a(e){for(var t=hn(e),n=xv(e);n&&R3(n)&&kr(n).position==="static";)n=xv(n);return n&&(ii(n)==="html"||ii(n)==="body"&&kr(n).position==="static")?t:n||A3(e)||t}function Wp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Zs(e,t,n){return zi(e,Eu(t,n))}function D3(e,t,n){var r=Zs(e,t,n);return r>n?n:r}function gw(){return{top:0,right:0,bottom:0,left:0}}function vw(e){return Object.assign({},gw(),e)}function yw(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,vw(typeof t!="number"?t:yw(t,Da))};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=Wp(l),c=[tn,An].indexOf(l)>=0,f=c?"height":"width";if(!(!o||!s)){var h=$3(i.padding,n),m=Hp(o),y=u==="y"?en:tn,x=u==="y"?Rn:An,_=n.rects.reference[f]+n.rects.reference[u]-s[u]-n.rects.popper[f],C=s[u]-n.rects.reference[u],v=$a(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)||mw(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 _v(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=$a(n),O="clientHeight",A="clientWidth";if(k===hn(n)&&(k=ui(n),kr(k).position!=="static"&&l==="absolute"&&(O="scrollHeight",A="scrollWidth")),k=k,i===en||(i===tn||i===An)&&o===Ea){T=Rn;var F=h&&k===N&&N.visualViewport?N.visualViewport.height:k[O];_-=F-r.height,_*=u?1:-1}if(i===tn||(i===en||i===Rn)&&o===Ea){b=An;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:_},hn(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,_v(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,_v(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 kl={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=hn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(f){f.addEventListener("scroll",n.update,kl)}),l&&u.addEventListener("resize",n.update,kl),function(){o&&c.forEach(function(f){f.removeEventListener("scroll",n.update,kl)}),l&&u.removeEventListener("resize",n.update,kl)}}const V3={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:W3,data:{}};var G3={left:"right",right:"left",bottom:"top",top:"bottom"};function Wl(e){return e.replace(/left|right|bottom|top/g,function(t){return G3[t]})}var K3={start:"end",end:"start"};function Ev(e){return e.replace(/start|end/g,function(t){return K3[t]})}function Vp(e){var t=hn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Gp(e){return Qo(ui(e)).left+Vp(e).scrollLeft}function Q3(e,t){var n=hn(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=hw();(c||!c&&t==="fixed")&&(l=i.offsetLeft,u=i.offsetTop)}return{width:o,height:s,x:l+Gp(e),y:u}}function Y3(e){var t,n=ui(e),r=Vp(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+Gp(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 Kp(e){var t=kr(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function ww(e){return["html","body","#document"].indexOf(ii(e))>=0?e.ownerDocument.body:ar(e)&&Kp(e)?e:ww(Zu(e))}function Js(e,t){var n;t===void 0&&(t=[]);var r=ww(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=hn(r),s=i?[o].concat(o.visualViewport||[],Kp(r)?r:[]):r,l=t.concat(s);return i?l:l.concat(Js(Zu(s)))}function Pf(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 bv(e,t,n){return t===fw?Pf(Q3(e,n)):Ki(t)?q3(t,n):Pf(Y3(ui(e)))}function X3(e){var t=Js(Zu(e)),n=["absolute","fixed"].indexOf(kr(e).position)>=0,r=n&&ar(e)?$a(e):e;return Ki(r)?t.filter(function(i){return Ki(i)&&mw(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=bv(e,c,r);return u.top=zi(f.top,u.top),u.right=Eu(f.right,u.right),u.bottom=Eu(f.bottom,u.bottom),u.left=zi(f.left,u.left),u},bv(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 xw(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 Rn:u={x:s,y:t.y+t.height};break;case An: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?Wp(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 Ea:u[c]=u[c]+(t[f]/2-n[f]/2);break}}return u}function ba(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?fw:c,h=n.elementContext,m=h===void 0?Ps:h,y=n.altBoundary,x=y===void 0?!1:y,_=n.padding,C=_===void 0?0:_,v=vw(typeof C!="number"?C:yw(C,Da)),g=m===Ps?E3:Ps,b=e.rects.popper,T=e.elements[x?g:m],N=Z3(Ki(T)?T:T.contextElement||ui(e.elements.popper),u,f,s),k=Qo(e.elements.reference),O=xw({reference:k,element:b,strategy:"absolute",placement:i}),A=Pf(Object.assign({},b,O)),F=m===Ps?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===Ps&&z){var I=z[i];Object.keys(H).forEach(function(K){var V=[An,Rn].indexOf(K)>=0?1:-1,re=[en,Rn].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?pw:u,f=Yo(r),h=f?l?wv:wv.filter(function(x){return Yo(x)===f}):Da,m=h.filter(function(x){return c.indexOf(x)>=0});m.length===0&&(m=h);var y=m.reduce(function(x,_){return x[_]=ba(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)===Bp)return[];var t=Wl(e);return[Ev(e),t,Ev(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?[Wl(C)]:e4(C)),T=[C].concat(b).reduce(function(ae,ye){return ae.concat(sr(ye)===Bp?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=ba(t,{placement:z,boundary:f,rootBoundary:h,altBoundary:m,padding:c}),ne=V?K?An:tn:K?Rn:en;N[re]>k[re]&&(ne=Wl(ne));var U=Wl(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 Sv(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 kv(e){return[en,An,Rn,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=ba(t,{elementContext:"reference"}),l=ba(t,{altBoundary:!0}),u=Sv(s,r),c=Sv(l,i,o),f=kv(u),h=kv(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,An].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=pw.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]=xw({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=ba(t,{boundary:u,rootBoundary:c,padding:h,altBoundary:f}),v=sr(t.placement),g=Yo(t.placement),b=!g,T=Wp(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"?Rn:An,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?Hp(Re):{width:0,height:0},ye=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:gw(),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&&$a(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?Eu(U,Ne):U,ne,y?zi(q,ze):q);k[T]=gt,I[T]=gt-ne}if(l){var cr,os=T==="x"?en:tn,ss=T==="x"?Rn:An,Dn=k[N],vn=N==="y"?"height":"width",ci=Dn+C[os],jr=Dn-C[ss],Ot=[en,tn].indexOf(v)!==-1,jt=(cr=z==null?void 0:z[N])!=null?cr:0,Pr=Ot?ci:Dn-O[vn]-A[vn]-jt+H.altAxis,on=Ot?Dn+O[vn]+A[vn]-jt-H.altAxis:jr,$n=y&&Ot?D3(Pr,Dn,on):Zs(y?Pr:ci,Dn,y?on:jr);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===hn(e)||!ar(e)?Vp(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=ui(t),s=Qo(e,i,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((ii(t)!=="body"||Kp(o))&&(l=h4(t)),ar(t)?(u=Qo(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=Gp(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 Cv={placement:"bottom",modifiers:[],strategy:"absolute"};function Tv(){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 Nf(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=Xo(P4),Ov=()=>{};function L4(e){return e.button===0}function R4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Vl=e=>e&&("current"in e?e.current:e),jv={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function A4(e,t=Ov,{disabled:n,clickTrigger:r="click"}={}){const i=S.useRef(!1),o=S.useRef(!1),s=S.useCallback(c=>{const f=Vl(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)||!!Nf(f,c.target)||o.current,o.current=!1},[e]),l=Vo(c=>{const f=Vl(e);f&&Nf(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=Xu(Vl(e)),m=h.defaultView||window;let y=(c=m.event)!=null?c:(f=m.parent)==null?void 0:f.event,x=null;jv[r]&&(x=Ai(h,jv[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",Ov))),()=>{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 _w=S.createContext(Fp?window:void 0);_w.Provider;function I4(){return S.useContext(_w)}const hd=(e,t)=>Fp?e==null?(t||Xu()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Pv(e,t){const n=I4(),[r,i]=S.useState(()=>hd(e,n==null?void 0:n.document));if(!r){const o=hd(e);o&&i(o)}return S.useEffect(()=>{t&&r&&t(r)},[t,r]),S.useEffect(()=>{const o=hd(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=is(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 Tf(()=>{if(!n.current)return;let o=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>o}),()=>{o=!0}},[e,i]),Tf(()=>(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=is(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 Nv(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=Xu(Vl(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 Ew=S.forwardRef((e,t)=>{const{flip:n,offset:r,placement:i,containerPadding:o,popperConfig:s={},transition:l,runTransition:u}=e,[c,f]=pv(),[h,m]=pv(),y=is(f,t),x=Pv(e.container),_=Pv(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?Pi.createPortal(H,x):null});Ew.displayName="Overlay";const G4=Ew,bw=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})));bw.displayName="PopoverHeader";const K4=bw,Sw=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})));Sw.displayName="PopoverBody";const kw=Sw;function Cw(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function Tw(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=ew(),[x]=(t==null?void 0:t.split("-"))||[],_=Cw(x,y);let C=r;return c&&!l&&(C={...r,...Tw(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(kw,{children:i}):i]})}),Y4=Object.assign(Q4,{Header:K4,Body:kw,POPPER_OFFSET:[0,8]}),Ow=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=ew(),[m]=(t==null?void 0:t.split("-"))||[],y=Cw(m,h);let x=r;return u&&!s&&(x={...r,...Tw(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})]})});Ow.displayName="Tooltip";const Lf=Object.assign(Ow,{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(Nv(t.current,n))return Y4.POPPER_OFFSET;if(Nv(t.current,r))return Lf.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(_u(i))),t.ref=r.__wrapped||(r.__wrapped=i=>r(_u(i)))}const jw=S.forwardRef(({children:e,transition:t=hv,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=is(l,h),x=t===!0?hv:t||void 0,_=Vo(C=>{f(C),n==null||n.onFirstUpdate==null||n.onFirstUpdate(C)});return Tf(()=>{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}})}})});jw.displayName="Overlay";const Z4=jw;function J4(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function Lv(e,t,n){const[r]=t,i=r.currentTarget,o=r.relatedTarget||r.nativeEvent[n];(!o||o!==i)&&!Nf(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=is(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(_u(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)=>{Lv(k,re,"fromElement")},[k]),I=S.useCallback((...re)=>{Lv(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})]})},Rv=eT,Pw=S.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},i)=>{const o=lr(e,"row"),s=Z1(),l=J1(),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)})});Pw.displayName="Row";const tT=Pw,Nw=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}`)})});Nw.displayName="Spinner";const qo=Nw,nT=we.div` background: url('assets/img/dots.png'); background-size: cover; `,rT=we.div` background: rgba(6,6,6,0.79); padding-top: 140px; -`;function iT(){const{setAuth:e}=S.useContext(gn),[t,n]=S.useState(""),[r,i]=S.useState(!1),o=Tr(),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)){De.error("UUID non valide!",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!1}),i(!1);return}try{await K1(t,e),setTimeout(()=>{document.querySelectorAll(".modal-backdrop").forEach(c=>{c.remove()}),o("/waitlist/"+t)},500),i(!1)}catch(u){De.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(qo,{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(La);return S.useEffect(()=>{if(localStorage.getItem("animationPlayed")==="true"){r(!1),s(!0);return}const c=new EventSource(`${sT}/players/library-checker?token=${Ku("token")}`,{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(rC,{messages:e,animateFirstDiv:i}),l&&E.jsx(oT,{})]})})}function Lw(){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 Rw=(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(),De.info("L'administrateur a fermé le salon",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!0})},Ju=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},Aw=(e,t)=>{e(n=>{if(!n)return n;const r=Ju({...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}})},Dw=(e,t,n)=>{De.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}`)},$w=(e,t,n,r,i,o,s)=>{t===n?(De.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&&De.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=Ju({...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=Ju({...n,players:[...n.players,t]})||[];return{...n,players:[...n.players,t],commonGames:i}})},Mw=(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(gn),{loadingComplete:n}=S.useContext(La),{socket:r}=S.useContext(rs),{room:i,setRoom:o}=S.useContext(nn),[s,l]=S.useState(!1),[u,c]=S.useState(!0),f=Tr(),h=i==null?void 0:i.id,m=i==null?void 0:i.admin_id;return e.isAuthenticated||f("/login"),h&&i.winner&&(o(null),t(x=>({...x,user:{...x.user,waitlist:null}}))),S.useEffect(()=>{c(!0),(async()=>{try{const _=await H1();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"?Aw(o,_.player):_.action==="end"?Rw(r,o,!0,f,t):_.action==="kicked"?$w(r,_.playerId,(C=e.user)==null?void 0:C.id,m??"",o,void 0,t):_.action==="start"?Dw(o,h,f):_.action==="retrieve"&&Mw(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(Ip,{}):s?E.jsx(aT,{}):E.jsx(V1,{})}),!u&&n?E.jsx(Lw,{}):""]})}function dT(){const e=Tr(),{setAuth:t}=S.useContext(gn);return S.useEffect(()=>{(async()=>{try{await Ok(),t({user:{id:"",username:"",waitlist:null},isAuthenticated:!1}),localStorage.removeItem("animationPlayed")}catch(r){console.error("Impossible de déconnecter l'utilisateur: "+r)}})().then(()=>{e("/login")}).catch(r=>{console.error("Impossible de déconnecter l'utilisateur: "+r)})},[e,t]),E.jsx("div",{className:"container"})}const fT=()=>{const e=()=>{const t=window.location.href;navigator.clipboard.writeText(t),De.info("Adresse de la room copiée !",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!1})};return E.jsx("svg",{onClick:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"1em",height:"1em",fill:"currentColor",className:"copy",children:E.jsx("path",{d:"M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z"})})},pT=we.p` +`;function iT(){const{setAuth:e}=S.useContext(nn),[t,n]=S.useState(""),[r,i]=S.useState(!1),o=Tr(),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)){De.error("UUID non valide!",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!1}),i(!1);return}try{await K1(t,e),setTimeout(()=>{document.querySelectorAll(".modal-backdrop").forEach(c=>{c.remove()}),o("/waitlist/"+t)},500),i(!1)}catch(u){De.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(qo,{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(La),{auth:u}=S.useContext(nn);return S.useEffect(()=>{if(!u.isAuthenticated)return;if(localStorage.getItem("animationPlayed")==="true"){r(!1),s(!0);return}const f=new EventSource(`${sT}/players/library-checker?token=${Ku("token")}`,{withCredentials:!0});return f.onmessage=h=>{const m=JSON.parse(h.data);m.complete&&(f.close(),setTimeout(()=>{o(!0)},1e3),setTimeout(()=>{r(!1),s(!0),localStorage.setItem("animationPlayed","true")},2e3)),t(y=>[...y,m])},f.onerror=h=>{console.error("SSE error:",h),f.close()},()=>{f.close()}},[u,s]),E.jsx("section",{className:"py-4 py-xl-5",children:E.jsxs("div",{className:"container",children:[n&&E.jsx(rC,{messages:e,animateFirstDiv:i}),l&&E.jsx(oT,{})]})})}function Lw(){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 Rw=(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(),De.info("L'administrateur a fermé le salon",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!0})},Ju=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},Aw=(e,t)=>{e(n=>{if(!n)return n;const r=Ju({...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}})},Dw=(e,t,n)=>{De.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}`)},$w=(e,t,n,r,i,o,s)=>{t===n?(De.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&&De.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=Ju({...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=Ju({...n,players:[...n.players,t]})||[];return{...n,players:[...n.players,t],commonGames:i}})},Mw=(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(nn),{loadingComplete:n}=S.useContext(La),{socket:r}=S.useContext(rs),{room:i,setRoom:o}=S.useContext(rn),[s,l]=S.useState(!1),[u,c]=S.useState(!0),f=Tr(),h=i==null?void 0:i.id,m=i==null?void 0:i.admin_id;return e.isAuthenticated||f("/login"),h&&i.winner&&(o(null),t(x=>({...x,user:{...x.user,waitlist:null}}))),S.useEffect(()=>{c(!0),(async()=>{try{const _=await H1();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"?Aw(o,_.player):_.action==="end"?Rw(r,o,!0,f,t):_.action==="kicked"?$w(r,_.playerId,(C=e.user)==null?void 0:C.id,m??"",o,void 0,t):_.action==="start"?Dw(o,h,f):_.action==="retrieve"&&Mw(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(Ip,{}):s?E.jsx(aT,{}):E.jsx(V1,{})}),!u&&n?E.jsx(Lw,{}):""]})}function dT(){const e=Tr(),{setAuth:t}=S.useContext(nn);return S.useEffect(()=>{(async()=>{try{await Ok(),t({user:{id:"",username:"",waitlist:null},isAuthenticated:!1}),localStorage.removeItem("animationPlayed")}catch(r){console.error("Impossible de déconnecter l'utilisateur: "+r)}})().then(()=>{e("/login")}).catch(r=>{console.error("Impossible de déconnecter l'utilisateur: "+r)})},[e,t]),E.jsx("div",{className:"container"})}const fT=()=>{const e=()=>{const t=window.location.href;navigator.clipboard.writeText(t),De.info("Adresse de la room copiée !",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!1})};return E.jsx("svg",{onClick:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"1em",height:"1em",fill:"currentColor",className:"copy",children:E.jsx("path",{d:"M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z"})})},pT=we.p` margin-bottom: 0px; -`,hT=()=>{const{room:e}=S.useContext(nn),t=e==null?void 0:e.players.find(n=>n.player_id===e.admin_id);return E.jsxs(pT,{className:"text-primary-emphasis",children:[E.jsx(qo,{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 ..."]})},mT=we.p` +`,hT=()=>{const{room:e}=S.useContext(rn),t=e==null?void 0:e.players.find(n=>n.player_id===e.admin_id);return E.jsxs(pT,{className:"text-primary-emphasis",children:[E.jsx(qo,{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 ..."]})},mT=we.p` margin-bottom: 0px; -`,gT=()=>{const{room:e}=S.useContext(nn);return e?E.jsxs(mT,{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,{})},vT=we.div` +`,gT=()=>{const{room:e}=S.useContext(rn);return e?E.jsxs(mT,{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,{})},vT=we.div` cursor: default; user-select: none; -`,yT=()=>{const{room:e}=S.useContext(nn),{auth:t}=S.useContext(gn);return E.jsx("div",{className:"text-center p-4 p-lg-5",children:E.jsxs(vT,{children:[t.user.id!==(e==null?void 0:e.admin_id)?E.jsx(hT,{}):E.jsx(E.Fragment,{}),E.jsx(gT,{})]})})},wT=()=>{var x;const[e,t]=S.useState(!1),{room:n,setRoom:r}=S.useContext(nn),{socket:i}=S.useContext(rs),{setAuth:o,auth:s}=S.useContext(gn),l=Tr();if(!n)return E.jsx(E.Fragment,{});const u=((x=s.user)==null?void 0:x.id)===n.admin_id,c=()=>{!i||e||(t(!0),iC(n.id,o).then(()=>{i.send(JSON.stringify({action:"leave"})),r(null),t(!1),i.close(),l("/")}).catch(_=>{De.error(_.message,{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!1}),t(!1)}))},f=n.commonGames.length>0,h=n.players.length,m=!f||h<=1,y=()=>{!i||m||e||(t(!0),i.send(JSON.stringify({action:"start"})),t(!1))};return E.jsxs(tT,{className:"justify-content-center",children:[u?E.jsx(gv,{xs:"auto",children:E.jsx(mv,{variant:m||e?"outline-light":"outline-primary",size:"lg",disabled:m||e,onClick:y,children:e?E.jsx(qo,{size:"sm"}):"Démarrer"})}):E.jsx(E.Fragment,{}),E.jsx(gv,{xs:"auto",children:E.jsx(mv,{variant:e?"outline-light":"outline-danger",size:"lg",disabled:e,onClick:c,children:e?E.jsx(qo,{size:"sm"}):"Quitter"})})]})},xT=()=>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"})]}),_T=we.p` +`,yT=()=>{const{room:e}=S.useContext(rn),{auth:t}=S.useContext(nn);return E.jsx("div",{className:"text-center p-4 p-lg-5",children:E.jsxs(vT,{children:[t.user.id!==(e==null?void 0:e.admin_id)?E.jsx(hT,{}):E.jsx(E.Fragment,{}),E.jsx(gT,{})]})})},wT=()=>{var x;const[e,t]=S.useState(!1),{room:n,setRoom:r}=S.useContext(rn),{socket:i}=S.useContext(rs),{setAuth:o,auth:s}=S.useContext(nn),l=Tr();if(!n)return E.jsx(E.Fragment,{});const u=((x=s.user)==null?void 0:x.id)===n.admin_id,c=()=>{!i||e||(t(!0),iC(n.id,o).then(()=>{i.send(JSON.stringify({action:"leave"})),r(null),t(!1),i.close(),l("/")}).catch(_=>{De.error(_.message,{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!1}),t(!1)}))},f=n.commonGames.length>0,h=n.players.length,m=!f||h<=1,y=()=>{!i||m||e||(t(!0),i.send(JSON.stringify({action:"start"})),t(!1))};return E.jsxs(tT,{className:"justify-content-center",children:[u?E.jsx(gv,{xs:"auto",children:E.jsx(mv,{variant:m||e?"outline-light":"outline-primary",size:"lg",disabled:m||e,onClick:y,children:e?E.jsx(qo,{size:"sm"}):"Démarrer"})}):E.jsx(E.Fragment,{}),E.jsx(gv,{xs:"auto",children:E.jsx(mv,{variant:e?"outline-light":"outline-danger",size:"lg",disabled:e,onClick:c,children:e?E.jsx(qo,{size:"sm"}):"Quitter"})})]})},xT=()=>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"})]}),_T=we.p` margin-bottom: 0px; -`,ET=()=>{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(_T,{className:"text-danger",children:[E.jsx(xT,{})," ",r]},i))})},bT=we.p` +`,ET=()=>{const{room:e}=S.useContext(rn);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(_T,{className:"text-danger",children:[E.jsx(xT,{})," ",r]},i))})},bT=we.p` margin-bottom: 0px; -`,ST=()=>{const{room:e}=S.useContext(nn);return!e||e.players.length>1?E.jsx(E.Fragment,{}):E.jsx(bT,{className:"text-dark text-opacity-25",children:"Il faut au moins deux joueurs dans la room pour commencer"})};function kT({isLoggedUser:e}){const t=we.svg` +`,ST=()=>{const{room:e}=S.useContext(rn);return!e||e.players.length>1?E.jsx(E.Fragment,{}):E.jsx(bT,{className:"text-dark text-opacity-25",children:"Il faut au moins deux joueurs dans la room pour commencer"})};function kT({isLoggedUser:e}){const t=we.svg` position: absolute; color: var(--bs-warning); font-size: 44px; @@ -199,16 +199,16 @@ Error generating stack: `+o.message+` margin-top: 13px; `,jT=()=>E.jsx(OT,{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"})}),PT=we.svg` font-size: 29px; -`,NT=()=>E.jsxs(PT,{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 LT({playerId:e}){const[t,n]=S.useState(!1),{room:r}=S.useContext(nn),{socket:i}=S.useContext(rs);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}})),De.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),De.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(qo,{animation:"border",size:"sm"}):E.jsx(NT,{})})}const RT=we.p` +`,NT=()=>E.jsxs(PT,{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 LT({playerId:e}){const[t,n]=S.useState(!1),{room:r}=S.useContext(rn),{socket:i}=S.useContext(rs);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}})),De.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),De.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(qo,{animation:"border",size:"sm"}):E.jsx(NT,{})})}const RT=we.p` margin-top: 7px; -`,AT=e=>e>0?`${e} jeu${e>1?"x":""} en commun`:"Aucun jeu en commun ... :(";function DT({player:e}){var u,c;const{room:t}=S.useContext(nn),{auth:n}=S.useContext(gn),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(kT,{isLoggedUser:i}):E.jsx(E.Fragment,{}),r&&e.player_id!==(t==null?void 0:t.admin_id)?E.jsx(LT,{playerId:e.player_id}):E.jsx(E.Fragment,{}),!i&&s.length!==0&&l()&&E.jsx(jT,{}),E.jsx(Rv,{placement:"top",overlay:E.jsx(Lf,{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(Rv,{placement:"bottom",overlay:E.jsx(Lf,{id:`Tooltip for Games in Commun with #${e.player_id}`,children:AT(s.length)}),children:E.jsxs(RT,{className:`lead text-center text-bold ${s.length>0?"text-primary":"text-danger"}`,children:[s.length,E.jsx(TT,{})]})})]})}const $T=we.span` +`,AT=e=>e>0?`${e} jeu${e>1?"x":""} en commun`:"Aucun jeu en commun ... :(";function DT({player:e}){var u,c;const{room:t}=S.useContext(rn),{auth:n}=S.useContext(nn),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(kT,{isLoggedUser:i}):E.jsx(E.Fragment,{}),r&&e.player_id!==(t==null?void 0:t.admin_id)?E.jsx(LT,{playerId:e.player_id}):E.jsx(E.Fragment,{}),!i&&s.length!==0&&l()&&E.jsx(jT,{}),E.jsx(Rv,{placement:"top",overlay:E.jsx(Lf,{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(Rv,{placement:"bottom",overlay:E.jsx(Lf,{id:`Tooltip for Games in Commun with #${e.player_id}`,children:AT(s.length)}),children:E.jsxs(RT,{className:`lead text-center text-bold ${s.length>0?"text-primary":"text-danger"}`,children:[s.length,E.jsx(TT,{})]})})]})}const $T=we.span` font-weight: normal !important; `,MT=we.div` font-size: 13px; font-style: italic; margin-top: 9px; text-align: center; -`;function IT(){const{room:e}=S.useContext(nn),t=Tr();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.jsxs($T,{children:[e.id," ",E.jsx(fT,{})]})]})})}),E.jsxs("div",{className:"row gy-1 justify-content-center",children:[e.players.map((n,r)=>E.jsx(DT,{player:n},r)),E.jsx(yT,{}),E.jsx(wT,{}),E.jsxs(MT,{children:[E.jsx(ET,{}),E.jsx(ST,{})]})]})]}):(t("/"),E.jsx(E.Fragment,{}))}const zT=()=>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 FT(){var f,h;const{room:e,setRoom:t}=S.useContext(nn),[n,r]=S.useState(0),[i,o]=S.useState(!1),s=S.useContext(rs);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),Yk(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}),qk(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(zT,{})," 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(qo,{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 BT(){var y;const{id:e}=W2(),{setAuth:t,auth:n}=S.useContext(gn),{setLoadingComplete:r,loadingComplete:i}=S.useContext(La),{room:o,setRoom:s}=S.useContext(nn),{socket:l}=S.useContext(rs),[u,c]=S.useState(!0),f=Tr(),h=o==null?void 0:o.id,m=o==null?void 0:o.admin_id;return S.useEffect(()=>{n.isAuthenticated||(async()=>{try{const _=await H1();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 G1(e,t);s(C=>{const v=Ju(_.data);return{...C,..._.data,commonGames:v}})}catch(_){console.error("Erreur lors du chargement des informations de la room:",_),n.user.waitlist!==e&&f("/")}finally{c(!1)}})()},[e,f,s,o==null?void 0:o.started,t,n]),S.useEffect(()=>{l&&h&&(l.onmessage=x=>{var C;const _=JSON.parse(x.data);_.action==="join"?uT(s,_.player):_.action==="leave"?Aw(s,_.player):_.action==="end"?Rw(l,s,!1,f):_.action==="kicked"?$w(l,_.playerId,(C=n.user)==null?void 0:C.id,m??"",s,f,t):_.action==="start"?Dw(s):_.action==="gameEnd"?lT(s,t,_.winner):_.action==="retrieve"&&Mw(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(Ip,{}):o!=null&&o.started?E.jsx(FT,{}):E.jsx(IT,{})}),!u&&i?E.jsx(Lw,{}):""]})}const UT=we.div` +`;function IT(){const{room:e}=S.useContext(rn),t=Tr();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.jsxs($T,{children:[e.id," ",E.jsx(fT,{})]})]})})}),E.jsxs("div",{className:"row gy-1 justify-content-center",children:[e.players.map((n,r)=>E.jsx(DT,{player:n},r)),E.jsx(yT,{}),E.jsx(wT,{}),E.jsxs(MT,{children:[E.jsx(ET,{}),E.jsx(ST,{})]})]})]}):(t("/"),E.jsx(E.Fragment,{}))}const zT=()=>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 FT(){var f,h;const{room:e,setRoom:t}=S.useContext(rn),[n,r]=S.useState(0),[i,o]=S.useState(!1),s=S.useContext(rs);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),Yk(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}),qk(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(zT,{})," 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(qo,{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 BT(){var y;const{id:e}=W2(),{setAuth:t,auth:n}=S.useContext(nn),{setLoadingComplete:r,loadingComplete:i}=S.useContext(La),{room:o,setRoom:s}=S.useContext(rn),{socket:l}=S.useContext(rs),[u,c]=S.useState(!0),f=Tr(),h=o==null?void 0:o.id,m=o==null?void 0:o.admin_id;return S.useEffect(()=>{n.isAuthenticated||(async()=>{try{const _=await H1();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 G1(e,t);s(C=>{const v=Ju(_.data);return{...C,..._.data,commonGames:v}})}catch(_){console.error("Erreur lors du chargement des informations de la room:",_),n.user.waitlist!==e&&f("/")}finally{c(!1)}})()},[e,f,s,o==null?void 0:o.started,t,n]),S.useEffect(()=>{l&&h&&(l.onmessage=x=>{var C;const _=JSON.parse(x.data);_.action==="join"?uT(s,_.player):_.action==="leave"?Aw(s,_.player):_.action==="end"?Rw(l,s,!1,f):_.action==="kicked"?$w(l,_.playerId,(C=n.user)==null?void 0:C.id,m??"",s,f,t):_.action==="start"?Dw(s):_.action==="gameEnd"?lT(s,t,_.winner):_.action==="retrieve"&&Mw(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(Ip,{}):o!=null&&o.started?E.jsx(FT,{}):E.jsx(IT,{})}),!u&&i?E.jsx(Lw,{}):""]})}const UT=we.div` cursor: default; user-select: none; `,Av=we.span` @@ -225,4 +225,4 @@ Error generating stack: `+o.message+` border-color: #e56a6a; `,n=we.svg` color: white; - `;return E.jsxs(vu,{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 QT(){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 YT(){const{auth:e}=S.useContext(gn),n=Pa().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(vu,{to:"/waitlist/"+e.user.waitlist,className:`nav-link ${n.includes("/waitlist")?"active":""}`,children:"Room actuelle"})}):""]}),E.jsx(vu,{to:"/logout",className:"btn btn-outline-primary",role:"button",children:"Déconnexion"})]})}function qT(){const{auth:e}=S.useContext(gn),{loadingComplete:t}=S.useContext(La);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(KT,{title:"SteamWGP"}),E.jsx(QT,{}),E.jsx(YT,{})]})}):E.jsx(E.Fragment,{})})}function XT(){return S.useEffect(()=>{Gg.init(),Gg.refresh()},[]),E.jsx(Wk,{children:E.jsx(Vk,{children:E.jsx(Gk,{children:E.jsxs(Xk,{children:[E.jsx(Ef,{position:"bottom-right",autoClose:5e3,newestOnTop:!1,closeOnClick:!0,pauseOnFocusLoss:!0,closeButton:!1,theme:"colored"}),E.jsx(qT,{}),E.jsxs(iS,{children:[E.jsx(co,{path:"/",element:E.jsx(cT,{})}),E.jsx(co,{path:"/login",element:E.jsx(V1,{})}),E.jsx(co,{path:"/logout",element:E.jsx(dT,{})}),E.jsx(co,{path:"/waitlist/:id",element:E.jsx(BT,{})}),E.jsx(co,{path:"*",element:E.jsx(GT,{})})]})]})})})})}const ZT=cS([{path:"/*",element:E.jsx(XT,{})}]);md.createRoot(document.getElementById("root")).render(E.jsx(ke.StrictMode,{children:E.jsx(wS,{router:ZT})})); + `;return E.jsxs(vu,{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 QT(){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 YT(){const{auth:e}=S.useContext(nn),n=Pa().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(vu,{to:"/waitlist/"+e.user.waitlist,className:`nav-link ${n.includes("/waitlist")?"active":""}`,children:"Room actuelle"})}):""]}),E.jsx(vu,{to:"/logout",className:"btn btn-outline-primary",role:"button",children:"Déconnexion"})]})}function qT(){const{auth:e}=S.useContext(nn),{loadingComplete:t}=S.useContext(La);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(KT,{title:"SteamWGP"}),E.jsx(QT,{}),E.jsx(YT,{})]})}):E.jsx(E.Fragment,{})})}function XT(){return S.useEffect(()=>{Gg.init(),Gg.refresh()},[]),E.jsx(Wk,{children:E.jsx(Vk,{children:E.jsx(Gk,{children:E.jsxs(Xk,{children:[E.jsx(Ef,{position:"bottom-right",autoClose:5e3,newestOnTop:!1,closeOnClick:!0,pauseOnFocusLoss:!0,closeButton:!1,theme:"colored"}),E.jsx(qT,{}),E.jsxs(iS,{children:[E.jsx(co,{path:"/",element:E.jsx(cT,{})}),E.jsx(co,{path:"/login",element:E.jsx(V1,{})}),E.jsx(co,{path:"/logout",element:E.jsx(dT,{})}),E.jsx(co,{path:"/waitlist/:id",element:E.jsx(BT,{})}),E.jsx(co,{path:"*",element:E.jsx(GT,{})})]})]})})})})}const ZT=cS([{path:"/*",element:E.jsx(XT,{})}]);md.createRoot(document.getElementById("root")).render(E.jsx(ke.StrictMode,{children:E.jsx(wS,{router:ZT})})); diff --git a/index.html b/index.html index 991ce95..78ada79 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ SteamWGP - +