From d310f3bf9c00c98c4713fe6a202a298bec6812eb Mon Sep 17 00:00:00 2001 From: dmanslick Date: Sat, 28 Oct 2023 23:43:30 -0400 Subject: [PATCH] trying to fix scoutview image issue --- files/nemesis/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/nemesis/index.html b/files/nemesis/index.html index b14d554..28a07c1 100644 --- a/files/nemesis/index.html +++ b/files/nemesis/index.html @@ -45,11 +45,11 @@ `+i[l].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=l&&0<=a);break}}}finally{hl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?wi(e):""}function Uy(e){switch(e.tag){case 5:return wi(e.type);case 16:return wi("Lazy");case 13:return wi("Suspense");case 19:return wi("SuspenseList");case 0:case 2:case 15:return e=ml(e.type,!1),e;case 11:return e=ml(e.type.render,!1),e;case 1:return e=ml(e.type,!0),e;default:return""}}function Vl(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 xr:return"Fragment";case Ar:return"Portal";case zl:return"Profiler";case Ba:return"StrictMode";case Bl:return"Suspense";case Hl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case uf:return(e.displayName||"Context")+".Consumer";case af:return(e._context.displayName||"Context")+".Provider";case Ha:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Va:return t=e.displayName||null,t!==null?t:Vl(e.type)||"Memo";case Cn:t=e._payload,e=e._init;try{return Vl(e(t))}catch{}}return null}function Qy(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 Vl(t);case 8:return t===Ba?"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 $n(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function df(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ky(e){var t=df(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function To(e){e._valueTracker||(e._valueTracker=Ky(e))}function ff(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=df(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ns(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 Wl(e,t){var n=t.checked;return le({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function bc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=$n(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 pf(e,t){t=t.checked,t!=null&&za(e,"checked",t,!1)}function Ul(e,t){pf(e,t);var n=$n(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")?Ql(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ql(e,t.type,$n(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Mc(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 Ql(e,t,n){(t!=="number"||ns(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ci=Array.isArray;function Fr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=No.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ji(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ki={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},Yy=["Webkit","ms","Moz","O"];Object.keys(ki).forEach(function(e){Yy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ki[t]=ki[e]})});function vf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ki.hasOwnProperty(e)&&ki[e]?(""+t).trim():t+"px"}function yf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=vf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Gy=le({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 Gl(e,t){if(t){if(Gy[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function Xl(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 Zl=null;function Wa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jl=null,zr=null,Br=null;function jc(e){if(e=ro(e)){if(typeof Jl!="function")throw Error(O(280));var t=e.stateNode;t&&(t=Ds(t),Jl(e.stateNode,e.type,t))}}function _f(e){zr?Br?Br.push(e):Br=[e]:zr=e}function Ef(){if(zr){var e=zr,t=Br;if(Br=zr=null,jc(e),t)for(e=0;e>>=0,e===0?32:31-(s_(e)/l_|0)|0}var ko=64,Ao=4194304;function Ti(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 ss(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~i;a!==0?r=Ti(a):(o&=l,o!==0&&(r=Ti(o)))}else l=n&~i,l!==0?r=Ti(l):o!==0&&(r=Ti(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 to(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Lt(t),e[t]=n}function d_(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=xi),Kc=String.fromCharCode(32),Yc=!1;function zf(e,t){switch(e){case"keyup":return F_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Or=!1;function B_(e,t){switch(e){case"compositionend":return Bf(t);case"keypress":return t.which!==32?null:(Yc=!0,Kc);case"textInput":return e=t.data,e===Kc&&Yc?null:e;default:return null}}function H_(e,t){if(Or)return e==="compositionend"||!Ja&&zf(e,t)?(e=jf(),Uo=Ga=An=null,Or=!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=Jc(n)}}function Uf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Uf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Qf(){for(var e=window,t=ns();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ns(e.document)}return t}function qa(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 Z_(e){var t=Qf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Uf(n.ownerDocument.documentElement,n)){if(r!==null&&qa(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=qc(n,o);var l=qc(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Lr=null,ia=null,Li=null,oa=!1;function ed(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;oa||Lr==null||Lr!==ns(r)||(r=Lr,"selectionStart"in r&&qa(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}),Li&&Wi(Li,r)||(Li=r,r=us(ia,"onSelect"),0Pr||(e.current=da[Pr],da[Pr]=null,Pr--)}function J(e,t){Pr++,da[Pr]=e.current,e.current=t}var jn={},De=zn(jn),Ke=zn(!1),lr=jn;function Qr(e,t){var n=e.type.contextTypes;if(!n)return jn;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 Ye(e){return e=e.childContextTypes,e!=null}function ds(){te(Ke),te(De)}function ld(e,t,n){if(De.current!==jn)throw Error(O(168));J(De,t),J(Ke,n)}function tp(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(O(108,Qy(e)||"Unknown",i));return le({},n,r)}function fs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||jn,lr=De.current,J(De,e),J(Ke,Ke.current),!0}function ad(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=tp(e,t,lr),r.__reactInternalMemoizedMergedChildContext=e,te(Ke),te(De),J(De,e)):te(Ke),J(Ke,n)}var tn=null,Ps=!1,Ol=!1;function np(e){tn===null?tn=[e]:tn.push(e)}function u1(e){Ps=!0,np(e)}function Bn(){if(!Ol&&tn!==null){Ol=!0;var e=0,t=X;try{var n=tn;for(X=1;e>=l,i-=l,nn=1<<32-Lt(t)+i|n<b?(z=L,L=null):z=L.sibling;var R=_(v,L,y[b],S);if(R===null){L===null&&(L=z);break}e&&L&&R.alternate===null&&t(v,L),p=o(R,p,b),x===null?A=R:x.sibling=R,x=R,L=z}if(b===y.length)return n(v,L),re&&qn(v,b),A;if(L===null){for(;bb?(z=L,L=null):z=L.sibling;var V=_(v,L,R.value,S);if(V===null){L===null&&(L=z);break}e&&L&&V.alternate===null&&t(v,L),p=o(V,p,b),x===null?A=V:x.sibling=V,x=V,L=z}if(R.done)return n(v,L),re&&qn(v,b),A;if(L===null){for(;!R.done;b++,R=y.next())R=E(v,R.value,S),R!==null&&(p=o(R,p,b),x===null?A=R:x.sibling=R,x=R);return re&&qn(v,b),A}for(L=r(v,L);!R.done;b++,R=y.next())R=w(L,v,b,R.value,S),R!==null&&(e&&R.alternate!==null&&L.delete(R.key===null?b:R.key),p=o(R,p,b),x===null?A=R:x.sibling=R,x=R);return e&&L.forEach(function(q){return t(v,q)}),re&&qn(v,b),A}function $(v,p,y,S){if(typeof y=="object"&&y!==null&&y.type===xr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Co:e:{for(var A=y.key,x=p;x!==null;){if(x.key===A){if(A=y.type,A===xr){if(x.tag===7){n(v,x.sibling),p=i(x,y.props.children),p.return=v,v=p;break e}}else if(x.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===Cn&&md(A)===x.type){n(v,x.sibling),p=i(x,y.props),p.ref=_i(v,x,y),p.return=v,v=p;break e}n(v,x);break}else t(v,x);x=x.sibling}y.type===xr?(p=or(y.props.children,v.mode,S,y.key),p.return=v,v=p):(S=qo(y.type,y.key,y.props,null,v.mode,S),S.ref=_i(v,p,y),S.return=v,v=S)}return l(v);case Ar:e:{for(x=y.key;p!==null;){if(p.key===x)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){n(v,p.sibling),p=i(p,y.children||[]),p.return=v,v=p;break e}else{n(v,p);break}else t(v,p);p=p.sibling}p=$l(y,v.mode,S),p.return=v,v=p}return l(v);case Cn:return x=y._init,$(v,p,x(y._payload),S)}if(Ci(y))return N(v,p,y,S);if(hi(y))return T(v,p,y,S);bo(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(n(v,p.sibling),p=i(p,y),p.return=v,v=p):(n(v,p),p=Rl(y,v.mode,S),p.return=v,v=p),l(v)):n(v,p)}return $}var Yr=cp(!0),dp=cp(!1),io={},Ht=zn(io),Yi=zn(io),Gi=zn(io);function rr(e){if(e===io)throw Error(O(174));return e}function au(e,t){switch(J(Gi,t),J(Yi,e),J(Ht,io),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Yl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Yl(t,e)}te(Ht),J(Ht,t)}function Gr(){te(Ht),te(Yi),te(Gi)}function fp(e){rr(Gi.current);var t=rr(Ht.current),n=Yl(t,e.type);t!==n&&(J(Yi,e),J(Ht,n))}function uu(e){Yi.current===e&&(te(Ht),te(Yi))}var oe=zn(0);function ys(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 Ll=[];function cu(){for(var e=0;en?n:4,e(!0);var r=Il.transition;Il.transition={};try{e(!1),t()}finally{X=n,Il.transition=r}}function xp(){return St().memoizedState}function p1(e,t,n){var r=Mn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Op(e))Lp(t,n);else if(n=sp(e,t,n,r),n!==null){var i=Re();It(n,e,r,i),Ip(n,t,r)}}function h1(e,t,n){var r=Mn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Op(e))Lp(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,a=o(l,n);if(i.hasEagerState=!0,i.eagerState=a,Dt(a,l)){var c=t.interleaved;c===null?(i.next=i,su(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=sp(e,t,i,r),n!==null&&(i=Re(),It(n,e,r,i),Ip(n,t,r))}}function Op(e){var t=e.alternate;return e===se||t!==null&&t===se}function Lp(e,t){Ii=_s=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ip(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qa(e,n)}}var Es={readContext:Et,useCallback:Oe,useContext:Oe,useEffect:Oe,useImperativeHandle:Oe,useInsertionEffect:Oe,useLayoutEffect:Oe,useMemo:Oe,useReducer:Oe,useRef:Oe,useState:Oe,useDebugValue:Oe,useDeferredValue:Oe,useTransition:Oe,useMutableSource:Oe,useSyncExternalStore:Oe,useId:Oe,unstable_isNewReconciler:!1},m1={readContext:Et,useCallback:function(e,t){return $t().memoizedState=[e,t===void 0?null:t],e},useContext:Et,useEffect:vd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Go(4194308,4,Cp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Go(4194308,4,e,t)},useInsertionEffect:function(e,t){return Go(4,2,e,t)},useMemo:function(e,t){var n=$t();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$t();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=p1.bind(null,se,e),[r.memoizedState,e]},useRef:function(e){var t=$t();return e={current:e},t.memoizedState=e},useState:gd,useDebugValue:mu,useDeferredValue:function(e){return $t().memoizedState=e},useTransition:function(){var e=gd(!1),t=e[0];return e=f1.bind(null,e[1]),$t().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=se,i=$t();if(re){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),we===null)throw Error(O(349));ur&30||mp(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,vd(vp.bind(null,r,o,e),[e]),r.flags|=2048,Ji(9,gp.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=$t(),t=we.identifierPrefix;if(re){var n=rn,r=nn;n=(r&~(1<<32-Lt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Xi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[jt]=t,e[Ki]=r,zp(e,t,!1,!1),t.stateNode=e;e:{switch(l=Xl(n,r),n){case"dialog":ee("cancel",e),ee("close",e),i=r;break;case"iframe":case"object":case"embed":ee("load",e),i=r;break;case"video":case"audio":for(i=0;iZr&&(t.flags|=128,r=!0,Ei(o,!1),t.lanes=4194304)}else{if(!r)if(e=ys(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ei(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!re)return Le(t),null}else 2*fe()-o.renderingStartTime>Zr&&n!==1073741824&&(t.flags|=128,r=!0,Ei(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=fe(),t.sibling=null,n=oe.current,J(oe,r?n&1|2:n&1),t):(Le(t),null);case 22:case 23:return Su(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Je&1073741824&&(Le(t),t.subtreeFlags&6&&(t.flags|=8192)):Le(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function C1(e,t){switch(tu(t),t.tag){case 1:return Ye(t.type)&&ds(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gr(),te(Ke),te(De),cu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return uu(t),null;case 13:if(te(oe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));Kr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return te(oe),null;case 4:return Gr(),null;case 10:return ou(t.type._context),null;case 22:case 23:return Su(),null;case 24:return null;default:return null}}var Ro=!1,Ie=!1,T1=typeof WeakSet=="function"?WeakSet:Set,F=null;function $r(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ue(e,t,r)}else n.current=null}function Ca(e,t,n){try{n()}catch(r){ue(e,t,r)}}var kd=!1;function N1(e,t){if(sa=ls,e=Qf(),qa(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,a=-1,c=-1,d=0,g=0,E=e,_=null;t:for(;;){for(var w;E!==n||i!==0&&E.nodeType!==3||(a=l+i),E!==o||r!==0&&E.nodeType!==3||(c=l+r),E.nodeType===3&&(l+=E.nodeValue.length),(w=E.firstChild)!==null;)_=E,E=w;for(;;){if(E===e)break t;if(_===n&&++d===i&&(a=l),_===o&&++g===r&&(c=l),(w=E.nextSibling)!==null)break;E=_,_=E.parentNode}E=w}n=a===-1||c===-1?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(la={focusedElem:e,selectionRange:n},ls=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var N=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(N!==null){var T=N.memoizedProps,$=N.memoizedState,v=t.stateNode,p=v.getSnapshotBeforeUpdate(t.elementType===t.type?T:kt(t.type,T),$);v.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(S){ue(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return N=kd,kd=!1,N}function Di(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&&Ca(t,n,o)}i=i.next}while(i!==r)}}function Rs(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 Ta(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 Vp(e){var t=e.alternate;t!==null&&(e.alternate=null,Vp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[jt],delete t[Ki],delete t[ca],delete t[l1],delete t[a1])),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 Wp(e){return e.tag===5||e.tag===3||e.tag===4}function Ad(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wp(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 Na(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=cs));else if(r!==4&&(e=e.child,e!==null))for(Na(e,t,n),e=e.sibling;e!==null;)Na(e,t,n),e=e.sibling}function ka(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(ka(e,t,n),e=e.sibling;e!==null;)ka(e,t,n),e=e.sibling}var Te=null,At=!1;function Sn(e,t,n){for(n=n.child;n!==null;)Up(e,t,n),n=n.sibling}function Up(e,t,n){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(xs,n)}catch{}switch(n.tag){case 5:Ie||$r(n,t);case 6:var r=Te,i=At;Te=null,Sn(e,t,n),Te=r,At=i,Te!==null&&(At?(e=Te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Te.removeChild(n.stateNode));break;case 18:Te!==null&&(At?(e=Te,n=n.stateNode,e.nodeType===8?xl(e.parentNode,n):e.nodeType===1&&xl(e,n),Hi(e)):xl(Te,n.stateNode));break;case 4:r=Te,i=At,Te=n.stateNode.containerInfo,At=!0,Sn(e,t,n),Te=r,At=i;break;case 0:case 11:case 14:case 15:if(!Ie&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&Ca(n,t,l),i=i.next}while(i!==r)}Sn(e,t,n);break;case 1:if(!Ie&&($r(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ue(n,t,a)}Sn(e,t,n);break;case 21:Sn(e,t,n);break;case 22:n.mode&1?(Ie=(r=Ie)||n.memoizedState!==null,Sn(e,t,n),Ie=r):Sn(e,t,n);break;default:Sn(e,t,n)}}function xd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new T1),t.forEach(function(r){var i=b1.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~o}if(r=i,r=fe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*A1(r/1960))-r,10e?16:e,xn===null)var r=!1;else{if(e=xn,xn=null,Cs=0,K&6)throw Error(O(331));var i=K;for(K|=4,F=e.current;F!==null;){var o=F,l=o.child;if(F.flags&16){var a=o.deletions;if(a!==null){for(var c=0;cfe()-_u?ir(e,0):yu|=n),Ge(e,t)}function qp(e,t){t===0&&(e.mode&1?(t=Ao,Ao<<=1,!(Ao&130023424)&&(Ao=4194304)):t=1);var n=Re();e=an(e,t),e!==null&&(to(e,t,n),Ge(e,n))}function P1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qp(e,n)}function b1(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(O(314))}r!==null&&r.delete(t),qp(e,n)}var eh;eh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ke.current)Qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Qe=!1,S1(e,t,n);Qe=!!(e.flags&131072)}else Qe=!1,re&&t.flags&1048576&&rp(t,hs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Xo(e,t),e=t.pendingProps;var i=Qr(t,De.current);Vr(t,n),i=fu(null,t,r,e,i,n);var o=pu();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,Ye(r)?(o=!0,fs(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,lu(t),i.updater=bs,t.stateNode=i,i._reactInternals=t,ga(t,r,e,n),t=_a(null,t,r,!0,o,n)):(t.tag=0,re&&o&&eu(t),Me(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Xo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=R1(r),e=kt(r,e),i){case 0:t=ya(null,t,r,e,n);break e;case 1:t=Cd(null,t,r,e,n);break e;case 11:t=Sd(null,t,r,e,n);break e;case 14:t=wd(null,t,r,kt(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),ya(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),Cd(e,t,r,i,n);case 3:e:{if($p(t),e===null)throw Error(O(387));r=t.pendingProps,o=t.memoizedState,i=o.element,lp(e,t),vs(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Xr(Error(O(423)),t),t=Td(e,t,r,n,i);break e}else if(r!==i){i=Xr(Error(O(424)),t),t=Td(e,t,r,n,i);break e}else for(qe=Dn(t.stateNode.containerInfo.firstChild),et=t,re=!0,xt=null,n=dp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Kr(),r===i){t=un(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return fp(t),e===null&&pa(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,aa(r,i)?l=null:o!==null&&aa(r,o)&&(t.flags|=32),Rp(e,t),Me(e,t,l,n),t.child;case 6:return e===null&&pa(t),null;case 13:return jp(e,t,n);case 4:return au(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Yr(t,null,r,n):Me(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),Sd(e,t,r,i,n);case 7:return Me(e,t,t.pendingProps,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,J(ms,r._currentValue),r._currentValue=l,o!==null)if(Dt(o.value,l)){if(o.children===i.children&&!Ke.current){t=un(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){l=o.child;for(var c=a.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=on(-1,n&-n),c.tag=2;var d=o.updateQueue;if(d!==null){d=d.shared;var g=d.pending;g===null?c.next=c:(c.next=g.next,g.next=c),d.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ha(o.return,n,t),a.lanes|=n;break}c=c.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(O(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),ha(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}Me(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Vr(t,n),i=Et(i),r=r(i),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,i=kt(r,t.pendingProps),i=kt(r.type,i),wd(e,t,r,i,n);case 15:return bp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),Xo(e,t),t.tag=1,Ye(r)?(e=!0,fs(t)):e=!1,Vr(t,n),up(t,r,i),ga(t,r,i,n),_a(null,t,r,!0,e,n);case 19:return Fp(e,t,n);case 22:return Mp(e,t,n)}throw Error(O(156,t.tag))};function th(e,t){return Af(e,t)}function M1(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 vt(e,t,n,r){return new M1(e,t,n,r)}function Cu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function R1(e){if(typeof e=="function")return Cu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ha)return 11;if(e===Va)return 14}return 2}function Rn(e,t){var n=e.alternate;return n===null?(n=vt(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 qo(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")Cu(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case xr:return or(n.children,i,o,t);case Ba:l=8,i|=8;break;case zl:return e=vt(12,n,t,i|2),e.elementType=zl,e.lanes=o,e;case Bl:return e=vt(13,n,t,i),e.elementType=Bl,e.lanes=o,e;case Hl:return e=vt(19,n,t,i),e.elementType=Hl,e.lanes=o,e;case cf:return js(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case af:l=10;break e;case uf:l=9;break e;case Ha:l=11;break e;case Va:l=14;break e;case Cn:l=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=vt(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function or(e,t,n,r){return e=vt(7,e,r,t),e.lanes=n,e}function js(e,t,n,r){return e=vt(22,e,r,t),e.elementType=cf,e.lanes=n,e.stateNode={isHidden:!1},e}function Rl(e,t,n){return e=vt(6,e,null,t),e.lanes=n,e}function $l(e,t,n){return t=vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $1(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=vl(0),this.expirationTimes=vl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Tu(e,t,n,r,i,o,l,a,c){return e=new $1(e,t,n,a,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=vt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},lu(o),e}function j1(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(oh)}catch(e){console.error(e)}}oh(),nf.exports=ot;var V1=nf.exports,Rd=V1;jl.createRoot=Rd.createRoot,jl.hydrateRoot=Rd.hydrateRoot;const W1=""+new URL("../robotPositions.png",import.meta.url).href;function pe({label:e,variable:t,setter:n}){return m.jsxs("div",{className:"text-center mt-5",children:[m.jsx("p",{className:"mb-2",children:e}),m.jsx("p",{className:"bg-info py-3 px-2 rounded m-0",children:t}),m.jsxs("div",{className:"row mx-auto",children:[m.jsx("button",{className:"btn btn-tertiary w-50 py-4",onClick:()=>t<=0?n(0):n(parseInt(t)-1),children:"-"}),m.jsx("button",{className:"btn btn-primary w-50 py-4",onClick:()=>n(parseInt(t)+1),children:"+"})]})]})}var Vs={},sh={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},U1=sh;function lh(e){this.mode=U1.MODE_8BIT_BYTE,this.data=e}lh.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t>>7-e%8&1)==1},put:function(e,t){for(var n=0;n>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var Y1=uh,Ot={glog:function(e){if(e<1)throw new Error("glog("+e+")");return Ot.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return Ot.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(var Ne=0;Ne<8;Ne++)Ot.EXP_TABLE[Ne]=1<=0;)t^=Ce.G15<=0;)t^=Ce.G18<>>=1;return t},getPatternPosition:function(e){return Ce.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case wn.PATTERN000:return(t+n)%2==0;case wn.PATTERN001:return t%2==0;case wn.PATTERN010:return n%3==0;case wn.PATTERN011:return(t+n)%3==0;case wn.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case wn.PATTERN101:return t*n%2+t*n%3==0;case wn.PATTERN110:return(t*n%2+t*n%3)%2==0;case wn.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new $d([1],0),n=0;n5&&(n+=3+o-5)}for(var r=0;r=7&&this.setupTypeNumber(e),this.dataCache==null&&(this.dataCache=zt.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)};lt.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(0<=n&&n<=6&&(r==0||r==6)||0<=r&&r<=6&&(n==0||n==6)||2<=n&&n<=4&&2<=r&&r<=4?this.modules[e+n][t+r]=!0:this.modules[e+n][t+r]=!1)};lt.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=Hn.getLostPoint(this);(n==0||e>r)&&(e=r,t=n)}return t};lt.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n),i=1;this.make();for(var o=0;o>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(var n=0;n<18;n++){var r=!e&&(t>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}};lt.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=Hn.getBCHTypeInfo(n),i=0;i<15;i++){var o=!e&&(r>>i&1)==1;i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(var i=0;i<15;i++){var o=!e&&(r>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!e};lt.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,o=0,l=this.moduleCount-1;l>0;l-=2)for(l==6&&l--;;){for(var a=0;a<2;a++)if(this.modules[r][l-a]==null){var c=!1;o>>i&1)==1);var d=Hn.getMask(t,r,l-a);d&&(c=!c),this.modules[r][l-a]=c,i--,i==-1&&(o++,i=7)}if(r+=n,r<0||this.moduleCount<=r){r-=n,n=-n;break}}};zt.PAD0=236;zt.PAD1=17;zt.createData=function(e,t,n){for(var r=fh.getRSBlocks(e,t),i=new ph,o=0;oa*8)throw new Error("code length overflow. ("+i.getLengthInBits()+">"+a*8+")");for(i.getLengthInBits()+4<=a*8&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=a*8||(i.put(zt.PAD0,8),i.getLengthInBits()>=a*8));)i.put(zt.PAD1,8);return zt.createBytes(i,r)};zt.createBytes=function(e,t){for(var n=0,r=0,i=0,o=new Array(t.length),l=new Array(t.length),a=0;a=0?w.get(N):0}}for(var T=0,g=0;g=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var l0={bgColor:ht.default.oneOfType([ht.default.object,ht.default.string]).isRequired,bgD:ht.default.string.isRequired,fgColor:ht.default.oneOfType([ht.default.object,ht.default.string]).isRequired,fgD:ht.default.string.isRequired,size:ht.default.number.isRequired,title:ht.default.string,viewBoxSize:ht.default.number.isRequired,xmlns:ht.default.string},a0={title:void 0,xmlns:"http://www.w3.org/2000/svg"},Ws=(0,yh.forwardRef)(function(e,t){var n=e.bgColor,r=e.bgD,i=e.fgD,o=e.fgColor,l=e.size,a=e.title,c=e.viewBoxSize,d=s0(e,["bgColor","bgD","fgD","fgColor","size","title","viewBoxSize"]);return zo.default.createElement("svg",i0({},d,{height:l,ref:t,viewBox:"0 0 "+c+" "+c,width:l}),a?zo.default.createElement("title",null,a):null,zo.default.createElement("path",{d:r,fill:n}),zo.default.createElement("path",{d:i,fill:o}))});Ws.displayName="QRCodeSvg";Ws.propTypes=l0;Ws.defaultProps=a0;xu.default=Ws;Object.defineProperty(Vs,"__esModule",{value:!0});Vs.QRCode=void 0;var u0=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var _0={bgColor:qt.default.oneOfType([qt.default.object,qt.default.string]),fgColor:qt.default.oneOfType([qt.default.object,qt.default.string]),level:qt.default.string,size:qt.default.number,value:qt.default.string.isRequired},E0={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},so=(0,Eh.forwardRef)(function(e,t){var n=e.bgColor,r=e.fgColor,i=e.level,o=e.size,l=e.value,a=y0(e,["bgColor","fgColor","level","size","value"]),c=new d0.default(-1,p0.default[i]);c.addData(l),c.make();var d=c.modules;return m0.default.createElement(v0.default,u0({},a,{bgColor:n,bgD:d.map(function(g,E){return g.map(function(_,w){return _?"":"M "+w+" "+E+" l 1 0 0 1 -1 0 Z"}).join(" ")}).join(" "),fgColor:r,fgD:d.map(function(g,E){return g.map(function(_,w){return _?"M "+w+" "+E+" l 1 0 0 1 -1 0 Z":""}).join(" ")}).join(" "),ref:t,size:o,viewBoxSize:d.length}))});Vs.QRCode=so;so.displayName="QRCode";so.propTypes=_0;so.defaultProps=E0;var S0=Vs.default=so,w0={exports:{}},$e="top",nt="bottom",rt="right",je="left",Us="auto",si=[$e,nt,rt,je],fr="start",Jr="end",Sh="clippingParents",Ou="viewport",kr="popper",wh="reference",Ia=si.reduce(function(e,t){return e.concat([t+"-"+fr,t+"-"+Jr])},[]),Lu=[].concat(si,[Us]).reduce(function(e,t){return e.concat([t,t+"-"+fr,t+"-"+Jr])},[]),Ch="beforeRead",Th="read",Nh="afterRead",kh="beforeMain",Ah="main",xh="afterMain",Oh="beforeWrite",Lh="write",Ih="afterWrite",Dh=[Ch,Th,Nh,kh,Ah,xh,Oh,Lh,Ih];function Wt(e){return e?(e.nodeName||"").toLowerCase():null}function it(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function pr(e){var t=it(e).Element;return e instanceof t||e instanceof Element}function _t(e){var t=it(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Iu(e){if(typeof ShadowRoot>"u")return!1;var t=it(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function C0(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!_t(o)||!Wt(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(l){var a=i[l];a===!1?o.removeAttribute(l):o.setAttribute(l,a===!0?"":a)}))})}function T0(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=l.reduce(function(c,d){return c[d]="",c},{});!_t(i)||!Wt(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const Du={name:"applyStyles",enabled:!0,phase:"write",fn:C0,effect:T0,requires:["computeStyles"]};function Vt(e){return e.split("-")[0]}var sr=Math.max,ks=Math.min,qr=Math.round;function Da(){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 Ph(){return!/^((?!chrome|android).)*safari/i.test(Da())}function ei(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&_t(e)&&(i=e.offsetWidth>0&&qr(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&qr(r.height)/e.offsetHeight||1);var l=pr(e)?it(e):window,a=l.visualViewport,c=!Ph()&&n,d=(r.left+(c&&a?a.offsetLeft:0))/i,g=(r.top+(c&&a?a.offsetTop:0))/o,E=r.width/i,_=r.height/o;return{width:E,height:_,top:g,right:d+E,bottom:g+_,left:d,x:d,y:g}}function Pu(e){var t=ei(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 bh(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Iu(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function cn(e){return it(e).getComputedStyle(e)}function N0(e){return["table","td","th"].indexOf(Wt(e))>=0}function Vn(e){return((pr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Qs(e){return Wt(e)==="html"?e:e.assignedSlot||e.parentNode||(Iu(e)?e.host:null)||Vn(e)}function jd(e){return!_t(e)||cn(e).position==="fixed"?null:e.offsetParent}function k0(e){var t=/firefox/i.test(Da()),n=/Trident/i.test(Da());if(n&&_t(e)){var r=cn(e);if(r.position==="fixed")return null}var i=Qs(e);for(Iu(i)&&(i=i.host);_t(i)&&["html","body"].indexOf(Wt(i))<0;){var o=cn(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 lo(e){for(var t=it(e),n=jd(e);n&&N0(n)&&cn(n).position==="static";)n=jd(n);return n&&(Wt(n)==="html"||Wt(n)==="body"&&cn(n).position==="static")?t:n||k0(e)||t}function bu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Mi(e,t,n){return sr(e,ks(t,n))}function A0(e,t,n){var r=Mi(e,t,n);return r>n?n:r}function Mh(){return{top:0,right:0,bottom:0,left:0}}function Rh(e){return Object.assign({},Mh(),e)}function $h(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var x0=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Rh(typeof t!="number"?t:$h(t,si))};function O0(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,l=n.modifiersData.popperOffsets,a=Vt(n.placement),c=bu(a),d=[je,rt].indexOf(a)>=0,g=d?"height":"width";if(!(!o||!l)){var E=x0(i.padding,n),_=Pu(o),w=c==="y"?$e:je,N=c==="y"?nt:rt,T=n.rects.reference[g]+n.rects.reference[c]-l[c]-n.rects.popper[g],$=l[c]-n.rects.reference[c],v=lo(o),p=v?c==="y"?v.clientHeight||0:v.clientWidth||0:0,y=T/2-$/2,S=E[w],A=p-_[g]-E[N],x=p/2-_[g]/2+y,L=Mi(S,x,A),b=c;n.modifiersData[r]=(t={},t[b]=L,t.centerOffset=L-x,t)}}function L0(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)||bh(t.elements.popper,i)&&(t.elements.arrow=i))}const jh={name:"arrow",enabled:!0,phase:"main",fn:O0,effect:L0,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ti(e){return e.split("-")[1]}var I0={top:"auto",right:"auto",bottom:"auto",left:"auto"};function D0(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:qr(n*i)/i||0,y:qr(r*i)/i||0}}function Fd(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,d=e.adaptive,g=e.roundOffsets,E=e.isFixed,_=l.x,w=_===void 0?0:_,N=l.y,T=N===void 0?0:N,$=typeof g=="function"?g({x:w,y:T}):{x:w,y:T};w=$.x,T=$.y;var v=l.hasOwnProperty("x"),p=l.hasOwnProperty("y"),y=je,S=$e,A=window;if(d){var x=lo(n),L="clientHeight",b="clientWidth";if(x===it(n)&&(x=Vn(n),cn(x).position!=="static"&&a==="absolute"&&(L="scrollHeight",b="scrollWidth")),x=x,i===$e||(i===je||i===rt)&&o===Jr){S=nt;var z=E&&x===A&&A.visualViewport?A.visualViewport.height:x[L];T-=z-r.height,T*=c?1:-1}if(i===je||(i===$e||i===nt)&&o===Jr){y=rt;var R=E&&x===A&&A.visualViewport?A.visualViewport.width:x[b];w-=R-r.width,w*=c?1:-1}}var V=Object.assign({position:a},d&&I0),q=g===!0?D0({x:w,y:T},it(n)):{x:w,y:T};if(w=q.x,T=q.y,c){var Z;return Object.assign({},V,(Z={},Z[S]=p?"0":"",Z[y]=v?"0":"",Z.transform=(A.devicePixelRatio||1)<=1?"translate("+w+"px, "+T+"px)":"translate3d("+w+"px, "+T+"px, 0)",Z))}return Object.assign({},V,(t={},t[S]=p?T+"px":"",t[y]=v?w+"px":"",t.transform="",t))}function P0(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,l=o===void 0?!0:o,a=n.roundOffsets,c=a===void 0?!0:a,d={placement:Vt(t.placement),variation:ti(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,Fd(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Fd(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Mu={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:P0,data:{}};var Bo={passive:!0};function b0(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,l=r.resize,a=l===void 0?!0:l,c=it(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&d.forEach(function(g){g.addEventListener("scroll",n.update,Bo)}),a&&c.addEventListener("resize",n.update,Bo),function(){o&&d.forEach(function(g){g.removeEventListener("scroll",n.update,Bo)}),a&&c.removeEventListener("resize",n.update,Bo)}}const Ru={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:b0,data:{}};var M0={left:"right",right:"left",bottom:"top",top:"bottom"};function ts(e){return e.replace(/left|right|bottom|top/g,function(t){return M0[t]})}var R0={start:"end",end:"start"};function zd(e){return e.replace(/start|end/g,function(t){return R0[t]})}function $u(e){var t=it(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ju(e){return ei(Vn(e)).left+$u(e).scrollLeft}function $0(e,t){var n=it(e),r=Vn(e),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,a=0,c=0;if(i){o=i.width,l=i.height;var d=Ph();(d||!d&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:o,height:l,x:a+ju(e),y:c}}function j0(e){var t,n=Vn(e),r=$u(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=sr(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),l=sr(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+ju(e),c=-r.scrollTop;return cn(i||n).direction==="rtl"&&(a+=sr(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:l,x:a,y:c}}function Fu(e){var t=cn(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Fh(e){return["html","body","#document"].indexOf(Wt(e))>=0?e.ownerDocument.body:_t(e)&&Fu(e)?e:Fh(Qs(e))}function Ri(e,t){var n;t===void 0&&(t=[]);var r=Fh(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=it(r),l=i?[o].concat(o.visualViewport||[],Fu(r)?r:[]):r,a=t.concat(l);return i?a:a.concat(Ri(Qs(l)))}function Pa(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function F0(e,t){var n=ei(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 Bd(e,t,n){return t===Ou?Pa($0(e,n)):pr(t)?F0(t,n):Pa(j0(Vn(e)))}function z0(e){var t=Ri(Qs(e)),n=["absolute","fixed"].indexOf(cn(e).position)>=0,r=n&&_t(e)?lo(e):e;return pr(r)?t.filter(function(i){return pr(i)&&bh(i,r)&&Wt(i)!=="body"}):[]}function B0(e,t,n,r){var i=t==="clippingParents"?z0(e):[].concat(t),o=[].concat(i,[n]),l=o[0],a=o.reduce(function(c,d){var g=Bd(e,d,r);return c.top=sr(g.top,c.top),c.right=ks(g.right,c.right),c.bottom=ks(g.bottom,c.bottom),c.left=sr(g.left,c.left),c},Bd(e,l,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function zh(e){var t=e.reference,n=e.element,r=e.placement,i=r?Vt(r):null,o=r?ti(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(i){case $e:c={x:l,y:t.y-n.height};break;case nt:c={x:l,y:t.y+t.height};break;case rt:c={x:t.x+t.width,y:a};break;case je:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var d=i?bu(i):null;if(d!=null){var g=d==="y"?"height":"width";switch(o){case fr:c[d]=c[d]-(t[g]/2-n[g]/2);break;case Jr:c[d]=c[d]+(t[g]/2-n[g]/2);break}}return c}function ni(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,l=o===void 0?e.strategy:o,a=n.boundary,c=a===void 0?Sh:a,d=n.rootBoundary,g=d===void 0?Ou:d,E=n.elementContext,_=E===void 0?kr:E,w=n.altBoundary,N=w===void 0?!1:w,T=n.padding,$=T===void 0?0:T,v=Rh(typeof $!="number"?$:$h($,si)),p=_===kr?wh:kr,y=e.rects.popper,S=e.elements[N?p:_],A=B0(pr(S)?S:S.contextElement||Vn(e.elements.popper),c,g,l),x=ei(e.elements.reference),L=zh({reference:x,element:y,strategy:"absolute",placement:i}),b=Pa(Object.assign({},y,L)),z=_===kr?b:x,R={top:A.top-z.top+v.top,bottom:z.bottom-A.bottom+v.bottom,left:A.left-z.left+v.left,right:z.right-A.right+v.right},V=e.modifiersData.offset;if(_===kr&&V){var q=V[i];Object.keys(R).forEach(function(Z){var ve=[rt,nt].indexOf(Z)>=0?1:-1,Be=[$e,nt].indexOf(Z)>=0?"y":"x";R[Z]+=q[Be]*ve})}return R}function H0(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,l=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?Lu:c,g=ti(r),E=g?a?Ia:Ia.filter(function(N){return ti(N)===g}):si,_=E.filter(function(N){return d.indexOf(N)>=0});_.length===0&&(_=E);var w=_.reduce(function(N,T){return N[T]=ni(e,{placement:T,boundary:i,rootBoundary:o,padding:l})[Vt(T)],N},{});return Object.keys(w).sort(function(N,T){return w[N]-w[T]})}function V0(e){if(Vt(e)===Us)return[];var t=ts(e);return[zd(e),t,zd(t)]}function W0(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,l=n.altAxis,a=l===void 0?!0:l,c=n.fallbackPlacements,d=n.padding,g=n.boundary,E=n.rootBoundary,_=n.altBoundary,w=n.flipVariations,N=w===void 0?!0:w,T=n.allowedAutoPlacements,$=t.options.placement,v=Vt($),p=v===$,y=c||(p||!N?[ts($)]:V0($)),S=[$].concat(y).reduce(function(ce,ye){return ce.concat(Vt(ye)===Us?H0(t,{placement:ye,boundary:g,rootBoundary:E,padding:d,flipVariations:N,allowedAutoPlacements:T}):ye)},[]),A=t.rects.reference,x=t.rects.popper,L=new Map,b=!0,z=S[0],R=0;R=0,Be=ve?"width":"height",ie=ni(t,{placement:V,boundary:g,rootBoundary:E,altBoundary:_,padding:d}),ae=ve?Z?rt:je:Z?nt:$e;A[Be]>x[Be]&&(ae=ts(ae));var M=ts(ae),B=[];if(o&&B.push(ie[q]<=0),a&&B.push(ie[ae]<=0,ie[M]<=0),B.every(function(ce){return ce})){z=V,b=!1;break}L.set(V,B)}if(b)for(var H=N?3:1,G=function(ye){var de=S.find(function(Pe){var xe=L.get(Pe);if(xe)return xe.slice(0,ye).every(function(fn){return fn})});if(de)return z=de,"break"},Y=H;Y>0;Y--){var He=G(Y);if(He==="break")break}t.placement!==z&&(t.modifiersData[r]._skip=!0,t.placement=z,t.reset=!0)}}const Bh={name:"flip",enabled:!0,phase:"main",fn:W0,requiresIfExists:["offset"],data:{_skip:!1}};function Hd(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 Vd(e){return[$e,rt,nt,je].some(function(t){return e[t]>=0})}function U0(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,l=ni(t,{elementContext:"reference"}),a=ni(t,{altBoundary:!0}),c=Hd(l,r),d=Hd(a,i,o),g=Vd(c),E=Vd(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:g,hasPopperEscaped:E},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":E})}const Hh={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:U0};function Q0(e,t,n){var r=Vt(e),i=[je,$e].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=o[0],a=o[1];return l=l||0,a=(a||0)*i,[je,rt].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function K0(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,l=Lu.reduce(function(g,E){return g[E]=Q0(E,t.rects,o),g},{}),a=l[t.placement],c=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=l}const Vh={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:K0};function Y0(e){var t=e.state,n=e.name;t.modifiersData[n]=zh({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const zu={name:"popperOffsets",enabled:!0,phase:"read",fn:Y0,data:{}};function G0(e){return e==="x"?"y":"x"}function X0(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,l=n.altAxis,a=l===void 0?!1:l,c=n.boundary,d=n.rootBoundary,g=n.altBoundary,E=n.padding,_=n.tether,w=_===void 0?!0:_,N=n.tetherOffset,T=N===void 0?0:N,$=ni(t,{boundary:c,rootBoundary:d,padding:E,altBoundary:g}),v=Vt(t.placement),p=ti(t.placement),y=!p,S=bu(v),A=G0(S),x=t.modifiersData.popperOffsets,L=t.rects.reference,b=t.rects.popper,z=typeof T=="function"?T(Object.assign({},t.rects,{placement:t.placement})):T,R=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,q={x:0,y:0};if(x){if(o){var Z,ve=S==="y"?$e:je,Be=S==="y"?nt:rt,ie=S==="y"?"height":"width",ae=x[S],M=ae+$[ve],B=ae-$[Be],H=w?-b[ie]/2:0,G=p===fr?L[ie]:b[ie],Y=p===fr?-b[ie]:-L[ie],He=t.elements.arrow,ce=w&&He?Pu(He):{width:0,height:0},ye=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Mh(),de=ye[ve],Pe=ye[Be],xe=Mi(0,L[ie],ce[ie]),fn=y?L[ie]/2-H-xe-de-R.mainAxis:G-xe-de-R.mainAxis,Ut=y?-L[ie]/2+H+xe+Pe+R.mainAxis:Y+xe+Pe+R.mainAxis,k=t.elements.arrow&&lo(t.elements.arrow),Pt=k?S==="y"?k.clientTop||0:k.clientLeft||0:0,pn=(Z=V==null?void 0:V[S])!=null?Z:0,bt=ae+fn-pn-Pt,Ve=ae+Ut-pn,_e=Mi(w?ks(M,bt):M,ae,w?sr(B,Ve):B);x[S]=_e,q[S]=_e-ae}if(a){var wt,ne=S==="x"?$e:je,Xe=S==="x"?nt:rt,j=x[A],be=A==="y"?"height":"width",at=j+$[ne],hn=j-$[Xe],Ze=[$e,je].indexOf(v)!==-1,mn=(wt=V==null?void 0:V[A])!=null?wt:0,ut=Ze?at:j-L[be]-b[be]-mn+R.altAxis,gn=Ze?j+L[be]+b[be]-mn-R.altAxis:hn,ct=w&&Ze?A0(ut,j,gn):Mi(w?ut:at,j,w?gn:hn);x[A]=ct,q[A]=ct-j}t.modifiersData[r]=q}}const Wh={name:"preventOverflow",enabled:!0,phase:"main",fn:X0,requiresIfExists:["offset"]};function Z0(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function J0(e){return e===it(e)||!_t(e)?$u(e):Z0(e)}function q0(e){var t=e.getBoundingClientRect(),n=qr(t.width)/e.offsetWidth||1,r=qr(t.height)/e.offsetHeight||1;return n!==1||r!==1}function eE(e,t,n){n===void 0&&(n=!1);var r=_t(t),i=_t(t)&&q0(t),o=Vn(t),l=ei(e,i,n),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Wt(t)!=="body"||Fu(o))&&(a=J0(t)),_t(t)?(c=ei(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=ju(o))),{x:l.left+a.scrollLeft-c.x,y:l.top+a.scrollTop-c.y,width:l.width,height:l.height}}function tE(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 l=[].concat(o.requires||[],o.requiresIfExists||[]);l.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&i(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function nE(e){var t=tE(e);return Dh.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function rE(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function iE(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 Wd={placement:"bottom",modifiers:[],strategy:"absolute"};function Ud(){for(var e=arguments.length,t=new Array(e),n=0;n<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[jt]=t,e[Ki]=r,zp(e,t,!1,!1),t.stateNode=e;e:{switch(l=Xl(n,r),n){case"dialog":ee("cancel",e),ee("close",e),i=r;break;case"iframe":case"object":case"embed":ee("load",e),i=r;break;case"video":case"audio":for(i=0;iZr&&(t.flags|=128,r=!0,Ei(o,!1),t.lanes=4194304)}else{if(!r)if(e=ys(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ei(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!re)return Le(t),null}else 2*fe()-o.renderingStartTime>Zr&&n!==1073741824&&(t.flags|=128,r=!0,Ei(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=fe(),t.sibling=null,n=oe.current,J(oe,r?n&1|2:n&1),t):(Le(t),null);case 22:case 23:return Su(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Je&1073741824&&(Le(t),t.subtreeFlags&6&&(t.flags|=8192)):Le(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function C1(e,t){switch(tu(t),t.tag){case 1:return Ye(t.type)&&ds(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gr(),te(Ke),te(De),cu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return uu(t),null;case 13:if(te(oe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));Kr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return te(oe),null;case 4:return Gr(),null;case 10:return ou(t.type._context),null;case 22:case 23:return Su(),null;case 24:return null;default:return null}}var Ro=!1,Ie=!1,T1=typeof WeakSet=="function"?WeakSet:Set,F=null;function $r(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ue(e,t,r)}else n.current=null}function Ca(e,t,n){try{n()}catch(r){ue(e,t,r)}}var kd=!1;function N1(e,t){if(sa=ls,e=Qf(),qa(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,a=-1,c=-1,d=0,g=0,E=e,_=null;t:for(;;){for(var w;E!==n||i!==0&&E.nodeType!==3||(a=l+i),E!==o||r!==0&&E.nodeType!==3||(c=l+r),E.nodeType===3&&(l+=E.nodeValue.length),(w=E.firstChild)!==null;)_=E,E=w;for(;;){if(E===e)break t;if(_===n&&++d===i&&(a=l),_===o&&++g===r&&(c=l),(w=E.nextSibling)!==null)break;E=_,_=E.parentNode}E=w}n=a===-1||c===-1?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(la={focusedElem:e,selectionRange:n},ls=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var N=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(N!==null){var T=N.memoizedProps,$=N.memoizedState,v=t.stateNode,p=v.getSnapshotBeforeUpdate(t.elementType===t.type?T:kt(t.type,T),$);v.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(S){ue(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return N=kd,kd=!1,N}function Di(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&&Ca(t,n,o)}i=i.next}while(i!==r)}}function Rs(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 Ta(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 Vp(e){var t=e.alternate;t!==null&&(e.alternate=null,Vp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[jt],delete t[Ki],delete t[ca],delete t[l1],delete t[a1])),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 Wp(e){return e.tag===5||e.tag===3||e.tag===4}function Ad(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wp(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 Na(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=cs));else if(r!==4&&(e=e.child,e!==null))for(Na(e,t,n),e=e.sibling;e!==null;)Na(e,t,n),e=e.sibling}function ka(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(ka(e,t,n),e=e.sibling;e!==null;)ka(e,t,n),e=e.sibling}var Te=null,At=!1;function Sn(e,t,n){for(n=n.child;n!==null;)Up(e,t,n),n=n.sibling}function Up(e,t,n){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(xs,n)}catch{}switch(n.tag){case 5:Ie||$r(n,t);case 6:var r=Te,i=At;Te=null,Sn(e,t,n),Te=r,At=i,Te!==null&&(At?(e=Te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Te.removeChild(n.stateNode));break;case 18:Te!==null&&(At?(e=Te,n=n.stateNode,e.nodeType===8?xl(e.parentNode,n):e.nodeType===1&&xl(e,n),Hi(e)):xl(Te,n.stateNode));break;case 4:r=Te,i=At,Te=n.stateNode.containerInfo,At=!0,Sn(e,t,n),Te=r,At=i;break;case 0:case 11:case 14:case 15:if(!Ie&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&Ca(n,t,l),i=i.next}while(i!==r)}Sn(e,t,n);break;case 1:if(!Ie&&($r(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ue(n,t,a)}Sn(e,t,n);break;case 21:Sn(e,t,n);break;case 22:n.mode&1?(Ie=(r=Ie)||n.memoizedState!==null,Sn(e,t,n),Ie=r):Sn(e,t,n);break;default:Sn(e,t,n)}}function xd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new T1),t.forEach(function(r){var i=b1.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~o}if(r=i,r=fe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*A1(r/1960))-r,10e?16:e,xn===null)var r=!1;else{if(e=xn,xn=null,Cs=0,K&6)throw Error(O(331));var i=K;for(K|=4,F=e.current;F!==null;){var o=F,l=o.child;if(F.flags&16){var a=o.deletions;if(a!==null){for(var c=0;cfe()-_u?ir(e,0):yu|=n),Ge(e,t)}function qp(e,t){t===0&&(e.mode&1?(t=Ao,Ao<<=1,!(Ao&130023424)&&(Ao=4194304)):t=1);var n=Re();e=an(e,t),e!==null&&(to(e,t,n),Ge(e,n))}function P1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qp(e,n)}function b1(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(O(314))}r!==null&&r.delete(t),qp(e,n)}var eh;eh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ke.current)Qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Qe=!1,S1(e,t,n);Qe=!!(e.flags&131072)}else Qe=!1,re&&t.flags&1048576&&rp(t,hs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Xo(e,t),e=t.pendingProps;var i=Qr(t,De.current);Vr(t,n),i=fu(null,t,r,e,i,n);var o=pu();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,Ye(r)?(o=!0,fs(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,lu(t),i.updater=bs,t.stateNode=i,i._reactInternals=t,ga(t,r,e,n),t=_a(null,t,r,!0,o,n)):(t.tag=0,re&&o&&eu(t),Me(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Xo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=R1(r),e=kt(r,e),i){case 0:t=ya(null,t,r,e,n);break e;case 1:t=Cd(null,t,r,e,n);break e;case 11:t=Sd(null,t,r,e,n);break e;case 14:t=wd(null,t,r,kt(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),ya(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),Cd(e,t,r,i,n);case 3:e:{if($p(t),e===null)throw Error(O(387));r=t.pendingProps,o=t.memoizedState,i=o.element,lp(e,t),vs(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Xr(Error(O(423)),t),t=Td(e,t,r,n,i);break e}else if(r!==i){i=Xr(Error(O(424)),t),t=Td(e,t,r,n,i);break e}else for(qe=Dn(t.stateNode.containerInfo.firstChild),et=t,re=!0,xt=null,n=dp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Kr(),r===i){t=un(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return fp(t),e===null&&pa(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,aa(r,i)?l=null:o!==null&&aa(r,o)&&(t.flags|=32),Rp(e,t),Me(e,t,l,n),t.child;case 6:return e===null&&pa(t),null;case 13:return jp(e,t,n);case 4:return au(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Yr(t,null,r,n):Me(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),Sd(e,t,r,i,n);case 7:return Me(e,t,t.pendingProps,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,J(ms,r._currentValue),r._currentValue=l,o!==null)if(Dt(o.value,l)){if(o.children===i.children&&!Ke.current){t=un(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){l=o.child;for(var c=a.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=on(-1,n&-n),c.tag=2;var d=o.updateQueue;if(d!==null){d=d.shared;var g=d.pending;g===null?c.next=c:(c.next=g.next,g.next=c),d.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ha(o.return,n,t),a.lanes|=n;break}c=c.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(O(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),ha(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}Me(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Vr(t,n),i=Et(i),r=r(i),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,i=kt(r,t.pendingProps),i=kt(r.type,i),wd(e,t,r,i,n);case 15:return bp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),Xo(e,t),t.tag=1,Ye(r)?(e=!0,fs(t)):e=!1,Vr(t,n),up(t,r,i),ga(t,r,i,n),_a(null,t,r,!0,e,n);case 19:return Fp(e,t,n);case 22:return Mp(e,t,n)}throw Error(O(156,t.tag))};function th(e,t){return Af(e,t)}function M1(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 vt(e,t,n,r){return new M1(e,t,n,r)}function Cu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function R1(e){if(typeof e=="function")return Cu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ha)return 11;if(e===Va)return 14}return 2}function Rn(e,t){var n=e.alternate;return n===null?(n=vt(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 qo(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")Cu(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case xr:return or(n.children,i,o,t);case Ba:l=8,i|=8;break;case zl:return e=vt(12,n,t,i|2),e.elementType=zl,e.lanes=o,e;case Bl:return e=vt(13,n,t,i),e.elementType=Bl,e.lanes=o,e;case Hl:return e=vt(19,n,t,i),e.elementType=Hl,e.lanes=o,e;case cf:return js(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case af:l=10;break e;case uf:l=9;break e;case Ha:l=11;break e;case Va:l=14;break e;case Cn:l=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=vt(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function or(e,t,n,r){return e=vt(7,e,r,t),e.lanes=n,e}function js(e,t,n,r){return e=vt(22,e,r,t),e.elementType=cf,e.lanes=n,e.stateNode={isHidden:!1},e}function Rl(e,t,n){return e=vt(6,e,null,t),e.lanes=n,e}function $l(e,t,n){return t=vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $1(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=vl(0),this.expirationTimes=vl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Tu(e,t,n,r,i,o,l,a,c){return e=new $1(e,t,n,a,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=vt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},lu(o),e}function j1(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(oh)}catch(e){console.error(e)}}oh(),nf.exports=ot;var V1=nf.exports,Rd=V1;jl.createRoot=Rd.createRoot,jl.hydrateRoot=Rd.hydrateRoot;function pe({label:e,variable:t,setter:n}){return m.jsxs("div",{className:"text-center mt-5",children:[m.jsx("p",{className:"mb-2",children:e}),m.jsx("p",{className:"bg-info py-3 px-2 rounded m-0",children:t}),m.jsxs("div",{className:"row mx-auto",children:[m.jsx("button",{className:"btn btn-tertiary w-50 py-4",onClick:()=>t<=0?n(0):n(parseInt(t)-1),children:"-"}),m.jsx("button",{className:"btn btn-primary w-50 py-4",onClick:()=>n(parseInt(t)+1),children:"+"})]})]})}var Vs={},sh={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},W1=sh;function lh(e){this.mode=W1.MODE_8BIT_BYTE,this.data=e}lh.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t>>7-e%8&1)==1},put:function(e,t){for(var n=0;n>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var K1=uh,Ot={glog:function(e){if(e<1)throw new Error("glog("+e+")");return Ot.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return Ot.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(var Ne=0;Ne<8;Ne++)Ot.EXP_TABLE[Ne]=1<=0;)t^=Ce.G15<=0;)t^=Ce.G18<>>=1;return t},getPatternPosition:function(e){return Ce.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case wn.PATTERN000:return(t+n)%2==0;case wn.PATTERN001:return t%2==0;case wn.PATTERN010:return n%3==0;case wn.PATTERN011:return(t+n)%3==0;case wn.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case wn.PATTERN101:return t*n%2+t*n%3==0;case wn.PATTERN110:return(t*n%2+t*n%3)%2==0;case wn.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new $d([1],0),n=0;n5&&(n+=3+o-5)}for(var r=0;r=7&&this.setupTypeNumber(e),this.dataCache==null&&(this.dataCache=zt.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)};lt.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(0<=n&&n<=6&&(r==0||r==6)||0<=r&&r<=6&&(n==0||n==6)||2<=n&&n<=4&&2<=r&&r<=4?this.modules[e+n][t+r]=!0:this.modules[e+n][t+r]=!1)};lt.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=Hn.getLostPoint(this);(n==0||e>r)&&(e=r,t=n)}return t};lt.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n),i=1;this.make();for(var o=0;o>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(var n=0;n<18;n++){var r=!e&&(t>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}};lt.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=Hn.getBCHTypeInfo(n),i=0;i<15;i++){var o=!e&&(r>>i&1)==1;i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(var i=0;i<15;i++){var o=!e&&(r>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!e};lt.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,o=0,l=this.moduleCount-1;l>0;l-=2)for(l==6&&l--;;){for(var a=0;a<2;a++)if(this.modules[r][l-a]==null){var c=!1;o>>i&1)==1);var d=Hn.getMask(t,r,l-a);d&&(c=!c),this.modules[r][l-a]=c,i--,i==-1&&(o++,i=7)}if(r+=n,r<0||this.moduleCount<=r){r-=n,n=-n;break}}};zt.PAD0=236;zt.PAD1=17;zt.createData=function(e,t,n){for(var r=fh.getRSBlocks(e,t),i=new ph,o=0;oa*8)throw new Error("code length overflow. ("+i.getLengthInBits()+">"+a*8+")");for(i.getLengthInBits()+4<=a*8&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=a*8||(i.put(zt.PAD0,8),i.getLengthInBits()>=a*8));)i.put(zt.PAD1,8);return zt.createBytes(i,r)};zt.createBytes=function(e,t){for(var n=0,r=0,i=0,o=new Array(t.length),l=new Array(t.length),a=0;a=0?w.get(N):0}}for(var T=0,g=0;g=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var s0={bgColor:ht.default.oneOfType([ht.default.object,ht.default.string]).isRequired,bgD:ht.default.string.isRequired,fgColor:ht.default.oneOfType([ht.default.object,ht.default.string]).isRequired,fgD:ht.default.string.isRequired,size:ht.default.number.isRequired,title:ht.default.string,viewBoxSize:ht.default.number.isRequired,xmlns:ht.default.string},l0={title:void 0,xmlns:"http://www.w3.org/2000/svg"},Ws=(0,yh.forwardRef)(function(e,t){var n=e.bgColor,r=e.bgD,i=e.fgD,o=e.fgColor,l=e.size,a=e.title,c=e.viewBoxSize,d=o0(e,["bgColor","bgD","fgD","fgColor","size","title","viewBoxSize"]);return zo.default.createElement("svg",r0({},d,{height:l,ref:t,viewBox:"0 0 "+c+" "+c,width:l}),a?zo.default.createElement("title",null,a):null,zo.default.createElement("path",{d:r,fill:n}),zo.default.createElement("path",{d:i,fill:o}))});Ws.displayName="QRCodeSvg";Ws.propTypes=s0;Ws.defaultProps=l0;xu.default=Ws;Object.defineProperty(Vs,"__esModule",{value:!0});Vs.QRCode=void 0;var a0=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var y0={bgColor:qt.default.oneOfType([qt.default.object,qt.default.string]),fgColor:qt.default.oneOfType([qt.default.object,qt.default.string]),level:qt.default.string,size:qt.default.number,value:qt.default.string.isRequired},_0={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},so=(0,Eh.forwardRef)(function(e,t){var n=e.bgColor,r=e.fgColor,i=e.level,o=e.size,l=e.value,a=v0(e,["bgColor","fgColor","level","size","value"]),c=new c0.default(-1,f0.default[i]);c.addData(l),c.make();var d=c.modules;return h0.default.createElement(g0.default,a0({},a,{bgColor:n,bgD:d.map(function(g,E){return g.map(function(_,w){return _?"":"M "+w+" "+E+" l 1 0 0 1 -1 0 Z"}).join(" ")}).join(" "),fgColor:r,fgD:d.map(function(g,E){return g.map(function(_,w){return _?"M "+w+" "+E+" l 1 0 0 1 -1 0 Z":""}).join(" ")}).join(" "),ref:t,size:o,viewBoxSize:d.length}))});Vs.QRCode=so;so.displayName="QRCode";so.propTypes=y0;so.defaultProps=_0;var E0=Vs.default=so,S0={exports:{}},$e="top",nt="bottom",rt="right",je="left",Us="auto",si=[$e,nt,rt,je],fr="start",Jr="end",Sh="clippingParents",Ou="viewport",kr="popper",wh="reference",Ia=si.reduce(function(e,t){return e.concat([t+"-"+fr,t+"-"+Jr])},[]),Lu=[].concat(si,[Us]).reduce(function(e,t){return e.concat([t,t+"-"+fr,t+"-"+Jr])},[]),Ch="beforeRead",Th="read",Nh="afterRead",kh="beforeMain",Ah="main",xh="afterMain",Oh="beforeWrite",Lh="write",Ih="afterWrite",Dh=[Ch,Th,Nh,kh,Ah,xh,Oh,Lh,Ih];function Wt(e){return e?(e.nodeName||"").toLowerCase():null}function it(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function pr(e){var t=it(e).Element;return e instanceof t||e instanceof Element}function _t(e){var t=it(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Iu(e){if(typeof ShadowRoot>"u")return!1;var t=it(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function w0(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!_t(o)||!Wt(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(l){var a=i[l];a===!1?o.removeAttribute(l):o.setAttribute(l,a===!0?"":a)}))})}function C0(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=l.reduce(function(c,d){return c[d]="",c},{});!_t(i)||!Wt(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const Du={name:"applyStyles",enabled:!0,phase:"write",fn:w0,effect:C0,requires:["computeStyles"]};function Vt(e){return e.split("-")[0]}var sr=Math.max,ks=Math.min,qr=Math.round;function Da(){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 Ph(){return!/^((?!chrome|android).)*safari/i.test(Da())}function ei(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&_t(e)&&(i=e.offsetWidth>0&&qr(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&qr(r.height)/e.offsetHeight||1);var l=pr(e)?it(e):window,a=l.visualViewport,c=!Ph()&&n,d=(r.left+(c&&a?a.offsetLeft:0))/i,g=(r.top+(c&&a?a.offsetTop:0))/o,E=r.width/i,_=r.height/o;return{width:E,height:_,top:g,right:d+E,bottom:g+_,left:d,x:d,y:g}}function Pu(e){var t=ei(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 bh(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Iu(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function cn(e){return it(e).getComputedStyle(e)}function T0(e){return["table","td","th"].indexOf(Wt(e))>=0}function Vn(e){return((pr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Qs(e){return Wt(e)==="html"?e:e.assignedSlot||e.parentNode||(Iu(e)?e.host:null)||Vn(e)}function jd(e){return!_t(e)||cn(e).position==="fixed"?null:e.offsetParent}function N0(e){var t=/firefox/i.test(Da()),n=/Trident/i.test(Da());if(n&&_t(e)){var r=cn(e);if(r.position==="fixed")return null}var i=Qs(e);for(Iu(i)&&(i=i.host);_t(i)&&["html","body"].indexOf(Wt(i))<0;){var o=cn(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 lo(e){for(var t=it(e),n=jd(e);n&&T0(n)&&cn(n).position==="static";)n=jd(n);return n&&(Wt(n)==="html"||Wt(n)==="body"&&cn(n).position==="static")?t:n||N0(e)||t}function bu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Mi(e,t,n){return sr(e,ks(t,n))}function k0(e,t,n){var r=Mi(e,t,n);return r>n?n:r}function Mh(){return{top:0,right:0,bottom:0,left:0}}function Rh(e){return Object.assign({},Mh(),e)}function $h(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var A0=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Rh(typeof t!="number"?t:$h(t,si))};function x0(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,l=n.modifiersData.popperOffsets,a=Vt(n.placement),c=bu(a),d=[je,rt].indexOf(a)>=0,g=d?"height":"width";if(!(!o||!l)){var E=A0(i.padding,n),_=Pu(o),w=c==="y"?$e:je,N=c==="y"?nt:rt,T=n.rects.reference[g]+n.rects.reference[c]-l[c]-n.rects.popper[g],$=l[c]-n.rects.reference[c],v=lo(o),p=v?c==="y"?v.clientHeight||0:v.clientWidth||0:0,y=T/2-$/2,S=E[w],A=p-_[g]-E[N],x=p/2-_[g]/2+y,L=Mi(S,x,A),b=c;n.modifiersData[r]=(t={},t[b]=L,t.centerOffset=L-x,t)}}function O0(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)||bh(t.elements.popper,i)&&(t.elements.arrow=i))}const jh={name:"arrow",enabled:!0,phase:"main",fn:x0,effect:O0,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ti(e){return e.split("-")[1]}var L0={top:"auto",right:"auto",bottom:"auto",left:"auto"};function I0(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:qr(n*i)/i||0,y:qr(r*i)/i||0}}function Fd(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,d=e.adaptive,g=e.roundOffsets,E=e.isFixed,_=l.x,w=_===void 0?0:_,N=l.y,T=N===void 0?0:N,$=typeof g=="function"?g({x:w,y:T}):{x:w,y:T};w=$.x,T=$.y;var v=l.hasOwnProperty("x"),p=l.hasOwnProperty("y"),y=je,S=$e,A=window;if(d){var x=lo(n),L="clientHeight",b="clientWidth";if(x===it(n)&&(x=Vn(n),cn(x).position!=="static"&&a==="absolute"&&(L="scrollHeight",b="scrollWidth")),x=x,i===$e||(i===je||i===rt)&&o===Jr){S=nt;var z=E&&x===A&&A.visualViewport?A.visualViewport.height:x[L];T-=z-r.height,T*=c?1:-1}if(i===je||(i===$e||i===nt)&&o===Jr){y=rt;var R=E&&x===A&&A.visualViewport?A.visualViewport.width:x[b];w-=R-r.width,w*=c?1:-1}}var V=Object.assign({position:a},d&&L0),q=g===!0?I0({x:w,y:T},it(n)):{x:w,y:T};if(w=q.x,T=q.y,c){var Z;return Object.assign({},V,(Z={},Z[S]=p?"0":"",Z[y]=v?"0":"",Z.transform=(A.devicePixelRatio||1)<=1?"translate("+w+"px, "+T+"px)":"translate3d("+w+"px, "+T+"px, 0)",Z))}return Object.assign({},V,(t={},t[S]=p?T+"px":"",t[y]=v?w+"px":"",t.transform="",t))}function D0(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,l=o===void 0?!0:o,a=n.roundOffsets,c=a===void 0?!0:a,d={placement:Vt(t.placement),variation:ti(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,Fd(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Fd(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Mu={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:D0,data:{}};var Bo={passive:!0};function P0(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,l=r.resize,a=l===void 0?!0:l,c=it(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&d.forEach(function(g){g.addEventListener("scroll",n.update,Bo)}),a&&c.addEventListener("resize",n.update,Bo),function(){o&&d.forEach(function(g){g.removeEventListener("scroll",n.update,Bo)}),a&&c.removeEventListener("resize",n.update,Bo)}}const Ru={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:P0,data:{}};var b0={left:"right",right:"left",bottom:"top",top:"bottom"};function ts(e){return e.replace(/left|right|bottom|top/g,function(t){return b0[t]})}var M0={start:"end",end:"start"};function zd(e){return e.replace(/start|end/g,function(t){return M0[t]})}function $u(e){var t=it(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ju(e){return ei(Vn(e)).left+$u(e).scrollLeft}function R0(e,t){var n=it(e),r=Vn(e),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,a=0,c=0;if(i){o=i.width,l=i.height;var d=Ph();(d||!d&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:o,height:l,x:a+ju(e),y:c}}function $0(e){var t,n=Vn(e),r=$u(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=sr(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),l=sr(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+ju(e),c=-r.scrollTop;return cn(i||n).direction==="rtl"&&(a+=sr(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:l,x:a,y:c}}function Fu(e){var t=cn(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Fh(e){return["html","body","#document"].indexOf(Wt(e))>=0?e.ownerDocument.body:_t(e)&&Fu(e)?e:Fh(Qs(e))}function Ri(e,t){var n;t===void 0&&(t=[]);var r=Fh(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=it(r),l=i?[o].concat(o.visualViewport||[],Fu(r)?r:[]):r,a=t.concat(l);return i?a:a.concat(Ri(Qs(l)))}function Pa(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function j0(e,t){var n=ei(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 Bd(e,t,n){return t===Ou?Pa(R0(e,n)):pr(t)?j0(t,n):Pa($0(Vn(e)))}function F0(e){var t=Ri(Qs(e)),n=["absolute","fixed"].indexOf(cn(e).position)>=0,r=n&&_t(e)?lo(e):e;return pr(r)?t.filter(function(i){return pr(i)&&bh(i,r)&&Wt(i)!=="body"}):[]}function z0(e,t,n,r){var i=t==="clippingParents"?F0(e):[].concat(t),o=[].concat(i,[n]),l=o[0],a=o.reduce(function(c,d){var g=Bd(e,d,r);return c.top=sr(g.top,c.top),c.right=ks(g.right,c.right),c.bottom=ks(g.bottom,c.bottom),c.left=sr(g.left,c.left),c},Bd(e,l,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function zh(e){var t=e.reference,n=e.element,r=e.placement,i=r?Vt(r):null,o=r?ti(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(i){case $e:c={x:l,y:t.y-n.height};break;case nt:c={x:l,y:t.y+t.height};break;case rt:c={x:t.x+t.width,y:a};break;case je:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var d=i?bu(i):null;if(d!=null){var g=d==="y"?"height":"width";switch(o){case fr:c[d]=c[d]-(t[g]/2-n[g]/2);break;case Jr:c[d]=c[d]+(t[g]/2-n[g]/2);break}}return c}function ni(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,l=o===void 0?e.strategy:o,a=n.boundary,c=a===void 0?Sh:a,d=n.rootBoundary,g=d===void 0?Ou:d,E=n.elementContext,_=E===void 0?kr:E,w=n.altBoundary,N=w===void 0?!1:w,T=n.padding,$=T===void 0?0:T,v=Rh(typeof $!="number"?$:$h($,si)),p=_===kr?wh:kr,y=e.rects.popper,S=e.elements[N?p:_],A=z0(pr(S)?S:S.contextElement||Vn(e.elements.popper),c,g,l),x=ei(e.elements.reference),L=zh({reference:x,element:y,strategy:"absolute",placement:i}),b=Pa(Object.assign({},y,L)),z=_===kr?b:x,R={top:A.top-z.top+v.top,bottom:z.bottom-A.bottom+v.bottom,left:A.left-z.left+v.left,right:z.right-A.right+v.right},V=e.modifiersData.offset;if(_===kr&&V){var q=V[i];Object.keys(R).forEach(function(Z){var ve=[rt,nt].indexOf(Z)>=0?1:-1,Be=[$e,nt].indexOf(Z)>=0?"y":"x";R[Z]+=q[Be]*ve})}return R}function B0(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,l=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?Lu:c,g=ti(r),E=g?a?Ia:Ia.filter(function(N){return ti(N)===g}):si,_=E.filter(function(N){return d.indexOf(N)>=0});_.length===0&&(_=E);var w=_.reduce(function(N,T){return N[T]=ni(e,{placement:T,boundary:i,rootBoundary:o,padding:l})[Vt(T)],N},{});return Object.keys(w).sort(function(N,T){return w[N]-w[T]})}function H0(e){if(Vt(e)===Us)return[];var t=ts(e);return[zd(e),t,zd(t)]}function V0(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,l=n.altAxis,a=l===void 0?!0:l,c=n.fallbackPlacements,d=n.padding,g=n.boundary,E=n.rootBoundary,_=n.altBoundary,w=n.flipVariations,N=w===void 0?!0:w,T=n.allowedAutoPlacements,$=t.options.placement,v=Vt($),p=v===$,y=c||(p||!N?[ts($)]:H0($)),S=[$].concat(y).reduce(function(ce,ye){return ce.concat(Vt(ye)===Us?B0(t,{placement:ye,boundary:g,rootBoundary:E,padding:d,flipVariations:N,allowedAutoPlacements:T}):ye)},[]),A=t.rects.reference,x=t.rects.popper,L=new Map,b=!0,z=S[0],R=0;R=0,Be=ve?"width":"height",ie=ni(t,{placement:V,boundary:g,rootBoundary:E,altBoundary:_,padding:d}),ae=ve?Z?rt:je:Z?nt:$e;A[Be]>x[Be]&&(ae=ts(ae));var M=ts(ae),B=[];if(o&&B.push(ie[q]<=0),a&&B.push(ie[ae]<=0,ie[M]<=0),B.every(function(ce){return ce})){z=V,b=!1;break}L.set(V,B)}if(b)for(var H=N?3:1,G=function(ye){var de=S.find(function(Pe){var xe=L.get(Pe);if(xe)return xe.slice(0,ye).every(function(fn){return fn})});if(de)return z=de,"break"},Y=H;Y>0;Y--){var He=G(Y);if(He==="break")break}t.placement!==z&&(t.modifiersData[r]._skip=!0,t.placement=z,t.reset=!0)}}const Bh={name:"flip",enabled:!0,phase:"main",fn:V0,requiresIfExists:["offset"],data:{_skip:!1}};function Hd(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 Vd(e){return[$e,rt,nt,je].some(function(t){return e[t]>=0})}function W0(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,l=ni(t,{elementContext:"reference"}),a=ni(t,{altBoundary:!0}),c=Hd(l,r),d=Hd(a,i,o),g=Vd(c),E=Vd(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:g,hasPopperEscaped:E},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":E})}const Hh={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:W0};function U0(e,t,n){var r=Vt(e),i=[je,$e].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=o[0],a=o[1];return l=l||0,a=(a||0)*i,[je,rt].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function Q0(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,l=Lu.reduce(function(g,E){return g[E]=U0(E,t.rects,o),g},{}),a=l[t.placement],c=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=l}const Vh={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Q0};function K0(e){var t=e.state,n=e.name;t.modifiersData[n]=zh({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const zu={name:"popperOffsets",enabled:!0,phase:"read",fn:K0,data:{}};function Y0(e){return e==="x"?"y":"x"}function G0(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,l=n.altAxis,a=l===void 0?!1:l,c=n.boundary,d=n.rootBoundary,g=n.altBoundary,E=n.padding,_=n.tether,w=_===void 0?!0:_,N=n.tetherOffset,T=N===void 0?0:N,$=ni(t,{boundary:c,rootBoundary:d,padding:E,altBoundary:g}),v=Vt(t.placement),p=ti(t.placement),y=!p,S=bu(v),A=Y0(S),x=t.modifiersData.popperOffsets,L=t.rects.reference,b=t.rects.popper,z=typeof T=="function"?T(Object.assign({},t.rects,{placement:t.placement})):T,R=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,q={x:0,y:0};if(x){if(o){var Z,ve=S==="y"?$e:je,Be=S==="y"?nt:rt,ie=S==="y"?"height":"width",ae=x[S],M=ae+$[ve],B=ae-$[Be],H=w?-b[ie]/2:0,G=p===fr?L[ie]:b[ie],Y=p===fr?-b[ie]:-L[ie],He=t.elements.arrow,ce=w&&He?Pu(He):{width:0,height:0},ye=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Mh(),de=ye[ve],Pe=ye[Be],xe=Mi(0,L[ie],ce[ie]),fn=y?L[ie]/2-H-xe-de-R.mainAxis:G-xe-de-R.mainAxis,Ut=y?-L[ie]/2+H+xe+Pe+R.mainAxis:Y+xe+Pe+R.mainAxis,k=t.elements.arrow&&lo(t.elements.arrow),Pt=k?S==="y"?k.clientTop||0:k.clientLeft||0:0,pn=(Z=V==null?void 0:V[S])!=null?Z:0,bt=ae+fn-pn-Pt,Ve=ae+Ut-pn,_e=Mi(w?ks(M,bt):M,ae,w?sr(B,Ve):B);x[S]=_e,q[S]=_e-ae}if(a){var wt,ne=S==="x"?$e:je,Xe=S==="x"?nt:rt,j=x[A],be=A==="y"?"height":"width",at=j+$[ne],hn=j-$[Xe],Ze=[$e,je].indexOf(v)!==-1,mn=(wt=V==null?void 0:V[A])!=null?wt:0,ut=Ze?at:j-L[be]-b[be]-mn+R.altAxis,gn=Ze?j+L[be]+b[be]-mn-R.altAxis:hn,ct=w&&Ze?k0(ut,j,gn):Mi(w?ut:at,j,w?gn:hn);x[A]=ct,q[A]=ct-j}t.modifiersData[r]=q}}const Wh={name:"preventOverflow",enabled:!0,phase:"main",fn:G0,requiresIfExists:["offset"]};function X0(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Z0(e){return e===it(e)||!_t(e)?$u(e):X0(e)}function J0(e){var t=e.getBoundingClientRect(),n=qr(t.width)/e.offsetWidth||1,r=qr(t.height)/e.offsetHeight||1;return n!==1||r!==1}function q0(e,t,n){n===void 0&&(n=!1);var r=_t(t),i=_t(t)&&J0(t),o=Vn(t),l=ei(e,i,n),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Wt(t)!=="body"||Fu(o))&&(a=Z0(t)),_t(t)?(c=ei(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=ju(o))),{x:l.left+a.scrollLeft-c.x,y:l.top+a.scrollTop-c.y,width:l.width,height:l.height}}function eE(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 l=[].concat(o.requires||[],o.requiresIfExists||[]);l.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&i(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function tE(e){var t=eE(e);return Dh.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function nE(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function rE(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 Wd={placement:"bottom",modifiers:[],strategy:"absolute"};function Ud(){for(var e=arguments.length,t=new Array(e),n=0;nf[u]})}}return s.default=f,Object.freeze(s)}const i=r(n),o=new Map,l={set(f,s,u){o.has(f)||o.set(f,new Map);const h=o.get(f);if(!h.has(s)&&h.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(h.keys())[0]}.`);return}h.set(s,u)},get(f,s){return o.has(f)&&o.get(f).get(s)||null},remove(f,s){if(!o.has(f))return;const u=o.get(f);u.delete(s),u.size===0&&o.delete(f)}},a=1e6,c=1e3,d="transitionend",g=f=>(f&&window.CSS&&window.CSS.escape&&(f=f.replace(/#([^\s"#']+)/g,(s,u)=>`#${CSS.escape(u)}`)),f),E=f=>f==null?`${f}`:Object.prototype.toString.call(f).match(/\s([a-z]+)/i)[1].toLowerCase(),_=f=>{do f+=Math.floor(Math.random()*a);while(document.getElementById(f));return f},w=f=>{if(!f)return 0;let{transitionDuration:s,transitionDelay:u}=window.getComputedStyle(f);const h=Number.parseFloat(s),C=Number.parseFloat(u);return!h&&!C?0:(s=s.split(",")[0],u=u.split(",")[0],(Number.parseFloat(s)+Number.parseFloat(u))*c)},N=f=>{f.dispatchEvent(new Event(d))},T=f=>!f||typeof f!="object"?!1:(typeof f.jquery<"u"&&(f=f[0]),typeof f.nodeType<"u"),$=f=>T(f)?f.jquery?f[0]:f:typeof f=="string"&&f.length>0?document.querySelector(g(f)):null,v=f=>{if(!T(f)||f.getClientRects().length===0)return!1;const s=getComputedStyle(f).getPropertyValue("visibility")==="visible",u=f.closest("details:not([open])");if(!u)return s;if(u!==f){const h=f.closest("summary");if(h&&h.parentNode!==u||h===null)return!1}return s},p=f=>!f||f.nodeType!==Node.ELEMENT_NODE||f.classList.contains("disabled")?!0:typeof f.disabled<"u"?f.disabled:f.hasAttribute("disabled")&&f.getAttribute("disabled")!=="false",y=f=>{if(!document.documentElement.attachShadow)return null;if(typeof f.getRootNode=="function"){const s=f.getRootNode();return s instanceof ShadowRoot?s:null}return f instanceof ShadowRoot?f:f.parentNode?y(f.parentNode):null},S=()=>{},A=f=>{f.offsetHeight},x=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,L=[],b=f=>{document.readyState==="loading"?(L.length||document.addEventListener("DOMContentLoaded",()=>{for(const s of L)s()}),L.push(f)):f()},z=()=>document.documentElement.dir==="rtl",R=f=>{b(()=>{const s=x();if(s){const u=f.NAME,h=s.fn[u];s.fn[u]=f.jQueryInterface,s.fn[u].Constructor=f,s.fn[u].noConflict=()=>(s.fn[u]=h,f.jQueryInterface)}})},V=(f,s=[],u=f)=>typeof f=="function"?f(...s):u,q=(f,s,u=!0)=>{if(!u){V(f);return}const h=5,C=w(s)+h;let P=!1;const I=({target:W})=>{W===s&&(P=!0,s.removeEventListener(d,I),V(f))};s.addEventListener(d,I),setTimeout(()=>{P||N(s)},C)},Z=(f,s,u,h)=>{const C=f.length;let P=f.indexOf(s);return P===-1?!u&&h?f[C-1]:f[0]:(P+=u?1:-1,h&&(P=(P+C)%C),f[Math.max(0,Math.min(P,C-1))])},ve=/[^.]*(?=\..*)\.|.*/,Be=/\..*/,ie=/::\d+$/,ae={};let M=1;const B={mouseenter:"mouseover",mouseleave:"mouseout"},H=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 G(f,s){return s&&`${s}::${M++}`||f.uidEvent||M++}function Y(f){const s=G(f);return f.uidEvent=s,ae[s]=ae[s]||{},ae[s]}function He(f,s){return function u(h){return Pt(h,{delegateTarget:f}),u.oneOff&&k.off(f,h.type,s),s.apply(f,[h])}}function ce(f,s,u){return function h(C){const P=f.querySelectorAll(s);for(let{target:I}=C;I&&I!==this;I=I.parentNode)for(const W of P)if(W===I)return Pt(C,{delegateTarget:I}),h.oneOff&&k.off(f,C.type,s,u),u.apply(I,[C])}}function ye(f,s,u=null){return Object.values(f).find(h=>h.callable===s&&h.delegationSelector===u)}function de(f,s,u){const h=typeof s=="string",C=h?u:s||u;let P=Ut(f);return H.has(P)||(P=f),[h,C,P]}function Pe(f,s,u,h,C){if(typeof s!="string"||!f)return;let[P,I,W]=de(s,u,h);s in B&&(I=(hy=>function(Tr){if(!Tr.relatedTarget||Tr.relatedTarget!==Tr.delegateTarget&&!Tr.delegateTarget.contains(Tr.relatedTarget))return hy.call(this,Tr)})(I));const We=Y(f),ft=We[W]||(We[W]={}),Ee=ye(ft,I,P?u:null);if(Ee){Ee.oneOff=Ee.oneOff&&C;return}const Mt=G(I,s.replace(ve,"")),Tt=P?ce(f,u,I):He(f,I);Tt.delegationSelector=P?u:null,Tt.callable=I,Tt.oneOff=C,Tt.uidEvent=Mt,ft[Mt]=Tt,f.addEventListener(W,Tt,P)}function xe(f,s,u,h,C){const P=ye(s[u],h,C);P&&(f.removeEventListener(u,P,!!C),delete s[u][P.uidEvent])}function fn(f,s,u,h){const C=s[u]||{};for(const[P,I]of Object.entries(C))P.includes(h)&&xe(f,s,u,I.callable,I.delegationSelector)}function Ut(f){return f=f.replace(Be,""),B[f]||f}const k={on(f,s,u,h){Pe(f,s,u,h,!1)},one(f,s,u,h){Pe(f,s,u,h,!0)},off(f,s,u,h){if(typeof s!="string"||!f)return;const[C,P,I]=de(s,u,h),W=I!==s,We=Y(f),ft=We[I]||{},Ee=s.startsWith(".");if(typeof P<"u"){if(!Object.keys(ft).length)return;xe(f,We,I,P,C?u:null);return}if(Ee)for(const Mt of Object.keys(We))fn(f,We,Mt,s.slice(1));for(const[Mt,Tt]of Object.entries(ft)){const So=Mt.replace(ie,"");(!W||s.includes(So))&&xe(f,We,I,Tt.callable,Tt.delegationSelector)}},trigger(f,s,u){if(typeof s!="string"||!f)return null;const h=x(),C=Ut(s),P=s!==C;let I=null,W=!0,We=!0,ft=!1;P&&h&&(I=h.Event(s,u),h(f).trigger(I),W=!I.isPropagationStopped(),We=!I.isImmediatePropagationStopped(),ft=I.isDefaultPrevented());const Ee=Pt(new Event(s,{bubbles:W,cancelable:!0}),u);return ft&&Ee.preventDefault(),We&&f.dispatchEvent(Ee),Ee.defaultPrevented&&I&&I.preventDefault(),Ee}};function Pt(f,s={}){for(const[u,h]of Object.entries(s))try{f[u]=h}catch{Object.defineProperty(f,u,{configurable:!0,get(){return h}})}return f}function pn(f){if(f==="true")return!0;if(f==="false")return!1;if(f===Number(f).toString())return Number(f);if(f===""||f==="null")return null;if(typeof f!="string")return f;try{return JSON.parse(decodeURIComponent(f))}catch{return f}}function bt(f){return f.replace(/[A-Z]/g,s=>`-${s.toLowerCase()}`)}const Ve={setDataAttribute(f,s,u){f.setAttribute(`data-bs-${bt(s)}`,u)},removeDataAttribute(f,s){f.removeAttribute(`data-bs-${bt(s)}`)},getDataAttributes(f){if(!f)return{};const s={},u=Object.keys(f.dataset).filter(h=>h.startsWith("bs")&&!h.startsWith("bsConfig"));for(const h of u){let C=h.replace(/^bs/,"");C=C.charAt(0).toLowerCase()+C.slice(1,C.length),s[C]=pn(f.dataset[h])}return s},getDataAttribute(f,s){return pn(f.getAttribute(`data-bs-${bt(s)}`))}};class _e{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(s){return s=this._mergeConfigObj(s),s=this._configAfterMerge(s),this._typeCheckConfig(s),s}_configAfterMerge(s){return s}_mergeConfigObj(s,u){const h=T(u)?Ve.getDataAttribute(u,"config"):{};return{...this.constructor.Default,...typeof h=="object"?h:{},...T(u)?Ve.getDataAttributes(u):{},...typeof s=="object"?s:{}}}_typeCheckConfig(s,u=this.constructor.DefaultType){for(const[h,C]of Object.entries(u)){const P=s[h],I=T(P)?"element":E(P);if(!new RegExp(C).test(I))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${h}" provided type "${I}" but expected type "${C}".`)}}}const wt="5.3.2";class ne extends _e{constructor(s,u){super(),s=$(s),s&&(this._element=s,this._config=this._getConfig(u),l.set(this._element,this.constructor.DATA_KEY,this))}dispose(){l.remove(this._element,this.constructor.DATA_KEY),k.off(this._element,this.constructor.EVENT_KEY);for(const s of Object.getOwnPropertyNames(this))this[s]=null}_queueCallback(s,u,h=!0){q(s,u,h)}_getConfig(s){return s=this._mergeConfigObj(s,this._element),s=this._configAfterMerge(s),this._typeCheckConfig(s),s}static getInstance(s){return l.get($(s),this.DATA_KEY)}static getOrCreateInstance(s,u={}){return this.getInstance(s)||new this(s,typeof u=="object"?u:null)}static get VERSION(){return wt}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(s){return`${s}${this.EVENT_KEY}`}}const Xe=f=>{let s=f.getAttribute("data-bs-target");if(!s||s==="#"){let u=f.getAttribute("href");if(!u||!u.includes("#")&&!u.startsWith("."))return null;u.includes("#")&&!u.startsWith("#")&&(u=`#${u.split("#")[1]}`),s=u&&u!=="#"?g(u.trim()):null}return s},j={find(f,s=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(s,f))},findOne(f,s=document.documentElement){return Element.prototype.querySelector.call(s,f)},children(f,s){return[].concat(...f.children).filter(u=>u.matches(s))},parents(f,s){const u=[];let h=f.parentNode.closest(s);for(;h;)u.push(h),h=h.parentNode.closest(s);return u},prev(f,s){let u=f.previousElementSibling;for(;u;){if(u.matches(s))return[u];u=u.previousElementSibling}return[]},next(f,s){let u=f.nextElementSibling;for(;u;){if(u.matches(s))return[u];u=u.nextElementSibling}return[]},focusableChildren(f){const s=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(u=>`${u}:not([tabindex^="-"])`).join(",");return this.find(s,f).filter(u=>!p(u)&&v(u))},getSelectorFromElement(f){const s=Xe(f);return s&&j.findOne(s)?s:null},getElementFromSelector(f){const s=Xe(f);return s?j.findOne(s):null},getMultipleElementsFromSelector(f){const s=Xe(f);return s?j.find(s):[]}},be=(f,s="hide")=>{const u=`click.dismiss${f.EVENT_KEY}`,h=f.NAME;k.on(document,u,`[data-bs-dismiss="${h}"]`,function(C){if(["A","AREA"].includes(this.tagName)&&C.preventDefault(),p(this))return;const P=j.getElementFromSelector(this)||this.closest(`.${h}`);f.getOrCreateInstance(P)[s]()})},at="alert",Ze=".bs.alert",mn=`close${Ze}`,ut=`closed${Ze}`,gn="fade",ct="show";class Qt extends ne{static get NAME(){return at}close(){if(k.trigger(this._element,mn).defaultPrevented)return;this._element.classList.remove(ct);const u=this._element.classList.contains(gn);this._queueCallback(()=>this._destroyElement(),this._element,u)}_destroyElement(){this._element.remove(),k.trigger(this._element,ut),this.dispose()}static jQueryInterface(s){return this.each(function(){const u=Qt.getOrCreateInstance(this);if(typeof s=="string"){if(u[s]===void 0||s.startsWith("_")||s==="constructor")throw new TypeError(`No method named "${s}"`);u[s](this)}})}}be(Qt,"close"),R(Qt);const Kt="button",Yt=".bs.button",li=".data-api",Gt="active",gr='[data-bs-toggle="button"]',Wn=`click${Yt}${li}`;class vn extends ne{static get NAME(){return Kt}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Gt))}static jQueryInterface(s){return this.each(function(){const u=vn.getOrCreateInstance(this);s==="toggle"&&u[s]()})}}k.on(document,Wn,gr,f=>{f.preventDefault();const s=f.target.closest(gr);vn.getOrCreateInstance(s).toggle()}),R(vn);const Ys="swipe",yn=".bs.swipe",Xt=`touchstart${yn}`,Gs=`touchmove${yn}`,Xs=`touchend${yn}`,ai=`pointerdown${yn}`,Zs=`pointerup${yn}`,Q="touch",Uh="pen",Qh="pointer-event",Kh=40,Yh={endCallback:null,leftCallback:null,rightCallback:null},Gh={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class uo extends _e{constructor(s,u){super(),this._element=s,!(!s||!uo.isSupported())&&(this._config=this._getConfig(u),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Yh}static get DefaultType(){return Gh}static get NAME(){return Ys}dispose(){k.off(this._element,yn)}_start(s){if(!this._supportPointerEvents){this._deltaX=s.touches[0].clientX;return}this._eventIsPointerPenTouch(s)&&(this._deltaX=s.clientX)}_end(s){this._eventIsPointerPenTouch(s)&&(this._deltaX=s.clientX-this._deltaX),this._handleSwipe(),V(this._config.endCallback)}_move(s){this._deltaX=s.touches&&s.touches.length>1?0:s.touches[0].clientX-this._deltaX}_handleSwipe(){const s=Math.abs(this._deltaX);if(s<=Kh)return;const u=s/this._deltaX;this._deltaX=0,u&&V(u>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(k.on(this._element,ai,s=>this._start(s)),k.on(this._element,Zs,s=>this._end(s)),this._element.classList.add(Qh)):(k.on(this._element,Xt,s=>this._start(s)),k.on(this._element,Gs,s=>this._move(s)),k.on(this._element,Xs,s=>this._end(s)))}_eventIsPointerPenTouch(s){return this._supportPointerEvents&&(s.pointerType===Uh||s.pointerType===Q)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Xh="carousel",_n=".bs.carousel",Bu=".data-api",Zh="ArrowLeft",Jh="ArrowRight",qh=500,ui="next",vr="prev",yr="left",co="right",em=`slide${_n}`,Js=`slid${_n}`,tm=`keydown${_n}`,nm=`mouseenter${_n}`,rm=`mouseleave${_n}`,im=`dragstart${_n}`,om=`load${_n}${Bu}`,sm=`click${_n}${Bu}`,Hu="carousel",fo="active",lm="slide",am="carousel-item-end",um="carousel-item-start",cm="carousel-item-next",dm="carousel-item-prev",Vu=".active",Wu=".carousel-item",fm=Vu+Wu,pm=".carousel-item img",hm=".carousel-indicators",mm="[data-bs-slide], [data-bs-slide-to]",gm='[data-bs-ride="carousel"]',vm={[Zh]:co,[Jh]:yr},ym={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},_m={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class _r extends ne{constructor(s,u){super(s,u),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=j.findOne(hm,this._element),this._addEventListeners(),this._config.ride===Hu&&this.cycle()}static get Default(){return ym}static get DefaultType(){return _m}static get NAME(){return Xh}next(){this._slide(ui)}nextWhenVisible(){!document.hidden&&v(this._element)&&this.next()}prev(){this._slide(vr)}pause(){this._isSliding&&N(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){k.one(this._element,Js,()=>this.cycle());return}this.cycle()}}to(s){const u=this._getItems();if(s>u.length-1||s<0)return;if(this._isSliding){k.one(this._element,Js,()=>this.to(s));return}const h=this._getItemIndex(this._getActive());if(h===s)return;const C=s>h?ui:vr;this._slide(C,u[s])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(s){return s.defaultInterval=s.interval,s}_addEventListeners(){this._config.keyboard&&k.on(this._element,tm,s=>this._keydown(s)),this._config.pause==="hover"&&(k.on(this._element,nm,()=>this.pause()),k.on(this._element,rm,()=>this._maybeEnableCycle())),this._config.touch&&uo.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const h of j.find(pm,this._element))k.on(h,im,C=>C.preventDefault());const u={leftCallback:()=>this._slide(this._directionToOrder(yr)),rightCallback:()=>this._slide(this._directionToOrder(co)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),qh+this._config.interval))}};this._swipeHelper=new uo(this._element,u)}_keydown(s){if(/input|textarea/i.test(s.target.tagName))return;const u=vm[s.key];u&&(s.preventDefault(),this._slide(this._directionToOrder(u)))}_getItemIndex(s){return this._getItems().indexOf(s)}_setActiveIndicatorElement(s){if(!this._indicatorsElement)return;const u=j.findOne(Vu,this._indicatorsElement);u.classList.remove(fo),u.removeAttribute("aria-current");const h=j.findOne(`[data-bs-slide-to="${s}"]`,this._indicatorsElement);h&&(h.classList.add(fo),h.setAttribute("aria-current","true"))}_updateInterval(){const s=this._activeElement||this._getActive();if(!s)return;const u=Number.parseInt(s.getAttribute("data-bs-interval"),10);this._config.interval=u||this._config.defaultInterval}_slide(s,u=null){if(this._isSliding)return;const h=this._getActive(),C=s===ui,P=u||Z(this._getItems(),h,C,this._config.wrap);if(P===h)return;const I=this._getItemIndex(P),W=So=>k.trigger(this._element,So,{relatedTarget:P,direction:this._orderToDirection(s),from:this._getItemIndex(h),to:I});if(W(em).defaultPrevented||!h||!P)return;const ft=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(I),this._activeElement=P;const Ee=C?um:am,Mt=C?cm:dm;P.classList.add(Mt),A(P),h.classList.add(Ee),P.classList.add(Ee);const Tt=()=>{P.classList.remove(Ee,Mt),P.classList.add(fo),h.classList.remove(fo,Mt,Ee),this._isSliding=!1,W(Js)};this._queueCallback(Tt,h,this._isAnimated()),ft&&this.cycle()}_isAnimated(){return this._element.classList.contains(lm)}_getActive(){return j.findOne(fm,this._element)}_getItems(){return j.find(Wu,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(s){return z()?s===yr?vr:ui:s===yr?ui:vr}_orderToDirection(s){return z()?s===vr?yr:co:s===vr?co:yr}static jQueryInterface(s){return this.each(function(){const u=_r.getOrCreateInstance(this,s);if(typeof s=="number"){u.to(s);return}if(typeof s=="string"){if(u[s]===void 0||s.startsWith("_")||s==="constructor")throw new TypeError(`No method named "${s}"`);u[s]()}})}}k.on(document,sm,mm,function(f){const s=j.getElementFromSelector(this);if(!s||!s.classList.contains(Hu))return;f.preventDefault();const u=_r.getOrCreateInstance(s),h=this.getAttribute("data-bs-slide-to");if(h){u.to(h),u._maybeEnableCycle();return}if(Ve.getDataAttribute(this,"slide")==="next"){u.next(),u._maybeEnableCycle();return}u.prev(),u._maybeEnableCycle()}),k.on(window,om,()=>{const f=j.find(gm);for(const s of f)_r.getOrCreateInstance(s)}),R(_r);const Em="collapse",ci=".bs.collapse",Sm=".data-api",wm=`show${ci}`,Cm=`shown${ci}`,Tm=`hide${ci}`,Nm=`hidden${ci}`,km=`click${ci}${Sm}`,qs="show",Er="collapse",po="collapsing",Am="collapsed",xm=`:scope .${Er} .${Er}`,Om="collapse-horizontal",Lm="width",Im="height",Dm=".collapse.show, .collapse.collapsing",el='[data-bs-toggle="collapse"]',Pm={parent:null,toggle:!0},bm={parent:"(null|element)",toggle:"boolean"};class Sr extends ne{constructor(s,u){super(s,u),this._isTransitioning=!1,this._triggerArray=[];const h=j.find(el);for(const C of h){const P=j.getSelectorFromElement(C),I=j.find(P).filter(W=>W===this._element);P!==null&&I.length&&this._triggerArray.push(C)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Pm}static get DefaultType(){return bm}static get NAME(){return Em}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let s=[];if(this._config.parent&&(s=this._getFirstLevelChildren(Dm).filter(W=>W!==this._element).map(W=>Sr.getOrCreateInstance(W,{toggle:!1}))),s.length&&s[0]._isTransitioning||k.trigger(this._element,wm).defaultPrevented)return;for(const W of s)W.hide();const h=this._getDimension();this._element.classList.remove(Er),this._element.classList.add(po),this._element.style[h]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const C=()=>{this._isTransitioning=!1,this._element.classList.remove(po),this._element.classList.add(Er,qs),this._element.style[h]="",k.trigger(this._element,Cm)},I=`scroll${h[0].toUpperCase()+h.slice(1)}`;this._queueCallback(C,this._element,!0),this._element.style[h]=`${this._element[I]}px`}hide(){if(this._isTransitioning||!this._isShown()||k.trigger(this._element,Tm).defaultPrevented)return;const u=this._getDimension();this._element.style[u]=`${this._element.getBoundingClientRect()[u]}px`,A(this._element),this._element.classList.add(po),this._element.classList.remove(Er,qs);for(const C of this._triggerArray){const P=j.getElementFromSelector(C);P&&!this._isShown(P)&&this._addAriaAndCollapsedClass([C],!1)}this._isTransitioning=!0;const h=()=>{this._isTransitioning=!1,this._element.classList.remove(po),this._element.classList.add(Er),k.trigger(this._element,Nm)};this._element.style[u]="",this._queueCallback(h,this._element,!0)}_isShown(s=this._element){return s.classList.contains(qs)}_configAfterMerge(s){return s.toggle=!!s.toggle,s.parent=$(s.parent),s}_getDimension(){return this._element.classList.contains(Om)?Lm:Im}_initializeChildren(){if(!this._config.parent)return;const s=this._getFirstLevelChildren(el);for(const u of s){const h=j.getElementFromSelector(u);h&&this._addAriaAndCollapsedClass([u],this._isShown(h))}}_getFirstLevelChildren(s){const u=j.find(xm,this._config.parent);return j.find(s,this._config.parent).filter(h=>!u.includes(h))}_addAriaAndCollapsedClass(s,u){if(s.length)for(const h of s)h.classList.toggle(Am,!u),h.setAttribute("aria-expanded",u)}static jQueryInterface(s){const u={};return typeof s=="string"&&/show|hide/.test(s)&&(u.toggle=!1),this.each(function(){const h=Sr.getOrCreateInstance(this,u);if(typeof s=="string"){if(typeof h[s]>"u")throw new TypeError(`No method named "${s}"`);h[s]()}})}}k.on(document,km,el,function(f){(f.target.tagName==="A"||f.delegateTarget&&f.delegateTarget.tagName==="A")&&f.preventDefault();for(const s of j.getMultipleElementsFromSelector(this))Sr.getOrCreateInstance(s,{toggle:!1}).toggle()}),R(Sr);const Uu="dropdown",Un=".bs.dropdown",tl=".data-api",Mm="Escape",Qu="Tab",Rm="ArrowUp",Ku="ArrowDown",$m=2,jm=`hide${Un}`,Fm=`hidden${Un}`,zm=`show${Un}`,Bm=`shown${Un}`,Yu=`click${Un}${tl}`,Gu=`keydown${Un}${tl}`,Hm=`keyup${Un}${tl}`,wr="show",Vm="dropup",Wm="dropend",Um="dropstart",Qm="dropup-center",Km="dropdown-center",Qn='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ym=`${Qn}.${wr}`,ho=".dropdown-menu",Gm=".navbar",Xm=".navbar-nav",Zm=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Jm=z()?"top-end":"top-start",qm=z()?"top-start":"top-end",eg=z()?"bottom-end":"bottom-start",tg=z()?"bottom-start":"bottom-end",ng=z()?"left-start":"right-start",rg=z()?"right-start":"left-start",ig="top",og="bottom",sg={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},lg={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Ct extends ne{constructor(s,u){super(s,u),this._popper=null,this._parent=this._element.parentNode,this._menu=j.next(this._element,ho)[0]||j.prev(this._element,ho)[0]||j.findOne(ho,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return sg}static get DefaultType(){return lg}static get NAME(){return Uu}toggle(){return this._isShown()?this.hide():this.show()}show(){if(p(this._element)||this._isShown())return;const s={relatedTarget:this._element};if(!k.trigger(this._element,zm,s).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Xm))for(const h of[].concat(...document.body.children))k.on(h,"mouseover",S);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(wr),this._element.classList.add(wr),k.trigger(this._element,Bm,s)}}hide(){if(p(this._element)||!this._isShown())return;const s={relatedTarget:this._element};this._completeHide(s)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(s){if(!k.trigger(this._element,jm,s).defaultPrevented){if("ontouchstart"in document.documentElement)for(const h of[].concat(...document.body.children))k.off(h,"mouseover",S);this._popper&&this._popper.destroy(),this._menu.classList.remove(wr),this._element.classList.remove(wr),this._element.setAttribute("aria-expanded","false"),Ve.removeDataAttribute(this._menu,"popper"),k.trigger(this._element,Fm,s)}}_getConfig(s){if(s=super._getConfig(s),typeof s.reference=="object"&&!T(s.reference)&&typeof s.reference.getBoundingClientRect!="function")throw new TypeError(`${Uu.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return s}_createPopper(){if(typeof i>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let s=this._element;this._config.reference==="parent"?s=this._parent:T(this._config.reference)?s=$(this._config.reference):typeof this._config.reference=="object"&&(s=this._config.reference);const u=this._getPopperConfig();this._popper=i.createPopper(s,this._menu,u)}_isShown(){return this._menu.classList.contains(wr)}_getPlacement(){const s=this._parent;if(s.classList.contains(Wm))return ng;if(s.classList.contains(Um))return rg;if(s.classList.contains(Qm))return ig;if(s.classList.contains(Km))return og;const u=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return s.classList.contains(Vm)?u?qm:Jm:u?tg:eg}_detectNavbar(){return this._element.closest(Gm)!==null}_getOffset(){const{offset:s}=this._config;return typeof s=="string"?s.split(",").map(u=>Number.parseInt(u,10)):typeof s=="function"?u=>s(u,this._element):s}_getPopperConfig(){const s={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Ve.setDataAttribute(this._menu,"popper","static"),s.modifiers=[{name:"applyStyles",enabled:!1}]),{...s,...V(this._config.popperConfig,[s])}}_selectMenuItem({key:s,target:u}){const h=j.find(Zm,this._menu).filter(C=>v(C));h.length&&Z(h,u,s===Ku,!h.includes(u)).focus()}static jQueryInterface(s){return this.each(function(){const u=Ct.getOrCreateInstance(this,s);if(typeof s=="string"){if(typeof u[s]>"u")throw new TypeError(`No method named "${s}"`);u[s]()}})}static clearMenus(s){if(s.button===$m||s.type==="keyup"&&s.key!==Qu)return;const u=j.find(Ym);for(const h of u){const C=Ct.getInstance(h);if(!C||C._config.autoClose===!1)continue;const P=s.composedPath(),I=P.includes(C._menu);if(P.includes(C._element)||C._config.autoClose==="inside"&&!I||C._config.autoClose==="outside"&&I||C._menu.contains(s.target)&&(s.type==="keyup"&&s.key===Qu||/input|select|option|textarea|form/i.test(s.target.tagName)))continue;const W={relatedTarget:C._element};s.type==="click"&&(W.clickEvent=s),C._completeHide(W)}}static dataApiKeydownHandler(s){const u=/input|textarea/i.test(s.target.tagName),h=s.key===Mm,C=[Rm,Ku].includes(s.key);if(!C&&!h||u&&!h)return;s.preventDefault();const P=this.matches(Qn)?this:j.prev(this,Qn)[0]||j.next(this,Qn)[0]||j.findOne(Qn,s.delegateTarget.parentNode),I=Ct.getOrCreateInstance(P);if(C){s.stopPropagation(),I.show(),I._selectMenuItem(s);return}I._isShown()&&(s.stopPropagation(),I.hide(),P.focus())}}k.on(document,Gu,Qn,Ct.dataApiKeydownHandler),k.on(document,Gu,ho,Ct.dataApiKeydownHandler),k.on(document,Yu,Ct.clearMenus),k.on(document,Hm,Ct.clearMenus),k.on(document,Yu,Qn,function(f){f.preventDefault(),Ct.getOrCreateInstance(this).toggle()}),R(Ct);const Xu="backdrop",ag="fade",Zu="show",Ju=`mousedown.bs.${Xu}`,ug={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},cg={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class qu extends _e{constructor(s){super(),this._config=this._getConfig(s),this._isAppended=!1,this._element=null}static get Default(){return ug}static get DefaultType(){return cg}static get NAME(){return Xu}show(s){if(!this._config.isVisible){V(s);return}this._append();const u=this._getElement();this._config.isAnimated&&A(u),u.classList.add(Zu),this._emulateAnimation(()=>{V(s)})}hide(s){if(!this._config.isVisible){V(s);return}this._getElement().classList.remove(Zu),this._emulateAnimation(()=>{this.dispose(),V(s)})}dispose(){this._isAppended&&(k.off(this._element,Ju),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const s=document.createElement("div");s.className=this._config.className,this._config.isAnimated&&s.classList.add(ag),this._element=s}return this._element}_configAfterMerge(s){return s.rootElement=$(s.rootElement),s}_append(){if(this._isAppended)return;const s=this._getElement();this._config.rootElement.append(s),k.on(s,Ju,()=>{V(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(s){q(s,this._getElement(),this._config.isAnimated)}}const dg="focustrap",mo=".bs.focustrap",fg=`focusin${mo}`,pg=`keydown.tab${mo}`,hg="Tab",mg="forward",ec="backward",gg={autofocus:!0,trapElement:null},vg={autofocus:"boolean",trapElement:"element"};class tc extends _e{constructor(s){super(),this._config=this._getConfig(s),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return gg}static get DefaultType(){return vg}static get NAME(){return dg}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),k.off(document,mo),k.on(document,fg,s=>this._handleFocusin(s)),k.on(document,pg,s=>this._handleKeydown(s)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,k.off(document,mo))}_handleFocusin(s){const{trapElement:u}=this._config;if(s.target===document||s.target===u||u.contains(s.target))return;const h=j.focusableChildren(u);h.length===0?u.focus():this._lastTabNavDirection===ec?h[h.length-1].focus():h[0].focus()}_handleKeydown(s){s.key===hg&&(this._lastTabNavDirection=s.shiftKey?ec:mg)}}const nc=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",rc=".sticky-top",go="padding-right",ic="margin-right";class nl{constructor(){this._element=document.body}getWidth(){const s=document.documentElement.clientWidth;return Math.abs(window.innerWidth-s)}hide(){const s=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,go,u=>u+s),this._setElementAttributes(nc,go,u=>u+s),this._setElementAttributes(rc,ic,u=>u-s)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,go),this._resetElementAttributes(nc,go),this._resetElementAttributes(rc,ic)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(s,u,h){const C=this.getWidth(),P=I=>{if(I!==this._element&&window.innerWidth>I.clientWidth+C)return;this._saveInitialAttribute(I,u);const W=window.getComputedStyle(I).getPropertyValue(u);I.style.setProperty(u,`${h(Number.parseFloat(W))}px`)};this._applyManipulationCallback(s,P)}_saveInitialAttribute(s,u){const h=s.style.getPropertyValue(u);h&&Ve.setDataAttribute(s,u,h)}_resetElementAttributes(s,u){const h=C=>{const P=Ve.getDataAttribute(C,u);if(P===null){C.style.removeProperty(u);return}Ve.removeDataAttribute(C,u),C.style.setProperty(u,P)};this._applyManipulationCallback(s,h)}_applyManipulationCallback(s,u){if(T(s)){u(s);return}for(const h of j.find(s,this._element))u(h)}}const yg="modal",dt=".bs.modal",_g=".data-api",Eg="Escape",Sg=`hide${dt}`,wg=`hidePrevented${dt}`,oc=`hidden${dt}`,sc=`show${dt}`,Cg=`shown${dt}`,Tg=`resize${dt}`,Ng=`click.dismiss${dt}`,kg=`mousedown.dismiss${dt}`,Ag=`keydown.dismiss${dt}`,xg=`click${dt}${_g}`,lc="modal-open",Og="fade",ac="show",rl="modal-static",Lg=".modal.show",Ig=".modal-dialog",Dg=".modal-body",Pg='[data-bs-toggle="modal"]',bg={backdrop:!0,focus:!0,keyboard:!0},Mg={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Kn extends ne{constructor(s,u){super(s,u),this._dialog=j.findOne(Ig,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new nl,this._addEventListeners()}static get Default(){return bg}static get DefaultType(){return Mg}static get NAME(){return yg}toggle(s){return this._isShown?this.hide():this.show(s)}show(s){this._isShown||this._isTransitioning||k.trigger(this._element,sc,{relatedTarget:s}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(lc),this._adjustDialog(),this._backdrop.show(()=>this._showElement(s)))}hide(){!this._isShown||this._isTransitioning||k.trigger(this._element,Sg).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(ac),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){k.off(window,dt),k.off(this._dialog,dt),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new qu({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new tc({trapElement:this._element})}_showElement(s){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 u=j.findOne(Dg,this._dialog);u&&(u.scrollTop=0),A(this._element),this._element.classList.add(ac);const h=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,k.trigger(this._element,Cg,{relatedTarget:s})};this._queueCallback(h,this._dialog,this._isAnimated())}_addEventListeners(){k.on(this._element,Ag,s=>{if(s.key===Eg){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),k.on(window,Tg,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),k.on(this._element,kg,s=>{k.one(this._element,Ng,u=>{if(!(this._element!==s.target||this._element!==u.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_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(lc),this._resetAdjustments(),this._scrollBar.reset(),k.trigger(this._element,oc)})}_isAnimated(){return this._element.classList.contains(Og)}_triggerBackdropTransition(){if(k.trigger(this._element,wg).defaultPrevented)return;const u=this._element.scrollHeight>document.documentElement.clientHeight,h=this._element.style.overflowY;h==="hidden"||this._element.classList.contains(rl)||(u||(this._element.style.overflowY="hidden"),this._element.classList.add(rl),this._queueCallback(()=>{this._element.classList.remove(rl),this._queueCallback(()=>{this._element.style.overflowY=h},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const s=this._element.scrollHeight>document.documentElement.clientHeight,u=this._scrollBar.getWidth(),h=u>0;if(h&&!s){const C=z()?"paddingLeft":"paddingRight";this._element.style[C]=`${u}px`}if(!h&&s){const C=z()?"paddingRight":"paddingLeft";this._element.style[C]=`${u}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(s,u){return this.each(function(){const h=Kn.getOrCreateInstance(this,s);if(typeof s=="string"){if(typeof h[s]>"u")throw new TypeError(`No method named "${s}"`);h[s](u)}})}}k.on(document,xg,Pg,function(f){const s=j.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&f.preventDefault(),k.one(s,sc,C=>{C.defaultPrevented||k.one(s,oc,()=>{v(this)&&this.focus()})});const u=j.findOne(Lg);u&&Kn.getInstance(u).hide(),Kn.getOrCreateInstance(s).toggle(this)}),be(Kn),R(Kn);const Rg="offcanvas",Zt=".bs.offcanvas",uc=".data-api",$g=`load${Zt}${uc}`,jg="Escape",cc="show",dc="showing",fc="hiding",Fg="offcanvas-backdrop",pc=".offcanvas.show",zg=`show${Zt}`,Bg=`shown${Zt}`,Hg=`hide${Zt}`,hc=`hidePrevented${Zt}`,mc=`hidden${Zt}`,Vg=`resize${Zt}`,Wg=`click${Zt}${uc}`,Ug=`keydown.dismiss${Zt}`,Qg='[data-bs-toggle="offcanvas"]',Kg={backdrop:!0,keyboard:!0,scroll:!1},Yg={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Jt extends ne{constructor(s,u){super(s,u),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Kg}static get DefaultType(){return Yg}static get NAME(){return Rg}toggle(s){return this._isShown?this.hide():this.show(s)}show(s){if(this._isShown||k.trigger(this._element,zg,{relatedTarget:s}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new nl().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(dc);const h=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(cc),this._element.classList.remove(dc),k.trigger(this._element,Bg,{relatedTarget:s})};this._queueCallback(h,this._element,!0)}hide(){if(!this._isShown||k.trigger(this._element,Hg).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(fc),this._backdrop.hide();const u=()=>{this._element.classList.remove(cc,fc),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new nl().reset(),k.trigger(this._element,mc)};this._queueCallback(u,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const s=()=>{if(this._config.backdrop==="static"){k.trigger(this._element,hc);return}this.hide()},u=!!this._config.backdrop;return new qu({className:Fg,isVisible:u,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:u?s:null})}_initializeFocusTrap(){return new tc({trapElement:this._element})}_addEventListeners(){k.on(this._element,Ug,s=>{if(s.key===jg){if(this._config.keyboard){this.hide();return}k.trigger(this._element,hc)}})}static jQueryInterface(s){return this.each(function(){const u=Jt.getOrCreateInstance(this,s);if(typeof s=="string"){if(u[s]===void 0||s.startsWith("_")||s==="constructor")throw new TypeError(`No method named "${s}"`);u[s](this)}})}}k.on(document,Wg,Qg,function(f){const s=j.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&f.preventDefault(),p(this))return;k.one(s,mc,()=>{v(this)&&this.focus()});const u=j.findOne(pc);u&&u!==s&&Jt.getInstance(u).hide(),Jt.getOrCreateInstance(s).toggle(this)}),k.on(window,$g,()=>{for(const f of j.find(pc))Jt.getOrCreateInstance(f).show()}),k.on(window,Vg,()=>{for(const f of j.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(f).position!=="fixed"&&Jt.getOrCreateInstance(f).hide()}),be(Jt),R(Jt);const gc={"*":["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:[]},Gg=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Xg=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Zg=(f,s)=>{const u=f.nodeName.toLowerCase();return s.includes(u)?Gg.has(u)?!!Xg.test(f.nodeValue):!0:s.filter(h=>h instanceof RegExp).some(h=>h.test(u))};function Jg(f,s,u){if(!f.length)return f;if(u&&typeof u=="function")return u(f);const C=new window.DOMParser().parseFromString(f,"text/html"),P=[].concat(...C.body.querySelectorAll("*"));for(const I of P){const W=I.nodeName.toLowerCase();if(!Object.keys(s).includes(W)){I.remove();continue}const We=[].concat(...I.attributes),ft=[].concat(s["*"]||[],s[W]||[]);for(const Ee of We)Zg(Ee,ft)||I.removeAttribute(Ee.nodeName)}return C.body.innerHTML}const qg="TemplateFactory",ev={allowList:gc,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},tv={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},nv={entry:"(string|element|function|null)",selector:"(string|element)"};class rv extends _e{constructor(s){super(),this._config=this._getConfig(s)}static get Default(){return ev}static get DefaultType(){return tv}static get NAME(){return qg}getContent(){return Object.values(this._config.content).map(s=>this._resolvePossibleFunction(s)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(s){return this._checkContent(s),this._config.content={...this._config.content,...s},this}toHtml(){const s=document.createElement("div");s.innerHTML=this._maybeSanitize(this._config.template);for(const[C,P]of Object.entries(this._config.content))this._setContent(s,P,C);const u=s.children[0],h=this._resolvePossibleFunction(this._config.extraClass);return h&&u.classList.add(...h.split(" ")),u}_typeCheckConfig(s){super._typeCheckConfig(s),this._checkContent(s.content)}_checkContent(s){for(const[u,h]of Object.entries(s))super._typeCheckConfig({selector:u,entry:h},nv)}_setContent(s,u,h){const C=j.findOne(h,s);if(C){if(u=this._resolvePossibleFunction(u),!u){C.remove();return}if(T(u)){this._putElementInTemplate($(u),C);return}if(this._config.html){C.innerHTML=this._maybeSanitize(u);return}C.textContent=u}}_maybeSanitize(s){return this._config.sanitize?Jg(s,this._config.allowList,this._config.sanitizeFn):s}_resolvePossibleFunction(s){return V(s,[this])}_putElementInTemplate(s,u){if(this._config.html){u.innerHTML="",u.append(s);return}u.textContent=s.textContent}}const iv="tooltip",ov=new Set(["sanitize","allowList","sanitizeFn"]),il="fade",sv="modal",vo="show",lv=".tooltip-inner",vc=`.${sv}`,yc="hide.bs.modal",di="hover",ol="focus",av="click",uv="manual",cv="hide",dv="hidden",fv="show",pv="shown",hv="inserted",mv="click",gv="focusin",vv="focusout",yv="mouseenter",_v="mouseleave",Ev={AUTO:"auto",TOP:"top",RIGHT:z()?"left":"right",BOTTOM:"bottom",LEFT:z()?"right":"left"},Sv={allowList:gc,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"},wv={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 Yn extends ne{constructor(s,u){if(typeof i>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(s,u),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 Sv}static get DefaultType(){return wv}static get NAME(){return iv}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),k.off(this._element.closest(vc),yc,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 s=k.trigger(this._element,this.constructor.eventName(fv)),h=(y(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(s.defaultPrevented||!h)return;this._disposePopper();const C=this._getTipElement();this._element.setAttribute("aria-describedby",C.getAttribute("id"));const{container:P}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(P.append(C),k.trigger(this._element,this.constructor.eventName(hv))),this._popper=this._createPopper(C),C.classList.add(vo),"ontouchstart"in document.documentElement)for(const W of[].concat(...document.body.children))k.on(W,"mouseover",S);const I=()=>{k.trigger(this._element,this.constructor.eventName(pv)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(I,this.tip,this._isAnimated())}hide(){if(!this._isShown()||k.trigger(this._element,this.constructor.eventName(cv)).defaultPrevented)return;if(this._getTipElement().classList.remove(vo),"ontouchstart"in document.documentElement)for(const C of[].concat(...document.body.children))k.off(C,"mouseover",S);this._activeTrigger[av]=!1,this._activeTrigger[ol]=!1,this._activeTrigger[di]=!1,this._isHovered=null;const h=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),k.trigger(this._element,this.constructor.eventName(dv)))};this._queueCallback(h,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(s){const u=this._getTemplateFactory(s).toHtml();if(!u)return null;u.classList.remove(il,vo),u.classList.add(`bs-${this.constructor.NAME}-auto`);const h=_(this.constructor.NAME).toString();return u.setAttribute("id",h),this._isAnimated()&&u.classList.add(il),u}setContent(s){this._newContent=s,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(s){return this._templateFactory?this._templateFactory.changeContent(s):this._templateFactory=new rv({...this._config,content:s,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[lv]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(s){return this.constructor.getOrCreateInstance(s.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(il)}_isShown(){return this.tip&&this.tip.classList.contains(vo)}_createPopper(s){const u=V(this._config.placement,[this,s,this._element]),h=Ev[u.toUpperCase()];return i.createPopper(this._element,s,this._getPopperConfig(h))}_getOffset(){const{offset:s}=this._config;return typeof s=="string"?s.split(",").map(u=>Number.parseInt(u,10)):typeof s=="function"?u=>s(u,this._element):s}_resolvePossibleFunction(s){return V(s,[this._element])}_getPopperConfig(s){const u={placement:s,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:h=>{this._getTipElement().setAttribute("data-popper-placement",h.state.placement)}}]};return{...u,...V(this._config.popperConfig,[u])}}_setListeners(){const s=this._config.trigger.split(" ");for(const u of s)if(u==="click")k.on(this._element,this.constructor.eventName(mv),this._config.selector,h=>{this._initializeOnDelegatedTarget(h).toggle()});else if(u!==uv){const h=u===di?this.constructor.eventName(yv):this.constructor.eventName(gv),C=u===di?this.constructor.eventName(_v):this.constructor.eventName(vv);k.on(this._element,h,this._config.selector,P=>{const I=this._initializeOnDelegatedTarget(P);I._activeTrigger[P.type==="focusin"?ol:di]=!0,I._enter()}),k.on(this._element,C,this._config.selector,P=>{const I=this._initializeOnDelegatedTarget(P);I._activeTrigger[P.type==="focusout"?ol:di]=I._element.contains(P.relatedTarget),I._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},k.on(this._element.closest(vc),yc,this._hideModalHandler)}_fixTitle(){const s=this._element.getAttribute("title");s&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",s),this._element.setAttribute("data-bs-original-title",s),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}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(s,u){clearTimeout(this._timeout),this._timeout=setTimeout(s,u)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(s){const u=Ve.getDataAttributes(this._element);for(const h of Object.keys(u))ov.has(h)&&delete u[h];return s={...u,...typeof s=="object"&&s?s:{}},s=this._mergeConfigObj(s),s=this._configAfterMerge(s),this._typeCheckConfig(s),s}_configAfterMerge(s){return s.container=s.container===!1?document.body:$(s.container),typeof s.delay=="number"&&(s.delay={show:s.delay,hide:s.delay}),typeof s.title=="number"&&(s.title=s.title.toString()),typeof s.content=="number"&&(s.content=s.content.toString()),s}_getDelegateConfig(){const s={};for(const[u,h]of Object.entries(this._config))this.constructor.Default[u]!==h&&(s[u]=h);return s.selector=!1,s.trigger="manual",s}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(s){return this.each(function(){const u=Yn.getOrCreateInstance(this,s);if(typeof s=="string"){if(typeof u[s]>"u")throw new TypeError(`No method named "${s}"`);u[s]()}})}}R(Yn);const Cv="popover",Tv=".popover-header",Nv=".popover-body",kv={...Yn.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},Av={...Yn.DefaultType,content:"(null|string|element|function)"};class yo extends Yn{static get Default(){return kv}static get DefaultType(){return Av}static get NAME(){return Cv}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Tv]:this._getTitle(),[Nv]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(s){return this.each(function(){const u=yo.getOrCreateInstance(this,s);if(typeof s=="string"){if(typeof u[s]>"u")throw new TypeError(`No method named "${s}"`);u[s]()}})}}R(yo);const xv="scrollspy",sl=".bs.scrollspy",Ov=".data-api",Lv=`activate${sl}`,_c=`click${sl}`,Iv=`load${sl}${Ov}`,Dv="dropdown-item",Cr="active",Pv='[data-bs-spy="scroll"]',ll="[href]",bv=".nav, .list-group",Ec=".nav-link",Mv=`${Ec}, .nav-item > ${Ec}, .list-group-item`,Rv=".dropdown",$v=".dropdown-toggle",jv={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Fv={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class fi extends ne{constructor(s,u){super(s,u),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 jv}static get DefaultType(){return Fv}static get NAME(){return xv}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const s of this._observableSections.values())this._observer.observe(s)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(s){return s.target=$(s.target)||document.body,s.rootMargin=s.offset?`${s.offset}px 0px -30%`:s.rootMargin,typeof s.threshold=="string"&&(s.threshold=s.threshold.split(",").map(u=>Number.parseFloat(u))),s}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(k.off(this._config.target,_c),k.on(this._config.target,_c,ll,s=>{const u=this._observableSections.get(s.target.hash);if(u){s.preventDefault();const h=this._rootElement||window,C=u.offsetTop-this._element.offsetTop;if(h.scrollTo){h.scrollTo({top:C,behavior:"smooth"});return}h.scrollTop=C}}))}_getNewObserver(){const s={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(u=>this._observerCallback(u),s)}_observerCallback(s){const u=I=>this._targetLinks.get(`#${I.target.id}`),h=I=>{this._previousScrollData.visibleEntryTop=I.target.offsetTop,this._process(u(I))},C=(this._rootElement||document.documentElement).scrollTop,P=C>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=C;for(const I of s){if(!I.isIntersecting){this._activeTarget=null,this._clearActiveClass(u(I));continue}const W=I.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(P&&W){if(h(I),!C)return;continue}!P&&!W&&h(I)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const s=j.find(ll,this._config.target);for(const u of s){if(!u.hash||p(u))continue;const h=j.findOne(decodeURI(u.hash),this._element);v(h)&&(this._targetLinks.set(decodeURI(u.hash),u),this._observableSections.set(u.hash,h))}}_process(s){this._activeTarget!==s&&(this._clearActiveClass(this._config.target),this._activeTarget=s,s.classList.add(Cr),this._activateParents(s),k.trigger(this._element,Lv,{relatedTarget:s}))}_activateParents(s){if(s.classList.contains(Dv)){j.findOne($v,s.closest(Rv)).classList.add(Cr);return}for(const u of j.parents(s,bv))for(const h of j.prev(u,Mv))h.classList.add(Cr)}_clearActiveClass(s){s.classList.remove(Cr);const u=j.find(`${ll}.${Cr}`,s);for(const h of u)h.classList.remove(Cr)}static jQueryInterface(s){return this.each(function(){const u=fi.getOrCreateInstance(this,s);if(typeof s=="string"){if(u[s]===void 0||s.startsWith("_")||s==="constructor")throw new TypeError(`No method named "${s}"`);u[s]()}})}}k.on(window,Iv,()=>{for(const f of j.find(Pv))fi.getOrCreateInstance(f)}),R(fi);const zv="tab",Gn=".bs.tab",Bv=`hide${Gn}`,Hv=`hidden${Gn}`,Vv=`show${Gn}`,Wv=`shown${Gn}`,Uv=`click${Gn}`,Qv=`keydown${Gn}`,Kv=`load${Gn}`,Yv="ArrowLeft",Sc="ArrowRight",Gv="ArrowUp",wc="ArrowDown",al="Home",Cc="End",Xn="active",Tc="fade",ul="show",Xv="dropdown",Nc=".dropdown-toggle",Zv=".dropdown-menu",cl=`:not(${Nc})`,Jv='.list-group, .nav, [role="tablist"]',qv=".nav-item, .list-group-item",ey=`.nav-link${cl}, .list-group-item${cl}, [role="tab"]${cl}`,kc='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',dl=`${ey}, ${kc}`,ty=`.${Xn}[data-bs-toggle="tab"], .${Xn}[data-bs-toggle="pill"], .${Xn}[data-bs-toggle="list"]`;class Zn extends ne{constructor(s){super(s),this._parent=this._element.closest(Jv),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),k.on(this._element,Qv,u=>this._keydown(u)))}static get NAME(){return zv}show(){const s=this._element;if(this._elemIsActive(s))return;const u=this._getActiveElem(),h=u?k.trigger(u,Bv,{relatedTarget:s}):null;k.trigger(s,Vv,{relatedTarget:u}).defaultPrevented||h&&h.defaultPrevented||(this._deactivate(u,s),this._activate(s,u))}_activate(s,u){if(!s)return;s.classList.add(Xn),this._activate(j.getElementFromSelector(s));const h=()=>{if(s.getAttribute("role")!=="tab"){s.classList.add(ul);return}s.removeAttribute("tabindex"),s.setAttribute("aria-selected",!0),this._toggleDropDown(s,!0),k.trigger(s,Wv,{relatedTarget:u})};this._queueCallback(h,s,s.classList.contains(Tc))}_deactivate(s,u){if(!s)return;s.classList.remove(Xn),s.blur(),this._deactivate(j.getElementFromSelector(s));const h=()=>{if(s.getAttribute("role")!=="tab"){s.classList.remove(ul);return}s.setAttribute("aria-selected",!1),s.setAttribute("tabindex","-1"),this._toggleDropDown(s,!1),k.trigger(s,Hv,{relatedTarget:u})};this._queueCallback(h,s,s.classList.contains(Tc))}_keydown(s){if(![Yv,Sc,Gv,wc,al,Cc].includes(s.key))return;s.stopPropagation(),s.preventDefault();const u=this._getChildren().filter(C=>!p(C));let h;if([al,Cc].includes(s.key))h=u[s.key===al?0:u.length-1];else{const C=[Sc,wc].includes(s.key);h=Z(u,s.target,C,!0)}h&&(h.focus({preventScroll:!0}),Zn.getOrCreateInstance(h).show())}_getChildren(){return j.find(dl,this._parent)}_getActiveElem(){return this._getChildren().find(s=>this._elemIsActive(s))||null}_setInitialAttributes(s,u){this._setAttributeIfNotExists(s,"role","tablist");for(const h of u)this._setInitialAttributesOnChild(h)}_setInitialAttributesOnChild(s){s=this._getInnerElement(s);const u=this._elemIsActive(s),h=this._getOuterElement(s);s.setAttribute("aria-selected",u),h!==s&&this._setAttributeIfNotExists(h,"role","presentation"),u||s.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(s,"role","tab"),this._setInitialAttributesOnTargetPanel(s)}_setInitialAttributesOnTargetPanel(s){const u=j.getElementFromSelector(s);u&&(this._setAttributeIfNotExists(u,"role","tabpanel"),s.id&&this._setAttributeIfNotExists(u,"aria-labelledby",`${s.id}`))}_toggleDropDown(s,u){const h=this._getOuterElement(s);if(!h.classList.contains(Xv))return;const C=(P,I)=>{const W=j.findOne(P,h);W&&W.classList.toggle(I,u)};C(Nc,Xn),C(Zv,ul),h.setAttribute("aria-expanded",u)}_setAttributeIfNotExists(s,u,h){s.hasAttribute(u)||s.setAttribute(u,h)}_elemIsActive(s){return s.classList.contains(Xn)}_getInnerElement(s){return s.matches(dl)?s:j.findOne(dl,s)}_getOuterElement(s){return s.closest(qv)||s}static jQueryInterface(s){return this.each(function(){const u=Zn.getOrCreateInstance(this);if(typeof s=="string"){if(u[s]===void 0||s.startsWith("_")||s==="constructor")throw new TypeError(`No method named "${s}"`);u[s]()}})}}k.on(document,Uv,kc,function(f){["A","AREA"].includes(this.tagName)&&f.preventDefault(),!p(this)&&Zn.getOrCreateInstance(this).show()}),k.on(window,Kv,()=>{for(const f of j.find(ty))Zn.getOrCreateInstance(f)}),R(Zn);const ny="toast",En=".bs.toast",ry=`mouseover${En}`,iy=`mouseout${En}`,oy=`focusin${En}`,sy=`focusout${En}`,ly=`hide${En}`,ay=`hidden${En}`,uy=`show${En}`,cy=`shown${En}`,dy="fade",Ac="hide",_o="show",Eo="showing",fy={animation:"boolean",autohide:"boolean",delay:"number"},py={animation:!0,autohide:!0,delay:5e3};class pi extends ne{constructor(s,u){super(s,u),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return py}static get DefaultType(){return fy}static get NAME(){return ny}show(){if(k.trigger(this._element,uy).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(dy);const u=()=>{this._element.classList.remove(Eo),k.trigger(this._element,cy),this._maybeScheduleHide()};this._element.classList.remove(Ac),A(this._element),this._element.classList.add(_o,Eo),this._queueCallback(u,this._element,this._config.animation)}hide(){if(!this.isShown()||k.trigger(this._element,ly).defaultPrevented)return;const u=()=>{this._element.classList.add(Ac),this._element.classList.remove(Eo,_o),k.trigger(this._element,ay)};this._element.classList.add(Eo),this._queueCallback(u,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(_o),super.dispose()}isShown(){return this._element.classList.contains(_o)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(s,u){switch(s.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=u;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=u;break}}if(u){this._clearTimeout();return}const h=s.relatedTarget;this._element===h||this._element.contains(h)||this._maybeScheduleHide()}_setListeners(){k.on(this._element,ry,s=>this._onInteraction(s,!0)),k.on(this._element,iy,s=>this._onInteraction(s,!1)),k.on(this._element,oy,s=>this._onInteraction(s,!0)),k.on(this._element,sy,s=>this._onInteraction(s,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(s){return this.each(function(){const u=pi.getOrCreateInstance(this,s);if(typeof s=="string"){if(typeof u[s]>"u")throw new TypeError(`No method named "${s}"`);u[s](this)}})}}return be(pi),R(pi),{Alert:Qt,Button:vn,Carousel:_r,Collapse:Sr,Dropdown:Ct,Modal:Kn,Offcanvas:Jt,Popover:yo,ScrollSpy:fi,Tab:Zn,Toast:pi,Tooltip:Yn}})})(w0);function fE(){const[e,t]=D.useState(localStorage.getItem("teamNumber")==null?"":localStorage.getItem("teamNumber")),[n,r]=D.useState(localStorage.getItem("matchNumber")==null?"":localStorage.getItem("matchNumber")),[i,o]=D.useState(localStorage.getItem("scoutName")==null?"":localStorage.getItem("scoutName")),[l,a]=D.useState(localStorage.getItem("startingPosition")==null?"":localStorage.getItem("startingPosition")),[c,d]=D.useState(localStorage.getItem("leaveCommunity")==null?"":localStorage.getItem("leaveCommunity")),[g,E]=D.useState(localStorage.getItem("autoConesHigh")==null?0:localStorage.getItem("autoConesHigh")),[_,w]=D.useState(localStorage.getItem("autoConesMid")==null?0:localStorage.getItem("autoConesMid")),[N,T]=D.useState(localStorage.getItem("autoConesLow")==null?0:localStorage.getItem("autoConesLow")),[$,v]=D.useState(localStorage.getItem("autoConesMissed")==null?0:localStorage.getItem("autoConesMissed")),[p,y]=D.useState(localStorage.getItem("autoCubesHigh")==null?0:localStorage.getItem("autoCubesHigh")),[S,A]=D.useState(localStorage.getItem("autoCubesMid")==null?0:localStorage.getItem("autoCubesMid")),[x,L]=D.useState(localStorage.getItem("autoCubesLow")==null?0:localStorage.getItem("autoCubesLow")),[b,z]=D.useState(localStorage.getItem("autoCubesMissed")==null?0:localStorage.getItem("autoCubesMissed")),[R,V]=D.useState(localStorage.getItem("autoChargingStation")==null?"":localStorage.getItem("autoChargingStation")),[q,Z]=D.useState(localStorage.getItem("teleConesHigh")==null?0:localStorage.getItem("teleConesHigh")),[ve,Be]=D.useState(localStorage.getItem("teleConesMid")==null?0:localStorage.getItem("teleConesMid")),[ie,ae]=D.useState(localStorage.getItem("teleConesLow")==null?0:localStorage.getItem("teleConesLow")),[M,B]=D.useState(localStorage.getItem("teleConesMissed")==null?0:localStorage.getItem("teleConesMissed")),[H,G]=D.useState(localStorage.getItem("teleCubesHigh")==null?0:localStorage.getItem("teleCubesHigh")),[Y,He]=D.useState(localStorage.getItem("teleCubesMid")==null?0:localStorage.getItem("teleCubesMid")),[ce,ye]=D.useState(localStorage.getItem("teleCubesLow")==null?0:localStorage.getItem("teleCubesLow")),[de,Pe]=D.useState(localStorage.getItem("teleCubesMissed")==null?0:localStorage.getItem("teleCubesMissed")),[xe,fn]=D.useState(localStorage.getItem("intakeFromFloorCommunity")==null?0:localStorage.getItem("intakeFromFloorCommunity")),[Ut,k]=D.useState(localStorage.getItem("intakeFromFloorNotCommunity")==null?0:localStorage.getItem("intakeFromFloorNotCommunity")),[Pt,pn]=D.useState(localStorage.getItem("intakeFromShelf")==null?0:localStorage.getItem("intakeFromShelf")),[bt,Ve]=D.useState(localStorage.getItem("intakeFromChute")==null?0:localStorage.getItem("intakeFromChute")),[_e,wt]=D.useState(localStorage.getItem("defenseQuantity")==null?"":localStorage.getItem("defenseQuantity")),[ne,Xe]=D.useState(localStorage.getItem("defenseQuality")==null?"":localStorage.getItem("defenseQuality")),[j,be]=D.useState(localStorage.getItem("endgameChargingStation")==null?"":localStorage.getItem("endgameChargingStation")),[at,hn]=D.useState(localStorage.getItem("additionalRobots")==null?"":localStorage.getItem("additionalRobots")),[Ze,mn]=D.useState(localStorage.getItem("speed")==null?"":localStorage.getItem("speed")),[ut,gn]=D.useState(localStorage.getItem("movedBetween")==null?"":localStorage.getItem("movedBetween")),[ct,Qt]=D.useState(localStorage.getItem("droppedCycling")==null?"":localStorage.getItem("droppedCycling")),[Kt,ao]=D.useState(localStorage.getItem("timeToIntake")==null?"":localStorage.getItem("timeToIntake")),[Yt,li]=D.useState(localStorage.getItem("droppedHit")==null?"":localStorage.getItem("droppedHit")),[Gt,gr]=D.useState(localStorage.getItem("tripleClimb")==null?"":localStorage.getItem("tripleClimb")),[Wn,vn]=D.useState(localStorage.getItem("comment")==null?"":localStorage.getItem("comment")),[Ys,yn]=D.useState([]),[Xt,Gs]=D.useState(!1);D.useEffect(()=>{localStorage.setItem("teamNumber",e)},[e]),D.useEffect(()=>{localStorage.setItem("matchNumber",n)},[n]),D.useEffect(()=>{localStorage.setItem("scoutName",i)},[i]),D.useEffect(()=>{localStorage.setItem("startingPosition",l)},[l]),D.useEffect(()=>{localStorage.setItem("leaveCommunity",c)},[c]),D.useEffect(()=>{localStorage.setItem("autoConesHigh",g)},[g]),D.useEffect(()=>{localStorage.setItem("autoConesMid",_)},[_]),D.useEffect(()=>{localStorage.setItem("autoConesLow",N)},[N]),D.useEffect(()=>{localStorage.setItem("autoConesMissed",$)},[$]),D.useEffect(()=>{localStorage.setItem("autoCubesHigh",p)},[p]),D.useEffect(()=>{localStorage.setItem("autoCubesMid",S)},[S]),D.useEffect(()=>{localStorage.setItem("autoCubesLow",x)},[x]),D.useEffect(()=>{localStorage.setItem("autoCubesMissed",b)},[b]),D.useEffect(()=>{localStorage.setItem("autoChargingStation",R)},[R]),D.useEffect(()=>{localStorage.setItem("teleConesHigh",q)},[q]),D.useEffect(()=>{localStorage.setItem("teleConesMid",ve)},[ve]),D.useEffect(()=>{localStorage.setItem("teleConesLow",ie)},[ie]),D.useEffect(()=>{localStorage.setItem("teleConesMissed",M)},[M]),D.useEffect(()=>{localStorage.setItem("teleCubesHigh",H)},[H]),D.useEffect(()=>{localStorage.setItem("teleCubesMid",Y)},[Y]),D.useEffect(()=>{localStorage.setItem("teleCubesLow",ce)},[ce]),D.useEffect(()=>{localStorage.setItem("teleCubesMissed",de)},[de]),D.useEffect(()=>{localStorage.setItem("intakeFromFloorCommunity",xe)},[xe]),D.useEffect(()=>{localStorage.setItem("intakeFromFloorNotCommunity",Ut)},[Ut]),D.useEffect(()=>{localStorage.setItem("intakeFromShelf",Pt)},[Pt]),D.useEffect(()=>{localStorage.setItem("intakeFromChute",bt)},[bt]),D.useEffect(()=>{localStorage.setItem("defenseQuantity",_e)},[_e]),D.useEffect(()=>{localStorage.setItem("defenseQuality",ne)},[ne]),D.useEffect(()=>{localStorage.setItem("endgameChargingStation",j)},[j]),D.useEffect(()=>{localStorage.setItem("additionalRobots",at)},[at]),D.useEffect(()=>{localStorage.setItem("speed",Ze)},[Ze]),D.useEffect(()=>{localStorage.setItem("movedBetween",ut)},[ut]),D.useEffect(()=>{localStorage.setItem("droppedCycling",ct)},[ct]),D.useEffect(()=>{localStorage.setItem("timeToIntake",Kt)},[Kt]),D.useEffect(()=>{localStorage.setItem("droppedHit",Yt)},[Yt]),D.useEffect(()=>{localStorage.setItem("tripleClimb",Gt)},[Gt]),D.useEffect(()=>{localStorage.setItem("comment",Wn)},[Wn]);function Xs(){t(""),r(""),o(""),a(""),d(""),E(0),w(0),T(0),v(0),y(0),A(0),L(0),z(0),V(""),Z(0),Be(0),ae(0),B(0),G(0),He(0),ye(0),Pe(0),fn(0),k(0),pn(0),Ve(0),wt(""),Xe(""),be(""),hn(""),mn(""),gn(""),Qt(""),ao(""),li(""),gr(""),vn("")}const ai=[n,e,Wn,!!l,c,parseInt(g),parseInt(_),parseInt(N),parseInt($),parseInt(p),parseInt(S),parseInt(x),parseInt(b),R,parseInt(q),parseInt(ve),parseInt(ve),parseInt(M),parseInt(H),parseInt(Y),parseInt(ce),parseInt(de),parseInt(xe),parseInt(Ut),parseInt(Pt),parseInt(bt),_e,ne,j,at,Ze,ut==""?"":ut,ct==""?"":ct,Kt==""?"":Kt,Yt==""?"":Yt,Gt==""?"":Gt,i];function Zs(){let Q=[];e||Q.push("Team number"),n||Q.push("Match number"),i||Q.push("Scout name"),l||Q.push("Starting position"),c||Q.push("Leave community"),R||Q.push("Auto charging station"),_e||Q.push("Defense quantity"),ne||Q.push("Defense quality"),j||Q.push("Endgame charging station"),at||Q.push("Additional robots"),Ze||Q.push("Slow or Fast"),ut||Q.push("Moved Pieces Between Nodes"),ct||Q.push("Dropped Pieces While Cycling"),Kt||Q.push("Long Time To Intake"),Yt||Q.push("Dropped When Hit"),Gt||Q.push("Triple Climb"),Wn||Q.push("Comment"),yn(Q.length==0?["No missing data!"]:Q)}return D.useEffect(()=>{console.log(ai)},[ai]),D.useLayoutEffect(()=>{window.innerWidth<768&&Gs(!0)},[]),m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"modal fade",id:"exampleModal",tabIndex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true",children:m.jsx("div",{className:"modal-dialog",children:m.jsxs("div",{className:"modal-content",children:[m.jsxs("div",{className:"modal-header",children:[m.jsx("p",{className:"modal-title fs-5",id:"exampleModalLabel",children:"Missing Data"}),m.jsx("button",{type:"button",className:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"})]}),m.jsx("div",{className:"modal-body",children:m.jsx("ul",{children:Ys.filter(Q=>!!Q).map(Q=>m.jsx("li",{children:Q},Q))})})]})})}),m.jsxs("section",{children:[m.jsx("div",{className:"container-fluid bg-secondary py-3 text-center display-5",children:m.jsx("p",{children:"Match info"})}),m.jsxs("div",{className:"container mx-auto my-5 col-sm-4",children:[m.jsx("div",{children:m.jsx("input",{type:"text",placeholder:"Team Number",className:"form-control",onInput:Q=>t(Q.target.value),autoComplete:"false",value:e})}),m.jsx("div",{className:"pt-4",children:m.jsx("input",{type:"text",placeholder:"Match Number",className:"form-control",onInput:Q=>r(Q.target.value),autoComplete:"false",value:n})}),m.jsx("div",{className:"pt-4",children:m.jsx("input",{type:"text",placeholder:"Scout Name",className:"form-control",onInput:Q=>o(Q.target.value),autoComplete:"false",value:i})})]})]}),m.jsxs("section",{children:[m.jsx("div",{className:"container-fluid bg-secondary py-3 text-center display-5",children:m.jsx("p",{children:"Autonomous"})}),m.jsxs("div",{className:"container mx-auto pt-4",children:[m.jsx("div",{className:"text-center",children:m.jsx("img",{src:W1,alt:"Robot positions",className:"img-fluid"})}),m.jsxs("div",{className:"pt-5 row",children:[m.jsxs("div",{className:"col text-center",children:[m.jsx("p",{children:"Starting Position"}),m.jsxs("div",{className:`${Xt?"btn-group-vertical":"btn-group"}`,role:"group",children:[m.jsx("input",{type:"radio",className:"btn-check",name:"startingposition",id:"startingpositionA",onClick:()=>a("A"),checked:l=="A",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"startingpositionA",children:"A"}),m.jsx("input",{type:"radio",className:"btn-check",name:"startingposition",id:"startingpositionB",onClick:()=>a("B"),checked:l=="B",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"startingpositionB",children:"B"}),m.jsx("input",{type:"radio",className:"btn-check",name:"startingposition",id:"startingpositionC",onClick:()=>a("C"),checked:l=="C",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"startingpositionC",children:"C"}),m.jsx("input",{type:"radio",className:"btn-check",name:"startingposition",id:"startingpositionD",onClick:()=>a("D"),checked:l=="D",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"startingpositionD",children:"D"})]})]}),m.jsxs("div",{className:"col text-center",children:[m.jsx("p",{children:"Leave Community?"}),m.jsxs("div",{className:`${Xt?"btn-group-vertical":"btn-group"}`,role:"group",children:[m.jsx("input",{type:"radio",className:"btn-check",name:"leavecommuntiy",id:"leavecommunityyes",onClick:()=>d("true"),checked:c=="true",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"leavecommunityyes",children:"Yes"}),m.jsx("input",{type:"radio",className:"btn-check",name:"leavecommuntiy",id:"leavecommunityno",onClick:()=>d("false"),checked:c=="false",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"leavecommunityno",children:"No"})]})]})]}),m.jsxs("div",{className:"row mt-4",children:[m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cones High",variable:g,setter:E})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cones Mid",variable:_,setter:w})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cones Low",variable:N,setter:T})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cones Missed (while placing high/mid)",variable:$,setter:v})})]}),m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cubes High",variable:p,setter:y})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cubes Mid",variable:S,setter:A})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cubes Low",variable:x,setter:L})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cubes Missed (while placing high/mid)",variable:b,setter:z})})]}),m.jsxs("div",{className:"my-5 text-center",children:[m.jsx("p",{className:"mb-2",children:"Charging Station"}),m.jsxs("div",{className:`${Xt?"btn-group-vertical":"btn-group"}`,role:"group",children:[m.jsx("input",{type:"radio",className:"btn-check",name:"autochargingstation",id:"autochargingstationdocked",onClick:()=>V("Docked"),checked:R=="Docked",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"autochargingstationdocked",children:"Docked"}),m.jsx("input",{type:"radio",className:"btn-check",name:"autochargingstation",id:"autochargingstationengaged",onClick:()=>V("Engaged"),checked:R=="Engaged",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"autochargingstationengaged",children:"Engaged"}),m.jsx("input",{type:"radio",className:"btn-check",name:"autochargingstation",id:"autochargingstationnone",onClick:()=>V("None"),checked:R=="None",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"autochargingstationnone",children:"None"})]})]})]})]}),m.jsxs("section",{children:[m.jsx("div",{className:"container-fluid bg-secondary py-3 text-center display-5",children:m.jsx("p",{children:"Teleoperated"})}),m.jsxs("div",{className:"container mx-auto pt-4",children:[m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cubes High",variable:H,setter:G})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cubes Mid",variable:Y,setter:He})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cubes Low",variable:ce,setter:ye})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cubes Missed",variable:de,setter:Pe})})]}),m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cones High",variable:q,setter:Z})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cones Mid",variable:ve,setter:Be})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cones Low",variable:ie,setter:ae})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cones Missed",variable:M,setter:B})})]}),m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Intake From Floor (Community)",variable:xe,setter:fn})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Intake From Floor (Outside Community)",variable:Ut,setter:k})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Intake From Shelf",variable:Pt,setter:pn})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Intake From Chute",variable:bt,setter:Ve})})]}),m.jsxs("div",{className:"row my-5",children:[m.jsxs("div",{className:"col-sm text-center",children:[m.jsx("p",{children:"Defense Quantity %"}),m.jsxs("div",{className:`${Xt?"btn-group-vertical":"btn-group"}`,role:"group",children:[m.jsx("input",{type:"radio",className:"btn-check",name:"defenseQuantity",id:"defenseQuantity0",onClick:()=>wt("0"),checked:_e=="0",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"defenseQuantity0",children:"0"}),m.jsx("input",{type:"radio",className:"btn-check",name:"defenseQuantity",id:"defenseQuantity25",onClick:()=>wt("25"),checked:_e=="25",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"defenseQuantity25",children:"25"}),m.jsx("input",{type:"radio",className:"btn-check",name:"defenseQuantity",id:"defenseQuantity50",onClick:()=>wt("50"),checked:_e=="50",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"defenseQuantity50",children:"50"}),m.jsx("input",{type:"radio",className:"btn-check",name:"defenseQuantity",id:"defenseQuantity75",onClick:()=>wt("75"),checked:_e=="75",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"defenseQuantity75",children:"75"}),m.jsx("input",{type:"radio",className:"btn-check",name:"defenseQuantity",id:"defenseQuantity100",onClick:()=>wt("100"),checked:_e=="100",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"defenseQuantity100",children:"100"})]})]}),m.jsxs("div",{className:"col-sm text-center",children:[m.jsx("p",{children:"Defense Quality"}),m.jsxs("div",{className:`${Xt?"btn-group-vertical":"btn-group"}`,role:"group",children:[m.jsx("input",{type:"radio",className:"btn-check",name:"defenseQuality",id:"defenseQuality0",onClick:()=>Xe("0"),checked:ne=="0",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"defenseQuality0",children:"0"}),m.jsx("input",{type:"radio",className:"btn-check",name:"defenseQuality",id:"defenseQuality1",onClick:()=>Xe("1"),checked:ne=="1",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"defenseQuality1",children:"1"}),m.jsx("input",{type:"radio",className:"btn-check",name:"defenseQuality",id:"defenseQuality2",onClick:()=>Xe("2"),checked:ne=="2",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"defenseQuality2",children:"2"}),m.jsx("input",{type:"radio",className:"btn-check",name:"defenseQuality",id:"defenseQuality3",onClick:()=>Xe("3"),checked:ne=="3",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"defenseQuality3",children:"3"}),m.jsx("input",{type:"radio",className:"btn-check",name:"defenseQuality",id:"defenseQuality4",onClick:()=>Xe("4"),checked:ne=="4",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"defenseQuality4",children:"4"}),m.jsx("input",{type:"radio",className:"btn-check",name:"defenseQuality",id:"defenseQuality5",onClick:()=>Xe("5"),checked:ne=="5",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"defenseQuantity5",children:"5"})]})]})]})]})]}),m.jsxs("section",{children:[m.jsx("div",{className:"container-fluid bg-secondary py-3 text-center display-5",children:m.jsx("p",{children:"Endgame"})}),m.jsxs("div",{className:"text-center",children:[m.jsx("p",{className:"mb-2 pt-5",children:"Charging Station"}),m.jsxs("div",{className:`${Xt?"btn-group-vertical":"btn-group"}`,role:"group",children:[m.jsx("input",{type:"radio",className:"btn-check",name:"endgameChargingStation",id:"endgameChargingStationdocked",onClick:()=>be("Docked"),checked:j=="Docked",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"endgameChargingStationdocked",children:"Docked"}),m.jsx("input",{type:"radio",className:"btn-check",name:"endgameChargingStation",id:"endgameChargingStationengaged",onClick:()=>be("Engaged"),checked:j=="Engaged",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"endgameChargingStationengaged",children:"Engaged"}),m.jsx("input",{type:"radio",className:"btn-check",name:"endgameChargingStation",id:"endgameChargingStationparked",onClick:()=>be("Parked"),checked:j=="Parked",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"endgameChargingStationparked",children:"Parked"}),m.jsx("input",{type:"radio",className:"btn-check",name:"endgameChargingStation",id:"endgameChargingStationnone",onClick:()=>be("None"),checked:j=="None",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"endgameChargingStationnone",children:"None"})]})]}),m.jsxs("div",{className:"text-center mb-5",children:[m.jsx("p",{className:"mb-2 pt-5",children:"Additional Robots"}),m.jsxs("div",{className:`${Xt?"btn-group-vertical":"btn-group"}`,role:"group",children:[m.jsx("input",{type:"radio",className:"btn-check",name:"additionalRobots",id:"additionalRobots0",onClick:()=>hn("0"),checked:at=="0",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"additionalRobots0",children:"0"}),m.jsx("input",{type:"radio",className:"btn-check",name:"additionalRobots",id:"additionalRobots1",onClick:()=>hn("1"),checked:at=="1",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"additionalRobots1",children:"1"}),m.jsx("input",{type:"radio",className:"btn-check",name:"additionalRobots",id:"additionalRobots2",onClick:()=>hn("2"),checked:at=="2",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"additionalRobots2",children:"2"})]})]})]}),m.jsxs("section",{children:[m.jsx("div",{className:"container-fluid bg-secondary py-3 text-center display-5",children:m.jsx("p",{children:"Export"})}),m.jsx("div",{className:"mt-5 mx-auto text-center",children:m.jsx(S0,{title:"Export QR Code",value:JSON.stringify(ai),bgColor:"white",fgcolor:"black",size:384,style:{border:"20px solid white"}})}),m.jsx("div",{className:"mx-auto text-center mt-3 mb-5",children:m.jsx("button",{className:"btn btn-primary btn-lg",onClick:()=>Zs(),"data-bs-toggle":"modal","data-bs-target":"#exampleModal",children:"Show missing data"})}),m.jsxs("div",{className:"container text-center",children:[m.jsx("p",{className:"h2",children:"The following questions are OPTIONAL fields"}),m.jsx("p",{className:"h3",children:"However, please still fill out the comments box"}),m.jsxs("div",{children:[m.jsxs("div",{className:"row mt-5",children:[m.jsxs("div",{className:"col-sm",children:[m.jsx("p",{className:"mb-2",children:"Slow or Fast"}),m.jsxs("div",{className:"btn-group",role:"group",children:[m.jsx("input",{type:"radio",className:"btn-check",name:"speed",id:"speedSlow",onClick:()=>mn("Slow"),checked:Ze=="Slow",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"speedSlow",children:"Slow"}),m.jsx("input",{type:"radio",className:"btn-check",name:"speed",id:"speedFast",onClick:()=>mn("Fast"),checked:Ze=="Fast",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"speedFast",children:"Fast"})]})]}),m.jsxs("div",{className:"col-sm",children:[m.jsx("p",{className:"mb-2",children:"Moved Pieces Between Nodes?"}),m.jsxs("div",{className:"btn-group",role:"group",children:[m.jsx("input",{type:"radio",className:"btn-check",name:"movedBetween",id:"movedBetweenYes",onClick:()=>gn("true"),checked:ut=="true",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"movedBetweenYes",children:"Yes"}),m.jsx("input",{type:"radio",className:"btn-check",name:"movedBetween",id:"movedBetweenNo",onClick:()=>gn("false"),checked:ut=="false",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"movedBetweenNo",children:"No"})]})]}),m.jsxs("div",{className:"col-sm",children:[m.jsx("p",{className:"mb-2",children:"Dropped Pieces While Cycling?"}),m.jsxs("div",{className:"btn-group",role:"group",children:[m.jsx("input",{type:"radio",className:"btn-check",name:"droppedCycling",id:"droppedCyclingYes",onClick:()=>Qt("true"),checked:ct=="true",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"droppedCyclingYes",children:"Yes"}),m.jsx("input",{type:"radio",className:"btn-check",name:"droppedCycling",id:"droppedCyclingNo",onClick:()=>Qt("false"),checked:ct=="false",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"droppedCyclingNo",children:"No"})]})]})]}),m.jsxs("div",{className:"row mt-5",children:[m.jsxs("div",{className:"col-sm",children:[m.jsx("p",{className:"mb-2",children:"Long Time To Intake?"}),m.jsxs("div",{className:"btn-group",role:"group",children:[m.jsx("input",{type:"radio",className:"btn-check",name:"timeToIntake",id:"timeToIntakeYes",onClick:()=>ao("true"),checked:Kt=="true",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"timeToIntakeYes",children:"Yes"}),m.jsx("input",{type:"radio",className:"btn-check",name:"timeToIntake",id:"timeToIntakeNo",onClick:()=>ao("false"),checked:Kt=="false",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"timeToIntakeNo",children:"No"})]})]}),m.jsxs("div",{className:"col-sm",children:[m.jsx("p",{className:"mb-2",children:"Dropped When Hit?"}),m.jsxs("div",{className:"btn-group",role:"group",children:[m.jsx("input",{type:"radio",className:"btn-check",name:"droppedHit",id:"droppedHitYes",onClick:()=>li("true"),checked:Yt=="true",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"droppedHitYes",children:"Yes"}),m.jsx("input",{type:"radio",className:"btn-check",name:"droppedHit",id:"droppedHitNo",onClick:()=>li("false"),checked:Yt=="false",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"droppedHitNo",children:"No"})]})]}),m.jsxs("div",{className:"col-sm",children:[m.jsx("p",{className:"mb-2",children:"Triple Climb?"}),m.jsxs("div",{className:"btn-group",role:"group",children:[m.jsx("input",{type:"radio",className:"btn-check",name:"tripleClimb",id:"tripleClimbYes",onClick:()=>gr("true"),checked:Gt=="true",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"tripleClimbYes",children:"Yes"}),m.jsx("input",{type:"radio",className:"btn-check",name:"tripleClimb",id:"tripleClimbNo",onClick:()=>gr("false"),checked:Gt=="false",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"tripleClimbNo",children:"No"})]})]})]})]}),m.jsxs("div",{className:"mt-5",children:[m.jsx("p",{className:"mb-1 h4",children:"Comment"}),m.jsx("p",{children:"i.e if they can intake from the grid, did they score many links, etc. etc."}),m.jsx("textarea",{name:"",id:"",cols:"30",rows:"5",className:"form-control",placeholder:"Comment",onChange:Q=>vn(Q.target.value),value:Wn})]})]})]}),m.jsx("section",{className:"mt-5",children:m.jsx("button",{className:"btn btn-success container-fluid py-5",onClick:Xs,children:m.jsx("span",{className:"display-4 text-white",children:"Clear"})})})]})}jl.createRoot(document.getElementById("root")).render(m.jsx(Py.StrictMode,{children:m.jsx(fE,{})})); + */(function(e,t){(function(n,r){e.exports=r(cE)})(my,function(n){function r(f){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(f){for(const u in f)if(u!=="default"){const h=Object.getOwnPropertyDescriptor(f,u);Object.defineProperty(s,u,h.get?h:{enumerable:!0,get:()=>f[u]})}}return s.default=f,Object.freeze(s)}const i=r(n),o=new Map,l={set(f,s,u){o.has(f)||o.set(f,new Map);const h=o.get(f);if(!h.has(s)&&h.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(h.keys())[0]}.`);return}h.set(s,u)},get(f,s){return o.has(f)&&o.get(f).get(s)||null},remove(f,s){if(!o.has(f))return;const u=o.get(f);u.delete(s),u.size===0&&o.delete(f)}},a=1e6,c=1e3,d="transitionend",g=f=>(f&&window.CSS&&window.CSS.escape&&(f=f.replace(/#([^\s"#']+)/g,(s,u)=>`#${CSS.escape(u)}`)),f),E=f=>f==null?`${f}`:Object.prototype.toString.call(f).match(/\s([a-z]+)/i)[1].toLowerCase(),_=f=>{do f+=Math.floor(Math.random()*a);while(document.getElementById(f));return f},w=f=>{if(!f)return 0;let{transitionDuration:s,transitionDelay:u}=window.getComputedStyle(f);const h=Number.parseFloat(s),C=Number.parseFloat(u);return!h&&!C?0:(s=s.split(",")[0],u=u.split(",")[0],(Number.parseFloat(s)+Number.parseFloat(u))*c)},N=f=>{f.dispatchEvent(new Event(d))},T=f=>!f||typeof f!="object"?!1:(typeof f.jquery<"u"&&(f=f[0]),typeof f.nodeType<"u"),$=f=>T(f)?f.jquery?f[0]:f:typeof f=="string"&&f.length>0?document.querySelector(g(f)):null,v=f=>{if(!T(f)||f.getClientRects().length===0)return!1;const s=getComputedStyle(f).getPropertyValue("visibility")==="visible",u=f.closest("details:not([open])");if(!u)return s;if(u!==f){const h=f.closest("summary");if(h&&h.parentNode!==u||h===null)return!1}return s},p=f=>!f||f.nodeType!==Node.ELEMENT_NODE||f.classList.contains("disabled")?!0:typeof f.disabled<"u"?f.disabled:f.hasAttribute("disabled")&&f.getAttribute("disabled")!=="false",y=f=>{if(!document.documentElement.attachShadow)return null;if(typeof f.getRootNode=="function"){const s=f.getRootNode();return s instanceof ShadowRoot?s:null}return f instanceof ShadowRoot?f:f.parentNode?y(f.parentNode):null},S=()=>{},A=f=>{f.offsetHeight},x=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,L=[],b=f=>{document.readyState==="loading"?(L.length||document.addEventListener("DOMContentLoaded",()=>{for(const s of L)s()}),L.push(f)):f()},z=()=>document.documentElement.dir==="rtl",R=f=>{b(()=>{const s=x();if(s){const u=f.NAME,h=s.fn[u];s.fn[u]=f.jQueryInterface,s.fn[u].Constructor=f,s.fn[u].noConflict=()=>(s.fn[u]=h,f.jQueryInterface)}})},V=(f,s=[],u=f)=>typeof f=="function"?f(...s):u,q=(f,s,u=!0)=>{if(!u){V(f);return}const h=5,C=w(s)+h;let P=!1;const I=({target:W})=>{W===s&&(P=!0,s.removeEventListener(d,I),V(f))};s.addEventListener(d,I),setTimeout(()=>{P||N(s)},C)},Z=(f,s,u,h)=>{const C=f.length;let P=f.indexOf(s);return P===-1?!u&&h?f[C-1]:f[0]:(P+=u?1:-1,h&&(P=(P+C)%C),f[Math.max(0,Math.min(P,C-1))])},ve=/[^.]*(?=\..*)\.|.*/,Be=/\..*/,ie=/::\d+$/,ae={};let M=1;const B={mouseenter:"mouseover",mouseleave:"mouseout"},H=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 G(f,s){return s&&`${s}::${M++}`||f.uidEvent||M++}function Y(f){const s=G(f);return f.uidEvent=s,ae[s]=ae[s]||{},ae[s]}function He(f,s){return function u(h){return Pt(h,{delegateTarget:f}),u.oneOff&&k.off(f,h.type,s),s.apply(f,[h])}}function ce(f,s,u){return function h(C){const P=f.querySelectorAll(s);for(let{target:I}=C;I&&I!==this;I=I.parentNode)for(const W of P)if(W===I)return Pt(C,{delegateTarget:I}),h.oneOff&&k.off(f,C.type,s,u),u.apply(I,[C])}}function ye(f,s,u=null){return Object.values(f).find(h=>h.callable===s&&h.delegationSelector===u)}function de(f,s,u){const h=typeof s=="string",C=h?u:s||u;let P=Ut(f);return H.has(P)||(P=f),[h,C,P]}function Pe(f,s,u,h,C){if(typeof s!="string"||!f)return;let[P,I,W]=de(s,u,h);s in B&&(I=(hy=>function(Tr){if(!Tr.relatedTarget||Tr.relatedTarget!==Tr.delegateTarget&&!Tr.delegateTarget.contains(Tr.relatedTarget))return hy.call(this,Tr)})(I));const We=Y(f),ft=We[W]||(We[W]={}),Ee=ye(ft,I,P?u:null);if(Ee){Ee.oneOff=Ee.oneOff&&C;return}const Mt=G(I,s.replace(ve,"")),Tt=P?ce(f,u,I):He(f,I);Tt.delegationSelector=P?u:null,Tt.callable=I,Tt.oneOff=C,Tt.uidEvent=Mt,ft[Mt]=Tt,f.addEventListener(W,Tt,P)}function xe(f,s,u,h,C){const P=ye(s[u],h,C);P&&(f.removeEventListener(u,P,!!C),delete s[u][P.uidEvent])}function fn(f,s,u,h){const C=s[u]||{};for(const[P,I]of Object.entries(C))P.includes(h)&&xe(f,s,u,I.callable,I.delegationSelector)}function Ut(f){return f=f.replace(Be,""),B[f]||f}const k={on(f,s,u,h){Pe(f,s,u,h,!1)},one(f,s,u,h){Pe(f,s,u,h,!0)},off(f,s,u,h){if(typeof s!="string"||!f)return;const[C,P,I]=de(s,u,h),W=I!==s,We=Y(f),ft=We[I]||{},Ee=s.startsWith(".");if(typeof P<"u"){if(!Object.keys(ft).length)return;xe(f,We,I,P,C?u:null);return}if(Ee)for(const Mt of Object.keys(We))fn(f,We,Mt,s.slice(1));for(const[Mt,Tt]of Object.entries(ft)){const So=Mt.replace(ie,"");(!W||s.includes(So))&&xe(f,We,I,Tt.callable,Tt.delegationSelector)}},trigger(f,s,u){if(typeof s!="string"||!f)return null;const h=x(),C=Ut(s),P=s!==C;let I=null,W=!0,We=!0,ft=!1;P&&h&&(I=h.Event(s,u),h(f).trigger(I),W=!I.isPropagationStopped(),We=!I.isImmediatePropagationStopped(),ft=I.isDefaultPrevented());const Ee=Pt(new Event(s,{bubbles:W,cancelable:!0}),u);return ft&&Ee.preventDefault(),We&&f.dispatchEvent(Ee),Ee.defaultPrevented&&I&&I.preventDefault(),Ee}};function Pt(f,s={}){for(const[u,h]of Object.entries(s))try{f[u]=h}catch{Object.defineProperty(f,u,{configurable:!0,get(){return h}})}return f}function pn(f){if(f==="true")return!0;if(f==="false")return!1;if(f===Number(f).toString())return Number(f);if(f===""||f==="null")return null;if(typeof f!="string")return f;try{return JSON.parse(decodeURIComponent(f))}catch{return f}}function bt(f){return f.replace(/[A-Z]/g,s=>`-${s.toLowerCase()}`)}const Ve={setDataAttribute(f,s,u){f.setAttribute(`data-bs-${bt(s)}`,u)},removeDataAttribute(f,s){f.removeAttribute(`data-bs-${bt(s)}`)},getDataAttributes(f){if(!f)return{};const s={},u=Object.keys(f.dataset).filter(h=>h.startsWith("bs")&&!h.startsWith("bsConfig"));for(const h of u){let C=h.replace(/^bs/,"");C=C.charAt(0).toLowerCase()+C.slice(1,C.length),s[C]=pn(f.dataset[h])}return s},getDataAttribute(f,s){return pn(f.getAttribute(`data-bs-${bt(s)}`))}};class _e{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(s){return s=this._mergeConfigObj(s),s=this._configAfterMerge(s),this._typeCheckConfig(s),s}_configAfterMerge(s){return s}_mergeConfigObj(s,u){const h=T(u)?Ve.getDataAttribute(u,"config"):{};return{...this.constructor.Default,...typeof h=="object"?h:{},...T(u)?Ve.getDataAttributes(u):{},...typeof s=="object"?s:{}}}_typeCheckConfig(s,u=this.constructor.DefaultType){for(const[h,C]of Object.entries(u)){const P=s[h],I=T(P)?"element":E(P);if(!new RegExp(C).test(I))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${h}" provided type "${I}" but expected type "${C}".`)}}}const wt="5.3.2";class ne extends _e{constructor(s,u){super(),s=$(s),s&&(this._element=s,this._config=this._getConfig(u),l.set(this._element,this.constructor.DATA_KEY,this))}dispose(){l.remove(this._element,this.constructor.DATA_KEY),k.off(this._element,this.constructor.EVENT_KEY);for(const s of Object.getOwnPropertyNames(this))this[s]=null}_queueCallback(s,u,h=!0){q(s,u,h)}_getConfig(s){return s=this._mergeConfigObj(s,this._element),s=this._configAfterMerge(s),this._typeCheckConfig(s),s}static getInstance(s){return l.get($(s),this.DATA_KEY)}static getOrCreateInstance(s,u={}){return this.getInstance(s)||new this(s,typeof u=="object"?u:null)}static get VERSION(){return wt}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(s){return`${s}${this.EVENT_KEY}`}}const Xe=f=>{let s=f.getAttribute("data-bs-target");if(!s||s==="#"){let u=f.getAttribute("href");if(!u||!u.includes("#")&&!u.startsWith("."))return null;u.includes("#")&&!u.startsWith("#")&&(u=`#${u.split("#")[1]}`),s=u&&u!=="#"?g(u.trim()):null}return s},j={find(f,s=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(s,f))},findOne(f,s=document.documentElement){return Element.prototype.querySelector.call(s,f)},children(f,s){return[].concat(...f.children).filter(u=>u.matches(s))},parents(f,s){const u=[];let h=f.parentNode.closest(s);for(;h;)u.push(h),h=h.parentNode.closest(s);return u},prev(f,s){let u=f.previousElementSibling;for(;u;){if(u.matches(s))return[u];u=u.previousElementSibling}return[]},next(f,s){let u=f.nextElementSibling;for(;u;){if(u.matches(s))return[u];u=u.nextElementSibling}return[]},focusableChildren(f){const s=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(u=>`${u}:not([tabindex^="-"])`).join(",");return this.find(s,f).filter(u=>!p(u)&&v(u))},getSelectorFromElement(f){const s=Xe(f);return s&&j.findOne(s)?s:null},getElementFromSelector(f){const s=Xe(f);return s?j.findOne(s):null},getMultipleElementsFromSelector(f){const s=Xe(f);return s?j.find(s):[]}},be=(f,s="hide")=>{const u=`click.dismiss${f.EVENT_KEY}`,h=f.NAME;k.on(document,u,`[data-bs-dismiss="${h}"]`,function(C){if(["A","AREA"].includes(this.tagName)&&C.preventDefault(),p(this))return;const P=j.getElementFromSelector(this)||this.closest(`.${h}`);f.getOrCreateInstance(P)[s]()})},at="alert",Ze=".bs.alert",mn=`close${Ze}`,ut=`closed${Ze}`,gn="fade",ct="show";class Qt extends ne{static get NAME(){return at}close(){if(k.trigger(this._element,mn).defaultPrevented)return;this._element.classList.remove(ct);const u=this._element.classList.contains(gn);this._queueCallback(()=>this._destroyElement(),this._element,u)}_destroyElement(){this._element.remove(),k.trigger(this._element,ut),this.dispose()}static jQueryInterface(s){return this.each(function(){const u=Qt.getOrCreateInstance(this);if(typeof s=="string"){if(u[s]===void 0||s.startsWith("_")||s==="constructor")throw new TypeError(`No method named "${s}"`);u[s](this)}})}}be(Qt,"close"),R(Qt);const Kt="button",Yt=".bs.button",li=".data-api",Gt="active",gr='[data-bs-toggle="button"]',Wn=`click${Yt}${li}`;class vn extends ne{static get NAME(){return Kt}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Gt))}static jQueryInterface(s){return this.each(function(){const u=vn.getOrCreateInstance(this);s==="toggle"&&u[s]()})}}k.on(document,Wn,gr,f=>{f.preventDefault();const s=f.target.closest(gr);vn.getOrCreateInstance(s).toggle()}),R(vn);const Ys="swipe",yn=".bs.swipe",Xt=`touchstart${yn}`,Gs=`touchmove${yn}`,Xs=`touchend${yn}`,ai=`pointerdown${yn}`,Zs=`pointerup${yn}`,Q="touch",Uh="pen",Qh="pointer-event",Kh=40,Yh={endCallback:null,leftCallback:null,rightCallback:null},Gh={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class uo extends _e{constructor(s,u){super(),this._element=s,!(!s||!uo.isSupported())&&(this._config=this._getConfig(u),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Yh}static get DefaultType(){return Gh}static get NAME(){return Ys}dispose(){k.off(this._element,yn)}_start(s){if(!this._supportPointerEvents){this._deltaX=s.touches[0].clientX;return}this._eventIsPointerPenTouch(s)&&(this._deltaX=s.clientX)}_end(s){this._eventIsPointerPenTouch(s)&&(this._deltaX=s.clientX-this._deltaX),this._handleSwipe(),V(this._config.endCallback)}_move(s){this._deltaX=s.touches&&s.touches.length>1?0:s.touches[0].clientX-this._deltaX}_handleSwipe(){const s=Math.abs(this._deltaX);if(s<=Kh)return;const u=s/this._deltaX;this._deltaX=0,u&&V(u>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(k.on(this._element,ai,s=>this._start(s)),k.on(this._element,Zs,s=>this._end(s)),this._element.classList.add(Qh)):(k.on(this._element,Xt,s=>this._start(s)),k.on(this._element,Gs,s=>this._move(s)),k.on(this._element,Xs,s=>this._end(s)))}_eventIsPointerPenTouch(s){return this._supportPointerEvents&&(s.pointerType===Uh||s.pointerType===Q)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Xh="carousel",_n=".bs.carousel",Bu=".data-api",Zh="ArrowLeft",Jh="ArrowRight",qh=500,ui="next",vr="prev",yr="left",co="right",em=`slide${_n}`,Js=`slid${_n}`,tm=`keydown${_n}`,nm=`mouseenter${_n}`,rm=`mouseleave${_n}`,im=`dragstart${_n}`,om=`load${_n}${Bu}`,sm=`click${_n}${Bu}`,Hu="carousel",fo="active",lm="slide",am="carousel-item-end",um="carousel-item-start",cm="carousel-item-next",dm="carousel-item-prev",Vu=".active",Wu=".carousel-item",fm=Vu+Wu,pm=".carousel-item img",hm=".carousel-indicators",mm="[data-bs-slide], [data-bs-slide-to]",gm='[data-bs-ride="carousel"]',vm={[Zh]:co,[Jh]:yr},ym={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},_m={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class _r extends ne{constructor(s,u){super(s,u),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=j.findOne(hm,this._element),this._addEventListeners(),this._config.ride===Hu&&this.cycle()}static get Default(){return ym}static get DefaultType(){return _m}static get NAME(){return Xh}next(){this._slide(ui)}nextWhenVisible(){!document.hidden&&v(this._element)&&this.next()}prev(){this._slide(vr)}pause(){this._isSliding&&N(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){k.one(this._element,Js,()=>this.cycle());return}this.cycle()}}to(s){const u=this._getItems();if(s>u.length-1||s<0)return;if(this._isSliding){k.one(this._element,Js,()=>this.to(s));return}const h=this._getItemIndex(this._getActive());if(h===s)return;const C=s>h?ui:vr;this._slide(C,u[s])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(s){return s.defaultInterval=s.interval,s}_addEventListeners(){this._config.keyboard&&k.on(this._element,tm,s=>this._keydown(s)),this._config.pause==="hover"&&(k.on(this._element,nm,()=>this.pause()),k.on(this._element,rm,()=>this._maybeEnableCycle())),this._config.touch&&uo.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const h of j.find(pm,this._element))k.on(h,im,C=>C.preventDefault());const u={leftCallback:()=>this._slide(this._directionToOrder(yr)),rightCallback:()=>this._slide(this._directionToOrder(co)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),qh+this._config.interval))}};this._swipeHelper=new uo(this._element,u)}_keydown(s){if(/input|textarea/i.test(s.target.tagName))return;const u=vm[s.key];u&&(s.preventDefault(),this._slide(this._directionToOrder(u)))}_getItemIndex(s){return this._getItems().indexOf(s)}_setActiveIndicatorElement(s){if(!this._indicatorsElement)return;const u=j.findOne(Vu,this._indicatorsElement);u.classList.remove(fo),u.removeAttribute("aria-current");const h=j.findOne(`[data-bs-slide-to="${s}"]`,this._indicatorsElement);h&&(h.classList.add(fo),h.setAttribute("aria-current","true"))}_updateInterval(){const s=this._activeElement||this._getActive();if(!s)return;const u=Number.parseInt(s.getAttribute("data-bs-interval"),10);this._config.interval=u||this._config.defaultInterval}_slide(s,u=null){if(this._isSliding)return;const h=this._getActive(),C=s===ui,P=u||Z(this._getItems(),h,C,this._config.wrap);if(P===h)return;const I=this._getItemIndex(P),W=So=>k.trigger(this._element,So,{relatedTarget:P,direction:this._orderToDirection(s),from:this._getItemIndex(h),to:I});if(W(em).defaultPrevented||!h||!P)return;const ft=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(I),this._activeElement=P;const Ee=C?um:am,Mt=C?cm:dm;P.classList.add(Mt),A(P),h.classList.add(Ee),P.classList.add(Ee);const Tt=()=>{P.classList.remove(Ee,Mt),P.classList.add(fo),h.classList.remove(fo,Mt,Ee),this._isSliding=!1,W(Js)};this._queueCallback(Tt,h,this._isAnimated()),ft&&this.cycle()}_isAnimated(){return this._element.classList.contains(lm)}_getActive(){return j.findOne(fm,this._element)}_getItems(){return j.find(Wu,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(s){return z()?s===yr?vr:ui:s===yr?ui:vr}_orderToDirection(s){return z()?s===vr?yr:co:s===vr?co:yr}static jQueryInterface(s){return this.each(function(){const u=_r.getOrCreateInstance(this,s);if(typeof s=="number"){u.to(s);return}if(typeof s=="string"){if(u[s]===void 0||s.startsWith("_")||s==="constructor")throw new TypeError(`No method named "${s}"`);u[s]()}})}}k.on(document,sm,mm,function(f){const s=j.getElementFromSelector(this);if(!s||!s.classList.contains(Hu))return;f.preventDefault();const u=_r.getOrCreateInstance(s),h=this.getAttribute("data-bs-slide-to");if(h){u.to(h),u._maybeEnableCycle();return}if(Ve.getDataAttribute(this,"slide")==="next"){u.next(),u._maybeEnableCycle();return}u.prev(),u._maybeEnableCycle()}),k.on(window,om,()=>{const f=j.find(gm);for(const s of f)_r.getOrCreateInstance(s)}),R(_r);const Em="collapse",ci=".bs.collapse",Sm=".data-api",wm=`show${ci}`,Cm=`shown${ci}`,Tm=`hide${ci}`,Nm=`hidden${ci}`,km=`click${ci}${Sm}`,qs="show",Er="collapse",po="collapsing",Am="collapsed",xm=`:scope .${Er} .${Er}`,Om="collapse-horizontal",Lm="width",Im="height",Dm=".collapse.show, .collapse.collapsing",el='[data-bs-toggle="collapse"]',Pm={parent:null,toggle:!0},bm={parent:"(null|element)",toggle:"boolean"};class Sr extends ne{constructor(s,u){super(s,u),this._isTransitioning=!1,this._triggerArray=[];const h=j.find(el);for(const C of h){const P=j.getSelectorFromElement(C),I=j.find(P).filter(W=>W===this._element);P!==null&&I.length&&this._triggerArray.push(C)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Pm}static get DefaultType(){return bm}static get NAME(){return Em}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let s=[];if(this._config.parent&&(s=this._getFirstLevelChildren(Dm).filter(W=>W!==this._element).map(W=>Sr.getOrCreateInstance(W,{toggle:!1}))),s.length&&s[0]._isTransitioning||k.trigger(this._element,wm).defaultPrevented)return;for(const W of s)W.hide();const h=this._getDimension();this._element.classList.remove(Er),this._element.classList.add(po),this._element.style[h]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const C=()=>{this._isTransitioning=!1,this._element.classList.remove(po),this._element.classList.add(Er,qs),this._element.style[h]="",k.trigger(this._element,Cm)},I=`scroll${h[0].toUpperCase()+h.slice(1)}`;this._queueCallback(C,this._element,!0),this._element.style[h]=`${this._element[I]}px`}hide(){if(this._isTransitioning||!this._isShown()||k.trigger(this._element,Tm).defaultPrevented)return;const u=this._getDimension();this._element.style[u]=`${this._element.getBoundingClientRect()[u]}px`,A(this._element),this._element.classList.add(po),this._element.classList.remove(Er,qs);for(const C of this._triggerArray){const P=j.getElementFromSelector(C);P&&!this._isShown(P)&&this._addAriaAndCollapsedClass([C],!1)}this._isTransitioning=!0;const h=()=>{this._isTransitioning=!1,this._element.classList.remove(po),this._element.classList.add(Er),k.trigger(this._element,Nm)};this._element.style[u]="",this._queueCallback(h,this._element,!0)}_isShown(s=this._element){return s.classList.contains(qs)}_configAfterMerge(s){return s.toggle=!!s.toggle,s.parent=$(s.parent),s}_getDimension(){return this._element.classList.contains(Om)?Lm:Im}_initializeChildren(){if(!this._config.parent)return;const s=this._getFirstLevelChildren(el);for(const u of s){const h=j.getElementFromSelector(u);h&&this._addAriaAndCollapsedClass([u],this._isShown(h))}}_getFirstLevelChildren(s){const u=j.find(xm,this._config.parent);return j.find(s,this._config.parent).filter(h=>!u.includes(h))}_addAriaAndCollapsedClass(s,u){if(s.length)for(const h of s)h.classList.toggle(Am,!u),h.setAttribute("aria-expanded",u)}static jQueryInterface(s){const u={};return typeof s=="string"&&/show|hide/.test(s)&&(u.toggle=!1),this.each(function(){const h=Sr.getOrCreateInstance(this,u);if(typeof s=="string"){if(typeof h[s]>"u")throw new TypeError(`No method named "${s}"`);h[s]()}})}}k.on(document,km,el,function(f){(f.target.tagName==="A"||f.delegateTarget&&f.delegateTarget.tagName==="A")&&f.preventDefault();for(const s of j.getMultipleElementsFromSelector(this))Sr.getOrCreateInstance(s,{toggle:!1}).toggle()}),R(Sr);const Uu="dropdown",Un=".bs.dropdown",tl=".data-api",Mm="Escape",Qu="Tab",Rm="ArrowUp",Ku="ArrowDown",$m=2,jm=`hide${Un}`,Fm=`hidden${Un}`,zm=`show${Un}`,Bm=`shown${Un}`,Yu=`click${Un}${tl}`,Gu=`keydown${Un}${tl}`,Hm=`keyup${Un}${tl}`,wr="show",Vm="dropup",Wm="dropend",Um="dropstart",Qm="dropup-center",Km="dropdown-center",Qn='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ym=`${Qn}.${wr}`,ho=".dropdown-menu",Gm=".navbar",Xm=".navbar-nav",Zm=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Jm=z()?"top-end":"top-start",qm=z()?"top-start":"top-end",eg=z()?"bottom-end":"bottom-start",tg=z()?"bottom-start":"bottom-end",ng=z()?"left-start":"right-start",rg=z()?"right-start":"left-start",ig="top",og="bottom",sg={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},lg={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Ct extends ne{constructor(s,u){super(s,u),this._popper=null,this._parent=this._element.parentNode,this._menu=j.next(this._element,ho)[0]||j.prev(this._element,ho)[0]||j.findOne(ho,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return sg}static get DefaultType(){return lg}static get NAME(){return Uu}toggle(){return this._isShown()?this.hide():this.show()}show(){if(p(this._element)||this._isShown())return;const s={relatedTarget:this._element};if(!k.trigger(this._element,zm,s).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Xm))for(const h of[].concat(...document.body.children))k.on(h,"mouseover",S);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(wr),this._element.classList.add(wr),k.trigger(this._element,Bm,s)}}hide(){if(p(this._element)||!this._isShown())return;const s={relatedTarget:this._element};this._completeHide(s)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(s){if(!k.trigger(this._element,jm,s).defaultPrevented){if("ontouchstart"in document.documentElement)for(const h of[].concat(...document.body.children))k.off(h,"mouseover",S);this._popper&&this._popper.destroy(),this._menu.classList.remove(wr),this._element.classList.remove(wr),this._element.setAttribute("aria-expanded","false"),Ve.removeDataAttribute(this._menu,"popper"),k.trigger(this._element,Fm,s)}}_getConfig(s){if(s=super._getConfig(s),typeof s.reference=="object"&&!T(s.reference)&&typeof s.reference.getBoundingClientRect!="function")throw new TypeError(`${Uu.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return s}_createPopper(){if(typeof i>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let s=this._element;this._config.reference==="parent"?s=this._parent:T(this._config.reference)?s=$(this._config.reference):typeof this._config.reference=="object"&&(s=this._config.reference);const u=this._getPopperConfig();this._popper=i.createPopper(s,this._menu,u)}_isShown(){return this._menu.classList.contains(wr)}_getPlacement(){const s=this._parent;if(s.classList.contains(Wm))return ng;if(s.classList.contains(Um))return rg;if(s.classList.contains(Qm))return ig;if(s.classList.contains(Km))return og;const u=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return s.classList.contains(Vm)?u?qm:Jm:u?tg:eg}_detectNavbar(){return this._element.closest(Gm)!==null}_getOffset(){const{offset:s}=this._config;return typeof s=="string"?s.split(",").map(u=>Number.parseInt(u,10)):typeof s=="function"?u=>s(u,this._element):s}_getPopperConfig(){const s={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Ve.setDataAttribute(this._menu,"popper","static"),s.modifiers=[{name:"applyStyles",enabled:!1}]),{...s,...V(this._config.popperConfig,[s])}}_selectMenuItem({key:s,target:u}){const h=j.find(Zm,this._menu).filter(C=>v(C));h.length&&Z(h,u,s===Ku,!h.includes(u)).focus()}static jQueryInterface(s){return this.each(function(){const u=Ct.getOrCreateInstance(this,s);if(typeof s=="string"){if(typeof u[s]>"u")throw new TypeError(`No method named "${s}"`);u[s]()}})}static clearMenus(s){if(s.button===$m||s.type==="keyup"&&s.key!==Qu)return;const u=j.find(Ym);for(const h of u){const C=Ct.getInstance(h);if(!C||C._config.autoClose===!1)continue;const P=s.composedPath(),I=P.includes(C._menu);if(P.includes(C._element)||C._config.autoClose==="inside"&&!I||C._config.autoClose==="outside"&&I||C._menu.contains(s.target)&&(s.type==="keyup"&&s.key===Qu||/input|select|option|textarea|form/i.test(s.target.tagName)))continue;const W={relatedTarget:C._element};s.type==="click"&&(W.clickEvent=s),C._completeHide(W)}}static dataApiKeydownHandler(s){const u=/input|textarea/i.test(s.target.tagName),h=s.key===Mm,C=[Rm,Ku].includes(s.key);if(!C&&!h||u&&!h)return;s.preventDefault();const P=this.matches(Qn)?this:j.prev(this,Qn)[0]||j.next(this,Qn)[0]||j.findOne(Qn,s.delegateTarget.parentNode),I=Ct.getOrCreateInstance(P);if(C){s.stopPropagation(),I.show(),I._selectMenuItem(s);return}I._isShown()&&(s.stopPropagation(),I.hide(),P.focus())}}k.on(document,Gu,Qn,Ct.dataApiKeydownHandler),k.on(document,Gu,ho,Ct.dataApiKeydownHandler),k.on(document,Yu,Ct.clearMenus),k.on(document,Hm,Ct.clearMenus),k.on(document,Yu,Qn,function(f){f.preventDefault(),Ct.getOrCreateInstance(this).toggle()}),R(Ct);const Xu="backdrop",ag="fade",Zu="show",Ju=`mousedown.bs.${Xu}`,ug={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},cg={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class qu extends _e{constructor(s){super(),this._config=this._getConfig(s),this._isAppended=!1,this._element=null}static get Default(){return ug}static get DefaultType(){return cg}static get NAME(){return Xu}show(s){if(!this._config.isVisible){V(s);return}this._append();const u=this._getElement();this._config.isAnimated&&A(u),u.classList.add(Zu),this._emulateAnimation(()=>{V(s)})}hide(s){if(!this._config.isVisible){V(s);return}this._getElement().classList.remove(Zu),this._emulateAnimation(()=>{this.dispose(),V(s)})}dispose(){this._isAppended&&(k.off(this._element,Ju),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const s=document.createElement("div");s.className=this._config.className,this._config.isAnimated&&s.classList.add(ag),this._element=s}return this._element}_configAfterMerge(s){return s.rootElement=$(s.rootElement),s}_append(){if(this._isAppended)return;const s=this._getElement();this._config.rootElement.append(s),k.on(s,Ju,()=>{V(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(s){q(s,this._getElement(),this._config.isAnimated)}}const dg="focustrap",mo=".bs.focustrap",fg=`focusin${mo}`,pg=`keydown.tab${mo}`,hg="Tab",mg="forward",ec="backward",gg={autofocus:!0,trapElement:null},vg={autofocus:"boolean",trapElement:"element"};class tc extends _e{constructor(s){super(),this._config=this._getConfig(s),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return gg}static get DefaultType(){return vg}static get NAME(){return dg}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),k.off(document,mo),k.on(document,fg,s=>this._handleFocusin(s)),k.on(document,pg,s=>this._handleKeydown(s)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,k.off(document,mo))}_handleFocusin(s){const{trapElement:u}=this._config;if(s.target===document||s.target===u||u.contains(s.target))return;const h=j.focusableChildren(u);h.length===0?u.focus():this._lastTabNavDirection===ec?h[h.length-1].focus():h[0].focus()}_handleKeydown(s){s.key===hg&&(this._lastTabNavDirection=s.shiftKey?ec:mg)}}const nc=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",rc=".sticky-top",go="padding-right",ic="margin-right";class nl{constructor(){this._element=document.body}getWidth(){const s=document.documentElement.clientWidth;return Math.abs(window.innerWidth-s)}hide(){const s=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,go,u=>u+s),this._setElementAttributes(nc,go,u=>u+s),this._setElementAttributes(rc,ic,u=>u-s)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,go),this._resetElementAttributes(nc,go),this._resetElementAttributes(rc,ic)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(s,u,h){const C=this.getWidth(),P=I=>{if(I!==this._element&&window.innerWidth>I.clientWidth+C)return;this._saveInitialAttribute(I,u);const W=window.getComputedStyle(I).getPropertyValue(u);I.style.setProperty(u,`${h(Number.parseFloat(W))}px`)};this._applyManipulationCallback(s,P)}_saveInitialAttribute(s,u){const h=s.style.getPropertyValue(u);h&&Ve.setDataAttribute(s,u,h)}_resetElementAttributes(s,u){const h=C=>{const P=Ve.getDataAttribute(C,u);if(P===null){C.style.removeProperty(u);return}Ve.removeDataAttribute(C,u),C.style.setProperty(u,P)};this._applyManipulationCallback(s,h)}_applyManipulationCallback(s,u){if(T(s)){u(s);return}for(const h of j.find(s,this._element))u(h)}}const yg="modal",dt=".bs.modal",_g=".data-api",Eg="Escape",Sg=`hide${dt}`,wg=`hidePrevented${dt}`,oc=`hidden${dt}`,sc=`show${dt}`,Cg=`shown${dt}`,Tg=`resize${dt}`,Ng=`click.dismiss${dt}`,kg=`mousedown.dismiss${dt}`,Ag=`keydown.dismiss${dt}`,xg=`click${dt}${_g}`,lc="modal-open",Og="fade",ac="show",rl="modal-static",Lg=".modal.show",Ig=".modal-dialog",Dg=".modal-body",Pg='[data-bs-toggle="modal"]',bg={backdrop:!0,focus:!0,keyboard:!0},Mg={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Kn extends ne{constructor(s,u){super(s,u),this._dialog=j.findOne(Ig,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new nl,this._addEventListeners()}static get Default(){return bg}static get DefaultType(){return Mg}static get NAME(){return yg}toggle(s){return this._isShown?this.hide():this.show(s)}show(s){this._isShown||this._isTransitioning||k.trigger(this._element,sc,{relatedTarget:s}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(lc),this._adjustDialog(),this._backdrop.show(()=>this._showElement(s)))}hide(){!this._isShown||this._isTransitioning||k.trigger(this._element,Sg).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(ac),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){k.off(window,dt),k.off(this._dialog,dt),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new qu({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new tc({trapElement:this._element})}_showElement(s){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 u=j.findOne(Dg,this._dialog);u&&(u.scrollTop=0),A(this._element),this._element.classList.add(ac);const h=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,k.trigger(this._element,Cg,{relatedTarget:s})};this._queueCallback(h,this._dialog,this._isAnimated())}_addEventListeners(){k.on(this._element,Ag,s=>{if(s.key===Eg){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),k.on(window,Tg,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),k.on(this._element,kg,s=>{k.one(this._element,Ng,u=>{if(!(this._element!==s.target||this._element!==u.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_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(lc),this._resetAdjustments(),this._scrollBar.reset(),k.trigger(this._element,oc)})}_isAnimated(){return this._element.classList.contains(Og)}_triggerBackdropTransition(){if(k.trigger(this._element,wg).defaultPrevented)return;const u=this._element.scrollHeight>document.documentElement.clientHeight,h=this._element.style.overflowY;h==="hidden"||this._element.classList.contains(rl)||(u||(this._element.style.overflowY="hidden"),this._element.classList.add(rl),this._queueCallback(()=>{this._element.classList.remove(rl),this._queueCallback(()=>{this._element.style.overflowY=h},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const s=this._element.scrollHeight>document.documentElement.clientHeight,u=this._scrollBar.getWidth(),h=u>0;if(h&&!s){const C=z()?"paddingLeft":"paddingRight";this._element.style[C]=`${u}px`}if(!h&&s){const C=z()?"paddingRight":"paddingLeft";this._element.style[C]=`${u}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(s,u){return this.each(function(){const h=Kn.getOrCreateInstance(this,s);if(typeof s=="string"){if(typeof h[s]>"u")throw new TypeError(`No method named "${s}"`);h[s](u)}})}}k.on(document,xg,Pg,function(f){const s=j.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&f.preventDefault(),k.one(s,sc,C=>{C.defaultPrevented||k.one(s,oc,()=>{v(this)&&this.focus()})});const u=j.findOne(Lg);u&&Kn.getInstance(u).hide(),Kn.getOrCreateInstance(s).toggle(this)}),be(Kn),R(Kn);const Rg="offcanvas",Zt=".bs.offcanvas",uc=".data-api",$g=`load${Zt}${uc}`,jg="Escape",cc="show",dc="showing",fc="hiding",Fg="offcanvas-backdrop",pc=".offcanvas.show",zg=`show${Zt}`,Bg=`shown${Zt}`,Hg=`hide${Zt}`,hc=`hidePrevented${Zt}`,mc=`hidden${Zt}`,Vg=`resize${Zt}`,Wg=`click${Zt}${uc}`,Ug=`keydown.dismiss${Zt}`,Qg='[data-bs-toggle="offcanvas"]',Kg={backdrop:!0,keyboard:!0,scroll:!1},Yg={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Jt extends ne{constructor(s,u){super(s,u),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Kg}static get DefaultType(){return Yg}static get NAME(){return Rg}toggle(s){return this._isShown?this.hide():this.show(s)}show(s){if(this._isShown||k.trigger(this._element,zg,{relatedTarget:s}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new nl().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(dc);const h=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(cc),this._element.classList.remove(dc),k.trigger(this._element,Bg,{relatedTarget:s})};this._queueCallback(h,this._element,!0)}hide(){if(!this._isShown||k.trigger(this._element,Hg).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(fc),this._backdrop.hide();const u=()=>{this._element.classList.remove(cc,fc),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new nl().reset(),k.trigger(this._element,mc)};this._queueCallback(u,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const s=()=>{if(this._config.backdrop==="static"){k.trigger(this._element,hc);return}this.hide()},u=!!this._config.backdrop;return new qu({className:Fg,isVisible:u,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:u?s:null})}_initializeFocusTrap(){return new tc({trapElement:this._element})}_addEventListeners(){k.on(this._element,Ug,s=>{if(s.key===jg){if(this._config.keyboard){this.hide();return}k.trigger(this._element,hc)}})}static jQueryInterface(s){return this.each(function(){const u=Jt.getOrCreateInstance(this,s);if(typeof s=="string"){if(u[s]===void 0||s.startsWith("_")||s==="constructor")throw new TypeError(`No method named "${s}"`);u[s](this)}})}}k.on(document,Wg,Qg,function(f){const s=j.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&f.preventDefault(),p(this))return;k.one(s,mc,()=>{v(this)&&this.focus()});const u=j.findOne(pc);u&&u!==s&&Jt.getInstance(u).hide(),Jt.getOrCreateInstance(s).toggle(this)}),k.on(window,$g,()=>{for(const f of j.find(pc))Jt.getOrCreateInstance(f).show()}),k.on(window,Vg,()=>{for(const f of j.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(f).position!=="fixed"&&Jt.getOrCreateInstance(f).hide()}),be(Jt),R(Jt);const gc={"*":["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:[]},Gg=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Xg=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Zg=(f,s)=>{const u=f.nodeName.toLowerCase();return s.includes(u)?Gg.has(u)?!!Xg.test(f.nodeValue):!0:s.filter(h=>h instanceof RegExp).some(h=>h.test(u))};function Jg(f,s,u){if(!f.length)return f;if(u&&typeof u=="function")return u(f);const C=new window.DOMParser().parseFromString(f,"text/html"),P=[].concat(...C.body.querySelectorAll("*"));for(const I of P){const W=I.nodeName.toLowerCase();if(!Object.keys(s).includes(W)){I.remove();continue}const We=[].concat(...I.attributes),ft=[].concat(s["*"]||[],s[W]||[]);for(const Ee of We)Zg(Ee,ft)||I.removeAttribute(Ee.nodeName)}return C.body.innerHTML}const qg="TemplateFactory",ev={allowList:gc,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},tv={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},nv={entry:"(string|element|function|null)",selector:"(string|element)"};class rv extends _e{constructor(s){super(),this._config=this._getConfig(s)}static get Default(){return ev}static get DefaultType(){return tv}static get NAME(){return qg}getContent(){return Object.values(this._config.content).map(s=>this._resolvePossibleFunction(s)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(s){return this._checkContent(s),this._config.content={...this._config.content,...s},this}toHtml(){const s=document.createElement("div");s.innerHTML=this._maybeSanitize(this._config.template);for(const[C,P]of Object.entries(this._config.content))this._setContent(s,P,C);const u=s.children[0],h=this._resolvePossibleFunction(this._config.extraClass);return h&&u.classList.add(...h.split(" ")),u}_typeCheckConfig(s){super._typeCheckConfig(s),this._checkContent(s.content)}_checkContent(s){for(const[u,h]of Object.entries(s))super._typeCheckConfig({selector:u,entry:h},nv)}_setContent(s,u,h){const C=j.findOne(h,s);if(C){if(u=this._resolvePossibleFunction(u),!u){C.remove();return}if(T(u)){this._putElementInTemplate($(u),C);return}if(this._config.html){C.innerHTML=this._maybeSanitize(u);return}C.textContent=u}}_maybeSanitize(s){return this._config.sanitize?Jg(s,this._config.allowList,this._config.sanitizeFn):s}_resolvePossibleFunction(s){return V(s,[this])}_putElementInTemplate(s,u){if(this._config.html){u.innerHTML="",u.append(s);return}u.textContent=s.textContent}}const iv="tooltip",ov=new Set(["sanitize","allowList","sanitizeFn"]),il="fade",sv="modal",vo="show",lv=".tooltip-inner",vc=`.${sv}`,yc="hide.bs.modal",di="hover",ol="focus",av="click",uv="manual",cv="hide",dv="hidden",fv="show",pv="shown",hv="inserted",mv="click",gv="focusin",vv="focusout",yv="mouseenter",_v="mouseleave",Ev={AUTO:"auto",TOP:"top",RIGHT:z()?"left":"right",BOTTOM:"bottom",LEFT:z()?"right":"left"},Sv={allowList:gc,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"},wv={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 Yn extends ne{constructor(s,u){if(typeof i>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(s,u),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 Sv}static get DefaultType(){return wv}static get NAME(){return iv}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),k.off(this._element.closest(vc),yc,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 s=k.trigger(this._element,this.constructor.eventName(fv)),h=(y(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(s.defaultPrevented||!h)return;this._disposePopper();const C=this._getTipElement();this._element.setAttribute("aria-describedby",C.getAttribute("id"));const{container:P}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(P.append(C),k.trigger(this._element,this.constructor.eventName(hv))),this._popper=this._createPopper(C),C.classList.add(vo),"ontouchstart"in document.documentElement)for(const W of[].concat(...document.body.children))k.on(W,"mouseover",S);const I=()=>{k.trigger(this._element,this.constructor.eventName(pv)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(I,this.tip,this._isAnimated())}hide(){if(!this._isShown()||k.trigger(this._element,this.constructor.eventName(cv)).defaultPrevented)return;if(this._getTipElement().classList.remove(vo),"ontouchstart"in document.documentElement)for(const C of[].concat(...document.body.children))k.off(C,"mouseover",S);this._activeTrigger[av]=!1,this._activeTrigger[ol]=!1,this._activeTrigger[di]=!1,this._isHovered=null;const h=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),k.trigger(this._element,this.constructor.eventName(dv)))};this._queueCallback(h,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(s){const u=this._getTemplateFactory(s).toHtml();if(!u)return null;u.classList.remove(il,vo),u.classList.add(`bs-${this.constructor.NAME}-auto`);const h=_(this.constructor.NAME).toString();return u.setAttribute("id",h),this._isAnimated()&&u.classList.add(il),u}setContent(s){this._newContent=s,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(s){return this._templateFactory?this._templateFactory.changeContent(s):this._templateFactory=new rv({...this._config,content:s,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[lv]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(s){return this.constructor.getOrCreateInstance(s.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(il)}_isShown(){return this.tip&&this.tip.classList.contains(vo)}_createPopper(s){const u=V(this._config.placement,[this,s,this._element]),h=Ev[u.toUpperCase()];return i.createPopper(this._element,s,this._getPopperConfig(h))}_getOffset(){const{offset:s}=this._config;return typeof s=="string"?s.split(",").map(u=>Number.parseInt(u,10)):typeof s=="function"?u=>s(u,this._element):s}_resolvePossibleFunction(s){return V(s,[this._element])}_getPopperConfig(s){const u={placement:s,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:h=>{this._getTipElement().setAttribute("data-popper-placement",h.state.placement)}}]};return{...u,...V(this._config.popperConfig,[u])}}_setListeners(){const s=this._config.trigger.split(" ");for(const u of s)if(u==="click")k.on(this._element,this.constructor.eventName(mv),this._config.selector,h=>{this._initializeOnDelegatedTarget(h).toggle()});else if(u!==uv){const h=u===di?this.constructor.eventName(yv):this.constructor.eventName(gv),C=u===di?this.constructor.eventName(_v):this.constructor.eventName(vv);k.on(this._element,h,this._config.selector,P=>{const I=this._initializeOnDelegatedTarget(P);I._activeTrigger[P.type==="focusin"?ol:di]=!0,I._enter()}),k.on(this._element,C,this._config.selector,P=>{const I=this._initializeOnDelegatedTarget(P);I._activeTrigger[P.type==="focusout"?ol:di]=I._element.contains(P.relatedTarget),I._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},k.on(this._element.closest(vc),yc,this._hideModalHandler)}_fixTitle(){const s=this._element.getAttribute("title");s&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",s),this._element.setAttribute("data-bs-original-title",s),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}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(s,u){clearTimeout(this._timeout),this._timeout=setTimeout(s,u)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(s){const u=Ve.getDataAttributes(this._element);for(const h of Object.keys(u))ov.has(h)&&delete u[h];return s={...u,...typeof s=="object"&&s?s:{}},s=this._mergeConfigObj(s),s=this._configAfterMerge(s),this._typeCheckConfig(s),s}_configAfterMerge(s){return s.container=s.container===!1?document.body:$(s.container),typeof s.delay=="number"&&(s.delay={show:s.delay,hide:s.delay}),typeof s.title=="number"&&(s.title=s.title.toString()),typeof s.content=="number"&&(s.content=s.content.toString()),s}_getDelegateConfig(){const s={};for(const[u,h]of Object.entries(this._config))this.constructor.Default[u]!==h&&(s[u]=h);return s.selector=!1,s.trigger="manual",s}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(s){return this.each(function(){const u=Yn.getOrCreateInstance(this,s);if(typeof s=="string"){if(typeof u[s]>"u")throw new TypeError(`No method named "${s}"`);u[s]()}})}}R(Yn);const Cv="popover",Tv=".popover-header",Nv=".popover-body",kv={...Yn.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},Av={...Yn.DefaultType,content:"(null|string|element|function)"};class yo extends Yn{static get Default(){return kv}static get DefaultType(){return Av}static get NAME(){return Cv}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Tv]:this._getTitle(),[Nv]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(s){return this.each(function(){const u=yo.getOrCreateInstance(this,s);if(typeof s=="string"){if(typeof u[s]>"u")throw new TypeError(`No method named "${s}"`);u[s]()}})}}R(yo);const xv="scrollspy",sl=".bs.scrollspy",Ov=".data-api",Lv=`activate${sl}`,_c=`click${sl}`,Iv=`load${sl}${Ov}`,Dv="dropdown-item",Cr="active",Pv='[data-bs-spy="scroll"]',ll="[href]",bv=".nav, .list-group",Ec=".nav-link",Mv=`${Ec}, .nav-item > ${Ec}, .list-group-item`,Rv=".dropdown",$v=".dropdown-toggle",jv={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Fv={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class fi extends ne{constructor(s,u){super(s,u),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 jv}static get DefaultType(){return Fv}static get NAME(){return xv}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const s of this._observableSections.values())this._observer.observe(s)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(s){return s.target=$(s.target)||document.body,s.rootMargin=s.offset?`${s.offset}px 0px -30%`:s.rootMargin,typeof s.threshold=="string"&&(s.threshold=s.threshold.split(",").map(u=>Number.parseFloat(u))),s}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(k.off(this._config.target,_c),k.on(this._config.target,_c,ll,s=>{const u=this._observableSections.get(s.target.hash);if(u){s.preventDefault();const h=this._rootElement||window,C=u.offsetTop-this._element.offsetTop;if(h.scrollTo){h.scrollTo({top:C,behavior:"smooth"});return}h.scrollTop=C}}))}_getNewObserver(){const s={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(u=>this._observerCallback(u),s)}_observerCallback(s){const u=I=>this._targetLinks.get(`#${I.target.id}`),h=I=>{this._previousScrollData.visibleEntryTop=I.target.offsetTop,this._process(u(I))},C=(this._rootElement||document.documentElement).scrollTop,P=C>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=C;for(const I of s){if(!I.isIntersecting){this._activeTarget=null,this._clearActiveClass(u(I));continue}const W=I.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(P&&W){if(h(I),!C)return;continue}!P&&!W&&h(I)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const s=j.find(ll,this._config.target);for(const u of s){if(!u.hash||p(u))continue;const h=j.findOne(decodeURI(u.hash),this._element);v(h)&&(this._targetLinks.set(decodeURI(u.hash),u),this._observableSections.set(u.hash,h))}}_process(s){this._activeTarget!==s&&(this._clearActiveClass(this._config.target),this._activeTarget=s,s.classList.add(Cr),this._activateParents(s),k.trigger(this._element,Lv,{relatedTarget:s}))}_activateParents(s){if(s.classList.contains(Dv)){j.findOne($v,s.closest(Rv)).classList.add(Cr);return}for(const u of j.parents(s,bv))for(const h of j.prev(u,Mv))h.classList.add(Cr)}_clearActiveClass(s){s.classList.remove(Cr);const u=j.find(`${ll}.${Cr}`,s);for(const h of u)h.classList.remove(Cr)}static jQueryInterface(s){return this.each(function(){const u=fi.getOrCreateInstance(this,s);if(typeof s=="string"){if(u[s]===void 0||s.startsWith("_")||s==="constructor")throw new TypeError(`No method named "${s}"`);u[s]()}})}}k.on(window,Iv,()=>{for(const f of j.find(Pv))fi.getOrCreateInstance(f)}),R(fi);const zv="tab",Gn=".bs.tab",Bv=`hide${Gn}`,Hv=`hidden${Gn}`,Vv=`show${Gn}`,Wv=`shown${Gn}`,Uv=`click${Gn}`,Qv=`keydown${Gn}`,Kv=`load${Gn}`,Yv="ArrowLeft",Sc="ArrowRight",Gv="ArrowUp",wc="ArrowDown",al="Home",Cc="End",Xn="active",Tc="fade",ul="show",Xv="dropdown",Nc=".dropdown-toggle",Zv=".dropdown-menu",cl=`:not(${Nc})`,Jv='.list-group, .nav, [role="tablist"]',qv=".nav-item, .list-group-item",ey=`.nav-link${cl}, .list-group-item${cl}, [role="tab"]${cl}`,kc='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',dl=`${ey}, ${kc}`,ty=`.${Xn}[data-bs-toggle="tab"], .${Xn}[data-bs-toggle="pill"], .${Xn}[data-bs-toggle="list"]`;class Zn extends ne{constructor(s){super(s),this._parent=this._element.closest(Jv),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),k.on(this._element,Qv,u=>this._keydown(u)))}static get NAME(){return zv}show(){const s=this._element;if(this._elemIsActive(s))return;const u=this._getActiveElem(),h=u?k.trigger(u,Bv,{relatedTarget:s}):null;k.trigger(s,Vv,{relatedTarget:u}).defaultPrevented||h&&h.defaultPrevented||(this._deactivate(u,s),this._activate(s,u))}_activate(s,u){if(!s)return;s.classList.add(Xn),this._activate(j.getElementFromSelector(s));const h=()=>{if(s.getAttribute("role")!=="tab"){s.classList.add(ul);return}s.removeAttribute("tabindex"),s.setAttribute("aria-selected",!0),this._toggleDropDown(s,!0),k.trigger(s,Wv,{relatedTarget:u})};this._queueCallback(h,s,s.classList.contains(Tc))}_deactivate(s,u){if(!s)return;s.classList.remove(Xn),s.blur(),this._deactivate(j.getElementFromSelector(s));const h=()=>{if(s.getAttribute("role")!=="tab"){s.classList.remove(ul);return}s.setAttribute("aria-selected",!1),s.setAttribute("tabindex","-1"),this._toggleDropDown(s,!1),k.trigger(s,Hv,{relatedTarget:u})};this._queueCallback(h,s,s.classList.contains(Tc))}_keydown(s){if(![Yv,Sc,Gv,wc,al,Cc].includes(s.key))return;s.stopPropagation(),s.preventDefault();const u=this._getChildren().filter(C=>!p(C));let h;if([al,Cc].includes(s.key))h=u[s.key===al?0:u.length-1];else{const C=[Sc,wc].includes(s.key);h=Z(u,s.target,C,!0)}h&&(h.focus({preventScroll:!0}),Zn.getOrCreateInstance(h).show())}_getChildren(){return j.find(dl,this._parent)}_getActiveElem(){return this._getChildren().find(s=>this._elemIsActive(s))||null}_setInitialAttributes(s,u){this._setAttributeIfNotExists(s,"role","tablist");for(const h of u)this._setInitialAttributesOnChild(h)}_setInitialAttributesOnChild(s){s=this._getInnerElement(s);const u=this._elemIsActive(s),h=this._getOuterElement(s);s.setAttribute("aria-selected",u),h!==s&&this._setAttributeIfNotExists(h,"role","presentation"),u||s.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(s,"role","tab"),this._setInitialAttributesOnTargetPanel(s)}_setInitialAttributesOnTargetPanel(s){const u=j.getElementFromSelector(s);u&&(this._setAttributeIfNotExists(u,"role","tabpanel"),s.id&&this._setAttributeIfNotExists(u,"aria-labelledby",`${s.id}`))}_toggleDropDown(s,u){const h=this._getOuterElement(s);if(!h.classList.contains(Xv))return;const C=(P,I)=>{const W=j.findOne(P,h);W&&W.classList.toggle(I,u)};C(Nc,Xn),C(Zv,ul),h.setAttribute("aria-expanded",u)}_setAttributeIfNotExists(s,u,h){s.hasAttribute(u)||s.setAttribute(u,h)}_elemIsActive(s){return s.classList.contains(Xn)}_getInnerElement(s){return s.matches(dl)?s:j.findOne(dl,s)}_getOuterElement(s){return s.closest(qv)||s}static jQueryInterface(s){return this.each(function(){const u=Zn.getOrCreateInstance(this);if(typeof s=="string"){if(u[s]===void 0||s.startsWith("_")||s==="constructor")throw new TypeError(`No method named "${s}"`);u[s]()}})}}k.on(document,Uv,kc,function(f){["A","AREA"].includes(this.tagName)&&f.preventDefault(),!p(this)&&Zn.getOrCreateInstance(this).show()}),k.on(window,Kv,()=>{for(const f of j.find(ty))Zn.getOrCreateInstance(f)}),R(Zn);const ny="toast",En=".bs.toast",ry=`mouseover${En}`,iy=`mouseout${En}`,oy=`focusin${En}`,sy=`focusout${En}`,ly=`hide${En}`,ay=`hidden${En}`,uy=`show${En}`,cy=`shown${En}`,dy="fade",Ac="hide",_o="show",Eo="showing",fy={animation:"boolean",autohide:"boolean",delay:"number"},py={animation:!0,autohide:!0,delay:5e3};class pi extends ne{constructor(s,u){super(s,u),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return py}static get DefaultType(){return fy}static get NAME(){return ny}show(){if(k.trigger(this._element,uy).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(dy);const u=()=>{this._element.classList.remove(Eo),k.trigger(this._element,cy),this._maybeScheduleHide()};this._element.classList.remove(Ac),A(this._element),this._element.classList.add(_o,Eo),this._queueCallback(u,this._element,this._config.animation)}hide(){if(!this.isShown()||k.trigger(this._element,ly).defaultPrevented)return;const u=()=>{this._element.classList.add(Ac),this._element.classList.remove(Eo,_o),k.trigger(this._element,ay)};this._element.classList.add(Eo),this._queueCallback(u,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(_o),super.dispose()}isShown(){return this._element.classList.contains(_o)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(s,u){switch(s.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=u;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=u;break}}if(u){this._clearTimeout();return}const h=s.relatedTarget;this._element===h||this._element.contains(h)||this._maybeScheduleHide()}_setListeners(){k.on(this._element,ry,s=>this._onInteraction(s,!0)),k.on(this._element,iy,s=>this._onInteraction(s,!1)),k.on(this._element,oy,s=>this._onInteraction(s,!0)),k.on(this._element,sy,s=>this._onInteraction(s,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(s){return this.each(function(){const u=pi.getOrCreateInstance(this,s);if(typeof s=="string"){if(typeof u[s]>"u")throw new TypeError(`No method named "${s}"`);u[s](this)}})}}return be(pi),R(pi),{Alert:Qt,Button:vn,Carousel:_r,Collapse:Sr,Dropdown:Ct,Modal:Kn,Offcanvas:Jt,Popover:yo,ScrollSpy:fi,Tab:Zn,Toast:pi,Tooltip:Yn}})})(S0);function dE(){const[e,t]=D.useState(localStorage.getItem("teamNumber")==null?"":localStorage.getItem("teamNumber")),[n,r]=D.useState(localStorage.getItem("matchNumber")==null?"":localStorage.getItem("matchNumber")),[i,o]=D.useState(localStorage.getItem("scoutName")==null?"":localStorage.getItem("scoutName")),[l,a]=D.useState(localStorage.getItem("startingPosition")==null?"":localStorage.getItem("startingPosition")),[c,d]=D.useState(localStorage.getItem("leaveCommunity")==null?"":localStorage.getItem("leaveCommunity")),[g,E]=D.useState(localStorage.getItem("autoConesHigh")==null?0:localStorage.getItem("autoConesHigh")),[_,w]=D.useState(localStorage.getItem("autoConesMid")==null?0:localStorage.getItem("autoConesMid")),[N,T]=D.useState(localStorage.getItem("autoConesLow")==null?0:localStorage.getItem("autoConesLow")),[$,v]=D.useState(localStorage.getItem("autoConesMissed")==null?0:localStorage.getItem("autoConesMissed")),[p,y]=D.useState(localStorage.getItem("autoCubesHigh")==null?0:localStorage.getItem("autoCubesHigh")),[S,A]=D.useState(localStorage.getItem("autoCubesMid")==null?0:localStorage.getItem("autoCubesMid")),[x,L]=D.useState(localStorage.getItem("autoCubesLow")==null?0:localStorage.getItem("autoCubesLow")),[b,z]=D.useState(localStorage.getItem("autoCubesMissed")==null?0:localStorage.getItem("autoCubesMissed")),[R,V]=D.useState(localStorage.getItem("autoChargingStation")==null?"":localStorage.getItem("autoChargingStation")),[q,Z]=D.useState(localStorage.getItem("teleConesHigh")==null?0:localStorage.getItem("teleConesHigh")),[ve,Be]=D.useState(localStorage.getItem("teleConesMid")==null?0:localStorage.getItem("teleConesMid")),[ie,ae]=D.useState(localStorage.getItem("teleConesLow")==null?0:localStorage.getItem("teleConesLow")),[M,B]=D.useState(localStorage.getItem("teleConesMissed")==null?0:localStorage.getItem("teleConesMissed")),[H,G]=D.useState(localStorage.getItem("teleCubesHigh")==null?0:localStorage.getItem("teleCubesHigh")),[Y,He]=D.useState(localStorage.getItem("teleCubesMid")==null?0:localStorage.getItem("teleCubesMid")),[ce,ye]=D.useState(localStorage.getItem("teleCubesLow")==null?0:localStorage.getItem("teleCubesLow")),[de,Pe]=D.useState(localStorage.getItem("teleCubesMissed")==null?0:localStorage.getItem("teleCubesMissed")),[xe,fn]=D.useState(localStorage.getItem("intakeFromFloorCommunity")==null?0:localStorage.getItem("intakeFromFloorCommunity")),[Ut,k]=D.useState(localStorage.getItem("intakeFromFloorNotCommunity")==null?0:localStorage.getItem("intakeFromFloorNotCommunity")),[Pt,pn]=D.useState(localStorage.getItem("intakeFromShelf")==null?0:localStorage.getItem("intakeFromShelf")),[bt,Ve]=D.useState(localStorage.getItem("intakeFromChute")==null?0:localStorage.getItem("intakeFromChute")),[_e,wt]=D.useState(localStorage.getItem("defenseQuantity")==null?"":localStorage.getItem("defenseQuantity")),[ne,Xe]=D.useState(localStorage.getItem("defenseQuality")==null?"":localStorage.getItem("defenseQuality")),[j,be]=D.useState(localStorage.getItem("endgameChargingStation")==null?"":localStorage.getItem("endgameChargingStation")),[at,hn]=D.useState(localStorage.getItem("additionalRobots")==null?"":localStorage.getItem("additionalRobots")),[Ze,mn]=D.useState(localStorage.getItem("speed")==null?"":localStorage.getItem("speed")),[ut,gn]=D.useState(localStorage.getItem("movedBetween")==null?"":localStorage.getItem("movedBetween")),[ct,Qt]=D.useState(localStorage.getItem("droppedCycling")==null?"":localStorage.getItem("droppedCycling")),[Kt,ao]=D.useState(localStorage.getItem("timeToIntake")==null?"":localStorage.getItem("timeToIntake")),[Yt,li]=D.useState(localStorage.getItem("droppedHit")==null?"":localStorage.getItem("droppedHit")),[Gt,gr]=D.useState(localStorage.getItem("tripleClimb")==null?"":localStorage.getItem("tripleClimb")),[Wn,vn]=D.useState(localStorage.getItem("comment")==null?"":localStorage.getItem("comment")),[Ys,yn]=D.useState([]),[Xt,Gs]=D.useState(!1);D.useEffect(()=>{localStorage.setItem("teamNumber",e)},[e]),D.useEffect(()=>{localStorage.setItem("matchNumber",n)},[n]),D.useEffect(()=>{localStorage.setItem("scoutName",i)},[i]),D.useEffect(()=>{localStorage.setItem("startingPosition",l)},[l]),D.useEffect(()=>{localStorage.setItem("leaveCommunity",c)},[c]),D.useEffect(()=>{localStorage.setItem("autoConesHigh",g)},[g]),D.useEffect(()=>{localStorage.setItem("autoConesMid",_)},[_]),D.useEffect(()=>{localStorage.setItem("autoConesLow",N)},[N]),D.useEffect(()=>{localStorage.setItem("autoConesMissed",$)},[$]),D.useEffect(()=>{localStorage.setItem("autoCubesHigh",p)},[p]),D.useEffect(()=>{localStorage.setItem("autoCubesMid",S)},[S]),D.useEffect(()=>{localStorage.setItem("autoCubesLow",x)},[x]),D.useEffect(()=>{localStorage.setItem("autoCubesMissed",b)},[b]),D.useEffect(()=>{localStorage.setItem("autoChargingStation",R)},[R]),D.useEffect(()=>{localStorage.setItem("teleConesHigh",q)},[q]),D.useEffect(()=>{localStorage.setItem("teleConesMid",ve)},[ve]),D.useEffect(()=>{localStorage.setItem("teleConesLow",ie)},[ie]),D.useEffect(()=>{localStorage.setItem("teleConesMissed",M)},[M]),D.useEffect(()=>{localStorage.setItem("teleCubesHigh",H)},[H]),D.useEffect(()=>{localStorage.setItem("teleCubesMid",Y)},[Y]),D.useEffect(()=>{localStorage.setItem("teleCubesLow",ce)},[ce]),D.useEffect(()=>{localStorage.setItem("teleCubesMissed",de)},[de]),D.useEffect(()=>{localStorage.setItem("intakeFromFloorCommunity",xe)},[xe]),D.useEffect(()=>{localStorage.setItem("intakeFromFloorNotCommunity",Ut)},[Ut]),D.useEffect(()=>{localStorage.setItem("intakeFromShelf",Pt)},[Pt]),D.useEffect(()=>{localStorage.setItem("intakeFromChute",bt)},[bt]),D.useEffect(()=>{localStorage.setItem("defenseQuantity",_e)},[_e]),D.useEffect(()=>{localStorage.setItem("defenseQuality",ne)},[ne]),D.useEffect(()=>{localStorage.setItem("endgameChargingStation",j)},[j]),D.useEffect(()=>{localStorage.setItem("additionalRobots",at)},[at]),D.useEffect(()=>{localStorage.setItem("speed",Ze)},[Ze]),D.useEffect(()=>{localStorage.setItem("movedBetween",ut)},[ut]),D.useEffect(()=>{localStorage.setItem("droppedCycling",ct)},[ct]),D.useEffect(()=>{localStorage.setItem("timeToIntake",Kt)},[Kt]),D.useEffect(()=>{localStorage.setItem("droppedHit",Yt)},[Yt]),D.useEffect(()=>{localStorage.setItem("tripleClimb",Gt)},[Gt]),D.useEffect(()=>{localStorage.setItem("comment",Wn)},[Wn]);function Xs(){t(""),r(""),o(""),a(""),d(""),E(0),w(0),T(0),v(0),y(0),A(0),L(0),z(0),V(""),Z(0),Be(0),ae(0),B(0),G(0),He(0),ye(0),Pe(0),fn(0),k(0),pn(0),Ve(0),wt(""),Xe(""),be(""),hn(""),mn(""),gn(""),Qt(""),ao(""),li(""),gr(""),vn("")}const ai=[n,e,Wn,!!l,c,parseInt(g),parseInt(_),parseInt(N),parseInt($),parseInt(p),parseInt(S),parseInt(x),parseInt(b),R,parseInt(q),parseInt(ve),parseInt(ve),parseInt(M),parseInt(H),parseInt(Y),parseInt(ce),parseInt(de),parseInt(xe),parseInt(Ut),parseInt(Pt),parseInt(bt),_e,ne,j,at,Ze,ut==""?"":ut,ct==""?"":ct,Kt==""?"":Kt,Yt==""?"":Yt,Gt==""?"":Gt,i];function Zs(){let Q=[];e||Q.push("Team number"),n||Q.push("Match number"),i||Q.push("Scout name"),l||Q.push("Starting position"),c||Q.push("Leave community"),R||Q.push("Auto charging station"),_e||Q.push("Defense quantity"),ne||Q.push("Defense quality"),j||Q.push("Endgame charging station"),at||Q.push("Additional robots"),Ze||Q.push("Slow or Fast"),ut||Q.push("Moved Pieces Between Nodes"),ct||Q.push("Dropped Pieces While Cycling"),Kt||Q.push("Long Time To Intake"),Yt||Q.push("Dropped When Hit"),Gt||Q.push("Triple Climb"),Wn||Q.push("Comment"),yn(Q.length==0?["No missing data!"]:Q)}return D.useEffect(()=>{console.log(ai)},[ai]),D.useLayoutEffect(()=>{window.innerWidth<768&&Gs(!0)},[]),m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"modal fade",id:"exampleModal",tabIndex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true",children:m.jsx("div",{className:"modal-dialog",children:m.jsxs("div",{className:"modal-content",children:[m.jsxs("div",{className:"modal-header",children:[m.jsx("p",{className:"modal-title fs-5",id:"exampleModalLabel",children:"Missing Data"}),m.jsx("button",{type:"button",className:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"})]}),m.jsx("div",{className:"modal-body",children:m.jsx("ul",{children:Ys.filter(Q=>!!Q).map(Q=>m.jsx("li",{children:Q},Q))})})]})})}),m.jsxs("section",{children:[m.jsx("div",{className:"container-fluid bg-secondary py-3 text-center display-5",children:m.jsx("p",{children:"Match info"})}),m.jsxs("div",{className:"container mx-auto my-5 col-sm-4",children:[m.jsx("div",{children:m.jsx("input",{type:"text",placeholder:"Team Number",className:"form-control",onInput:Q=>t(Q.target.value),autoComplete:"false",value:e})}),m.jsx("div",{className:"pt-4",children:m.jsx("input",{type:"text",placeholder:"Match Number",className:"form-control",onInput:Q=>r(Q.target.value),autoComplete:"false",value:n})}),m.jsx("div",{className:"pt-4",children:m.jsx("input",{type:"text",placeholder:"Scout Name",className:"form-control",onInput:Q=>o(Q.target.value),autoComplete:"false",value:i})})]})]}),m.jsxs("section",{children:[m.jsx("div",{className:"container-fluid bg-secondary py-3 text-center display-5",children:m.jsx("p",{children:"Autonomous"})}),m.jsxs("div",{className:"container mx-auto pt-4",children:[m.jsx("div",{className:"text-center",children:m.jsx("img",{src:"./robotPositions.png",alt:"Robot positions",className:"img-fluid"})}),m.jsxs("div",{className:"pt-5 row",children:[m.jsxs("div",{className:"col text-center",children:[m.jsx("p",{children:"Starting Position"}),m.jsxs("div",{className:`${Xt?"btn-group-vertical":"btn-group"}`,role:"group",children:[m.jsx("input",{type:"radio",className:"btn-check",name:"startingposition",id:"startingpositionA",onClick:()=>a("A"),checked:l=="A",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"startingpositionA",children:"A"}),m.jsx("input",{type:"radio",className:"btn-check",name:"startingposition",id:"startingpositionB",onClick:()=>a("B"),checked:l=="B",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"startingpositionB",children:"B"}),m.jsx("input",{type:"radio",className:"btn-check",name:"startingposition",id:"startingpositionC",onClick:()=>a("C"),checked:l=="C",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"startingpositionC",children:"C"}),m.jsx("input",{type:"radio",className:"btn-check",name:"startingposition",id:"startingpositionD",onClick:()=>a("D"),checked:l=="D",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"startingpositionD",children:"D"})]})]}),m.jsxs("div",{className:"col text-center",children:[m.jsx("p",{children:"Leave Community?"}),m.jsxs("div",{className:`${Xt?"btn-group-vertical":"btn-group"}`,role:"group",children:[m.jsx("input",{type:"radio",className:"btn-check",name:"leavecommuntiy",id:"leavecommunityyes",onClick:()=>d("true"),checked:c=="true",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"leavecommunityyes",children:"Yes"}),m.jsx("input",{type:"radio",className:"btn-check",name:"leavecommuntiy",id:"leavecommunityno",onClick:()=>d("false"),checked:c=="false",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"leavecommunityno",children:"No"})]})]})]}),m.jsxs("div",{className:"row mt-4",children:[m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cones High",variable:g,setter:E})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cones Mid",variable:_,setter:w})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cones Low",variable:N,setter:T})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cones Missed (while placing high/mid)",variable:$,setter:v})})]}),m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cubes High",variable:p,setter:y})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cubes Mid",variable:S,setter:A})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cubes Low",variable:x,setter:L})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cubes Missed (while placing high/mid)",variable:b,setter:z})})]}),m.jsxs("div",{className:"my-5 text-center",children:[m.jsx("p",{className:"mb-2",children:"Charging Station"}),m.jsxs("div",{className:`${Xt?"btn-group-vertical":"btn-group"}`,role:"group",children:[m.jsx("input",{type:"radio",className:"btn-check",name:"autochargingstation",id:"autochargingstationdocked",onClick:()=>V("Docked"),checked:R=="Docked",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"autochargingstationdocked",children:"Docked"}),m.jsx("input",{type:"radio",className:"btn-check",name:"autochargingstation",id:"autochargingstationengaged",onClick:()=>V("Engaged"),checked:R=="Engaged",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"autochargingstationengaged",children:"Engaged"}),m.jsx("input",{type:"radio",className:"btn-check",name:"autochargingstation",id:"autochargingstationnone",onClick:()=>V("None"),checked:R=="None",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"autochargingstationnone",children:"None"})]})]})]})]}),m.jsxs("section",{children:[m.jsx("div",{className:"container-fluid bg-secondary py-3 text-center display-5",children:m.jsx("p",{children:"Teleoperated"})}),m.jsxs("div",{className:"container mx-auto pt-4",children:[m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cubes High",variable:H,setter:G})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cubes Mid",variable:Y,setter:He})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cubes Low",variable:ce,setter:ye})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cubes Missed",variable:de,setter:Pe})})]}),m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cones High",variable:q,setter:Z})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cones Mid",variable:ve,setter:Be})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cones Low",variable:ie,setter:ae})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Cones Missed",variable:M,setter:B})})]}),m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Intake From Floor (Community)",variable:xe,setter:fn})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Intake From Floor (Outside Community)",variable:Ut,setter:k})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Intake From Shelf",variable:Pt,setter:pn})}),m.jsx("div",{className:"col-sm",children:m.jsx(pe,{label:"Intake From Chute",variable:bt,setter:Ve})})]}),m.jsxs("div",{className:"row my-5",children:[m.jsxs("div",{className:"col-sm text-center",children:[m.jsx("p",{children:"Defense Quantity %"}),m.jsxs("div",{className:`${Xt?"btn-group-vertical":"btn-group"}`,role:"group",children:[m.jsx("input",{type:"radio",className:"btn-check",name:"defenseQuantity",id:"defenseQuantity0",onClick:()=>wt("0"),checked:_e=="0",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"defenseQuantity0",children:"0"}),m.jsx("input",{type:"radio",className:"btn-check",name:"defenseQuantity",id:"defenseQuantity25",onClick:()=>wt("25"),checked:_e=="25",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"defenseQuantity25",children:"25"}),m.jsx("input",{type:"radio",className:"btn-check",name:"defenseQuantity",id:"defenseQuantity50",onClick:()=>wt("50"),checked:_e=="50",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"defenseQuantity50",children:"50"}),m.jsx("input",{type:"radio",className:"btn-check",name:"defenseQuantity",id:"defenseQuantity75",onClick:()=>wt("75"),checked:_e=="75",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"defenseQuantity75",children:"75"}),m.jsx("input",{type:"radio",className:"btn-check",name:"defenseQuantity",id:"defenseQuantity100",onClick:()=>wt("100"),checked:_e=="100",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"defenseQuantity100",children:"100"})]})]}),m.jsxs("div",{className:"col-sm text-center",children:[m.jsx("p",{children:"Defense Quality"}),m.jsxs("div",{className:`${Xt?"btn-group-vertical":"btn-group"}`,role:"group",children:[m.jsx("input",{type:"radio",className:"btn-check",name:"defenseQuality",id:"defenseQuality0",onClick:()=>Xe("0"),checked:ne=="0",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"defenseQuality0",children:"0"}),m.jsx("input",{type:"radio",className:"btn-check",name:"defenseQuality",id:"defenseQuality1",onClick:()=>Xe("1"),checked:ne=="1",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"defenseQuality1",children:"1"}),m.jsx("input",{type:"radio",className:"btn-check",name:"defenseQuality",id:"defenseQuality2",onClick:()=>Xe("2"),checked:ne=="2",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"defenseQuality2",children:"2"}),m.jsx("input",{type:"radio",className:"btn-check",name:"defenseQuality",id:"defenseQuality3",onClick:()=>Xe("3"),checked:ne=="3",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"defenseQuality3",children:"3"}),m.jsx("input",{type:"radio",className:"btn-check",name:"defenseQuality",id:"defenseQuality4",onClick:()=>Xe("4"),checked:ne=="4",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"defenseQuality4",children:"4"}),m.jsx("input",{type:"radio",className:"btn-check",name:"defenseQuality",id:"defenseQuality5",onClick:()=>Xe("5"),checked:ne=="5",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"defenseQuantity5",children:"5"})]})]})]})]})]}),m.jsxs("section",{children:[m.jsx("div",{className:"container-fluid bg-secondary py-3 text-center display-5",children:m.jsx("p",{children:"Endgame"})}),m.jsxs("div",{className:"text-center",children:[m.jsx("p",{className:"mb-2 pt-5",children:"Charging Station"}),m.jsxs("div",{className:`${Xt?"btn-group-vertical":"btn-group"}`,role:"group",children:[m.jsx("input",{type:"radio",className:"btn-check",name:"endgameChargingStation",id:"endgameChargingStationdocked",onClick:()=>be("Docked"),checked:j=="Docked",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"endgameChargingStationdocked",children:"Docked"}),m.jsx("input",{type:"radio",className:"btn-check",name:"endgameChargingStation",id:"endgameChargingStationengaged",onClick:()=>be("Engaged"),checked:j=="Engaged",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"endgameChargingStationengaged",children:"Engaged"}),m.jsx("input",{type:"radio",className:"btn-check",name:"endgameChargingStation",id:"endgameChargingStationparked",onClick:()=>be("Parked"),checked:j=="Parked",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"endgameChargingStationparked",children:"Parked"}),m.jsx("input",{type:"radio",className:"btn-check",name:"endgameChargingStation",id:"endgameChargingStationnone",onClick:()=>be("None"),checked:j=="None",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"endgameChargingStationnone",children:"None"})]})]}),m.jsxs("div",{className:"text-center mb-5",children:[m.jsx("p",{className:"mb-2 pt-5",children:"Additional Robots"}),m.jsxs("div",{className:`${Xt?"btn-group-vertical":"btn-group"}`,role:"group",children:[m.jsx("input",{type:"radio",className:"btn-check",name:"additionalRobots",id:"additionalRobots0",onClick:()=>hn("0"),checked:at=="0",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"additionalRobots0",children:"0"}),m.jsx("input",{type:"radio",className:"btn-check",name:"additionalRobots",id:"additionalRobots1",onClick:()=>hn("1"),checked:at=="1",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"additionalRobots1",children:"1"}),m.jsx("input",{type:"radio",className:"btn-check",name:"additionalRobots",id:"additionalRobots2",onClick:()=>hn("2"),checked:at=="2",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"additionalRobots2",children:"2"})]})]})]}),m.jsxs("section",{children:[m.jsx("div",{className:"container-fluid bg-secondary py-3 text-center display-5",children:m.jsx("p",{children:"Export"})}),m.jsx("div",{className:"mt-5 mx-auto text-center",children:m.jsx(E0,{title:"Export QR Code",value:JSON.stringify(ai),bgColor:"white",fgcolor:"black",size:384,style:{border:"20px solid white"}})}),m.jsx("div",{className:"mx-auto text-center mt-3 mb-5",children:m.jsx("button",{className:"btn btn-primary btn-lg",onClick:()=>Zs(),"data-bs-toggle":"modal","data-bs-target":"#exampleModal",children:"Show missing data"})}),m.jsxs("div",{className:"container text-center",children:[m.jsx("p",{className:"h2",children:"The following questions are OPTIONAL fields"}),m.jsx("p",{className:"h3",children:"However, please still fill out the comments box"}),m.jsxs("div",{children:[m.jsxs("div",{className:"row mt-5",children:[m.jsxs("div",{className:"col-sm",children:[m.jsx("p",{className:"mb-2",children:"Slow or Fast"}),m.jsxs("div",{className:"btn-group",role:"group",children:[m.jsx("input",{type:"radio",className:"btn-check",name:"speed",id:"speedSlow",onClick:()=>mn("Slow"),checked:Ze=="Slow",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"speedSlow",children:"Slow"}),m.jsx("input",{type:"radio",className:"btn-check",name:"speed",id:"speedFast",onClick:()=>mn("Fast"),checked:Ze=="Fast",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"speedFast",children:"Fast"})]})]}),m.jsxs("div",{className:"col-sm",children:[m.jsx("p",{className:"mb-2",children:"Moved Pieces Between Nodes?"}),m.jsxs("div",{className:"btn-group",role:"group",children:[m.jsx("input",{type:"radio",className:"btn-check",name:"movedBetween",id:"movedBetweenYes",onClick:()=>gn("true"),checked:ut=="true",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"movedBetweenYes",children:"Yes"}),m.jsx("input",{type:"radio",className:"btn-check",name:"movedBetween",id:"movedBetweenNo",onClick:()=>gn("false"),checked:ut=="false",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"movedBetweenNo",children:"No"})]})]}),m.jsxs("div",{className:"col-sm",children:[m.jsx("p",{className:"mb-2",children:"Dropped Pieces While Cycling?"}),m.jsxs("div",{className:"btn-group",role:"group",children:[m.jsx("input",{type:"radio",className:"btn-check",name:"droppedCycling",id:"droppedCyclingYes",onClick:()=>Qt("true"),checked:ct=="true",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"droppedCyclingYes",children:"Yes"}),m.jsx("input",{type:"radio",className:"btn-check",name:"droppedCycling",id:"droppedCyclingNo",onClick:()=>Qt("false"),checked:ct=="false",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"droppedCyclingNo",children:"No"})]})]})]}),m.jsxs("div",{className:"row mt-5",children:[m.jsxs("div",{className:"col-sm",children:[m.jsx("p",{className:"mb-2",children:"Long Time To Intake?"}),m.jsxs("div",{className:"btn-group",role:"group",children:[m.jsx("input",{type:"radio",className:"btn-check",name:"timeToIntake",id:"timeToIntakeYes",onClick:()=>ao("true"),checked:Kt=="true",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"timeToIntakeYes",children:"Yes"}),m.jsx("input",{type:"radio",className:"btn-check",name:"timeToIntake",id:"timeToIntakeNo",onClick:()=>ao("false"),checked:Kt=="false",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"timeToIntakeNo",children:"No"})]})]}),m.jsxs("div",{className:"col-sm",children:[m.jsx("p",{className:"mb-2",children:"Dropped When Hit?"}),m.jsxs("div",{className:"btn-group",role:"group",children:[m.jsx("input",{type:"radio",className:"btn-check",name:"droppedHit",id:"droppedHitYes",onClick:()=>li("true"),checked:Yt=="true",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"droppedHitYes",children:"Yes"}),m.jsx("input",{type:"radio",className:"btn-check",name:"droppedHit",id:"droppedHitNo",onClick:()=>li("false"),checked:Yt=="false",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"droppedHitNo",children:"No"})]})]}),m.jsxs("div",{className:"col-sm",children:[m.jsx("p",{className:"mb-2",children:"Triple Climb?"}),m.jsxs("div",{className:"btn-group",role:"group",children:[m.jsx("input",{type:"radio",className:"btn-check",name:"tripleClimb",id:"tripleClimbYes",onClick:()=>gr("true"),checked:Gt=="true",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"tripleClimbYes",children:"Yes"}),m.jsx("input",{type:"radio",className:"btn-check",name:"tripleClimb",id:"tripleClimbNo",onClick:()=>gr("false"),checked:Gt=="false",readOnly:!0}),m.jsx("label",{className:"btn btn-primary p-5",htmlFor:"tripleClimbNo",children:"No"})]})]})]})]}),m.jsxs("div",{className:"mt-5",children:[m.jsx("p",{className:"mb-1 h4",children:"Comment"}),m.jsx("p",{children:"i.e if they can intake from the grid, did they score many links, etc. etc."}),m.jsx("textarea",{name:"",id:"",cols:"30",rows:"5",className:"form-control",placeholder:"Comment",onChange:Q=>vn(Q.target.value),value:Wn})]})]})]}),m.jsx("section",{className:"mt-5",children:m.jsx("button",{className:"btn btn-success container-fluid py-5",onClick:Xs,children:m.jsx("span",{className:"display-4 text-white",children:"Clear"})})})]})}jl.createRoot(document.getElementById("root")).render(m.jsx(Py.StrictMode,{children:m.jsx(dE,{})}));