(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Zo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var aa={exports:{}},ci={},ua={exports:{}},R={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ir=Symbol.for("react.element"),Ed=Symbol.for("react.portal"),Cd=Symbol.for("react.fragment"),Nd=Symbol.for("react.strict_mode"),jd=Symbol.for("react.profiler"),Ld=Symbol.for("react.provider"),zd=Symbol.for("react.context"),Pd=Symbol.for("react.forward_ref"),Rd=Symbol.for("react.suspense"),Od=Symbol.for("react.memo"),Md=Symbol.for("react.lazy"),Kl=Symbol.iterator;function Dd(e){return e===null||typeof e!="object"?null:(e=Kl&&e[Kl]||e["@@iterator"],typeof e=="function"?e:null)}var da={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ca=Object.assign,pa={};function fn(e,t,n){this.props=e,this.context=t,this.refs=pa,this.updater=n||da}fn.prototype.isReactComponent={};fn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};fn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function fa(){}fa.prototype=fn.prototype;function qo(e,t,n){this.props=e,this.context=t,this.refs=pa,this.updater=n||da}var Jo=qo.prototype=new fa;Jo.constructor=qo;ca(Jo,fn.prototype);Jo.isPureReactComponent=!0;var Gl=Array.isArray,ha=Object.prototype.hasOwnProperty,el={current:null},ma={key:!0,ref:!0,__self:!0,__source:!0};function ga(e,t,n){var r,i={},o=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(o=""+t.key),t)ha.call(t,r)&&!ma.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,J=E[G];if(0>>1;Gi(ji,P))xti(cr,ji)?(E[G]=cr,E[xt]=P,G=xt):(E[G]=ji,E[kt]=P,G=kt);else if(xti(cr,P))E[G]=cr,E[xt]=P,G=xt;else break e}}return L}function i(E,L){var P=E.sortIndex-L.sortIndex;return P!==0?P:E.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],p=[],g=1,v=null,m=3,h=!1,y=!1,k=!1,N=typeof setTimeout=="function"?setTimeout:null,u=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function c(E){for(var L=n(p);L!==null;){if(L.callback===null)r(p);else if(L.startTime<=E)r(p),L.sortIndex=L.expirationTime,t(a,L);else break;L=n(p)}}function w(E){if(k=!1,c(E),!y)if(n(a)!==null)y=!0,Ci(x);else{var L=n(p);L!==null&&Ni(w,L.startTime-E)}}function x(E,L){y=!1,k&&(k=!1,u(C),C=-1),h=!0;var P=m;try{for(c(L),v=n(a);v!==null&&(!(v.expirationTime>L)||E&&!ze());){var G=v.callback;if(typeof G=="function"){v.callback=null,m=v.priorityLevel;var J=G(v.expirationTime<=L);L=e.unstable_now(),typeof J=="function"?v.callback=J:v===n(a)&&r(a),c(L)}else r(a);v=n(a)}if(v!==null)var dr=!0;else{var kt=n(p);kt!==null&&Ni(w,kt.startTime-L),dr=!1}return dr}finally{v=null,m=P,h=!1}}var S=!1,b=null,C=-1,D=5,j=-1;function ze(){return!(e.unstable_now()-jE||125G?(E.sortIndex=P,t(p,E),n(a)===null&&E===n(p)&&(k?(u(C),C=-1):k=!0,Ni(w,P-G))):(E.sortIndex=J,t(a,E),y||h||(y=!0,Ci(x))),E},e.unstable_shouldYield=ze,e.unstable_wrapCallback=function(E){var L=m;return function(){var P=m;m=L;try{return E.apply(this,arguments)}finally{m=P}}}})(ka);Ta.exports=ka;var Gd=Ta.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Xd=W,xe=Gd;function T(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),io=Object.prototype.hasOwnProperty,Yd=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Yl={},Zl={};function Zd(e){return io.call(Zl,e)?!0:io.call(Yl,e)?!1:Yd.test(e)?Zl[e]=!0:(Yl[e]=!0,!1)}function qd(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Jd(e,t,n,r){if(t===null||typeof t>"u"||qd(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function fe(e,t,n,r,i,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var oe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){oe[e]=new fe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];oe[t]=new fe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){oe[e]=new fe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){oe[e]=new fe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){oe[e]=new fe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){oe[e]=new fe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){oe[e]=new fe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){oe[e]=new fe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){oe[e]=new fe(e,5,!1,e.toLowerCase(),null,!1,!1)});var nl=/[\-:]([a-z])/g;function rl(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(nl,rl);oe[t]=new fe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(nl,rl);oe[t]=new fe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(nl,rl);oe[t]=new fe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){oe[e]=new fe(e,1,!1,e.toLowerCase(),null,!1,!1)});oe.xlinkHref=new fe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){oe[e]=new fe(e,1,!1,e.toLowerCase(),null,!0,!0)});function il(e,t,n,r){var i=oe.hasOwnProperty(t)?oe[t]:null;(i!==null?i.type!==0:r||!(2s||i[l]!==o[s]){var a=` `+i[l].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{Pi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Cn(e):""}function ec(e){switch(e.tag){case 5:return Cn(e.type);case 16:return Cn("Lazy");case 13:return Cn("Suspense");case 19:return Cn("SuspenseList");case 0:case 2:case 15:return e=Ri(e.type,!1),e;case 11:return e=Ri(e.type.render,!1),e;case 1:return e=Ri(e.type,!0),e;default:return""}}function ao(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 Wt:return"Fragment";case Ut:return"Portal";case oo:return"Profiler";case ol:return"StrictMode";case lo:return"Suspense";case so:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ba:return(e.displayName||"Context")+".Consumer";case Sa:return(e._context.displayName||"Context")+".Provider";case ll:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case sl:return t=e.displayName||null,t!==null?t:ao(e.type)||"Memo";case nt:t=e._payload,e=e._init;try{return ao(e(t))}catch{}}return null}function tc(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 ao(t);case 8:return t===ol?"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 gt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ea(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nc(e){var t=Ea(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 hr(e){e._valueTracker||(e._valueTracker=nc(e))}function Ca(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ea(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ur(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 uo(e,t){var n=t.checked;return Q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Jl(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=gt(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 Na(e,t){t=t.checked,t!=null&&il(e,"checked",t,!1)}function co(e,t){Na(e,t);var n=gt(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")?po(e,t.type,n):t.hasOwnProperty("defaultValue")&&po(e,t.type,gt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function es(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 po(e,t,n){(t!=="number"||Ur(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Nn=Array.isArray;function Jt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=mr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Wn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var zn={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},rc=["Webkit","ms","Moz","O"];Object.keys(zn).forEach(function(e){rc.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zn[t]=zn[e]})});function Pa(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||zn.hasOwnProperty(e)&&zn[e]?(""+t).trim():t+"px"}function Ra(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Pa(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var ic=Q({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 mo(e,t){if(t){if(ic[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function go(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 vo=null;function al(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yo=null,en=null,tn=null;function rs(e){if(e=sr(e)){if(typeof yo!="function")throw Error(T(280));var t=e.stateNode;t&&(t=gi(t),yo(e.stateNode,e.type,t))}}function Oa(e){en?tn?tn.push(e):tn=[e]:en=e}function Ma(){if(en){var e=en,t=tn;if(tn=en=null,rs(e),t)for(e=0;e>>=0,e===0?32:31-(mc(e)/gc|0)|0}var gr=64,vr=4194304;function jn(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 Br(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 s=l&~i;s!==0?r=jn(s):(o&=l,o!==0&&(r=jn(o)))}else l=n&~i,l!==0?r=jn(l):o!==0&&(r=jn(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 or(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-De(t),e[t]=n}function Tc(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=Rn),ps=" ",fs=!1;function tu(e,t){switch(e){case"keyup":return Gc.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var At=!1;function Yc(e,t){switch(e){case"compositionend":return nu(t);case"keypress":return t.which!==32?null:(fs=!0,ps);case"textInput":return e=t.data,e===ps&&fs?null:e;default:return null}}function Zc(e,t){if(At)return e==="compositionend"||!gl&&tu(e,t)?(e=Ja(),Pr=fl=lt=null,At=!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=vs(n)}}function lu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?lu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function su(){for(var e=window,t=Ur();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ur(e.document)}return t}function vl(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 lp(e){var t=su(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&lu(n.ownerDocument.documentElement,n)){if(r!==null&&vl(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=ys(n,o);var l=ys(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,Ht=null,bo=null,Mn=null,_o=!1;function ws(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_o||Ht==null||Ht!==Ur(r)||(r=Ht,"selectionStart"in r&&vl(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}),Mn&&Gn(Mn,r)||(Mn=r,r=Gr(bo,"onSelect"),0Kt||(e.current=zo[Kt],zo[Kt]=null,Kt--)}function F(e,t){Kt++,zo[Kt]=e.current,e.current=t}var vt={},ue=wt(vt),ge=wt(!1),zt=vt;function sn(e,t){var n=e.type.contextTypes;if(!n)return vt;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 ve(e){return e=e.childContextTypes,e!=null}function Yr(){U(ge),U(ue)}function Es(e,t,n){if(ue.current!==vt)throw Error(T(168));F(ue,t),F(ge,n)}function gu(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(T(108,tc(e)||"Unknown",i));return Q({},n,r)}function Zr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||vt,zt=ue.current,F(ue,e),F(ge,ge.current),!0}function Cs(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=gu(e,t,zt),r.__reactInternalMemoizedMergedChildContext=e,U(ge),U(ue),F(ue,e)):U(ge),F(ge,n)}var Be=null,vi=!1,Ki=!1;function vu(e){Be===null?Be=[e]:Be.push(e)}function yp(e){vi=!0,vu(e)}function Tt(){if(!Ki&&Be!==null){Ki=!0;var e=0,t=$;try{var n=Be;for($=1;e>=l,i-=l,Ke=1<<32-De(t)+i|n<C?(D=b,b=null):D=b.sibling;var j=m(u,b,c[C],w);if(j===null){b===null&&(b=D);break}e&&b&&j.alternate===null&&t(u,b),d=o(j,d,C),S===null?x=j:S.sibling=j,S=j,b=D}if(C===c.length)return n(u,b),A&&St(u,C),x;if(b===null){for(;CC?(D=b,b=null):D=b.sibling;var ze=m(u,b,j.value,w);if(ze===null){b===null&&(b=D);break}e&&b&&ze.alternate===null&&t(u,b),d=o(ze,d,C),S===null?x=ze:S.sibling=ze,S=ze,b=D}if(j.done)return n(u,b),A&&St(u,C),x;if(b===null){for(;!j.done;C++,j=c.next())j=v(u,j.value,w),j!==null&&(d=o(j,d,C),S===null?x=j:S.sibling=j,S=j);return A&&St(u,C),x}for(b=r(u,b);!j.done;C++,j=c.next())j=h(b,u,C,j.value,w),j!==null&&(e&&j.alternate!==null&&b.delete(j.key===null?C:j.key),d=o(j,d,C),S===null?x=j:S.sibling=j,S=j);return e&&b.forEach(function(gn){return t(u,gn)}),A&&St(u,C),x}function N(u,d,c,w){if(typeof c=="object"&&c!==null&&c.type===Wt&&c.key===null&&(c=c.props.children),typeof c=="object"&&c!==null){switch(c.$$typeof){case fr:e:{for(var x=c.key,S=d;S!==null;){if(S.key===x){if(x=c.type,x===Wt){if(S.tag===7){n(u,S.sibling),d=i(S,c.props.children),d.return=u,u=d;break e}}else if(S.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===nt&&Ls(x)===S.type){n(u,S.sibling),d=i(S,c.props),d.ref=Sn(u,S,c),d.return=u,u=d;break e}n(u,S);break}else t(u,S);S=S.sibling}c.type===Wt?(d=Lt(c.props.children,u.mode,w,c.key),d.return=u,u=d):(w=Vr(c.type,c.key,c.props,null,u.mode,w),w.ref=Sn(u,d,c),w.return=u,u=w)}return l(u);case Ut:e:{for(S=c.key;d!==null;){if(d.key===S)if(d.tag===4&&d.stateNode.containerInfo===c.containerInfo&&d.stateNode.implementation===c.implementation){n(u,d.sibling),d=i(d,c.children||[]),d.return=u,u=d;break e}else{n(u,d);break}else t(u,d);d=d.sibling}d=to(c,u.mode,w),d.return=u,u=d}return l(u);case nt:return S=c._init,N(u,d,S(c._payload),w)}if(Nn(c))return y(u,d,c,w);if(yn(c))return k(u,d,c,w);br(u,c)}return typeof c=="string"&&c!==""||typeof c=="number"?(c=""+c,d!==null&&d.tag===6?(n(u,d.sibling),d=i(d,c),d.return=u,u=d):(n(u,d),d=eo(c,u.mode,w),d.return=u,u=d),l(u)):n(u,d)}return N}var un=ku(!0),xu=ku(!1),ei=wt(null),ti=null,Yt=null,kl=null;function xl(){kl=Yt=ti=null}function Sl(e){var t=ei.current;U(ei),e._currentValue=t}function Oo(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function rn(e,t){ti=e,kl=Yt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(me=!0),e.firstContext=null)}function je(e){var t=e._currentValue;if(kl!==e)if(e={context:e,memoizedValue:t,next:null},Yt===null){if(ti===null)throw Error(T(308));Yt=e,ti.dependencies={lanes:0,firstContext:e}}else Yt=Yt.next=e;return t}var Et=null;function bl(e){Et===null?Et=[e]:Et.push(e)}function Su(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,bl(t)):(n.next=i.next,i.next=n),t.interleaved=n,qe(e,r)}function qe(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var rt=!1;function _l(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Xe(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,I&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,qe(e,n)}return i=r.interleaved,i===null?(t.next=t,bl(r)):(t.next=i.next,i.next=t),r.interleaved=t,qe(e,n)}function Or(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,dl(e,n)}}function zs(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=l:o=o.next=l,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ni(e,t,n,r){var i=e.updateQueue;rt=!1;var o=i.firstBaseUpdate,l=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var a=s,p=a.next;a.next=null,l===null?o=p:l.next=p,l=a;var g=e.alternate;g!==null&&(g=g.updateQueue,s=g.lastBaseUpdate,s!==l&&(s===null?g.firstBaseUpdate=p:s.next=p,g.lastBaseUpdate=a))}if(o!==null){var v=i.baseState;l=0,g=p=a=null,s=o;do{var m=s.lane,h=s.eventTime;if((r&m)===m){g!==null&&(g=g.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,k=s;switch(m=t,h=n,k.tag){case 1:if(y=k.payload,typeof y=="function"){v=y.call(h,v,m);break e}v=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=k.payload,m=typeof y=="function"?y.call(h,v,m):y,m==null)break e;v=Q({},v,m);break e;case 2:rt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[s]:m.push(s))}else h={eventTime:h,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},g===null?(p=g=h,a=v):g=g.next=h,l|=m;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(g===null&&(a=v),i.baseState=a,i.firstBaseUpdate=p,i.lastBaseUpdate=g,t=i.shared.interleaved,t!==null){i=t;do l|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Ot|=l,e.lanes=l,e.memoizedState=v}}function Ps(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Xi.transition;Xi.transition={};try{e(!1),t()}finally{$=n,Xi.transition=r}}function Uu(){return Le().memoizedState}function xp(e,t,n){var r=ht(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Wu(e))Au(t,n);else if(n=Su(e,t,n,r),n!==null){var i=ce();Ie(n,e,r,i),Hu(n,t,r)}}function Sp(e,t,n){var r=ht(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Wu(e))Au(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,s=o(l,n);if(i.hasEagerState=!0,i.eagerState=s,$e(s,l)){var a=t.interleaved;a===null?(i.next=i,bl(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Su(e,t,i,r),n!==null&&(i=ce(),Ie(n,e,r,i),Hu(n,t,r))}}function Wu(e){var t=e.alternate;return e===B||t!==null&&t===B}function Au(e,t){Dn=ii=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Hu(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,dl(e,n)}}var oi={readContext:je,useCallback:le,useContext:le,useEffect:le,useImperativeHandle:le,useInsertionEffect:le,useLayoutEffect:le,useMemo:le,useReducer:le,useRef:le,useState:le,useDebugValue:le,useDeferredValue:le,useTransition:le,useMutableSource:le,useSyncExternalStore:le,useId:le,unstable_isNewReconciler:!1},bp={readContext:je,useCallback:function(e,t){return Ve().memoizedState=[e,t===void 0?null:t],e},useContext:je,useEffect:Os,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Dr(4194308,4,Du.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Dr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Dr(4,2,e,t)},useMemo:function(e,t){var n=Ve();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ve();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=xp.bind(null,B,e),[r.memoizedState,e]},useRef:function(e){var t=Ve();return e={current:e},t.memoizedState=e},useState:Rs,useDebugValue:Rl,useDeferredValue:function(e){return Ve().memoizedState=e},useTransition:function(){var e=Rs(!1),t=e[0];return e=kp.bind(null,e[1]),Ve().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=B,i=Ve();if(A){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),ne===null)throw Error(T(349));Rt&30||Nu(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Os(Lu.bind(null,r,o,e),[e]),r.flags|=2048,nr(9,ju.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ve(),t=ne.identifierPrefix;if(A){var n=Ge,r=Ke;n=(r&~(1<<32-De(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=er++,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[Ue]=t,e[Zn]=r,ed(e,t,!1,!1),t.stateNode=e;e:{switch(l=go(n,r),n){case"dialog":V("cancel",e),V("close",e),i=r;break;case"iframe":case"object":case"embed":V("load",e),i=r;break;case"video":case"audio":for(i=0;ipn&&(t.flags|=128,r=!0,bn(o,!1),t.lanes=4194304)}else{if(!r)if(e=ri(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),bn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!A)return se(t),null}else 2*X()-o.renderingStartTime>pn&&n!==1073741824&&(t.flags|=128,r=!0,bn(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=X(),t.sibling=null,n=H.current,F(H,r?n&1|2:n&1),t):(se(t),null);case 22:case 23:return Fl(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?we&1073741824&&(se(t),t.subtreeFlags&6&&(t.flags|=8192)):se(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function Pp(e,t){switch(wl(t),t.tag){case 1:return ve(t.type)&&Yr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return dn(),U(ge),U(ue),Nl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Cl(t),null;case 13:if(U(H),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));an()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(H),null;case 4:return dn(),null;case 10:return Sl(t.type._context),null;case 22:case 23:return Fl(),null;case 24:return null;default:return null}}var Er=!1,ae=!1,Rp=typeof WeakSet=="function"?WeakSet:Set,_=null;function Zt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){K(e,t,r)}else n.current=null}function Ao(e,t,n){try{n()}catch(r){K(e,t,r)}}var Bs=!1;function Op(e,t){if(Eo=Qr,e=su(),vl(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,s=-1,a=-1,p=0,g=0,v=e,m=null;t:for(;;){for(var h;v!==n||i!==0&&v.nodeType!==3||(s=l+i),v!==o||r!==0&&v.nodeType!==3||(a=l+r),v.nodeType===3&&(l+=v.nodeValue.length),(h=v.firstChild)!==null;)m=v,v=h;for(;;){if(v===e)break t;if(m===n&&++p===i&&(s=l),m===o&&++g===r&&(a=l),(h=v.nextSibling)!==null)break;v=m,m=v.parentNode}v=h}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Co={focusedElem:e,selectionRange:n},Qr=!1,_=t;_!==null;)if(t=_,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_=e;else for(;_!==null;){t=_;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var k=y.memoizedProps,N=y.memoizedState,u=t.stateNode,d=u.getSnapshotBeforeUpdate(t.elementType===t.type?k:Re(t.type,k),N);u.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var c=t.stateNode.containerInfo;c.nodeType===1?c.textContent="":c.nodeType===9&&c.documentElement&&c.removeChild(c.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(w){K(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,_=e;break}_=t.return}return y=Bs,Bs=!1,y}function In(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&&Ao(t,n,o)}i=i.next}while(i!==r)}}function Ti(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 Ho(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 rd(e){var t=e.alternate;t!==null&&(e.alternate=null,rd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ue],delete t[Zn],delete t[Lo],delete t[gp],delete t[vp])),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 id(e){return e.tag===5||e.tag===3||e.tag===4}function Qs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||id(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 Bo(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=Xr));else if(r!==4&&(e=e.child,e!==null))for(Bo(e,t,n),e=e.sibling;e!==null;)Bo(e,t,n),e=e.sibling}function Qo(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(Qo(e,t,n),e=e.sibling;e!==null;)Qo(e,t,n),e=e.sibling}var re=null,Oe=!1;function tt(e,t,n){for(n=n.child;n!==null;)od(e,t,n),n=n.sibling}function od(e,t,n){if(We&&typeof We.onCommitFiberUnmount=="function")try{We.onCommitFiberUnmount(pi,n)}catch{}switch(n.tag){case 5:ae||Zt(n,t);case 6:var r=re,i=Oe;re=null,tt(e,t,n),re=r,Oe=i,re!==null&&(Oe?(e=re,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):re.removeChild(n.stateNode));break;case 18:re!==null&&(Oe?(e=re,n=n.stateNode,e.nodeType===8?Qi(e.parentNode,n):e.nodeType===1&&Qi(e,n),Qn(e)):Qi(re,n.stateNode));break;case 4:r=re,i=Oe,re=n.stateNode.containerInfo,Oe=!0,tt(e,t,n),re=r,Oe=i;break;case 0:case 11:case 14:case 15:if(!ae&&(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)&&Ao(n,t,l),i=i.next}while(i!==r)}tt(e,t,n);break;case 1:if(!ae&&(Zt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){K(n,t,s)}tt(e,t,n);break;case 21:tt(e,t,n);break;case 22:n.mode&1?(ae=(r=ae)||n.memoizedState!==null,tt(e,t,n),ae=r):tt(e,t,n);break;default:tt(e,t,n)}}function Ks(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Rp),t.forEach(function(r){var i=Ap.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Pe(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~o}if(r=i,r=X()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Dp(r/1960))-r,10e?16:e,st===null)var r=!1;else{if(e=st,st=null,ai=0,I&6)throw Error(T(331));var i=I;for(I|=4,_=e.current;_!==null;){var o=_,l=o.child;if(_.flags&16){var s=o.deletions;if(s!==null){for(var a=0;aX()-Il?jt(e,0):Dl|=n),ye(e,t)}function fd(e,t){t===0&&(e.mode&1?(t=vr,vr<<=1,!(vr&130023424)&&(vr=4194304)):t=1);var n=ce();e=qe(e,t),e!==null&&(or(e,t,n),ye(e,n))}function Wp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),fd(e,n)}function Ap(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(T(314))}r!==null&&r.delete(t),fd(e,n)}var hd;hd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ge.current)me=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return me=!1,Lp(e,t,n);me=!!(e.flags&131072)}else me=!1,A&&t.flags&1048576&&yu(t,Jr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ir(e,t),e=t.pendingProps;var i=sn(t,ue.current);rn(t,n),i=Ll(null,t,r,e,i,n);var o=zl();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,ve(r)?(o=!0,Zr(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,_l(t),i.updater=wi,t.stateNode=i,i._reactInternals=t,Do(t,r,e,n),t=Fo(null,t,r,!0,o,n)):(t.tag=0,A&&o&&yl(t),de(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ir(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Bp(r),e=Re(r,e),i){case 0:t=$o(null,t,r,e,n);break e;case 1:t=Ws(null,t,r,e,n);break e;case 11:t=Vs(null,t,r,e,n);break e;case 14:t=Us(null,t,r,Re(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Re(r,i),$o(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Re(r,i),Ws(e,t,r,i,n);case 3:e:{if(Zu(t),e===null)throw Error(T(387));r=t.pendingProps,o=t.memoizedState,i=o.element,bu(e,t),ni(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=cn(Error(T(423)),t),t=As(e,t,r,n,i);break e}else if(r!==i){i=cn(Error(T(424)),t),t=As(e,t,r,n,i);break e}else for(Te=ct(t.stateNode.containerInfo.firstChild),ke=t,A=!0,Me=null,n=xu(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(an(),r===i){t=Je(e,t,n);break e}de(e,t,r,n)}t=t.child}return t;case 5:return _u(t),e===null&&Ro(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,No(r,i)?l=null:o!==null&&No(r,o)&&(t.flags|=32),Yu(e,t),de(e,t,l,n),t.child;case 6:return e===null&&Ro(t),null;case 13:return qu(e,t,n);case 4:return El(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=un(t,null,r,n):de(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Re(r,i),Vs(e,t,r,i,n);case 7:return de(e,t,t.pendingProps,n),t.child;case 8:return de(e,t,t.pendingProps.children,n),t.child;case 12:return de(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,F(ei,r._currentValue),r._currentValue=l,o!==null)if($e(o.value,l)){if(o.children===i.children&&!ge.current){t=Je(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){l=o.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Xe(-1,n&-n),a.tag=2;var p=o.updateQueue;if(p!==null){p=p.shared;var g=p.pending;g===null?a.next=a:(a.next=g.next,g.next=a),p.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Oo(o.return,n,t),s.lanes|=n;break}a=a.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(T(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Oo(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}de(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,rn(t,n),i=je(i),r=r(i),t.flags|=1,de(e,t,r,n),t.child;case 14:return r=t.type,i=Re(r,t.pendingProps),i=Re(r.type,i),Us(e,t,r,i,n);case 15:return Gu(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Re(r,i),Ir(e,t),t.tag=1,ve(r)?(e=!0,Zr(t)):e=!1,rn(t,n),Bu(t,r,i),Do(t,r,i,n),Fo(null,t,r,!0,e,n);case 19:return Ju(e,t,n);case 22:return Xu(e,t,n)}throw Error(T(156,t.tag))};function md(e,t){return Wa(e,t)}function Hp(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 Ce(e,t,n,r){return new Hp(e,t,n,r)}function Ul(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bp(e){if(typeof e=="function")return Ul(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ll)return 11;if(e===sl)return 14}return 2}function mt(e,t){var n=e.alternate;return n===null?(n=Ce(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 Vr(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")Ul(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Wt:return Lt(n.children,i,o,t);case ol:l=8,i|=8;break;case oo:return e=Ce(12,n,t,i|2),e.elementType=oo,e.lanes=o,e;case lo:return e=Ce(13,n,t,i),e.elementType=lo,e.lanes=o,e;case so:return e=Ce(19,n,t,i),e.elementType=so,e.lanes=o,e;case _a:return xi(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Sa:l=10;break e;case ba:l=9;break e;case ll:l=11;break e;case sl:l=14;break e;case nt:l=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=Ce(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Lt(e,t,n,r){return e=Ce(7,e,r,t),e.lanes=n,e}function xi(e,t,n,r){return e=Ce(22,e,r,t),e.elementType=_a,e.lanes=n,e.stateNode={isHidden:!1},e}function eo(e,t,n){return e=Ce(6,e,null,t),e.lanes=n,e}function to(e,t,n){return t=Ce(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Qp(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=Mi(0),this.expirationTimes=Mi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mi(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Wl(e,t,n,r,i,o,l,s,a){return e=new Qp(e,t,n,s,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ce(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_l(o),e}function Kp(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wd)}catch(e){console.error(e)}}wd(),wa.exports=Se;var qp=wa.exports,ta=qp;ro.createRoot=ta.createRoot,ro.hydrateRoot=ta.hydrateRoot;var Td={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",l=0;l{const o=e/t*(r-n);return Math.round(o)},ia=(e,t,n,r)=>{const o=Number(e)/(r-n)*t;return Math.round(o)};function Vn({id:e,color:t}){const{cssvars:n,updateVar:r}=W.useContext(ur),{start:i,current:o,kind:l}=n[e],[s,a]=l?ra[l]:ra.any,p=W.useRef(null),g=W.useRef(null),[v,m]=W.useState(!1),[h,y]=W.useState(ia(i,360,s,a)),k=S=>{m(!0);const C=p.current.getBoundingClientRect(),D=S.clientX-C.left;y(Math.round(D))},N=()=>{m(!1)},u=()=>{m(!1)};W.useEffect(()=>{if(!v)return;const b=p.current.getBoundingClientRect(),C=wf(h,b.width,s,a);r(e,C)},[e,v,s,a,r,h]),W.useEffect(()=>{const S=ia(o,360,s,a);y(Math.round(S))},[s,a,o]),W.useEffect(()=>{const S=b=>{if(!v||!p.current||!g.current)return;const D=p.current.getBoundingClientRect();let j=b.clientX-D.left;j<0?j=0:j>D.width&&(j=D.width),y(Math.round(j))};return window.addEventListener("mousemove",S),()=>{window.removeEventListener("mousemove",S)}},[v,s,a,h]),W.useEffect(()=>(window.addEventListener("mouseleave",N),()=>{window.removeEventListener("mouseleave",N)}),[]),W.useEffect(()=>(window.addEventListener("mouseup",u),()=>{window.removeEventListener("mouseup",u)}),[]);const d=Qe({[En.main]:!0,[En.moving]:v}),c=Qe({[En.background]:!0,[En[l]]:!0}),w=t?{"--h":`var(--bulma-${t}-h)`,"--s":`var(--bulma-${t}-s)`,"--l":`var(--bulma-${t}-l)`}:{},x={transform:`translateX(${h}px)`};return f.jsx("div",{className:d,ref:p,style:w,onMouseDown:k,children:f.jsx("div",{className:c,children:f.jsx("span",{ref:g,className:En.handle,style:x})})})}Vn.propTypes={id:Nt.string,color:Nt.string};const Tf="_main_17ce3_1",kf="_swatch_17ce3_7",xf="_name_17ce3_15",Sf="_lines_17ce3_29",bf="_line_17ce3_29",_f="_label_17ce3_46",Ef="_slider_17ce3_50",Cf="_form_17ce3_56",Nf="_example_17ce3_78",ee={main:Tf,swatch:kf,name:xf,lines:Sf,line:bf,label:_f,slider:Ef,form:Cf,example:Nf};function jf(e){e=e.replace(/^#/,"");let t=parseInt(e.slice(0,2),16),n=parseInt(e.slice(2,4),16),r=parseInt(e.slice(4,6),16);t/=255,n/=255,r/=255;let i=Math.max(t,n,r),o=Math.min(t,n,r),l,s,a=(i+o)/2;if(i===o)l=s=0;else{let p=i-o;switch(s=a>.5?p/(2-i-o):p/(i+o),i){case t:l=(n-r)/p+(n{u.preventDefault(),n(l.id,l.start),n(s.id,s.start),n(a.id,a.start)},m=u=>{u.preventDefault();let d=window.prompt("Enter a Hexadecimal value (e.g. 00d1b2)");if(d.startsWith("#")&&(d=d.replace(/^#/,"")),!/^([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6})$/.test(d)||d.length>6){window.prompt("That is not a valid Hexadecimal value. Please try again.");return}d.length===3&&(d=d[0]+d[0]+d[1]+d[1]+d[2]+d[2]);const{hue:w,saturation:x,lightness:S}=jf(d);n(l.id,w),n(s.id,x),n(a.id,S)},h=(u,d)=>{let c=u.target.value;n(d.id,c)};if(!l||!s||!a)return;const y=Number(l.current)===Number(l.start)&&Number(s.current)===Number(s.start)&&Number(a.current)===Number(a.start),k=Qe({button:!0,"is-danger is-outlined":!y}),N=y?{opacity:.1}:{};return f.jsxs("div",{className:ee.main,style:p,children:[f.jsxs("div",{className:ee.side,children:[f.jsxs("div",{className:"buttons are-small is-float-right ml-2",children:[f.jsx("button",{className:"button",onClick:m,children:"Enter a Hex code"}),f.jsx("button",{className:k,style:N,onClick:v,disabled:y,children:"Reset"})]}),f.jsxs("div",{className:ee.name,children:[f.jsx("div",{className:ee.swatch}),f.jsx("p",{children:g})]})]}),f.jsxs("div",{className:ee.lines,children:[f.jsxs("div",{className:ee.line,children:[f.jsx("p",{className:ee.label,children:"Hue"}),f.jsxs("div",{className:ee.slider,children:[f.jsx(Vn,{id:r,kind:"hue",color:e}),f.jsxs("p",{className:ee.form,children:[f.jsx("input",{type:"text",className:"input",value:Number(l.current),onChange:u=>h(u,l),size:"3"}),f.jsx("span",{children:l.unit})]})]})]}),f.jsxs("div",{className:ee.line,children:[f.jsx("p",{className:ee.label,children:"Saturation"}),f.jsxs("div",{className:ee.slider,children:[f.jsx(Vn,{id:i,kind:"saturation",color:e}),f.jsxs("p",{className:ee.form,children:[f.jsx("input",{type:"text",className:"input",value:Number(s.current),onChange:u=>h(u,s),size:"3"}),f.jsx("span",{children:s.unit})]})]})]}),f.jsxs("div",{className:ee.line,children:[f.jsx("p",{className:ee.label,children:"Lightness"}),f.jsxs("div",{className:ee.slider,children:[f.jsx(Vn,{id:o,kind:"lightness",color:e}),f.jsxs("p",{className:ee.form,children:[f.jsx("input",{type:"text",className:"input",value:Number(a.current),onChange:u=>h(u,a),size:"3"}),f.jsx("span",{children:a.unit})]})]})]})]}),f.jsx("div",{className:ee.example,children:f.jsx("button",{className:`button is-${e}`,children:g})})]})}bd.propTypes={color:Nt.string,h:Nt.string,s:Nt.string,l:Nt.string};const Lf=["primary","link","info","success","warning","danger"];function zf(){return f.jsx("div",{className:z.colors,children:Lf.map(e=>f.jsx(bd,{color:e},e))})}const Pf="_main_1itpo_1",Rf="_side_1itpo_13",Of="_name_1itpo_17",Mf="_slider_1itpo_32",Df="_form_1itpo_41",If="_description_1itpo_62",Ft={main:Pf,side:Rf,name:Of,slider:Mf,form:Df,description:If};function M({id:e}){const{cssvars:t,updateVar:n}=W.useContext(ur),r=t[e];if(!r)return;const i=g=>{g.preventDefault(),n(r.id,r.start)},o=(g,v)=>{let m=g.target.value;n(v.id,m)},l=r.current==r.start,s=Qe({"button is-small":!0,"is-float-right":!0,"ml-2":!0,"is-danger is-outlined":!l}),a=l?{opacity:.1}:{};let p;switch(r.kind){case"hue":case"saturation":case"lightness":case"delta":p=f.jsxs(f.Fragment,{children:[f.jsx(Vn,{id:r.id}),f.jsxs("p",{className:Ft.form,children:[f.jsx("input",{type:"text",className:"input",value:r.current,onChange:g=>o(g,r),size:"3"}),f.jsx("span",{children:r.unit})]})]});break;default:p=f.jsx("input",{className:"input",type:"text",value:r.current,onChange:g=>o(g,r)});break}return f.jsxs("div",{className:Ft.main,children:[f.jsxs("div",{className:Ft.side,children:[f.jsx("button",{className:s,onClick:i,disabled:l,style:a,children:"Reset"}),f.jsx("div",{className:Ft.name,children:f.jsx("code",{children:r.id})}),f.jsx("div",{className:Ft.description,children:r.description})]}),f.jsx("div",{className:Ft.slider,children:p})]})}M.propTypes={id:Nt.string};function $f(){const e=O.scheme.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function Ff(){const e=O.typography.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function Vf(){const e=O.other.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function Uf(){const e=O.generic.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function Wf(){const e=O.skeleton.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function Af(){const e=O.breadcrumb.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function Hf(){const e=O.card.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function Bf(){const e=O.dropdown.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function Qf(){const e=O.menu.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function Kf(){const e=O.message.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function Gf(){const e=O.modal.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function Xf(){const e=O.navbar.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function Yf(){const e=O.pagination.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function Zf(){const e=O.panel.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function qf(){const e=O.tabs.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function Jf(){const e=O.box.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function eh(){const e=O.content.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function th(){const e=O.delete.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function nh(){const e=O.icon.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function rh(){const e=O.notification.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function ih(){const e=O.progress.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function oh(){const e=O.table.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function lh(){const e=O.tag.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function sh(){const e=O.title.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function ah(){const e=O.control.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function uh(){const e=O.input.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function dh(){const e=O.file.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function ch(){const e=O.columns.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function ph(){const e=O.grid.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function fh(){const e=O.footer.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function hh(){const e=O.hero.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function mh(){const e=O.media.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}function gh(){const e=O.section.map(t=>t.id);return f.jsx("div",{className:z.items,children:e.map(t=>f.jsx(M,{id:t},t))})}const vh="_main_uds4w_1",yh="_body_uds4w_5",wh="_explanation_uds4w_13",Th="_go_uds4w_27",kh="_pre_uds4w_31",Vt={main:vh,body:yh,explanation:wh,go:Th,pre:kh};function xh(){const{cssvars:e,resetVars:t,hideExport:n}=W.useContext(ur),[r,i]=W.useState(""),[o,l]=W.useState(!1),s=g=>{g.preventDefault(),window.confirm("Are you sure?")&&t()},a=g=>{g.preventDefault(),n()},p=async g=>{g.preventDefault();try{await navigator.clipboard.writeText(r),l(!0),window.setTimeout(()=>{l(!1)},500)}catch(v){console.error("Failed to copy!",v)}};return W.useEffect(()=>{const g={};Object.values(e).forEach(m=>{const{id:h,current:y,start:k,scope:N,unit:u}=m;if(y==k)return;const d=`${y}${u}`,c=`--bulma-${h}: ${d}; `;N in g?g[N].push(c):g[N]=[c]});let v="";for(const[m,h]of Object.entries(g))v+=`${m} { `,h.forEach(y=>v+=` ${y}`),v+=`} `;i(v)},[e]),f.jsxs("div",{className:Vt.main,children:[f.jsxs("div",{className:Vt.body,children:[f.jsx("p",{className:"title is-5",children:"Export"}),r?f.jsxs("div",{className:Vt.explanation,children:[f.jsxs("p",{children:["Insert this CSS ",f.jsx("em",{children:"after"})," importing Bulma."]}),f.jsxs("div",{className:"buttons are-small",children:[o?f.jsx("span",{className:"button is-success",children:"Copied!"}):f.jsx("button",{onClick:p,className:"button is-primary",children:"Copy"}),f.jsx("button",{onClick:s,className:"button is-danger is-outlined",children:"Reset"})]})]}):f.jsxs(f.Fragment,{children:[f.jsx("div",{className:Vt.explanation,children:f.jsx("p",{children:"Customize CSS variables in the other pages and come back here to find the generated CSS."})}),f.jsx("div",{className:Vt.go,children:f.jsx("button",{className:"button is-primary",onClick:a,children:"Let's go!"})})]})]}),r&&f.jsx("pre",{className:Vt.pre,children:r.trim()})]})}const oa={"-h":"hue","-s":"saturation","-l":"lightness","-delta":"delta","-color":"color"},Sh=["deg","%"],la={colors:f.jsx(zf,{}),scheme:f.jsx($f,{}),typography:f.jsx(Ff,{}),other:f.jsx(Vf,{}),generic:f.jsx(Uf,{}),skeleton:f.jsx(Wf,{}),breadcrumb:f.jsx(Af,{}),card:f.jsx(Hf,{}),dropdown:f.jsx(Bf,{}),menu:f.jsx(Qf,{}),message:f.jsx(Kf,{}),modal:f.jsx(Gf,{}),navbar:f.jsx(Xf,{}),pagination:f.jsx(Yf,{}),panel:f.jsx(Zf,{}),tabs:f.jsx(qf,{}),box:f.jsx(Jf,{}),content:f.jsx(eh,{}),delete:f.jsx(th,{}),icon:f.jsx(nh,{}),notification:f.jsx(rh,{}),progress:f.jsx(ih,{}),table:f.jsx(oh,{}),tag:f.jsx(lh,{}),title:f.jsx(sh,{}),control:f.jsx(ah,{}),input:f.jsx(uh,{}),file:f.jsx(dh,{}),columns:f.jsx(ch,{}),grid:f.jsx(ph,{}),footer:f.jsx(fh,{}),hero:f.jsx(hh,{}),media:f.jsx(mh,{}),section:f.jsx(gh,{}),export:f.jsx(xh,{})},bh=["Global Variables","Components","Elements","Form","Grid","Layout","Export"],no={"Global Variables":["colors","scheme","typography","other","generic","skeleton"],Components:["breadcrumb","card","dropdown","menu","message","modal","navbar","pagination","panel","tabs"],Elements:["box","content","delete","icon","notification","progress","table","tag","title"],Form:["control","input","file"],Grid:["columns","grid"],Layout:["footer","hero","media","section"],Export:["export"]},sa="bulma-customizer-vars",ur=W.createContext({isOpen:!1,showExport:!1,cssvars:{},saved:{},currentTab:"",currentPage:"",getVar:()=>{},changeTab:()=>{},changePage:()=>{},updateVar:()=>{},hideExport:()=>{}});function _h(){const e=W.useRef(),t={isOpen:!1,showExport:!1,cssvars:{},saved:{},currentTab:"Global Variables",currentPage:"colors",getVar:h=>n.cssvars[h],changeTab:h=>{r(y=>({...y,currentTab:h}))},changePage:h=>{r(y=>({...y,currentPage:h}))},updateVar:(h,y)=>{r(k=>({...k,cssvars:{...k.cssvars,[h]:{...k.cssvars[h],current:y}}}))},resetVars:()=>{r(h=>{const y={};for(const[k,N]of Object.entries(h.cssvars)){const u={...N,current:N.start};y[k]=u}return{...h,cssvars:y}})},hideExport:()=>{r(h=>({...h,showExport:!1}))}},[n,r]=W.useState(()=>{const h=localStorage.getItem(sa);if(h){const y=JSON.parse(h);t.cssvars=y,t.saved=y}return t}),i=h=>{h.preventDefault();const y=h.target.value;n.changeTab(y),n.changePage(no[y][0])},o=(h,y)=>{h.preventDefault(),n.changePage(y)},l=h=>{h.preventDefault(),r(y=>({...y,isOpen:!y.isOpen}))},s=h=>{h.preventDefault(),r(y=>({...y,showExport:!y.showExport}))};W.useEffect(()=>{const h={root:window.getComputedStyle(document.documentElement),breadcrumb:window.getComputedStyle(document.querySelector(".breadcrumb")),card:window.getComputedStyle(document.querySelector(".card")),dropdown:window.getComputedStyle(document.querySelector(".dropdown")),menu:window.getComputedStyle(document.querySelector(".menu")),message:window.getComputedStyle(document.querySelector(".message")),modal:window.getComputedStyle(document.querySelector(".modal")),navbar:window.getComputedStyle(document.querySelector(".navbar")),pagination:window.getComputedStyle(document.querySelector(".pagination")),panel:window.getComputedStyle(document.querySelector(".panel")),tabs:window.getComputedStyle(document.querySelector(".tabs")),box:window.getComputedStyle(document.querySelector(".box")),content:window.getComputedStyle(document.querySelector(".content")),delete:window.getComputedStyle(document.querySelector(".delete")),icon:window.getComputedStyle(document.querySelector(".icon")),notification:window.getComputedStyle(document.querySelector(".notification")),progress:window.getComputedStyle(document.querySelector(".progress")),table:window.getComputedStyle(document.querySelector(".table")),tag:window.getComputedStyle(document.querySelector(".tag")),title:window.getComputedStyle(document.querySelector(".title")),file:window.getComputedStyle(document.querySelector(".file")),input:window.getComputedStyle(document.querySelector(".input")),columns:window.getComputedStyle(document.querySelector(".columns")),grid:window.getComputedStyle(document.querySelector(".grid")),footer:window.getComputedStyle(document.querySelector(".footer")),hero:window.getComputedStyle(document.querySelector(".hero")),media:window.getComputedStyle(document.querySelector(".media")),section:window.getComputedStyle(document.querySelector(".section"))},y={},k=Object.values(no).flat().map(u=>{if(u in O)return O[u]}).flat();k.map(u=>{if(u)return u.id}).map(u=>{var C;if(!u)return;if(u in n.saved){y[u]=n.saved[u];return}let d,c=":root";u.startsWith("breadcrumb")?(c=".breadcrumb",d=h.breadcrumb.getPropertyValue(`--bulma-${u}`)):u.startsWith("card")?(c=".card",d=h.card.getPropertyValue(`--bulma-${u}`)):u.startsWith("dropdown")?(c=".dropdown",d=h.dropdown.getPropertyValue(`--bulma-${u}`)):u.startsWith("menu")?(c=".menu",d=h.menu.getPropertyValue(`--bulma-${u}`)):u.startsWith("message")?(c=".message",d=h.message.getPropertyValue(`--bulma-${u}`)):u.startsWith("modal")?(c=".modal",d=h.modal.getPropertyValue(`--bulma-${u}`)):u.startsWith("navbar")?(c=".navbar",d=h.navbar.getPropertyValue(`--bulma-${u}`)):u.startsWith("pagination")?(c=".pagination",d=h.pagination.getPropertyValue(`--bulma-${u}`)):u.startsWith("panel")?(c=".panel",d=h.panel.getPropertyValue(`--bulma-${u}`)):u.startsWith("tabs")?(c=".tabs",d=h.tabs.getPropertyValue(`--bulma-${u}`)):u.startsWith("box")?(c=".box",d=h.box.getPropertyValue(`--bulma-${u}`)):u.startsWith("content")?(c=".content",d=h.content.getPropertyValue(`--bulma-${u}`)):u.startsWith("delete")?(c=".delete",d=h.delete.getPropertyValue(`--bulma-${u}`)):u.startsWith("icon")?(c=".icon",d=h.icon.getPropertyValue(`--bulma-${u}`)):u.startsWith("notification")?(c=".notification",d=h.notification.getPropertyValue(`--bulma-${u}`)):u.startsWith("progress")?(c=".progress",d=h.progress.getPropertyValue(`--bulma-${u}`)):u.startsWith("table")?(c=".table",d=h.table.getPropertyValue(`--bulma-${u}`)):u.startsWith("tag")?(c=".tag",d=h.tag.getPropertyValue(`--bulma-${u}`)):u.startsWith("title")?(c=".title",d=h.title.getPropertyValue(`--bulma-${u}`)):u.startsWith("file")?(c=".file",d=h.file.getPropertyValue(`--bulma-${u}`)):u.startsWith("input")?(c=".input",d=h.input.getPropertyValue(`--bulma-${u}`)):u.startsWith("columns")?(c=".columns",d=h.columns.getPropertyValue(`--bulma-${u}`)):u.startsWith("grid")?(c=".grid",d=h.grid.getPropertyValue(`--bulma-${u}`)):u.startsWith("footer")?(c=".footer",d=h.footer.getPropertyValue(`--bulma-${u}`)):u.startsWith("hero")?(c=".hero",d=h.hero.getPropertyValue(`--bulma-${u}`)):u.startsWith("media")?(c=".media",d=h.media.getPropertyValue(`--bulma-${u}`)):u.startsWith("section")?(c=".section",d=h.section.getPropertyValue(`--bulma-${u}`)):d=h.root.getPropertyValue(`--bulma-${u}`);const w=Object.keys(oa).find(D=>u.endsWith(D)),x=Sh.find(D=>d.endsWith(D))||"",S=x!==""?d.split(x)[0]:d,b=((C=k.find(D=>D.id===u))==null?void 0:C.description)||"None";y[u]={id:u,kind:oa[w]||"any",original:d,unit:x,current:S,start:S,description:b,scope:c}}),r(u=>({...u,cssvars:y}))},[n.saved]),W.useEffect(()=>{const h={},y={};Object.values(n.cssvars).forEach(N=>{const{id:u,current:d,start:c,scope:w,unit:x}=N;if(d==c)return;y[u]=N;const S=`${d}${x}`,b=`--bulma-${u}: ${S} !important;`;w in h?h[w].push(b):h[w]=[b]});let k="";for(const[N,u]of Object.entries(h))k+=`${N} {`,u.forEach(d=>k+=d),k+="}";e&&(e.current.innerHTML=k),localStorage.setItem(sa,JSON.stringify(y))},[n.cssvars]);const a={"--bulma-tabs-link-active-color":"var(--bulma-primary)"},p=Qe({[z.customizer]:!0,[z.open]:n.isOpen}),g=Qe({[z.controls]:!0}),v=Qe({[z.button]:!0,"is-hidden":!n.isOpen,button:!n.showExport,"button is-primary":n.showExport}),m=Qe({[z.button]:!0,"button is-primary":!n.isOpen,button:n.isOpen});return f.jsx(ur.Provider,{value:n,children:f.jsxs("div",{className:z.app,children:[f.jsx("style",{ref:e}),f.jsx("div",{className:p,children:n.showExport?la.export:f.jsxs(f.Fragment,{children:[" ",f.jsxs("div",{className:g,children:[f.jsx("div",{className:"select",style:a,children:f.jsx("select",{onChange:i,value:n.currentTab,children:bh.map(h=>f.jsx("option",{value:h,children:na(h)},h))})}),no[n.currentTab].map(h=>{const y=Qe({button:!0,"is-primary":h===n.currentPage});return f.jsx("button",{className:y,onClick:k=>o(k,h),children:na(h)},h)})]}),la[n.currentPage]]})}),f.jsxs("div",{className:z.buttons,children:[f.jsxs("button",{className:v,onClick:s,children:[f.jsx("i",{className:"fa-solid fa-code"}),f.jsx("span",{children:"Export"})]}),f.jsxs("button",{className:m,onClick:l,children:[f.jsx("i",{className:"fa-solid fa-palette"}),f.jsx("span",{children:n.isOpen?"Close Customizer":"Open Customizer"})]})]})]})})}ro.createRoot(document.getElementById("bulma-customizer-app")).render(f.jsx(Ud.StrictMode,{children:f.jsx(_h,{})}));