limbo-component 1.6.1 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/limbo.cjs.js +3 -3
- package/dist/limbo.cjs.map +1 -1
- package/dist/limbo.es.js +69 -88
- package/dist/limbo.es.map +1 -1
- package/dist/limbo.min.js +2 -2
- package/dist/limbo.min.js.map +1 -1
- package/dist/limbo.umd.js +2 -2
- package/dist/limbo.umd.js.map +1 -1
- package/dist/types/components/ImageCard.d.ts.map +1 -1
- package/dist/types/core/LimboCore.d.ts.map +1 -1
- package/package.json +3 -2
package/dist/limbo.cjs.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/function g(){if(p)return s;p=1;var n=h(),r=e,a=t;function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function l(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function c(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function u(e){if(l(e)!==e)throw Error(o(188))}function d(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=d(e)))return t;e=e.sibling}return null}var f=Object.assign,m=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),x=Symbol.for("react.consumer"),S=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),z=Symbol.for("react.memo_cache_sentinel"),R=Symbol.iterator;function j(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=R&&e[R]||e["@@iterator"])?e:null}var A=Symbol.for("react.client.reference");function I(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===A?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case y:return"Fragment";case w:return"Profiler";case v:return"StrictMode";case E:return"Suspense";case T:return"SuspenseList";case P:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case b:return"Portal";case S:return(e.displayName||"Context")+".Provider";case x:return(e._context.displayName||"Context")+".Consumer";case C:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case _:return null!==(t=e.displayName||null)?t:I(e.type)||"Memo";case N:t=e._payload,e=e._init;try{return I(e(t))}catch(n){}}return null}var L=Array.isArray,M=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},O=[],F=-1;function U(e){return{current:e}}function H(e){0>F||(e.current=O[F],O[F]=null,F--)}function W(e,t){F++,O[F]=e.current,e.current=t}var B=U(null),V=U(null),q=U(null),Q=U(null);function K(e,t){switch(W(q,t),W(V,e),W(B,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?id(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=ld(t=id(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(B),W(B,e)}function Y(){H(B),H(V),H(q)}function G(e){null!==e.memoizedState&&W(Q,e);var t=B.current,n=ld(t,e.type);t!==n&&(W(V,e),W(B,n))}function X(e){V.current===e&&(H(B),H(V)),Q.current===e&&(H(Q),Gd._currentValue=$)}var Z=Object.prototype.hasOwnProperty,J=n.unstable_scheduleCallback,ee=n.unstable_cancelCallback,te=n.unstable_shouldYield,ne=n.unstable_requestPaint,re=n.unstable_now,ae=n.unstable_getCurrentPriorityLevel,oe=n.unstable_ImmediatePriority,ie=n.unstable_UserBlockingPriority,le=n.unstable_NormalPriority,se=n.unstable_LowPriority,ce=n.unstable_IdlePriority,ue=n.log,de=n.unstable_setDisableYieldValue,fe=null,pe=null;function me(e){if("function"==typeof ue&&de(e),pe&&"function"==typeof pe.setStrictMode)try{pe.setStrictMode(fe,e)}catch(t){}}var he=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(ge(e)/be|0)|0},ge=Math.log,be=Math.LN2;var ye=256,ve=4194304;function we(e){var t=42&e;if(0!==t)return t;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:return 64;case 128:return 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 4194048&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ke(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var a=0,o=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var l=134217727&r;return 0!==l?0!==(r=l&~o)?a=we(r):0!==(i&=l)?a=we(i):n||0!==(n=l&~e)&&(a=we(n)):0!==(l=r&~o)?a=we(l):0!==i?a=we(i):n||0!==(n=r&~e)&&(a=we(n)),0===a?0:0!==t&&t!==a&&0===(t&o)&&((o=a&-a)>=(n=t&-t)||32===o&&4194048&n)?t:a}function xe(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Se(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 t+5e3;default:return-1}}function Ce(){var e=ye;return!(4194048&(ye<<=1))&&(ye=256),e}function Ee(){var e=ve;return!(62914560&(ve<<=1))&&(ve=4194304),e}function Te(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _e(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ne(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-he(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194090&n}function Pe(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-he(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function ze(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Re(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function je(){var e=D.p;return 0!==e?e:void 0===(e=window.event)?32:ff(e.type)}var Ae=Math.random().toString(36).slice(2),Ie="__reactFiber$"+Ae,Le="__reactProps$"+Ae,Me="__reactContainer$"+Ae,De="__reactEvents$"+Ae,$e="__reactListeners$"+Ae,Oe="__reactHandles$"+Ae,Fe="__reactResources$"+Ae,Ue="__reactMarker$"+Ae;function He(e){delete e[Ie],delete e[Le],delete e[De],delete e[$e],delete e[Oe]}function We(e){var t=e[Ie];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Me]||n[Ie]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=kd(e);null!==e;){if(n=e[Ie])return n;e=kd(e)}return t}n=(e=n).parentNode}return null}function Be(e){if(e=e[Ie]||e[Me]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function Ve(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(o(33))}function qe(e){var t=e[Fe];return t||(t=e[Fe]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Qe(e){e[Ue]=!0}var Ke=new Set,Ye={};function Ge(e,t){Xe(e,t),Xe(e+"Capture",t)}function Xe(e,t){for(Ye[e]=t,e=0;e<t.length;e++)Ke.add(t[e])}var Ze,Je,et=RegExp("^[: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]*$"),tt={},nt={};function rt(e,t,n){if(a=t,Z.call(nt,a)||!Z.call(tt,a)&&(et.test(a)?nt[a]=!0:(tt[a]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var a}function at(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function ot(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function it(e){if(void 0===Ze)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ze=t&&t[1]||"",Je=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+Ze+e+Je}var lt=!1;function st(e,t){if(!e||lt)return"";lt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(a){var r=a}Reflect.construct(e,[],n)}else{try{n.call()}catch(o){r=o}e.call(n.prototype)}}else{try{throw Error()}catch(i){r=i}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(l){if(l&&r&&"string"==typeof l.stack)return[l.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),i=o[0],l=o[1];if(i&&l){var s=i.split("\n"),c=l.split("\n");for(a=r=0;r<s.length&&!s[r].includes("DetermineComponentFrameRoot");)r++;for(;a<c.length&&!c[a].includes("DetermineComponentFrameRoot");)a++;if(r===s.length||a===c.length)for(r=s.length-1,a=c.length-1;1<=r&&0<=a&&s[r]!==c[a];)a--;for(;1<=r&&0<=a;r--,a--)if(s[r]!==c[a]){if(1!==r||1!==a)do{if(r--,0>--a||s[r]!==c[a]){var u="\n"+s[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=a);break}}}finally{lt=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?it(n):""}function ct(e){switch(e.tag){case 26:case 27:case 5:return it(e.type);case 16:return it("Lazy");case 13:return it("Suspense");case 19:return it("SuspenseList");case 0:case 15:return st(e.type,!1);case 11:return st(e.type.render,!1);case 1:return st(e.type,!0);case 31:return it("Activity");default:return""}}function ut(e){try{var t="";do{t+=ct(e),e=e.return}while(e);return t}catch(n){return"\nError generating stack: "+n.message+"\n"+n.stack}}function dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ft(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function pt(e){e._valueTracker||(e._valueTracker=function(e){var t=ft(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function mt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ft(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ht(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var gt=/[\n"\\]/g;function bt(e){return e.replace(gt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function yt(e,t,n,r,a,o,i,l){e.name="",null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i?e.type=i:e.removeAttribute("type"),null!=t?"number"===i?(0===t&&""===e.value||e.value!=t)&&(e.value=""+dt(t)):e.value!==""+dt(t)&&(e.value=""+dt(t)):"submit"!==i&&"reset"!==i||e.removeAttribute("value"),null!=t?wt(e,i,dt(t)):null!=n?wt(e,i,dt(n)):null!=r&&e.removeAttribute("value"),null==a&&null!=o&&(e.defaultChecked=!!o),null!=a&&(e.checked=a&&"function"!=typeof a&&"symbol"!=typeof a),null!=l&&"function"!=typeof l&&"symbol"!=typeof l&&"boolean"!=typeof l?e.name=""+dt(l):e.removeAttribute("name")}function vt(e,t,n,r,a,o,i,l){if(null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.type=o),null!=t||null!=n){if(("submit"===o||"reset"===o)&&null==t)return;n=null!=n?""+dt(n):"",t=null!=t?""+dt(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:a)&&"symbol"!=typeof r&&!!r,e.checked=l?e.checked:!!r,e.defaultChecked=!!r,null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.name=i)}function wt(e,t,n){"number"===t&&ht(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function kt(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+dt(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function xt(e,t,n){null==t||((t=""+dt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+dt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function St(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(o(92));if(L(r)){if(1<r.length)throw Error(o(93));r=r[0]}n=r}null==n&&(n=""),t=n}n=dt(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r)}function Ct(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Et=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Tt(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Et.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function _t(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(o(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Tt(e,a,r)}else for(var i in t)t.hasOwnProperty(i)&&Tt(e,i,t[i])}function Nt(e){if(-1===e.indexOf("-"))return!1;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 Pt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),zt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Rt(e){return zt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var jt=null;function At(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var It=null,Lt=null;function Mt(e){var t=Be(e);if(t&&(e=t.stateNode)){var n=e[Le]||null;e:switch(e=t.stateNode,t.type){case"input":if(yt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+bt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[Le]||null;if(!a)throw Error(o(90));yt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&mt(r)}break e;case"textarea":xt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&kt(e,!!n.multiple,t,!1)}}}var Dt=!1;function $t(e,t,n){if(Dt)return e(t,n);Dt=!0;try{return e(t)}finally{if(Dt=!1,(null!==It||null!==Lt)&&(Wc(),It&&(t=It,e=Lt,Lt=It=null,Mt(t),e)))for(t=0;t<e.length;t++)Mt(e[t])}}function Ot(e,t){var n=e.stateNode;if(null===n)return null;var r=n[Le]||null;if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Ft=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Ut=!1;if(Ft)try{var Ht={};Object.defineProperty(Ht,"passive",{get:function(){Ut=!0}}),window.addEventListener("test",Ht,Ht),window.removeEventListener("test",Ht,Ht)}catch(Mf){Ut=!1}var Wt=null,Bt=null,Vt=null;function qt(){if(Vt)return Vt;var e,t,n=Bt,r=n.length,a="value"in Wt?Wt.value:Wt.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return Vt=a.slice(e,1<t?1-t:void 0)}function Qt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Kt(){return!0}function Yt(){return!1}function Gt(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?Kt:Yt,this.isPropagationStopped=Yt,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Kt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Kt)},persist:function(){},isPersistent:Kt}),t}var Xt,Zt,Jt,en={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tn=Gt(en),nn=f({},en,{view:0,detail:0}),rn=Gt(nn),an=f({},nn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Jt&&(Jt&&"mousemove"===e.type?(Xt=e.screenX-Jt.screenX,Zt=e.screenY-Jt.screenY):Zt=Xt=0,Jt=e),Xt)},movementY:function(e){return"movementY"in e?e.movementY:Zt}}),on=Gt(an),ln=Gt(f({},an,{dataTransfer:0})),sn=Gt(f({},nn,{relatedTarget:0})),cn=Gt(f({},en,{animationName:0,elapsedTime:0,pseudoElement:0})),un=Gt(f({},en,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),dn=Gt(f({},en,{data:0})),fn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},mn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=mn[e])&&!!t[e]}function gn(){return hn}var bn=Gt(f({},nn,{key:function(e){if(e.key){var t=fn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Qt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?pn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gn,charCode:function(e){return"keypress"===e.type?Qt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Qt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),yn=Gt(f({},an,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),vn=Gt(f({},nn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gn})),wn=Gt(f({},en,{propertyName:0,elapsedTime:0,pseudoElement:0})),kn=Gt(f({},an,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),xn=Gt(f({},en,{newState:0,oldState:0})),Sn=[9,13,27,32],Cn=Ft&&"CompositionEvent"in window,En=null;Ft&&"documentMode"in document&&(En=document.documentMode);var Tn=Ft&&"TextEvent"in window&&!En,_n=Ft&&(!Cn||En&&8<En&&11>=En),Nn=String.fromCharCode(32),Pn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Sn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var jn=!1;var An={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function In(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!An[e.type]:"textarea"===t}function Ln(e,t,n,r){It?Lt?Lt.push(r):Lt=[r]:It=r,0<(t=qu(t,"onChange")).length&&(n=new tn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Mn=null,Dn=null;function $n(e){$u(e,0)}function On(e){if(mt(Ve(e)))return e}function Fn(e,t){if("change"===e)return t}var Un=!1;if(Ft){var Hn;if(Ft){var Wn="oninput"in document;if(!Wn){var Bn=document.createElement("div");Bn.setAttribute("oninput","return;"),Wn="function"==typeof Bn.oninput}Hn=Wn}else Hn=!1;Un=Hn&&(!document.documentMode||9<document.documentMode)}function Vn(){Mn&&(Mn.detachEvent("onpropertychange",qn),Dn=Mn=null)}function qn(e){if("value"===e.propertyName&&On(Dn)){var t=[];Ln(t,Dn,e,At(e)),$t($n,t)}}function Qn(e,t,n){"focusin"===e?(Vn(),Dn=n,(Mn=t).attachEvent("onpropertychange",qn)):"focusout"===e&&Vn()}function Kn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return On(Dn)}function Yn(e,t){if("click"===e)return On(t)}function Gn(e,t){if("input"===e||"change"===e)return On(t)}var Xn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Zn(e,t){if(Xn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!Z.call(t,a)||!Xn(e[a],t[a]))return!1}return!0}function Jn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function er(e,t){var n,r=Jn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Jn(r)}}function tr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?tr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function nr(e){for(var t=ht((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=ht((e=t.contentWindow).document)}return t}function rr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var ar=Ft&&"documentMode"in document&&11>=document.documentMode,or=null,ir=null,lr=null,sr=!1;function cr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;sr||null==or||or!==ht(r)||("selectionStart"in(r=or)&&rr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},lr&&Zn(lr,r)||(lr=r,0<(r=qu(ir,"onSelect")).length&&(t=new tn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=or)))}function ur(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var dr={animationend:ur("Animation","AnimationEnd"),animationiteration:ur("Animation","AnimationIteration"),animationstart:ur("Animation","AnimationStart"),transitionrun:ur("Transition","TransitionRun"),transitionstart:ur("Transition","TransitionStart"),transitioncancel:ur("Transition","TransitionCancel"),transitionend:ur("Transition","TransitionEnd")},fr={},pr={};function mr(e){if(fr[e])return fr[e];if(!dr[e])return e;var t,n=dr[e];for(t in n)if(n.hasOwnProperty(t)&&t in pr)return fr[e]=n[t];return e}Ft&&(pr=document.createElement("div").style,"AnimationEvent"in window||(delete dr.animationend.animation,delete dr.animationiteration.animation,delete dr.animationstart.animation),"TransitionEvent"in window||delete dr.transitionend.transition);var hr=mr("animationend"),gr=mr("animationiteration"),br=mr("animationstart"),yr=mr("transitionrun"),vr=mr("transitionstart"),wr=mr("transitioncancel"),kr=mr("transitionend"),xr=new Map,Sr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Cr(e,t){xr.set(e,t),Ge(t,[e])}Sr.push("scrollEnd");var Er=new WeakMap;function Tr(e,t){if("object"==typeof e&&null!==e){var n=Er.get(e);return void 0!==n?n:(t={value:e,source:t,stack:ut(t)},Er.set(e,t),t)}return{value:e,source:t,stack:ut(t)}}var _r=[],Nr=0,Pr=0;function zr(){for(var e=Nr,t=Pr=Nr=0;t<e;){var n=_r[t];_r[t++]=null;var r=_r[t];_r[t++]=null;var a=_r[t];_r[t++]=null;var o=_r[t];if(_r[t++]=null,null!==r&&null!==a){var i=r.pending;null===i?a.next=a:(a.next=i.next,i.next=a),r.pending=a}0!==o&&Ir(n,a,o)}}function Rr(e,t,n,r){_r[Nr++]=e,_r[Nr++]=t,_r[Nr++]=n,_r[Nr++]=r,Pr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function jr(e,t,n,r){return Rr(e,t,n,r),Lr(e)}function Ar(e,t){return Rr(e,null,null,t),Lr(e)}function Ir(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var a=!1,o=e.return;null!==o;)o.childLanes|=n,null!==(r=o.alternate)&&(r.childLanes|=n),22===o.tag&&(null===(e=o.stateNode)||1&e._visibility||(a=!0)),e=o,o=o.return;return 3===e.tag?(o=e.stateNode,a&&null!==t&&(a=31-he(n),null===(r=(e=o.hiddenUpdates)[a])?e[a]=[t]:r.push(t),t.lane=536870912|n),o):null}function Lr(e){if(50<Ic)throw Ic=0,Lc=null,Error(o(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Mr={};function Dr(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.refCleanup=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 $r(e,t,n,r){return new Dr(e,t,n,r)}function Or(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Fr(e,t){var n=e.alternate;return null===n?((n=$r(e.tag,t,e.key,e.mode)).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=65011712&e.flags,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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Ur(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Hr(e,t,n,r,a,i){var l=0;if(r=e,"function"==typeof e)Or(e)&&(l=1);else if("string"==typeof e)l=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,B.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case P:return(e=$r(31,n,t,a)).elementType=P,e.lanes=i,e;case y:return Wr(n.children,a,i,t);case v:l=8,a|=24;break;case w:return(e=$r(12,n,t,2|a)).elementType=w,e.lanes=i,e;case E:return(e=$r(13,n,t,a)).elementType=E,e.lanes=i,e;case T:return(e=$r(19,n,t,a)).elementType=T,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:case S:l=10;break e;case x:l=9;break e;case C:l=11;break e;case _:l=14;break e;case N:l=16,r=null;break e}l=29,n=Error(o(130,null===e?"null":typeof e,"")),r=null}return(t=$r(l,n,t,a)).elementType=e,t.type=r,t.lanes=i,t}function Wr(e,t,n,r){return(e=$r(7,e,r,t)).lanes=n,e}function Br(e,t,n){return(e=$r(6,e,null,t)).lanes=n,e}function Vr(e,t,n){return(t=$r(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var qr=[],Qr=0,Kr=null,Yr=0,Gr=[],Xr=0,Zr=null,Jr=1,ea="";function ta(e,t){qr[Qr++]=Yr,qr[Qr++]=Kr,Kr=e,Yr=t}function na(e,t,n){Gr[Xr++]=Jr,Gr[Xr++]=ea,Gr[Xr++]=Zr,Zr=e;var r=Jr;e=ea;var a=32-he(r)-1;r&=~(1<<a),n+=1;var o=32-he(t)+a;if(30<o){var i=a-a%5;o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,Jr=1<<32-he(t)+a|n<<a|r,ea=o+e}else Jr=1<<o|n<<a|r,ea=e}function ra(e){null!==e.return&&(ta(e,1),na(e,1,0))}function aa(e){for(;e===Kr;)Kr=qr[--Qr],qr[Qr]=null,Yr=qr[--Qr],qr[Qr]=null;for(;e===Zr;)Zr=Gr[--Xr],Gr[Xr]=null,ea=Gr[--Xr],Gr[Xr]=null,Jr=Gr[--Xr],Gr[Xr]=null}var oa=null,ia=null,la=!1,sa=null,ca=!1,ua=Error(o(519));function da(e){throw ba(Tr(Error(o(418,"")),e)),ua}function fa(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Ie]=e,t[Le]=r,n){case"dialog":Ou("cancel",t),Ou("close",t);break;case"iframe":case"object":case"embed":Ou("load",t);break;case"video":case"audio":for(n=0;n<Mu.length;n++)Ou(Mu[n],t);break;case"source":Ou("error",t);break;case"img":case"image":case"link":Ou("error",t),Ou("load",t);break;case"details":Ou("toggle",t);break;case"input":Ou("invalid",t),vt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),pt(t);break;case"select":Ou("invalid",t);break;case"textarea":Ou("invalid",t),St(t,r.value,r.defaultValue,r.children),pt(t)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||Zu(t.textContent,n)?(null!=r.popover&&(Ou("beforetoggle",t),Ou("toggle",t)),null!=r.onScroll&&Ou("scroll",t),null!=r.onScrollEnd&&Ou("scrollend",t),null!=r.onClick&&(t.onclick=Ju),t=!0):t=!1,t||da(e)}function pa(e){for(oa=e.return;oa;)switch(oa.tag){case 5:case 13:return void(ca=!1);case 27:case 3:return void(ca=!0);default:oa=oa.return}}function ma(e){if(e!==oa)return!1;if(!la)return pa(e),la=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||sd(e.type,e.memoizedProps)),t=!t),t&&ia&&da(e),pa(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType)if("/$"===(t=e.data)){if(0===n){ia=vd(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++;e=e.nextSibling}ia=null}}else 27===n?(n=ia,hd(e.type)?(e=wd,wd=null,ia=e):ia=n):ia=oa?vd(e.stateNode.nextSibling):null;return!0}function ha(){ia=oa=null,la=!1}function ga(){var e=sa;return null!==e&&(null===kc?kc=e:kc.push.apply(kc,e),sa=null),e}function ba(e){null===sa?sa=[e]:sa.push(e)}var ya=U(null),va=null,wa=null;function ka(e,t,n){W(ya,t._currentValue),t._currentValue=n}function xa(e){e._currentValue=ya.current,H(ya)}function Sa(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ca(e,t,n,r){var a=e.child;for(null!==a&&(a.return=e);null!==a;){var i=a.dependencies;if(null!==i){var l=a.child;i=i.firstContext;e:for(;null!==i;){var s=i;i=a;for(var c=0;c<t.length;c++)if(s.context===t[c]){i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),Sa(i.return,n,e),r||(l=null);break e}i=s.next}}else if(18===a.tag){if(null===(l=a.return))throw Error(o(341));l.lanes|=n,null!==(i=l.alternate)&&(i.lanes|=n),Sa(l,n,e),l=null}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===e){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}}function Ea(e,t,n,r){e=null;for(var a=t,i=!1;null!==a;){if(!i)if(524288&a.flags)i=!0;else if(262144&a.flags)break;if(10===a.tag){var l=a.alternate;if(null===l)throw Error(o(387));if(null!==(l=l.memoizedProps)){var s=a.type;Xn(a.pendingProps.value,l.value)||(null!==e?e.push(s):e=[s])}}else if(a===Q.current){if(null===(l=a.alternate))throw Error(o(387));l.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(null!==e?e.push(Gd):e=[Gd])}a=a.return}null!==e&&Ca(t,e,n,r),t.flags|=262144}function Ta(e){for(e=e.firstContext;null!==e;){if(!Xn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _a(e){va=e,wa=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Na(e){return za(va,e)}function Pa(e,t){return null===va&&_a(e),za(e,t)}function za(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===wa){if(null===e)throw Error(o(308));wa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else wa=wa.next=t;return n}var Ra="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ja=n.unstable_scheduleCallback,Aa=n.unstable_NormalPriority,Ia={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function La(){return{controller:new Ra,data:new Map,refCount:0}}function Ma(e){e.refCount--,0===e.refCount&&ja(Aa,function(){e.controller.abort()})}var Da=null,$a=0,Oa=0,Fa=null;function Ua(){if(0===--$a&&null!==Da){null!==Fa&&(Fa.status="fulfilled");var e=Da;Da=null,Oa=0,Fa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Ha=M.S;M.S=function(e,t){"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===Da){var n=Da=[];$a=0,Oa=Ru(),Fa={status:"pending",value:void 0,then:function(e){n.push(e)}}}$a++,t.then(Ua,Ua)}(0,t),null!==Ha&&Ha(e,t)};var Wa=U(null);function Ba(){var e=Wa.current;return null!==e?e:oc.pooledCache}function Va(e,t){W(Wa,null===t?Wa.current:t.pool)}function qa(){var e=Ba();return null===e?null:{parent:Ia._currentValue,pool:e}}var Qa=Error(o(460)),Ka=Error(o(474)),Ya=Error(o(542)),Ga={then:function(){}};function Xa(e){return"fulfilled"===(e=e.status)||"rejected"===e}function Za(){}function Ja(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Za,Za),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw no(e=t.reason),e;default:if("string"==typeof t.status)t.then(Za,Za);else{if(null!==(e=oc)&&100<e.shellSuspendCounter)throw Error(o(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw no(e=t.reason),e}throw eo=t,Qa}}var eo=null;function to(){if(null===eo)throw Error(o(459));var e=eo;return eo=null,e}function no(e){if(e===Qa||e===Ya)throw Error(o(483))}var ro=!1;function ao(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function oo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function io(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function lo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&ac){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=Lr(e),Ir(e,null,n),t}return Rr(e,r,t,n),Lr(e)}function so(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Pe(e,n)}}function co(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var uo=!1;function fo(){if(uo){if(null!==Fa)throw Fa}}function po(e,t,n,r){uo=!1;var a=e.updateQueue;ro=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,l=a.shared.pending;if(null!==l){a.shared.pending=null;var s=l,c=s.next;s.next=null,null===i?o=c:i.next=c,i=s;var u=e.alternate;null!==u&&((l=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s))}if(null!==o){var d=a.baseState;for(i=0,u=c=s=null,l=o;;){var p=-536870913&l.lane,m=p!==l.lane;if(m?(lc&p)===p:(r&p)===p){0!==p&&p===Oa&&(uo=!0),null!==u&&(u=u.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var h=e,g=l;p=t;var b=n;switch(g.tag){case 1:if("function"==typeof(h=g.payload)){d=h.call(b,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=g.payload)?h.call(b,d,p):h))break e;d=f({},d,p);break e;case 2:ro=!0}}null!==(p=l.callback)&&(e.flags|=64,m&&(e.flags|=8192),null===(m=a.callbacks)?a.callbacks=[p]:m.push(p))}else m={lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=m,s=d):u=u.next=m,i|=p;if(null===(l=l.next)){if(null===(l=a.shared.pending))break;l=(m=l).next,m.next=null,a.lastBaseUpdate=m,a.shared.pending=null}}null===u&&(s=d),a.baseState=s,a.firstBaseUpdate=c,a.lastBaseUpdate=u,null===o&&(a.shared.lanes=0),hc|=i,e.lanes=i,e.memoizedState=d}}function mo(e,t){if("function"!=typeof e)throw Error(o(191,e));e.call(t)}function ho(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)mo(n[e],t)}var go=U(null),bo=U(0);function yo(e,t){W(bo,e=pc),W(go,t),pc=e|t.baseLanes}function vo(){W(bo,pc),W(go,go.current)}function wo(){pc=bo.current,H(go),H(bo)}var ko=0,xo=null,So=null,Co=null,Eo=!1,To=!1,_o=!1,No=0,Po=0,zo=null,Ro=0;function jo(){throw Error(o(321))}function Ao(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Xn(e[n],t[n]))return!1;return!0}function Io(e,t,n,r,a,o){return ko=o,xo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=null===e||null===e.memoizedState?Ki:Yi,_o=!1,o=n(r,a),_o=!1,To&&(o=Mo(t,n,r,a)),Lo(e),o}function Lo(e){M.H=Qi;var t=null!==So&&null!==So.next;if(ko=0,Co=So=xo=null,Eo=!1,Po=0,zo=null,t)throw Error(o(300));null===e||Pl||null!==(e=e.dependencies)&&Ta(e)&&(Pl=!0)}function Mo(e,t,n,r){xo=e;var a=0;do{if(To&&(zo=null),Po=0,To=!1,25<=a)throw Error(o(301));if(a+=1,Co=So=null,null!=e.updateQueue){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,null!=i.memoCache&&(i.memoCache.index=0)}M.H=Gi,i=t(n,r)}while(To);return i}function Do(){var e=M.H,t=e.useState()[0];return t="function"==typeof t.then?Wo(t):t,e=e.useState()[0],(null!==So?So.memoizedState:null)!==e&&(xo.flags|=1024),t}function $o(){var e=0!==No;return No=0,e}function Oo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Fo(e){if(Eo){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Eo=!1}ko=0,Co=So=xo=null,To=!1,Po=No=0,zo=null}function Uo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Co?xo.memoizedState=Co=e:Co=Co.next=e,Co}function Ho(){if(null===So){var e=xo.alternate;e=null!==e?e.memoizedState:null}else e=So.next;var t=null===Co?xo.memoizedState:Co.next;if(null!==t)Co=t,So=e;else{if(null===e){if(null===xo.alternate)throw Error(o(467));throw Error(o(310))}e={memoizedState:(So=e).memoizedState,baseState:So.baseState,baseQueue:So.baseQueue,queue:So.queue,next:null},null===Co?xo.memoizedState=Co=e:Co=Co.next=e}return Co}function Wo(e){var t=Po;return Po+=1,null===zo&&(zo=[]),e=Ja(zo,e,t),t=xo,null===(null===Co?t.memoizedState:Co.next)&&(t=t.alternate,M.H=null===t||null===t.memoizedState?Ki:Yi),e}function Bo(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return Wo(e);if(e.$$typeof===S)return Na(e)}throw Error(o(438,String(e)))}function Vo(e){var t=null,n=xo.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=xo.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},xo.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=z;return t.index++,n}function qo(e,t){return"function"==typeof t?t(e):t}function Qo(e){return Ko(Ho(),So,e)}function Ko(e,t,n){var r=e.queue;if(null===r)throw Error(o(311));r.lastRenderedReducer=n;var a=e.baseQueue,i=r.pending;if(null!==i){if(null!==a){var l=a.next;a.next=i.next,i.next=l}t.baseQueue=a=i,r.pending=null}if(i=e.baseState,null===a)e.memoizedState=i;else{var s=l=null,c=null,u=t=a.next,d=!1;do{var f=-536870913&u.lane;if(f!==u.lane?(lc&f)===f:(ko&f)===f){var p=u.revertLane;if(0===p)null!==c&&(c=c.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Oa&&(d=!0);else{if((ko&p)===p){u=u.next,p===Oa&&(d=!0);continue}f={lane:0,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(s=c=f,l=i):c=c.next=f,xo.lanes|=p,hc|=p}f=u.action,_o&&n(i,f),i=u.hasEagerState?u.eagerState:n(i,f)}else p={lane:f,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(s=c=p,l=i):c=c.next=p,xo.lanes|=f,hc|=f;u=u.next}while(null!==u&&u!==t);if(null===c?l=i:c.next=s,!Xn(i,e.memoizedState)&&(Pl=!0,d&&null!==(n=Fa)))throw n;e.memoizedState=i,e.baseState=l,e.baseQueue=c,r.lastRenderedState=i}return null===a&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Yo(e){var t=Ho(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(null!==a){n.pending=null;var l=a=a.next;do{i=e(i,l.action),l=l.next}while(l!==a);Xn(i,t.memoizedState)||(Pl=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Go(e,t,n){var r=xo,a=Ho(),i=la;if(i){if(void 0===n)throw Error(o(407));n=n()}else n=t();var l=!Xn((So||a).memoizedState,n);if(l&&(a.memoizedState=n,Pl=!0),a=a.queue,vi(2048,8,Jo.bind(null,r,a,e),[e]),a.getSnapshot!==t||l||null!==Co&&1&Co.memoizedState.tag){if(r.flags|=2048,gi(9,{destroy:void 0,resource:void 0},Zo.bind(null,r,a,n,t),null),null===oc)throw Error(o(349));i||124&ko||Xo(r,t,n)}return n}function Xo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=xo.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},xo.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Zo(e,t,n,r){t.value=n,t.getSnapshot=r,ei(t)&&ti(e)}function Jo(e,t,n){return n(function(){ei(t)&&ti(e)})}function ei(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Xn(e,n)}catch(r){return!0}}function ti(e){var t=Ar(e,2);null!==t&&$c(t,e,2)}function ni(e){var t=Uo();if("function"==typeof e){var n=e;if(e=n(),_o){me(!0);try{n()}finally{me(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:e},t}function ri(e,t,n,r){return e.baseState=n,Ko(e,So,"function"==typeof r?r:qo)}function ai(e,t,n,r,a){if(Bi(e))throw Error(o(485));if(null!==(e=t.action)){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){i.listeners.push(e)}};null!==M.T?n(!0):i.isTransition=!1,r(i),null===(n=t.pending)?(i.next=t.pending=i,oi(t,i)):(i.next=n.next,t.pending=n.next=i)}}function oi(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var o=M.T,i={};M.T=i;try{var l=n(a,r),s=M.S;null!==s&&s(i,l),ii(e,t,l)}catch(c){si(e,t,c)}finally{M.T=o}}else try{ii(e,t,o=n(a,r))}catch(u){si(e,t,u)}}function ii(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){li(e,t,n)},function(n){return si(e,t,n)}):li(e,t,n)}function li(e,t,n){t.status="fulfilled",t.value=n,ci(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,oi(e,n)))}function si(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,ci(t),t=t.next}while(t!==r)}e.action=null}function ci(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ui(e,t){return t}function di(e,t){if(la){var n=oc.formState;if(null!==n){e:{var r=xo;if(la){if(ia){t:{for(var a=ia,o=ca;8!==a.nodeType;){if(!o){a=null;break t}if(null===(a=vd(a.nextSibling))){a=null;break t}}a="F!"===(o=a.data)||"F"===o?a:null}if(a){ia=vd(a.nextSibling),r="F!"===a.data;break e}}da(r)}r=!1}r&&(t=n[0])}}return(n=Uo()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ui,lastRenderedState:t},n.queue=r,n=Ui.bind(null,xo,r),r.dispatch=n,r=ni(!1),o=Wi.bind(null,xo,!1,r.queue),a={state:t,dispatch:null,action:e,pending:null},(r=Uo()).queue=a,n=ai.bind(null,xo,a,o,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function fi(e){return pi(Ho(),So,e)}function pi(e,t,n){if(t=Ko(e,t,ui)[0],e=Qo(qo)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=Wo(t)}catch(i){if(i===Qa)throw Ya;throw i}else r=t;var a=(t=Ho()).queue,o=a.dispatch;return n!==t.memoizedState&&(xo.flags|=2048,gi(9,{destroy:void 0,resource:void 0},mi.bind(null,a,n),null)),[r,o,e]}function mi(e,t){e.action=t}function hi(e){var t=Ho(),n=So;if(null!==n)return pi(t,n,e);Ho(),t=t.memoizedState;var r=(n=Ho()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function gi(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=xo.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},xo.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function bi(){return Ho().memoizedState}function yi(e,t,n,r){var a=Uo();r=void 0===r?null:r,xo.flags|=e,a.memoizedState=gi(1|t,{destroy:void 0,resource:void 0},n,r)}function vi(e,t,n,r){var a=Ho();r=void 0===r?null:r;var o=a.memoizedState.inst;null!==So&&null!==r&&Ao(r,So.memoizedState.deps)?a.memoizedState=gi(t,o,n,r):(xo.flags|=e,a.memoizedState=gi(1|t,o,n,r))}function wi(e,t){yi(8390656,8,e,t)}function ki(e,t){vi(2048,8,e,t)}function xi(e,t){return vi(4,2,e,t)}function Si(e,t){return vi(4,4,e,t)}function Ci(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function Ei(e,t,n){n=null!=n?n.concat([e]):null,vi(4,4,Ci.bind(null,t,e),n)}function Ti(){}function _i(e,t){var n=Ho();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&Ao(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ni(e,t){var n=Ho();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&Ao(t,r[1]))return r[0];if(r=e(),_o){me(!0);try{e()}finally{me(!1)}}return n.memoizedState=[r,t],r}function Pi(e,t,n){return void 0===n||1073741824&ko?e.memoizedState=t:(e.memoizedState=n,e=Dc(),xo.lanes|=e,hc|=e,n)}function zi(e,t,n,r){return Xn(n,t)?n:null!==go.current?(e=Pi(e,n,r),Xn(e,t)||(Pl=!0),e):42&ko?(e=Dc(),xo.lanes|=e,hc|=e,t):(Pl=!0,e.memoizedState=n)}function Ri(e,t,n,r,a){var o=D.p;D.p=0!==o&&8>o?o:8;var i,l,s,c=M.T,u={};M.T=u,Wi(e,!1,t,n);try{var d=a(),f=M.S;if(null!==f&&f(u,d),null!==d&&"object"==typeof d&&"function"==typeof d.then)Hi(e,t,(i=r,l=[],s={status:"pending",value:null,reason:null,then:function(e){l.push(e)}},d.then(function(){s.status="fulfilled",s.value=i;for(var e=0;e<l.length;e++)(0,l[e])(i)},function(e){for(s.status="rejected",s.reason=e,e=0;e<l.length;e++)(0,l[e])(void 0)}),s),Mc());else Hi(e,t,r,Mc())}catch(p){Hi(e,t,{then:function(){},status:"rejected",reason:p},Mc())}finally{D.p=o,M.T=c}}function ji(){}function Ai(e,t,n,r){if(5!==e.tag)throw Error(o(476));var a=Ii(e).queue;Ri(e,a,t,$,null===n?ji:function(){return Li(e),n(r)})}function Ii(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:$},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function Li(e){Hi(e,Ii(e).next.queue,{},Mc())}function Mi(){return Na(Gd)}function Di(){return Ho().memoizedState}function $i(){return Ho().memoizedState}function Oi(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Mc(),r=lo(t,e=io(n),n);return null!==r&&($c(r,t,n),so(r,t,n)),t={cache:La()},void(e.payload=t)}t=t.return}}function Fi(e,t,n){var r=Mc();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Bi(e)?Vi(t,n):null!==(n=jr(e,t,n,r))&&($c(n,e,r),qi(n,t,r))}function Ui(e,t,n){Hi(e,t,n,Mc())}function Hi(e,t,n,r){var a={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bi(e))Vi(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=o(i,n);if(a.hasEagerState=!0,a.eagerState=l,Xn(l,i))return Rr(e,t,a,0),null===oc&&zr(),!1}catch(s){}if(null!==(n=jr(e,t,a,r)))return $c(n,e,r),qi(n,t,r),!0}return!1}function Wi(e,t,n,r){if(r={lane:2,revertLane:Ru(),action:r,hasEagerState:!1,eagerState:null,next:null},Bi(e)){if(t)throw Error(o(479))}else null!==(t=jr(e,n,r,2))&&$c(t,e,2)}function Bi(e){var t=e.alternate;return e===xo||null!==t&&t===xo}function Vi(e,t){To=Eo=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function qi(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Pe(e,n)}}var Qi={readContext:Na,use:Bo,useCallback:jo,useContext:jo,useEffect:jo,useImperativeHandle:jo,useLayoutEffect:jo,useInsertionEffect:jo,useMemo:jo,useReducer:jo,useRef:jo,useState:jo,useDebugValue:jo,useDeferredValue:jo,useTransition:jo,useSyncExternalStore:jo,useId:jo,useHostTransitionStatus:jo,useFormState:jo,useActionState:jo,useOptimistic:jo,useMemoCache:jo,useCacheRefresh:jo},Ki={readContext:Na,use:Bo,useCallback:function(e,t){return Uo().memoizedState=[e,void 0===t?null:t],e},useContext:Na,useEffect:wi,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,yi(4194308,4,Ci.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yi(4194308,4,e,t)},useInsertionEffect:function(e,t){yi(4,2,e,t)},useMemo:function(e,t){var n=Uo();t=void 0===t?null:t;var r=e();if(_o){me(!0);try{e()}finally{me(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Uo();if(void 0!==n){var a=n(t);if(_o){me(!0);try{n(t)}finally{me(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=Fi.bind(null,xo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Uo().memoizedState=e},useState:function(e){var t=(e=ni(e)).queue,n=Ui.bind(null,xo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ti,useDeferredValue:function(e,t){return Pi(Uo(),e,t)},useTransition:function(){var e=ni(!1);return e=Ri.bind(null,xo,e.queue,!0,!1),Uo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=xo,a=Uo();if(la){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===oc)throw Error(o(349));124&lc||Xo(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,wi(Jo.bind(null,r,i,e),[e]),r.flags|=2048,gi(9,{destroy:void 0,resource:void 0},Zo.bind(null,r,i,n,t),null),n},useId:function(){var e=Uo(),t=oc.identifierPrefix;if(la){var n=ea;t="«"+t+"R"+(n=(Jr&~(1<<32-he(Jr)-1)).toString(32)+n),0<(n=No++)&&(t+="H"+n.toString(32)),t+="»"}else t="«"+t+"r"+(n=Ro++).toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Mi,useFormState:di,useActionState:di,useOptimistic:function(e){var t=Uo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Wi.bind(null,xo,!0,n),n.dispatch=t,[e,t]},useMemoCache:Vo,useCacheRefresh:function(){return Uo().memoizedState=Oi.bind(null,xo)}},Yi={readContext:Na,use:Bo,useCallback:_i,useContext:Na,useEffect:ki,useImperativeHandle:Ei,useInsertionEffect:xi,useLayoutEffect:Si,useMemo:Ni,useReducer:Qo,useRef:bi,useState:function(){return Qo(qo)},useDebugValue:Ti,useDeferredValue:function(e,t){return zi(Ho(),So.memoizedState,e,t)},useTransition:function(){var e=Qo(qo)[0],t=Ho().memoizedState;return["boolean"==typeof e?e:Wo(e),t]},useSyncExternalStore:Go,useId:Di,useHostTransitionStatus:Mi,useFormState:fi,useActionState:fi,useOptimistic:function(e,t){return ri(Ho(),0,e,t)},useMemoCache:Vo,useCacheRefresh:$i},Gi={readContext:Na,use:Bo,useCallback:_i,useContext:Na,useEffect:ki,useImperativeHandle:Ei,useInsertionEffect:xi,useLayoutEffect:Si,useMemo:Ni,useReducer:Yo,useRef:bi,useState:function(){return Yo(qo)},useDebugValue:Ti,useDeferredValue:function(e,t){var n=Ho();return null===So?Pi(n,e,t):zi(n,So.memoizedState,e,t)},useTransition:function(){var e=Yo(qo)[0],t=Ho().memoizedState;return["boolean"==typeof e?e:Wo(e),t]},useSyncExternalStore:Go,useId:Di,useHostTransitionStatus:Mi,useFormState:hi,useActionState:hi,useOptimistic:function(e,t){var n=Ho();return null!==So?ri(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Vo,useCacheRefresh:$i},Xi=null,Zi=0;function Ji(e){var t=Zi;return Zi+=1,null===Xi&&(Xi=[]),Ja(Xi,e,t)}function el(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function tl(e,t){if(t.$$typeof===m)throw Error(o(525));throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function nl(e){return(0,e._init)(e._payload)}function rl(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function a(e,t){return(e=Fr(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Br(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===y?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===N&&nl(o)===t.type)?(el(t=a(t,n.props),n),t.return=e,t):(el(t=Hr(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Vr(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Wr(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Br(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case g:return el(n=Hr(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case b:return(t=Vr(t,e.mode,n)).return=e,t;case N:return f(e,t=(0,t._init)(t._payload),n)}if(L(t)||j(t))return(t=Wr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return f(e,Ji(t),n);if(t.$$typeof===S)return f(e,Pa(e,t),n);tl(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==a?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case g:return n.key===a?c(e,t,n,r):null;case b:return n.key===a?u(e,t,n,r):null;case N:return p(e,t,n=(a=n._init)(n._payload),r)}if(L(n)||j(n))return null!==a?null:d(e,t,n,r,null);if("function"==typeof n.then)return p(e,t,Ji(n),r);if(n.$$typeof===S)return p(e,t,Pa(e,n),r);tl(e,n)}return null}function m(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return s(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case g:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case b:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case N:return m(e,t,n,r=(0,r._init)(r._payload),a)}if(L(r)||j(r))return d(t,e=e.get(n)||null,r,a,null);if("function"==typeof r.then)return m(e,t,n,Ji(r),a);if(r.$$typeof===S)return m(e,t,n,Pa(t,r),a);tl(t,r)}return null}function h(s,c,u,d){if("object"==typeof u&&null!==u&&u.type===y&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case g:e:{for(var v=u.key;null!==c;){if(c.key===v){if((v=u.type)===y){if(7===c.tag){n(s,c.sibling),(d=a(c,u.props.children)).return=s,s=d;break e}}else if(c.elementType===v||"object"==typeof v&&null!==v&&v.$$typeof===N&&nl(v)===c.type){n(s,c.sibling),el(d=a(c,u.props),u),d.return=s,s=d;break e}n(s,c);break}t(s,c),c=c.sibling}u.type===y?((d=Wr(u.props.children,s.mode,d,u.key)).return=s,s=d):(el(d=Hr(u.type,u.key,u.props,null,s.mode,d),u),d.return=s,s=d)}return l(s);case b:e:{for(v=u.key;null!==c;){if(c.key===v){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(s,c.sibling),(d=a(c,u.children||[])).return=s,s=d;break e}n(s,c);break}t(s,c),c=c.sibling}(d=Vr(u,s.mode,d)).return=s,s=d}return l(s);case N:return h(s,c,u=(v=u._init)(u._payload),d)}if(L(u))return function(a,o,l,s){for(var c=null,u=null,d=o,h=o=0,g=null;null!==d&&h<l.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var b=p(a,d,l[h],s);if(null===b){null===d&&(d=g);break}e&&d&&null===b.alternate&&t(a,d),o=i(b,o,h),null===u?c=b:u.sibling=b,u=b,d=g}if(h===l.length)return n(a,d),la&&ta(a,h),c;if(null===d){for(;h<l.length;h++)null!==(d=f(a,l[h],s))&&(o=i(d,o,h),null===u?c=d:u.sibling=d,u=d);return la&&ta(a,h),c}for(d=r(d);h<l.length;h++)null!==(g=m(d,a,h,l[h],s))&&(e&&null!==g.alternate&&d.delete(null===g.key?h:g.key),o=i(g,o,h),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(a,e)}),la&&ta(a,h),c}(s,c,u,d);if(j(u)){if("function"!=typeof(v=j(u)))throw Error(o(150));return function(a,l,s,c){if(null==s)throw Error(o(151));for(var u=null,d=null,h=l,g=l=0,b=null,y=s.next();null!==h&&!y.done;g++,y=s.next()){h.index>g?(b=h,h=null):b=h.sibling;var v=p(a,h,y.value,c);if(null===v){null===h&&(h=b);break}e&&h&&null===v.alternate&&t(a,h),l=i(v,l,g),null===d?u=v:d.sibling=v,d=v,h=b}if(y.done)return n(a,h),la&&ta(a,g),u;if(null===h){for(;!y.done;g++,y=s.next())null!==(y=f(a,y.value,c))&&(l=i(y,l,g),null===d?u=y:d.sibling=y,d=y);return la&&ta(a,g),u}for(h=r(h);!y.done;g++,y=s.next())null!==(y=m(h,a,g,y.value,c))&&(e&&null!==y.alternate&&h.delete(null===y.key?g:y.key),l=i(y,l,g),null===d?u=y:d.sibling=y,d=y);return e&&h.forEach(function(e){return t(a,e)}),la&&ta(a,g),u}(s,c,u=v.call(u),d)}if("function"==typeof u.then)return h(s,c,Ji(u),d);if(u.$$typeof===S)return h(s,c,Pa(s,u),d);tl(s,u)}return"string"==typeof u&&""!==u||"number"==typeof u||"bigint"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(s,c.sibling),(d=a(c,u)).return=s,s=d):(n(s,c),(d=Br(u,s.mode,d)).return=s,s=d),l(s)):n(s,c)}return function(e,t,n,r){try{Zi=0;var a=h(e,t,n,r);return Xi=null,a}catch(i){if(i===Qa||i===Ya)throw i;var o=$r(29,i,null,e.mode);return o.lanes=r,o.return=e,o}}}var al=rl(!0),ol=rl(!1),il=U(null),ll=null;function sl(e){var t=e.alternate;W(fl,1&fl.current),W(il,e),null===ll&&(null===t||null!==go.current||null!==t.memoizedState)&&(ll=e)}function cl(e){if(22===e.tag){if(W(fl,fl.current),W(il,e),null===ll){var t=e.alternate;null!==t&&null!==t.memoizedState&&(ll=e)}}else ul()}function ul(){W(fl,fl.current),W(il,il.current)}function dl(e){H(il),ll===e&&(ll=null),H(fl)}var fl=U(0);function pl(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||yd(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function ml(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:f({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var hl={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Mc(),a=io(r);a.payload=t,null!=n&&(a.callback=n),null!==(t=lo(e,a,r))&&($c(t,e,r),so(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Mc(),a=io(r);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=lo(e,a,r))&&($c(t,e,r),so(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Mc(),r=io(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=lo(e,r,n))&&($c(t,e,n),so(t,e,n))}};function gl(e,t,n,r,a,o,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!t.prototype||!t.prototype.isPureReactComponent||(!Zn(n,r)||!Zn(a,o))}function bl(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&hl.enqueueReplaceState(t,t.state,null)}function yl(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var a in n===t&&(n=f({},n)),e)void 0===n[a]&&(n[a]=e[a]);return n}var vl="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function wl(e){vl(e)}function kl(e){console.error(e)}function xl(e){vl(e)}function Sl(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Cl(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function El(e,t,n){return(n=io(n)).tag=3,n.payload={element:null},n.callback=function(){Sl(e,t)},n}function Tl(e){return(e=io(e)).tag=3,e}function _l(e,t,n,r){var a=n.type.getDerivedStateFromError;if("function"==typeof a){var o=r.value;e.payload=function(){return a(o)},e.callback=function(){Cl(t,n,r)}}var i=n.stateNode;null!==i&&"function"==typeof i.componentDidCatch&&(e.callback=function(){Cl(t,n,r),"function"!=typeof a&&(null===Tc?Tc=new Set([this]):Tc.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Nl=Error(o(461)),Pl=!1;function zl(e,t,n,r){t.child=null===e?ol(t,null,n,r):al(t,e.child,n,r)}function Rl(e,t,n,r,a){n=n.render;var o=t.ref;if("ref"in r){var i={};for(var l in r)"ref"!==l&&(i[l]=r[l])}else i=r;return _a(t),r=Io(e,t,n,i,o,a),l=$o(),null===e||Pl?(la&&l&&ra(t),t.flags|=1,zl(e,t,r,a),t.child):(Oo(e,t,a),Xl(e,t,a))}function jl(e,t,n,r,a){if(null===e){var o=n.type;return"function"!=typeof o||Or(o)||void 0!==o.defaultProps||null!==n.compare?((e=Hr(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Al(e,t,o,r,a))}if(o=e.child,!Zl(e,a)){var i=o.memoizedProps;if((n=null!==(n=n.compare)?n:Zn)(i,r)&&e.ref===t.ref)return Xl(e,t,a)}return t.flags|=1,(e=Fr(o,r)).ref=t.ref,e.return=t,t.child=e}function Al(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(Zn(o,r)&&e.ref===t.ref){if(Pl=!1,t.pendingProps=r=o,!Zl(e,a))return t.lanes=e.lanes,Xl(e,t,a);131072&e.flags&&(Pl=!0)}}return Dl(e,t,n,r,a)}function Il(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(128&t.flags){if(r=null!==o?o.baseLanes|n:n,null!==e){for(a=t.child=e.child,o=0;null!==a;)o=o|a.lanes|a.childLanes,a=a.sibling;t.childLanes=o&~r}else t.childLanes=0,t.child=null;return Ll(e,t,r,n)}if(!(536870912&n))return t.lanes=t.childLanes=536870912,Ll(e,t,null!==o?o.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Va(0,null!==o?o.cachePool:null),null!==o?yo(t,o):vo(),cl(t)}else null!==o?(Va(0,o.cachePool),yo(t,o),ul(),t.memoizedState=null):(null!==e&&Va(0,null),vo(),ul());return zl(e,t,a,n),t.child}function Ll(e,t,n,r){var a=Ba();return a=null===a?null:{parent:Ia._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},null!==e&&Va(0,null),vo(),cl(t),null!==e&&Ea(e,t,r,!0),null}function Ml(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(o(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Dl(e,t,n,r,a){return _a(t),n=Io(e,t,n,r,void 0,a),r=$o(),null===e||Pl?(la&&r&&ra(t),t.flags|=1,zl(e,t,n,a),t.child):(Oo(e,t,a),Xl(e,t,a))}function $l(e,t,n,r,a,o){return _a(t),t.updateQueue=null,n=Mo(t,r,n,a),Lo(e),r=$o(),null===e||Pl?(la&&r&&ra(t),t.flags|=1,zl(e,t,n,o),t.child):(Oo(e,t,o),Xl(e,t,o))}function Ol(e,t,n,r,a){if(_a(t),null===t.stateNode){var o=Mr,i=n.contextType;"object"==typeof i&&null!==i&&(o=Na(i)),o=new n(r,o),t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,o.updater=hl,t.stateNode=o,o._reactInternals=t,(o=t.stateNode).props=r,o.state=t.memoizedState,o.refs={},ao(t),i=n.contextType,o.context="object"==typeof i&&null!==i?Na(i):Mr,o.state=t.memoizedState,"function"==typeof(i=n.getDerivedStateFromProps)&&(ml(t,n,i,r),o.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(i=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),i!==o.state&&hl.enqueueReplaceState(o,o.state,null),po(t,r,o,a),fo(),o.state=t.memoizedState),"function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){o=t.stateNode;var l=t.memoizedProps,s=yl(n,l);o.props=s;var c=o.context,u=n.contextType;i=Mr,"object"==typeof u&&null!==u&&(i=Na(u));var d=n.getDerivedStateFromProps;u="function"==typeof d||"function"==typeof o.getSnapshotBeforeUpdate,l=t.pendingProps!==l,u||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l||c!==i)&&bl(t,o,r,i),ro=!1;var f=t.memoizedState;o.state=f,po(t,r,o,a),fo(),c=t.memoizedState,l||f!==c||ro?("function"==typeof d&&(ml(t,n,d,r),c=t.memoizedState),(s=ro||gl(t,n,s,r,f,c,i))?(u||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=i,r=s):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,oo(e,t),u=yl(n,i=t.memoizedProps),o.props=u,d=t.pendingProps,f=o.context,c=n.contextType,s=Mr,"object"==typeof c&&null!==c&&(s=Na(c)),(c="function"==typeof(l=n.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i!==d||f!==s)&&bl(t,o,r,s),ro=!1,f=t.memoizedState,o.state=f,po(t,r,o,a),fo();var p=t.memoizedState;i!==d||f!==p||ro||null!==e&&null!==e.dependencies&&Ta(e.dependencies)?("function"==typeof l&&(ml(t,n,l,r),p=t.memoizedState),(u=ro||gl(t,n,u,r,f,p,s)||null!==e&&null!==e.dependencies&&Ta(e.dependencies))?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,s),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,s)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=s,r=u):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return o=r,Ml(e,t),r=!!(128&t.flags),o||r?(o=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:o.render(),t.flags|=1,null!==e&&r?(t.child=al(t,e.child,null,a),t.child=al(t,null,n,a)):zl(e,t,n,a),t.memoizedState=o.state,e=t.child):e=Xl(e,t,a),e}function Fl(e,t,n,r){return ha(),t.flags|=256,zl(e,t,n,r),t.child}var Ul={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hl(e){return{baseLanes:e,cachePool:qa()}}function Wl(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=yc),e}function Bl(e,t,n){var r,a=t.pendingProps,i=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&fl.current)),r&&(i=!0,t.flags&=-129),r=!!(32&t.flags),t.flags&=-33,null===e){if(la){if(i?sl(t):ul(),la){var s,c=ia;if(s=c){e:{for(s=c,c=ca;8!==s.nodeType;){if(!c){c=null;break e}if(null===(s=vd(s.nextSibling))){c=null;break e}}c=s}null!==c?(t.memoizedState={dehydrated:c,treeContext:null!==Zr?{id:Jr,overflow:ea}:null,retryLane:536870912,hydrationErrors:null},(s=$r(18,null,null,0)).stateNode=c,s.return=t,t.child=s,oa=t,ia=null,s=!0):s=!1}s||da(t)}if(null!==(c=t.memoizedState)&&null!==(c=c.dehydrated))return yd(c)?t.lanes=32:t.lanes=536870912,null;dl(t)}return c=a.children,a=a.fallback,i?(ul(),c=ql({mode:"hidden",children:c},i=t.mode),a=Wr(a,i,n,null),c.return=t,a.return=t,c.sibling=a,t.child=c,(i=t.child).memoizedState=Hl(n),i.childLanes=Wl(e,r,n),t.memoizedState=Ul,a):(sl(t),Vl(t,c))}if(null!==(s=e.memoizedState)&&null!==(c=s.dehydrated)){if(l)256&t.flags?(sl(t),t.flags&=-257,t=Ql(e,t,n)):null!==t.memoizedState?(ul(),t.child=e.child,t.flags|=128,t=null):(ul(),i=a.fallback,c=t.mode,a=ql({mode:"visible",children:a.children},c),(i=Wr(i,c,n,null)).flags|=2,a.return=t,i.return=t,a.sibling=i,t.child=a,al(t,e.child,null,n),(a=t.child).memoizedState=Hl(n),a.childLanes=Wl(e,r,n),t.memoizedState=Ul,t=i);else if(sl(t),yd(c)){if(r=c.nextSibling&&c.nextSibling.dataset)var u=r.dgst;r=u,(a=Error(o(419))).stack="",a.digest=r,ba({value:a,source:null,stack:null}),t=Ql(e,t,n)}else if(Pl||Ea(e,t,n,!1),r=0!==(n&e.childLanes),Pl||r){if(null!==(r=oc)&&(0!==(a=0!==((a=42&(a=n&-n)?1:ze(a))&(r.suspendedLanes|n))?0:a)&&a!==s.retryLane))throw s.retryLane=a,Ar(e,a),$c(r,e,a),Nl;"$?"===c.data||Yc(),t=Ql(e,t,n)}else"$?"===c.data?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,ia=vd(c.nextSibling),oa=t,la=!0,sa=null,ca=!1,null!==e&&(Gr[Xr++]=Jr,Gr[Xr++]=ea,Gr[Xr++]=Zr,Jr=e.id,ea=e.overflow,Zr=t),(t=Vl(t,a.children)).flags|=4096);return t}return i?(ul(),i=a.fallback,c=t.mode,u=(s=e.child).sibling,(a=Fr(s,{mode:"hidden",children:a.children})).subtreeFlags=65011712&s.subtreeFlags,null!==u?i=Fr(u,i):(i=Wr(i,c,n,null)).flags|=2,i.return=t,a.return=t,a.sibling=i,t.child=a,a=i,i=t.child,null===(c=e.child.memoizedState)?c=Hl(n):(null!==(s=c.cachePool)?(u=Ia._currentValue,s=s.parent!==u?{parent:u,pool:u}:s):s=qa(),c={baseLanes:c.baseLanes|n,cachePool:s}),i.memoizedState=c,i.childLanes=Wl(e,r,n),t.memoizedState=Ul,a):(sl(t),e=(n=e.child).sibling,(n=Fr(n,{mode:"visible",children:a.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function Vl(e,t){return(t=ql({mode:"visible",children:t},e.mode)).return=e,e.child=t}function ql(e,t){return(e=$r(22,e,null,t)).lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Ql(e,t,n){return al(t,e.child,null,n),(e=Vl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Kl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Sa(e.return,t,n)}function Yl(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function Gl(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(zl(e,t,r.children,n),2&(r=fl.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Kl(e,n,t);else if(19===e.tag)Kl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(W(fl,r),a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===pl(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Yl(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===pl(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Yl(t,!0,n,null,o);break;case"together":Yl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Xl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),hc|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Ea(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Fr(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Fr(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Zl(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Ta(e))}function Jl(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Pl=!0;else{if(!(Zl(e,n)||128&t.flags))return Pl=!1,function(e,t,n){switch(t.tag){case 3:K(t,t.stateNode.containerInfo),ka(0,Ia,e.memoizedState.cache),ha();break;case 27:case 5:G(t);break;case 4:K(t,t.stateNode.containerInfo);break;case 10:ka(0,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(sl(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Bl(e,t,n):(sl(t),null!==(e=Xl(e,t,n))?e.sibling:null);sl(t);break;case 19:var a=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Ea(e,t,n,!1),r=0!==(n&t.childLanes)),a){if(r)return Gl(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),W(fl,fl.current),r)break;return null;case 22:case 23:return t.lanes=0,Il(e,t,n);case 24:ka(0,Ia,e.memoizedState.cache)}return Xl(e,t,n)}(e,t,n);Pl=!!(131072&e.flags)}else Pl=!1,la&&1048576&t.flags&&na(t,Yr,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var r=t.elementType,a=r._init;if(r=a(r._payload),t.type=r,"function"!=typeof r){if(null!=r){if((a=r.$$typeof)===C){t.tag=11,t=Rl(null,t,r,e,n);break e}if(a===_){t.tag=14,t=jl(null,t,r,e,n);break e}}throw t=I(r)||r,Error(o(306,t,""))}Or(r)?(e=yl(r,e),t.tag=1,t=Ol(null,t,r,e,n)):(t.tag=0,t=Dl(null,t,r,e,n))}return t;case 0:return Dl(e,t,t.type,t.pendingProps,n);case 1:return Ol(e,t,r=t.type,a=yl(r,t.pendingProps),n);case 3:e:{if(K(t,t.stateNode.containerInfo),null===e)throw Error(o(387));r=t.pendingProps;var i=t.memoizedState;a=i.element,oo(e,t),po(t,r,null,n);var l=t.memoizedState;if(r=l.cache,ka(0,Ia,r),r!==i.cache&&Ca(t,[Ia],n,!0),fo(),r=l.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:l.cache},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Fl(e,t,r,n);break e}if(r!==a){ba(a=Tr(Error(o(424)),t)),t=Fl(e,t,r,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(ia=vd(e.firstChild),oa=t,la=!0,sa=null,ca=!0,n=ol(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ha(),r===a){t=Xl(e,t,n);break e}zl(e,t,r,n)}t=t.child}return t;case 26:return Ml(e,t),null===e?(n=zd(t.type,null,t.pendingProps,null))?t.memoizedState=n:la||(n=t.type,e=t.pendingProps,(r=od(q.current).createElement(n))[Ie]=t,r[Le]=e,nd(r,n,e),Qe(r),t.stateNode=r):t.memoizedState=zd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return G(t),null===e&&la&&(r=t.stateNode=xd(t.type,t.pendingProps,q.current),oa=t,ca=!0,a=ia,hd(t.type)?(wd=a,ia=vd(r.firstChild)):ia=a),zl(e,t,t.pendingProps.children,n),Ml(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&la&&((a=r=ia)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Ue])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(o=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(o!==a.rel||e.getAttribute("href")!==(null==a.href||""===a.href?null:a.href)||e.getAttribute("crossorigin")!==(null==a.crossOrigin?null:a.crossOrigin)||e.getAttribute("title")!==(null==a.title?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((o=e.getAttribute("src"))!==(null==a.src?null:a.src)||e.getAttribute("type")!==(null==a.type?null:a.type)||e.getAttribute("crossorigin")!==(null==a.crossOrigin?null:a.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var o=null==a.name?null:""+a.name;if("hidden"===a.type&&e.getAttribute("name")===o)return e}if(null===(e=vd(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,ca))?(t.stateNode=r,oa=t,ia=vd(r.firstChild),ca=!1,a=!0):a=!1),a||da(t)),G(t),a=t.type,i=t.pendingProps,l=null!==e?e.memoizedProps:null,r=i.children,sd(a,i)?r=null:null!==l&&sd(a,l)&&(t.flags|=32),null!==t.memoizedState&&(a=Io(e,t,Do,null,null,n),Gd._currentValue=a),Ml(e,t),zl(e,t,r,n),t.child;case 6:return null===e&&la&&((e=n=ia)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=vd(e.nextSibling)))return null}return e}(n,t.pendingProps,ca))?(t.stateNode=n,oa=t,ia=null,e=!0):e=!1),e||da(t)),null;case 13:return Bl(e,t,n);case 4:return K(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=al(t,null,r,n):zl(e,t,r,n),t.child;case 11:return Rl(e,t,t.type,t.pendingProps,n);case 7:return zl(e,t,t.pendingProps,n),t.child;case 8:case 12:return zl(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,ka(0,t.type,r.value),zl(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,_a(t),r=r(a=Na(a)),t.flags|=1,zl(e,t,r,n),t.child;case 14:return jl(e,t,t.type,t.pendingProps,n);case 15:return Al(e,t,t.type,t.pendingProps,n);case 19:return Gl(e,t,n);case 31:return r=t.pendingProps,n=t.mode,r={mode:r.mode,children:r.children},null===e?((n=ql(r,n)).ref=t.ref,t.child=n,n.return=t,t=n):((n=Fr(e.child,r)).ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return Il(e,t,n);case 24:return _a(t),r=Na(Ia),null===e?(null===(a=Ba())&&(a=oc,i=La(),a.pooledCache=i,i.refCount++,null!==i&&(a.pooledCacheLanes|=n),a=i),t.memoizedState={parent:r,cache:a},ao(t),ka(0,Ia,a)):(0!==(e.lanes&n)&&(oo(e,t),po(t,null,null,n),fo()),a=e.memoizedState,i=t.memoizedState,a.parent!==r?(a={parent:r,cache:r},t.memoizedState=a,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=a),ka(0,Ia,r)):(r=i.cache,ka(0,Ia,r),r!==a.cache&&Ca(t,[Ia],n,!0))),zl(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function es(e){e.flags|=4}function ts(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!Wd(t)){if(null!==(t=il.current)&&((4194048&lc)===lc?null!==ll:(62914560&lc)!==lc&&!(536870912&lc)||t!==ll))throw eo=Ga,Ka;e.flags|=8192}}function ns(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Ee():536870912,e.lanes|=t,vc|=t)}function rs(e,t){if(!la)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function as(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=65011712&a.subtreeFlags,r|=65011712&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function os(e,t,n){var r=t.pendingProps;switch(aa(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return as(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),xa(Ia),Y(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(ma(t)?es(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,ga())),as(t),null;case 26:return n=t.memoizedState,null===e?(es(t),null!==n?(as(t),ts(t,n)):(as(t),t.flags&=-16777217)):n?n!==e.memoizedState?(es(t),as(t),ts(t,n)):(as(t),t.flags&=-16777217):(e.memoizedProps!==r&&es(t),as(t),t.flags&=-16777217),null;case 27:X(t),n=q.current;var a=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==r&&es(t);else{if(!r){if(null===t.stateNode)throw Error(o(166));return as(t),null}e=B.current,ma(t)?fa(t):(e=xd(a,r,n),t.stateNode=e,es(t))}return as(t),null;case 5:if(X(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&es(t);else{if(!r){if(null===t.stateNode)throw Error(o(166));return as(t),null}if(e=B.current,ma(t))fa(t);else{switch(a=od(q.current),e){case 1:e=a.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=a.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=a.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=a.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":(e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?a.createElement("select",{is:r.is}):a.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?a.createElement(n,{is:r.is}):a.createElement(n)}}e[Ie]=t,e[Le]=r;e:for(a=t.child;null!==a;){if(5===a.tag||6===a.tag)e.appendChild(a.stateNode);else if(4!==a.tag&&27!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;null===a.sibling;){if(null===a.return||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=e;e:switch(nd(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&es(t)}}return as(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&es(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(e=q.current,ma(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(a=oa))switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Ie]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||Zu(e.nodeValue,n)))||da(t)}else(e=od(e).createTextNode(r))[Ie]=t,t.stateNode=e}return as(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(a=ma(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[Ie]=t}else ha(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;as(t),a=!1}else a=ga(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return 256&t.flags?(dl(t),t):(dl(t),null)}if(dl(t),128&t.flags)return t.lanes=n,t;if(n=null!==r,e=null!==e&&null!==e.memoizedState,n){a=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(a=r.alternate.memoizedState.cachePool.pool);var i=null;null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(i=r.memoizedState.cachePool.pool),i!==a&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),ns(t,t.updateQueue),as(t),null;case 4:return Y(),null===e&&Hu(t.stateNode.containerInfo),as(t),null;case 10:return xa(t.type),as(t),null;case 19:if(H(fl),null===(a=t.memoizedState))return as(t),null;if(r=!!(128&t.flags),null===(i=a.rendering))if(r)rs(a,!1);else{if(0!==mc||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(i=pl(e))){for(t.flags|=128,rs(a,!1),e=i.updateQueue,t.updateQueue=e,ns(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Ur(n,e),n=n.sibling;return W(fl,1&fl.current|2),t.child}e=e.sibling}null!==a.tail&&re()>Cc&&(t.flags|=128,r=!0,rs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=pl(i))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,ns(t,e),rs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!i.alternate&&!la)return as(t),null}else 2*re()-a.renderingStartTime>Cc&&536870912!==n&&(t.flags|=128,r=!0,rs(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(null!==(e=a.last)?e.sibling=i:t.child=i,a.last=i)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=re(),t.sibling=null,e=fl.current,W(fl,r?1&e|2:1&e),t):(as(t),null);case 22:case 23:return dl(t),wo(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?!!(536870912&n)&&!(128&t.flags)&&(as(t),6&t.subtreeFlags&&(t.flags|=8192)):as(t),null!==(n=t.updateQueue)&&ns(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&H(Wa),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),xa(Ia),as(t),null;case 25:case 30:return null}throw Error(o(156,t.tag))}function is(e,t){switch(aa(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return xa(Ia),Y(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return X(t),null;case 13:if(dl(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));ha()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return H(fl),null;case 4:return Y(),null;case 10:return xa(t.type),null;case 22:case 23:return dl(t),wo(),null!==e&&H(Wa),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return xa(Ia),null;default:return null}}function ls(e,t){switch(aa(t),t.tag){case 3:xa(Ia),Y();break;case 26:case 27:case 5:X(t);break;case 4:Y();break;case 13:dl(t);break;case 19:H(fl);break;case 10:xa(t.type);break;case 22:case 23:dl(t),wo(),null!==e&&H(Wa);break;case 24:xa(Ia)}}function ss(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var a=r.next;n=a;do{if((n.tag&e)===e){r=void 0;var o=n.create,i=n.inst;r=o(),i.destroy=r}n=n.next}while(n!==a)}}catch(l){fu(t,t.return,l)}}function cs(e,t,n){try{var r=t.updateQueue,a=null!==r?r.lastEffect:null;if(null!==a){var o=a.next;r=o;do{if((r.tag&e)===e){var i=r.inst,l=i.destroy;if(void 0!==l){i.destroy=void 0,a=t;var s=n,c=l;try{c()}catch(u){fu(a,s,u)}}}r=r.next}while(r!==o)}}catch(u){fu(t,t.return,u)}}function us(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{ho(t,n)}catch(r){fu(e,e.return,r)}}}function ds(e,t,n){n.props=yl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){fu(e,t,r)}}function fs(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(a){fu(e,t,a)}}function ps(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(a){fu(e,t,a)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(o){fu(e,t,o)}else n.current=null}function ms(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(a){fu(e,e.return,a)}}function hs(e,t,n){try{var r=e.stateNode;!function(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,l=null,s=null,c=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&null!=f)switch(m){case"checked":case"value":break;case"defaultValue":c=f;default:r.hasOwnProperty(m)||ed(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(null!=m||null!=f))switch(p){case"type":i=m;break;case"name":a=m;break;case"checked":u=m;break;case"defaultChecked":d=m;break;case"value":l=m;break;case"defaultValue":s=m;break;case"children":case"dangerouslySetInnerHTML":if(null!=m)throw Error(o(137,t));break;default:m!==f&&ed(e,t,p,m,r,f)}}return void yt(e,l,s,c,u,d,i,a);case"select":for(i in m=l=s=p=null,n)if(c=n[i],n.hasOwnProperty(i)&&null!=c)switch(i){case"value":break;case"multiple":m=c;default:r.hasOwnProperty(i)||ed(e,t,i,null,r,c)}for(a in r)if(i=r[a],c=n[a],r.hasOwnProperty(a)&&(null!=i||null!=c))switch(a){case"value":p=i;break;case"defaultValue":s=i;break;case"multiple":l=i;default:i!==c&&ed(e,t,a,i,r,c)}return t=s,n=l,r=m,void(null!=p?kt(e,!!n,p,!1):!!r!=!!n&&(null!=t?kt(e,!!n,t,!0):kt(e,!!n,n?[]:"",!1)));case"textarea":for(s in m=p=null,n)if(a=n[s],n.hasOwnProperty(s)&&null!=a&&!r.hasOwnProperty(s))switch(s){case"value":case"children":break;default:ed(e,t,s,null,r,a)}for(l in r)if(a=r[l],i=n[l],r.hasOwnProperty(l)&&(null!=a||null!=i))switch(l){case"value":p=a;break;case"defaultValue":m=a;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=a)throw Error(o(91));break;default:a!==i&&ed(e,t,l,a,r,i)}return void xt(e,p,m);case"option":for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&null!=p&&!r.hasOwnProperty(h))if("selected"===h)e.selected=!1;else ed(e,t,h,null,r,p);for(c in r)if(p=r[c],m=n[c],r.hasOwnProperty(c)&&p!==m&&(null!=p||null!=m))if("selected"===c)e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p;else ed(e,t,c,p,r,m);return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!r.hasOwnProperty(g)&&ed(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(null!=p||null!=m))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(o(137,t));break;default:ed(e,t,u,p,r,m)}return;default:if(Nt(t)){for(var b in n)p=n[b],n.hasOwnProperty(b)&&void 0!==p&&!r.hasOwnProperty(b)&&td(e,t,b,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||void 0===p&&void 0===m||td(e,t,d,p,r,m);return}}for(var y in n)p=n[y],n.hasOwnProperty(y)&&null!=p&&!r.hasOwnProperty(y)&&ed(e,t,y,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||null==p&&null==m||ed(e,t,f,p,r,m)}(r,e.type,n,t),r[Le]=t}catch(a){fu(e,e.return,a)}}function gs(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&hd(e.type)||4===e.tag}function bs(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||gs(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&hd(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ys(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Ju));else if(4!==r&&(27===r&&hd(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(ys(e,t,n),e=e.sibling;null!==e;)ys(e,t,n),e=e.sibling}function vs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&hd(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(vs(e,t,n),e=e.sibling;null!==e;)vs(e,t,n),e=e.sibling}function ws(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);nd(t,r,n),t[Ie]=e,t[Le]=n}catch(o){fu(e,e.return,o)}}var ks=!1,xs=!1,Ss=!1,Cs="function"==typeof WeakSet?WeakSet:Set,Es=null;function Ts(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Os(e,n),4&r&&ss(5,n);break;case 1:if(Os(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(i){fu(n,n.return,i)}else{var a=yl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){fu(n,n.return,l)}}64&r&&us(n),512&r&&fs(n,n.return);break;case 3:if(Os(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{ho(e,t)}catch(i){fu(n,n.return,i)}}break;case 27:null===t&&4&r&&ws(n);case 26:case 5:Os(e,n),null===t&&4&r&&ms(n),512&r&&fs(n,n.return);break;case 12:Os(e,n);break;case 13:Os(e,n),4&r&&js(e,n),64&r&&(null!==(e=n.memoizedState)&&(null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$?"!==e.data||"complete"===n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=gu.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||ks)){t=null!==t&&null!==t.memoizedState||xs,a=ks;var o=xs;ks=r,(xs=t)&&!o?Us(e,n,!!(8772&n.subtreeFlags)):Os(e,n),ks=a,xs=o}break;case 30:break;default:Os(e,n)}}function _s(e){var t=e.alternate;null!==t&&(e.alternate=null,_s(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&He(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ns=null,Ps=!1;function zs(e,t,n){for(n=n.child;null!==n;)Rs(e,t,n),n=n.sibling}function Rs(e,t,n){if(pe&&"function"==typeof pe.onCommitFiberUnmount)try{pe.onCommitFiberUnmount(fe,n)}catch(o){}switch(n.tag){case 26:xs||ps(n,t),zs(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:xs||ps(n,t);var r=Ns,a=Ps;hd(n.type)&&(Ns=n.stateNode,Ps=!1),zs(e,t,n),Sd(n.stateNode),Ns=r,Ps=a;break;case 5:xs||ps(n,t);case 6:if(r=Ns,a=Ps,Ns=null,zs(e,t,n),Ps=a,null!==(Ns=r))if(Ps)try{(9===Ns.nodeType?Ns.body:"HTML"===Ns.nodeName?Ns.ownerDocument.body:Ns).removeChild(n.stateNode)}catch(i){fu(n,t,i)}else try{Ns.removeChild(n.stateNode)}catch(i){fu(n,t,i)}break;case 18:null!==Ns&&(Ps?(gd(9===(e=Ns).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),zf(e)):gd(Ns,n.stateNode));break;case 4:r=Ns,a=Ps,Ns=n.stateNode.containerInfo,Ps=!0,zs(e,t,n),Ns=r,Ps=a;break;case 0:case 11:case 14:case 15:xs||cs(2,n,t),xs||cs(4,n,t),zs(e,t,n);break;case 1:xs||(ps(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&ds(n,t,r)),zs(e,t,n);break;case 21:zs(e,t,n);break;case 22:xs=(r=xs)||null!==n.memoizedState,zs(e,t,n),xs=r;break;default:zs(e,t,n)}}function js(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{zf(e)}catch(n){fu(t,t.return,n)}}function As(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Cs),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Cs),t;default:throw Error(o(435,e.tag))}}(e);t.forEach(function(t){var r=bu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}function Is(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=n[r],i=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 27:if(hd(s.type)){Ns=s.stateNode,Ps=!1;break e}break;case 5:Ns=s.stateNode,Ps=!1;break e;case 3:case 4:Ns=s.stateNode.containerInfo,Ps=!0;break e}s=s.return}if(null===Ns)throw Error(o(160));Rs(i,l,a),Ns=null,Ps=!1,null!==(i=a.alternate)&&(i.return=null),a.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)Ms(t,e),t=t.sibling}var Ls=null;function Ms(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Is(t,e),Ds(e),4&r&&(cs(3,e,e.return),ss(3,e),cs(5,e,e.return));break;case 1:Is(t,e),Ds(e),512&r&&(xs||null===n||ps(n,n.return)),64&r&&ks&&(null!==(e=e.updateQueue)&&(null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r))));break;case 26:var a=Ls;if(Is(t,e),Ds(e),512&r&&(xs||null===n||ps(n,n.return)),4&r){var i=null!==n?n.memoizedState:null;if(r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(r){case"title":(!(i=a.getElementsByTagName("title")[0])||i[Ue]||i[Ie]||"http://www.w3.org/2000/svg"===i.namespaceURI||i.hasAttribute("itemprop"))&&(i=a.createElement(r),a.head.insertBefore(i,a.querySelector("head > title"))),nd(i,r,n),i[Ie]=e,Qe(i),r=i;break e;case"link":var l=Ud("link","href",a).get(r+(n.href||""));if(l)for(var s=0;s<l.length;s++)if((i=l[s]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&i.getAttribute("rel")===(null==n.rel?null:n.rel)&&i.getAttribute("title")===(null==n.title?null:n.title)&&i.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){l.splice(s,1);break t}nd(i=a.createElement(r),r,n),a.head.appendChild(i);break;case"meta":if(l=Ud("meta","content",a).get(r+(n.content||"")))for(s=0;s<l.length;s++)if((i=l[s]).getAttribute("content")===(null==n.content?null:""+n.content)&&i.getAttribute("name")===(null==n.name?null:n.name)&&i.getAttribute("property")===(null==n.property?null:n.property)&&i.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&i.getAttribute("charset")===(null==n.charSet?null:n.charSet)){l.splice(s,1);break t}nd(i=a.createElement(r),r,n),a.head.appendChild(i);break;default:throw Error(o(468,r))}i[Ie]=e,Qe(i),r=i}e.stateNode=r}else Hd(a,e.type,e.stateNode);else e.stateNode=Md(a,r,e.memoizedProps);else i!==r?(null===i?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):i.count--,null===r?Hd(a,e.type,e.stateNode):Md(a,r,e.memoizedProps)):null===r&&null!==e.stateNode&&hs(e,e.memoizedProps,n.memoizedProps)}break;case 27:Is(t,e),Ds(e),512&r&&(xs||null===n||ps(n,n.return)),null!==n&&4&r&&hs(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Is(t,e),Ds(e),512&r&&(xs||null===n||ps(n,n.return)),32&e.flags){a=e.stateNode;try{Ct(a,"")}catch(m){fu(e,e.return,m)}}4&r&&null!=e.stateNode&&hs(e,a=e.memoizedProps,null!==n?n.memoizedProps:a),1024&r&&(Ss=!0);break;case 6:if(Is(t,e),Ds(e),4&r){if(null===e.stateNode)throw Error(o(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(m){fu(e,e.return,m)}}break;case 3:if(Fd=null,a=Ls,Ls=Td(t.containerInfo),Is(t,e),Ls=a,Ds(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{zf(t.containerInfo)}catch(m){fu(e,e.return,m)}Ss&&(Ss=!1,$s(e));break;case 4:r=Ls,Ls=Td(e.stateNode.containerInfo),Is(t,e),Ds(e),Ls=r;break;case 12:default:Is(t,e),Ds(e);break;case 13:Is(t,e),Ds(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(Sc=re()),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,As(e,r)));break;case 22:a=null!==e.memoizedState;var c=null!==n&&null!==n.memoizedState,u=ks,d=xs;if(ks=u||a,xs=d||c,Is(t,e),xs=d,ks=u,Ds(e),8192&r)e:for(t=e.stateNode,t._visibility=a?-2&t._visibility:1|t._visibility,a&&(null===n||c||ks||xs||Fs(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){c=n=t;try{if(i=c.stateNode,a)"function"==typeof(l=i.style).setProperty?l.setProperty("display","none","important"):l.display="none";else{s=c.stateNode;var f=c.memoizedProps.style,p=null!=f&&f.hasOwnProperty("display")?f.display:null;s.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(m){fu(c,c.return,m)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=a?"":c.memoizedProps}catch(m){fu(c,c.return,m)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&(null!==(r=e.updateQueue)&&(null!==(n=r.retryQueue)&&(r.retryQueue=null,As(e,n))));break;case 19:Is(t,e),Ds(e),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,As(e,r)));case 30:case 21:}}function Ds(e){var t=e.flags;if(2&t){try{for(var n,r=e.return;null!==r;){if(gs(r)){n=r;break}r=r.return}if(null==n)throw Error(o(160));switch(n.tag){case 27:var a=n.stateNode;vs(e,bs(e),a);break;case 5:var i=n.stateNode;32&n.flags&&(Ct(i,""),n.flags&=-33),vs(e,bs(e),i);break;case 3:case 4:var l=n.stateNode.containerInfo;ys(e,bs(e),l);break;default:throw Error(o(161))}}catch(s){fu(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function $s(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;$s(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Os(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Ts(e,t.alternate,t),t=t.sibling}function Fs(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:cs(4,t,t.return),Fs(t);break;case 1:ps(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&ds(t,t.return,n),Fs(t);break;case 27:Sd(t.stateNode);case 26:case 5:ps(t,t.return),Fs(t);break;case 22:null===t.memoizedState&&Fs(t);break;default:Fs(t)}e=e.sibling}}function Us(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,a=e,o=t,i=o.flags;switch(o.tag){case 0:case 11:case 15:Us(a,o,n),ss(4,o);break;case 1:if(Us(a,o,n),"function"==typeof(a=(r=o).stateNode).componentDidMount)try{a.componentDidMount()}catch(c){fu(r,r.return,c)}if(null!==(a=(r=o).updateQueue)){var l=r.stateNode;try{var s=a.shared.hiddenCallbacks;if(null!==s)for(a.shared.hiddenCallbacks=null,a=0;a<s.length;a++)mo(s[a],l)}catch(c){fu(r,r.return,c)}}n&&64&i&&us(o),fs(o,o.return);break;case 27:ws(o);case 26:case 5:Us(a,o,n),n&&null===r&&4&i&&ms(o),fs(o,o.return);break;case 12:Us(a,o,n);break;case 13:Us(a,o,n),n&&4&i&&js(a,o);break;case 22:null===o.memoizedState&&Us(a,o,n),fs(o,o.return);break;case 30:break;default:Us(a,o,n)}t=t.sibling}}function Hs(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Ma(n))}function Ws(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ma(e))}function Bs(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)Vs(e,t,n,r),t=t.sibling}function Vs(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Bs(e,t,n,r),2048&a&&ss(9,t);break;case 1:case 13:default:Bs(e,t,n,r);break;case 3:Bs(e,t,n,r),2048&a&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ma(e)));break;case 12:if(2048&a){Bs(e,t,n,r),e=t.stateNode;try{var o=t.memoizedProps,i=o.id,l=o.onPostCommit;"function"==typeof l&&l(i,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(s){fu(t,t.return,s)}}else Bs(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,i=t.alternate,null!==t.memoizedState?2&o._visibility?Bs(e,t,n,r):Qs(e,t):2&o._visibility?Bs(e,t,n,r):(o._visibility|=2,qs(e,t,n,r,!!(10256&t.subtreeFlags))),2048&a&&Hs(i,t);break;case 24:Bs(e,t,n,r),2048&a&&Ws(t.alternate,t)}}function qs(e,t,n,r,a){for(a=a&&!!(10256&t.subtreeFlags),t=t.child;null!==t;){var o=e,i=t,l=n,s=r,c=i.flags;switch(i.tag){case 0:case 11:case 15:qs(o,i,l,s,a),ss(8,i);break;case 23:break;case 22:var u=i.stateNode;null!==i.memoizedState?2&u._visibility?qs(o,i,l,s,a):Qs(o,i):(u._visibility|=2,qs(o,i,l,s,a)),a&&2048&c&&Hs(i.alternate,i);break;case 24:qs(o,i,l,s,a),a&&2048&c&&Ws(i.alternate,i);break;default:qs(o,i,l,s,a)}t=t.sibling}}function Qs(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,a=r.flags;switch(r.tag){case 22:Qs(n,r),2048&a&&Hs(r.alternate,r);break;case 24:Qs(n,r),2048&a&&Ws(r.alternate,r);break;default:Qs(n,r)}t=t.sibling}}var Ks=8192;function Ys(e){if(e.subtreeFlags&Ks)for(e=e.child;null!==e;)Gs(e),e=e.sibling}function Gs(e){switch(e.tag){case 26:Ys(e),e.flags&Ks&&null!==e.memoizedState&&function(e,t,n){if(null===Bd)throw Error(o(475));var r=Bd;if(!("stylesheet"!==t.type||"string"==typeof n.media&&!1===matchMedia(n.media).matches||4&t.state.loading)){if(null===t.instance){var a=Rd(n.href),i=e.querySelector(jd(a));if(i)return null!==(e=i._p)&&"object"==typeof e&&"function"==typeof e.then&&(r.count++,r=qd.bind(r),e.then(r,r)),t.state.loading|=4,t.instance=i,void Qe(i);i=e.ownerDocument||e,n=Ad(n),(a=Cd.get(a))&&$d(n,a),Qe(i=i.createElement("link"));var l=i;l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),nd(i,"link",n),t.instance=i}null===r.stylesheets&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&!(3&t.state.loading)&&(r.count++,t=qd.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}(Ls,e.memoizedState,e.memoizedProps);break;case 5:default:Ys(e);break;case 3:case 4:var t=Ls;Ls=Td(e.stateNode.containerInfo),Ys(e),Ls=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=Ks,Ks=16777216,Ys(e),Ks=t):Ys(e))}}function Xs(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function Zs(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Es=r,tc(r,e)}Xs(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)Js(e),e=e.sibling}function Js(e){switch(e.tag){case 0:case 11:case 15:Zs(e),2048&e.flags&&cs(9,e,e.return);break;case 3:case 12:default:Zs(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,ec(e)):Zs(e)}}function ec(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Es=r,tc(r,e)}Xs(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:cs(8,t,t.return),ec(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,ec(t));break;default:ec(t)}e=e.sibling}}function tc(e,t){for(;null!==Es;){var n=Es;switch(n.tag){case 0:case 11:case 15:cs(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Ma(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Es=r;else e:for(n=e;null!==Es;){var a=(r=Es).sibling,o=r.return;if(_s(r),r===n){Es=null;break e}if(null!==a){a.return=o,Es=a;break e}Es=o}}}var nc={getCacheForType:function(e){var t=Na(Ia),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},rc="function"==typeof WeakMap?WeakMap:Map,ac=0,oc=null,ic=null,lc=0,sc=0,cc=null,uc=!1,dc=!1,fc=!1,pc=0,mc=0,hc=0,gc=0,bc=0,yc=0,vc=0,wc=null,kc=null,xc=!1,Sc=0,Cc=1/0,Ec=null,Tc=null,_c=0,Nc=null,Pc=null,zc=0,Rc=0,jc=null,Ac=null,Ic=0,Lc=null;function Mc(){if(2&ac&&0!==lc)return lc&-lc;if(null!==M.T){return 0!==Oa?Oa:Ru()}return je()}function Dc(){0===yc&&(yc=536870912&lc&&!la?536870912:Ce());var e=il.current;return null!==e&&(e.flags|=32),yc}function $c(e,t,n){(e!==oc||2!==sc&&9!==sc)&&null===e.cancelPendingCommit||(Vc(e,0),Hc(e,lc,yc,!1)),_e(e,n),2&ac&&e===oc||(e===oc&&(!(2&ac)&&(gc|=n),4===mc&&Hc(e,lc,yc,!1)),Cu(e))}function Oc(e,t,n){if(6&ac)throw Error(o(327));for(var r=!n&&!(124&t)&&0===(t&e.expiredLanes)||xe(e,t),a=r?function(e,t){var n=ac;ac|=2;var r=Qc(),a=Kc();oc!==e||lc!==t?(Ec=null,Cc=re()+500,Vc(e,t)):dc=xe(e,t);e:for(;;)try{if(0!==sc&&null!==ic){t=ic;var i=cc;t:switch(sc){case 1:sc=0,cc=null,tu(e,t,i,1);break;case 2:case 9:if(Xa(i)){sc=0,cc=null,eu(t);break}t=function(){2!==sc&&9!==sc||oc!==e||(sc=7),Cu(e)},i.then(t,t);break e;case 3:sc=7;break e;case 4:sc=5;break e;case 7:Xa(i)?(sc=0,cc=null,eu(t)):(sc=0,cc=null,tu(e,t,i,7));break;case 5:var l=null;switch(ic.tag){case 26:l=ic.memoizedState;case 5:case 27:var s=ic;if(!l||Wd(l)){sc=0,cc=null;var c=s.sibling;if(null!==c)ic=c;else{var u=s.return;null!==u?(ic=u,nu(u)):ic=null}break t}}sc=0,cc=null,tu(e,t,i,5);break;case 6:sc=0,cc=null,tu(e,t,i,6);break;case 8:Bc(),mc=6;break e;default:throw Error(o(462))}}Zc();break}catch(d){qc(e,d)}return wa=va=null,M.H=r,M.A=a,ac=n,null!==ic?0:(oc=null,lc=0,zr(),mc)}(e,t):Gc(e,t,!0),i=r;;){if(0===a){dc&&!r&&Hc(e,t,0,!1);break}if(n=e.current.alternate,!i||Uc(n)){if(2===a){if(i=t,e.errorRecoveryDisabledLanes&i)var l=0;else l=0!==(l=-536870913&e.pendingLanes)?l:536870912&l?536870912:0;if(0!==l){t=l;e:{var s=e;a=wc;var c=s.current.memoizedState.isDehydrated;if(c&&(Vc(s,l).flags|=256),2!==(l=Gc(s,l,!1))){if(fc&&!c){s.errorRecoveryDisabledLanes|=i,gc|=i,a=4;break e}i=kc,kc=a,null!==i&&(null===kc?kc=i:kc.push.apply(kc,i))}a=l}if(i=!1,2!==a)continue}}if(1===a){Vc(e,0),Hc(e,t,0,!0);break}e:{switch(r=e,i=a){case 0:case 1:throw Error(o(345));case 4:if((4194048&t)!==t)break;case 6:Hc(r,t,yc,!uc);break e;case 2:kc=null;break;case 3:case 5:break;default:throw Error(o(329))}if((62914560&t)===t&&10<(a=Sc+300-re())){if(Hc(r,t,yc,!uc),0!==ke(r,0,!0))break e;r.timeoutHandle=ud(Fc.bind(null,r,n,kc,Ec,xc,t,yc,gc,vc,uc,i,2,-0,0),a)}else Fc(r,n,kc,Ec,xc,t,yc,gc,vc,uc,i,0,-0,0)}break}a=Gc(e,t,!1),i=!1}Cu(e)}function Fc(e,t,n,r,a,i,l,s,c,u,d,f,p,m){if(e.timeoutHandle=-1,(8192&(f=t.subtreeFlags)||!(16785408&~f))&&(Bd={stylesheets:null,count:0,unsuspend:Vd},Gs(t),null!==(f=function(){if(null===Bd)throw Error(o(475));var e=Bd;return e.stylesheets&&0===e.count&&Kd(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Kd(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}())))return e.cancelPendingCommit=f(au.bind(null,e,t,i,n,r,a,l,s,c,d,1,p,m)),void Hc(e,i,l,!u);au(e,t,i,n,r,a,l,s,c)}function Uc(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!Xn(o(),a))return!1}catch(i){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Hc(e,t,n,r){t&=~bc,t&=~gc,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var o=31-he(a),i=1<<o;r[o]=-1,a&=~i}0!==n&&Ne(e,n,t)}function Wc(){return!!(6&ac)||(Eu(0),!1)}function Bc(){if(null!==ic){if(0===sc)var e=ic.return;else wa=va=null,Fo(e=ic),Xi=null,Zi=0,e=ic;for(;null!==e;)ls(e.alternate,e),e=e.return;ic=null}}function Vc(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,dd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Bc(),oc=e,ic=n=Fr(e.current,null),lc=t,sc=0,cc=null,uc=!1,dc=xe(e,t),fc=!1,vc=yc=bc=gc=hc=mc=0,kc=wc=null,xc=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var a=31-he(r),o=1<<a;t|=e[a],r&=~o}return pc=t,zr(),n}function qc(e,t){xo=null,M.H=Qi,t===Qa||t===Ya?(t=to(),sc=3):t===Ka?(t=to(),sc=4):sc=t===Nl?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,cc=t,null===ic&&(mc=1,Sl(e,Tr(t,e.current)))}function Qc(){var e=M.H;return M.H=Qi,null===e?Qi:e}function Kc(){var e=M.A;return M.A=nc,e}function Yc(){mc=4,uc||(4194048&lc)!==lc&&null!==il.current||(dc=!0),!(134217727&hc)&&!(134217727&gc)||null===oc||Hc(oc,lc,yc,!1)}function Gc(e,t,n){var r=ac;ac|=2;var a=Qc(),o=Kc();oc===e&&lc===t||(Ec=null,Vc(e,t)),t=!1;var i=mc;e:for(;;)try{if(0!==sc&&null!==ic){var l=ic,s=cc;switch(sc){case 8:Bc(),i=6;break e;case 3:case 2:case 9:case 6:null===il.current&&(t=!0);var c=sc;if(sc=0,cc=null,tu(e,l,s,c),n&&dc){i=0;break e}break;default:c=sc,sc=0,cc=null,tu(e,l,s,c)}}Xc(),i=mc;break}catch(u){qc(e,u)}return t&&e.shellSuspendCounter++,wa=va=null,ac=r,M.H=a,M.A=o,null===ic&&(oc=null,lc=0,zr()),i}function Xc(){for(;null!==ic;)Jc(ic)}function Zc(){for(;null!==ic&&!te();)Jc(ic)}function Jc(e){var t=Jl(e.alternate,e,pc);e.memoizedProps=e.pendingProps,null===t?nu(e):ic=t}function eu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=$l(n,t,t.pendingProps,t.type,void 0,lc);break;case 11:t=$l(n,t,t.pendingProps,t.type.render,t.ref,lc);break;case 5:Fo(t);default:ls(n,t),t=Jl(n,t=ic=Ur(t,pc),pc)}e.memoizedProps=e.pendingProps,null===t?nu(e):ic=t}function tu(e,t,n,r){wa=va=null,Fo(t),Xi=null,Zi=0;var a=t.return;try{if(function(e,t,n,r,a){if(n.flags|=32768,null!==r&&"object"==typeof r&&"function"==typeof r.then){if(null!==(t=n.alternate)&&Ea(t,n,a,!0),null!==(n=il.current)){switch(n.tag){case 13:return null===ll?Yc():null===n.alternate&&0===mc&&(mc=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ga?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),pu(e,r,a)),!1;case 22:return n.flags|=65536,r===Ga?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),pu(e,r,a)),!1}throw Error(o(435,n.tag))}return pu(e,r,a),Yc(),!1}if(la)return null!==(t=il.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==ua&&ba(Tr(e=Error(o(422),{cause:r}),n))):(r!==ua&&ba(Tr(t=Error(o(423),{cause:r}),n)),(e=e.current.alternate).flags|=65536,a&=-a,e.lanes|=a,r=Tr(r,n),co(e,a=El(e.stateNode,r,a)),4!==mc&&(mc=2)),!1;var i=Error(o(520),{cause:r});if(i=Tr(i,n),null===wc?wc=[i]:wc.push(i),4!==mc&&(mc=2),null===t)return!0;r=Tr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,co(n,e=El(n.stateNode,r,e)),!1;case 1:if(t=n.type,i=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===i||"function"!=typeof i.componentDidCatch||null!==Tc&&Tc.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,_l(a=Tl(a),e,n,r),co(n,a),!1}n=n.return}while(null!==n);return!1}(e,a,t,n,lc))return mc=1,Sl(e,Tr(n,e.current)),void(ic=null)}catch(i){if(null!==a)throw ic=a,i;return mc=1,Sl(e,Tr(n,e.current)),void(ic=null)}32768&t.flags?(la||1===r?e=!0:dc||536870912&lc?e=!1:(uc=e=!0,(2===r||9===r||3===r||6===r)&&(null!==(r=il.current)&&13===r.tag&&(r.flags|=16384))),ru(t,e)):nu(t)}function nu(e){var t=e;do{if(32768&t.flags)return void ru(t,uc);e=t.return;var n=os(t.alternate,t,pc);if(null!==n)return void(ic=n);if(null!==(t=t.sibling))return void(ic=t);ic=t=e}while(null!==t);0===mc&&(mc=5)}function ru(e,t){do{var n=is(e.alternate,e);if(null!==n)return n.flags&=32767,void(ic=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(ic=e);ic=e=n}while(null!==e);mc=6,ic=null}function au(e,t,n,r,a,i,l,s,c){e.cancelPendingCommit=null;do{cu()}while(0!==_c);if(6&ac)throw Error(o(327));if(null!==t){if(t===e.current)throw Error(o(177));if(i=t.lanes|t.childLanes,function(e,t,n,r,a,o){var i=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var l=e.entanglements,s=e.expirationTimes,c=e.hiddenUpdates;for(n=i&~n;0<n;){var u=31-he(n),d=1<<u;l[u]=0,s[u]=-1;var f=c[u];if(null!==f)for(c[u]=null,u=0;u<f.length;u++){var p=f[u];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Ne(e,r,0),0!==o&&0===a&&0!==e.tag&&(e.suspendedLanes|=o&~(i&~t))}(e,n,i|=Pr,l,s,c),e===oc&&(ic=oc=null,lc=0),Pc=t,Nc=e,zc=n,Rc=i,jc=a,Ac=r,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,J(le,function(){return uu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(13878&t.flags),13878&t.subtreeFlags||r){r=M.T,M.T=null,a=D.p,D.p=2,l=ac,ac|=4;try{!function(e,t){if(e=e.containerInfo,rd=af,rr(e=nr(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(g){n=null;break e}var l=0,s=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var m;f!==n||0!==a&&3!==f.nodeType||(s=l+a),f!==i||0!==r&&3!==f.nodeType||(c=l+r),3===f.nodeType&&(l+=f.nodeValue.length),null!==(m=f.firstChild);)p=f,f=m;for(;;){if(f===e)break t;if(p===n&&++u===a&&(s=l),p===i&&++d===r&&(c=l),null!==(m=f.nextSibling))break;p=(f=p).parentNode}f=m}n=-1===s||-1===c?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ad={focusedElem:e,selectionRange:n},af=!1,Es=t;null!==Es;)if(e=(t=Es).child,1024&t.subtreeFlags&&null!==e)e.return=t,Es=e;else for(;null!==Es;){switch(i=(t=Es).alternate,e=t.flags,t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==i){e=void 0,n=t,a=i.memoizedProps,i=i.memoizedState,r=n.stateNode;try{var h=yl(n.type,a,(n.elementType,n.type));e=r.getSnapshotBeforeUpdate(h,i),r.__reactInternalSnapshotBeforeUpdate=e}catch(b){fu(n,n.return,b)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))bd(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":bd(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(o(163))}if(null!==(e=t.sibling)){e.return=t.return,Es=e;break}Es=t.return}}(e,t)}finally{ac=l,D.p=a,M.T=r}}_c=1,ou(),iu(),lu()}}function ou(){if(1===_c){_c=0;var e=Nc,t=Pc,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=M.T,M.T=null;var r=D.p;D.p=2;var a=ac;ac|=4;try{Ms(t,e);var o=ad,i=nr(e.containerInfo),l=o.focusedElem,s=o.selectionRange;if(i!==l&&l&&l.ownerDocument&&tr(l.ownerDocument.documentElement,l)){if(null!==s&&rr(l)){var c=s.start,u=s.end;if(void 0===u&&(u=c),"selectionStart"in l)l.selectionStart=c,l.selectionEnd=Math.min(u,l.value.length);else{var d=l.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=l.textContent.length,h=Math.min(s.start,m),g=void 0===s.end?h:Math.min(s.end,m);!p.extend&&h>g&&(i=g,g=h,h=i);var b=er(l,h),y=er(l,g);if(b&&y&&(1!==p.rangeCount||p.anchorNode!==b.node||p.anchorOffset!==b.offset||p.focusNode!==y.node||p.focusOffset!==y.offset)){var v=d.createRange();v.setStart(b.node,b.offset),p.removeAllRanges(),h>g?(p.addRange(v),p.extend(y.node,y.offset)):(v.setEnd(y.node,y.offset),p.addRange(v))}}}}for(d=[],p=l;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof l.focus&&l.focus(),l=0;l<d.length;l++){var w=d[l];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}af=!!rd,ad=rd=null}finally{ac=a,D.p=r,M.T=n}}e.current=t,_c=2}}function iu(){if(2===_c){_c=0;var e=Nc,t=Pc,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=M.T,M.T=null;var r=D.p;D.p=2;var a=ac;ac|=4;try{Ts(e,t.alternate,t)}finally{ac=a,D.p=r,M.T=n}}_c=3}}function lu(){if(4===_c||3===_c){_c=0,ne();var e=Nc,t=Pc,n=zc,r=Ac;10256&t.subtreeFlags||10256&t.flags?_c=5:(_c=0,Pc=Nc=null,su(e,e.pendingLanes));var a=e.pendingLanes;if(0===a&&(Tc=null),Re(n),t=t.stateNode,pe&&"function"==typeof pe.onCommitFiberRoot)try{pe.onCommitFiberRoot(fe,t,void 0,!(128&~t.current.flags))}catch(s){}if(null!==r){t=M.T,a=D.p,D.p=2,M.T=null;try{for(var o=e.onRecoverableError,i=0;i<r.length;i++){var l=r[i];o(l.value,{componentStack:l.stack})}}finally{M.T=t,D.p=a}}3&zc&&cu(),Cu(e),a=e.pendingLanes,4194090&n&&42&a?e===Lc?Ic++:(Ic=0,Lc=e):Ic=0,Eu(0)}}function su(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Ma(t)))}function cu(e){return ou(),iu(),lu(),uu()}function uu(){if(5!==_c)return!1;var e=Nc,t=Rc;Rc=0;var n=Re(zc),r=M.T,a=D.p;try{D.p=32>n?32:n,M.T=null,n=jc,jc=null;var i=Nc,l=zc;if(_c=0,Pc=Nc=null,zc=0,6&ac)throw Error(o(331));var s=ac;if(ac|=4,Js(i.current),Vs(i,i.current,l,n),ac=s,Eu(0,!1),pe&&"function"==typeof pe.onPostCommitFiberRoot)try{pe.onPostCommitFiberRoot(fe,i)}catch(c){}return!0}finally{D.p=a,M.T=r,su(e,t)}}function du(e,t,n){t=Tr(n,t),null!==(e=lo(e,t=El(e.stateNode,t,2),2))&&(_e(e,2),Cu(e))}function fu(e,t,n){if(3===e.tag)du(e,e,n);else for(;null!==t;){if(3===t.tag){du(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Tc||!Tc.has(r))){e=Tr(n,e),null!==(r=lo(t,n=Tl(2),2))&&(_l(n,r,t,e),_e(r,2),Cu(r));break}}t=t.return}}function pu(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new rc;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(fc=!0,a.add(n),e=mu.bind(null,e,t,n),t.then(e,e))}function mu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,oc===e&&(lc&n)===n&&(4===mc||3===mc&&(62914560&lc)===lc&&300>re()-Sc?!(2&ac)&&Vc(e,0):bc|=n,vc===lc&&(vc=0)),Cu(e)}function hu(e,t){0===t&&(t=Ee()),null!==(e=Ar(e,t))&&(_e(e,t),Cu(e))}function gu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),hu(e,n)}function bu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(o(314))}null!==r&&r.delete(t),hu(e,n)}var yu=null,vu=null,wu=!1,ku=!1,xu=!1,Su=0;function Cu(e){e!==vu&&null===e.next&&(null===vu?yu=vu=e:vu=vu.next=e),ku=!0,wu||(wu=!0,pd(function(){6&ac?J(oe,Tu):_u()}))}function Eu(e,t){if(!xu&&ku){xu=!0;do{for(var n=!1,r=yu;null!==r;){if(0!==e){var a=r.pendingLanes;if(0===a)var o=0;else{var i=r.suspendedLanes,l=r.pingedLanes;o=(1<<31-he(42|e)+1)-1,o=201326741&(o&=a&~(i&~l))?201326741&o|1:o?2|o:0}0!==o&&(n=!0,zu(r,o))}else o=lc,!(3&(o=ke(r,r===oc?o:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||xe(r,o)||(n=!0,zu(r,o));r=r.next}}while(n);xu=!1}}function Tu(){_u()}function _u(){ku=wu=!1;var e=0;0!==Su&&(function(){var e=window.event;if(e&&"popstate"===e.type)return e!==cd&&(cd=e,!0);return cd=null,!1}()&&(e=Su),Su=0);for(var t=re(),n=null,r=yu;null!==r;){var a=r.next,o=Nu(r,t);0===o?(r.next=null,null===n?yu=a:n.next=a,null===a&&(vu=n)):(n=r,(0!==e||3&o)&&(ku=!0)),r=a}Eu(e)}function Nu(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=-62914561&e.pendingLanes;0<o;){var i=31-he(o),l=1<<i,s=a[i];-1===s?0!==(l&n)&&0===(l&r)||(a[i]=Se(l,t)):s<=t&&(e.expiredLanes|=l),o&=~l}if(n=lc,n=ke(e,e===(t=oc)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===sc||9===sc)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&ee(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||xe(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&ee(r),Re(n)){case 2:case 8:n=ie;break;case 32:default:n=le;break;case 268435456:n=ce}return r=Pu.bind(null,e),n=J(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&ee(r),e.callbackPriority=2,e.callbackNode=null,2}function Pu(e,t){if(0!==_c&&5!==_c)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(cu()&&e.callbackNode!==n)return null;var r=lc;return 0===(r=ke(e,e===oc?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Oc(e,r,t),Nu(e,re()),null!=e.callbackNode&&e.callbackNode===n?Pu.bind(null,e):null)}function zu(e,t){if(cu())return null;Oc(e,t,!0)}function Ru(){return 0===Su&&(Su=Ce()),Su}function ju(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Rt(""+e)}function Au(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Iu=0;Iu<Sr.length;Iu++){var Lu=Sr[Iu];Cr(Lu.toLowerCase(),"on"+(Lu[0].toUpperCase()+Lu.slice(1)))}Cr(hr,"onAnimationEnd"),Cr(gr,"onAnimationIteration"),Cr(br,"onAnimationStart"),Cr("dblclick","onDoubleClick"),Cr("focusin","onFocus"),Cr("focusout","onBlur"),Cr(yr,"onTransitionRun"),Cr(vr,"onTransitionStart"),Cr(wr,"onTransitionCancel"),Cr(kr,"onTransitionEnd"),Xe("onMouseEnter",["mouseout","mouseover"]),Xe("onMouseLeave",["mouseout","mouseover"]),Xe("onPointerEnter",["pointerout","pointerover"]),Xe("onPointerLeave",["pointerout","pointerover"]),Ge("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ge("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ge("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ge("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ge("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ge("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Du=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Mu));function $u(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==o&&a.isPropagationStopped())break e;o=l,a.currentTarget=c;try{o(a)}catch(u){vl(u)}a.currentTarget=null,o=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,c=l.currentTarget,l=l.listener,s!==o&&a.isPropagationStopped())break e;o=l,a.currentTarget=c;try{o(a)}catch(u){vl(u)}a.currentTarget=null,o=s}}}}function Ou(e,t){var n=t[De];void 0===n&&(n=t[De]=new Set);var r=e+"__bubble";n.has(r)||(Wu(t,e,2,!1),n.add(r))}function Fu(e,t,n){var r=0;t&&(r|=4),Wu(n,e,r,t)}var Uu="_reactListening"+Math.random().toString(36).slice(2);function Hu(e){if(!e[Uu]){e[Uu]=!0,Ke.forEach(function(t){"selectionchange"!==t&&(Du.has(t)||Fu(t,!1,e),Fu(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Uu]||(t[Uu]=!0,Fu("selectionchange",!1,t))}}function Wu(e,t,n,r){switch(ff(t)){case 2:var a=of;break;case 8:a=lf;break;default:a=sf}n=a.bind(null,t,n,e),a=void 0,!Ut||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Bu(e,t,n,r,a){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var s=r.stateNode.containerInfo;if(s===a)break;if(4===i)for(i=r.return;null!==i;){var c=i.tag;if((3===c||4===c)&&i.stateNode.containerInfo===a)return;i=i.return}for(;null!==s;){if(null===(i=We(s)))return;if(5===(c=i.tag)||6===c||26===c||27===c){r=o=i;continue e}s=s.parentNode}}r=r.return}$t(function(){var r=o,a=At(n),i=[];e:{var s=xr.get(e);if(void 0!==s){var c=tn,u=e;switch(e){case"keypress":if(0===Qt(n))break e;case"keydown":case"keyup":c=bn;break;case"focusin":u="focus",c=sn;break;case"focusout":u="blur",c=sn;break;case"beforeblur":case"afterblur":c=sn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=on;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=ln;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=vn;break;case hr:case gr:case br:c=cn;break;case kr:c=wn;break;case"scroll":case"scrollend":c=rn;break;case"wheel":c=kn;break;case"copy":case"cut":case"paste":c=un;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=yn;break;case"toggle":case"beforetoggle":c=xn}var d=!!(4&t),f=!d&&("scroll"===e||"scrollend"===e),p=d?null!==s?s+"Capture":null:s;d=[];for(var m,h=r;null!==h;){var g=h;if(m=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===m||null===p||null!=(g=Ot(h,p))&&d.push(Vu(h,g,m)),f)break;h=h.return}0<d.length&&(s=new c(s,u,null,n,a),i.push({event:s,listeners:d}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===jt||!(u=n.relatedTarget||n.fromElement)||!We(u)&&!u[Me])&&(c||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,c?(c=r,null!==(u=(u=n.relatedTarget||n.toElement)?We(u):null)&&(f=l(u),d=u.tag,u!==f||5!==d&&27!==d&&6!==d)&&(u=null)):(c=null,u=r),c!==u)){if(d=on,g="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(d=yn,g="onPointerLeave",p="onPointerEnter",h="pointer"),f=null==c?s:Ve(c),m=null==u?s:Ve(u),(s=new d(g,h+"leave",c,n,a)).target=f,s.relatedTarget=m,g=null,We(a)===r&&((d=new d(p,h+"enter",u,n,a)).target=m,d.relatedTarget=f,g=d),f=g,c&&u)e:{for(p=u,h=0,m=d=c;m;m=Qu(m))h++;for(m=0,g=p;g;g=Qu(g))m++;for(;0<h-m;)d=Qu(d),h--;for(;0<m-h;)p=Qu(p),m--;for(;h--;){if(d===p||null!==p&&d===p.alternate)break e;d=Qu(d),p=Qu(p)}d=null}else d=null;null!==c&&Ku(i,s,c,d,!1),null!==u&&null!==f&&Ku(i,f,u,d,!0)}if("select"===(c=(s=r?Ve(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===c&&"file"===s.type)var b=Fn;else if(In(s))if(Un)b=Gn;else{b=Kn;var y=Qn}else!(c=s.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==s.type&&"radio"!==s.type?r&&Nt(r.elementType)&&(b=Fn):b=Yn;switch(b&&(b=b(e,r))?Ln(i,b,n,a):(y&&y(e,s,r),"focusout"===e&&r&&"number"===s.type&&null!=r.memoizedProps.value&&wt(s,"number",s.value)),y=r?Ve(r):window,e){case"focusin":(In(y)||"true"===y.contentEditable)&&(or=y,ir=r,lr=null);break;case"focusout":lr=ir=or=null;break;case"mousedown":sr=!0;break;case"contextmenu":case"mouseup":case"dragend":sr=!1,cr(i,n,a);break;case"selectionchange":if(ar)break;case"keydown":case"keyup":cr(i,n,a)}var v;if(Cn)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else jn?zn(e,n)&&(w="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(w="onCompositionStart");w&&(_n&&"ko"!==n.locale&&(jn||"onCompositionStart"!==w?"onCompositionEnd"===w&&jn&&(v=qt()):(Bt="value"in(Wt=a)?Wt.value:Wt.textContent,jn=!0)),0<(y=qu(r,w)).length&&(w=new dn(w,e,null,n,a),i.push({event:w,listeners:y}),v?w.data=v:null!==(v=Rn(n))&&(w.data=v))),(v=Tn?function(e,t){switch(e){case"compositionend":return Rn(t);case"keypress":return 32!==t.which?null:(Pn=!0,Nn);case"textInput":return(e=t.data)===Nn&&Pn?null:e;default:return null}}(e,n):function(e,t){if(jn)return"compositionend"===e||!Cn&&zn(e,t)?(e=qt(),Vt=Bt=Wt=null,jn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return _n&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(w=qu(r,"onBeforeInput")).length&&(y=new dn("onBeforeInput","beforeinput",null,n,a),i.push({event:y,listeners:w}),y.data=v)),function(e,t,n,r,a){if("submit"===t&&n&&n.stateNode===a){var o=ju((a[Le]||null).action),i=r.submitter;i&&null!==(t=(t=i[Le]||null)?ju(t.formAction):i.getAttribute("formAction"))&&(o=t,i=null);var l=new tn("action","action",null,r,a);e.push({event:l,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Su){var e=i?Au(a,i):new FormData(a);Ai(n,{pending:!0,data:e,method:a.method,action:o},null,e)}}else"function"==typeof o&&(l.preventDefault(),e=i?Au(a,i):new FormData(a),Ai(n,{pending:!0,data:e,method:a.method,action:o},o,e))},currentTarget:a}]})}}(i,e,r,n,a)}$u(i,t)})}function Vu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qu(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;if(5!==(a=a.tag)&&26!==a&&27!==a||null===o||(null!=(a=Ot(e,n))&&r.unshift(Vu(e,a,o)),null!=(a=Ot(e,t))&&r.push(Vu(e,a,o))),3===e.tag)return r;e=e.return}return[]}function Qu(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Ku(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(l=l.tag,null!==s&&s===r)break;5!==l&&26!==l&&27!==l||null===c||(s=c,a?null!=(c=Ot(n,o))&&i.unshift(Vu(n,c,s)):a||null!=(c=Ot(n,o))&&i.push(Vu(n,c,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Yu=/\r\n?/g,Gu=/\u0000|\uFFFD/g;function Xu(e){return("string"==typeof e?e:""+e).replace(Yu,"\n").replace(Gu,"")}function Zu(e,t){return t=Xu(t),Xu(e)===t}function Ju(){}function ed(e,t,n,r,a,i){switch(n){case"children":"string"==typeof r?"body"===t||"textarea"===t&&""===r||Ct(e,r):("number"==typeof r||"bigint"==typeof r)&&"body"!==t&&Ct(e,""+r);break;case"className":at(e,"class",r);break;case"tabIndex":at(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":at(e,n,r);break;case"style":_t(e,r,i);break;case"data":if("object"!==t){at(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==r||"function"==typeof r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Rt(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if("function"==typeof r){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof i&&("formAction"===n?("input"!==t&&ed(e,t,"name",a.name,a,null),ed(e,t,"formEncType",a.formEncType,a,null),ed(e,t,"formMethod",a.formMethod,a,null),ed(e,t,"formTarget",a.formTarget,a,null)):(ed(e,t,"encType",a.encType,a,null),ed(e,t,"method",a.method,a,null),ed(e,t,"target",a.target,a,null))),null==r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Rt(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&(e.onclick=Ju);break;case"onScroll":null!=r&&Ou("scroll",e);break;case"onScrollEnd":null!=r&&Ou("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(o(61));if(null!=(n=r.__html)){if(null!=a.children)throw Error(o(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"muted":e.muted=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"==typeof r||"boolean"==typeof r||"symbol"==typeof r){e.removeAttribute("xlink:href");break}n=Rt(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!=typeof r&&"symbol"!=typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"==typeof r||"symbol"==typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":Ou("beforetoggle",e),Ou("toggle",e),rt(e,"popover",r);break;case"xlinkActuate":ot(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":ot(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":ot(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":ot(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":ot(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":ot(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":ot(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":ot(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":ot(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":rt(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&rt(e,n=Pt.get(n)||n,r)}}function td(e,t,n,r,a,i){switch(n){case"style":_t(e,r,i);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(o(61));if(null!=(n=r.__html)){if(null!=a.children)throw Error(o(60));e.innerHTML=n}}break;case"children":"string"==typeof r?Ct(e,r):("number"==typeof r||"bigint"==typeof r)&&Ct(e,""+r);break;case"onScroll":null!=r&&Ou("scroll",e);break;case"onScrollEnd":null!=r&&Ou("scrollend",e);break;case"onClick":null!=r&&(e.onclick=Ju);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Ye.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),"function"==typeof(i=null!=(i=e[Le]||null)?i[n]:null)&&e.removeEventListener(t,i,a),"function"!=typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):rt(e,n,r):("function"!=typeof i&&null!==i&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a)))}}function nd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ou("error",e),Ou("load",e);var r,a=!1,i=!1;for(r in n)if(n.hasOwnProperty(r)){var l=n[r];if(null!=l)switch(r){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:ed(e,t,r,l,n,null)}}return i&&ed(e,t,"srcSet",n.srcSet,n,null),void(a&&ed(e,t,"src",n.src,n,null));case"input":Ou("invalid",e);var s=r=l=i=null,c=null,u=null;for(a in n)if(n.hasOwnProperty(a)){var d=n[a];if(null!=d)switch(a){case"name":i=d;break;case"type":l=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":r=d;break;case"defaultValue":s=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(o(137,t));break;default:ed(e,t,a,d,n,null)}}return vt(e,r,s,c,u,l,i,!1),void pt(e);case"select":for(i in Ou("invalid",e),a=l=r=null,n)if(n.hasOwnProperty(i)&&null!=(s=n[i]))switch(i){case"value":r=s;break;case"defaultValue":l=s;break;case"multiple":a=s;default:ed(e,t,i,s,n,null)}return t=r,n=l,e.multiple=!!a,void(null!=t?kt(e,!!a,t,!1):null!=n&&kt(e,!!a,n,!0));case"textarea":for(l in Ou("invalid",e),r=i=a=null,n)if(n.hasOwnProperty(l)&&null!=(s=n[l]))switch(l){case"value":a=s;break;case"defaultValue":i=s;break;case"children":r=s;break;case"dangerouslySetInnerHTML":if(null!=s)throw Error(o(91));break;default:ed(e,t,l,s,n,null)}return St(e,a,i,r),void pt(e);case"option":for(c in n)if(n.hasOwnProperty(c)&&null!=(a=n[c]))if("selected"===c)e.selected=a&&"function"!=typeof a&&"symbol"!=typeof a;else ed(e,t,c,a,n,null);return;case"dialog":Ou("beforetoggle",e),Ou("toggle",e),Ou("cancel",e),Ou("close",e);break;case"iframe":case"object":Ou("load",e);break;case"video":case"audio":for(a=0;a<Mu.length;a++)Ou(Mu[a],e);break;case"image":Ou("error",e),Ou("load",e);break;case"details":Ou("toggle",e);break;case"embed":case"source":case"link":Ou("error",e),Ou("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&null!=(a=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:ed(e,t,u,a,n,null)}return;default:if(Nt(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(a=n[d])&&td(e,t,d,a,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(null!=(a=n[s])&&ed(e,t,s,a,n,null))}var rd=null,ad=null;function od(e){return 9===e.nodeType?e:e.ownerDocument}function id(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ld(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function sd(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var cd=null;var ud="function"==typeof setTimeout?setTimeout:void 0,dd="function"==typeof clearTimeout?clearTimeout:void 0,fd="function"==typeof Promise?Promise:void 0,pd="function"==typeof queueMicrotask?queueMicrotask:void 0!==fd?function(e){return fd.resolve(null).then(e).catch(md)}:ud;function md(e){setTimeout(function(){throw e})}function hd(e){return"head"===e}function gd(e,t){var n=t,r=0,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0<r&&8>r){n=r;var i=e.ownerDocument;if(1&n&&Sd(i.documentElement),2&n&&Sd(i.body),4&n)for(Sd(n=i.head),i=n.firstChild;i;){var l=i.nextSibling,s=i.nodeName;i[Ue]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===i.rel.toLowerCase()||n.removeChild(i),i=l}}if(0===a)return e.removeChild(o),void zf(t);a--}else"$"===n||"$?"===n||"$!"===n?a++:r=n.charCodeAt(0)-48;else r=0;n=o}while(n);zf(t)}function bd(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":bd(n),He(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function yd(e){return"$!"===e.data||"$?"===e.data&&"complete"===e.ownerDocument.readyState}function vd(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"F!"===t||"F"===t)break;if("/$"===t)return null}}return e}var wd=null;function kd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}function xd(e,t,n){switch(t=od(n),e){case"html":if(!(e=t.documentElement))throw Error(o(452));return e;case"head":if(!(e=t.head))throw Error(o(453));return e;case"body":if(!(e=t.body))throw Error(o(454));return e;default:throw Error(o(451))}}function Sd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);He(e)}var Cd=new Map,Ed=new Set;function Td(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var _d=D.d;D.d={f:function(){var e=_d.f(),t=Wc();return e||t},r:function(e){var t=Be(e);null!==t&&5===t.tag&&"form"===t.type?Li(t):_d.r(e)},D:function(e){_d.D(e),Pd("dns-prefetch",e,null)},C:function(e,t){_d.C(e,t),Pd("preconnect",e,t)},L:function(e,t,n){_d.L(e,t,n);var r=Nd;if(r&&e&&t){var a='link[rel="preload"][as="'+bt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(a+='[imagesrcset="'+bt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(a+='[imagesizes="'+bt(n.imageSizes)+'"]')):a+='[href="'+bt(e)+'"]';var o=a;switch(t){case"style":o=Rd(e);break;case"script":o=Id(e)}Cd.has(o)||(e=f({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Cd.set(o,e),null!==r.querySelector(a)||"style"===t&&r.querySelector(jd(o))||"script"===t&&r.querySelector(Ld(o))||(nd(t=r.createElement("link"),"link",e),Qe(t),r.head.appendChild(t)))}},m:function(e,t){_d.m(e,t);var n=Nd;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",a='link[rel="modulepreload"][as="'+bt(r)+'"][href="'+bt(e)+'"]',o=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Id(e)}if(!Cd.has(o)&&(e=f({rel:"modulepreload",href:e},t),Cd.set(o,e),null===n.querySelector(a))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ld(o)))return}nd(r=n.createElement("link"),"link",e),Qe(r),n.head.appendChild(r)}}},X:function(e,t){_d.X(e,t);var n=Nd;if(n&&e){var r=qe(n).hoistableScripts,a=Id(e),o=r.get(a);o||((o=n.querySelector(Ld(a)))||(e=f({src:e,async:!0},t),(t=Cd.get(a))&&Od(e,t),Qe(o=n.createElement("script")),nd(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(a,o))}},S:function(e,t,n){_d.S(e,t,n);var r=Nd;if(r&&e){var a=qe(r).hoistableStyles,o=Rd(e);t=t||"default";var i=a.get(o);if(!i){var l={loading:0,preload:null};if(i=r.querySelector(jd(o)))l.loading=5;else{e=f({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Cd.get(o))&&$d(e,n);var s=i=r.createElement("link");Qe(s),nd(s,"link",e),s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),s.addEventListener("load",function(){l.loading|=1}),s.addEventListener("error",function(){l.loading|=2}),l.loading|=4,Dd(i,t,r)}i={type:"stylesheet",instance:i,count:1,state:l},a.set(o,i)}}},M:function(e,t){_d.M(e,t);var n=Nd;if(n&&e){var r=qe(n).hoistableScripts,a=Id(e),o=r.get(a);o||((o=n.querySelector(Ld(a)))||(e=f({src:e,async:!0,type:"module"},t),(t=Cd.get(a))&&Od(e,t),Qe(o=n.createElement("script")),nd(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(a,o))}}};var Nd="undefined"==typeof document?null:document;function Pd(e,t,n){var r=Nd;if(r&&"string"==typeof t&&t){var a=bt(t);a='link[rel="'+e+'"][href="'+a+'"]',"string"==typeof n&&(a+='[crossorigin="'+n+'"]'),Ed.has(a)||(Ed.add(a),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(a)&&(nd(t=r.createElement("link"),"link",e),Qe(t),r.head.appendChild(t)))}}function zd(e,t,n,r){var a,i,l,s,c=(c=q.current)?Td(c):null;if(!c)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Rd(n.href),(r=(n=qe(c).hoistableStyles).get(t))||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Rd(n.href);var u=qe(c).hoistableStyles,d=u.get(e);if(d||(c=c.ownerDocument||c,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=c.querySelector(jd(e)))&&!u._p&&(d.instance=u,d.state.loading=5),Cd.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Cd.set(e,n),u||(a=c,i=e,l=n,s=d.state,a.querySelector('link[rel="preload"][as="style"]['+i+"]")?s.loading=1:(i=a.createElement("link"),s.preload=i,i.addEventListener("load",function(){return s.loading|=1}),i.addEventListener("error",function(){return s.loading|=2}),nd(i,"link",l),Qe(i),a.head.appendChild(i))))),t&&null===r)throw Error(o(528,""));return d}if(t&&null!==r)throw Error(o(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Id(n),(r=(n=qe(c).hoistableScripts).get(t))||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Rd(e){return'href="'+bt(e)+'"'}function jd(e){return'link[rel="stylesheet"]['+e+"]"}function Ad(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Id(e){return'[src="'+bt(e)+'"]'}function Ld(e){return"script[async]"+e}function Md(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+bt(n.href)+'"]');if(r)return t.instance=r,Qe(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return Qe(r=(e.ownerDocument||e).createElement("style")),nd(r,"style",a),Dd(r,n.precedence,e),t.instance=r;case"stylesheet":a=Rd(n.href);var i=e.querySelector(jd(a));if(i)return t.state.loading|=4,t.instance=i,Qe(i),i;r=Ad(n),(a=Cd.get(a))&&$d(r,a),Qe(i=(e.ownerDocument||e).createElement("link"));var l=i;return l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),nd(i,"link",r),t.state.loading|=4,Dd(i,n.precedence,e),t.instance=i;case"script":return i=Id(n.src),(a=e.querySelector(Ld(i)))?(t.instance=a,Qe(a),a):(r=n,(a=Cd.get(i))&&Od(r=f({},n),a),Qe(a=(e=e.ownerDocument||e).createElement("script")),nd(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(o(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,Dd(r,n.precedence,e));return t.instance}function Dd(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,o=a,i=0;i<r.length;i++){var l=r[i];if(l.dataset.precedence===t)o=l;else if(o!==a)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function $d(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function Od(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var Fd=null;function Ud(e,t,n){if(null===Fd){var r=new Map,a=Fd=new Map;a.set(n,r)}else(r=(a=Fd).get(n))||(r=new Map,a.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var o=n[a];if(!(o[Ue]||o[Ie]||"link"===e&&"stylesheet"===o.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==o.namespaceURI){var i=o.getAttribute(t)||"";i=e+i;var l=r.get(i);l?l.push(o):r.set(i,[o])}}return r}function Hd(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function Wd(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var Bd=null;function Vd(){}function qd(){if(this.count--,0===this.count)if(this.stylesheets)Kd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var Qd=null;function Kd(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Qd=new Map,t.forEach(Yd,e),Qd=null,qd.call(e))}function Yd(e,t){if(!(4&t.state.loading)){var n=Qd.get(e);if(n)var r=n.get(null);else{n=new Map,Qd.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<a.length;o++){var i=a[o];"LINK"!==i.nodeName&&"not all"===i.getAttribute("media")||(n.set(i.dataset.precedence,i),r=i)}r&&n.set(null,r)}i=(a=t.instance).getAttribute("data-precedence"),(o=n.get(i)||r)===r&&n.set(null,a),n.set(i,a),this.count++,r=qd.bind(this),a.addEventListener("load",r),a.addEventListener("error",r),o?o.parentNode.insertBefore(a,o.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(a,e.firstChild),t.state.loading|=4}}var Gd={$$typeof:S,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function Xd(e,t,n,r,a,o,i,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Te(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Te(0),this.hiddenUpdates=Te(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=o,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function Zd(e,t,n,r,a,o,i,l,s,c,u,d){return e=new Xd(e,t,n,i,l,s,c,d),t=1,!0===o&&(t|=24),o=$r(3,null,null,t),e.current=o,o.stateNode=e,(t=La()).refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:r,isDehydrated:n,cache:t},ao(o),e}function Jd(e){return e?e=Mr:Mr}function ef(e,t,n,r,a,o){a=Jd(a),null===r.context?r.context=a:r.pendingContext=a,(r=io(t)).payload={element:n},null!==(o=void 0===o?null:o)&&(r.callback=o),null!==(n=lo(e,r,t))&&($c(n,0,t),so(n,e,t))}function tf(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function nf(e,t){tf(e,t),(e=e.alternate)&&tf(e,t)}function rf(e){if(13===e.tag){var t=Ar(e,67108864);null!==t&&$c(t,0,67108864),nf(e,67108864)}}var af=!0;function of(e,t,n,r){var a=M.T;M.T=null;var o=D.p;try{D.p=2,sf(e,t,n,r)}finally{D.p=o,M.T=a}}function lf(e,t,n,r){var a=M.T;M.T=null;var o=D.p;try{D.p=8,sf(e,t,n,r)}finally{D.p=o,M.T=a}}function sf(e,t,n,r){if(af){var a=cf(r);if(null===a)Bu(e,t,r,uf,n),kf(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return mf=xf(mf,e,t,n,r,a),!0;case"dragenter":return hf=xf(hf,e,t,n,r,a),!0;case"mouseover":return gf=xf(gf,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return bf.set(o,xf(bf.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,yf.set(o,xf(yf.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(kf(e,r),4&t&&-1<wf.indexOf(e)){for(;null!==a;){var o=Be(a);if(null!==o)switch(o.tag){case 3:if((o=o.stateNode).current.memoizedState.isDehydrated){var i=we(o.pendingLanes);if(0!==i){var l=o;for(l.pendingLanes|=2,l.entangledLanes|=2;i;){var s=1<<31-he(i);l.entanglements[1]|=s,i&=~s}Cu(o),!(6&ac)&&(Cc=re()+500,Eu(0))}}break;case 13:null!==(l=Ar(o,2))&&$c(l,0,2),Wc(),nf(o,2)}if(null===(o=cf(r))&&Bu(e,t,r,uf,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else Bu(e,t,r,null,n)}}function cf(e){return df(e=At(e))}var uf=null;function df(e){if(uf=null,null!==(e=We(e))){var t=l(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=c(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return uf=e,null}function ff(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ae()){case oe:return 2;case ie:return 8;case le:case se:return 32;case ce:return 268435456;default:return 32}default:return 32}}var pf=!1,mf=null,hf=null,gf=null,bf=new Map,yf=new Map,vf=[],wf="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function kf(e,t){switch(e){case"focusin":case"focusout":mf=null;break;case"dragenter":case"dragleave":hf=null;break;case"mouseover":case"mouseout":gf=null;break;case"pointerover":case"pointerout":bf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":yf.delete(t.pointerId)}}function xf(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&(null!==(t=Be(t))&&rf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Sf(e){var t=We(e.target);if(null!==t){var n=l(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=c(n)))return e.blockedOn=t,void function(e,t){var n=D.p;try{return D.p=e,t()}finally{D.p=n}}(e.priority,function(){if(13===n.tag){var e=Mc();e=ze(e);var t=Ar(n,e);null!==t&&$c(t,0,e),nf(n,e)}})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Cf(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=cf(e.nativeEvent);if(null!==n)return null!==(t=Be(n))&&rf(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);jt=r,n.target.dispatchEvent(r),jt=null,t.shift()}return!0}function Ef(e,t,n){Cf(e)&&n.delete(t)}function Tf(){pf=!1,null!==mf&&Cf(mf)&&(mf=null),null!==hf&&Cf(hf)&&(hf=null),null!==gf&&Cf(gf)&&(gf=null),bf.forEach(Ef),yf.forEach(Ef)}function _f(e,t){e.blockedOn===t&&(e.blockedOn=null,pf||(pf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Tf)))}var Nf=null;function Pf(e){Nf!==e&&(Nf=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Nf===e&&(Nf=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],a=e[t+2];if("function"!=typeof r){if(null===df(r||n))continue;break}var o=Be(n);null!==o&&(e.splice(t,3),t-=3,Ai(o,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function zf(e){function t(t){return _f(t,e)}null!==mf&&_f(mf,e),null!==hf&&_f(hf,e),null!==gf&&_f(gf,e),bf.forEach(t),yf.forEach(t);for(var n=0;n<vf.length;n++){var r=vf[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<vf.length&&null===(n=vf[0]).blockedOn;)Sf(n),null===n.blockedOn&&vf.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var a=n[r],o=n[r+1],i=a[Le]||null;if("function"==typeof o)i||Pf(n);else if(i){var l=null;if(o&&o.hasAttribute("formAction")){if(a=o,i=o[Le]||null)l=i.formAction;else if(null!==df(a))continue}else l=i.action;"function"==typeof l?n[r+1]=l:(n.splice(r,3),r-=3),Pf(n)}}}function Rf(e){this._internalRoot=e}function jf(e){this._internalRoot=e}jf.prototype.render=Rf.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));ef(t.current,Mc(),e,t,null,null)},jf.prototype.unmount=Rf.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;ef(e.current,2,null,e,null,null),Wc(),t[Me]=null}},jf.prototype.unstable_scheduleHydration=function(e){if(e){var t=je();e={blockedOn:null,target:e,priority:t};for(var n=0;n<vf.length&&0!==t&&t<vf[n].priority;n++);vf.splice(n,0,e),0===n&&Sf(e)}};var Af=r.version;if("19.1.1"!==Af)throw Error(o(527,Af,"19.1.1"));D.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=l(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(r=a.return)){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return u(a),e;if(i===r)return u(a),t;i=i.sibling}throw Error(o(188))}if(n.return!==r.return)n=a,r=i;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,r=i;break}if(c===r){s=!0,r=a,n=i;break}c=c.sibling}if(!s){for(c=i.child;c;){if(c===n){s=!0,n=i,r=a;break}if(c===r){s=!0,r=i,n=a;break}c=c.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?d(e):null)?null:e.stateNode};var If={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.1.1"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Lf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lf.isDisabled&&Lf.supportsFiber)try{fe=Lf.inject(If),pe=Lf}catch(Df){}}return s.createRoot=function(e,t){if(!i(e))throw Error(o(299));var n=!1,r="",a=wl,l=kl,s=xl;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(a=t.onUncaughtError),void 0!==t.onCaughtError&&(l=t.onCaughtError),void 0!==t.onRecoverableError&&(s=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=Zd(e,1,!1,null,0,n,r,a,l,s,0,null),e[Me]=t.current,Hu(e),new Rf(t)},s.hydrateRoot=function(e,t,n){if(!i(e))throw Error(o(299));var r=!1,a="",l=wl,s=kl,c=xl,u=null;return null!=n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onUncaughtError&&(l=n.onUncaughtError),void 0!==n.onCaughtError&&(s=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&n.unstable_transitionCallbacks,void 0!==n.formState&&(u=n.formState)),(t=Zd(e,1,!0,t,0,r,a,l,s,c,0,u)).context=Jd(null),n=t.current,(a=io(r=ze(r=Mc()))).callback=null,lo(n,a,r),n=r,t.current.lanes=n,_e(t,n),Cu(t),e[Me]=t.current,Hu(e),new jf(t)},s.version="19.1.1",s}var b,y,v={};
|
|
19
|
+
*/function g(){if(p)return s;p=1;var n=h(),r=e,a=t;function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function l(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function c(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function u(e){if(l(e)!==e)throw Error(o(188))}function d(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=d(e)))return t;e=e.sibling}return null}var f=Object.assign,m=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),x=Symbol.for("react.consumer"),S=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),z=Symbol.for("react.memo_cache_sentinel"),R=Symbol.iterator;function j(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=R&&e[R]||e["@@iterator"])?e:null}var A=Symbol.for("react.client.reference");function I(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===A?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case y:return"Fragment";case w:return"Profiler";case v:return"StrictMode";case E:return"Suspense";case T:return"SuspenseList";case P:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case b:return"Portal";case S:return(e.displayName||"Context")+".Provider";case x:return(e._context.displayName||"Context")+".Consumer";case C:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case _:return null!==(t=e.displayName||null)?t:I(e.type)||"Memo";case N:t=e._payload,e=e._init;try{return I(e(t))}catch(n){}}return null}var L=Array.isArray,M=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D={pending:!1,data:null,method:null,action:null},O=[],F=-1;function U(e){return{current:e}}function H(e){0>F||(e.current=O[F],O[F]=null,F--)}function W(e,t){F++,O[F]=e.current,e.current=t}var B=U(null),V=U(null),q=U(null),Q=U(null);function K(e,t){switch(W(q,t),W(V,e),W(B,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?id(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=ld(t=id(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(B),W(B,e)}function Y(){H(B),H(V),H(q)}function G(e){null!==e.memoizedState&&W(Q,e);var t=B.current,n=ld(t,e.type);t!==n&&(W(V,e),W(B,n))}function X(e){V.current===e&&(H(B),H(V)),Q.current===e&&(H(Q),Gd._currentValue=D)}var Z=Object.prototype.hasOwnProperty,J=n.unstable_scheduleCallback,ee=n.unstable_cancelCallback,te=n.unstable_shouldYield,ne=n.unstable_requestPaint,re=n.unstable_now,ae=n.unstable_getCurrentPriorityLevel,oe=n.unstable_ImmediatePriority,ie=n.unstable_UserBlockingPriority,le=n.unstable_NormalPriority,se=n.unstable_LowPriority,ce=n.unstable_IdlePriority,ue=n.log,de=n.unstable_setDisableYieldValue,fe=null,pe=null;function me(e){if("function"==typeof ue&&de(e),pe&&"function"==typeof pe.setStrictMode)try{pe.setStrictMode(fe,e)}catch(t){}}var he=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(ge(e)/be|0)|0},ge=Math.log,be=Math.LN2;var ye=256,ve=4194304;function we(e){var t=42&e;if(0!==t)return t;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:return 64;case 128:return 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 4194048&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ke(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var a=0,o=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var l=134217727&r;return 0!==l?0!==(r=l&~o)?a=we(r):0!==(i&=l)?a=we(i):n||0!==(n=l&~e)&&(a=we(n)):0!==(l=r&~o)?a=we(l):0!==i?a=we(i):n||0!==(n=r&~e)&&(a=we(n)),0===a?0:0!==t&&t!==a&&0===(t&o)&&((o=a&-a)>=(n=t&-t)||32===o&&4194048&n)?t:a}function xe(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Se(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 t+5e3;default:return-1}}function Ce(){var e=ye;return!(4194048&(ye<<=1))&&(ye=256),e}function Ee(){var e=ve;return!(62914560&(ve<<=1))&&(ve=4194304),e}function Te(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _e(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ne(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-he(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194090&n}function Pe(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-he(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function ze(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Re(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function je(){var e=$.p;return 0!==e?e:void 0===(e=window.event)?32:ff(e.type)}var Ae=Math.random().toString(36).slice(2),Ie="__reactFiber$"+Ae,Le="__reactProps$"+Ae,Me="__reactContainer$"+Ae,$e="__reactEvents$"+Ae,De="__reactListeners$"+Ae,Oe="__reactHandles$"+Ae,Fe="__reactResources$"+Ae,Ue="__reactMarker$"+Ae;function He(e){delete e[Ie],delete e[Le],delete e[$e],delete e[De],delete e[Oe]}function We(e){var t=e[Ie];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Me]||n[Ie]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=kd(e);null!==e;){if(n=e[Ie])return n;e=kd(e)}return t}n=(e=n).parentNode}return null}function Be(e){if(e=e[Ie]||e[Me]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function Ve(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(o(33))}function qe(e){var t=e[Fe];return t||(t=e[Fe]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Qe(e){e[Ue]=!0}var Ke=new Set,Ye={};function Ge(e,t){Xe(e,t),Xe(e+"Capture",t)}function Xe(e,t){for(Ye[e]=t,e=0;e<t.length;e++)Ke.add(t[e])}var Ze,Je,et=RegExp("^[: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]*$"),tt={},nt={};function rt(e,t,n){if(a=t,Z.call(nt,a)||!Z.call(tt,a)&&(et.test(a)?nt[a]=!0:(tt[a]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var a}function at(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function ot(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function it(e){if(void 0===Ze)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ze=t&&t[1]||"",Je=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+Ze+e+Je}var lt=!1;function st(e,t){if(!e||lt)return"";lt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(a){var r=a}Reflect.construct(e,[],n)}else{try{n.call()}catch(o){r=o}e.call(n.prototype)}}else{try{throw Error()}catch(i){r=i}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(l){if(l&&r&&"string"==typeof l.stack)return[l.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),i=o[0],l=o[1];if(i&&l){var s=i.split("\n"),c=l.split("\n");for(a=r=0;r<s.length&&!s[r].includes("DetermineComponentFrameRoot");)r++;for(;a<c.length&&!c[a].includes("DetermineComponentFrameRoot");)a++;if(r===s.length||a===c.length)for(r=s.length-1,a=c.length-1;1<=r&&0<=a&&s[r]!==c[a];)a--;for(;1<=r&&0<=a;r--,a--)if(s[r]!==c[a]){if(1!==r||1!==a)do{if(r--,0>--a||s[r]!==c[a]){var u="\n"+s[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=a);break}}}finally{lt=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?it(n):""}function ct(e){switch(e.tag){case 26:case 27:case 5:return it(e.type);case 16:return it("Lazy");case 13:return it("Suspense");case 19:return it("SuspenseList");case 0:case 15:return st(e.type,!1);case 11:return st(e.type.render,!1);case 1:return st(e.type,!0);case 31:return it("Activity");default:return""}}function ut(e){try{var t="";do{t+=ct(e),e=e.return}while(e);return t}catch(n){return"\nError generating stack: "+n.message+"\n"+n.stack}}function dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ft(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function pt(e){e._valueTracker||(e._valueTracker=function(e){var t=ft(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function mt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ft(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ht(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var gt=/[\n"\\]/g;function bt(e){return e.replace(gt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function yt(e,t,n,r,a,o,i,l){e.name="",null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i?e.type=i:e.removeAttribute("type"),null!=t?"number"===i?(0===t&&""===e.value||e.value!=t)&&(e.value=""+dt(t)):e.value!==""+dt(t)&&(e.value=""+dt(t)):"submit"!==i&&"reset"!==i||e.removeAttribute("value"),null!=t?wt(e,i,dt(t)):null!=n?wt(e,i,dt(n)):null!=r&&e.removeAttribute("value"),null==a&&null!=o&&(e.defaultChecked=!!o),null!=a&&(e.checked=a&&"function"!=typeof a&&"symbol"!=typeof a),null!=l&&"function"!=typeof l&&"symbol"!=typeof l&&"boolean"!=typeof l?e.name=""+dt(l):e.removeAttribute("name")}function vt(e,t,n,r,a,o,i,l){if(null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.type=o),null!=t||null!=n){if(("submit"===o||"reset"===o)&&null==t)return;n=null!=n?""+dt(n):"",t=null!=t?""+dt(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:a)&&"symbol"!=typeof r&&!!r,e.checked=l?e.checked:!!r,e.defaultChecked=!!r,null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.name=i)}function wt(e,t,n){"number"===t&&ht(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function kt(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+dt(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function xt(e,t,n){null==t||((t=""+dt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+dt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function St(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(o(92));if(L(r)){if(1<r.length)throw Error(o(93));r=r[0]}n=r}null==n&&(n=""),t=n}n=dt(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r)}function Ct(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Et=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Tt(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Et.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function _t(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(o(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Tt(e,a,r)}else for(var i in t)t.hasOwnProperty(i)&&Tt(e,i,t[i])}function Nt(e){if(-1===e.indexOf("-"))return!1;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 Pt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),zt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Rt(e){return zt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var jt=null;function At(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var It=null,Lt=null;function Mt(e){var t=Be(e);if(t&&(e=t.stateNode)){var n=e[Le]||null;e:switch(e=t.stateNode,t.type){case"input":if(yt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+bt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[Le]||null;if(!a)throw Error(o(90));yt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&mt(r)}break e;case"textarea":xt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&kt(e,!!n.multiple,t,!1)}}}var $t=!1;function Dt(e,t,n){if($t)return e(t,n);$t=!0;try{return e(t)}finally{if($t=!1,(null!==It||null!==Lt)&&(Wc(),It&&(t=It,e=Lt,Lt=It=null,Mt(t),e)))for(t=0;t<e.length;t++)Mt(e[t])}}function Ot(e,t){var n=e.stateNode;if(null===n)return null;var r=n[Le]||null;if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Ft=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Ut=!1;if(Ft)try{var Ht={};Object.defineProperty(Ht,"passive",{get:function(){Ut=!0}}),window.addEventListener("test",Ht,Ht),window.removeEventListener("test",Ht,Ht)}catch(Mf){Ut=!1}var Wt=null,Bt=null,Vt=null;function qt(){if(Vt)return Vt;var e,t,n=Bt,r=n.length,a="value"in Wt?Wt.value:Wt.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return Vt=a.slice(e,1<t?1-t:void 0)}function Qt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Kt(){return!0}function Yt(){return!1}function Gt(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?Kt:Yt,this.isPropagationStopped=Yt,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Kt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Kt)},persist:function(){},isPersistent:Kt}),t}var Xt,Zt,Jt,en={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tn=Gt(en),nn=f({},en,{view:0,detail:0}),rn=Gt(nn),an=f({},nn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Jt&&(Jt&&"mousemove"===e.type?(Xt=e.screenX-Jt.screenX,Zt=e.screenY-Jt.screenY):Zt=Xt=0,Jt=e),Xt)},movementY:function(e){return"movementY"in e?e.movementY:Zt}}),on=Gt(an),ln=Gt(f({},an,{dataTransfer:0})),sn=Gt(f({},nn,{relatedTarget:0})),cn=Gt(f({},en,{animationName:0,elapsedTime:0,pseudoElement:0})),un=Gt(f({},en,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),dn=Gt(f({},en,{data:0})),fn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},mn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=mn[e])&&!!t[e]}function gn(){return hn}var bn=Gt(f({},nn,{key:function(e){if(e.key){var t=fn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Qt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?pn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gn,charCode:function(e){return"keypress"===e.type?Qt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Qt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),yn=Gt(f({},an,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),vn=Gt(f({},nn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gn})),wn=Gt(f({},en,{propertyName:0,elapsedTime:0,pseudoElement:0})),kn=Gt(f({},an,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),xn=Gt(f({},en,{newState:0,oldState:0})),Sn=[9,13,27,32],Cn=Ft&&"CompositionEvent"in window,En=null;Ft&&"documentMode"in document&&(En=document.documentMode);var Tn=Ft&&"TextEvent"in window&&!En,_n=Ft&&(!Cn||En&&8<En&&11>=En),Nn=String.fromCharCode(32),Pn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Sn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var jn=!1;var An={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function In(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!An[e.type]:"textarea"===t}function Ln(e,t,n,r){It?Lt?Lt.push(r):Lt=[r]:It=r,0<(t=qu(t,"onChange")).length&&(n=new tn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Mn=null,$n=null;function Dn(e){Du(e,0)}function On(e){if(mt(Ve(e)))return e}function Fn(e,t){if("change"===e)return t}var Un=!1;if(Ft){var Hn;if(Ft){var Wn="oninput"in document;if(!Wn){var Bn=document.createElement("div");Bn.setAttribute("oninput","return;"),Wn="function"==typeof Bn.oninput}Hn=Wn}else Hn=!1;Un=Hn&&(!document.documentMode||9<document.documentMode)}function Vn(){Mn&&(Mn.detachEvent("onpropertychange",qn),$n=Mn=null)}function qn(e){if("value"===e.propertyName&&On($n)){var t=[];Ln(t,$n,e,At(e)),Dt(Dn,t)}}function Qn(e,t,n){"focusin"===e?(Vn(),$n=n,(Mn=t).attachEvent("onpropertychange",qn)):"focusout"===e&&Vn()}function Kn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return On($n)}function Yn(e,t){if("click"===e)return On(t)}function Gn(e,t){if("input"===e||"change"===e)return On(t)}var Xn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Zn(e,t){if(Xn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!Z.call(t,a)||!Xn(e[a],t[a]))return!1}return!0}function Jn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function er(e,t){var n,r=Jn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Jn(r)}}function tr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?tr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function nr(e){for(var t=ht((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=ht((e=t.contentWindow).document)}return t}function rr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var ar=Ft&&"documentMode"in document&&11>=document.documentMode,or=null,ir=null,lr=null,sr=!1;function cr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;sr||null==or||or!==ht(r)||("selectionStart"in(r=or)&&rr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},lr&&Zn(lr,r)||(lr=r,0<(r=qu(ir,"onSelect")).length&&(t=new tn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=or)))}function ur(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var dr={animationend:ur("Animation","AnimationEnd"),animationiteration:ur("Animation","AnimationIteration"),animationstart:ur("Animation","AnimationStart"),transitionrun:ur("Transition","TransitionRun"),transitionstart:ur("Transition","TransitionStart"),transitioncancel:ur("Transition","TransitionCancel"),transitionend:ur("Transition","TransitionEnd")},fr={},pr={};function mr(e){if(fr[e])return fr[e];if(!dr[e])return e;var t,n=dr[e];for(t in n)if(n.hasOwnProperty(t)&&t in pr)return fr[e]=n[t];return e}Ft&&(pr=document.createElement("div").style,"AnimationEvent"in window||(delete dr.animationend.animation,delete dr.animationiteration.animation,delete dr.animationstart.animation),"TransitionEvent"in window||delete dr.transitionend.transition);var hr=mr("animationend"),gr=mr("animationiteration"),br=mr("animationstart"),yr=mr("transitionrun"),vr=mr("transitionstart"),wr=mr("transitioncancel"),kr=mr("transitionend"),xr=new Map,Sr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Cr(e,t){xr.set(e,t),Ge(t,[e])}Sr.push("scrollEnd");var Er=new WeakMap;function Tr(e,t){if("object"==typeof e&&null!==e){var n=Er.get(e);return void 0!==n?n:(t={value:e,source:t,stack:ut(t)},Er.set(e,t),t)}return{value:e,source:t,stack:ut(t)}}var _r=[],Nr=0,Pr=0;function zr(){for(var e=Nr,t=Pr=Nr=0;t<e;){var n=_r[t];_r[t++]=null;var r=_r[t];_r[t++]=null;var a=_r[t];_r[t++]=null;var o=_r[t];if(_r[t++]=null,null!==r&&null!==a){var i=r.pending;null===i?a.next=a:(a.next=i.next,i.next=a),r.pending=a}0!==o&&Ir(n,a,o)}}function Rr(e,t,n,r){_r[Nr++]=e,_r[Nr++]=t,_r[Nr++]=n,_r[Nr++]=r,Pr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function jr(e,t,n,r){return Rr(e,t,n,r),Lr(e)}function Ar(e,t){return Rr(e,null,null,t),Lr(e)}function Ir(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var a=!1,o=e.return;null!==o;)o.childLanes|=n,null!==(r=o.alternate)&&(r.childLanes|=n),22===o.tag&&(null===(e=o.stateNode)||1&e._visibility||(a=!0)),e=o,o=o.return;return 3===e.tag?(o=e.stateNode,a&&null!==t&&(a=31-he(n),null===(r=(e=o.hiddenUpdates)[a])?e[a]=[t]:r.push(t),t.lane=536870912|n),o):null}function Lr(e){if(50<Ic)throw Ic=0,Lc=null,Error(o(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Mr={};function $r(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.refCleanup=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 Dr(e,t,n,r){return new $r(e,t,n,r)}function Or(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Fr(e,t){var n=e.alternate;return null===n?((n=Dr(e.tag,t,e.key,e.mode)).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=65011712&e.flags,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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Ur(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Hr(e,t,n,r,a,i){var l=0;if(r=e,"function"==typeof e)Or(e)&&(l=1);else if("string"==typeof e)l=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,B.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case P:return(e=Dr(31,n,t,a)).elementType=P,e.lanes=i,e;case y:return Wr(n.children,a,i,t);case v:l=8,a|=24;break;case w:return(e=Dr(12,n,t,2|a)).elementType=w,e.lanes=i,e;case E:return(e=Dr(13,n,t,a)).elementType=E,e.lanes=i,e;case T:return(e=Dr(19,n,t,a)).elementType=T,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:case S:l=10;break e;case x:l=9;break e;case C:l=11;break e;case _:l=14;break e;case N:l=16,r=null;break e}l=29,n=Error(o(130,null===e?"null":typeof e,"")),r=null}return(t=Dr(l,n,t,a)).elementType=e,t.type=r,t.lanes=i,t}function Wr(e,t,n,r){return(e=Dr(7,e,r,t)).lanes=n,e}function Br(e,t,n){return(e=Dr(6,e,null,t)).lanes=n,e}function Vr(e,t,n){return(t=Dr(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var qr=[],Qr=0,Kr=null,Yr=0,Gr=[],Xr=0,Zr=null,Jr=1,ea="";function ta(e,t){qr[Qr++]=Yr,qr[Qr++]=Kr,Kr=e,Yr=t}function na(e,t,n){Gr[Xr++]=Jr,Gr[Xr++]=ea,Gr[Xr++]=Zr,Zr=e;var r=Jr;e=ea;var a=32-he(r)-1;r&=~(1<<a),n+=1;var o=32-he(t)+a;if(30<o){var i=a-a%5;o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,Jr=1<<32-he(t)+a|n<<a|r,ea=o+e}else Jr=1<<o|n<<a|r,ea=e}function ra(e){null!==e.return&&(ta(e,1),na(e,1,0))}function aa(e){for(;e===Kr;)Kr=qr[--Qr],qr[Qr]=null,Yr=qr[--Qr],qr[Qr]=null;for(;e===Zr;)Zr=Gr[--Xr],Gr[Xr]=null,ea=Gr[--Xr],Gr[Xr]=null,Jr=Gr[--Xr],Gr[Xr]=null}var oa=null,ia=null,la=!1,sa=null,ca=!1,ua=Error(o(519));function da(e){throw ba(Tr(Error(o(418,"")),e)),ua}function fa(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Ie]=e,t[Le]=r,n){case"dialog":Ou("cancel",t),Ou("close",t);break;case"iframe":case"object":case"embed":Ou("load",t);break;case"video":case"audio":for(n=0;n<Mu.length;n++)Ou(Mu[n],t);break;case"source":Ou("error",t);break;case"img":case"image":case"link":Ou("error",t),Ou("load",t);break;case"details":Ou("toggle",t);break;case"input":Ou("invalid",t),vt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),pt(t);break;case"select":Ou("invalid",t);break;case"textarea":Ou("invalid",t),St(t,r.value,r.defaultValue,r.children),pt(t)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||Zu(t.textContent,n)?(null!=r.popover&&(Ou("beforetoggle",t),Ou("toggle",t)),null!=r.onScroll&&Ou("scroll",t),null!=r.onScrollEnd&&Ou("scrollend",t),null!=r.onClick&&(t.onclick=Ju),t=!0):t=!1,t||da(e)}function pa(e){for(oa=e.return;oa;)switch(oa.tag){case 5:case 13:return void(ca=!1);case 27:case 3:return void(ca=!0);default:oa=oa.return}}function ma(e){if(e!==oa)return!1;if(!la)return pa(e),la=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||sd(e.type,e.memoizedProps)),t=!t),t&&ia&&da(e),pa(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType)if("/$"===(t=e.data)){if(0===n){ia=vd(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++;e=e.nextSibling}ia=null}}else 27===n?(n=ia,hd(e.type)?(e=wd,wd=null,ia=e):ia=n):ia=oa?vd(e.stateNode.nextSibling):null;return!0}function ha(){ia=oa=null,la=!1}function ga(){var e=sa;return null!==e&&(null===kc?kc=e:kc.push.apply(kc,e),sa=null),e}function ba(e){null===sa?sa=[e]:sa.push(e)}var ya=U(null),va=null,wa=null;function ka(e,t,n){W(ya,t._currentValue),t._currentValue=n}function xa(e){e._currentValue=ya.current,H(ya)}function Sa(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ca(e,t,n,r){var a=e.child;for(null!==a&&(a.return=e);null!==a;){var i=a.dependencies;if(null!==i){var l=a.child;i=i.firstContext;e:for(;null!==i;){var s=i;i=a;for(var c=0;c<t.length;c++)if(s.context===t[c]){i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),Sa(i.return,n,e),r||(l=null);break e}i=s.next}}else if(18===a.tag){if(null===(l=a.return))throw Error(o(341));l.lanes|=n,null!==(i=l.alternate)&&(i.lanes|=n),Sa(l,n,e),l=null}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===e){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}}function Ea(e,t,n,r){e=null;for(var a=t,i=!1;null!==a;){if(!i)if(524288&a.flags)i=!0;else if(262144&a.flags)break;if(10===a.tag){var l=a.alternate;if(null===l)throw Error(o(387));if(null!==(l=l.memoizedProps)){var s=a.type;Xn(a.pendingProps.value,l.value)||(null!==e?e.push(s):e=[s])}}else if(a===Q.current){if(null===(l=a.alternate))throw Error(o(387));l.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(null!==e?e.push(Gd):e=[Gd])}a=a.return}null!==e&&Ca(t,e,n,r),t.flags|=262144}function Ta(e){for(e=e.firstContext;null!==e;){if(!Xn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _a(e){va=e,wa=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Na(e){return za(va,e)}function Pa(e,t){return null===va&&_a(e),za(e,t)}function za(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===wa){if(null===e)throw Error(o(308));wa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else wa=wa.next=t;return n}var Ra="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ja=n.unstable_scheduleCallback,Aa=n.unstable_NormalPriority,Ia={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function La(){return{controller:new Ra,data:new Map,refCount:0}}function Ma(e){e.refCount--,0===e.refCount&&ja(Aa,function(){e.controller.abort()})}var $a=null,Da=0,Oa=0,Fa=null;function Ua(){if(0===--Da&&null!==$a){null!==Fa&&(Fa.status="fulfilled");var e=$a;$a=null,Oa=0,Fa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Ha=M.S;M.S=function(e,t){"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===$a){var n=$a=[];Da=0,Oa=Ru(),Fa={status:"pending",value:void 0,then:function(e){n.push(e)}}}Da++,t.then(Ua,Ua)}(0,t),null!==Ha&&Ha(e,t)};var Wa=U(null);function Ba(){var e=Wa.current;return null!==e?e:oc.pooledCache}function Va(e,t){W(Wa,null===t?Wa.current:t.pool)}function qa(){var e=Ba();return null===e?null:{parent:Ia._currentValue,pool:e}}var Qa=Error(o(460)),Ka=Error(o(474)),Ya=Error(o(542)),Ga={then:function(){}};function Xa(e){return"fulfilled"===(e=e.status)||"rejected"===e}function Za(){}function Ja(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Za,Za),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw no(e=t.reason),e;default:if("string"==typeof t.status)t.then(Za,Za);else{if(null!==(e=oc)&&100<e.shellSuspendCounter)throw Error(o(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw no(e=t.reason),e}throw eo=t,Qa}}var eo=null;function to(){if(null===eo)throw Error(o(459));var e=eo;return eo=null,e}function no(e){if(e===Qa||e===Ya)throw Error(o(483))}var ro=!1;function ao(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function oo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function io(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function lo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&ac){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=Lr(e),Ir(e,null,n),t}return Rr(e,r,t,n),Lr(e)}function so(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Pe(e,n)}}function co(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var uo=!1;function fo(){if(uo){if(null!==Fa)throw Fa}}function po(e,t,n,r){uo=!1;var a=e.updateQueue;ro=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,l=a.shared.pending;if(null!==l){a.shared.pending=null;var s=l,c=s.next;s.next=null,null===i?o=c:i.next=c,i=s;var u=e.alternate;null!==u&&((l=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s))}if(null!==o){var d=a.baseState;for(i=0,u=c=s=null,l=o;;){var p=-536870913&l.lane,m=p!==l.lane;if(m?(lc&p)===p:(r&p)===p){0!==p&&p===Oa&&(uo=!0),null!==u&&(u=u.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var h=e,g=l;p=t;var b=n;switch(g.tag){case 1:if("function"==typeof(h=g.payload)){d=h.call(b,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=g.payload)?h.call(b,d,p):h))break e;d=f({},d,p);break e;case 2:ro=!0}}null!==(p=l.callback)&&(e.flags|=64,m&&(e.flags|=8192),null===(m=a.callbacks)?a.callbacks=[p]:m.push(p))}else m={lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=m,s=d):u=u.next=m,i|=p;if(null===(l=l.next)){if(null===(l=a.shared.pending))break;l=(m=l).next,m.next=null,a.lastBaseUpdate=m,a.shared.pending=null}}null===u&&(s=d),a.baseState=s,a.firstBaseUpdate=c,a.lastBaseUpdate=u,null===o&&(a.shared.lanes=0),hc|=i,e.lanes=i,e.memoizedState=d}}function mo(e,t){if("function"!=typeof e)throw Error(o(191,e));e.call(t)}function ho(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)mo(n[e],t)}var go=U(null),bo=U(0);function yo(e,t){W(bo,e=pc),W(go,t),pc=e|t.baseLanes}function vo(){W(bo,pc),W(go,go.current)}function wo(){pc=bo.current,H(go),H(bo)}var ko=0,xo=null,So=null,Co=null,Eo=!1,To=!1,_o=!1,No=0,Po=0,zo=null,Ro=0;function jo(){throw Error(o(321))}function Ao(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Xn(e[n],t[n]))return!1;return!0}function Io(e,t,n,r,a,o){return ko=o,xo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=null===e||null===e.memoizedState?Ki:Yi,_o=!1,o=n(r,a),_o=!1,To&&(o=Mo(t,n,r,a)),Lo(e),o}function Lo(e){M.H=Qi;var t=null!==So&&null!==So.next;if(ko=0,Co=So=xo=null,Eo=!1,Po=0,zo=null,t)throw Error(o(300));null===e||Pl||null!==(e=e.dependencies)&&Ta(e)&&(Pl=!0)}function Mo(e,t,n,r){xo=e;var a=0;do{if(To&&(zo=null),Po=0,To=!1,25<=a)throw Error(o(301));if(a+=1,Co=So=null,null!=e.updateQueue){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,null!=i.memoCache&&(i.memoCache.index=0)}M.H=Gi,i=t(n,r)}while(To);return i}function $o(){var e=M.H,t=e.useState()[0];return t="function"==typeof t.then?Wo(t):t,e=e.useState()[0],(null!==So?So.memoizedState:null)!==e&&(xo.flags|=1024),t}function Do(){var e=0!==No;return No=0,e}function Oo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Fo(e){if(Eo){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Eo=!1}ko=0,Co=So=xo=null,To=!1,Po=No=0,zo=null}function Uo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Co?xo.memoizedState=Co=e:Co=Co.next=e,Co}function Ho(){if(null===So){var e=xo.alternate;e=null!==e?e.memoizedState:null}else e=So.next;var t=null===Co?xo.memoizedState:Co.next;if(null!==t)Co=t,So=e;else{if(null===e){if(null===xo.alternate)throw Error(o(467));throw Error(o(310))}e={memoizedState:(So=e).memoizedState,baseState:So.baseState,baseQueue:So.baseQueue,queue:So.queue,next:null},null===Co?xo.memoizedState=Co=e:Co=Co.next=e}return Co}function Wo(e){var t=Po;return Po+=1,null===zo&&(zo=[]),e=Ja(zo,e,t),t=xo,null===(null===Co?t.memoizedState:Co.next)&&(t=t.alternate,M.H=null===t||null===t.memoizedState?Ki:Yi),e}function Bo(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return Wo(e);if(e.$$typeof===S)return Na(e)}throw Error(o(438,String(e)))}function Vo(e){var t=null,n=xo.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=xo.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},xo.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=z;return t.index++,n}function qo(e,t){return"function"==typeof t?t(e):t}function Qo(e){return Ko(Ho(),So,e)}function Ko(e,t,n){var r=e.queue;if(null===r)throw Error(o(311));r.lastRenderedReducer=n;var a=e.baseQueue,i=r.pending;if(null!==i){if(null!==a){var l=a.next;a.next=i.next,i.next=l}t.baseQueue=a=i,r.pending=null}if(i=e.baseState,null===a)e.memoizedState=i;else{var s=l=null,c=null,u=t=a.next,d=!1;do{var f=-536870913&u.lane;if(f!==u.lane?(lc&f)===f:(ko&f)===f){var p=u.revertLane;if(0===p)null!==c&&(c=c.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Oa&&(d=!0);else{if((ko&p)===p){u=u.next,p===Oa&&(d=!0);continue}f={lane:0,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(s=c=f,l=i):c=c.next=f,xo.lanes|=p,hc|=p}f=u.action,_o&&n(i,f),i=u.hasEagerState?u.eagerState:n(i,f)}else p={lane:f,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(s=c=p,l=i):c=c.next=p,xo.lanes|=f,hc|=f;u=u.next}while(null!==u&&u!==t);if(null===c?l=i:c.next=s,!Xn(i,e.memoizedState)&&(Pl=!0,d&&null!==(n=Fa)))throw n;e.memoizedState=i,e.baseState=l,e.baseQueue=c,r.lastRenderedState=i}return null===a&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Yo(e){var t=Ho(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(null!==a){n.pending=null;var l=a=a.next;do{i=e(i,l.action),l=l.next}while(l!==a);Xn(i,t.memoizedState)||(Pl=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Go(e,t,n){var r=xo,a=Ho(),i=la;if(i){if(void 0===n)throw Error(o(407));n=n()}else n=t();var l=!Xn((So||a).memoizedState,n);if(l&&(a.memoizedState=n,Pl=!0),a=a.queue,vi(2048,8,Jo.bind(null,r,a,e),[e]),a.getSnapshot!==t||l||null!==Co&&1&Co.memoizedState.tag){if(r.flags|=2048,gi(9,{destroy:void 0,resource:void 0},Zo.bind(null,r,a,n,t),null),null===oc)throw Error(o(349));i||124&ko||Xo(r,t,n)}return n}function Xo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=xo.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},xo.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Zo(e,t,n,r){t.value=n,t.getSnapshot=r,ei(t)&&ti(e)}function Jo(e,t,n){return n(function(){ei(t)&&ti(e)})}function ei(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Xn(e,n)}catch(r){return!0}}function ti(e){var t=Ar(e,2);null!==t&&Dc(t,e,2)}function ni(e){var t=Uo();if("function"==typeof e){var n=e;if(e=n(),_o){me(!0);try{n()}finally{me(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:e},t}function ri(e,t,n,r){return e.baseState=n,Ko(e,So,"function"==typeof r?r:qo)}function ai(e,t,n,r,a){if(Bi(e))throw Error(o(485));if(null!==(e=t.action)){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){i.listeners.push(e)}};null!==M.T?n(!0):i.isTransition=!1,r(i),null===(n=t.pending)?(i.next=t.pending=i,oi(t,i)):(i.next=n.next,t.pending=n.next=i)}}function oi(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var o=M.T,i={};M.T=i;try{var l=n(a,r),s=M.S;null!==s&&s(i,l),ii(e,t,l)}catch(c){si(e,t,c)}finally{M.T=o}}else try{ii(e,t,o=n(a,r))}catch(u){si(e,t,u)}}function ii(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){li(e,t,n)},function(n){return si(e,t,n)}):li(e,t,n)}function li(e,t,n){t.status="fulfilled",t.value=n,ci(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,oi(e,n)))}function si(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,ci(t),t=t.next}while(t!==r)}e.action=null}function ci(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ui(e,t){return t}function di(e,t){if(la){var n=oc.formState;if(null!==n){e:{var r=xo;if(la){if(ia){t:{for(var a=ia,o=ca;8!==a.nodeType;){if(!o){a=null;break t}if(null===(a=vd(a.nextSibling))){a=null;break t}}a="F!"===(o=a.data)||"F"===o?a:null}if(a){ia=vd(a.nextSibling),r="F!"===a.data;break e}}da(r)}r=!1}r&&(t=n[0])}}return(n=Uo()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ui,lastRenderedState:t},n.queue=r,n=Ui.bind(null,xo,r),r.dispatch=n,r=ni(!1),o=Wi.bind(null,xo,!1,r.queue),a={state:t,dispatch:null,action:e,pending:null},(r=Uo()).queue=a,n=ai.bind(null,xo,a,o,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function fi(e){return pi(Ho(),So,e)}function pi(e,t,n){if(t=Ko(e,t,ui)[0],e=Qo(qo)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=Wo(t)}catch(i){if(i===Qa)throw Ya;throw i}else r=t;var a=(t=Ho()).queue,o=a.dispatch;return n!==t.memoizedState&&(xo.flags|=2048,gi(9,{destroy:void 0,resource:void 0},mi.bind(null,a,n),null)),[r,o,e]}function mi(e,t){e.action=t}function hi(e){var t=Ho(),n=So;if(null!==n)return pi(t,n,e);Ho(),t=t.memoizedState;var r=(n=Ho()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function gi(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=xo.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},xo.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function bi(){return Ho().memoizedState}function yi(e,t,n,r){var a=Uo();r=void 0===r?null:r,xo.flags|=e,a.memoizedState=gi(1|t,{destroy:void 0,resource:void 0},n,r)}function vi(e,t,n,r){var a=Ho();r=void 0===r?null:r;var o=a.memoizedState.inst;null!==So&&null!==r&&Ao(r,So.memoizedState.deps)?a.memoizedState=gi(t,o,n,r):(xo.flags|=e,a.memoizedState=gi(1|t,o,n,r))}function wi(e,t){yi(8390656,8,e,t)}function ki(e,t){vi(2048,8,e,t)}function xi(e,t){return vi(4,2,e,t)}function Si(e,t){return vi(4,4,e,t)}function Ci(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function Ei(e,t,n){n=null!=n?n.concat([e]):null,vi(4,4,Ci.bind(null,t,e),n)}function Ti(){}function _i(e,t){var n=Ho();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&Ao(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ni(e,t){var n=Ho();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&Ao(t,r[1]))return r[0];if(r=e(),_o){me(!0);try{e()}finally{me(!1)}}return n.memoizedState=[r,t],r}function Pi(e,t,n){return void 0===n||1073741824&ko?e.memoizedState=t:(e.memoizedState=n,e=$c(),xo.lanes|=e,hc|=e,n)}function zi(e,t,n,r){return Xn(n,t)?n:null!==go.current?(e=Pi(e,n,r),Xn(e,t)||(Pl=!0),e):42&ko?(e=$c(),xo.lanes|=e,hc|=e,t):(Pl=!0,e.memoizedState=n)}function Ri(e,t,n,r,a){var o=$.p;$.p=0!==o&&8>o?o:8;var i,l,s,c=M.T,u={};M.T=u,Wi(e,!1,t,n);try{var d=a(),f=M.S;if(null!==f&&f(u,d),null!==d&&"object"==typeof d&&"function"==typeof d.then)Hi(e,t,(i=r,l=[],s={status:"pending",value:null,reason:null,then:function(e){l.push(e)}},d.then(function(){s.status="fulfilled",s.value=i;for(var e=0;e<l.length;e++)(0,l[e])(i)},function(e){for(s.status="rejected",s.reason=e,e=0;e<l.length;e++)(0,l[e])(void 0)}),s),Mc());else Hi(e,t,r,Mc())}catch(p){Hi(e,t,{then:function(){},status:"rejected",reason:p},Mc())}finally{$.p=o,M.T=c}}function ji(){}function Ai(e,t,n,r){if(5!==e.tag)throw Error(o(476));var a=Ii(e).queue;Ri(e,a,t,D,null===n?ji:function(){return Li(e),n(r)})}function Ii(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:D,baseState:D,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:D},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function Li(e){Hi(e,Ii(e).next.queue,{},Mc())}function Mi(){return Na(Gd)}function $i(){return Ho().memoizedState}function Di(){return Ho().memoizedState}function Oi(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Mc(),r=lo(t,e=io(n),n);return null!==r&&(Dc(r,t,n),so(r,t,n)),t={cache:La()},void(e.payload=t)}t=t.return}}function Fi(e,t,n){var r=Mc();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Bi(e)?Vi(t,n):null!==(n=jr(e,t,n,r))&&(Dc(n,e,r),qi(n,t,r))}function Ui(e,t,n){Hi(e,t,n,Mc())}function Hi(e,t,n,r){var a={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bi(e))Vi(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=o(i,n);if(a.hasEagerState=!0,a.eagerState=l,Xn(l,i))return Rr(e,t,a,0),null===oc&&zr(),!1}catch(s){}if(null!==(n=jr(e,t,a,r)))return Dc(n,e,r),qi(n,t,r),!0}return!1}function Wi(e,t,n,r){if(r={lane:2,revertLane:Ru(),action:r,hasEagerState:!1,eagerState:null,next:null},Bi(e)){if(t)throw Error(o(479))}else null!==(t=jr(e,n,r,2))&&Dc(t,e,2)}function Bi(e){var t=e.alternate;return e===xo||null!==t&&t===xo}function Vi(e,t){To=Eo=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function qi(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Pe(e,n)}}var Qi={readContext:Na,use:Bo,useCallback:jo,useContext:jo,useEffect:jo,useImperativeHandle:jo,useLayoutEffect:jo,useInsertionEffect:jo,useMemo:jo,useReducer:jo,useRef:jo,useState:jo,useDebugValue:jo,useDeferredValue:jo,useTransition:jo,useSyncExternalStore:jo,useId:jo,useHostTransitionStatus:jo,useFormState:jo,useActionState:jo,useOptimistic:jo,useMemoCache:jo,useCacheRefresh:jo},Ki={readContext:Na,use:Bo,useCallback:function(e,t){return Uo().memoizedState=[e,void 0===t?null:t],e},useContext:Na,useEffect:wi,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,yi(4194308,4,Ci.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yi(4194308,4,e,t)},useInsertionEffect:function(e,t){yi(4,2,e,t)},useMemo:function(e,t){var n=Uo();t=void 0===t?null:t;var r=e();if(_o){me(!0);try{e()}finally{me(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Uo();if(void 0!==n){var a=n(t);if(_o){me(!0);try{n(t)}finally{me(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=Fi.bind(null,xo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Uo().memoizedState=e},useState:function(e){var t=(e=ni(e)).queue,n=Ui.bind(null,xo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ti,useDeferredValue:function(e,t){return Pi(Uo(),e,t)},useTransition:function(){var e=ni(!1);return e=Ri.bind(null,xo,e.queue,!0,!1),Uo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=xo,a=Uo();if(la){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===oc)throw Error(o(349));124&lc||Xo(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,wi(Jo.bind(null,r,i,e),[e]),r.flags|=2048,gi(9,{destroy:void 0,resource:void 0},Zo.bind(null,r,i,n,t),null),n},useId:function(){var e=Uo(),t=oc.identifierPrefix;if(la){var n=ea;t="«"+t+"R"+(n=(Jr&~(1<<32-he(Jr)-1)).toString(32)+n),0<(n=No++)&&(t+="H"+n.toString(32)),t+="»"}else t="«"+t+"r"+(n=Ro++).toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Mi,useFormState:di,useActionState:di,useOptimistic:function(e){var t=Uo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Wi.bind(null,xo,!0,n),n.dispatch=t,[e,t]},useMemoCache:Vo,useCacheRefresh:function(){return Uo().memoizedState=Oi.bind(null,xo)}},Yi={readContext:Na,use:Bo,useCallback:_i,useContext:Na,useEffect:ki,useImperativeHandle:Ei,useInsertionEffect:xi,useLayoutEffect:Si,useMemo:Ni,useReducer:Qo,useRef:bi,useState:function(){return Qo(qo)},useDebugValue:Ti,useDeferredValue:function(e,t){return zi(Ho(),So.memoizedState,e,t)},useTransition:function(){var e=Qo(qo)[0],t=Ho().memoizedState;return["boolean"==typeof e?e:Wo(e),t]},useSyncExternalStore:Go,useId:$i,useHostTransitionStatus:Mi,useFormState:fi,useActionState:fi,useOptimistic:function(e,t){return ri(Ho(),0,e,t)},useMemoCache:Vo,useCacheRefresh:Di},Gi={readContext:Na,use:Bo,useCallback:_i,useContext:Na,useEffect:ki,useImperativeHandle:Ei,useInsertionEffect:xi,useLayoutEffect:Si,useMemo:Ni,useReducer:Yo,useRef:bi,useState:function(){return Yo(qo)},useDebugValue:Ti,useDeferredValue:function(e,t){var n=Ho();return null===So?Pi(n,e,t):zi(n,So.memoizedState,e,t)},useTransition:function(){var e=Yo(qo)[0],t=Ho().memoizedState;return["boolean"==typeof e?e:Wo(e),t]},useSyncExternalStore:Go,useId:$i,useHostTransitionStatus:Mi,useFormState:hi,useActionState:hi,useOptimistic:function(e,t){var n=Ho();return null!==So?ri(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Vo,useCacheRefresh:Di},Xi=null,Zi=0;function Ji(e){var t=Zi;return Zi+=1,null===Xi&&(Xi=[]),Ja(Xi,e,t)}function el(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function tl(e,t){if(t.$$typeof===m)throw Error(o(525));throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function nl(e){return(0,e._init)(e._payload)}function rl(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function a(e,t){return(e=Fr(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Br(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===y?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===N&&nl(o)===t.type)?(el(t=a(t,n.props),n),t.return=e,t):(el(t=Hr(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Vr(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Wr(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Br(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case g:return el(n=Hr(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case b:return(t=Vr(t,e.mode,n)).return=e,t;case N:return f(e,t=(0,t._init)(t._payload),n)}if(L(t)||j(t))return(t=Wr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return f(e,Ji(t),n);if(t.$$typeof===S)return f(e,Pa(e,t),n);tl(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==a?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case g:return n.key===a?c(e,t,n,r):null;case b:return n.key===a?u(e,t,n,r):null;case N:return p(e,t,n=(a=n._init)(n._payload),r)}if(L(n)||j(n))return null!==a?null:d(e,t,n,r,null);if("function"==typeof n.then)return p(e,t,Ji(n),r);if(n.$$typeof===S)return p(e,t,Pa(e,n),r);tl(e,n)}return null}function m(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return s(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case g:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case b:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case N:return m(e,t,n,r=(0,r._init)(r._payload),a)}if(L(r)||j(r))return d(t,e=e.get(n)||null,r,a,null);if("function"==typeof r.then)return m(e,t,n,Ji(r),a);if(r.$$typeof===S)return m(e,t,n,Pa(t,r),a);tl(t,r)}return null}function h(s,c,u,d){if("object"==typeof u&&null!==u&&u.type===y&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case g:e:{for(var v=u.key;null!==c;){if(c.key===v){if((v=u.type)===y){if(7===c.tag){n(s,c.sibling),(d=a(c,u.props.children)).return=s,s=d;break e}}else if(c.elementType===v||"object"==typeof v&&null!==v&&v.$$typeof===N&&nl(v)===c.type){n(s,c.sibling),el(d=a(c,u.props),u),d.return=s,s=d;break e}n(s,c);break}t(s,c),c=c.sibling}u.type===y?((d=Wr(u.props.children,s.mode,d,u.key)).return=s,s=d):(el(d=Hr(u.type,u.key,u.props,null,s.mode,d),u),d.return=s,s=d)}return l(s);case b:e:{for(v=u.key;null!==c;){if(c.key===v){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(s,c.sibling),(d=a(c,u.children||[])).return=s,s=d;break e}n(s,c);break}t(s,c),c=c.sibling}(d=Vr(u,s.mode,d)).return=s,s=d}return l(s);case N:return h(s,c,u=(v=u._init)(u._payload),d)}if(L(u))return function(a,o,l,s){for(var c=null,u=null,d=o,h=o=0,g=null;null!==d&&h<l.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var b=p(a,d,l[h],s);if(null===b){null===d&&(d=g);break}e&&d&&null===b.alternate&&t(a,d),o=i(b,o,h),null===u?c=b:u.sibling=b,u=b,d=g}if(h===l.length)return n(a,d),la&&ta(a,h),c;if(null===d){for(;h<l.length;h++)null!==(d=f(a,l[h],s))&&(o=i(d,o,h),null===u?c=d:u.sibling=d,u=d);return la&&ta(a,h),c}for(d=r(d);h<l.length;h++)null!==(g=m(d,a,h,l[h],s))&&(e&&null!==g.alternate&&d.delete(null===g.key?h:g.key),o=i(g,o,h),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(a,e)}),la&&ta(a,h),c}(s,c,u,d);if(j(u)){if("function"!=typeof(v=j(u)))throw Error(o(150));return function(a,l,s,c){if(null==s)throw Error(o(151));for(var u=null,d=null,h=l,g=l=0,b=null,y=s.next();null!==h&&!y.done;g++,y=s.next()){h.index>g?(b=h,h=null):b=h.sibling;var v=p(a,h,y.value,c);if(null===v){null===h&&(h=b);break}e&&h&&null===v.alternate&&t(a,h),l=i(v,l,g),null===d?u=v:d.sibling=v,d=v,h=b}if(y.done)return n(a,h),la&&ta(a,g),u;if(null===h){for(;!y.done;g++,y=s.next())null!==(y=f(a,y.value,c))&&(l=i(y,l,g),null===d?u=y:d.sibling=y,d=y);return la&&ta(a,g),u}for(h=r(h);!y.done;g++,y=s.next())null!==(y=m(h,a,g,y.value,c))&&(e&&null!==y.alternate&&h.delete(null===y.key?g:y.key),l=i(y,l,g),null===d?u=y:d.sibling=y,d=y);return e&&h.forEach(function(e){return t(a,e)}),la&&ta(a,g),u}(s,c,u=v.call(u),d)}if("function"==typeof u.then)return h(s,c,Ji(u),d);if(u.$$typeof===S)return h(s,c,Pa(s,u),d);tl(s,u)}return"string"==typeof u&&""!==u||"number"==typeof u||"bigint"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(s,c.sibling),(d=a(c,u)).return=s,s=d):(n(s,c),(d=Br(u,s.mode,d)).return=s,s=d),l(s)):n(s,c)}return function(e,t,n,r){try{Zi=0;var a=h(e,t,n,r);return Xi=null,a}catch(i){if(i===Qa||i===Ya)throw i;var o=Dr(29,i,null,e.mode);return o.lanes=r,o.return=e,o}}}var al=rl(!0),ol=rl(!1),il=U(null),ll=null;function sl(e){var t=e.alternate;W(fl,1&fl.current),W(il,e),null===ll&&(null===t||null!==go.current||null!==t.memoizedState)&&(ll=e)}function cl(e){if(22===e.tag){if(W(fl,fl.current),W(il,e),null===ll){var t=e.alternate;null!==t&&null!==t.memoizedState&&(ll=e)}}else ul()}function ul(){W(fl,fl.current),W(il,il.current)}function dl(e){H(il),ll===e&&(ll=null),H(fl)}var fl=U(0);function pl(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||yd(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function ml(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:f({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var hl={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Mc(),a=io(r);a.payload=t,null!=n&&(a.callback=n),null!==(t=lo(e,a,r))&&(Dc(t,e,r),so(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Mc(),a=io(r);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=lo(e,a,r))&&(Dc(t,e,r),so(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Mc(),r=io(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=lo(e,r,n))&&(Dc(t,e,n),so(t,e,n))}};function gl(e,t,n,r,a,o,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!t.prototype||!t.prototype.isPureReactComponent||(!Zn(n,r)||!Zn(a,o))}function bl(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&hl.enqueueReplaceState(t,t.state,null)}function yl(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var a in n===t&&(n=f({},n)),e)void 0===n[a]&&(n[a]=e[a]);return n}var vl="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function wl(e){vl(e)}function kl(e){console.error(e)}function xl(e){vl(e)}function Sl(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Cl(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function El(e,t,n){return(n=io(n)).tag=3,n.payload={element:null},n.callback=function(){Sl(e,t)},n}function Tl(e){return(e=io(e)).tag=3,e}function _l(e,t,n,r){var a=n.type.getDerivedStateFromError;if("function"==typeof a){var o=r.value;e.payload=function(){return a(o)},e.callback=function(){Cl(t,n,r)}}var i=n.stateNode;null!==i&&"function"==typeof i.componentDidCatch&&(e.callback=function(){Cl(t,n,r),"function"!=typeof a&&(null===Tc?Tc=new Set([this]):Tc.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Nl=Error(o(461)),Pl=!1;function zl(e,t,n,r){t.child=null===e?ol(t,null,n,r):al(t,e.child,n,r)}function Rl(e,t,n,r,a){n=n.render;var o=t.ref;if("ref"in r){var i={};for(var l in r)"ref"!==l&&(i[l]=r[l])}else i=r;return _a(t),r=Io(e,t,n,i,o,a),l=Do(),null===e||Pl?(la&&l&&ra(t),t.flags|=1,zl(e,t,r,a),t.child):(Oo(e,t,a),Xl(e,t,a))}function jl(e,t,n,r,a){if(null===e){var o=n.type;return"function"!=typeof o||Or(o)||void 0!==o.defaultProps||null!==n.compare?((e=Hr(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Al(e,t,o,r,a))}if(o=e.child,!Zl(e,a)){var i=o.memoizedProps;if((n=null!==(n=n.compare)?n:Zn)(i,r)&&e.ref===t.ref)return Xl(e,t,a)}return t.flags|=1,(e=Fr(o,r)).ref=t.ref,e.return=t,t.child=e}function Al(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(Zn(o,r)&&e.ref===t.ref){if(Pl=!1,t.pendingProps=r=o,!Zl(e,a))return t.lanes=e.lanes,Xl(e,t,a);131072&e.flags&&(Pl=!0)}}return $l(e,t,n,r,a)}function Il(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(128&t.flags){if(r=null!==o?o.baseLanes|n:n,null!==e){for(a=t.child=e.child,o=0;null!==a;)o=o|a.lanes|a.childLanes,a=a.sibling;t.childLanes=o&~r}else t.childLanes=0,t.child=null;return Ll(e,t,r,n)}if(!(536870912&n))return t.lanes=t.childLanes=536870912,Ll(e,t,null!==o?o.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Va(0,null!==o?o.cachePool:null),null!==o?yo(t,o):vo(),cl(t)}else null!==o?(Va(0,o.cachePool),yo(t,o),ul(),t.memoizedState=null):(null!==e&&Va(0,null),vo(),ul());return zl(e,t,a,n),t.child}function Ll(e,t,n,r){var a=Ba();return a=null===a?null:{parent:Ia._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},null!==e&&Va(0,null),vo(),cl(t),null!==e&&Ea(e,t,r,!0),null}function Ml(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(o(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function $l(e,t,n,r,a){return _a(t),n=Io(e,t,n,r,void 0,a),r=Do(),null===e||Pl?(la&&r&&ra(t),t.flags|=1,zl(e,t,n,a),t.child):(Oo(e,t,a),Xl(e,t,a))}function Dl(e,t,n,r,a,o){return _a(t),t.updateQueue=null,n=Mo(t,r,n,a),Lo(e),r=Do(),null===e||Pl?(la&&r&&ra(t),t.flags|=1,zl(e,t,n,o),t.child):(Oo(e,t,o),Xl(e,t,o))}function Ol(e,t,n,r,a){if(_a(t),null===t.stateNode){var o=Mr,i=n.contextType;"object"==typeof i&&null!==i&&(o=Na(i)),o=new n(r,o),t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,o.updater=hl,t.stateNode=o,o._reactInternals=t,(o=t.stateNode).props=r,o.state=t.memoizedState,o.refs={},ao(t),i=n.contextType,o.context="object"==typeof i&&null!==i?Na(i):Mr,o.state=t.memoizedState,"function"==typeof(i=n.getDerivedStateFromProps)&&(ml(t,n,i,r),o.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(i=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),i!==o.state&&hl.enqueueReplaceState(o,o.state,null),po(t,r,o,a),fo(),o.state=t.memoizedState),"function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){o=t.stateNode;var l=t.memoizedProps,s=yl(n,l);o.props=s;var c=o.context,u=n.contextType;i=Mr,"object"==typeof u&&null!==u&&(i=Na(u));var d=n.getDerivedStateFromProps;u="function"==typeof d||"function"==typeof o.getSnapshotBeforeUpdate,l=t.pendingProps!==l,u||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l||c!==i)&&bl(t,o,r,i),ro=!1;var f=t.memoizedState;o.state=f,po(t,r,o,a),fo(),c=t.memoizedState,l||f!==c||ro?("function"==typeof d&&(ml(t,n,d,r),c=t.memoizedState),(s=ro||gl(t,n,s,r,f,c,i))?(u||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=i,r=s):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,oo(e,t),u=yl(n,i=t.memoizedProps),o.props=u,d=t.pendingProps,f=o.context,c=n.contextType,s=Mr,"object"==typeof c&&null!==c&&(s=Na(c)),(c="function"==typeof(l=n.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i!==d||f!==s)&&bl(t,o,r,s),ro=!1,f=t.memoizedState,o.state=f,po(t,r,o,a),fo();var p=t.memoizedState;i!==d||f!==p||ro||null!==e&&null!==e.dependencies&&Ta(e.dependencies)?("function"==typeof l&&(ml(t,n,l,r),p=t.memoizedState),(u=ro||gl(t,n,u,r,f,p,s)||null!==e&&null!==e.dependencies&&Ta(e.dependencies))?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,s),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,s)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=s,r=u):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return o=r,Ml(e,t),r=!!(128&t.flags),o||r?(o=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:o.render(),t.flags|=1,null!==e&&r?(t.child=al(t,e.child,null,a),t.child=al(t,null,n,a)):zl(e,t,n,a),t.memoizedState=o.state,e=t.child):e=Xl(e,t,a),e}function Fl(e,t,n,r){return ha(),t.flags|=256,zl(e,t,n,r),t.child}var Ul={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hl(e){return{baseLanes:e,cachePool:qa()}}function Wl(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=yc),e}function Bl(e,t,n){var r,a=t.pendingProps,i=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&fl.current)),r&&(i=!0,t.flags&=-129),r=!!(32&t.flags),t.flags&=-33,null===e){if(la){if(i?sl(t):ul(),la){var s,c=ia;if(s=c){e:{for(s=c,c=ca;8!==s.nodeType;){if(!c){c=null;break e}if(null===(s=vd(s.nextSibling))){c=null;break e}}c=s}null!==c?(t.memoizedState={dehydrated:c,treeContext:null!==Zr?{id:Jr,overflow:ea}:null,retryLane:536870912,hydrationErrors:null},(s=Dr(18,null,null,0)).stateNode=c,s.return=t,t.child=s,oa=t,ia=null,s=!0):s=!1}s||da(t)}if(null!==(c=t.memoizedState)&&null!==(c=c.dehydrated))return yd(c)?t.lanes=32:t.lanes=536870912,null;dl(t)}return c=a.children,a=a.fallback,i?(ul(),c=ql({mode:"hidden",children:c},i=t.mode),a=Wr(a,i,n,null),c.return=t,a.return=t,c.sibling=a,t.child=c,(i=t.child).memoizedState=Hl(n),i.childLanes=Wl(e,r,n),t.memoizedState=Ul,a):(sl(t),Vl(t,c))}if(null!==(s=e.memoizedState)&&null!==(c=s.dehydrated)){if(l)256&t.flags?(sl(t),t.flags&=-257,t=Ql(e,t,n)):null!==t.memoizedState?(ul(),t.child=e.child,t.flags|=128,t=null):(ul(),i=a.fallback,c=t.mode,a=ql({mode:"visible",children:a.children},c),(i=Wr(i,c,n,null)).flags|=2,a.return=t,i.return=t,a.sibling=i,t.child=a,al(t,e.child,null,n),(a=t.child).memoizedState=Hl(n),a.childLanes=Wl(e,r,n),t.memoizedState=Ul,t=i);else if(sl(t),yd(c)){if(r=c.nextSibling&&c.nextSibling.dataset)var u=r.dgst;r=u,(a=Error(o(419))).stack="",a.digest=r,ba({value:a,source:null,stack:null}),t=Ql(e,t,n)}else if(Pl||Ea(e,t,n,!1),r=0!==(n&e.childLanes),Pl||r){if(null!==(r=oc)&&(0!==(a=0!==((a=42&(a=n&-n)?1:ze(a))&(r.suspendedLanes|n))?0:a)&&a!==s.retryLane))throw s.retryLane=a,Ar(e,a),Dc(r,e,a),Nl;"$?"===c.data||Yc(),t=Ql(e,t,n)}else"$?"===c.data?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,ia=vd(c.nextSibling),oa=t,la=!0,sa=null,ca=!1,null!==e&&(Gr[Xr++]=Jr,Gr[Xr++]=ea,Gr[Xr++]=Zr,Jr=e.id,ea=e.overflow,Zr=t),(t=Vl(t,a.children)).flags|=4096);return t}return i?(ul(),i=a.fallback,c=t.mode,u=(s=e.child).sibling,(a=Fr(s,{mode:"hidden",children:a.children})).subtreeFlags=65011712&s.subtreeFlags,null!==u?i=Fr(u,i):(i=Wr(i,c,n,null)).flags|=2,i.return=t,a.return=t,a.sibling=i,t.child=a,a=i,i=t.child,null===(c=e.child.memoizedState)?c=Hl(n):(null!==(s=c.cachePool)?(u=Ia._currentValue,s=s.parent!==u?{parent:u,pool:u}:s):s=qa(),c={baseLanes:c.baseLanes|n,cachePool:s}),i.memoizedState=c,i.childLanes=Wl(e,r,n),t.memoizedState=Ul,a):(sl(t),e=(n=e.child).sibling,(n=Fr(n,{mode:"visible",children:a.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function Vl(e,t){return(t=ql({mode:"visible",children:t},e.mode)).return=e,e.child=t}function ql(e,t){return(e=Dr(22,e,null,t)).lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Ql(e,t,n){return al(t,e.child,null,n),(e=Vl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Kl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Sa(e.return,t,n)}function Yl(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function Gl(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(zl(e,t,r.children,n),2&(r=fl.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Kl(e,n,t);else if(19===e.tag)Kl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(W(fl,r),a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===pl(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Yl(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===pl(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Yl(t,!0,n,null,o);break;case"together":Yl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Xl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),hc|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Ea(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Fr(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Fr(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Zl(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Ta(e))}function Jl(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Pl=!0;else{if(!(Zl(e,n)||128&t.flags))return Pl=!1,function(e,t,n){switch(t.tag){case 3:K(t,t.stateNode.containerInfo),ka(0,Ia,e.memoizedState.cache),ha();break;case 27:case 5:G(t);break;case 4:K(t,t.stateNode.containerInfo);break;case 10:ka(0,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(sl(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Bl(e,t,n):(sl(t),null!==(e=Xl(e,t,n))?e.sibling:null);sl(t);break;case 19:var a=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Ea(e,t,n,!1),r=0!==(n&t.childLanes)),a){if(r)return Gl(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),W(fl,fl.current),r)break;return null;case 22:case 23:return t.lanes=0,Il(e,t,n);case 24:ka(0,Ia,e.memoizedState.cache)}return Xl(e,t,n)}(e,t,n);Pl=!!(131072&e.flags)}else Pl=!1,la&&1048576&t.flags&&na(t,Yr,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var r=t.elementType,a=r._init;if(r=a(r._payload),t.type=r,"function"!=typeof r){if(null!=r){if((a=r.$$typeof)===C){t.tag=11,t=Rl(null,t,r,e,n);break e}if(a===_){t.tag=14,t=jl(null,t,r,e,n);break e}}throw t=I(r)||r,Error(o(306,t,""))}Or(r)?(e=yl(r,e),t.tag=1,t=Ol(null,t,r,e,n)):(t.tag=0,t=$l(null,t,r,e,n))}return t;case 0:return $l(e,t,t.type,t.pendingProps,n);case 1:return Ol(e,t,r=t.type,a=yl(r,t.pendingProps),n);case 3:e:{if(K(t,t.stateNode.containerInfo),null===e)throw Error(o(387));r=t.pendingProps;var i=t.memoizedState;a=i.element,oo(e,t),po(t,r,null,n);var l=t.memoizedState;if(r=l.cache,ka(0,Ia,r),r!==i.cache&&Ca(t,[Ia],n,!0),fo(),r=l.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:l.cache},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Fl(e,t,r,n);break e}if(r!==a){ba(a=Tr(Error(o(424)),t)),t=Fl(e,t,r,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(ia=vd(e.firstChild),oa=t,la=!0,sa=null,ca=!0,n=ol(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ha(),r===a){t=Xl(e,t,n);break e}zl(e,t,r,n)}t=t.child}return t;case 26:return Ml(e,t),null===e?(n=zd(t.type,null,t.pendingProps,null))?t.memoizedState=n:la||(n=t.type,e=t.pendingProps,(r=od(q.current).createElement(n))[Ie]=t,r[Le]=e,nd(r,n,e),Qe(r),t.stateNode=r):t.memoizedState=zd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return G(t),null===e&&la&&(r=t.stateNode=xd(t.type,t.pendingProps,q.current),oa=t,ca=!0,a=ia,hd(t.type)?(wd=a,ia=vd(r.firstChild)):ia=a),zl(e,t,t.pendingProps.children,n),Ml(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&la&&((a=r=ia)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Ue])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(o=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(o!==a.rel||e.getAttribute("href")!==(null==a.href||""===a.href?null:a.href)||e.getAttribute("crossorigin")!==(null==a.crossOrigin?null:a.crossOrigin)||e.getAttribute("title")!==(null==a.title?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((o=e.getAttribute("src"))!==(null==a.src?null:a.src)||e.getAttribute("type")!==(null==a.type?null:a.type)||e.getAttribute("crossorigin")!==(null==a.crossOrigin?null:a.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var o=null==a.name?null:""+a.name;if("hidden"===a.type&&e.getAttribute("name")===o)return e}if(null===(e=vd(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,ca))?(t.stateNode=r,oa=t,ia=vd(r.firstChild),ca=!1,a=!0):a=!1),a||da(t)),G(t),a=t.type,i=t.pendingProps,l=null!==e?e.memoizedProps:null,r=i.children,sd(a,i)?r=null:null!==l&&sd(a,l)&&(t.flags|=32),null!==t.memoizedState&&(a=Io(e,t,$o,null,null,n),Gd._currentValue=a),Ml(e,t),zl(e,t,r,n),t.child;case 6:return null===e&&la&&((e=n=ia)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=vd(e.nextSibling)))return null}return e}(n,t.pendingProps,ca))?(t.stateNode=n,oa=t,ia=null,e=!0):e=!1),e||da(t)),null;case 13:return Bl(e,t,n);case 4:return K(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=al(t,null,r,n):zl(e,t,r,n),t.child;case 11:return Rl(e,t,t.type,t.pendingProps,n);case 7:return zl(e,t,t.pendingProps,n),t.child;case 8:case 12:return zl(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,ka(0,t.type,r.value),zl(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,_a(t),r=r(a=Na(a)),t.flags|=1,zl(e,t,r,n),t.child;case 14:return jl(e,t,t.type,t.pendingProps,n);case 15:return Al(e,t,t.type,t.pendingProps,n);case 19:return Gl(e,t,n);case 31:return r=t.pendingProps,n=t.mode,r={mode:r.mode,children:r.children},null===e?((n=ql(r,n)).ref=t.ref,t.child=n,n.return=t,t=n):((n=Fr(e.child,r)).ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return Il(e,t,n);case 24:return _a(t),r=Na(Ia),null===e?(null===(a=Ba())&&(a=oc,i=La(),a.pooledCache=i,i.refCount++,null!==i&&(a.pooledCacheLanes|=n),a=i),t.memoizedState={parent:r,cache:a},ao(t),ka(0,Ia,a)):(0!==(e.lanes&n)&&(oo(e,t),po(t,null,null,n),fo()),a=e.memoizedState,i=t.memoizedState,a.parent!==r?(a={parent:r,cache:r},t.memoizedState=a,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=a),ka(0,Ia,r)):(r=i.cache,ka(0,Ia,r),r!==a.cache&&Ca(t,[Ia],n,!0))),zl(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function es(e){e.flags|=4}function ts(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!Wd(t)){if(null!==(t=il.current)&&((4194048&lc)===lc?null!==ll:(62914560&lc)!==lc&&!(536870912&lc)||t!==ll))throw eo=Ga,Ka;e.flags|=8192}}function ns(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Ee():536870912,e.lanes|=t,vc|=t)}function rs(e,t){if(!la)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function as(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=65011712&a.subtreeFlags,r|=65011712&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function os(e,t,n){var r=t.pendingProps;switch(aa(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return as(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),xa(Ia),Y(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(ma(t)?es(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,ga())),as(t),null;case 26:return n=t.memoizedState,null===e?(es(t),null!==n?(as(t),ts(t,n)):(as(t),t.flags&=-16777217)):n?n!==e.memoizedState?(es(t),as(t),ts(t,n)):(as(t),t.flags&=-16777217):(e.memoizedProps!==r&&es(t),as(t),t.flags&=-16777217),null;case 27:X(t),n=q.current;var a=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==r&&es(t);else{if(!r){if(null===t.stateNode)throw Error(o(166));return as(t),null}e=B.current,ma(t)?fa(t):(e=xd(a,r,n),t.stateNode=e,es(t))}return as(t),null;case 5:if(X(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&es(t);else{if(!r){if(null===t.stateNode)throw Error(o(166));return as(t),null}if(e=B.current,ma(t))fa(t);else{switch(a=od(q.current),e){case 1:e=a.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=a.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=a.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=a.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":(e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?a.createElement("select",{is:r.is}):a.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?a.createElement(n,{is:r.is}):a.createElement(n)}}e[Ie]=t,e[Le]=r;e:for(a=t.child;null!==a;){if(5===a.tag||6===a.tag)e.appendChild(a.stateNode);else if(4!==a.tag&&27!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;null===a.sibling;){if(null===a.return||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=e;e:switch(nd(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&es(t)}}return as(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&es(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(e=q.current,ma(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(a=oa))switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Ie]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||Zu(e.nodeValue,n)))||da(t)}else(e=od(e).createTextNode(r))[Ie]=t,t.stateNode=e}return as(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(a=ma(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[Ie]=t}else ha(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;as(t),a=!1}else a=ga(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return 256&t.flags?(dl(t),t):(dl(t),null)}if(dl(t),128&t.flags)return t.lanes=n,t;if(n=null!==r,e=null!==e&&null!==e.memoizedState,n){a=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(a=r.alternate.memoizedState.cachePool.pool);var i=null;null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(i=r.memoizedState.cachePool.pool),i!==a&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),ns(t,t.updateQueue),as(t),null;case 4:return Y(),null===e&&Hu(t.stateNode.containerInfo),as(t),null;case 10:return xa(t.type),as(t),null;case 19:if(H(fl),null===(a=t.memoizedState))return as(t),null;if(r=!!(128&t.flags),null===(i=a.rendering))if(r)rs(a,!1);else{if(0!==mc||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(i=pl(e))){for(t.flags|=128,rs(a,!1),e=i.updateQueue,t.updateQueue=e,ns(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Ur(n,e),n=n.sibling;return W(fl,1&fl.current|2),t.child}e=e.sibling}null!==a.tail&&re()>Cc&&(t.flags|=128,r=!0,rs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=pl(i))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,ns(t,e),rs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!i.alternate&&!la)return as(t),null}else 2*re()-a.renderingStartTime>Cc&&536870912!==n&&(t.flags|=128,r=!0,rs(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(null!==(e=a.last)?e.sibling=i:t.child=i,a.last=i)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=re(),t.sibling=null,e=fl.current,W(fl,r?1&e|2:1&e),t):(as(t),null);case 22:case 23:return dl(t),wo(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?!!(536870912&n)&&!(128&t.flags)&&(as(t),6&t.subtreeFlags&&(t.flags|=8192)):as(t),null!==(n=t.updateQueue)&&ns(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&H(Wa),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),xa(Ia),as(t),null;case 25:case 30:return null}throw Error(o(156,t.tag))}function is(e,t){switch(aa(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return xa(Ia),Y(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return X(t),null;case 13:if(dl(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));ha()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return H(fl),null;case 4:return Y(),null;case 10:return xa(t.type),null;case 22:case 23:return dl(t),wo(),null!==e&&H(Wa),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return xa(Ia),null;default:return null}}function ls(e,t){switch(aa(t),t.tag){case 3:xa(Ia),Y();break;case 26:case 27:case 5:X(t);break;case 4:Y();break;case 13:dl(t);break;case 19:H(fl);break;case 10:xa(t.type);break;case 22:case 23:dl(t),wo(),null!==e&&H(Wa);break;case 24:xa(Ia)}}function ss(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var a=r.next;n=a;do{if((n.tag&e)===e){r=void 0;var o=n.create,i=n.inst;r=o(),i.destroy=r}n=n.next}while(n!==a)}}catch(l){fu(t,t.return,l)}}function cs(e,t,n){try{var r=t.updateQueue,a=null!==r?r.lastEffect:null;if(null!==a){var o=a.next;r=o;do{if((r.tag&e)===e){var i=r.inst,l=i.destroy;if(void 0!==l){i.destroy=void 0,a=t;var s=n,c=l;try{c()}catch(u){fu(a,s,u)}}}r=r.next}while(r!==o)}}catch(u){fu(t,t.return,u)}}function us(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{ho(t,n)}catch(r){fu(e,e.return,r)}}}function ds(e,t,n){n.props=yl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){fu(e,t,r)}}function fs(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(a){fu(e,t,a)}}function ps(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(a){fu(e,t,a)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(o){fu(e,t,o)}else n.current=null}function ms(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(a){fu(e,e.return,a)}}function hs(e,t,n){try{var r=e.stateNode;!function(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,l=null,s=null,c=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&null!=f)switch(m){case"checked":case"value":break;case"defaultValue":c=f;default:r.hasOwnProperty(m)||ed(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(null!=m||null!=f))switch(p){case"type":i=m;break;case"name":a=m;break;case"checked":u=m;break;case"defaultChecked":d=m;break;case"value":l=m;break;case"defaultValue":s=m;break;case"children":case"dangerouslySetInnerHTML":if(null!=m)throw Error(o(137,t));break;default:m!==f&&ed(e,t,p,m,r,f)}}return void yt(e,l,s,c,u,d,i,a);case"select":for(i in m=l=s=p=null,n)if(c=n[i],n.hasOwnProperty(i)&&null!=c)switch(i){case"value":break;case"multiple":m=c;default:r.hasOwnProperty(i)||ed(e,t,i,null,r,c)}for(a in r)if(i=r[a],c=n[a],r.hasOwnProperty(a)&&(null!=i||null!=c))switch(a){case"value":p=i;break;case"defaultValue":s=i;break;case"multiple":l=i;default:i!==c&&ed(e,t,a,i,r,c)}return t=s,n=l,r=m,void(null!=p?kt(e,!!n,p,!1):!!r!=!!n&&(null!=t?kt(e,!!n,t,!0):kt(e,!!n,n?[]:"",!1)));case"textarea":for(s in m=p=null,n)if(a=n[s],n.hasOwnProperty(s)&&null!=a&&!r.hasOwnProperty(s))switch(s){case"value":case"children":break;default:ed(e,t,s,null,r,a)}for(l in r)if(a=r[l],i=n[l],r.hasOwnProperty(l)&&(null!=a||null!=i))switch(l){case"value":p=a;break;case"defaultValue":m=a;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=a)throw Error(o(91));break;default:a!==i&&ed(e,t,l,a,r,i)}return void xt(e,p,m);case"option":for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&null!=p&&!r.hasOwnProperty(h))if("selected"===h)e.selected=!1;else ed(e,t,h,null,r,p);for(c in r)if(p=r[c],m=n[c],r.hasOwnProperty(c)&&p!==m&&(null!=p||null!=m))if("selected"===c)e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p;else ed(e,t,c,p,r,m);return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!r.hasOwnProperty(g)&&ed(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(null!=p||null!=m))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(o(137,t));break;default:ed(e,t,u,p,r,m)}return;default:if(Nt(t)){for(var b in n)p=n[b],n.hasOwnProperty(b)&&void 0!==p&&!r.hasOwnProperty(b)&&td(e,t,b,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||void 0===p&&void 0===m||td(e,t,d,p,r,m);return}}for(var y in n)p=n[y],n.hasOwnProperty(y)&&null!=p&&!r.hasOwnProperty(y)&&ed(e,t,y,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||null==p&&null==m||ed(e,t,f,p,r,m)}(r,e.type,n,t),r[Le]=t}catch(a){fu(e,e.return,a)}}function gs(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&hd(e.type)||4===e.tag}function bs(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||gs(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&hd(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ys(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Ju));else if(4!==r&&(27===r&&hd(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(ys(e,t,n),e=e.sibling;null!==e;)ys(e,t,n),e=e.sibling}function vs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&hd(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(vs(e,t,n),e=e.sibling;null!==e;)vs(e,t,n),e=e.sibling}function ws(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);nd(t,r,n),t[Ie]=e,t[Le]=n}catch(o){fu(e,e.return,o)}}var ks=!1,xs=!1,Ss=!1,Cs="function"==typeof WeakSet?WeakSet:Set,Es=null;function Ts(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Os(e,n),4&r&&ss(5,n);break;case 1:if(Os(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(i){fu(n,n.return,i)}else{var a=yl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){fu(n,n.return,l)}}64&r&&us(n),512&r&&fs(n,n.return);break;case 3:if(Os(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{ho(e,t)}catch(i){fu(n,n.return,i)}}break;case 27:null===t&&4&r&&ws(n);case 26:case 5:Os(e,n),null===t&&4&r&&ms(n),512&r&&fs(n,n.return);break;case 12:Os(e,n);break;case 13:Os(e,n),4&r&&js(e,n),64&r&&(null!==(e=n.memoizedState)&&(null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$?"!==e.data||"complete"===n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=gu.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||ks)){t=null!==t&&null!==t.memoizedState||xs,a=ks;var o=xs;ks=r,(xs=t)&&!o?Us(e,n,!!(8772&n.subtreeFlags)):Os(e,n),ks=a,xs=o}break;case 30:break;default:Os(e,n)}}function _s(e){var t=e.alternate;null!==t&&(e.alternate=null,_s(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&He(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ns=null,Ps=!1;function zs(e,t,n){for(n=n.child;null!==n;)Rs(e,t,n),n=n.sibling}function Rs(e,t,n){if(pe&&"function"==typeof pe.onCommitFiberUnmount)try{pe.onCommitFiberUnmount(fe,n)}catch(o){}switch(n.tag){case 26:xs||ps(n,t),zs(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:xs||ps(n,t);var r=Ns,a=Ps;hd(n.type)&&(Ns=n.stateNode,Ps=!1),zs(e,t,n),Sd(n.stateNode),Ns=r,Ps=a;break;case 5:xs||ps(n,t);case 6:if(r=Ns,a=Ps,Ns=null,zs(e,t,n),Ps=a,null!==(Ns=r))if(Ps)try{(9===Ns.nodeType?Ns.body:"HTML"===Ns.nodeName?Ns.ownerDocument.body:Ns).removeChild(n.stateNode)}catch(i){fu(n,t,i)}else try{Ns.removeChild(n.stateNode)}catch(i){fu(n,t,i)}break;case 18:null!==Ns&&(Ps?(gd(9===(e=Ns).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),zf(e)):gd(Ns,n.stateNode));break;case 4:r=Ns,a=Ps,Ns=n.stateNode.containerInfo,Ps=!0,zs(e,t,n),Ns=r,Ps=a;break;case 0:case 11:case 14:case 15:xs||cs(2,n,t),xs||cs(4,n,t),zs(e,t,n);break;case 1:xs||(ps(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&ds(n,t,r)),zs(e,t,n);break;case 21:zs(e,t,n);break;case 22:xs=(r=xs)||null!==n.memoizedState,zs(e,t,n),xs=r;break;default:zs(e,t,n)}}function js(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{zf(e)}catch(n){fu(t,t.return,n)}}function As(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Cs),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Cs),t;default:throw Error(o(435,e.tag))}}(e);t.forEach(function(t){var r=bu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}function Is(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=n[r],i=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 27:if(hd(s.type)){Ns=s.stateNode,Ps=!1;break e}break;case 5:Ns=s.stateNode,Ps=!1;break e;case 3:case 4:Ns=s.stateNode.containerInfo,Ps=!0;break e}s=s.return}if(null===Ns)throw Error(o(160));Rs(i,l,a),Ns=null,Ps=!1,null!==(i=a.alternate)&&(i.return=null),a.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)Ms(t,e),t=t.sibling}var Ls=null;function Ms(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Is(t,e),$s(e),4&r&&(cs(3,e,e.return),ss(3,e),cs(5,e,e.return));break;case 1:Is(t,e),$s(e),512&r&&(xs||null===n||ps(n,n.return)),64&r&&ks&&(null!==(e=e.updateQueue)&&(null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r))));break;case 26:var a=Ls;if(Is(t,e),$s(e),512&r&&(xs||null===n||ps(n,n.return)),4&r){var i=null!==n?n.memoizedState:null;if(r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(r){case"title":(!(i=a.getElementsByTagName("title")[0])||i[Ue]||i[Ie]||"http://www.w3.org/2000/svg"===i.namespaceURI||i.hasAttribute("itemprop"))&&(i=a.createElement(r),a.head.insertBefore(i,a.querySelector("head > title"))),nd(i,r,n),i[Ie]=e,Qe(i),r=i;break e;case"link":var l=Ud("link","href",a).get(r+(n.href||""));if(l)for(var s=0;s<l.length;s++)if((i=l[s]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&i.getAttribute("rel")===(null==n.rel?null:n.rel)&&i.getAttribute("title")===(null==n.title?null:n.title)&&i.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){l.splice(s,1);break t}nd(i=a.createElement(r),r,n),a.head.appendChild(i);break;case"meta":if(l=Ud("meta","content",a).get(r+(n.content||"")))for(s=0;s<l.length;s++)if((i=l[s]).getAttribute("content")===(null==n.content?null:""+n.content)&&i.getAttribute("name")===(null==n.name?null:n.name)&&i.getAttribute("property")===(null==n.property?null:n.property)&&i.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&i.getAttribute("charset")===(null==n.charSet?null:n.charSet)){l.splice(s,1);break t}nd(i=a.createElement(r),r,n),a.head.appendChild(i);break;default:throw Error(o(468,r))}i[Ie]=e,Qe(i),r=i}e.stateNode=r}else Hd(a,e.type,e.stateNode);else e.stateNode=Md(a,r,e.memoizedProps);else i!==r?(null===i?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):i.count--,null===r?Hd(a,e.type,e.stateNode):Md(a,r,e.memoizedProps)):null===r&&null!==e.stateNode&&hs(e,e.memoizedProps,n.memoizedProps)}break;case 27:Is(t,e),$s(e),512&r&&(xs||null===n||ps(n,n.return)),null!==n&&4&r&&hs(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Is(t,e),$s(e),512&r&&(xs||null===n||ps(n,n.return)),32&e.flags){a=e.stateNode;try{Ct(a,"")}catch(m){fu(e,e.return,m)}}4&r&&null!=e.stateNode&&hs(e,a=e.memoizedProps,null!==n?n.memoizedProps:a),1024&r&&(Ss=!0);break;case 6:if(Is(t,e),$s(e),4&r){if(null===e.stateNode)throw Error(o(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(m){fu(e,e.return,m)}}break;case 3:if(Fd=null,a=Ls,Ls=Td(t.containerInfo),Is(t,e),Ls=a,$s(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{zf(t.containerInfo)}catch(m){fu(e,e.return,m)}Ss&&(Ss=!1,Ds(e));break;case 4:r=Ls,Ls=Td(e.stateNode.containerInfo),Is(t,e),$s(e),Ls=r;break;case 12:default:Is(t,e),$s(e);break;case 13:Is(t,e),$s(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(Sc=re()),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,As(e,r)));break;case 22:a=null!==e.memoizedState;var c=null!==n&&null!==n.memoizedState,u=ks,d=xs;if(ks=u||a,xs=d||c,Is(t,e),xs=d,ks=u,$s(e),8192&r)e:for(t=e.stateNode,t._visibility=a?-2&t._visibility:1|t._visibility,a&&(null===n||c||ks||xs||Fs(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){c=n=t;try{if(i=c.stateNode,a)"function"==typeof(l=i.style).setProperty?l.setProperty("display","none","important"):l.display="none";else{s=c.stateNode;var f=c.memoizedProps.style,p=null!=f&&f.hasOwnProperty("display")?f.display:null;s.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(m){fu(c,c.return,m)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=a?"":c.memoizedProps}catch(m){fu(c,c.return,m)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&(null!==(r=e.updateQueue)&&(null!==(n=r.retryQueue)&&(r.retryQueue=null,As(e,n))));break;case 19:Is(t,e),$s(e),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,As(e,r)));case 30:case 21:}}function $s(e){var t=e.flags;if(2&t){try{for(var n,r=e.return;null!==r;){if(gs(r)){n=r;break}r=r.return}if(null==n)throw Error(o(160));switch(n.tag){case 27:var a=n.stateNode;vs(e,bs(e),a);break;case 5:var i=n.stateNode;32&n.flags&&(Ct(i,""),n.flags&=-33),vs(e,bs(e),i);break;case 3:case 4:var l=n.stateNode.containerInfo;ys(e,bs(e),l);break;default:throw Error(o(161))}}catch(s){fu(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Ds(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Ds(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Os(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Ts(e,t.alternate,t),t=t.sibling}function Fs(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:cs(4,t,t.return),Fs(t);break;case 1:ps(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&ds(t,t.return,n),Fs(t);break;case 27:Sd(t.stateNode);case 26:case 5:ps(t,t.return),Fs(t);break;case 22:null===t.memoizedState&&Fs(t);break;default:Fs(t)}e=e.sibling}}function Us(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,a=e,o=t,i=o.flags;switch(o.tag){case 0:case 11:case 15:Us(a,o,n),ss(4,o);break;case 1:if(Us(a,o,n),"function"==typeof(a=(r=o).stateNode).componentDidMount)try{a.componentDidMount()}catch(c){fu(r,r.return,c)}if(null!==(a=(r=o).updateQueue)){var l=r.stateNode;try{var s=a.shared.hiddenCallbacks;if(null!==s)for(a.shared.hiddenCallbacks=null,a=0;a<s.length;a++)mo(s[a],l)}catch(c){fu(r,r.return,c)}}n&&64&i&&us(o),fs(o,o.return);break;case 27:ws(o);case 26:case 5:Us(a,o,n),n&&null===r&&4&i&&ms(o),fs(o,o.return);break;case 12:Us(a,o,n);break;case 13:Us(a,o,n),n&&4&i&&js(a,o);break;case 22:null===o.memoizedState&&Us(a,o,n),fs(o,o.return);break;case 30:break;default:Us(a,o,n)}t=t.sibling}}function Hs(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Ma(n))}function Ws(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ma(e))}function Bs(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)Vs(e,t,n,r),t=t.sibling}function Vs(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Bs(e,t,n,r),2048&a&&ss(9,t);break;case 1:case 13:default:Bs(e,t,n,r);break;case 3:Bs(e,t,n,r),2048&a&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ma(e)));break;case 12:if(2048&a){Bs(e,t,n,r),e=t.stateNode;try{var o=t.memoizedProps,i=o.id,l=o.onPostCommit;"function"==typeof l&&l(i,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(s){fu(t,t.return,s)}}else Bs(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,i=t.alternate,null!==t.memoizedState?2&o._visibility?Bs(e,t,n,r):Qs(e,t):2&o._visibility?Bs(e,t,n,r):(o._visibility|=2,qs(e,t,n,r,!!(10256&t.subtreeFlags))),2048&a&&Hs(i,t);break;case 24:Bs(e,t,n,r),2048&a&&Ws(t.alternate,t)}}function qs(e,t,n,r,a){for(a=a&&!!(10256&t.subtreeFlags),t=t.child;null!==t;){var o=e,i=t,l=n,s=r,c=i.flags;switch(i.tag){case 0:case 11:case 15:qs(o,i,l,s,a),ss(8,i);break;case 23:break;case 22:var u=i.stateNode;null!==i.memoizedState?2&u._visibility?qs(o,i,l,s,a):Qs(o,i):(u._visibility|=2,qs(o,i,l,s,a)),a&&2048&c&&Hs(i.alternate,i);break;case 24:qs(o,i,l,s,a),a&&2048&c&&Ws(i.alternate,i);break;default:qs(o,i,l,s,a)}t=t.sibling}}function Qs(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,a=r.flags;switch(r.tag){case 22:Qs(n,r),2048&a&&Hs(r.alternate,r);break;case 24:Qs(n,r),2048&a&&Ws(r.alternate,r);break;default:Qs(n,r)}t=t.sibling}}var Ks=8192;function Ys(e){if(e.subtreeFlags&Ks)for(e=e.child;null!==e;)Gs(e),e=e.sibling}function Gs(e){switch(e.tag){case 26:Ys(e),e.flags&Ks&&null!==e.memoizedState&&function(e,t,n){if(null===Bd)throw Error(o(475));var r=Bd;if(!("stylesheet"!==t.type||"string"==typeof n.media&&!1===matchMedia(n.media).matches||4&t.state.loading)){if(null===t.instance){var a=Rd(n.href),i=e.querySelector(jd(a));if(i)return null!==(e=i._p)&&"object"==typeof e&&"function"==typeof e.then&&(r.count++,r=qd.bind(r),e.then(r,r)),t.state.loading|=4,t.instance=i,void Qe(i);i=e.ownerDocument||e,n=Ad(n),(a=Cd.get(a))&&Dd(n,a),Qe(i=i.createElement("link"));var l=i;l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),nd(i,"link",n),t.instance=i}null===r.stylesheets&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&!(3&t.state.loading)&&(r.count++,t=qd.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}(Ls,e.memoizedState,e.memoizedProps);break;case 5:default:Ys(e);break;case 3:case 4:var t=Ls;Ls=Td(e.stateNode.containerInfo),Ys(e),Ls=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=Ks,Ks=16777216,Ys(e),Ks=t):Ys(e))}}function Xs(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function Zs(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Es=r,tc(r,e)}Xs(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)Js(e),e=e.sibling}function Js(e){switch(e.tag){case 0:case 11:case 15:Zs(e),2048&e.flags&&cs(9,e,e.return);break;case 3:case 12:default:Zs(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,ec(e)):Zs(e)}}function ec(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Es=r,tc(r,e)}Xs(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:cs(8,t,t.return),ec(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,ec(t));break;default:ec(t)}e=e.sibling}}function tc(e,t){for(;null!==Es;){var n=Es;switch(n.tag){case 0:case 11:case 15:cs(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Ma(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Es=r;else e:for(n=e;null!==Es;){var a=(r=Es).sibling,o=r.return;if(_s(r),r===n){Es=null;break e}if(null!==a){a.return=o,Es=a;break e}Es=o}}}var nc={getCacheForType:function(e){var t=Na(Ia),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},rc="function"==typeof WeakMap?WeakMap:Map,ac=0,oc=null,ic=null,lc=0,sc=0,cc=null,uc=!1,dc=!1,fc=!1,pc=0,mc=0,hc=0,gc=0,bc=0,yc=0,vc=0,wc=null,kc=null,xc=!1,Sc=0,Cc=1/0,Ec=null,Tc=null,_c=0,Nc=null,Pc=null,zc=0,Rc=0,jc=null,Ac=null,Ic=0,Lc=null;function Mc(){if(2&ac&&0!==lc)return lc&-lc;if(null!==M.T){return 0!==Oa?Oa:Ru()}return je()}function $c(){0===yc&&(yc=536870912&lc&&!la?536870912:Ce());var e=il.current;return null!==e&&(e.flags|=32),yc}function Dc(e,t,n){(e!==oc||2!==sc&&9!==sc)&&null===e.cancelPendingCommit||(Vc(e,0),Hc(e,lc,yc,!1)),_e(e,n),2&ac&&e===oc||(e===oc&&(!(2&ac)&&(gc|=n),4===mc&&Hc(e,lc,yc,!1)),Cu(e))}function Oc(e,t,n){if(6&ac)throw Error(o(327));for(var r=!n&&!(124&t)&&0===(t&e.expiredLanes)||xe(e,t),a=r?function(e,t){var n=ac;ac|=2;var r=Qc(),a=Kc();oc!==e||lc!==t?(Ec=null,Cc=re()+500,Vc(e,t)):dc=xe(e,t);e:for(;;)try{if(0!==sc&&null!==ic){t=ic;var i=cc;t:switch(sc){case 1:sc=0,cc=null,tu(e,t,i,1);break;case 2:case 9:if(Xa(i)){sc=0,cc=null,eu(t);break}t=function(){2!==sc&&9!==sc||oc!==e||(sc=7),Cu(e)},i.then(t,t);break e;case 3:sc=7;break e;case 4:sc=5;break e;case 7:Xa(i)?(sc=0,cc=null,eu(t)):(sc=0,cc=null,tu(e,t,i,7));break;case 5:var l=null;switch(ic.tag){case 26:l=ic.memoizedState;case 5:case 27:var s=ic;if(!l||Wd(l)){sc=0,cc=null;var c=s.sibling;if(null!==c)ic=c;else{var u=s.return;null!==u?(ic=u,nu(u)):ic=null}break t}}sc=0,cc=null,tu(e,t,i,5);break;case 6:sc=0,cc=null,tu(e,t,i,6);break;case 8:Bc(),mc=6;break e;default:throw Error(o(462))}}Zc();break}catch(d){qc(e,d)}return wa=va=null,M.H=r,M.A=a,ac=n,null!==ic?0:(oc=null,lc=0,zr(),mc)}(e,t):Gc(e,t,!0),i=r;;){if(0===a){dc&&!r&&Hc(e,t,0,!1);break}if(n=e.current.alternate,!i||Uc(n)){if(2===a){if(i=t,e.errorRecoveryDisabledLanes&i)var l=0;else l=0!==(l=-536870913&e.pendingLanes)?l:536870912&l?536870912:0;if(0!==l){t=l;e:{var s=e;a=wc;var c=s.current.memoizedState.isDehydrated;if(c&&(Vc(s,l).flags|=256),2!==(l=Gc(s,l,!1))){if(fc&&!c){s.errorRecoveryDisabledLanes|=i,gc|=i,a=4;break e}i=kc,kc=a,null!==i&&(null===kc?kc=i:kc.push.apply(kc,i))}a=l}if(i=!1,2!==a)continue}}if(1===a){Vc(e,0),Hc(e,t,0,!0);break}e:{switch(r=e,i=a){case 0:case 1:throw Error(o(345));case 4:if((4194048&t)!==t)break;case 6:Hc(r,t,yc,!uc);break e;case 2:kc=null;break;case 3:case 5:break;default:throw Error(o(329))}if((62914560&t)===t&&10<(a=Sc+300-re())){if(Hc(r,t,yc,!uc),0!==ke(r,0,!0))break e;r.timeoutHandle=ud(Fc.bind(null,r,n,kc,Ec,xc,t,yc,gc,vc,uc,i,2,-0,0),a)}else Fc(r,n,kc,Ec,xc,t,yc,gc,vc,uc,i,0,-0,0)}break}a=Gc(e,t,!1),i=!1}Cu(e)}function Fc(e,t,n,r,a,i,l,s,c,u,d,f,p,m){if(e.timeoutHandle=-1,(8192&(f=t.subtreeFlags)||!(16785408&~f))&&(Bd={stylesheets:null,count:0,unsuspend:Vd},Gs(t),null!==(f=function(){if(null===Bd)throw Error(o(475));var e=Bd;return e.stylesheets&&0===e.count&&Kd(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Kd(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}())))return e.cancelPendingCommit=f(au.bind(null,e,t,i,n,r,a,l,s,c,d,1,p,m)),void Hc(e,i,l,!u);au(e,t,i,n,r,a,l,s,c)}function Uc(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!Xn(o(),a))return!1}catch(i){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Hc(e,t,n,r){t&=~bc,t&=~gc,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var o=31-he(a),i=1<<o;r[o]=-1,a&=~i}0!==n&&Ne(e,n,t)}function Wc(){return!!(6&ac)||(Eu(0),!1)}function Bc(){if(null!==ic){if(0===sc)var e=ic.return;else wa=va=null,Fo(e=ic),Xi=null,Zi=0,e=ic;for(;null!==e;)ls(e.alternate,e),e=e.return;ic=null}}function Vc(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,dd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Bc(),oc=e,ic=n=Fr(e.current,null),lc=t,sc=0,cc=null,uc=!1,dc=xe(e,t),fc=!1,vc=yc=bc=gc=hc=mc=0,kc=wc=null,xc=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var a=31-he(r),o=1<<a;t|=e[a],r&=~o}return pc=t,zr(),n}function qc(e,t){xo=null,M.H=Qi,t===Qa||t===Ya?(t=to(),sc=3):t===Ka?(t=to(),sc=4):sc=t===Nl?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,cc=t,null===ic&&(mc=1,Sl(e,Tr(t,e.current)))}function Qc(){var e=M.H;return M.H=Qi,null===e?Qi:e}function Kc(){var e=M.A;return M.A=nc,e}function Yc(){mc=4,uc||(4194048&lc)!==lc&&null!==il.current||(dc=!0),!(134217727&hc)&&!(134217727&gc)||null===oc||Hc(oc,lc,yc,!1)}function Gc(e,t,n){var r=ac;ac|=2;var a=Qc(),o=Kc();oc===e&&lc===t||(Ec=null,Vc(e,t)),t=!1;var i=mc;e:for(;;)try{if(0!==sc&&null!==ic){var l=ic,s=cc;switch(sc){case 8:Bc(),i=6;break e;case 3:case 2:case 9:case 6:null===il.current&&(t=!0);var c=sc;if(sc=0,cc=null,tu(e,l,s,c),n&&dc){i=0;break e}break;default:c=sc,sc=0,cc=null,tu(e,l,s,c)}}Xc(),i=mc;break}catch(u){qc(e,u)}return t&&e.shellSuspendCounter++,wa=va=null,ac=r,M.H=a,M.A=o,null===ic&&(oc=null,lc=0,zr()),i}function Xc(){for(;null!==ic;)Jc(ic)}function Zc(){for(;null!==ic&&!te();)Jc(ic)}function Jc(e){var t=Jl(e.alternate,e,pc);e.memoizedProps=e.pendingProps,null===t?nu(e):ic=t}function eu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Dl(n,t,t.pendingProps,t.type,void 0,lc);break;case 11:t=Dl(n,t,t.pendingProps,t.type.render,t.ref,lc);break;case 5:Fo(t);default:ls(n,t),t=Jl(n,t=ic=Ur(t,pc),pc)}e.memoizedProps=e.pendingProps,null===t?nu(e):ic=t}function tu(e,t,n,r){wa=va=null,Fo(t),Xi=null,Zi=0;var a=t.return;try{if(function(e,t,n,r,a){if(n.flags|=32768,null!==r&&"object"==typeof r&&"function"==typeof r.then){if(null!==(t=n.alternate)&&Ea(t,n,a,!0),null!==(n=il.current)){switch(n.tag){case 13:return null===ll?Yc():null===n.alternate&&0===mc&&(mc=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ga?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),pu(e,r,a)),!1;case 22:return n.flags|=65536,r===Ga?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),pu(e,r,a)),!1}throw Error(o(435,n.tag))}return pu(e,r,a),Yc(),!1}if(la)return null!==(t=il.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==ua&&ba(Tr(e=Error(o(422),{cause:r}),n))):(r!==ua&&ba(Tr(t=Error(o(423),{cause:r}),n)),(e=e.current.alternate).flags|=65536,a&=-a,e.lanes|=a,r=Tr(r,n),co(e,a=El(e.stateNode,r,a)),4!==mc&&(mc=2)),!1;var i=Error(o(520),{cause:r});if(i=Tr(i,n),null===wc?wc=[i]:wc.push(i),4!==mc&&(mc=2),null===t)return!0;r=Tr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,co(n,e=El(n.stateNode,r,e)),!1;case 1:if(t=n.type,i=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===i||"function"!=typeof i.componentDidCatch||null!==Tc&&Tc.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,_l(a=Tl(a),e,n,r),co(n,a),!1}n=n.return}while(null!==n);return!1}(e,a,t,n,lc))return mc=1,Sl(e,Tr(n,e.current)),void(ic=null)}catch(i){if(null!==a)throw ic=a,i;return mc=1,Sl(e,Tr(n,e.current)),void(ic=null)}32768&t.flags?(la||1===r?e=!0:dc||536870912&lc?e=!1:(uc=e=!0,(2===r||9===r||3===r||6===r)&&(null!==(r=il.current)&&13===r.tag&&(r.flags|=16384))),ru(t,e)):nu(t)}function nu(e){var t=e;do{if(32768&t.flags)return void ru(t,uc);e=t.return;var n=os(t.alternate,t,pc);if(null!==n)return void(ic=n);if(null!==(t=t.sibling))return void(ic=t);ic=t=e}while(null!==t);0===mc&&(mc=5)}function ru(e,t){do{var n=is(e.alternate,e);if(null!==n)return n.flags&=32767,void(ic=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(ic=e);ic=e=n}while(null!==e);mc=6,ic=null}function au(e,t,n,r,a,i,l,s,c){e.cancelPendingCommit=null;do{cu()}while(0!==_c);if(6&ac)throw Error(o(327));if(null!==t){if(t===e.current)throw Error(o(177));if(i=t.lanes|t.childLanes,function(e,t,n,r,a,o){var i=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var l=e.entanglements,s=e.expirationTimes,c=e.hiddenUpdates;for(n=i&~n;0<n;){var u=31-he(n),d=1<<u;l[u]=0,s[u]=-1;var f=c[u];if(null!==f)for(c[u]=null,u=0;u<f.length;u++){var p=f[u];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Ne(e,r,0),0!==o&&0===a&&0!==e.tag&&(e.suspendedLanes|=o&~(i&~t))}(e,n,i|=Pr,l,s,c),e===oc&&(ic=oc=null,lc=0),Pc=t,Nc=e,zc=n,Rc=i,jc=a,Ac=r,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,J(le,function(){return uu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(13878&t.flags),13878&t.subtreeFlags||r){r=M.T,M.T=null,a=$.p,$.p=2,l=ac,ac|=4;try{!function(e,t){if(e=e.containerInfo,rd=af,rr(e=nr(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(g){n=null;break e}var l=0,s=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var m;f!==n||0!==a&&3!==f.nodeType||(s=l+a),f!==i||0!==r&&3!==f.nodeType||(c=l+r),3===f.nodeType&&(l+=f.nodeValue.length),null!==(m=f.firstChild);)p=f,f=m;for(;;){if(f===e)break t;if(p===n&&++u===a&&(s=l),p===i&&++d===r&&(c=l),null!==(m=f.nextSibling))break;p=(f=p).parentNode}f=m}n=-1===s||-1===c?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ad={focusedElem:e,selectionRange:n},af=!1,Es=t;null!==Es;)if(e=(t=Es).child,1024&t.subtreeFlags&&null!==e)e.return=t,Es=e;else for(;null!==Es;){switch(i=(t=Es).alternate,e=t.flags,t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==i){e=void 0,n=t,a=i.memoizedProps,i=i.memoizedState,r=n.stateNode;try{var h=yl(n.type,a,(n.elementType,n.type));e=r.getSnapshotBeforeUpdate(h,i),r.__reactInternalSnapshotBeforeUpdate=e}catch(b){fu(n,n.return,b)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))bd(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":bd(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(o(163))}if(null!==(e=t.sibling)){e.return=t.return,Es=e;break}Es=t.return}}(e,t)}finally{ac=l,$.p=a,M.T=r}}_c=1,ou(),iu(),lu()}}function ou(){if(1===_c){_c=0;var e=Nc,t=Pc,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=M.T,M.T=null;var r=$.p;$.p=2;var a=ac;ac|=4;try{Ms(t,e);var o=ad,i=nr(e.containerInfo),l=o.focusedElem,s=o.selectionRange;if(i!==l&&l&&l.ownerDocument&&tr(l.ownerDocument.documentElement,l)){if(null!==s&&rr(l)){var c=s.start,u=s.end;if(void 0===u&&(u=c),"selectionStart"in l)l.selectionStart=c,l.selectionEnd=Math.min(u,l.value.length);else{var d=l.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=l.textContent.length,h=Math.min(s.start,m),g=void 0===s.end?h:Math.min(s.end,m);!p.extend&&h>g&&(i=g,g=h,h=i);var b=er(l,h),y=er(l,g);if(b&&y&&(1!==p.rangeCount||p.anchorNode!==b.node||p.anchorOffset!==b.offset||p.focusNode!==y.node||p.focusOffset!==y.offset)){var v=d.createRange();v.setStart(b.node,b.offset),p.removeAllRanges(),h>g?(p.addRange(v),p.extend(y.node,y.offset)):(v.setEnd(y.node,y.offset),p.addRange(v))}}}}for(d=[],p=l;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof l.focus&&l.focus(),l=0;l<d.length;l++){var w=d[l];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}af=!!rd,ad=rd=null}finally{ac=a,$.p=r,M.T=n}}e.current=t,_c=2}}function iu(){if(2===_c){_c=0;var e=Nc,t=Pc,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=M.T,M.T=null;var r=$.p;$.p=2;var a=ac;ac|=4;try{Ts(e,t.alternate,t)}finally{ac=a,$.p=r,M.T=n}}_c=3}}function lu(){if(4===_c||3===_c){_c=0,ne();var e=Nc,t=Pc,n=zc,r=Ac;10256&t.subtreeFlags||10256&t.flags?_c=5:(_c=0,Pc=Nc=null,su(e,e.pendingLanes));var a=e.pendingLanes;if(0===a&&(Tc=null),Re(n),t=t.stateNode,pe&&"function"==typeof pe.onCommitFiberRoot)try{pe.onCommitFiberRoot(fe,t,void 0,!(128&~t.current.flags))}catch(s){}if(null!==r){t=M.T,a=$.p,$.p=2,M.T=null;try{for(var o=e.onRecoverableError,i=0;i<r.length;i++){var l=r[i];o(l.value,{componentStack:l.stack})}}finally{M.T=t,$.p=a}}3&zc&&cu(),Cu(e),a=e.pendingLanes,4194090&n&&42&a?e===Lc?Ic++:(Ic=0,Lc=e):Ic=0,Eu(0)}}function su(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Ma(t)))}function cu(e){return ou(),iu(),lu(),uu()}function uu(){if(5!==_c)return!1;var e=Nc,t=Rc;Rc=0;var n=Re(zc),r=M.T,a=$.p;try{$.p=32>n?32:n,M.T=null,n=jc,jc=null;var i=Nc,l=zc;if(_c=0,Pc=Nc=null,zc=0,6&ac)throw Error(o(331));var s=ac;if(ac|=4,Js(i.current),Vs(i,i.current,l,n),ac=s,Eu(0,!1),pe&&"function"==typeof pe.onPostCommitFiberRoot)try{pe.onPostCommitFiberRoot(fe,i)}catch(c){}return!0}finally{$.p=a,M.T=r,su(e,t)}}function du(e,t,n){t=Tr(n,t),null!==(e=lo(e,t=El(e.stateNode,t,2),2))&&(_e(e,2),Cu(e))}function fu(e,t,n){if(3===e.tag)du(e,e,n);else for(;null!==t;){if(3===t.tag){du(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Tc||!Tc.has(r))){e=Tr(n,e),null!==(r=lo(t,n=Tl(2),2))&&(_l(n,r,t,e),_e(r,2),Cu(r));break}}t=t.return}}function pu(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new rc;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(fc=!0,a.add(n),e=mu.bind(null,e,t,n),t.then(e,e))}function mu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,oc===e&&(lc&n)===n&&(4===mc||3===mc&&(62914560&lc)===lc&&300>re()-Sc?!(2&ac)&&Vc(e,0):bc|=n,vc===lc&&(vc=0)),Cu(e)}function hu(e,t){0===t&&(t=Ee()),null!==(e=Ar(e,t))&&(_e(e,t),Cu(e))}function gu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),hu(e,n)}function bu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(o(314))}null!==r&&r.delete(t),hu(e,n)}var yu=null,vu=null,wu=!1,ku=!1,xu=!1,Su=0;function Cu(e){e!==vu&&null===e.next&&(null===vu?yu=vu=e:vu=vu.next=e),ku=!0,wu||(wu=!0,pd(function(){6&ac?J(oe,Tu):_u()}))}function Eu(e,t){if(!xu&&ku){xu=!0;do{for(var n=!1,r=yu;null!==r;){if(0!==e){var a=r.pendingLanes;if(0===a)var o=0;else{var i=r.suspendedLanes,l=r.pingedLanes;o=(1<<31-he(42|e)+1)-1,o=201326741&(o&=a&~(i&~l))?201326741&o|1:o?2|o:0}0!==o&&(n=!0,zu(r,o))}else o=lc,!(3&(o=ke(r,r===oc?o:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||xe(r,o)||(n=!0,zu(r,o));r=r.next}}while(n);xu=!1}}function Tu(){_u()}function _u(){ku=wu=!1;var e=0;0!==Su&&(function(){var e=window.event;if(e&&"popstate"===e.type)return e!==cd&&(cd=e,!0);return cd=null,!1}()&&(e=Su),Su=0);for(var t=re(),n=null,r=yu;null!==r;){var a=r.next,o=Nu(r,t);0===o?(r.next=null,null===n?yu=a:n.next=a,null===a&&(vu=n)):(n=r,(0!==e||3&o)&&(ku=!0)),r=a}Eu(e)}function Nu(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=-62914561&e.pendingLanes;0<o;){var i=31-he(o),l=1<<i,s=a[i];-1===s?0!==(l&n)&&0===(l&r)||(a[i]=Se(l,t)):s<=t&&(e.expiredLanes|=l),o&=~l}if(n=lc,n=ke(e,e===(t=oc)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===sc||9===sc)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&ee(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||xe(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&ee(r),Re(n)){case 2:case 8:n=ie;break;case 32:default:n=le;break;case 268435456:n=ce}return r=Pu.bind(null,e),n=J(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&ee(r),e.callbackPriority=2,e.callbackNode=null,2}function Pu(e,t){if(0!==_c&&5!==_c)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(cu()&&e.callbackNode!==n)return null;var r=lc;return 0===(r=ke(e,e===oc?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Oc(e,r,t),Nu(e,re()),null!=e.callbackNode&&e.callbackNode===n?Pu.bind(null,e):null)}function zu(e,t){if(cu())return null;Oc(e,t,!0)}function Ru(){return 0===Su&&(Su=Ce()),Su}function ju(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Rt(""+e)}function Au(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Iu=0;Iu<Sr.length;Iu++){var Lu=Sr[Iu];Cr(Lu.toLowerCase(),"on"+(Lu[0].toUpperCase()+Lu.slice(1)))}Cr(hr,"onAnimationEnd"),Cr(gr,"onAnimationIteration"),Cr(br,"onAnimationStart"),Cr("dblclick","onDoubleClick"),Cr("focusin","onFocus"),Cr("focusout","onBlur"),Cr(yr,"onTransitionRun"),Cr(vr,"onTransitionStart"),Cr(wr,"onTransitionCancel"),Cr(kr,"onTransitionEnd"),Xe("onMouseEnter",["mouseout","mouseover"]),Xe("onMouseLeave",["mouseout","mouseover"]),Xe("onPointerEnter",["pointerout","pointerover"]),Xe("onPointerLeave",["pointerout","pointerover"]),Ge("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ge("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ge("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ge("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ge("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ge("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),$u=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Mu));function Du(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==o&&a.isPropagationStopped())break e;o=l,a.currentTarget=c;try{o(a)}catch(u){vl(u)}a.currentTarget=null,o=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,c=l.currentTarget,l=l.listener,s!==o&&a.isPropagationStopped())break e;o=l,a.currentTarget=c;try{o(a)}catch(u){vl(u)}a.currentTarget=null,o=s}}}}function Ou(e,t){var n=t[$e];void 0===n&&(n=t[$e]=new Set);var r=e+"__bubble";n.has(r)||(Wu(t,e,2,!1),n.add(r))}function Fu(e,t,n){var r=0;t&&(r|=4),Wu(n,e,r,t)}var Uu="_reactListening"+Math.random().toString(36).slice(2);function Hu(e){if(!e[Uu]){e[Uu]=!0,Ke.forEach(function(t){"selectionchange"!==t&&($u.has(t)||Fu(t,!1,e),Fu(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Uu]||(t[Uu]=!0,Fu("selectionchange",!1,t))}}function Wu(e,t,n,r){switch(ff(t)){case 2:var a=of;break;case 8:a=lf;break;default:a=sf}n=a.bind(null,t,n,e),a=void 0,!Ut||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Bu(e,t,n,r,a){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var s=r.stateNode.containerInfo;if(s===a)break;if(4===i)for(i=r.return;null!==i;){var c=i.tag;if((3===c||4===c)&&i.stateNode.containerInfo===a)return;i=i.return}for(;null!==s;){if(null===(i=We(s)))return;if(5===(c=i.tag)||6===c||26===c||27===c){r=o=i;continue e}s=s.parentNode}}r=r.return}Dt(function(){var r=o,a=At(n),i=[];e:{var s=xr.get(e);if(void 0!==s){var c=tn,u=e;switch(e){case"keypress":if(0===Qt(n))break e;case"keydown":case"keyup":c=bn;break;case"focusin":u="focus",c=sn;break;case"focusout":u="blur",c=sn;break;case"beforeblur":case"afterblur":c=sn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=on;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=ln;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=vn;break;case hr:case gr:case br:c=cn;break;case kr:c=wn;break;case"scroll":case"scrollend":c=rn;break;case"wheel":c=kn;break;case"copy":case"cut":case"paste":c=un;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=yn;break;case"toggle":case"beforetoggle":c=xn}var d=!!(4&t),f=!d&&("scroll"===e||"scrollend"===e),p=d?null!==s?s+"Capture":null:s;d=[];for(var m,h=r;null!==h;){var g=h;if(m=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===m||null===p||null!=(g=Ot(h,p))&&d.push(Vu(h,g,m)),f)break;h=h.return}0<d.length&&(s=new c(s,u,null,n,a),i.push({event:s,listeners:d}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===jt||!(u=n.relatedTarget||n.fromElement)||!We(u)&&!u[Me])&&(c||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,c?(c=r,null!==(u=(u=n.relatedTarget||n.toElement)?We(u):null)&&(f=l(u),d=u.tag,u!==f||5!==d&&27!==d&&6!==d)&&(u=null)):(c=null,u=r),c!==u)){if(d=on,g="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(d=yn,g="onPointerLeave",p="onPointerEnter",h="pointer"),f=null==c?s:Ve(c),m=null==u?s:Ve(u),(s=new d(g,h+"leave",c,n,a)).target=f,s.relatedTarget=m,g=null,We(a)===r&&((d=new d(p,h+"enter",u,n,a)).target=m,d.relatedTarget=f,g=d),f=g,c&&u)e:{for(p=u,h=0,m=d=c;m;m=Qu(m))h++;for(m=0,g=p;g;g=Qu(g))m++;for(;0<h-m;)d=Qu(d),h--;for(;0<m-h;)p=Qu(p),m--;for(;h--;){if(d===p||null!==p&&d===p.alternate)break e;d=Qu(d),p=Qu(p)}d=null}else d=null;null!==c&&Ku(i,s,c,d,!1),null!==u&&null!==f&&Ku(i,f,u,d,!0)}if("select"===(c=(s=r?Ve(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===c&&"file"===s.type)var b=Fn;else if(In(s))if(Un)b=Gn;else{b=Kn;var y=Qn}else!(c=s.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==s.type&&"radio"!==s.type?r&&Nt(r.elementType)&&(b=Fn):b=Yn;switch(b&&(b=b(e,r))?Ln(i,b,n,a):(y&&y(e,s,r),"focusout"===e&&r&&"number"===s.type&&null!=r.memoizedProps.value&&wt(s,"number",s.value)),y=r?Ve(r):window,e){case"focusin":(In(y)||"true"===y.contentEditable)&&(or=y,ir=r,lr=null);break;case"focusout":lr=ir=or=null;break;case"mousedown":sr=!0;break;case"contextmenu":case"mouseup":case"dragend":sr=!1,cr(i,n,a);break;case"selectionchange":if(ar)break;case"keydown":case"keyup":cr(i,n,a)}var v;if(Cn)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else jn?zn(e,n)&&(w="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(w="onCompositionStart");w&&(_n&&"ko"!==n.locale&&(jn||"onCompositionStart"!==w?"onCompositionEnd"===w&&jn&&(v=qt()):(Bt="value"in(Wt=a)?Wt.value:Wt.textContent,jn=!0)),0<(y=qu(r,w)).length&&(w=new dn(w,e,null,n,a),i.push({event:w,listeners:y}),v?w.data=v:null!==(v=Rn(n))&&(w.data=v))),(v=Tn?function(e,t){switch(e){case"compositionend":return Rn(t);case"keypress":return 32!==t.which?null:(Pn=!0,Nn);case"textInput":return(e=t.data)===Nn&&Pn?null:e;default:return null}}(e,n):function(e,t){if(jn)return"compositionend"===e||!Cn&&zn(e,t)?(e=qt(),Vt=Bt=Wt=null,jn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return _n&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(w=qu(r,"onBeforeInput")).length&&(y=new dn("onBeforeInput","beforeinput",null,n,a),i.push({event:y,listeners:w}),y.data=v)),function(e,t,n,r,a){if("submit"===t&&n&&n.stateNode===a){var o=ju((a[Le]||null).action),i=r.submitter;i&&null!==(t=(t=i[Le]||null)?ju(t.formAction):i.getAttribute("formAction"))&&(o=t,i=null);var l=new tn("action","action",null,r,a);e.push({event:l,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Su){var e=i?Au(a,i):new FormData(a);Ai(n,{pending:!0,data:e,method:a.method,action:o},null,e)}}else"function"==typeof o&&(l.preventDefault(),e=i?Au(a,i):new FormData(a),Ai(n,{pending:!0,data:e,method:a.method,action:o},o,e))},currentTarget:a}]})}}(i,e,r,n,a)}Du(i,t)})}function Vu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qu(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;if(5!==(a=a.tag)&&26!==a&&27!==a||null===o||(null!=(a=Ot(e,n))&&r.unshift(Vu(e,a,o)),null!=(a=Ot(e,t))&&r.push(Vu(e,a,o))),3===e.tag)return r;e=e.return}return[]}function Qu(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Ku(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(l=l.tag,null!==s&&s===r)break;5!==l&&26!==l&&27!==l||null===c||(s=c,a?null!=(c=Ot(n,o))&&i.unshift(Vu(n,c,s)):a||null!=(c=Ot(n,o))&&i.push(Vu(n,c,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Yu=/\r\n?/g,Gu=/\u0000|\uFFFD/g;function Xu(e){return("string"==typeof e?e:""+e).replace(Yu,"\n").replace(Gu,"")}function Zu(e,t){return t=Xu(t),Xu(e)===t}function Ju(){}function ed(e,t,n,r,a,i){switch(n){case"children":"string"==typeof r?"body"===t||"textarea"===t&&""===r||Ct(e,r):("number"==typeof r||"bigint"==typeof r)&&"body"!==t&&Ct(e,""+r);break;case"className":at(e,"class",r);break;case"tabIndex":at(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":at(e,n,r);break;case"style":_t(e,r,i);break;case"data":if("object"!==t){at(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==r||"function"==typeof r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Rt(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if("function"==typeof r){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof i&&("formAction"===n?("input"!==t&&ed(e,t,"name",a.name,a,null),ed(e,t,"formEncType",a.formEncType,a,null),ed(e,t,"formMethod",a.formMethod,a,null),ed(e,t,"formTarget",a.formTarget,a,null)):(ed(e,t,"encType",a.encType,a,null),ed(e,t,"method",a.method,a,null),ed(e,t,"target",a.target,a,null))),null==r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Rt(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&(e.onclick=Ju);break;case"onScroll":null!=r&&Ou("scroll",e);break;case"onScrollEnd":null!=r&&Ou("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(o(61));if(null!=(n=r.__html)){if(null!=a.children)throw Error(o(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"muted":e.muted=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"==typeof r||"boolean"==typeof r||"symbol"==typeof r){e.removeAttribute("xlink:href");break}n=Rt(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!=typeof r&&"symbol"!=typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"==typeof r||"symbol"==typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":Ou("beforetoggle",e),Ou("toggle",e),rt(e,"popover",r);break;case"xlinkActuate":ot(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":ot(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":ot(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":ot(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":ot(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":ot(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":ot(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":ot(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":ot(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":rt(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&rt(e,n=Pt.get(n)||n,r)}}function td(e,t,n,r,a,i){switch(n){case"style":_t(e,r,i);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(o(61));if(null!=(n=r.__html)){if(null!=a.children)throw Error(o(60));e.innerHTML=n}}break;case"children":"string"==typeof r?Ct(e,r):("number"==typeof r||"bigint"==typeof r)&&Ct(e,""+r);break;case"onScroll":null!=r&&Ou("scroll",e);break;case"onScrollEnd":null!=r&&Ou("scrollend",e);break;case"onClick":null!=r&&(e.onclick=Ju);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Ye.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),"function"==typeof(i=null!=(i=e[Le]||null)?i[n]:null)&&e.removeEventListener(t,i,a),"function"!=typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):rt(e,n,r):("function"!=typeof i&&null!==i&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a)))}}function nd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ou("error",e),Ou("load",e);var r,a=!1,i=!1;for(r in n)if(n.hasOwnProperty(r)){var l=n[r];if(null!=l)switch(r){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:ed(e,t,r,l,n,null)}}return i&&ed(e,t,"srcSet",n.srcSet,n,null),void(a&&ed(e,t,"src",n.src,n,null));case"input":Ou("invalid",e);var s=r=l=i=null,c=null,u=null;for(a in n)if(n.hasOwnProperty(a)){var d=n[a];if(null!=d)switch(a){case"name":i=d;break;case"type":l=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":r=d;break;case"defaultValue":s=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(o(137,t));break;default:ed(e,t,a,d,n,null)}}return vt(e,r,s,c,u,l,i,!1),void pt(e);case"select":for(i in Ou("invalid",e),a=l=r=null,n)if(n.hasOwnProperty(i)&&null!=(s=n[i]))switch(i){case"value":r=s;break;case"defaultValue":l=s;break;case"multiple":a=s;default:ed(e,t,i,s,n,null)}return t=r,n=l,e.multiple=!!a,void(null!=t?kt(e,!!a,t,!1):null!=n&&kt(e,!!a,n,!0));case"textarea":for(l in Ou("invalid",e),r=i=a=null,n)if(n.hasOwnProperty(l)&&null!=(s=n[l]))switch(l){case"value":a=s;break;case"defaultValue":i=s;break;case"children":r=s;break;case"dangerouslySetInnerHTML":if(null!=s)throw Error(o(91));break;default:ed(e,t,l,s,n,null)}return St(e,a,i,r),void pt(e);case"option":for(c in n)if(n.hasOwnProperty(c)&&null!=(a=n[c]))if("selected"===c)e.selected=a&&"function"!=typeof a&&"symbol"!=typeof a;else ed(e,t,c,a,n,null);return;case"dialog":Ou("beforetoggle",e),Ou("toggle",e),Ou("cancel",e),Ou("close",e);break;case"iframe":case"object":Ou("load",e);break;case"video":case"audio":for(a=0;a<Mu.length;a++)Ou(Mu[a],e);break;case"image":Ou("error",e),Ou("load",e);break;case"details":Ou("toggle",e);break;case"embed":case"source":case"link":Ou("error",e),Ou("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&null!=(a=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:ed(e,t,u,a,n,null)}return;default:if(Nt(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(a=n[d])&&td(e,t,d,a,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(null!=(a=n[s])&&ed(e,t,s,a,n,null))}var rd=null,ad=null;function od(e){return 9===e.nodeType?e:e.ownerDocument}function id(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ld(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function sd(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var cd=null;var ud="function"==typeof setTimeout?setTimeout:void 0,dd="function"==typeof clearTimeout?clearTimeout:void 0,fd="function"==typeof Promise?Promise:void 0,pd="function"==typeof queueMicrotask?queueMicrotask:void 0!==fd?function(e){return fd.resolve(null).then(e).catch(md)}:ud;function md(e){setTimeout(function(){throw e})}function hd(e){return"head"===e}function gd(e,t){var n=t,r=0,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0<r&&8>r){n=r;var i=e.ownerDocument;if(1&n&&Sd(i.documentElement),2&n&&Sd(i.body),4&n)for(Sd(n=i.head),i=n.firstChild;i;){var l=i.nextSibling,s=i.nodeName;i[Ue]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===i.rel.toLowerCase()||n.removeChild(i),i=l}}if(0===a)return e.removeChild(o),void zf(t);a--}else"$"===n||"$?"===n||"$!"===n?a++:r=n.charCodeAt(0)-48;else r=0;n=o}while(n);zf(t)}function bd(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":bd(n),He(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function yd(e){return"$!"===e.data||"$?"===e.data&&"complete"===e.ownerDocument.readyState}function vd(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"F!"===t||"F"===t)break;if("/$"===t)return null}}return e}var wd=null;function kd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}function xd(e,t,n){switch(t=od(n),e){case"html":if(!(e=t.documentElement))throw Error(o(452));return e;case"head":if(!(e=t.head))throw Error(o(453));return e;case"body":if(!(e=t.body))throw Error(o(454));return e;default:throw Error(o(451))}}function Sd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);He(e)}var Cd=new Map,Ed=new Set;function Td(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var _d=$.d;$.d={f:function(){var e=_d.f(),t=Wc();return e||t},r:function(e){var t=Be(e);null!==t&&5===t.tag&&"form"===t.type?Li(t):_d.r(e)},D:function(e){_d.D(e),Pd("dns-prefetch",e,null)},C:function(e,t){_d.C(e,t),Pd("preconnect",e,t)},L:function(e,t,n){_d.L(e,t,n);var r=Nd;if(r&&e&&t){var a='link[rel="preload"][as="'+bt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(a+='[imagesrcset="'+bt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(a+='[imagesizes="'+bt(n.imageSizes)+'"]')):a+='[href="'+bt(e)+'"]';var o=a;switch(t){case"style":o=Rd(e);break;case"script":o=Id(e)}Cd.has(o)||(e=f({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Cd.set(o,e),null!==r.querySelector(a)||"style"===t&&r.querySelector(jd(o))||"script"===t&&r.querySelector(Ld(o))||(nd(t=r.createElement("link"),"link",e),Qe(t),r.head.appendChild(t)))}},m:function(e,t){_d.m(e,t);var n=Nd;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",a='link[rel="modulepreload"][as="'+bt(r)+'"][href="'+bt(e)+'"]',o=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Id(e)}if(!Cd.has(o)&&(e=f({rel:"modulepreload",href:e},t),Cd.set(o,e),null===n.querySelector(a))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ld(o)))return}nd(r=n.createElement("link"),"link",e),Qe(r),n.head.appendChild(r)}}},X:function(e,t){_d.X(e,t);var n=Nd;if(n&&e){var r=qe(n).hoistableScripts,a=Id(e),o=r.get(a);o||((o=n.querySelector(Ld(a)))||(e=f({src:e,async:!0},t),(t=Cd.get(a))&&Od(e,t),Qe(o=n.createElement("script")),nd(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(a,o))}},S:function(e,t,n){_d.S(e,t,n);var r=Nd;if(r&&e){var a=qe(r).hoistableStyles,o=Rd(e);t=t||"default";var i=a.get(o);if(!i){var l={loading:0,preload:null};if(i=r.querySelector(jd(o)))l.loading=5;else{e=f({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Cd.get(o))&&Dd(e,n);var s=i=r.createElement("link");Qe(s),nd(s,"link",e),s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),s.addEventListener("load",function(){l.loading|=1}),s.addEventListener("error",function(){l.loading|=2}),l.loading|=4,$d(i,t,r)}i={type:"stylesheet",instance:i,count:1,state:l},a.set(o,i)}}},M:function(e,t){_d.M(e,t);var n=Nd;if(n&&e){var r=qe(n).hoistableScripts,a=Id(e),o=r.get(a);o||((o=n.querySelector(Ld(a)))||(e=f({src:e,async:!0,type:"module"},t),(t=Cd.get(a))&&Od(e,t),Qe(o=n.createElement("script")),nd(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(a,o))}}};var Nd="undefined"==typeof document?null:document;function Pd(e,t,n){var r=Nd;if(r&&"string"==typeof t&&t){var a=bt(t);a='link[rel="'+e+'"][href="'+a+'"]',"string"==typeof n&&(a+='[crossorigin="'+n+'"]'),Ed.has(a)||(Ed.add(a),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(a)&&(nd(t=r.createElement("link"),"link",e),Qe(t),r.head.appendChild(t)))}}function zd(e,t,n,r){var a,i,l,s,c=(c=q.current)?Td(c):null;if(!c)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Rd(n.href),(r=(n=qe(c).hoistableStyles).get(t))||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Rd(n.href);var u=qe(c).hoistableStyles,d=u.get(e);if(d||(c=c.ownerDocument||c,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=c.querySelector(jd(e)))&&!u._p&&(d.instance=u,d.state.loading=5),Cd.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Cd.set(e,n),u||(a=c,i=e,l=n,s=d.state,a.querySelector('link[rel="preload"][as="style"]['+i+"]")?s.loading=1:(i=a.createElement("link"),s.preload=i,i.addEventListener("load",function(){return s.loading|=1}),i.addEventListener("error",function(){return s.loading|=2}),nd(i,"link",l),Qe(i),a.head.appendChild(i))))),t&&null===r)throw Error(o(528,""));return d}if(t&&null!==r)throw Error(o(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Id(n),(r=(n=qe(c).hoistableScripts).get(t))||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Rd(e){return'href="'+bt(e)+'"'}function jd(e){return'link[rel="stylesheet"]['+e+"]"}function Ad(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Id(e){return'[src="'+bt(e)+'"]'}function Ld(e){return"script[async]"+e}function Md(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+bt(n.href)+'"]');if(r)return t.instance=r,Qe(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return Qe(r=(e.ownerDocument||e).createElement("style")),nd(r,"style",a),$d(r,n.precedence,e),t.instance=r;case"stylesheet":a=Rd(n.href);var i=e.querySelector(jd(a));if(i)return t.state.loading|=4,t.instance=i,Qe(i),i;r=Ad(n),(a=Cd.get(a))&&Dd(r,a),Qe(i=(e.ownerDocument||e).createElement("link"));var l=i;return l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),nd(i,"link",r),t.state.loading|=4,$d(i,n.precedence,e),t.instance=i;case"script":return i=Id(n.src),(a=e.querySelector(Ld(i)))?(t.instance=a,Qe(a),a):(r=n,(a=Cd.get(i))&&Od(r=f({},n),a),Qe(a=(e=e.ownerDocument||e).createElement("script")),nd(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(o(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,$d(r,n.precedence,e));return t.instance}function $d(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,o=a,i=0;i<r.length;i++){var l=r[i];if(l.dataset.precedence===t)o=l;else if(o!==a)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Dd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function Od(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var Fd=null;function Ud(e,t,n){if(null===Fd){var r=new Map,a=Fd=new Map;a.set(n,r)}else(r=(a=Fd).get(n))||(r=new Map,a.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var o=n[a];if(!(o[Ue]||o[Ie]||"link"===e&&"stylesheet"===o.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==o.namespaceURI){var i=o.getAttribute(t)||"";i=e+i;var l=r.get(i);l?l.push(o):r.set(i,[o])}}return r}function Hd(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function Wd(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var Bd=null;function Vd(){}function qd(){if(this.count--,0===this.count)if(this.stylesheets)Kd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var Qd=null;function Kd(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Qd=new Map,t.forEach(Yd,e),Qd=null,qd.call(e))}function Yd(e,t){if(!(4&t.state.loading)){var n=Qd.get(e);if(n)var r=n.get(null);else{n=new Map,Qd.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<a.length;o++){var i=a[o];"LINK"!==i.nodeName&&"not all"===i.getAttribute("media")||(n.set(i.dataset.precedence,i),r=i)}r&&n.set(null,r)}i=(a=t.instance).getAttribute("data-precedence"),(o=n.get(i)||r)===r&&n.set(null,a),n.set(i,a),this.count++,r=qd.bind(this),a.addEventListener("load",r),a.addEventListener("error",r),o?o.parentNode.insertBefore(a,o.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(a,e.firstChild),t.state.loading|=4}}var Gd={$$typeof:S,Provider:null,Consumer:null,_currentValue:D,_currentValue2:D,_threadCount:0};function Xd(e,t,n,r,a,o,i,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Te(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Te(0),this.hiddenUpdates=Te(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=o,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function Zd(e,t,n,r,a,o,i,l,s,c,u,d){return e=new Xd(e,t,n,i,l,s,c,d),t=1,!0===o&&(t|=24),o=Dr(3,null,null,t),e.current=o,o.stateNode=e,(t=La()).refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:r,isDehydrated:n,cache:t},ao(o),e}function Jd(e){return e?e=Mr:Mr}function ef(e,t,n,r,a,o){a=Jd(a),null===r.context?r.context=a:r.pendingContext=a,(r=io(t)).payload={element:n},null!==(o=void 0===o?null:o)&&(r.callback=o),null!==(n=lo(e,r,t))&&(Dc(n,0,t),so(n,e,t))}function tf(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function nf(e,t){tf(e,t),(e=e.alternate)&&tf(e,t)}function rf(e){if(13===e.tag){var t=Ar(e,67108864);null!==t&&Dc(t,0,67108864),nf(e,67108864)}}var af=!0;function of(e,t,n,r){var a=M.T;M.T=null;var o=$.p;try{$.p=2,sf(e,t,n,r)}finally{$.p=o,M.T=a}}function lf(e,t,n,r){var a=M.T;M.T=null;var o=$.p;try{$.p=8,sf(e,t,n,r)}finally{$.p=o,M.T=a}}function sf(e,t,n,r){if(af){var a=cf(r);if(null===a)Bu(e,t,r,uf,n),kf(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return mf=xf(mf,e,t,n,r,a),!0;case"dragenter":return hf=xf(hf,e,t,n,r,a),!0;case"mouseover":return gf=xf(gf,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return bf.set(o,xf(bf.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,yf.set(o,xf(yf.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(kf(e,r),4&t&&-1<wf.indexOf(e)){for(;null!==a;){var o=Be(a);if(null!==o)switch(o.tag){case 3:if((o=o.stateNode).current.memoizedState.isDehydrated){var i=we(o.pendingLanes);if(0!==i){var l=o;for(l.pendingLanes|=2,l.entangledLanes|=2;i;){var s=1<<31-he(i);l.entanglements[1]|=s,i&=~s}Cu(o),!(6&ac)&&(Cc=re()+500,Eu(0))}}break;case 13:null!==(l=Ar(o,2))&&Dc(l,0,2),Wc(),nf(o,2)}if(null===(o=cf(r))&&Bu(e,t,r,uf,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else Bu(e,t,r,null,n)}}function cf(e){return df(e=At(e))}var uf=null;function df(e){if(uf=null,null!==(e=We(e))){var t=l(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=c(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return uf=e,null}function ff(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ae()){case oe:return 2;case ie:return 8;case le:case se:return 32;case ce:return 268435456;default:return 32}default:return 32}}var pf=!1,mf=null,hf=null,gf=null,bf=new Map,yf=new Map,vf=[],wf="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function kf(e,t){switch(e){case"focusin":case"focusout":mf=null;break;case"dragenter":case"dragleave":hf=null;break;case"mouseover":case"mouseout":gf=null;break;case"pointerover":case"pointerout":bf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":yf.delete(t.pointerId)}}function xf(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&(null!==(t=Be(t))&&rf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Sf(e){var t=We(e.target);if(null!==t){var n=l(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=c(n)))return e.blockedOn=t,void function(e,t){var n=$.p;try{return $.p=e,t()}finally{$.p=n}}(e.priority,function(){if(13===n.tag){var e=Mc();e=ze(e);var t=Ar(n,e);null!==t&&Dc(t,0,e),nf(n,e)}})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Cf(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=cf(e.nativeEvent);if(null!==n)return null!==(t=Be(n))&&rf(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);jt=r,n.target.dispatchEvent(r),jt=null,t.shift()}return!0}function Ef(e,t,n){Cf(e)&&n.delete(t)}function Tf(){pf=!1,null!==mf&&Cf(mf)&&(mf=null),null!==hf&&Cf(hf)&&(hf=null),null!==gf&&Cf(gf)&&(gf=null),bf.forEach(Ef),yf.forEach(Ef)}function _f(e,t){e.blockedOn===t&&(e.blockedOn=null,pf||(pf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Tf)))}var Nf=null;function Pf(e){Nf!==e&&(Nf=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Nf===e&&(Nf=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],a=e[t+2];if("function"!=typeof r){if(null===df(r||n))continue;break}var o=Be(n);null!==o&&(e.splice(t,3),t-=3,Ai(o,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function zf(e){function t(t){return _f(t,e)}null!==mf&&_f(mf,e),null!==hf&&_f(hf,e),null!==gf&&_f(gf,e),bf.forEach(t),yf.forEach(t);for(var n=0;n<vf.length;n++){var r=vf[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<vf.length&&null===(n=vf[0]).blockedOn;)Sf(n),null===n.blockedOn&&vf.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var a=n[r],o=n[r+1],i=a[Le]||null;if("function"==typeof o)i||Pf(n);else if(i){var l=null;if(o&&o.hasAttribute("formAction")){if(a=o,i=o[Le]||null)l=i.formAction;else if(null!==df(a))continue}else l=i.action;"function"==typeof l?n[r+1]=l:(n.splice(r,3),r-=3),Pf(n)}}}function Rf(e){this._internalRoot=e}function jf(e){this._internalRoot=e}jf.prototype.render=Rf.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));ef(t.current,Mc(),e,t,null,null)},jf.prototype.unmount=Rf.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;ef(e.current,2,null,e,null,null),Wc(),t[Me]=null}},jf.prototype.unstable_scheduleHydration=function(e){if(e){var t=je();e={blockedOn:null,target:e,priority:t};for(var n=0;n<vf.length&&0!==t&&t<vf[n].priority;n++);vf.splice(n,0,e),0===n&&Sf(e)}};var Af=r.version;if("19.1.1"!==Af)throw Error(o(527,Af,"19.1.1"));$.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=l(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(r=a.return)){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return u(a),e;if(i===r)return u(a),t;i=i.sibling}throw Error(o(188))}if(n.return!==r.return)n=a,r=i;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,r=i;break}if(c===r){s=!0,r=a,n=i;break}c=c.sibling}if(!s){for(c=i.child;c;){if(c===n){s=!0,n=i,r=a;break}if(c===r){s=!0,r=i,n=a;break}c=c.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?d(e):null)?null:e.stateNode};var If={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.1.1"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Lf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lf.isDisabled&&Lf.supportsFiber)try{fe=Lf.inject(If),pe=Lf}catch($f){}}return s.createRoot=function(e,t){if(!i(e))throw Error(o(299));var n=!1,r="",a=wl,l=kl,s=xl;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(a=t.onUncaughtError),void 0!==t.onCaughtError&&(l=t.onCaughtError),void 0!==t.onRecoverableError&&(s=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=Zd(e,1,!1,null,0,n,r,a,l,s,0,null),e[Me]=t.current,Hu(e),new Rf(t)},s.hydrateRoot=function(e,t,n){if(!i(e))throw Error(o(299));var r=!1,a="",l=wl,s=kl,c=xl,u=null;return null!=n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onUncaughtError&&(l=n.onUncaughtError),void 0!==n.onCaughtError&&(s=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&n.unstable_transitionCallbacks,void 0!==n.formState&&(u=n.formState)),(t=Zd(e,1,!0,t,0,r,a,l,s,c,0,u)).context=Jd(null),n=t.current,(a=io(r=ze(r=Mc()))).callback=null,lo(n,a,r),n=r,t.current.lanes=n,_e(t,n),Cu(t),e[Me]=t.current,Hu(e),new jf(t)},s.version="19.1.1",s}var b,y,v={};
|
|
20
20
|
/**
|
|
21
21
|
* @license React
|
|
22
22
|
* react-dom-client.development.js
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
*
|
|
26
26
|
* This source code is licensed under the MIT license found in the
|
|
27
27
|
* LICENSE file in the root directory of this source tree.
|
|
28
|
-
*/function w(){return b||(b=1,"production"!==process.env.NODE_ENV&&function(){function n(e,t){for(e=e.memoizedState;null!==e&&0<t;)e=e.next,t--;return e}function r(e,t,n,a){if(n>=t.length)return a;var o=t[n],i=Xu(e)?e.slice():ju({},e);return i[o]=r(e[o],t,n+1,a),i}function a(e,t,n){if(t.length===n.length){for(var r=0;r<n.length-1;r++)if(t[r]!==n[r])return void console.warn("copyWithRename() expects paths to be the same except for the deepest key");return o(e,t,n,0)}console.warn("copyWithRename() expects paths of the same length")}function o(e,t,n,r){var a=t[r],i=Xu(e)?e.slice():ju({},e);return r+1===t.length?(i[n[r]]=i[a],Xu(i)?i.splice(a,1):delete i[a]):i[a]=o(e[a],t,n,r+1),i}function i(e,t,n){var r=t[n],a=Xu(e)?e.slice():ju({},e);return n+1===t.length?(Xu(a)?a.splice(r,1):delete a[r],a):(a[r]=i(e[r],t,n+1),a)}function l(){return!1}function s(){return null}function c(){}function u(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function d(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function f(){}function p(e){var t=[];return e.forEach(function(e){t.push(e)}),t.sort().join(", ")}function m(e,t,n,r){return new Cn(e,t,n,r)}function g(e,t){e.context===pm&&(Zc(e.current,2,t,e,null,null),zl())}function b(e,t){if(null!==mm){var n=t.staleFamilies;t=t.updatedFamilies,Zl(),Sn(e.current,t,n),zl()}}function y(e){mm=e}function w(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function k(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function x(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function S(e){if(k(e)!==e)throw Error("Unable to find node on an unmounted component.")}function C(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=C(e)))return t;e=e.sibling}return null}function E(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Yu&&e[Yu]||e["@@iterator"])?e:null}function T(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===Gu?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Mu:return"Fragment";case $u:return"Profiler";case Du:return"StrictMode";case Wu:return"Suspense";case Bu:return"SuspenseList";case Qu:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Lu:return"Portal";case Uu:return(e.displayName||"Context")+".Provider";case Fu:return(e._context.displayName||"Context")+".Consumer";case Hu:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Vu:return null!==(t=e.displayName||null)?t:T(e.type)||"Memo";case qu:t=e._payload,e=e._init;try{return T(e(t))}catch(n){}}return null}function _(e){return"number"==typeof e.tag?N(e):"string"==typeof e.name?e.name:null}function N(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return(t.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return T(t);case 8:return t===Du?"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 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;break;case 29:if(null!=(t=e._debugInfo))for(var n=t.length-1;0<=n;n--)if("string"==typeof t[n].name)return t[n].name;if(null!==e.return)return N(e.return)}return null}function P(e){return{current:e}}function z(e,t){0>rd?console.error("Unexpected pop."):(t!==nd[rd]&&console.error("Unexpected Fiber popped."),e.current=td[rd],td[rd]=null,nd[rd]=null,rd--)}function R(e,t,n){rd++,td[rd]=e.current,nd[rd]=n,e.current=t}function j(e){return null===e&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function A(e,t){R(id,t,e),R(od,e,e),R(ad,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=9===n?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?tc(t):Uv;break;default:if(n=t.tagName,t=t.namespaceURI)t=nc(t=tc(t),n);else switch(n){case"svg":t=Hv;break;case"math":t=Wv;break;default:t=Uv}}n={context:t,ancestorInfo:n=yt(null,n=n.toLowerCase())},z(ad,e),R(ad,n,e)}function I(e){z(ad,e),z(od,e),z(id,e)}function L(){return j(ad.current)}function M(e){null!==e.memoizedState&&R(ld,e,e);var t=j(ad.current),n=e.type,r=nc(t.context,n);t!==(r={context:r,ancestorInfo:n=yt(t.ancestorInfo,n)})&&(R(od,e,e),R(ad,r,e))}function D(e){od.current===e&&(z(ad,e),z(od,e)),ld.current===e&&(z(ld,e),Sw._currentValue=xw)}function $(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function O(e){try{return F(e),!1}catch(t){return!0}}function F(e){return""+e}function U(e,t){if(O(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,$(e)),F(e)}function H(e,t){if(O(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,$(e)),F(e)}function W(e){if(O(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",$(e)),F(e)}function B(e){if("function"==typeof wd&&kd(e),Sd&&"function"==typeof Sd.setStrictMode)try{Sd.setStrictMode(xd,e)}catch(t){Ed||(Ed=!0,console.error("React instrumentation encountered an error: %s",t))}}function V(e){Cd=e}function q(){null!==Cd&&"function"==typeof Cd.markCommitStopped&&Cd.markCommitStopped()}function Q(e){null!==Cd&&"function"==typeof Cd.markComponentRenderStarted&&Cd.markComponentRenderStarted(e)}function K(){null!==Cd&&"function"==typeof Cd.markComponentRenderStopped&&Cd.markComponentRenderStopped()}function Y(e){null!==Cd&&"function"==typeof Cd.markRenderStarted&&Cd.markRenderStarted(e)}function G(){null!==Cd&&"function"==typeof Cd.markRenderStopped&&Cd.markRenderStopped()}function X(e,t){null!==Cd&&"function"==typeof Cd.markStateUpdateScheduled&&Cd.markStateUpdateScheduled(e,t)}function Z(e){return 1&e?"SyncHydrationLane":2&e?"Sync":4&e?"InputContinuousHydration":8&e?"InputContinuous":16&e?"DefaultHydration":32&e?"Default":128&e?"TransitionHydration":4194048&e?"Transition":62914560&e?"Retry":67108864&e?"SelectiveHydration":134217728&e?"IdleHydration":268435456&e?"Idle":536870912&e?"Offscreen":1073741824&e?"Deferred":void 0}function J(e){var t=42&e;if(0!==t)return t;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:return 64;case 128:return 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 4194048&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function ee(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var a=0,o=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var l=134217727&r;return 0!==l?0!==(r=l&~o)?a=J(r):0!==(i&=l)?a=J(i):n||0!==(n=l&~e)&&(a=J(n)):0!==(l=r&~o)?a=J(l):0!==i?a=J(i):n||0!==(n=r&~e)&&(a=J(n)),0===a?0:0!==t&&t!==a&&0===(t&o)&&((o=a&-a)>=(n=t&-t)||32===o&&4194048&n)?t:a}function te(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function ne(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function re(){var e=zd;return!(4194048&(zd<<=1))&&(zd=256),e}function ae(){var e=Rd;return!(62914560&(Rd<<=1))&&(Rd=4194304),e}function oe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ie(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function le(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-_d(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194090&n}function se(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-_d(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function ce(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ue(e,t,n){if(Td)for(e=e.pendingUpdatersLaneMap;0<n;){var r=31-_d(n),a=1<<r;e[r].add(t),n&=~a}}function de(e,t){if(Td)for(var n=e.pendingUpdatersLaneMap,r=e.memoizedUpdaters;0<t;){var a=31-_d(t);e=1<<a,0<(a=n[a]).size&&(a.forEach(function(e){var t=e.alternate;null!==t&&r.has(t)||r.add(e)}),a.clear()),t&=~e}}function fe(e){return jd<(e&=-e)?Ad<e?134217727&e?Id:Ld:Ad:jd}function pe(){var e=Ju.p;return 0!==e?e:void 0===(e=window.event)?Id:cu(e.type)}function me(e){delete e[Dd],delete e[$d],delete e[Fd],delete e[Ud],delete e[Hd]}function he(e){var t=e[Dd];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Od]||n[Dd]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Sc(e);null!==e;){if(n=e[Dd])return n;e=Sc(e)}return t}n=(e=n).parentNode}return null}function ge(e){if(e=e[Dd]||e[Od]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function be(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function ye(e){var t=e[Wd];return t||(t=e[Wd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ve(e){e[Bd]=!0}function we(e,t){ke(e,t),ke(e+"Capture",t)}function ke(e,t){qd[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),qd[e]=t;var n=e.toLowerCase();for(Qd[n]=e,"onDoubleClick"===e&&(Qd.ondblclick=e),e=0;e<t.length;e++)Vd.add(t[e])}function xe(e,t){Kd[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||null==t.value||("select"===e?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),t.onChange||t.readOnly||t.disabled||null==t.checked||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Se(e){return!!sd.call(Xd,e)||!sd.call(Gd,e)&&(Yd.test(e)?Xd[e]=!0:(Gd[e]=!0,console.error("Invalid attribute name: `%s`",e),!1))}function Ce(e,t,n){if(Se(t)){if(!e.hasAttribute(t)){switch(typeof n){case"symbol":case"object":case"function":return n;case"boolean":if(!1===n)return n}return void 0===n?void 0:null}return""===(e=e.getAttribute(t))&&!0===n||(U(n,t),e===""+n?n:e)}}function Ee(e,t,n){if(Se(t))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}U(n,t),e.setAttribute(t,""+n)}}function Te(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}U(n,t),e.setAttribute(t,""+n)}}function _e(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}U(r,n),e.setAttributeNS(t,n,""+r)}}function Ne(){}function Pe(e){if(void 0===Jd)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Jd=t&&t[1]||"",ef=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+Jd+e+ef}function ze(e,t){if(!e||tf)return"";var n=nf.get(e);if(void 0!==n)return n;tf=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var r;r=Zu.H,Zu.H=null,function(){if(0===Zd){xu=console.log,Su=console.info,Cu=console.warn,Eu=console.error,Tu=console.group,_u=console.groupCollapsed,Nu=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ne,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Zd++}();try{var a={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(a){var r=a}Reflect.construct(e,[],n)}else{try{n.call()}catch(o){r=o}e.call(n.prototype)}}else{try{throw Error()}catch(i){r=i}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(l){if(l&&r&&"string"==typeof l.stack)return[l.stack,r.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),l=i[0],s=i[1];if(l&&s){var c=l.split("\n"),u=s.split("\n");for(i=o=0;o<c.length&&!c[o].includes("DetermineComponentFrameRoot");)o++;for(;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;if(o===c.length||i===u.length)for(o=c.length-1,i=u.length-1;1<=o&&0<=i&&c[o]!==u[i];)i--;for(;1<=o&&0<=i;o--,i--)if(c[o]!==u[i]){if(1!==o||1!==i)do{if(o--,0>--i||c[o]!==u[i]){var d="\n"+c[o].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&nf.set(e,d),d}}while(1<=o&&0<=i);break}}}finally{tf=!1,Zu.H=r,function(){if(0===--Zd){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ju({},e,{value:xu}),info:ju({},e,{value:Su}),warn:ju({},e,{value:Cu}),error:ju({},e,{value:Eu}),group:ju({},e,{value:Tu}),groupCollapsed:ju({},e,{value:_u}),groupEnd:ju({},e,{value:Nu})})}0>Zd&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=n}return c=(c=e?e.displayName||e.name:"")?Pe(c):"","function"==typeof e&&nf.set(e,c),c}function Re(e){var t=Error.prepareStackTrace;return Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith("Error: react-stack-top-frame\n")&&(e=e.slice(29)),-1!==(t=e.indexOf("\n"))&&(e=e.slice(t+1)),-1!==(t=e.indexOf("react_stack_bottom_frame"))&&(t=e.lastIndexOf("\n",t)),-1===t?"":e=e.slice(0,t)}function je(e){switch(e.tag){case 26:case 27:case 5:return Pe(e.type);case 16:return Pe("Lazy");case 13:return Pe("Suspense");case 19:return Pe("SuspenseList");case 0:case 15:return ze(e.type,!1);case 11:return ze(e.type.render,!1);case 1:return ze(e.type,!0);case 31:return Pe("Activity");default:return""}}function Ae(e){try{var t="";do{t+=je(e);var n=e._debugInfo;if(n)for(var r=n.length-1;0<=r;r--){var a=n[r];if("string"==typeof a.name){var o=t,i=a.env;t=o+Pe(a.name+(i?" ["+i+"]":""))}}e=e.return}while(e);return t}catch(l){return"\nError generating stack: "+l.message+"\n"+l.stack}}function Ie(e){return(e=e?e.displayName||e.name:"")?Pe(e):""}function Le(){if(null===rf)return null;var e=rf._debugOwner;return null!=e?_(e):null}function Me(){if(null===rf)return"";var e=rf;try{var t="";switch(6===e.tag&&(e=e.return),e.tag){case 26:case 27:case 5:t+=Pe(e.type);break;case 13:t+=Pe("Suspense");break;case 19:t+=Pe("SuspenseList");break;case 31:t+=Pe("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||""!==t||(t+=Ie(e.type));break;case 11:e._debugOwner||""!==t||(t+=Ie(e.type.render))}for(;e;)if("number"==typeof e.tag){var n=e;e=n._debugOwner;var r=n._debugStack;e&&r&&("string"!=typeof r&&(n._debugStack=r=Re(r)),""!==r&&(t+="\n"+r))}else{if(null==e.debugStack)break;var a=e.debugStack;(e=e.owner)&&a&&(t+="\n"+Re(a))}var o=t}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return o}function De(e,t,n,r,a,o,i){var l=rf;$e(e);try{return null!==e&&e._debugTask?e._debugTask.run(t.bind(null,n,r,a,o,i)):t(n,r,a,o,i)}finally{$e(l)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function $e(e){Zu.getCurrentStack=null===e?null:Me,af=!1,rf=e}function Oe(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return W(e),e;default:return""}}function Fe(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Ue(e){e._valueTracker||(e._valueTracker=function(e){var t=Fe(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);W(e[t]);var r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){W(e),r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){W(e),r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function He(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Fe(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function We(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Be(e){return e.replace(of,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Ve(e,t){void 0===t.checked||void 0===t.defaultChecked||sf||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Le()||"A component",t.type),sf=!0),void 0===t.value||void 0===t.defaultValue||lf||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Le()||"A component",t.type),lf=!0)}function qe(e,t,n,r,a,o,i,l){e.name="",null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i?(U(i,"type"),e.type=i):e.removeAttribute("type"),null!=t?"number"===i?(0===t&&""===e.value||e.value!=t)&&(e.value=""+Oe(t)):e.value!==""+Oe(t)&&(e.value=""+Oe(t)):"submit"!==i&&"reset"!==i||e.removeAttribute("value"),null!=t?Ke(e,i,Oe(t)):null!=n?Ke(e,i,Oe(n)):null!=r&&e.removeAttribute("value"),null==a&&null!=o&&(e.defaultChecked=!!o),null!=a&&(e.checked=a&&"function"!=typeof a&&"symbol"!=typeof a),null!=l&&"function"!=typeof l&&"symbol"!=typeof l&&"boolean"!=typeof l?(U(l,"name"),e.name=""+Oe(l)):e.removeAttribute("name")}function Qe(e,t,n,r,a,o,i,l){if(null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(U(o,"type"),e.type=o),null!=t||null!=n){if(("submit"===o||"reset"===o)&&null==t)return;n=null!=n?""+Oe(n):"",t=null!=t?""+Oe(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:a)&&"symbol"!=typeof r&&!!r,e.checked=l?e.checked:!!r,e.defaultChecked=!!r,null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(U(i,"name"),e.name=i)}function Ke(e,t,n){"number"===t&&We(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ye(e,t){null==t.value&&("object"==typeof t.children&&null!==t.children?zu.Children.forEach(t.children,function(e){null==e||"string"==typeof e||"number"==typeof e||"bigint"==typeof e||uf||(uf=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):null==t.dangerouslySetInnerHTML||df||(df=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),null==t.selected||cf||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),cf=!0)}function Ge(){var e=Le();return e?"\n\nCheck the render method of `"+e+"`.":""}function Xe(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Oe(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function Ze(e,t){for(e=0;e<pf.length;e++){var n=pf[e];if(null!=t[n]){var r=Xu(t[n]);t.multiple&&!r?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,Ge()):!t.multiple&&r&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,Ge())}}void 0===t.value||void 0===t.defaultValue||ff||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),ff=!0)}function Je(e,t){void 0===t.value||void 0===t.defaultValue||mf||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",Le()||"A component"),mf=!0),null!=t.children&&null==t.value&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function et(e,t,n){null==t||((t=""+Oe(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+Oe(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function tt(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Xu(r)){if(1<r.length)throw Error("<textarea> can only have at most one child.");r=r[0]}n=r}null==n&&(n=""),t=n}n=Oe(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r)}function nt(e,t){return void 0===e.serverProps&&0===e.serverTail.length&&1===e.children.length&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?nt(e.children[0],t):e}function rt(e){return" "+" ".repeat(e)}function at(e){return"+ "+" ".repeat(e)}function ot(e){return"- "+" ".repeat(e)}function it(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:case 1:return(e=e.type).displayName||e.name||null;case 11:return(e=e.type.render).displayName||e.name||null;default:return null}}function lt(e,t){return hf.test(e)?(e=JSON.stringify(e)).length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}":e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function st(e,t,n){var r=120-2*n;if(null===t)return at(n)+lt(e,r)+"\n";if("string"==typeof t){for(var a=0;a<t.length&&a<e.length&&t.charCodeAt(a)===e.charCodeAt(a);a++);return a>r-8&&10<a&&(e="..."+e.slice(a-8),t="..."+t.slice(a-8)),at(n)+lt(e,r)+"\n"+ot(n)+lt(t,r)+"\n"}return rt(n)+lt(e,r)+"\n"}function ct(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(e,t){return t})}function ut(e,t){switch(typeof e){case"string":return(e=JSON.stringify(e)).length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(null===e)return"null";if(Xu(e))return"[...]";if(e.$$typeof===Iu)return(t=T(e.type))?"<"+t+">":"<...>";var n=ct(e);if("Object"===n){for(var r in n="",t-=2,e)if(e.hasOwnProperty(r)){var a=JSON.stringify(r);if(a!=='"'+r+'"'&&(r=a),t-=r.length-2,0>(t-=(a=ut(e[r],15>t?t:15)).length)){n+=""===n?"...":", ...";break}n+=(""===n?"":",")+r+":"+a}return"{"+n+"}"}return n;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function dt(e,t){return"string"!=typeof e||hf.test(e)?"{"+ut(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function ft(e,t,n){var r,a=120-n.length-e.length,o=[];for(r in t)if(t.hasOwnProperty(r)&&"children"!==r){var i=dt(t[r],120-n.length-r.length-1);a-=r.length+i.length+2,o.push(r+"="+i)}return 0===o.length?n+"<"+e+">\n":0<a?n+"<"+e+" "+o.join(" ")+">\n":n+"<"+e+"\n"+n+" "+o.join("\n"+n+" ")+"\n"+n+">\n"}function pt(e,t,n){var r,a="",o=ju({},t);for(r in e)if(e.hasOwnProperty(r)){delete o[r];var i=120-2*n-r.length-2,l=ut(e[r],i);t.hasOwnProperty(r)?(i=ut(t[r],i),a+=at(n)+r+": "+l+"\n",a+=ot(n)+r+": "+i+"\n"):a+=at(n)+r+": "+l+"\n"}for(var s in o)o.hasOwnProperty(s)&&(e=ut(o[s],120-2*n-s.length-2),a+=ot(n)+s+": "+e+"\n");return a}function mt(e,t){var n=it(e);if(null===n){for(n="",e=e.child;e;)n+=mt(e,t),e=e.sibling;return n}return rt(t)+"<"+n+">\n"}function ht(e,t){var n=nt(e,t);if(n!==e&&(1!==e.children.length||e.children[0]!==n))return rt(t)+"...\n"+ht(n,t+1);n="";var r=e.fiber._debugInfo;if(r)for(var a=0;a<r.length;a++){var o=r[a].name;"string"==typeof o&&(n+=rt(t)+"<"+o+">\n",t++)}if(r="",a=e.fiber.pendingProps,6===e.fiber.tag)r=st(a,e.serverProps,t),t++;else if(null!==(o=it(e.fiber)))if(void 0===e.serverProps){var i=120-2*(r=t)-o.length-2,l="";for(c in a)if(a.hasOwnProperty(c)&&"children"!==c){var s=dt(a[c],15);if(0>(i-=c.length+s.length+2)){l+=" ...";break}l+=" "+c+"="+s}r=rt(r)+"<"+o+l+">\n",t++}else null===e.serverProps?(r=ft(o,a,at(t)),t++):"string"==typeof e.serverProps?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(r=function(e,t,n,r){var a="",o=new Map;for(c in n)n.hasOwnProperty(c)&&o.set(c.toLowerCase(),c);if(1===o.size&&o.has("children"))a+=ft(e,t,rt(r));else{for(var i in t)if(t.hasOwnProperty(i)&&"children"!==i){var l=120-2*(r+1)-i.length-1,s=o.get(i.toLowerCase());if(void 0!==s){o.delete(i.toLowerCase());var c=t[i];s=n[s];var u=dt(c,l);l=dt(s,l),"object"==typeof c&&null!==c&&"object"==typeof s&&null!==s&&"Object"===ct(c)&&"Object"===ct(s)&&(2<Object.keys(c).length||2<Object.keys(s).length||-1<u.indexOf("...")||-1<l.indexOf("..."))?a+=rt(r+1)+i+"={{\n"+pt(c,s,r+2)+rt(r+1)+"}}\n":(a+=at(r+1)+i+"="+u+"\n",a+=ot(r+1)+i+"="+l+"\n")}else a+=rt(r+1)+i+"="+dt(t[i],l)+"\n"}o.forEach(function(e){if("children"!==e){var t=120-2*(r+1)-e.length-1;a+=ot(r+1)+e+"="+dt(n[e],t)+"\n"}}),a=""===a?rt(r)+"<"+e+">\n":rt(r)+"<"+e+"\n"+a+rt(r)+">\n"}return e=n.children,t=t.children,"string"==typeof e||"number"==typeof e||"bigint"==typeof e?(o="","string"!=typeof t&&"number"!=typeof t&&"bigint"!=typeof t||(o=""+t),a+=st(o,""+e,r+1)):"string"!=typeof t&&"number"!=typeof t&&"bigint"!=typeof t||(a=null==e?a+st(""+t,null,r+1):a+st(""+t,void 0,r+1)),a}(o,a,e.serverProps,t),t++);var c="";for(a=e.fiber.child,o=0;a&&o<e.children.length;)(i=e.children[o]).fiber===a?(c+=ht(i,t),o++):c+=mt(a,t),a=a.sibling;for(a&&0<e.children.length&&(c+=rt(t)+"...\n"),a=e.serverTail,null===e.serverProps&&t--,e=0;e<a.length;e++)c="string"==typeof(o=a[e])?c+(ot(t)+lt(o,120-2*t)+"\n"):c+ft(o.type,o.props,ot(t));return n+r+c}function gt(e){try{return"\n\n"+ht(e,0)}catch(t){return""}}function bt(e,t,n){for(var r=t,a=null,o=0;r;)r===e&&(o=0),a={fiber:r,children:null!==a?[a]:[],serverProps:r===t?n:r===e?null:void 0,serverTail:[],distanceFromLeaf:o},o++,r=r.return;return null!==a?gt(a).replaceAll(/^[+-]/gm,">"):""}function yt(e,t){var n=ju({},e||wf),r={tag:t};return-1!==bf.indexOf(t)&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),-1!==yf.indexOf(t)&&(n.pTagInButtonScope=null),-1!==gf.indexOf(t)&&"address"!==t&&"div"!==t&&"p"!==t&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=r,"form"===t&&(n.formTag=r),"a"===t&&(n.aTagInScope=r),"button"===t&&(n.buttonTagInScope=r),"nobr"===t&&(n.nobrTagInScope=r),"p"===t&&(n.pTagInButtonScope=r),"li"===t&&(n.listItemTagAutoclosing=r),"dd"!==t&&"dt"!==t||(n.dlItemTagAutoclosing=r),"#document"===t||"html"===t?n.containerTagInScope=null:n.containerTagInScope||(n.containerTagInScope=r),null!==e||"#document"!==t&&"html"!==t&&"body"!==t?!0===n.implicitRootScope&&(n.implicitRootScope=!1):n.implicitRootScope=!0,n}function vt(e,t,n){switch(t){case"select":return"hr"===e||"option"===e||"optgroup"===e||"script"===e||"template"===e||"#text"===e;case"optgroup":return"option"===e||"#text"===e;case"option":return"#text"===e;case"tr":return"th"===e||"td"===e||"style"===e||"script"===e||"template"===e;case"tbody":case"thead":case"tfoot":return"tr"===e||"style"===e||"script"===e||"template"===e;case"colgroup":return"col"===e||"template"===e;case"table":return"caption"===e||"colgroup"===e||"tbody"===e||"tfoot"===e||"thead"===e||"style"===e||"script"===e||"template"===e;case"head":return"base"===e||"basefont"===e||"bgsound"===e||"link"===e||"meta"===e||"title"===e||"noscript"===e||"noframes"===e||"style"===e||"script"===e||"template"===e;case"html":if(n)break;return"head"===e||"body"===e||"frameset"===e;case"frameset":return"frame"===e;case"#document":if(!n)return"html"===e}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t;case"rp":case"rt":return-1===vf.indexOf(t);case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return null==t;case"head":return n||null===t;case"html":return n&&"#document"===t||null===t;case"body":return n&&("#document"===t||"html"===t)||null===t}return!0}function wt(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function kt(e,t){var n=(t=t||wf).current;if(t=(n=vt(e,n&&n.tag,t.implicitRootScope)?null:n)?null:function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}(e,t),!(t=n||t))return!0;var r=t.tag;if(t=String(!!n)+"|"+e+"|"+r,kf[t])return!1;kf[t]=!0;var a=(t=rf)?wt(t.return,r):null,o=null!==t&&null!==a?bt(a,t,null):"",i="<"+e+">";return n?(n="","table"===r&&"tr"===e&&(n+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error("In HTML, %s cannot be a child of <%s>.%s\nThis will cause a hydration error.%s",i,r,n,o)):console.error("In HTML, %s cannot be a descendant of <%s>.\nThis will cause a hydration error.%s",i,r,o),t&&(e=t.return,null===a||null===e||a===e&&e._debugOwner===t._debugOwner||De(a,function(){console.error("<%s> cannot contain a nested %s.\nSee this log for the ancestor stack trace.",r,i)})),!1}function xt(e,t,n){if(n||vt("#text",t,!1))return!0;if(kf[n="#text|"+t])return!1;kf[n]=!0;var r=(n=rf)?wt(n,t):null;return n=null!==n&&null!==r?bt(r,n,6!==n.tag?{children:null}:null):"",/\S/.test(e)?console.error("In HTML, text nodes cannot be a child of <%s>.\nThis will cause a hydration error.%s",t,n):console.error("In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.\nThis will cause a hydration error.%s",t,n),!1}function St(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Ct(e,t,n){var r=0===t.indexOf("--");r||(-1<t.indexOf("-")?Pf.hasOwnProperty(t)&&Pf[t]||(Pf[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,t.replace(Tf,"ms-").replace(_f,function(e,t){return t.toUpperCase()}))):Ef.test(t)?Pf.hasOwnProperty(t)&&Pf[t]||(Pf[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!Nf.test(n)||zf.hasOwnProperty(n)&&zf[n]||(zf[n]=!0,console.error('Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.',t,n.replace(Nf,""))),"number"==typeof n&&(isNaN(n)?Rf||(Rf=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(n)||jf||(jf=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Af.has(t)?"float"===t?e.cssFloat=n:(H(n,t),e[t]=(""+n).trim()):e[t]=n+"px"}function Et(e,t,n){if(null!=t&&"object"!=typeof t)throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,null!=n){if(t){var r={};if(n)for(var a in n)if(n.hasOwnProperty(a)&&!t.hasOwnProperty(a))for(var o=xf[a]||[a],i=0;i<o.length;i++)r[o[i]]=a;for(var l in t)if(t.hasOwnProperty(l)&&(!n||n[l]!==t[l]))for(a=xf[l]||[l],o=0;o<a.length;o++)r[a[o]]=l;for(var s in l={},t)for(a=xf[s]||[s],o=0;o<a.length;o++)l[a[o]]=s;for(var c in s={},r)if(a=r[c],(o=l[c])&&a!==o&&!s[i=a+","+o]){s[i]=!0,i=console;var u=t[a];i.error.call(i,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",null==u||"boolean"==typeof u||""===u?"Removing":"Updating",a,o)}}for(var d in n)!n.hasOwnProperty(d)||null!=t&&t.hasOwnProperty(d)||(0===d.indexOf("--")?e.setProperty(d,""):"float"===d?e.cssFloat="":e[d]="");for(var f in t)c=t[f],t.hasOwnProperty(f)&&n[f]!==c&&Ct(e,f,c)}else for(r in t)t.hasOwnProperty(r)&&Ct(e,r,t[r])}function Tt(e){if(-1===e.indexOf("-"))return!1;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}}function _t(e){return Mf.get(e)||e}function Nt(e,t){if(sd.call(Of,t)&&Of[t])return!0;if(Uf.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),null==(e=$f.hasOwnProperty(e)?e:null))return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Of[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Of[t]=!0}if(Ff.test(t)){if(e=t.toLowerCase(),null==(e=$f.hasOwnProperty(e)?e:null))return Of[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Of[t]=!0)}return!0}function Pt(e,t,n,r){if(sd.call(Wf,t)&&Wf[t])return!0;var a=t.toLowerCase();if("onfocusin"===a||"onfocusout"===a)return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Wf[t]=!0;if("function"==typeof n&&("form"===e&&"action"===t||"input"===e&&"formAction"===t||"button"===e&&"formAction"===t))return!0;if(null!=r){if(e=r.possibleRegistrationNames,r.registrationNameDependencies.hasOwnProperty(t))return!0;if(null!=(r=e.hasOwnProperty(a)?e[a]:null))return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,r),Wf[t]=!0;if(Bf.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Wf[t]=!0}else if(Bf.test(t))return Vf.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Wf[t]=!0;if(qf.test(t)||Qf.test(t))return!0;if("innerhtml"===a)return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Wf[t]=!0;if("aria"===a)return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Wf[t]=!0;if("is"===a&&null!=n&&"string"!=typeof n)return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),Wf[t]=!0;if("number"==typeof n&&isNaN(n))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Wf[t]=!0;if(Df.hasOwnProperty(a)){if((a=Df[a])!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,a),Wf[t]=!0}else if(t!==a)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,a),Wf[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"innerText":case"textContent":return!0}switch(typeof n){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return"data-"===(a=t.toLowerCase().slice(0,5))||"aria-"===a||(n?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',n,t,t,n,t,t,t),Wf[t]=!0)}case"function":case"symbol":return Wf[t]=!0,!1;case"string":if("false"===n||"true"===n){switch(t){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,"false"===n?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,n),Wf[t]=!0}}return!0}function zt(e){return Kf.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Rt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function jt(e){var t=ge(e);if(t&&(e=t.stateNode)){var n=e[$d]||null;e:switch(e=t.stateNode,t.type){case"input":if(qe(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(U(t,"name"),n=n.querySelectorAll('input[name="'+Be(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[$d]||null;if(!a)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");qe(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&He(r)}break e;case"textarea":et(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&Xe(e,!!n.multiple,t,!1)}}}function At(e,t,n){if(Zf)return e(t,n);Zf=!0;try{return e(t)}finally{if(Zf=!1,(null!==Gf||null!==Xf)&&(zl(),Gf&&(t=Gf,e=Xf,Xf=Gf=null,jt(t),e)))for(t=0;t<e.length;t++)jt(e[t])}}function It(e,t){var n=e.stateNode;if(null===n)return null;var r=n[$d]||null;if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof n+"` type.");return n}function Lt(){if(lp)return lp;var e,t,n=ip,r=n.length,a="value"in op?op.value:op.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return lp=a.slice(e,1<t?1-t:void 0)}function Mt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Dt(){return!0}function $t(){return!1}function Ot(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?Dt:$t,this.isPropagationStopped=$t,this}return ju(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Dt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Dt)},persist:function(){},isPersistent:Dt}),t}function Ft(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xp[e])&&!!t[e]}function Ut(){return Ft}function Ht(e,t){switch(e){case"keyup":return-1!==Pp.indexOf(t.keyCode);case"keydown":return t.keyCode!==zp;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wt(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}function Bt(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Op[e.type]:"textarea"===t}function Vt(e,t,n,r){Gf?Xf?Xf.push(r):Xf=[r]:Gf=r,0<(t=js(t,"onChange")).length&&(n=new cp("onChange","change",null,n,r),e.push({event:n,listeners:t}))}function qt(e){Es(e,0)}function Qt(e){if(He(be(e)))return e}function Kt(e,t){if("change"===e)return t}function Yt(){Fp&&(Fp.detachEvent("onpropertychange",Gt),Up=Fp=null)}function Gt(e){if("value"===e.propertyName&&Qt(Up)){var t=[];Vt(t,Up,e,Rt(e)),At(qt,t)}}function Xt(e,t,n){"focusin"===e?(Yt(),Up=n,(Fp=t).attachEvent("onpropertychange",Gt)):"focusout"===e&&Yt()}function Zt(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qt(Up)}function Jt(e,t){if("click"===e)return Qt(t)}function en(e,t){if("input"===e||"change"===e)return Qt(t)}function tn(e,t){if(Wp(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!sd.call(t,a)||!Wp(e[a],t[a]))return!1}return!0}function nn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rn(e,t){var n,r=nn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=nn(r)}}function an(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?an(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function on(e){for(var t=We((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=We((e=t.contentWindow).document)}return t}function ln(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function sn(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Kp||null==Vp||Vp!==We(r)||("selectionStart"in(r=Vp)&&ln(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Qp&&tn(Qp,r)||(Qp=r,0<(r=js(qp,"onSelect")).length&&(t=new cp("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Vp)))}function cn(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function un(e){if(Gp[e])return Gp[e];if(!Yp[e])return e;var t,n=Yp[e];for(t in n)if(n.hasOwnProperty(t)&&t in Xp)return Gp[e]=n[t];return e}function dn(e,t){om.set(e,t),we(t,[e])}function fn(e,t){if("object"==typeof e&&null!==e){var n=lm.get(e);return void 0!==n?n:(t={value:e,source:t,stack:Ae(t)},lm.set(e,t),t)}return{value:e,source:t,stack:Ae(t)}}function pn(){for(var e=dm,t=fm=dm=0;t<e;){var n=um[t];um[t++]=null;var r=um[t];um[t++]=null;var a=um[t];um[t++]=null;var o=um[t];if(um[t++]=null,null!==r&&null!==a){var i=r.pending;null===i?a.next=a:(a.next=i.next,i.next=a),r.pending=a}0!==o&&bn(n,a,o)}}function mn(e,t,n,r){um[dm++]=e,um[dm++]=t,um[dm++]=n,um[dm++]=r,fm|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function hn(e,t,n,r){return mn(e,t,n,r),yn(e)}function gn(e,t){return mn(e,null,null,t),yn(e)}function bn(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var a=!1,o=e.return;null!==o;)o.childLanes|=n,null!==(r=o.alternate)&&(r.childLanes|=n),22===o.tag&&(null===(e=o.stateNode)||e._visibility&sm||(a=!0)),e=o,o=o.return;return 3===e.tag?(o=e.stateNode,a&&null!==t&&(a=31-_d(n),null===(r=(e=o.hiddenUpdates)[a])?e[a]=[t]:r.push(t),t.lane=536870912|n),o):null}function yn(e){if(Ky>Qy)throw Jy=Ky=0,ev=Yy=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Jy>Zy&&(Jy=0,ev=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),null===e.alternate&&4098&e.flags&&us(e);for(var t=e,n=t.return;null!==n;)null===t.alternate&&!!(4098&t.flags)&&us(e),n=(t=n).return;return 3===t.tag?t.stateNode:null}function vn(e){if(null===mm)return e;var t=mm(e);return void 0===t?e:t.current}function wn(e){if(null===mm)return e;var t=mm(e);return void 0===t?null!=e&&"function"==typeof e.render&&(t=vn(e.render),e.render!==t)?(t={$$typeof:Hu,render:t},void 0!==e.displayName&&(t.displayName=e.displayName),t):e:t.current}function kn(e,t){if(null===mm)return!1;var n=e.elementType,r=!1,a="object"==typeof(t=t.type)&&null!==t?t.$$typeof:null;switch(e.tag){case 1:"function"==typeof t&&(r=!0);break;case 0:("function"==typeof t||a===qu)&&(r=!0);break;case 11:(a===Hu||a===qu)&&(r=!0);break;case 14:case 15:(a===Vu||a===qu)&&(r=!0);break;default:return!1}return!(!r||(e=mm(n),void 0===e||e!==mm(t)))}function xn(e){null!==mm&&"function"==typeof WeakSet&&(null===hm&&(hm=new WeakSet),hm.add(e))}function Sn(e,t,n){var r=e.alternate,a=e.child,o=e.sibling,i=e.tag,l=e.type,s=null;switch(i){case 0:case 15:case 1:s=l;break;case 11:s=l.render}if(null===mm)throw Error("Expected resolveFamily to be set during hot reload.");var c=!1;l=!1,null!==s&&(void 0!==(s=mm(s))&&(n.has(s)?l=!0:t.has(s)&&(1===i?l=!0:c=!0))),null!==hm&&(hm.has(e)||null!==r&&hm.has(r))&&(l=!0),l&&(e._debugNeedsRemount=!0),(l||c)&&(null!==(r=gn(e,2))&&El(r,e,2)),null===a||l||Sn(a,t,n),null!==o&&Sn(o,t,n)}function Cn(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.refCleanup=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,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,xm||"function"!=typeof Object.preventExtensions||Object.preventExtensions(this)}function En(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Tn(e,t){var n=e.alternate;switch(null===n?((n=m(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugOwner=e._debugOwner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=-0,n.actualStartTime=-1.1),n.flags=65011712&e.flags,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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugInfo=e._debugInfo,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 0:case 15:case 1:n.type=vn(e.type);break;case 11:n.type=wn(e.type)}return n}function _n(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration),e}function Nn(e,t,n,r,a,o){var i=0,l=e;if("function"==typeof e)En(e)&&(i=1),l=vn(l);else if("string"==typeof e)i=function(e,t,n){var r=!n.ancestorInfo.containerTagInScope;if(n.context===Hv||null!=t.itemProp)return!r||null==t.itemProp||"meta"!==e&&"title"!==e&&"style"!==e&&"link"!==e&&"script"!==e||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href){r&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError){if("stylesheet"===t.rel&&"string"==typeof t.precedence){e=t.href;var a=t.onError,o=t.disabled;n=[],t.onLoad&&n.push("`onLoad`"),a&&n.push("`onError`"),null!=o&&n.push("`disabled`"),a=function(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}(n,"and"),a+=1===n.length?" prop":" props",o=1===n.length?"an "+a:"the "+a,n.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,o,a)}r&&("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}return"stylesheet"!==t.rel||(e=t.precedence,t=t.disabled,"string"!=typeof e&&r&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),"string"==typeof e&&null==t);case"script":if(!(e=t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async)||t.onLoad||t.onError||!t.src||"string"!=typeof t.src){r&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":r&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}(e,n,i=L())?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case Qu:return(t=m(31,n,t,a)).elementType=Qu,t.lanes=o,t;case Mu:return zn(n.children,a,o,t);case Du:i=8,a|=vm,a|=wm;break;case $u:return r=a,"string"!=typeof(e=n).id&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),(t=m(12,e,t,r|ym)).elementType=$u,t.lanes=o,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Wu:return(t=m(13,n,t,a)).elementType=Wu,t.lanes=o,t;case Bu:return(t=m(19,n,t,a)).elementType=Bu,t.lanes=o,t;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Ou:case Uu:i=10;break e;case Fu:i=9;break e;case Hu:i=11,l=wn(l);break e;case Vu:i=14;break e;case qu:i=16,l=null;break e}l="",(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(l+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),null===e?n="null":Xu(e)?n="array":void 0!==e&&e.$$typeof===Iu?(n="<"+(T(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):n=typeof e,(i=r?_(r):null)&&(l+="\n\nCheck the render method of `"+i+"`."),i=29,n=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+n+"."+l),l=null}return(t=m(i,n,t,a)).elementType=e,t.type=l,t.lanes=o,t._debugOwner=r,t}function Pn(e,t,n){return(t=Nn(e.type,e.key,e.props,e._owner,t,n))._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function zn(e,t,n,r){return(e=m(7,e,r,t)).lanes=n,e}function Rn(e,t,n){return(e=m(6,e,null,t)).lanes=n,e}function jn(e,t,n){return(t=m(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function An(e,t){Dn(),Sm[Cm++]=Tm,Sm[Cm++]=Em,Em=e,Tm=t}function In(e,t,n){Dn(),_m[Nm++]=zm,_m[Nm++]=Rm,_m[Nm++]=Pm,Pm=e;var r=zm;e=Rm;var a=32-_d(r)-1;r&=~(1<<a),n+=1;var o=32-_d(t)+a;if(30<o){var i=a-a%5;o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,zm=1<<32-_d(t)+a|n<<a|r,Rm=o+e}else zm=1<<o|n<<a|r,Rm=e}function Ln(e){Dn(),null!==e.return&&(An(e,1),In(e,1,0))}function Mn(e){for(;e===Em;)Em=Sm[--Cm],Sm[Cm]=null,Tm=Sm[--Cm],Sm[Cm]=null;for(;e===Pm;)Pm=_m[--Nm],_m[Nm]=null,Rm=_m[--Nm],_m[Nm]=null,zm=_m[--Nm],_m[Nm]=null}function Dn(){Im||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function $n(e,t){if(null===e.return){if(null===Mm)Mm={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(Mm.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Mm.distanceFromLeaf>t&&(Mm.distanceFromLeaf=t)}return Mm}var n=$n(e.return,t+1).children;return 0<n.length&&n[n.length-1].fiber===e?((n=n[n.length-1]).distanceFromLeaf>t&&(n.distanceFromLeaf=t),n):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},n.push(t),t)}function On(e,t){Lm||((e=$n(e,0)).serverProps=null,null!==t&&(t=wc(t),e.serverTail.push(t)))}function Fn(e){var t="",n=Mm;throw null!==n&&(Mm=null,t=gt(n)),qn(fn(Error("Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\nhttps://react.dev/link/hydration-mismatch"+t),e)),Om}function Un(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Dd]=e,t[$d]=r,Ls(n,r),n){case"dialog":Ts("cancel",t),Ts("close",t);break;case"iframe":case"object":case"embed":Ts("load",t);break;case"video":case"audio":for(n=0;n<pv.length;n++)Ts(pv[n],t);break;case"source":Ts("error",t);break;case"img":case"image":case"link":Ts("error",t),Ts("load",t);break;case"details":Ts("toggle",t);break;case"input":xe("input",r),Ts("invalid",t),Ve(0,r),Qe(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),Ue(t);break;case"option":Ye(0,r);break;case"select":xe("select",r),Ts("invalid",t),Ze(t,r);break;case"textarea":xe("textarea",r),Ts("invalid",t),Je(0,r),tt(t,r.value,r.defaultValue,r.children),Ue(t)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||Fs(t.textContent,n)?(null!=r.popover&&(Ts("beforetoggle",t),Ts("toggle",t)),null!=r.onScroll&&Ts("scroll",t),null!=r.onScrollEnd&&Ts("scrollend",t),null!=r.onClick&&(t.onclick=Us),t=!0):t=!1,t||Fn(e)}function Hn(e){for(jm=e.return;jm;)switch(jm.tag){case 5:case 13:return void($m=!1);case 27:case 3:return void($m=!0);default:jm=jm.return}}function Wn(e){if(e!==jm)return!1;if(!Im)return Hn(e),Im=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||rc(e.type,e.memoizedProps)),t=!t),t&&Am){for(t=Am;t;){var r=$n(e,0),a=wc(t);r.serverTail.push(a),t="Suspense"===a.type?xc(t):vc(t.nextSibling)}Fn(e)}if(Hn(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Am=xc(e)}else 27===n?(n=Am,cc(e.type)?(e=Jv,Jv=null,Am=e):Am=n):Am=jm?vc(e.stateNode.nextSibling):null;return!0}function Bn(){Am=jm=null,Lm=Im=!1}function Vn(){var e=Dm;return null!==e&&(null===Sy?Sy=e:Sy.push.apply(Sy,e),Dm=null),e}function qn(e){null===Dm?Dm=[e]:Dm.push(e)}function Qn(){var e=Mm;if(null!==e){Mm=null;for(var t=gt(e);0<e.children.length;)e=e.children[0];De(e.fiber,function(){console.error("A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\n%s%s","https://react.dev/link/hydration-mismatch",t)})}}function Kn(){Km=Qm=null,Ym=!1}function Yn(e,t,n){R(Bm,t._currentValue,e),t._currentValue=n,R(Vm,t._currentRenderer,e),void 0!==t._currentRenderer&&null!==t._currentRenderer&&t._currentRenderer!==qm&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=qm}function Gn(e,t){e._currentValue=Bm.current;var n=Vm.current;z(Vm,t),e._currentRenderer=n,z(Bm,t)}function Xn(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}e!==n&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Zn(e,t,n,r){var a=e.child;for(null!==a&&(a.return=e);null!==a;){var o=a.dependencies;if(null!==o){var i=a.child;o=o.firstContext;e:for(;null!==o;){var l=o;o=a;for(var s=0;s<t.length;s++)if(l.context===t[s]){o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),Xn(o.return,n,e),r||(i=null);break e}o=l.next}}else if(18===a.tag){if(null===(i=a.return))throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");i.lanes|=n,null!==(o=i.alternate)&&(o.lanes|=n),Xn(i,n,e),i=null}else i=a.child;if(null!==i)i.return=a;else for(i=a;null!==i;){if(i===e){i=null;break}if(null!==(a=i.sibling)){a.return=i.return,i=a;break}i=i.return}a=i}}function Jn(e,t,n,r){e=null;for(var a=t,o=!1;null!==a;){if(!o)if(524288&a.flags)o=!0;else if(262144&a.flags)break;if(10===a.tag){var i=a.alternate;if(null===i)throw Error("Should have a current fiber. This is a bug in React.");if(null!==(i=i.memoizedProps)){var l=a.type;Wp(a.pendingProps.value,i.value)||(null!==e?e.push(l):e=[l])}}else if(a===ld.current){if(null===(i=a.alternate))throw Error("Should have a current fiber. This is a bug in React.");i.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(null!==e?e.push(Sw):e=[Sw])}a=a.return}null!==e&&Zn(t,e,n,r),t.flags|=262144}function er(e){for(e=e.firstContext;null!==e;){if(!Wp(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function tr(e){Qm=e,Km=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function nr(e){return Ym&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),ar(Qm,e)}function rr(e,t){return null===Qm&&tr(e),ar(e,t)}function ar(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===Km){if(null===e)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Km=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Km=Km.next=t;return n}function or(){return{controller:new Gm,data:new Map,refCount:0}}function ir(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function lr(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),0===e.refCount&&Xm(Zm,function(){e.controller.abort()})}function sr(){var e=ah;return ah=0,e}function cr(e){var t=ah;return ah=e,t}function ur(e){var t=ah;return ah+=e,t}function dr(e){rh=eh(),0>e.actualStartTime&&(e.actualStartTime=rh)}function fr(e){if(0<=rh){var t=eh()-rh;e.actualDuration+=t,e.selfBaseDuration=t,rh=-1}}function pr(e){if(0<=rh){var t=eh()-rh;e.actualDuration+=t,rh=-1}}function mr(){if(0<=rh){var e=eh()-rh;rh=-1,ah+=e}}function hr(){rh=eh()}function gr(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function br(){if(0===--sh&&null!==lh){null!==uh&&(uh.status="fulfilled");var e=lh;lh=null,ch=0,uh=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function yr(){var e=fh.current;return null!==e?e:Xb.pooledCache}function vr(e,t){R(fh,null===t?fh.current:t.pool,e)}function wr(){var e=yr();return null===e?null:{parent:Jm._currentValue,pool:e}}function kr(e){return"fulfilled"===(e=e.status)||"rejected"===e}function xr(){}function Sr(e,t,n){null!==Zu.actQueue&&(Zu.didUsePromise=!0);var r=e.thenables;switch(void 0===(n=r[n])?r.push(t):n!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(xr,xr),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw Er(e=t.reason),e;default:if("string"==typeof t.status)t.then(xr,xr);else{if(null!==(e=Xb)&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw Er(e=t.reason),e}throw Nh=t,Ph=!0,Ch}}function Cr(){if(null===Nh)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Nh;return Nh=null,Ph=!1,e}function Er(e){if(e===Ch||e===Th)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Tr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _r(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Nr(e){return{lane:e,tag:Lh,payload:null,callback:null,next:null}}function Pr(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,Uh===r&&!Fh){var a=N(e);console.error("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.\n\nPlease update the following component: %s",a),Fh=!0}return(Gb&Ub)!==Fb?(null===(a=r.pending)?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=yn(e),bn(e,null,n),t):(mn(e,r,t,n),yn(e))}function zr(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,se(e,n)}}function Rr(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function jr(){if(Hh){if(null!==uh)throw uh}}function Ar(e,t,n,r){Hh=!1;var a=e.updateQueue;Oh=!1,Uh=a.shared;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,l=a.shared.pending;if(null!==l){a.shared.pending=null;var s=l,c=s.next;s.next=null,null===i?o=c:i.next=c,i=s;var u=e.alternate;null!==u&&((l=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s))}if(null!==o){var d=a.baseState;for(i=0,u=c=s=null,l=o;;){var f=-536870913&l.lane,p=f!==l.lane;if(p?(Jb&f)===f:(r&f)===f){0!==f&&f===ch&&(Hh=!0),null!==u&&(u=u.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{f=e;var m=l,h=t,g=n;switch(m.tag){case Mh:if("function"==typeof(m=m.payload)){Ym=!0;var b=m.call(g,d,h);if(f.mode&vm){B(!0);try{m.call(g,d,h)}finally{B(!1)}}Ym=!1,d=b;break e}d=m;break e;case $h:f.flags=-65537&f.flags|128;case Lh:if("function"==typeof(b=m.payload)){if(Ym=!0,m=b.call(g,d,h),f.mode&vm){B(!0);try{b.call(g,d,h)}finally{B(!1)}}Ym=!1}else m=b;if(null==m)break e;d=ju({},d,m);break e;case Dh:Oh=!0}}null!==(f=l.callback)&&(e.flags|=64,p&&(e.flags|=8192),null===(p=a.callbacks)?a.callbacks=[f]:p.push(f))}else p={lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=p,s=d):u=u.next=p,i|=f;if(null===(l=l.next)){if(null===(l=a.shared.pending))break;l=(p=l).next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}null===u&&(s=d),a.baseState=s,a.firstBaseUpdate=c,a.lastBaseUpdate=u,null===o&&(a.shared.lanes=0),by|=i,e.lanes=i,e.memoizedState=d}Uh=null}function Ir(e,t){if("function"!=typeof e)throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function Lr(e,t){var n=e.shared.hiddenCallbacks;if(null!==n)for(e.shared.hiddenCallbacks=null,e=0;e<n.length;e++)Ir(n[e],t)}function Mr(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Ir(n[e],t)}function Dr(e,t){var n=hy;R(Bh,n,e),R(Wh,t,e),hy=n|t.baseLanes}function $r(e){R(Bh,hy,e),R(Wh,Wh.current,e)}function Or(e){hy=Bh.current,z(Wh,e),z(Bh,e)}function Fr(){var e=lg;null===sg?sg=[e]:sg.push(e)}function Ur(){var e=lg;if(null!==sg&&(cg++,sg[cg]!==e)){var t=N(Gh);if(!Vh.has(t)&&(Vh.add(t),null!==sg)){for(var n="",r=0;r<=cg;r++){var a=sg[r],o=r===cg?e:a;for(a=r+1+". "+a;30>a.length;)a+=" ";n+=a+=o+"\n"}console.error("React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks\n\n Previous render Next render\n ------------------------------------------------------\n%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",t,n)}}}function Hr(e){null==e||Xu(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",lg,typeof e)}function Wr(){var e=N(Gh);Kh.has(e)||(Kh.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function Br(){throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.")}function Vr(e,t){if(ug)return!1;if(null===t)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",lg),!1;e.length!==t.length&&console.error("The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s",lg,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!Wp(e[n],t[n]))return!1;return!0}function qr(e,t,n,r,a,o){Yh=o,Gh=t,sg=null!==e?e._debugHookTypes:null,cg=-1,ug=null!==e&&e.type!==t.type,"[object AsyncFunction]"!==Object.prototype.toString.call(n)&&"[object AsyncGeneratorFunction]"!==Object.prototype.toString.call(n)||(o=N(Gh),Qh.has(o)||(Qh.add(o),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",null===o?"An unknown Component":"<"+o+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,Zu.H=null!==e&&null!==e.memoizedState?mg:null!==sg?pg:fg,tg=o=(t.mode&vm)!==gm;var i=kg(n,r,a);if(tg=!1,eg&&(i=Kr(t,n,r,a)),o){B(!0);try{i=Kr(t,n,r,a)}finally{B(!1)}}return Qr(e,t),i}function Qr(e,t){t._debugHookTypes=sg,null===t.dependencies?null!==ag&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:ag}):t.dependencies._debugThenableState=ag,Zu.H=dg;var n=null!==Xh&&null!==Xh.next;if(Yh=0,sg=lg=Zh=Xh=Gh=null,cg=-1,null!==e&&(65011712&e.flags)!=(65011712&t.flags)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Jh=!1,rg=0,ag=null,n)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");null===e||mb||null!==(e=e.dependencies)&&er(e)&&(mb=!0),Ph?(Ph=!1,e=!0):e=!1,e&&(t=N(t)||"Unknown",qh.has(t)||Qh.has(t)||(qh.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function Kr(e,t,n,r){Gh=e;var a=0;do{if(eg&&(ag=null),rg=0,eg=!1,a>=ig)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(a+=1,ug=!1,Zh=Xh=null,null!=e.updateQueue){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,null!=o.memoCache&&(o.memoCache.index=0)}cg=-1,Zu.H=hg,o=kg(t,n,r)}while(eg);return o}function Yr(){var e=Zu.H,t=e.useState()[0];return t="function"==typeof t.then?ta(t):t,e=e.useState()[0],(null!==Xh?Xh.memoizedState:null)!==e&&(Gh.flags|=1024),t}function Gr(){var e=0!==ng;return ng=0,e}function Xr(e,t,n){t.updateQueue=e.updateQueue,t.flags=(t.mode&wm)!==gm?-402655237&t.flags:-2053&t.flags,e.lanes&=~n}function Zr(e){if(Jh){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Jh=!1}Yh=0,sg=Zh=Xh=Gh=null,cg=-1,lg=null,eg=!1,rg=ng=0,ag=null}function Jr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Zh?Gh.memoizedState=Zh=e:Zh=Zh.next=e,Zh}function ea(){if(null===Xh){var e=Gh.alternate;e=null!==e?e.memoizedState:null}else e=Xh.next;var t=null===Zh?Gh.memoizedState:Zh.next;if(null!==t)Zh=t,Xh=e;else{if(null===e){if(null===Gh.alternate)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}e={memoizedState:(Xh=e).memoizedState,baseState:Xh.baseState,baseQueue:Xh.baseQueue,queue:Xh.queue,next:null},null===Zh?Gh.memoizedState=Zh=e:Zh=Zh.next=e}return Zh}function ta(e){var t=rg;return rg+=1,null===ag&&(ag={didWarnAboutUncachedPromise:!1,thenables:[]}),e=Sr(ag,e,t),t=Gh,null===(null===Zh?t.memoizedState:Zh.next)&&(t=t.alternate,Zu.H=null!==t&&null!==t.memoizedState?mg:fg),e}function na(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return ta(e);if(e.$$typeof===Uu)return nr(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function ra(e){var t=null,n=Gh.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Gh.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Gh.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index])||ug)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=Ku;else n.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",n.length,e);return t.index++,n}function aa(e,t){return"function"==typeof t?t(e):t}function oa(e,t,n){var r=Jr();if(void 0!==n){var a=n(t);if(tg){B(!0);try{n(t)}finally{B(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=co.bind(null,Gh,e),[r.memoizedState,e]}function ia(e){return la(ea(),Xh,e)}function la(e,t,n){var r=e.queue;if(null===r)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(null!==o){if(null!==a){var i=a.next;a.next=o.next,o.next=i}t.baseQueue!==a&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=a=o,r.pending=null}if(o=e.baseState,null===a)e.memoizedState=o;else{var l=i=null,s=null,c=t=a.next,u=!1;do{var d=-536870913&c.lane;if(d!==c.lane?(Jb&d)===d:(Yh&d)===d){var f=c.revertLane;if(0===f)null!==s&&(s=s.next={lane:0,revertLane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),d===ch&&(u=!0);else{if((Yh&f)===f){c=c.next,f===ch&&(u=!0);continue}d={lane:0,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===s?(l=s=d,i=o):s=s.next=d,Gh.lanes|=f,by|=f}d=c.action,tg&&n(o,d),o=c.hasEagerState?c.eagerState:n(o,d)}else f={lane:d,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===s?(l=s=f,i=o):s=s.next=f,Gh.lanes|=d,by|=d;c=c.next}while(null!==c&&c!==t);if(null===s?i=o:s.next=l,!Wp(o,e.memoizedState)&&(mb=!0,u&&null!==(n=uh)))throw n;e.memoizedState=o,e.baseState=i,e.baseQueue=s,r.lastRenderedState=o}return null===a&&(r.lanes=0),[e.memoizedState,r.dispatch]}function sa(e){var t=ea(),n=t.queue;if(null===n)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(null!==a){n.pending=null;var i=a=a.next;do{o=e(o,i.action),i=i.next}while(i!==a);Wp(o,t.memoizedState)||(mb=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ca(e,t,n){var r=Gh,a=Jr();if(Im){if(void 0===n)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var o=n();Sh||o===n()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Sh=!0)}else{if(o=t(),Sh||(n=t(),Wp(o,n)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Sh=!0)),null===Xb)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");124&Jb||da(r,t,o)}return a.memoizedState=o,n={value:o,getSnapshot:t},a.queue=n,$a(pa.bind(null,r,n,e),[e]),r.flags|=2048,Ia(Rh|Ih,{destroy:void 0,resource:void 0},fa.bind(null,r,n,o,t),null),o}function ua(e,t,n){var r=Gh,a=ea(),o=Im;if(o){if(void 0===n)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");n=n()}else if(n=t(),!Sh){var i=t();Wp(n,i)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Sh=!0)}(i=!Wp((Xh||a).memoizedState,n))&&(a.memoizedState=n,mb=!0),a=a.queue;var l=pa.bind(null,r,a,e);if(Da(2048,Ih,l,[e]),a.getSnapshot!==t||i||null!==Zh&&Zh.memoizedState.tag&Rh){if(r.flags|=2048,Ia(Rh|Ih,{destroy:void 0,resource:void 0},fa.bind(null,r,a,n,t),null),null===Xb)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");o||124&Yh||da(r,t,n)}return n}function da(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Gh.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Gh.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function fa(e,t,n,r){t.value=n,t.getSnapshot=r,ma(t)&&ha(e)}function pa(e,t,n){return n(function(){ma(t)&&ha(e)})}function ma(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Wp(e,n)}catch(r){return!0}}function ha(e){var t=gn(e,2);null!==t&&El(t,e,2)}function ga(e){var t=Jr();if("function"==typeof e){var n=e;if(e=n(),tg){B(!0);try{n()}finally{B(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:e},t}function ba(e){var t=(e=ga(e)).queue,n=uo.bind(null,Gh,t);return t.dispatch=n,[e.memoizedState,n]}function ya(e){var t=Jr();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=po.bind(null,Gh,!0,n),n.dispatch=t,[e,t]}function va(e,t){return wa(ea(),Xh,e,t)}function wa(e,t,n,r){return e.baseState=n,la(e,Xh,"function"==typeof r?r:aa)}function ka(e,t){var n=ea();return null!==Xh?wa(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])}function xa(e,t,n,r,a){if(mo(e))throw Error("Cannot update form state while rendering.");if(null!==(e=t.action)){var o={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};null!==Zu.T?n(!0):o.isTransition=!1,r(o),null===(n=t.pending)?(o.next=t.pending=o,Sa(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Sa(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var o=Zu.T,i={};Zu.T=i,Zu.T._updatedFibers=new Set;try{var l=n(a,r),s=Zu.S;null!==s&&s(i,l),Ca(e,t,l)}catch(c){Ta(e,t,c)}finally{Zu.T=o,null===o&&i._updatedFibers&&(e=i._updatedFibers.size,i._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{Ca(e,t,i=n(a,r))}catch(u){Ta(e,t,u)}}function Ca(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?(n.then(function(n){Ea(e,t,n)},function(n){return Ta(e,t,n)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):Ea(e,t,n)}function Ea(e,t,n){t.status="fulfilled",t.value=n,_a(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Sa(e,n)))}function Ta(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,_a(t),t=t.next}while(t!==r)}e.action=null}function _a(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Na(e,t){return t}function Pa(e,t){if(Im){var n=Xb.formState;if(null!==n){e:{var r=Gh;if(Im){if(Am){t:{for(var a=Am,o=$m;8!==a.nodeType;){if(!o){a=null;break t}if(null===(a=vc(a.nextSibling))){a=null;break t}}a=(o=a.data)===Dv||o===$v?a:null}if(a){Am=vc(a.nextSibling),r=a.data===Dv;break e}}Fn(r)}r=!1}r&&(t=n[0])}}return(n=Jr()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Na,lastRenderedState:t},n.queue=r,n=uo.bind(null,Gh,r),r.dispatch=n,r=ga(!1),o=po.bind(null,Gh,!1,r.queue),a={state:t,dispatch:null,action:e,pending:null},(r=Jr()).queue=a,n=xa.bind(null,Gh,a,o,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function za(e){return Ra(ea(),Xh,e)}function Ra(e,t,n){if(t=la(e,t,Na)[0],e=ia(aa)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=ta(t)}catch(i){if(i===Ch)throw Th;throw i}else r=t;var a=(t=ea()).queue,o=a.dispatch;return n!==t.memoizedState&&(Gh.flags|=2048,Ia(Rh|Ih,{destroy:void 0,resource:void 0},ja.bind(null,a,n),null)),[r,o,e]}function ja(e,t){e.action=t}function Aa(e){var t=ea(),n=Xh;if(null!==n)return Ra(t,n,e);ea(),t=t.memoizedState;var r=(n=ea()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ia(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=Gh.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Gh.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function La(e){return e={current:e},Jr().memoizedState=e}function Ma(e,t,n,r){var a=Jr();r=void 0===r?null:r,Gh.flags|=e,a.memoizedState=Ia(Rh|t,{destroy:void 0,resource:void 0},n,r)}function Da(e,t,n,r){var a=ea();r=void 0===r?null:r;var o=a.memoizedState.inst;null!==Xh&&null!==r&&Vr(r,Xh.memoizedState.deps)?a.memoizedState=Ia(t,o,n,r):(Gh.flags|=e,a.memoizedState=Ia(Rh|t,o,n,r))}function $a(e,t){(Gh.mode&wm)!==gm&&(Gh.mode&km)===gm?Ma(276826112,Ih,e,t):Ma(8390656,Ih,e,t)}function Oa(e,t){var n=4194308;return(Gh.mode&wm)!==gm&&(n|=134217728),Ma(n,Ah,e,t)}function Fa(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function Ua(e,t,n){"function"!=typeof t&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null"),n=null!=n?n.concat([e]):null;var r=4194308;(Gh.mode&wm)!==gm&&(r|=134217728),Ma(r,Ah,Fa.bind(null,t,e),n)}function Ha(e,t,n){"function"!=typeof t&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null"),n=null!=n?n.concat([e]):null,Da(4,Ah,Fa.bind(null,t,e),n)}function Wa(e,t){return Jr().memoizedState=[e,void 0===t?null:t],e}function Ba(e,t){var n=ea();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&Vr(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Va(e,t){var n=Jr();t=void 0===t?null:t;var r=e();if(tg){B(!0);try{e()}finally{B(!1)}}return n.memoizedState=[r,t],r}function qa(e,t){var n=ea();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&Vr(t,r[1]))return r[0];if(r=e(),tg){B(!0);try{e()}finally{B(!1)}}return n.memoizedState=[r,t],r}function Qa(e,t){return Ga(Jr(),e,t)}function Ka(e,t){return Xa(ea(),Xh.memoizedState,e,t)}function Ya(e,t){var n=ea();return null===Xh?Ga(n,e,t):Xa(n,Xh.memoizedState,e,t)}function Ga(e,t,n){return void 0===n||1073741824&Yh?e.memoizedState=t:(e.memoizedState=n,e=Cl(),Gh.lanes|=e,by|=e,n)}function Xa(e,t,n,r){return Wp(n,t)?n:null!==Wh.current?(e=Ga(e,n,r),Wp(e,t)||(mb=!0),e):42&Yh?(e=Cl(),Gh.lanes|=e,by|=e,t):(mb=!0,e.memoizedState=n)}function Za(e,t,n,r,a){var o=Ju.p;Ju.p=0!==o&&o<Ad?o:Ad;var i,l,s,c=Zu.T,u={};Zu.T=u,po(e,!1,t,n),u._updatedFibers=new Set;try{var d=a(),f=Zu.S;if(null!==f&&f(u,d),null!==d&&"object"==typeof d&&"function"==typeof d.then)fo(e,t,(i=r,l=[],s={status:"pending",value:null,reason:null,then:function(e){l.push(e)}},d.then(function(){s.status="fulfilled",s.value=i;for(var e=0;e<l.length;e++)(0,l[e])(i)},function(e){for(s.status="rejected",s.reason=e,e=0;e<l.length;e++)(0,l[e])(void 0)}),s),Sl(e));else fo(e,t,r,Sl(e))}catch(p){fo(e,t,{then:function(){},status:"rejected",reason:p},Sl(e))}finally{Ju.p=o,Zu.T=c,null===c&&u._updatedFibers&&(e=u._updatedFibers.size,u._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function Ja(e,t,n,r){if(5!==e.tag)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var a=eo(e).queue;Za(e,a,t,xw,null===n?f:function(){return to(e),n(r)})}function eo(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:xw,baseState:xw,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:xw},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function to(e){null===Zu.T&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition."),fo(e,eo(e).next.queue,{},Sl(e))}function no(){var e=ga(!1);return e=Za.bind(null,Gh,e.queue,!0,!1),Jr().memoizedState=e,[!1,e]}function ro(){var e=ia(aa)[0],t=ea().memoizedState;return["boolean"==typeof e?e:ta(e),t]}function ao(){var e=sa(aa)[0],t=ea().memoizedState;return["boolean"==typeof e?e:ta(e),t]}function oo(){return nr(Sw)}function io(){var e=Jr(),t=Xb.identifierPrefix;if(Im){var n=Rm;t="«"+t+"R"+(n=(zm&~(1<<32-_d(zm)-1)).toString(32)+n),0<(n=ng++)&&(t+="H"+n.toString(32)),t+="»"}else t="«"+t+"r"+(n=og++).toString(32)+"»";return e.memoizedState=t}function lo(){return Jr().memoizedState=so.bind(null,Gh)}function so(e,t){for(var n=e.return;null!==n;){switch(n.tag){case 24:case 3:var r=Sl(n),a=Pr(n,e=Nr(r),r);return null!==a&&(El(a,n,r),zr(a,n,r)),n=or(),null!=t&&null!==a&&console.error("The seed argument is not enabled outside experimental channels."),void(e.payload={cache:n})}n=n.return}}function co(e,t,n){var r=arguments;"function"==typeof r[3]&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var a={lane:r=Sl(e),revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};mo(e)?ho(t,a):null!==(a=hn(e,t,a,r))&&(El(a,e,r),go(a,t,r)),X(e,r)}function uo(e,t,n){var r=arguments;"function"==typeof r[3]&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),fo(e,t,n,r=Sl(e)),X(e,r)}function fo(e,t,n,r){var a={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(mo(e))ho(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer)){var i=Zu.H;Zu.H=bg;try{var l=t.lastRenderedState,s=o(l,n);if(a.hasEagerState=!0,a.eagerState=s,Wp(s,l))return mn(e,t,a,0),null===Xb&&pn(),!1}catch(c){}finally{Zu.H=i}}if(null!==(n=hn(e,t,a,r)))return El(n,e,r),go(n,t,r),!0}return!1}function po(e,t,n,r){if(null===Zu.T&&0===ch&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),r={lane:2,revertLane:ks(),action:r,hasEagerState:!1,eagerState:null,next:null},mo(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else null!==(t=hn(e,n,r,2))&&El(t,e,2);X(e,2)}function mo(e){var t=e.alternate;return e===Gh||null!==t&&t===Gh}function ho(e,t){eg=Jh=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function go(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,se(e,n)}}function bo(e){var t=Fg;return null!=e&&(Fg=null===t?e:t.concat(e)),t}function yo(e,t,n){for(var r=Object.keys(e.props),a=0;a<r.length;a++){var o=r[a];if("children"!==o&&"key"!==o){null===t&&((t=Pn(e,n.mode,0))._debugInfo=Fg,t.return=n),De(t,function(e){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",e)},o);break}}}function vo(e){var t=Og;return Og+=1,null===$g&&($g={didWarnAboutUncachedPromise:!1,thenables:[]}),Sr($g,e,t)}function wo(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function ko(e,t){if(t.$$typeof===Au)throw Error('A React Element from an older version of React was rendered. This is not supported. It can happen if:\n- Multiple copies of the "react" package is used.\n- A library pre-bundled an old copy of "react" or "react/jsx-runtime".\n- A compiler tries to "inline" JSX instead of using the runtime.');throw e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+("[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}function xo(e,t){var n=N(e)||"Component";Wg[n]||(Wg[n]=!0,t=t.displayName||t.name||"Component",3===e.tag?console.error("Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\n root.render(%s)",t,t,t):console.error("Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\n <%s>{%s}</%s>",t,t,n,t,n))}function So(e,t){var n=N(e)||"Component";Bg[n]||(Bg[n]=!0,t=String(t),3===e.tag?console.error("Symbols are not valid as a React child.\n root.render(%s)",t):console.error("Symbols are not valid as a React child.\n <%s>%s</%s>",n,t,n))}function Co(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function a(e,t){return(e=Tn(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function i(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Rn(n,e.mode,r)).return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Fg,t):((t=a(t,n)).return=e,t._debugInfo=Fg,t)}function s(e,t,n,r){var o=n.type;return o===Mu?(yo(n,t=d(e,t,n.props.children,r,n.key),e),t):null!==t&&(t.elementType===o||kn(t,n)||"object"==typeof o&&null!==o&&o.$$typeof===qu&&Dg(o)===t.type)?(wo(t=a(t,n.props),n),t.return=e,t._debugOwner=n._owner,t._debugInfo=Fg,t):(wo(t=Pn(n,e.mode,r),n),t.return=e,t._debugInfo=Fg,t)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=jn(n,e.mode,r)).return=e,t._debugInfo=Fg,t):((t=a(t,n.children||[])).return=e,t._debugInfo=Fg,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=zn(n,e.mode,r,o)).return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Fg,t):((t=a(t,n)).return=e,t._debugInfo=Fg,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Rn(""+t,e.mode,n)).return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Fg,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Iu:return wo(n=Pn(t,e.mode,n),t),n.return=e,e=bo(t._debugInfo),n._debugInfo=Fg,Fg=e,n;case Lu:return(t=jn(t,e.mode,n)).return=e,t._debugInfo=Fg,t;case qu:var r=bo(t._debugInfo);return e=f(e,t=Dg(t),n),Fg=r,e}if(Xu(t)||E(t))return(n=zn(t,e.mode,n,null)).return=e,n._debugOwner=e,n._debugTask=e._debugTask,e=bo(t._debugInfo),n._debugInfo=Fg,Fg=e,n;if("function"==typeof t.then)return r=bo(t._debugInfo),e=f(e,vo(t),n),Fg=r,e;if(t.$$typeof===Uu)return f(e,rr(e,t),n);ko(e,t)}return"function"==typeof t&&xo(e,t),"symbol"==typeof t&&So(e,t),null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==a?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Iu:return n.key===a?(a=bo(n._debugInfo),e=s(e,t,n,r),Fg=a,e):null;case Lu:return n.key===a?u(e,t,n,r):null;case qu:return a=bo(n._debugInfo),e=p(e,t,n=Dg(n),r),Fg=a,e}if(Xu(n)||E(n))return null!==a?null:(a=bo(n._debugInfo),e=d(e,t,n,r,null),Fg=a,e);if("function"==typeof n.then)return a=bo(n._debugInfo),e=p(e,t,vo(n),r),Fg=a,e;if(n.$$typeof===Uu)return p(e,t,rr(e,n),r);ko(e,n)}return"function"==typeof n&&xo(e,n),"symbol"==typeof n&&So(e,n),null}function h(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return l(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Iu:return n=e.get(null===r.key?n:r.key)||null,e=bo(r._debugInfo),t=s(t,n,r,a),Fg=e,t;case Lu:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case qu:var o=bo(r._debugInfo);return t=h(e,t,n,r=Dg(r),a),Fg=o,t}if(Xu(r)||E(r))return n=e.get(n)||null,e=bo(r._debugInfo),t=d(t,n,r,a,null),Fg=e,t;if("function"==typeof r.then)return o=bo(r._debugInfo),t=h(e,t,n,vo(r),a),Fg=o,t;if(r.$$typeof===Uu)return h(e,t,n,rr(t,r),a);ko(t,r)}return"function"==typeof r&&xo(t,r),"symbol"==typeof r&&So(t,r),null}function g(e,t,n,r){if("object"!=typeof n||null===n)return r;switch(n.$$typeof){case Iu:case Lu:c(e,t,n);var a=n.key;if("string"!=typeof a)break;if(null===r){(r=new Set).add(a);break}if(!r.has(a)){r.add(a);break}De(t,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",a)});break;case qu:g(e,t,n=Dg(n),r)}return r}function b(l,s,c,u){if("object"==typeof c&&null!==c&&c.type===Mu&&null===c.key&&(yo(c,null,l),c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case Iu:var d=bo(c._debugInfo);e:{for(var m=c.key;null!==s;){if(s.key===m){if((m=c.type)===Mu){if(7===s.tag){n(l,s.sibling),(u=a(s,c.props.children)).return=l,u._debugOwner=c._owner,u._debugInfo=Fg,yo(c,u,l),l=u;break e}}else if(s.elementType===m||kn(s,c)||"object"==typeof m&&null!==m&&m.$$typeof===qu&&Dg(m)===s.type){n(l,s.sibling),wo(u=a(s,c.props),c),u.return=l,u._debugOwner=c._owner,u._debugInfo=Fg,l=u;break e}n(l,s);break}t(l,s),s=s.sibling}c.type===Mu?((u=zn(c.props.children,l.mode,u,c.key)).return=l,u._debugOwner=l,u._debugTask=l._debugTask,u._debugInfo=Fg,yo(c,u,l),l=u):(wo(u=Pn(c,l.mode,u),c),u.return=l,u._debugInfo=Fg,l=u)}return l=i(l),Fg=d,l;case Lu:e:{for(c=(d=c).key;null!==s;){if(s.key===c){if(4===s.tag&&s.stateNode.containerInfo===d.containerInfo&&s.stateNode.implementation===d.implementation){n(l,s.sibling),(u=a(s,d.children||[])).return=l,l=u;break e}n(l,s);break}t(l,s),s=s.sibling}(u=jn(d,l.mode,u)).return=l,l=u}return i(l);case qu:return d=bo(c._debugInfo),l=b(l,s,c=Dg(c),u),Fg=d,l}if(Xu(c))return d=bo(c._debugInfo),l=function(a,i,l,s){for(var c=null,u=null,d=null,m=i,b=i=0,y=null;null!==m&&b<l.length;b++){m.index>b?(y=m,m=null):y=m.sibling;var v=p(a,m,l[b],s);if(null===v){null===m&&(m=y);break}c=g(a,v,l[b],c),e&&m&&null===v.alternate&&t(a,m),i=o(v,i,b),null===d?u=v:d.sibling=v,d=v,m=y}if(b===l.length)return n(a,m),Im&&An(a,b),u;if(null===m){for(;b<l.length;b++)null!==(m=f(a,l[b],s))&&(c=g(a,m,l[b],c),i=o(m,i,b),null===d?u=m:d.sibling=m,d=m);return Im&&An(a,b),u}for(m=r(m);b<l.length;b++)null!==(y=h(m,a,b,l[b],s))&&(c=g(a,y,l[b],c),e&&null!==y.alternate&&m.delete(null===y.key?b:y.key),i=o(y,i,b),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach(function(e){return t(a,e)}),Im&&An(a,b),u}(l,s,c,u),Fg=d,l;if(E(c)){if(d=bo(c._debugInfo),"function"!=typeof(m=E(c)))throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var y=m.call(c);return y===c?0===l.tag&&"[object GeneratorFunction]"===Object.prototype.toString.call(l.type)&&"[object Generator]"===Object.prototype.toString.call(y)||(Ug||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),Ug=!0):c.entries!==m||vg||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),vg=!0),l=function(a,i,l,s){if(null==l)throw Error("An iterable object provided no iterator.");for(var c=null,u=null,d=i,m=i=0,b=null,y=null,v=l.next();null!==d&&!v.done;m++,v=l.next()){d.index>m?(b=d,d=null):b=d.sibling;var w=p(a,d,v.value,s);if(null===w){null===d&&(d=b);break}y=g(a,w,v.value,y),e&&d&&null===w.alternate&&t(a,d),i=o(w,i,m),null===u?c=w:u.sibling=w,u=w,d=b}if(v.done)return n(a,d),Im&&An(a,m),c;if(null===d){for(;!v.done;m++,v=l.next())null!==(d=f(a,v.value,s))&&(y=g(a,d,v.value,y),i=o(d,i,m),null===u?c=d:u.sibling=d,u=d);return Im&&An(a,m),c}for(d=r(d);!v.done;m++,v=l.next())null!==(b=h(d,a,m,v.value,s))&&(y=g(a,b,v.value,y),e&&null!==b.alternate&&d.delete(null===b.key?m:b.key),i=o(b,i,m),null===u?c=b:u.sibling=b,u=b);return e&&d.forEach(function(e){return t(a,e)}),Im&&An(a,m),c}(l,s,y,u),Fg=d,l}if("function"==typeof c.then)return d=bo(c._debugInfo),l=b(l,s,vo(c),u),Fg=d,l;if(c.$$typeof===Uu)return b(l,s,rr(l,c),u);ko(l,c)}return"string"==typeof c&&""!==c||"number"==typeof c||"bigint"==typeof c?(d=""+c,null!==s&&6===s.tag?(n(l,s.sibling),(u=a(s,d)).return=l,l=u):(n(l,s),(u=Rn(d,l.mode,u)).return=l,u._debugOwner=l,u._debugTask=l._debugTask,u._debugInfo=Fg,l=u),i(l)):("function"==typeof c&&xo(l,c),"symbol"==typeof c&&So(l,c),n(l,s))}return function(e,t,n,r){var a=Fg;Fg=null;try{Og=0;var o=b(e,t,n,r);return $g=null,o}catch(c){if(c===Ch||c===Th)throw c;var i=m(29,c,null,e.mode);i.lanes=r,i.return=e;var l=i._debugInfo=Fg;if(i._debugOwner=e._debugOwner,i._debugTask=e._debugTask,null!=l)for(var s=l.length-1;0<=s;s--)if("string"==typeof l[s].stack){i._debugOwner=l[s],i._debugTask=l[s].debugTask;break}return i}finally{Fg=a}}}function Eo(e){var t=e.alternate;R(Xg,Xg.current&Yg,e),R(Qg,e,e),null===Kg&&(null===t||null!==Wh.current||null!==t.memoizedState)&&(Kg=e)}function To(e){if(22===e.tag){if(R(Xg,Xg.current,e),R(Qg,e,e),null===Kg){var t=e.alternate;null!==t&&null!==t.memoizedState&&(Kg=e)}}else _o(e)}function _o(e){R(Xg,Xg.current,e),R(Qg,Qg.current,e)}function No(e){z(Qg,e),Kg===e&&(Kg=null),z(Xg,e)}function Po(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===jv||yc(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function zo(e){if(null!==e&&"function"!=typeof e){var t=String(e);sb.has(t)||(sb.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Ro(e,t,n,r){var a=e.memoizedState,o=n(r,a);if(e.mode&vm){B(!0);try{o=n(r,a)}finally{B(!1)}}void 0===o&&(t=T(t)||"Component",ab.has(t)||(ab.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),a=null==o?a:ju({},a,o),e.memoizedState=a,0===e.lanes&&(e.updateQueue.baseState=a)}function jo(e,t,n,r,a,o,i){var l=e.stateNode;if("function"==typeof l.shouldComponentUpdate){if(n=l.shouldComponentUpdate(r,o,i),e.mode&vm){B(!0);try{n=l.shouldComponentUpdate(r,o,i)}finally{B(!1)}}return void 0===n&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",T(t)||"Component"),n}return!t.prototype||!t.prototype.isPureReactComponent||(!tn(n,r)||!tn(a,o))}function Ao(e,t,n,r){var a=t.state;"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==a&&(e=N(e)||"Component",Jg.has(e)||(Jg.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),cb.enqueueReplaceState(t,t.state,null))}function Io(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var a in n===t&&(n=ju({},n)),e)void 0===n[a]&&(n[a]=e[a]);return n}function Lo(e){ub(e),console.warn("%s\n\n%s\n",db?"An error occurred in the <"+db+"> component.":"An error occurred in one of your React components.","Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries.")}function Mo(e){var t=db?"The above error occurred in the <"+db+"> component.":"The above error occurred in one of your React components.",n="React will try to recreate this component tree from scratch using the error boundary you provided, "+(fb||"Anonymous")+".";if("object"==typeof e&&null!==e&&"string"==typeof e.environmentName){var r=e.environmentName;"string"==typeof(e=["%o\n\n%s\n\n%s\n",e,t,n].slice(0))[0]?e.splice(0,1,Cw+e[0],Ew,_w+r+_w,Tw):e.splice(0,0,Cw,Ew,_w+r+_w,Tw),e.unshift(console),(r=Nw.apply(console.error,e))()}else console.error("%o\n\n%s\n\n%s\n",e,t,n)}function Do(e){ub(e)}function $o(e,t){try{db=t.source?N(t.source):null,fb=null;var n=t.value;if(null!==Zu.actQueue)Zu.thrownErrors.push(n);else(0,e.onUncaughtError)(n,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Oo(e,t,n){try{db=n.source?N(n.source):null,fb=N(t),(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Fo(e,t,n){return(n=Nr(n)).tag=$h,n.payload={element:null},n.callback=function(){De(t.source,$o,e,t)},n}function Uo(e){return(e=Nr(e)).tag=$h,e}function Ho(e,t,n,r){var a=n.type.getDerivedStateFromError;if("function"==typeof a){var o=r.value;e.payload=function(){return a(o)},e.callback=function(){xn(n),De(r.source,Oo,t,n,r)}}var i=n.stateNode;null!==i&&"function"==typeof i.componentDidCatch&&(e.callback=function(){xn(n),De(r.source,Oo,t,n,r),"function"!=typeof a&&(null===zy?zy=new Set([this]):zy.add(this)),Pg(this,r),"function"==typeof a||!(2&n.lanes)&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",N(n)||"Unknown")})}function Wo(e,t,n,r){t.child=null===e?qg(t,null,n,r):Vg(t,e.child,n,r)}function Bo(e,t,n,r,a){n=n.render;var o=t.ref;if("ref"in r){var i={};for(var l in r)"ref"!==l&&(i[l]=r[l])}else i=r;return tr(t),Q(t),r=qr(e,t,n,i,o,a),l=Gr(),K(),null===e||mb?(Im&&l&&Ln(t),t.flags|=1,Wo(e,t,r,a),t.child):(Xr(e,t,a),di(e,t,a))}function Vo(e,t,n,r,a){if(null===e){var o=n.type;return"function"!=typeof o||En(o)||void 0!==o.defaultProps||null!==n.compare?((e=Nn(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(n=vn(o),t.tag=15,t.type=n,ei(t,o),qo(e,t,n,r,a))}if(o=e.child,!fi(e,a)){var i=o.memoizedProps;if((n=null!==(n=n.compare)?n:tn)(i,r)&&e.ref===t.ref)return di(e,t,a)}return t.flags|=1,(e=Tn(o,r)).ref=t.ref,e.return=t,t.child=e}function qo(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(tn(o,r)&&e.ref===t.ref&&t.type===e.type){if(mb=!1,t.pendingProps=r=o,!fi(e,a))return t.lanes=e.lanes,di(e,t,a);131072&e.flags&&(mb=!0)}}return Go(e,t,n,r,a)}function Qo(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(128&t.flags){if(r=null!==o?o.baseLanes|n:n,null!==e){for(a=t.child=e.child,o=0;null!==a;)o=o|a.lanes|a.childLanes,a=a.sibling;t.childLanes=o&~r}else t.childLanes=0,t.child=null;return Ko(e,t,r,n)}if(!(536870912&n))return t.lanes=t.childLanes=536870912,Ko(e,t,null!==o?o.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&vr(t,null!==o?o.cachePool:null),null!==o?Dr(t,o):$r(t),To(t)}else null!==o?(vr(t,o.cachePool),Dr(t,o),_o(t),t.memoizedState=null):(null!==e&&vr(t,null),$r(t),_o(t));return Wo(e,t,a,n),t.child}function Ko(e,t,n,r){var a=yr();return a=null===a?null:{parent:Jm._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},null!==e&&vr(t,null),$r(t),To(t),null!==e&&Jn(e,t,r,!0),null}function Yo(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");null!==e&&e.ref===n||(t.flags|=4194816)}}function Go(e,t,n,r,a){if(n.prototype&&"function"==typeof n.prototype.render){var o=T(n)||"Unknown";hb[o]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",o,o),hb[o]=!0)}return t.mode&vm&&ph.recordLegacyContextWarning(t,null),null===e&&(ei(t,t.type),n.contextTypes&&(o=T(n)||"Unknown",bb[o]||(bb[o]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",o)))),tr(t),Q(t),n=qr(e,t,n,r,void 0,a),r=Gr(),K(),null===e||mb?(Im&&r&&Ln(t),t.flags|=1,Wo(e,t,n,a),t.child):(Xr(e,t,a),di(e,t,a))}function Xo(e,t,n,r,a,o){return tr(t),Q(t),cg=-1,ug=null!==e&&e.type!==t.type,t.updateQueue=null,n=Kr(t,r,n,a),Qr(e,t),r=Gr(),K(),null===e||mb?(Im&&r&&Ln(t),t.flags|=1,Wo(e,t,n,o),t.child):(Xr(e,t,o),di(e,t,o))}function Zo(e,t,n,r,a){switch(s(t)){case!1:var o=t.stateNode,i=new t.type(t.memoizedProps,o.context).state;o.updater.enqueueSetState(o,i,null);break;case!0:t.flags|=128,t.flags|=65536,o=Error("Simulated error coming from DevTools");var l=a&-a;if(t.lanes|=l,null===(i=Xb))throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Ho(l=Uo(l),i,t,fn(o,t)),Rr(t,l)}if(tr(t),null===t.stateNode){if(i=pm,o=n.contextType,"contextType"in n&&null!==o&&(void 0===o||o.$$typeof!==Uu)&&!lb.has(n)&&(lb.add(n),l=void 0===o?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":"object"!=typeof o?" However, it is set to a "+typeof o+".":o.$$typeof===Fu?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(o).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",T(n)||"Component",l)),"object"==typeof o&&null!==o&&(i=nr(o)),o=new n(r,i),t.mode&vm){B(!0);try{o=new n(r,i)}finally{B(!1)}}if(i=t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,o.updater=cb,t.stateNode=o,o._reactInternals=t,o._reactInternalInstance=Zg,"function"==typeof n.getDerivedStateFromProps&&null===i&&(i=T(n)||"Component",eb.has(i)||(eb.add(i),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",i,null===o.state?"null":"undefined",i))),"function"==typeof n.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate){var c=l=i=null;if("function"==typeof o.componentWillMount&&!0!==o.componentWillMount.__suppressDeprecationWarning?i="componentWillMount":"function"==typeof o.UNSAFE_componentWillMount&&(i="UNSAFE_componentWillMount"),"function"==typeof o.componentWillReceiveProps&&!0!==o.componentWillReceiveProps.__suppressDeprecationWarning?l="componentWillReceiveProps":"function"==typeof o.UNSAFE_componentWillReceiveProps&&(l="UNSAFE_componentWillReceiveProps"),"function"==typeof o.componentWillUpdate&&!0!==o.componentWillUpdate.__suppressDeprecationWarning?c="componentWillUpdate":"function"==typeof o.UNSAFE_componentWillUpdate&&(c="UNSAFE_componentWillUpdate"),null!==i||null!==l||null!==c){o=T(n)||"Component";var u="function"==typeof n.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";nb.has(o)||(nb.add(o),console.error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://react.dev/link/unsafe-component-lifecycles",o,u,null!==i?"\n "+i:"",null!==l?"\n "+l:"",null!==c?"\n "+c:""))}}o=t.stateNode,i=T(n)||"Component",o.render||(n.prototype&&"function"==typeof n.prototype.render?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",i):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",i)),!o.getInitialState||o.getInitialState.isReactClassApproved||o.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",i),o.getDefaultProps&&!o.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",i),o.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",i),n.childContextTypes&&!ib.has(n)&&(ib.add(n),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",i)),n.contextTypes&&!ob.has(n)&&(ob.add(n),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",i)),"function"==typeof o.componentShouldUpdate&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",i),n.prototype&&n.prototype.isPureReactComponent&&void 0!==o.shouldComponentUpdate&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",T(n)||"A pure component"),"function"==typeof o.componentDidUnmount&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",i),"function"==typeof o.componentDidReceiveProps&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",i),"function"==typeof o.componentWillRecieveProps&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",i),"function"==typeof o.UNSAFE_componentWillRecieveProps&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",i),l=o.props!==r,void 0!==o.props&&l&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",i),o.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",i,i),"function"!=typeof o.getSnapshotBeforeUpdate||"function"==typeof o.componentDidUpdate||tb.has(n)||(tb.add(n),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",T(n))),"function"==typeof o.getDerivedStateFromProps&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",i),"function"==typeof o.getDerivedStateFromError&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",i),"function"==typeof n.getSnapshotBeforeUpdate&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",i),(l=o.state)&&("object"!=typeof l||Xu(l))&&console.error("%s.state: must be set to an object or null",i),"function"==typeof o.getChildContext&&"object"!=typeof n.childContextTypes&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",i),(o=t.stateNode).props=r,o.state=t.memoizedState,o.refs={},Tr(t),i=n.contextType,o.context="object"==typeof i&&null!==i?nr(i):pm,o.state===r&&(i=T(n)||"Component",rb.has(i)||(rb.add(i),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",i))),t.mode&vm&&ph.recordLegacyContextWarning(t,o),ph.recordUnsafeLifecycleWarnings(t,o),o.state=t.memoizedState,"function"==typeof(i=n.getDerivedStateFromProps)&&(Ro(t,n,i,r),o.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(i=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),i!==o.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",N(t)||"Component"),cb.enqueueReplaceState(o,o.state,null)),Ar(t,r,o,a),jr(),o.state=t.memoizedState),"function"==typeof o.componentDidMount&&(t.flags|=4194308),(t.mode&wm)!==gm&&(t.flags|=134217728),o=!0}else if(null===e){o=t.stateNode;var d=t.memoizedProps;l=Io(n,d),o.props=l;var f=o.context;c=n.contextType,i=pm,"object"==typeof c&&null!==c&&(i=nr(c)),c="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate,d=t.pendingProps!==d,c||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(d||f!==i)&&Ao(t,o,r,i),Oh=!1;var p=t.memoizedState;o.state=p,Ar(t,r,o,a),jr(),f=t.memoizedState,d||p!==f||Oh?("function"==typeof u&&(Ro(t,n,u,r),f=t.memoizedState),(l=Oh||jo(t,n,l,r,p,f,i))?(c||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308),(t.mode&wm)!==gm&&(t.flags|=134217728)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),(t.mode&wm)!==gm&&(t.flags|=134217728),t.memoizedProps=r,t.memoizedState=f),o.props=r,o.state=f,o.context=i,o=l):("function"==typeof o.componentDidMount&&(t.flags|=4194308),(t.mode&wm)!==gm&&(t.flags|=134217728),o=!1)}else{o=t.stateNode,_r(e,t),c=Io(n,i=t.memoizedProps),o.props=c,u=t.pendingProps,p=o.context,f=n.contextType,l=pm,"object"==typeof f&&null!==f&&(l=nr(f)),(f="function"==typeof(d=n.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i!==u||p!==l)&&Ao(t,o,r,l),Oh=!1,p=t.memoizedState,o.state=p,Ar(t,r,o,a),jr();var m=t.memoizedState;i!==u||p!==m||Oh||null!==e&&null!==e.dependencies&&er(e.dependencies)?("function"==typeof d&&(Ro(t,n,d,r),m=t.memoizedState),(c=Oh||jo(t,n,c,r,p,m,l)||null!==e&&null!==e.dependencies&&er(e.dependencies))?(f||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,m,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,m,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=l,o=c):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),o=!1)}if(l=o,Yo(e,t),i=!!(128&t.flags),l||i){if(l=t.stateNode,$e(t),i&&"function"!=typeof n.getDerivedStateFromError)n=null,rh=-1;else{if(Q(t),n=Sg(l),t.mode&vm){B(!0);try{Sg(l)}finally{B(!1)}}K()}t.flags|=1,null!==e&&i?(t.child=Vg(t,e.child,null,a),t.child=Vg(t,null,n,a)):Wo(e,t,n,a),t.memoizedState=l.state,e=t.child}else e=di(e,t,a);return a=t.stateNode,o&&a.props!==r&&(vb||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",N(t)||"a component"),vb=!0),e}function Jo(e,t,n,r){return Bn(),t.flags|=256,Wo(e,t,n,r),t.child}function ei(e,t){t&&t.childContextTypes&&console.error("childContextTypes cannot be defined on a function component.\n %s.childContextTypes = ...",t.displayName||t.name||"Component"),"function"==typeof t.getDerivedStateFromProps&&(e=T(t)||"Unknown",yb[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),yb[e]=!0)),"object"==typeof t.contextType&&null!==t.contextType&&(t=T(t)||"Unknown",gb[t]||(console.error("%s: Function components do not support contextType.",t),gb[t]=!0))}function ti(e){return{baseLanes:e,cachePool:wr()}}function ni(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=wy),e}function ri(e,t,n){var r,a=t.pendingProps;l(t)&&(t.flags|=128);var o=!1,i=!!(128&t.flags);if((r=i)||(r=(null===e||null!==e.memoizedState)&&0!==(Xg.current&Gg)),r&&(o=!0,t.flags&=-129),r=!!(32&t.flags),t.flags&=-33,null===e){if(Im){if(o?Eo(t):_o(t),Im){var s,c=Am;if(!(s=!c)){e:{var u=c;for(s=$m;8!==u.nodeType;){if(!s){s=null;break e}if(null===(u=vc(u.nextSibling))){s=null;break e}}s=u}null!==s?(Dn(),t.memoizedState={dehydrated:s,treeContext:null!==Pm?{id:zm,overflow:Rm}:null,retryLane:536870912,hydrationErrors:null},(u=m(18,null,null,gm)).stateNode=s,u.return=t,t.child=u,jm=t,Am=null,s=!0):s=!1,s=!s}s&&(On(t,c),Fn(t))}if(null!==(c=t.memoizedState)&&null!==(c=c.dehydrated))return yc(c)?t.lanes=32:t.lanes=536870912,null;No(t)}return c=a.children,a=a.fallback,o?(_o(t),c=oi({mode:"hidden",children:c},o=t.mode),a=zn(a,o,n,null),c.return=t,a.return=t,c.sibling=a,t.child=c,(o=t.child).memoizedState=ti(n),o.childLanes=ni(e,r,n),t.memoizedState=xb,a):(Eo(t),ai(t,c))}var d=e.memoizedState;if(null!==d&&null!==(c=d.dehydrated)){if(i)256&t.flags?(Eo(t),t.flags&=-257,t=ii(e,t,n)):null!==t.memoizedState?(_o(t),t.child=e.child,t.flags|=128,t=null):(_o(t),o=a.fallback,c=t.mode,a=oi({mode:"visible",children:a.children},c),(o=zn(o,c,n,null)).flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,Vg(t,e.child,null,n),(a=t.child).memoizedState=ti(n),a.childLanes=ni(e,r,n),t.memoizedState=xb,t=o);else if(Eo(t),Im&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug."),yc(c)){if(r=c.nextSibling&&c.nextSibling.dataset){s=r.dgst;var f=r.msg;u=r.stck;var p=r.cstck}r=s,a=u,s=o=p,(o=(c=f)?Error(c):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.")).stack=a||"",o.digest=r,a={value:o,source:null,stack:r=void 0===s?null:s},"string"==typeof r&&lm.set(o,a),qn(a),t=ii(e,t,n)}else if(mb||Jn(e,t,n,!1),r=0!==(n&e.childLanes),mb||r){if(null!==(r=Xb)&&(0!==(a=0!==((a=42&(a=n&-n)?1:ce(a))&(r.suspendedLanes|n))?0:a)&&a!==d.retryLane))throw d.retryLane=a,gn(e,a),El(r,e,a),pb;c.data===jv||Ml(),t=ii(e,t,n)}else c.data===jv?(t.flags|=192,t.child=e.child,t=null):(e=d.treeContext,Am=vc(c.nextSibling),jm=t,Im=!0,Dm=null,Lm=!1,Mm=null,$m=!1,null!==e&&(Dn(),_m[Nm++]=zm,_m[Nm++]=Rm,_m[Nm++]=Pm,zm=e.id,Rm=e.overflow,Pm=t),(t=ai(t,a.children)).flags|=4096);return t}return o?(_o(t),o=a.fallback,c=t.mode,u=(s=e.child).sibling,(a=Tn(s,{mode:"hidden",children:a.children})).subtreeFlags=65011712&s.subtreeFlags,null!==u?o=Tn(u,o):(o=zn(o,c,n,null)).flags|=2,o.return=t,a.return=t,a.sibling=o,t.child=a,a=o,o=t.child,null===(c=e.child.memoizedState)?c=ti(n):(null!==(s=c.cachePool)?(u=Jm._currentValue,s=s.parent!==u?{parent:u,pool:u}:s):s=wr(),c={baseLanes:c.baseLanes|n,cachePool:s}),o.memoizedState=c,o.childLanes=ni(e,r,n),t.memoizedState=xb,a):(Eo(t),e=(n=e.child).sibling,(n=Tn(n,{mode:"visible",children:a.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function ai(e,t){return(t=oi({mode:"visible",children:t},e.mode)).return=e,e.child=t}function oi(e,t){return(e=m(22,e,null,t)).lanes=0,e.stateNode={_visibility:sm,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function ii(e,t,n){return Vg(t,e.child,null,n),(e=ai(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function li(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Xn(e.return,t,n)}function si(e,t){var n=Xu(e);return e=!n&&"function"==typeof E(e),!n&&!e||(n=n?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",n,t,n),!1)}function ci(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function ui(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(r=r.children,void 0!==a&&"forwards"!==a&&"backwards"!==a&&"together"!==a&&!wb[a])if(wb[a]=!0,"string"==typeof a)switch(a.toLowerCase()){case"together":case"forwards":case"backwards":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',a,a.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',a,a.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',a)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',a);void 0===o||kb[o]||("collapsed"!==o&&"hidden"!==o?(kb[o]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',o)):"forwards"!==a&&"backwards"!==a&&(kb[o]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',o)));e:if(("forwards"===a||"backwards"===a)&&null!=r&&!1!==r)if(Xu(r)){for(var i=0;i<r.length;i++)if(!si(r[i],i))break e}else if(i=E(r),"function"==typeof i){if(i=i.call(r))for(var l=i.next(),s=0;!l.done;l=i.next()){if(!si(l.value,s))break e;s++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',a);if(Wo(e,t,r,n),0!==((r=Xg.current)&Gg))r=r&Yg|Gg,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&li(e,n,t);else if(19===e.tag)li(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=Yg}switch(R(Xg,r,t),a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===Po(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),ci(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===Po(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}ci(t,!0,n,null,o);break;case"together":ci(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function di(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),rh=-1,by|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Jn(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(null!==t.child){for(n=Tn(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Tn(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function fi(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!er(e))}function pi(e,t,n){if(t._debugNeedsRemount&&null!==e){(n=Nn(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes))._debugStack=t._debugStack,n._debugTask=t._debugTask;var r=t.return;if(null===r)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,n._debugInfo=t._debugInfo,t===r.child)r.child=n;else{var a=r.child;if(null===a)throw Error("Expected parent to have a child.");for(;a.sibling!==t;)if(null===(a=a.sibling))throw Error("Expected to find the previous sibling.");a.sibling=n}return null===(t=r.deletions)?(r.deletions=[e],r.flags|=16):t.push(e),n.flags|=2,n}if(null!==e)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)mb=!0;else{if(!(fi(e,n)||128&t.flags))return mb=!1,function(e,t,n){switch(t.tag){case 3:A(t,t.stateNode.containerInfo),Yn(t,Jm,e.memoizedState.cache),Bn();break;case 27:case 5:M(t);break;case 4:A(t,t.stateNode.containerInfo);break;case 10:Yn(t,t.type,t.memoizedProps.value);break;case 12:0!==(n&t.childLanes)&&(t.flags|=4),t.flags|=2048;var r=t.stateNode;r.effectDuration=-0,r.passiveEffectDuration=-0;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Eo(t),t.flags|=128,null):0!==(n&t.child.childLanes)?ri(e,t,n):(Eo(t),null!==(e=di(e,t,n))?e.sibling:null);Eo(t);break;case 19:var a=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Jn(e,t,n,!1),r=0!==(n&t.childLanes)),a){if(r)return ui(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),R(Xg,Xg.current,t),r)break;return null;case 22:case 23:return t.lanes=0,Qo(e,t,n);case 24:Yn(t,Jm,e.memoizedState.cache)}return di(e,t,n)}(e,t,n);mb=!!(131072&e.flags)}else mb=!1,(r=Im)&&(Dn(),r=!!(1048576&t.flags)),r&&(r=t.index,Dn(),In(t,Tm,r));switch(t.lanes=0,t.tag){case 16:e:{if(r=t.pendingProps,e=Dg(t.elementType),t.type=e,"function"!=typeof e){if(null!=e){if((a=e.$$typeof)===Hu){t.tag=11,t.type=e=wn(e),t=Bo(null,t,e,r,n);break e}if(a===Vu){t.tag=14,t=Vo(null,t,e,r,n);break e}}throw t="",null!==e&&"object"==typeof e&&e.$$typeof===qu&&(t=" Did you wrap a component in React.lazy() more than once?"),e=T(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+e+". Lazy element type must resolve to a class or function."+t)}En(e)?(r=Io(e,r),t.tag=1,t.type=e=vn(e),t=Zo(null,t,e,r,n)):(t.tag=0,ei(t,e),t.type=e=vn(e),t=Go(null,t,e,r,n))}return t;case 0:return Go(e,t,t.type,t.pendingProps,n);case 1:return Zo(e,t,r=t.type,a=Io(r,t.pendingProps),n);case 3:e:{if(A(t,t.stateNode.containerInfo),null===e)throw Error("Should have a current fiber. This is a bug in React.");r=t.pendingProps;var o=t.memoizedState;a=o.element,_r(e,t),Ar(t,r,null,n);var i=t.memoizedState;if(r=i.cache,Yn(t,Jm,r),r!==o.cache&&Zn(t,[Jm],n,!0),jr(),r=i.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Jo(e,t,r,n);break e}if(r!==a){qn(a=fn(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t)),t=Jo(e,t,r,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(Am=vc(e.firstChild),jm=t,Im=!0,Dm=null,Lm=!1,Mm=null,$m=!0,e=qg(t,null,r,n),t.child=e;e;)e.flags=-3&e.flags|4096,e=e.sibling}else{if(Bn(),r===a){t=di(e,t,n);break e}Wo(e,t,r,n)}t=t.child}return t;case 26:return Yo(e,t),null===e?(e=Rc(t.type,null,t.pendingProps,null))?t.memoizedState=e:Im||(e=t.type,n=t.pendingProps,(r=ec(r=j(id.current)).createElement(e))[Dd]=t,r[$d]=n,Bs(r,e,n),ve(r),t.stateNode=r):t.memoizedState=Rc(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return M(t),null===e&&Im&&(r=j(id.current),a=L(),r=t.stateNode=Tc(t.type,t.pendingProps,r,a,!1),Lm||null!==(a=Js(r,t.type,t.pendingProps,a))&&($n(t,0).serverProps=a),jm=t,$m=!0,a=Am,cc(t.type)?(Jv=a,Am=vc(r.firstChild)):Am=a),Wo(e,t,t.pendingProps.children,n),Yo(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&Im&&(o=L(),r=kt(t.type,o.ancestorInfo),(i=!(a=Am))||(null!==(i=function(e,t,n,r){for(;1===e.nodeType;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Bd])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(o=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(o!==a.rel||e.getAttribute("href")!==(null==a.href||""===a.href?null:a.href)||e.getAttribute("crossorigin")!==(null==a.crossOrigin?null:a.crossOrigin)||e.getAttribute("title")!==(null==a.title?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((o=e.getAttribute("src"))!==(null==a.src?null:a.src)||e.getAttribute("type")!==(null==a.type?null:a.type)||e.getAttribute("crossorigin")!==(null==a.crossOrigin?null:a.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;U(a.name,"name");var o=null==a.name?null:""+a.name;if("hidden"===a.type&&e.getAttribute("name")===o)return e}if(null===(e=vc(e.nextSibling)))break}return null}(a,t.type,t.pendingProps,$m))?(t.stateNode=i,Lm||null!==(o=Js(i,t.type,t.pendingProps,o))&&($n(t,0).serverProps=o),jm=t,Am=vc(i.firstChild),$m=!1,o=!0):o=!1,i=!o),i&&(r&&On(t,a),Fn(t))),M(t),a=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,r=o.children,rc(a,o)?r=null:null!==i&&rc(a,i)&&(t.flags|=32),null!==t.memoizedState&&(a=qr(e,t,Yr,null,null,n),Sw._currentValue=a),Yo(e,t),Wo(e,t,r,n),t.child;case 6:return null===e&&Im&&(e=t.pendingProps,e=null==(r=(n=L()).ancestorInfo.current)||xt(e,r.tag,n.ancestorInfo.implicitRootScope),(r=!(n=Am))||(null!==(r=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=vc(e.nextSibling)))return null}return e}(n,t.pendingProps,$m))?(t.stateNode=r,jm=t,Am=null,r=!0):r=!1,r=!r),r&&(e&&On(t,n),Fn(t))),null;case 13:return ri(e,t,n);case 4:return A(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Vg(t,null,r,n):Wo(e,t,r,n),t.child;case 11:return Bo(e,t,t.type,t.pendingProps,n);case 7:return Wo(e,t,t.pendingProps,n),t.child;case 8:return Wo(e,t,t.pendingProps.children,n),t.child;case 12:return t.flags|=4,t.flags|=2048,(r=t.stateNode).effectDuration=-0,r.passiveEffectDuration=-0,Wo(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.type,o=(a=t.pendingProps).value,"value"in a||Sb||(Sb=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Yn(t,r,o),Wo(e,t,a.children,n),t.child;case 9:return a=t.type._context,"function"!=typeof(r=t.pendingProps.children)&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),tr(t),a=nr(a),Q(t),r=kg(r,a,void 0),K(),t.flags|=1,Wo(e,t,r,n),t.child;case 14:return Vo(e,t,t.type,t.pendingProps,n);case 15:return qo(e,t,t.type,t.pendingProps,n);case 19:return ui(e,t,n);case 31:return r=t.pendingProps,n=t.mode,r={mode:r.mode,children:r.children},null===e?((e=oi(r,n)).ref=t.ref,t.child=e,e.return=t,t=e):((e=Tn(e.child,r)).ref=t.ref,t.child=e,e.return=t,t=e),t;case 22:return Qo(e,t,n);case 24:return tr(t),r=nr(Jm),null===e?(null===(a=yr())&&(a=Xb,o=or(),a.pooledCache=o,ir(o),null!==o&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Tr(t),Yn(t,Jm,a)):(0!==(e.lanes&n)&&(_r(e,t),Ar(t,null,null,n),jr()),a=e.memoizedState,o=t.memoizedState,a.parent!==r?(a={parent:r,cache:r},t.memoizedState=a,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=a),Yn(t,Jm,r)):(r=o.cache,Yn(t,Jm,r),r!==a.cache&&Zn(t,[Jm],n,!0))),Wo(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function mi(e){e.flags|=4}function hi(e,t){if("stylesheet"!==t.type||(t.state.loading&aw)!==ew)e.flags&=-16777217;else if(e.flags|=16777216,!Bc(t)){if(null!==(t=Qg.current)&&((4194048&Jb)===Jb?null!==Kg:(62914560&Jb)!==Jb&&!(536870912&Jb)||t!==Kg))throw Nh=_h,Eh;e.flags|=8192}}function gi(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?ae():536870912,e.lanes|=t,ky|=t)}function bi(e,t){if(!Im)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function yi(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)if((e.mode&ym)!==gm){for(var a=e.selfBaseDuration,o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,a+=o.treeBaseDuration,o=o.sibling;e.treeBaseDuration=a}else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=65011712&a.subtreeFlags,r|=65011712&a.flags,a.return=e,a=a.sibling;else if((e.mode&ym)!==gm){a=e.actualDuration,o=e.selfBaseDuration;for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,a+=i.actualDuration,o+=i.treeBaseDuration,i=i.sibling;e.actualDuration=a,e.treeBaseDuration=o}else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function vi(e,t,n){var r=t.pendingProps;switch(Mn(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return yi(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Gn(Jm,t),I(t),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(Wn(t)?(Qn(),mi(t)):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,Vn())),yi(t),null;case 26:return n=t.memoizedState,null===e?(mi(t),null!==n?(yi(t),hi(t,n)):(yi(t),t.flags&=-16777217)):n?n!==e.memoizedState?(mi(t),yi(t),hi(t,n)):(yi(t),t.flags&=-16777217):(e.memoizedProps!==r&&mi(t),yi(t),t.flags&=-16777217),null;case 27:D(t),n=j(id.current);var a=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==r&&mi(t);else{if(!r){if(null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return yi(t),null}e=L(),Wn(t)?Un(t):(e=Tc(a,r,n,e,!0),t.stateNode=e,mi(t))}return yi(t),null;case 5:if(D(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&mi(t);else{if(!r){if(null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return yi(t),null}if(a=L(),Wn(t))Un(t);else{switch(e=j(id.current),kt(n,a.ancestorInfo),a=a.context,e=ec(e),a){case Hv:e=e.createElementNS(Lf,n);break;case Wv:e=e.createElementNS(If,n);break;default:switch(n){case"svg":e=e.createElementNS(Lf,n);break;case"math":e=e.createElementNS(If,n);break;case"script":(e=e.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?e.createElement("select",{is:r.is}):e.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?e.createElement(n,{is:r.is}):e.createElement(n),-1===n.indexOf("-")&&(n!==n.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",n),"[object HTMLUnknownElement]"!==Object.prototype.toString.call(e)||sd.call(qv,n)||(qv[n]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",n)))}}e[Dd]=t,e[$d]=r;e:for(a=t.child;null!==a;){if(5===a.tag||6===a.tag)e.appendChild(a.stateNode);else if(4!==a.tag&&27!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;null===a.sibling;){if(null===a.return||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=e;e:switch(Bs(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&mi(t)}}return yi(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&mi(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=j(id.current),n=L(),Wn(t)){e=t.stateNode,n=t.memoizedProps,a=!Lm,r=null;var o=jm;if(null!==o)switch(o.tag){case 3:a&&(null!==(a=kc(e,n,r))&&($n(t,0).serverProps=a));break;case 27:case 5:r=o.memoizedProps,a&&(null!==(a=kc(e,n,r))&&($n(t,0).serverProps=a))}e[Dd]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||Fs(e.nodeValue,n)))||Fn(t)}else null!=(a=n.ancestorInfo.current)&&xt(r,a.tag,n.ancestorInfo.implicitRootScope),(e=ec(e).createTextNode(r))[Dd]=t,t.stateNode=e}return yi(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(a=Wn(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");a[Dd]=t,yi(t),(t.mode&ym)!==gm&&null!==r&&(null!==(a=t.child)&&(t.treeBaseDuration-=a.treeBaseDuration))}else Qn(),Bn(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4,yi(t),(t.mode&ym)!==gm&&null!==r&&(null!==(a=t.child)&&(t.treeBaseDuration-=a.treeBaseDuration));a=!1}else a=Vn(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return 256&t.flags?(No(t),t):(No(t),null)}return No(t),128&t.flags?(t.lanes=n,(t.mode&ym)!==gm&&gr(t),t):(n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(a=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(a=r.alternate.memoizedState.cachePool.pool),o=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),gi(t,t.updateQueue),yi(t),(t.mode&ym)!==gm&&n&&(null!==(e=t.child)&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return I(t),null===e&&Ns(t.stateNode.containerInfo),yi(t),null;case 10:return Gn(t.type,t),yi(t),null;case 19:if(z(Xg,t),null===(a=t.memoizedState))return yi(t),null;if(r=!!(128&t.flags),null===(o=a.rendering))if(r)bi(a,!1);else{if(gy!==Wb||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(o=Po(e))){for(t.flags|=128,bi(a,!1),e=o.updateQueue,t.updateQueue=e,gi(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)_n(n,e),n=n.sibling;return R(Xg,Xg.current&Yg|Gg,t),t.child}e=e.sibling}null!==a.tail&&pd()>_y&&(t.flags|=128,r=!0,bi(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Po(o))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,gi(t,e),bi(a,!0),null===a.tail&&"hidden"===a.tailMode&&!o.alternate&&!Im)return yi(t),null}else 2*pd()-a.renderingStartTime>_y&&536870912!==n&&(t.flags|=128,r=!0,bi(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=a.last)?e.sibling=o:t.child=o,a.last=o)}return null!==a.tail?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pd(),e.sibling=null,n=Xg.current,R(Xg,n=r?n&Yg|Gg:n&Yg,t),e):(yi(t),null);case 22:case 23:return No(t),Or(t),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?!!(536870912&n)&&!(128&t.flags)&&(yi(t),6&t.subtreeFlags&&(t.flags|=8192)):yi(t),null!==(n=t.updateQueue)&&gi(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&z(fh,t),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Gn(Jm,t),yi(t),null;case 25:case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function wi(e,t){switch(Mn(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,(t.mode&ym)!==gm&&gr(t),t):null;case 3:return Gn(Jm,t),I(t),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return D(t),null;case 13:if(No(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Bn()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,(t.mode&ym)!==gm&&gr(t),t):null;case 19:return z(Xg,t),null;case 4:return I(t),null;case 10:return Gn(t.type,t),null;case 22:case 23:return No(t),Or(t),null!==e&&z(fh,t),65536&(e=t.flags)?(t.flags=-65537&e|128,(t.mode&ym)!==gm&&gr(t),t):null;case 24:return Gn(Jm,t),null;default:return null}}function ki(e,t){switch(Mn(t),t.tag){case 3:Gn(Jm,t),I(t);break;case 26:case 27:case 5:D(t);break;case 4:I(t);break;case 13:No(t);break;case 19:z(Xg,t);break;case 10:Gn(t.type,t);break;case 22:case 23:No(t),Or(t),null!==e&&z(fh,t);break;case 24:Gn(Jm,t)}}function xi(e){return(e.mode&ym)!==gm}function Si(e,t){xi(e)?(hr(),Ei(t,e),mr()):Ei(t,e)}function Ci(e,t,n){xi(e)?(hr(),Ti(n,e,t),mr()):Ti(n,e,t)}function Ei(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var a=r.next;n=a;do{if((n.tag&e)===e&&((e&Ih)!==zh?null!==Cd&&"function"==typeof Cd.markComponentPassiveEffectMountStarted&&Cd.markComponentPassiveEffectMountStarted(t):(e&Ah)!==zh&&null!==Cd&&"function"==typeof Cd.markComponentLayoutEffectMountStarted&&Cd.markComponentLayoutEffectMountStarted(t),r=void 0,(e&jh)!==zh&&(tv=!0),r=De(t,Ag,n),(e&jh)!==zh&&(tv=!1),(e&Ih)!==zh?null!==Cd&&"function"==typeof Cd.markComponentPassiveEffectMountStopped&&Cd.markComponentPassiveEffectMountStopped():(e&Ah)!==zh&&null!==Cd&&"function"==typeof Cd.markComponentLayoutEffectMountStopped&&Cd.markComponentLayoutEffectMountStopped(),void 0!==r&&"function"!=typeof r)){var o;o=0!==(n.tag&Ah)?"useLayoutEffect":0!==(n.tag&jh)?"useInsertionEffect":"useEffect";De(t,function(e,t){console.error("%s must not return anything besides a function, which is used for clean-up.%s",e,t)},o,null===r?" You returned null. If your effect does not require clean up, return undefined (or nothing).":"function"==typeof r.then?"\n\nIt looks like you wrote "+o+"(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\n\n"+o+"(() => {\n async function fetchData() {\n // You can await here\n const response = await MyAPI.getData(someId);\n // ...\n }\n fetchData();\n}, [someId]); // Or [] if effect doesn't need props or state\n\nLearn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching":" You returned: "+r)}n=n.next}while(n!==a)}}catch(i){ts(t,t.return,i)}}function Ti(e,t,n){try{var r=t.updateQueue,a=null!==r?r.lastEffect:null;if(null!==a){var o=a.next;r=o;do{if((r.tag&e)===e){var i=r.inst,l=i.destroy;void 0!==l&&(i.destroy=void 0,(e&Ih)!==zh?null!==Cd&&"function"==typeof Cd.markComponentPassiveEffectUnmountStarted&&Cd.markComponentPassiveEffectUnmountStarted(t):(e&Ah)!==zh&&null!==Cd&&"function"==typeof Cd.markComponentLayoutEffectUnmountStarted&&Cd.markComponentLayoutEffectUnmountStarted(t),(e&jh)!==zh&&(tv=!0),De(a=t,Lg,a,n,l),(e&jh)!==zh&&(tv=!1),(e&Ih)!==zh?null!==Cd&&"function"==typeof Cd.markComponentPassiveEffectUnmountStopped&&Cd.markComponentPassiveEffectUnmountStopped():(e&Ah)!==zh&&null!==Cd&&"function"==typeof Cd.markComponentLayoutEffectUnmountStopped&&Cd.markComponentLayoutEffectUnmountStopped())}r=r.next}while(r!==o)}}catch(s){ts(t,t.return,s)}}function _i(e,t){xi(e)?(hr(),Ei(t,e),mr()):Ei(t,e)}function Ni(e,t,n){xi(e)?(hr(),Ti(n,e,t),mr()):Ti(n,e,t)}function Pi(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||vb||(n.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",N(e)||"instance"),n.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",N(e)||"instance"));try{De(e,Mr,t,n)}catch(r){ts(e,e.return,r)}}}function zi(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function Ri(e,t){var n=t.memoizedProps,r=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||vb||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",N(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",N(e)||"instance"));try{var a=Io(e.type,n,(e.elementType,e.type)),o=De(e,zi,t,a,r);n=Cb,void 0!==o||n.has(e.type)||(n.add(e.type),De(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",N(e))})),t.__reactInternalSnapshotBeforeUpdate=o}catch(i){ts(e,e.return,i)}}function ji(e,t,n){n.props=Io(e.type,e.memoizedProps),n.state=e.memoizedState,xi(e)?(hr(),De(e,Rg,e,t,n),mr()):De(e,Rg,e,t,n)}function Ai(e){var t=e.ref;if(null!==t){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;default:n=e.stateNode}if("function"==typeof t)if(xi(e))try{hr(),e.refCleanup=t(n)}finally{mr()}else e.refCleanup=t(n);else"string"==typeof t?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",N(e)),t.current=n}}function Ii(e,t){try{De(e,Ai,e)}catch(n){ts(e,t,n)}}function Li(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{if(xi(e))try{hr(),De(e,r)}finally{mr()}else De(e,r)}catch(a){ts(e,t,a)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{if(xi(e))try{hr(),De(e,n,null)}finally{mr()}else De(e,n,null)}catch(o){ts(e,t,o)}else n.current=null}function Mi(e,t,n,r){var a=e.memoizedProps,o=a.id,i=a.onCommit;a=a.onRender,t=null===t?"mount":"update",oh&&(t="nested-update"),"function"==typeof a&&a(o,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),"function"==typeof i&&i(e.memoizedProps.id,t,r,n)}function Di(e,t,n,r){var a=e.memoizedProps;e=a.id,a=a.onPostCommit,t=null===t?"mount":"update",oh&&(t="nested-update"),"function"==typeof a&&a(e,t,r,n)}function $i(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{De(e,oc,r,t,n,e)}catch(a){ts(e,e.return,a)}}function Oi(e,t,n){try{De(e,ic,e.stateNode,e.type,n,t,e)}catch(r){ts(e,e.return,r)}}function Fi(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&cc(e.type)||4===e.tag}function Ui(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Fi(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&cc(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Hi(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Us));else if(4!==r&&(27===r&&cc(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(Hi(e,t,n),e=e.sibling;null!==e;)Hi(e,t,n),e=e.sibling}function Wi(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&cc(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(Wi(e,t,n),e=e.sibling;null!==e;)Wi(e,t,n),e=e.sibling}function Bi(e){for(var t,n=e.return;null!==n;){if(Fi(n)){t=n;break}n=n.return}if(null==t)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,Wi(e,n=Ui(e),t);break;case 5:n=t.stateNode,32&t.flags&&(lc(n),t.flags&=-33),Wi(e,t=Ui(e),n);break;case 3:case 4:t=t.stateNode.containerInfo,Hi(e,n=Ui(e),t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Vi(e){var t=e.stateNode,n=e.memoizedProps;try{De(e,_c,e.type,n,t,e)}catch(r){ts(e,e.return,r)}}function qi(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:nl(e,n),4&r&&Si(n,Ah|Rh);break;case 1:if(nl(e,n),4&r)if(e=n.stateNode,null===t)n.type.defaultProps||"ref"in n.memoizedProps||vb||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",N(n)||"instance"),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",N(n)||"instance")),xi(n)?(hr(),De(n,Eg,n,e),mr()):De(n,Eg,n,e);else{var a=Io(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||"ref"in n.memoizedProps||vb||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",N(n)||"instance"),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",N(n)||"instance")),xi(n)?(hr(),De(n,_g,n,e,a,t,e.__reactInternalSnapshotBeforeUpdate),mr()):De(n,_g,n,e,a,t,e.__reactInternalSnapshotBeforeUpdate)}64&r&&Pi(n),512&r&&Ii(n,n.return);break;case 3:if(t=sr(),nl(e,n),64&r&&null!==(r=n.updateQueue)){if(a=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:a=n.child.stateNode}try{De(n,Mr,r,a)}catch(i){ts(n,n.return,i)}}e.effectDuration+=cr(t);break;case 27:null===t&&4&r&&Vi(n);case 26:case 5:nl(e,n),null===t&&4&r&&$i(n),512&r&&Ii(n,n.return);break;case 12:if(4&r){r=sr(),nl(e,n),(e=n.stateNode).effectDuration+=ur(r);try{De(n,Mi,n,t,nh,e.effectDuration)}catch(i){ts(n,n.return,i)}}else nl(e,n);break;case 13:nl(e,n),4&r&&Gi(e,n),64&r&&(null!==(e=n.memoizedState)&&(null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if(e.data!==jv||n.readyState===Ov)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=os.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||Eb)){t=null!==t&&null!==t.memoizedState||Tb,a=Eb;var o=Tb;Eb=r,(Tb=t)&&!o?il(e,n,!!(8772&n.subtreeFlags)):nl(e,n),Eb=a,Tb=o}break;case 30:break;default:nl(e,n)}}function Qi(e){var t=e.alternate;null!==t&&(e.alternate=null,Qi(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&me(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ki(e,t,n){for(n=n.child;null!==n;)Yi(e,t,n),n=n.sibling}function Yi(e,t,n){if(Sd&&"function"==typeof Sd.onCommitFiberUnmount)try{Sd.onCommitFiberUnmount(xd,n)}catch(o){Ed||(Ed=!0,console.error("React instrumentation encountered an error: %s",o))}switch(n.tag){case 26:Tb||Li(n,t),Ki(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Tb||Li(n,t);var r=jb,a=Ab;cc(n.type)&&(jb=n.stateNode,Ab=!1),Ki(e,t,n),De(n,Nc,n.stateNode),jb=r,Ab=a;break;case 5:Tb||Li(n,t);case 6:if(r=jb,a=Ab,jb=null,Ki(e,t,n),Ab=a,null!==(jb=r))if(Ab)try{De(n,dc,jb,n.stateNode)}catch(i){ts(n,t,i)}else try{De(n,uc,jb,n.stateNode)}catch(i){ts(n,t,i)}break;case 18:null!==jb&&(Ab?(fc(9===(e=jb).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),yu(e)):fc(jb,n.stateNode));break;case 4:r=jb,a=Ab,jb=n.stateNode.containerInfo,Ab=!0,Ki(e,t,n),jb=r,Ab=a;break;case 0:case 11:case 14:case 15:Tb||Ti(jh,n,t),Tb||Ci(n,t,Ah),Ki(e,t,n);break;case 1:Tb||(Li(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&ji(n,t,r)),Ki(e,t,n);break;case 21:Ki(e,t,n);break;case 22:Tb=(r=Tb)||null!==n.memoizedState,Ki(e,t,n),Tb=r;break;default:Ki(e,t,n)}}function Gi(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{De(t,Ec,e)}catch(n){ts(t,t.return,n)}}function Xi(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Nb),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Nb),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}(e);t.forEach(function(t){var r=is.bind(null,e,t);if(!n.has(t)){if(n.add(t),Td){if(null===zb||null===Rb)throw Error("Expected finished root and lanes to be set. This is a bug in React.");ds(Rb,zb)}t.then(r,r)}})}function Zi(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=e,o=t,i=n[r],l=o;e:for(;null!==l;){switch(l.tag){case 27:if(cc(l.type)){jb=l.stateNode,Ab=!1;break e}break;case 5:jb=l.stateNode,Ab=!1;break e;case 3:case 4:jb=l.stateNode.containerInfo,Ab=!0;break e}l=l.return}if(null===jb)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Yi(a,o,i),jb=null,Ab=!1,null!==(o=(a=i).alternate)&&(o.return=null),a.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)Ji(t,e),t=t.sibling}function Ji(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Zi(t,e),el(e),4&r&&(Ti(jh|Rh,e,e.return),Ei(jh|Rh,e),Ci(e,e.return,Ah|Rh));break;case 1:Zi(t,e),el(e),512&r&&(Tb||null===n||Li(n,n.return)),64&r&&Eb&&(null!==(e=e.updateQueue)&&(null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r))));break;case 26:var a=Ib;if(Zi(t,e),el(e),512&r&&(Tb||null===n||Li(n,n.return)),4&r)if(t=null!==n?n.memoizedState:null,r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,t=a.ownerDocument||a;t:switch(r){case"title":(!(a=t.getElementsByTagName("title")[0])||a[Bd]||a[Dd]||a.namespaceURI===Lf||a.hasAttribute("itemprop"))&&(a=t.createElement(r),t.head.insertBefore(a,t.querySelector("head > title"))),Bs(a,r,n),a[Dd]=e,ve(a),r=a;break e;case"link":var o=Hc("link","href",t).get(r+(n.href||""));if(o)for(var i=0;i<o.length;i++)if((a=o[i]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&a.getAttribute("rel")===(null==n.rel?null:n.rel)&&a.getAttribute("title")===(null==n.title?null:n.title)&&a.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){o.splice(i,1);break t}Bs(a=t.createElement(r),r,n),t.head.appendChild(a);break;case"meta":if(o=Hc("meta","content",t).get(r+(n.content||"")))for(i=0;i<o.length;i++)if(a=o[i],U(n.content,"content"),a.getAttribute("content")===(null==n.content?null:""+n.content)&&a.getAttribute("name")===(null==n.name?null:n.name)&&a.getAttribute("property")===(null==n.property?null:n.property)&&a.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&a.getAttribute("charset")===(null==n.charSet?null:n.charSet)){o.splice(i,1);break t}Bs(a=t.createElement(r),r,n),t.head.appendChild(a);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+r+'". This is a bug in React.')}a[Dd]=e,ve(a),r=a}e.stateNode=r}else Wc(a,e.type,e.stateNode);else e.stateNode=$c(a,r,e.memoizedProps);else t!==r?(null===t?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):t.count--,null===r?Wc(a,e.type,e.stateNode):$c(a,r,e.memoizedProps)):null===r&&null!==e.stateNode&&Oi(e,e.memoizedProps,n.memoizedProps);break;case 27:Zi(t,e),el(e),512&r&&(Tb||null===n||Li(n,n.return)),null!==n&&4&r&&Oi(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Zi(t,e),el(e),512&r&&(Tb||null===n||Li(n,n.return)),32&e.flags){t=e.stateNode;try{De(e,lc,t)}catch(u){ts(e,e.return,u)}}4&r&&null!=e.stateNode&&Oi(e,t=e.memoizedProps,null!==n?n.memoizedProps:t),1024&r&&(_b=!0,"form"!==e.type&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Zi(t,e),el(e),4&r){if(null===e.stateNode)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");r=e.memoizedProps,n=null!==n?n.memoizedProps:r,t=e.stateNode;try{De(e,sc,t,n,r)}catch(u){ts(e,e.return,u)}}break;case 3:if(a=sr(),yw=null,o=Ib,Ib=Pc(t.containerInfo),Zi(t,e),Ib=o,el(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{De(e,Cc,t.containerInfo)}catch(u){ts(e,e.return,u)}_b&&(_b=!1,tl(e)),t.effectDuration+=cr(a);break;case 4:r=Ib,Ib=Pc(e.stateNode.containerInfo),Zi(t,e),el(e),Ib=r;break;case 12:r=sr(),Zi(t,e),el(e),e.stateNode.effectDuration+=ur(r);break;case 13:Zi(t,e),el(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(Ey=pd()),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,Xi(e,r)));break;case 22:a=null!==e.memoizedState;var l=null!==n&&null!==n.memoizedState,s=Eb,c=Tb;if(Eb=s||a,Tb=c||l,Zi(t,e),Tb=c,Eb=s,el(e),8192&r)e:for(t=e.stateNode,t._visibility=a?t._visibility&~sm:t._visibility|sm,a&&(null===n||l||Eb||Tb||al(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){l=n=t;try{o=l.stateNode,a?De(l,pc,o):De(l,hc,l.stateNode,l.memoizedProps)}catch(u){ts(l,l.return,u)}}}else if(6===t.tag){if(null===n){l=t;try{i=l.stateNode,a?De(l,mc,i):De(l,gc,i,l.memoizedProps)}catch(u){ts(l,l.return,u)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&(null!==(r=e.updateQueue)&&(null!==(n=r.retryQueue)&&(r.retryQueue=null,Xi(e,n))));break;case 19:Zi(t,e),el(e),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,Xi(e,r)));break;case 30:case 21:break;default:Zi(t,e),el(e)}}function el(e){var t=e.flags;if(2&t){try{De(e,Bi,e)}catch(n){ts(e,e.return,n)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function tl(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;tl(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function nl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)qi(e,t.alternate,t),t=t.sibling}function rl(e){switch(e.tag){case 0:case 11:case 14:case 15:Ci(e,e.return,Ah),al(e);break;case 1:Li(e,e.return);var t=e.stateNode;"function"==typeof t.componentWillUnmount&&ji(e,e.return,t),al(e);break;case 27:De(e,Nc,e.stateNode);case 26:case 5:Li(e,e.return),al(e);break;case 22:null===e.memoizedState&&al(e);break;default:al(e)}}function al(e){for(e=e.child;null!==e;)rl(e),e=e.sibling}function ol(e,t,n,r){var a=n.flags;switch(n.tag){case 0:case 11:case 15:il(e,n,r),Si(n,Ah);break;case 1:if(il(e,n,r),"function"==typeof(t=n.stateNode).componentDidMount&&De(n,Eg,n,t),null!==(t=n.updateQueue)){e=n.stateNode;try{De(n,Lr,t,e)}catch(o){ts(n,n.return,o)}}r&&64&a&&Pi(n),Ii(n,n.return);break;case 27:Vi(n);case 26:case 5:il(e,n,r),r&&null===t&&4&a&&$i(n),Ii(n,n.return);break;case 12:if(r&&4&a){a=sr(),il(e,n,r),(r=n.stateNode).effectDuration+=ur(a);try{De(n,Mi,n,t,nh,r.effectDuration)}catch(o){ts(n,n.return,o)}}else il(e,n,r);break;case 13:il(e,n,r),r&&4&a&&Gi(e,n);break;case 22:null===n.memoizedState&&il(e,n,r),Ii(n,n.return);break;case 30:break;default:il(e,n,r)}}function il(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;)ol(e,t.alternate,t,n),t=t.sibling}function ll(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&ir(e),null!=n&&lr(n))}function sl(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(ir(t),null!=e&&lr(e))}function cl(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)ul(e,t,n,r),t=t.sibling}function ul(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:cl(e,t,n,r),2048&a&&_i(t,Ih|Rh);break;case 1:case 13:default:cl(e,t,n,r);break;case 3:var o=sr();cl(e,t,n,r),2048&a&&(n=null,null!==t.alternate&&(n=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==n&&(ir(t),null!=n&&lr(n))),e.passiveEffectDuration+=cr(o);break;case 12:if(2048&a){a=sr(),cl(e,t,n,r),(e=t.stateNode).passiveEffectDuration+=ur(a);try{De(t,Di,t,t.alternate,nh,e.passiveEffectDuration)}catch(l){ts(t,t.return,l)}}else cl(e,t,n,r);break;case 23:break;case 22:o=t.stateNode;var i=t.alternate;null!==t.memoizedState?o._visibility&cm?cl(e,t,n,r):pl(e,t):o._visibility&cm?cl(e,t,n,r):(o._visibility|=cm,dl(e,t,n,r,!!(10256&t.subtreeFlags))),2048&a&&ll(i,t);break;case 24:cl(e,t,n,r),2048&a&&sl(t.alternate,t)}}function dl(e,t,n,r,a){for(a=a&&!!(10256&t.subtreeFlags),t=t.child;null!==t;)fl(e,t,n,r,a),t=t.sibling}function fl(e,t,n,r,a){var o=t.flags;switch(t.tag){case 0:case 11:case 15:dl(e,t,n,r,a),_i(t,Ih);break;case 23:break;case 22:var i=t.stateNode;null!==t.memoizedState?i._visibility&cm?dl(e,t,n,r,a):pl(e,t):(i._visibility|=cm,dl(e,t,n,r,a)),a&&2048&o&&ll(t.alternate,t);break;case 24:dl(e,t,n,r,a),a&&2048&o&&sl(t.alternate,t);break;default:dl(e,t,n,r,a)}}function pl(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,a=r.flags;switch(r.tag){case 22:pl(n,r),2048&a&&ll(r.alternate,r);break;case 24:pl(n,r),2048&a&&sl(r.alternate,r);break;default:pl(n,r)}t=t.sibling}}function ml(e){if(e.subtreeFlags&Lb)for(e=e.child;null!==e;)hl(e),e=e.sibling}function hl(e){switch(e.tag){case 26:ml(e),e.flags&Lb&&null!==e.memoizedState&&function(e,t,n){if(null===vw)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var r=vw;if("stylesheet"===t.type&&("string"!=typeof n.media||!1!==matchMedia(n.media).matches)&&(t.state.loading&aw)===ew){if(null===t.instance){var a=Ac(n.href),o=e.querySelector(Ic(a));if(o)return null!==(e=o._p)&&"object"==typeof e&&"function"==typeof e.then&&(r.count++,r=qc.bind(r),e.then(r,r)),t.state.loading|=aw,t.instance=o,void ve(o);o=e.ownerDocument||e,n=Lc(n),(a=ow.get(a))&&Fc(n,a),ve(o=o.createElement("link"));var i=o;i._p=new Promise(function(e,t){i.onload=e,i.onerror=t}),Bs(o,"link",n),t.instance=o}null===r.stylesheets&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&rw)===ew&&(r.count++,t=qc.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}(Ib,e.memoizedState,e.memoizedProps);break;case 5:default:ml(e);break;case 3:case 4:var t=Ib;Ib=Pc(e.stateNode.containerInfo),ml(e),Ib=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=Lb,Lb=16777216,ml(e),Lb=t):ml(e))}}function gl(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function bl(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Pb=r,kl(r,e)}gl(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)yl(e),e=e.sibling}function yl(e){switch(e.tag){case 0:case 11:case 15:bl(e),2048&e.flags&&Ni(e,e.return,Ih|Rh);break;case 3:var t=sr();bl(e),e.stateNode.passiveEffectDuration+=cr(t);break;case 12:t=sr(),bl(e),e.stateNode.passiveEffectDuration+=ur(t);break;case 22:t=e.stateNode,null!==e.memoizedState&&t._visibility&cm&&(null===e.return||13!==e.return.tag)?(t._visibility&=~cm,vl(e)):bl(e);break;default:bl(e)}}function vl(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Pb=r,kl(r,e)}gl(e)}for(e=e.child;null!==e;)wl(e),e=e.sibling}function wl(e){switch(e.tag){case 0:case 11:case 15:Ni(e,e.return,Ih),vl(e);break;case 22:var t=e.stateNode;t._visibility&cm&&(t._visibility&=~cm,vl(e));break;default:vl(e)}}function kl(e,t){for(;null!==Pb;){var n=Pb,r=n;switch(r.tag){case 0:case 11:case 15:Ni(r,t,Ih);break;case 23:case 22:null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(null!=(r=r.memoizedState.cachePool.pool)&&ir(r));break;case 24:lr(r.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Pb=r;else e:for(n=e;null!==Pb;){var a=(r=Pb).sibling,o=r.return;if(Qi(r),r===n){Pb=null;break e}if(null!==a){a.return=o,Pb=a;break e}Pb=o}}}function xl(){var e="undefined"!=typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:void 0;return e||null===Zu.actQueue||console.error("The current testing environment is not configured to support act(...)"),e}function Sl(e){if((Gb&Ub)!==Fb&&0!==Jb)return Jb&-Jb;var t=Zu.T;return null!==t?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),0!==(e=ch)?e:ks()):pe()}function Cl(){0===wy&&(wy=536870912&Jb&&!Im?536870912:re());var e=Qg.current;return null!==e&&(e.flags|=32),wy}function El(e,t,n){if(tv&&console.error("useInsertionEffect must not schedule updates."),Gy&&(Xy=!0),(e!==Xb||uy!==ny&&uy!==cy)&&null===e.cancelPendingCommit||(jl(e,0),Pl(e,Jb,wy,!1)),ie(e,n),0!==(Gb&Ub)&&e===Xb){if(af)switch(t.tag){case 0:case 11:case 15:e=Zb&&N(Zb)||"Unknown",av.has(e)||(av.add(e),t=N(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:rv||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),rv=!0)}}else Td&&ue(e,t,n),function(e){xl()&&null===Zu.actQueue&&De(e,function(){console.error("An update to %s inside a test was not wrapped in act(...).\n\nWhen testing, code that causes React state updates should be wrapped into act(...):\n\nact(() => {\n /* fire events that update state */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act",N(e))})}(t),e===Xb&&((Gb&Ub)===Fb&&(yy|=n),gy===Qb&&Pl(e,Jb,wy,!1)),fs(e)}function Tl(e,t,n){if((Gb&(Ub|Hb))!==Fb)throw Error("Should not already be working.");for(var r=!n&&!(124&t)&&0===(t&e.expiredLanes)||te(e,t),a=r?function(e,t){var n=Gb;Gb|=Ub;var r=Il(),a=Ll();if(Xb!==e||Jb!==t){if(Td){var o=e.memoizedUpdaters;0<o.size&&(ds(e,Jb),o.clear()),de(e,t)}Py=null,_y=pd()+Ny,jl(e,t)}else py=te(e,t);Y(t);e:for(;;)try{if(uy!==ey&&null!==Zb)t:switch(t=Zb,o=dy,uy){case ty:uy=ey,dy=null,Wl(e,t,o,ty);break;case ny:case cy:if(kr(o)){uy=ey,dy=null,Ul(t);break}t=function(){uy!==ny&&uy!==cy||Xb!==e||(uy=ly),fs(e)},o.then(t,t);break e;case ry:uy=ly;break e;case ay:uy=oy;break e;case ly:kr(o)?(uy=ey,dy=null,Ul(t)):(uy=ey,dy=null,Wl(e,t,o,ly));break;case oy:var i=null;switch(Zb.tag){case 26:i=Zb.memoizedState;case 5:case 27:var l=Zb;if(!i||Bc(i)){uy=ey,dy=null;var s=l.sibling;if(null!==s)Zb=s;else{var c=l.return;null!==c?(Zb=c,Bl(c)):Zb=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}uy=ey,dy=null,Wl(e,t,o,oy);break;case iy:uy=ey,dy=null,Wl(e,t,o,iy);break;case sy:Rl(),gy=Kb;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}null!==Zu.actQueue?$l():Ol();break}catch(u){Al(e,u)}return Kn(),Zu.H=r,Zu.A=a,Gb=n,null!==Zb?(null!==Cd&&"function"==typeof Cd.markRenderYielded&&Cd.markRenderYielded(),Wb):(G(),Xb=null,Jb=0,pn(),gy)}(e,t):Dl(e,t,!0),o=r;;){if(a===Wb){py&&!r&&Pl(e,t,0,!1);break}if(n=e.current.alternate,!o||Nl(n)){if(a===Vb){if(o=t,e.errorRecoveryDisabledLanes&o)var i=0;else i=0!==(i=-536870913&e.pendingLanes)?i:536870912&i?536870912:0;if(0!==i){t=i;e:{var l=i;i=xy;var s=(a=e).current.memoizedState.isDehydrated;if(s&&(jl(a,l).flags|=256),(l=Dl(a,l,!1))!==Vb){if(my&&!s){a.errorRecoveryDisabledLanes|=o,yy|=o,a=Qb;break e}a=Sy,Sy=i,null!==a&&(null===Sy?Sy=a:Sy.push.apply(Sy,a))}a=l}if(o=!1,a!==Vb)continue}}if(a===Bb){jl(e,0),Pl(e,t,0,!0);break}e:{switch(r=e,a){case Wb:case Bb:throw Error("Root did not complete. This is a bug in React.");case Qb:if((4194048&t)!==t)break;case Kb:Pl(r,t,wy,!fy);break e;case Vb:Sy=null;break;case qb:case Yb:break;default:throw Error("Unknown root exit status.")}if(null!==Zu.actQueue)ql(r,n,t,Sy,Py,Cy,wy,yy,ky);else{if((62914560&t)===t&&10<(o=Ey+Ty-pd())){if(Pl(r,t,wy,!fy),0!==ee(r,0,!0))break e;r.timeoutHandle=Kv(_l.bind(null,r,n,Sy,Py,Cy,t,wy,yy,ky,fy,a,Ay,th,0),o);break e}_l(r,n,Sy,Py,Cy,t,wy,yy,ky,fy,a,Ry,th,0)}}break}a=Dl(e,t,!1),o=!1}fs(e)}function _l(e,t,n,r,a,o,i,l,s,c,u,d,f,p){if(e.timeoutHandle=Gv,(8192&(d=t.subtreeFlags)||!(16785408&~d))&&(vw={stylesheets:null,count:0,unsuspend:Vc},hl(t),null!==(d=function(){if(null===vw)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var e=vw;return e.stylesheets&&0===e.count&&Qc(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Qc(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}())))return e.cancelPendingCommit=d(ql.bind(null,e,t,o,n,r,a,i,l,s,u,jy,f,p)),void Pl(e,o,i,!c);ql(e,t,o,n,r,a,i,l,s)}function Nl(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!Wp(o(),a))return!1}catch(i){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Pl(e,t,n,r){t&=~vy,t&=~yy,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var o=31-_d(a),i=1<<o;r[o]=-1,a&=~i}0!==n&&le(e,n,t)}function zl(){return(Gb&(Ub|Hb))!==Fb||(ps(0),!1)}function Rl(){if(null!==Zb){if(uy===ey)var e=Zb.return;else e=Zb,Kn(),Zr(e),$g=null,Og=0,e=Zb;for(;null!==e;)ki(e.alternate,e),e=e.return;Zb=null}}function jl(e,t){var n=e.timeoutHandle;n!==Gv&&(e.timeoutHandle=Gv,Yv(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Rl(),Xb=e,Zb=n=Tn(e.current,null),Jb=t,uy=ey,dy=null,fy=!1,py=te(e,t),my=!1,gy=Wb,ky=wy=vy=yy=by=0,Sy=xy=null,Cy=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var a=31-_d(r),o=1<<a;t|=e[a],r&=~o}return hy=t,pn(),1e3<(t=Hm())-Fm&&(Zu.recentlyCreatedOwnerStacks=0,Fm=t),ph.discardPendingWarnings(),n}function Al(e,t){Gh=null,Zu.H=dg,Zu.getCurrentStack=null,af=!1,rf=null,t===Ch||t===Th?(t=Cr(),uy=ry):t===Eh?(t=Cr(),uy=ay):uy=t===pb?sy:null!==t&&"object"==typeof t&&"function"==typeof t.then?iy:ty,dy=t;var n=Zb;if(null===n)gy=Bb,$o(e,fn(t,e.current));else switch(n.mode&ym&&fr(n),K(),uy){case ty:null!==Cd&&"function"==typeof Cd.markComponentErrored&&Cd.markComponentErrored(n,t,Jb);break;case ny:case cy:case ry:case iy:case ly:null!==Cd&&"function"==typeof Cd.markComponentSuspended&&Cd.markComponentSuspended(n,t,Jb)}}function Il(){var e=Zu.H;return Zu.H=dg,null===e?dg:e}function Ll(){var e=Zu.A;return Zu.A=Mb,e}function Ml(){gy=Qb,fy||(4194048&Jb)!==Jb&&null!==Qg.current||(py=!0),!(134217727&by)&&!(134217727&yy)||null===Xb||Pl(Xb,Jb,wy,!1)}function Dl(e,t,n){var r=Gb;Gb|=Ub;var a=Il(),o=Ll();if(Xb!==e||Jb!==t){if(Td){var i=e.memoizedUpdaters;0<i.size&&(ds(e,Jb),i.clear()),de(e,t)}Py=null,jl(e,t)}Y(t),t=!1,i=gy;e:for(;;)try{if(uy!==ey&&null!==Zb){var l=Zb,s=dy;switch(uy){case sy:Rl(),i=Kb;break e;case ry:case ny:case cy:case iy:null===Qg.current&&(t=!0);var c=uy;if(uy=ey,dy=null,Wl(e,l,s,c),n&&py){i=Wb;break e}break;default:c=uy,uy=ey,dy=null,Wl(e,l,s,c)}}$l(),i=gy;break}catch(u){Al(e,u)}return t&&e.shellSuspendCounter++,Kn(),Gb=r,Zu.H=a,Zu.A=o,G(),null===Zb&&(Xb=null,Jb=0,pn()),i}function $l(){for(;null!==Zb;)Fl(Zb)}function Ol(){for(;null!==Zb&&!dd();)Fl(Zb)}function Fl(e){var t=e.alternate;(e.mode&ym)!==gm?(dr(e),t=De(e,pi,t,e,hy),fr(e)):t=De(e,pi,t,e,hy),e.memoizedProps=e.pendingProps,null===t?Bl(e):Zb=t}function Ul(e){var t=De(e,Hl,e);e.memoizedProps=e.pendingProps,null===t?Bl(e):Zb=t}function Hl(e){var t=e.alternate,n=(e.mode&ym)!==gm;switch(n&&dr(e),e.tag){case 15:case 0:t=Xo(t,e,e.pendingProps,e.type,void 0,Jb);break;case 11:t=Xo(t,e,e.pendingProps,e.type.render,e.ref,Jb);break;case 5:Zr(e);default:ki(t,e),t=pi(t,e=Zb=_n(e,hy),hy)}return n&&fr(e),t}function Wl(e,t,n,r){Kn(),Zr(t),$g=null,Og=0;var a=t.return;try{if(function(e,t,n,r,a){if(n.flags|=32768,Td&&ds(e,a),null!==r&&"object"==typeof r&&"function"==typeof r.then){if(null!==(t=n.alternate)&&Jn(t,n,a,!0),Im&&(Lm=!0),null!==(n=Qg.current)){switch(n.tag){case 13:return null===Kg?Ml():null===n.alternate&&gy===Wb&&(gy=qb),n.flags&=-257,n.flags|=65536,n.lanes=a,r===_h?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),ns(e,r,a)),!1;case 22:return n.flags|=65536,r===_h?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),ns(e,r,a)),!1}throw Error("Unexpected Suspense handler tag ("+n.tag+"). This is a bug in React.")}return ns(e,r,a),Ml(),!1}if(Im)return Lm=!0,null!==(t=Qg.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Om&&qn(fn(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:r}),n))):(r!==Om&&qn(fn(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:r}),n)),(e=e.current.alternate).flags|=65536,a&=-a,e.lanes|=a,r=fn(r,n),Rr(e,a=Fo(e.stateNode,r,a)),gy!==Qb&&(gy=Vb)),!1;var o=fn(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:r}),n);if(null===xy?xy=[o]:xy.push(o),gy!==Qb&&(gy=Vb),null===t)return!0;r=fn(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,Rr(n,e=Fo(n.stateNode,r,e)),!1;case 1:if(t=n.type,o=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===o||"function"!=typeof o.componentDidCatch||null!==zy&&zy.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,Ho(a=Uo(a),e,n,r),Rr(n,a),!1}n=n.return}while(null!==n);return!1}(e,a,t,n,Jb))return gy=Bb,$o(e,fn(n,e.current)),void(Zb=null)}catch(o){if(null!==a)throw Zb=a,o;return gy=Bb,$o(e,fn(n,e.current)),void(Zb=null)}32768&t.flags?(Im||r===ty?e=!0:py||536870912&Jb?e=!1:(fy=e=!0,(r===ny||r===cy||r===ry||r===iy)&&(null!==(r=Qg.current)&&13===r.tag&&(r.flags|=16384))),Vl(t,e)):Bl(t)}function Bl(e){var t=e;do{if(32768&t.flags)return void Vl(t,fy);var n=t.alternate;if(e=t.return,dr(t),n=De(t,vi,n,t,hy),(t.mode&ym)!==gm&&pr(t),null!==n)return void(Zb=n);if(null!==(t=t.sibling))return void(Zb=t);Zb=t=e}while(null!==t);gy===Wb&&(gy=Yb)}function Vl(e,t){do{var n=wi(e.alternate,e);if(null!==n)return n.flags&=32767,void(Zb=n);if((e.mode&ym)!==gm){pr(e),n=e.actualDuration;for(var r=e.child;null!==r;)n+=r.actualDuration,r=r.sibling;e.actualDuration=n}if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(Zb=e);Zb=e=n}while(null!==e);gy=Kb,Zb=null}function ql(e,t,n,r,a,o,i,l,s){e.cancelPendingCommit=null;do{Zl()}while(Fy!==Iy);if(ph.flushLegacyContextWarning(),ph.flushPendingUnsafeLifecycleWarnings(),(Gb&(Ub|Hb))!==Fb)throw Error("Should not already be working.");if(null!==Cd&&"function"==typeof Cd.markCommitStarted&&Cd.markCommitStarted(n),null===t)q();else{if(0===n&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(o=t.lanes|t.childLanes,function(e,t,n,r,a,o){var i=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var l=e.entanglements,s=e.expirationTimes,c=e.hiddenUpdates;for(n=i&~n;0<n;){var u=31-_d(n),d=1<<u;l[u]=0,s[u]=-1;var f=c[u];if(null!==f)for(c[u]=null,u=0;u<f.length;u++){var p=f[u];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&le(e,r,0),0!==o&&0===a&&0!==e.tag&&(e.suspendedLanes|=o&~(i&~t))}(e,n,o|=fm,i,l,s),e===Xb&&(Zb=Xb=null,Jb=0),Hy=t,Uy=e,Wy=n,By=o,Vy=a,qy=r,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,c=bd,u=function(){return Jl(),null},null!==(d=Zu.actQueue)?d.push(u):cd(c,u)):(e.callbackNode=null,e.callbackPriority=0),nh=eh(),r=!!(13878&t.flags),13878&t.subtreeFlags||r){r=Zu.T,Zu.T=null,a=Ju.p,Ju.p=jd,i=Gb,Gb|=Hb;try{!function(e,t){if(e=e.containerInfo,Bv=Rw,ln(e=on(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(m){n=null;break e}var i=0,l=-1,s=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var p;d!==n||0!==a&&3!==d.nodeType||(l=i+a),d!==o||0!==r&&3!==d.nodeType||(s=i+r),3===d.nodeType&&(i+=d.nodeValue.length),null!==(p=d.firstChild);)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++c===a&&(l=i),f===o&&++u===r&&(s=i),null!==(p=d.nextSibling))break;f=(d=f).parentNode}d=p}n=-1===l||-1===s?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vv={focusedElem:e,selectionRange:n},Rw=!1,Pb=t;null!==Pb;)if(e=(t=Pb).child,1024&t.subtreeFlags&&null!==e)e.return=t,Pb=e;else for(;null!==Pb;){switch(n=(e=t=Pb).alternate,a=e.flags,e.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:1024&a&&null!==n&&Ri(e,n);break;case 3:if(1024&a)if(9===(n=(e=e.stateNode.containerInfo).nodeType))bc(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":bc(e);break;default:e.textContent=""}break;default:if(1024&a)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(null!==(e=t.sibling)){e.return=t.return,Pb=e;break}Pb=t.return}}(e,t)}finally{Gb=i,Ju.p=a,Zu.T=r}}Fy=Ly,Ql(),Kl(),Yl()}var c,u,d}function Ql(){if(Fy===Ly){Fy=Iy;var e=Uy,t=Hy,n=Wy,r=!!(13878&t.flags);if(13878&t.subtreeFlags||r){r=Zu.T,Zu.T=null;var a=Ju.p;Ju.p=jd;var o=Gb;Gb|=Hb;try{zb=n,Rb=e,Ji(t,e),Rb=zb=null,n=Vv;var i=on(e.containerInfo),l=n.focusedElem,s=n.selectionRange;if(i!==l&&l&&l.ownerDocument&&an(l.ownerDocument.documentElement,l)){if(null!==s&&ln(l)){var c=s.start,u=s.end;if(void 0===u&&(u=c),"selectionStart"in l)l.selectionStart=c,l.selectionEnd=Math.min(u,l.value.length);else{var d=l.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=l.textContent.length,h=Math.min(s.start,m),g=void 0===s.end?h:Math.min(s.end,m);!p.extend&&h>g&&(i=g,g=h,h=i);var b=rn(l,h),y=rn(l,g);if(b&&y&&(1!==p.rangeCount||p.anchorNode!==b.node||p.anchorOffset!==b.offset||p.focusNode!==y.node||p.focusOffset!==y.offset)){var v=d.createRange();v.setStart(b.node,b.offset),p.removeAllRanges(),h>g?(p.addRange(v),p.extend(y.node,y.offset)):(v.setEnd(y.node,y.offset),p.addRange(v))}}}}for(d=[],p=l;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof l.focus&&l.focus(),l=0;l<d.length;l++){var w=d[l];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}Rw=!!Bv,Vv=Bv=null}finally{Gb=o,Ju.p=a,Zu.T=r}}e.current=t,Fy=My}}function Kl(){if(Fy===My){Fy=Iy;var e=Uy,t=Hy,n=Wy,r=!!(8772&t.flags);if(8772&t.subtreeFlags||r){r=Zu.T,Zu.T=null;var a=Ju.p;Ju.p=jd;var o=Gb;Gb|=Hb;try{null!==Cd&&"function"==typeof Cd.markLayoutEffectsStarted&&Cd.markLayoutEffectsStarted(n),zb=n,Rb=e,qi(e,t.alternate,t),Rb=zb=null,null!==Cd&&"function"==typeof Cd.markLayoutEffectsStopped&&Cd.markLayoutEffectsStopped()}finally{Gb=o,Ju.p=a,Zu.T=r}}Fy=Dy}}function Yl(){if(Fy===$y||Fy===Dy){Fy=Iy,fd();var e=Uy,t=Hy,n=Wy,r=qy,a=!!(10256&t.subtreeFlags)||!!(10256&t.flags);a?Fy=Oy:(Fy=Iy,Hy=Uy=null,Xl(e,e.pendingLanes),Jy=0,ev=null);var o=e.pendingLanes;if(0===o&&(zy=null),a||cs(e),a=fe(n),t=t.stateNode,Sd&&"function"==typeof Sd.onCommitFiberRoot)try{var i=!(128&~t.current.flags);switch(a){case jd:var l=hd;break;case Ad:l=gd;break;case Id:l=bd;break;case Ld:l=vd;break;default:l=bd}Sd.onCommitFiberRoot(xd,t,l,i)}catch(d){Ed||(Ed=!0,console.error("React instrumentation encountered an error: %s",d))}if(Td&&e.memoizedUpdaters.clear(),$b.forEach(function(e){return e()}),null!==r){i=Zu.T,l=Ju.p,Ju.p=jd,Zu.T=null;try{var s=e.onRecoverableError;for(t=0;t<r.length;t++){var c=r[t],u=Gl(c.stack);De(c.source,s,c.value,u)}}finally{Zu.T=i,Ju.p=l}}3&Wy&&Zl(),fs(e),o=e.pendingLanes,4194090&n&&42&o?(ih=!0,e===Yy?Ky++:(Ky=0,Yy=e)):Ky=0,ps(0),q()}}function Gl(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function Xl(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,lr(t)))}function Zl(e){return Ql(),Kl(),Yl(),Jl()}function Jl(){if(Fy!==Oy)return!1;var e=Uy,t=By;By=0;var n=fe(Wy),r=Id>n?Id:n;n=Zu.T;var a=Ju.p;try{Ju.p=r,Zu.T=null,r=Vy,Vy=null;var o=Uy,i=Wy;if(Fy=Iy,Hy=Uy=null,Wy=0,(Gb&(Ub|Hb))!==Fb)throw Error("Cannot flush passive effects while already rendering.");Gy=!0,Xy=!1,null!==Cd&&"function"==typeof Cd.markPassiveEffectsStarted&&Cd.markPassiveEffectsStarted(i);var l=Gb;if(Gb|=Hb,yl(o.current),ul(o,o.current,i,r),null!==Cd&&"function"==typeof Cd.markPassiveEffectsStopped&&Cd.markPassiveEffectsStopped(),cs(o),Gb=l,ps(0,!1),Xy?o===ev?Jy++:(Jy=0,ev=o):Jy=0,Xy=Gy=!1,Sd&&"function"==typeof Sd.onPostCommitFiberRoot)try{Sd.onPostCommitFiberRoot(xd,o)}catch(c){Ed||(Ed=!0,console.error("React instrumentation encountered an error: %s",c))}var s=o.current.stateNode;return s.effectDuration=0,s.passiveEffectDuration=0,!0}finally{Ju.p=a,Zu.T=n,Xl(e,t)}}function es(e,t,n){t=fn(n,t),null!==(e=Pr(e,t=Fo(e.stateNode,t,2),2))&&(ie(e,2),fs(e))}function ts(e,t,n){if(tv=!1,3===e.tag)es(e,e,n);else{for(;null!==t;){if(3===t.tag)return void es(t,e,n);if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===zy||!zy.has(r)))return e=fn(n,e),void(null!==(r=Pr(t,n=Uo(2),2))&&(Ho(n,r,t,e),ie(r,2),fs(r)))}t=t.return}console.error("Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.\n\nError message:\n\n%s",n)}}function ns(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Ob;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(my=!0,a.add(n),r=rs.bind(null,e,t,n),Td&&ds(e,n),t.then(r,r))}function rs(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,xl()&&null===Zu.actQueue&&console.error("A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\n\nWhen testing, code that resolves suspended data should be wrapped into act(...):\n\nact(() => {\n /* finish loading suspended data */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act"),Xb===e&&(Jb&n)===n&&(gy===Qb||gy===qb&&(62914560&Jb)===Jb&&pd()-Ey<Ty?(Gb&Ub)===Fb&&jl(e,0):vy|=n,ky===Jb&&(ky=0)),fs(e)}function as(e,t){0===t&&(t=ae()),null!==(e=gn(e,t))&&(ie(e,t),fs(e))}function os(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),as(e,n)}function is(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==r&&r.delete(t),as(e,n)}function ls(e,t,n){if(67117056&t.subtreeFlags)for(t=t.child;null!==t;){var r=e,a=t,o=a.type===Du;o=n||o,22!==a.tag?67108864&a.flags?o&&De(a,ss,r,a,(a.mode&km)===gm):ls(r,a,o):null===a.memoizedState&&(o&&8192&a.flags?De(a,ss,r,a):67108864&a.subtreeFlags&&De(a,ls,r,a,o)),t=t.sibling}}function ss(e,t){var n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];B(!0);try{rl(t),n&&wl(t),ol(e,t.alternate,t,!1),n&&fl(e,t,0,null,!1)}finally{B(!1)}}function cs(e){var t=!0;e.current.mode&(vm|wm)||(t=!1),ls(e,e.current,t)}function us(e){if((Gb&Ub)===Fb){var t=e.tag;if(3===t||1===t||0===t||11===t||14===t||15===t){if(t=N(e)||"ReactComponent",null!==nv){if(nv.has(t))return;nv.add(t)}else nv=new Set([t]);De(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")})}}}function ds(e,t){Td&&e.memoizedUpdaters.forEach(function(n){ue(e,n,t)})}function fs(e){e!==iv&&null===e.next&&(null===iv?ov=iv=e:iv=iv.next=e),cv=!0,null!==Zu.actQueue?sv||(sv=!0,ws()):lv||(lv=!0,ws())}function ps(e,t){if(!uv&&cv){uv=!0;do{for(var n=!1,r=ov;null!==r;){if(0!==e){var a=r.pendingLanes;if(0===a)var o=0;else{var i=r.suspendedLanes,l=r.pingedLanes;o=(1<<31-_d(42|e)+1)-1,o=201326741&(o&=a&~(i&~l))?201326741&o|1:o?2|o:0}0!==o&&(n=!0,ys(r,o))}else o=Jb,!(3&(o=ee(r,r===Xb?o:0,null!==r.cancelPendingCommit||r.timeoutHandle!==Gv)))||te(r,o)||(n=!0,ys(r,o));r=r.next}}while(n);uv=!1}}function ms(){hs()}function hs(){cv=sv=lv=!1;var e=0;0!==dv&&(function(){var e=window.event;if(e&&"popstate"===e.type)return e!==Qv&&(Qv=e,!0);return Qv=null,!1}()&&(e=dv),dv=0);for(var t=pd(),n=null,r=ov;null!==r;){var a=r.next,o=gs(r,t);0===o?(r.next=null,null===n?ov=a:n.next=a,null===a&&(iv=n)):(n=r,(0!==e||3&o)&&(cv=!0)),r=a}ps(e)}function gs(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=-62914561&e.pendingLanes;0<o;){var i=31-_d(o),l=1<<i,s=a[i];-1===s?0!==(l&n)&&0===(l&r)||(a[i]=ne(l,t)):s<=t&&(e.expiredLanes|=l),o&=~l}if(n=Jb,n=ee(e,e===(t=Xb)?n:0,null!==e.cancelPendingCommit||e.timeoutHandle!==Gv),r=e.callbackNode,0===n||e===t&&(uy===ny||uy===cy)||null!==e.cancelPendingCommit)return null!==r&&vs(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||te(e,n)){if((t=n&-n)===e.callbackPriority&&(null===Zu.actQueue||r===fv))return t;switch(vs(r),fe(n)){case jd:case Ad:n=gd;break;case Id:n=bd;break;case Ld:n=vd;break;default:n=bd}return r=bs.bind(null,e),null!==Zu.actQueue?(Zu.actQueue.push(r),n=fv):n=cd(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&vs(r),e.callbackPriority=2,e.callbackNode=null,2}function bs(e,t){if(ih=oh=!1,Fy!==Iy&&Fy!==Oy)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Zl()&&e.callbackNode!==n)return null;var r=Jb;return 0===(r=ee(e,e===Xb?r:0,null!==e.cancelPendingCommit||e.timeoutHandle!==Gv))?null:(Tl(e,r,t),gs(e,pd()),null!=e.callbackNode&&e.callbackNode===n?bs.bind(null,e):null)}function ys(e,t){if(Zl())return null;oh=ih,ih=!1,Tl(e,t,!0)}function vs(e){e!==fv&&null!==e&&ud(e)}function ws(){null!==Zu.actQueue&&Zu.actQueue.push(function(){return hs(),null}),Zv(function(){(Gb&(Ub|Hb))!==Fb?cd(hd,ms):hs()})}function ks(){return 0===dv&&(dv=re()),dv}function xs(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:(U(e,"action"),zt(""+e))}function Ss(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Cs(e,t,n){e.currentTarget=n;try{t(e)}catch(r){ub(r)}e.currentTarget=null}function Es(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n];e:{var a=void 0,o=r.event;if(r=r.listeners,t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==a&&o.isPropagationStopped())break e;null!==s?De(s,Cs,o,l,c):Cs(o,l,c),a=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,c=l.currentTarget,l=l.listener,s!==a&&o.isPropagationStopped())break e;null!==s?De(s,Cs,o,l,c):Cs(o,l,c),a=s}}}}function Ts(e,t){mv.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n=t[Fd];void 0===n&&(n=t[Fd]=new Set);var r=e+"__bubble";n.has(r)||(Ps(t,e,2,!1),n.add(r))}function _s(e,t,n){mv.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var r=0;t&&(r|=4),Ps(n,e,r,t)}function Ns(e){if(!e[hv]){e[hv]=!0,Vd.forEach(function(t){"selectionchange"!==t&&(mv.has(t)||_s(t,!1,e),_s(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[hv]||(t[hv]=!0,_s("selectionchange",!1,t))}}function Ps(e,t,n,r){switch(cu(t)){case jd:var a=au;break;case Ad:a=ou;break;default:a=iu}n=a.bind(null,t,n,e),a=void 0,!ep||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function zs(e,t,n,r,a){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===a)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&i.stateNode.containerInfo===a)return;i=i.return}for(;null!==l;){if(null===(i=he(l)))return;if(5===(s=i.tag)||6===s||26===s||27===s){r=o=i;continue e}l=l.parentNode}}r=r.return}At(function(){var r=o,a=Rt(n),i=[];e:{var l=om.get(e);if(void 0!==l){var s=cp,c=e;switch(e){case"keypress":if(0===Mt(n))break e;case"keydown":case"keyup":s=Sp;break;case"focusin":c="focus",s=hp;break;case"focusout":c="blur",s=hp;break;case"beforeblur":case"afterblur":s=hp;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=pp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=mp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Ep;break;case Zp:case Jp:case em:s=gp;break;case am:s=Tp;break;case"scroll":case"scrollend":s=dp;break;case"wheel":s=_p;break;case"copy":case"cut":case"paste":s=bp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Cp;break;case"toggle":case"beforetoggle":s=Np}var u=!!(4&t),d=!u&&("scroll"===e||"scrollend"===e),f=u?null!==l?l+"Capture":null:l;u=[];for(var p,m=r;null!==m;){var h=m;if(p=h.stateNode,5!==(h=h.tag)&&26!==h&&27!==h||null===p||null===f||null!=(h=It(m,f))&&u.push(Rs(m,h,p)),d)break;m=m.return}0<u.length&&(l=new s(l,c,null,n,a),i.push({event:l,listeners:u}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===Yf||!(c=n.relatedTarget||n.fromElement)||!he(c)&&!c[Od])&&(s||l)&&(l=a.window===a?a:(l=a.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(c=(c=n.relatedTarget||n.toElement)?he(c):null)&&(d=k(c),u=c.tag,c!==d||5!==u&&27!==u&&6!==u)&&(c=null)):(s=null,c=r),s!==c)){if(u=pp,h="onMouseLeave",f="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(u=Cp,h="onPointerLeave",f="onPointerEnter",m="pointer"),d=null==s?l:be(s),p=null==c?l:be(c),(l=new u(h,m+"leave",s,n,a)).target=d,l.relatedTarget=p,h=null,he(a)===r&&((u=new u(f,m+"enter",c,n,a)).target=p,u.relatedTarget=d,h=u),d=h,s&&c)e:{for(f=c,m=0,p=u=s;p;p=As(p))m++;for(p=0,h=f;h;h=As(h))p++;for(;0<m-p;)u=As(u),m--;for(;0<p-m;)f=As(f),p--;for(;m--;){if(u===f||null!==f&&u===f.alternate)break e;u=As(u),f=As(f)}u=null}else u=null;null!==s&&Is(i,l,s,u,!1),null!==c&&null!==d&&Is(i,d,c,u,!0)}if("select"===(s=(l=r?be(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=Kt;else if(Bt(l))if(Hp)g=en;else{g=Zt;var b=Xt}else!(s=l.nodeName)||"input"!==s.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?r&&Tt(r.elementType)&&(g=Kt):g=Jt;switch(g&&(g=g(e,r))?Vt(i,g,n,a):(b&&b(e,l,r),"focusout"===e&&r&&"number"===l.type&&null!=r.memoizedProps.value&&Ke(l,"number",l.value)),b=r?be(r):window,e){case"focusin":(Bt(b)||"true"===b.contentEditable)&&(Vp=b,qp=r,Qp=null);break;case"focusout":Qp=qp=Vp=null;break;case"mousedown":Kp=!0;break;case"contextmenu":case"mouseup":case"dragend":Kp=!1,sn(i,n,a);break;case"selectionchange":if(Bp)break;case"keydown":case"keyup":sn(i,n,a)}var y;if(Rp)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else $p?Ht(e,n)&&(v="onCompositionEnd"):"keydown"===e&&n.keyCode===zp&&(v="onCompositionStart");v&&(Ip&&"ko"!==n.locale&&($p||"onCompositionStart"!==v?"onCompositionEnd"===v&&$p&&(y=Lt()):(ip="value"in(op=a)?op.value:op.textContent,$p=!0)),0<(b=js(r,v)).length&&(v=new yp(v,e,null,n,a),i.push({event:v,listeners:b}),y?v.data=y:null!==(y=Wt(n))&&(v.data=y))),(y=Ap?function(e,t){switch(e){case"compositionend":return Wt(t);case"keypress":return t.which!==Lp?null:(Dp=!0,Mp);case"textInput":return(e=t.data)===Mp&&Dp?null:e;default:return null}}(e,n):function(e,t){if($p)return"compositionend"===e||!Rp&&Ht(e,t)?(e=Lt(),lp=ip=op=null,$p=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ip&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(v=js(r,"onBeforeInput")).length&&(b=new vp("onBeforeInput","beforeinput",null,n,a),i.push({event:b,listeners:v}),b.data=y)),function(e,t,n,r,a){if("submit"===t&&n&&n.stateNode===a){var o=xs((a[$d]||null).action),i=r.submitter;i&&null!==(t=(t=i[$d]||null)?xs(t.formAction):i.getAttribute("formAction"))&&(o=t,i=null);var l=new cp("action","action",null,r,a);e.push({event:l,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==dv){var e=i?Ss(a,i):new FormData(a),t={pending:!0,data:e,method:a.method,action:o};Object.freeze(t),Ja(n,t,null,e)}}else"function"==typeof o&&(l.preventDefault(),t={pending:!0,data:e=i?Ss(a,i):new FormData(a),method:a.method,action:o},Object.freeze(t),Ja(n,t,o,e))},currentTarget:a}]})}}(i,e,r,n,a)}Es(i,t)})}function Rs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function js(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;if(5!==(a=a.tag)&&26!==a&&27!==a||null===o||(null!=(a=It(e,n))&&r.unshift(Rs(e,a,o)),null!=(a=It(e,t))&&r.push(Rs(e,a,o))),3===e.tag)return r;e=e.return}return[]}function As(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Is(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(l=l.tag,null!==s&&s===r)break;5!==l&&26!==l&&27!==l||null===c||(s=c,a?null!=(c=It(n,o))&&i.unshift(Rs(n,c,s)):a||null!=(c=It(n,o))&&i.push(Rs(n,c,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}function Ls(e,t){!function(e,t){var n,r=[];for(n in t)Nt(e,n)||r.push(n);t=r.map(function(e){return"`"+e+"`"}).join(", "),1===r.length?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<r.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}(e,t),"input"!==e&&"textarea"!==e&&"select"!==e||null==t||null!==t.value||Hf||(Hf=!0,"select"===e&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var n={registrationNameDependencies:qd,possibleRegistrationNames:Qd};Tt(e)||"string"==typeof t.is||function(e,t,n){var r,a=[];for(r in t)Pt(e,r,t[r],n)||a.push(r);t=a.map(function(e){return"`"+e+"`"}).join(", "),1===a.length?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<a.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}(e,t,n),t.contentEditable&&!t.suppressContentEditableWarning&&null!=t.children&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function Ms(e,t,n,r){t!==n&&(n=Os(n),Os(t)!==n&&(r[e]=t))}function Ds(e,t){!1===t?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function $s(e,t){return(e=e.namespaceURI===If||e.namespaceURI===Lf?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName)).innerHTML=t,e.innerHTML}function Os(e){return O(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",$(e)),F(e)),("string"==typeof e?e:""+e).replace(Cv,"\n").replace(Ev,"")}function Fs(e,t){return t=Os(t),Os(e)===t}function Us(){}function Hs(e,t,n,r,a,o){switch(n){case"children":"string"==typeof r?(xt(r,t,!1),"body"===t||"textarea"===t&&""===r||St(e,r)):"number"!=typeof r&&"bigint"!=typeof r||(xt(""+r,t,!1),"body"!==t&&St(e,""+r));break;case"className":Te(e,"class",r);break;case"tabIndex":Te(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Te(e,n,r);break;case"style":Et(e,r,o);break;case"data":if("object"!==t){Te(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){"src"===n?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',n,n):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',n,n),e.removeAttribute(n);break}if(null==r||"function"==typeof r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}U(r,n),r=zt(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(null!=r&&("form"===t?"formAction"===n?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):"function"==typeof r&&(null==a.encType&&null==a.method||kv||(kv=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),null==a.target||wv||(wv=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):"input"===t||"button"===t?"action"===n?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):"input"!==t||"submit"===a.type||"image"===a.type||yv?"button"!==t||null==a.type||"submit"===a.type||yv?"function"==typeof r&&(null==a.name||vv||(vv=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),null==a.formEncType&&null==a.formMethod||kv||(kv=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),null==a.formTarget||wv||(wv=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(yv=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(yv=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):"action"===n?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),"function"==typeof r){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof o&&("formAction"===n?("input"!==t&&Hs(e,t,"name",a.name,a,null),Hs(e,t,"formEncType",a.formEncType,a,null),Hs(e,t,"formMethod",a.formMethod,a,null),Hs(e,t,"formTarget",a.formTarget,a,null)):(Hs(e,t,"encType",a.encType,a,null),Hs(e,t,"method",a.method,a,null),Hs(e,t,"target",a.target,a,null))),null==r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}U(r,n),r=zt(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&("function"!=typeof r&&Ds(n,r),e.onclick=Us);break;case"onScroll":null!=r&&("function"!=typeof r&&Ds(n,r),Ts("scroll",e));break;case"onScrollEnd":null!=r&&("function"!=typeof r&&Ds(n,r),Ts("scrollend",e));break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(null!=(n=r.__html)){if(null!=a.children)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"muted":e.muted=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"==typeof r||"boolean"==typeof r||"symbol"==typeof r){e.removeAttribute("xlink:href");break}U(r,n),n=zt(""+r),e.setAttributeNS(Tv,"xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!=typeof r&&"symbol"!=typeof r?(U(r,n),e.setAttribute(n,""+r)):e.removeAttribute(n);break;case"inert":""!==r||Sv[n]||(Sv[n]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",n));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!=typeof r&&"symbol"!=typeof r?(U(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!=typeof r&&"symbol"!=typeof r&&!isNaN(r)&&1<=r?(U(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"==typeof r||"symbol"==typeof r||isNaN(r)?e.removeAttribute(n):(U(r,n),e.setAttribute(n,r));break;case"popover":Ts("beforetoggle",e),Ts("toggle",e),Ee(e,"popover",r);break;case"xlinkActuate":_e(e,Tv,"xlink:actuate",r);break;case"xlinkArcrole":_e(e,Tv,"xlink:arcrole",r);break;case"xlinkRole":_e(e,Tv,"xlink:role",r);break;case"xlinkShow":_e(e,Tv,"xlink:show",r);break;case"xlinkTitle":_e(e,Tv,"xlink:title",r);break;case"xlinkType":_e(e,Tv,"xlink:type",r);break;case"xmlBase":_e(e,_v,"xml:base",r);break;case"xmlLang":_e(e,_v,"xml:lang",r);break;case"xmlSpace":_e(e,_v,"xml:space",r);break;case"is":null!=o&&console.error('Cannot update the "is" prop after it has been initialized.'),Ee(e,"is",r);break;case"innerText":case"textContent":break;case"popoverTarget":xv||null==r||"object"!=typeof r||(xv=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",r));default:!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1]?Ee(e,n=_t(n),r):qd.hasOwnProperty(n)&&null!=r&&"function"!=typeof r&&Ds(n,r)}}function Ws(e,t,n,r,a,o){switch(n){case"style":Et(e,r,o);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(null!=(n=r.__html)){if(null!=a.children)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case"children":"string"==typeof r?St(e,r):("number"==typeof r||"bigint"==typeof r)&&St(e,""+r);break;case"onScroll":null!=r&&("function"!=typeof r&&Ds(n,r),Ts("scroll",e));break;case"onScrollEnd":null!=r&&("function"!=typeof r&&Ds(n,r),Ts("scrollend",e));break;case"onClick":null!=r&&("function"!=typeof r&&Ds(n,r),e.onclick=Us);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:qd.hasOwnProperty(n)?null!=r&&"function"!=typeof r&&Ds(n,r):"o"!==n[0]||"n"!==n[1]||(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),"function"==typeof(o=null!=(o=e[$d]||null)?o[n]:null)&&e.removeEventListener(t,o,a),"function"!=typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):Ee(e,n,r):("function"!=typeof o&&null!==o&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a))}}function Bs(e,t,n){switch(Ls(t,n),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ts("error",e),Ts("load",e);var r,a=!1,o=!1;for(r in n)if(n.hasOwnProperty(r)){var i=n[r];if(null!=i)switch(r){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Hs(e,t,r,i,n,null)}}return o&&Hs(e,t,"srcSet",n.srcSet,n,null),void(a&&Hs(e,t,"src",n.src,n,null));case"input":xe("input",n),Ts("invalid",e);var l=r=i=o=null,s=null,c=null;for(a in n)if(n.hasOwnProperty(a)){var u=n[a];if(null!=u)switch(a){case"name":o=u;break;case"type":i=u;break;case"checked":s=u;break;case"defaultChecked":c=u;break;case"value":r=u;break;case"defaultValue":l=u;break;case"children":case"dangerouslySetInnerHTML":if(null!=u)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Hs(e,t,a,u,n,null)}}return Ve(0,n),Qe(e,r,l,s,c,i,o,!1),void Ue(e);case"select":for(o in xe("select",n),Ts("invalid",e),a=i=r=null,n)if(n.hasOwnProperty(o)&&null!=(l=n[o]))switch(o){case"value":r=l;break;case"defaultValue":i=l;break;case"multiple":a=l;default:Hs(e,t,o,l,n,null)}return Ze(e,n),t=r,n=i,e.multiple=!!a,void(null!=t?Xe(e,!!a,t,!1):null!=n&&Xe(e,!!a,n,!0));case"textarea":for(i in xe("textarea",n),Ts("invalid",e),r=o=a=null,n)if(n.hasOwnProperty(i)&&null!=(l=n[i]))switch(i){case"value":a=l;break;case"defaultValue":o=l;break;case"children":r=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Hs(e,t,i,l,n,null)}return Je(0,n),tt(e,a,o,r),void Ue(e);case"option":for(s in Ye(0,n),n)if(n.hasOwnProperty(s)&&null!=(a=n[s]))if("selected"===s)e.selected=a&&"function"!=typeof a&&"symbol"!=typeof a;else Hs(e,t,s,a,n,null);return;case"dialog":Ts("beforetoggle",e),Ts("toggle",e),Ts("cancel",e),Ts("close",e);break;case"iframe":case"object":Ts("load",e);break;case"video":case"audio":for(a=0;a<pv.length;a++)Ts(pv[a],e);break;case"image":Ts("error",e),Ts("load",e);break;case"details":Ts("toggle",e);break;case"embed":case"source":case"link":Ts("error",e),Ts("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&null!=(a=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Hs(e,t,c,a,n,null)}return;default:if(Tt(t)){for(u in n)n.hasOwnProperty(u)&&(void 0!==(a=n[u])&&Ws(e,t,u,a,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(a=n[l])&&Hs(e,t,l,a,n,null))}function Vs(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function qs(e){var t={};e=e.style;for(var n=0;n<e.length;n++){var r=e[n];t[r]=e.getPropertyValue(r)}return t}function Qs(e,t,n){if(null!=t&&"object"!=typeof t)console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var r,a,o=r="";for(a in t)if(t.hasOwnProperty(a)){var i=t[a];null!=i&&"boolean"!=typeof i&&""!==i&&(0===a.indexOf("--")?(H(i,a),r+=o+a+":"+(""+i).trim()):"number"!=typeof i||0===i||Af.has(a)?(H(i,a),r+=o+a.replace(Sf,"-$1").toLowerCase().replace(Cf,"-ms-")+":"+(""+i).trim()):r+=o+a.replace(Sf,"-$1").toLowerCase().replace(Cf,"-ms-")+":"+i+"px",o=";")}r=r||null,(t=e.getAttribute("style"))!==r&&(r=Os(r),Os(t)!==r&&(n.style=qs(e)))}}function Ks(e,t,n,r,a,o){if(a.delete(n),null===(e=e.getAttribute(n)))switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return}else if(null!=r)switch(typeof r){case"function":case"symbol":case"boolean":break;default:if(U(r,t),e===""+r)return}Ms(t,e,r,o)}function Ys(e,t,n,r,a,o){if(a.delete(n),null===(e=e.getAttribute(n))){switch(typeof r){case"function":case"symbol":return}if(!r)return}else switch(typeof r){case"function":case"symbol":break;default:if(r)return}Ms(t,e,r,o)}function Gs(e,t,n,r,a,o){if(a.delete(n),null===(e=e.getAttribute(n)))switch(typeof r){case"undefined":case"function":case"symbol":return}else if(null!=r)switch(typeof r){case"function":case"symbol":break;default:if(U(r,n),e===""+r)return}Ms(t,e,r,o)}function Xs(e,t,n,r,a,o){if(a.delete(n),null===(e=e.getAttribute(n)))switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(r))return}else if(null!=r)switch(typeof r){case"function":case"symbol":case"boolean":break;default:if(!isNaN(r)&&(U(r,t),e===""+r))return}Ms(t,e,r,o)}function Zs(e,t,n,r,a,o){if(a.delete(n),null===(e=e.getAttribute(n)))switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return}else if(null!=r)switch(typeof r){case"function":case"symbol":case"boolean":break;default:if(U(r,t),e===(n=zt(""+r)))return}Ms(t,e,r,o)}function Js(e,t,n,r){for(var a={},o=new Set,i=e.attributes,l=0;l<i.length;l++)switch(i[l].name.toLowerCase()){case"value":case"checked":case"selected":break;default:o.add(i[l].name)}if(Tt(t)){for(var s in n)if(n.hasOwnProperty(s)){var c=n[s];if(null!=c)if(qd.hasOwnProperty(s))"function"!=typeof c&&Ds(s,c);else if(!0!==n.suppressHydrationWarning)switch(s){case"children":"string"!=typeof c&&"number"!=typeof c||Ms("children",e.textContent,c,a);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":i=e.innerHTML,null!=(c=c?c.__html:void 0)&&Ms(s,i,c=$s(e,c),a);continue;case"style":o.delete(s),Qs(e,c,a);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":o.delete(s.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",s);continue;case"className":o.delete("class"),Ms("className",i=Ce(e,"class",c),c,a);continue;default:r.context===Uv&&"svg"!==t&&"math"!==t?o.delete(s.toLowerCase()):o.delete(s),Ms(s,i=Ce(e,s,c),c,a)}}}else for(c in n)if(n.hasOwnProperty(c)&&null!=(s=n[c]))if(qd.hasOwnProperty(c))"function"!=typeof s&&Ds(c,s);else if(!0!==n.suppressHydrationWarning)switch(c){case"children":"string"!=typeof s&&"number"!=typeof s||Ms("children",e.textContent,s,a);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":i=e.innerHTML,null!=(s=s?s.__html:void 0)&&(i!==(s=$s(e,s))&&(a[c]={__html:i}));continue;case"className":Ks(e,c,"class",s,o,a);continue;case"tabIndex":Ks(e,c,"tabindex",s,o,a);continue;case"style":o.delete(c),Qs(e,s,a);continue;case"multiple":o.delete(c),Ms(c,e.multiple,s,a);continue;case"muted":o.delete(c),Ms(c,e.muted,s,a);continue;case"autoFocus":o.delete("autofocus"),Ms(c,e.autofocus,s,a);continue;case"data":if("object"!==t){o.delete(c),Ms(c,i=e.getAttribute("data"),s,a);continue}case"src":case"href":if(!(""!==s||"a"===t&&"href"===c||"object"===t&&"data"===c)){"src"===c?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',c,c):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',c,c);continue}Zs(e,c,c,s,o,a);continue;case"action":case"formAction":if(i=e.getAttribute(c),"function"==typeof s){o.delete(c.toLowerCase()),"formAction"===c?(o.delete("name"),o.delete("formenctype"),o.delete("formmethod"),o.delete("formtarget")):(o.delete("enctype"),o.delete("method"),o.delete("target"));continue}if(i===Nv){o.delete(c.toLowerCase()),Ms(c,"function",s,a);continue}Zs(e,c,c.toLowerCase(),s,o,a);continue;case"xlinkHref":Zs(e,c,"xlink:href",s,o,a);continue;case"contentEditable":Gs(e,c,"contenteditable",s,o,a);continue;case"spellCheck":Gs(e,c,"spellcheck",s,o,a);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Gs(e,c,c,s,o,a);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":Ys(e,c,c.toLowerCase(),s,o,a);continue;case"capture":case"download":e:{l=e;var u=i=c,d=a;if(o.delete(u),null===(l=l.getAttribute(u)))switch(typeof s){case"undefined":case"function":case"symbol":break e;default:if(!1===s)break e}else if(null!=s)switch(typeof s){case"function":case"symbol":break;case"boolean":if(!0===s&&""===l)break e;break;default:if(U(s,i),l===""+s)break e}Ms(i,l,s,d)}continue;case"cols":case"rows":case"size":case"span":e:{if(l=e,u=i=c,d=a,o.delete(u),null===(l=l.getAttribute(u)))switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(s)||1>s)break e}else if(null!=s)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(s)||1>s)&&(U(s,i),l===""+s))break e}Ms(i,l,s,d)}continue;case"rowSpan":Xs(e,c,"rowspan",s,o,a);continue;case"start":Xs(e,c,c,s,o,a);continue;case"xHeight":Ks(e,c,"x-height",s,o,a);continue;case"xlinkActuate":Ks(e,c,"xlink:actuate",s,o,a);continue;case"xlinkArcrole":Ks(e,c,"xlink:arcrole",s,o,a);continue;case"xlinkRole":Ks(e,c,"xlink:role",s,o,a);continue;case"xlinkShow":Ks(e,c,"xlink:show",s,o,a);continue;case"xlinkTitle":Ks(e,c,"xlink:title",s,o,a);continue;case"xlinkType":Ks(e,c,"xlink:type",s,o,a);continue;case"xmlBase":Ks(e,c,"xml:base",s,o,a);continue;case"xmlLang":Ks(e,c,"xml:lang",s,o,a);continue;case"xmlSpace":Ks(e,c,"xml:space",s,o,a);continue;case"inert":""!==s||Sv[c]||(Sv[c]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",c)),Ys(e,c,c,s,o,a);continue;default:if(!(2<c.length)||"o"!==c[0]&&"O"!==c[0]||"n"!==c[1]&&"N"!==c[1]){l=_t(c),i=!1,r.context===Uv&&"svg"!==t&&"math"!==t?o.delete(l.toLowerCase()):(u=c.toLowerCase(),null!==(u=Df.hasOwnProperty(u)&&Df[u]||null)&&u!==c&&(i=!0,o.delete(u)),o.delete(l));e:if(u=e,d=l,l=s,Se(d))if(u.hasAttribute(d))u=u.getAttribute(d),U(l,d),l=u===""+l?l:u;else{switch(typeof l){case"function":case"symbol":break e;case"boolean":if("data-"!==(u=d.toLowerCase().slice(0,5))&&"aria-"!==u)break e}l=void 0===l?void 0:null}else l=void 0;i||Ms(c,l,s,a)}}return 0<o.size&&!0!==n.suppressHydrationWarning&&function(e,t,n){t.forEach(function(t){n[Vs(t)]="style"===t?qs(e):e.getAttribute(t)})}(e,o,a),0===Object.keys(a).length?null:a}function ec(e){return 9===e.nodeType?e:e.ownerDocument}function tc(e){switch(e){case Lf:return Hv;case If:return Wv;default:return Uv}}function nc(e,t){if(e===Uv)switch(t){case"svg":return Hv;case"math":return Wv;default:return Uv}return e===Hv&&"foreignObject"===t?Uv:e}function rc(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}function ac(e){setTimeout(function(){throw e})}function oc(e,t,n){switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&e.focus();break;case"img":n.src?e.src=n.src:n.srcSet&&(e.srcset=n.srcSet)}}function ic(e,t,n,r){!function(e,t,n,r){switch(Ls(t,r),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,o=null,i=null,l=null,s=null,c=null,u=null;for(p in n){var d=n[p];if(n.hasOwnProperty(p)&&null!=d)switch(p){case"checked":case"value":break;case"defaultValue":s=d;default:r.hasOwnProperty(p)||Hs(e,t,p,null,r,d)}}for(var f in r){var p=r[f];if(d=n[f],r.hasOwnProperty(f)&&(null!=p||null!=d))switch(f){case"type":o=p;break;case"name":a=p;break;case"checked":c=p;break;case"defaultChecked":u=p;break;case"value":i=p;break;case"defaultValue":l=p;break;case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:p!==d&&Hs(e,t,f,p,r,d)}}return t="checkbox"===n.type||"radio"===n.type?null!=n.checked:null!=n.value,r="checkbox"===r.type||"radio"===r.type?null!=r.checked:null!=r.value,t||!r||bv||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),bv=!0),!t||r||gv||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),gv=!0),void qe(e,i,l,s,c,u,o,a);case"select":for(o in p=i=l=f=null,n)if(s=n[o],n.hasOwnProperty(o)&&null!=s)switch(o){case"value":break;case"multiple":p=s;default:r.hasOwnProperty(o)||Hs(e,t,o,null,r,s)}for(a in r)if(o=r[a],s=n[a],r.hasOwnProperty(a)&&(null!=o||null!=s))switch(a){case"value":f=o;break;case"defaultValue":l=o;break;case"multiple":i=o;default:o!==s&&Hs(e,t,a,o,r,s)}return r=l,t=i,n=p,void(null!=f?Xe(e,!!t,f,!1):!!n!=!!t&&(null!=r?Xe(e,!!t,r,!0):Xe(e,!!t,t?[]:"",!1)));case"textarea":for(l in p=f=null,n)if(a=n[l],n.hasOwnProperty(l)&&null!=a&&!r.hasOwnProperty(l))switch(l){case"value":case"children":break;default:Hs(e,t,l,null,r,a)}for(i in r)if(a=r[i],o=n[i],r.hasOwnProperty(i)&&(null!=a||null!=o))switch(i){case"value":f=a;break;case"defaultValue":p=a;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=a)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:a!==o&&Hs(e,t,i,a,r,o)}return void et(e,f,p);case"option":for(var m in n)f=n[m],n.hasOwnProperty(m)&&null!=f&&!r.hasOwnProperty(m)&&("selected"===m?e.selected=!1:Hs(e,t,m,null,r,f));for(s in r)f=r[s],p=n[s],!r.hasOwnProperty(s)||f===p||null==f&&null==p||("selected"===s?e.selected=f&&"function"!=typeof f&&"symbol"!=typeof f:Hs(e,t,s,f,r,p));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var h in n)f=n[h],n.hasOwnProperty(h)&&null!=f&&!r.hasOwnProperty(h)&&Hs(e,t,h,null,r,f);for(c in r)if(f=r[c],p=n[c],r.hasOwnProperty(c)&&f!==p&&(null!=f||null!=p))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Hs(e,t,c,f,r,p)}return;default:if(Tt(t)){for(var g in n)f=n[g],n.hasOwnProperty(g)&&void 0!==f&&!r.hasOwnProperty(g)&&Ws(e,t,g,void 0,r,f);for(u in r)f=r[u],p=n[u],!r.hasOwnProperty(u)||f===p||void 0===f&&void 0===p||Ws(e,t,u,f,r,p);return}}for(var b in n)f=n[b],n.hasOwnProperty(b)&&null!=f&&!r.hasOwnProperty(b)&&Hs(e,t,b,null,r,f);for(d in r)f=r[d],p=n[d],!r.hasOwnProperty(d)||f===p||null==f&&null==p||Hs(e,t,d,f,r,p)}(e,t,n,r),e[$d]=r}function lc(e){St(e,"")}function sc(e,t,n){e.nodeValue=n}function cc(e){return"head"===e}function uc(e,t){e.removeChild(t)}function dc(e,t){(9===e.nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e).removeChild(t)}function fc(e,t){var n=t,r=0,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if((n=o.data)===Rv){if(0<r&&8>r){n=r;var i=e.ownerDocument;if(n&Iv&&Nc(i.documentElement),n&Lv&&Nc(i.body),n&Mv)for(Nc(n=i.head),i=n.firstChild;i;){var l=i.nextSibling,s=i.nodeName;i[Bd]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===i.rel.toLowerCase()||n.removeChild(i),i=l}}if(0===a)return e.removeChild(o),void yu(t);a--}else n===zv||n===jv||n===Av?a++:r=n.charCodeAt(0)-48;else r=0;n=o}while(n);yu(t)}function pc(e){"function"==typeof(e=e.style).setProperty?e.setProperty("display","none","important"):e.display="none"}function mc(e){e.nodeValue=""}function hc(e,t){t=null!=(t=t[Fv])&&t.hasOwnProperty("display")?t.display:null,e.style.display=null==t||"boolean"==typeof t?"":(""+t).trim()}function gc(e,t){e.nodeValue=t}function bc(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":bc(n),me(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function yc(e){return e.data===Av||e.data===jv&&e.ownerDocument.readyState===Ov}function vc(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if((t=e.data)===zv||t===Av||t===jv||t===Dv||t===$v)break;if(t===Rv)return null}}return e}function wc(e){if(1===e.nodeType){for(var t=e.nodeName.toLowerCase(),n={},r=e.attributes,a=0;a<r.length;a++){var o=r[a];n[Vs(o.name)]="style"===o.name.toLowerCase()?qs(e):o.value}return{type:t,props:n}}return 8===e.nodeType?{type:"Suspense",props:{}}:e.nodeValue}function kc(e,t,n){return null===n||!0!==n[Pv]?(e.nodeValue===t?e=null:(t=Os(t),e=Os(e.nodeValue)===t?null:e.nodeValue),e):null}function xc(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===Rv){if(0===t)return vc(e.nextSibling);t--}else n!==zv&&n!==Av&&n!==jv||t++}e=e.nextSibling}return null}function Sc(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===zv||n===Av||n===jv){if(0===t)return e;t--}else n===Rv&&t++}e=e.previousSibling}return null}function Cc(e){yu(e)}function Ec(e){yu(e)}function Tc(e,t,n,r,a){switch(a&&kt(e,r.ancestorInfo),t=ec(n),e){case"html":if(!(e=t.documentElement))throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(!(e=t.head))throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(!(e=t.body))throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function _c(e,t,n,r){if(!n[Od]&&ge(n)){var a=n.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",a,a,a)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(a=n.attributes;a.length;)n.removeAttributeNode(a[0]);Bs(n,e,t),n[Dd]=r,n[$d]=t}function Nc(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);me(e)}function Pc(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}function zc(e,t,n){var r=bw;if(r&&"string"==typeof t&&t){var a=Be(t);a='link[rel="'+e+'"][href="'+a+'"]',"string"==typeof n&&(a+='[crossorigin="'+n+'"]'),iw.has(a)||(iw.add(a),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(a)&&(Bs(t=r.createElement("link"),"link",e),ve(t),r.head.appendChild(t)))}}function Rc(e,t,n,r){var a=(a=id.current)?Pc(a):null;if(!a)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(n=Ac(n.href),(r=(t=ye(a).hoistableStyles).get(n))||(r={type:"style",instance:null,count:0,state:null},t.set(n,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Ac(n.href);var o=ye(a).hoistableStyles,i=o.get(e);if(!i&&(a=a.ownerDocument||a,i={type:"stylesheet",instance:null,count:0,state:{loading:ew,preload:null}},o.set(e,i),(o=a.querySelector(Ic(e)))&&!o._p&&(i.instance=o,i.state.loading=tw|aw),!ow.has(e))){var l={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy};ow.set(e,l),o||function(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=tw:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=tw}),t.addEventListener("error",function(){return r.loading|=nw}),Bs(t,"link",n),ve(t),e.head.appendChild(t))}(a,e,l,i.state)}if(t&&null===r)throw n="\n\n - "+jc(t)+"\n + "+jc(n),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return i}if(t&&null!==r)throw n="\n\n - "+jc(t)+"\n + "+jc(n),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(n=Mc(n),(r=(t=ye(a).hoistableScripts).get(n))||(r={type:"script",instance:null,count:0,state:null},t.set(n,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function jc(e){var t=0,n="<link";return"string"==typeof e.rel?(t++,n+=' rel="'+e.rel+'"'):sd.call(e,"rel")&&(t++,n+=' rel="'+(null===e.rel?"null":"invalid type "+typeof e.rel)+'"'),"string"==typeof e.href?(t++,n+=' href="'+e.href+'"'):sd.call(e,"href")&&(t++,n+=' href="'+(null===e.href?"null":"invalid type "+typeof e.href)+'"'),"string"==typeof e.precedence?(t++,n+=' precedence="'+e.precedence+'"'):sd.call(e,"precedence")&&(t++,n+=" precedence={"+(null===e.precedence?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(n+=" ..."),n+" />"}function Ac(e){return'href="'+Be(e)+'"'}function Ic(e){return'link[rel="stylesheet"]['+e+"]"}function Lc(e){return ju({},e,{"data-precedence":e.precedence,precedence:null})}function Mc(e){return'[src="'+Be(e)+'"]'}function Dc(e){return"script[async]"+e}function $c(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Be(n.href)+'"]');if(r)return t.instance=r,ve(r),r;var a=ju({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return ve(r=(e.ownerDocument||e).createElement("style")),Bs(r,"style",a),Oc(r,n.precedence,e),t.instance=r;case"stylesheet":a=Ac(n.href);var o=e.querySelector(Ic(a));if(o)return t.state.loading|=aw,t.instance=o,ve(o),o;r=Lc(n),(a=ow.get(a))&&Fc(r,a),ve(o=(e.ownerDocument||e).createElement("link"));var i=o;return i._p=new Promise(function(e,t){i.onload=e,i.onerror=t}),Bs(o,"link",r),t.state.loading|=aw,Oc(o,n.precedence,e),t.instance=o;case"script":return o=Mc(n.src),(a=e.querySelector(Dc(o)))?(t.instance=a,ve(a),a):(r=n,(a=ow.get(o))&&Uc(r=ju({},n),a),ve(a=(e=e.ownerDocument||e).createElement("script")),Bs(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else"stylesheet"===t.type&&(t.state.loading&aw)===ew&&(r=t.instance,t.state.loading|=aw,Oc(r,n.precedence,e));return t.instance}function Oc(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,o=a,i=0;i<r.length;i++){var l=r[i];if(l.dataset.precedence===t)o=l;else if(o!==a)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Fc(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function Uc(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}function Hc(e,t,n){if(null===yw){var r=new Map,a=yw=new Map;a.set(n,r)}else(r=(a=yw).get(n))||(r=new Map,a.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var o=n[a];if(!(o[Bd]||o[Dd]||"link"===e&&"stylesheet"===o.getAttribute("rel"))&&o.namespaceURI!==Lf){var i=o.getAttribute(t)||"";i=e+i;var l=r.get(i);l?l.push(o):r.set(i,[o])}}return r}function Wc(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function Bc(e){return"stylesheet"!==e.type||(e.state.loading&rw)!==ew}function Vc(){}function qc(){if(this.count--,0===this.count)if(this.stylesheets)Qc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}function Qc(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,kw=new Map,t.forEach(Kc,e),kw=null,qc.call(e))}function Kc(e,t){if(!(t.state.loading&aw)){var n=kw.get(e);if(n)var r=n.get(ww);else{n=new Map,kw.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<a.length;o++){var i=a[o];"LINK"!==i.nodeName&&"not all"===i.getAttribute("media")||(n.set(i.dataset.precedence,i),r=i)}r&&n.set(ww,r)}i=(a=t.instance).getAttribute("data-precedence"),(o=n.get(i)||r)===r&&n.set(ww,a),n.set(i,a),this.count++,r=qc.bind(this),a.addEventListener("load",r),a.addEventListener("error",r),o?o.parentNode.insertBefore(a,o.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(a,e.firstChild),t.state.loading|=aw}}function Yc(e,t,n,r,a,o,i,l){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Gv,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=oe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oe(0),this.hiddenUpdates=oe(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=o,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=n?"hydrateRoot()":"createRoot()"}function Gc(e,t,n,r,a,o,i,l,s,c,u,d){return e=new Yc(e,t,n,i,l,s,c,d),t=bm,!0===o&&(t|=vm|wm),Td&&(t|=ym),o=m(3,null,null,t),e.current=o,o.stateNode=e,ir(t=or()),e.pooledCache=t,ir(t),o.memoizedState={element:r,isDehydrated:n,cache:t},Tr(o),e}function Xc(e){return e?e=pm:pm}function Zc(e,t,n,r,a,o){if(Sd&&"function"==typeof Sd.onScheduleFiberRoot)try{Sd.onScheduleFiberRoot(xd,r,n)}catch(i){Ed||(Ed=!0,console.error("React instrumentation encountered an error: %s",i))}null!==Cd&&"function"==typeof Cd.markRenderScheduled&&Cd.markRenderScheduled(t),a=Xc(a),null===r.context?r.context=a:r.pendingContext=a,af&&null!==rf&&!Pw&&(Pw=!0,console.error("Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\n\nCheck the render method of %s.",N(rf)||"Unknown")),(r=Nr(t)).payload={element:n},null!==(o=void 0===o?null:o)&&("function"!=typeof o&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",o),r.callback=o),null!==(n=Pr(e,r,t))&&(El(n,e,t),zr(n,e,t))}function Jc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function eu(e,t){Jc(e,t),(e=e.alternate)&&Jc(e,t)}function tu(e){if(13===e.tag){var t=gn(e,67108864);null!==t&&El(t,e,67108864),eu(e,67108864)}}function nu(){return rf}function ru(){for(var e=new Map,t=1,n=0;31>n;n++){var r=Z(t);e.set(t,r),t*=2}return e}function au(e,t,n,r){var a=Zu.T;Zu.T=null;var o=Ju.p;try{Ju.p=jd,iu(e,t,n,r)}finally{Ju.p=o,Zu.T=a}}function ou(e,t,n,r){var a=Zu.T;Zu.T=null;var o=Ju.p;try{Ju.p=Ad,iu(e,t,n,r)}finally{Ju.p=o,Zu.T=a}}function iu(e,t,n,r){if(Rw){var a=lu(r);if(null===a)zs(e,t,r,jw,n),uu(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Iw=du(Iw,e,t,n,r,a),!0;case"dragenter":return Lw=du(Lw,e,t,n,r,a),!0;case"mouseover":return Mw=du(Mw,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return Dw.set(o,du(Dw.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,$w.set(o,du($w.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(uu(e,r),4&t&&-1<Fw.indexOf(e)){for(;null!==a;){var o=ge(a);if(null!==o)switch(o.tag){case 3:if((o=o.stateNode).current.memoizedState.isDehydrated){var i=J(o.pendingLanes);if(0!==i){var l=o;for(l.pendingLanes|=2,l.entangledLanes|=2;i;){var s=1<<31-_d(i);l.entanglements[1]|=s,i&=~s}fs(o),(Gb&(Ub|Hb))===Fb&&(_y=pd()+Ny,ps(0))}}break;case 13:null!==(l=gn(o,2))&&El(l,o,2),zl(),eu(o,2)}if(null===(o=lu(r))&&zs(e,t,r,jw,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else zs(e,t,r,null,n)}}function lu(e){return su(e=Rt(e))}function su(e){if(jw=null,null!==(e=he(e))){var t=k(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=x(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return jw=e,null}function cu(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return jd;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Ad;case"message":switch(md()){case hd:return jd;case gd:return Ad;case bd:case yd:return Id;case vd:return Ld;default:return Id}default:return Id}}function uu(e,t){switch(e){case"focusin":case"focusout":Iw=null;break;case"dragenter":case"dragleave":Lw=null;break;case"mouseover":case"mouseout":Mw=null;break;case"pointerover":case"pointerout":Dw.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$w.delete(t.pointerId)}}function du(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&(null!==(t=ge(t))&&tu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function fu(e){var t=he(e.target);if(null!==t){var n=k(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=x(n)))return e.blockedOn=t,void function(e,t){var n=Ju.p;try{return Ju.p=e,t()}finally{Ju.p=n}}(e.priority,function(){if(13===n.tag){var e=Sl(n);e=ce(e);var t=gn(n,e);null!==t&&El(t,n,e),eu(n,e)}})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function pu(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=lu(e.nativeEvent);if(null!==n)return null!==(t=ge(n))&&tu(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n),a=r;null!==Yf&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Yf=a,n.target.dispatchEvent(r),null===Yf&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Yf=null,t.shift()}return!0}function mu(e,t,n){pu(e)&&n.delete(t)}function hu(){Aw=!1,null!==Iw&&pu(Iw)&&(Iw=null),null!==Lw&&pu(Lw)&&(Lw=null),null!==Mw&&pu(Mw)&&(Mw=null),Dw.forEach(mu),$w.forEach(mu)}function gu(e,t){e.blockedOn===t&&(e.blockedOn=null,Aw||(Aw=!0,Pu.unstable_scheduleCallback(Pu.unstable_NormalPriority,hu)))}function bu(e){Uw!==e&&(Uw=e,Pu.unstable_scheduleCallback(Pu.unstable_NormalPriority,function(){Uw===e&&(Uw=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],a=e[t+2];if("function"!=typeof r){if(null===su(r||n))continue;break}var o=ge(n);null!==o&&(e.splice(t,3),t-=3,n={pending:!0,data:a,method:n.method,action:r},Object.freeze(n),Ja(o,n,r,a))}}))}function yu(e){function t(t){return gu(t,e)}null!==Iw&&gu(Iw,e),null!==Lw&&gu(Lw,e),null!==Mw&&gu(Mw,e),Dw.forEach(t),$w.forEach(t);for(var n=0;n<Ow.length;n++){var r=Ow[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ow.length&&null===(n=Ow[0]).blockedOn;)fu(n),null===n.blockedOn&&Ow.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var a=n[r],o=n[r+1],i=a[$d]||null;if("function"==typeof o)i||bu(n);else if(i){var l=null;if(o&&o.hasAttribute("formAction")){if(a=o,i=o[$d]||null)l=i.formAction;else if(null!==su(a))continue}else l=i.action;"function"==typeof l?n[r+1]=l:(n.splice(r,3),r-=3),bu(n)}}}function vu(e){this._internalRoot=e}function wu(e){this._internalRoot=e}function ku(e){e[Od]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var xu,Su,Cu,Eu,Tu,_u,Nu,Pu=h(),zu=e,Ru=t,ju=Object.assign,Au=Symbol.for("react.element"),Iu=Symbol.for("react.transitional.element"),Lu=Symbol.for("react.portal"),Mu=Symbol.for("react.fragment"),Du=Symbol.for("react.strict_mode"),$u=Symbol.for("react.profiler"),Ou=Symbol.for("react.provider"),Fu=Symbol.for("react.consumer"),Uu=Symbol.for("react.context"),Hu=Symbol.for("react.forward_ref"),Wu=Symbol.for("react.suspense"),Bu=Symbol.for("react.suspense_list"),Vu=Symbol.for("react.memo"),qu=Symbol.for("react.lazy"),Qu=Symbol.for("react.activity"),Ku=Symbol.for("react.memo_cache_sentinel"),Yu=Symbol.iterator,Gu=Symbol.for("react.client.reference"),Xu=Array.isArray,Zu=zu.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ju=Ru.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ed=Object.freeze({pending:!1,data:null,method:null,action:null}),td=[],nd=[],rd=-1,ad=P(null),od=P(null),id=P(null),ld=P(null),sd=Object.prototype.hasOwnProperty,cd=Pu.unstable_scheduleCallback,ud=Pu.unstable_cancelCallback,dd=Pu.unstable_shouldYield,fd=Pu.unstable_requestPaint,pd=Pu.unstable_now,md=Pu.unstable_getCurrentPriorityLevel,hd=Pu.unstable_ImmediatePriority,gd=Pu.unstable_UserBlockingPriority,bd=Pu.unstable_NormalPriority,yd=Pu.unstable_LowPriority,vd=Pu.unstable_IdlePriority,wd=Pu.log,kd=Pu.unstable_setDisableYieldValue,xd=null,Sd=null,Cd=null,Ed=!1,Td="undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__,_d=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(Nd(e)/Pd|0)|0},Nd=Math.log,Pd=Math.LN2,zd=256,Rd=4194304,jd=2,Ad=8,Id=32,Ld=268435456,Md=Math.random().toString(36).slice(2),Dd="__reactFiber$"+Md,$d="__reactProps$"+Md,Od="__reactContainer$"+Md,Fd="__reactEvents$"+Md,Ud="__reactListeners$"+Md,Hd="__reactHandles$"+Md,Wd="__reactResources$"+Md,Bd="__reactMarker$"+Md,Vd=new Set,qd={},Qd={},Kd={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Yd=RegExp("^[: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]*$"),Gd={},Xd={},Zd=0;Ne.__reactDisabledLog=!0;var Jd,ef,tf=!1,nf=new("function"==typeof WeakMap?WeakMap:Map),rf=null,af=!1,of=/[\n"\\]/g,lf=!1,sf=!1,cf=!1,uf=!1,df=!1,ff=!1,pf=["value","defaultValue"],mf=!1,hf=/["'&<>\n\t]|^\s|\s$/,gf="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),bf="applet caption html table td th marquee object template foreignObject desc title".split(" "),yf=bf.concat(["button"]),vf="dd dt li option optgroup p rp rt".split(" "),wf={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},kf={},xf={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},Sf=/([A-Z])/g,Cf=/^ms-/,Ef=/^(?:webkit|moz|o)[A-Z]/,Tf=/^-ms-/,_f=/-(.)/g,Nf=/;\s*$/,Pf={},zf={},Rf=!1,jf=!1,Af=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),If="http://www.w3.org/1998/Math/MathML",Lf="http://www.w3.org/2000/svg",Mf=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Df={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},$f={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Of={},Ff=RegExp("^(aria)-[: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]*$"),Uf=RegExp("^(aria)[A-Z][: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]*$"),Hf=!1,Wf={},Bf=/^on./,Vf=/^on[^A-Z]/,qf=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Qf=RegExp("^(aria)[A-Z][: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]*$"),Kf=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,Yf=null,Gf=null,Xf=null,Zf=!1,Jf=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),ep=!1;if(Jf)try{var tp={};Object.defineProperty(tp,"passive",{get:function(){ep=!0}}),window.addEventListener("test",tp,tp),window.removeEventListener("test",tp,tp)}catch(Ww){ep=!1}var np,rp,ap,op=null,ip=null,lp=null,sp={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cp=Ot(sp),up=ju({},sp,{view:0,detail:0}),dp=Ot(up),fp=ju({},up,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ut,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ap&&(ap&&"mousemove"===e.type?(np=e.screenX-ap.screenX,rp=e.screenY-ap.screenY):rp=np=0,ap=e),np)},movementY:function(e){return"movementY"in e?e.movementY:rp}}),pp=Ot(fp),mp=Ot(ju({},fp,{dataTransfer:0})),hp=Ot(ju({},up,{relatedTarget:0})),gp=Ot(ju({},sp,{animationName:0,elapsedTime:0,pseudoElement:0})),bp=Ot(ju({},sp,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),yp=Ot(ju({},sp,{data:0})),vp=yp,wp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kp={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Sp=Ot(ju({},up,{key:function(e){if(e.key){var t=wp[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Mt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ut,charCode:function(e){return"keypress"===e.type?Mt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Mt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Cp=Ot(ju({},fp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ep=Ot(ju({},up,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ut})),Tp=Ot(ju({},sp,{propertyName:0,elapsedTime:0,pseudoElement:0})),_p=Ot(ju({},fp,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Np=Ot(ju({},sp,{newState:0,oldState:0})),Pp=[9,13,27,32],zp=229,Rp=Jf&&"CompositionEvent"in window,jp=null;Jf&&"documentMode"in document&&(jp=document.documentMode);var Ap=Jf&&"TextEvent"in window&&!jp,Ip=Jf&&(!Rp||jp&&8<jp&&11>=jp),Lp=32,Mp=String.fromCharCode(Lp),Dp=!1,$p=!1,Op={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},Fp=null,Up=null,Hp=!1;Jf&&(Hp=function(e){if(!Jf)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}("input")&&(!document.documentMode||9<document.documentMode));var Wp="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Bp=Jf&&"documentMode"in document&&11>=document.documentMode,Vp=null,qp=null,Qp=null,Kp=!1,Yp={animationend:cn("Animation","AnimationEnd"),animationiteration:cn("Animation","AnimationIteration"),animationstart:cn("Animation","AnimationStart"),transitionrun:cn("Transition","TransitionRun"),transitionstart:cn("Transition","TransitionStart"),transitioncancel:cn("Transition","TransitionCancel"),transitionend:cn("Transition","TransitionEnd")},Gp={},Xp={};Jf&&(Xp=document.createElement("div").style,"AnimationEvent"in window||(delete Yp.animationend.animation,delete Yp.animationiteration.animation,delete Yp.animationstart.animation),"TransitionEvent"in window||delete Yp.transitionend.transition);var Zp=un("animationend"),Jp=un("animationiteration"),em=un("animationstart"),tm=un("transitionrun"),nm=un("transitionstart"),rm=un("transitioncancel"),am=un("transitionend"),om=new Map,im="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");im.push("scrollEnd");var lm=new WeakMap,sm=1,cm=2,um=[],dm=0,fm=0,pm={};Object.freeze(pm);var mm=null,hm=null,gm=0,bm=1,ym=2,vm=8,wm=16,km=64,xm=!1;try{Object.preventExtensions({})}catch(Bw){xm=!0}var Sm=[],Cm=0,Em=null,Tm=0,_m=[],Nm=0,Pm=null,zm=1,Rm="",jm=null,Am=null,Im=!1,Lm=!1,Mm=null,Dm=null,$m=!1,Om=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Fm=0;if("object"==typeof performance&&"function"==typeof performance.now)var Um=performance,Hm=function(){return Um.now()};else{var Wm=Date;Hm=function(){return Wm.now()}}var Bm=P(null),Vm=P(null),qm={},Qm=null,Km=null,Ym=!1,Gm="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Xm=Pu.unstable_scheduleCallback,Zm=Pu.unstable_NormalPriority,Jm={$$typeof:Uu,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},eh=Pu.unstable_now,th=-0,nh=-0,rh=-1.1,ah=-0,oh=!1,ih=!1,lh=null,sh=0,ch=0,uh=null,dh=Zu.S;Zu.S=function(e,t){"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===lh){var n=lh=[];sh=0,ch=ks(),uh={status:"pending",value:void 0,then:function(e){n.push(e)}}}sh++,t.then(br,br)}(0,t),null!==dh&&dh(e,t)};var fh=P(null),ph={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},mh=[],hh=[],gh=[],bh=[],yh=[],vh=[],wh=new Set;ph.recordUnsafeLifecycleWarnings=function(e,t){wh.has(e.type)||("function"==typeof t.componentWillMount&&!0!==t.componentWillMount.__suppressDeprecationWarning&&mh.push(e),e.mode&vm&&"function"==typeof t.UNSAFE_componentWillMount&&hh.push(e),"function"==typeof t.componentWillReceiveProps&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&gh.push(e),e.mode&vm&&"function"==typeof t.UNSAFE_componentWillReceiveProps&&bh.push(e),"function"==typeof t.componentWillUpdate&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&yh.push(e),e.mode&vm&&"function"==typeof t.UNSAFE_componentWillUpdate&&vh.push(e))},ph.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<mh.length&&(mh.forEach(function(t){e.add(N(t)||"Component"),wh.add(t.type)}),mh=[]);var t=new Set;0<hh.length&&(hh.forEach(function(e){t.add(N(e)||"Component"),wh.add(e.type)}),hh=[]);var n=new Set;0<gh.length&&(gh.forEach(function(e){n.add(N(e)||"Component"),wh.add(e.type)}),gh=[]);var r=new Set;0<bh.length&&(bh.forEach(function(e){r.add(N(e)||"Component"),wh.add(e.type)}),bh=[]);var a=new Set;0<yh.length&&(yh.forEach(function(e){a.add(N(e)||"Component"),wh.add(e.type)}),yh=[]);var o=new Set;if(0<vh.length&&(vh.forEach(function(e){o.add(N(e)||"Component"),wh.add(e.type)}),vh=[]),0<t.size){var i=p(t);console.error("Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n\nPlease update the following components: %s",i)}0<r.size&&(i=p(r),console.error("Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n\nPlease update the following components: %s",i)),0<o.size&&(i=p(o),console.error("Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n\nPlease update the following components: %s",i)),0<e.size&&(i=p(e),console.warn("componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",i)),0<n.size&&(i=p(n),console.warn("componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",i)),0<a.size&&(i=p(a),console.warn("componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",i))};var kh=new Map,xh=new Set;ph.recordLegacyContextWarning=function(e,t){for(var n=null,r=e;null!==r;)r.mode&vm&&(n=r),r=r.return;null===n?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!xh.has(e.type)&&(r=kh.get(n),null!=e.type.contextTypes||null!=e.type.childContextTypes||null!==t&&"function"==typeof t.getChildContext)&&(void 0===r&&(r=[],kh.set(n,r)),r.push(e))},ph.flushLegacyContextWarning=function(){kh.forEach(function(e){if(0!==e.length){var t=e[0],n=new Set;e.forEach(function(e){n.add(N(e)||"Component"),xh.add(e.type)});var r=p(n);De(t,function(){console.error("Legacy context API has been detected within a strict-mode tree.\n\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\n\nPlease update the following components: %s\n\nLearn more about this warning here: https://react.dev/link/legacy-context",r)})}})},ph.discardPendingWarnings=function(){mh=[],hh=[],gh=[],bh=[],yh=[],vh=[],kh=new Map};var Sh,Ch=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Eh=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Th=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),_h={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Nh=null,Ph=!1,zh=0,Rh=1,jh=2,Ah=4,Ih=8,Lh=0,Mh=1,Dh=2,$h=3,Oh=!1,Fh=!1,Uh=null,Hh=!1,Wh=P(null),Bh=P(0),Vh=new Set,qh=new Set,Qh=new Set,Kh=new Set,Yh=0,Gh=null,Xh=null,Zh=null,Jh=!1,eg=!1,tg=!1,ng=0,rg=0,ag=null,og=0,ig=25,lg=null,sg=null,cg=-1,ug=!1,dg={readContext:nr,use:na,useCallback:Br,useContext:Br,useEffect:Br,useImperativeHandle:Br,useLayoutEffect:Br,useInsertionEffect:Br,useMemo:Br,useReducer:Br,useRef:Br,useState:Br,useDebugValue:Br,useDeferredValue:Br,useTransition:Br,useSyncExternalStore:Br,useId:Br,useHostTransitionStatus:Br,useFormState:Br,useActionState:Br,useOptimistic:Br,useMemoCache:Br,useCacheRefresh:Br},fg=null,pg=null,mg=null,hg=null,gg=null,bg=null,yg=null;fg={readContext:function(e){return nr(e)},use:na,useCallback:function(e,t){return lg="useCallback",Fr(),Hr(t),Wa(e,t)},useContext:function(e){return lg="useContext",Fr(),nr(e)},useEffect:function(e,t){return lg="useEffect",Fr(),Hr(t),$a(e,t)},useImperativeHandle:function(e,t,n){return lg="useImperativeHandle",Fr(),Hr(n),Ua(e,t,n)},useInsertionEffect:function(e,t){lg="useInsertionEffect",Fr(),Hr(t),Ma(4,jh,e,t)},useLayoutEffect:function(e,t){return lg="useLayoutEffect",Fr(),Hr(t),Oa(e,t)},useMemo:function(e,t){lg="useMemo",Fr(),Hr(t);var n=Zu.H;Zu.H=gg;try{return Va(e,t)}finally{Zu.H=n}},useReducer:function(e,t,n){lg="useReducer",Fr();var r=Zu.H;Zu.H=gg;try{return oa(e,t,n)}finally{Zu.H=r}},useRef:function(e){return lg="useRef",Fr(),La(e)},useState:function(e){lg="useState",Fr();var t=Zu.H;Zu.H=gg;try{return ba(e)}finally{Zu.H=t}},useDebugValue:function(){lg="useDebugValue",Fr()},useDeferredValue:function(e,t){return lg="useDeferredValue",Fr(),Qa(e,t)},useTransition:function(){return lg="useTransition",Fr(),no()},useSyncExternalStore:function(e,t,n){return lg="useSyncExternalStore",Fr(),ca(e,t,n)},useId:function(){return lg="useId",Fr(),io()},useFormState:function(e,t){return lg="useFormState",Fr(),Wr(),Pa(e,t)},useActionState:function(e,t){return lg="useActionState",Fr(),Pa(e,t)},useOptimistic:function(e){return lg="useOptimistic",Fr(),ya(e)},useHostTransitionStatus:oo,useMemoCache:ra,useCacheRefresh:function(){return lg="useCacheRefresh",Fr(),lo()}},pg={readContext:function(e){return nr(e)},use:na,useCallback:function(e,t){return lg="useCallback",Ur(),Wa(e,t)},useContext:function(e){return lg="useContext",Ur(),nr(e)},useEffect:function(e,t){return lg="useEffect",Ur(),$a(e,t)},useImperativeHandle:function(e,t,n){return lg="useImperativeHandle",Ur(),Ua(e,t,n)},useInsertionEffect:function(e,t){lg="useInsertionEffect",Ur(),Ma(4,jh,e,t)},useLayoutEffect:function(e,t){return lg="useLayoutEffect",Ur(),Oa(e,t)},useMemo:function(e,t){lg="useMemo",Ur();var n=Zu.H;Zu.H=gg;try{return Va(e,t)}finally{Zu.H=n}},useReducer:function(e,t,n){lg="useReducer",Ur();var r=Zu.H;Zu.H=gg;try{return oa(e,t,n)}finally{Zu.H=r}},useRef:function(e){return lg="useRef",Ur(),La(e)},useState:function(e){lg="useState",Ur();var t=Zu.H;Zu.H=gg;try{return ba(e)}finally{Zu.H=t}},useDebugValue:function(){lg="useDebugValue",Ur()},useDeferredValue:function(e,t){return lg="useDeferredValue",Ur(),Qa(e,t)},useTransition:function(){return lg="useTransition",Ur(),no()},useSyncExternalStore:function(e,t,n){return lg="useSyncExternalStore",Ur(),ca(e,t,n)},useId:function(){return lg="useId",Ur(),io()},useActionState:function(e,t){return lg="useActionState",Ur(),Pa(e,t)},useFormState:function(e,t){return lg="useFormState",Ur(),Wr(),Pa(e,t)},useOptimistic:function(e){return lg="useOptimistic",Ur(),ya(e)},useHostTransitionStatus:oo,useMemoCache:ra,useCacheRefresh:function(){return lg="useCacheRefresh",Ur(),lo()}},mg={readContext:function(e){return nr(e)},use:na,useCallback:function(e,t){return lg="useCallback",Ur(),Ba(e,t)},useContext:function(e){return lg="useContext",Ur(),nr(e)},useEffect:function(e,t){lg="useEffect",Ur(),Da(2048,Ih,e,t)},useImperativeHandle:function(e,t,n){return lg="useImperativeHandle",Ur(),Ha(e,t,n)},useInsertionEffect:function(e,t){return lg="useInsertionEffect",Ur(),Da(4,jh,e,t)},useLayoutEffect:function(e,t){return lg="useLayoutEffect",Ur(),Da(4,Ah,e,t)},useMemo:function(e,t){lg="useMemo",Ur();var n=Zu.H;Zu.H=bg;try{return qa(e,t)}finally{Zu.H=n}},useReducer:function(e,t,n){lg="useReducer",Ur();var r=Zu.H;Zu.H=bg;try{return ia(e)}finally{Zu.H=r}},useRef:function(){return lg="useRef",Ur(),ea().memoizedState},useState:function(){lg="useState",Ur();var e=Zu.H;Zu.H=bg;try{return ia(aa)}finally{Zu.H=e}},useDebugValue:function(){lg="useDebugValue",Ur()},useDeferredValue:function(e,t){return lg="useDeferredValue",Ur(),Ka(e,t)},useTransition:function(){return lg="useTransition",Ur(),ro()},useSyncExternalStore:function(e,t,n){return lg="useSyncExternalStore",Ur(),ua(e,t,n)},useId:function(){return lg="useId",Ur(),ea().memoizedState},useFormState:function(e){return lg="useFormState",Ur(),Wr(),za(e)},useActionState:function(e){return lg="useActionState",Ur(),za(e)},useOptimistic:function(e,t){return lg="useOptimistic",Ur(),va(e,t)},useHostTransitionStatus:oo,useMemoCache:ra,useCacheRefresh:function(){return lg="useCacheRefresh",Ur(),ea().memoizedState}},hg={readContext:function(e){return nr(e)},use:na,useCallback:function(e,t){return lg="useCallback",Ur(),Ba(e,t)},useContext:function(e){return lg="useContext",Ur(),nr(e)},useEffect:function(e,t){lg="useEffect",Ur(),Da(2048,Ih,e,t)},useImperativeHandle:function(e,t,n){return lg="useImperativeHandle",Ur(),Ha(e,t,n)},useInsertionEffect:function(e,t){return lg="useInsertionEffect",Ur(),Da(4,jh,e,t)},useLayoutEffect:function(e,t){return lg="useLayoutEffect",Ur(),Da(4,Ah,e,t)},useMemo:function(e,t){lg="useMemo",Ur();var n=Zu.H;Zu.H=yg;try{return qa(e,t)}finally{Zu.H=n}},useReducer:function(e,t,n){lg="useReducer",Ur();var r=Zu.H;Zu.H=yg;try{return sa(e)}finally{Zu.H=r}},useRef:function(){return lg="useRef",Ur(),ea().memoizedState},useState:function(){lg="useState",Ur();var e=Zu.H;Zu.H=yg;try{return sa(aa)}finally{Zu.H=e}},useDebugValue:function(){lg="useDebugValue",Ur()},useDeferredValue:function(e,t){return lg="useDeferredValue",Ur(),Ya(e,t)},useTransition:function(){return lg="useTransition",Ur(),ao()},useSyncExternalStore:function(e,t,n){return lg="useSyncExternalStore",Ur(),ua(e,t,n)},useId:function(){return lg="useId",Ur(),ea().memoizedState},useFormState:function(e){return lg="useFormState",Ur(),Wr(),Aa(e)},useActionState:function(e){return lg="useActionState",Ur(),Aa(e)},useOptimistic:function(e,t){return lg="useOptimistic",Ur(),ka(e,t)},useHostTransitionStatus:oo,useMemoCache:ra,useCacheRefresh:function(){return lg="useCacheRefresh",Ur(),ea().memoizedState}},gg={readContext:function(e){return d(),nr(e)},use:function(e){return u(),na(e)},useCallback:function(e,t){return lg="useCallback",u(),Fr(),Wa(e,t)},useContext:function(e){return lg="useContext",u(),Fr(),nr(e)},useEffect:function(e,t){return lg="useEffect",u(),Fr(),$a(e,t)},useImperativeHandle:function(e,t,n){return lg="useImperativeHandle",u(),Fr(),Ua(e,t,n)},useInsertionEffect:function(e,t){lg="useInsertionEffect",u(),Fr(),Ma(4,jh,e,t)},useLayoutEffect:function(e,t){return lg="useLayoutEffect",u(),Fr(),Oa(e,t)},useMemo:function(e,t){lg="useMemo",u(),Fr();var n=Zu.H;Zu.H=gg;try{return Va(e,t)}finally{Zu.H=n}},useReducer:function(e,t,n){lg="useReducer",u(),Fr();var r=Zu.H;Zu.H=gg;try{return oa(e,t,n)}finally{Zu.H=r}},useRef:function(e){return lg="useRef",u(),Fr(),La(e)},useState:function(e){lg="useState",u(),Fr();var t=Zu.H;Zu.H=gg;try{return ba(e)}finally{Zu.H=t}},useDebugValue:function(){lg="useDebugValue",u(),Fr()},useDeferredValue:function(e,t){return lg="useDeferredValue",u(),Fr(),Qa(e,t)},useTransition:function(){return lg="useTransition",u(),Fr(),no()},useSyncExternalStore:function(e,t,n){return lg="useSyncExternalStore",u(),Fr(),ca(e,t,n)},useId:function(){return lg="useId",u(),Fr(),io()},useFormState:function(e,t){return lg="useFormState",u(),Fr(),Pa(e,t)},useActionState:function(e,t){return lg="useActionState",u(),Fr(),Pa(e,t)},useOptimistic:function(e){return lg="useOptimistic",u(),Fr(),ya(e)},useMemoCache:function(e){return u(),ra(e)},useHostTransitionStatus:oo,useCacheRefresh:function(){return lg="useCacheRefresh",Fr(),lo()}},bg={readContext:function(e){return d(),nr(e)},use:function(e){return u(),na(e)},useCallback:function(e,t){return lg="useCallback",u(),Ur(),Ba(e,t)},useContext:function(e){return lg="useContext",u(),Ur(),nr(e)},useEffect:function(e,t){lg="useEffect",u(),Ur(),Da(2048,Ih,e,t)},useImperativeHandle:function(e,t,n){return lg="useImperativeHandle",u(),Ur(),Ha(e,t,n)},useInsertionEffect:function(e,t){return lg="useInsertionEffect",u(),Ur(),Da(4,jh,e,t)},useLayoutEffect:function(e,t){return lg="useLayoutEffect",u(),Ur(),Da(4,Ah,e,t)},useMemo:function(e,t){lg="useMemo",u(),Ur();var n=Zu.H;Zu.H=bg;try{return qa(e,t)}finally{Zu.H=n}},useReducer:function(e,t,n){lg="useReducer",u(),Ur();var r=Zu.H;Zu.H=bg;try{return ia(e)}finally{Zu.H=r}},useRef:function(){return lg="useRef",u(),Ur(),ea().memoizedState},useState:function(){lg="useState",u(),Ur();var e=Zu.H;Zu.H=bg;try{return ia(aa)}finally{Zu.H=e}},useDebugValue:function(){lg="useDebugValue",u(),Ur()},useDeferredValue:function(e,t){return lg="useDeferredValue",u(),Ur(),Ka(e,t)},useTransition:function(){return lg="useTransition",u(),Ur(),ro()},useSyncExternalStore:function(e,t,n){return lg="useSyncExternalStore",u(),Ur(),ua(e,t,n)},useId:function(){return lg="useId",u(),Ur(),ea().memoizedState},useFormState:function(e){return lg="useFormState",u(),Ur(),za(e)},useActionState:function(e){return lg="useActionState",u(),Ur(),za(e)},useOptimistic:function(e,t){return lg="useOptimistic",u(),Ur(),va(e,t)},useMemoCache:function(e){return u(),ra(e)},useHostTransitionStatus:oo,useCacheRefresh:function(){return lg="useCacheRefresh",Ur(),ea().memoizedState}},yg={readContext:function(e){return d(),nr(e)},use:function(e){return u(),na(e)},useCallback:function(e,t){return lg="useCallback",u(),Ur(),Ba(e,t)},useContext:function(e){return lg="useContext",u(),Ur(),nr(e)},useEffect:function(e,t){lg="useEffect",u(),Ur(),Da(2048,Ih,e,t)},useImperativeHandle:function(e,t,n){return lg="useImperativeHandle",u(),Ur(),Ha(e,t,n)},useInsertionEffect:function(e,t){return lg="useInsertionEffect",u(),Ur(),Da(4,jh,e,t)},useLayoutEffect:function(e,t){return lg="useLayoutEffect",u(),Ur(),Da(4,Ah,e,t)},useMemo:function(e,t){lg="useMemo",u(),Ur();var n=Zu.H;Zu.H=bg;try{return qa(e,t)}finally{Zu.H=n}},useReducer:function(e,t,n){lg="useReducer",u(),Ur();var r=Zu.H;Zu.H=bg;try{return sa(e)}finally{Zu.H=r}},useRef:function(){return lg="useRef",u(),Ur(),ea().memoizedState},useState:function(){lg="useState",u(),Ur();var e=Zu.H;Zu.H=bg;try{return sa(aa)}finally{Zu.H=e}},useDebugValue:function(){lg="useDebugValue",u(),Ur()},useDeferredValue:function(e,t){return lg="useDeferredValue",u(),Ur(),Ya(e,t)},useTransition:function(){return lg="useTransition",u(),Ur(),ao()},useSyncExternalStore:function(e,t,n){return lg="useSyncExternalStore",u(),Ur(),ua(e,t,n)},useId:function(){return lg="useId",u(),Ur(),ea().memoizedState},useFormState:function(e){return lg="useFormState",u(),Ur(),Aa(e)},useActionState:function(e){return lg="useActionState",u(),Ur(),Aa(e)},useOptimistic:function(e,t){return lg="useOptimistic",u(),Ur(),ka(e,t)},useMemoCache:function(e){return u(),ra(e)},useHostTransitionStatus:oo,useCacheRefresh:function(){return lg="useCacheRefresh",Ur(),ea().memoizedState}};var vg,wg={react_stack_bottom_frame:function(e,t,n){var r=af;af=!0;try{return e(t,n)}finally{af=r}}},kg=wg.react_stack_bottom_frame.bind(wg),xg={react_stack_bottom_frame:function(e){var t=af;af=!0;try{return e.render()}finally{af=t}}},Sg=xg.react_stack_bottom_frame.bind(xg),Cg={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(n){ts(e,e.return,n)}}},Eg=Cg.react_stack_bottom_frame.bind(Cg),Tg={react_stack_bottom_frame:function(e,t,n,r,a){try{t.componentDidUpdate(n,r,a)}catch(o){ts(e,e.return,o)}}},_g=Tg.react_stack_bottom_frame.bind(Tg),Ng={react_stack_bottom_frame:function(e,t){var n=t.stack;e.componentDidCatch(t.value,{componentStack:null!==n?n:""})}},Pg=Ng.react_stack_bottom_frame.bind(Ng),zg={react_stack_bottom_frame:function(e,t,n){try{n.componentWillUnmount()}catch(r){ts(e,t,r)}}},Rg=zg.react_stack_bottom_frame.bind(zg),jg={react_stack_bottom_frame:function(e){null!=e.resourceKind&&console.error("Expected only SimpleEffects when enableUseEffectCRUDOverload is disabled, got %s",e.resourceKind);var t=e.create;return e=e.inst,t=t(),e.destroy=t}},Ag=jg.react_stack_bottom_frame.bind(jg),Ig={react_stack_bottom_frame:function(e,t,n){try{n()}catch(r){ts(e,t,r)}}},Lg=Ig.react_stack_bottom_frame.bind(Ig),Mg={react_stack_bottom_frame:function(e){return(0,e._init)(e._payload)}},Dg=Mg.react_stack_bottom_frame.bind(Mg),$g=null,Og=0,Fg=null,Ug=vg=!1,Hg={},Wg={},Bg={};c=function(e,t,n){if(null!==n&&"object"==typeof n&&n._store&&(!n._store.validated&&null==n.key||2===n._store.validated)){if("object"!=typeof n._store)throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");n._store.validated=1;var r=N(e),a=r||"null";if(!Hg[a]){Hg[a]=!0,n=n._owner,e=e._debugOwner;var o="";e&&"number"==typeof e.tag&&(a=N(e))&&(o="\n\nCheck the render method of `"+a+"`."),o||r&&(o="\n\nCheck the top-level render call using <"+r+">.");var i="";null!=n&&e!==n&&(r=null,"number"==typeof n.tag?r=N(n):"string"==typeof n.name&&(r=n.name),r&&(i=" It was passed a child from "+r+".")),De(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',o,i)})}}};var Vg=Co(!0),qg=Co(!1),Qg=P(null),Kg=null,Yg=1,Gg=2,Xg=P(0),Zg={},Jg=new Set,eb=new Set,tb=new Set,nb=new Set,rb=new Set,ab=new Set,ob=new Set,ib=new Set,lb=new Set,sb=new Set;Object.freeze(Zg);var cb={enqueueSetState:function(e,t,n){var r=Sl(e=e._reactInternals),a=Nr(r);a.payload=t,null!=n&&(zo(n),a.callback=n),null!==(t=Pr(e,a,r))&&(El(t,e,r),zr(t,e,r)),X(e,r)},enqueueReplaceState:function(e,t,n){var r=Sl(e=e._reactInternals),a=Nr(r);a.tag=Mh,a.payload=t,null!=n&&(zo(n),a.callback=n),null!==(t=Pr(e,a,r))&&(El(t,e,r),zr(t,e,r)),X(e,r)},enqueueForceUpdate:function(e,t){var n=Sl(e=e._reactInternals),r=Nr(n);r.tag=Dh,null!=t&&(zo(t),r.callback=t),null!==(t=Pr(e,r,n))&&(El(t,e,n),zr(t,e,n)),null!==Cd&&"function"==typeof Cd.markForceUpdateScheduled&&Cd.markForceUpdateScheduled(e,n)}},ub="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},db=null,fb=null,pb=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),mb=!1,hb={},gb={},bb={},yb={},vb=!1,wb={},kb={},xb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Sb=!1,Cb=null;Cb=new Set;var Eb=!1,Tb=!1,_b=!1,Nb="function"==typeof WeakSet?WeakSet:Set,Pb=null,zb=null,Rb=null,jb=null,Ab=!1,Ib=null,Lb=8192,Mb={getCacheForType:function(e){var t=nr(Jm),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},getOwner:function(){return rf}};if("function"==typeof Symbol&&Symbol.for){var Db=Symbol.for;Db("selector.component"),Db("selector.has_pseudo_class"),Db("selector.role"),Db("selector.test_id"),Db("selector.text")}var $b=[],Ob="function"==typeof WeakMap?WeakMap:Map,Fb=0,Ub=2,Hb=4,Wb=0,Bb=1,Vb=2,qb=3,Qb=4,Kb=6,Yb=5,Gb=Fb,Xb=null,Zb=null,Jb=0,ey=0,ty=1,ny=2,ry=3,ay=4,oy=5,iy=6,ly=7,sy=8,cy=9,uy=ey,dy=null,fy=!1,py=!1,my=!1,hy=0,gy=Wb,by=0,yy=0,vy=0,wy=0,ky=0,xy=null,Sy=null,Cy=!1,Ey=0,Ty=300,_y=1/0,Ny=500,Py=null,zy=null,Ry=0,jy=1,Ay=2,Iy=0,Ly=1,My=2,Dy=3,$y=4,Oy=5,Fy=0,Uy=null,Hy=null,Wy=0,By=0,Vy=null,qy=null,Qy=50,Ky=0,Yy=null,Gy=!1,Xy=!1,Zy=50,Jy=0,ev=null,tv=!1,nv=null,rv=!1,av=new Set,ov=null,iv=null,lv=!1,sv=!1,cv=!1,uv=!1,dv=0,fv={};!function(){for(var e=0;e<im.length;e++){var t=im[e];dn(t.toLowerCase(),"on"+(t=t[0].toUpperCase()+t.slice(1)))}dn(Zp,"onAnimationEnd"),dn(Jp,"onAnimationIteration"),dn(em,"onAnimationStart"),dn("dblclick","onDoubleClick"),dn("focusin","onFocus"),dn("focusout","onBlur"),dn(tm,"onTransitionRun"),dn(nm,"onTransitionStart"),dn(rm,"onTransitionCancel"),dn(am,"onTransitionEnd")}(),ke("onMouseEnter",["mouseout","mouseover"]),ke("onMouseLeave",["mouseout","mouseover"]),ke("onPointerEnter",["pointerout","pointerover"]),ke("onPointerLeave",["pointerout","pointerover"]),we("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),we("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),we("onBeforeInput",["compositionend","keypress","textInput","paste"]),we("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),we("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),we("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pv="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pv)),hv="_reactListening"+Math.random().toString(36).slice(2),gv=!1,bv=!1,yv=!1,vv=!1,wv=!1,kv=!1,xv=!1,Sv={},Cv=/\r\n?/g,Ev=/\u0000|\uFFFD/g,Tv="http://www.w3.org/1999/xlink",_v="http://www.w3.org/XML/1998/namespace",Nv="javascript:throw new Error('React form unexpectedly submitted.')",Pv="suppressHydrationWarning",zv="$",Rv="/$",jv="$?",Av="$!",Iv=1,Lv=2,Mv=4,Dv="F!",$v="F",Ov="complete",Fv="style",Uv=0,Hv=1,Wv=2,Bv=null,Vv=null,qv={dialog:!0,webview:!0},Qv=null,Kv="function"==typeof setTimeout?setTimeout:void 0,Yv="function"==typeof clearTimeout?clearTimeout:void 0,Gv=-1,Xv="function"==typeof Promise?Promise:void 0,Zv="function"==typeof queueMicrotask?queueMicrotask:void 0!==Xv?function(e){return Xv.resolve(null).then(e).catch(ac)}:Kv,Jv=null,ew=0,tw=1,nw=2,rw=3,aw=4,ow=new Map,iw=new Set,lw=Ju.d;Ju.d={f:function(){var e=lw.f(),t=zl();return e||t},r:function(e){var t=ge(e);null!==t&&5===t.tag&&"form"===t.type?to(t):lw.r(e)},D:function(e){lw.D(e),zc("dns-prefetch",e,null)},C:function(e,t){lw.C(e,t),zc("preconnect",e,t)},L:function(e,t,n){lw.L(e,t,n);var r=bw;if(r&&e&&t){var a='link[rel="preload"][as="'+Be(t)+'"]';"image"===t&&n&&n.imageSrcSet?(a+='[imagesrcset="'+Be(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(a+='[imagesizes="'+Be(n.imageSizes)+'"]')):a+='[href="'+Be(e)+'"]';var o=a;switch(t){case"style":o=Ac(e);break;case"script":o=Mc(e)}ow.has(o)||(e=ju({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),ow.set(o,e),null!==r.querySelector(a)||"style"===t&&r.querySelector(Ic(o))||"script"===t&&r.querySelector(Dc(o))||(Bs(t=r.createElement("link"),"link",e),ve(t),r.head.appendChild(t)))}},m:function(e,t){lw.m(e,t);var n=bw;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",a='link[rel="modulepreload"][as="'+Be(r)+'"][href="'+Be(e)+'"]',o=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Mc(e)}if(!ow.has(o)&&(e=ju({rel:"modulepreload",href:e},t),ow.set(o,e),null===n.querySelector(a))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Dc(o)))return}Bs(r=n.createElement("link"),"link",e),ve(r),n.head.appendChild(r)}}},X:function(e,t){lw.X(e,t);var n=bw;if(n&&e){var r=ye(n).hoistableScripts,a=Mc(e),o=r.get(a);o||((o=n.querySelector(Dc(a)))||(e=ju({src:e,async:!0},t),(t=ow.get(a))&&Uc(e,t),ve(o=n.createElement("script")),Bs(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(a,o))}},S:function(e,t,n){lw.S(e,t,n);var r=bw;if(r&&e){var a=ye(r).hoistableStyles,o=Ac(e);t=t||"default";var i=a.get(o);if(!i){var l={loading:ew,preload:null};if(i=r.querySelector(Ic(o)))l.loading=tw|aw;else{e=ju({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ow.get(o))&&Fc(e,n);var s=i=r.createElement("link");ve(s),Bs(s,"link",e),s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),s.addEventListener("load",function(){l.loading|=tw}),s.addEventListener("error",function(){l.loading|=nw}),l.loading|=aw,Oc(i,t,r)}i={type:"stylesheet",instance:i,count:1,state:l},a.set(o,i)}}},M:function(e,t){lw.M(e,t);var n=bw;if(n&&e){var r=ye(n).hoistableScripts,a=Mc(e),o=r.get(a);o||((o=n.querySelector(Dc(a)))||(e=ju({src:e,async:!0,type:"module"},t),(t=ow.get(a))&&Uc(e,t),ve(o=n.createElement("script")),Bs(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(a,o))}}};var sw,cw,uw,dw,fw,pw,mw,hw,gw,bw="undefined"==typeof document?null:document,yw=null,vw=null,ww=null,kw=null,xw=ed,Sw={$$typeof:Uu,Provider:null,Consumer:null,_currentValue:xw,_currentValue2:xw,_threadCount:0},Cw="%c%s%c ",Ew="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",Tw="",_w=" ",Nw=Function.prototype.bind,Pw=!1;sw=function(e,t,a,o){null!==(t=n(e,t))&&(a=r(t.memoizedState,a,0,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=ju({},e.memoizedProps),null!==(a=gn(e,2))&&El(a,e,2))},cw=function(e,t,r){null!==(t=n(e,t))&&(r=i(t.memoizedState,r,0),t.memoizedState=r,t.baseState=r,e.memoizedProps=ju({},e.memoizedProps),null!==(r=gn(e,2))&&El(r,e,2))},uw=function(e,t,r,o){null!==(t=n(e,t))&&(r=a(t.memoizedState,r,o),t.memoizedState=r,t.baseState=r,e.memoizedProps=ju({},e.memoizedProps),null!==(r=gn(e,2))&&El(r,e,2))},dw=function(e,t,n){e.pendingProps=r(e.memoizedProps,t,0,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),null!==(t=gn(e,2))&&El(t,e,2)},fw=function(e,t){e.pendingProps=i(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),null!==(t=gn(e,2))&&El(t,e,2)},pw=function(e,t,n){e.pendingProps=a(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),null!==(t=gn(e,2))&&El(t,e,2)},mw=function(e){var t=gn(e,2);null!==t&&El(t,e,2)},hw=function(e){s=e},gw=function(e){l=e};var zw,Rw=!0,jw=null,Aw=!1,Iw=null,Lw=null,Mw=null,Dw=new Map,$w=new Map,Ow=[],Fw="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),Uw=null;if(wu.prototype.render=vu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error("Cannot update an unmounted root.");var n=arguments;"function"==typeof n[1]?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):w(n[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):void 0!==n[1]&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),n=e;var r=t.current;Zc(r,Sl(r),n,t,null,null)},wu.prototype.unmount=vu.prototype.unmount=function(){var e=arguments;if("function"==typeof e[0]&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),null!==(e=this._internalRoot)){this._internalRoot=null;var t=e.containerInfo;(Gb&(Ub|Hb))!==Fb&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Zc(e.current,2,null,e,null,null),zl(),t[Od]=null}},wu.prototype.unstable_scheduleHydration=function(e){if(e){var t=pe();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ow.length&&0!==t&&t<Ow[n].priority;n++);Ow.splice(n,0,e),0===n&&fu(e)}},function(){var e=zu.version;if("19.1.1"!==e)throw Error('Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: '+e+"\n - react-dom: 19.1.1\nLearn more: https://react.dev/warnings/version-mismatch")}(),"function"==typeof Map&&null!=Map.prototype&&"function"==typeof Map.prototype.forEach&&"function"==typeof Set&&null!=Set.prototype&&"function"==typeof Set.prototype.clear&&"function"==typeof Set.prototype.forEach||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),Ju.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error("Unable to find node on an unmounted component.");throw e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e)}return e=function(e){var t=e.alternate;if(!t){if(null===(t=k(e)))throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var o=a.alternate;if(null===o){if(null!==(r=a.return)){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return S(a),e;if(o===r)return S(a),t;o=o.sibling}throw Error("Unable to find node on an unmounted component.")}if(n.return!==r.return)n=a,r=o;else{for(var i=!1,l=a.child;l;){if(l===n){i=!0,n=a,r=o;break}if(l===r){i=!0,r=a,n=o;break}l=l.sibling}if(!i){for(l=o.child;l;){if(l===n){i=!0,n=o,r=a;break}if(l===r){i=!0,r=o,n=a;break}l=l.sibling}if(!i)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(n.alternate!==r)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(3!==n.tag)throw Error("Unable to find node on an unmounted component.");return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?C(e):null)?null:e.stateNode},(zw={bundleType:1,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:Zu,reconcilerVersion:"19.1.1"}).overrideHookState=sw,zw.overrideHookStateDeletePath=cw,zw.overrideHookStateRenamePath=uw,zw.overrideProps=dw,zw.overridePropsDeletePath=fw,zw.overridePropsRenamePath=pw,zw.scheduleUpdate=mw,zw.setErrorHandler=hw,zw.setSuspenseHandler=gw,zw.scheduleRefresh=b,zw.scheduleRoot=g,zw.setRefreshHandler=y,zw.getCurrentFiber=nu,zw.getLaneLabelMap=ru,zw.injectProfilingHooks=V,!function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{xd=t.inject(e),Sd=t}catch(n){console.error("React instrumentation encountered an error: %s.",n)}return!!t.checkDCE}(zw)&&Jf&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&-1===navigator.userAgent.indexOf("Edge")||-1<navigator.userAgent.indexOf("Firefox"))){var Hw=window.location.protocol;/^(https?|file):$/.test(Hw)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+("file:"===Hw?"\nYou might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq":""),"font-weight:bold")}v.createRoot=function(e,t){if(!w(e))throw Error("Target container is not a DOM element.");ku(e);var n=!1,r="",a=Lo,o=Mo,i=Do;return null!=t&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):"object"==typeof t&&null!==t&&t.$$typeof===Iu&&console.error("You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:\n\n let root = createRoot(domContainer);\n root.render(<App />);"),!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(a=t.onUncaughtError),void 0!==t.onCaughtError&&(o=t.onCaughtError),void 0!==t.onRecoverableError&&(i=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=Gc(e,1,!1,null,0,n,r,a,o,i,0,null),e[Od]=t.current,Ns(e),new vu(t)},v.hydrateRoot=function(e,t,n){if(!w(e))throw Error("Target container is not a DOM element.");ku(e),void 0===t&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var r=!1,a="",o=Lo,i=Mo,l=Do,s=null;return null!=n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onUncaughtError&&(o=n.onUncaughtError),void 0!==n.onCaughtError&&(i=n.onCaughtError),void 0!==n.onRecoverableError&&(l=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&n.unstable_transitionCallbacks,void 0!==n.formState&&(s=n.formState)),(t=Gc(e,1,!0,t,0,r,a,o,i,l,0,s)).context=Xc(null),(a=Nr(r=ce(r=Sl(n=t.current)))).callback=null,Pr(n,a,r),n=r,t.current.lanes=n,ie(t,n),fs(t),e[Od]=t.current,Ns(e),new wu(t)},v.version="19.1.1","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),v}var k=(y||(y=1,"production"===process.env.NODE_ENV?(function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){if("production"!==process.env.NODE_ENV)throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}(),l.exports=g()):l.exports=w()),l.exports);const x=new class{constructor(){this.supportsContainerQueries=this.detectContainerQueries(),this.init()}detectContainerQueries(){if("undefined"==typeof window)return!1;try{if("CSS"in window&&"supports"in window.CSS)return window.CSS.supports("container-type","inline-size");const e=document.createElement("div");return e.style.containerType="inline-size","inline-size"===e.style.containerType}catch{return!1}}init(){"undefined"!=typeof window&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>this.applyClasses()):this.applyClasses())}applyClasses(){document.querySelectorAll(".limbo-component-container-wrapper").forEach(e=>{this.supportsContainerQueries?(e.classList.add("container-queries-supported"),e.classList.remove("container-queries-fallback")):(e.classList.add("container-queries-fallback"),e.classList.remove("container-queries-supported"))}),this.supportsContainerQueries?(document.body.classList.add("container-queries-supported"),document.body.classList.remove("container-queries-fallback")):(document.body.classList.add("container-queries-fallback"),document.body.classList.remove("container-queries-supported"))}getContainerWidth(e){if(!e)return window.innerWidth;let t=e.closest(".limbo-component-container-wrapper");return t||(t=e.closest(".limbo-modal-content")),t||(t=e.closest(".limbo-modal")),t||(t=document.body),t.offsetWidth||t.clientWidth}shouldUseMobileStyles(e,t=768){return this.getContainerWidth(e)<=t}applyResponsiveClasses(e){if(this.supportsContainerQueries)return;const t=this.shouldUseMobileStyles(e),n=this.shouldUseMobileStyles(e,1024)&&!t;e.classList.toggle("limbo-mobile-fallback",t),e.classList.toggle("limbo-tablet-fallback",n),e.classList.toggle("limbo-desktop-fallback",!t&&!n)}observeResize(){if(!this.supportsContainerQueries)if("ResizeObserver"in window){const e=new ResizeObserver(e=>{e.forEach(e=>{this.applyResponsiveClasses(e.target)})});document.querySelectorAll(".limbo-component-container-wrapper").forEach(t=>{e.observe(t)})}else window.addEventListener("resize",()=>{document.querySelectorAll(".limbo-component-container-wrapper").forEach(e=>{this.applyResponsiveClasses(e)})})}};function S(t={}){const{useContainerQuery:n=!1,containerElement:r=null}=t,[a,o]=e.useState(()=>{const e=n&&r?x.getContainerWidth(r):"undefined"!=typeof window?window.innerWidth:0,t="undefined"!=typeof window&&(e<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)),a="undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0);return{isMobile:t,isTouch:a,isTablet:"undefined"!=typeof window&&(e>768&&e<=1024&&a),orientation:"undefined"!=typeof window?window.innerHeight>window.innerWidth?"portrait":"landscape":"portrait",viewport:{width:"undefined"!=typeof window?window.innerWidth:0,height:"undefined"!=typeof window?window.innerHeight:0},container:{width:e,supportsContainerQueries:x.supportsContainerQueries}}});e.useEffect(()=>{if("undefined"==typeof window)return;const e=()=>{const e=window.innerWidth,t=window.innerHeight,a=n&&r?x.getContainerWidth(r):e,i=a<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),l="ontouchstart"in window||navigator.maxTouchPoints>0;o({isMobile:i,isTouch:l,isTablet:a>768&&a<=1024&&l,orientation:t>e?"portrait":"landscape",viewport:{width:e,height:t},container:{width:a,supportsContainerQueries:x.supportsContainerQueries}})};let t;const a=()=>{clearTimeout(t),t=setTimeout(e,150)};return window.addEventListener("resize",a),window.addEventListener("orientationchange",()=>{setTimeout(e,100)}),()=>{clearTimeout(t),window.removeEventListener("resize",a),window.removeEventListener("orientationchange",e)}},[n,r]);const i="portrait"===a.orientation,l="landscape"===a.orientation,s=a.isMobile||a.isTablet&&i;return{...a,isPortrait:i,isLandscape:l,isCompactMode:s,isMobileSize:a.viewport.width<=640,isTabletSize:a.viewport.width>640&&a.viewport.width<=1024,isDesktopSize:a.viewport.width>1024,deviceClass:a.isMobile?"mobile":a.isTablet?"tablet":"desktop"}}function C({tabs:e,active:t,onChange:r}){const{isMobile:a,isTouch:o}=S();return n.jsx("div",{className:"limbo-tabs "+(a?"limbo-tabs--mobile":""),role:"tablist","aria-label":"Opciones de navegación",style:{...a&&{overflowX:"auto",WebkitOverflowScrolling:"touch",scrollbarWidth:"none",msOverflowStyle:"none"}},children:e.map(i=>{const l=t===i.id;return!l&&i.hideNonActive?null:n.jsx("button",{"data-tab-id":i.id,onClick:()=>r(i.id),onKeyDown:t=>((t,n)=>{const a=e.findIndex(e=>e.id===n);let o=a;switch(t.key){case"ArrowLeft":case"ArrowUp":t.preventDefault(),o=a>0?a-1:e.length-1;break;case"ArrowRight":case"ArrowDown":t.preventDefault(),o=a<e.length-1?a+1:0;break;case"Home":t.preventDefault(),o=0;break;case"End":t.preventDefault(),o=e.length-1;break;case"Enter":case" ":return t.preventDefault(),void r(n);default:return}const i=e[o];i&&!i.hideNonActive&&(r(i.id),setTimeout(()=>{const e=document.querySelector(`[data-tab-id="${i.id}"]`);e&&e.focus()},0))})(t,i.id),className:`limbo-tab ${l?"active":""} ${a?"limbo-tab--mobile":""}`,role:"tab","aria-selected":l,"aria-controls":`tabpanel-${i.id}`,tabIndex:l?0:-1,id:`tab-${i.id}`,style:{...a&&{minWidth:"120px",minHeight:"44px",padding:"12px 16px",flexShrink:0,fontSize:"16px"},...o&&{touchAction:"manipulation",WebkitTapHighlightColor:"transparent"}},children:i.label},i.id)})})}const E="http://localhost",T="https://limbo.lefebvre.com";let _={publicKey:null,token:null,authMode:null,tokenEndpoint:null,prod:!1};function N({prod:e=!1}={}){return e?T:E}async function P({endpoint:e,method:t="GET",body:n=null,prod:r=!1,basePath:a="",customHeaders:o={},isFormData:i=!1,useJWT:l=!0}){try{const s=r||_.prod,c=await async function({isFormData:e=!1,useJWT:t=!0,customHeaders:n={}}={}){const r={};if(e||(r["Content-Type"]="application/json"),t){let e=_.token;if("session"===_.authMode&&!e)try{const t=N(_),n=_.tokenEndpoint||"/auth/token",r=await fetch(`${t}${n}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({public_key:_.publicKey}),credentials:"include"});if(!r.ok)throw new Error(`Session auth failed: ${r.status}`);e=(await r.json()).token,_.token=e}catch(a){throw console.error("❌ Session authentication failed:",a),new Error("Failed to authenticate with session. User must be logged in.")}e?r.Authorization=`Bearer ${e}`:console.warn("⚠️ No JWT token available:",{authMode:_.authMode,hasPublicKey:!!_.publicKey})}return e&&delete r["Content-Type"],{...r,...n}}({isFormData:i,useJWT:l,customHeaders:o});"GET"===t&&!n&&c["Content-Type"]&&delete c["Content-Type"];const u=await fetch(`${N({prod:s})}${a}${e}`,{method:t,headers:c,body:n?i?n:JSON.stringify(n):void 0,credentials:"include"});if(!u.ok){let e=`HTTP ${u.status}: ${u.statusText}`,t=null;try{const n=await u.json();t=n,n.error?e=`${n.error.code}: ${n.error.message}`:n.message&&(e=n.message)}catch{}throw 401===u.status&&t&&("token_expired"===t.error||t.message&&t.message.includes("expired")||t.message&&t.message.includes("caducado")||t.error&&t.error.includes("expired"))&&window.dispatchEvent(new CustomEvent("tokenExpiredError",{detail:{error:{response:{status:401,data:t}}}})),new Error(e)}return u.json()}catch(s){throw new Error(`API Error: ${s.message}`)}}function z(){const e={..._};return e?.prod||!1?"https://limbo.lefebvre.com":"http://localhost"}function R(e){if(!e?.id)return null;return`${z()}/api/assets/${e.id}/download`}function j(e){if(!e)return null;if(e.startsWith("http://")||e.startsWith("https://"))return e;if(e.startsWith("/")){return`${z()}${e}`}return e}function A(e){if(e.message&&!e.message.includes("API Error:"))return e;let t=e.message||"Unknown API error";return t.startsWith("API Error: ")&&(t=t.substring(11)),new Error(t)}const I="/api";async function L(e={}){try{const t=new URLSearchParams(e).toString(),n=t?`/assets?${t}`:"/assets";return function(e){if(!e?.success||!Array.isArray(e?.data?.data))return{result:[]};const t={result:e.data.data.map(e=>({id:e.id,filename:e.filename||e.original_filename,mime_type:e.mime_type,file_size:e.file_size,width:e.width,height:e.height,upload_date:e.upload_date||e.created_at,processing_status:e.processing_status||e.status,url:j(e.master_url||e.master?.url_signed||e.urls?.original||e.url)||R(e),webp_available:e.webp_available||!!e.webp_url,metadata:e.metadata||{},variants_count:e.variants_count||0}))};return e.data.pagination&&(t.pagination={page:e.data.pagination.page,limit:e.data.pagination.limit,total:e.data.pagination.total,pages:e.data.pagination.pages}),t}(await P({endpoint:n,method:"GET",basePath:I,useJWT:!0}))}catch(t){throw A(t)}}async function M(e,t=null,n=!1){try{const r=new FormData;r.append("file",e),t&&r.append("uploaded_by",t),n&&r.append("store_original",n.toString());return function(e){if(!e?.success||!e?.data)return{result:null};const t=e.data;return{result:{id:t.id,filename:t.original_filename,mime_type:t.mime_type,file_size:t.file_size,width:t.width,height:t.height,status:t.status,upload_date:t.created_at,url:j(t.master?.url_signed),master_format:t.master?.format,processing:t.processing||{master_webp:"processing"===t.status?"queued":"completed",variants:"processing"===t.status?"queued":"completed"},checksum:t.checksum,storage_path:t.storage_path_base,metadata:t.metadata||{}}}}(await P({endpoint:"/assets",method:"POST",body:r,basePath:I,isFormData:!0,useJWT:!0}))}catch(r){throw A(r)}}async function D(e){try{const n=await P({endpoint:`/assets/${e}/variants`,method:"GET",basePath:I,useJWT:!0});return t=n,t?.success&&Array.isArray(t?.data?.variants)?{result:t.data.variants.map(e=>({id:e.id,name:e.filename||e.name||`Variante ${e.id}`,filename:e.filename,mime_type:e.mime_type,format:e.output_format||e.format||(e.mime_type?e.mime_type.split("/")[1]:"jpg"),file_size:e.file_size,width:e.width,height:e.height,upload_date:e.upload_date||e.created_at,processing_status:e.processing_status||e.status,url:j(e.master_url||e.master?.url_signed||e.urls?.original||e.url)||R(e),webp_available:e.webp_available||!!e.webp_url,metadata:e.metadata||{},crop_data:e.crop_data||{},crop_params:e.crop_params||e.crop_data||{},parent_asset_id:e.parent_asset_id||t.data.asset_id,variant_type:e.variant_type||"crop"}))}:{result:[]}}catch(n){throw A(n)}var t}function $(){const[t,n]=e.useState({}),[r,a]=e.useState({}),[o,i]=e.useState({}),l=e.useCallback(async e=>{if(e&&!r[e]){if(t[e])return t[e];a(t=>({...t,[e]:!0})),i(t=>({...t,[e]:null}));try{const t=await D(e),r=t?.result||[];return n(t=>({...t,[e]:r})),r}catch(o){return console.error("Error loading variants:",o),i(t=>({...t,[e]:o.message})),[]}finally{a(t=>({...t,[e]:!1}))}}},[t,r]),s=e.useCallback(e=>t[e]||[],[t]),c=e.useCallback(e=>r[e]||!1,[r]),u=e.useCallback(e=>o[e]||null,[o]),d=e.useCallback(e=>{n(t=>{const n={...t};return delete n[e],n}),a(t=>{const n={...t};return delete n[e],n}),i(t=>{const n={...t};return delete n[e],n})},[]),f=e.useCallback(async e=>(d(e),await l(e)),[d,l]),p=e.useCallback(async(e,t)=>{try{return await async function(e,t){try{return await P({endpoint:`/assets/${e}/variants/${t}`,method:"DELETE",basePath:I,useJWT:!0})}catch(n){throw A(n)}}(e,t),n(n=>{const r=n[e]||[];return{...n,[e]:r.filter(e=>e.id!==t)}}),{success:!0}}catch(r){return console.error("Error deleting variant:",r),{success:!1,error:r.message}}},[]);return{loadVariants:l,getVariants:s,isLoading:c,getError:u,clearVariants:d,refreshVariants:f,removeVariant:p}}function O({image:t,isOpen:r,onClose:a,onSelect:o,onDelete:i,onCrop:l,onVariantDeleted:s,allowedActions:c={select:!0,download:!0,copy:!0,delete:!0,crop:!0}}){const{loadVariants:u,getVariants:d,isLoading:f,getError:p,removeVariant:m}=$(),h=window.limboCore?.accessibilityManager,[g,b]=e.useState(null),[y,v]=e.useState(null),w=(window.limboCore?.config?.getGlobal()||{}).interaction||{allowSelection:!1,allowCropping:!0},k=w.allowSelection&&c.select&&o,x=w.allowCropping&&c.crop&&l,S=c.copy,C=c.download,E=c.delete,[T,_]=e.useState(new Set),N=e.useMemo(()=>t?.variants||[],[t?.variants]),P=d(t?.id),z=N.length>0?N:P,R=0===N.length&&f(t?.id),j=0===N.length?p(t?.id):null;e.useEffect(()=>{!r||!t?.id||t?.variants&&0!==t.variants.length||u(t.id)},[r,t?.id,t?.variants,u]),e.useEffect(()=>{r&&_(new Set)},[r]);if(!r)return null;return n.jsx("div",{className:"limbo-modal-overlay",onClick:a,role:"dialog","aria-modal":"true","aria-labelledby":"variants-modal-title",children:n.jsxs("div",{className:"limbo-modal-content limbo-variants-modal",onClick:e=>e.stopPropagation(),children:[n.jsxs("div",{className:"limbo-modal-header",children:[n.jsxs("h2",{id:"variants-modal-title",children:["Variantes de ",t?.filename]}),n.jsx("button",{className:"limbo-modal-close",onClick:a,"aria-label":"Cerrar modal de variantes",children:"✕"})]}),g&&n.jsx("div",{className:`limbo-variants-message limbo-variants-message--${y} mt-1`,role:"alert",style:{padding:"12px 20px",margin:"0 20px 15px 20px",borderRadius:"4px",backgroundColor:"success"===y?"#d4edda":"#f8d7da",color:"success"===y?"#155724":"#721c24",border:"1px solid "+("success"===y?"#c3e6cb":"#f5c6cb")},children:g}),n.jsx("div",{className:"limbo-modal-body",children:R?n.jsxs("div",{className:"limbo-variants-loading",children:[n.jsx("div",{className:"limbo-loader"}),n.jsx("p",{children:"Cargando variantes..."})]}):j?n.jsxs("div",{className:"limbo-variants-error",children:[n.jsxs("p",{children:["Error al cargar variantes: ",j]}),n.jsx("button",{onClick:()=>u(t.id),className:"btn btn-primary",children:"Reintentar"})]}):0===z.length?n.jsxs("div",{className:"limbo-variants-empty",children:[n.jsx("p",{children:"Esta imagen no tiene variantes aún."}),n.jsx("small",{children:"Las variantes aparecerán aquí después de hacer recortes o redimensionados."})]}):n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"limbo-variant-section",children:[n.jsx("h3",{children:"Imagen original"}),n.jsxs("div",{onClick:()=>{h?.announce(`Abriendo imagen original ${t.filename} en nueva pestaña`),window.open(t.url,"_blank")},className:"limbo-variant-card limbo-variant-original cursor-pointer",children:[n.jsx("div",{className:"limbo-variant-preview",children:n.jsx("img",{src:t.url,alt:t.filename,loading:"lazy"})}),n.jsxs("div",{className:"limbo-variant-info",children:[n.jsx("div",{className:"limbo-variant-name",children:t.filename}),n.jsxs("div",{className:"limbo-variant-meta",children:[n.jsxs("span",{children:[t.width,"×",t.height]}),n.jsxs("span",{children:[Math.round(t.file_size/1024)," KB"]})]})]}),n.jsxs("div",{className:"limbo-variant-actions",children:[k&&n.jsx("button",{className:"btn btn-success btn-sm",onClick:e=>{e.stopPropagation(),o?.(t),a?.()},title:"Seleccionar original",children:"Seleccionar"}),x&&n.jsx("button",{className:"btn btn-crop btn-sm",onClick:e=>{e.stopPropagation(),l&&(h?.announce(`Abriendo herramienta de recorte para ${t.filename}`),l(t),a?.())},title:"Recortar imagen",children:n.jsx("span",{className:"icon icon-scissors-white icon--sm"})}),S&&n.jsx("button",{className:"btn btn-secondary btn-sm",onClick:e=>{e.stopPropagation(),(async()=>{try{await navigator.clipboard.writeText(t.url),h?.announce("URL de imagen original copiada")}catch(e){console.error("Error copying original URL:",e),h?.announceError("Error al copiar URL")}})()},title:"Copiar URL",children:n.jsx("span",{className:"icon icon-copy-white icon--sm"})}),C&&n.jsx("button",{className:"btn btn-primary btn-sm",onClick:e=>{e.stopPropagation(),(()=>{h?.announce(`Descargando imagen original ${t.filename}`);const e=document.createElement("a");e.href=t.url,e.download=t.filename,document.body.appendChild(e),e.click(),document.body.removeChild(e)})()},title:"Descargar",children:n.jsx("span",{className:"icon icon-download-white icon--sm"})}),E&&i&&n.jsx("button",{className:"btn btn-danger btn-sm",onClick:e=>{e.stopPropagation(),(async()=>{if(!i)return;window.confirm(`¿Estás seguro de que deseas eliminar "${t.filename}"? Esta acción también eliminará todas sus variantes.`)&&(h?.announce(`Eliminando imagen ${t.filename}`),await i(t.id),a?.())})()},title:"Eliminar imagen",children:n.jsx("span",{className:"icon icon-close-small-white icon--sm m-[0!important]"})})]})]})]}),n.jsxs("div",{className:"limbo-variant-section",children:[n.jsxs("h3",{children:["Variantes (",z.length,")"]}),n.jsx("div",{className:"limbo-variants-grid",children:z.map(e=>{const r=T.has(e.id);return n.jsxs("div",{className:"limbo-variant-card "+(r?"":"cursor-pointer"),onClick:r?void 0:()=>(e=>{h?.announce(`Abriendo variante ${e.name} en nueva pestaña`),window.open(e.url,"_blank")})(e),children:[n.jsxs("div",{className:"limbo-variant-preview",children:[n.jsx("img",{src:e.url,alt:e.name||e.filename||`Variante ${e.id}`,loading:"lazy",onError:()=>{return t=e.id,void _(e=>new Set([...e,t]));var t},style:{display:r?"none":"block"}}),r&&n.jsx("div",{className:"limbo-variant-error",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100px",backgroundColor:"#f5f5f5",color:"#666"},children:n.jsx("span",{children:"Error al cargar preview"})})]}),n.jsxs("div",{className:"limbo-variant-info",children:[n.jsx("div",{className:"limbo-variant-name",children:e.name||e.filename||`Variante ${e.id}`}),n.jsxs("div",{className:"limbo-variant-meta",children:[n.jsxs("span",{children:[e.width,"×",e.height]}),n.jsx("span",{children:(e.format||"jpg").toUpperCase()}),n.jsxs("span",{children:[Math.round((e.file_size||0)/1024)," KB"]})]}),e.crop_params&&n.jsxs("div",{className:"limbo-variant-crop-badge",children:[n.jsx("span",{className:"icon icon-scissors icon--xs"})," ","Recortada"]})]}),n.jsxs("div",{className:"limbo-variant-actions",children:[k&&n.jsx("button",{className:"btn btn-success btn-sm",onClick:n=>{n.stopPropagation(),(e=>{const n={id:e.id,filename:`${t.filename}_${e.name}`,url:e.url,width:e.width,height:e.height,mime_type:`image/${e.format}`,file_size:e.file_size,upload_date:e.created_at,processing_status:"completed",is_variant:!0,parent_asset_id:t.id,variant_info:e};h?.announce(`Variante seleccionada: ${e.name}`),o?.(n),a?.()})(e)},title:`Seleccionar variante ${e.name||e.filename||e.id}`,children:"Seleccionar"}),S&&n.jsx("button",{className:"btn btn-secondary btn-sm",onClick:t=>{t.stopPropagation(),(async e=>{try{await navigator.clipboard.writeText(e.url),h?.announce(`URL de variante ${e.name} copiada`)}catch(t){console.error("Error copying variant URL:",t),h?.announceError("Error al copiar URL de variante")}})(e)},title:"Copiar URL",children:n.jsx("span",{className:"icon icon-copy-white icon--sm"})}),C&&n.jsx("button",{className:"btn btn-primary btn-sm",onClick:n=>{n.stopPropagation(),(e=>{h?.announce(`Descargando variante ${e.name}`);const n=document.createElement("a");n.href=e.url,n.download=`${t.filename}_${e.name}.${e.format}`,document.body.appendChild(n),n.click(),document.body.removeChild(n)})(e)},title:"Descargar",children:n.jsx("span",{className:"icon icon-download-white icon--sm"})}),E&&n.jsx("button",{className:"btn btn-danger btn-sm",onClick:n=>{n.stopPropagation(),(async e=>{if(window.confirm(`¿Estás seguro de que deseas eliminar la variante "${e.name||e.filename}"?`)){h?.announce(`Eliminando variante ${e.name||e.filename}`);const n=await m(t.id,e.id);n.success?(b("Variante eliminada correctamente"),v("success"),h?.announce("Variante eliminada correctamente"),s?.(),setTimeout(()=>{b(null),v(null)},3e3)):(b(`Error al eliminar variante: ${n.error}`),v("error"),h?.announceError(`Error al eliminar variante: ${n.error}`),setTimeout(()=>{b(null),v(null)},5e3))}})(e)},title:"Eliminar variante",children:n.jsx("span",{className:"icon icon-close-small-white icon--sm m-[0!important]"})})]})]},e.id)})})]})]})})]})})}function F({image:t,onDelete:r,onCrop:a,onSelect:o,thumbnailSize:i=32,isDeleting:l=!1,allowedActions:s={select:!0,download:!0,copy:!0,delete:!0,crop:!0,variants:!0}}){const[c,u]=e.useState(!1),[d,f]=e.useState(!1),[p,m]=e.useState(t.variants_count||0),{isMobile:h,isTouch:g}=S(),b=window.limboCore?.accessibilityManager,y=(window.limboCore?.config?.getGlobal()||{}).interaction||{allowSelection:!1,allowCropping:!0},v=e=>{e.stopPropagation(),b?.announce(`Eliminando imagen ${t.filename}`,"assertive"),r?.(t)},w=async e=>{e.stopPropagation();let n=t.url||t.path;try{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(n);else{const e=document.createElement("textarea");e.value=n,e.style.position="fixed",e.style.opacity="0",document.body.appendChild(e),e.focus(),e.select(),document.execCommand("copy"),document.body.removeChild(e)}u(!0),b?.announce(`URL de ${t.filename} copiada al portapapeles. Nota: La URL puede tener un tiempo de validez limitado.`),setTimeout(()=>u(!1),2e3)}catch(r){console.error("Error al copiar URL:",r),b?.announce(`Error al copiar URL de ${t.filename}. Inténtalo de nuevo.`),alert(`Error al copiar URL de ${t.filename}. Por favor, inténtalo de nuevo.`)}},k=e=>{e.preventDefault(),e.stopPropagation(),b?.announce(`Descargando ${t.filename}`),fetch(t.url||t.path,{mode:"cors"}).then(e=>e.blob()).then(e=>{const n=window.URL.createObjectURL(e),r=document.createElement("a");r.href=n,r.download=t.filename||"imagen.jpg",document.body.appendChild(r),r.click(),setTimeout(()=>{window.URL.revokeObjectURL(n),document.body.removeChild(r)},100)})},x=e=>{e.stopPropagation(),b?.announce(`Editando imagen ${t.filename}`),a?.(t)},C=t.variants&&t.variants.length>0||p>0,E=p,T=e.useCallback(()=>{m(e=>Math.max(0,e-1))},[]);e.useEffect(()=>{m(t.variants_count||0)},[t.variants_count]);const _=e=>{e.stopPropagation(),b?.announce(`Mostrando variantes de ${t.filename}`),f(!0)},N=y.allowSelection&&s.select&&o,P=y.allowCropping&&s.crop&&a,z=C&&!1!==s.variants,R=()=>{window.open(t.url||t.path,"_blank")};return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:`limbo-image-card flex flex-col items-center cursor-pointer relative transition ${l?"opacity-50":""} ${h?"limbo-image-card--mobile":""}`,onClick:R,onKeyDown:e=>{switch(e.key){case"Enter":case" ":e.preventDefault(),R();break;case"d":case"D":s.download&&(e.preventDefault(),k(e));break;case"c":case"C":s.copy&&(e.preventDefault(),w(e));break;case"Delete":case"Backspace":s.delete&&r&&(e.preventDefault(),v(e));break;case"x":case"X":s.crop&&a&&(e.preventDefault(),x(e));break;case"v":case"V":s.variants&&(e.preventDefault(),_(e))}},title:h?"Toque para ver imagen":"Haga click en la imagen para ver preview en nueva pestaña (Enter/Space para abrir, D descargar, C copiar, Delete eliminar, X recortar)",role:"button",tabIndex:0,"aria-label":`Imagen ${t.filename}. ${t.width}x${t.height} px`,style:{...g&&{touchAction:"manipulation",WebkitTapHighlightColor:"transparent"}},children:[n.jsxs("div",{className:"limbo-image-actions "+(h?"limbo-image-actions--mobile":""),children:[s.copy&&n.jsx("button",{type:"button",title:c?"¡Copiado!":"Copiar URL",className:"btn btn-copy border border-brand-blue-050/50 "+(h?"btn--touch":""),onClick:w,tabIndex:-1,style:{...h&&{width:"40px",height:"40px"}},children:n.jsx("span",{className:`icon ${c?"icon-copied-white":"icon-copy-white"} icon--sm`,"aria-hidden":"true"})}),N&&n.jsx("button",{type:"button",title:"Seleccionar imagen",className:"btn btn-success border border-brand-blue-050/50 "+(h?"btn--touch":""),onClick:e=>{e.stopPropagation(),b?.announce(`Seleccionando ${t.filename} para el portal`),o?.(t)},tabIndex:-1,style:{...h&&{width:"40px",height:"40px"}},children:n.jsx("span",{className:"icon icon-tick-white icon--sm","aria-hidden":"true"})}),P&&n.jsx("button",{type:"button",title:"Editar imagen",className:"btn btn-crop border border-brand-blue-050/50 "+(h?"btn--touch":""),onClick:x,tabIndex:-1,style:{...h&&{width:"40px",height:"40px"}},children:n.jsx("span",{className:"icon icon-scissors-white icon--sm","aria-hidden":"true"})}),z&&n.jsxs("button",{type:"button",title:`Ver ${E} variante${1!==E?"s":""}`,className:"btn btn-variants border border-brand-blue-050/50 "+(h?"btn--touch":""),onClick:_,tabIndex:-1,style:{...h&&{width:"40px",height:"40px"},position:"relative"},children:[n.jsx("span",{className:"icon icon-album-menu-white icon--sm","aria-hidden":"true"}),E>0&&n.jsx("span",{className:"variants-count-badge",style:{position:"absolute",top:"-8px",right:"-8px",background:"#dc2626",color:"white",borderRadius:"50%",minWidth:"20px",height:"20px",fontSize:"12px",fontWeight:"700",display:"flex",alignItems:"center",justifyContent:"center",lineHeight:"1",border:"2px solid white",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.4)",zIndex:"999"},children:E})]}),s.download&&n.jsx("button",{type:"button",title:"Descargar",className:"btn btn-download border border-brand-blue-050/50 "+(h?"btn--touch":""),onClick:k,tabIndex:-1,style:{...h&&{width:"40px",height:"40px"}},children:n.jsx("span",{className:"icon icon-download-white icon--sm","aria-hidden":"true"})}),s.delete&&r&&n.jsx("button",{onClick:v,disabled:l,className:"btn btn-delete border border-brand-blue-050/50 "+(h?"btn--touch":""),title:"Eliminar imagen",tabIndex:-1,style:{...h&&{width:"40px",height:"40px"}},children:l?"…":n.jsx("span",{className:"icon icon-close-small-white icon--sm","aria-hidden":"true"})})]}),n.jsx("img",{src:t.url||t.path,alt:t.filename,className:"w-full object-cover rounded aspect-square",sizes:`height: ${6*i}px,width: ${6*i}px`,draggable:!1,style:{...h&&{minHeight:`${Math.max(3*i,80)}px`,height:"auto",aspectRatio:"1 / 1",objectFit:"cover"}}}),n.jsx("span",{className:"text-xs mt-1 truncate w-full text-center limbo-image-card-name "+(h?"limbo-image-card-name--mobile":""),style:{...h&&{fontSize:"0.75rem",lineHeight:"1.2",maxWidth:"100%",padding:"2px 4px",backgroundColor:"rgba(255, 255, 255, 0.9)",borderRadius:"4px",color:"#333",fontWeight:"500"}},children:t.filename})]}),n.jsx(O,{image:t,isOpen:d,onClose:()=>f(!1),onSelect:o,onDelete:r,onCrop:a,onVariantDeleted:T,allowedActions:{select:s.select,download:s.download,copy:s.copy,delete:s.delete,crop:s.crop}})]})}function U({text:e="Cargando..."}){return n.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-gray-600",role:"status","aria-live":"polite","aria-label":e,children:[n.jsxs("svg",{className:"animate-spin h-6 w-6 mb-2 text-blue-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:[n.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),n.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v8H4z"})]}),n.jsx("p",{className:"text-sm",id:"loader-text",children:e})]})}const H=new Map;function W({apiKey:t,prod:r,onSelect:a,onCrop:o,onDelete:i,deletingId:l,images:s,loading:c,error:u,allowedActions:d={select:!0,download:!0,copy:!0,delete:!0,crop:!0,variants:!0}}){const[f,p]=e.useState({search:"",dateFrom:"",dateTo:"",originPortal:"",uploadedBy:""}),m=e.useRef(null),h=function(){const[t,n]=e.useState(null),[r,a]=e.useState(!0),[o,i]=e.useState(null);return e.useEffect(()=>{const e="auth-status",t=H.get(e),r=Date.now();if(t&&r-t.timestamp<3e5)return n(t.data),void a(!1);let o=!0;return(async()=>{try{const t=!0;if(!o)return;H.set(e,{data:t,timestamp:Date.now()}),n(t)}catch(t){o&&(i(t.message),n(!1))}finally{o&&a(!1)}})(),()=>{o=!1}},[]),{allowed:t,loading:r,error:o,invalidateCache:()=>{H.delete("auth-status")}}}(),g=window.limboCore?.accessibilityManager;e.useEffect(()=>{if(m.current&&window.limboCore?.keyboardManager){const e="gallery-grid";m.current.setAttribute("data-grid-id",e),window.limboCore.keyboardManager.setupGridNavigation(m.current,{itemSelector:".limbo-image-card",gridId:e,columns:"auto"})}},[s]),e.useEffect(()=>{c?g?.announceLoading(!0,"galería"):c||u?u&&g?.announceError(u,"galería"):(g?.announceLoading(!1,"galería"),s.length>0&&g?.announce(`Se encontraron ${s.length} imágenes en la galería`))},[c,u,s.length,g]);const b=e=>{const{name:t,value:n}=e.target;p(e=>({...e,[t]:n}))};return n.jsxs("div",{className:"w-full",children:[n.jsx("div",{className:"limbo-card mb-6 p-4 bg-brand-blue-050 shadow-md",children:n.jsxs("form",{className:"limbo-form-grid flex flex-col sm:flex-row flex-wrap gap-4 items-start sm:items-end justify-between",onSubmit:e=>e.preventDefault(),"aria-label":"Filtrar imágenes",children:[n.jsxs("div",{className:"flex flex-col w-full sm:min-w-[180px] sm:flex-1",children:[n.jsx("label",{htmlFor:"search",className:"form-label mb-1",children:"Nombre"}),n.jsx("input",{type:"text",name:"search",id:"search",placeholder:"Buscar por nombre...",value:f.search,onChange:b,className:"form-control",autoComplete:"off"})]}),n.jsxs("div",{className:"flex flex-col sm:flex-row flex-wrap gap-2 justify-between items-start sm:items-end w-full sm:w-auto",children:[n.jsxs("div",{className:"flex flex-col w-full sm:w-auto",children:[n.jsx("label",{htmlFor:"dateFrom",className:"form-label mb-1",children:"Desde"}),n.jsx("input",{type:"date",name:"dateFrom",id:"dateFrom",value:f.dateFrom,onChange:b,className:"form-control"})]}),n.jsxs("div",{className:"flex flex-col w-full sm:w-auto",children:[n.jsx("label",{htmlFor:"dateTo",className:"form-label mb-1",children:"Hasta"}),n.jsx("input",{type:"date",name:"dateTo",id:"dateTo",value:f.dateTo,onChange:b,className:"form-control"})]}),h&&n.jsxs("div",{className:"flex flex-col w-full sm:w-auto",children:[n.jsx("label",{htmlFor:"originPortal",className:"form-label mb-1",children:"Portal de origen"}),n.jsx("input",{type:"text",name:"originPortal",id:"originPortal",placeholder:"Portal de origen",value:f.originPortal,onChange:b,className:"form-control"})]}),n.jsxs("div",{className:"flex flex-col w-full sm:w-auto",children:[n.jsx("label",{htmlFor:"uploadedBy",className:"form-label mb-1",children:"Subido por"}),n.jsx("input",{type:"text",name:"uploadedBy",id:"uploadedBy",placeholder:"Subido por",value:f.uploadedBy,onChange:b,className:"form-control"})]})]})]})}),c?n.jsx(U,{text:"Cargando imágenes..."}):u?n.jsx("div",{className:"alert alert-danger text-center",children:u}):n.jsx("div",{ref:m,className:"limbo-gallery mt-4","data-limbo-responsive":!0,"data-grid-id":"gallery-grid",role:"grid","aria-label":"Galería de imágenes. Use las flechas para navegar entre imágenes",children:s.length>0?s.map((e,t)=>n.jsx("div",{role:"gridcell","aria-posinset":t+1,"aria-setsize":s.length,children:n.jsx(F,{image:e,onSelect:a,onCrop:o,onDelete:d.delete&&i?()=>i(e.id):null,thumbnailSize:32,isDeleting:l===e.id,allowedActions:d})},e.id)):n.jsx("div",{className:"col-span-full text-center text-gray-500 py-8",role:"status","aria-live":"polite",children:n.jsx("p",{children:"No se han encontrado imágenes"})})})]})}function B({file:e,setFile:t,previewUrl:r,setPreviewUrl:a,fileInputRef:o,onUpload:i,disabled:l}){return n.jsxs("form",{onSubmit:n=>{n.preventDefault(),e&&!l&&(i(e),t(null),a(null),o.current&&(o.current.value=""))},className:"flex flex-col items-center gap-6","aria-label":"Subir imagen desde dispositivo",children:[n.jsxs("label",{htmlFor:"file-input",className:"w-full flex flex-col items-center justify-center border-2 border-dashed border-brand-blue-200 rounded-xl p-8 cursor-pointer hover:border-brand-blue-1000 hover:to-bright-blue-200 hover:from-brand-blue-050 focus-within:border-brand-blue-800 from-bright-blue-050 to-brand-blue-050 bg-linear-to-br transition",tabIndex:0,style:{outline:"none"},children:[n.jsx("span",{className:"icon icon-upload icon--lg mb-2","aria-hidden":"true"}),n.jsx("span",{className:"font-medium text-brand-blue-1000 mb-1",children:"Haz clic o arrastra una imagen aquí"}),n.jsx("span",{className:"text-sm text-neutral-700",children:"Formatos permitidos: JPG, PNG, GIF, SVG, WebP"}),n.jsx("input",{id:"file-input",ref:o,type:"file",accept:"image/jpeg,image/png,image/svg,image/webp,image/gif",onChange:e=>{const n=e.target.files[0];if(t(n),n){const e=URL.createObjectURL(n);a(e)}else a(null)},disabled:l,className:"sr-only","aria-label":"Seleccionar imagen"})]}),r&&n.jsxs("div",{className:"w-full flex flex-col items-center gap-2",children:[n.jsx("img",{src:r,alt:e?.name||"Previsualización",className:"rounded-lg shadow-md border border-brand-blue-200 max-h-64 object-contain bg-white",style:{maxWidth:"100%"}}),n.jsxs("div",{className:"text-sm text-neutral-800 bg-brand-blue-050 p-2 rounded w-full text-center",children:[n.jsxs("p",{children:[n.jsx("span",{className:"font-medium",children:"Archivo:"})," ",e?.name]}),n.jsxs("p",{children:[n.jsx("span",{className:"font-medium",children:"Tamaño:"})," ",e?(e.size/1024/1024).toFixed(2):"--"," MB"]}),n.jsxs("p",{children:[n.jsx("span",{className:"font-medium",children:"Tipo:"})," ",e?.type]})]})]}),n.jsx("button",{type:"submit",disabled:!e||l,title:e?"Subir imagen a la galeria":"Proporcione una imagen antes de continuar",className:"limbo-btn w-full mt-2 "+(e?"limbo-btn-primary":"cursor-not-allowed limbo-btn-disabled"),style:{minHeight:44},children:l?"Subiendo...":"Subir imagen"})]})}const V="/api";const q=new Map;function Q(t=!1){const[n,r]=e.useState([]),[a,o]=e.useState(!0),[i,l]=e.useState(null);e.useEffect(()=>{const e=`ai-services-${t}`,n=q.get(e),a=Date.now();if(n&&a-n.timestamp<864e5)return r(n.data),void o(!1);let i=!0;return(async()=>{try{const n=await function(e=!1){return P({endpoint:"/ai/services",prod:e,basePath:V})}(t);if(!i)return;const o=n?.data?.images||[];r(o),q.set(e,{data:o,timestamp:a})}catch(n){i&&l(n.message)}finally{i&&o(!1)}})(),()=>{i=!1}},[t]);return{services:n,loading:a,error:i,invalidateCache:()=>{q.delete(`ai-services-${t}`)}}}const K=new Map;function Y(t=!1){const[n,r]=e.useState(null),[a,o]=e.useState(!1),[i,l]=e.useState(null);return{params:n,loading:a,error:i,fetchParams:async e=>{o(!0),l(null);const n=`${t}-${e}`,a=Date.now(),i=K.get(n);if(i&&a-i.timestamp<864e5)return r(i.data),o(!1),i.data;try{const o=await function({services:e=null,form:t=!1}={},n=!1){const r={};return e&&(r.services=e),!1!==t&&(r.form=t),P({endpoint:"/ai/params"+(Object.keys(r).length?"?"+new URLSearchParams(r).toString():""),method:"GET",prod:n,basePath:"/api/atenea"})}({services:e,form:!1},t),i=o?.result?.data||o?.data||o?.result||o;return r(i),K.set(n,{data:i,timestamp:a}),i}catch(s){return l(s.message),r(null),null}finally{o(!1)}},reset:()=>{l(null),r(null)}}}function G({prod:t,disabled:r,onSelected:a,onGenerated:o}){const i=Q(t),l=Y(t),[s,c]=e.useState(""),[u,d]=e.useState({}),[f,p]=e.useState(!1),[m,h]=e.useState(null),[g,b]=e.useState(null),y={"dall-e-2":"Dalle2","dall-e-3":"Dalle3","freepik-classic":"Freepik Classic","freepik-mystic":"Freepik Mystic","freepik-google":"Freepik Google","freepik-flux":"Freepik Flux",shutterstock:"Shutterstock",freepikstock:"Freepik"},v=e=>y[e]||e;e.useEffect(()=>{if(!i.loading&&1===i.services.length){const e=i.services[0];c(e),l.fetchParams(e,!0)}},[i.loading,i.services]);e.useEffect(()=>{if(!s)return;const e=l.params?.[s]?.parameters;if(e){const t=Object.fromEntries(Object.entries(e).map(([e,t])=>[e,t.default??""]));t.service=s,d(t)}},[s,l.params]);const w=e=>{const{name:t,value:n}=e.target;d(e=>({...e,[t]:n}))},k=async e=>{e.preventDefault(),p(!0),h(null),b(null);try{const e=await function(e,t=!1){return P({endpoint:"/ai/generate",method:"POST",body:e,prod:t,basePath:V})}(u,t);let r=null;if(e?.data?.images&&Array.isArray(e.data.images)&&e.data.images.length>0?r=e.data.images[0]:e?.result?.images&&Array.isArray(e.result.images)&&e.result.images.length>0?r=e.result.images[0]:Array.isArray(e)&&e.length>0?r=e[0]:"string"==typeof e&&(r=e),!r||!o)throw new Error("No se pudo extraer la imagen de la respuesta");if(r.startsWith("http"))try{const e=await fetch(r);if(!e.ok)throw new Error(`Failed to download image: ${e.status}`);const t=await e.blob(),n=new File([t],"ai-image.png",{type:t.type||"image/png"});o(n)}catch(n){throw new Error(`Error downloading image: ${n.message}`)}else{const e=r.replace(/^data:image\/\w+;base64,/,""),t=atob(e),n=new Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);const a=new Uint8Array(n),i=new File([a],"ai-image.webp",{type:"image/webp"});o(i)}b(e?.data?.images||e?.result?.images||null)}catch(r){h(r.message||"Error al generar la imagen")}finally{p(!1)}};return i.loading?n.jsxs("div",{className:"flex items-center justify-center py-8",children:[n.jsx("span",{className:"limbo-loader mr-2"})," Cargando servicios IA..."]}):i.services.length?n.jsxs("div",{className:"flex flex-col gap-4",children:[n.jsx("h3",{id:"aiSelectDescription",className:"text-lg font-semibold text-brand-blue-1000",children:1===i.services.length?`Generación con ${v(s)}`:"Selecciona el modelo IA"}),i.services.length>1&&n.jsxs("select",{name:"aiService","aria-describedby":"aiSelectDescription",title:"Selecciona el servicio IA",value:s,onChange:async e=>{const t=e.target.value;c(t),d({}),b(null),t&&await l.fetchParams(t,!0)},disabled:i.loading||r,className:"limbo-input",children:[n.jsx("option",{value:"",children:"-- Selecciona --"}),i.services.map(e=>n.jsx("option",{value:e,children:v(e)},e))]}),i.error&&n.jsx("div",{className:"alert alert-danger",children:i.error}),l.loading&&n.jsx("div",{children:"Cargando parámetros..."}),l.error&&n.jsx("div",{className:"alert alert-danger",children:l.error}),s&&(()=>{const e=l.params?.[s]?.parameters;if(!e)return null;const t=Object.entries(e).filter(([e,t])=>!t.disabled),a=t.length>3;return n.jsxs("form",{onSubmit:k,"data-type":"ai",className:"flex flex-col gap-3 mt-4 border-t-1 pt-4 border-brand-blue-200","aria-label":"Formulario generación IA",children:[n.jsx("div",{className:a?"grid grid-cols-1 md:grid-cols-2 gap-3":"flex flex-col gap-3",children:t.map(([e,t])=>{let a=t.placeholder||"";return a||(a="integer"===t.type?t.minValue&&t.maxValue?`Entre ${t.minValue} y ${t.maxValue}`:t.minValue?`Mínimo ${t.minValue}`:t.maxValue?`Máximo ${t.maxValue}`:"Introduce un número":e.toLowerCase().includes("prompt")?"Describe la imagen que deseas generar...":e.toLowerCase().includes("negative")?"Elementos a evitar en la imagen...":`Introduce ${(t.label||e).toLowerCase()}`),n.jsxs("div",{className:"flex flex-col gap-1",children:[n.jsxs("label",{htmlFor:`ai-${e}`,className:"text-xs font-medium text-brand-blue-900",children:[t.label||e,t.required&&n.jsx("span",{className:"text-red-600 ml-1",children:"*"})]}),t.options?n.jsx("select",{id:`ai-${e}`,name:e,value:u[e]??"",onChange:w,className:"limbo-input",disabled:r,title:t.label||e,children:t.options.map(e=>n.jsx("option",{value:e,children:e},e))}):n.jsx("input",{id:`ai-${e}`,type:"integer"===t.type?"number":"text",name:e,value:u[e]??"",onChange:w,className:"limbo-input",disabled:r,required:t.required,min:t.minValue,max:t.maxValue,placeholder:a,title:t.label||e})]},e)})}),n.jsx("button",{type:"submit",disabled:f||r,title:f?"Generando imagen...":"Generar imagen",className:"limbo-btn w-full mt-2 "+(f?"cursor-not-allowed limbo-btn-disabled":"limbo-btn-primary"),style:{minHeight:44},children:f?"Generando...":"Generar imagen"})]})})(),m&&n.jsx("div",{className:"alert alert-danger",children:m}),g&&g.map((e,t)=>n.jsxs("div",{className:"mt-6 text-center",children:[n.jsx("img",{src:e.contains("http")?e:`data:image/png;base64, ${e}`,alt:"Imagen generada con IA",className:"rounded-lg shadow-md border border-brand-blue-200 max-h-72 mx-auto"}),n.jsx("button",{className:"limbo-btn limbo-btn-primary mt-4",children:"Aceptar y subir"})]},"img-"+t))]}):n.jsx("div",{className:"alert alert-warning",children:"No hay servicios IA disponibles."})}const X="/api";const Z=new Map;function J(t=!1){const[n,r]=e.useState([]),[a,o]=e.useState(!0),[i,l]=e.useState(null);e.useEffect(()=>{const e=`stock-services-${t}`,n=Z.get(e),a=Date.now();if(n&&a-n.timestamp<864e5)return r(n.data),void o(!1);let i=!0;return(async()=>{try{const n=await function(e=!1){return P({endpoint:"/stock/services",prod:e,basePath:X})}(t);if(!i)return;const o=n?.data?.images||[];r(o),Z.set(e,{data:o,timestamp:a})}catch(n){i&&l(n.message)}finally{i&&o(!1)}})(),()=>{i=!1}},[t]);return{services:n,loading:a,error:i,invalidateCache:()=>{Z.delete(`stock-services-${t}`)}}}function ee({prod:t,disabled:r,onSelected:a}){const o=e.useRef(null),i=J(t),l=(e,t)=>{try{const n=sessionStorage.getItem(`limbo_stock_${e}`);return n?JSON.parse(n):t}catch{return t}},[s,c]=e.useState(()=>l("selectedService","")),[u,d]=e.useState(()=>l("dynamicForm",{})),[f,p]=e.useState(()=>l("stockImages",[])),[m,h]=e.useState(()=>l("currentPage",1)),[g,b]=e.useState(()=>l("paginationInfo",null)),y=Y(t),[v,w]=e.useState(!1),[k,x]=e.useState(null),[S,C]=e.useState(null);e.useEffect(()=>{sessionStorage.setItem("limbo_stock_selectedService",JSON.stringify(s))},[s]),e.useEffect(()=>{sessionStorage.setItem("limbo_stock_dynamicForm",JSON.stringify(u))},[u]),e.useEffect(()=>{sessionStorage.setItem("limbo_stock_stockImages",JSON.stringify(f))},[f]),e.useEffect(()=>{sessionStorage.setItem("limbo_stock_currentPage",JSON.stringify(m))},[m]),e.useEffect(()=>{sessionStorage.setItem("limbo_stock_paginationInfo",JSON.stringify(g))},[g]);const E={shutterstock:"Shutterstock",freepikstock:"Freepik"},T=e=>E[e]||e;e.useEffect(()=>{if(!i.loading&&1===i.services.length){const e=i.services[0];c(e),y.fetchParams(e,!0)}},[i.loading,i.services]);e.useEffect(()=>{if(!s)return;const e=y.params?.[s]?.parameters;if(e){const t=Object.fromEntries(Object.entries(e).map(([e,t])=>[e,t.default??""]));t.service=s,d(t)}},[s,y.params]);const _=e=>{const{name:t,value:n}=e.target;d(e=>({...e,[t]:n}))},N=async(e=1)=>{w(!0),x(null),1===e&&p([]);try{let n;if(1===e){const t=y.params?.[s]?.parameters,r={...u};Object.entries(t||{}).forEach(([e,t])=>{e in r||(r[e]=t.default??"")}),r.per_page=parseInt(r.per_page),r.service=s,r.page=e,n=r,o.current={...r}}else n={...o.current,page:e};const r=await function(e,t=!1){return P({endpoint:"/stock/search",method:"POST",body:e,prod:t,basePath:X})}(n,t),a=r?.data?.images||[];let i=r?.data?.pagination||null,l=null;i&&(l={total:i.total_count??i.total??a.length,per_page:i.per_page??(Array.isArray(a)?a.length:0),current_page:i.page??i.current_page??e}),p(z(Array.isArray(a)?a:[])),b(l),h(l?.current_page||e)}catch(n){x(n.message||"Error al buscar imágenes")}finally{w(!1)}},z=e=>{const t=new Set,n=[];return(e||[]).forEach((e,r)=>{const a=e.url||e.preview_url||e.full||e.preview;a&&!t.has(a)&&(t.add(a),n.push({...e,preview:e.preview_url||e.preview||e.url||e.full,full:e.url||e.full||e.preview_url,id:e.id||r,title:e.title||e.filename||`Imagen ${r+1}`,source:e.service||s,sourceTitle:E?.[s]||s}))}),n},R=async e=>{e.preventDefault();(u.query||u.search||u.term||"").trim().length<5?x("La búsqueda debe tener al menos 5 caracteres"):await N(1)},j=e=>{e<1||N(e)},A=async e=>{C(e.id),x(null);try{const n={service:s,image_id:e.id},r=await function(e,t=!1){return P({endpoint:"/stock/download",method:"POST",body:e,prod:t,basePath:X})}(n,t);if(!r?.result?.url&&!r?.result?.download_url)throw new Error("No se pudo obtener la URL de descarga");{const t=r.result.url||r.result.download_url,n=await fetch(t),o=await n.blob(),i=r.result.filename||`stock-${e.id}.jpg`,l=new File([o],i,{type:o.type||"image/jpeg"});a&&a(l)}}catch(n){x(n.message||"No se pudo recuperar la imagen seleccionada")}finally{C(null)}};return i.loading?n.jsxs("div",{className:"flex items-center justify-center py-8",children:[n.jsx("span",{className:"limbo-loader mr-2"})," Cargando servicios de Stock..."]}):i.services.length?n.jsxs("div",{className:"flex flex-col gap-4",children:[n.jsx("h3",{className:"text-lg font-semibold text-brand-blue-1000",children:1===i.services.length?`Búsqueda en ${T(s)}`:"Selecciona el servicio de Stock"}),i.services.length>1&&n.jsxs("select",{value:s,onChange:async e=>{const t=e.target.value;c(t),d({}),p([]),h(1),t&&await y.fetchParams(t,!0)},disabled:i.loading||r,className:"limbo-input",children:[n.jsx("option",{value:"",children:"-- Selecciona --"}),i.services.map(e=>n.jsx("option",{value:e,children:T(e)},e))]}),i.error&&n.jsx("div",{className:"alert alert-danger",children:i.error}),y.loading&&n.jsx("div",{children:"Cargando parámetros..."}),y.error&&n.jsx("div",{className:"alert alert-danger",children:y.error}),s&&(()=>{const e=y.params?.[s]?.parameters;if(!e)return null;const t=Object.entries(e).filter(([,e])=>!e.disabled),a=t.length>3;return n.jsxs("form",{onSubmit:R,"data-type":"stock",className:"flex flex-col gap-3 mt-4 border-t-1 pt-4 border-brand-blue-200","aria-label":"Formulario búsqueda de imágenes de Stock",children:[n.jsx("div",{className:a?"grid grid-cols-1 md:grid-cols-2 gap-3":"flex flex-col gap-3",children:t.map(([e,t])=>{let a=t.placeholder||"";return a||(a="integer"===t.type?t.minValue&&t.maxValue?`Entre ${t.minValue} y ${t.maxValue}`:t.minValue?`Mínimo ${t.minValue}`:t.maxValue?`Máximo ${t.maxValue}`:"Introduce un número":e.toLowerCase().includes("query")||e.toLowerCase().includes("search")||e.toLowerCase().includes("term")?"Buscar imágenes...":`Introduce ${(t.label||e).toLowerCase()}`),n.jsxs("div",{className:"flex flex-col gap-1",children:[n.jsxs("label",{htmlFor:`stock-${e}`,className:"text-xs font-medium text-brand-blue-900",children:[t.label||e,t.required&&n.jsx("span",{className:"text-red-600 ml-1",children:"*"})]}),t.options&&t.multiple?n.jsx("div",{className:"flex flex-wrap gap-2 min-h-[50px] px-2 justify-between border-2 border-gray-transparent-500 rounded-lg",children:t.options.map(t=>n.jsxs("label",{className:"flex items-center gap-1",children:[n.jsx("input",{type:"checkbox",name:`stock-${e}`,value:t,checked:Array.isArray(u[e])&&u[e].includes(t),onChange:()=>((e,t)=>{d(n=>{const r=Array.isArray(n[e])?n[e]:[];return r.includes(t)?{...n,[e]:r.filter(e=>e!==t)}:{...n,[e]:[...r,t]}})})(e,t),disabled:r}),n.jsx("span",{className:"text-xs",children:t})]},t))}):t.options?n.jsx("select",{id:`stock-${e}`,name:e,value:u[e]??"",onChange:_,className:"limbo-input",disabled:r,title:t.label||e,children:t.options.map(e=>n.jsx("option",{value:e,children:e},e))}):n.jsx("input",{id:`stock-${e}`,type:"integer"===t.type?"number":"text",name:e,value:u[e]??"",onChange:_,className:"limbo-input",disabled:r,required:t.required,min:t.minValue,max:t.maxValue,placeholder:a,title:t.label||e})]},e)})}),n.jsx("button",{type:"submit",disabled:v||r,className:"limbo-btn w-full mt-2 "+(v?"cursor-not-allowed limbo-btn-disabled":"limbo-btn-primary"),style:{minHeight:44},children:v?"Buscando...":"Buscar imágenes"})]})})(),k&&n.jsx("div",{className:"alert alert-danger",children:k}),f.length>0&&n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"mt-6 grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4 relative","aria-live":"polite",children:[v&&n.jsx("div",{className:"absolute inset-0 bg-white/80 z-10 flex items-center justify-center rounded-lg",children:n.jsxs("div",{className:"flex flex-col items-center gap-2",children:[n.jsx("span",{className:"limbo-loader"}),n.jsx("span",{className:"text-sm text-brand-blue-800",children:"Buscando imágenes..."})]})}),f.map((e,t)=>n.jsxs("div",{className:"border border-brand-blue-200 rounded-lg overflow-hidden bg-white shadow-sm hover:shadow-md transition-shadow",children:[n.jsxs("div",{className:"relative aspect-video bg-neutral-100",children:[n.jsx("img",{src:e.preview||e.thumbnail||e.url,alt:e.title||`Resultado ${t+1}`,className:"object-cover w-full h-full",loading:"lazy"}),e.id&&n.jsxs("span",{className:"absolute bottom-1 right-1 bg-black/60 text-white text-xs px-2 py-1 rounded",children:["ID: ",e.id]})]}),n.jsx("div",{className:"p-2",children:n.jsx("button",{className:"limbo-btn w-full text-sm "+(S===e.id?"limbo-btn-disabled cursor-not-allowed":"limbo-btn-primary"),onClick:()=>A(e),disabled:v||r||S===e.id,children:S===e.id?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"limbo-loader limbo-loader--sm mr-1"}),"Descargando..."]}):"Seleccionar"})})]},e.id||t))]}),g&&n.jsxs("div",{className:"mt-6 flex items-center justify-center gap-2",children:[n.jsxs("button",{onClick:()=>j(g.current_page-1),disabled:g.current_page<=1||v,className:"limbo-btn limbo-btn-secondary px-4 py-2 disabled:opacity-25"+(g.current_page<=1||v?" pointer-events-none cursor-default":" limbo-btn-primary"),children:[n.jsx("span",{className:"icon icon-arrow-left-white icon--sm"})," ","Anterior"]}),n.jsxs("span",{className:"px-4 py-2 text-sm text-neutral-700",children:["Página ",g.current_page," de"," ",Math.max(1,Math.ceil(g.total/g.per_page)),n.jsxs("span",{className:"text-xs text-neutral-500 block",children:["(",g.total," imágenes totales)"]})]}),n.jsxs("button",{onClick:()=>j(g.current_page+1),disabled:v||g.current_page>=Math.ceil(g.total/g.per_page),className:"limbo-btn limbo-btn-secondary px-4 py-2 disabled:opacity-25"+(v||g.current_page>=Math.ceil(g.total/g.per_page)?" pointer-events-none cursor-default":" limbo-btn-primary"),children:["Siguiente"," ",n.jsx("span",{className:"icon icon-arrow-right-white icon--sm"})]})]})]}),!v&&0===f.length&&s&&u.query&&n.jsxs("div",{className:"mt-6 text-center text-neutral-600 py-8 bg-neutral-50 rounded-lg",children:[n.jsx("span",{className:"icon icon-search icon--lg mb-2"}),n.jsxs("p",{children:['No se encontraron imágenes para "',u.query,'"']}),n.jsx("p",{className:"text-sm mt-1",children:"Intenta con otros términos de búsqueda"})]})]}):n.jsx("div",{className:"alert alert-warning",children:"No hay servicios de Stock disponibles."})}const te="/api";const ne=new Map;function re(t=!1){const[n,r]=e.useState([]),[a,o]=e.useState(!0),[i,l]=e.useState(null);e.useEffect(()=>{const e=`portal-sources-${t}`,n=ne.get(e),a=Date.now();if(n&&a-n.timestamp<864e5)return r(n.data),void o(!1);let i=!0;return(async()=>{try{const n=await function(e=!1){return P({endpoint:"/external/sources",prod:e,basePath:te})}(t);if(!i)return;const o=n?.data?.sources||{},l=Object.entries(o).map(([e,t])=>({id:e,...t}));r(l),ne.set(e,{data:l,timestamp:a})}catch(n){i&&l(n.message)}finally{i&&o(!1)}})(),()=>{i=!1}},[t]);return{sources:n,loading:a,error:i,invalidateCache:()=>{ne.delete(`portal-sources-${t}`)}}}const ae=({src:t,alt:r,className:a,onError:o})=>{const[i,l]=e.useState("loading");return"error"===i?null:n.jsx("img",{src:t,alt:r,className:a,loading:"lazy",onLoad:()=>{l("loaded")},onError:()=>{l("error"),o&&o()}})};function oe({prod:t,disabled:r,onSelected:a}){const o=e.useRef(null),i=re(t),l=(e,t)=>{try{const n=sessionStorage.getItem(`limbo_portals_${e}`);return n?JSON.parse(n):t}catch{return t}},[s,c]=e.useState(()=>l("selectedPortals",[])),[u,d]=e.useState(()=>l("searchName","")),[f,p]=e.useState(()=>l("limit",20)),[m,h]=e.useState(()=>l("currentPage",1)),[g,b]=e.useState(!1),[y,v]=e.useState(null),[w,k]=e.useState(()=>l("images",[])),[x,S]=e.useState(()=>l("portalResults",{})),[C,E]=e.useState(()=>l("paginationInfo",null)),[T,_]=e.useState(null),z=e.useRef({}),[R,j]=e.useState(new Set);e.useEffect(()=>{sessionStorage.setItem("limbo_portals_selectedPortals",JSON.stringify(s))},[s]),e.useEffect(()=>{sessionStorage.setItem("limbo_portals_searchName",JSON.stringify(u))},[u]),e.useEffect(()=>{sessionStorage.setItem("limbo_portals_limit",JSON.stringify(f))},[f]),e.useEffect(()=>{sessionStorage.setItem("limbo_portals_currentPage",JSON.stringify(m))},[m]),e.useEffect(()=>{sessionStorage.setItem("limbo_portals_images",JSON.stringify(w))},[w]),e.useEffect(()=>{sessionStorage.setItem("limbo_portals_portalResults",JSON.stringify(x))},[x]),e.useEffect(()=>{sessionStorage.setItem("limbo_portals_paginationInfo",JSON.stringify(C))},[C]);const A=async(e=1)=>{if(0===s.length)return void v("Selecciona al menos un portal");const n=((e,t,n,r)=>`${e.sort().join(",")}_${t}_${n}_${r}`)(s,u.trim(),f,e),r=z.current[n];if(r)return k(r.images),S(r.portalResults),E(r.paginationInfo),h(e),void v(null);b(!0),v(null),1===e&&(k([]),S({}),E(null));try{let r;1===e?(r={sources:s,limit:f,page:e,name:u.trim()},o.current={...r}):r={...o.current,page:e};const a=await function(e,t=!1){return P({endpoint:"/external/search",method:"POST",body:e,prod:t,basePath:te})}(r,t),i=a?.data?.sources||{},l=[],c={},d=new Set;let p=null;Object.entries(i).forEach(([e,t])=>{c[e]={title:t.meta?.title||e,status:200,response:"OK",count:t.images?.length||0},Array.isArray(t.images)&&(t.images.forEach(n=>{const r=n.url||n.thumbnail;r&&!d.has(r)&&(d.add(r),l.push({...n,source:e,sourceTitle:t.meta?.title||e,preview:n.thumbnail||n.url,full:n.url}))}),!p&&t.pagination&&(p=t.pagination))}),z.current[n]={images:l,portalResults:c,paginationInfo:p},k(l),S(c),E(p),h(e),j(new Set),0!==l.length||a?.result?.success||v(a?.result?.message||"No se encontraron imágenes")}catch(a){v(a.message||"Error al buscar imágenes en portales")}finally{b(!1)}},I=e=>{e<1||A(e)};return i.loading?n.jsxs("div",{className:"flex items-center justify-center py-8",children:[n.jsx("span",{className:"limbo-loader mr-2"})," Cargando portales disponibles..."]}):i.sources.length?n.jsxs("div",{className:"flex flex-col gap-4",children:[n.jsx("h3",{className:"text-lg font-semibold text-brand-blue-1000",children:"Buscar en Portales Externos"}),n.jsxs("form",{onSubmit:e=>{e.preventDefault(),A(1)},className:"flex flex-col gap-4 border-t-1 pt-4 border-brand-blue-200",children:[n.jsxs("div",{className:"flex flex-col gap-2",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("label",{className:"text-sm font-medium text-brand-blue-1000",children:["Portales (",s.length," seleccionados)"]}),n.jsx("button",{type:"button",onClick:()=>{s.length===i.sources.length?c([]):c(i.sources.map(e=>e.id))},className:"text-xs text-brand-blue-800 hover:underline",children:s.length===i.sources.length?"Deseleccionar todos":"Seleccionar todos"})]}),n.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-2",children:i.sources.map(e=>n.jsxs("label",{className:"flex items-center gap-2 p-2 border border-brand-blue-200 rounded cursor-pointer hover:bg-brand-blue-050 transition",children:[n.jsx("input",{type:"checkbox",checked:s.includes(e.id),onChange:()=>{return t=e.id,void c(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t]);var t},disabled:r,className:"w-4 h-4"}),n.jsx("span",{className:"text-sm",children:e.title})]},e.id))})]}),n.jsxs("div",{className:"flex flex-col gap-1",children:[n.jsx("label",{htmlFor:"portal-search-name",className:"text-sm font-medium text-brand-blue-1000",children:"Buscar por nombre (opcional)"}),n.jsx("input",{id:"portal-search-name",type:"text",value:u,onChange:e=>d(e.target.value),className:"limbo-input",placeholder:"Deja vacío para ver todas las imágenes",disabled:r})]}),n.jsxs("div",{className:"flex flex-col gap-1",children:[n.jsx("label",{htmlFor:"portal-limit",className:"text-sm font-medium text-brand-blue-1000",children:"Imágenes por página"}),n.jsxs("select",{id:"portal-limit",value:f,onChange:e=>p(Number(e.target.value)),className:"limbo-input",disabled:r,children:[n.jsx("option",{value:10,children:"10"}),n.jsx("option",{value:20,children:"20"}),n.jsx("option",{value:50,children:"50"}),n.jsx("option",{value:100,children:"100"})]})]}),n.jsx("button",{type:"submit",disabled:g||r||0===s.length,className:"limbo-btn w-full "+(g||0===s.length?"cursor-not-allowed limbo-btn-disabled":"limbo-btn-primary"),style:{minHeight:44},children:g?"Buscando...":"Buscar imágenes"})]}),i.error&&n.jsx("div",{className:"alert alert-danger",children:i.error}),y&&n.jsx("div",{className:"alert alert-danger",children:y}),Object.keys(x).length>0&&n.jsxs("div",{className:"bg-neutral-50 rounded-lg p-3",children:[n.jsx("h4",{className:"text-sm font-semibold mb-2",children:"Resultados por portal:"}),n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-2 text-sm",children:Object.entries(x).map(([e,t])=>n.jsxs("div",{className:"flex items-center justify-between p-2 rounded "+(200===t.status?"bg-green-50":"bg-red-50"),children:[n.jsx("span",{className:"font-medium",children:t.title}),n.jsx("span",{className:200===t.status?"text-green-700":"text-red-700",children:200===t.status?`${t.count} imágenes`:t.response})]},e))})]}),(w.length>0||g)&&n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"mt-6 relative","aria-live":"polite",children:[g&&n.jsx("div",{className:"absolute inset-0 bg-white/80 z-10 flex items-center justify-center rounded-lg",children:n.jsxs("div",{className:"flex flex-col items-center gap-2",children:[n.jsx("span",{className:"limbo-loader"}),n.jsx("span",{className:"text-sm text-brand-blue-800",children:"Buscando imágenes..."})]})}),n.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4 "+(g?"opacity-50":""),children:w.map((e,o)=>{const i=`${e.source}-${e.id||o}`,l=e.preview||e.thumbnail||e.url||e.full;return R.has(i)?null:n.jsxs("div",{className:"border border-brand-blue-200 rounded-lg overflow-hidden bg-white shadow-sm hover:shadow-md transition-shadow",children:[n.jsxs("div",{className:"relative aspect-video bg-neutral-100",children:[n.jsx(ae,{src:l,alt:e.title||e.filename||`Imagen ${o+1}`,className:"object-cover w-full h-full",onError:()=>{j(e=>{const t=new Set(e);return t.add(i),t})}}),n.jsx("span",{className:"absolute top-1 left-1 bg-black/60 text-white text-xs px-2 py-1 rounded",children:e.sourceTitle}),e.id&&n.jsxs("span",{className:"absolute bottom-1 right-1 bg-black/60 text-white text-xs px-2 py-1 rounded",children:["ID: ",e.id]})]}),n.jsxs("div",{className:"p-2",children:[e.title&&n.jsx("p",{className:"text-xs text-neutral-700 mb-1 truncate",title:e.title,children:e.title}),n.jsx("button",{className:"limbo-btn w-full text-sm "+(T===(e.url||e.full)?"limbo-btn-disabled cursor-not-allowed":"limbo-btn-primary"),onClick:()=>(async e=>{_(e.url||e.full),v(null);try{const n=e.full||e.url||e.preview;if(!n)throw new Error("No se encontró URL de la imagen");const r=`${N({prod:t})}/api/atenea/proxy?url=${encodeURIComponent(n)}`,o=await fetch(r);if(!o.ok)throw new Error(`Error al descargar: ${o.status}`);const i=await o.blob(),l=e.filename||e.title||`portal-${e.id||Date.now()}.jpg`,s=new File([i],l,{type:i.type||"image/jpeg"});a&&a(s)}catch(n){v(n.message||"No se pudo recuperar la imagen del portal")}finally{_(null)}})(e),disabled:g||r||T===(e.url||e.full),children:T===(e.url||e.full)?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"limbo-loader limbo-loader--sm mr-1"}),"Descargando..."]}):"Seleccionar"})]})]},i)})})]}),n.jsxs("div",{className:"mt-6 flex items-center justify-center gap-2",children:[n.jsxs("button",{onClick:()=>I(m-1),disabled:1===m||g,className:"limbo-btn limbo-btn-secondary px-4 py-2 disabled:opacity-25"+(1===m||g?" pointer-events-none cursor-default":" limbo-btn-primary"),children:[n.jsx("span",{className:"icon icon-arrow-left-white icon--sm"})," ","Anterior"]}),n.jsxs("span",{className:"px-4 py-2 text-sm text-neutral-700",children:["Página ",m,C&&n.jsxs(n.Fragment,{children:[" ","de ",C.pages,n.jsxs("span",{className:"text-xs text-neutral-500 block",children:["(",C.total," imágenes totales)"]})]})]}),n.jsxs("button",{onClick:()=>I(m+1),disabled:g||C&&m>=C.pages,className:"limbo-btn limbo-btn-secondary px-4 py-2 disabled:opacity-25"+(g||C&&m>=C.pages?" pointer-events-none cursor-default":" limbo-btn-primary"),children:["Siguiente"," ",n.jsx("span",{className:"icon icon-arrow-right-white icon--sm"})]})]})]}),!g&&0===w.length&&Object.keys(x).length>0&&n.jsxs("div",{className:"mt-6 text-center text-neutral-600 py-8 bg-neutral-50 rounded-lg",children:[n.jsx("span",{className:"icon icon-search icon--lg mb-2"}),n.jsx("p",{children:"No se encontraron imágenes en los portales seleccionados"}),u&&n.jsx("p",{className:"text-sm mt-1",children:"Intenta con otros términos o sin filtro de nombre"})]})]}):n.jsx("div",{className:"alert alert-warning",children:"No hay portales externos disponibles."})}const ie=[{id:"upload",label:"Subir archivo"},{id:"ai",label:"Generar con IA"},{id:"stock",label:"Buscar en Stock"},{id:"portals",label:"Otros portales"}];function le({onUpload:t,disabled:r=!1,apiKey:a,prod:o=!1}){const[i,l]=e.useState("upload"),[s,c]=e.useState(null),[u,d]=e.useState(null),f=e.useRef();return n.jsxs("div",{className:"limbo-upload-form p-4 border-2 border-gray-200/50 rounded-lg min-w-fit max-w-5xl mx-auto",children:[n.jsx("div",{className:"limbo-tabs-container",children:n.jsx("div",{className:"limbo-tabs mb-6 min-w-fit",role:"tablist","aria-label":"Opciones de subida de imagen",children:ie.map(e=>n.jsx("button",{type:"button","data-upload-tab-id":e.id,className:"text-nowrap limbo-tab"+(i===e.id?" active":""),"aria-current":i===e.id?"page":void 0,"aria-selected":i===e.id,role:"tab",tabIndex:i===e.id?0:-1,onClick:()=>l(e.id),onKeyDown:t=>((e,t)=>{const n=ie.findIndex(e=>e.id===t);let r=n;switch(e.key){case"ArrowLeft":e.preventDefault(),r=n>0?n-1:ie.length-1;break;case"ArrowRight":e.preventDefault(),r=n<ie.length-1?n+1:0;break;case"Home":e.preventDefault(),r=0;break;case"End":e.preventDefault(),r=ie.length-1;break;case"Enter":case" ":return e.preventDefault(),void l(t);default:return}const a=ie[r];a&&(l(a.id),setTimeout(()=>{const e=document.querySelector(`[data-upload-tab-id="${a.id}"]`);e&&e.focus()},0))})(t,e.id),id:`upload-tab-${e.id}`,"aria-controls":`upload-tabpanel-${e.id}`,children:e.label},e.id))})}),n.jsxs("div",{className:"limbo-tab-content",role:"tabpanel",id:`upload-tabpanel-${i}`,"aria-labelledby":`upload-tab-${i}`,children:["upload"===i&&n.jsx(B,{file:s,setFile:c,previewUrl:u,setPreviewUrl:d,fileInputRef:f,onUpload:t,disabled:r}),"ai"===i&&n.jsx(G,{apiKey:a,prod:o,disabled:r,onGenerated:e=>{l("upload"),c(e),d(URL.createObjectURL(e))}}),"stock"===i&&n.jsx(ee,{apiKey:a,prod:o,disabled:r,onSelected:e=>{l("upload"),c(e),d(URL.createObjectURL(e))}}),"portals"===i&&n.jsx(oe,{apiKey:a,prod:o,disabled:r,onSelected:e=>{l("upload"),c(e),d(URL.createObjectURL(e))}})]})]})}const se="undefined"!=typeof window&&void 0!==window.document,ce=se?window:{},ue=!!se&&"ontouchstart"in ce.document.documentElement,de=!!se&&"PointerEvent"in ce,fe="cropper",pe=`${fe}-canvas`,me=`${fe}-crosshair`,he=`${fe}-grid`,ge=`${fe}-handle`,be=`${fe}-image`,ye=`${fe}-selection`,ve=`${fe}-shade`,we=`${fe}-viewer`,ke="select",xe="move",Se="scale",Ce="rotate",Ee="transform",Te="none",_e="n-resize",Ne="e-resize",Pe="s-resize",ze="w-resize",Re="ne-resize",je="nw-resize",Ae="se-resize",Ie="sw-resize",Le=de?"pointerdown":ue?"touchstart":"mousedown",Me=de?"pointermove":ue?"touchmove":"mousemove",De=de?"pointerup pointercancel":ue?"touchend touchcancel":"mouseup",$e="error",Oe="keydown",Fe="load",Ue="wheel",He="action",We="actionend",Be="actionstart",Ve="change",qe="transform";const Qe=Number.isNaN||ce.isNaN;function Ke(e){return"number"==typeof e&&!Qe(e)}function Ye(e){return Ke(e)&&e>0&&e<1/0}function Ge(e){return"object"==typeof e&&null!==e}const{hasOwnProperty:Xe}=Object.prototype;function Ze(e){if(!Ge(e))return!1;try{const{constructor:t}=e,{prototype:n}=t;return t&&n&&Xe.call(n,"isPrototypeOf")}catch(t){return!1}}function Je(e){return"function"==typeof e}function et(e){return"object"==typeof e&&null!==e&&1===e.nodeType}const tt=/([a-z\d])([A-Z])/g;function nt(e){return String(e).replace(tt,"$1-$2").toLowerCase()}const rt=/-[A-z\d]/g;function at(e){return e.replace(rt,e=>e.slice(1).toUpperCase())}const ot=/\s\s*/;function it(e,t,n,r){t.trim().split(ot).forEach(t=>{e.removeEventListener(t,n,r)})}function lt(e,t,n,r){t.trim().split(ot).forEach(t=>{e.addEventListener(t,n,r)})}function st(e,t,n,r){lt(e,t,n,Object.assign(Object.assign({},r),{once:!0}))}const ct={bubbles:!0,cancelable:!0,composed:!0};const ut=Promise.resolve();function dt(e){const{documentElement:t}=e.ownerDocument,n=e.getBoundingClientRect();return{left:n.left+(ce.pageXOffset-t.clientLeft),top:n.top+(ce.pageYOffset-t.clientTop)}}const ft=/deg|g?rad|turn$/i;function pt(e){const t=parseFloat(e)||0;if(0!==t){const[n="rad"]=String(e).match(ft)||[];switch(n.toLowerCase()){case"deg":return t/360*(2*Math.PI);case"grad":return t/400*(2*Math.PI);case"turn":return t*(2*Math.PI)}}return t}const mt="contain";function ht(e,t=mt){const{aspectRatio:n}=e;let{width:r,height:a}=e;const o=Ye(r),i=Ye(a);if(o&&i){const e=a*n;t===mt&&e>r||"cover"===t&&e<r?a=r/n:r=a*n}else o?a=r/n:i&&(r=a*n);return{width:r,height:a}}function gt(e,...t){if(0===t.length)return e;const[n,r,a,o,i,l]=e,[s,c,u,d,f,p]=t[0];return gt(e=[n*s+a*c,r*s+o*c,n*u+a*d,r*u+o*d,n*f+a*p+i,r*f+o*p+l],...t.slice(1))}const bt=/left|top|width|height/i,yt="open",vt=new WeakMap,wt=new WeakMap,kt=new Map,xt=ce.document&&Array.isArray(ce.document.adoptedStyleSheets)&&"replaceSync"in ce.CSSStyleSheet.prototype;class St extends HTMLElement{get $sharedStyle(){return(this.themeColor?`:host{--theme-color: ${this.themeColor};}`:"")+":host([hidden]){display:none!important}"}constructor(){var e,t;super(),this.shadowRootMode=yt,this.slottable=!0;const n=null===(t=null===(e=Object.getPrototypeOf(this))||void 0===e?void 0:e.constructor)||void 0===t?void 0:t.$name;n&&kt.set(n,this.tagName.toLowerCase())}static get observedAttributes(){return["shadow-root-mode","slottable","theme-color"]}attributeChangedCallback(e,t,n){if(Object.is(n,t))return;const r=at(e);let a=n;switch(typeof this[r]){case"boolean":a=null!==n&&"false"!==n;break;case"number":a=Number(n)}switch(this[r]=a,e){case"theme-color":{const e=wt.get(this),t=this.$sharedStyle;e&&t&&(xt?e.replaceSync(t):e.textContent=t);break}}}$propertyChangedCallback(e,t,n){if(!Object.is(n,t))switch(e=nt(e),typeof n){case"boolean":!0===n?this.hasAttribute(e)||this.setAttribute(e,""):this.removeAttribute(e);break;case"number":n=Qe(n)?"":String(n);default:n?this.getAttribute(e)!==n&&this.setAttribute(e,n):this.removeAttribute(e)}}connectedCallback(){Object.getPrototypeOf(this).constructor.observedAttributes.forEach(e=>{const t=at(e);let n=this[t];(function(e){return void 0===e})(n)||this.$propertyChangedCallback(t,void 0,n),Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:()=>n,set(e){const r=n;n=e,this.$propertyChangedCallback(t,r,e)}})});const e=this.attachShadow({mode:this.shadowRootMode||yt});if(this.shadowRoot||vt.set(this,e),wt.set(this,this.$addStyles(this.$sharedStyle)),this.$style&&this.$addStyles(this.$style),this.$template){const t=document.createElement("template");t.innerHTML=this.$template,e.appendChild(t.content)}if(this.slottable){const t=document.createElement("slot");e.appendChild(t)}}disconnectedCallback(){wt.has(this)&&wt.delete(this),vt.has(this)&&vt.delete(this)}$getTagNameOf(e){var t;return null!==(t=kt.get(e))&&void 0!==t?t:e}$setStyles(e){return Object.keys(e).forEach(t=>{let n=e[t];Ke(n)&&(n=0!==n&&bt.test(t)?`${n}px`:String(n)),this.style[t]=n}),this}$getShadowRoot(){return this.shadowRoot||vt.get(this)}$addStyles(e){let t;const n=this.$getShadowRoot();return xt?(t=new CSSStyleSheet,t.replaceSync(e),n.adoptedStyleSheets=n.adoptedStyleSheets.concat(t)):(t=document.createElement("style"),t.textContent=e,n.appendChild(t)),t}$emit(e,t,n){return function(e,t,n,r){return e.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign(Object.assign({},ct),{detail:n}),r)))}(this,e,t,n)}$nextTick(e){return function(e,t){return t?ut.then(e?t.bind(e):t):ut}(this,e)}static $define(e,t){Ge(e)&&(t=e,e=""),e||(e=this.$name||this.name),e=nt(e),se&&ce.customElements&&!ce.customElements.get(e)&&customElements.define(e,this,t)}}St.$version="2.0.0";class Ct extends St{constructor(){super(...arguments),this.$onPointerDown=null,this.$onPointerMove=null,this.$onPointerUp=null,this.$onWheel=null,this.$wheeling=!1,this.$pointers=new Map,this.$style=':host{display:block;min-height:100px;min-width:200px;overflow:hidden;position:relative;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([background]){background-color:#fff;background-image:repeating-linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc),repeating-linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc);background-image:repeating-conic-gradient(#ccc 0 25%,#fff 0 50%);background-position:0 0,.5rem .5rem;background-size:1rem 1rem}:host([disabled]){pointer-events:none}:host([disabled]):after{bottom:0;content:"";cursor:not-allowed;display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}',this.$action=Te,this.background=!1,this.disabled=!1,this.scaleStep=.1,this.themeColor="#39f"}static get observedAttributes(){return super.observedAttributes.concat(["background","disabled","scale-step"])}connectedCallback(){super.connectedCallback(),this.disabled||this.$bind()}disconnectedCallback(){this.disabled||this.$unbind(),super.disconnectedCallback()}$propertyChangedCallback(e,t,n){if(!Object.is(n,t)&&(super.$propertyChangedCallback(e,t,n),"disabled"===e))n?this.$unbind():this.$bind()}$bind(){this.$onPointerDown||(this.$onPointerDown=this.$handlePointerDown.bind(this),lt(this,Le,this.$onPointerDown)),this.$onPointerMove||(this.$onPointerMove=this.$handlePointerMove.bind(this),lt(this.ownerDocument,Me,this.$onPointerMove)),this.$onPointerUp||(this.$onPointerUp=this.$handlePointerUp.bind(this),lt(this.ownerDocument,De,this.$onPointerUp)),this.$onWheel||(this.$onWheel=this.$handleWheel.bind(this),lt(this,Ue,this.$onWheel,{passive:!1,capture:!0}))}$unbind(){this.$onPointerDown&&(it(this,Le,this.$onPointerDown),this.$onPointerDown=null),this.$onPointerMove&&(it(this.ownerDocument,Me,this.$onPointerMove),this.$onPointerMove=null),this.$onPointerUp&&(it(this.ownerDocument,De,this.$onPointerUp),this.$onPointerUp=null),this.$onWheel&&(it(this,Ue,this.$onWheel,{capture:!0}),this.$onWheel=null)}$handlePointerDown(e){const{buttons:t,button:n,type:r}=e;if(this.disabled||("pointerdown"===r&&"mouse"===e.pointerType||"mousedown"===r)&&(Ke(t)&&1!==t||Ke(n)&&0!==n||e.ctrlKey))return;const{$pointers:a}=this;let o="";if(e.changedTouches)Array.from(e.changedTouches).forEach(({identifier:e,pageX:t,pageY:n})=>{a.set(e,{startX:t,startY:n,endX:t,endY:n})});else{const{pointerId:t=0,pageX:n,pageY:r}=e;a.set(t,{startX:n,startY:r,endX:n,endY:r})}a.size>1?o=Ee:et(e.target)&&(o=e.target.action||e.target.getAttribute("action")||""),!1!==this.$emit(Be,{action:o,relatedEvent:e})&&(e.preventDefault(),this.$action=o,this.style.willChange="transform")}$handlePointerMove(e){const{$action:t,$pointers:n}=this;if(this.disabled||t===Te||0===n.size)return;if(!1===this.$emit("actionmove",{action:t,relatedEvent:e}))return;if(e.preventDefault(),e.changedTouches)Array.from(e.changedTouches).forEach(({identifier:e,pageX:t,pageY:r})=>{const a=n.get(e);a&&Object.assign(a,{endX:t,endY:r})});else{const{pointerId:t=0,pageX:r,pageY:a}=e,o=n.get(t);o&&Object.assign(o,{endX:r,endY:a})}const r={action:t,relatedEvent:e};if(t===Ee){const t=new Map(n);let a=0,o=0,i=0,l=0,s=e.pageX,c=e.pageY;n.forEach((e,n)=>{t.delete(n),t.forEach(t=>{let n=t.startX-e.startX,r=t.startY-e.startY,u=t.endX-e.endX,d=t.endY-e.endY,f=0,p=0,m=0,h=0;if(0===n?r<0?m=2*Math.PI:r>0&&(m=Math.PI):n>0?m=Math.PI/2+Math.atan(r/n):n<0&&(m=1.5*Math.PI+Math.atan(r/n)),0===u?d<0?h=2*Math.PI:d>0&&(h=Math.PI):u>0?h=Math.PI/2+Math.atan(d/u):u<0&&(h=1.5*Math.PI+Math.atan(d/u)),h>0||m>0){const n=h-m,r=Math.abs(n);r>a&&(a=r,i=n,s=(e.startX+t.startX)/2,c=(e.startY+t.startY)/2)}if(n=Math.abs(n),r=Math.abs(r),u=Math.abs(u),d=Math.abs(d),n>0&&r>0?f=Math.sqrt(n*n+r*r):n>0?f=n:r>0&&(f=r),u>0&&d>0?p=Math.sqrt(u*u+d*d):u>0?p=u:d>0&&(p=d),f>0&&p>0){const n=(p-f)/f,r=Math.abs(n);r>o&&(o=r,l=n,s=(e.startX+t.startX)/2,c=(e.startY+t.startY)/2)}})});const u=a>0,d=o>0;u&&d?(r.rotate=i,r.scale=l,r.centerX=s,r.centerY=c):u?(r.action=Ce,r.rotate=i,r.centerX=s,r.centerY=c):d?(r.action=Se,r.scale=l,r.centerX=s,r.centerY=c):r.action=Te}else{const[e]=Array.from(n.values());Object.assign(r,e)}n.forEach(e=>{e.startX=e.endX,e.startY=e.endY}),r.action!==Te&&this.$emit(He,r,{cancelable:!1})}$handlePointerUp(e){const{$action:t,$pointers:n}=this;if(!this.disabled&&t!==Te&&!1!==this.$emit(We,{action:t,relatedEvent:e})){if(e.preventDefault(),e.changedTouches)Array.from(e.changedTouches).forEach(({identifier:e})=>{n.delete(e)});else{const{pointerId:t=0}=e;n.delete(t)}0===n.size&&(this.style.willChange="",this.$action=Te)}}$handleWheel(e){if(this.disabled)return;if(e.preventDefault(),this.$wheeling)return;this.$wheeling=!0,setTimeout(()=>{this.$wheeling=!1},50);const t=(e.deltaY>0?-1:1)*this.scaleStep;this.$emit(He,{action:Se,scale:t,relatedEvent:e},{cancelable:!1})}$setAction(e){return"string"==typeof e&&(this.$action=e),this}$toCanvas(e){return new Promise((t,n)=>{if(!this.isConnected)return void n(new Error("The current element is not connected to the DOM."));const r=document.createElement("canvas");let a=this.offsetWidth,o=this.offsetHeight,i=1;Ze(e)&&(Ye(e.width)||Ye(e.height))&&(({width:a,height:o}=ht({aspectRatio:a/o,width:e.width,height:e.height})),i=a/this.offsetWidth),r.width=a,r.height=o;const l=this.querySelector(this.$getTagNameOf(be));l?l.$ready().then(n=>{const s=r.getContext("2d");if(s){const[t,c,u,d,f,p]=l.$getTransform();let m=f,h=p,g=n.naturalWidth,b=n.naturalHeight;1!==i&&(m*=i,h*=i,g*=i,b*=i);const y=g/2,v=b/2;s.fillStyle="transparent",s.fillRect(0,0,a,o),Ze(e)&&Je(e.beforeDraw)&&e.beforeDraw.call(this,s,r),s.save(),s.translate(y,v),s.transform(t,c,u,d,m,h),s.translate(-y,-v),s.drawImage(n,0,0,g,b),s.restore()}t(r)}).catch(n):t(r)})}}Ct.$name=pe,Ct.$version="2.0.0";const Et=new WeakMap,Tt=["alt","crossorigin","decoding","importance","loading","referrerpolicy","sizes","src","srcset"];class _t extends St{constructor(){super(...arguments),this.$matrix=[1,0,0,1,0,0],this.$onLoad=null,this.$onCanvasAction=null,this.$onCanvasActionEnd=null,this.$onCanvasActionStart=null,this.$actionStartTarget=null,this.$style=":host{display:inline-block}img{display:block;height:100%;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}",this.$image=new Image,this.initialCenterSize="contain",this.rotatable=!1,this.scalable=!1,this.skewable=!1,this.slottable=!1,this.translatable=!1}set $canvas(e){Et.set(this,e)}get $canvas(){return Et.get(this)}static get observedAttributes(){return super.observedAttributes.concat(Tt,["initial-center-size","rotatable","scalable","skewable","translatable"])}attributeChangedCallback(e,t,n){Object.is(n,t)||(super.attributeChangedCallback(e,t,n),Tt.includes(e)&&this.$image.setAttribute(e,n))}$propertyChangedCallback(e,t,n){if(!Object.is(n,t)&&(super.$propertyChangedCallback(e,t,n),"initialCenterSize"===e))this.$nextTick(()=>{this.$center(n)})}connectedCallback(){super.connectedCallback();const{$image:e}=this,t=this.closest(this.$getTagNameOf(pe));t&&(this.$canvas=t,this.$setStyles({display:"block",position:"absolute"}),this.$onCanvasActionStart=e=>{var t,n;this.$actionStartTarget=null===(n=null===(t=e.detail)||void 0===t?void 0:t.relatedEvent)||void 0===n?void 0:n.target},this.$onCanvasActionEnd=()=>{this.$actionStartTarget=null},this.$onCanvasAction=this.$handleAction.bind(this),lt(t,Be,this.$onCanvasActionStart),lt(t,We,this.$onCanvasActionEnd),lt(t,He,this.$onCanvasAction)),this.$onLoad=this.$handleLoad.bind(this),lt(e,Fe,this.$onLoad),this.$getShadowRoot().appendChild(e)}disconnectedCallback(){const{$image:e,$canvas:t}=this;t&&(this.$onCanvasActionStart&&(it(t,Be,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(it(t,We,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasAction&&(it(t,He,this.$onCanvasAction),this.$onCanvasAction=null)),e&&this.$onLoad&&(it(e,Fe,this.$onLoad),this.$onLoad=null),this.$getShadowRoot().removeChild(e),super.disconnectedCallback()}$handleLoad(){const{$image:e}=this;this.$setStyles({width:e.naturalWidth,height:e.naturalHeight}),this.$canvas&&this.$center(this.initialCenterSize)}$handleAction(e){if(this.hidden||!(this.rotatable||this.scalable||this.translatable))return;const{$canvas:t}=this,{detail:n}=e;if(n){const{relatedEvent:e}=n;let{action:r}=n;switch(r!==Ee||this.rotatable&&this.scalable||(r=this.rotatable?Ce:this.scalable?Se:Te),r){case xe:if(this.translatable){let r=null;e&&(r=e.target.closest(this.$getTagNameOf(ye))),r||(r=t.querySelector(this.$getTagNameOf(ye))),r&&r.multiple&&!r.active&&(r=t.querySelector(`${this.$getTagNameOf(ye)}[active]`)),r&&!r.hidden&&r.movable&&!r.dynamic&&this.$actionStartTarget&&r.contains(this.$actionStartTarget)||this.$move(n.endX-n.startX,n.endY-n.startY)}break;case Ce:if(this.rotatable)if(e){const{x:t,y:r}=this.getBoundingClientRect();this.$rotate(n.rotate,e.clientX-t,e.clientY-r)}else this.$rotate(n.rotate);break;case Se:if(this.scalable)if(e){const t=e.target.closest(this.$getTagNameOf(ye));if(!t||!t.zoomable||t.zoomable&&t.dynamic){const{x:t,y:r}=this.getBoundingClientRect();this.$zoom(n.scale,e.clientX-t,e.clientY-r)}}else this.$zoom(n.scale);break;case Ee:if(this.rotatable&&this.scalable){const{rotate:t}=n;let{scale:r}=n;r<0?r=1/(1-r):r+=1;const a=Math.cos(t),o=Math.sin(t),[i,l,s,c]=[a*r,o*r,-o*r,a*r];if(e){const t=this.getBoundingClientRect(),n=e.clientX-t.x,r=e.clientY-t.y,[a,o,u,d]=this.$matrix,f=n-t.width/2,p=r-t.height/2,m=(f*d-u*p)/(a*d-u*o),h=(p*a-o*f)/(a*d-u*o);this.$transform(i,l,s,c,m*(1-i)+h*s,h*(1-c)+m*l)}else this.$transform(i,l,s,c,0,0)}}}}$ready(e){const{$image:t}=this,n=new Promise((e,n)=>{const r=new Error("Failed to load the image source");if(t.complete)t.naturalWidth>0&&t.naturalHeight>0?e(t):n(r);else{const a=()=>{it(t,$e,o),e(t)},o=()=>{it(t,Fe,a),n(r)};st(t,Fe,a),st(t,$e,o)}});return Je(e)&&n.then(t=>(e(t),t)),n}$center(e){const{parentElement:t}=this;if(!t)return this;const n=t.getBoundingClientRect(),r=n.width,a=n.height,{x:o,y:i,width:l,height:s}=this.getBoundingClientRect(),c=o+l/2,u=i+s/2,d=n.x+r/2,f=n.y+a/2;if(this.$move(d-c,f-u),e&&(l!==r||s!==a)){const t=r/l,n=a/s;switch(e){case"cover":this.$scale(Math.max(t,n));break;case"contain":this.$scale(Math.min(t,n))}}return this}$move(e,t=e){if(this.translatable&&Ke(e)&&Ke(t)){const[n,r,a,o]=this.$matrix,i=(e*o-a*t)/(n*o-a*r),l=(t*n-r*e)/(n*o-a*r);this.$translate(i,l)}return this}$moveTo(e,t=e){if(this.translatable&&Ke(e)&&Ke(t)){const[n,r,a,o]=this.$matrix,i=(e*o-a*t)/(n*o-a*r),l=(t*n-r*e)/(n*o-a*r);this.$setTransform(n,r,a,o,i,l)}return this}$rotate(e,t,n){if(this.rotatable){const r=pt(e),a=Math.cos(r),o=Math.sin(r),[i,l,s,c]=[a,o,-o,a];if(Ke(t)&&Ke(n)){const[e,r,a,o]=this.$matrix,{width:u,height:d}=this.getBoundingClientRect(),f=t-u/2,p=n-d/2,m=(f*o-a*p)/(e*o-a*r),h=(p*e-r*f)/(e*o-a*r);this.$transform(i,l,s,c,m*(1-i)-h*s,h*(1-c)-m*l)}else this.$transform(i,l,s,c,0,0)}return this}$zoom(e,t,n){if(!this.scalable||0===e)return this;if(e<0?e=1/(1-e):e+=1,Ke(t)&&Ke(n)){const[r,a,o,i]=this.$matrix,{width:l,height:s}=this.getBoundingClientRect(),c=t-l/2,u=n-s/2,d=(c*i-o*u)/(r*i-o*a),f=(u*r-a*c)/(r*i-o*a);this.$transform(e,0,0,e,d*(1-e),f*(1-e))}else this.$scale(e);return this}$scale(e,t=e){return this.scalable&&this.$transform(e,0,0,t,0,0),this}$skew(e,t=0){if(this.skewable){const n=pt(e),r=pt(t);this.$transform(1,Math.tan(r),Math.tan(n),1,0,0)}return this}$translate(e,t=e){return this.translatable&&Ke(e)&&Ke(t)&&this.$transform(1,0,0,1,e,t),this}$transform(e,t,n,r,a,o){return Ke(e)&&Ke(t)&&Ke(n)&&Ke(r)&&Ke(a)&&Ke(o)?this.$setTransform(gt(this.$matrix,[e,t,n,r,a,o])):this}$setTransform(e,t,n,r,a,o){if((this.rotatable||this.scalable||this.skewable||this.translatable)&&(Array.isArray(e)&&([e,t,n,r,a,o]=e),Ke(e)&&Ke(t)&&Ke(n)&&Ke(r)&&Ke(a)&&Ke(o))){const i=[...this.$matrix],l=[e,t,n,r,a,o];if(!1===this.$emit(qe,{matrix:l,oldMatrix:i}))return this;this.$matrix=l,this.style.transform=`matrix(${l.join(", ")})`}return this}$getTransform(){return this.$matrix.slice()}$resetTransform(){return this.$setTransform([1,0,0,1,0,0])}}_t.$name=be,_t.$version="2.0.0";const Nt=new WeakMap;class Pt extends St{constructor(){super(...arguments),this.$onCanvasChange=null,this.$onCanvasActionEnd=null,this.$onCanvasActionStart=null,this.$style=":host{display:block;height:0;left:0;outline:var(--theme-color) solid 1px;position:relative;top:0;width:0}:host([transparent]){outline-color:transparent}",this.x=0,this.y=0,this.width=0,this.height=0,this.slottable=!1,this.themeColor="rgba(0, 0, 0, 0.65)"}set $canvas(e){Nt.set(this,e)}get $canvas(){return Nt.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["height","width","x","y"])}connectedCallback(){super.connectedCallback();const e=this.closest(this.$getTagNameOf(pe));if(e){this.$canvas=e,this.style.position="absolute";const t=e.querySelector(this.$getTagNameOf(ye));t&&(this.$onCanvasActionStart=e=>{t.hidden&&e.detail.action===ke&&(this.hidden=!1)},this.$onCanvasActionEnd=e=>{t.hidden&&e.detail.action===ke&&(this.hidden=!0)},this.$onCanvasChange=e=>{const{x:n,y:r,width:a,height:o}=e.detail;this.$change(n,r,a,o),(t.hidden||0===n&&0===r&&0===a&&0===o)&&(this.hidden=!0)},lt(e,Be,this.$onCanvasActionStart),lt(e,We,this.$onCanvasActionEnd),lt(e,Ve,this.$onCanvasChange))}this.$render()}disconnectedCallback(){const{$canvas:e}=this;e&&(this.$onCanvasActionStart&&(it(e,Be,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(it(e,We,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasChange&&(it(e,Ve,this.$onCanvasChange),this.$onCanvasChange=null)),super.disconnectedCallback()}$change(e,t,n=this.width,r=this.height){return Ke(e)&&Ke(t)&&Ke(n)&&Ke(r)&&(e!==this.x||t!==this.y||n!==this.width||r!==this.height)?(this.hidden&&(this.hidden=!1),this.x=e,this.y=t,this.width=n,this.height=r,this.$render()):this}$reset(){return this.$change(0,0,0,0)}$render(){return this.$setStyles({transform:`translate(${this.x}px, ${this.y}px)`,width:this.width,height:this.height,outlineWidth:ce.innerWidth})}}Pt.$name=ve,Pt.$version="2.0.0";class zt extends St{constructor(){super(...arguments),this.$onCanvasCropEnd=null,this.$onCanvasCropStart=null,this.$style=':host{background-color:var(--theme-color);display:block}:host([action=move]),:host([action=select]){height:100%;left:0;position:absolute;top:0;width:100%}:host([action=move]){cursor:move}:host([action=select]){cursor:crosshair}:host([action$=-resize]){background-color:transparent;height:15px;position:absolute;width:15px}:host([action$=-resize]):after{background-color:var(--theme-color);content:"";display:block;height:5px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:5px}:host([action=n-resize]),:host([action=s-resize]){cursor:ns-resize;left:50%;transform:translateX(-50%);width:100%}:host([action=n-resize]){top:-8px}:host([action=s-resize]){bottom:-8px}:host([action=e-resize]),:host([action=w-resize]){cursor:ew-resize;height:100%;top:50%;transform:translateY(-50%)}:host([action=e-resize]){right:-8px}:host([action=w-resize]){left:-8px}:host([action=ne-resize]){cursor:nesw-resize;right:-8px;top:-8px}:host([action=nw-resize]){cursor:nwse-resize;left:-8px;top:-8px}:host([action=se-resize]){bottom:-8px;cursor:nwse-resize;right:-8px}:host([action=se-resize]):after{height:15px;width:15px}@media (pointer:coarse){:host([action=se-resize]):after{height:10px;width:10px}}@media (pointer:fine){:host([action=se-resize]):after{height:5px;width:5px}}:host([action=sw-resize]){bottom:-8px;cursor:nesw-resize;left:-8px}:host([plain]){background-color:transparent}',this.action=Te,this.plain=!1,this.slottable=!1,this.themeColor="rgba(51, 153, 255, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["action","plain"])}}zt.$name=ge,zt.$version="2.0.0";const Rt=new WeakMap;class jt extends St{constructor(){super(...arguments),this.$onCanvasAction=null,this.$onCanvasActionStart=null,this.$onCanvasActionEnd=null,this.$onDocumentKeyDown=null,this.$action="",this.$actionStartTarget=null,this.$changing=!1,this.$style=':host{display:block;left:0;position:relative;right:0}:host([outlined]){outline:1px solid var(--theme-color)}:host([multiple]){outline:1px dashed hsla(0,0%,100%,.5)}:host([multiple]):after{bottom:0;content:"";cursor:pointer;display:block;left:0;position:absolute;right:0;top:0}:host([multiple][active]){outline-color:var(--theme-color);z-index:1}:host([multiple])>*{visibility:hidden}:host([multiple][active])>*{visibility:visible}:host([multiple][active]):after{display:none}',this.$initialSelection={x:0,y:0,width:0,height:0},this.x=0,this.y=0,this.width=0,this.height=0,this.aspectRatio=NaN,this.initialAspectRatio=NaN,this.initialCoverage=NaN,this.active=!1,this.linked=!1,this.dynamic=!1,this.movable=!1,this.resizable=!1,this.zoomable=!1,this.multiple=!1,this.keyboard=!1,this.outlined=!1,this.precise=!1}set $canvas(e){Rt.set(this,e)}get $canvas(){return Rt.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["active","aspect-ratio","dynamic","height","initial-aspect-ratio","initial-coverage","keyboard","linked","movable","multiple","outlined","precise","resizable","width","x","y","zoomable"])}$propertyChangedCallback(e,t,n){if(!Object.is(n,t))switch(super.$propertyChangedCallback(e,t,n),e){case"x":case"y":case"width":case"height":this.$changing||this.$nextTick(()=>{this.$change(this.x,this.y,this.width,this.height,this.aspectRatio,!0)});break;case"aspectRatio":case"initialAspectRatio":this.$nextTick(()=>{this.$initSelection()});break;case"initialCoverage":this.$nextTick(()=>{Ye(n)&&n<=1&&this.$initSelection(!0,!0)});break;case"keyboard":this.$nextTick(()=>{this.$canvas&&(n?this.$onDocumentKeyDown||(this.$onDocumentKeyDown=this.$handleKeyDown.bind(this),lt(this.ownerDocument,Oe,this.$onDocumentKeyDown)):this.$onDocumentKeyDown&&(it(this.ownerDocument,Oe,this.$onDocumentKeyDown),this.$onDocumentKeyDown=null))});break;case"multiple":this.$nextTick(()=>{if(this.$canvas){const e=this.$getSelections();n?(e.forEach(e=>{e.active=!1}),this.active=!0,this.$emit(Ve,{x:this.x,y:this.y,width:this.width,height:this.height})):(this.active=!1,e.slice(1).forEach(e=>{this.$removeSelection(e)}))}});break;case"precise":this.$nextTick(()=>{this.$change(this.x,this.y)});break;case"linked":n&&(this.dynamic=!0)}}connectedCallback(){super.connectedCallback();const e=this.closest(this.$getTagNameOf(pe));e?(this.$canvas=e,this.$setStyles({position:"absolute",transform:`translate(${this.x}px, ${this.y}px)`}),this.hidden||this.$render(),this.$initSelection(!0),this.$onCanvasActionStart=this.$handleActionStart.bind(this),this.$onCanvasActionEnd=this.$handleActionEnd.bind(this),this.$onCanvasAction=this.$handleAction.bind(this),lt(e,Be,this.$onCanvasActionStart),lt(e,We,this.$onCanvasActionEnd),lt(e,He,this.$onCanvasAction)):this.$render()}disconnectedCallback(){const{$canvas:e}=this;e&&(this.$onCanvasActionStart&&(it(e,Be,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(it(e,We,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasAction&&(it(e,He,this.$onCanvasAction),this.$onCanvasAction=null)),super.disconnectedCallback()}$getSelections(){let e=[];return this.parentElement&&(e=Array.from(this.parentElement.querySelectorAll(this.$getTagNameOf(ye)))),e}$initSelection(e=!1,t=!1){const{initialCoverage:n,parentElement:r}=this;if(Ye(n)&&r){const a=this.aspectRatio||this.initialAspectRatio;let o=(t?0:this.width)||r.offsetWidth*n,i=(t?0:this.height)||r.offsetHeight*n;Ye(a)&&({width:o,height:i}=ht({aspectRatio:a,width:o,height:i})),this.$change(this.x,this.y,o,i),e&&this.$center(),this.$initialSelection={x:this.x,y:this.y,width:this.width,height:this.height}}}$createSelection(){const e=this.cloneNode(!0);return this.hasAttribute("id")&&e.removeAttribute("id"),e.initialCoverage=NaN,this.active=!1,this.parentElement&&this.parentElement.insertBefore(e,this.nextSibling),e}$removeSelection(e=this){if(this.parentElement){const t=this.$getSelections();if(t.length>1){const n=t.indexOf(e),r=t[n+1]||t[n-1];r&&(e.active=!1,this.parentElement.removeChild(e),r.active=!0,r.$emit(Ve,{x:r.x,y:r.y,width:r.width,height:r.height}))}else this.$clear()}}$handleActionStart(e){var t,n;const r=null===(n=null===(t=e.detail)||void 0===t?void 0:t.relatedEvent)||void 0===n?void 0:n.target;this.$action="",this.$actionStartTarget=r,!this.hidden&&this.multiple&&!this.active&&r===this&&this.parentElement&&(this.$getSelections().forEach(e=>{e.active=!1}),this.active=!0,this.$emit(Ve,{x:this.x,y:this.y,width:this.width,height:this.height}))}$handleAction(e){const{currentTarget:t,detail:n}=e;if(!t||!n)return;const{relatedEvent:r}=n;let{action:a}=n;if(!a&&this.multiple&&(a=this.$action||(null==r?void 0:r.target.action),this.$action=a),!a||this.hidden&&a!==ke||this.multiple&&!this.active&&a!==Se)return;const o=n.endX-n.startX,i=n.endY-n.startY,{width:l,height:s}=this;let{aspectRatio:c}=this;switch(!Ye(c)&&r.shiftKey&&(c=Ye(l)&&Ye(s)?l/s:1),a){case ke:if(0!==o&&0!==i){const{$canvas:e}=this,r=dt(t);(this.multiple&&!this.hidden?this.$createSelection():this).$change(n.startX-r.left,n.startY-r.top,Math.abs(o),Math.abs(i),c),o<0?i<0?a=je:i>0&&(a=Ie):o>0&&(i<0?a=Re:i>0&&(a=Ae)),e&&(e.$action=a)}break;case xe:this.movable&&(this.dynamic||this.$actionStartTarget&&this.contains(this.$actionStartTarget))&&this.$move(o,i);break;case Se:if(r&&this.zoomable&&(this.dynamic||this.contains(r.target))){const e=dt(t);this.$zoom(n.scale,r.pageX-e.left,r.pageY-e.top)}break;default:this.$resize(a,o,i,c)}}$handleActionEnd(){this.$action="",this.$actionStartTarget=null}$handleKeyDown(e){if(this.hidden||!this.keyboard||this.multiple&&!this.active||e.defaultPrevented)return;const{activeElement:t}=document;if(!t||!["INPUT","TEXTAREA"].includes(t.tagName)&&!["true","plaintext-only"].includes(t.contentEditable))switch(e.key){case"Backspace":e.metaKey&&(e.preventDefault(),this.$removeSelection());break;case"Delete":e.preventDefault(),this.$removeSelection();break;case"ArrowLeft":e.preventDefault(),this.$move(-1,0);break;case"ArrowRight":e.preventDefault(),this.$move(1,0);break;case"ArrowUp":e.preventDefault(),this.$move(0,-1);break;case"ArrowDown":e.preventDefault(),this.$move(0,1);break;case"+":e.preventDefault(),this.$zoom(.1);break;case"-":e.preventDefault(),this.$zoom(-.1)}}$center(){const{parentElement:e}=this;if(!e)return this;const t=(e.offsetWidth-this.width)/2,n=(e.offsetHeight-this.height)/2;return this.$change(t,n)}$move(e,t=e){return this.$moveTo(this.x+e,this.y+t)}$moveTo(e,t=e){return this.movable?this.$change(e,t):this}$resize(e,t=0,n=0,r=this.aspectRatio){if(!this.resizable)return this;const a=Ye(r),{$canvas:o}=this;let{x:i,y:l,width:s,height:c}=this;switch(e){case _e:l+=n,c-=n,c<0&&(e=Pe,c=-c,l-=c),a&&(i+=(t=n*r)/2,s-=t,s<0&&(s=-s,i-=s));break;case Ne:s+=t,s<0&&(e=ze,s=-s,i-=s),a&&(l-=(n=t/r)/2,c+=n,c<0&&(c=-c,l-=c));break;case Pe:c+=n,c<0&&(e=_e,c=-c,l-=c),a&&(i-=(t=n*r)/2,s+=t,s<0&&(s=-s,i-=s));break;case ze:i+=t,s-=t,s<0&&(e=Ne,s=-s,i-=s),a&&(l+=(n=t/r)/2,c-=n,c<0&&(c=-c,l-=c));break;case Re:a&&(n=-t/r),l+=n,c-=n,s+=t,s<0&&c<0?(e=Ie,s=-s,c=-c,i-=s,l-=c):s<0?(e=je,s=-s,i-=s):c<0&&(e=Ae,c=-c,l-=c);break;case je:a&&(n=t/r),i+=t,l+=n,s-=t,c-=n,s<0&&c<0?(e=Ae,s=-s,c=-c,i-=s,l-=c):s<0?(e=Re,s=-s,i-=s):c<0&&(e=Ie,c=-c,l-=c);break;case Ae:a&&(n=t/r),s+=t,c+=n,s<0&&c<0?(e=je,s=-s,c=-c,i-=s,l-=c):s<0?(e=Ie,s=-s,i-=s):c<0&&(e=Re,c=-c,l-=c);break;case Ie:a&&(n=-t/r),i+=t,s-=t,c+=n,s<0&&c<0?(e=Re,s=-s,c=-c,i-=s,l-=c):s<0?(e=Ae,s=-s,i-=s):c<0&&(e=je,c=-c,l-=c)}return o&&o.$setAction(e),this.$change(i,l,s,c)}$zoom(e,t,n){if(!this.zoomable||0===e)return this;e<0?e=1/(1-e):e+=1;const{width:r,height:a}=this,o=r*e,i=a*e;let l=this.x,s=this.y;return Ke(t)&&Ke(n)?(l-=(o-r)*((t-this.x)/r),s-=(i-a)*((n-this.y)/a)):(l-=(o-r)/2,s-=(i-a)/2),this.$change(l,s,o,i)}$change(e,t,n=this.width,r=this.height,a=this.aspectRatio,o=!1){return this.$changing||!Ke(e)||!Ke(t)||!Ke(n)||!Ke(r)||n<0||r<0?this:(Ye(a)&&({width:n,height:r}=ht({aspectRatio:a,width:n,height:r},"cover")),this.precise||(e=Math.round(e),t=Math.round(t),n=Math.round(n),r=Math.round(r)),e===this.x&&t===this.y&&n===this.width&&r===this.height&&Object.is(a,this.aspectRatio)&&!o?this:(this.hidden&&(this.hidden=!1),!1===this.$emit(Ve,{x:e,y:t,width:n,height:r})?this:(this.$changing=!0,this.x=e,this.y=t,this.width=n,this.height=r,this.$changing=!1,this.$render())))}$reset(){const{x:e,y:t,width:n,height:r}=this.$initialSelection;return this.$change(e,t,n,r)}$clear(){return this.$change(0,0,0,0,NaN,!0),this.hidden=!0,this}$render(){return this.$setStyles({transform:`translate(${this.x}px, ${this.y}px)`,width:this.width,height:this.height})}$toCanvas(e){return new Promise((t,n)=>{if(!this.isConnected)return void n(new Error("The current element is not connected to the DOM."));const r=document.createElement("canvas");let{width:a,height:o}=this,i=1;if(Ze(e)&&(Ye(e.width)||Ye(e.height))&&(({width:a,height:o}=ht({aspectRatio:a/o,width:e.width,height:e.height})),i=a/this.width),r.width=a,r.height=o,!this.$canvas)return void t(r);const l=this.$canvas.querySelector(this.$getTagNameOf(be));l?l.$ready().then(n=>{const s=r.getContext("2d");if(s){const[t,c,u,d,f,p]=l.$getTransform(),m=-this.x,h=-this.y,g=(m*d-u*h)/(t*d-u*c),b=(h*t-c*m)/(t*d-u*c);let y=t*g+u*b+f,v=c*g+d*b+p,w=n.naturalWidth,k=n.naturalHeight;1!==i&&(y*=i,v*=i,w*=i,k*=i);const x=w/2,S=k/2;s.fillStyle="transparent",s.fillRect(0,0,a,o),Ze(e)&&Je(e.beforeDraw)&&e.beforeDraw.call(this,s,r),s.save(),s.translate(x,S),s.transform(t,c,u,d,y,v),s.translate(-x,-S),s.drawImage(n,0,0,w,k),s.restore()}t(r)}).catch(n):t(r)})}}jt.$name=ye,jt.$version="2.0.0";class At extends St{constructor(){super(...arguments),this.$style=":host{display:flex;flex-direction:column;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([bordered]){border:1px dashed var(--theme-color)}:host([covered]){bottom:0;left:0;position:absolute;right:0;top:0}:host>span{display:flex;flex:1}:host>span+span{border-top:1px dashed var(--theme-color)}:host>span>span{flex:1}:host>span>span+span{border-left:1px dashed var(--theme-color)}",this.bordered=!1,this.columns=3,this.covered=!1,this.rows=3,this.slottable=!1,this.themeColor="rgba(238, 238, 238, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["bordered","columns","covered","rows"])}$propertyChangedCallback(e,t,n){Object.is(n,t)||(super.$propertyChangedCallback(e,t,n),"rows"!==e&&"columns"!==e||this.$nextTick(()=>{this.$render()}))}connectedCallback(){super.connectedCallback(),this.$render()}$render(){const e=this.$getShadowRoot(),t=document.createDocumentFragment();for(let n=0;n<this.rows;n+=1){const e=document.createElement("span");e.setAttribute("role","row");for(let t=0;t<this.columns;t+=1){const t=document.createElement("span");t.setAttribute("role","gridcell"),e.appendChild(t)}t.appendChild(e)}e&&(e.innerHTML="",e.appendChild(t))}}At.$name=he,At.$version="2.0.0";class It extends St{constructor(){super(...arguments),this.$style=':host{display:inline-block;height:1em;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1em}:host:after,:host:before{background-color:var(--theme-color);content:"";display:block;position:absolute}:host:before{height:1px;left:0;top:50%;transform:translateY(-50%);width:100%}:host:after{height:100%;left:50%;top:0;transform:translateX(-50%);width:1px}:host([centered]){left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}',this.centered=!1,this.slottable=!1,this.themeColor="rgba(238, 238, 238, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["centered"])}}It.$name=me,It.$version="2.0.0";const Lt=new WeakMap,Mt=new WeakMap,Dt=new WeakMap,$t=new WeakMap,Ot="vertical";class Ft extends St{constructor(){super(...arguments),this.$onSelectionChange=null,this.$onSourceImageLoad=null,this.$onSourceImageTransform=null,this.$scale=1,this.$style=":host{display:block;height:100%;overflow:hidden;position:relative;width:100%}",this.resize=Ot,this.selection="",this.slottable=!1}set $image(e){Mt.set(this,e)}get $image(){return Mt.get(this)}set $sourceImage(e){$t.set(this,e)}get $sourceImage(){return $t.get(this)}set $canvas(e){Lt.set(this,e)}get $canvas(){return Lt.get(this)}set $selection(e){Dt.set(this,e)}get $selection(){return Dt.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["resize","selection"])}connectedCallback(){super.connectedCallback();let e=null;if(e=this.selection?this.ownerDocument.querySelector(this.selection):this.closest(this.$getTagNameOf(ye)),et(e)){this.$selection=e,this.$onSelectionChange=this.$handleSelectionChange.bind(this),lt(e,Ve,this.$onSelectionChange);const t=e.closest(this.$getTagNameOf(pe));if(t){this.$canvas=t;const e=t.querySelector(this.$getTagNameOf(be));e&&(this.$sourceImage=e,this.$image=e.cloneNode(!0),this.$getShadowRoot().appendChild(this.$image),this.$onSourceImageLoad=this.$handleSourceImageLoad.bind(this),this.$onSourceImageTransform=this.$handleSourceImageTransform.bind(this),lt(e.$image,Fe,this.$onSourceImageLoad),lt(e,qe,this.$onSourceImageTransform))}this.$render()}}disconnectedCallback(){const{$selection:e,$sourceImage:t}=this;e&&this.$onSelectionChange&&(it(e,Ve,this.$onSelectionChange),this.$onSelectionChange=null),t&&this.$onSourceImageLoad&&(it(t.$image,Fe,this.$onSourceImageLoad),this.$onSourceImageLoad=null),t&&this.$onSourceImageTransform&&(it(t,qe,this.$onSourceImageTransform),this.$onSourceImageTransform=null),super.disconnectedCallback()}$handleSelectionChange(e){this.$render(e.detail)}$handleSourceImageLoad(){const{$image:e,$sourceImage:t}=this,n=e.getAttribute("src"),r=t.getAttribute("src");r&&r!==n&&(e.setAttribute("src",r),e.$ready(()=>{setTimeout(()=>{this.$render()},50)}))}$handleSourceImageTransform(e){this.$render(void 0,e.detail.matrix)}$render(e,t){const{$canvas:n,$selection:r}=this;e||r.hidden||(e=r),(!e||0===e.x&&0===e.y&&0===e.width&&0===e.height)&&(e={x:0,y:0,width:n.offsetWidth,height:n.offsetHeight});const{x:a,y:o,width:i,height:l}=e,s={},{clientWidth:c,clientHeight:u}=this;let d=c,f=u,p=NaN;switch(this.resize){case"both":p=1,d=i,f=l,s.width=i,s.height=l;break;case"horizontal":p=l>0?u/l:0,d=i*p,s.width=d;break;case Ot:p=i>0?c/i:0,f=l*p,s.height=f;break;default:c>0?p=i>0?c/i:0:u>0&&(p=l>0?u/l:0)}this.$scale=p,this.$setStyles(s),this.$sourceImage&&this.$transformImageByOffset(null!=t?t:this.$sourceImage.$getTransform(),-a,-o)}$transformImageByOffset(e,t,n){const{$image:r,$scale:a,$sourceImage:o}=this;if(o&&r&&a>=0){const[o,i,l,s,c,u]=e,d=(t*s-l*n)/(o*s-l*i),f=(n*o-i*t)/(o*s-l*i),p=o*d+l*f+c,m=i*d+s*f+u;r.$ready(e=>{this.$setStyles.call(r,{width:e.naturalWidth*a,height:e.naturalHeight*a})}),r.$setTransform(o,i,l,s,p*a,m*a)}}}function Ut(){const[t,n]=e.useState(!1),[r,a]=e.useState(null),[o,i]=e.useState(null),l=async(e,t)=>{if(!e||!t)return a("ID de asset y configuración de variante son requeridos"),null;n(!0),a(null),i(null);try{const n=await async function(e,{variant_name:t,width:n,height:a,crop_params:o,preset_aspect:i=null,preset_size:l=null,output_format:s="webp"}){try{const r=[{name:t,width:n,height:a,output_format:s,crop_params:o}];return i&&(r[0].preset_aspect=i),l&&(r[0].preset_size=l),function(e){if(!e?.success||!e?.data)return{result:null};const t=e.data;return{result:{job_id:t.job_id,asset_id:t.asset_id,variants_requested:t.variants_requested||[],processing_mode:t.async?"async":"sync",estimated_completion:t.estimated_completion,variant_statuses:(t.variant_statuses||[]).map(e=>({name:e.name,status:e.status,size:e.expected_size,format:e.format}))}}}(await P({endpoint:`/assets/${e}/variants`,method:"POST",body:{variants:r,async:!1},basePath:I,useJWT:!0}))}catch(r){throw A(r)}}(e,{variant_name:t.name,width:t.width,height:t.height,crop_params:t.crop_params,preset_aspect:t.preset_aspect,preset_size:t.preset_size,output_format:t.output_format});if(n?.result)return i(n.result),n.result;throw new Error("No se pudo crear la variante")}catch(o){return console.error("Error creating variant:",o),a(o.message||"Error desconocido al crear variante"),null}finally{n(!1)}};return{createVariant:l,createCropVariant:async(e,t,n={})=>{const r={name:n.name||`crop_${Date.now()}`,width:n.width||800,height:n.height||600,output_format:n.format||"webp",crop_params:{x:t.x||0,y:t.y||0,width:t.width||1,height:t.height||1}};return await l(e,r)},loading:t,error:r,createdVariant:o,reset:()=>{a(null),i(null)}}}Ft.$name=we,Ft.$version="2.0.0",
|
|
28
|
+
*/function w(){return b||(b=1,"production"!==process.env.NODE_ENV&&function(){function n(e,t){for(e=e.memoizedState;null!==e&&0<t;)e=e.next,t--;return e}function r(e,t,n,a){if(n>=t.length)return a;var o=t[n],i=Xu(e)?e.slice():ju({},e);return i[o]=r(e[o],t,n+1,a),i}function a(e,t,n){if(t.length===n.length){for(var r=0;r<n.length-1;r++)if(t[r]!==n[r])return void console.warn("copyWithRename() expects paths to be the same except for the deepest key");return o(e,t,n,0)}console.warn("copyWithRename() expects paths of the same length")}function o(e,t,n,r){var a=t[r],i=Xu(e)?e.slice():ju({},e);return r+1===t.length?(i[n[r]]=i[a],Xu(i)?i.splice(a,1):delete i[a]):i[a]=o(e[a],t,n,r+1),i}function i(e,t,n){var r=t[n],a=Xu(e)?e.slice():ju({},e);return n+1===t.length?(Xu(a)?a.splice(r,1):delete a[r],a):(a[r]=i(e[r],t,n+1),a)}function l(){return!1}function s(){return null}function c(){}function u(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function d(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function f(){}function p(e){var t=[];return e.forEach(function(e){t.push(e)}),t.sort().join(", ")}function m(e,t,n,r){return new Cn(e,t,n,r)}function g(e,t){e.context===pm&&(Zc(e.current,2,t,e,null,null),zl())}function b(e,t){if(null!==mm){var n=t.staleFamilies;t=t.updatedFamilies,Zl(),Sn(e.current,t,n),zl()}}function y(e){mm=e}function w(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function k(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function x(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function S(e){if(k(e)!==e)throw Error("Unable to find node on an unmounted component.")}function C(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=C(e)))return t;e=e.sibling}return null}function E(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Yu&&e[Yu]||e["@@iterator"])?e:null}function T(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===Gu?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Mu:return"Fragment";case Du:return"Profiler";case $u:return"StrictMode";case Wu:return"Suspense";case Bu:return"SuspenseList";case Qu:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Lu:return"Portal";case Uu:return(e.displayName||"Context")+".Provider";case Fu:return(e._context.displayName||"Context")+".Consumer";case Hu:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Vu:return null!==(t=e.displayName||null)?t:T(e.type)||"Memo";case qu:t=e._payload,e=e._init;try{return T(e(t))}catch(n){}}return null}function _(e){return"number"==typeof e.tag?N(e):"string"==typeof e.name?e.name:null}function N(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return(t.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return T(t);case 8:return t===$u?"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 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;break;case 29:if(null!=(t=e._debugInfo))for(var n=t.length-1;0<=n;n--)if("string"==typeof t[n].name)return t[n].name;if(null!==e.return)return N(e.return)}return null}function P(e){return{current:e}}function z(e,t){0>rd?console.error("Unexpected pop."):(t!==nd[rd]&&console.error("Unexpected Fiber popped."),e.current=td[rd],td[rd]=null,nd[rd]=null,rd--)}function R(e,t,n){rd++,td[rd]=e.current,nd[rd]=n,e.current=t}function j(e){return null===e&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function A(e,t){R(id,t,e),R(od,e,e),R(ad,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=9===n?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?tc(t):Uv;break;default:if(n=t.tagName,t=t.namespaceURI)t=nc(t=tc(t),n);else switch(n){case"svg":t=Hv;break;case"math":t=Wv;break;default:t=Uv}}n={context:t,ancestorInfo:n=yt(null,n=n.toLowerCase())},z(ad,e),R(ad,n,e)}function I(e){z(ad,e),z(od,e),z(id,e)}function L(){return j(ad.current)}function M(e){null!==e.memoizedState&&R(ld,e,e);var t=j(ad.current),n=e.type,r=nc(t.context,n);t!==(r={context:r,ancestorInfo:n=yt(t.ancestorInfo,n)})&&(R(od,e,e),R(ad,r,e))}function $(e){od.current===e&&(z(ad,e),z(od,e)),ld.current===e&&(z(ld,e),Sw._currentValue=xw)}function D(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function O(e){try{return F(e),!1}catch(t){return!0}}function F(e){return""+e}function U(e,t){if(O(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,D(e)),F(e)}function H(e,t){if(O(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,D(e)),F(e)}function W(e){if(O(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",D(e)),F(e)}function B(e){if("function"==typeof wd&&kd(e),Sd&&"function"==typeof Sd.setStrictMode)try{Sd.setStrictMode(xd,e)}catch(t){Ed||(Ed=!0,console.error("React instrumentation encountered an error: %s",t))}}function V(e){Cd=e}function q(){null!==Cd&&"function"==typeof Cd.markCommitStopped&&Cd.markCommitStopped()}function Q(e){null!==Cd&&"function"==typeof Cd.markComponentRenderStarted&&Cd.markComponentRenderStarted(e)}function K(){null!==Cd&&"function"==typeof Cd.markComponentRenderStopped&&Cd.markComponentRenderStopped()}function Y(e){null!==Cd&&"function"==typeof Cd.markRenderStarted&&Cd.markRenderStarted(e)}function G(){null!==Cd&&"function"==typeof Cd.markRenderStopped&&Cd.markRenderStopped()}function X(e,t){null!==Cd&&"function"==typeof Cd.markStateUpdateScheduled&&Cd.markStateUpdateScheduled(e,t)}function Z(e){return 1&e?"SyncHydrationLane":2&e?"Sync":4&e?"InputContinuousHydration":8&e?"InputContinuous":16&e?"DefaultHydration":32&e?"Default":128&e?"TransitionHydration":4194048&e?"Transition":62914560&e?"Retry":67108864&e?"SelectiveHydration":134217728&e?"IdleHydration":268435456&e?"Idle":536870912&e?"Offscreen":1073741824&e?"Deferred":void 0}function J(e){var t=42&e;if(0!==t)return t;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:return 64;case 128:return 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 4194048&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function ee(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var a=0,o=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var l=134217727&r;return 0!==l?0!==(r=l&~o)?a=J(r):0!==(i&=l)?a=J(i):n||0!==(n=l&~e)&&(a=J(n)):0!==(l=r&~o)?a=J(l):0!==i?a=J(i):n||0!==(n=r&~e)&&(a=J(n)),0===a?0:0!==t&&t!==a&&0===(t&o)&&((o=a&-a)>=(n=t&-t)||32===o&&4194048&n)?t:a}function te(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function ne(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function re(){var e=zd;return!(4194048&(zd<<=1))&&(zd=256),e}function ae(){var e=Rd;return!(62914560&(Rd<<=1))&&(Rd=4194304),e}function oe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ie(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function le(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-_d(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194090&n}function se(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-_d(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function ce(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ue(e,t,n){if(Td)for(e=e.pendingUpdatersLaneMap;0<n;){var r=31-_d(n),a=1<<r;e[r].add(t),n&=~a}}function de(e,t){if(Td)for(var n=e.pendingUpdatersLaneMap,r=e.memoizedUpdaters;0<t;){var a=31-_d(t);e=1<<a,0<(a=n[a]).size&&(a.forEach(function(e){var t=e.alternate;null!==t&&r.has(t)||r.add(e)}),a.clear()),t&=~e}}function fe(e){return jd<(e&=-e)?Ad<e?134217727&e?Id:Ld:Ad:jd}function pe(){var e=Ju.p;return 0!==e?e:void 0===(e=window.event)?Id:cu(e.type)}function me(e){delete e[$d],delete e[Dd],delete e[Fd],delete e[Ud],delete e[Hd]}function he(e){var t=e[$d];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Od]||n[$d]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Sc(e);null!==e;){if(n=e[$d])return n;e=Sc(e)}return t}n=(e=n).parentNode}return null}function ge(e){if(e=e[$d]||e[Od]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function be(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function ye(e){var t=e[Wd];return t||(t=e[Wd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ve(e){e[Bd]=!0}function we(e,t){ke(e,t),ke(e+"Capture",t)}function ke(e,t){qd[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),qd[e]=t;var n=e.toLowerCase();for(Qd[n]=e,"onDoubleClick"===e&&(Qd.ondblclick=e),e=0;e<t.length;e++)Vd.add(t[e])}function xe(e,t){Kd[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||null==t.value||("select"===e?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),t.onChange||t.readOnly||t.disabled||null==t.checked||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Se(e){return!!sd.call(Xd,e)||!sd.call(Gd,e)&&(Yd.test(e)?Xd[e]=!0:(Gd[e]=!0,console.error("Invalid attribute name: `%s`",e),!1))}function Ce(e,t,n){if(Se(t)){if(!e.hasAttribute(t)){switch(typeof n){case"symbol":case"object":case"function":return n;case"boolean":if(!1===n)return n}return void 0===n?void 0:null}return""===(e=e.getAttribute(t))&&!0===n||(U(n,t),e===""+n?n:e)}}function Ee(e,t,n){if(Se(t))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}U(n,t),e.setAttribute(t,""+n)}}function Te(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}U(n,t),e.setAttribute(t,""+n)}}function _e(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}U(r,n),e.setAttributeNS(t,n,""+r)}}function Ne(){}function Pe(e){if(void 0===Jd)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Jd=t&&t[1]||"",ef=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+Jd+e+ef}function ze(e,t){if(!e||tf)return"";var n=nf.get(e);if(void 0!==n)return n;tf=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var r;r=Zu.H,Zu.H=null,function(){if(0===Zd){xu=console.log,Su=console.info,Cu=console.warn,Eu=console.error,Tu=console.group,_u=console.groupCollapsed,Nu=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ne,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Zd++}();try{var a={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(a){var r=a}Reflect.construct(e,[],n)}else{try{n.call()}catch(o){r=o}e.call(n.prototype)}}else{try{throw Error()}catch(i){r=i}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(l){if(l&&r&&"string"==typeof l.stack)return[l.stack,r.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),l=i[0],s=i[1];if(l&&s){var c=l.split("\n"),u=s.split("\n");for(i=o=0;o<c.length&&!c[o].includes("DetermineComponentFrameRoot");)o++;for(;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;if(o===c.length||i===u.length)for(o=c.length-1,i=u.length-1;1<=o&&0<=i&&c[o]!==u[i];)i--;for(;1<=o&&0<=i;o--,i--)if(c[o]!==u[i]){if(1!==o||1!==i)do{if(o--,0>--i||c[o]!==u[i]){var d="\n"+c[o].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&nf.set(e,d),d}}while(1<=o&&0<=i);break}}}finally{tf=!1,Zu.H=r,function(){if(0===--Zd){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ju({},e,{value:xu}),info:ju({},e,{value:Su}),warn:ju({},e,{value:Cu}),error:ju({},e,{value:Eu}),group:ju({},e,{value:Tu}),groupCollapsed:ju({},e,{value:_u}),groupEnd:ju({},e,{value:Nu})})}0>Zd&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=n}return c=(c=e?e.displayName||e.name:"")?Pe(c):"","function"==typeof e&&nf.set(e,c),c}function Re(e){var t=Error.prepareStackTrace;return Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith("Error: react-stack-top-frame\n")&&(e=e.slice(29)),-1!==(t=e.indexOf("\n"))&&(e=e.slice(t+1)),-1!==(t=e.indexOf("react_stack_bottom_frame"))&&(t=e.lastIndexOf("\n",t)),-1===t?"":e=e.slice(0,t)}function je(e){switch(e.tag){case 26:case 27:case 5:return Pe(e.type);case 16:return Pe("Lazy");case 13:return Pe("Suspense");case 19:return Pe("SuspenseList");case 0:case 15:return ze(e.type,!1);case 11:return ze(e.type.render,!1);case 1:return ze(e.type,!0);case 31:return Pe("Activity");default:return""}}function Ae(e){try{var t="";do{t+=je(e);var n=e._debugInfo;if(n)for(var r=n.length-1;0<=r;r--){var a=n[r];if("string"==typeof a.name){var o=t,i=a.env;t=o+Pe(a.name+(i?" ["+i+"]":""))}}e=e.return}while(e);return t}catch(l){return"\nError generating stack: "+l.message+"\n"+l.stack}}function Ie(e){return(e=e?e.displayName||e.name:"")?Pe(e):""}function Le(){if(null===rf)return null;var e=rf._debugOwner;return null!=e?_(e):null}function Me(){if(null===rf)return"";var e=rf;try{var t="";switch(6===e.tag&&(e=e.return),e.tag){case 26:case 27:case 5:t+=Pe(e.type);break;case 13:t+=Pe("Suspense");break;case 19:t+=Pe("SuspenseList");break;case 31:t+=Pe("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||""!==t||(t+=Ie(e.type));break;case 11:e._debugOwner||""!==t||(t+=Ie(e.type.render))}for(;e;)if("number"==typeof e.tag){var n=e;e=n._debugOwner;var r=n._debugStack;e&&r&&("string"!=typeof r&&(n._debugStack=r=Re(r)),""!==r&&(t+="\n"+r))}else{if(null==e.debugStack)break;var a=e.debugStack;(e=e.owner)&&a&&(t+="\n"+Re(a))}var o=t}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return o}function $e(e,t,n,r,a,o,i){var l=rf;De(e);try{return null!==e&&e._debugTask?e._debugTask.run(t.bind(null,n,r,a,o,i)):t(n,r,a,o,i)}finally{De(l)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function De(e){Zu.getCurrentStack=null===e?null:Me,af=!1,rf=e}function Oe(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return W(e),e;default:return""}}function Fe(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Ue(e){e._valueTracker||(e._valueTracker=function(e){var t=Fe(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);W(e[t]);var r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){W(e),r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){W(e),r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function He(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Fe(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function We(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Be(e){return e.replace(of,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Ve(e,t){void 0===t.checked||void 0===t.defaultChecked||sf||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Le()||"A component",t.type),sf=!0),void 0===t.value||void 0===t.defaultValue||lf||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Le()||"A component",t.type),lf=!0)}function qe(e,t,n,r,a,o,i,l){e.name="",null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i?(U(i,"type"),e.type=i):e.removeAttribute("type"),null!=t?"number"===i?(0===t&&""===e.value||e.value!=t)&&(e.value=""+Oe(t)):e.value!==""+Oe(t)&&(e.value=""+Oe(t)):"submit"!==i&&"reset"!==i||e.removeAttribute("value"),null!=t?Ke(e,i,Oe(t)):null!=n?Ke(e,i,Oe(n)):null!=r&&e.removeAttribute("value"),null==a&&null!=o&&(e.defaultChecked=!!o),null!=a&&(e.checked=a&&"function"!=typeof a&&"symbol"!=typeof a),null!=l&&"function"!=typeof l&&"symbol"!=typeof l&&"boolean"!=typeof l?(U(l,"name"),e.name=""+Oe(l)):e.removeAttribute("name")}function Qe(e,t,n,r,a,o,i,l){if(null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(U(o,"type"),e.type=o),null!=t||null!=n){if(("submit"===o||"reset"===o)&&null==t)return;n=null!=n?""+Oe(n):"",t=null!=t?""+Oe(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:a)&&"symbol"!=typeof r&&!!r,e.checked=l?e.checked:!!r,e.defaultChecked=!!r,null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(U(i,"name"),e.name=i)}function Ke(e,t,n){"number"===t&&We(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ye(e,t){null==t.value&&("object"==typeof t.children&&null!==t.children?zu.Children.forEach(t.children,function(e){null==e||"string"==typeof e||"number"==typeof e||"bigint"==typeof e||uf||(uf=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):null==t.dangerouslySetInnerHTML||df||(df=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),null==t.selected||cf||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),cf=!0)}function Ge(){var e=Le();return e?"\n\nCheck the render method of `"+e+"`.":""}function Xe(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Oe(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function Ze(e,t){for(e=0;e<pf.length;e++){var n=pf[e];if(null!=t[n]){var r=Xu(t[n]);t.multiple&&!r?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,Ge()):!t.multiple&&r&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,Ge())}}void 0===t.value||void 0===t.defaultValue||ff||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),ff=!0)}function Je(e,t){void 0===t.value||void 0===t.defaultValue||mf||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",Le()||"A component"),mf=!0),null!=t.children&&null==t.value&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function et(e,t,n){null==t||((t=""+Oe(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+Oe(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function tt(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Xu(r)){if(1<r.length)throw Error("<textarea> can only have at most one child.");r=r[0]}n=r}null==n&&(n=""),t=n}n=Oe(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r)}function nt(e,t){return void 0===e.serverProps&&0===e.serverTail.length&&1===e.children.length&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?nt(e.children[0],t):e}function rt(e){return" "+" ".repeat(e)}function at(e){return"+ "+" ".repeat(e)}function ot(e){return"- "+" ".repeat(e)}function it(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:case 1:return(e=e.type).displayName||e.name||null;case 11:return(e=e.type.render).displayName||e.name||null;default:return null}}function lt(e,t){return hf.test(e)?(e=JSON.stringify(e)).length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}":e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function st(e,t,n){var r=120-2*n;if(null===t)return at(n)+lt(e,r)+"\n";if("string"==typeof t){for(var a=0;a<t.length&&a<e.length&&t.charCodeAt(a)===e.charCodeAt(a);a++);return a>r-8&&10<a&&(e="..."+e.slice(a-8),t="..."+t.slice(a-8)),at(n)+lt(e,r)+"\n"+ot(n)+lt(t,r)+"\n"}return rt(n)+lt(e,r)+"\n"}function ct(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(e,t){return t})}function ut(e,t){switch(typeof e){case"string":return(e=JSON.stringify(e)).length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(null===e)return"null";if(Xu(e))return"[...]";if(e.$$typeof===Iu)return(t=T(e.type))?"<"+t+">":"<...>";var n=ct(e);if("Object"===n){for(var r in n="",t-=2,e)if(e.hasOwnProperty(r)){var a=JSON.stringify(r);if(a!=='"'+r+'"'&&(r=a),t-=r.length-2,0>(t-=(a=ut(e[r],15>t?t:15)).length)){n+=""===n?"...":", ...";break}n+=(""===n?"":",")+r+":"+a}return"{"+n+"}"}return n;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function dt(e,t){return"string"!=typeof e||hf.test(e)?"{"+ut(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function ft(e,t,n){var r,a=120-n.length-e.length,o=[];for(r in t)if(t.hasOwnProperty(r)&&"children"!==r){var i=dt(t[r],120-n.length-r.length-1);a-=r.length+i.length+2,o.push(r+"="+i)}return 0===o.length?n+"<"+e+">\n":0<a?n+"<"+e+" "+o.join(" ")+">\n":n+"<"+e+"\n"+n+" "+o.join("\n"+n+" ")+"\n"+n+">\n"}function pt(e,t,n){var r,a="",o=ju({},t);for(r in e)if(e.hasOwnProperty(r)){delete o[r];var i=120-2*n-r.length-2,l=ut(e[r],i);t.hasOwnProperty(r)?(i=ut(t[r],i),a+=at(n)+r+": "+l+"\n",a+=ot(n)+r+": "+i+"\n"):a+=at(n)+r+": "+l+"\n"}for(var s in o)o.hasOwnProperty(s)&&(e=ut(o[s],120-2*n-s.length-2),a+=ot(n)+s+": "+e+"\n");return a}function mt(e,t){var n=it(e);if(null===n){for(n="",e=e.child;e;)n+=mt(e,t),e=e.sibling;return n}return rt(t)+"<"+n+">\n"}function ht(e,t){var n=nt(e,t);if(n!==e&&(1!==e.children.length||e.children[0]!==n))return rt(t)+"...\n"+ht(n,t+1);n="";var r=e.fiber._debugInfo;if(r)for(var a=0;a<r.length;a++){var o=r[a].name;"string"==typeof o&&(n+=rt(t)+"<"+o+">\n",t++)}if(r="",a=e.fiber.pendingProps,6===e.fiber.tag)r=st(a,e.serverProps,t),t++;else if(null!==(o=it(e.fiber)))if(void 0===e.serverProps){var i=120-2*(r=t)-o.length-2,l="";for(c in a)if(a.hasOwnProperty(c)&&"children"!==c){var s=dt(a[c],15);if(0>(i-=c.length+s.length+2)){l+=" ...";break}l+=" "+c+"="+s}r=rt(r)+"<"+o+l+">\n",t++}else null===e.serverProps?(r=ft(o,a,at(t)),t++):"string"==typeof e.serverProps?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(r=function(e,t,n,r){var a="",o=new Map;for(c in n)n.hasOwnProperty(c)&&o.set(c.toLowerCase(),c);if(1===o.size&&o.has("children"))a+=ft(e,t,rt(r));else{for(var i in t)if(t.hasOwnProperty(i)&&"children"!==i){var l=120-2*(r+1)-i.length-1,s=o.get(i.toLowerCase());if(void 0!==s){o.delete(i.toLowerCase());var c=t[i];s=n[s];var u=dt(c,l);l=dt(s,l),"object"==typeof c&&null!==c&&"object"==typeof s&&null!==s&&"Object"===ct(c)&&"Object"===ct(s)&&(2<Object.keys(c).length||2<Object.keys(s).length||-1<u.indexOf("...")||-1<l.indexOf("..."))?a+=rt(r+1)+i+"={{\n"+pt(c,s,r+2)+rt(r+1)+"}}\n":(a+=at(r+1)+i+"="+u+"\n",a+=ot(r+1)+i+"="+l+"\n")}else a+=rt(r+1)+i+"="+dt(t[i],l)+"\n"}o.forEach(function(e){if("children"!==e){var t=120-2*(r+1)-e.length-1;a+=ot(r+1)+e+"="+dt(n[e],t)+"\n"}}),a=""===a?rt(r)+"<"+e+">\n":rt(r)+"<"+e+"\n"+a+rt(r)+">\n"}return e=n.children,t=t.children,"string"==typeof e||"number"==typeof e||"bigint"==typeof e?(o="","string"!=typeof t&&"number"!=typeof t&&"bigint"!=typeof t||(o=""+t),a+=st(o,""+e,r+1)):"string"!=typeof t&&"number"!=typeof t&&"bigint"!=typeof t||(a=null==e?a+st(""+t,null,r+1):a+st(""+t,void 0,r+1)),a}(o,a,e.serverProps,t),t++);var c="";for(a=e.fiber.child,o=0;a&&o<e.children.length;)(i=e.children[o]).fiber===a?(c+=ht(i,t),o++):c+=mt(a,t),a=a.sibling;for(a&&0<e.children.length&&(c+=rt(t)+"...\n"),a=e.serverTail,null===e.serverProps&&t--,e=0;e<a.length;e++)c="string"==typeof(o=a[e])?c+(ot(t)+lt(o,120-2*t)+"\n"):c+ft(o.type,o.props,ot(t));return n+r+c}function gt(e){try{return"\n\n"+ht(e,0)}catch(t){return""}}function bt(e,t,n){for(var r=t,a=null,o=0;r;)r===e&&(o=0),a={fiber:r,children:null!==a?[a]:[],serverProps:r===t?n:r===e?null:void 0,serverTail:[],distanceFromLeaf:o},o++,r=r.return;return null!==a?gt(a).replaceAll(/^[+-]/gm,">"):""}function yt(e,t){var n=ju({},e||wf),r={tag:t};return-1!==bf.indexOf(t)&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),-1!==yf.indexOf(t)&&(n.pTagInButtonScope=null),-1!==gf.indexOf(t)&&"address"!==t&&"div"!==t&&"p"!==t&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=r,"form"===t&&(n.formTag=r),"a"===t&&(n.aTagInScope=r),"button"===t&&(n.buttonTagInScope=r),"nobr"===t&&(n.nobrTagInScope=r),"p"===t&&(n.pTagInButtonScope=r),"li"===t&&(n.listItemTagAutoclosing=r),"dd"!==t&&"dt"!==t||(n.dlItemTagAutoclosing=r),"#document"===t||"html"===t?n.containerTagInScope=null:n.containerTagInScope||(n.containerTagInScope=r),null!==e||"#document"!==t&&"html"!==t&&"body"!==t?!0===n.implicitRootScope&&(n.implicitRootScope=!1):n.implicitRootScope=!0,n}function vt(e,t,n){switch(t){case"select":return"hr"===e||"option"===e||"optgroup"===e||"script"===e||"template"===e||"#text"===e;case"optgroup":return"option"===e||"#text"===e;case"option":return"#text"===e;case"tr":return"th"===e||"td"===e||"style"===e||"script"===e||"template"===e;case"tbody":case"thead":case"tfoot":return"tr"===e||"style"===e||"script"===e||"template"===e;case"colgroup":return"col"===e||"template"===e;case"table":return"caption"===e||"colgroup"===e||"tbody"===e||"tfoot"===e||"thead"===e||"style"===e||"script"===e||"template"===e;case"head":return"base"===e||"basefont"===e||"bgsound"===e||"link"===e||"meta"===e||"title"===e||"noscript"===e||"noframes"===e||"style"===e||"script"===e||"template"===e;case"html":if(n)break;return"head"===e||"body"===e||"frameset"===e;case"frameset":return"frame"===e;case"#document":if(!n)return"html"===e}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t;case"rp":case"rt":return-1===vf.indexOf(t);case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return null==t;case"head":return n||null===t;case"html":return n&&"#document"===t||null===t;case"body":return n&&("#document"===t||"html"===t)||null===t}return!0}function wt(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function kt(e,t){var n=(t=t||wf).current;if(t=(n=vt(e,n&&n.tag,t.implicitRootScope)?null:n)?null:function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}(e,t),!(t=n||t))return!0;var r=t.tag;if(t=String(!!n)+"|"+e+"|"+r,kf[t])return!1;kf[t]=!0;var a=(t=rf)?wt(t.return,r):null,o=null!==t&&null!==a?bt(a,t,null):"",i="<"+e+">";return n?(n="","table"===r&&"tr"===e&&(n+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error("In HTML, %s cannot be a child of <%s>.%s\nThis will cause a hydration error.%s",i,r,n,o)):console.error("In HTML, %s cannot be a descendant of <%s>.\nThis will cause a hydration error.%s",i,r,o),t&&(e=t.return,null===a||null===e||a===e&&e._debugOwner===t._debugOwner||$e(a,function(){console.error("<%s> cannot contain a nested %s.\nSee this log for the ancestor stack trace.",r,i)})),!1}function xt(e,t,n){if(n||vt("#text",t,!1))return!0;if(kf[n="#text|"+t])return!1;kf[n]=!0;var r=(n=rf)?wt(n,t):null;return n=null!==n&&null!==r?bt(r,n,6!==n.tag?{children:null}:null):"",/\S/.test(e)?console.error("In HTML, text nodes cannot be a child of <%s>.\nThis will cause a hydration error.%s",t,n):console.error("In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.\nThis will cause a hydration error.%s",t,n),!1}function St(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Ct(e,t,n){var r=0===t.indexOf("--");r||(-1<t.indexOf("-")?Pf.hasOwnProperty(t)&&Pf[t]||(Pf[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,t.replace(Tf,"ms-").replace(_f,function(e,t){return t.toUpperCase()}))):Ef.test(t)?Pf.hasOwnProperty(t)&&Pf[t]||(Pf[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!Nf.test(n)||zf.hasOwnProperty(n)&&zf[n]||(zf[n]=!0,console.error('Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.',t,n.replace(Nf,""))),"number"==typeof n&&(isNaN(n)?Rf||(Rf=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(n)||jf||(jf=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Af.has(t)?"float"===t?e.cssFloat=n:(H(n,t),e[t]=(""+n).trim()):e[t]=n+"px"}function Et(e,t,n){if(null!=t&&"object"!=typeof t)throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,null!=n){if(t){var r={};if(n)for(var a in n)if(n.hasOwnProperty(a)&&!t.hasOwnProperty(a))for(var o=xf[a]||[a],i=0;i<o.length;i++)r[o[i]]=a;for(var l in t)if(t.hasOwnProperty(l)&&(!n||n[l]!==t[l]))for(a=xf[l]||[l],o=0;o<a.length;o++)r[a[o]]=l;for(var s in l={},t)for(a=xf[s]||[s],o=0;o<a.length;o++)l[a[o]]=s;for(var c in s={},r)if(a=r[c],(o=l[c])&&a!==o&&!s[i=a+","+o]){s[i]=!0,i=console;var u=t[a];i.error.call(i,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",null==u||"boolean"==typeof u||""===u?"Removing":"Updating",a,o)}}for(var d in n)!n.hasOwnProperty(d)||null!=t&&t.hasOwnProperty(d)||(0===d.indexOf("--")?e.setProperty(d,""):"float"===d?e.cssFloat="":e[d]="");for(var f in t)c=t[f],t.hasOwnProperty(f)&&n[f]!==c&&Ct(e,f,c)}else for(r in t)t.hasOwnProperty(r)&&Ct(e,r,t[r])}function Tt(e){if(-1===e.indexOf("-"))return!1;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}}function _t(e){return Mf.get(e)||e}function Nt(e,t){if(sd.call(Of,t)&&Of[t])return!0;if(Uf.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),null==(e=Df.hasOwnProperty(e)?e:null))return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Of[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Of[t]=!0}if(Ff.test(t)){if(e=t.toLowerCase(),null==(e=Df.hasOwnProperty(e)?e:null))return Of[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Of[t]=!0)}return!0}function Pt(e,t,n,r){if(sd.call(Wf,t)&&Wf[t])return!0;var a=t.toLowerCase();if("onfocusin"===a||"onfocusout"===a)return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Wf[t]=!0;if("function"==typeof n&&("form"===e&&"action"===t||"input"===e&&"formAction"===t||"button"===e&&"formAction"===t))return!0;if(null!=r){if(e=r.possibleRegistrationNames,r.registrationNameDependencies.hasOwnProperty(t))return!0;if(null!=(r=e.hasOwnProperty(a)?e[a]:null))return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,r),Wf[t]=!0;if(Bf.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Wf[t]=!0}else if(Bf.test(t))return Vf.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Wf[t]=!0;if(qf.test(t)||Qf.test(t))return!0;if("innerhtml"===a)return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Wf[t]=!0;if("aria"===a)return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Wf[t]=!0;if("is"===a&&null!=n&&"string"!=typeof n)return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),Wf[t]=!0;if("number"==typeof n&&isNaN(n))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Wf[t]=!0;if($f.hasOwnProperty(a)){if((a=$f[a])!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,a),Wf[t]=!0}else if(t!==a)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,a),Wf[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"innerText":case"textContent":return!0}switch(typeof n){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return"data-"===(a=t.toLowerCase().slice(0,5))||"aria-"===a||(n?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',n,t,t,n,t,t,t),Wf[t]=!0)}case"function":case"symbol":return Wf[t]=!0,!1;case"string":if("false"===n||"true"===n){switch(t){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,"false"===n?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,n),Wf[t]=!0}}return!0}function zt(e){return Kf.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Rt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function jt(e){var t=ge(e);if(t&&(e=t.stateNode)){var n=e[Dd]||null;e:switch(e=t.stateNode,t.type){case"input":if(qe(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(U(t,"name"),n=n.querySelectorAll('input[name="'+Be(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[Dd]||null;if(!a)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");qe(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&He(r)}break e;case"textarea":et(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&Xe(e,!!n.multiple,t,!1)}}}function At(e,t,n){if(Zf)return e(t,n);Zf=!0;try{return e(t)}finally{if(Zf=!1,(null!==Gf||null!==Xf)&&(zl(),Gf&&(t=Gf,e=Xf,Xf=Gf=null,jt(t),e)))for(t=0;t<e.length;t++)jt(e[t])}}function It(e,t){var n=e.stateNode;if(null===n)return null;var r=n[Dd]||null;if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof n+"` type.");return n}function Lt(){if(lp)return lp;var e,t,n=ip,r=n.length,a="value"in op?op.value:op.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return lp=a.slice(e,1<t?1-t:void 0)}function Mt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function $t(){return!0}function Dt(){return!1}function Ot(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?$t:Dt,this.isPropagationStopped=Dt,this}return ju(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=$t)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=$t)},persist:function(){},isPersistent:$t}),t}function Ft(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xp[e])&&!!t[e]}function Ut(){return Ft}function Ht(e,t){switch(e){case"keyup":return-1!==Pp.indexOf(t.keyCode);case"keydown":return t.keyCode!==zp;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wt(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}function Bt(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Op[e.type]:"textarea"===t}function Vt(e,t,n,r){Gf?Xf?Xf.push(r):Xf=[r]:Gf=r,0<(t=js(t,"onChange")).length&&(n=new cp("onChange","change",null,n,r),e.push({event:n,listeners:t}))}function qt(e){Es(e,0)}function Qt(e){if(He(be(e)))return e}function Kt(e,t){if("change"===e)return t}function Yt(){Fp&&(Fp.detachEvent("onpropertychange",Gt),Up=Fp=null)}function Gt(e){if("value"===e.propertyName&&Qt(Up)){var t=[];Vt(t,Up,e,Rt(e)),At(qt,t)}}function Xt(e,t,n){"focusin"===e?(Yt(),Up=n,(Fp=t).attachEvent("onpropertychange",Gt)):"focusout"===e&&Yt()}function Zt(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qt(Up)}function Jt(e,t){if("click"===e)return Qt(t)}function en(e,t){if("input"===e||"change"===e)return Qt(t)}function tn(e,t){if(Wp(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!sd.call(t,a)||!Wp(e[a],t[a]))return!1}return!0}function nn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rn(e,t){var n,r=nn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=nn(r)}}function an(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?an(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function on(e){for(var t=We((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=We((e=t.contentWindow).document)}return t}function ln(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function sn(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Kp||null==Vp||Vp!==We(r)||("selectionStart"in(r=Vp)&&ln(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Qp&&tn(Qp,r)||(Qp=r,0<(r=js(qp,"onSelect")).length&&(t=new cp("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Vp)))}function cn(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function un(e){if(Gp[e])return Gp[e];if(!Yp[e])return e;var t,n=Yp[e];for(t in n)if(n.hasOwnProperty(t)&&t in Xp)return Gp[e]=n[t];return e}function dn(e,t){om.set(e,t),we(t,[e])}function fn(e,t){if("object"==typeof e&&null!==e){var n=lm.get(e);return void 0!==n?n:(t={value:e,source:t,stack:Ae(t)},lm.set(e,t),t)}return{value:e,source:t,stack:Ae(t)}}function pn(){for(var e=dm,t=fm=dm=0;t<e;){var n=um[t];um[t++]=null;var r=um[t];um[t++]=null;var a=um[t];um[t++]=null;var o=um[t];if(um[t++]=null,null!==r&&null!==a){var i=r.pending;null===i?a.next=a:(a.next=i.next,i.next=a),r.pending=a}0!==o&&bn(n,a,o)}}function mn(e,t,n,r){um[dm++]=e,um[dm++]=t,um[dm++]=n,um[dm++]=r,fm|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function hn(e,t,n,r){return mn(e,t,n,r),yn(e)}function gn(e,t){return mn(e,null,null,t),yn(e)}function bn(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var a=!1,o=e.return;null!==o;)o.childLanes|=n,null!==(r=o.alternate)&&(r.childLanes|=n),22===o.tag&&(null===(e=o.stateNode)||e._visibility&sm||(a=!0)),e=o,o=o.return;return 3===e.tag?(o=e.stateNode,a&&null!==t&&(a=31-_d(n),null===(r=(e=o.hiddenUpdates)[a])?e[a]=[t]:r.push(t),t.lane=536870912|n),o):null}function yn(e){if(Ky>Qy)throw Jy=Ky=0,ev=Yy=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Jy>Zy&&(Jy=0,ev=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),null===e.alternate&&4098&e.flags&&us(e);for(var t=e,n=t.return;null!==n;)null===t.alternate&&!!(4098&t.flags)&&us(e),n=(t=n).return;return 3===t.tag?t.stateNode:null}function vn(e){if(null===mm)return e;var t=mm(e);return void 0===t?e:t.current}function wn(e){if(null===mm)return e;var t=mm(e);return void 0===t?null!=e&&"function"==typeof e.render&&(t=vn(e.render),e.render!==t)?(t={$$typeof:Hu,render:t},void 0!==e.displayName&&(t.displayName=e.displayName),t):e:t.current}function kn(e,t){if(null===mm)return!1;var n=e.elementType,r=!1,a="object"==typeof(t=t.type)&&null!==t?t.$$typeof:null;switch(e.tag){case 1:"function"==typeof t&&(r=!0);break;case 0:("function"==typeof t||a===qu)&&(r=!0);break;case 11:(a===Hu||a===qu)&&(r=!0);break;case 14:case 15:(a===Vu||a===qu)&&(r=!0);break;default:return!1}return!(!r||(e=mm(n),void 0===e||e!==mm(t)))}function xn(e){null!==mm&&"function"==typeof WeakSet&&(null===hm&&(hm=new WeakSet),hm.add(e))}function Sn(e,t,n){var r=e.alternate,a=e.child,o=e.sibling,i=e.tag,l=e.type,s=null;switch(i){case 0:case 15:case 1:s=l;break;case 11:s=l.render}if(null===mm)throw Error("Expected resolveFamily to be set during hot reload.");var c=!1;l=!1,null!==s&&(void 0!==(s=mm(s))&&(n.has(s)?l=!0:t.has(s)&&(1===i?l=!0:c=!0))),null!==hm&&(hm.has(e)||null!==r&&hm.has(r))&&(l=!0),l&&(e._debugNeedsRemount=!0),(l||c)&&(null!==(r=gn(e,2))&&El(r,e,2)),null===a||l||Sn(a,t,n),null!==o&&Sn(o,t,n)}function Cn(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.refCleanup=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,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,xm||"function"!=typeof Object.preventExtensions||Object.preventExtensions(this)}function En(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Tn(e,t){var n=e.alternate;switch(null===n?((n=m(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugOwner=e._debugOwner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=-0,n.actualStartTime=-1.1),n.flags=65011712&e.flags,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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugInfo=e._debugInfo,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 0:case 15:case 1:n.type=vn(e.type);break;case 11:n.type=wn(e.type)}return n}function _n(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration),e}function Nn(e,t,n,r,a,o){var i=0,l=e;if("function"==typeof e)En(e)&&(i=1),l=vn(l);else if("string"==typeof e)i=function(e,t,n){var r=!n.ancestorInfo.containerTagInScope;if(n.context===Hv||null!=t.itemProp)return!r||null==t.itemProp||"meta"!==e&&"title"!==e&&"style"!==e&&"link"!==e&&"script"!==e||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href){r&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError){if("stylesheet"===t.rel&&"string"==typeof t.precedence){e=t.href;var a=t.onError,o=t.disabled;n=[],t.onLoad&&n.push("`onLoad`"),a&&n.push("`onError`"),null!=o&&n.push("`disabled`"),a=function(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}(n,"and"),a+=1===n.length?" prop":" props",o=1===n.length?"an "+a:"the "+a,n.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,o,a)}r&&("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}return"stylesheet"!==t.rel||(e=t.precedence,t=t.disabled,"string"!=typeof e&&r&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),"string"==typeof e&&null==t);case"script":if(!(e=t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async)||t.onLoad||t.onError||!t.src||"string"!=typeof t.src){r&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":r&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}(e,n,i=L())?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case Qu:return(t=m(31,n,t,a)).elementType=Qu,t.lanes=o,t;case Mu:return zn(n.children,a,o,t);case $u:i=8,a|=vm,a|=wm;break;case Du:return r=a,"string"!=typeof(e=n).id&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),(t=m(12,e,t,r|ym)).elementType=Du,t.lanes=o,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Wu:return(t=m(13,n,t,a)).elementType=Wu,t.lanes=o,t;case Bu:return(t=m(19,n,t,a)).elementType=Bu,t.lanes=o,t;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Ou:case Uu:i=10;break e;case Fu:i=9;break e;case Hu:i=11,l=wn(l);break e;case Vu:i=14;break e;case qu:i=16,l=null;break e}l="",(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(l+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),null===e?n="null":Xu(e)?n="array":void 0!==e&&e.$$typeof===Iu?(n="<"+(T(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):n=typeof e,(i=r?_(r):null)&&(l+="\n\nCheck the render method of `"+i+"`."),i=29,n=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+n+"."+l),l=null}return(t=m(i,n,t,a)).elementType=e,t.type=l,t.lanes=o,t._debugOwner=r,t}function Pn(e,t,n){return(t=Nn(e.type,e.key,e.props,e._owner,t,n))._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function zn(e,t,n,r){return(e=m(7,e,r,t)).lanes=n,e}function Rn(e,t,n){return(e=m(6,e,null,t)).lanes=n,e}function jn(e,t,n){return(t=m(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function An(e,t){$n(),Sm[Cm++]=Tm,Sm[Cm++]=Em,Em=e,Tm=t}function In(e,t,n){$n(),_m[Nm++]=zm,_m[Nm++]=Rm,_m[Nm++]=Pm,Pm=e;var r=zm;e=Rm;var a=32-_d(r)-1;r&=~(1<<a),n+=1;var o=32-_d(t)+a;if(30<o){var i=a-a%5;o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,zm=1<<32-_d(t)+a|n<<a|r,Rm=o+e}else zm=1<<o|n<<a|r,Rm=e}function Ln(e){$n(),null!==e.return&&(An(e,1),In(e,1,0))}function Mn(e){for(;e===Em;)Em=Sm[--Cm],Sm[Cm]=null,Tm=Sm[--Cm],Sm[Cm]=null;for(;e===Pm;)Pm=_m[--Nm],_m[Nm]=null,Rm=_m[--Nm],_m[Nm]=null,zm=_m[--Nm],_m[Nm]=null}function $n(){Im||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Dn(e,t){if(null===e.return){if(null===Mm)Mm={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(Mm.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Mm.distanceFromLeaf>t&&(Mm.distanceFromLeaf=t)}return Mm}var n=Dn(e.return,t+1).children;return 0<n.length&&n[n.length-1].fiber===e?((n=n[n.length-1]).distanceFromLeaf>t&&(n.distanceFromLeaf=t),n):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},n.push(t),t)}function On(e,t){Lm||((e=Dn(e,0)).serverProps=null,null!==t&&(t=wc(t),e.serverTail.push(t)))}function Fn(e){var t="",n=Mm;throw null!==n&&(Mm=null,t=gt(n)),qn(fn(Error("Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\nhttps://react.dev/link/hydration-mismatch"+t),e)),Om}function Un(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[$d]=e,t[Dd]=r,Ls(n,r),n){case"dialog":Ts("cancel",t),Ts("close",t);break;case"iframe":case"object":case"embed":Ts("load",t);break;case"video":case"audio":for(n=0;n<pv.length;n++)Ts(pv[n],t);break;case"source":Ts("error",t);break;case"img":case"image":case"link":Ts("error",t),Ts("load",t);break;case"details":Ts("toggle",t);break;case"input":xe("input",r),Ts("invalid",t),Ve(0,r),Qe(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),Ue(t);break;case"option":Ye(0,r);break;case"select":xe("select",r),Ts("invalid",t),Ze(t,r);break;case"textarea":xe("textarea",r),Ts("invalid",t),Je(0,r),tt(t,r.value,r.defaultValue,r.children),Ue(t)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||Fs(t.textContent,n)?(null!=r.popover&&(Ts("beforetoggle",t),Ts("toggle",t)),null!=r.onScroll&&Ts("scroll",t),null!=r.onScrollEnd&&Ts("scrollend",t),null!=r.onClick&&(t.onclick=Us),t=!0):t=!1,t||Fn(e)}function Hn(e){for(jm=e.return;jm;)switch(jm.tag){case 5:case 13:return void(Dm=!1);case 27:case 3:return void(Dm=!0);default:jm=jm.return}}function Wn(e){if(e!==jm)return!1;if(!Im)return Hn(e),Im=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||rc(e.type,e.memoizedProps)),t=!t),t&&Am){for(t=Am;t;){var r=Dn(e,0),a=wc(t);r.serverTail.push(a),t="Suspense"===a.type?xc(t):vc(t.nextSibling)}Fn(e)}if(Hn(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Am=xc(e)}else 27===n?(n=Am,cc(e.type)?(e=Jv,Jv=null,Am=e):Am=n):Am=jm?vc(e.stateNode.nextSibling):null;return!0}function Bn(){Am=jm=null,Lm=Im=!1}function Vn(){var e=$m;return null!==e&&(null===Sy?Sy=e:Sy.push.apply(Sy,e),$m=null),e}function qn(e){null===$m?$m=[e]:$m.push(e)}function Qn(){var e=Mm;if(null!==e){Mm=null;for(var t=gt(e);0<e.children.length;)e=e.children[0];$e(e.fiber,function(){console.error("A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\n%s%s","https://react.dev/link/hydration-mismatch",t)})}}function Kn(){Km=Qm=null,Ym=!1}function Yn(e,t,n){R(Bm,t._currentValue,e),t._currentValue=n,R(Vm,t._currentRenderer,e),void 0!==t._currentRenderer&&null!==t._currentRenderer&&t._currentRenderer!==qm&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=qm}function Gn(e,t){e._currentValue=Bm.current;var n=Vm.current;z(Vm,t),e._currentRenderer=n,z(Bm,t)}function Xn(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}e!==n&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Zn(e,t,n,r){var a=e.child;for(null!==a&&(a.return=e);null!==a;){var o=a.dependencies;if(null!==o){var i=a.child;o=o.firstContext;e:for(;null!==o;){var l=o;o=a;for(var s=0;s<t.length;s++)if(l.context===t[s]){o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),Xn(o.return,n,e),r||(i=null);break e}o=l.next}}else if(18===a.tag){if(null===(i=a.return))throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");i.lanes|=n,null!==(o=i.alternate)&&(o.lanes|=n),Xn(i,n,e),i=null}else i=a.child;if(null!==i)i.return=a;else for(i=a;null!==i;){if(i===e){i=null;break}if(null!==(a=i.sibling)){a.return=i.return,i=a;break}i=i.return}a=i}}function Jn(e,t,n,r){e=null;for(var a=t,o=!1;null!==a;){if(!o)if(524288&a.flags)o=!0;else if(262144&a.flags)break;if(10===a.tag){var i=a.alternate;if(null===i)throw Error("Should have a current fiber. This is a bug in React.");if(null!==(i=i.memoizedProps)){var l=a.type;Wp(a.pendingProps.value,i.value)||(null!==e?e.push(l):e=[l])}}else if(a===ld.current){if(null===(i=a.alternate))throw Error("Should have a current fiber. This is a bug in React.");i.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(null!==e?e.push(Sw):e=[Sw])}a=a.return}null!==e&&Zn(t,e,n,r),t.flags|=262144}function er(e){for(e=e.firstContext;null!==e;){if(!Wp(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function tr(e){Qm=e,Km=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function nr(e){return Ym&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),ar(Qm,e)}function rr(e,t){return null===Qm&&tr(e),ar(e,t)}function ar(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===Km){if(null===e)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Km=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Km=Km.next=t;return n}function or(){return{controller:new Gm,data:new Map,refCount:0}}function ir(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function lr(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),0===e.refCount&&Xm(Zm,function(){e.controller.abort()})}function sr(){var e=ah;return ah=0,e}function cr(e){var t=ah;return ah=e,t}function ur(e){var t=ah;return ah+=e,t}function dr(e){rh=eh(),0>e.actualStartTime&&(e.actualStartTime=rh)}function fr(e){if(0<=rh){var t=eh()-rh;e.actualDuration+=t,e.selfBaseDuration=t,rh=-1}}function pr(e){if(0<=rh){var t=eh()-rh;e.actualDuration+=t,rh=-1}}function mr(){if(0<=rh){var e=eh()-rh;rh=-1,ah+=e}}function hr(){rh=eh()}function gr(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function br(){if(0===--sh&&null!==lh){null!==uh&&(uh.status="fulfilled");var e=lh;lh=null,ch=0,uh=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function yr(){var e=fh.current;return null!==e?e:Xb.pooledCache}function vr(e,t){R(fh,null===t?fh.current:t.pool,e)}function wr(){var e=yr();return null===e?null:{parent:Jm._currentValue,pool:e}}function kr(e){return"fulfilled"===(e=e.status)||"rejected"===e}function xr(){}function Sr(e,t,n){null!==Zu.actQueue&&(Zu.didUsePromise=!0);var r=e.thenables;switch(void 0===(n=r[n])?r.push(t):n!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(xr,xr),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw Er(e=t.reason),e;default:if("string"==typeof t.status)t.then(xr,xr);else{if(null!==(e=Xb)&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw Er(e=t.reason),e}throw Nh=t,Ph=!0,Ch}}function Cr(){if(null===Nh)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Nh;return Nh=null,Ph=!1,e}function Er(e){if(e===Ch||e===Th)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Tr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _r(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Nr(e){return{lane:e,tag:Lh,payload:null,callback:null,next:null}}function Pr(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,Uh===r&&!Fh){var a=N(e);console.error("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.\n\nPlease update the following component: %s",a),Fh=!0}return(Gb&Ub)!==Fb?(null===(a=r.pending)?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=yn(e),bn(e,null,n),t):(mn(e,r,t,n),yn(e))}function zr(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,se(e,n)}}function Rr(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function jr(){if(Hh){if(null!==uh)throw uh}}function Ar(e,t,n,r){Hh=!1;var a=e.updateQueue;Oh=!1,Uh=a.shared;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,l=a.shared.pending;if(null!==l){a.shared.pending=null;var s=l,c=s.next;s.next=null,null===i?o=c:i.next=c,i=s;var u=e.alternate;null!==u&&((l=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s))}if(null!==o){var d=a.baseState;for(i=0,u=c=s=null,l=o;;){var f=-536870913&l.lane,p=f!==l.lane;if(p?(Jb&f)===f:(r&f)===f){0!==f&&f===ch&&(Hh=!0),null!==u&&(u=u.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{f=e;var m=l,h=t,g=n;switch(m.tag){case Mh:if("function"==typeof(m=m.payload)){Ym=!0;var b=m.call(g,d,h);if(f.mode&vm){B(!0);try{m.call(g,d,h)}finally{B(!1)}}Ym=!1,d=b;break e}d=m;break e;case Dh:f.flags=-65537&f.flags|128;case Lh:if("function"==typeof(b=m.payload)){if(Ym=!0,m=b.call(g,d,h),f.mode&vm){B(!0);try{b.call(g,d,h)}finally{B(!1)}}Ym=!1}else m=b;if(null==m)break e;d=ju({},d,m);break e;case $h:Oh=!0}}null!==(f=l.callback)&&(e.flags|=64,p&&(e.flags|=8192),null===(p=a.callbacks)?a.callbacks=[f]:p.push(f))}else p={lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=p,s=d):u=u.next=p,i|=f;if(null===(l=l.next)){if(null===(l=a.shared.pending))break;l=(p=l).next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}null===u&&(s=d),a.baseState=s,a.firstBaseUpdate=c,a.lastBaseUpdate=u,null===o&&(a.shared.lanes=0),by|=i,e.lanes=i,e.memoizedState=d}Uh=null}function Ir(e,t){if("function"!=typeof e)throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function Lr(e,t){var n=e.shared.hiddenCallbacks;if(null!==n)for(e.shared.hiddenCallbacks=null,e=0;e<n.length;e++)Ir(n[e],t)}function Mr(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Ir(n[e],t)}function $r(e,t){var n=hy;R(Bh,n,e),R(Wh,t,e),hy=n|t.baseLanes}function Dr(e){R(Bh,hy,e),R(Wh,Wh.current,e)}function Or(e){hy=Bh.current,z(Wh,e),z(Bh,e)}function Fr(){var e=lg;null===sg?sg=[e]:sg.push(e)}function Ur(){var e=lg;if(null!==sg&&(cg++,sg[cg]!==e)){var t=N(Gh);if(!Vh.has(t)&&(Vh.add(t),null!==sg)){for(var n="",r=0;r<=cg;r++){var a=sg[r],o=r===cg?e:a;for(a=r+1+". "+a;30>a.length;)a+=" ";n+=a+=o+"\n"}console.error("React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks\n\n Previous render Next render\n ------------------------------------------------------\n%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",t,n)}}}function Hr(e){null==e||Xu(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",lg,typeof e)}function Wr(){var e=N(Gh);Kh.has(e)||(Kh.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function Br(){throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.")}function Vr(e,t){if(ug)return!1;if(null===t)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",lg),!1;e.length!==t.length&&console.error("The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s",lg,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!Wp(e[n],t[n]))return!1;return!0}function qr(e,t,n,r,a,o){Yh=o,Gh=t,sg=null!==e?e._debugHookTypes:null,cg=-1,ug=null!==e&&e.type!==t.type,"[object AsyncFunction]"!==Object.prototype.toString.call(n)&&"[object AsyncGeneratorFunction]"!==Object.prototype.toString.call(n)||(o=N(Gh),Qh.has(o)||(Qh.add(o),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",null===o?"An unknown Component":"<"+o+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,Zu.H=null!==e&&null!==e.memoizedState?mg:null!==sg?pg:fg,tg=o=(t.mode&vm)!==gm;var i=kg(n,r,a);if(tg=!1,eg&&(i=Kr(t,n,r,a)),o){B(!0);try{i=Kr(t,n,r,a)}finally{B(!1)}}return Qr(e,t),i}function Qr(e,t){t._debugHookTypes=sg,null===t.dependencies?null!==ag&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:ag}):t.dependencies._debugThenableState=ag,Zu.H=dg;var n=null!==Xh&&null!==Xh.next;if(Yh=0,sg=lg=Zh=Xh=Gh=null,cg=-1,null!==e&&(65011712&e.flags)!=(65011712&t.flags)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Jh=!1,rg=0,ag=null,n)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");null===e||mb||null!==(e=e.dependencies)&&er(e)&&(mb=!0),Ph?(Ph=!1,e=!0):e=!1,e&&(t=N(t)||"Unknown",qh.has(t)||Qh.has(t)||(qh.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function Kr(e,t,n,r){Gh=e;var a=0;do{if(eg&&(ag=null),rg=0,eg=!1,a>=ig)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(a+=1,ug=!1,Zh=Xh=null,null!=e.updateQueue){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,null!=o.memoCache&&(o.memoCache.index=0)}cg=-1,Zu.H=hg,o=kg(t,n,r)}while(eg);return o}function Yr(){var e=Zu.H,t=e.useState()[0];return t="function"==typeof t.then?ta(t):t,e=e.useState()[0],(null!==Xh?Xh.memoizedState:null)!==e&&(Gh.flags|=1024),t}function Gr(){var e=0!==ng;return ng=0,e}function Xr(e,t,n){t.updateQueue=e.updateQueue,t.flags=(t.mode&wm)!==gm?-402655237&t.flags:-2053&t.flags,e.lanes&=~n}function Zr(e){if(Jh){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Jh=!1}Yh=0,sg=Zh=Xh=Gh=null,cg=-1,lg=null,eg=!1,rg=ng=0,ag=null}function Jr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Zh?Gh.memoizedState=Zh=e:Zh=Zh.next=e,Zh}function ea(){if(null===Xh){var e=Gh.alternate;e=null!==e?e.memoizedState:null}else e=Xh.next;var t=null===Zh?Gh.memoizedState:Zh.next;if(null!==t)Zh=t,Xh=e;else{if(null===e){if(null===Gh.alternate)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}e={memoizedState:(Xh=e).memoizedState,baseState:Xh.baseState,baseQueue:Xh.baseQueue,queue:Xh.queue,next:null},null===Zh?Gh.memoizedState=Zh=e:Zh=Zh.next=e}return Zh}function ta(e){var t=rg;return rg+=1,null===ag&&(ag={didWarnAboutUncachedPromise:!1,thenables:[]}),e=Sr(ag,e,t),t=Gh,null===(null===Zh?t.memoizedState:Zh.next)&&(t=t.alternate,Zu.H=null!==t&&null!==t.memoizedState?mg:fg),e}function na(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return ta(e);if(e.$$typeof===Uu)return nr(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function ra(e){var t=null,n=Gh.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Gh.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Gh.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index])||ug)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=Ku;else n.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",n.length,e);return t.index++,n}function aa(e,t){return"function"==typeof t?t(e):t}function oa(e,t,n){var r=Jr();if(void 0!==n){var a=n(t);if(tg){B(!0);try{n(t)}finally{B(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=co.bind(null,Gh,e),[r.memoizedState,e]}function ia(e){return la(ea(),Xh,e)}function la(e,t,n){var r=e.queue;if(null===r)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(null!==o){if(null!==a){var i=a.next;a.next=o.next,o.next=i}t.baseQueue!==a&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=a=o,r.pending=null}if(o=e.baseState,null===a)e.memoizedState=o;else{var l=i=null,s=null,c=t=a.next,u=!1;do{var d=-536870913&c.lane;if(d!==c.lane?(Jb&d)===d:(Yh&d)===d){var f=c.revertLane;if(0===f)null!==s&&(s=s.next={lane:0,revertLane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),d===ch&&(u=!0);else{if((Yh&f)===f){c=c.next,f===ch&&(u=!0);continue}d={lane:0,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===s?(l=s=d,i=o):s=s.next=d,Gh.lanes|=f,by|=f}d=c.action,tg&&n(o,d),o=c.hasEagerState?c.eagerState:n(o,d)}else f={lane:d,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===s?(l=s=f,i=o):s=s.next=f,Gh.lanes|=d,by|=d;c=c.next}while(null!==c&&c!==t);if(null===s?i=o:s.next=l,!Wp(o,e.memoizedState)&&(mb=!0,u&&null!==(n=uh)))throw n;e.memoizedState=o,e.baseState=i,e.baseQueue=s,r.lastRenderedState=o}return null===a&&(r.lanes=0),[e.memoizedState,r.dispatch]}function sa(e){var t=ea(),n=t.queue;if(null===n)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(null!==a){n.pending=null;var i=a=a.next;do{o=e(o,i.action),i=i.next}while(i!==a);Wp(o,t.memoizedState)||(mb=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ca(e,t,n){var r=Gh,a=Jr();if(Im){if(void 0===n)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var o=n();Sh||o===n()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Sh=!0)}else{if(o=t(),Sh||(n=t(),Wp(o,n)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Sh=!0)),null===Xb)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");124&Jb||da(r,t,o)}return a.memoizedState=o,n={value:o,getSnapshot:t},a.queue=n,Da(pa.bind(null,r,n,e),[e]),r.flags|=2048,Ia(Rh|Ih,{destroy:void 0,resource:void 0},fa.bind(null,r,n,o,t),null),o}function ua(e,t,n){var r=Gh,a=ea(),o=Im;if(o){if(void 0===n)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");n=n()}else if(n=t(),!Sh){var i=t();Wp(n,i)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Sh=!0)}(i=!Wp((Xh||a).memoizedState,n))&&(a.memoizedState=n,mb=!0),a=a.queue;var l=pa.bind(null,r,a,e);if($a(2048,Ih,l,[e]),a.getSnapshot!==t||i||null!==Zh&&Zh.memoizedState.tag&Rh){if(r.flags|=2048,Ia(Rh|Ih,{destroy:void 0,resource:void 0},fa.bind(null,r,a,n,t),null),null===Xb)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");o||124&Yh||da(r,t,n)}return n}function da(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Gh.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Gh.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function fa(e,t,n,r){t.value=n,t.getSnapshot=r,ma(t)&&ha(e)}function pa(e,t,n){return n(function(){ma(t)&&ha(e)})}function ma(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Wp(e,n)}catch(r){return!0}}function ha(e){var t=gn(e,2);null!==t&&El(t,e,2)}function ga(e){var t=Jr();if("function"==typeof e){var n=e;if(e=n(),tg){B(!0);try{n()}finally{B(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:e},t}function ba(e){var t=(e=ga(e)).queue,n=uo.bind(null,Gh,t);return t.dispatch=n,[e.memoizedState,n]}function ya(e){var t=Jr();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=po.bind(null,Gh,!0,n),n.dispatch=t,[e,t]}function va(e,t){return wa(ea(),Xh,e,t)}function wa(e,t,n,r){return e.baseState=n,la(e,Xh,"function"==typeof r?r:aa)}function ka(e,t){var n=ea();return null!==Xh?wa(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])}function xa(e,t,n,r,a){if(mo(e))throw Error("Cannot update form state while rendering.");if(null!==(e=t.action)){var o={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};null!==Zu.T?n(!0):o.isTransition=!1,r(o),null===(n=t.pending)?(o.next=t.pending=o,Sa(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Sa(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var o=Zu.T,i={};Zu.T=i,Zu.T._updatedFibers=new Set;try{var l=n(a,r),s=Zu.S;null!==s&&s(i,l),Ca(e,t,l)}catch(c){Ta(e,t,c)}finally{Zu.T=o,null===o&&i._updatedFibers&&(e=i._updatedFibers.size,i._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{Ca(e,t,i=n(a,r))}catch(u){Ta(e,t,u)}}function Ca(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?(n.then(function(n){Ea(e,t,n)},function(n){return Ta(e,t,n)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):Ea(e,t,n)}function Ea(e,t,n){t.status="fulfilled",t.value=n,_a(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Sa(e,n)))}function Ta(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,_a(t),t=t.next}while(t!==r)}e.action=null}function _a(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Na(e,t){return t}function Pa(e,t){if(Im){var n=Xb.formState;if(null!==n){e:{var r=Gh;if(Im){if(Am){t:{for(var a=Am,o=Dm;8!==a.nodeType;){if(!o){a=null;break t}if(null===(a=vc(a.nextSibling))){a=null;break t}}a=(o=a.data)===$v||o===Dv?a:null}if(a){Am=vc(a.nextSibling),r=a.data===$v;break e}}Fn(r)}r=!1}r&&(t=n[0])}}return(n=Jr()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Na,lastRenderedState:t},n.queue=r,n=uo.bind(null,Gh,r),r.dispatch=n,r=ga(!1),o=po.bind(null,Gh,!1,r.queue),a={state:t,dispatch:null,action:e,pending:null},(r=Jr()).queue=a,n=xa.bind(null,Gh,a,o,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function za(e){return Ra(ea(),Xh,e)}function Ra(e,t,n){if(t=la(e,t,Na)[0],e=ia(aa)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=ta(t)}catch(i){if(i===Ch)throw Th;throw i}else r=t;var a=(t=ea()).queue,o=a.dispatch;return n!==t.memoizedState&&(Gh.flags|=2048,Ia(Rh|Ih,{destroy:void 0,resource:void 0},ja.bind(null,a,n),null)),[r,o,e]}function ja(e,t){e.action=t}function Aa(e){var t=ea(),n=Xh;if(null!==n)return Ra(t,n,e);ea(),t=t.memoizedState;var r=(n=ea()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ia(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=Gh.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Gh.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function La(e){return e={current:e},Jr().memoizedState=e}function Ma(e,t,n,r){var a=Jr();r=void 0===r?null:r,Gh.flags|=e,a.memoizedState=Ia(Rh|t,{destroy:void 0,resource:void 0},n,r)}function $a(e,t,n,r){var a=ea();r=void 0===r?null:r;var o=a.memoizedState.inst;null!==Xh&&null!==r&&Vr(r,Xh.memoizedState.deps)?a.memoizedState=Ia(t,o,n,r):(Gh.flags|=e,a.memoizedState=Ia(Rh|t,o,n,r))}function Da(e,t){(Gh.mode&wm)!==gm&&(Gh.mode&km)===gm?Ma(276826112,Ih,e,t):Ma(8390656,Ih,e,t)}function Oa(e,t){var n=4194308;return(Gh.mode&wm)!==gm&&(n|=134217728),Ma(n,Ah,e,t)}function Fa(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function Ua(e,t,n){"function"!=typeof t&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null"),n=null!=n?n.concat([e]):null;var r=4194308;(Gh.mode&wm)!==gm&&(r|=134217728),Ma(r,Ah,Fa.bind(null,t,e),n)}function Ha(e,t,n){"function"!=typeof t&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null"),n=null!=n?n.concat([e]):null,$a(4,Ah,Fa.bind(null,t,e),n)}function Wa(e,t){return Jr().memoizedState=[e,void 0===t?null:t],e}function Ba(e,t){var n=ea();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&Vr(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Va(e,t){var n=Jr();t=void 0===t?null:t;var r=e();if(tg){B(!0);try{e()}finally{B(!1)}}return n.memoizedState=[r,t],r}function qa(e,t){var n=ea();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&Vr(t,r[1]))return r[0];if(r=e(),tg){B(!0);try{e()}finally{B(!1)}}return n.memoizedState=[r,t],r}function Qa(e,t){return Ga(Jr(),e,t)}function Ka(e,t){return Xa(ea(),Xh.memoizedState,e,t)}function Ya(e,t){var n=ea();return null===Xh?Ga(n,e,t):Xa(n,Xh.memoizedState,e,t)}function Ga(e,t,n){return void 0===n||1073741824&Yh?e.memoizedState=t:(e.memoizedState=n,e=Cl(),Gh.lanes|=e,by|=e,n)}function Xa(e,t,n,r){return Wp(n,t)?n:null!==Wh.current?(e=Ga(e,n,r),Wp(e,t)||(mb=!0),e):42&Yh?(e=Cl(),Gh.lanes|=e,by|=e,t):(mb=!0,e.memoizedState=n)}function Za(e,t,n,r,a){var o=Ju.p;Ju.p=0!==o&&o<Ad?o:Ad;var i,l,s,c=Zu.T,u={};Zu.T=u,po(e,!1,t,n),u._updatedFibers=new Set;try{var d=a(),f=Zu.S;if(null!==f&&f(u,d),null!==d&&"object"==typeof d&&"function"==typeof d.then)fo(e,t,(i=r,l=[],s={status:"pending",value:null,reason:null,then:function(e){l.push(e)}},d.then(function(){s.status="fulfilled",s.value=i;for(var e=0;e<l.length;e++)(0,l[e])(i)},function(e){for(s.status="rejected",s.reason=e,e=0;e<l.length;e++)(0,l[e])(void 0)}),s),Sl(e));else fo(e,t,r,Sl(e))}catch(p){fo(e,t,{then:function(){},status:"rejected",reason:p},Sl(e))}finally{Ju.p=o,Zu.T=c,null===c&&u._updatedFibers&&(e=u._updatedFibers.size,u._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function Ja(e,t,n,r){if(5!==e.tag)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var a=eo(e).queue;Za(e,a,t,xw,null===n?f:function(){return to(e),n(r)})}function eo(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:xw,baseState:xw,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:xw},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function to(e){null===Zu.T&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition."),fo(e,eo(e).next.queue,{},Sl(e))}function no(){var e=ga(!1);return e=Za.bind(null,Gh,e.queue,!0,!1),Jr().memoizedState=e,[!1,e]}function ro(){var e=ia(aa)[0],t=ea().memoizedState;return["boolean"==typeof e?e:ta(e),t]}function ao(){var e=sa(aa)[0],t=ea().memoizedState;return["boolean"==typeof e?e:ta(e),t]}function oo(){return nr(Sw)}function io(){var e=Jr(),t=Xb.identifierPrefix;if(Im){var n=Rm;t="«"+t+"R"+(n=(zm&~(1<<32-_d(zm)-1)).toString(32)+n),0<(n=ng++)&&(t+="H"+n.toString(32)),t+="»"}else t="«"+t+"r"+(n=og++).toString(32)+"»";return e.memoizedState=t}function lo(){return Jr().memoizedState=so.bind(null,Gh)}function so(e,t){for(var n=e.return;null!==n;){switch(n.tag){case 24:case 3:var r=Sl(n),a=Pr(n,e=Nr(r),r);return null!==a&&(El(a,n,r),zr(a,n,r)),n=or(),null!=t&&null!==a&&console.error("The seed argument is not enabled outside experimental channels."),void(e.payload={cache:n})}n=n.return}}function co(e,t,n){var r=arguments;"function"==typeof r[3]&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var a={lane:r=Sl(e),revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};mo(e)?ho(t,a):null!==(a=hn(e,t,a,r))&&(El(a,e,r),go(a,t,r)),X(e,r)}function uo(e,t,n){var r=arguments;"function"==typeof r[3]&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),fo(e,t,n,r=Sl(e)),X(e,r)}function fo(e,t,n,r){var a={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(mo(e))ho(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer)){var i=Zu.H;Zu.H=bg;try{var l=t.lastRenderedState,s=o(l,n);if(a.hasEagerState=!0,a.eagerState=s,Wp(s,l))return mn(e,t,a,0),null===Xb&&pn(),!1}catch(c){}finally{Zu.H=i}}if(null!==(n=hn(e,t,a,r)))return El(n,e,r),go(n,t,r),!0}return!1}function po(e,t,n,r){if(null===Zu.T&&0===ch&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),r={lane:2,revertLane:ks(),action:r,hasEagerState:!1,eagerState:null,next:null},mo(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else null!==(t=hn(e,n,r,2))&&El(t,e,2);X(e,2)}function mo(e){var t=e.alternate;return e===Gh||null!==t&&t===Gh}function ho(e,t){eg=Jh=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function go(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,se(e,n)}}function bo(e){var t=Fg;return null!=e&&(Fg=null===t?e:t.concat(e)),t}function yo(e,t,n){for(var r=Object.keys(e.props),a=0;a<r.length;a++){var o=r[a];if("children"!==o&&"key"!==o){null===t&&((t=Pn(e,n.mode,0))._debugInfo=Fg,t.return=n),$e(t,function(e){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",e)},o);break}}}function vo(e){var t=Og;return Og+=1,null===Dg&&(Dg={didWarnAboutUncachedPromise:!1,thenables:[]}),Sr(Dg,e,t)}function wo(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function ko(e,t){if(t.$$typeof===Au)throw Error('A React Element from an older version of React was rendered. This is not supported. It can happen if:\n- Multiple copies of the "react" package is used.\n- A library pre-bundled an old copy of "react" or "react/jsx-runtime".\n- A compiler tries to "inline" JSX instead of using the runtime.');throw e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+("[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}function xo(e,t){var n=N(e)||"Component";Wg[n]||(Wg[n]=!0,t=t.displayName||t.name||"Component",3===e.tag?console.error("Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\n root.render(%s)",t,t,t):console.error("Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\n <%s>{%s}</%s>",t,t,n,t,n))}function So(e,t){var n=N(e)||"Component";Bg[n]||(Bg[n]=!0,t=String(t),3===e.tag?console.error("Symbols are not valid as a React child.\n root.render(%s)",t):console.error("Symbols are not valid as a React child.\n <%s>%s</%s>",n,t,n))}function Co(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function a(e,t){return(e=Tn(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function i(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Rn(n,e.mode,r)).return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Fg,t):((t=a(t,n)).return=e,t._debugInfo=Fg,t)}function s(e,t,n,r){var o=n.type;return o===Mu?(yo(n,t=d(e,t,n.props.children,r,n.key),e),t):null!==t&&(t.elementType===o||kn(t,n)||"object"==typeof o&&null!==o&&o.$$typeof===qu&&$g(o)===t.type)?(wo(t=a(t,n.props),n),t.return=e,t._debugOwner=n._owner,t._debugInfo=Fg,t):(wo(t=Pn(n,e.mode,r),n),t.return=e,t._debugInfo=Fg,t)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=jn(n,e.mode,r)).return=e,t._debugInfo=Fg,t):((t=a(t,n.children||[])).return=e,t._debugInfo=Fg,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=zn(n,e.mode,r,o)).return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Fg,t):((t=a(t,n)).return=e,t._debugInfo=Fg,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Rn(""+t,e.mode,n)).return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Fg,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Iu:return wo(n=Pn(t,e.mode,n),t),n.return=e,e=bo(t._debugInfo),n._debugInfo=Fg,Fg=e,n;case Lu:return(t=jn(t,e.mode,n)).return=e,t._debugInfo=Fg,t;case qu:var r=bo(t._debugInfo);return e=f(e,t=$g(t),n),Fg=r,e}if(Xu(t)||E(t))return(n=zn(t,e.mode,n,null)).return=e,n._debugOwner=e,n._debugTask=e._debugTask,e=bo(t._debugInfo),n._debugInfo=Fg,Fg=e,n;if("function"==typeof t.then)return r=bo(t._debugInfo),e=f(e,vo(t),n),Fg=r,e;if(t.$$typeof===Uu)return f(e,rr(e,t),n);ko(e,t)}return"function"==typeof t&&xo(e,t),"symbol"==typeof t&&So(e,t),null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==a?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Iu:return n.key===a?(a=bo(n._debugInfo),e=s(e,t,n,r),Fg=a,e):null;case Lu:return n.key===a?u(e,t,n,r):null;case qu:return a=bo(n._debugInfo),e=p(e,t,n=$g(n),r),Fg=a,e}if(Xu(n)||E(n))return null!==a?null:(a=bo(n._debugInfo),e=d(e,t,n,r,null),Fg=a,e);if("function"==typeof n.then)return a=bo(n._debugInfo),e=p(e,t,vo(n),r),Fg=a,e;if(n.$$typeof===Uu)return p(e,t,rr(e,n),r);ko(e,n)}return"function"==typeof n&&xo(e,n),"symbol"==typeof n&&So(e,n),null}function h(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return l(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Iu:return n=e.get(null===r.key?n:r.key)||null,e=bo(r._debugInfo),t=s(t,n,r,a),Fg=e,t;case Lu:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case qu:var o=bo(r._debugInfo);return t=h(e,t,n,r=$g(r),a),Fg=o,t}if(Xu(r)||E(r))return n=e.get(n)||null,e=bo(r._debugInfo),t=d(t,n,r,a,null),Fg=e,t;if("function"==typeof r.then)return o=bo(r._debugInfo),t=h(e,t,n,vo(r),a),Fg=o,t;if(r.$$typeof===Uu)return h(e,t,n,rr(t,r),a);ko(t,r)}return"function"==typeof r&&xo(t,r),"symbol"==typeof r&&So(t,r),null}function g(e,t,n,r){if("object"!=typeof n||null===n)return r;switch(n.$$typeof){case Iu:case Lu:c(e,t,n);var a=n.key;if("string"!=typeof a)break;if(null===r){(r=new Set).add(a);break}if(!r.has(a)){r.add(a);break}$e(t,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",a)});break;case qu:g(e,t,n=$g(n),r)}return r}function b(l,s,c,u){if("object"==typeof c&&null!==c&&c.type===Mu&&null===c.key&&(yo(c,null,l),c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case Iu:var d=bo(c._debugInfo);e:{for(var m=c.key;null!==s;){if(s.key===m){if((m=c.type)===Mu){if(7===s.tag){n(l,s.sibling),(u=a(s,c.props.children)).return=l,u._debugOwner=c._owner,u._debugInfo=Fg,yo(c,u,l),l=u;break e}}else if(s.elementType===m||kn(s,c)||"object"==typeof m&&null!==m&&m.$$typeof===qu&&$g(m)===s.type){n(l,s.sibling),wo(u=a(s,c.props),c),u.return=l,u._debugOwner=c._owner,u._debugInfo=Fg,l=u;break e}n(l,s);break}t(l,s),s=s.sibling}c.type===Mu?((u=zn(c.props.children,l.mode,u,c.key)).return=l,u._debugOwner=l,u._debugTask=l._debugTask,u._debugInfo=Fg,yo(c,u,l),l=u):(wo(u=Pn(c,l.mode,u),c),u.return=l,u._debugInfo=Fg,l=u)}return l=i(l),Fg=d,l;case Lu:e:{for(c=(d=c).key;null!==s;){if(s.key===c){if(4===s.tag&&s.stateNode.containerInfo===d.containerInfo&&s.stateNode.implementation===d.implementation){n(l,s.sibling),(u=a(s,d.children||[])).return=l,l=u;break e}n(l,s);break}t(l,s),s=s.sibling}(u=jn(d,l.mode,u)).return=l,l=u}return i(l);case qu:return d=bo(c._debugInfo),l=b(l,s,c=$g(c),u),Fg=d,l}if(Xu(c))return d=bo(c._debugInfo),l=function(a,i,l,s){for(var c=null,u=null,d=null,m=i,b=i=0,y=null;null!==m&&b<l.length;b++){m.index>b?(y=m,m=null):y=m.sibling;var v=p(a,m,l[b],s);if(null===v){null===m&&(m=y);break}c=g(a,v,l[b],c),e&&m&&null===v.alternate&&t(a,m),i=o(v,i,b),null===d?u=v:d.sibling=v,d=v,m=y}if(b===l.length)return n(a,m),Im&&An(a,b),u;if(null===m){for(;b<l.length;b++)null!==(m=f(a,l[b],s))&&(c=g(a,m,l[b],c),i=o(m,i,b),null===d?u=m:d.sibling=m,d=m);return Im&&An(a,b),u}for(m=r(m);b<l.length;b++)null!==(y=h(m,a,b,l[b],s))&&(c=g(a,y,l[b],c),e&&null!==y.alternate&&m.delete(null===y.key?b:y.key),i=o(y,i,b),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach(function(e){return t(a,e)}),Im&&An(a,b),u}(l,s,c,u),Fg=d,l;if(E(c)){if(d=bo(c._debugInfo),"function"!=typeof(m=E(c)))throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var y=m.call(c);return y===c?0===l.tag&&"[object GeneratorFunction]"===Object.prototype.toString.call(l.type)&&"[object Generator]"===Object.prototype.toString.call(y)||(Ug||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),Ug=!0):c.entries!==m||vg||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),vg=!0),l=function(a,i,l,s){if(null==l)throw Error("An iterable object provided no iterator.");for(var c=null,u=null,d=i,m=i=0,b=null,y=null,v=l.next();null!==d&&!v.done;m++,v=l.next()){d.index>m?(b=d,d=null):b=d.sibling;var w=p(a,d,v.value,s);if(null===w){null===d&&(d=b);break}y=g(a,w,v.value,y),e&&d&&null===w.alternate&&t(a,d),i=o(w,i,m),null===u?c=w:u.sibling=w,u=w,d=b}if(v.done)return n(a,d),Im&&An(a,m),c;if(null===d){for(;!v.done;m++,v=l.next())null!==(d=f(a,v.value,s))&&(y=g(a,d,v.value,y),i=o(d,i,m),null===u?c=d:u.sibling=d,u=d);return Im&&An(a,m),c}for(d=r(d);!v.done;m++,v=l.next())null!==(b=h(d,a,m,v.value,s))&&(y=g(a,b,v.value,y),e&&null!==b.alternate&&d.delete(null===b.key?m:b.key),i=o(b,i,m),null===u?c=b:u.sibling=b,u=b);return e&&d.forEach(function(e){return t(a,e)}),Im&&An(a,m),c}(l,s,y,u),Fg=d,l}if("function"==typeof c.then)return d=bo(c._debugInfo),l=b(l,s,vo(c),u),Fg=d,l;if(c.$$typeof===Uu)return b(l,s,rr(l,c),u);ko(l,c)}return"string"==typeof c&&""!==c||"number"==typeof c||"bigint"==typeof c?(d=""+c,null!==s&&6===s.tag?(n(l,s.sibling),(u=a(s,d)).return=l,l=u):(n(l,s),(u=Rn(d,l.mode,u)).return=l,u._debugOwner=l,u._debugTask=l._debugTask,u._debugInfo=Fg,l=u),i(l)):("function"==typeof c&&xo(l,c),"symbol"==typeof c&&So(l,c),n(l,s))}return function(e,t,n,r){var a=Fg;Fg=null;try{Og=0;var o=b(e,t,n,r);return Dg=null,o}catch(c){if(c===Ch||c===Th)throw c;var i=m(29,c,null,e.mode);i.lanes=r,i.return=e;var l=i._debugInfo=Fg;if(i._debugOwner=e._debugOwner,i._debugTask=e._debugTask,null!=l)for(var s=l.length-1;0<=s;s--)if("string"==typeof l[s].stack){i._debugOwner=l[s],i._debugTask=l[s].debugTask;break}return i}finally{Fg=a}}}function Eo(e){var t=e.alternate;R(Xg,Xg.current&Yg,e),R(Qg,e,e),null===Kg&&(null===t||null!==Wh.current||null!==t.memoizedState)&&(Kg=e)}function To(e){if(22===e.tag){if(R(Xg,Xg.current,e),R(Qg,e,e),null===Kg){var t=e.alternate;null!==t&&null!==t.memoizedState&&(Kg=e)}}else _o(e)}function _o(e){R(Xg,Xg.current,e),R(Qg,Qg.current,e)}function No(e){z(Qg,e),Kg===e&&(Kg=null),z(Xg,e)}function Po(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===jv||yc(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function zo(e){if(null!==e&&"function"!=typeof e){var t=String(e);sb.has(t)||(sb.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Ro(e,t,n,r){var a=e.memoizedState,o=n(r,a);if(e.mode&vm){B(!0);try{o=n(r,a)}finally{B(!1)}}void 0===o&&(t=T(t)||"Component",ab.has(t)||(ab.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),a=null==o?a:ju({},a,o),e.memoizedState=a,0===e.lanes&&(e.updateQueue.baseState=a)}function jo(e,t,n,r,a,o,i){var l=e.stateNode;if("function"==typeof l.shouldComponentUpdate){if(n=l.shouldComponentUpdate(r,o,i),e.mode&vm){B(!0);try{n=l.shouldComponentUpdate(r,o,i)}finally{B(!1)}}return void 0===n&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",T(t)||"Component"),n}return!t.prototype||!t.prototype.isPureReactComponent||(!tn(n,r)||!tn(a,o))}function Ao(e,t,n,r){var a=t.state;"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==a&&(e=N(e)||"Component",Jg.has(e)||(Jg.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),cb.enqueueReplaceState(t,t.state,null))}function Io(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var a in n===t&&(n=ju({},n)),e)void 0===n[a]&&(n[a]=e[a]);return n}function Lo(e){ub(e),console.warn("%s\n\n%s\n",db?"An error occurred in the <"+db+"> component.":"An error occurred in one of your React components.","Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries.")}function Mo(e){var t=db?"The above error occurred in the <"+db+"> component.":"The above error occurred in one of your React components.",n="React will try to recreate this component tree from scratch using the error boundary you provided, "+(fb||"Anonymous")+".";if("object"==typeof e&&null!==e&&"string"==typeof e.environmentName){var r=e.environmentName;"string"==typeof(e=["%o\n\n%s\n\n%s\n",e,t,n].slice(0))[0]?e.splice(0,1,Cw+e[0],Ew,_w+r+_w,Tw):e.splice(0,0,Cw,Ew,_w+r+_w,Tw),e.unshift(console),(r=Nw.apply(console.error,e))()}else console.error("%o\n\n%s\n\n%s\n",e,t,n)}function $o(e){ub(e)}function Do(e,t){try{db=t.source?N(t.source):null,fb=null;var n=t.value;if(null!==Zu.actQueue)Zu.thrownErrors.push(n);else(0,e.onUncaughtError)(n,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Oo(e,t,n){try{db=n.source?N(n.source):null,fb=N(t),(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Fo(e,t,n){return(n=Nr(n)).tag=Dh,n.payload={element:null},n.callback=function(){$e(t.source,Do,e,t)},n}function Uo(e){return(e=Nr(e)).tag=Dh,e}function Ho(e,t,n,r){var a=n.type.getDerivedStateFromError;if("function"==typeof a){var o=r.value;e.payload=function(){return a(o)},e.callback=function(){xn(n),$e(r.source,Oo,t,n,r)}}var i=n.stateNode;null!==i&&"function"==typeof i.componentDidCatch&&(e.callback=function(){xn(n),$e(r.source,Oo,t,n,r),"function"!=typeof a&&(null===zy?zy=new Set([this]):zy.add(this)),Pg(this,r),"function"==typeof a||!(2&n.lanes)&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",N(n)||"Unknown")})}function Wo(e,t,n,r){t.child=null===e?qg(t,null,n,r):Vg(t,e.child,n,r)}function Bo(e,t,n,r,a){n=n.render;var o=t.ref;if("ref"in r){var i={};for(var l in r)"ref"!==l&&(i[l]=r[l])}else i=r;return tr(t),Q(t),r=qr(e,t,n,i,o,a),l=Gr(),K(),null===e||mb?(Im&&l&&Ln(t),t.flags|=1,Wo(e,t,r,a),t.child):(Xr(e,t,a),di(e,t,a))}function Vo(e,t,n,r,a){if(null===e){var o=n.type;return"function"!=typeof o||En(o)||void 0!==o.defaultProps||null!==n.compare?((e=Nn(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(n=vn(o),t.tag=15,t.type=n,ei(t,o),qo(e,t,n,r,a))}if(o=e.child,!fi(e,a)){var i=o.memoizedProps;if((n=null!==(n=n.compare)?n:tn)(i,r)&&e.ref===t.ref)return di(e,t,a)}return t.flags|=1,(e=Tn(o,r)).ref=t.ref,e.return=t,t.child=e}function qo(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(tn(o,r)&&e.ref===t.ref&&t.type===e.type){if(mb=!1,t.pendingProps=r=o,!fi(e,a))return t.lanes=e.lanes,di(e,t,a);131072&e.flags&&(mb=!0)}}return Go(e,t,n,r,a)}function Qo(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(128&t.flags){if(r=null!==o?o.baseLanes|n:n,null!==e){for(a=t.child=e.child,o=0;null!==a;)o=o|a.lanes|a.childLanes,a=a.sibling;t.childLanes=o&~r}else t.childLanes=0,t.child=null;return Ko(e,t,r,n)}if(!(536870912&n))return t.lanes=t.childLanes=536870912,Ko(e,t,null!==o?o.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&vr(t,null!==o?o.cachePool:null),null!==o?$r(t,o):Dr(t),To(t)}else null!==o?(vr(t,o.cachePool),$r(t,o),_o(t),t.memoizedState=null):(null!==e&&vr(t,null),Dr(t),_o(t));return Wo(e,t,a,n),t.child}function Ko(e,t,n,r){var a=yr();return a=null===a?null:{parent:Jm._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},null!==e&&vr(t,null),Dr(t),To(t),null!==e&&Jn(e,t,r,!0),null}function Yo(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");null!==e&&e.ref===n||(t.flags|=4194816)}}function Go(e,t,n,r,a){if(n.prototype&&"function"==typeof n.prototype.render){var o=T(n)||"Unknown";hb[o]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",o,o),hb[o]=!0)}return t.mode&vm&&ph.recordLegacyContextWarning(t,null),null===e&&(ei(t,t.type),n.contextTypes&&(o=T(n)||"Unknown",bb[o]||(bb[o]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",o)))),tr(t),Q(t),n=qr(e,t,n,r,void 0,a),r=Gr(),K(),null===e||mb?(Im&&r&&Ln(t),t.flags|=1,Wo(e,t,n,a),t.child):(Xr(e,t,a),di(e,t,a))}function Xo(e,t,n,r,a,o){return tr(t),Q(t),cg=-1,ug=null!==e&&e.type!==t.type,t.updateQueue=null,n=Kr(t,r,n,a),Qr(e,t),r=Gr(),K(),null===e||mb?(Im&&r&&Ln(t),t.flags|=1,Wo(e,t,n,o),t.child):(Xr(e,t,o),di(e,t,o))}function Zo(e,t,n,r,a){switch(s(t)){case!1:var o=t.stateNode,i=new t.type(t.memoizedProps,o.context).state;o.updater.enqueueSetState(o,i,null);break;case!0:t.flags|=128,t.flags|=65536,o=Error("Simulated error coming from DevTools");var l=a&-a;if(t.lanes|=l,null===(i=Xb))throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Ho(l=Uo(l),i,t,fn(o,t)),Rr(t,l)}if(tr(t),null===t.stateNode){if(i=pm,o=n.contextType,"contextType"in n&&null!==o&&(void 0===o||o.$$typeof!==Uu)&&!lb.has(n)&&(lb.add(n),l=void 0===o?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":"object"!=typeof o?" However, it is set to a "+typeof o+".":o.$$typeof===Fu?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(o).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",T(n)||"Component",l)),"object"==typeof o&&null!==o&&(i=nr(o)),o=new n(r,i),t.mode&vm){B(!0);try{o=new n(r,i)}finally{B(!1)}}if(i=t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,o.updater=cb,t.stateNode=o,o._reactInternals=t,o._reactInternalInstance=Zg,"function"==typeof n.getDerivedStateFromProps&&null===i&&(i=T(n)||"Component",eb.has(i)||(eb.add(i),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",i,null===o.state?"null":"undefined",i))),"function"==typeof n.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate){var c=l=i=null;if("function"==typeof o.componentWillMount&&!0!==o.componentWillMount.__suppressDeprecationWarning?i="componentWillMount":"function"==typeof o.UNSAFE_componentWillMount&&(i="UNSAFE_componentWillMount"),"function"==typeof o.componentWillReceiveProps&&!0!==o.componentWillReceiveProps.__suppressDeprecationWarning?l="componentWillReceiveProps":"function"==typeof o.UNSAFE_componentWillReceiveProps&&(l="UNSAFE_componentWillReceiveProps"),"function"==typeof o.componentWillUpdate&&!0!==o.componentWillUpdate.__suppressDeprecationWarning?c="componentWillUpdate":"function"==typeof o.UNSAFE_componentWillUpdate&&(c="UNSAFE_componentWillUpdate"),null!==i||null!==l||null!==c){o=T(n)||"Component";var u="function"==typeof n.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";nb.has(o)||(nb.add(o),console.error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://react.dev/link/unsafe-component-lifecycles",o,u,null!==i?"\n "+i:"",null!==l?"\n "+l:"",null!==c?"\n "+c:""))}}o=t.stateNode,i=T(n)||"Component",o.render||(n.prototype&&"function"==typeof n.prototype.render?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",i):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",i)),!o.getInitialState||o.getInitialState.isReactClassApproved||o.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",i),o.getDefaultProps&&!o.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",i),o.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",i),n.childContextTypes&&!ib.has(n)&&(ib.add(n),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",i)),n.contextTypes&&!ob.has(n)&&(ob.add(n),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",i)),"function"==typeof o.componentShouldUpdate&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",i),n.prototype&&n.prototype.isPureReactComponent&&void 0!==o.shouldComponentUpdate&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",T(n)||"A pure component"),"function"==typeof o.componentDidUnmount&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",i),"function"==typeof o.componentDidReceiveProps&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",i),"function"==typeof o.componentWillRecieveProps&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",i),"function"==typeof o.UNSAFE_componentWillRecieveProps&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",i),l=o.props!==r,void 0!==o.props&&l&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",i),o.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",i,i),"function"!=typeof o.getSnapshotBeforeUpdate||"function"==typeof o.componentDidUpdate||tb.has(n)||(tb.add(n),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",T(n))),"function"==typeof o.getDerivedStateFromProps&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",i),"function"==typeof o.getDerivedStateFromError&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",i),"function"==typeof n.getSnapshotBeforeUpdate&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",i),(l=o.state)&&("object"!=typeof l||Xu(l))&&console.error("%s.state: must be set to an object or null",i),"function"==typeof o.getChildContext&&"object"!=typeof n.childContextTypes&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",i),(o=t.stateNode).props=r,o.state=t.memoizedState,o.refs={},Tr(t),i=n.contextType,o.context="object"==typeof i&&null!==i?nr(i):pm,o.state===r&&(i=T(n)||"Component",rb.has(i)||(rb.add(i),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",i))),t.mode&vm&&ph.recordLegacyContextWarning(t,o),ph.recordUnsafeLifecycleWarnings(t,o),o.state=t.memoizedState,"function"==typeof(i=n.getDerivedStateFromProps)&&(Ro(t,n,i,r),o.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(i=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),i!==o.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",N(t)||"Component"),cb.enqueueReplaceState(o,o.state,null)),Ar(t,r,o,a),jr(),o.state=t.memoizedState),"function"==typeof o.componentDidMount&&(t.flags|=4194308),(t.mode&wm)!==gm&&(t.flags|=134217728),o=!0}else if(null===e){o=t.stateNode;var d=t.memoizedProps;l=Io(n,d),o.props=l;var f=o.context;c=n.contextType,i=pm,"object"==typeof c&&null!==c&&(i=nr(c)),c="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate,d=t.pendingProps!==d,c||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(d||f!==i)&&Ao(t,o,r,i),Oh=!1;var p=t.memoizedState;o.state=p,Ar(t,r,o,a),jr(),f=t.memoizedState,d||p!==f||Oh?("function"==typeof u&&(Ro(t,n,u,r),f=t.memoizedState),(l=Oh||jo(t,n,l,r,p,f,i))?(c||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308),(t.mode&wm)!==gm&&(t.flags|=134217728)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),(t.mode&wm)!==gm&&(t.flags|=134217728),t.memoizedProps=r,t.memoizedState=f),o.props=r,o.state=f,o.context=i,o=l):("function"==typeof o.componentDidMount&&(t.flags|=4194308),(t.mode&wm)!==gm&&(t.flags|=134217728),o=!1)}else{o=t.stateNode,_r(e,t),c=Io(n,i=t.memoizedProps),o.props=c,u=t.pendingProps,p=o.context,f=n.contextType,l=pm,"object"==typeof f&&null!==f&&(l=nr(f)),(f="function"==typeof(d=n.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i!==u||p!==l)&&Ao(t,o,r,l),Oh=!1,p=t.memoizedState,o.state=p,Ar(t,r,o,a),jr();var m=t.memoizedState;i!==u||p!==m||Oh||null!==e&&null!==e.dependencies&&er(e.dependencies)?("function"==typeof d&&(Ro(t,n,d,r),m=t.memoizedState),(c=Oh||jo(t,n,c,r,p,m,l)||null!==e&&null!==e.dependencies&&er(e.dependencies))?(f||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,m,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,m,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=l,o=c):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),o=!1)}if(l=o,Yo(e,t),i=!!(128&t.flags),l||i){if(l=t.stateNode,De(t),i&&"function"!=typeof n.getDerivedStateFromError)n=null,rh=-1;else{if(Q(t),n=Sg(l),t.mode&vm){B(!0);try{Sg(l)}finally{B(!1)}}K()}t.flags|=1,null!==e&&i?(t.child=Vg(t,e.child,null,a),t.child=Vg(t,null,n,a)):Wo(e,t,n,a),t.memoizedState=l.state,e=t.child}else e=di(e,t,a);return a=t.stateNode,o&&a.props!==r&&(vb||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",N(t)||"a component"),vb=!0),e}function Jo(e,t,n,r){return Bn(),t.flags|=256,Wo(e,t,n,r),t.child}function ei(e,t){t&&t.childContextTypes&&console.error("childContextTypes cannot be defined on a function component.\n %s.childContextTypes = ...",t.displayName||t.name||"Component"),"function"==typeof t.getDerivedStateFromProps&&(e=T(t)||"Unknown",yb[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),yb[e]=!0)),"object"==typeof t.contextType&&null!==t.contextType&&(t=T(t)||"Unknown",gb[t]||(console.error("%s: Function components do not support contextType.",t),gb[t]=!0))}function ti(e){return{baseLanes:e,cachePool:wr()}}function ni(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=wy),e}function ri(e,t,n){var r,a=t.pendingProps;l(t)&&(t.flags|=128);var o=!1,i=!!(128&t.flags);if((r=i)||(r=(null===e||null!==e.memoizedState)&&0!==(Xg.current&Gg)),r&&(o=!0,t.flags&=-129),r=!!(32&t.flags),t.flags&=-33,null===e){if(Im){if(o?Eo(t):_o(t),Im){var s,c=Am;if(!(s=!c)){e:{var u=c;for(s=Dm;8!==u.nodeType;){if(!s){s=null;break e}if(null===(u=vc(u.nextSibling))){s=null;break e}}s=u}null!==s?($n(),t.memoizedState={dehydrated:s,treeContext:null!==Pm?{id:zm,overflow:Rm}:null,retryLane:536870912,hydrationErrors:null},(u=m(18,null,null,gm)).stateNode=s,u.return=t,t.child=u,jm=t,Am=null,s=!0):s=!1,s=!s}s&&(On(t,c),Fn(t))}if(null!==(c=t.memoizedState)&&null!==(c=c.dehydrated))return yc(c)?t.lanes=32:t.lanes=536870912,null;No(t)}return c=a.children,a=a.fallback,o?(_o(t),c=oi({mode:"hidden",children:c},o=t.mode),a=zn(a,o,n,null),c.return=t,a.return=t,c.sibling=a,t.child=c,(o=t.child).memoizedState=ti(n),o.childLanes=ni(e,r,n),t.memoizedState=xb,a):(Eo(t),ai(t,c))}var d=e.memoizedState;if(null!==d&&null!==(c=d.dehydrated)){if(i)256&t.flags?(Eo(t),t.flags&=-257,t=ii(e,t,n)):null!==t.memoizedState?(_o(t),t.child=e.child,t.flags|=128,t=null):(_o(t),o=a.fallback,c=t.mode,a=oi({mode:"visible",children:a.children},c),(o=zn(o,c,n,null)).flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,Vg(t,e.child,null,n),(a=t.child).memoizedState=ti(n),a.childLanes=ni(e,r,n),t.memoizedState=xb,t=o);else if(Eo(t),Im&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug."),yc(c)){if(r=c.nextSibling&&c.nextSibling.dataset){s=r.dgst;var f=r.msg;u=r.stck;var p=r.cstck}r=s,a=u,s=o=p,(o=(c=f)?Error(c):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.")).stack=a||"",o.digest=r,a={value:o,source:null,stack:r=void 0===s?null:s},"string"==typeof r&&lm.set(o,a),qn(a),t=ii(e,t,n)}else if(mb||Jn(e,t,n,!1),r=0!==(n&e.childLanes),mb||r){if(null!==(r=Xb)&&(0!==(a=0!==((a=42&(a=n&-n)?1:ce(a))&(r.suspendedLanes|n))?0:a)&&a!==d.retryLane))throw d.retryLane=a,gn(e,a),El(r,e,a),pb;c.data===jv||Ml(),t=ii(e,t,n)}else c.data===jv?(t.flags|=192,t.child=e.child,t=null):(e=d.treeContext,Am=vc(c.nextSibling),jm=t,Im=!0,$m=null,Lm=!1,Mm=null,Dm=!1,null!==e&&($n(),_m[Nm++]=zm,_m[Nm++]=Rm,_m[Nm++]=Pm,zm=e.id,Rm=e.overflow,Pm=t),(t=ai(t,a.children)).flags|=4096);return t}return o?(_o(t),o=a.fallback,c=t.mode,u=(s=e.child).sibling,(a=Tn(s,{mode:"hidden",children:a.children})).subtreeFlags=65011712&s.subtreeFlags,null!==u?o=Tn(u,o):(o=zn(o,c,n,null)).flags|=2,o.return=t,a.return=t,a.sibling=o,t.child=a,a=o,o=t.child,null===(c=e.child.memoizedState)?c=ti(n):(null!==(s=c.cachePool)?(u=Jm._currentValue,s=s.parent!==u?{parent:u,pool:u}:s):s=wr(),c={baseLanes:c.baseLanes|n,cachePool:s}),o.memoizedState=c,o.childLanes=ni(e,r,n),t.memoizedState=xb,a):(Eo(t),e=(n=e.child).sibling,(n=Tn(n,{mode:"visible",children:a.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function ai(e,t){return(t=oi({mode:"visible",children:t},e.mode)).return=e,e.child=t}function oi(e,t){return(e=m(22,e,null,t)).lanes=0,e.stateNode={_visibility:sm,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function ii(e,t,n){return Vg(t,e.child,null,n),(e=ai(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function li(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Xn(e.return,t,n)}function si(e,t){var n=Xu(e);return e=!n&&"function"==typeof E(e),!n&&!e||(n=n?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",n,t,n),!1)}function ci(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function ui(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(r=r.children,void 0!==a&&"forwards"!==a&&"backwards"!==a&&"together"!==a&&!wb[a])if(wb[a]=!0,"string"==typeof a)switch(a.toLowerCase()){case"together":case"forwards":case"backwards":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',a,a.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',a,a.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',a)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',a);void 0===o||kb[o]||("collapsed"!==o&&"hidden"!==o?(kb[o]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',o)):"forwards"!==a&&"backwards"!==a&&(kb[o]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',o)));e:if(("forwards"===a||"backwards"===a)&&null!=r&&!1!==r)if(Xu(r)){for(var i=0;i<r.length;i++)if(!si(r[i],i))break e}else if(i=E(r),"function"==typeof i){if(i=i.call(r))for(var l=i.next(),s=0;!l.done;l=i.next()){if(!si(l.value,s))break e;s++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',a);if(Wo(e,t,r,n),0!==((r=Xg.current)&Gg))r=r&Yg|Gg,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&li(e,n,t);else if(19===e.tag)li(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=Yg}switch(R(Xg,r,t),a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===Po(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),ci(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===Po(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}ci(t,!0,n,null,o);break;case"together":ci(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function di(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),rh=-1,by|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Jn(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(null!==t.child){for(n=Tn(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Tn(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function fi(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!er(e))}function pi(e,t,n){if(t._debugNeedsRemount&&null!==e){(n=Nn(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes))._debugStack=t._debugStack,n._debugTask=t._debugTask;var r=t.return;if(null===r)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,n._debugInfo=t._debugInfo,t===r.child)r.child=n;else{var a=r.child;if(null===a)throw Error("Expected parent to have a child.");for(;a.sibling!==t;)if(null===(a=a.sibling))throw Error("Expected to find the previous sibling.");a.sibling=n}return null===(t=r.deletions)?(r.deletions=[e],r.flags|=16):t.push(e),n.flags|=2,n}if(null!==e)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)mb=!0;else{if(!(fi(e,n)||128&t.flags))return mb=!1,function(e,t,n){switch(t.tag){case 3:A(t,t.stateNode.containerInfo),Yn(t,Jm,e.memoizedState.cache),Bn();break;case 27:case 5:M(t);break;case 4:A(t,t.stateNode.containerInfo);break;case 10:Yn(t,t.type,t.memoizedProps.value);break;case 12:0!==(n&t.childLanes)&&(t.flags|=4),t.flags|=2048;var r=t.stateNode;r.effectDuration=-0,r.passiveEffectDuration=-0;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Eo(t),t.flags|=128,null):0!==(n&t.child.childLanes)?ri(e,t,n):(Eo(t),null!==(e=di(e,t,n))?e.sibling:null);Eo(t);break;case 19:var a=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Jn(e,t,n,!1),r=0!==(n&t.childLanes)),a){if(r)return ui(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),R(Xg,Xg.current,t),r)break;return null;case 22:case 23:return t.lanes=0,Qo(e,t,n);case 24:Yn(t,Jm,e.memoizedState.cache)}return di(e,t,n)}(e,t,n);mb=!!(131072&e.flags)}else mb=!1,(r=Im)&&($n(),r=!!(1048576&t.flags)),r&&(r=t.index,$n(),In(t,Tm,r));switch(t.lanes=0,t.tag){case 16:e:{if(r=t.pendingProps,e=$g(t.elementType),t.type=e,"function"!=typeof e){if(null!=e){if((a=e.$$typeof)===Hu){t.tag=11,t.type=e=wn(e),t=Bo(null,t,e,r,n);break e}if(a===Vu){t.tag=14,t=Vo(null,t,e,r,n);break e}}throw t="",null!==e&&"object"==typeof e&&e.$$typeof===qu&&(t=" Did you wrap a component in React.lazy() more than once?"),e=T(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+e+". Lazy element type must resolve to a class or function."+t)}En(e)?(r=Io(e,r),t.tag=1,t.type=e=vn(e),t=Zo(null,t,e,r,n)):(t.tag=0,ei(t,e),t.type=e=vn(e),t=Go(null,t,e,r,n))}return t;case 0:return Go(e,t,t.type,t.pendingProps,n);case 1:return Zo(e,t,r=t.type,a=Io(r,t.pendingProps),n);case 3:e:{if(A(t,t.stateNode.containerInfo),null===e)throw Error("Should have a current fiber. This is a bug in React.");r=t.pendingProps;var o=t.memoizedState;a=o.element,_r(e,t),Ar(t,r,null,n);var i=t.memoizedState;if(r=i.cache,Yn(t,Jm,r),r!==o.cache&&Zn(t,[Jm],n,!0),jr(),r=i.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Jo(e,t,r,n);break e}if(r!==a){qn(a=fn(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t)),t=Jo(e,t,r,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(Am=vc(e.firstChild),jm=t,Im=!0,$m=null,Lm=!1,Mm=null,Dm=!0,e=qg(t,null,r,n),t.child=e;e;)e.flags=-3&e.flags|4096,e=e.sibling}else{if(Bn(),r===a){t=di(e,t,n);break e}Wo(e,t,r,n)}t=t.child}return t;case 26:return Yo(e,t),null===e?(e=Rc(t.type,null,t.pendingProps,null))?t.memoizedState=e:Im||(e=t.type,n=t.pendingProps,(r=ec(r=j(id.current)).createElement(e))[$d]=t,r[Dd]=n,Bs(r,e,n),ve(r),t.stateNode=r):t.memoizedState=Rc(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return M(t),null===e&&Im&&(r=j(id.current),a=L(),r=t.stateNode=Tc(t.type,t.pendingProps,r,a,!1),Lm||null!==(a=Js(r,t.type,t.pendingProps,a))&&(Dn(t,0).serverProps=a),jm=t,Dm=!0,a=Am,cc(t.type)?(Jv=a,Am=vc(r.firstChild)):Am=a),Wo(e,t,t.pendingProps.children,n),Yo(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&Im&&(o=L(),r=kt(t.type,o.ancestorInfo),(i=!(a=Am))||(null!==(i=function(e,t,n,r){for(;1===e.nodeType;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Bd])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(o=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(o!==a.rel||e.getAttribute("href")!==(null==a.href||""===a.href?null:a.href)||e.getAttribute("crossorigin")!==(null==a.crossOrigin?null:a.crossOrigin)||e.getAttribute("title")!==(null==a.title?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((o=e.getAttribute("src"))!==(null==a.src?null:a.src)||e.getAttribute("type")!==(null==a.type?null:a.type)||e.getAttribute("crossorigin")!==(null==a.crossOrigin?null:a.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;U(a.name,"name");var o=null==a.name?null:""+a.name;if("hidden"===a.type&&e.getAttribute("name")===o)return e}if(null===(e=vc(e.nextSibling)))break}return null}(a,t.type,t.pendingProps,Dm))?(t.stateNode=i,Lm||null!==(o=Js(i,t.type,t.pendingProps,o))&&(Dn(t,0).serverProps=o),jm=t,Am=vc(i.firstChild),Dm=!1,o=!0):o=!1,i=!o),i&&(r&&On(t,a),Fn(t))),M(t),a=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,r=o.children,rc(a,o)?r=null:null!==i&&rc(a,i)&&(t.flags|=32),null!==t.memoizedState&&(a=qr(e,t,Yr,null,null,n),Sw._currentValue=a),Yo(e,t),Wo(e,t,r,n),t.child;case 6:return null===e&&Im&&(e=t.pendingProps,e=null==(r=(n=L()).ancestorInfo.current)||xt(e,r.tag,n.ancestorInfo.implicitRootScope),(r=!(n=Am))||(null!==(r=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=vc(e.nextSibling)))return null}return e}(n,t.pendingProps,Dm))?(t.stateNode=r,jm=t,Am=null,r=!0):r=!1,r=!r),r&&(e&&On(t,n),Fn(t))),null;case 13:return ri(e,t,n);case 4:return A(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Vg(t,null,r,n):Wo(e,t,r,n),t.child;case 11:return Bo(e,t,t.type,t.pendingProps,n);case 7:return Wo(e,t,t.pendingProps,n),t.child;case 8:return Wo(e,t,t.pendingProps.children,n),t.child;case 12:return t.flags|=4,t.flags|=2048,(r=t.stateNode).effectDuration=-0,r.passiveEffectDuration=-0,Wo(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.type,o=(a=t.pendingProps).value,"value"in a||Sb||(Sb=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Yn(t,r,o),Wo(e,t,a.children,n),t.child;case 9:return a=t.type._context,"function"!=typeof(r=t.pendingProps.children)&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),tr(t),a=nr(a),Q(t),r=kg(r,a,void 0),K(),t.flags|=1,Wo(e,t,r,n),t.child;case 14:return Vo(e,t,t.type,t.pendingProps,n);case 15:return qo(e,t,t.type,t.pendingProps,n);case 19:return ui(e,t,n);case 31:return r=t.pendingProps,n=t.mode,r={mode:r.mode,children:r.children},null===e?((e=oi(r,n)).ref=t.ref,t.child=e,e.return=t,t=e):((e=Tn(e.child,r)).ref=t.ref,t.child=e,e.return=t,t=e),t;case 22:return Qo(e,t,n);case 24:return tr(t),r=nr(Jm),null===e?(null===(a=yr())&&(a=Xb,o=or(),a.pooledCache=o,ir(o),null!==o&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Tr(t),Yn(t,Jm,a)):(0!==(e.lanes&n)&&(_r(e,t),Ar(t,null,null,n),jr()),a=e.memoizedState,o=t.memoizedState,a.parent!==r?(a={parent:r,cache:r},t.memoizedState=a,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=a),Yn(t,Jm,r)):(r=o.cache,Yn(t,Jm,r),r!==a.cache&&Zn(t,[Jm],n,!0))),Wo(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function mi(e){e.flags|=4}function hi(e,t){if("stylesheet"!==t.type||(t.state.loading&aw)!==ew)e.flags&=-16777217;else if(e.flags|=16777216,!Bc(t)){if(null!==(t=Qg.current)&&((4194048&Jb)===Jb?null!==Kg:(62914560&Jb)!==Jb&&!(536870912&Jb)||t!==Kg))throw Nh=_h,Eh;e.flags|=8192}}function gi(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?ae():536870912,e.lanes|=t,ky|=t)}function bi(e,t){if(!Im)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function yi(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)if((e.mode&ym)!==gm){for(var a=e.selfBaseDuration,o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,a+=o.treeBaseDuration,o=o.sibling;e.treeBaseDuration=a}else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=65011712&a.subtreeFlags,r|=65011712&a.flags,a.return=e,a=a.sibling;else if((e.mode&ym)!==gm){a=e.actualDuration,o=e.selfBaseDuration;for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,a+=i.actualDuration,o+=i.treeBaseDuration,i=i.sibling;e.actualDuration=a,e.treeBaseDuration=o}else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function vi(e,t,n){var r=t.pendingProps;switch(Mn(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return yi(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Gn(Jm,t),I(t),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(Wn(t)?(Qn(),mi(t)):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,Vn())),yi(t),null;case 26:return n=t.memoizedState,null===e?(mi(t),null!==n?(yi(t),hi(t,n)):(yi(t),t.flags&=-16777217)):n?n!==e.memoizedState?(mi(t),yi(t),hi(t,n)):(yi(t),t.flags&=-16777217):(e.memoizedProps!==r&&mi(t),yi(t),t.flags&=-16777217),null;case 27:$(t),n=j(id.current);var a=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==r&&mi(t);else{if(!r){if(null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return yi(t),null}e=L(),Wn(t)?Un(t):(e=Tc(a,r,n,e,!0),t.stateNode=e,mi(t))}return yi(t),null;case 5:if($(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&mi(t);else{if(!r){if(null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return yi(t),null}if(a=L(),Wn(t))Un(t);else{switch(e=j(id.current),kt(n,a.ancestorInfo),a=a.context,e=ec(e),a){case Hv:e=e.createElementNS(Lf,n);break;case Wv:e=e.createElementNS(If,n);break;default:switch(n){case"svg":e=e.createElementNS(Lf,n);break;case"math":e=e.createElementNS(If,n);break;case"script":(e=e.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?e.createElement("select",{is:r.is}):e.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?e.createElement(n,{is:r.is}):e.createElement(n),-1===n.indexOf("-")&&(n!==n.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",n),"[object HTMLUnknownElement]"!==Object.prototype.toString.call(e)||sd.call(qv,n)||(qv[n]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",n)))}}e[$d]=t,e[Dd]=r;e:for(a=t.child;null!==a;){if(5===a.tag||6===a.tag)e.appendChild(a.stateNode);else if(4!==a.tag&&27!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;null===a.sibling;){if(null===a.return||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=e;e:switch(Bs(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&mi(t)}}return yi(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&mi(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=j(id.current),n=L(),Wn(t)){e=t.stateNode,n=t.memoizedProps,a=!Lm,r=null;var o=jm;if(null!==o)switch(o.tag){case 3:a&&(null!==(a=kc(e,n,r))&&(Dn(t,0).serverProps=a));break;case 27:case 5:r=o.memoizedProps,a&&(null!==(a=kc(e,n,r))&&(Dn(t,0).serverProps=a))}e[$d]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||Fs(e.nodeValue,n)))||Fn(t)}else null!=(a=n.ancestorInfo.current)&&xt(r,a.tag,n.ancestorInfo.implicitRootScope),(e=ec(e).createTextNode(r))[$d]=t,t.stateNode=e}return yi(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(a=Wn(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");a[$d]=t,yi(t),(t.mode&ym)!==gm&&null!==r&&(null!==(a=t.child)&&(t.treeBaseDuration-=a.treeBaseDuration))}else Qn(),Bn(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4,yi(t),(t.mode&ym)!==gm&&null!==r&&(null!==(a=t.child)&&(t.treeBaseDuration-=a.treeBaseDuration));a=!1}else a=Vn(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return 256&t.flags?(No(t),t):(No(t),null)}return No(t),128&t.flags?(t.lanes=n,(t.mode&ym)!==gm&&gr(t),t):(n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(a=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(a=r.alternate.memoizedState.cachePool.pool),o=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),gi(t,t.updateQueue),yi(t),(t.mode&ym)!==gm&&n&&(null!==(e=t.child)&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return I(t),null===e&&Ns(t.stateNode.containerInfo),yi(t),null;case 10:return Gn(t.type,t),yi(t),null;case 19:if(z(Xg,t),null===(a=t.memoizedState))return yi(t),null;if(r=!!(128&t.flags),null===(o=a.rendering))if(r)bi(a,!1);else{if(gy!==Wb||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(o=Po(e))){for(t.flags|=128,bi(a,!1),e=o.updateQueue,t.updateQueue=e,gi(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)_n(n,e),n=n.sibling;return R(Xg,Xg.current&Yg|Gg,t),t.child}e=e.sibling}null!==a.tail&&pd()>_y&&(t.flags|=128,r=!0,bi(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Po(o))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,gi(t,e),bi(a,!0),null===a.tail&&"hidden"===a.tailMode&&!o.alternate&&!Im)return yi(t),null}else 2*pd()-a.renderingStartTime>_y&&536870912!==n&&(t.flags|=128,r=!0,bi(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=a.last)?e.sibling=o:t.child=o,a.last=o)}return null!==a.tail?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pd(),e.sibling=null,n=Xg.current,R(Xg,n=r?n&Yg|Gg:n&Yg,t),e):(yi(t),null);case 22:case 23:return No(t),Or(t),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?!!(536870912&n)&&!(128&t.flags)&&(yi(t),6&t.subtreeFlags&&(t.flags|=8192)):yi(t),null!==(n=t.updateQueue)&&gi(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&z(fh,t),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Gn(Jm,t),yi(t),null;case 25:case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function wi(e,t){switch(Mn(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,(t.mode&ym)!==gm&&gr(t),t):null;case 3:return Gn(Jm,t),I(t),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return $(t),null;case 13:if(No(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Bn()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,(t.mode&ym)!==gm&&gr(t),t):null;case 19:return z(Xg,t),null;case 4:return I(t),null;case 10:return Gn(t.type,t),null;case 22:case 23:return No(t),Or(t),null!==e&&z(fh,t),65536&(e=t.flags)?(t.flags=-65537&e|128,(t.mode&ym)!==gm&&gr(t),t):null;case 24:return Gn(Jm,t),null;default:return null}}function ki(e,t){switch(Mn(t),t.tag){case 3:Gn(Jm,t),I(t);break;case 26:case 27:case 5:$(t);break;case 4:I(t);break;case 13:No(t);break;case 19:z(Xg,t);break;case 10:Gn(t.type,t);break;case 22:case 23:No(t),Or(t),null!==e&&z(fh,t);break;case 24:Gn(Jm,t)}}function xi(e){return(e.mode&ym)!==gm}function Si(e,t){xi(e)?(hr(),Ei(t,e),mr()):Ei(t,e)}function Ci(e,t,n){xi(e)?(hr(),Ti(n,e,t),mr()):Ti(n,e,t)}function Ei(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var a=r.next;n=a;do{if((n.tag&e)===e&&((e&Ih)!==zh?null!==Cd&&"function"==typeof Cd.markComponentPassiveEffectMountStarted&&Cd.markComponentPassiveEffectMountStarted(t):(e&Ah)!==zh&&null!==Cd&&"function"==typeof Cd.markComponentLayoutEffectMountStarted&&Cd.markComponentLayoutEffectMountStarted(t),r=void 0,(e&jh)!==zh&&(tv=!0),r=$e(t,Ag,n),(e&jh)!==zh&&(tv=!1),(e&Ih)!==zh?null!==Cd&&"function"==typeof Cd.markComponentPassiveEffectMountStopped&&Cd.markComponentPassiveEffectMountStopped():(e&Ah)!==zh&&null!==Cd&&"function"==typeof Cd.markComponentLayoutEffectMountStopped&&Cd.markComponentLayoutEffectMountStopped(),void 0!==r&&"function"!=typeof r)){var o;o=0!==(n.tag&Ah)?"useLayoutEffect":0!==(n.tag&jh)?"useInsertionEffect":"useEffect";$e(t,function(e,t){console.error("%s must not return anything besides a function, which is used for clean-up.%s",e,t)},o,null===r?" You returned null. If your effect does not require clean up, return undefined (or nothing).":"function"==typeof r.then?"\n\nIt looks like you wrote "+o+"(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\n\n"+o+"(() => {\n async function fetchData() {\n // You can await here\n const response = await MyAPI.getData(someId);\n // ...\n }\n fetchData();\n}, [someId]); // Or [] if effect doesn't need props or state\n\nLearn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching":" You returned: "+r)}n=n.next}while(n!==a)}}catch(i){ts(t,t.return,i)}}function Ti(e,t,n){try{var r=t.updateQueue,a=null!==r?r.lastEffect:null;if(null!==a){var o=a.next;r=o;do{if((r.tag&e)===e){var i=r.inst,l=i.destroy;void 0!==l&&(i.destroy=void 0,(e&Ih)!==zh?null!==Cd&&"function"==typeof Cd.markComponentPassiveEffectUnmountStarted&&Cd.markComponentPassiveEffectUnmountStarted(t):(e&Ah)!==zh&&null!==Cd&&"function"==typeof Cd.markComponentLayoutEffectUnmountStarted&&Cd.markComponentLayoutEffectUnmountStarted(t),(e&jh)!==zh&&(tv=!0),$e(a=t,Lg,a,n,l),(e&jh)!==zh&&(tv=!1),(e&Ih)!==zh?null!==Cd&&"function"==typeof Cd.markComponentPassiveEffectUnmountStopped&&Cd.markComponentPassiveEffectUnmountStopped():(e&Ah)!==zh&&null!==Cd&&"function"==typeof Cd.markComponentLayoutEffectUnmountStopped&&Cd.markComponentLayoutEffectUnmountStopped())}r=r.next}while(r!==o)}}catch(s){ts(t,t.return,s)}}function _i(e,t){xi(e)?(hr(),Ei(t,e),mr()):Ei(t,e)}function Ni(e,t,n){xi(e)?(hr(),Ti(n,e,t),mr()):Ti(n,e,t)}function Pi(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||vb||(n.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",N(e)||"instance"),n.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",N(e)||"instance"));try{$e(e,Mr,t,n)}catch(r){ts(e,e.return,r)}}}function zi(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function Ri(e,t){var n=t.memoizedProps,r=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||vb||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",N(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",N(e)||"instance"));try{var a=Io(e.type,n,(e.elementType,e.type)),o=$e(e,zi,t,a,r);n=Cb,void 0!==o||n.has(e.type)||(n.add(e.type),$e(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",N(e))})),t.__reactInternalSnapshotBeforeUpdate=o}catch(i){ts(e,e.return,i)}}function ji(e,t,n){n.props=Io(e.type,e.memoizedProps),n.state=e.memoizedState,xi(e)?(hr(),$e(e,Rg,e,t,n),mr()):$e(e,Rg,e,t,n)}function Ai(e){var t=e.ref;if(null!==t){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;default:n=e.stateNode}if("function"==typeof t)if(xi(e))try{hr(),e.refCleanup=t(n)}finally{mr()}else e.refCleanup=t(n);else"string"==typeof t?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",N(e)),t.current=n}}function Ii(e,t){try{$e(e,Ai,e)}catch(n){ts(e,t,n)}}function Li(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{if(xi(e))try{hr(),$e(e,r)}finally{mr()}else $e(e,r)}catch(a){ts(e,t,a)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{if(xi(e))try{hr(),$e(e,n,null)}finally{mr()}else $e(e,n,null)}catch(o){ts(e,t,o)}else n.current=null}function Mi(e,t,n,r){var a=e.memoizedProps,o=a.id,i=a.onCommit;a=a.onRender,t=null===t?"mount":"update",oh&&(t="nested-update"),"function"==typeof a&&a(o,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),"function"==typeof i&&i(e.memoizedProps.id,t,r,n)}function $i(e,t,n,r){var a=e.memoizedProps;e=a.id,a=a.onPostCommit,t=null===t?"mount":"update",oh&&(t="nested-update"),"function"==typeof a&&a(e,t,r,n)}function Di(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{$e(e,oc,r,t,n,e)}catch(a){ts(e,e.return,a)}}function Oi(e,t,n){try{$e(e,ic,e.stateNode,e.type,n,t,e)}catch(r){ts(e,e.return,r)}}function Fi(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&cc(e.type)||4===e.tag}function Ui(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Fi(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&cc(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Hi(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Us));else if(4!==r&&(27===r&&cc(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(Hi(e,t,n),e=e.sibling;null!==e;)Hi(e,t,n),e=e.sibling}function Wi(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&cc(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(Wi(e,t,n),e=e.sibling;null!==e;)Wi(e,t,n),e=e.sibling}function Bi(e){for(var t,n=e.return;null!==n;){if(Fi(n)){t=n;break}n=n.return}if(null==t)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,Wi(e,n=Ui(e),t);break;case 5:n=t.stateNode,32&t.flags&&(lc(n),t.flags&=-33),Wi(e,t=Ui(e),n);break;case 3:case 4:t=t.stateNode.containerInfo,Hi(e,n=Ui(e),t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Vi(e){var t=e.stateNode,n=e.memoizedProps;try{$e(e,_c,e.type,n,t,e)}catch(r){ts(e,e.return,r)}}function qi(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:nl(e,n),4&r&&Si(n,Ah|Rh);break;case 1:if(nl(e,n),4&r)if(e=n.stateNode,null===t)n.type.defaultProps||"ref"in n.memoizedProps||vb||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",N(n)||"instance"),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",N(n)||"instance")),xi(n)?(hr(),$e(n,Eg,n,e),mr()):$e(n,Eg,n,e);else{var a=Io(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||"ref"in n.memoizedProps||vb||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",N(n)||"instance"),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",N(n)||"instance")),xi(n)?(hr(),$e(n,_g,n,e,a,t,e.__reactInternalSnapshotBeforeUpdate),mr()):$e(n,_g,n,e,a,t,e.__reactInternalSnapshotBeforeUpdate)}64&r&&Pi(n),512&r&&Ii(n,n.return);break;case 3:if(t=sr(),nl(e,n),64&r&&null!==(r=n.updateQueue)){if(a=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:a=n.child.stateNode}try{$e(n,Mr,r,a)}catch(i){ts(n,n.return,i)}}e.effectDuration+=cr(t);break;case 27:null===t&&4&r&&Vi(n);case 26:case 5:nl(e,n),null===t&&4&r&&Di(n),512&r&&Ii(n,n.return);break;case 12:if(4&r){r=sr(),nl(e,n),(e=n.stateNode).effectDuration+=ur(r);try{$e(n,Mi,n,t,nh,e.effectDuration)}catch(i){ts(n,n.return,i)}}else nl(e,n);break;case 13:nl(e,n),4&r&&Gi(e,n),64&r&&(null!==(e=n.memoizedState)&&(null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if(e.data!==jv||n.readyState===Ov)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=os.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||Eb)){t=null!==t&&null!==t.memoizedState||Tb,a=Eb;var o=Tb;Eb=r,(Tb=t)&&!o?il(e,n,!!(8772&n.subtreeFlags)):nl(e,n),Eb=a,Tb=o}break;case 30:break;default:nl(e,n)}}function Qi(e){var t=e.alternate;null!==t&&(e.alternate=null,Qi(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&me(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ki(e,t,n){for(n=n.child;null!==n;)Yi(e,t,n),n=n.sibling}function Yi(e,t,n){if(Sd&&"function"==typeof Sd.onCommitFiberUnmount)try{Sd.onCommitFiberUnmount(xd,n)}catch(o){Ed||(Ed=!0,console.error("React instrumentation encountered an error: %s",o))}switch(n.tag){case 26:Tb||Li(n,t),Ki(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Tb||Li(n,t);var r=jb,a=Ab;cc(n.type)&&(jb=n.stateNode,Ab=!1),Ki(e,t,n),$e(n,Nc,n.stateNode),jb=r,Ab=a;break;case 5:Tb||Li(n,t);case 6:if(r=jb,a=Ab,jb=null,Ki(e,t,n),Ab=a,null!==(jb=r))if(Ab)try{$e(n,dc,jb,n.stateNode)}catch(i){ts(n,t,i)}else try{$e(n,uc,jb,n.stateNode)}catch(i){ts(n,t,i)}break;case 18:null!==jb&&(Ab?(fc(9===(e=jb).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),yu(e)):fc(jb,n.stateNode));break;case 4:r=jb,a=Ab,jb=n.stateNode.containerInfo,Ab=!0,Ki(e,t,n),jb=r,Ab=a;break;case 0:case 11:case 14:case 15:Tb||Ti(jh,n,t),Tb||Ci(n,t,Ah),Ki(e,t,n);break;case 1:Tb||(Li(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&ji(n,t,r)),Ki(e,t,n);break;case 21:Ki(e,t,n);break;case 22:Tb=(r=Tb)||null!==n.memoizedState,Ki(e,t,n),Tb=r;break;default:Ki(e,t,n)}}function Gi(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{$e(t,Ec,e)}catch(n){ts(t,t.return,n)}}function Xi(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Nb),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Nb),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}(e);t.forEach(function(t){var r=is.bind(null,e,t);if(!n.has(t)){if(n.add(t),Td){if(null===zb||null===Rb)throw Error("Expected finished root and lanes to be set. This is a bug in React.");ds(Rb,zb)}t.then(r,r)}})}function Zi(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=e,o=t,i=n[r],l=o;e:for(;null!==l;){switch(l.tag){case 27:if(cc(l.type)){jb=l.stateNode,Ab=!1;break e}break;case 5:jb=l.stateNode,Ab=!1;break e;case 3:case 4:jb=l.stateNode.containerInfo,Ab=!0;break e}l=l.return}if(null===jb)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Yi(a,o,i),jb=null,Ab=!1,null!==(o=(a=i).alternate)&&(o.return=null),a.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)Ji(t,e),t=t.sibling}function Ji(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Zi(t,e),el(e),4&r&&(Ti(jh|Rh,e,e.return),Ei(jh|Rh,e),Ci(e,e.return,Ah|Rh));break;case 1:Zi(t,e),el(e),512&r&&(Tb||null===n||Li(n,n.return)),64&r&&Eb&&(null!==(e=e.updateQueue)&&(null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r))));break;case 26:var a=Ib;if(Zi(t,e),el(e),512&r&&(Tb||null===n||Li(n,n.return)),4&r)if(t=null!==n?n.memoizedState:null,r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,t=a.ownerDocument||a;t:switch(r){case"title":(!(a=t.getElementsByTagName("title")[0])||a[Bd]||a[$d]||a.namespaceURI===Lf||a.hasAttribute("itemprop"))&&(a=t.createElement(r),t.head.insertBefore(a,t.querySelector("head > title"))),Bs(a,r,n),a[$d]=e,ve(a),r=a;break e;case"link":var o=Hc("link","href",t).get(r+(n.href||""));if(o)for(var i=0;i<o.length;i++)if((a=o[i]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&a.getAttribute("rel")===(null==n.rel?null:n.rel)&&a.getAttribute("title")===(null==n.title?null:n.title)&&a.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){o.splice(i,1);break t}Bs(a=t.createElement(r),r,n),t.head.appendChild(a);break;case"meta":if(o=Hc("meta","content",t).get(r+(n.content||"")))for(i=0;i<o.length;i++)if(a=o[i],U(n.content,"content"),a.getAttribute("content")===(null==n.content?null:""+n.content)&&a.getAttribute("name")===(null==n.name?null:n.name)&&a.getAttribute("property")===(null==n.property?null:n.property)&&a.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&a.getAttribute("charset")===(null==n.charSet?null:n.charSet)){o.splice(i,1);break t}Bs(a=t.createElement(r),r,n),t.head.appendChild(a);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+r+'". This is a bug in React.')}a[$d]=e,ve(a),r=a}e.stateNode=r}else Wc(a,e.type,e.stateNode);else e.stateNode=Dc(a,r,e.memoizedProps);else t!==r?(null===t?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):t.count--,null===r?Wc(a,e.type,e.stateNode):Dc(a,r,e.memoizedProps)):null===r&&null!==e.stateNode&&Oi(e,e.memoizedProps,n.memoizedProps);break;case 27:Zi(t,e),el(e),512&r&&(Tb||null===n||Li(n,n.return)),null!==n&&4&r&&Oi(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Zi(t,e),el(e),512&r&&(Tb||null===n||Li(n,n.return)),32&e.flags){t=e.stateNode;try{$e(e,lc,t)}catch(u){ts(e,e.return,u)}}4&r&&null!=e.stateNode&&Oi(e,t=e.memoizedProps,null!==n?n.memoizedProps:t),1024&r&&(_b=!0,"form"!==e.type&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Zi(t,e),el(e),4&r){if(null===e.stateNode)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");r=e.memoizedProps,n=null!==n?n.memoizedProps:r,t=e.stateNode;try{$e(e,sc,t,n,r)}catch(u){ts(e,e.return,u)}}break;case 3:if(a=sr(),yw=null,o=Ib,Ib=Pc(t.containerInfo),Zi(t,e),Ib=o,el(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{$e(e,Cc,t.containerInfo)}catch(u){ts(e,e.return,u)}_b&&(_b=!1,tl(e)),t.effectDuration+=cr(a);break;case 4:r=Ib,Ib=Pc(e.stateNode.containerInfo),Zi(t,e),el(e),Ib=r;break;case 12:r=sr(),Zi(t,e),el(e),e.stateNode.effectDuration+=ur(r);break;case 13:Zi(t,e),el(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(Ey=pd()),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,Xi(e,r)));break;case 22:a=null!==e.memoizedState;var l=null!==n&&null!==n.memoizedState,s=Eb,c=Tb;if(Eb=s||a,Tb=c||l,Zi(t,e),Tb=c,Eb=s,el(e),8192&r)e:for(t=e.stateNode,t._visibility=a?t._visibility&~sm:t._visibility|sm,a&&(null===n||l||Eb||Tb||al(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){l=n=t;try{o=l.stateNode,a?$e(l,pc,o):$e(l,hc,l.stateNode,l.memoizedProps)}catch(u){ts(l,l.return,u)}}}else if(6===t.tag){if(null===n){l=t;try{i=l.stateNode,a?$e(l,mc,i):$e(l,gc,i,l.memoizedProps)}catch(u){ts(l,l.return,u)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&(null!==(r=e.updateQueue)&&(null!==(n=r.retryQueue)&&(r.retryQueue=null,Xi(e,n))));break;case 19:Zi(t,e),el(e),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,Xi(e,r)));break;case 30:case 21:break;default:Zi(t,e),el(e)}}function el(e){var t=e.flags;if(2&t){try{$e(e,Bi,e)}catch(n){ts(e,e.return,n)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function tl(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;tl(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function nl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)qi(e,t.alternate,t),t=t.sibling}function rl(e){switch(e.tag){case 0:case 11:case 14:case 15:Ci(e,e.return,Ah),al(e);break;case 1:Li(e,e.return);var t=e.stateNode;"function"==typeof t.componentWillUnmount&&ji(e,e.return,t),al(e);break;case 27:$e(e,Nc,e.stateNode);case 26:case 5:Li(e,e.return),al(e);break;case 22:null===e.memoizedState&&al(e);break;default:al(e)}}function al(e){for(e=e.child;null!==e;)rl(e),e=e.sibling}function ol(e,t,n,r){var a=n.flags;switch(n.tag){case 0:case 11:case 15:il(e,n,r),Si(n,Ah);break;case 1:if(il(e,n,r),"function"==typeof(t=n.stateNode).componentDidMount&&$e(n,Eg,n,t),null!==(t=n.updateQueue)){e=n.stateNode;try{$e(n,Lr,t,e)}catch(o){ts(n,n.return,o)}}r&&64&a&&Pi(n),Ii(n,n.return);break;case 27:Vi(n);case 26:case 5:il(e,n,r),r&&null===t&&4&a&&Di(n),Ii(n,n.return);break;case 12:if(r&&4&a){a=sr(),il(e,n,r),(r=n.stateNode).effectDuration+=ur(a);try{$e(n,Mi,n,t,nh,r.effectDuration)}catch(o){ts(n,n.return,o)}}else il(e,n,r);break;case 13:il(e,n,r),r&&4&a&&Gi(e,n);break;case 22:null===n.memoizedState&&il(e,n,r),Ii(n,n.return);break;case 30:break;default:il(e,n,r)}}function il(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;)ol(e,t.alternate,t,n),t=t.sibling}function ll(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&ir(e),null!=n&&lr(n))}function sl(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(ir(t),null!=e&&lr(e))}function cl(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)ul(e,t,n,r),t=t.sibling}function ul(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:cl(e,t,n,r),2048&a&&_i(t,Ih|Rh);break;case 1:case 13:default:cl(e,t,n,r);break;case 3:var o=sr();cl(e,t,n,r),2048&a&&(n=null,null!==t.alternate&&(n=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==n&&(ir(t),null!=n&&lr(n))),e.passiveEffectDuration+=cr(o);break;case 12:if(2048&a){a=sr(),cl(e,t,n,r),(e=t.stateNode).passiveEffectDuration+=ur(a);try{$e(t,$i,t,t.alternate,nh,e.passiveEffectDuration)}catch(l){ts(t,t.return,l)}}else cl(e,t,n,r);break;case 23:break;case 22:o=t.stateNode;var i=t.alternate;null!==t.memoizedState?o._visibility&cm?cl(e,t,n,r):pl(e,t):o._visibility&cm?cl(e,t,n,r):(o._visibility|=cm,dl(e,t,n,r,!!(10256&t.subtreeFlags))),2048&a&&ll(i,t);break;case 24:cl(e,t,n,r),2048&a&&sl(t.alternate,t)}}function dl(e,t,n,r,a){for(a=a&&!!(10256&t.subtreeFlags),t=t.child;null!==t;)fl(e,t,n,r,a),t=t.sibling}function fl(e,t,n,r,a){var o=t.flags;switch(t.tag){case 0:case 11:case 15:dl(e,t,n,r,a),_i(t,Ih);break;case 23:break;case 22:var i=t.stateNode;null!==t.memoizedState?i._visibility&cm?dl(e,t,n,r,a):pl(e,t):(i._visibility|=cm,dl(e,t,n,r,a)),a&&2048&o&&ll(t.alternate,t);break;case 24:dl(e,t,n,r,a),a&&2048&o&&sl(t.alternate,t);break;default:dl(e,t,n,r,a)}}function pl(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,a=r.flags;switch(r.tag){case 22:pl(n,r),2048&a&&ll(r.alternate,r);break;case 24:pl(n,r),2048&a&&sl(r.alternate,r);break;default:pl(n,r)}t=t.sibling}}function ml(e){if(e.subtreeFlags&Lb)for(e=e.child;null!==e;)hl(e),e=e.sibling}function hl(e){switch(e.tag){case 26:ml(e),e.flags&Lb&&null!==e.memoizedState&&function(e,t,n){if(null===vw)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var r=vw;if("stylesheet"===t.type&&("string"!=typeof n.media||!1!==matchMedia(n.media).matches)&&(t.state.loading&aw)===ew){if(null===t.instance){var a=Ac(n.href),o=e.querySelector(Ic(a));if(o)return null!==(e=o._p)&&"object"==typeof e&&"function"==typeof e.then&&(r.count++,r=qc.bind(r),e.then(r,r)),t.state.loading|=aw,t.instance=o,void ve(o);o=e.ownerDocument||e,n=Lc(n),(a=ow.get(a))&&Fc(n,a),ve(o=o.createElement("link"));var i=o;i._p=new Promise(function(e,t){i.onload=e,i.onerror=t}),Bs(o,"link",n),t.instance=o}null===r.stylesheets&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&rw)===ew&&(r.count++,t=qc.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}(Ib,e.memoizedState,e.memoizedProps);break;case 5:default:ml(e);break;case 3:case 4:var t=Ib;Ib=Pc(e.stateNode.containerInfo),ml(e),Ib=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=Lb,Lb=16777216,ml(e),Lb=t):ml(e))}}function gl(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function bl(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Pb=r,kl(r,e)}gl(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)yl(e),e=e.sibling}function yl(e){switch(e.tag){case 0:case 11:case 15:bl(e),2048&e.flags&&Ni(e,e.return,Ih|Rh);break;case 3:var t=sr();bl(e),e.stateNode.passiveEffectDuration+=cr(t);break;case 12:t=sr(),bl(e),e.stateNode.passiveEffectDuration+=ur(t);break;case 22:t=e.stateNode,null!==e.memoizedState&&t._visibility&cm&&(null===e.return||13!==e.return.tag)?(t._visibility&=~cm,vl(e)):bl(e);break;default:bl(e)}}function vl(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Pb=r,kl(r,e)}gl(e)}for(e=e.child;null!==e;)wl(e),e=e.sibling}function wl(e){switch(e.tag){case 0:case 11:case 15:Ni(e,e.return,Ih),vl(e);break;case 22:var t=e.stateNode;t._visibility&cm&&(t._visibility&=~cm,vl(e));break;default:vl(e)}}function kl(e,t){for(;null!==Pb;){var n=Pb,r=n;switch(r.tag){case 0:case 11:case 15:Ni(r,t,Ih);break;case 23:case 22:null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(null!=(r=r.memoizedState.cachePool.pool)&&ir(r));break;case 24:lr(r.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Pb=r;else e:for(n=e;null!==Pb;){var a=(r=Pb).sibling,o=r.return;if(Qi(r),r===n){Pb=null;break e}if(null!==a){a.return=o,Pb=a;break e}Pb=o}}}function xl(){var e="undefined"!=typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:void 0;return e||null===Zu.actQueue||console.error("The current testing environment is not configured to support act(...)"),e}function Sl(e){if((Gb&Ub)!==Fb&&0!==Jb)return Jb&-Jb;var t=Zu.T;return null!==t?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),0!==(e=ch)?e:ks()):pe()}function Cl(){0===wy&&(wy=536870912&Jb&&!Im?536870912:re());var e=Qg.current;return null!==e&&(e.flags|=32),wy}function El(e,t,n){if(tv&&console.error("useInsertionEffect must not schedule updates."),Gy&&(Xy=!0),(e!==Xb||uy!==ny&&uy!==cy)&&null===e.cancelPendingCommit||(jl(e,0),Pl(e,Jb,wy,!1)),ie(e,n),0!==(Gb&Ub)&&e===Xb){if(af)switch(t.tag){case 0:case 11:case 15:e=Zb&&N(Zb)||"Unknown",av.has(e)||(av.add(e),t=N(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:rv||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),rv=!0)}}else Td&&ue(e,t,n),function(e){xl()&&null===Zu.actQueue&&$e(e,function(){console.error("An update to %s inside a test was not wrapped in act(...).\n\nWhen testing, code that causes React state updates should be wrapped into act(...):\n\nact(() => {\n /* fire events that update state */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act",N(e))})}(t),e===Xb&&((Gb&Ub)===Fb&&(yy|=n),gy===Qb&&Pl(e,Jb,wy,!1)),fs(e)}function Tl(e,t,n){if((Gb&(Ub|Hb))!==Fb)throw Error("Should not already be working.");for(var r=!n&&!(124&t)&&0===(t&e.expiredLanes)||te(e,t),a=r?function(e,t){var n=Gb;Gb|=Ub;var r=Il(),a=Ll();if(Xb!==e||Jb!==t){if(Td){var o=e.memoizedUpdaters;0<o.size&&(ds(e,Jb),o.clear()),de(e,t)}Py=null,_y=pd()+Ny,jl(e,t)}else py=te(e,t);Y(t);e:for(;;)try{if(uy!==ey&&null!==Zb)t:switch(t=Zb,o=dy,uy){case ty:uy=ey,dy=null,Wl(e,t,o,ty);break;case ny:case cy:if(kr(o)){uy=ey,dy=null,Ul(t);break}t=function(){uy!==ny&&uy!==cy||Xb!==e||(uy=ly),fs(e)},o.then(t,t);break e;case ry:uy=ly;break e;case ay:uy=oy;break e;case ly:kr(o)?(uy=ey,dy=null,Ul(t)):(uy=ey,dy=null,Wl(e,t,o,ly));break;case oy:var i=null;switch(Zb.tag){case 26:i=Zb.memoizedState;case 5:case 27:var l=Zb;if(!i||Bc(i)){uy=ey,dy=null;var s=l.sibling;if(null!==s)Zb=s;else{var c=l.return;null!==c?(Zb=c,Bl(c)):Zb=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}uy=ey,dy=null,Wl(e,t,o,oy);break;case iy:uy=ey,dy=null,Wl(e,t,o,iy);break;case sy:Rl(),gy=Kb;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}null!==Zu.actQueue?Dl():Ol();break}catch(u){Al(e,u)}return Kn(),Zu.H=r,Zu.A=a,Gb=n,null!==Zb?(null!==Cd&&"function"==typeof Cd.markRenderYielded&&Cd.markRenderYielded(),Wb):(G(),Xb=null,Jb=0,pn(),gy)}(e,t):$l(e,t,!0),o=r;;){if(a===Wb){py&&!r&&Pl(e,t,0,!1);break}if(n=e.current.alternate,!o||Nl(n)){if(a===Vb){if(o=t,e.errorRecoveryDisabledLanes&o)var i=0;else i=0!==(i=-536870913&e.pendingLanes)?i:536870912&i?536870912:0;if(0!==i){t=i;e:{var l=i;i=xy;var s=(a=e).current.memoizedState.isDehydrated;if(s&&(jl(a,l).flags|=256),(l=$l(a,l,!1))!==Vb){if(my&&!s){a.errorRecoveryDisabledLanes|=o,yy|=o,a=Qb;break e}a=Sy,Sy=i,null!==a&&(null===Sy?Sy=a:Sy.push.apply(Sy,a))}a=l}if(o=!1,a!==Vb)continue}}if(a===Bb){jl(e,0),Pl(e,t,0,!0);break}e:{switch(r=e,a){case Wb:case Bb:throw Error("Root did not complete. This is a bug in React.");case Qb:if((4194048&t)!==t)break;case Kb:Pl(r,t,wy,!fy);break e;case Vb:Sy=null;break;case qb:case Yb:break;default:throw Error("Unknown root exit status.")}if(null!==Zu.actQueue)ql(r,n,t,Sy,Py,Cy,wy,yy,ky);else{if((62914560&t)===t&&10<(o=Ey+Ty-pd())){if(Pl(r,t,wy,!fy),0!==ee(r,0,!0))break e;r.timeoutHandle=Kv(_l.bind(null,r,n,Sy,Py,Cy,t,wy,yy,ky,fy,a,Ay,th,0),o);break e}_l(r,n,Sy,Py,Cy,t,wy,yy,ky,fy,a,Ry,th,0)}}break}a=$l(e,t,!1),o=!1}fs(e)}function _l(e,t,n,r,a,o,i,l,s,c,u,d,f,p){if(e.timeoutHandle=Gv,(8192&(d=t.subtreeFlags)||!(16785408&~d))&&(vw={stylesheets:null,count:0,unsuspend:Vc},hl(t),null!==(d=function(){if(null===vw)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var e=vw;return e.stylesheets&&0===e.count&&Qc(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Qc(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}())))return e.cancelPendingCommit=d(ql.bind(null,e,t,o,n,r,a,i,l,s,u,jy,f,p)),void Pl(e,o,i,!c);ql(e,t,o,n,r,a,i,l,s)}function Nl(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!Wp(o(),a))return!1}catch(i){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Pl(e,t,n,r){t&=~vy,t&=~yy,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var o=31-_d(a),i=1<<o;r[o]=-1,a&=~i}0!==n&&le(e,n,t)}function zl(){return(Gb&(Ub|Hb))!==Fb||(ps(0),!1)}function Rl(){if(null!==Zb){if(uy===ey)var e=Zb.return;else e=Zb,Kn(),Zr(e),Dg=null,Og=0,e=Zb;for(;null!==e;)ki(e.alternate,e),e=e.return;Zb=null}}function jl(e,t){var n=e.timeoutHandle;n!==Gv&&(e.timeoutHandle=Gv,Yv(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Rl(),Xb=e,Zb=n=Tn(e.current,null),Jb=t,uy=ey,dy=null,fy=!1,py=te(e,t),my=!1,gy=Wb,ky=wy=vy=yy=by=0,Sy=xy=null,Cy=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var a=31-_d(r),o=1<<a;t|=e[a],r&=~o}return hy=t,pn(),1e3<(t=Hm())-Fm&&(Zu.recentlyCreatedOwnerStacks=0,Fm=t),ph.discardPendingWarnings(),n}function Al(e,t){Gh=null,Zu.H=dg,Zu.getCurrentStack=null,af=!1,rf=null,t===Ch||t===Th?(t=Cr(),uy=ry):t===Eh?(t=Cr(),uy=ay):uy=t===pb?sy:null!==t&&"object"==typeof t&&"function"==typeof t.then?iy:ty,dy=t;var n=Zb;if(null===n)gy=Bb,Do(e,fn(t,e.current));else switch(n.mode&ym&&fr(n),K(),uy){case ty:null!==Cd&&"function"==typeof Cd.markComponentErrored&&Cd.markComponentErrored(n,t,Jb);break;case ny:case cy:case ry:case iy:case ly:null!==Cd&&"function"==typeof Cd.markComponentSuspended&&Cd.markComponentSuspended(n,t,Jb)}}function Il(){var e=Zu.H;return Zu.H=dg,null===e?dg:e}function Ll(){var e=Zu.A;return Zu.A=Mb,e}function Ml(){gy=Qb,fy||(4194048&Jb)!==Jb&&null!==Qg.current||(py=!0),!(134217727&by)&&!(134217727&yy)||null===Xb||Pl(Xb,Jb,wy,!1)}function $l(e,t,n){var r=Gb;Gb|=Ub;var a=Il(),o=Ll();if(Xb!==e||Jb!==t){if(Td){var i=e.memoizedUpdaters;0<i.size&&(ds(e,Jb),i.clear()),de(e,t)}Py=null,jl(e,t)}Y(t),t=!1,i=gy;e:for(;;)try{if(uy!==ey&&null!==Zb){var l=Zb,s=dy;switch(uy){case sy:Rl(),i=Kb;break e;case ry:case ny:case cy:case iy:null===Qg.current&&(t=!0);var c=uy;if(uy=ey,dy=null,Wl(e,l,s,c),n&&py){i=Wb;break e}break;default:c=uy,uy=ey,dy=null,Wl(e,l,s,c)}}Dl(),i=gy;break}catch(u){Al(e,u)}return t&&e.shellSuspendCounter++,Kn(),Gb=r,Zu.H=a,Zu.A=o,G(),null===Zb&&(Xb=null,Jb=0,pn()),i}function Dl(){for(;null!==Zb;)Fl(Zb)}function Ol(){for(;null!==Zb&&!dd();)Fl(Zb)}function Fl(e){var t=e.alternate;(e.mode&ym)!==gm?(dr(e),t=$e(e,pi,t,e,hy),fr(e)):t=$e(e,pi,t,e,hy),e.memoizedProps=e.pendingProps,null===t?Bl(e):Zb=t}function Ul(e){var t=$e(e,Hl,e);e.memoizedProps=e.pendingProps,null===t?Bl(e):Zb=t}function Hl(e){var t=e.alternate,n=(e.mode&ym)!==gm;switch(n&&dr(e),e.tag){case 15:case 0:t=Xo(t,e,e.pendingProps,e.type,void 0,Jb);break;case 11:t=Xo(t,e,e.pendingProps,e.type.render,e.ref,Jb);break;case 5:Zr(e);default:ki(t,e),t=pi(t,e=Zb=_n(e,hy),hy)}return n&&fr(e),t}function Wl(e,t,n,r){Kn(),Zr(t),Dg=null,Og=0;var a=t.return;try{if(function(e,t,n,r,a){if(n.flags|=32768,Td&&ds(e,a),null!==r&&"object"==typeof r&&"function"==typeof r.then){if(null!==(t=n.alternate)&&Jn(t,n,a,!0),Im&&(Lm=!0),null!==(n=Qg.current)){switch(n.tag){case 13:return null===Kg?Ml():null===n.alternate&&gy===Wb&&(gy=qb),n.flags&=-257,n.flags|=65536,n.lanes=a,r===_h?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),ns(e,r,a)),!1;case 22:return n.flags|=65536,r===_h?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),ns(e,r,a)),!1}throw Error("Unexpected Suspense handler tag ("+n.tag+"). This is a bug in React.")}return ns(e,r,a),Ml(),!1}if(Im)return Lm=!0,null!==(t=Qg.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Om&&qn(fn(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:r}),n))):(r!==Om&&qn(fn(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:r}),n)),(e=e.current.alternate).flags|=65536,a&=-a,e.lanes|=a,r=fn(r,n),Rr(e,a=Fo(e.stateNode,r,a)),gy!==Qb&&(gy=Vb)),!1;var o=fn(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:r}),n);if(null===xy?xy=[o]:xy.push(o),gy!==Qb&&(gy=Vb),null===t)return!0;r=fn(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,Rr(n,e=Fo(n.stateNode,r,e)),!1;case 1:if(t=n.type,o=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===o||"function"!=typeof o.componentDidCatch||null!==zy&&zy.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,Ho(a=Uo(a),e,n,r),Rr(n,a),!1}n=n.return}while(null!==n);return!1}(e,a,t,n,Jb))return gy=Bb,Do(e,fn(n,e.current)),void(Zb=null)}catch(o){if(null!==a)throw Zb=a,o;return gy=Bb,Do(e,fn(n,e.current)),void(Zb=null)}32768&t.flags?(Im||r===ty?e=!0:py||536870912&Jb?e=!1:(fy=e=!0,(r===ny||r===cy||r===ry||r===iy)&&(null!==(r=Qg.current)&&13===r.tag&&(r.flags|=16384))),Vl(t,e)):Bl(t)}function Bl(e){var t=e;do{if(32768&t.flags)return void Vl(t,fy);var n=t.alternate;if(e=t.return,dr(t),n=$e(t,vi,n,t,hy),(t.mode&ym)!==gm&&pr(t),null!==n)return void(Zb=n);if(null!==(t=t.sibling))return void(Zb=t);Zb=t=e}while(null!==t);gy===Wb&&(gy=Yb)}function Vl(e,t){do{var n=wi(e.alternate,e);if(null!==n)return n.flags&=32767,void(Zb=n);if((e.mode&ym)!==gm){pr(e),n=e.actualDuration;for(var r=e.child;null!==r;)n+=r.actualDuration,r=r.sibling;e.actualDuration=n}if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(Zb=e);Zb=e=n}while(null!==e);gy=Kb,Zb=null}function ql(e,t,n,r,a,o,i,l,s){e.cancelPendingCommit=null;do{Zl()}while(Fy!==Iy);if(ph.flushLegacyContextWarning(),ph.flushPendingUnsafeLifecycleWarnings(),(Gb&(Ub|Hb))!==Fb)throw Error("Should not already be working.");if(null!==Cd&&"function"==typeof Cd.markCommitStarted&&Cd.markCommitStarted(n),null===t)q();else{if(0===n&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(o=t.lanes|t.childLanes,function(e,t,n,r,a,o){var i=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var l=e.entanglements,s=e.expirationTimes,c=e.hiddenUpdates;for(n=i&~n;0<n;){var u=31-_d(n),d=1<<u;l[u]=0,s[u]=-1;var f=c[u];if(null!==f)for(c[u]=null,u=0;u<f.length;u++){var p=f[u];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&le(e,r,0),0!==o&&0===a&&0!==e.tag&&(e.suspendedLanes|=o&~(i&~t))}(e,n,o|=fm,i,l,s),e===Xb&&(Zb=Xb=null,Jb=0),Hy=t,Uy=e,Wy=n,By=o,Vy=a,qy=r,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,c=bd,u=function(){return Jl(),null},null!==(d=Zu.actQueue)?d.push(u):cd(c,u)):(e.callbackNode=null,e.callbackPriority=0),nh=eh(),r=!!(13878&t.flags),13878&t.subtreeFlags||r){r=Zu.T,Zu.T=null,a=Ju.p,Ju.p=jd,i=Gb,Gb|=Hb;try{!function(e,t){if(e=e.containerInfo,Bv=Rw,ln(e=on(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(m){n=null;break e}var i=0,l=-1,s=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var p;d!==n||0!==a&&3!==d.nodeType||(l=i+a),d!==o||0!==r&&3!==d.nodeType||(s=i+r),3===d.nodeType&&(i+=d.nodeValue.length),null!==(p=d.firstChild);)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++c===a&&(l=i),f===o&&++u===r&&(s=i),null!==(p=d.nextSibling))break;f=(d=f).parentNode}d=p}n=-1===l||-1===s?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vv={focusedElem:e,selectionRange:n},Rw=!1,Pb=t;null!==Pb;)if(e=(t=Pb).child,1024&t.subtreeFlags&&null!==e)e.return=t,Pb=e;else for(;null!==Pb;){switch(n=(e=t=Pb).alternate,a=e.flags,e.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:1024&a&&null!==n&&Ri(e,n);break;case 3:if(1024&a)if(9===(n=(e=e.stateNode.containerInfo).nodeType))bc(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":bc(e);break;default:e.textContent=""}break;default:if(1024&a)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(null!==(e=t.sibling)){e.return=t.return,Pb=e;break}Pb=t.return}}(e,t)}finally{Gb=i,Ju.p=a,Zu.T=r}}Fy=Ly,Ql(),Kl(),Yl()}var c,u,d}function Ql(){if(Fy===Ly){Fy=Iy;var e=Uy,t=Hy,n=Wy,r=!!(13878&t.flags);if(13878&t.subtreeFlags||r){r=Zu.T,Zu.T=null;var a=Ju.p;Ju.p=jd;var o=Gb;Gb|=Hb;try{zb=n,Rb=e,Ji(t,e),Rb=zb=null,n=Vv;var i=on(e.containerInfo),l=n.focusedElem,s=n.selectionRange;if(i!==l&&l&&l.ownerDocument&&an(l.ownerDocument.documentElement,l)){if(null!==s&&ln(l)){var c=s.start,u=s.end;if(void 0===u&&(u=c),"selectionStart"in l)l.selectionStart=c,l.selectionEnd=Math.min(u,l.value.length);else{var d=l.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=l.textContent.length,h=Math.min(s.start,m),g=void 0===s.end?h:Math.min(s.end,m);!p.extend&&h>g&&(i=g,g=h,h=i);var b=rn(l,h),y=rn(l,g);if(b&&y&&(1!==p.rangeCount||p.anchorNode!==b.node||p.anchorOffset!==b.offset||p.focusNode!==y.node||p.focusOffset!==y.offset)){var v=d.createRange();v.setStart(b.node,b.offset),p.removeAllRanges(),h>g?(p.addRange(v),p.extend(y.node,y.offset)):(v.setEnd(y.node,y.offset),p.addRange(v))}}}}for(d=[],p=l;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof l.focus&&l.focus(),l=0;l<d.length;l++){var w=d[l];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}Rw=!!Bv,Vv=Bv=null}finally{Gb=o,Ju.p=a,Zu.T=r}}e.current=t,Fy=My}}function Kl(){if(Fy===My){Fy=Iy;var e=Uy,t=Hy,n=Wy,r=!!(8772&t.flags);if(8772&t.subtreeFlags||r){r=Zu.T,Zu.T=null;var a=Ju.p;Ju.p=jd;var o=Gb;Gb|=Hb;try{null!==Cd&&"function"==typeof Cd.markLayoutEffectsStarted&&Cd.markLayoutEffectsStarted(n),zb=n,Rb=e,qi(e,t.alternate,t),Rb=zb=null,null!==Cd&&"function"==typeof Cd.markLayoutEffectsStopped&&Cd.markLayoutEffectsStopped()}finally{Gb=o,Ju.p=a,Zu.T=r}}Fy=$y}}function Yl(){if(Fy===Dy||Fy===$y){Fy=Iy,fd();var e=Uy,t=Hy,n=Wy,r=qy,a=!!(10256&t.subtreeFlags)||!!(10256&t.flags);a?Fy=Oy:(Fy=Iy,Hy=Uy=null,Xl(e,e.pendingLanes),Jy=0,ev=null);var o=e.pendingLanes;if(0===o&&(zy=null),a||cs(e),a=fe(n),t=t.stateNode,Sd&&"function"==typeof Sd.onCommitFiberRoot)try{var i=!(128&~t.current.flags);switch(a){case jd:var l=hd;break;case Ad:l=gd;break;case Id:l=bd;break;case Ld:l=vd;break;default:l=bd}Sd.onCommitFiberRoot(xd,t,l,i)}catch(d){Ed||(Ed=!0,console.error("React instrumentation encountered an error: %s",d))}if(Td&&e.memoizedUpdaters.clear(),Db.forEach(function(e){return e()}),null!==r){i=Zu.T,l=Ju.p,Ju.p=jd,Zu.T=null;try{var s=e.onRecoverableError;for(t=0;t<r.length;t++){var c=r[t],u=Gl(c.stack);$e(c.source,s,c.value,u)}}finally{Zu.T=i,Ju.p=l}}3&Wy&&Zl(),fs(e),o=e.pendingLanes,4194090&n&&42&o?(ih=!0,e===Yy?Ky++:(Ky=0,Yy=e)):Ky=0,ps(0),q()}}function Gl(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function Xl(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,lr(t)))}function Zl(e){return Ql(),Kl(),Yl(),Jl()}function Jl(){if(Fy!==Oy)return!1;var e=Uy,t=By;By=0;var n=fe(Wy),r=Id>n?Id:n;n=Zu.T;var a=Ju.p;try{Ju.p=r,Zu.T=null,r=Vy,Vy=null;var o=Uy,i=Wy;if(Fy=Iy,Hy=Uy=null,Wy=0,(Gb&(Ub|Hb))!==Fb)throw Error("Cannot flush passive effects while already rendering.");Gy=!0,Xy=!1,null!==Cd&&"function"==typeof Cd.markPassiveEffectsStarted&&Cd.markPassiveEffectsStarted(i);var l=Gb;if(Gb|=Hb,yl(o.current),ul(o,o.current,i,r),null!==Cd&&"function"==typeof Cd.markPassiveEffectsStopped&&Cd.markPassiveEffectsStopped(),cs(o),Gb=l,ps(0,!1),Xy?o===ev?Jy++:(Jy=0,ev=o):Jy=0,Xy=Gy=!1,Sd&&"function"==typeof Sd.onPostCommitFiberRoot)try{Sd.onPostCommitFiberRoot(xd,o)}catch(c){Ed||(Ed=!0,console.error("React instrumentation encountered an error: %s",c))}var s=o.current.stateNode;return s.effectDuration=0,s.passiveEffectDuration=0,!0}finally{Ju.p=a,Zu.T=n,Xl(e,t)}}function es(e,t,n){t=fn(n,t),null!==(e=Pr(e,t=Fo(e.stateNode,t,2),2))&&(ie(e,2),fs(e))}function ts(e,t,n){if(tv=!1,3===e.tag)es(e,e,n);else{for(;null!==t;){if(3===t.tag)return void es(t,e,n);if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===zy||!zy.has(r)))return e=fn(n,e),void(null!==(r=Pr(t,n=Uo(2),2))&&(Ho(n,r,t,e),ie(r,2),fs(r)))}t=t.return}console.error("Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.\n\nError message:\n\n%s",n)}}function ns(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Ob;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(my=!0,a.add(n),r=rs.bind(null,e,t,n),Td&&ds(e,n),t.then(r,r))}function rs(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,xl()&&null===Zu.actQueue&&console.error("A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\n\nWhen testing, code that resolves suspended data should be wrapped into act(...):\n\nact(() => {\n /* finish loading suspended data */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act"),Xb===e&&(Jb&n)===n&&(gy===Qb||gy===qb&&(62914560&Jb)===Jb&&pd()-Ey<Ty?(Gb&Ub)===Fb&&jl(e,0):vy|=n,ky===Jb&&(ky=0)),fs(e)}function as(e,t){0===t&&(t=ae()),null!==(e=gn(e,t))&&(ie(e,t),fs(e))}function os(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),as(e,n)}function is(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==r&&r.delete(t),as(e,n)}function ls(e,t,n){if(67117056&t.subtreeFlags)for(t=t.child;null!==t;){var r=e,a=t,o=a.type===$u;o=n||o,22!==a.tag?67108864&a.flags?o&&$e(a,ss,r,a,(a.mode&km)===gm):ls(r,a,o):null===a.memoizedState&&(o&&8192&a.flags?$e(a,ss,r,a):67108864&a.subtreeFlags&&$e(a,ls,r,a,o)),t=t.sibling}}function ss(e,t){var n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];B(!0);try{rl(t),n&&wl(t),ol(e,t.alternate,t,!1),n&&fl(e,t,0,null,!1)}finally{B(!1)}}function cs(e){var t=!0;e.current.mode&(vm|wm)||(t=!1),ls(e,e.current,t)}function us(e){if((Gb&Ub)===Fb){var t=e.tag;if(3===t||1===t||0===t||11===t||14===t||15===t){if(t=N(e)||"ReactComponent",null!==nv){if(nv.has(t))return;nv.add(t)}else nv=new Set([t]);$e(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")})}}}function ds(e,t){Td&&e.memoizedUpdaters.forEach(function(n){ue(e,n,t)})}function fs(e){e!==iv&&null===e.next&&(null===iv?ov=iv=e:iv=iv.next=e),cv=!0,null!==Zu.actQueue?sv||(sv=!0,ws()):lv||(lv=!0,ws())}function ps(e,t){if(!uv&&cv){uv=!0;do{for(var n=!1,r=ov;null!==r;){if(0!==e){var a=r.pendingLanes;if(0===a)var o=0;else{var i=r.suspendedLanes,l=r.pingedLanes;o=(1<<31-_d(42|e)+1)-1,o=201326741&(o&=a&~(i&~l))?201326741&o|1:o?2|o:0}0!==o&&(n=!0,ys(r,o))}else o=Jb,!(3&(o=ee(r,r===Xb?o:0,null!==r.cancelPendingCommit||r.timeoutHandle!==Gv)))||te(r,o)||(n=!0,ys(r,o));r=r.next}}while(n);uv=!1}}function ms(){hs()}function hs(){cv=sv=lv=!1;var e=0;0!==dv&&(function(){var e=window.event;if(e&&"popstate"===e.type)return e!==Qv&&(Qv=e,!0);return Qv=null,!1}()&&(e=dv),dv=0);for(var t=pd(),n=null,r=ov;null!==r;){var a=r.next,o=gs(r,t);0===o?(r.next=null,null===n?ov=a:n.next=a,null===a&&(iv=n)):(n=r,(0!==e||3&o)&&(cv=!0)),r=a}ps(e)}function gs(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=-62914561&e.pendingLanes;0<o;){var i=31-_d(o),l=1<<i,s=a[i];-1===s?0!==(l&n)&&0===(l&r)||(a[i]=ne(l,t)):s<=t&&(e.expiredLanes|=l),o&=~l}if(n=Jb,n=ee(e,e===(t=Xb)?n:0,null!==e.cancelPendingCommit||e.timeoutHandle!==Gv),r=e.callbackNode,0===n||e===t&&(uy===ny||uy===cy)||null!==e.cancelPendingCommit)return null!==r&&vs(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||te(e,n)){if((t=n&-n)===e.callbackPriority&&(null===Zu.actQueue||r===fv))return t;switch(vs(r),fe(n)){case jd:case Ad:n=gd;break;case Id:n=bd;break;case Ld:n=vd;break;default:n=bd}return r=bs.bind(null,e),null!==Zu.actQueue?(Zu.actQueue.push(r),n=fv):n=cd(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&vs(r),e.callbackPriority=2,e.callbackNode=null,2}function bs(e,t){if(ih=oh=!1,Fy!==Iy&&Fy!==Oy)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Zl()&&e.callbackNode!==n)return null;var r=Jb;return 0===(r=ee(e,e===Xb?r:0,null!==e.cancelPendingCommit||e.timeoutHandle!==Gv))?null:(Tl(e,r,t),gs(e,pd()),null!=e.callbackNode&&e.callbackNode===n?bs.bind(null,e):null)}function ys(e,t){if(Zl())return null;oh=ih,ih=!1,Tl(e,t,!0)}function vs(e){e!==fv&&null!==e&&ud(e)}function ws(){null!==Zu.actQueue&&Zu.actQueue.push(function(){return hs(),null}),Zv(function(){(Gb&(Ub|Hb))!==Fb?cd(hd,ms):hs()})}function ks(){return 0===dv&&(dv=re()),dv}function xs(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:(U(e,"action"),zt(""+e))}function Ss(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Cs(e,t,n){e.currentTarget=n;try{t(e)}catch(r){ub(r)}e.currentTarget=null}function Es(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n];e:{var a=void 0,o=r.event;if(r=r.listeners,t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==a&&o.isPropagationStopped())break e;null!==s?$e(s,Cs,o,l,c):Cs(o,l,c),a=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,c=l.currentTarget,l=l.listener,s!==a&&o.isPropagationStopped())break e;null!==s?$e(s,Cs,o,l,c):Cs(o,l,c),a=s}}}}function Ts(e,t){mv.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n=t[Fd];void 0===n&&(n=t[Fd]=new Set);var r=e+"__bubble";n.has(r)||(Ps(t,e,2,!1),n.add(r))}function _s(e,t,n){mv.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var r=0;t&&(r|=4),Ps(n,e,r,t)}function Ns(e){if(!e[hv]){e[hv]=!0,Vd.forEach(function(t){"selectionchange"!==t&&(mv.has(t)||_s(t,!1,e),_s(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[hv]||(t[hv]=!0,_s("selectionchange",!1,t))}}function Ps(e,t,n,r){switch(cu(t)){case jd:var a=au;break;case Ad:a=ou;break;default:a=iu}n=a.bind(null,t,n,e),a=void 0,!ep||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function zs(e,t,n,r,a){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===a)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&i.stateNode.containerInfo===a)return;i=i.return}for(;null!==l;){if(null===(i=he(l)))return;if(5===(s=i.tag)||6===s||26===s||27===s){r=o=i;continue e}l=l.parentNode}}r=r.return}At(function(){var r=o,a=Rt(n),i=[];e:{var l=om.get(e);if(void 0!==l){var s=cp,c=e;switch(e){case"keypress":if(0===Mt(n))break e;case"keydown":case"keyup":s=Sp;break;case"focusin":c="focus",s=hp;break;case"focusout":c="blur",s=hp;break;case"beforeblur":case"afterblur":s=hp;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=pp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=mp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Ep;break;case Zp:case Jp:case em:s=gp;break;case am:s=Tp;break;case"scroll":case"scrollend":s=dp;break;case"wheel":s=_p;break;case"copy":case"cut":case"paste":s=bp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Cp;break;case"toggle":case"beforetoggle":s=Np}var u=!!(4&t),d=!u&&("scroll"===e||"scrollend"===e),f=u?null!==l?l+"Capture":null:l;u=[];for(var p,m=r;null!==m;){var h=m;if(p=h.stateNode,5!==(h=h.tag)&&26!==h&&27!==h||null===p||null===f||null!=(h=It(m,f))&&u.push(Rs(m,h,p)),d)break;m=m.return}0<u.length&&(l=new s(l,c,null,n,a),i.push({event:l,listeners:u}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===Yf||!(c=n.relatedTarget||n.fromElement)||!he(c)&&!c[Od])&&(s||l)&&(l=a.window===a?a:(l=a.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(c=(c=n.relatedTarget||n.toElement)?he(c):null)&&(d=k(c),u=c.tag,c!==d||5!==u&&27!==u&&6!==u)&&(c=null)):(s=null,c=r),s!==c)){if(u=pp,h="onMouseLeave",f="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(u=Cp,h="onPointerLeave",f="onPointerEnter",m="pointer"),d=null==s?l:be(s),p=null==c?l:be(c),(l=new u(h,m+"leave",s,n,a)).target=d,l.relatedTarget=p,h=null,he(a)===r&&((u=new u(f,m+"enter",c,n,a)).target=p,u.relatedTarget=d,h=u),d=h,s&&c)e:{for(f=c,m=0,p=u=s;p;p=As(p))m++;for(p=0,h=f;h;h=As(h))p++;for(;0<m-p;)u=As(u),m--;for(;0<p-m;)f=As(f),p--;for(;m--;){if(u===f||null!==f&&u===f.alternate)break e;u=As(u),f=As(f)}u=null}else u=null;null!==s&&Is(i,l,s,u,!1),null!==c&&null!==d&&Is(i,d,c,u,!0)}if("select"===(s=(l=r?be(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=Kt;else if(Bt(l))if(Hp)g=en;else{g=Zt;var b=Xt}else!(s=l.nodeName)||"input"!==s.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?r&&Tt(r.elementType)&&(g=Kt):g=Jt;switch(g&&(g=g(e,r))?Vt(i,g,n,a):(b&&b(e,l,r),"focusout"===e&&r&&"number"===l.type&&null!=r.memoizedProps.value&&Ke(l,"number",l.value)),b=r?be(r):window,e){case"focusin":(Bt(b)||"true"===b.contentEditable)&&(Vp=b,qp=r,Qp=null);break;case"focusout":Qp=qp=Vp=null;break;case"mousedown":Kp=!0;break;case"contextmenu":case"mouseup":case"dragend":Kp=!1,sn(i,n,a);break;case"selectionchange":if(Bp)break;case"keydown":case"keyup":sn(i,n,a)}var y;if(Rp)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else Dp?Ht(e,n)&&(v="onCompositionEnd"):"keydown"===e&&n.keyCode===zp&&(v="onCompositionStart");v&&(Ip&&"ko"!==n.locale&&(Dp||"onCompositionStart"!==v?"onCompositionEnd"===v&&Dp&&(y=Lt()):(ip="value"in(op=a)?op.value:op.textContent,Dp=!0)),0<(b=js(r,v)).length&&(v=new yp(v,e,null,n,a),i.push({event:v,listeners:b}),y?v.data=y:null!==(y=Wt(n))&&(v.data=y))),(y=Ap?function(e,t){switch(e){case"compositionend":return Wt(t);case"keypress":return t.which!==Lp?null:($p=!0,Mp);case"textInput":return(e=t.data)===Mp&&$p?null:e;default:return null}}(e,n):function(e,t){if(Dp)return"compositionend"===e||!Rp&&Ht(e,t)?(e=Lt(),lp=ip=op=null,Dp=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ip&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(v=js(r,"onBeforeInput")).length&&(b=new vp("onBeforeInput","beforeinput",null,n,a),i.push({event:b,listeners:v}),b.data=y)),function(e,t,n,r,a){if("submit"===t&&n&&n.stateNode===a){var o=xs((a[Dd]||null).action),i=r.submitter;i&&null!==(t=(t=i[Dd]||null)?xs(t.formAction):i.getAttribute("formAction"))&&(o=t,i=null);var l=new cp("action","action",null,r,a);e.push({event:l,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==dv){var e=i?Ss(a,i):new FormData(a),t={pending:!0,data:e,method:a.method,action:o};Object.freeze(t),Ja(n,t,null,e)}}else"function"==typeof o&&(l.preventDefault(),t={pending:!0,data:e=i?Ss(a,i):new FormData(a),method:a.method,action:o},Object.freeze(t),Ja(n,t,o,e))},currentTarget:a}]})}}(i,e,r,n,a)}Es(i,t)})}function Rs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function js(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;if(5!==(a=a.tag)&&26!==a&&27!==a||null===o||(null!=(a=It(e,n))&&r.unshift(Rs(e,a,o)),null!=(a=It(e,t))&&r.push(Rs(e,a,o))),3===e.tag)return r;e=e.return}return[]}function As(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Is(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(l=l.tag,null!==s&&s===r)break;5!==l&&26!==l&&27!==l||null===c||(s=c,a?null!=(c=It(n,o))&&i.unshift(Rs(n,c,s)):a||null!=(c=It(n,o))&&i.push(Rs(n,c,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}function Ls(e,t){!function(e,t){var n,r=[];for(n in t)Nt(e,n)||r.push(n);t=r.map(function(e){return"`"+e+"`"}).join(", "),1===r.length?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<r.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}(e,t),"input"!==e&&"textarea"!==e&&"select"!==e||null==t||null!==t.value||Hf||(Hf=!0,"select"===e&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var n={registrationNameDependencies:qd,possibleRegistrationNames:Qd};Tt(e)||"string"==typeof t.is||function(e,t,n){var r,a=[];for(r in t)Pt(e,r,t[r],n)||a.push(r);t=a.map(function(e){return"`"+e+"`"}).join(", "),1===a.length?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<a.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}(e,t,n),t.contentEditable&&!t.suppressContentEditableWarning&&null!=t.children&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function Ms(e,t,n,r){t!==n&&(n=Os(n),Os(t)!==n&&(r[e]=t))}function $s(e,t){!1===t?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function Ds(e,t){return(e=e.namespaceURI===If||e.namespaceURI===Lf?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName)).innerHTML=t,e.innerHTML}function Os(e){return O(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",D(e)),F(e)),("string"==typeof e?e:""+e).replace(Cv,"\n").replace(Ev,"")}function Fs(e,t){return t=Os(t),Os(e)===t}function Us(){}function Hs(e,t,n,r,a,o){switch(n){case"children":"string"==typeof r?(xt(r,t,!1),"body"===t||"textarea"===t&&""===r||St(e,r)):"number"!=typeof r&&"bigint"!=typeof r||(xt(""+r,t,!1),"body"!==t&&St(e,""+r));break;case"className":Te(e,"class",r);break;case"tabIndex":Te(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Te(e,n,r);break;case"style":Et(e,r,o);break;case"data":if("object"!==t){Te(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){"src"===n?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',n,n):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',n,n),e.removeAttribute(n);break}if(null==r||"function"==typeof r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}U(r,n),r=zt(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(null!=r&&("form"===t?"formAction"===n?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):"function"==typeof r&&(null==a.encType&&null==a.method||kv||(kv=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),null==a.target||wv||(wv=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):"input"===t||"button"===t?"action"===n?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):"input"!==t||"submit"===a.type||"image"===a.type||yv?"button"!==t||null==a.type||"submit"===a.type||yv?"function"==typeof r&&(null==a.name||vv||(vv=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),null==a.formEncType&&null==a.formMethod||kv||(kv=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),null==a.formTarget||wv||(wv=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(yv=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(yv=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):"action"===n?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),"function"==typeof r){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof o&&("formAction"===n?("input"!==t&&Hs(e,t,"name",a.name,a,null),Hs(e,t,"formEncType",a.formEncType,a,null),Hs(e,t,"formMethod",a.formMethod,a,null),Hs(e,t,"formTarget",a.formTarget,a,null)):(Hs(e,t,"encType",a.encType,a,null),Hs(e,t,"method",a.method,a,null),Hs(e,t,"target",a.target,a,null))),null==r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}U(r,n),r=zt(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&("function"!=typeof r&&$s(n,r),e.onclick=Us);break;case"onScroll":null!=r&&("function"!=typeof r&&$s(n,r),Ts("scroll",e));break;case"onScrollEnd":null!=r&&("function"!=typeof r&&$s(n,r),Ts("scrollend",e));break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(null!=(n=r.__html)){if(null!=a.children)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"muted":e.muted=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"==typeof r||"boolean"==typeof r||"symbol"==typeof r){e.removeAttribute("xlink:href");break}U(r,n),n=zt(""+r),e.setAttributeNS(Tv,"xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!=typeof r&&"symbol"!=typeof r?(U(r,n),e.setAttribute(n,""+r)):e.removeAttribute(n);break;case"inert":""!==r||Sv[n]||(Sv[n]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",n));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!=typeof r&&"symbol"!=typeof r?(U(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!=typeof r&&"symbol"!=typeof r&&!isNaN(r)&&1<=r?(U(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"==typeof r||"symbol"==typeof r||isNaN(r)?e.removeAttribute(n):(U(r,n),e.setAttribute(n,r));break;case"popover":Ts("beforetoggle",e),Ts("toggle",e),Ee(e,"popover",r);break;case"xlinkActuate":_e(e,Tv,"xlink:actuate",r);break;case"xlinkArcrole":_e(e,Tv,"xlink:arcrole",r);break;case"xlinkRole":_e(e,Tv,"xlink:role",r);break;case"xlinkShow":_e(e,Tv,"xlink:show",r);break;case"xlinkTitle":_e(e,Tv,"xlink:title",r);break;case"xlinkType":_e(e,Tv,"xlink:type",r);break;case"xmlBase":_e(e,_v,"xml:base",r);break;case"xmlLang":_e(e,_v,"xml:lang",r);break;case"xmlSpace":_e(e,_v,"xml:space",r);break;case"is":null!=o&&console.error('Cannot update the "is" prop after it has been initialized.'),Ee(e,"is",r);break;case"innerText":case"textContent":break;case"popoverTarget":xv||null==r||"object"!=typeof r||(xv=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",r));default:!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1]?Ee(e,n=_t(n),r):qd.hasOwnProperty(n)&&null!=r&&"function"!=typeof r&&$s(n,r)}}function Ws(e,t,n,r,a,o){switch(n){case"style":Et(e,r,o);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(null!=(n=r.__html)){if(null!=a.children)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case"children":"string"==typeof r?St(e,r):("number"==typeof r||"bigint"==typeof r)&&St(e,""+r);break;case"onScroll":null!=r&&("function"!=typeof r&&$s(n,r),Ts("scroll",e));break;case"onScrollEnd":null!=r&&("function"!=typeof r&&$s(n,r),Ts("scrollend",e));break;case"onClick":null!=r&&("function"!=typeof r&&$s(n,r),e.onclick=Us);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:qd.hasOwnProperty(n)?null!=r&&"function"!=typeof r&&$s(n,r):"o"!==n[0]||"n"!==n[1]||(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),"function"==typeof(o=null!=(o=e[Dd]||null)?o[n]:null)&&e.removeEventListener(t,o,a),"function"!=typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):Ee(e,n,r):("function"!=typeof o&&null!==o&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a))}}function Bs(e,t,n){switch(Ls(t,n),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ts("error",e),Ts("load",e);var r,a=!1,o=!1;for(r in n)if(n.hasOwnProperty(r)){var i=n[r];if(null!=i)switch(r){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Hs(e,t,r,i,n,null)}}return o&&Hs(e,t,"srcSet",n.srcSet,n,null),void(a&&Hs(e,t,"src",n.src,n,null));case"input":xe("input",n),Ts("invalid",e);var l=r=i=o=null,s=null,c=null;for(a in n)if(n.hasOwnProperty(a)){var u=n[a];if(null!=u)switch(a){case"name":o=u;break;case"type":i=u;break;case"checked":s=u;break;case"defaultChecked":c=u;break;case"value":r=u;break;case"defaultValue":l=u;break;case"children":case"dangerouslySetInnerHTML":if(null!=u)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Hs(e,t,a,u,n,null)}}return Ve(0,n),Qe(e,r,l,s,c,i,o,!1),void Ue(e);case"select":for(o in xe("select",n),Ts("invalid",e),a=i=r=null,n)if(n.hasOwnProperty(o)&&null!=(l=n[o]))switch(o){case"value":r=l;break;case"defaultValue":i=l;break;case"multiple":a=l;default:Hs(e,t,o,l,n,null)}return Ze(e,n),t=r,n=i,e.multiple=!!a,void(null!=t?Xe(e,!!a,t,!1):null!=n&&Xe(e,!!a,n,!0));case"textarea":for(i in xe("textarea",n),Ts("invalid",e),r=o=a=null,n)if(n.hasOwnProperty(i)&&null!=(l=n[i]))switch(i){case"value":a=l;break;case"defaultValue":o=l;break;case"children":r=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Hs(e,t,i,l,n,null)}return Je(0,n),tt(e,a,o,r),void Ue(e);case"option":for(s in Ye(0,n),n)if(n.hasOwnProperty(s)&&null!=(a=n[s]))if("selected"===s)e.selected=a&&"function"!=typeof a&&"symbol"!=typeof a;else Hs(e,t,s,a,n,null);return;case"dialog":Ts("beforetoggle",e),Ts("toggle",e),Ts("cancel",e),Ts("close",e);break;case"iframe":case"object":Ts("load",e);break;case"video":case"audio":for(a=0;a<pv.length;a++)Ts(pv[a],e);break;case"image":Ts("error",e),Ts("load",e);break;case"details":Ts("toggle",e);break;case"embed":case"source":case"link":Ts("error",e),Ts("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&null!=(a=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Hs(e,t,c,a,n,null)}return;default:if(Tt(t)){for(u in n)n.hasOwnProperty(u)&&(void 0!==(a=n[u])&&Ws(e,t,u,a,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(a=n[l])&&Hs(e,t,l,a,n,null))}function Vs(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function qs(e){var t={};e=e.style;for(var n=0;n<e.length;n++){var r=e[n];t[r]=e.getPropertyValue(r)}return t}function Qs(e,t,n){if(null!=t&&"object"!=typeof t)console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var r,a,o=r="";for(a in t)if(t.hasOwnProperty(a)){var i=t[a];null!=i&&"boolean"!=typeof i&&""!==i&&(0===a.indexOf("--")?(H(i,a),r+=o+a+":"+(""+i).trim()):"number"!=typeof i||0===i||Af.has(a)?(H(i,a),r+=o+a.replace(Sf,"-$1").toLowerCase().replace(Cf,"-ms-")+":"+(""+i).trim()):r+=o+a.replace(Sf,"-$1").toLowerCase().replace(Cf,"-ms-")+":"+i+"px",o=";")}r=r||null,(t=e.getAttribute("style"))!==r&&(r=Os(r),Os(t)!==r&&(n.style=qs(e)))}}function Ks(e,t,n,r,a,o){if(a.delete(n),null===(e=e.getAttribute(n)))switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return}else if(null!=r)switch(typeof r){case"function":case"symbol":case"boolean":break;default:if(U(r,t),e===""+r)return}Ms(t,e,r,o)}function Ys(e,t,n,r,a,o){if(a.delete(n),null===(e=e.getAttribute(n))){switch(typeof r){case"function":case"symbol":return}if(!r)return}else switch(typeof r){case"function":case"symbol":break;default:if(r)return}Ms(t,e,r,o)}function Gs(e,t,n,r,a,o){if(a.delete(n),null===(e=e.getAttribute(n)))switch(typeof r){case"undefined":case"function":case"symbol":return}else if(null!=r)switch(typeof r){case"function":case"symbol":break;default:if(U(r,n),e===""+r)return}Ms(t,e,r,o)}function Xs(e,t,n,r,a,o){if(a.delete(n),null===(e=e.getAttribute(n)))switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(r))return}else if(null!=r)switch(typeof r){case"function":case"symbol":case"boolean":break;default:if(!isNaN(r)&&(U(r,t),e===""+r))return}Ms(t,e,r,o)}function Zs(e,t,n,r,a,o){if(a.delete(n),null===(e=e.getAttribute(n)))switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return}else if(null!=r)switch(typeof r){case"function":case"symbol":case"boolean":break;default:if(U(r,t),e===(n=zt(""+r)))return}Ms(t,e,r,o)}function Js(e,t,n,r){for(var a={},o=new Set,i=e.attributes,l=0;l<i.length;l++)switch(i[l].name.toLowerCase()){case"value":case"checked":case"selected":break;default:o.add(i[l].name)}if(Tt(t)){for(var s in n)if(n.hasOwnProperty(s)){var c=n[s];if(null!=c)if(qd.hasOwnProperty(s))"function"!=typeof c&&$s(s,c);else if(!0!==n.suppressHydrationWarning)switch(s){case"children":"string"!=typeof c&&"number"!=typeof c||Ms("children",e.textContent,c,a);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":i=e.innerHTML,null!=(c=c?c.__html:void 0)&&Ms(s,i,c=Ds(e,c),a);continue;case"style":o.delete(s),Qs(e,c,a);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":o.delete(s.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",s);continue;case"className":o.delete("class"),Ms("className",i=Ce(e,"class",c),c,a);continue;default:r.context===Uv&&"svg"!==t&&"math"!==t?o.delete(s.toLowerCase()):o.delete(s),Ms(s,i=Ce(e,s,c),c,a)}}}else for(c in n)if(n.hasOwnProperty(c)&&null!=(s=n[c]))if(qd.hasOwnProperty(c))"function"!=typeof s&&$s(c,s);else if(!0!==n.suppressHydrationWarning)switch(c){case"children":"string"!=typeof s&&"number"!=typeof s||Ms("children",e.textContent,s,a);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":i=e.innerHTML,null!=(s=s?s.__html:void 0)&&(i!==(s=Ds(e,s))&&(a[c]={__html:i}));continue;case"className":Ks(e,c,"class",s,o,a);continue;case"tabIndex":Ks(e,c,"tabindex",s,o,a);continue;case"style":o.delete(c),Qs(e,s,a);continue;case"multiple":o.delete(c),Ms(c,e.multiple,s,a);continue;case"muted":o.delete(c),Ms(c,e.muted,s,a);continue;case"autoFocus":o.delete("autofocus"),Ms(c,e.autofocus,s,a);continue;case"data":if("object"!==t){o.delete(c),Ms(c,i=e.getAttribute("data"),s,a);continue}case"src":case"href":if(!(""!==s||"a"===t&&"href"===c||"object"===t&&"data"===c)){"src"===c?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',c,c):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',c,c);continue}Zs(e,c,c,s,o,a);continue;case"action":case"formAction":if(i=e.getAttribute(c),"function"==typeof s){o.delete(c.toLowerCase()),"formAction"===c?(o.delete("name"),o.delete("formenctype"),o.delete("formmethod"),o.delete("formtarget")):(o.delete("enctype"),o.delete("method"),o.delete("target"));continue}if(i===Nv){o.delete(c.toLowerCase()),Ms(c,"function",s,a);continue}Zs(e,c,c.toLowerCase(),s,o,a);continue;case"xlinkHref":Zs(e,c,"xlink:href",s,o,a);continue;case"contentEditable":Gs(e,c,"contenteditable",s,o,a);continue;case"spellCheck":Gs(e,c,"spellcheck",s,o,a);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Gs(e,c,c,s,o,a);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":Ys(e,c,c.toLowerCase(),s,o,a);continue;case"capture":case"download":e:{l=e;var u=i=c,d=a;if(o.delete(u),null===(l=l.getAttribute(u)))switch(typeof s){case"undefined":case"function":case"symbol":break e;default:if(!1===s)break e}else if(null!=s)switch(typeof s){case"function":case"symbol":break;case"boolean":if(!0===s&&""===l)break e;break;default:if(U(s,i),l===""+s)break e}Ms(i,l,s,d)}continue;case"cols":case"rows":case"size":case"span":e:{if(l=e,u=i=c,d=a,o.delete(u),null===(l=l.getAttribute(u)))switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(s)||1>s)break e}else if(null!=s)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(s)||1>s)&&(U(s,i),l===""+s))break e}Ms(i,l,s,d)}continue;case"rowSpan":Xs(e,c,"rowspan",s,o,a);continue;case"start":Xs(e,c,c,s,o,a);continue;case"xHeight":Ks(e,c,"x-height",s,o,a);continue;case"xlinkActuate":Ks(e,c,"xlink:actuate",s,o,a);continue;case"xlinkArcrole":Ks(e,c,"xlink:arcrole",s,o,a);continue;case"xlinkRole":Ks(e,c,"xlink:role",s,o,a);continue;case"xlinkShow":Ks(e,c,"xlink:show",s,o,a);continue;case"xlinkTitle":Ks(e,c,"xlink:title",s,o,a);continue;case"xlinkType":Ks(e,c,"xlink:type",s,o,a);continue;case"xmlBase":Ks(e,c,"xml:base",s,o,a);continue;case"xmlLang":Ks(e,c,"xml:lang",s,o,a);continue;case"xmlSpace":Ks(e,c,"xml:space",s,o,a);continue;case"inert":""!==s||Sv[c]||(Sv[c]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",c)),Ys(e,c,c,s,o,a);continue;default:if(!(2<c.length)||"o"!==c[0]&&"O"!==c[0]||"n"!==c[1]&&"N"!==c[1]){l=_t(c),i=!1,r.context===Uv&&"svg"!==t&&"math"!==t?o.delete(l.toLowerCase()):(u=c.toLowerCase(),null!==(u=$f.hasOwnProperty(u)&&$f[u]||null)&&u!==c&&(i=!0,o.delete(u)),o.delete(l));e:if(u=e,d=l,l=s,Se(d))if(u.hasAttribute(d))u=u.getAttribute(d),U(l,d),l=u===""+l?l:u;else{switch(typeof l){case"function":case"symbol":break e;case"boolean":if("data-"!==(u=d.toLowerCase().slice(0,5))&&"aria-"!==u)break e}l=void 0===l?void 0:null}else l=void 0;i||Ms(c,l,s,a)}}return 0<o.size&&!0!==n.suppressHydrationWarning&&function(e,t,n){t.forEach(function(t){n[Vs(t)]="style"===t?qs(e):e.getAttribute(t)})}(e,o,a),0===Object.keys(a).length?null:a}function ec(e){return 9===e.nodeType?e:e.ownerDocument}function tc(e){switch(e){case Lf:return Hv;case If:return Wv;default:return Uv}}function nc(e,t){if(e===Uv)switch(t){case"svg":return Hv;case"math":return Wv;default:return Uv}return e===Hv&&"foreignObject"===t?Uv:e}function rc(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}function ac(e){setTimeout(function(){throw e})}function oc(e,t,n){switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&e.focus();break;case"img":n.src?e.src=n.src:n.srcSet&&(e.srcset=n.srcSet)}}function ic(e,t,n,r){!function(e,t,n,r){switch(Ls(t,r),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,o=null,i=null,l=null,s=null,c=null,u=null;for(p in n){var d=n[p];if(n.hasOwnProperty(p)&&null!=d)switch(p){case"checked":case"value":break;case"defaultValue":s=d;default:r.hasOwnProperty(p)||Hs(e,t,p,null,r,d)}}for(var f in r){var p=r[f];if(d=n[f],r.hasOwnProperty(f)&&(null!=p||null!=d))switch(f){case"type":o=p;break;case"name":a=p;break;case"checked":c=p;break;case"defaultChecked":u=p;break;case"value":i=p;break;case"defaultValue":l=p;break;case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:p!==d&&Hs(e,t,f,p,r,d)}}return t="checkbox"===n.type||"radio"===n.type?null!=n.checked:null!=n.value,r="checkbox"===r.type||"radio"===r.type?null!=r.checked:null!=r.value,t||!r||bv||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),bv=!0),!t||r||gv||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),gv=!0),void qe(e,i,l,s,c,u,o,a);case"select":for(o in p=i=l=f=null,n)if(s=n[o],n.hasOwnProperty(o)&&null!=s)switch(o){case"value":break;case"multiple":p=s;default:r.hasOwnProperty(o)||Hs(e,t,o,null,r,s)}for(a in r)if(o=r[a],s=n[a],r.hasOwnProperty(a)&&(null!=o||null!=s))switch(a){case"value":f=o;break;case"defaultValue":l=o;break;case"multiple":i=o;default:o!==s&&Hs(e,t,a,o,r,s)}return r=l,t=i,n=p,void(null!=f?Xe(e,!!t,f,!1):!!n!=!!t&&(null!=r?Xe(e,!!t,r,!0):Xe(e,!!t,t?[]:"",!1)));case"textarea":for(l in p=f=null,n)if(a=n[l],n.hasOwnProperty(l)&&null!=a&&!r.hasOwnProperty(l))switch(l){case"value":case"children":break;default:Hs(e,t,l,null,r,a)}for(i in r)if(a=r[i],o=n[i],r.hasOwnProperty(i)&&(null!=a||null!=o))switch(i){case"value":f=a;break;case"defaultValue":p=a;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=a)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:a!==o&&Hs(e,t,i,a,r,o)}return void et(e,f,p);case"option":for(var m in n)f=n[m],n.hasOwnProperty(m)&&null!=f&&!r.hasOwnProperty(m)&&("selected"===m?e.selected=!1:Hs(e,t,m,null,r,f));for(s in r)f=r[s],p=n[s],!r.hasOwnProperty(s)||f===p||null==f&&null==p||("selected"===s?e.selected=f&&"function"!=typeof f&&"symbol"!=typeof f:Hs(e,t,s,f,r,p));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var h in n)f=n[h],n.hasOwnProperty(h)&&null!=f&&!r.hasOwnProperty(h)&&Hs(e,t,h,null,r,f);for(c in r)if(f=r[c],p=n[c],r.hasOwnProperty(c)&&f!==p&&(null!=f||null!=p))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Hs(e,t,c,f,r,p)}return;default:if(Tt(t)){for(var g in n)f=n[g],n.hasOwnProperty(g)&&void 0!==f&&!r.hasOwnProperty(g)&&Ws(e,t,g,void 0,r,f);for(u in r)f=r[u],p=n[u],!r.hasOwnProperty(u)||f===p||void 0===f&&void 0===p||Ws(e,t,u,f,r,p);return}}for(var b in n)f=n[b],n.hasOwnProperty(b)&&null!=f&&!r.hasOwnProperty(b)&&Hs(e,t,b,null,r,f);for(d in r)f=r[d],p=n[d],!r.hasOwnProperty(d)||f===p||null==f&&null==p||Hs(e,t,d,f,r,p)}(e,t,n,r),e[Dd]=r}function lc(e){St(e,"")}function sc(e,t,n){e.nodeValue=n}function cc(e){return"head"===e}function uc(e,t){e.removeChild(t)}function dc(e,t){(9===e.nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e).removeChild(t)}function fc(e,t){var n=t,r=0,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if((n=o.data)===Rv){if(0<r&&8>r){n=r;var i=e.ownerDocument;if(n&Iv&&Nc(i.documentElement),n&Lv&&Nc(i.body),n&Mv)for(Nc(n=i.head),i=n.firstChild;i;){var l=i.nextSibling,s=i.nodeName;i[Bd]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===i.rel.toLowerCase()||n.removeChild(i),i=l}}if(0===a)return e.removeChild(o),void yu(t);a--}else n===zv||n===jv||n===Av?a++:r=n.charCodeAt(0)-48;else r=0;n=o}while(n);yu(t)}function pc(e){"function"==typeof(e=e.style).setProperty?e.setProperty("display","none","important"):e.display="none"}function mc(e){e.nodeValue=""}function hc(e,t){t=null!=(t=t[Fv])&&t.hasOwnProperty("display")?t.display:null,e.style.display=null==t||"boolean"==typeof t?"":(""+t).trim()}function gc(e,t){e.nodeValue=t}function bc(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":bc(n),me(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function yc(e){return e.data===Av||e.data===jv&&e.ownerDocument.readyState===Ov}function vc(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if((t=e.data)===zv||t===Av||t===jv||t===$v||t===Dv)break;if(t===Rv)return null}}return e}function wc(e){if(1===e.nodeType){for(var t=e.nodeName.toLowerCase(),n={},r=e.attributes,a=0;a<r.length;a++){var o=r[a];n[Vs(o.name)]="style"===o.name.toLowerCase()?qs(e):o.value}return{type:t,props:n}}return 8===e.nodeType?{type:"Suspense",props:{}}:e.nodeValue}function kc(e,t,n){return null===n||!0!==n[Pv]?(e.nodeValue===t?e=null:(t=Os(t),e=Os(e.nodeValue)===t?null:e.nodeValue),e):null}function xc(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===Rv){if(0===t)return vc(e.nextSibling);t--}else n!==zv&&n!==Av&&n!==jv||t++}e=e.nextSibling}return null}function Sc(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===zv||n===Av||n===jv){if(0===t)return e;t--}else n===Rv&&t++}e=e.previousSibling}return null}function Cc(e){yu(e)}function Ec(e){yu(e)}function Tc(e,t,n,r,a){switch(a&&kt(e,r.ancestorInfo),t=ec(n),e){case"html":if(!(e=t.documentElement))throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(!(e=t.head))throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(!(e=t.body))throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function _c(e,t,n,r){if(!n[Od]&&ge(n)){var a=n.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",a,a,a)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(a=n.attributes;a.length;)n.removeAttributeNode(a[0]);Bs(n,e,t),n[$d]=r,n[Dd]=t}function Nc(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);me(e)}function Pc(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}function zc(e,t,n){var r=bw;if(r&&"string"==typeof t&&t){var a=Be(t);a='link[rel="'+e+'"][href="'+a+'"]',"string"==typeof n&&(a+='[crossorigin="'+n+'"]'),iw.has(a)||(iw.add(a),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(a)&&(Bs(t=r.createElement("link"),"link",e),ve(t),r.head.appendChild(t)))}}function Rc(e,t,n,r){var a=(a=id.current)?Pc(a):null;if(!a)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(n=Ac(n.href),(r=(t=ye(a).hoistableStyles).get(n))||(r={type:"style",instance:null,count:0,state:null},t.set(n,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Ac(n.href);var o=ye(a).hoistableStyles,i=o.get(e);if(!i&&(a=a.ownerDocument||a,i={type:"stylesheet",instance:null,count:0,state:{loading:ew,preload:null}},o.set(e,i),(o=a.querySelector(Ic(e)))&&!o._p&&(i.instance=o,i.state.loading=tw|aw),!ow.has(e))){var l={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy};ow.set(e,l),o||function(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=tw:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=tw}),t.addEventListener("error",function(){return r.loading|=nw}),Bs(t,"link",n),ve(t),e.head.appendChild(t))}(a,e,l,i.state)}if(t&&null===r)throw n="\n\n - "+jc(t)+"\n + "+jc(n),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return i}if(t&&null!==r)throw n="\n\n - "+jc(t)+"\n + "+jc(n),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(n=Mc(n),(r=(t=ye(a).hoistableScripts).get(n))||(r={type:"script",instance:null,count:0,state:null},t.set(n,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function jc(e){var t=0,n="<link";return"string"==typeof e.rel?(t++,n+=' rel="'+e.rel+'"'):sd.call(e,"rel")&&(t++,n+=' rel="'+(null===e.rel?"null":"invalid type "+typeof e.rel)+'"'),"string"==typeof e.href?(t++,n+=' href="'+e.href+'"'):sd.call(e,"href")&&(t++,n+=' href="'+(null===e.href?"null":"invalid type "+typeof e.href)+'"'),"string"==typeof e.precedence?(t++,n+=' precedence="'+e.precedence+'"'):sd.call(e,"precedence")&&(t++,n+=" precedence={"+(null===e.precedence?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(n+=" ..."),n+" />"}function Ac(e){return'href="'+Be(e)+'"'}function Ic(e){return'link[rel="stylesheet"]['+e+"]"}function Lc(e){return ju({},e,{"data-precedence":e.precedence,precedence:null})}function Mc(e){return'[src="'+Be(e)+'"]'}function $c(e){return"script[async]"+e}function Dc(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Be(n.href)+'"]');if(r)return t.instance=r,ve(r),r;var a=ju({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return ve(r=(e.ownerDocument||e).createElement("style")),Bs(r,"style",a),Oc(r,n.precedence,e),t.instance=r;case"stylesheet":a=Ac(n.href);var o=e.querySelector(Ic(a));if(o)return t.state.loading|=aw,t.instance=o,ve(o),o;r=Lc(n),(a=ow.get(a))&&Fc(r,a),ve(o=(e.ownerDocument||e).createElement("link"));var i=o;return i._p=new Promise(function(e,t){i.onload=e,i.onerror=t}),Bs(o,"link",r),t.state.loading|=aw,Oc(o,n.precedence,e),t.instance=o;case"script":return o=Mc(n.src),(a=e.querySelector($c(o)))?(t.instance=a,ve(a),a):(r=n,(a=ow.get(o))&&Uc(r=ju({},n),a),ve(a=(e=e.ownerDocument||e).createElement("script")),Bs(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else"stylesheet"===t.type&&(t.state.loading&aw)===ew&&(r=t.instance,t.state.loading|=aw,Oc(r,n.precedence,e));return t.instance}function Oc(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,o=a,i=0;i<r.length;i++){var l=r[i];if(l.dataset.precedence===t)o=l;else if(o!==a)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Fc(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function Uc(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}function Hc(e,t,n){if(null===yw){var r=new Map,a=yw=new Map;a.set(n,r)}else(r=(a=yw).get(n))||(r=new Map,a.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var o=n[a];if(!(o[Bd]||o[$d]||"link"===e&&"stylesheet"===o.getAttribute("rel"))&&o.namespaceURI!==Lf){var i=o.getAttribute(t)||"";i=e+i;var l=r.get(i);l?l.push(o):r.set(i,[o])}}return r}function Wc(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function Bc(e){return"stylesheet"!==e.type||(e.state.loading&rw)!==ew}function Vc(){}function qc(){if(this.count--,0===this.count)if(this.stylesheets)Qc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}function Qc(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,kw=new Map,t.forEach(Kc,e),kw=null,qc.call(e))}function Kc(e,t){if(!(t.state.loading&aw)){var n=kw.get(e);if(n)var r=n.get(ww);else{n=new Map,kw.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<a.length;o++){var i=a[o];"LINK"!==i.nodeName&&"not all"===i.getAttribute("media")||(n.set(i.dataset.precedence,i),r=i)}r&&n.set(ww,r)}i=(a=t.instance).getAttribute("data-precedence"),(o=n.get(i)||r)===r&&n.set(ww,a),n.set(i,a),this.count++,r=qc.bind(this),a.addEventListener("load",r),a.addEventListener("error",r),o?o.parentNode.insertBefore(a,o.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(a,e.firstChild),t.state.loading|=aw}}function Yc(e,t,n,r,a,o,i,l){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Gv,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=oe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oe(0),this.hiddenUpdates=oe(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=o,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=n?"hydrateRoot()":"createRoot()"}function Gc(e,t,n,r,a,o,i,l,s,c,u,d){return e=new Yc(e,t,n,i,l,s,c,d),t=bm,!0===o&&(t|=vm|wm),Td&&(t|=ym),o=m(3,null,null,t),e.current=o,o.stateNode=e,ir(t=or()),e.pooledCache=t,ir(t),o.memoizedState={element:r,isDehydrated:n,cache:t},Tr(o),e}function Xc(e){return e?e=pm:pm}function Zc(e,t,n,r,a,o){if(Sd&&"function"==typeof Sd.onScheduleFiberRoot)try{Sd.onScheduleFiberRoot(xd,r,n)}catch(i){Ed||(Ed=!0,console.error("React instrumentation encountered an error: %s",i))}null!==Cd&&"function"==typeof Cd.markRenderScheduled&&Cd.markRenderScheduled(t),a=Xc(a),null===r.context?r.context=a:r.pendingContext=a,af&&null!==rf&&!Pw&&(Pw=!0,console.error("Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\n\nCheck the render method of %s.",N(rf)||"Unknown")),(r=Nr(t)).payload={element:n},null!==(o=void 0===o?null:o)&&("function"!=typeof o&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",o),r.callback=o),null!==(n=Pr(e,r,t))&&(El(n,e,t),zr(n,e,t))}function Jc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function eu(e,t){Jc(e,t),(e=e.alternate)&&Jc(e,t)}function tu(e){if(13===e.tag){var t=gn(e,67108864);null!==t&&El(t,e,67108864),eu(e,67108864)}}function nu(){return rf}function ru(){for(var e=new Map,t=1,n=0;31>n;n++){var r=Z(t);e.set(t,r),t*=2}return e}function au(e,t,n,r){var a=Zu.T;Zu.T=null;var o=Ju.p;try{Ju.p=jd,iu(e,t,n,r)}finally{Ju.p=o,Zu.T=a}}function ou(e,t,n,r){var a=Zu.T;Zu.T=null;var o=Ju.p;try{Ju.p=Ad,iu(e,t,n,r)}finally{Ju.p=o,Zu.T=a}}function iu(e,t,n,r){if(Rw){var a=lu(r);if(null===a)zs(e,t,r,jw,n),uu(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Iw=du(Iw,e,t,n,r,a),!0;case"dragenter":return Lw=du(Lw,e,t,n,r,a),!0;case"mouseover":return Mw=du(Mw,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return $w.set(o,du($w.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,Dw.set(o,du(Dw.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(uu(e,r),4&t&&-1<Fw.indexOf(e)){for(;null!==a;){var o=ge(a);if(null!==o)switch(o.tag){case 3:if((o=o.stateNode).current.memoizedState.isDehydrated){var i=J(o.pendingLanes);if(0!==i){var l=o;for(l.pendingLanes|=2,l.entangledLanes|=2;i;){var s=1<<31-_d(i);l.entanglements[1]|=s,i&=~s}fs(o),(Gb&(Ub|Hb))===Fb&&(_y=pd()+Ny,ps(0))}}break;case 13:null!==(l=gn(o,2))&&El(l,o,2),zl(),eu(o,2)}if(null===(o=lu(r))&&zs(e,t,r,jw,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else zs(e,t,r,null,n)}}function lu(e){return su(e=Rt(e))}function su(e){if(jw=null,null!==(e=he(e))){var t=k(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=x(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return jw=e,null}function cu(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return jd;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Ad;case"message":switch(md()){case hd:return jd;case gd:return Ad;case bd:case yd:return Id;case vd:return Ld;default:return Id}default:return Id}}function uu(e,t){switch(e){case"focusin":case"focusout":Iw=null;break;case"dragenter":case"dragleave":Lw=null;break;case"mouseover":case"mouseout":Mw=null;break;case"pointerover":case"pointerout":$w.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dw.delete(t.pointerId)}}function du(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&(null!==(t=ge(t))&&tu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function fu(e){var t=he(e.target);if(null!==t){var n=k(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=x(n)))return e.blockedOn=t,void function(e,t){var n=Ju.p;try{return Ju.p=e,t()}finally{Ju.p=n}}(e.priority,function(){if(13===n.tag){var e=Sl(n);e=ce(e);var t=gn(n,e);null!==t&&El(t,n,e),eu(n,e)}})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function pu(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=lu(e.nativeEvent);if(null!==n)return null!==(t=ge(n))&&tu(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n),a=r;null!==Yf&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Yf=a,n.target.dispatchEvent(r),null===Yf&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Yf=null,t.shift()}return!0}function mu(e,t,n){pu(e)&&n.delete(t)}function hu(){Aw=!1,null!==Iw&&pu(Iw)&&(Iw=null),null!==Lw&&pu(Lw)&&(Lw=null),null!==Mw&&pu(Mw)&&(Mw=null),$w.forEach(mu),Dw.forEach(mu)}function gu(e,t){e.blockedOn===t&&(e.blockedOn=null,Aw||(Aw=!0,Pu.unstable_scheduleCallback(Pu.unstable_NormalPriority,hu)))}function bu(e){Uw!==e&&(Uw=e,Pu.unstable_scheduleCallback(Pu.unstable_NormalPriority,function(){Uw===e&&(Uw=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],a=e[t+2];if("function"!=typeof r){if(null===su(r||n))continue;break}var o=ge(n);null!==o&&(e.splice(t,3),t-=3,n={pending:!0,data:a,method:n.method,action:r},Object.freeze(n),Ja(o,n,r,a))}}))}function yu(e){function t(t){return gu(t,e)}null!==Iw&&gu(Iw,e),null!==Lw&&gu(Lw,e),null!==Mw&&gu(Mw,e),$w.forEach(t),Dw.forEach(t);for(var n=0;n<Ow.length;n++){var r=Ow[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ow.length&&null===(n=Ow[0]).blockedOn;)fu(n),null===n.blockedOn&&Ow.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var a=n[r],o=n[r+1],i=a[Dd]||null;if("function"==typeof o)i||bu(n);else if(i){var l=null;if(o&&o.hasAttribute("formAction")){if(a=o,i=o[Dd]||null)l=i.formAction;else if(null!==su(a))continue}else l=i.action;"function"==typeof l?n[r+1]=l:(n.splice(r,3),r-=3),bu(n)}}}function vu(e){this._internalRoot=e}function wu(e){this._internalRoot=e}function ku(e){e[Od]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var xu,Su,Cu,Eu,Tu,_u,Nu,Pu=h(),zu=e,Ru=t,ju=Object.assign,Au=Symbol.for("react.element"),Iu=Symbol.for("react.transitional.element"),Lu=Symbol.for("react.portal"),Mu=Symbol.for("react.fragment"),$u=Symbol.for("react.strict_mode"),Du=Symbol.for("react.profiler"),Ou=Symbol.for("react.provider"),Fu=Symbol.for("react.consumer"),Uu=Symbol.for("react.context"),Hu=Symbol.for("react.forward_ref"),Wu=Symbol.for("react.suspense"),Bu=Symbol.for("react.suspense_list"),Vu=Symbol.for("react.memo"),qu=Symbol.for("react.lazy"),Qu=Symbol.for("react.activity"),Ku=Symbol.for("react.memo_cache_sentinel"),Yu=Symbol.iterator,Gu=Symbol.for("react.client.reference"),Xu=Array.isArray,Zu=zu.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ju=Ru.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ed=Object.freeze({pending:!1,data:null,method:null,action:null}),td=[],nd=[],rd=-1,ad=P(null),od=P(null),id=P(null),ld=P(null),sd=Object.prototype.hasOwnProperty,cd=Pu.unstable_scheduleCallback,ud=Pu.unstable_cancelCallback,dd=Pu.unstable_shouldYield,fd=Pu.unstable_requestPaint,pd=Pu.unstable_now,md=Pu.unstable_getCurrentPriorityLevel,hd=Pu.unstable_ImmediatePriority,gd=Pu.unstable_UserBlockingPriority,bd=Pu.unstable_NormalPriority,yd=Pu.unstable_LowPriority,vd=Pu.unstable_IdlePriority,wd=Pu.log,kd=Pu.unstable_setDisableYieldValue,xd=null,Sd=null,Cd=null,Ed=!1,Td="undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__,_d=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(Nd(e)/Pd|0)|0},Nd=Math.log,Pd=Math.LN2,zd=256,Rd=4194304,jd=2,Ad=8,Id=32,Ld=268435456,Md=Math.random().toString(36).slice(2),$d="__reactFiber$"+Md,Dd="__reactProps$"+Md,Od="__reactContainer$"+Md,Fd="__reactEvents$"+Md,Ud="__reactListeners$"+Md,Hd="__reactHandles$"+Md,Wd="__reactResources$"+Md,Bd="__reactMarker$"+Md,Vd=new Set,qd={},Qd={},Kd={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Yd=RegExp("^[: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]*$"),Gd={},Xd={},Zd=0;Ne.__reactDisabledLog=!0;var Jd,ef,tf=!1,nf=new("function"==typeof WeakMap?WeakMap:Map),rf=null,af=!1,of=/[\n"\\]/g,lf=!1,sf=!1,cf=!1,uf=!1,df=!1,ff=!1,pf=["value","defaultValue"],mf=!1,hf=/["'&<>\n\t]|^\s|\s$/,gf="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),bf="applet caption html table td th marquee object template foreignObject desc title".split(" "),yf=bf.concat(["button"]),vf="dd dt li option optgroup p rp rt".split(" "),wf={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},kf={},xf={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},Sf=/([A-Z])/g,Cf=/^ms-/,Ef=/^(?:webkit|moz|o)[A-Z]/,Tf=/^-ms-/,_f=/-(.)/g,Nf=/;\s*$/,Pf={},zf={},Rf=!1,jf=!1,Af=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),If="http://www.w3.org/1998/Math/MathML",Lf="http://www.w3.org/2000/svg",Mf=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),$f={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Df={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Of={},Ff=RegExp("^(aria)-[: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]*$"),Uf=RegExp("^(aria)[A-Z][: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]*$"),Hf=!1,Wf={},Bf=/^on./,Vf=/^on[^A-Z]/,qf=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Qf=RegExp("^(aria)[A-Z][: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]*$"),Kf=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,Yf=null,Gf=null,Xf=null,Zf=!1,Jf=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),ep=!1;if(Jf)try{var tp={};Object.defineProperty(tp,"passive",{get:function(){ep=!0}}),window.addEventListener("test",tp,tp),window.removeEventListener("test",tp,tp)}catch(Ww){ep=!1}var np,rp,ap,op=null,ip=null,lp=null,sp={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cp=Ot(sp),up=ju({},sp,{view:0,detail:0}),dp=Ot(up),fp=ju({},up,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ut,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ap&&(ap&&"mousemove"===e.type?(np=e.screenX-ap.screenX,rp=e.screenY-ap.screenY):rp=np=0,ap=e),np)},movementY:function(e){return"movementY"in e?e.movementY:rp}}),pp=Ot(fp),mp=Ot(ju({},fp,{dataTransfer:0})),hp=Ot(ju({},up,{relatedTarget:0})),gp=Ot(ju({},sp,{animationName:0,elapsedTime:0,pseudoElement:0})),bp=Ot(ju({},sp,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),yp=Ot(ju({},sp,{data:0})),vp=yp,wp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kp={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Sp=Ot(ju({},up,{key:function(e){if(e.key){var t=wp[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Mt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ut,charCode:function(e){return"keypress"===e.type?Mt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Mt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Cp=Ot(ju({},fp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ep=Ot(ju({},up,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ut})),Tp=Ot(ju({},sp,{propertyName:0,elapsedTime:0,pseudoElement:0})),_p=Ot(ju({},fp,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Np=Ot(ju({},sp,{newState:0,oldState:0})),Pp=[9,13,27,32],zp=229,Rp=Jf&&"CompositionEvent"in window,jp=null;Jf&&"documentMode"in document&&(jp=document.documentMode);var Ap=Jf&&"TextEvent"in window&&!jp,Ip=Jf&&(!Rp||jp&&8<jp&&11>=jp),Lp=32,Mp=String.fromCharCode(Lp),$p=!1,Dp=!1,Op={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},Fp=null,Up=null,Hp=!1;Jf&&(Hp=function(e){if(!Jf)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}("input")&&(!document.documentMode||9<document.documentMode));var Wp="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Bp=Jf&&"documentMode"in document&&11>=document.documentMode,Vp=null,qp=null,Qp=null,Kp=!1,Yp={animationend:cn("Animation","AnimationEnd"),animationiteration:cn("Animation","AnimationIteration"),animationstart:cn("Animation","AnimationStart"),transitionrun:cn("Transition","TransitionRun"),transitionstart:cn("Transition","TransitionStart"),transitioncancel:cn("Transition","TransitionCancel"),transitionend:cn("Transition","TransitionEnd")},Gp={},Xp={};Jf&&(Xp=document.createElement("div").style,"AnimationEvent"in window||(delete Yp.animationend.animation,delete Yp.animationiteration.animation,delete Yp.animationstart.animation),"TransitionEvent"in window||delete Yp.transitionend.transition);var Zp=un("animationend"),Jp=un("animationiteration"),em=un("animationstart"),tm=un("transitionrun"),nm=un("transitionstart"),rm=un("transitioncancel"),am=un("transitionend"),om=new Map,im="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");im.push("scrollEnd");var lm=new WeakMap,sm=1,cm=2,um=[],dm=0,fm=0,pm={};Object.freeze(pm);var mm=null,hm=null,gm=0,bm=1,ym=2,vm=8,wm=16,km=64,xm=!1;try{Object.preventExtensions({})}catch(Bw){xm=!0}var Sm=[],Cm=0,Em=null,Tm=0,_m=[],Nm=0,Pm=null,zm=1,Rm="",jm=null,Am=null,Im=!1,Lm=!1,Mm=null,$m=null,Dm=!1,Om=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Fm=0;if("object"==typeof performance&&"function"==typeof performance.now)var Um=performance,Hm=function(){return Um.now()};else{var Wm=Date;Hm=function(){return Wm.now()}}var Bm=P(null),Vm=P(null),qm={},Qm=null,Km=null,Ym=!1,Gm="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Xm=Pu.unstable_scheduleCallback,Zm=Pu.unstable_NormalPriority,Jm={$$typeof:Uu,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},eh=Pu.unstable_now,th=-0,nh=-0,rh=-1.1,ah=-0,oh=!1,ih=!1,lh=null,sh=0,ch=0,uh=null,dh=Zu.S;Zu.S=function(e,t){"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===lh){var n=lh=[];sh=0,ch=ks(),uh={status:"pending",value:void 0,then:function(e){n.push(e)}}}sh++,t.then(br,br)}(0,t),null!==dh&&dh(e,t)};var fh=P(null),ph={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},mh=[],hh=[],gh=[],bh=[],yh=[],vh=[],wh=new Set;ph.recordUnsafeLifecycleWarnings=function(e,t){wh.has(e.type)||("function"==typeof t.componentWillMount&&!0!==t.componentWillMount.__suppressDeprecationWarning&&mh.push(e),e.mode&vm&&"function"==typeof t.UNSAFE_componentWillMount&&hh.push(e),"function"==typeof t.componentWillReceiveProps&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&gh.push(e),e.mode&vm&&"function"==typeof t.UNSAFE_componentWillReceiveProps&&bh.push(e),"function"==typeof t.componentWillUpdate&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&yh.push(e),e.mode&vm&&"function"==typeof t.UNSAFE_componentWillUpdate&&vh.push(e))},ph.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<mh.length&&(mh.forEach(function(t){e.add(N(t)||"Component"),wh.add(t.type)}),mh=[]);var t=new Set;0<hh.length&&(hh.forEach(function(e){t.add(N(e)||"Component"),wh.add(e.type)}),hh=[]);var n=new Set;0<gh.length&&(gh.forEach(function(e){n.add(N(e)||"Component"),wh.add(e.type)}),gh=[]);var r=new Set;0<bh.length&&(bh.forEach(function(e){r.add(N(e)||"Component"),wh.add(e.type)}),bh=[]);var a=new Set;0<yh.length&&(yh.forEach(function(e){a.add(N(e)||"Component"),wh.add(e.type)}),yh=[]);var o=new Set;if(0<vh.length&&(vh.forEach(function(e){o.add(N(e)||"Component"),wh.add(e.type)}),vh=[]),0<t.size){var i=p(t);console.error("Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n\nPlease update the following components: %s",i)}0<r.size&&(i=p(r),console.error("Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n\nPlease update the following components: %s",i)),0<o.size&&(i=p(o),console.error("Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n\nPlease update the following components: %s",i)),0<e.size&&(i=p(e),console.warn("componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",i)),0<n.size&&(i=p(n),console.warn("componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",i)),0<a.size&&(i=p(a),console.warn("componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",i))};var kh=new Map,xh=new Set;ph.recordLegacyContextWarning=function(e,t){for(var n=null,r=e;null!==r;)r.mode&vm&&(n=r),r=r.return;null===n?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!xh.has(e.type)&&(r=kh.get(n),null!=e.type.contextTypes||null!=e.type.childContextTypes||null!==t&&"function"==typeof t.getChildContext)&&(void 0===r&&(r=[],kh.set(n,r)),r.push(e))},ph.flushLegacyContextWarning=function(){kh.forEach(function(e){if(0!==e.length){var t=e[0],n=new Set;e.forEach(function(e){n.add(N(e)||"Component"),xh.add(e.type)});var r=p(n);$e(t,function(){console.error("Legacy context API has been detected within a strict-mode tree.\n\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\n\nPlease update the following components: %s\n\nLearn more about this warning here: https://react.dev/link/legacy-context",r)})}})},ph.discardPendingWarnings=function(){mh=[],hh=[],gh=[],bh=[],yh=[],vh=[],kh=new Map};var Sh,Ch=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Eh=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Th=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),_h={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Nh=null,Ph=!1,zh=0,Rh=1,jh=2,Ah=4,Ih=8,Lh=0,Mh=1,$h=2,Dh=3,Oh=!1,Fh=!1,Uh=null,Hh=!1,Wh=P(null),Bh=P(0),Vh=new Set,qh=new Set,Qh=new Set,Kh=new Set,Yh=0,Gh=null,Xh=null,Zh=null,Jh=!1,eg=!1,tg=!1,ng=0,rg=0,ag=null,og=0,ig=25,lg=null,sg=null,cg=-1,ug=!1,dg={readContext:nr,use:na,useCallback:Br,useContext:Br,useEffect:Br,useImperativeHandle:Br,useLayoutEffect:Br,useInsertionEffect:Br,useMemo:Br,useReducer:Br,useRef:Br,useState:Br,useDebugValue:Br,useDeferredValue:Br,useTransition:Br,useSyncExternalStore:Br,useId:Br,useHostTransitionStatus:Br,useFormState:Br,useActionState:Br,useOptimistic:Br,useMemoCache:Br,useCacheRefresh:Br},fg=null,pg=null,mg=null,hg=null,gg=null,bg=null,yg=null;fg={readContext:function(e){return nr(e)},use:na,useCallback:function(e,t){return lg="useCallback",Fr(),Hr(t),Wa(e,t)},useContext:function(e){return lg="useContext",Fr(),nr(e)},useEffect:function(e,t){return lg="useEffect",Fr(),Hr(t),Da(e,t)},useImperativeHandle:function(e,t,n){return lg="useImperativeHandle",Fr(),Hr(n),Ua(e,t,n)},useInsertionEffect:function(e,t){lg="useInsertionEffect",Fr(),Hr(t),Ma(4,jh,e,t)},useLayoutEffect:function(e,t){return lg="useLayoutEffect",Fr(),Hr(t),Oa(e,t)},useMemo:function(e,t){lg="useMemo",Fr(),Hr(t);var n=Zu.H;Zu.H=gg;try{return Va(e,t)}finally{Zu.H=n}},useReducer:function(e,t,n){lg="useReducer",Fr();var r=Zu.H;Zu.H=gg;try{return oa(e,t,n)}finally{Zu.H=r}},useRef:function(e){return lg="useRef",Fr(),La(e)},useState:function(e){lg="useState",Fr();var t=Zu.H;Zu.H=gg;try{return ba(e)}finally{Zu.H=t}},useDebugValue:function(){lg="useDebugValue",Fr()},useDeferredValue:function(e,t){return lg="useDeferredValue",Fr(),Qa(e,t)},useTransition:function(){return lg="useTransition",Fr(),no()},useSyncExternalStore:function(e,t,n){return lg="useSyncExternalStore",Fr(),ca(e,t,n)},useId:function(){return lg="useId",Fr(),io()},useFormState:function(e,t){return lg="useFormState",Fr(),Wr(),Pa(e,t)},useActionState:function(e,t){return lg="useActionState",Fr(),Pa(e,t)},useOptimistic:function(e){return lg="useOptimistic",Fr(),ya(e)},useHostTransitionStatus:oo,useMemoCache:ra,useCacheRefresh:function(){return lg="useCacheRefresh",Fr(),lo()}},pg={readContext:function(e){return nr(e)},use:na,useCallback:function(e,t){return lg="useCallback",Ur(),Wa(e,t)},useContext:function(e){return lg="useContext",Ur(),nr(e)},useEffect:function(e,t){return lg="useEffect",Ur(),Da(e,t)},useImperativeHandle:function(e,t,n){return lg="useImperativeHandle",Ur(),Ua(e,t,n)},useInsertionEffect:function(e,t){lg="useInsertionEffect",Ur(),Ma(4,jh,e,t)},useLayoutEffect:function(e,t){return lg="useLayoutEffect",Ur(),Oa(e,t)},useMemo:function(e,t){lg="useMemo",Ur();var n=Zu.H;Zu.H=gg;try{return Va(e,t)}finally{Zu.H=n}},useReducer:function(e,t,n){lg="useReducer",Ur();var r=Zu.H;Zu.H=gg;try{return oa(e,t,n)}finally{Zu.H=r}},useRef:function(e){return lg="useRef",Ur(),La(e)},useState:function(e){lg="useState",Ur();var t=Zu.H;Zu.H=gg;try{return ba(e)}finally{Zu.H=t}},useDebugValue:function(){lg="useDebugValue",Ur()},useDeferredValue:function(e,t){return lg="useDeferredValue",Ur(),Qa(e,t)},useTransition:function(){return lg="useTransition",Ur(),no()},useSyncExternalStore:function(e,t,n){return lg="useSyncExternalStore",Ur(),ca(e,t,n)},useId:function(){return lg="useId",Ur(),io()},useActionState:function(e,t){return lg="useActionState",Ur(),Pa(e,t)},useFormState:function(e,t){return lg="useFormState",Ur(),Wr(),Pa(e,t)},useOptimistic:function(e){return lg="useOptimistic",Ur(),ya(e)},useHostTransitionStatus:oo,useMemoCache:ra,useCacheRefresh:function(){return lg="useCacheRefresh",Ur(),lo()}},mg={readContext:function(e){return nr(e)},use:na,useCallback:function(e,t){return lg="useCallback",Ur(),Ba(e,t)},useContext:function(e){return lg="useContext",Ur(),nr(e)},useEffect:function(e,t){lg="useEffect",Ur(),$a(2048,Ih,e,t)},useImperativeHandle:function(e,t,n){return lg="useImperativeHandle",Ur(),Ha(e,t,n)},useInsertionEffect:function(e,t){return lg="useInsertionEffect",Ur(),$a(4,jh,e,t)},useLayoutEffect:function(e,t){return lg="useLayoutEffect",Ur(),$a(4,Ah,e,t)},useMemo:function(e,t){lg="useMemo",Ur();var n=Zu.H;Zu.H=bg;try{return qa(e,t)}finally{Zu.H=n}},useReducer:function(e,t,n){lg="useReducer",Ur();var r=Zu.H;Zu.H=bg;try{return ia(e)}finally{Zu.H=r}},useRef:function(){return lg="useRef",Ur(),ea().memoizedState},useState:function(){lg="useState",Ur();var e=Zu.H;Zu.H=bg;try{return ia(aa)}finally{Zu.H=e}},useDebugValue:function(){lg="useDebugValue",Ur()},useDeferredValue:function(e,t){return lg="useDeferredValue",Ur(),Ka(e,t)},useTransition:function(){return lg="useTransition",Ur(),ro()},useSyncExternalStore:function(e,t,n){return lg="useSyncExternalStore",Ur(),ua(e,t,n)},useId:function(){return lg="useId",Ur(),ea().memoizedState},useFormState:function(e){return lg="useFormState",Ur(),Wr(),za(e)},useActionState:function(e){return lg="useActionState",Ur(),za(e)},useOptimistic:function(e,t){return lg="useOptimistic",Ur(),va(e,t)},useHostTransitionStatus:oo,useMemoCache:ra,useCacheRefresh:function(){return lg="useCacheRefresh",Ur(),ea().memoizedState}},hg={readContext:function(e){return nr(e)},use:na,useCallback:function(e,t){return lg="useCallback",Ur(),Ba(e,t)},useContext:function(e){return lg="useContext",Ur(),nr(e)},useEffect:function(e,t){lg="useEffect",Ur(),$a(2048,Ih,e,t)},useImperativeHandle:function(e,t,n){return lg="useImperativeHandle",Ur(),Ha(e,t,n)},useInsertionEffect:function(e,t){return lg="useInsertionEffect",Ur(),$a(4,jh,e,t)},useLayoutEffect:function(e,t){return lg="useLayoutEffect",Ur(),$a(4,Ah,e,t)},useMemo:function(e,t){lg="useMemo",Ur();var n=Zu.H;Zu.H=yg;try{return qa(e,t)}finally{Zu.H=n}},useReducer:function(e,t,n){lg="useReducer",Ur();var r=Zu.H;Zu.H=yg;try{return sa(e)}finally{Zu.H=r}},useRef:function(){return lg="useRef",Ur(),ea().memoizedState},useState:function(){lg="useState",Ur();var e=Zu.H;Zu.H=yg;try{return sa(aa)}finally{Zu.H=e}},useDebugValue:function(){lg="useDebugValue",Ur()},useDeferredValue:function(e,t){return lg="useDeferredValue",Ur(),Ya(e,t)},useTransition:function(){return lg="useTransition",Ur(),ao()},useSyncExternalStore:function(e,t,n){return lg="useSyncExternalStore",Ur(),ua(e,t,n)},useId:function(){return lg="useId",Ur(),ea().memoizedState},useFormState:function(e){return lg="useFormState",Ur(),Wr(),Aa(e)},useActionState:function(e){return lg="useActionState",Ur(),Aa(e)},useOptimistic:function(e,t){return lg="useOptimistic",Ur(),ka(e,t)},useHostTransitionStatus:oo,useMemoCache:ra,useCacheRefresh:function(){return lg="useCacheRefresh",Ur(),ea().memoizedState}},gg={readContext:function(e){return d(),nr(e)},use:function(e){return u(),na(e)},useCallback:function(e,t){return lg="useCallback",u(),Fr(),Wa(e,t)},useContext:function(e){return lg="useContext",u(),Fr(),nr(e)},useEffect:function(e,t){return lg="useEffect",u(),Fr(),Da(e,t)},useImperativeHandle:function(e,t,n){return lg="useImperativeHandle",u(),Fr(),Ua(e,t,n)},useInsertionEffect:function(e,t){lg="useInsertionEffect",u(),Fr(),Ma(4,jh,e,t)},useLayoutEffect:function(e,t){return lg="useLayoutEffect",u(),Fr(),Oa(e,t)},useMemo:function(e,t){lg="useMemo",u(),Fr();var n=Zu.H;Zu.H=gg;try{return Va(e,t)}finally{Zu.H=n}},useReducer:function(e,t,n){lg="useReducer",u(),Fr();var r=Zu.H;Zu.H=gg;try{return oa(e,t,n)}finally{Zu.H=r}},useRef:function(e){return lg="useRef",u(),Fr(),La(e)},useState:function(e){lg="useState",u(),Fr();var t=Zu.H;Zu.H=gg;try{return ba(e)}finally{Zu.H=t}},useDebugValue:function(){lg="useDebugValue",u(),Fr()},useDeferredValue:function(e,t){return lg="useDeferredValue",u(),Fr(),Qa(e,t)},useTransition:function(){return lg="useTransition",u(),Fr(),no()},useSyncExternalStore:function(e,t,n){return lg="useSyncExternalStore",u(),Fr(),ca(e,t,n)},useId:function(){return lg="useId",u(),Fr(),io()},useFormState:function(e,t){return lg="useFormState",u(),Fr(),Pa(e,t)},useActionState:function(e,t){return lg="useActionState",u(),Fr(),Pa(e,t)},useOptimistic:function(e){return lg="useOptimistic",u(),Fr(),ya(e)},useMemoCache:function(e){return u(),ra(e)},useHostTransitionStatus:oo,useCacheRefresh:function(){return lg="useCacheRefresh",Fr(),lo()}},bg={readContext:function(e){return d(),nr(e)},use:function(e){return u(),na(e)},useCallback:function(e,t){return lg="useCallback",u(),Ur(),Ba(e,t)},useContext:function(e){return lg="useContext",u(),Ur(),nr(e)},useEffect:function(e,t){lg="useEffect",u(),Ur(),$a(2048,Ih,e,t)},useImperativeHandle:function(e,t,n){return lg="useImperativeHandle",u(),Ur(),Ha(e,t,n)},useInsertionEffect:function(e,t){return lg="useInsertionEffect",u(),Ur(),$a(4,jh,e,t)},useLayoutEffect:function(e,t){return lg="useLayoutEffect",u(),Ur(),$a(4,Ah,e,t)},useMemo:function(e,t){lg="useMemo",u(),Ur();var n=Zu.H;Zu.H=bg;try{return qa(e,t)}finally{Zu.H=n}},useReducer:function(e,t,n){lg="useReducer",u(),Ur();var r=Zu.H;Zu.H=bg;try{return ia(e)}finally{Zu.H=r}},useRef:function(){return lg="useRef",u(),Ur(),ea().memoizedState},useState:function(){lg="useState",u(),Ur();var e=Zu.H;Zu.H=bg;try{return ia(aa)}finally{Zu.H=e}},useDebugValue:function(){lg="useDebugValue",u(),Ur()},useDeferredValue:function(e,t){return lg="useDeferredValue",u(),Ur(),Ka(e,t)},useTransition:function(){return lg="useTransition",u(),Ur(),ro()},useSyncExternalStore:function(e,t,n){return lg="useSyncExternalStore",u(),Ur(),ua(e,t,n)},useId:function(){return lg="useId",u(),Ur(),ea().memoizedState},useFormState:function(e){return lg="useFormState",u(),Ur(),za(e)},useActionState:function(e){return lg="useActionState",u(),Ur(),za(e)},useOptimistic:function(e,t){return lg="useOptimistic",u(),Ur(),va(e,t)},useMemoCache:function(e){return u(),ra(e)},useHostTransitionStatus:oo,useCacheRefresh:function(){return lg="useCacheRefresh",Ur(),ea().memoizedState}},yg={readContext:function(e){return d(),nr(e)},use:function(e){return u(),na(e)},useCallback:function(e,t){return lg="useCallback",u(),Ur(),Ba(e,t)},useContext:function(e){return lg="useContext",u(),Ur(),nr(e)},useEffect:function(e,t){lg="useEffect",u(),Ur(),$a(2048,Ih,e,t)},useImperativeHandle:function(e,t,n){return lg="useImperativeHandle",u(),Ur(),Ha(e,t,n)},useInsertionEffect:function(e,t){return lg="useInsertionEffect",u(),Ur(),$a(4,jh,e,t)},useLayoutEffect:function(e,t){return lg="useLayoutEffect",u(),Ur(),$a(4,Ah,e,t)},useMemo:function(e,t){lg="useMemo",u(),Ur();var n=Zu.H;Zu.H=bg;try{return qa(e,t)}finally{Zu.H=n}},useReducer:function(e,t,n){lg="useReducer",u(),Ur();var r=Zu.H;Zu.H=bg;try{return sa(e)}finally{Zu.H=r}},useRef:function(){return lg="useRef",u(),Ur(),ea().memoizedState},useState:function(){lg="useState",u(),Ur();var e=Zu.H;Zu.H=bg;try{return sa(aa)}finally{Zu.H=e}},useDebugValue:function(){lg="useDebugValue",u(),Ur()},useDeferredValue:function(e,t){return lg="useDeferredValue",u(),Ur(),Ya(e,t)},useTransition:function(){return lg="useTransition",u(),Ur(),ao()},useSyncExternalStore:function(e,t,n){return lg="useSyncExternalStore",u(),Ur(),ua(e,t,n)},useId:function(){return lg="useId",u(),Ur(),ea().memoizedState},useFormState:function(e){return lg="useFormState",u(),Ur(),Aa(e)},useActionState:function(e){return lg="useActionState",u(),Ur(),Aa(e)},useOptimistic:function(e,t){return lg="useOptimistic",u(),Ur(),ka(e,t)},useMemoCache:function(e){return u(),ra(e)},useHostTransitionStatus:oo,useCacheRefresh:function(){return lg="useCacheRefresh",Ur(),ea().memoizedState}};var vg,wg={react_stack_bottom_frame:function(e,t,n){var r=af;af=!0;try{return e(t,n)}finally{af=r}}},kg=wg.react_stack_bottom_frame.bind(wg),xg={react_stack_bottom_frame:function(e){var t=af;af=!0;try{return e.render()}finally{af=t}}},Sg=xg.react_stack_bottom_frame.bind(xg),Cg={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(n){ts(e,e.return,n)}}},Eg=Cg.react_stack_bottom_frame.bind(Cg),Tg={react_stack_bottom_frame:function(e,t,n,r,a){try{t.componentDidUpdate(n,r,a)}catch(o){ts(e,e.return,o)}}},_g=Tg.react_stack_bottom_frame.bind(Tg),Ng={react_stack_bottom_frame:function(e,t){var n=t.stack;e.componentDidCatch(t.value,{componentStack:null!==n?n:""})}},Pg=Ng.react_stack_bottom_frame.bind(Ng),zg={react_stack_bottom_frame:function(e,t,n){try{n.componentWillUnmount()}catch(r){ts(e,t,r)}}},Rg=zg.react_stack_bottom_frame.bind(zg),jg={react_stack_bottom_frame:function(e){null!=e.resourceKind&&console.error("Expected only SimpleEffects when enableUseEffectCRUDOverload is disabled, got %s",e.resourceKind);var t=e.create;return e=e.inst,t=t(),e.destroy=t}},Ag=jg.react_stack_bottom_frame.bind(jg),Ig={react_stack_bottom_frame:function(e,t,n){try{n()}catch(r){ts(e,t,r)}}},Lg=Ig.react_stack_bottom_frame.bind(Ig),Mg={react_stack_bottom_frame:function(e){return(0,e._init)(e._payload)}},$g=Mg.react_stack_bottom_frame.bind(Mg),Dg=null,Og=0,Fg=null,Ug=vg=!1,Hg={},Wg={},Bg={};c=function(e,t,n){if(null!==n&&"object"==typeof n&&n._store&&(!n._store.validated&&null==n.key||2===n._store.validated)){if("object"!=typeof n._store)throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");n._store.validated=1;var r=N(e),a=r||"null";if(!Hg[a]){Hg[a]=!0,n=n._owner,e=e._debugOwner;var o="";e&&"number"==typeof e.tag&&(a=N(e))&&(o="\n\nCheck the render method of `"+a+"`."),o||r&&(o="\n\nCheck the top-level render call using <"+r+">.");var i="";null!=n&&e!==n&&(r=null,"number"==typeof n.tag?r=N(n):"string"==typeof n.name&&(r=n.name),r&&(i=" It was passed a child from "+r+".")),$e(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',o,i)})}}};var Vg=Co(!0),qg=Co(!1),Qg=P(null),Kg=null,Yg=1,Gg=2,Xg=P(0),Zg={},Jg=new Set,eb=new Set,tb=new Set,nb=new Set,rb=new Set,ab=new Set,ob=new Set,ib=new Set,lb=new Set,sb=new Set;Object.freeze(Zg);var cb={enqueueSetState:function(e,t,n){var r=Sl(e=e._reactInternals),a=Nr(r);a.payload=t,null!=n&&(zo(n),a.callback=n),null!==(t=Pr(e,a,r))&&(El(t,e,r),zr(t,e,r)),X(e,r)},enqueueReplaceState:function(e,t,n){var r=Sl(e=e._reactInternals),a=Nr(r);a.tag=Mh,a.payload=t,null!=n&&(zo(n),a.callback=n),null!==(t=Pr(e,a,r))&&(El(t,e,r),zr(t,e,r)),X(e,r)},enqueueForceUpdate:function(e,t){var n=Sl(e=e._reactInternals),r=Nr(n);r.tag=$h,null!=t&&(zo(t),r.callback=t),null!==(t=Pr(e,r,n))&&(El(t,e,n),zr(t,e,n)),null!==Cd&&"function"==typeof Cd.markForceUpdateScheduled&&Cd.markForceUpdateScheduled(e,n)}},ub="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},db=null,fb=null,pb=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),mb=!1,hb={},gb={},bb={},yb={},vb=!1,wb={},kb={},xb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Sb=!1,Cb=null;Cb=new Set;var Eb=!1,Tb=!1,_b=!1,Nb="function"==typeof WeakSet?WeakSet:Set,Pb=null,zb=null,Rb=null,jb=null,Ab=!1,Ib=null,Lb=8192,Mb={getCacheForType:function(e){var t=nr(Jm),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},getOwner:function(){return rf}};if("function"==typeof Symbol&&Symbol.for){var $b=Symbol.for;$b("selector.component"),$b("selector.has_pseudo_class"),$b("selector.role"),$b("selector.test_id"),$b("selector.text")}var Db=[],Ob="function"==typeof WeakMap?WeakMap:Map,Fb=0,Ub=2,Hb=4,Wb=0,Bb=1,Vb=2,qb=3,Qb=4,Kb=6,Yb=5,Gb=Fb,Xb=null,Zb=null,Jb=0,ey=0,ty=1,ny=2,ry=3,ay=4,oy=5,iy=6,ly=7,sy=8,cy=9,uy=ey,dy=null,fy=!1,py=!1,my=!1,hy=0,gy=Wb,by=0,yy=0,vy=0,wy=0,ky=0,xy=null,Sy=null,Cy=!1,Ey=0,Ty=300,_y=1/0,Ny=500,Py=null,zy=null,Ry=0,jy=1,Ay=2,Iy=0,Ly=1,My=2,$y=3,Dy=4,Oy=5,Fy=0,Uy=null,Hy=null,Wy=0,By=0,Vy=null,qy=null,Qy=50,Ky=0,Yy=null,Gy=!1,Xy=!1,Zy=50,Jy=0,ev=null,tv=!1,nv=null,rv=!1,av=new Set,ov=null,iv=null,lv=!1,sv=!1,cv=!1,uv=!1,dv=0,fv={};!function(){for(var e=0;e<im.length;e++){var t=im[e];dn(t.toLowerCase(),"on"+(t=t[0].toUpperCase()+t.slice(1)))}dn(Zp,"onAnimationEnd"),dn(Jp,"onAnimationIteration"),dn(em,"onAnimationStart"),dn("dblclick","onDoubleClick"),dn("focusin","onFocus"),dn("focusout","onBlur"),dn(tm,"onTransitionRun"),dn(nm,"onTransitionStart"),dn(rm,"onTransitionCancel"),dn(am,"onTransitionEnd")}(),ke("onMouseEnter",["mouseout","mouseover"]),ke("onMouseLeave",["mouseout","mouseover"]),ke("onPointerEnter",["pointerout","pointerover"]),ke("onPointerLeave",["pointerout","pointerover"]),we("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),we("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),we("onBeforeInput",["compositionend","keypress","textInput","paste"]),we("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),we("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),we("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pv="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pv)),hv="_reactListening"+Math.random().toString(36).slice(2),gv=!1,bv=!1,yv=!1,vv=!1,wv=!1,kv=!1,xv=!1,Sv={},Cv=/\r\n?/g,Ev=/\u0000|\uFFFD/g,Tv="http://www.w3.org/1999/xlink",_v="http://www.w3.org/XML/1998/namespace",Nv="javascript:throw new Error('React form unexpectedly submitted.')",Pv="suppressHydrationWarning",zv="$",Rv="/$",jv="$?",Av="$!",Iv=1,Lv=2,Mv=4,$v="F!",Dv="F",Ov="complete",Fv="style",Uv=0,Hv=1,Wv=2,Bv=null,Vv=null,qv={dialog:!0,webview:!0},Qv=null,Kv="function"==typeof setTimeout?setTimeout:void 0,Yv="function"==typeof clearTimeout?clearTimeout:void 0,Gv=-1,Xv="function"==typeof Promise?Promise:void 0,Zv="function"==typeof queueMicrotask?queueMicrotask:void 0!==Xv?function(e){return Xv.resolve(null).then(e).catch(ac)}:Kv,Jv=null,ew=0,tw=1,nw=2,rw=3,aw=4,ow=new Map,iw=new Set,lw=Ju.d;Ju.d={f:function(){var e=lw.f(),t=zl();return e||t},r:function(e){var t=ge(e);null!==t&&5===t.tag&&"form"===t.type?to(t):lw.r(e)},D:function(e){lw.D(e),zc("dns-prefetch",e,null)},C:function(e,t){lw.C(e,t),zc("preconnect",e,t)},L:function(e,t,n){lw.L(e,t,n);var r=bw;if(r&&e&&t){var a='link[rel="preload"][as="'+Be(t)+'"]';"image"===t&&n&&n.imageSrcSet?(a+='[imagesrcset="'+Be(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(a+='[imagesizes="'+Be(n.imageSizes)+'"]')):a+='[href="'+Be(e)+'"]';var o=a;switch(t){case"style":o=Ac(e);break;case"script":o=Mc(e)}ow.has(o)||(e=ju({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),ow.set(o,e),null!==r.querySelector(a)||"style"===t&&r.querySelector(Ic(o))||"script"===t&&r.querySelector($c(o))||(Bs(t=r.createElement("link"),"link",e),ve(t),r.head.appendChild(t)))}},m:function(e,t){lw.m(e,t);var n=bw;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",a='link[rel="modulepreload"][as="'+Be(r)+'"][href="'+Be(e)+'"]',o=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Mc(e)}if(!ow.has(o)&&(e=ju({rel:"modulepreload",href:e},t),ow.set(o,e),null===n.querySelector(a))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector($c(o)))return}Bs(r=n.createElement("link"),"link",e),ve(r),n.head.appendChild(r)}}},X:function(e,t){lw.X(e,t);var n=bw;if(n&&e){var r=ye(n).hoistableScripts,a=Mc(e),o=r.get(a);o||((o=n.querySelector($c(a)))||(e=ju({src:e,async:!0},t),(t=ow.get(a))&&Uc(e,t),ve(o=n.createElement("script")),Bs(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(a,o))}},S:function(e,t,n){lw.S(e,t,n);var r=bw;if(r&&e){var a=ye(r).hoistableStyles,o=Ac(e);t=t||"default";var i=a.get(o);if(!i){var l={loading:ew,preload:null};if(i=r.querySelector(Ic(o)))l.loading=tw|aw;else{e=ju({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ow.get(o))&&Fc(e,n);var s=i=r.createElement("link");ve(s),Bs(s,"link",e),s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),s.addEventListener("load",function(){l.loading|=tw}),s.addEventListener("error",function(){l.loading|=nw}),l.loading|=aw,Oc(i,t,r)}i={type:"stylesheet",instance:i,count:1,state:l},a.set(o,i)}}},M:function(e,t){lw.M(e,t);var n=bw;if(n&&e){var r=ye(n).hoistableScripts,a=Mc(e),o=r.get(a);o||((o=n.querySelector($c(a)))||(e=ju({src:e,async:!0,type:"module"},t),(t=ow.get(a))&&Uc(e,t),ve(o=n.createElement("script")),Bs(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(a,o))}}};var sw,cw,uw,dw,fw,pw,mw,hw,gw,bw="undefined"==typeof document?null:document,yw=null,vw=null,ww=null,kw=null,xw=ed,Sw={$$typeof:Uu,Provider:null,Consumer:null,_currentValue:xw,_currentValue2:xw,_threadCount:0},Cw="%c%s%c ",Ew="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",Tw="",_w=" ",Nw=Function.prototype.bind,Pw=!1;sw=function(e,t,a,o){null!==(t=n(e,t))&&(a=r(t.memoizedState,a,0,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=ju({},e.memoizedProps),null!==(a=gn(e,2))&&El(a,e,2))},cw=function(e,t,r){null!==(t=n(e,t))&&(r=i(t.memoizedState,r,0),t.memoizedState=r,t.baseState=r,e.memoizedProps=ju({},e.memoizedProps),null!==(r=gn(e,2))&&El(r,e,2))},uw=function(e,t,r,o){null!==(t=n(e,t))&&(r=a(t.memoizedState,r,o),t.memoizedState=r,t.baseState=r,e.memoizedProps=ju({},e.memoizedProps),null!==(r=gn(e,2))&&El(r,e,2))},dw=function(e,t,n){e.pendingProps=r(e.memoizedProps,t,0,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),null!==(t=gn(e,2))&&El(t,e,2)},fw=function(e,t){e.pendingProps=i(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),null!==(t=gn(e,2))&&El(t,e,2)},pw=function(e,t,n){e.pendingProps=a(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),null!==(t=gn(e,2))&&El(t,e,2)},mw=function(e){var t=gn(e,2);null!==t&&El(t,e,2)},hw=function(e){s=e},gw=function(e){l=e};var zw,Rw=!0,jw=null,Aw=!1,Iw=null,Lw=null,Mw=null,$w=new Map,Dw=new Map,Ow=[],Fw="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),Uw=null;if(wu.prototype.render=vu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error("Cannot update an unmounted root.");var n=arguments;"function"==typeof n[1]?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):w(n[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):void 0!==n[1]&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),n=e;var r=t.current;Zc(r,Sl(r),n,t,null,null)},wu.prototype.unmount=vu.prototype.unmount=function(){var e=arguments;if("function"==typeof e[0]&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),null!==(e=this._internalRoot)){this._internalRoot=null;var t=e.containerInfo;(Gb&(Ub|Hb))!==Fb&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Zc(e.current,2,null,e,null,null),zl(),t[Od]=null}},wu.prototype.unstable_scheduleHydration=function(e){if(e){var t=pe();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ow.length&&0!==t&&t<Ow[n].priority;n++);Ow.splice(n,0,e),0===n&&fu(e)}},function(){var e=zu.version;if("19.1.1"!==e)throw Error('Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: '+e+"\n - react-dom: 19.1.1\nLearn more: https://react.dev/warnings/version-mismatch")}(),"function"==typeof Map&&null!=Map.prototype&&"function"==typeof Map.prototype.forEach&&"function"==typeof Set&&null!=Set.prototype&&"function"==typeof Set.prototype.clear&&"function"==typeof Set.prototype.forEach||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),Ju.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error("Unable to find node on an unmounted component.");throw e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e)}return e=function(e){var t=e.alternate;if(!t){if(null===(t=k(e)))throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var o=a.alternate;if(null===o){if(null!==(r=a.return)){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return S(a),e;if(o===r)return S(a),t;o=o.sibling}throw Error("Unable to find node on an unmounted component.")}if(n.return!==r.return)n=a,r=o;else{for(var i=!1,l=a.child;l;){if(l===n){i=!0,n=a,r=o;break}if(l===r){i=!0,r=a,n=o;break}l=l.sibling}if(!i){for(l=o.child;l;){if(l===n){i=!0,n=o,r=a;break}if(l===r){i=!0,r=o,n=a;break}l=l.sibling}if(!i)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(n.alternate!==r)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(3!==n.tag)throw Error("Unable to find node on an unmounted component.");return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?C(e):null)?null:e.stateNode},(zw={bundleType:1,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:Zu,reconcilerVersion:"19.1.1"}).overrideHookState=sw,zw.overrideHookStateDeletePath=cw,zw.overrideHookStateRenamePath=uw,zw.overrideProps=dw,zw.overridePropsDeletePath=fw,zw.overridePropsRenamePath=pw,zw.scheduleUpdate=mw,zw.setErrorHandler=hw,zw.setSuspenseHandler=gw,zw.scheduleRefresh=b,zw.scheduleRoot=g,zw.setRefreshHandler=y,zw.getCurrentFiber=nu,zw.getLaneLabelMap=ru,zw.injectProfilingHooks=V,!function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{xd=t.inject(e),Sd=t}catch(n){console.error("React instrumentation encountered an error: %s.",n)}return!!t.checkDCE}(zw)&&Jf&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&-1===navigator.userAgent.indexOf("Edge")||-1<navigator.userAgent.indexOf("Firefox"))){var Hw=window.location.protocol;/^(https?|file):$/.test(Hw)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+("file:"===Hw?"\nYou might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq":""),"font-weight:bold")}v.createRoot=function(e,t){if(!w(e))throw Error("Target container is not a DOM element.");ku(e);var n=!1,r="",a=Lo,o=Mo,i=$o;return null!=t&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):"object"==typeof t&&null!==t&&t.$$typeof===Iu&&console.error("You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:\n\n let root = createRoot(domContainer);\n root.render(<App />);"),!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(a=t.onUncaughtError),void 0!==t.onCaughtError&&(o=t.onCaughtError),void 0!==t.onRecoverableError&&(i=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=Gc(e,1,!1,null,0,n,r,a,o,i,0,null),e[Od]=t.current,Ns(e),new vu(t)},v.hydrateRoot=function(e,t,n){if(!w(e))throw Error("Target container is not a DOM element.");ku(e),void 0===t&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var r=!1,a="",o=Lo,i=Mo,l=$o,s=null;return null!=n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onUncaughtError&&(o=n.onUncaughtError),void 0!==n.onCaughtError&&(i=n.onCaughtError),void 0!==n.onRecoverableError&&(l=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&n.unstable_transitionCallbacks,void 0!==n.formState&&(s=n.formState)),(t=Gc(e,1,!0,t,0,r,a,o,i,l,0,s)).context=Xc(null),(a=Nr(r=ce(r=Sl(n=t.current)))).callback=null,Pr(n,a,r),n=r,t.current.lanes=n,ie(t,n),fs(t),e[Od]=t.current,Ns(e),new wu(t)},v.version="19.1.1","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),v}var k=(y||(y=1,"production"===process.env.NODE_ENV?(function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){if("production"!==process.env.NODE_ENV)throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}(),l.exports=g()):l.exports=w()),l.exports);const x=new class{constructor(){this.supportsContainerQueries=this.detectContainerQueries(),this.init()}detectContainerQueries(){if("undefined"==typeof window)return!1;try{if("CSS"in window&&"supports"in window.CSS)return window.CSS.supports("container-type","inline-size");const e=document.createElement("div");return e.style.containerType="inline-size","inline-size"===e.style.containerType}catch{return!1}}init(){"undefined"!=typeof window&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>this.applyClasses()):this.applyClasses())}applyClasses(){document.querySelectorAll(".limbo-component-container-wrapper").forEach(e=>{this.supportsContainerQueries?(e.classList.add("container-queries-supported"),e.classList.remove("container-queries-fallback")):(e.classList.add("container-queries-fallback"),e.classList.remove("container-queries-supported"))}),this.supportsContainerQueries?(document.body.classList.add("container-queries-supported"),document.body.classList.remove("container-queries-fallback")):(document.body.classList.add("container-queries-fallback"),document.body.classList.remove("container-queries-supported"))}getContainerWidth(e){if(!e)return window.innerWidth;let t=e.closest(".limbo-component-container-wrapper");return t||(t=e.closest(".limbo-modal-content")),t||(t=e.closest(".limbo-modal")),t||(t=document.body),t.offsetWidth||t.clientWidth}shouldUseMobileStyles(e,t=768){return this.getContainerWidth(e)<=t}applyResponsiveClasses(e){if(this.supportsContainerQueries)return;const t=this.shouldUseMobileStyles(e),n=this.shouldUseMobileStyles(e,1024)&&!t;e.classList.toggle("limbo-mobile-fallback",t),e.classList.toggle("limbo-tablet-fallback",n),e.classList.toggle("limbo-desktop-fallback",!t&&!n)}observeResize(){if(!this.supportsContainerQueries)if("ResizeObserver"in window){const e=new ResizeObserver(e=>{e.forEach(e=>{this.applyResponsiveClasses(e.target)})});document.querySelectorAll(".limbo-component-container-wrapper").forEach(t=>{e.observe(t)})}else window.addEventListener("resize",()=>{document.querySelectorAll(".limbo-component-container-wrapper").forEach(e=>{this.applyResponsiveClasses(e)})})}};function S(t={}){const{useContainerQuery:n=!1,containerElement:r=null}=t,[a,o]=e.useState(()=>{const e=n&&r?x.getContainerWidth(r):"undefined"!=typeof window?window.innerWidth:0,t="undefined"!=typeof window&&(e<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)),a="undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0);return{isMobile:t,isTouch:a,isTablet:"undefined"!=typeof window&&(e>768&&e<=1024&&a),orientation:"undefined"!=typeof window?window.innerHeight>window.innerWidth?"portrait":"landscape":"portrait",viewport:{width:"undefined"!=typeof window?window.innerWidth:0,height:"undefined"!=typeof window?window.innerHeight:0},container:{width:e,supportsContainerQueries:x.supportsContainerQueries}}});e.useEffect(()=>{if("undefined"==typeof window)return;const e=()=>{const e=window.innerWidth,t=window.innerHeight,a=n&&r?x.getContainerWidth(r):e,i=a<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),l="ontouchstart"in window||navigator.maxTouchPoints>0;o({isMobile:i,isTouch:l,isTablet:a>768&&a<=1024&&l,orientation:t>e?"portrait":"landscape",viewport:{width:e,height:t},container:{width:a,supportsContainerQueries:x.supportsContainerQueries}})};let t;const a=()=>{clearTimeout(t),t=setTimeout(e,150)};return window.addEventListener("resize",a),window.addEventListener("orientationchange",()=>{setTimeout(e,100)}),()=>{clearTimeout(t),window.removeEventListener("resize",a),window.removeEventListener("orientationchange",e)}},[n,r]);const i="portrait"===a.orientation,l="landscape"===a.orientation,s=a.isMobile||a.isTablet&&i;return{...a,isPortrait:i,isLandscape:l,isCompactMode:s,isMobileSize:a.viewport.width<=640,isTabletSize:a.viewport.width>640&&a.viewport.width<=1024,isDesktopSize:a.viewport.width>1024,deviceClass:a.isMobile?"mobile":a.isTablet?"tablet":"desktop"}}function C({tabs:e,active:t,onChange:r}){const{isMobile:a,isTouch:o}=S();return n.jsx("div",{className:"limbo-tabs "+(a?"limbo-tabs--mobile":""),role:"tablist","aria-label":"Opciones de navegación",style:{...a&&{overflowX:"auto",WebkitOverflowScrolling:"touch",scrollbarWidth:"none",msOverflowStyle:"none"}},children:e.map(i=>{const l=t===i.id;return!l&&i.hideNonActive?null:n.jsx("button",{"data-tab-id":i.id,onClick:()=>r(i.id),onKeyDown:t=>((t,n)=>{const a=e.findIndex(e=>e.id===n);let o=a;switch(t.key){case"ArrowLeft":case"ArrowUp":t.preventDefault(),o=a>0?a-1:e.length-1;break;case"ArrowRight":case"ArrowDown":t.preventDefault(),o=a<e.length-1?a+1:0;break;case"Home":t.preventDefault(),o=0;break;case"End":t.preventDefault(),o=e.length-1;break;case"Enter":case" ":return t.preventDefault(),void r(n);default:return}const i=e[o];i&&!i.hideNonActive&&(r(i.id),setTimeout(()=>{const e=document.querySelector(`[data-tab-id="${i.id}"]`);e&&e.focus()},0))})(t,i.id),className:`limbo-tab ${l?"active":""} ${a?"limbo-tab--mobile":""}`,role:"tab","aria-selected":l,"aria-controls":`tabpanel-${i.id}`,tabIndex:l?0:-1,id:`tab-${i.id}`,style:{...a&&{minWidth:"120px",minHeight:"44px",padding:"12px 16px",flexShrink:0,fontSize:"16px"},...o&&{touchAction:"manipulation",WebkitTapHighlightColor:"transparent"}},children:i.label},i.id)})})}const E="https://led-dev-limbo-dev.eu.els.local",T="https://limbo.lefebvre.com";let _={publicKey:null,token:null,authMode:null,tokenEndpoint:null,prod:!1};function N({prod:e=!1}={}){return e?T:E}async function P({endpoint:e,method:t="GET",body:n=null,prod:r=!1,basePath:a="",customHeaders:o={},isFormData:i=!1,useJWT:l=!0}){try{const s=r||_.prod,c=await async function({isFormData:e=!1,useJWT:t=!0,customHeaders:n={}}={}){const r={};if(e||(r["Content-Type"]="application/json"),t){let e=_.token;if("session"===_.authMode&&!e)try{const t=N(_),n=_.tokenEndpoint||"/auth/token",r=await fetch(`${t}${n}`,{method:"POST",headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"},body:JSON.stringify({public_key:_.publicKey}),credentials:"include"});if(!r.ok)throw new Error(`Session auth failed: ${r.status}`);e=(await r.json()).token,_.token=e}catch(a){throw console.error("❌ Session authentication failed:",a),new Error("Failed to authenticate with session. User must be logged in.")}e?r.Authorization=`Bearer ${e}`:console.warn("⚠️ No JWT token available:",{authMode:_.authMode,hasPublicKey:!!_.publicKey})}return e&&delete r["Content-Type"],{...r,...n}}({isFormData:i,useJWT:l,customHeaders:o});"GET"===t&&!n&&c["Content-Type"]&&delete c["Content-Type"];const u=await fetch(`${N({prod:s})}${a}${e}`,{method:t,headers:c,body:n?i?n:JSON.stringify(n):void 0,credentials:"include"});if(!u.ok){let e=`HTTP ${u.status}: ${u.statusText}`,t=null;try{const n=await u.json();t=n,n.error?e=`${n.error.code}: ${n.error.message}`:n.message&&(e=n.message)}catch{}throw 401===u.status&&t&&("token_expired"===t.error||t.message&&t.message.includes("expired")||t.message&&t.message.includes("caducado")||t.error&&t.error.includes("expired"))&&window.dispatchEvent(new CustomEvent("tokenExpiredError",{detail:{error:{response:{status:401,data:t}}}})),new Error(e)}return u.json()}catch(s){throw new Error(`API Error: ${s.message}`)}}function z(){const e={..._};return e?.prod||!1?"https://limbo.lefebvre.com":"http://localhost"}function R(e){if(!e?.id)return null;return`${z()}/api/assets/${e.id}/download`}function j(e){if(!e)return null;if(e.startsWith("http://")||e.startsWith("https://"))return e;if(e.startsWith("/")){return`${z()}${e}`}return e}function A(e){if(e.message&&!e.message.includes("API Error:"))return e;let t=e.message||"Unknown API error";return t.startsWith("API Error: ")&&(t=t.substring(11)),new Error(t)}const I="/api";async function L(e={}){try{const t=new URLSearchParams(e).toString(),n=t?`/assets?${t}`:"/assets";return function(e){if(!e?.success||!Array.isArray(e?.data?.data))return{result:[]};const t={result:e.data.data.map(e=>({id:e.id,filename:e.filename||e.original_filename,mime_type:e.mime_type,file_size:e.file_size,width:e.width,height:e.height,upload_date:e.upload_date||e.created_at,processing_status:e.processing_status||e.status,url:j(e.master_url||e.master?.url_signed||e.urls?.original||e.url)||R(e),webp_available:e.webp_available||!!e.webp_url,metadata:e.metadata||{},variants_count:e.variants_count||0}))};return e.data.pagination&&(t.pagination={page:e.data.pagination.page,limit:e.data.pagination.limit,total:e.data.pagination.total,pages:e.data.pagination.pages}),t}(await P({endpoint:n,method:"GET",basePath:I,useJWT:!0}))}catch(t){throw A(t)}}async function M(e,t=null,n=!1){try{const r=new FormData;r.append("file",e),t&&r.append("uploaded_by",t),n&&r.append("store_original",n.toString());return function(e){if(!e?.success||!e?.data)return{result:null};const t=e.data;return{result:{id:t.id,filename:t.original_filename,mime_type:t.mime_type,file_size:t.file_size,width:t.width,height:t.height,status:t.status,upload_date:t.created_at,url:j(t.master?.url_signed),master_format:t.master?.format,processing:t.processing||{master_webp:"processing"===t.status?"queued":"completed",variants:"processing"===t.status?"queued":"completed"},checksum:t.checksum,storage_path:t.storage_path_base,metadata:t.metadata||{}}}}(await P({endpoint:"/assets",method:"POST",body:r,basePath:I,isFormData:!0,useJWT:!0}))}catch(r){throw A(r)}}async function $(e){try{const n=await P({endpoint:`/assets/${e}/variants`,method:"GET",basePath:I,useJWT:!0});return t=n,t?.success&&Array.isArray(t?.data?.variants)?{result:t.data.variants.map(e=>({id:e.id,name:e.filename||e.name||`Variante ${e.id}`,filename:e.filename,mime_type:e.mime_type,format:e.output_format||e.format||(e.mime_type?e.mime_type.split("/")[1]:"jpg"),file_size:e.file_size,width:e.width,height:e.height,upload_date:e.upload_date||e.created_at,processing_status:e.processing_status||e.status,url:j(e.master_url||e.master?.url_signed||e.urls?.original||e.url)||R(e),webp_available:e.webp_available||!!e.webp_url,metadata:e.metadata||{},crop_data:e.crop_data||{},crop_params:e.crop_params||e.crop_data||{},parent_asset_id:e.parent_asset_id||t.data.asset_id,variant_type:e.variant_type||"crop"}))}:{result:[]}}catch(n){throw A(n)}var t}function D(){const[t,n]=e.useState({}),[r,a]=e.useState({}),[o,i]=e.useState({}),l=e.useCallback(async e=>{if(e&&!r[e]){if(t[e])return t[e];a(t=>({...t,[e]:!0})),i(t=>({...t,[e]:null}));try{const t=await $(e),r=t?.result||[];return n(t=>({...t,[e]:r})),r}catch(o){return console.error("Error loading variants:",o),i(t=>({...t,[e]:o.message})),[]}finally{a(t=>({...t,[e]:!1}))}}},[t,r]),s=e.useCallback(e=>t[e]||[],[t]),c=e.useCallback(e=>r[e]||!1,[r]),u=e.useCallback(e=>o[e]||null,[o]),d=e.useCallback(e=>{n(t=>{const n={...t};return delete n[e],n}),a(t=>{const n={...t};return delete n[e],n}),i(t=>{const n={...t};return delete n[e],n})},[]),f=e.useCallback(async e=>(d(e),await l(e)),[d,l]),p=e.useCallback(async(e,t)=>{try{return await async function(e,t){try{return await P({endpoint:`/assets/${e}/variants/${t}`,method:"DELETE",basePath:I,useJWT:!0})}catch(n){throw A(n)}}(e,t),n(n=>{const r=n[e]||[];return{...n,[e]:r.filter(e=>e.id!==t)}}),{success:!0}}catch(r){return console.error("Error deleting variant:",r),{success:!1,error:r.message}}},[]);return{loadVariants:l,getVariants:s,isLoading:c,getError:u,clearVariants:d,refreshVariants:f,removeVariant:p}}function O({image:t,isOpen:r,onClose:a,onSelect:o,onDelete:i,onCrop:l,onVariantDeleted:s,allowedActions:c={select:!0,download:!0,copy:!0,delete:!0,crop:!0}}){const{loadVariants:u,getVariants:d,isLoading:f,getError:p,removeVariant:m}=D(),h=window.limboCore?.accessibilityManager,[g,b]=e.useState(null),[y,v]=e.useState(null),w=(window.limboCore?.config?.getGlobal()||{}).interaction||{allowSelection:!1,allowCropping:!0},k=w.allowSelection&&c.select&&o,x=w.allowCropping&&c.crop&&l,S=c.copy,C=c.download,E=c.delete,[T,_]=e.useState(new Set),N=e.useMemo(()=>t?.variants||[],[t?.variants]),P=d(t?.id),z=N.length>0?N:P,R=0===N.length&&f(t?.id),j=0===N.length?p(t?.id):null;e.useEffect(()=>{!r||!t?.id||t?.variants&&0!==t.variants.length||u(t.id)},[r,t?.id,t?.variants,u]),e.useEffect(()=>{r&&_(new Set)},[r]);if(!r)return null;return n.jsx("div",{className:"limbo-modal-overlay",onClick:a,role:"dialog","aria-modal":"true","aria-labelledby":"variants-modal-title",children:n.jsxs("div",{className:"limbo-modal-content limbo-variants-modal",onClick:e=>e.stopPropagation(),children:[n.jsxs("div",{className:"limbo-modal-header",children:[n.jsxs("h2",{id:"variants-modal-title",children:["Variantes de ",t?.filename]}),n.jsx("button",{className:"limbo-modal-close",onClick:a,"aria-label":"Cerrar modal de variantes",children:"✕"})]}),g&&n.jsx("div",{className:`limbo-variants-message limbo-variants-message--${y} mt-1`,role:"alert",style:{padding:"12px 20px",margin:"0 20px 15px 20px",borderRadius:"4px",backgroundColor:"success"===y?"#d4edda":"#f8d7da",color:"success"===y?"#155724":"#721c24",border:"1px solid "+("success"===y?"#c3e6cb":"#f5c6cb")},children:g}),n.jsx("div",{className:"limbo-modal-body",children:R?n.jsxs("div",{className:"limbo-variants-loading",children:[n.jsx("div",{className:"limbo-loader"}),n.jsx("p",{children:"Cargando variantes..."})]}):j?n.jsxs("div",{className:"limbo-variants-error",children:[n.jsxs("p",{children:["Error al cargar variantes: ",j]}),n.jsx("button",{onClick:()=>u(t.id),className:"btn btn-primary",children:"Reintentar"})]}):0===z.length?n.jsxs("div",{className:"limbo-variants-empty",children:[n.jsx("p",{children:"Esta imagen no tiene variantes aún."}),n.jsx("small",{children:"Las variantes aparecerán aquí después de hacer recortes o redimensionados."})]}):n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"limbo-variant-section",children:[n.jsx("h3",{children:"Imagen original"}),n.jsxs("div",{onClick:()=>{h?.announce(`Abriendo imagen original ${t.filename} en nueva pestaña`),window.open(t.url,"_blank")},className:"limbo-variant-card limbo-variant-original cursor-pointer",children:[n.jsx("div",{className:"limbo-variant-preview",children:n.jsx("img",{src:t.url,alt:t.filename,loading:"lazy"})}),n.jsxs("div",{className:"limbo-variant-info",children:[n.jsx("div",{className:"limbo-variant-name",children:t.filename}),n.jsxs("div",{className:"limbo-variant-meta",children:[n.jsxs("span",{children:[t.width,"×",t.height]}),n.jsxs("span",{children:[Math.round(t.file_size/1024)," KB"]})]})]}),n.jsxs("div",{className:"limbo-variant-actions",children:[k&&n.jsx("button",{className:"btn btn-success btn-sm",onClick:e=>{e.stopPropagation(),o?.(t),a?.()},title:"Seleccionar original",children:"Seleccionar"}),x&&n.jsx("button",{className:"btn btn-crop btn-sm",onClick:e=>{e.stopPropagation(),l&&(h?.announce(`Abriendo herramienta de recorte para ${t.filename}`),l(t),a?.())},title:"Recortar imagen",children:n.jsx("span",{className:"icon icon-scissors-white icon--sm"})}),S&&n.jsx("button",{className:"btn btn-secondary btn-sm",onClick:e=>{e.stopPropagation(),(async()=>{try{await navigator.clipboard.writeText(t.url),h?.announce("URL de imagen original copiada")}catch(e){console.error("Error copying original URL:",e),h?.announceError("Error al copiar URL")}})()},title:"Copiar URL",children:n.jsx("span",{className:"icon icon-copy-white icon--sm"})}),C&&n.jsx("button",{className:"btn btn-primary btn-sm",onClick:e=>{e.stopPropagation(),(()=>{h?.announce(`Descargando imagen original ${t.filename}`);const e=document.createElement("a");e.href=t.url,e.download=t.filename,document.body.appendChild(e),e.click(),document.body.removeChild(e)})()},title:"Descargar",children:n.jsx("span",{className:"icon icon-download-white icon--sm"})}),E&&i&&n.jsx("button",{className:"btn btn-danger btn-sm",onClick:e=>{e.stopPropagation(),(async()=>{if(!i)return;window.confirm(`¿Estás seguro de que deseas eliminar "${t.filename}"? Esta acción también eliminará todas sus variantes.`)&&(h?.announce(`Eliminando imagen ${t.filename}`),await i(t.id),a?.())})()},title:"Eliminar imagen",children:n.jsx("span",{className:"icon icon-close-small-white icon--sm m-[0!important]"})})]})]})]}),n.jsxs("div",{className:"limbo-variant-section",children:[n.jsxs("h3",{children:["Variantes (",z.length,")"]}),n.jsx("div",{className:"limbo-variants-grid",children:z.map(e=>{const r=T.has(e.id);return n.jsxs("div",{className:"limbo-variant-card "+(r?"":"cursor-pointer"),onClick:r?void 0:()=>(e=>{h?.announce(`Abriendo variante ${e.name} en nueva pestaña`),window.open(e.url,"_blank")})(e),children:[n.jsxs("div",{className:"limbo-variant-preview",children:[n.jsx("img",{src:e.url,alt:e.name||e.filename||`Variante ${e.id}`,loading:"lazy",onError:()=>{return t=e.id,void _(e=>new Set([...e,t]));var t},style:{display:r?"none":"block"}}),r&&n.jsx("div",{className:"limbo-variant-error",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100px",backgroundColor:"#f5f5f5",color:"#666"},children:n.jsx("span",{children:"Error al cargar preview"})})]}),n.jsxs("div",{className:"limbo-variant-info",children:[n.jsx("div",{className:"limbo-variant-name",children:e.name||e.filename||`Variante ${e.id}`}),n.jsxs("div",{className:"limbo-variant-meta",children:[n.jsxs("span",{children:[e.width,"×",e.height]}),n.jsx("span",{children:(e.format||"jpg").toUpperCase()}),n.jsxs("span",{children:[Math.round((e.file_size||0)/1024)," KB"]})]}),e.crop_params&&n.jsxs("div",{className:"limbo-variant-crop-badge",children:[n.jsx("span",{className:"icon icon-scissors icon--xs"})," ","Recortada"]})]}),n.jsxs("div",{className:"limbo-variant-actions",children:[k&&n.jsx("button",{className:"btn btn-success btn-sm",onClick:n=>{n.stopPropagation(),(e=>{const n={id:e.id,filename:`${t.filename}_${e.name}`,url:e.url,width:e.width,height:e.height,mime_type:`image/${e.format}`,file_size:e.file_size,upload_date:e.created_at,processing_status:"completed",is_variant:!0,parent_asset_id:t.id,variant_info:e};h?.announce(`Variante seleccionada: ${e.name}`),o?.(n),a?.()})(e)},title:`Seleccionar variante ${e.name||e.filename||e.id}`,children:"Seleccionar"}),S&&n.jsx("button",{className:"btn btn-secondary btn-sm",onClick:t=>{t.stopPropagation(),(async e=>{try{await navigator.clipboard.writeText(e.url),h?.announce(`URL de variante ${e.name} copiada`)}catch(t){console.error("Error copying variant URL:",t),h?.announceError("Error al copiar URL de variante")}})(e)},title:"Copiar URL",children:n.jsx("span",{className:"icon icon-copy-white icon--sm"})}),C&&n.jsx("button",{className:"btn btn-primary btn-sm",onClick:n=>{n.stopPropagation(),(e=>{h?.announce(`Descargando variante ${e.name}`);const n=document.createElement("a");n.href=e.url,n.download=`${t.filename}_${e.name}.${e.format}`,document.body.appendChild(n),n.click(),document.body.removeChild(n)})(e)},title:"Descargar",children:n.jsx("span",{className:"icon icon-download-white icon--sm"})}),E&&n.jsx("button",{className:"btn btn-danger btn-sm",onClick:n=>{n.stopPropagation(),(async e=>{if(window.confirm(`¿Estás seguro de que deseas eliminar la variante "${e.name||e.filename}"?`)){h?.announce(`Eliminando variante ${e.name||e.filename}`);const n=await m(t.id,e.id);n.success?(b("Variante eliminada correctamente"),v("success"),h?.announce("Variante eliminada correctamente"),s?.(),setTimeout(()=>{b(null),v(null)},3e3)):(b(`Error al eliminar variante: ${n.error}`),v("error"),h?.announceError(`Error al eliminar variante: ${n.error}`),setTimeout(()=>{b(null),v(null)},5e3))}})(e)},title:"Eliminar variante",children:n.jsx("span",{className:"icon icon-close-small-white icon--sm m-[0!important]"})})]})]},e.id)})})]})]})})]})})}function F({image:t,onDelete:r,onCrop:a,onSelect:o,thumbnailSize:i=32,isDeleting:l=!1,allowedActions:s={select:!0,download:!0,copy:!0,delete:!0,crop:!0,variants:!0}}){const[c,u]=e.useState(!1),[d,f]=e.useState(!1),[p,m]=e.useState(t.variants_count||0),{isMobile:h,isTouch:g}=S(),b=window.limboCore?.accessibilityManager,y=(window.limboCore?.config?.getGlobal()||{}).interaction||{allowSelection:!1,allowCropping:!0},v=e=>{e.stopPropagation(),b?.announce(`Eliminando imagen ${t.filename}`,"assertive"),r?.(t)},w=async e=>{e.stopPropagation();let n=t.url||t.path;try{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(n);else{const e=document.createElement("textarea");e.value=n,e.style.position="fixed",e.style.opacity="0",document.body.appendChild(e),e.focus(),e.select(),document.execCommand("copy"),document.body.removeChild(e)}u(!0),b?.announce(`URL de ${t.filename} copiada al portapapeles. Nota: La URL puede tener un tiempo de validez limitado.`),setTimeout(()=>u(!1),2e3)}catch(r){console.error("Error al copiar URL:",r),b?.announce(`Error al copiar URL de ${t.filename}. Inténtalo de nuevo.`),alert(`Error al copiar URL de ${t.filename}. Por favor, inténtalo de nuevo.`)}},k=e=>{e.preventDefault(),e.stopPropagation(),b?.announce(`Descargando ${t.filename}`),fetch(t.url||t.path,{mode:"cors"}).then(e=>e.blob()).then(e=>{const n=window.URL.createObjectURL(e),r=document.createElement("a");r.href=n,r.download=t.filename||"imagen.jpg",document.body.appendChild(r),r.click(),setTimeout(()=>{window.URL.revokeObjectURL(n),document.body.removeChild(r)},100)})},x=e=>{e.stopPropagation(),b?.announce(`Editando imagen ${t.filename}`),a?.(t)},C=t.variants&&t.variants.length>0||p>0,E=p,T=e.useCallback(()=>{m(e=>Math.max(0,e-1))},[]);e.useEffect(()=>{m(t.variants_count||0)},[t.variants_count]);const _=e=>{e.stopPropagation(),b?.announce(`Mostrando variantes de ${t.filename}`),f(!0)},N=y.allowSelection&&s.select&&o,P=y.allowCropping&&s.crop&&a,z=C&&!1!==s.variants,R=()=>{window.open(t.url||t.path,"_blank")};return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:`limbo-image-card flex flex-col items-center cursor-pointer relative transition ${l?"opacity-50":""} ${h?"limbo-image-card--mobile":""}`,onClick:R,onKeyDown:e=>{switch(e.key){case"Enter":case" ":e.preventDefault(),R();break;case"d":case"D":s.download&&(e.preventDefault(),k(e));break;case"c":case"C":s.copy&&(e.preventDefault(),w(e));break;case"Delete":case"Backspace":s.delete&&r&&(e.preventDefault(),v(e));break;case"x":case"X":s.crop&&a&&(e.preventDefault(),x(e));break;case"v":case"V":s.variants&&(e.preventDefault(),_(e))}},title:h?"Toque para ver imagen":"Haga click en la imagen para ver preview en nueva pestaña (Enter/Space para abrir, D descargar, C copiar, Delete eliminar, X recortar)",role:"button",tabIndex:0,"aria-label":`Imagen ${t.filename}. ${t.width}x${t.height} px`,style:{...g&&{touchAction:"manipulation",WebkitTapHighlightColor:"transparent"}},children:[n.jsxs("div",{className:"limbo-image-actions "+(h?"limbo-image-actions--mobile":""),children:[z&&n.jsxs("button",{type:"button",title:`Ver ${E} variante${1!==E?"s":""}`,className:"btn btn-variants border border-brand-blue-050/50 "+(h?"btn--touch":""),onClick:_,tabIndex:-1,style:{...h&&{width:"40px",height:"40px"},position:"relative"},children:[n.jsx("span",{className:"icon icon-album-menu-white icon--sm","aria-hidden":"true"}),E>0&&n.jsx("span",{className:"variants-count-badge",style:{position:"absolute",top:"-8px",right:"-8px",background:"#dc2626",color:"white",borderRadius:"50%",minWidth:"20px",height:"20px",fontSize:"12px",fontWeight:"700",display:"flex",alignItems:"center",justifyContent:"center",lineHeight:"1",border:"2px solid white",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.4)",zIndex:"999"},children:E})]}),N&&n.jsx("button",{type:"button",title:"Seleccionar imagen",className:"btn btn-success border border-brand-blue-050/50 "+(h?"btn--touch":""),onClick:e=>{e.stopPropagation(),b?.announce(`Seleccionando ${t.filename} para el portal`),o?.(t)},tabIndex:-1,style:{...h&&{width:"40px",height:"40px"}},children:n.jsx("span",{className:"icon icon-tick-white icon--sm","aria-hidden":"true"})}),P&&n.jsx("button",{type:"button",title:"Editar imagen",className:"btn btn-crop border border-brand-blue-050/50 "+(h?"btn--touch":""),onClick:x,tabIndex:-1,style:{...h&&{width:"40px",height:"40px"}},children:n.jsx("span",{className:"icon icon-scissors-white icon--sm","aria-hidden":"true"})}),s.copy&&n.jsx("button",{type:"button",title:c?"¡Copiado!":"Copiar URL",className:"btn btn-copy border border-brand-blue-050/50 "+(h?"btn--touch":""),onClick:w,tabIndex:-1,style:{...h&&{width:"40px",height:"40px"}},children:n.jsx("span",{className:`icon ${c?"icon-copied-white":"icon-copy-white"} icon--sm`,"aria-hidden":"true"})}),s.download&&n.jsx("button",{type:"button",title:"Descargar",className:"btn btn-download border border-brand-blue-050/50 "+(h?"btn--touch":""),onClick:k,tabIndex:-1,style:{...h&&{width:"40px",height:"40px"}},children:n.jsx("span",{className:"icon icon-download-white icon--sm","aria-hidden":"true"})}),s.delete&&r&&n.jsx("button",{onClick:v,disabled:l,className:"btn btn-delete border border-brand-blue-050/50 "+(h?"btn--touch":""),title:"Eliminar imagen",tabIndex:-1,style:{...h&&{width:"40px",height:"40px"}},children:l?"…":n.jsx("span",{className:"icon icon-close-small-white icon--sm","aria-hidden":"true"})})]}),n.jsx("img",{src:t.url||t.path,alt:t.filename,className:"w-full object-cover rounded aspect-square",sizes:`height: ${6*i}px,width: ${6*i}px`,draggable:!1,style:{...h&&{minHeight:`${Math.max(3*i,80)}px`,height:"auto",aspectRatio:"1 / 1",objectFit:"cover"}}}),n.jsx("span",{className:"text-xs mt-1 truncate w-full text-center limbo-image-card-name "+(h?"limbo-image-card-name--mobile":""),style:{...h&&{fontSize:"0.75rem",lineHeight:"1.2",maxWidth:"100%",padding:"2px 4px",backgroundColor:"rgba(255, 255, 255, 0.9)",borderRadius:"4px",color:"#333",fontWeight:"500"}},children:t.filename})]}),n.jsx(O,{image:t,isOpen:d,onClose:()=>f(!1),onSelect:o,onDelete:r,onCrop:a,onVariantDeleted:T,allowedActions:{select:s.select,download:s.download,copy:s.copy,delete:s.delete,crop:s.crop}})]})}function U({text:e="Cargando..."}){return n.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-gray-600",role:"status","aria-live":"polite","aria-label":e,children:[n.jsxs("svg",{className:"animate-spin h-6 w-6 mb-2 text-blue-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:[n.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),n.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v8H4z"})]}),n.jsx("p",{className:"text-sm",id:"loader-text",children:e})]})}const H=new Map;function W({apiKey:t,prod:r,onSelect:a,onCrop:o,onDelete:i,deletingId:l,images:s,loading:c,error:u,allowedActions:d={select:!0,download:!0,copy:!0,delete:!0,crop:!0,variants:!0}}){const[f,p]=e.useState({search:"",dateFrom:"",dateTo:"",originPortal:"",uploadedBy:""}),m=e.useRef(null),h=function(){const[t,n]=e.useState(null),[r,a]=e.useState(!0),[o,i]=e.useState(null);return e.useEffect(()=>{const e="auth-status",t=H.get(e),r=Date.now();if(t&&r-t.timestamp<3e5)return n(t.data),void a(!1);let o=!0;return(async()=>{try{const t=!0;if(!o)return;H.set(e,{data:t,timestamp:Date.now()}),n(t)}catch(t){o&&(i(t.message),n(!1))}finally{o&&a(!1)}})(),()=>{o=!1}},[]),{allowed:t,loading:r,error:o,invalidateCache:()=>{H.delete("auth-status")}}}(),g=window.limboCore?.accessibilityManager;e.useEffect(()=>{if(m.current&&window.limboCore?.keyboardManager){const e="gallery-grid";m.current.setAttribute("data-grid-id",e),window.limboCore.keyboardManager.setupGridNavigation(m.current,{itemSelector:".limbo-image-card",gridId:e,columns:"auto"})}},[s]),e.useEffect(()=>{c?g?.announceLoading(!0,"galería"):c||u?u&&g?.announceError(u,"galería"):(g?.announceLoading(!1,"galería"),s.length>0&&g?.announce(`Se encontraron ${s.length} imágenes en la galería`))},[c,u,s.length,g]);const b=e=>{const{name:t,value:n}=e.target;p(e=>({...e,[t]:n}))};return n.jsxs("div",{className:"w-full",children:[n.jsx("div",{className:"limbo-card mb-6 p-4 bg-brand-blue-050 shadow-md",children:n.jsxs("form",{className:"limbo-form-grid flex flex-col sm:flex-row flex-wrap gap-4 items-start sm:items-end justify-between",onSubmit:e=>e.preventDefault(),"aria-label":"Filtrar imágenes",children:[n.jsxs("div",{className:"flex flex-col w-full sm:min-w-[180px] sm:flex-1",children:[n.jsx("label",{htmlFor:"search",className:"form-label mb-1",children:"Nombre"}),n.jsx("input",{type:"text",name:"search",id:"search",placeholder:"Buscar por nombre...",value:f.search,onChange:b,className:"form-control",autoComplete:"off"})]}),n.jsxs("div",{className:"flex flex-col sm:flex-row flex-wrap gap-2 justify-between items-start sm:items-end w-full sm:w-auto",children:[n.jsxs("div",{className:"flex flex-col w-full sm:w-auto",children:[n.jsx("label",{htmlFor:"dateFrom",className:"form-label mb-1",children:"Desde"}),n.jsx("input",{type:"date",name:"dateFrom",id:"dateFrom",value:f.dateFrom,onChange:b,className:"form-control"})]}),n.jsxs("div",{className:"flex flex-col w-full sm:w-auto",children:[n.jsx("label",{htmlFor:"dateTo",className:"form-label mb-1",children:"Hasta"}),n.jsx("input",{type:"date",name:"dateTo",id:"dateTo",value:f.dateTo,onChange:b,className:"form-control"})]}),h&&n.jsxs("div",{className:"flex flex-col w-full sm:w-auto",children:[n.jsx("label",{htmlFor:"originPortal",className:"form-label mb-1",children:"Portal de origen"}),n.jsx("input",{type:"text",name:"originPortal",id:"originPortal",placeholder:"Portal de origen",value:f.originPortal,onChange:b,className:"form-control"})]}),n.jsxs("div",{className:"flex flex-col w-full sm:w-auto",children:[n.jsx("label",{htmlFor:"uploadedBy",className:"form-label mb-1",children:"Subido por"}),n.jsx("input",{type:"text",name:"uploadedBy",id:"uploadedBy",placeholder:"Subido por",value:f.uploadedBy,onChange:b,className:"form-control"})]})]})]})}),c?n.jsx(U,{text:"Cargando imágenes..."}):u?n.jsx("div",{className:"alert alert-danger text-center",children:u}):n.jsx("div",{ref:m,className:"limbo-gallery mt-4","data-limbo-responsive":!0,"data-grid-id":"gallery-grid",role:"grid","aria-label":"Galería de imágenes. Use las flechas para navegar entre imágenes",children:s.length>0?s.map((e,t)=>n.jsx("div",{role:"gridcell","aria-posinset":t+1,"aria-setsize":s.length,children:n.jsx(F,{image:e,onSelect:a,onCrop:o,onDelete:d.delete&&i?()=>i(e.id):null,thumbnailSize:32,isDeleting:l===e.id,allowedActions:d})},e.id)):n.jsx("div",{className:"col-span-full text-center text-gray-500 py-8",role:"status","aria-live":"polite",children:n.jsx("p",{children:"No se han encontrado imágenes"})})})]})}function B({file:e,setFile:t,previewUrl:r,setPreviewUrl:a,fileInputRef:o,onUpload:i,disabled:l}){return n.jsxs("form",{onSubmit:n=>{n.preventDefault(),e&&!l&&(i(e),t(null),a(null),o.current&&(o.current.value=""))},className:"flex flex-col items-center gap-6","aria-label":"Subir imagen desde dispositivo",children:[n.jsxs("label",{htmlFor:"file-input",className:"w-full flex flex-col items-center justify-center border-2 border-dashed border-brand-blue-200 rounded-xl p-8 cursor-pointer hover:border-brand-blue-1000 hover:to-bright-blue-200 hover:from-brand-blue-050 focus-within:border-brand-blue-800 from-bright-blue-050 to-brand-blue-050 bg-linear-to-br transition",tabIndex:0,style:{outline:"none"},children:[n.jsx("span",{className:"icon icon-upload icon--lg mb-2","aria-hidden":"true"}),n.jsx("span",{className:"font-medium text-brand-blue-1000 mb-1",children:"Haz clic o arrastra una imagen aquí"}),n.jsx("span",{className:"text-sm text-neutral-700",children:"Formatos permitidos: JPG, PNG, GIF, SVG, WebP"}),n.jsx("input",{id:"file-input",ref:o,type:"file",accept:"image/jpeg,image/png,image/svg,image/webp,image/gif",onChange:e=>{const n=e.target.files[0];if(t(n),n){const e=URL.createObjectURL(n);a(e)}else a(null)},disabled:l,className:"sr-only","aria-label":"Seleccionar imagen"})]}),r&&n.jsxs("div",{className:"w-full flex flex-col items-center gap-2",children:[n.jsx("img",{src:r,alt:e?.name||"Previsualización",className:"rounded-lg shadow-md border border-brand-blue-200 max-h-64 object-contain bg-white",style:{maxWidth:"100%"}}),n.jsxs("div",{className:"text-sm text-neutral-800 bg-brand-blue-050 p-2 rounded w-full text-center",children:[n.jsxs("p",{children:[n.jsx("span",{className:"font-medium",children:"Archivo:"})," ",e?.name]}),n.jsxs("p",{children:[n.jsx("span",{className:"font-medium",children:"Tamaño:"})," ",e?(e.size/1024/1024).toFixed(2):"--"," MB"]}),n.jsxs("p",{children:[n.jsx("span",{className:"font-medium",children:"Tipo:"})," ",e?.type]})]})]}),n.jsx("button",{type:"submit",disabled:!e||l,title:e?"Subir imagen a la galeria":"Proporcione una imagen antes de continuar",className:"limbo-btn w-full mt-2 "+(e?"limbo-btn-primary":"cursor-not-allowed limbo-btn-disabled"),style:{minHeight:44},children:l?"Subiendo...":"Subir imagen"})]})}const V="/api";const q=new Map;function Q(t=!1){const[n,r]=e.useState([]),[a,o]=e.useState(!0),[i,l]=e.useState(null);e.useEffect(()=>{const e=`ai-services-${t}`,n=q.get(e),a=Date.now();if(n&&a-n.timestamp<864e5)return r(n.data),void o(!1);let i=!0;return(async()=>{try{const n=await function(e=!1){return P({endpoint:"/ai/services",prod:e,basePath:V})}(t);if(!i)return;const o=n?.data?.images||[];r(o),q.set(e,{data:o,timestamp:a})}catch(n){i&&l(n.message)}finally{i&&o(!1)}})(),()=>{i=!1}},[t]);return{services:n,loading:a,error:i,invalidateCache:()=>{q.delete(`ai-services-${t}`)}}}const K=new Map;function Y(t=!1){const[n,r]=e.useState(null),[a,o]=e.useState(!1),[i,l]=e.useState(null);return{params:n,loading:a,error:i,fetchParams:async e=>{o(!0),l(null);const n=`${t}-${e}`,a=Date.now(),i=K.get(n);if(i&&a-i.timestamp<864e5)return r(i.data),o(!1),i.data;try{const o=await function({services:e=null,form:t=!1}={},n=!1){const r={};return e&&(r.services=e),!1!==t&&(r.form=t),P({endpoint:"/ai/params"+(Object.keys(r).length?"?"+new URLSearchParams(r).toString():""),method:"GET",prod:n,basePath:"/api/atenea"})}({services:e,form:!1},t),i=o?.result?.data||o?.data||o?.result||o;return r(i),K.set(n,{data:i,timestamp:a}),i}catch(s){return l(s.message),r(null),null}finally{o(!1)}},reset:()=>{l(null),r(null)}}}function G({prod:t,disabled:r,onSelected:a,onGenerated:o}){const i=Q(t),l=Y(t),[s,c]=e.useState(""),[u,d]=e.useState({}),[f,p]=e.useState(!1),[m,h]=e.useState(null),[g,b]=e.useState(null),y={"dall-e-2":"Dalle2","dall-e-3":"Dalle3","freepik-classic":"Freepik Classic","freepik-mystic":"Freepik Mystic","freepik-google":"Freepik Google","freepik-flux":"Freepik Flux",shutterstock:"Shutterstock",freepikstock:"Freepik"},v=e=>y[e]||e;e.useEffect(()=>{if(!i.loading&&1===i.services.length){const e=i.services[0];c(e),l.fetchParams(e,!0)}},[i.loading,i.services]);e.useEffect(()=>{if(!s)return;const e=l.params?.[s]?.parameters;if(e){const t=Object.fromEntries(Object.entries(e).map(([e,t])=>[e,t.default??""]));t.service=s,d(t)}},[s,l.params]);const w=e=>{const{name:t,value:n}=e.target;d(e=>({...e,[t]:n}))},k=async e=>{e.preventDefault(),p(!0),h(null),b(null);try{const e=await function(e,t=!1){return P({endpoint:"/ai/generate",method:"POST",body:e,prod:t,basePath:V})}(u,t);let r=null;if(e?.data?.images&&Array.isArray(e.data.images)&&e.data.images.length>0?r=e.data.images[0]:e?.result?.images&&Array.isArray(e.result.images)&&e.result.images.length>0?r=e.result.images[0]:Array.isArray(e)&&e.length>0?r=e[0]:"string"==typeof e&&(r=e),!r||!o)throw new Error("No se pudo extraer la imagen de la respuesta");if(r.startsWith("http"))try{const e=await fetch(r);if(!e.ok)throw new Error(`Failed to download image: ${e.status}`);const t=await e.blob(),n=new File([t],"ai-image.png",{type:t.type||"image/png"});o(n)}catch(n){throw new Error(`Error downloading image: ${n.message}`)}else{const e=r.replace(/^data:image\/\w+;base64,/,""),t=atob(e),n=new Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);const a=new Uint8Array(n),i=new File([a],"ai-image.webp",{type:"image/webp"});o(i)}b(e?.data?.images||e?.result?.images||null)}catch(r){h(r.message||"Error al generar la imagen")}finally{p(!1)}};return i.loading?n.jsxs("div",{className:"flex items-center justify-center py-8",children:[n.jsx("span",{className:"limbo-loader mr-2"})," Cargando servicios IA..."]}):i.services.length?n.jsxs("div",{className:"flex flex-col gap-4",children:[n.jsx("h3",{id:"aiSelectDescription",className:"text-lg font-semibold text-brand-blue-1000",children:1===i.services.length?`Generación con ${v(s)}`:"Selecciona el modelo IA"}),i.services.length>1&&n.jsxs("select",{name:"aiService","aria-describedby":"aiSelectDescription",title:"Selecciona el servicio IA",value:s,onChange:async e=>{const t=e.target.value;c(t),d({}),b(null),t&&await l.fetchParams(t,!0)},disabled:i.loading||r,className:"limbo-input",children:[n.jsx("option",{value:"",children:"-- Selecciona --"}),i.services.map(e=>n.jsx("option",{value:e,children:v(e)},e))]}),i.error&&n.jsx("div",{className:"alert alert-danger",children:i.error}),l.loading&&n.jsx("div",{children:"Cargando parámetros..."}),l.error&&n.jsx("div",{className:"alert alert-danger",children:l.error}),s&&(()=>{const e=l.params?.[s]?.parameters;if(!e)return null;const t=Object.entries(e).filter(([e,t])=>!t.disabled),a=t.length>3;return n.jsxs("form",{onSubmit:k,"data-type":"ai",className:"flex flex-col gap-3 mt-4 border-t-1 pt-4 border-brand-blue-200","aria-label":"Formulario generación IA",children:[n.jsx("div",{className:a?"grid grid-cols-1 md:grid-cols-2 gap-3":"flex flex-col gap-3",children:t.map(([e,t])=>{let a=t.placeholder||"";return a||(a="integer"===t.type?t.minValue&&t.maxValue?`Entre ${t.minValue} y ${t.maxValue}`:t.minValue?`Mínimo ${t.minValue}`:t.maxValue?`Máximo ${t.maxValue}`:"Introduce un número":e.toLowerCase().includes("prompt")?"Describe la imagen que deseas generar...":e.toLowerCase().includes("negative")?"Elementos a evitar en la imagen...":`Introduce ${(t.label||e).toLowerCase()}`),n.jsxs("div",{className:"flex flex-col gap-1",children:[n.jsxs("label",{htmlFor:`ai-${e}`,className:"text-xs font-medium text-brand-blue-900",children:[t.label||e,t.required&&n.jsx("span",{className:"text-red-600 ml-1",children:"*"})]}),t.options?n.jsx("select",{id:`ai-${e}`,name:e,value:u[e]??"",onChange:w,className:"limbo-input",disabled:r,title:t.label||e,children:t.options.map(e=>n.jsx("option",{value:e,children:e},e))}):n.jsx("input",{id:`ai-${e}`,type:"integer"===t.type?"number":"text",name:e,value:u[e]??"",onChange:w,className:"limbo-input",disabled:r,required:t.required,min:t.minValue,max:t.maxValue,placeholder:a,title:t.label||e})]},e)})}),n.jsx("button",{type:"submit",disabled:f||r,title:f?"Generando imagen...":"Generar imagen",className:"limbo-btn w-full mt-2 "+(f?"cursor-not-allowed limbo-btn-disabled":"limbo-btn-primary"),style:{minHeight:44},children:f?"Generando...":"Generar imagen"})]})})(),m&&n.jsx("div",{className:"alert alert-danger",children:m}),g&&g.map((e,t)=>n.jsxs("div",{className:"mt-6 text-center",children:[n.jsx("img",{src:e.contains("http")?e:`data:image/png;base64, ${e}`,alt:"Imagen generada con IA",className:"rounded-lg shadow-md border border-brand-blue-200 max-h-72 mx-auto"}),n.jsx("button",{className:"limbo-btn limbo-btn-primary mt-4",children:"Aceptar y subir"})]},"img-"+t))]}):n.jsx("div",{className:"alert alert-warning",children:"No hay servicios IA disponibles."})}const X="/api";const Z=new Map;function J(t=!1){const[n,r]=e.useState([]),[a,o]=e.useState(!0),[i,l]=e.useState(null);e.useEffect(()=>{const e=`stock-services-${t}`,n=Z.get(e),a=Date.now();if(n&&a-n.timestamp<864e5)return r(n.data),void o(!1);let i=!0;return(async()=>{try{const n=await function(e=!1){return P({endpoint:"/stock/services",prod:e,basePath:X})}(t);if(!i)return;const o=n?.data?.images||[];r(o),Z.set(e,{data:o,timestamp:a})}catch(n){i&&l(n.message)}finally{i&&o(!1)}})(),()=>{i=!1}},[t]);return{services:n,loading:a,error:i,invalidateCache:()=>{Z.delete(`stock-services-${t}`)}}}function ee({prod:t,disabled:r,onSelected:a}){const o=e.useRef(null),i=J(t),l=(e,t)=>{try{const n=sessionStorage.getItem(`limbo_stock_${e}`);return n?JSON.parse(n):t}catch{return t}},[s,c]=e.useState(()=>l("selectedService","")),[u,d]=e.useState(()=>l("dynamicForm",{})),[f,p]=e.useState(()=>l("stockImages",[])),[m,h]=e.useState(()=>l("currentPage",1)),[g,b]=e.useState(()=>l("paginationInfo",null)),y=Y(t),[v,w]=e.useState(!1),[k,x]=e.useState(null),[S,C]=e.useState(null);e.useEffect(()=>{sessionStorage.setItem("limbo_stock_selectedService",JSON.stringify(s))},[s]),e.useEffect(()=>{sessionStorage.setItem("limbo_stock_dynamicForm",JSON.stringify(u))},[u]),e.useEffect(()=>{sessionStorage.setItem("limbo_stock_stockImages",JSON.stringify(f))},[f]),e.useEffect(()=>{sessionStorage.setItem("limbo_stock_currentPage",JSON.stringify(m))},[m]),e.useEffect(()=>{sessionStorage.setItem("limbo_stock_paginationInfo",JSON.stringify(g))},[g]);const E={shutterstock:"Shutterstock",freepikstock:"Freepik"},T=e=>E[e]||e;e.useEffect(()=>{if(!i.loading&&1===i.services.length){const e=i.services[0];c(e),y.fetchParams(e,!0)}},[i.loading,i.services]);e.useEffect(()=>{if(!s)return;const e=y.params?.[s]?.parameters;if(e){const t=Object.fromEntries(Object.entries(e).map(([e,t])=>[e,t.default??""]));t.service=s,d(t)}},[s,y.params]);const _=e=>{const{name:t,value:n}=e.target;d(e=>({...e,[t]:n}))},N=async(e=1)=>{w(!0),x(null),1===e&&p([]);try{let n;if(1===e){const t=y.params?.[s]?.parameters,r={...u};Object.entries(t||{}).forEach(([e,t])=>{e in r||(r[e]=t.default??"")}),r.per_page=parseInt(r.per_page),r.service=s,r.page=e,n=r,o.current={...r}}else n={...o.current,page:e};const r=await function(e,t=!1){return P({endpoint:"/stock/search",method:"POST",body:e,prod:t,basePath:X})}(n,t),a=r?.data?.images||[];let i=r?.data?.pagination||null,l=null;i&&(l={total:i.total_count??i.total??a.length,per_page:i.per_page??(Array.isArray(a)?a.length:0),current_page:i.page??i.current_page??e}),p(z(Array.isArray(a)?a:[])),b(l),h(l?.current_page||e)}catch(n){x(n.message||"Error al buscar imágenes")}finally{w(!1)}},z=e=>{const t=new Set,n=[];return(e||[]).forEach((e,r)=>{const a=e.url||e.preview_url||e.full||e.preview;a&&!t.has(a)&&(t.add(a),n.push({...e,preview:e.preview_url||e.preview||e.url||e.full,full:e.url||e.full||e.preview_url,id:e.id||r,title:e.title||e.filename||`Imagen ${r+1}`,source:e.service||s,sourceTitle:E?.[s]||s}))}),n},R=async e=>{e.preventDefault();(u.query||u.search||u.term||"").trim().length<5?x("La búsqueda debe tener al menos 5 caracteres"):await N(1)},j=e=>{e<1||N(e)},A=async e=>{C(e.id),x(null);try{const n={service:s,image_id:e.id},r=await function(e,t=!1){return P({endpoint:"/stock/download",method:"POST",body:e,prod:t,basePath:X})}(n,t);if(!r?.result?.url&&!r?.result?.download_url)throw new Error("No se pudo obtener la URL de descarga");{const t=r.result.url||r.result.download_url,n=await fetch(t),o=await n.blob(),i=r.result.filename||`stock-${e.id}.jpg`,l=new File([o],i,{type:o.type||"image/jpeg"});a&&a(l)}}catch(n){x(n.message||"No se pudo recuperar la imagen seleccionada")}finally{C(null)}};return i.loading?n.jsxs("div",{className:"flex items-center justify-center py-8",children:[n.jsx("span",{className:"limbo-loader mr-2"})," Cargando servicios de Stock..."]}):i.services.length?n.jsxs("div",{className:"flex flex-col gap-4",children:[n.jsx("h3",{className:"text-lg font-semibold text-brand-blue-1000",children:1===i.services.length?`Búsqueda en ${T(s)}`:"Selecciona el servicio de Stock"}),i.services.length>1&&n.jsxs("select",{value:s,onChange:async e=>{const t=e.target.value;c(t),d({}),p([]),h(1),t&&await y.fetchParams(t,!0)},disabled:i.loading||r,className:"limbo-input",children:[n.jsx("option",{value:"",children:"-- Selecciona --"}),i.services.map(e=>n.jsx("option",{value:e,children:T(e)},e))]}),i.error&&n.jsx("div",{className:"alert alert-danger",children:i.error}),y.loading&&n.jsx("div",{children:"Cargando parámetros..."}),y.error&&n.jsx("div",{className:"alert alert-danger",children:y.error}),s&&(()=>{const e=y.params?.[s]?.parameters;if(!e)return null;const t=Object.entries(e).filter(([,e])=>!e.disabled),a=t.length>3;return n.jsxs("form",{onSubmit:R,"data-type":"stock",className:"flex flex-col gap-3 mt-4 border-t-1 pt-4 border-brand-blue-200","aria-label":"Formulario búsqueda de imágenes de Stock",children:[n.jsx("div",{className:a?"grid grid-cols-1 md:grid-cols-2 gap-3":"flex flex-col gap-3",children:t.map(([e,t])=>{let a=t.placeholder||"";return a||(a="integer"===t.type?t.minValue&&t.maxValue?`Entre ${t.minValue} y ${t.maxValue}`:t.minValue?`Mínimo ${t.minValue}`:t.maxValue?`Máximo ${t.maxValue}`:"Introduce un número":e.toLowerCase().includes("query")||e.toLowerCase().includes("search")||e.toLowerCase().includes("term")?"Buscar imágenes...":`Introduce ${(t.label||e).toLowerCase()}`),n.jsxs("div",{className:"flex flex-col gap-1",children:[n.jsxs("label",{htmlFor:`stock-${e}`,className:"text-xs font-medium text-brand-blue-900",children:[t.label||e,t.required&&n.jsx("span",{className:"text-red-600 ml-1",children:"*"})]}),t.options&&t.multiple?n.jsx("div",{className:"flex flex-wrap gap-2 min-h-[50px] px-2 justify-between border-2 border-gray-transparent-500 rounded-lg",children:t.options.map(t=>n.jsxs("label",{className:"flex items-center gap-1",children:[n.jsx("input",{type:"checkbox",name:`stock-${e}`,value:t,checked:Array.isArray(u[e])&&u[e].includes(t),onChange:()=>((e,t)=>{d(n=>{const r=Array.isArray(n[e])?n[e]:[];return r.includes(t)?{...n,[e]:r.filter(e=>e!==t)}:{...n,[e]:[...r,t]}})})(e,t),disabled:r}),n.jsx("span",{className:"text-xs",children:t})]},t))}):t.options?n.jsx("select",{id:`stock-${e}`,name:e,value:u[e]??"",onChange:_,className:"limbo-input",disabled:r,title:t.label||e,children:t.options.map(e=>n.jsx("option",{value:e,children:e},e))}):n.jsx("input",{id:`stock-${e}`,type:"integer"===t.type?"number":"text",name:e,value:u[e]??"",onChange:_,className:"limbo-input",disabled:r,required:t.required,min:t.minValue,max:t.maxValue,placeholder:a,title:t.label||e})]},e)})}),n.jsx("button",{type:"submit",disabled:v||r,className:"limbo-btn w-full mt-2 "+(v?"cursor-not-allowed limbo-btn-disabled":"limbo-btn-primary"),style:{minHeight:44},children:v?"Buscando...":"Buscar imágenes"})]})})(),k&&n.jsx("div",{className:"alert alert-danger",children:k}),f.length>0&&n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"mt-6 grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4 relative","aria-live":"polite",children:[v&&n.jsx("div",{className:"absolute inset-0 bg-white/80 z-10 flex items-center justify-center rounded-lg",children:n.jsxs("div",{className:"flex flex-col items-center gap-2",children:[n.jsx("span",{className:"limbo-loader"}),n.jsx("span",{className:"text-sm text-brand-blue-800",children:"Buscando imágenes..."})]})}),f.map((e,t)=>n.jsxs("div",{className:"border border-brand-blue-200 rounded-lg overflow-hidden bg-white shadow-sm hover:shadow-md transition-shadow",children:[n.jsxs("div",{className:"relative aspect-video bg-neutral-100",children:[n.jsx("img",{src:e.preview||e.thumbnail||e.url,alt:e.title||`Resultado ${t+1}`,className:"object-cover w-full h-full",loading:"lazy"}),e.id&&n.jsxs("span",{className:"absolute bottom-1 right-1 bg-black/60 text-white text-xs px-2 py-1 rounded",children:["ID: ",e.id]})]}),n.jsx("div",{className:"p-2",children:n.jsx("button",{className:"limbo-btn w-full text-sm "+(S===e.id?"limbo-btn-disabled cursor-not-allowed":"limbo-btn-primary"),onClick:()=>A(e),disabled:v||r||S===e.id,children:S===e.id?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"limbo-loader limbo-loader--sm mr-1"}),"Descargando..."]}):"Seleccionar"})})]},e.id||t))]}),g&&n.jsxs("div",{className:"mt-6 flex items-center justify-center gap-2",children:[n.jsxs("button",{onClick:()=>j(g.current_page-1),disabled:g.current_page<=1||v,className:"limbo-btn limbo-btn-secondary px-4 py-2 disabled:opacity-25"+(g.current_page<=1||v?" pointer-events-none cursor-default":" limbo-btn-primary"),children:[n.jsx("span",{className:"icon icon-arrow-left-white icon--sm"})," ","Anterior"]}),n.jsxs("span",{className:"px-4 py-2 text-sm text-neutral-700",children:["Página ",g.current_page," de"," ",Math.max(1,Math.ceil(g.total/g.per_page)),n.jsxs("span",{className:"text-xs text-neutral-500 block",children:["(",g.total," imágenes totales)"]})]}),n.jsxs("button",{onClick:()=>j(g.current_page+1),disabled:v||g.current_page>=Math.ceil(g.total/g.per_page),className:"limbo-btn limbo-btn-secondary px-4 py-2 disabled:opacity-25"+(v||g.current_page>=Math.ceil(g.total/g.per_page)?" pointer-events-none cursor-default":" limbo-btn-primary"),children:["Siguiente"," ",n.jsx("span",{className:"icon icon-arrow-right-white icon--sm"})]})]})]}),!v&&0===f.length&&s&&u.query&&n.jsxs("div",{className:"mt-6 text-center text-neutral-600 py-8 bg-neutral-50 rounded-lg",children:[n.jsx("span",{className:"icon icon-search icon--lg mb-2"}),n.jsxs("p",{children:['No se encontraron imágenes para "',u.query,'"']}),n.jsx("p",{className:"text-sm mt-1",children:"Intenta con otros términos de búsqueda"})]})]}):n.jsx("div",{className:"alert alert-warning",children:"No hay servicios de Stock disponibles."})}const te="/api";const ne=new Map;function re(t=!1){const[n,r]=e.useState([]),[a,o]=e.useState(!0),[i,l]=e.useState(null);e.useEffect(()=>{const e=`portal-sources-${t}`,n=ne.get(e),a=Date.now();if(n&&a-n.timestamp<864e5)return r(n.data),void o(!1);let i=!0;return(async()=>{try{const n=await function(e=!1){return P({endpoint:"/external/sources",prod:e,basePath:te})}(t);if(!i)return;const o=n?.data?.sources||{},l=Object.entries(o).map(([e,t])=>({id:e,...t}));r(l),ne.set(e,{data:l,timestamp:a})}catch(n){i&&l(n.message)}finally{i&&o(!1)}})(),()=>{i=!1}},[t]);return{sources:n,loading:a,error:i,invalidateCache:()=>{ne.delete(`portal-sources-${t}`)}}}const ae=({src:t,alt:r,className:a,onError:o})=>{const[i,l]=e.useState("loading");return"error"===i?null:n.jsx("img",{src:t,alt:r,className:a,loading:"lazy",onLoad:()=>{l("loaded")},onError:()=>{l("error"),o&&o()}})};function oe({prod:t,disabled:r,onSelected:a}){const o=e.useRef(null),i=re(t),l=(e,t)=>{try{const n=sessionStorage.getItem(`limbo_portals_${e}`);return n?JSON.parse(n):t}catch{return t}},[s,c]=e.useState(()=>l("selectedPortals",[])),[u,d]=e.useState(()=>l("searchName","")),[f,p]=e.useState(()=>l("limit",20)),[m,h]=e.useState(()=>l("currentPage",1)),[g,b]=e.useState(!1),[y,v]=e.useState(null),[w,k]=e.useState(()=>l("images",[])),[x,S]=e.useState(()=>l("portalResults",{})),[C,E]=e.useState(()=>l("paginationInfo",null)),[T,_]=e.useState(null),z=e.useRef({}),[R,j]=e.useState(new Set);e.useEffect(()=>{sessionStorage.setItem("limbo_portals_selectedPortals",JSON.stringify(s))},[s]),e.useEffect(()=>{sessionStorage.setItem("limbo_portals_searchName",JSON.stringify(u))},[u]),e.useEffect(()=>{sessionStorage.setItem("limbo_portals_limit",JSON.stringify(f))},[f]),e.useEffect(()=>{sessionStorage.setItem("limbo_portals_currentPage",JSON.stringify(m))},[m]),e.useEffect(()=>{sessionStorage.setItem("limbo_portals_images",JSON.stringify(w))},[w]),e.useEffect(()=>{sessionStorage.setItem("limbo_portals_portalResults",JSON.stringify(x))},[x]),e.useEffect(()=>{sessionStorage.setItem("limbo_portals_paginationInfo",JSON.stringify(C))},[C]);const A=async(e=1)=>{if(0===s.length)return void v("Selecciona al menos un portal");const n=((e,t,n,r)=>`${e.sort().join(",")}_${t}_${n}_${r}`)(s,u.trim(),f,e),r=z.current[n];if(r)return k(r.images),S(r.portalResults),E(r.paginationInfo),h(e),void v(null);b(!0),v(null),1===e&&(k([]),S({}),E(null));try{let r;1===e?(r={sources:s,limit:f,page:e,name:u.trim()},o.current={...r}):r={...o.current,page:e};const a=await function(e,t=!1){return P({endpoint:"/external/search",method:"POST",body:e,prod:t,basePath:te})}(r,t),i=a?.data?.sources||{},l=[],c={},d=new Set;let p=null;Object.entries(i).forEach(([e,t])=>{c[e]={title:t.meta?.title||e,status:200,response:"OK",count:t.images?.length||0},Array.isArray(t.images)&&(t.images.forEach(n=>{const r=n.url||n.thumbnail;r&&!d.has(r)&&(d.add(r),l.push({...n,source:e,sourceTitle:t.meta?.title||e,preview:n.thumbnail||n.url,full:n.url}))}),!p&&t.pagination&&(p=t.pagination))}),z.current[n]={images:l,portalResults:c,paginationInfo:p},k(l),S(c),E(p),h(e),j(new Set),0!==l.length||a?.result?.success||v(a?.result?.message||"No se encontraron imágenes")}catch(a){v(a.message||"Error al buscar imágenes en portales")}finally{b(!1)}},I=e=>{e<1||A(e)};return i.loading?n.jsxs("div",{className:"flex items-center justify-center py-8",children:[n.jsx("span",{className:"limbo-loader mr-2"})," Cargando portales disponibles..."]}):i.sources.length?n.jsxs("div",{className:"flex flex-col gap-4",children:[n.jsx("h3",{className:"text-lg font-semibold text-brand-blue-1000",children:"Buscar en Portales Externos"}),n.jsxs("form",{onSubmit:e=>{e.preventDefault(),A(1)},className:"flex flex-col gap-4 border-t-1 pt-4 border-brand-blue-200",children:[n.jsxs("div",{className:"flex flex-col gap-2",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("label",{className:"text-sm font-medium text-brand-blue-1000",children:["Portales (",s.length," seleccionados)"]}),n.jsx("button",{type:"button",onClick:()=>{s.length===i.sources.length?c([]):c(i.sources.map(e=>e.id))},className:"text-xs text-brand-blue-800 hover:underline",children:s.length===i.sources.length?"Deseleccionar todos":"Seleccionar todos"})]}),n.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-2",children:i.sources.map(e=>n.jsxs("label",{className:"flex items-center gap-2 p-2 border border-brand-blue-200 rounded cursor-pointer hover:bg-brand-blue-050 transition",children:[n.jsx("input",{type:"checkbox",checked:s.includes(e.id),onChange:()=>{return t=e.id,void c(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t]);var t},disabled:r,className:"w-4 h-4"}),n.jsx("span",{className:"text-sm",children:e.title})]},e.id))})]}),n.jsxs("div",{className:"flex flex-col gap-1",children:[n.jsx("label",{htmlFor:"portal-search-name",className:"text-sm font-medium text-brand-blue-1000",children:"Buscar por nombre (opcional)"}),n.jsx("input",{id:"portal-search-name",type:"text",value:u,onChange:e=>d(e.target.value),className:"limbo-input",placeholder:"Deja vacío para ver todas las imágenes",disabled:r})]}),n.jsxs("div",{className:"flex flex-col gap-1",children:[n.jsx("label",{htmlFor:"portal-limit",className:"text-sm font-medium text-brand-blue-1000",children:"Imágenes por página"}),n.jsxs("select",{id:"portal-limit",value:f,onChange:e=>p(Number(e.target.value)),className:"limbo-input",disabled:r,children:[n.jsx("option",{value:10,children:"10"}),n.jsx("option",{value:20,children:"20"}),n.jsx("option",{value:50,children:"50"}),n.jsx("option",{value:100,children:"100"})]})]}),n.jsx("button",{type:"submit",disabled:g||r||0===s.length,className:"limbo-btn w-full "+(g||0===s.length?"cursor-not-allowed limbo-btn-disabled":"limbo-btn-primary"),style:{minHeight:44},children:g?"Buscando...":"Buscar imágenes"})]}),i.error&&n.jsx("div",{className:"alert alert-danger",children:i.error}),y&&n.jsx("div",{className:"alert alert-danger",children:y}),Object.keys(x).length>0&&n.jsxs("div",{className:"bg-neutral-50 rounded-lg p-3",children:[n.jsx("h4",{className:"text-sm font-semibold mb-2",children:"Resultados por portal:"}),n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-2 text-sm",children:Object.entries(x).map(([e,t])=>n.jsxs("div",{className:"flex items-center justify-between p-2 rounded "+(200===t.status?"bg-green-50":"bg-red-50"),children:[n.jsx("span",{className:"font-medium",children:t.title}),n.jsx("span",{className:200===t.status?"text-green-700":"text-red-700",children:200===t.status?`${t.count} imágenes`:t.response})]},e))})]}),(w.length>0||g)&&n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"mt-6 relative","aria-live":"polite",children:[g&&n.jsx("div",{className:"absolute inset-0 bg-white/80 z-10 flex items-center justify-center rounded-lg",children:n.jsxs("div",{className:"flex flex-col items-center gap-2",children:[n.jsx("span",{className:"limbo-loader"}),n.jsx("span",{className:"text-sm text-brand-blue-800",children:"Buscando imágenes..."})]})}),n.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4 "+(g?"opacity-50":""),children:w.map((e,o)=>{const i=`${e.source}-${e.id||o}`,l=e.preview||e.thumbnail||e.url||e.full;return R.has(i)?null:n.jsxs("div",{className:"border border-brand-blue-200 rounded-lg overflow-hidden bg-white shadow-sm hover:shadow-md transition-shadow",children:[n.jsxs("div",{className:"relative aspect-video bg-neutral-100",children:[n.jsx(ae,{src:l,alt:e.title||e.filename||`Imagen ${o+1}`,className:"object-cover w-full h-full",onError:()=>{j(e=>{const t=new Set(e);return t.add(i),t})}}),n.jsx("span",{className:"absolute top-1 left-1 bg-black/60 text-white text-xs px-2 py-1 rounded",children:e.sourceTitle}),e.id&&n.jsxs("span",{className:"absolute bottom-1 right-1 bg-black/60 text-white text-xs px-2 py-1 rounded",children:["ID: ",e.id]})]}),n.jsxs("div",{className:"p-2",children:[e.title&&n.jsx("p",{className:"text-xs text-neutral-700 mb-1 truncate",title:e.title,children:e.title}),n.jsx("button",{className:"limbo-btn w-full text-sm "+(T===(e.url||e.full)?"limbo-btn-disabled cursor-not-allowed":"limbo-btn-primary"),onClick:()=>(async e=>{_(e.url||e.full),v(null);try{const n=e.full||e.url||e.preview;if(!n)throw new Error("No se encontró URL de la imagen");const r=`${N({prod:t})}/api/atenea/proxy?url=${encodeURIComponent(n)}`,o=await fetch(r);if(!o.ok)throw new Error(`Error al descargar: ${o.status}`);const i=await o.blob(),l=e.filename||e.title||`portal-${e.id||Date.now()}.jpg`,s=new File([i],l,{type:i.type||"image/jpeg"});a&&a(s)}catch(n){v(n.message||"No se pudo recuperar la imagen del portal")}finally{_(null)}})(e),disabled:g||r||T===(e.url||e.full),children:T===(e.url||e.full)?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"limbo-loader limbo-loader--sm mr-1"}),"Descargando..."]}):"Seleccionar"})]})]},i)})})]}),n.jsxs("div",{className:"mt-6 flex items-center justify-center gap-2",children:[n.jsxs("button",{onClick:()=>I(m-1),disabled:1===m||g,className:"limbo-btn limbo-btn-secondary px-4 py-2 disabled:opacity-25"+(1===m||g?" pointer-events-none cursor-default":" limbo-btn-primary"),children:[n.jsx("span",{className:"icon icon-arrow-left-white icon--sm"})," ","Anterior"]}),n.jsxs("span",{className:"px-4 py-2 text-sm text-neutral-700",children:["Página ",m,C&&n.jsxs(n.Fragment,{children:[" ","de ",C.pages,n.jsxs("span",{className:"text-xs text-neutral-500 block",children:["(",C.total," imágenes totales)"]})]})]}),n.jsxs("button",{onClick:()=>I(m+1),disabled:g||C&&m>=C.pages,className:"limbo-btn limbo-btn-secondary px-4 py-2 disabled:opacity-25"+(g||C&&m>=C.pages?" pointer-events-none cursor-default":" limbo-btn-primary"),children:["Siguiente"," ",n.jsx("span",{className:"icon icon-arrow-right-white icon--sm"})]})]})]}),!g&&0===w.length&&Object.keys(x).length>0&&n.jsxs("div",{className:"mt-6 text-center text-neutral-600 py-8 bg-neutral-50 rounded-lg",children:[n.jsx("span",{className:"icon icon-search icon--lg mb-2"}),n.jsx("p",{children:"No se encontraron imágenes en los portales seleccionados"}),u&&n.jsx("p",{className:"text-sm mt-1",children:"Intenta con otros términos o sin filtro de nombre"})]})]}):n.jsx("div",{className:"alert alert-warning",children:"No hay portales externos disponibles."})}const ie=[{id:"upload",label:"Subir archivo"},{id:"ai",label:"Generar con IA"},{id:"stock",label:"Buscar en Stock"},{id:"portals",label:"Otros portales"}];function le({onUpload:t,disabled:r=!1,apiKey:a,prod:o=!1}){const[i,l]=e.useState("upload"),[s,c]=e.useState(null),[u,d]=e.useState(null),f=e.useRef();return n.jsxs("div",{className:"limbo-upload-form p-4 border-2 border-gray-200/50 rounded-lg min-w-fit max-w-5xl mx-auto",children:[n.jsx("div",{className:"limbo-tabs-container",children:n.jsx("div",{className:"limbo-tabs mb-6 min-w-fit",role:"tablist","aria-label":"Opciones de subida de imagen",children:ie.map(e=>n.jsx("button",{type:"button","data-upload-tab-id":e.id,className:"text-nowrap limbo-tab"+(i===e.id?" active":""),"aria-current":i===e.id?"page":void 0,"aria-selected":i===e.id,role:"tab",tabIndex:i===e.id?0:-1,onClick:()=>l(e.id),onKeyDown:t=>((e,t)=>{const n=ie.findIndex(e=>e.id===t);let r=n;switch(e.key){case"ArrowLeft":e.preventDefault(),r=n>0?n-1:ie.length-1;break;case"ArrowRight":e.preventDefault(),r=n<ie.length-1?n+1:0;break;case"Home":e.preventDefault(),r=0;break;case"End":e.preventDefault(),r=ie.length-1;break;case"Enter":case" ":return e.preventDefault(),void l(t);default:return}const a=ie[r];a&&(l(a.id),setTimeout(()=>{const e=document.querySelector(`[data-upload-tab-id="${a.id}"]`);e&&e.focus()},0))})(t,e.id),id:`upload-tab-${e.id}`,"aria-controls":`upload-tabpanel-${e.id}`,children:e.label},e.id))})}),n.jsxs("div",{className:"limbo-tab-content",role:"tabpanel",id:`upload-tabpanel-${i}`,"aria-labelledby":`upload-tab-${i}`,children:["upload"===i&&n.jsx(B,{file:s,setFile:c,previewUrl:u,setPreviewUrl:d,fileInputRef:f,onUpload:t,disabled:r}),"ai"===i&&n.jsx(G,{apiKey:a,prod:o,disabled:r,onGenerated:e=>{l("upload"),c(e),d(URL.createObjectURL(e))}}),"stock"===i&&n.jsx(ee,{apiKey:a,prod:o,disabled:r,onSelected:e=>{l("upload"),c(e),d(URL.createObjectURL(e))}}),"portals"===i&&n.jsx(oe,{apiKey:a,prod:o,disabled:r,onSelected:e=>{l("upload"),c(e),d(URL.createObjectURL(e))}})]})]})}const se="undefined"!=typeof window&&void 0!==window.document,ce=se?window:{},ue=!!se&&"ontouchstart"in ce.document.documentElement,de=!!se&&"PointerEvent"in ce,fe="cropper",pe=`${fe}-canvas`,me=`${fe}-crosshair`,he=`${fe}-grid`,ge=`${fe}-handle`,be=`${fe}-image`,ye=`${fe}-selection`,ve=`${fe}-shade`,we=`${fe}-viewer`,ke="select",xe="move",Se="scale",Ce="rotate",Ee="transform",Te="none",_e="n-resize",Ne="e-resize",Pe="s-resize",ze="w-resize",Re="ne-resize",je="nw-resize",Ae="se-resize",Ie="sw-resize",Le=de?"pointerdown":ue?"touchstart":"mousedown",Me=de?"pointermove":ue?"touchmove":"mousemove",$e=de?"pointerup pointercancel":ue?"touchend touchcancel":"mouseup",De="error",Oe="keydown",Fe="load",Ue="wheel",He="action",We="actionend",Be="actionstart",Ve="change",qe="transform";const Qe=Number.isNaN||ce.isNaN;function Ke(e){return"number"==typeof e&&!Qe(e)}function Ye(e){return Ke(e)&&e>0&&e<1/0}function Ge(e){return"object"==typeof e&&null!==e}const{hasOwnProperty:Xe}=Object.prototype;function Ze(e){if(!Ge(e))return!1;try{const{constructor:t}=e,{prototype:n}=t;return t&&n&&Xe.call(n,"isPrototypeOf")}catch(t){return!1}}function Je(e){return"function"==typeof e}function et(e){return"object"==typeof e&&null!==e&&1===e.nodeType}const tt=/([a-z\d])([A-Z])/g;function nt(e){return String(e).replace(tt,"$1-$2").toLowerCase()}const rt=/-[A-z\d]/g;function at(e){return e.replace(rt,e=>e.slice(1).toUpperCase())}const ot=/\s\s*/;function it(e,t,n,r){t.trim().split(ot).forEach(t=>{e.removeEventListener(t,n,r)})}function lt(e,t,n,r){t.trim().split(ot).forEach(t=>{e.addEventListener(t,n,r)})}function st(e,t,n,r){lt(e,t,n,Object.assign(Object.assign({},r),{once:!0}))}const ct={bubbles:!0,cancelable:!0,composed:!0};const ut=Promise.resolve();function dt(e){const{documentElement:t}=e.ownerDocument,n=e.getBoundingClientRect();return{left:n.left+(ce.pageXOffset-t.clientLeft),top:n.top+(ce.pageYOffset-t.clientTop)}}const ft=/deg|g?rad|turn$/i;function pt(e){const t=parseFloat(e)||0;if(0!==t){const[n="rad"]=String(e).match(ft)||[];switch(n.toLowerCase()){case"deg":return t/360*(2*Math.PI);case"grad":return t/400*(2*Math.PI);case"turn":return t*(2*Math.PI)}}return t}const mt="contain";function ht(e,t=mt){const{aspectRatio:n}=e;let{width:r,height:a}=e;const o=Ye(r),i=Ye(a);if(o&&i){const e=a*n;t===mt&&e>r||"cover"===t&&e<r?a=r/n:r=a*n}else o?a=r/n:i&&(r=a*n);return{width:r,height:a}}function gt(e,...t){if(0===t.length)return e;const[n,r,a,o,i,l]=e,[s,c,u,d,f,p]=t[0];return gt(e=[n*s+a*c,r*s+o*c,n*u+a*d,r*u+o*d,n*f+a*p+i,r*f+o*p+l],...t.slice(1))}const bt=/left|top|width|height/i,yt="open",vt=new WeakMap,wt=new WeakMap,kt=new Map,xt=ce.document&&Array.isArray(ce.document.adoptedStyleSheets)&&"replaceSync"in ce.CSSStyleSheet.prototype;class St extends HTMLElement{get $sharedStyle(){return(this.themeColor?`:host{--theme-color: ${this.themeColor};}`:"")+":host([hidden]){display:none!important}"}constructor(){var e,t;super(),this.shadowRootMode=yt,this.slottable=!0;const n=null===(t=null===(e=Object.getPrototypeOf(this))||void 0===e?void 0:e.constructor)||void 0===t?void 0:t.$name;n&&kt.set(n,this.tagName.toLowerCase())}static get observedAttributes(){return["shadow-root-mode","slottable","theme-color"]}attributeChangedCallback(e,t,n){if(Object.is(n,t))return;const r=at(e);let a=n;switch(typeof this[r]){case"boolean":a=null!==n&&"false"!==n;break;case"number":a=Number(n)}switch(this[r]=a,e){case"theme-color":{const e=wt.get(this),t=this.$sharedStyle;e&&t&&(xt?e.replaceSync(t):e.textContent=t);break}}}$propertyChangedCallback(e,t,n){if(!Object.is(n,t))switch(e=nt(e),typeof n){case"boolean":!0===n?this.hasAttribute(e)||this.setAttribute(e,""):this.removeAttribute(e);break;case"number":n=Qe(n)?"":String(n);default:n?this.getAttribute(e)!==n&&this.setAttribute(e,n):this.removeAttribute(e)}}connectedCallback(){Object.getPrototypeOf(this).constructor.observedAttributes.forEach(e=>{const t=at(e);let n=this[t];(function(e){return void 0===e})(n)||this.$propertyChangedCallback(t,void 0,n),Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:()=>n,set(e){const r=n;n=e,this.$propertyChangedCallback(t,r,e)}})});const e=this.attachShadow({mode:this.shadowRootMode||yt});if(this.shadowRoot||vt.set(this,e),wt.set(this,this.$addStyles(this.$sharedStyle)),this.$style&&this.$addStyles(this.$style),this.$template){const t=document.createElement("template");t.innerHTML=this.$template,e.appendChild(t.content)}if(this.slottable){const t=document.createElement("slot");e.appendChild(t)}}disconnectedCallback(){wt.has(this)&&wt.delete(this),vt.has(this)&&vt.delete(this)}$getTagNameOf(e){var t;return null!==(t=kt.get(e))&&void 0!==t?t:e}$setStyles(e){return Object.keys(e).forEach(t=>{let n=e[t];Ke(n)&&(n=0!==n&&bt.test(t)?`${n}px`:String(n)),this.style[t]=n}),this}$getShadowRoot(){return this.shadowRoot||vt.get(this)}$addStyles(e){let t;const n=this.$getShadowRoot();return xt?(t=new CSSStyleSheet,t.replaceSync(e),n.adoptedStyleSheets=n.adoptedStyleSheets.concat(t)):(t=document.createElement("style"),t.textContent=e,n.appendChild(t)),t}$emit(e,t,n){return function(e,t,n,r){return e.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign(Object.assign({},ct),{detail:n}),r)))}(this,e,t,n)}$nextTick(e){return function(e,t){return t?ut.then(e?t.bind(e):t):ut}(this,e)}static $define(e,t){Ge(e)&&(t=e,e=""),e||(e=this.$name||this.name),e=nt(e),se&&ce.customElements&&!ce.customElements.get(e)&&customElements.define(e,this,t)}}St.$version="2.0.0";class Ct extends St{constructor(){super(...arguments),this.$onPointerDown=null,this.$onPointerMove=null,this.$onPointerUp=null,this.$onWheel=null,this.$wheeling=!1,this.$pointers=new Map,this.$style=':host{display:block;min-height:100px;min-width:200px;overflow:hidden;position:relative;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([background]){background-color:#fff;background-image:repeating-linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc),repeating-linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc);background-image:repeating-conic-gradient(#ccc 0 25%,#fff 0 50%);background-position:0 0,.5rem .5rem;background-size:1rem 1rem}:host([disabled]){pointer-events:none}:host([disabled]):after{bottom:0;content:"";cursor:not-allowed;display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}',this.$action=Te,this.background=!1,this.disabled=!1,this.scaleStep=.1,this.themeColor="#39f"}static get observedAttributes(){return super.observedAttributes.concat(["background","disabled","scale-step"])}connectedCallback(){super.connectedCallback(),this.disabled||this.$bind()}disconnectedCallback(){this.disabled||this.$unbind(),super.disconnectedCallback()}$propertyChangedCallback(e,t,n){if(!Object.is(n,t)&&(super.$propertyChangedCallback(e,t,n),"disabled"===e))n?this.$unbind():this.$bind()}$bind(){this.$onPointerDown||(this.$onPointerDown=this.$handlePointerDown.bind(this),lt(this,Le,this.$onPointerDown)),this.$onPointerMove||(this.$onPointerMove=this.$handlePointerMove.bind(this),lt(this.ownerDocument,Me,this.$onPointerMove)),this.$onPointerUp||(this.$onPointerUp=this.$handlePointerUp.bind(this),lt(this.ownerDocument,$e,this.$onPointerUp)),this.$onWheel||(this.$onWheel=this.$handleWheel.bind(this),lt(this,Ue,this.$onWheel,{passive:!1,capture:!0}))}$unbind(){this.$onPointerDown&&(it(this,Le,this.$onPointerDown),this.$onPointerDown=null),this.$onPointerMove&&(it(this.ownerDocument,Me,this.$onPointerMove),this.$onPointerMove=null),this.$onPointerUp&&(it(this.ownerDocument,$e,this.$onPointerUp),this.$onPointerUp=null),this.$onWheel&&(it(this,Ue,this.$onWheel,{capture:!0}),this.$onWheel=null)}$handlePointerDown(e){const{buttons:t,button:n,type:r}=e;if(this.disabled||("pointerdown"===r&&"mouse"===e.pointerType||"mousedown"===r)&&(Ke(t)&&1!==t||Ke(n)&&0!==n||e.ctrlKey))return;const{$pointers:a}=this;let o="";if(e.changedTouches)Array.from(e.changedTouches).forEach(({identifier:e,pageX:t,pageY:n})=>{a.set(e,{startX:t,startY:n,endX:t,endY:n})});else{const{pointerId:t=0,pageX:n,pageY:r}=e;a.set(t,{startX:n,startY:r,endX:n,endY:r})}a.size>1?o=Ee:et(e.target)&&(o=e.target.action||e.target.getAttribute("action")||""),!1!==this.$emit(Be,{action:o,relatedEvent:e})&&(e.preventDefault(),this.$action=o,this.style.willChange="transform")}$handlePointerMove(e){const{$action:t,$pointers:n}=this;if(this.disabled||t===Te||0===n.size)return;if(!1===this.$emit("actionmove",{action:t,relatedEvent:e}))return;if(e.preventDefault(),e.changedTouches)Array.from(e.changedTouches).forEach(({identifier:e,pageX:t,pageY:r})=>{const a=n.get(e);a&&Object.assign(a,{endX:t,endY:r})});else{const{pointerId:t=0,pageX:r,pageY:a}=e,o=n.get(t);o&&Object.assign(o,{endX:r,endY:a})}const r={action:t,relatedEvent:e};if(t===Ee){const t=new Map(n);let a=0,o=0,i=0,l=0,s=e.pageX,c=e.pageY;n.forEach((e,n)=>{t.delete(n),t.forEach(t=>{let n=t.startX-e.startX,r=t.startY-e.startY,u=t.endX-e.endX,d=t.endY-e.endY,f=0,p=0,m=0,h=0;if(0===n?r<0?m=2*Math.PI:r>0&&(m=Math.PI):n>0?m=Math.PI/2+Math.atan(r/n):n<0&&(m=1.5*Math.PI+Math.atan(r/n)),0===u?d<0?h=2*Math.PI:d>0&&(h=Math.PI):u>0?h=Math.PI/2+Math.atan(d/u):u<0&&(h=1.5*Math.PI+Math.atan(d/u)),h>0||m>0){const n=h-m,r=Math.abs(n);r>a&&(a=r,i=n,s=(e.startX+t.startX)/2,c=(e.startY+t.startY)/2)}if(n=Math.abs(n),r=Math.abs(r),u=Math.abs(u),d=Math.abs(d),n>0&&r>0?f=Math.sqrt(n*n+r*r):n>0?f=n:r>0&&(f=r),u>0&&d>0?p=Math.sqrt(u*u+d*d):u>0?p=u:d>0&&(p=d),f>0&&p>0){const n=(p-f)/f,r=Math.abs(n);r>o&&(o=r,l=n,s=(e.startX+t.startX)/2,c=(e.startY+t.startY)/2)}})});const u=a>0,d=o>0;u&&d?(r.rotate=i,r.scale=l,r.centerX=s,r.centerY=c):u?(r.action=Ce,r.rotate=i,r.centerX=s,r.centerY=c):d?(r.action=Se,r.scale=l,r.centerX=s,r.centerY=c):r.action=Te}else{const[e]=Array.from(n.values());Object.assign(r,e)}n.forEach(e=>{e.startX=e.endX,e.startY=e.endY}),r.action!==Te&&this.$emit(He,r,{cancelable:!1})}$handlePointerUp(e){const{$action:t,$pointers:n}=this;if(!this.disabled&&t!==Te&&!1!==this.$emit(We,{action:t,relatedEvent:e})){if(e.preventDefault(),e.changedTouches)Array.from(e.changedTouches).forEach(({identifier:e})=>{n.delete(e)});else{const{pointerId:t=0}=e;n.delete(t)}0===n.size&&(this.style.willChange="",this.$action=Te)}}$handleWheel(e){if(this.disabled)return;if(e.preventDefault(),this.$wheeling)return;this.$wheeling=!0,setTimeout(()=>{this.$wheeling=!1},50);const t=(e.deltaY>0?-1:1)*this.scaleStep;this.$emit(He,{action:Se,scale:t,relatedEvent:e},{cancelable:!1})}$setAction(e){return"string"==typeof e&&(this.$action=e),this}$toCanvas(e){return new Promise((t,n)=>{if(!this.isConnected)return void n(new Error("The current element is not connected to the DOM."));const r=document.createElement("canvas");let a=this.offsetWidth,o=this.offsetHeight,i=1;Ze(e)&&(Ye(e.width)||Ye(e.height))&&(({width:a,height:o}=ht({aspectRatio:a/o,width:e.width,height:e.height})),i=a/this.offsetWidth),r.width=a,r.height=o;const l=this.querySelector(this.$getTagNameOf(be));l?l.$ready().then(n=>{const s=r.getContext("2d");if(s){const[t,c,u,d,f,p]=l.$getTransform();let m=f,h=p,g=n.naturalWidth,b=n.naturalHeight;1!==i&&(m*=i,h*=i,g*=i,b*=i);const y=g/2,v=b/2;s.fillStyle="transparent",s.fillRect(0,0,a,o),Ze(e)&&Je(e.beforeDraw)&&e.beforeDraw.call(this,s,r),s.save(),s.translate(y,v),s.transform(t,c,u,d,m,h),s.translate(-y,-v),s.drawImage(n,0,0,g,b),s.restore()}t(r)}).catch(n):t(r)})}}Ct.$name=pe,Ct.$version="2.0.0";const Et=new WeakMap,Tt=["alt","crossorigin","decoding","importance","loading","referrerpolicy","sizes","src","srcset"];class _t extends St{constructor(){super(...arguments),this.$matrix=[1,0,0,1,0,0],this.$onLoad=null,this.$onCanvasAction=null,this.$onCanvasActionEnd=null,this.$onCanvasActionStart=null,this.$actionStartTarget=null,this.$style=":host{display:inline-block}img{display:block;height:100%;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}",this.$image=new Image,this.initialCenterSize="contain",this.rotatable=!1,this.scalable=!1,this.skewable=!1,this.slottable=!1,this.translatable=!1}set $canvas(e){Et.set(this,e)}get $canvas(){return Et.get(this)}static get observedAttributes(){return super.observedAttributes.concat(Tt,["initial-center-size","rotatable","scalable","skewable","translatable"])}attributeChangedCallback(e,t,n){Object.is(n,t)||(super.attributeChangedCallback(e,t,n),Tt.includes(e)&&this.$image.setAttribute(e,n))}$propertyChangedCallback(e,t,n){if(!Object.is(n,t)&&(super.$propertyChangedCallback(e,t,n),"initialCenterSize"===e))this.$nextTick(()=>{this.$center(n)})}connectedCallback(){super.connectedCallback();const{$image:e}=this,t=this.closest(this.$getTagNameOf(pe));t&&(this.$canvas=t,this.$setStyles({display:"block",position:"absolute"}),this.$onCanvasActionStart=e=>{var t,n;this.$actionStartTarget=null===(n=null===(t=e.detail)||void 0===t?void 0:t.relatedEvent)||void 0===n?void 0:n.target},this.$onCanvasActionEnd=()=>{this.$actionStartTarget=null},this.$onCanvasAction=this.$handleAction.bind(this),lt(t,Be,this.$onCanvasActionStart),lt(t,We,this.$onCanvasActionEnd),lt(t,He,this.$onCanvasAction)),this.$onLoad=this.$handleLoad.bind(this),lt(e,Fe,this.$onLoad),this.$getShadowRoot().appendChild(e)}disconnectedCallback(){const{$image:e,$canvas:t}=this;t&&(this.$onCanvasActionStart&&(it(t,Be,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(it(t,We,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasAction&&(it(t,He,this.$onCanvasAction),this.$onCanvasAction=null)),e&&this.$onLoad&&(it(e,Fe,this.$onLoad),this.$onLoad=null),this.$getShadowRoot().removeChild(e),super.disconnectedCallback()}$handleLoad(){const{$image:e}=this;this.$setStyles({width:e.naturalWidth,height:e.naturalHeight}),this.$canvas&&this.$center(this.initialCenterSize)}$handleAction(e){if(this.hidden||!(this.rotatable||this.scalable||this.translatable))return;const{$canvas:t}=this,{detail:n}=e;if(n){const{relatedEvent:e}=n;let{action:r}=n;switch(r!==Ee||this.rotatable&&this.scalable||(r=this.rotatable?Ce:this.scalable?Se:Te),r){case xe:if(this.translatable){let r=null;e&&(r=e.target.closest(this.$getTagNameOf(ye))),r||(r=t.querySelector(this.$getTagNameOf(ye))),r&&r.multiple&&!r.active&&(r=t.querySelector(`${this.$getTagNameOf(ye)}[active]`)),r&&!r.hidden&&r.movable&&!r.dynamic&&this.$actionStartTarget&&r.contains(this.$actionStartTarget)||this.$move(n.endX-n.startX,n.endY-n.startY)}break;case Ce:if(this.rotatable)if(e){const{x:t,y:r}=this.getBoundingClientRect();this.$rotate(n.rotate,e.clientX-t,e.clientY-r)}else this.$rotate(n.rotate);break;case Se:if(this.scalable)if(e){const t=e.target.closest(this.$getTagNameOf(ye));if(!t||!t.zoomable||t.zoomable&&t.dynamic){const{x:t,y:r}=this.getBoundingClientRect();this.$zoom(n.scale,e.clientX-t,e.clientY-r)}}else this.$zoom(n.scale);break;case Ee:if(this.rotatable&&this.scalable){const{rotate:t}=n;let{scale:r}=n;r<0?r=1/(1-r):r+=1;const a=Math.cos(t),o=Math.sin(t),[i,l,s,c]=[a*r,o*r,-o*r,a*r];if(e){const t=this.getBoundingClientRect(),n=e.clientX-t.x,r=e.clientY-t.y,[a,o,u,d]=this.$matrix,f=n-t.width/2,p=r-t.height/2,m=(f*d-u*p)/(a*d-u*o),h=(p*a-o*f)/(a*d-u*o);this.$transform(i,l,s,c,m*(1-i)+h*s,h*(1-c)+m*l)}else this.$transform(i,l,s,c,0,0)}}}}$ready(e){const{$image:t}=this,n=new Promise((e,n)=>{const r=new Error("Failed to load the image source");if(t.complete)t.naturalWidth>0&&t.naturalHeight>0?e(t):n(r);else{const a=()=>{it(t,De,o),e(t)},o=()=>{it(t,Fe,a),n(r)};st(t,Fe,a),st(t,De,o)}});return Je(e)&&n.then(t=>(e(t),t)),n}$center(e){const{parentElement:t}=this;if(!t)return this;const n=t.getBoundingClientRect(),r=n.width,a=n.height,{x:o,y:i,width:l,height:s}=this.getBoundingClientRect(),c=o+l/2,u=i+s/2,d=n.x+r/2,f=n.y+a/2;if(this.$move(d-c,f-u),e&&(l!==r||s!==a)){const t=r/l,n=a/s;switch(e){case"cover":this.$scale(Math.max(t,n));break;case"contain":this.$scale(Math.min(t,n))}}return this}$move(e,t=e){if(this.translatable&&Ke(e)&&Ke(t)){const[n,r,a,o]=this.$matrix,i=(e*o-a*t)/(n*o-a*r),l=(t*n-r*e)/(n*o-a*r);this.$translate(i,l)}return this}$moveTo(e,t=e){if(this.translatable&&Ke(e)&&Ke(t)){const[n,r,a,o]=this.$matrix,i=(e*o-a*t)/(n*o-a*r),l=(t*n-r*e)/(n*o-a*r);this.$setTransform(n,r,a,o,i,l)}return this}$rotate(e,t,n){if(this.rotatable){const r=pt(e),a=Math.cos(r),o=Math.sin(r),[i,l,s,c]=[a,o,-o,a];if(Ke(t)&&Ke(n)){const[e,r,a,o]=this.$matrix,{width:u,height:d}=this.getBoundingClientRect(),f=t-u/2,p=n-d/2,m=(f*o-a*p)/(e*o-a*r),h=(p*e-r*f)/(e*o-a*r);this.$transform(i,l,s,c,m*(1-i)-h*s,h*(1-c)-m*l)}else this.$transform(i,l,s,c,0,0)}return this}$zoom(e,t,n){if(!this.scalable||0===e)return this;if(e<0?e=1/(1-e):e+=1,Ke(t)&&Ke(n)){const[r,a,o,i]=this.$matrix,{width:l,height:s}=this.getBoundingClientRect(),c=t-l/2,u=n-s/2,d=(c*i-o*u)/(r*i-o*a),f=(u*r-a*c)/(r*i-o*a);this.$transform(e,0,0,e,d*(1-e),f*(1-e))}else this.$scale(e);return this}$scale(e,t=e){return this.scalable&&this.$transform(e,0,0,t,0,0),this}$skew(e,t=0){if(this.skewable){const n=pt(e),r=pt(t);this.$transform(1,Math.tan(r),Math.tan(n),1,0,0)}return this}$translate(e,t=e){return this.translatable&&Ke(e)&&Ke(t)&&this.$transform(1,0,0,1,e,t),this}$transform(e,t,n,r,a,o){return Ke(e)&&Ke(t)&&Ke(n)&&Ke(r)&&Ke(a)&&Ke(o)?this.$setTransform(gt(this.$matrix,[e,t,n,r,a,o])):this}$setTransform(e,t,n,r,a,o){if((this.rotatable||this.scalable||this.skewable||this.translatable)&&(Array.isArray(e)&&([e,t,n,r,a,o]=e),Ke(e)&&Ke(t)&&Ke(n)&&Ke(r)&&Ke(a)&&Ke(o))){const i=[...this.$matrix],l=[e,t,n,r,a,o];if(!1===this.$emit(qe,{matrix:l,oldMatrix:i}))return this;this.$matrix=l,this.style.transform=`matrix(${l.join(", ")})`}return this}$getTransform(){return this.$matrix.slice()}$resetTransform(){return this.$setTransform([1,0,0,1,0,0])}}_t.$name=be,_t.$version="2.0.0";const Nt=new WeakMap;class Pt extends St{constructor(){super(...arguments),this.$onCanvasChange=null,this.$onCanvasActionEnd=null,this.$onCanvasActionStart=null,this.$style=":host{display:block;height:0;left:0;outline:var(--theme-color) solid 1px;position:relative;top:0;width:0}:host([transparent]){outline-color:transparent}",this.x=0,this.y=0,this.width=0,this.height=0,this.slottable=!1,this.themeColor="rgba(0, 0, 0, 0.65)"}set $canvas(e){Nt.set(this,e)}get $canvas(){return Nt.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["height","width","x","y"])}connectedCallback(){super.connectedCallback();const e=this.closest(this.$getTagNameOf(pe));if(e){this.$canvas=e,this.style.position="absolute";const t=e.querySelector(this.$getTagNameOf(ye));t&&(this.$onCanvasActionStart=e=>{t.hidden&&e.detail.action===ke&&(this.hidden=!1)},this.$onCanvasActionEnd=e=>{t.hidden&&e.detail.action===ke&&(this.hidden=!0)},this.$onCanvasChange=e=>{const{x:n,y:r,width:a,height:o}=e.detail;this.$change(n,r,a,o),(t.hidden||0===n&&0===r&&0===a&&0===o)&&(this.hidden=!0)},lt(e,Be,this.$onCanvasActionStart),lt(e,We,this.$onCanvasActionEnd),lt(e,Ve,this.$onCanvasChange))}this.$render()}disconnectedCallback(){const{$canvas:e}=this;e&&(this.$onCanvasActionStart&&(it(e,Be,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(it(e,We,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasChange&&(it(e,Ve,this.$onCanvasChange),this.$onCanvasChange=null)),super.disconnectedCallback()}$change(e,t,n=this.width,r=this.height){return Ke(e)&&Ke(t)&&Ke(n)&&Ke(r)&&(e!==this.x||t!==this.y||n!==this.width||r!==this.height)?(this.hidden&&(this.hidden=!1),this.x=e,this.y=t,this.width=n,this.height=r,this.$render()):this}$reset(){return this.$change(0,0,0,0)}$render(){return this.$setStyles({transform:`translate(${this.x}px, ${this.y}px)`,width:this.width,height:this.height,outlineWidth:ce.innerWidth})}}Pt.$name=ve,Pt.$version="2.0.0";class zt extends St{constructor(){super(...arguments),this.$onCanvasCropEnd=null,this.$onCanvasCropStart=null,this.$style=':host{background-color:var(--theme-color);display:block}:host([action=move]),:host([action=select]){height:100%;left:0;position:absolute;top:0;width:100%}:host([action=move]){cursor:move}:host([action=select]){cursor:crosshair}:host([action$=-resize]){background-color:transparent;height:15px;position:absolute;width:15px}:host([action$=-resize]):after{background-color:var(--theme-color);content:"";display:block;height:5px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:5px}:host([action=n-resize]),:host([action=s-resize]){cursor:ns-resize;left:50%;transform:translateX(-50%);width:100%}:host([action=n-resize]){top:-8px}:host([action=s-resize]){bottom:-8px}:host([action=e-resize]),:host([action=w-resize]){cursor:ew-resize;height:100%;top:50%;transform:translateY(-50%)}:host([action=e-resize]){right:-8px}:host([action=w-resize]){left:-8px}:host([action=ne-resize]){cursor:nesw-resize;right:-8px;top:-8px}:host([action=nw-resize]){cursor:nwse-resize;left:-8px;top:-8px}:host([action=se-resize]){bottom:-8px;cursor:nwse-resize;right:-8px}:host([action=se-resize]):after{height:15px;width:15px}@media (pointer:coarse){:host([action=se-resize]):after{height:10px;width:10px}}@media (pointer:fine){:host([action=se-resize]):after{height:5px;width:5px}}:host([action=sw-resize]){bottom:-8px;cursor:nesw-resize;left:-8px}:host([plain]){background-color:transparent}',this.action=Te,this.plain=!1,this.slottable=!1,this.themeColor="rgba(51, 153, 255, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["action","plain"])}}zt.$name=ge,zt.$version="2.0.0";const Rt=new WeakMap;class jt extends St{constructor(){super(...arguments),this.$onCanvasAction=null,this.$onCanvasActionStart=null,this.$onCanvasActionEnd=null,this.$onDocumentKeyDown=null,this.$action="",this.$actionStartTarget=null,this.$changing=!1,this.$style=':host{display:block;left:0;position:relative;right:0}:host([outlined]){outline:1px solid var(--theme-color)}:host([multiple]){outline:1px dashed hsla(0,0%,100%,.5)}:host([multiple]):after{bottom:0;content:"";cursor:pointer;display:block;left:0;position:absolute;right:0;top:0}:host([multiple][active]){outline-color:var(--theme-color);z-index:1}:host([multiple])>*{visibility:hidden}:host([multiple][active])>*{visibility:visible}:host([multiple][active]):after{display:none}',this.$initialSelection={x:0,y:0,width:0,height:0},this.x=0,this.y=0,this.width=0,this.height=0,this.aspectRatio=NaN,this.initialAspectRatio=NaN,this.initialCoverage=NaN,this.active=!1,this.linked=!1,this.dynamic=!1,this.movable=!1,this.resizable=!1,this.zoomable=!1,this.multiple=!1,this.keyboard=!1,this.outlined=!1,this.precise=!1}set $canvas(e){Rt.set(this,e)}get $canvas(){return Rt.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["active","aspect-ratio","dynamic","height","initial-aspect-ratio","initial-coverage","keyboard","linked","movable","multiple","outlined","precise","resizable","width","x","y","zoomable"])}$propertyChangedCallback(e,t,n){if(!Object.is(n,t))switch(super.$propertyChangedCallback(e,t,n),e){case"x":case"y":case"width":case"height":this.$changing||this.$nextTick(()=>{this.$change(this.x,this.y,this.width,this.height,this.aspectRatio,!0)});break;case"aspectRatio":case"initialAspectRatio":this.$nextTick(()=>{this.$initSelection()});break;case"initialCoverage":this.$nextTick(()=>{Ye(n)&&n<=1&&this.$initSelection(!0,!0)});break;case"keyboard":this.$nextTick(()=>{this.$canvas&&(n?this.$onDocumentKeyDown||(this.$onDocumentKeyDown=this.$handleKeyDown.bind(this),lt(this.ownerDocument,Oe,this.$onDocumentKeyDown)):this.$onDocumentKeyDown&&(it(this.ownerDocument,Oe,this.$onDocumentKeyDown),this.$onDocumentKeyDown=null))});break;case"multiple":this.$nextTick(()=>{if(this.$canvas){const e=this.$getSelections();n?(e.forEach(e=>{e.active=!1}),this.active=!0,this.$emit(Ve,{x:this.x,y:this.y,width:this.width,height:this.height})):(this.active=!1,e.slice(1).forEach(e=>{this.$removeSelection(e)}))}});break;case"precise":this.$nextTick(()=>{this.$change(this.x,this.y)});break;case"linked":n&&(this.dynamic=!0)}}connectedCallback(){super.connectedCallback();const e=this.closest(this.$getTagNameOf(pe));e?(this.$canvas=e,this.$setStyles({position:"absolute",transform:`translate(${this.x}px, ${this.y}px)`}),this.hidden||this.$render(),this.$initSelection(!0),this.$onCanvasActionStart=this.$handleActionStart.bind(this),this.$onCanvasActionEnd=this.$handleActionEnd.bind(this),this.$onCanvasAction=this.$handleAction.bind(this),lt(e,Be,this.$onCanvasActionStart),lt(e,We,this.$onCanvasActionEnd),lt(e,He,this.$onCanvasAction)):this.$render()}disconnectedCallback(){const{$canvas:e}=this;e&&(this.$onCanvasActionStart&&(it(e,Be,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(it(e,We,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasAction&&(it(e,He,this.$onCanvasAction),this.$onCanvasAction=null)),super.disconnectedCallback()}$getSelections(){let e=[];return this.parentElement&&(e=Array.from(this.parentElement.querySelectorAll(this.$getTagNameOf(ye)))),e}$initSelection(e=!1,t=!1){const{initialCoverage:n,parentElement:r}=this;if(Ye(n)&&r){const a=this.aspectRatio||this.initialAspectRatio;let o=(t?0:this.width)||r.offsetWidth*n,i=(t?0:this.height)||r.offsetHeight*n;Ye(a)&&({width:o,height:i}=ht({aspectRatio:a,width:o,height:i})),this.$change(this.x,this.y,o,i),e&&this.$center(),this.$initialSelection={x:this.x,y:this.y,width:this.width,height:this.height}}}$createSelection(){const e=this.cloneNode(!0);return this.hasAttribute("id")&&e.removeAttribute("id"),e.initialCoverage=NaN,this.active=!1,this.parentElement&&this.parentElement.insertBefore(e,this.nextSibling),e}$removeSelection(e=this){if(this.parentElement){const t=this.$getSelections();if(t.length>1){const n=t.indexOf(e),r=t[n+1]||t[n-1];r&&(e.active=!1,this.parentElement.removeChild(e),r.active=!0,r.$emit(Ve,{x:r.x,y:r.y,width:r.width,height:r.height}))}else this.$clear()}}$handleActionStart(e){var t,n;const r=null===(n=null===(t=e.detail)||void 0===t?void 0:t.relatedEvent)||void 0===n?void 0:n.target;this.$action="",this.$actionStartTarget=r,!this.hidden&&this.multiple&&!this.active&&r===this&&this.parentElement&&(this.$getSelections().forEach(e=>{e.active=!1}),this.active=!0,this.$emit(Ve,{x:this.x,y:this.y,width:this.width,height:this.height}))}$handleAction(e){const{currentTarget:t,detail:n}=e;if(!t||!n)return;const{relatedEvent:r}=n;let{action:a}=n;if(!a&&this.multiple&&(a=this.$action||(null==r?void 0:r.target.action),this.$action=a),!a||this.hidden&&a!==ke||this.multiple&&!this.active&&a!==Se)return;const o=n.endX-n.startX,i=n.endY-n.startY,{width:l,height:s}=this;let{aspectRatio:c}=this;switch(!Ye(c)&&r.shiftKey&&(c=Ye(l)&&Ye(s)?l/s:1),a){case ke:if(0!==o&&0!==i){const{$canvas:e}=this,r=dt(t);(this.multiple&&!this.hidden?this.$createSelection():this).$change(n.startX-r.left,n.startY-r.top,Math.abs(o),Math.abs(i),c),o<0?i<0?a=je:i>0&&(a=Ie):o>0&&(i<0?a=Re:i>0&&(a=Ae)),e&&(e.$action=a)}break;case xe:this.movable&&(this.dynamic||this.$actionStartTarget&&this.contains(this.$actionStartTarget))&&this.$move(o,i);break;case Se:if(r&&this.zoomable&&(this.dynamic||this.contains(r.target))){const e=dt(t);this.$zoom(n.scale,r.pageX-e.left,r.pageY-e.top)}break;default:this.$resize(a,o,i,c)}}$handleActionEnd(){this.$action="",this.$actionStartTarget=null}$handleKeyDown(e){if(this.hidden||!this.keyboard||this.multiple&&!this.active||e.defaultPrevented)return;const{activeElement:t}=document;if(!t||!["INPUT","TEXTAREA"].includes(t.tagName)&&!["true","plaintext-only"].includes(t.contentEditable))switch(e.key){case"Backspace":e.metaKey&&(e.preventDefault(),this.$removeSelection());break;case"Delete":e.preventDefault(),this.$removeSelection();break;case"ArrowLeft":e.preventDefault(),this.$move(-1,0);break;case"ArrowRight":e.preventDefault(),this.$move(1,0);break;case"ArrowUp":e.preventDefault(),this.$move(0,-1);break;case"ArrowDown":e.preventDefault(),this.$move(0,1);break;case"+":e.preventDefault(),this.$zoom(.1);break;case"-":e.preventDefault(),this.$zoom(-.1)}}$center(){const{parentElement:e}=this;if(!e)return this;const t=(e.offsetWidth-this.width)/2,n=(e.offsetHeight-this.height)/2;return this.$change(t,n)}$move(e,t=e){return this.$moveTo(this.x+e,this.y+t)}$moveTo(e,t=e){return this.movable?this.$change(e,t):this}$resize(e,t=0,n=0,r=this.aspectRatio){if(!this.resizable)return this;const a=Ye(r),{$canvas:o}=this;let{x:i,y:l,width:s,height:c}=this;switch(e){case _e:l+=n,c-=n,c<0&&(e=Pe,c=-c,l-=c),a&&(i+=(t=n*r)/2,s-=t,s<0&&(s=-s,i-=s));break;case Ne:s+=t,s<0&&(e=ze,s=-s,i-=s),a&&(l-=(n=t/r)/2,c+=n,c<0&&(c=-c,l-=c));break;case Pe:c+=n,c<0&&(e=_e,c=-c,l-=c),a&&(i-=(t=n*r)/2,s+=t,s<0&&(s=-s,i-=s));break;case ze:i+=t,s-=t,s<0&&(e=Ne,s=-s,i-=s),a&&(l+=(n=t/r)/2,c-=n,c<0&&(c=-c,l-=c));break;case Re:a&&(n=-t/r),l+=n,c-=n,s+=t,s<0&&c<0?(e=Ie,s=-s,c=-c,i-=s,l-=c):s<0?(e=je,s=-s,i-=s):c<0&&(e=Ae,c=-c,l-=c);break;case je:a&&(n=t/r),i+=t,l+=n,s-=t,c-=n,s<0&&c<0?(e=Ae,s=-s,c=-c,i-=s,l-=c):s<0?(e=Re,s=-s,i-=s):c<0&&(e=Ie,c=-c,l-=c);break;case Ae:a&&(n=t/r),s+=t,c+=n,s<0&&c<0?(e=je,s=-s,c=-c,i-=s,l-=c):s<0?(e=Ie,s=-s,i-=s):c<0&&(e=Re,c=-c,l-=c);break;case Ie:a&&(n=-t/r),i+=t,s-=t,c+=n,s<0&&c<0?(e=Re,s=-s,c=-c,i-=s,l-=c):s<0?(e=Ae,s=-s,i-=s):c<0&&(e=je,c=-c,l-=c)}return o&&o.$setAction(e),this.$change(i,l,s,c)}$zoom(e,t,n){if(!this.zoomable||0===e)return this;e<0?e=1/(1-e):e+=1;const{width:r,height:a}=this,o=r*e,i=a*e;let l=this.x,s=this.y;return Ke(t)&&Ke(n)?(l-=(o-r)*((t-this.x)/r),s-=(i-a)*((n-this.y)/a)):(l-=(o-r)/2,s-=(i-a)/2),this.$change(l,s,o,i)}$change(e,t,n=this.width,r=this.height,a=this.aspectRatio,o=!1){return this.$changing||!Ke(e)||!Ke(t)||!Ke(n)||!Ke(r)||n<0||r<0?this:(Ye(a)&&({width:n,height:r}=ht({aspectRatio:a,width:n,height:r},"cover")),this.precise||(e=Math.round(e),t=Math.round(t),n=Math.round(n),r=Math.round(r)),e===this.x&&t===this.y&&n===this.width&&r===this.height&&Object.is(a,this.aspectRatio)&&!o?this:(this.hidden&&(this.hidden=!1),!1===this.$emit(Ve,{x:e,y:t,width:n,height:r})?this:(this.$changing=!0,this.x=e,this.y=t,this.width=n,this.height=r,this.$changing=!1,this.$render())))}$reset(){const{x:e,y:t,width:n,height:r}=this.$initialSelection;return this.$change(e,t,n,r)}$clear(){return this.$change(0,0,0,0,NaN,!0),this.hidden=!0,this}$render(){return this.$setStyles({transform:`translate(${this.x}px, ${this.y}px)`,width:this.width,height:this.height})}$toCanvas(e){return new Promise((t,n)=>{if(!this.isConnected)return void n(new Error("The current element is not connected to the DOM."));const r=document.createElement("canvas");let{width:a,height:o}=this,i=1;if(Ze(e)&&(Ye(e.width)||Ye(e.height))&&(({width:a,height:o}=ht({aspectRatio:a/o,width:e.width,height:e.height})),i=a/this.width),r.width=a,r.height=o,!this.$canvas)return void t(r);const l=this.$canvas.querySelector(this.$getTagNameOf(be));l?l.$ready().then(n=>{const s=r.getContext("2d");if(s){const[t,c,u,d,f,p]=l.$getTransform(),m=-this.x,h=-this.y,g=(m*d-u*h)/(t*d-u*c),b=(h*t-c*m)/(t*d-u*c);let y=t*g+u*b+f,v=c*g+d*b+p,w=n.naturalWidth,k=n.naturalHeight;1!==i&&(y*=i,v*=i,w*=i,k*=i);const x=w/2,S=k/2;s.fillStyle="transparent",s.fillRect(0,0,a,o),Ze(e)&&Je(e.beforeDraw)&&e.beforeDraw.call(this,s,r),s.save(),s.translate(x,S),s.transform(t,c,u,d,y,v),s.translate(-x,-S),s.drawImage(n,0,0,w,k),s.restore()}t(r)}).catch(n):t(r)})}}jt.$name=ye,jt.$version="2.0.0";class At extends St{constructor(){super(...arguments),this.$style=":host{display:flex;flex-direction:column;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([bordered]){border:1px dashed var(--theme-color)}:host([covered]){bottom:0;left:0;position:absolute;right:0;top:0}:host>span{display:flex;flex:1}:host>span+span{border-top:1px dashed var(--theme-color)}:host>span>span{flex:1}:host>span>span+span{border-left:1px dashed var(--theme-color)}",this.bordered=!1,this.columns=3,this.covered=!1,this.rows=3,this.slottable=!1,this.themeColor="rgba(238, 238, 238, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["bordered","columns","covered","rows"])}$propertyChangedCallback(e,t,n){Object.is(n,t)||(super.$propertyChangedCallback(e,t,n),"rows"!==e&&"columns"!==e||this.$nextTick(()=>{this.$render()}))}connectedCallback(){super.connectedCallback(),this.$render()}$render(){const e=this.$getShadowRoot(),t=document.createDocumentFragment();for(let n=0;n<this.rows;n+=1){const e=document.createElement("span");e.setAttribute("role","row");for(let t=0;t<this.columns;t+=1){const t=document.createElement("span");t.setAttribute("role","gridcell"),e.appendChild(t)}t.appendChild(e)}e&&(e.innerHTML="",e.appendChild(t))}}At.$name=he,At.$version="2.0.0";class It extends St{constructor(){super(...arguments),this.$style=':host{display:inline-block;height:1em;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1em}:host:after,:host:before{background-color:var(--theme-color);content:"";display:block;position:absolute}:host:before{height:1px;left:0;top:50%;transform:translateY(-50%);width:100%}:host:after{height:100%;left:50%;top:0;transform:translateX(-50%);width:1px}:host([centered]){left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}',this.centered=!1,this.slottable=!1,this.themeColor="rgba(238, 238, 238, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["centered"])}}It.$name=me,It.$version="2.0.0";const Lt=new WeakMap,Mt=new WeakMap,$t=new WeakMap,Dt=new WeakMap,Ot="vertical";class Ft extends St{constructor(){super(...arguments),this.$onSelectionChange=null,this.$onSourceImageLoad=null,this.$onSourceImageTransform=null,this.$scale=1,this.$style=":host{display:block;height:100%;overflow:hidden;position:relative;width:100%}",this.resize=Ot,this.selection="",this.slottable=!1}set $image(e){Mt.set(this,e)}get $image(){return Mt.get(this)}set $sourceImage(e){Dt.set(this,e)}get $sourceImage(){return Dt.get(this)}set $canvas(e){Lt.set(this,e)}get $canvas(){return Lt.get(this)}set $selection(e){$t.set(this,e)}get $selection(){return $t.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["resize","selection"])}connectedCallback(){super.connectedCallback();let e=null;if(e=this.selection?this.ownerDocument.querySelector(this.selection):this.closest(this.$getTagNameOf(ye)),et(e)){this.$selection=e,this.$onSelectionChange=this.$handleSelectionChange.bind(this),lt(e,Ve,this.$onSelectionChange);const t=e.closest(this.$getTagNameOf(pe));if(t){this.$canvas=t;const e=t.querySelector(this.$getTagNameOf(be));e&&(this.$sourceImage=e,this.$image=e.cloneNode(!0),this.$getShadowRoot().appendChild(this.$image),this.$onSourceImageLoad=this.$handleSourceImageLoad.bind(this),this.$onSourceImageTransform=this.$handleSourceImageTransform.bind(this),lt(e.$image,Fe,this.$onSourceImageLoad),lt(e,qe,this.$onSourceImageTransform))}this.$render()}}disconnectedCallback(){const{$selection:e,$sourceImage:t}=this;e&&this.$onSelectionChange&&(it(e,Ve,this.$onSelectionChange),this.$onSelectionChange=null),t&&this.$onSourceImageLoad&&(it(t.$image,Fe,this.$onSourceImageLoad),this.$onSourceImageLoad=null),t&&this.$onSourceImageTransform&&(it(t,qe,this.$onSourceImageTransform),this.$onSourceImageTransform=null),super.disconnectedCallback()}$handleSelectionChange(e){this.$render(e.detail)}$handleSourceImageLoad(){const{$image:e,$sourceImage:t}=this,n=e.getAttribute("src"),r=t.getAttribute("src");r&&r!==n&&(e.setAttribute("src",r),e.$ready(()=>{setTimeout(()=>{this.$render()},50)}))}$handleSourceImageTransform(e){this.$render(void 0,e.detail.matrix)}$render(e,t){const{$canvas:n,$selection:r}=this;e||r.hidden||(e=r),(!e||0===e.x&&0===e.y&&0===e.width&&0===e.height)&&(e={x:0,y:0,width:n.offsetWidth,height:n.offsetHeight});const{x:a,y:o,width:i,height:l}=e,s={},{clientWidth:c,clientHeight:u}=this;let d=c,f=u,p=NaN;switch(this.resize){case"both":p=1,d=i,f=l,s.width=i,s.height=l;break;case"horizontal":p=l>0?u/l:0,d=i*p,s.width=d;break;case Ot:p=i>0?c/i:0,f=l*p,s.height=f;break;default:c>0?p=i>0?c/i:0:u>0&&(p=l>0?u/l:0)}this.$scale=p,this.$setStyles(s),this.$sourceImage&&this.$transformImageByOffset(null!=t?t:this.$sourceImage.$getTransform(),-a,-o)}$transformImageByOffset(e,t,n){const{$image:r,$scale:a,$sourceImage:o}=this;if(o&&r&&a>=0){const[o,i,l,s,c,u]=e,d=(t*s-l*n)/(o*s-l*i),f=(n*o-i*t)/(o*s-l*i),p=o*d+l*f+c,m=i*d+s*f+u;r.$ready(e=>{this.$setStyles.call(r,{width:e.naturalWidth*a,height:e.naturalHeight*a})}),r.$setTransform(o,i,l,s,p*a,m*a)}}}function Ut(){const[t,n]=e.useState(!1),[r,a]=e.useState(null),[o,i]=e.useState(null),l=async(e,t)=>{if(!e||!t)return a("ID de asset y configuración de variante son requeridos"),null;n(!0),a(null),i(null);try{const n=await async function(e,{variant_name:t,width:n,height:a,crop_params:o,preset_aspect:i=null,preset_size:l=null,output_format:s="webp"}){try{const r=[{name:t,width:n,height:a,output_format:s,crop_params:o}];return i&&(r[0].preset_aspect=i),l&&(r[0].preset_size=l),function(e){if(!e?.success||!e?.data)return{result:null};const t=e.data;return{result:{job_id:t.job_id,asset_id:t.asset_id,variants_requested:t.variants_requested||[],processing_mode:t.async?"async":"sync",estimated_completion:t.estimated_completion,variant_statuses:(t.variant_statuses||[]).map(e=>({name:e.name,status:e.status,size:e.expected_size,format:e.format}))}}}(await P({endpoint:`/assets/${e}/variants`,method:"POST",body:{variants:r,async:!1},basePath:I,useJWT:!0}))}catch(r){throw A(r)}}(e,{variant_name:t.name,width:t.width,height:t.height,crop_params:t.crop_params,preset_aspect:t.preset_aspect,preset_size:t.preset_size,output_format:t.output_format});if(n?.result)return i(n.result),n.result;throw new Error("No se pudo crear la variante")}catch(o){return console.error("Error creating variant:",o),a(o.message||"Error desconocido al crear variante"),null}finally{n(!1)}};return{createVariant:l,createCropVariant:async(e,t,n={})=>{const r={name:n.name||`crop_${Date.now()}`,width:n.width||800,height:n.height||600,output_format:n.format||"webp",crop_params:{x:t.x||0,y:t.y||0,width:t.width||1,height:t.height||1}};return await l(e,r)},loading:t,error:r,createdVariant:o,reset:()=>{a(null),i(null)}}}Ft.$name=we,Ft.$version="2.0.0",
|
|
29
29
|
/*! Cropper.js v2.0.0 | (c) 2015-present Chen Fengyuan | MIT */
|
|
30
|
-
Ct.$define(),It.$define(),At.$define(),zt.$define(),_t.$define(),jt.$define(),Pt.$define(),Ft.$define();class Ht{constructor(e,t,n){this.canvasRef=e,this.imageRef=t,this.selectionRef=n}get canvasElement(){return this.canvasRef?.current}get image(){return this.imageRef?.current}get selectionElement(){return this.selectionRef?.current}get isReady(){return!!(this.canvasElement&&this.image&&this.selectionElement)}transform={move:(e,t)=>{if(!this.image)return!1;try{return this.image.$move(e,t),!0}catch(n){return console.warn("Error moving image:",n),!1}},moveTo:(e,t)=>{if(!this.image)return!1;try{return this.image.$moveTo(e,t),!0}catch(n){return console.warn("Error moving image to position:",n),!1}},zoom:e=>{if(!this.image)return!1;try{return this.image.$zoom(e),!0}catch(t){return console.warn("Error zooming image:",t),!1}},rotate:e=>{if(!this.image)return!1;try{const t=e*Math.PI/180;return this.image.$rotate(t),!0}catch(t){return console.warn("Error rotating image:",t),!1}},scale:(e,t=e)=>{if(!this.image)return!1;try{return this.image.$scale(e,t),!0}catch(n){return console.warn("Error scaling image:",n),!1}},center:(e="contain")=>{if(!this.image)return!1;try{return this.image.$center(e),!0}catch(t){return console.warn("Error centering image:",t),!1}},reset:()=>{if(!this.image)return!1;try{return this.image.$resetTransform(),!0}catch(e){return console.warn("Error resetting transform:",e),!1}},getTransform:()=>{if(!this.image)return null;try{return this.image.$getTransform()}catch(e){return console.warn("Error getting transform:",e),null}},setTransform:(e,t,n,r,a,o)=>{if(!this.image)return!1;try{return this.image.$setTransform(e,t,n,r,a,o),!0}catch(i){return console.warn("Error setting transform:",i),!1}},resetZoom:()=>{if(!this.image)return!1;try{const e=this.image.$getTransform();if(!e)return!1;const[t,n,r,a,o,i]=e,l=Math.sqrt(t*t+n*n),s=Math.sqrt(r*r+a*a),c=t/l,u=n/l,d=r/s,f=a/s;return this.image.$setTransform(c,u,d,f,o,i),!0}catch(e){return console.warn("Error resetting zoom:",e),!1}},setZoom:e=>{if(!this.image||e<=0)return!1;try{const t=this.image.$getTransform();if(!t)return!1;const[n,r,a,o,i,l]=t,s=Math.sqrt(n*n+r*r),c=Math.sqrt(a*a+o*o),u=n/s*e,d=r/s*e,f=a/c*e,p=o/c*e;return this.image.$setTransform(u,d,f,p,i,l),!0}catch(t){return console.warn("Error setting zoom level:",t),!1}},getZoom:()=>{if(!this.image)return 1;try{const e=this.image.$getTransform();if(!e)return 1;const[t,n]=e;return Math.sqrt(t*t+n*n)}catch(e){return console.warn("Error getting zoom level:",e),1}},fitToCanvas:(e=.1)=>{if(!this.image||!this.canvasElement)return!1;try{const t=this.canvasElement.getBoundingClientRect();let n=this.image.querySelector("img")||this.image;if(!n?.naturalWidth||!n?.naturalHeight)return!1;const r=1-e,a=t.width*r/n.naturalWidth,o=t.height*r/n.naturalHeight,i=Math.min(a,o,1);return this.transform.setZoom(i)}catch(t){return console.warn("Error fitting to canvas:",t),!1}}};selection={center:()=>{if(!this.selectionElement)return!1;try{return this.selectionElement.$center(),!0}catch(e){return console.warn("Error centering selection:",e),!1}},reset:()=>{if(!this.selectionElement)return!1;try{return this.selectionElement.$reset(),!0}catch(e){return console.warn("Error resetting selection:",e),!1}},setCoverage:e=>{if(!this.selectionElement||e<0||e>1)return!1;try{return this.selectionElement.initialCoverage=e,this.selectionElement.$reset(),!0}catch(t){return console.warn("Error setting coverage:",t),!1}},setAspectRatio:e=>{if(!this.selectionElement)return!1;try{let t;if(""===e||null==e)t=NaN;else if("number"==typeof e)t=e;else{if("string"!=typeof e)return console.warn("Unsupported aspect ratio type:",typeof e,e),!1;if(e.includes("/")){const[n,r]=e.split("/").map(e=>parseFloat(e.trim()));if(isNaN(n)||isNaN(r)||0===r)return console.warn("Invalid aspect ratio format:",e),!1;t=n/r}else if(t=parseFloat(e),isNaN(t))return console.warn("Invalid aspect ratio format:",e),!1}return this.selectionElement.aspectRatio=t,this.selectionElement.$render(),!0}catch(t){return console.warn("Error setting aspect ratio:",t),!1}},move:(e,t)=>{if(!this.selectionElement)return!1;try{return this.selectionElement.$move(e,t),!0}catch(n){return console.warn("Error moving selection:",n),!1}},zoom:e=>{if(!this.selectionElement)return!1;try{return this.selectionElement.$zoom(e),!0}catch(t){return console.warn("Error zooming selection:",t),!1}},change:(e,t,n,r,a)=>{if(!this.selectionElement)return!1;try{return this.selectionElement.$change(e,t,n,r,a),!0}catch(o){return console.warn("Error changing selection:",o),!1}},toCanvas:async(e={})=>{if(!this.selectionElement)return null;try{const t={width:800,height:600,imageSmoothingEnabled:!0,imageSmoothingQuality:"high",...e};return await this.selectionElement.$toCanvas(t)}catch(t){return console.warn("Error exporting to canvas:",t),null}},getData:()=>{if(!this.selectionElement)return null;try{return{x:this.selectionElement.x,y:this.selectionElement.y,width:this.selectionElement.width,height:this.selectionElement.height,aspectRatio:this.selectionElement.aspectRatio}}catch(e){return console.warn("Error getting selection data:",e),null}}};canvas={setBackground:e=>{if(!this.canvasElement)return!1;try{return this.canvasElement.background=e,!0}catch(t){return console.warn("Error setting background:",t),!1}},setScaleStep:e=>{if(!this.canvasElement)return!1;try{return this.canvasElement.scaleStep=e,!0}catch(t){return console.warn("Error setting scale step:",t),!1}},setDisabled:e=>{if(!this.canvasElement)return!1;try{return this.canvasElement.disabled=e,!0}catch(t){return console.warn("Error setting disabled state:",t),!1}}};utils={flipHorizontal:()=>{const e=this.transform.getTransform();if(!e)return!1;const[t,n,r,a,o,i]=e;return this.transform.setTransform(-t,n,r,a,o,i)},flipVertical:()=>{const e=this.transform.getTransform();if(!e)return!1;const[t,n,r,a,o,i]=e;return this.transform.setTransform(t,n,r,-a,o,i)},setupInitialView:async(e={})=>{const{paspartuFactor:t=.85,retries:n=3,retryDelay:r=200}=e;return new Promise(e=>{const a=(o=0)=>{if(!this.isReady)return o<n?void setTimeout(()=>a(o+1),r):void e(!1);try{const i=this.canvasElement.getBoundingClientRect();let l=this.image.querySelector("img")||this.image;if(!l?.naturalWidth||!l?.naturalHeight)return o<n?void setTimeout(()=>a(o+1),r):(this.transform.center(),void e(!1));if(i.width>0&&i.height>0){const n=i.width*t/l.naturalWidth,r=i.height*t/l.naturalHeight,a=Math.min(n,r,1);this.transform.setTransform(a,0,0,a,0,0)?setTimeout(()=>{this.transform.center(),this.selection.center(),e(!0)},100):(this.transform.reset(),setTimeout(()=>{a<1&&this.transform.scale(a),setTimeout(()=>{this.transform.center(),this.selection.center(),e(!0)},100)},100))}else this.transform.center(),e(!1)}catch(i){console.warn("Error in setup:",i),this.transform.center(),e(!1)}};a()})},resetAll:()=>{const e={transform:this.transform.reset(),selection:this.selection.reset(),center:!1};return setTimeout(()=>{e.center=this.transform.center()&&this.selection.center()},100),e},checkExportability:async()=>{try{return!!(await this.selection.toCanvas({width:1,height:1}))}catch{return!1}},resetZoomOnly:()=>this.transform.resetZoom(),getZoomInfo:()=>{const e=this.transform.getZoom();return{current:e,isZoomedIn:e>1,isZoomedOut:e<1,percentage:Math.round(100*e)}},setBackground:e=>this.canvas.setBackground(e)};setupEventListeners(e={}){const{onSelectionChange:t,onImageTransform:n,onAction:r,onActionStart:a,onActionMove:o,onActionEnd:i}=e,l=[];if(t&&this.selectionElement){const e=e=>{t({x:e.detail.x,y:e.detail.y,width:e.detail.width,height:e.detail.height})};this.selectionElement.addEventListener("change",e),l.push(()=>{this.selectionElement&&this.selectionElement.removeEventListener("change",e)})}if(n&&this.image){const e=e=>{n({matrix:e.detail.matrix,oldMatrix:e.detail.oldMatrix})};this.image.addEventListener("transform",e),l.push(()=>{this.image&&this.image.removeEventListener("transform",e)})}if(this.canvasElement){if(r){const e=e=>r(e.detail);this.canvasElement.addEventListener("action",e),l.push(()=>{this.canvasElement&&this.canvasElement.removeEventListener("action",e)})}if(a){const e=e=>a(e.detail);this.canvasElement.addEventListener("actionstart",e),l.push(()=>{this.canvasElement&&this.canvasElement.removeEventListener("actionstart",e)})}if(o){const e=e=>o(e.detail);this.canvasElement.addEventListener("actionmove",e),l.push(()=>{this.canvasElement&&this.canvasElement.removeEventListener("actionmove",e)})}if(i){const e=e=>i(e.detail);this.canvasElement.addEventListener("actionend",e),l.push(()=>{this.canvasElement&&this.canvasElement.removeEventListener("actionend",e)})}}return()=>{l.forEach(e=>e())}}}function Wt({image:t,onSave:r,onCancel:a,onDelete:o,deleting:i=!1,onVariantCreated:l=null}){const[s,c]=e.useState(!1),[u,d]=e.useState(null),[f,p]=e.useState(!1),[m,h]=e.useState(""),[g,b]=e.useState(!0),[y,v]=e.useState(!0),[w,k]=e.useState({horizontal:!1,vertical:!1}),[x,S]=e.useState(!1),[C,E]=e.useState({current:1,percentage:100}),T=window.limboCore?.accessibilityManager,_=e.useMemo(()=>{const e=window.limboCore?.config?.getGlobal()||{};return e.cropper?.allowedAspectRatios||[{label:"📐 Libre",value:"",ratio:null},{label:"⬜ 1:1 (Cuadrado)",value:"1",ratio:1},{label:"📺 4:3 (Clásico)",value:"4/3",ratio:4/3},{label:"🖥️ 16:9 (Widescreen)",value:"16/9",ratio:16/9},{label:"📷 3:2 (Foto)",value:"3/2",ratio:1.5},{label:"📱 2:3 (Retrato)",value:"2/3",ratio:2/3},{label:"📲 9:16 (Stories)",value:"9/16",ratio:9/16}]},[]),{createCropVariant:N,loading:P,error:z}=Ut(),R=((t,n={})=>{const r=e.useRef(null),a=e.useRef(null),o=e.useRef(null),i=e.useRef(null),[l,s]=e.useState(null),[c,u]=e.useState(null),[d,f]=e.useState(!1),[p,m]=e.useState(!0),[h,g]=e.useState(0),b={aspectRatio:"",shade:!0,paspartuFactor:.85,...n};e.useEffect(()=>{r.current&&a.current&&o.current&&(i.current=new Ht(r,a,o),f(!0))},[]),e.useEffect(()=>{if(i.current)return i.current.setupEventListeners({onSelectionChange:e=>{s(e)},onImageTransform:()=>{g(e=>e+1)}})},[d]),e.useEffect(()=>{i.current&&t&&(async()=>{i.current.selection.setAspectRatio(b.aspectRatio),i.current.canvas.setBackground(b.shade),await i.current.utils.setupInitialView({paspartuFactor:b.paspartuFactor});const e=await i.current.utils.checkExportability();m(e);const t=a.current?.querySelector("img")||a.current;t?.naturalWidth&&t?.naturalHeight&&u({naturalWidth:t.naturalWidth,naturalHeight:t.naturalHeight,currentWidth:t.width,currentHeight:t.height})})()},[t,b.aspectRatio,b.shade,b.paspartuFactor]);const y=e.useCallback(()=>({move:(e,t)=>i.current?.transform.move(e,t)||!1,zoom:e=>i.current?.transform.zoom(e)||!1,rotate:e=>i.current?.transform.rotate(e)||!1,center:()=>i.current?.transform.center()||!1,reset:()=>i.current?.transform.reset()||!1,resetZoom:()=>i.current?.transform.resetZoom()||!1,setZoom:e=>i.current?.transform.setZoom(e)||!1,getZoom:()=>i.current?.transform.getZoom()||1,fitToCanvas:e=>i.current?.transform.fitToCanvas(e)||!1,flipHorizontal:()=>i.current?.utils.flipHorizontal()||!1,flipVertical:()=>i.current?.utils.flipVertical()||!1}),[]),v=e.useCallback(()=>({center:()=>i.current?.selection.center()||!1,reset:()=>i.current?.selection.reset()||!1,setCoverage:e=>i.current?.selection.setCoverage(e)||!1,setAspectRatio:e=>i.current?.selection.setAspectRatio(e)||!1,toCanvas:e=>i.current?.selection.toCanvas(e)||Promise.resolve(null)}),[]),w=e.useCallback(()=>({resetAll:()=>{if(i.current){const e=i.current.utils.resetAll();return s(null),e}return!1},setBackground:e=>i.current?.canvas.setBackground(e)||!1,resetZoomOnly:()=>i.current?.utils.resetZoomOnly()||!1,getZoomInfo:()=>i.current?.utils.getZoomInfo()||{current:1,percentage:100,isZoomedIn:!1,isZoomedOut:!1}}),[]);return{refs:{canvasRef:r,imageRef:a,selectionRef:o},state:{cropData:l,imageInfo:c,isReady:d,canExport:p,transformVersion:h},transform:y(),selection:v(),utils:w(),manager:i.current}})(t,{aspectRatio:m,showGrid:g,shade:y,initialCoverage:.5,paspartuFactor:.85}),{refs:j,state:A,transform:I,selection:L,utils:M}=R,{canvasRef:D,imageRef:$,selectionRef:O}=j,{cropData:F,imageInfo:U,canExport:H,transformVersion:W}=A,B=e.useMemo(()=>U||{naturalWidth:t.width||1920,naturalHeight:t.height||1080,currentWidth:t.width||1920,currentHeight:t.height||1080},[U,t.width,t.height]),V=e.useCallback(()=>b(e=>!e),[]),q=e.useCallback(()=>v(e=>!e),[]),Q=e.useCallback(()=>S(e=>!e),[]),K=e.useCallback(()=>I.center(),[I]),Y=e.useCallback(()=>L.center(),[L]),G=e.useCallback(()=>L.reset(),[L]),X=e.useCallback((e,t)=>I.move(e,t),[I]),Z=e.useCallback(e=>I.zoom(e),[I]),J=e.useCallback(e=>I.rotate(e),[I]),ee=e.useCallback(()=>{M.resetAll(),h(""),b(!0),v(!0),k({horizontal:!1,vertical:!1}),c(!1),d(null)},[M]),te=e.useCallback(e=>{L.setCoverage(e)},[L]),ne=e.useCallback(()=>M.resetZoomOnly(),[M]),re=e.useCallback(()=>{k(e=>{const t=!e.horizontal;return I.flipHorizontal(),{...e,horizontal:t}})},[I]),ae=e.useCallback(()=>{k(e=>{const t=!e.vertical;return I.flipVertical(),{...e,vertical:t}})},[I]),oe=e.useCallback(e=>{h(e);const t=_.find(t=>t.value===e),n=t?t.ratio:e;L.setAspectRatio(n)},[L,_]),ie=e.useCallback(async()=>{if(!H)return null;try{const e=await L.toCanvas({width:800,height:600,imageSmoothingEnabled:!0,imageSmoothingQuality:"high"});return e?e.toDataURL("image/jpeg",.9):null}catch(e){return console.warn("Error generating preview:",e),null}},[H,L]),le=e.useCallback(async()=>{if(s)return c(!1),d(null),void p(!1);if(H){c(!0),p(!0);try{const e=await ie();e?d(e):(c(!1),alert("No se puede exportar el recorte por restricciones de CORS en la imagen original."))}finally{p(!1)}}else alert("No se puede exportar el recorte por restricciones de CORS en la imagen original.")},[H,ie,s]),se=e.useCallback(async()=>{if(!H){const e="No se puede exportar el recorte por restricciones de CORS en la imagen original.";return T?.announceError(e),void alert(e)}if(!A.isReady){const e="El cropper aún no está inicializado. Espera un momento e inténtalo de nuevo.";return T?.announceError(e),void alert(e)}T?.announce("Creando variante recortada de la imagen");try{if(!F||!B)throw console.error("❌ Datos faltantes:",{cropData:F,effectiveImageInfo:B}),new Error(`No hay datos de recorte disponibles. CropData: ${!!F}, ImageInfo: ${!!B}`);if(!F.x&&0!==F.x||!F.y&&0!==F.y||!F.width||!F.height)throw console.error("❌ CropData inválido:",F),new Error("Los datos de recorte no tienen las propiedades esperadas");if(!B.naturalWidth||!B.naturalHeight)throw console.error("❌ ImageInfo inválido:",B),new Error("Los datos de imagen no tienen las dimensiones esperadas");const{x:e,y:n,width:a,height:o}=F,{naturalWidth:i,naturalHeight:s}=B,c={x:e/i,y:n/s,width:a/i,height:o/s},u=a/o;let d,f;const p=1200;u>1?(d=Math.min(a,p),f=Math.round(d/u)):(f=Math.min(o,p),d=Math.round(f*u));const m=Date.now(),[h]=t.filename.split("."),g=`${h}_crop_${m}`,b=await N(t.id,c,{name:g,width:d,height:f,format:"webp",quality:90});b&&(T?.announceSuccess(`Variante recortada creada: ${g}`),l?.(t.id,b),r(b))}catch(e){console.warn("Error creating crop variant:",e);const t="No se pudo crear la variante recortada. Inténtalo de nuevo.";T?.announceError(t),alert(t)}},[H,F,U,B,t.filename,t.id,N,r,l,T,A.isReady]);return e.useEffect(()=>{c(!1),d(null)},[t]),e.useEffect(()=>{R.manager&&(L.setAspectRatio(m),M.setBackground(y))},[m,y,R.manager,L,M]),e.useEffect(()=>{if(R.manager&&R.manager.utils)try{const e=R.manager.transform.getZoom(),t={current:e,isZoomedIn:e>1,isZoomedOut:e<1,percentage:Math.round(100*e)};E(t)}catch(e){console.warn("Error updating zoom info:",e)}},[W,R.manager]),e.useEffect(()=>{if(!s||!H)return;const e=setTimeout(async()=>{p(e=>!u&&!e||e);try{const e=await ie();e&&d(e)}finally{p(!1)}},300);return()=>{clearTimeout(e),p(!1)}},[F,W,s,H,ie,m,w,u]),e.useEffect(()=>{const e=D.current,t=t=>{if("Delete"===t.key||"Backspace"===t.key||"Backspace"===t.key&&t.metaKey||"Backspace"===t.key&&t.ctrlKey){const n=t.target;if(e&&(n===e||n===document.body||n===document.documentElement||"CROPPER-CANVAS"===n.tagName||"CROPPER-SELECTION"===n.tagName||"CROPPER-IMAGE"===n.tagName||"CROPPER-HANDLE"===n.tagName||"CROPPER-GRID"===n.tagName||n.closest("cropper-canvas")||e.contains(n)))return t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),!1}};return document.addEventListener("keydown",t,!0),document.addEventListener("keyup",t,!0),window.addEventListener("keydown",t,!0),e&&e.addEventListener("keydown",t,!0),()=>{document.removeEventListener("keydown",t,!0),document.removeEventListener("keyup",t,!0),window.removeEventListener("keydown",t,!0),e&&e.removeEventListener("keydown",t,!0)}},[D]),t?n.jsxs("div",{className:"limbo-cropper-view px-2 border-2 border-gray-200/50 rounded-lg min-w-fit max-w-7xl mx-auto h-screen flex flex-col",children:[n.jsxs("div",{className:"limbo-cropper-header flex flex-col sm:flex-row justify-between items-start sm:items-center p-4 sm:p-6 pb-4 border-b border-gray-200 bg-white z-10 flex-shrink-0 gap-4 sm:gap-2",children:[n.jsxs("div",{className:"flex-1 min-w-0",children:[n.jsx("h2",{className:"text-lg sm:text-xl font-bold text-gray-800 truncate",children:"Recortar imagen"}),n.jsx("p",{className:"text-sm text-gray-600 mt-1 truncate",children:t.filename})]}),n.jsxs("div",{className:"flex gap-2 w-full sm:w-auto",children:[n.jsx("button",{onClick:a,disabled:P,className:"limbo-btn limbo-btn-secondary px-4 py-2 flex-1 sm:flex-initial",children:"Cancelar"}),n.jsx("button",{onClick:()=>o?.(t),disabled:i|P,className:"limbo-btn limbo-btn-danger px-4 py-2 flex-1 sm:flex-initial","aria-label":`Eliminar imagen ${t.filename}`,children:i?"Eliminando...":"Eliminar"})]})]}),n.jsxs("div",{className:"limbo-cropper-status bg-white border-gray-100 px-4 sm:px-6 py-2 pb-0 flex-shrink-0",children:[z&&n.jsxs("div",{className:"alert alert-danger mb-2 text-sm",role:"alert",children:[n.jsx("strong",{children:"Error:"})," ",z]}),F&&F.width>0&&n.jsxs("div",{className:"alert alert-info mb-2 text-sm",role:"status",children:[n.jsx("strong",{children:"Área:"})," ",Math.round(F.width)," ×"," ",Math.round(F.height)," px"]}),U&&n.jsxs("div",{className:"alert alert-secondary mb-2 text-sm",role:"status",children:[n.jsx("strong",{children:"Original:"})," ",U.naturalWidth," ×"," ",U.naturalHeight," px",U.currentWidth!==U.naturalWidth&&n.jsxs("span",{className:"ml-2 sm:ml-3 text-xs block sm:inline",children:["(Mostrada: ",Math.round(U.currentWidth)," ×"," ",Math.round(U.currentHeight)," px)"]})]}),!H&&n.jsx("div",{className:"alert alert-warning mb-2 text-sm",role:"alert",children:"⚠️ No se puede exportar por restricciones CORS"})]}),n.jsxs("div",{className:"flex flex-col md:flex-row flex-1 overflow-hidden rounded-lg gap-4 md:gap-0 cropper-main-content-area",children:[n.jsx("div",{className:"flex-1 relative min-w-0 order-2 md:order-1",children:n.jsxs("div",{className:"limbo-cropper-container absolute inset-2 sm:inset-4 bg-white rounded-lg border-2 border-gray-200 shadow-lg overflow-hidden",children:[s&&n.jsxs("div",{className:"absolute top-2 sm:top-4 right-2 sm:right-4 bg-white rounded-lg border border-gray-300 p-2 sm:p-3 z-50 shadow-xl w-48 sm:w-64 max-w-[calc(50%-1rem)] sm:max-w-[calc(50%-2rem)] md:min-w-1/4",children:[n.jsxs("div",{className:"flex justify-between items-center mb-2",children:[n.jsx("h3",{className:"text-xs font-semibold text-gray-700",children:"Vista previa"}),n.jsx("button",{onClick:()=>{c(!1),d(null)},className:"text-gray-400 hover:text-gray-600 p-1 -m-1","aria-label":"Cerrar vista previa",children:n.jsx("span",{className:"icon icon-close-small text-xs"})})]}),n.jsx("div",{className:"bg-gray-50 rounded p-2 flex justify-center items-center min-h-[80px] relative",children:u?n.jsxs("div",{className:"relative w-full h-full flex justify-center items-center",children:[n.jsx("img",{src:u,alt:"Vista previa del recorte",className:"max-w-full max-h-80 object-contain rounded shadow-sm"}),f&&n.jsx("div",{className:"absolute top-1 right-1 bg-blue-500 rounded-full p-1",children:n.jsx("div",{className:"animate-spin w-3 h-3 border border-white border-t-transparent rounded-full"})})]}):n.jsxs("div",{className:"flex flex-col items-center justify-center",children:[n.jsx("div",{className:"animate-spin w-6 h-6 border-2 border-blue-500 border-t-transparent rounded-full mb-2"}),n.jsx("span",{className:"text-xs text-gray-500",children:"Generando..."})]})})]}),n.jsxs("cropper-canvas",{ref:D,style:{width:"100%",height:"100%",display:"block"},background:!!y||void 0,id:"limbo-cropperjs-canvas",tabindex:"-1",onKeyDown:e=>{"Delete"!==e.key&&"Backspace"!==e.key||(e.preventDefault(),e.stopPropagation())},children:[n.jsx("cropper-image",{ref:$,src:t.url||t.path,alt:t.filename,id:"limbo-cropperjs-image",action:"move",crossOrigin:"anonymous",rotatable:!0,scalable:!0,skewable:!0,translatable:!0}),n.jsxs("cropper-selection",{ref:O,"initial-coverage":"0.5",movable:!0,resizable:!0,keyboard:"false",action:"move",style:{cursor:"move"},"data-prevent-delete":"true",tabindex:"-1",children:[g&&n.jsx("cropper-grid",{role:"grid",action:"move",covered:!0,bordered:!0}),n.jsx("cropper-handle",{action:"move",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"32px",height:"32px",zIndex:"10"}}),n.jsx("cropper-handle",{action:"n-resize"}),n.jsx("cropper-handle",{action:"e-resize"}),n.jsx("cropper-handle",{action:"s-resize"}),n.jsx("cropper-handle",{action:"w-resize"}),n.jsx("cropper-handle",{action:"ne-resize"}),n.jsx("cropper-handle",{action:"nw-resize"}),n.jsx("cropper-handle",{action:"se-resize"}),n.jsx("cropper-handle",{action:"sw-resize"})]})]})]})}),n.jsx("div",{className:"limbo-cropper-controls w-full md:w-80 bg-white border-t md:border-t-0 md:border-l border-gray-200 overflow-y-auto flex-shrink-0 order-1 md:order-2 max-h-96 md:max-h-none",children:n.jsxs("div",{className:"p-3 sm:p-4 space-y-3 sm:space-y-4 relative",children:[n.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-4 md:sticky top-0 z-50",children:[n.jsx("h3",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Acciones"}),n.jsxs("div",{className:"space-y-2",children:[n.jsxs("button",{onClick:le,disabled:P||!H,className:"w-full min-h-10 transition-colors "+(s?"limbo-btn limbo-btn-danger":"limbo-btn limbo-btn-primary"),"aria-label":"Generar vista previa del recorte",children:[n.jsx("span",{className:"icon "+(s?"icon-close-small-white":"icon-search-white")}),s?"Cerrar previa":"Vista previa"]}),n.jsx("button",{onClick:se,disabled:P||!F||!B||!H||!A.isReady,className:"w-full limbo-btn limbo-btn-success min-h-10","aria-label":"Guardar imagen recortada",children:P?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"icon icon-save-white"})," ","Guardando..."]}):n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"icon icon-save-white"})," Guardar recorte"]})}),n.jsxs("button",{onClick:ee,disabled:P,className:"w-full limbo-btn limbo-btn-secondary min-h-10","aria-label":"Reiniciar todas las configuraciones",children:[n.jsx("span",{className:"icon icon-refresh-white"})," Reiniciar todo"]})]})]}),n.jsxs("div",{className:"bg-gradient-to-br from-brand-blue-50 to-green-50 rounded-lg border border-blue-200 shadow-sm",children:[n.jsxs("button",{onClick:Q,className:"w-full p-4 flex items-center justify-between cursor-pointer hover:bg-blue-100/50 transition-colors rounded-t-lg","aria-expanded":x,"aria-label":"Mostrar/ocultar guía de uso",children:[n.jsxs("h3",{className:"text-lg font-semibold text-blue-800 flex items-center",children:[n.jsx("span",{className:"icon icon-lightbulb text-yellow-500 mr-2"}),"Guía de uso"]}),n.jsx("span",{className:"icon icon-arrow-down-blue transition-transform duration-200 "+(x?"rotate-180":"")})]}),x&&n.jsxs("div",{className:"px-4 pb-4 space-y-3",children:[n.jsxs("div",{className:"bg-white/60 rounded-md p-3 border-l-4 border-blue-400",children:[n.jsx("h4",{className:"font-semibold text-blue-700 mb-2 text-sm",children:"🖱️ Navegación básica"}),n.jsxs("div",{className:"text-sm text-blue-600 space-y-1",children:[n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Arrastra la imagen:"})," Haz clic fuera del área de selección y arrastra"]}),n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Zoom:"})," Usa la rueda del ratón (fuera del área de selección)"]}),n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Vista completa:"}),' Botón "Reset zoom" para ajustar al tamaño óptimo']})]})]}),n.jsxs("div",{className:"bg-white/60 rounded-md p-3 border-l-4 border-green-400",children:[n.jsx("h4",{className:"font-semibold text-green-700 mb-2 text-sm",children:"✂️ Área de selección"}),n.jsxs("div",{className:"text-sm text-green-600 space-y-1",children:[n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Mover selección:"})," Arrastra desde el centro",n.jsx("span",{className:"icon bg-white icon-move align-[middle!important] mx-1 border border-green-600 rounded-full"})]}),n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Redimensionar:"})," Arrastra desde las esquinas o bordes"]}),n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Tamaños rápidos:"})," Usa los botones 50%, 70%, 90%, 100%"]}),n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Proporciones:"})," Selecciona ratios predefinidos (1:1, 16:9, etc.)"]})]})]}),n.jsxs("div",{className:"bg-white/60 rounded-md p-3 border-l-4 border-purple-400",children:[n.jsx("h4",{className:"font-semibold text-purple-700 mb-2 text-sm",children:"⌨️ Atajos de teclado"}),n.jsxs("div",{className:"text-sm text-purple-600 space-y-1",children:[n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Flechas:"}),n.jsx("span",{className:"icon icon-arrow-right-box rotate-180 mx-1"}),n.jsx("span",{className:"icon icon-arrow-right-box mx-1"}),n.jsx("span",{className:"icon icon-arrow-right-box -rotate-90 mx-1"}),n.jsx("span",{className:"icon icon-arrow-right-box rotate-90 mx-1"}),"Mueven la selección (10px)"]}),n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Shift + Arrastrar:"})," Mantiene proporciones al redimensionar"]}),n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Ctrl + Rueda:"})," Zoom más preciso"]})]})]}),n.jsxs("div",{className:"bg-white/60 rounded-md p-3 border-l-4 border-amber-400",children:[n.jsx("h4",{className:"font-semibold text-amber-700 mb-2 text-sm",children:"💡 Consejos profesionales"}),n.jsxs("div",{className:"text-sm text-amber-600 space-y-1",children:[n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Vista previa:"}),' Usa el botón "Vista previa" antes de guardar']}),n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Grid:"})," Actívalo para aplicar la regla de los tercios"]}),n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Transformaciones:"})," Rota y voltea antes de hacer el recorte final"]}),n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Calidad:"})," Las imágenes se exportan en alta calidad (JPEG 90%)"]})]})]}),n.jsxs("div",{className:"bg-white/60 rounded-md p-3 border-l-4 border-orange-600",children:[n.jsx("h4",{className:"font-semibold text-orange-700 mb-2 text-sm",children:"⚠️ Advertencias"}),n.jsxs("div",{className:"text-sm text-orange-600 space-y-1",children:[n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Recortes grandes:"})," Pueden tardar más en procesarse"]}),n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Calidad de imagen:"})," La calidad puede verse afectada al escalar"]})]})]})]})]}),n.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-3 sm:p-4",children:[n.jsx("h3",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Proporción"}),n.jsx("div",{className:"limbo-cropper-aspect-buttons grid grid-cols-2 md:grid-cols-1 gap-2 md:hidden",children:_.map(e=>n.jsx("button",{onClick:()=>oe(e.value),className:"p-2 text-xs rounded border transition-colors cursor-pointer "+(m===e.value?"bg-blue-100 border-blue-300 text-blue-800":"bg-gray-100 border-gray-300 text-gray-700"),disabled:P,title:`Cambiar a proporción ${e.label}`,children:e.label},e.value))}),n.jsx("select",{value:m,onChange:e=>oe(e.target.value),className:"w-full form-control hidden md:block",disabled:P,"aria-label":"Seleccionar proporción de aspecto",children:_.map(e=>n.jsx("option",{value:e.value,children:e.label},e.value))})]}),n.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-4",children:[n.jsx("h3",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Visualización"}),n.jsxs("div",{className:"space-y-2",children:[n.jsxs("button",{onClick:V,className:"w-full flex cursor-pointer items-center justify-between p-2 rounded transition-colors "+(g?"bg-blue-100 border border-blue-300 text-blue-800":"bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200"),disabled:P,"aria-pressed":g,"aria-label":"Activar/desactivar grid",children:[n.jsxs("span",{className:"text-sm flex items-center",children:[n.jsx("span",{className:"icon icon-area-blue me-1"})," Grid"]}),n.jsx("span",{className:"text-xs",children:g?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"icon icon-tick icon--xs align-[middle!important] -mt-0.5"})," ","Activo"]}):"Inactivo"})]}),n.jsxs("button",{onClick:q,className:"w-full flex cursor-pointer items-center justify-between p-2 rounded transition-colors "+(y?"bg-blue-100 border border-blue-300 text-blue-800":"bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200"),disabled:P,"aria-pressed":y,"aria-label":"Activar/desactivar sombreado",children:[n.jsxs("span",{className:"text-sm flex items-center",children:[n.jsx("span",{className:"icon icon-comparison-blue me-1"})," ","Sombreado"]}),n.jsx("span",{className:"text-xs",children:y?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"icon icon-tick icon--xs align-[middle!important] -mt-0.5"})," ","Activo"]}):"Inactivo"})]})]})]}),n.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-4",children:[n.jsx("h3",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Ajustes del selector"}),n.jsxs("div",{className:"space-y-2",children:[n.jsx("button",{onClick:Y,className:"w-full p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Centrar selección",disabled:P,"aria-label":"Centrar área de selección",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsxs("span",{children:[n.jsx("span",{className:"icon icon-radio-button icon--sm align-[middle!important] "})," ","Centrar selección"]})})}),n.jsx("button",{onClick:G,className:"w-full p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Reiniciar selección",disabled:P,"aria-label":"Reiniciar área de selección",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsxs("span",{children:[n.jsx("span",{className:"icon icon-refresh icon--sm lign-[middle!important] "})," ","Reset selección"]})})})]}),n.jsxs("div",{className:"mt-3",children:[n.jsx("p",{className:"text-xs text-gray-600 mb-2",children:"Tamaños rápidos"}),n.jsxs("div",{className:"grid grid-cols-2 gap-1",children:[n.jsx("button",{onClick:()=>te(.5),className:"p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",disabled:P,"aria-label":"Selección 50%",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{children:"50%"})})}),n.jsx("button",{onClick:()=>te(.7),className:"p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",disabled:P,"aria-label":"Selección 70%",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{children:"70%"})})}),n.jsx("button",{onClick:()=>te(.9),className:"p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",disabled:P,"aria-label":"Selección 90%",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{children:"90%"})})}),n.jsx("button",{onClick:()=>te(1),className:"p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",disabled:P,"aria-label":"Selección completa",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{children:"100%"})})})]})]})]}),n.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-4",children:[n.jsx("h3",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Transformar imagen"}),n.jsxs("div",{className:"mb-4",children:[n.jsx("p",{className:"text-xs text-gray-600 mb-2",children:"Mover imagen"}),n.jsxs("div",{className:"grid grid-cols-3 gap-1",children:[n.jsx("div",{}),n.jsx("button",{onClick:()=>X(0,-10),className:"p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Mover arriba",disabled:P,"aria-label":"Mover imagen hacia arriba",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{className:"icon icon-arrow-up-blue"})})}),n.jsx("div",{}),n.jsx("button",{onClick:()=>X(-10,0),className:"p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Mover izquierda",disabled:P,"aria-label":"Mover imagen hacia la izquierda",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{className:"icon icon-arrow-left-blue"})})}),n.jsx("button",{onClick:K,className:"p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Centrar y ajustar imagen",disabled:P,"aria-label":"Centrar y ajustar imagen",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{className:"icon icon-radio-button-blue icon-md"})})}),n.jsx("button",{onClick:()=>X(10,0),className:"p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Mover derecha",disabled:P,"aria-label":"Mover imagen hacia la derecha",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{className:"icon icon-arrow-right-blue"})})}),n.jsx("div",{}),n.jsx("button",{onClick:()=>X(0,10),className:"p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Mover abajo",disabled:P,"aria-label":"Mover imagen hacia abajo",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{className:"icon icon-arrow-down-blue"})})}),n.jsx("div",{})]})]}),n.jsxs("div",{className:"mb-4",children:[n.jsxs("p",{className:"text-xs text-gray-600 mb-2",children:["Zoom ",C?C.percentage+"%":""]}),n.jsxs("div",{className:"flex gap-1",children:[n.jsx("button",{onClick:()=>Z(-.2),className:"flex-1 p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Alejar 20%",disabled:P,"aria-label":"Alejar imagen",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{className:"icon icon-zoom-out-blue"})})}),n.jsx("button",{onClick:ne,className:"flex-1 p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Restablecer zoom original",disabled:P,"aria-label":"Restablecer el zoom para que la imagen se vea con su resolución original",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{className:"icon icon-screenshot-blue"})})}),n.jsx("button",{onClick:()=>Z(.2),className:"flex-1 p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Acercar 20%",disabled:P,"aria-label":"Acercar imagen",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{className:"icon icon-zoom-in-blue"})})})]})]}),n.jsxs("div",{className:"mb-4",children:[n.jsx("p",{className:"text-xs text-gray-600 mb-2",children:"Rotación"}),n.jsxs("div",{className:"flex gap-1 *:text-brand-blue-1000 *:text-sm",children:[n.jsx("button",{onClick:()=>J(-90),className:"flex-1 p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Rotar -90°",disabled:P,"aria-label":"Rotar imagen 90 grados a la izquierda",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{className:"icon icon-reply-blue"})})}),n.jsx("button",{onClick:()=>J(-45),className:"flex-1 p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Rotar -45°",disabled:P,"aria-label":"Rotar imagen 45 grados a la izquierda",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{children:"-45°"})})}),n.jsx("button",{onClick:()=>J(45),className:"flex-1 p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Rotar +45°",disabled:P,"aria-label":"Rotar imagen 45 grados a la derecha",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{children:"+45°"})})}),n.jsx("button",{onClick:()=>J(90),className:"flex-1 p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Rotar +90°",disabled:P,"aria-label":"Rotar imagen 90 grados a la derecha",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{className:"icon icon-send-arrow-blue"})})})]})]}),n.jsxs("div",{className:"mb-4",children:[n.jsx("p",{className:"text-xs text-gray-600 mb-2",children:"Voltear"}),n.jsxs("div",{className:"flex gap-1",children:[n.jsx("button",{onClick:re,className:"flex-1 p-2 rounded cursor-pointer transition-colors text-sm "+(w.horizontal?"bg-blue-100 border border-blue-300 text-blue-800":"bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200"),title:"Voltear horizontalmente "+(w.horizontal?"(activo)":""),disabled:P,"aria-label":"Voltear imagen horizontalmente","aria-pressed":w.horizontal,children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{className:"icon icon-arrow-left-right-blue border border-brand-blue-1000 rounded"})})}),n.jsx("button",{onClick:ae,className:"flex-1 p-2 cursor-pointer rounded transition-colors text-sm "+(w.vertical?"bg-blue-100 border border-blue-300 text-blue-800":"bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200"),title:"Voltear verticalmente "+(w.vertical?"(activo)":""),disabled:P,"aria-label":"Voltear imagen verticalmente","aria-pressed":w.vertical,children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{className:"icon icon-arrow-up-down-blue border border-brand-blue-1000 rounded"})})})]})]}),n.jsx("button",{onClick:()=>{I.reset(),k({horizontal:!1,vertical:!1})},className:"w-full p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Reiniciar transformaciones",disabled:P,"aria-label":"Reiniciar todas las transformaciones de la imagen",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsxs("span",{children:[n.jsx("span",{className:"icon icon-refresh-blue icon--sm align-[middle!important] "})," ","Reiniciar ajustes"]})})})]})]})})]})]}):null}function Bt({currentPage:t,totalPages:r,onPageChange:a,disabled:o=!1}){if(!r||r<=1)return null;const i=(()=>{const e=[],n=[],a=Math.max(1,t-2),o=Math.min(r,t+2);for(let t=a;t<=o;t++)e.push(t);return a>1&&(n.push(1),a>2&&n.push("...")),n.push(...e),o<r&&(o<r-1&&n.push("..."),n.push(r)),n})();return n.jsxs("div",{className:"flex items-center justify-center space-x-2 py-4",children:[n.jsxs("button",{onClick:()=>{t>1&&a(t-1)},disabled:o||t<=1,className:`\n px-3 py-2 text-sm font-medium rounded-md transition-colors disabled:cursor-default cursor-pointer\n ${o||t<=1?"text-gray-400 bg-gray-100 cursor-not-allowed":"text-gray-700 bg-white border border-gray-300 hover:bg-gray-50 focus:ring-2 focus:ring-blue-500"}\n `,children:[n.jsx("span",{className:"icon icon-arrow-left-white icon--sm"})," Anterior"]}),n.jsx("div",{className:"flex space-x-1",children:i.map((r,i)=>n.jsx(e.Fragment,{children:"..."===r?n.jsx("span",{className:"px-3 py-2 text-sm text-gray-500",children:"..."}):n.jsx("button",{onClick:()=>(e=>{e!==t&&a(e)})(r),disabled:o,className:`\n px-3 py-2 text-sm font-medium rounded-md transition-colors disabled:cursor-default cursor-pointer\n ${r===t?"bg-blue-600 text-white border border-blue-600":o?"text-gray-400 bg-gray-100 cursor-not-allowed":"text-gray-700 bg-white border border-gray-300 hover:bg-gray-50 focus:ring-2 focus:ring-blue-500"}\n `,children:r})},`page-${r}-${i}`))}),n.jsxs("button",{onClick:()=>{t<r&&a(t+1)},disabled:o||t>=r,className:`\n px-3 py-2 text-sm font-medium rounded-md transition-colors disabled:cursor-default cursor-pointer\n ${o||t>=r?"text-gray-400 bg-gray-100 cursor-not-allowed":"text-gray-700 bg-white border border-gray-300 hover:bg-gray-50 focus:ring-2 focus:ring-blue-500"}\n `,children:["Siguiente ",n.jsx("span",{className:"icon icon-arrow-right-white icon--sm"})]}),n.jsxs("div",{className:"text-sm text-gray-500 ml-4",children:["Página ",t," de ",r]})]})}function Vt({isOpen:e,onClose:t}){return e?n.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",style:{zIndex:9999},children:n.jsxs("div",{className:"bg-white rounded-lg p-6 max-w-md mx-4 shadow-xl",children:[n.jsxs("div",{className:"flex items-center mb-4",children:[n.jsx("svg",{className:"w-6 h-6 text-red-600 mr-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})}),n.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:"Sesión Expirada"})]}),n.jsxs("div",{className:"mb-6",children:[n.jsx("p",{className:"text-gray-600 mb-2",children:"Su sesión ha expirado por seguridad."}),n.jsx("p",{className:"text-gray-600",children:"Es necesario recargar la página para obtener un nuevo token de acceso."})]}),n.jsx("div",{className:"flex justify-end space-x-3",children:n.jsx("button",{onClick:t,className:"px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-colors",children:"Recargar Página"})})]})}):null}function qt(){const[t,n]=e.useState(!1),[r,a]=e.useState(null);return{deleteImg:async e=>{if(!e)return a("ID de imagen no proporcionado"),!1;n(!0),a(null);try{const t=await async function(e){try{return await P({endpoint:`/assets/${e}`,method:"DELETE",basePath:I,useJWT:!0})}catch(r){throw A(r)}}(e);return!1!==t.success}catch(t){return a(t.message),!1}finally{n(!1)}},loading:t,error:r,reset:()=>{a(null)}}}const Qt=new Map;function Kt({apiKey:t,prod:r=!1,url:a=!0,features:o=["gallery","upload","cropper"],modeUI:i="full",ui:l={showActions:["select","download","copy","delete","crop","variants"],hideActions:[],theme:"light",language:"es",compactMode:!1,showTabs:!0},callbacks:s={},instanceId:c=null,itemsPerPage:u=10}){sessionStorage.removeItem("limbo_stock_selectedService"),sessionStorage.removeItem("limbo_stock_dynamicForm"),sessionStorage.removeItem("limbo_stock_stockImages"),sessionStorage.removeItem("limbo_stock_currentPage"),sessionStorage.removeItem("limbo_stock_paginationInfo"),sessionStorage.removeItem("limbo_portals_searchName"),sessionStorage.removeItem("limbo_portals_limit"),sessionStorage.removeItem("limbo_portals_currentPage"),sessionStorage.removeItem("limbo_portals_images"),sessionStorage.removeItem("limbo_portals_portalResults"),sessionStorage.removeItem("limbo_portals_paginationInfo");const d=(()=>{switch(i){case"gallery-only":return["gallery"];case"upload-only":return["upload"];case"crop-only":return["cropper"];case"ia-only":return["ia"];default:return o}})(),[f,p]=e.useState(d.includes("gallery")?"gallery":d.includes("upload")?"upload":d.includes("cropper")?"cropper":d.includes("ia")?"ia":d[0]||"gallery"),[m,h]=e.useState(null),[g,b]=e.useState(1),{isTokenExpired:y,handleTokenExpiredClose:v}=function(){const[t,n]=e.useState(!1),r=e.useCallback(e=>{if(401===e?.response?.status){const t=e.response.data;if("token_expired"===t?.error||t?.message?.includes("expired")||t?.message?.includes("caducado")||t?.error?.includes("expired"))return n(!0),!0}return!1},[]),a=e.useCallback(()=>{n(!1),alert("El token ha expirado. La página se recargará para obtener un nuevo token."),window.location.reload()},[]);return e.useEffect(()=>{const e=e=>{e.detail&&e.detail.error&&r(e.detail.error)};return window.addEventListener("tokenExpiredError",e),()=>{window.removeEventListener("tokenExpiredError",e)}},[r]),{isTokenExpired:t,checkTokenExpiration:r,handleTokenExpiredClose:a}}(),{upload:w,loading:k,error:x,uploadedImage:S,reset:E}=function(){const[t,n]=e.useState(!1),[r,a]=e.useState(null),[o,i]=e.useState(null);return{upload:async(e,t=null)=>{if(!e)return a("No se ha proporcionado ningún archivo"),null;n(!0),a(null),i(null);try{const n=await M(e,t,!1),r=n.result||n;return i(r),r}catch(r){return a(r.message),null}finally{n(!1)}},loading:t,error:r,uploadedImage:o,reset:()=>{a(null),i(null)}}}(),{deleteImg:T,loading:_,error:N,reset:P}=qt(),{images:z,loading:R,error:j,pagination:A,invalidateCache:I,setImages:D}=function(t,n=!1,r={}){const[a,o]=e.useState([]),[i,l]=e.useState(!0),[s,c]=e.useState(null),[u,d]=e.useState(null),[f,p]=e.useState(0),m=e.useMemo(()=>JSON.stringify(r),[r]);return e.useEffect(()=>{const e=`${m}`,t=Qt.get(e),n=Date.now();if(t&&n-t.timestamp<6e5)return o(t.data),d(t.pagination||null),void l(!1);let a=!0;return(async()=>{if(f>=3)a&&(c("Error de autenticación: Verifica tus credenciales API"),l(!1));else try{const t=await L(r);if(!a)return;const i=t.result||[],l=t.pagination||null;o(i),d(l),c(null),p(0),Qt.set(e,{data:i,pagination:l,timestamp:n})}catch(t){a&&(c(t.message),p(e=>e+1))}finally{a&&l(!1)}})(),()=>{a=!1}},[t,n,m,f,r]),{images:a,loading:i,error:s,pagination:u,setImages:o,invalidateCache:()=>{Qt.delete(`${m}`)}}}(t,r,{limit:u,page:g}),{refreshVariants:O}=$(),F=e=>!l.hideActions?.includes(e)&&(!!l.showActions?.includes(e)||!(l.showActions?.length>0)),H=[{id:"gallery",label:"Galería",feature:"gallery"},{id:"upload",label:"Subir nueva",feature:"upload"},{id:"cropper",label:"Recortador",hideNonActive:!0,feature:"cropper"}].filter(e=>d.includes(e.feature)),B=async e=>{if(!confirm("¿Estás seguro de que quieres eliminar esta imagen?"))return;await T(e)&&(I(),b(1),D(t=>t.filter(t=>t.id!==e)),m&&m.id===e&&(h(null),p("gallery")))};return n.jsxs("div",{className:"limbo-card-parent max-w-7xl mx-auto my-8 p-6 shadow-xl w-full",children:[l.showTabs&&n.jsx(C,{tabs:H,active:f,onChange:e=>{p(e),"upload"!==e&&E(),"gallery"!==e&&P()}}),j&&n.jsxs("div",{className:"alert alert-danger",children:["Error al cargar imágenes: ",j]}),N&&n.jsxs("div",{className:"alert alert-danger",children:["Error al eliminar imagen: ",N]}),"gallery"===f&&n.jsxs(n.Fragment,{children:[_&&n.jsx(U,{text:"Eliminando imagen..."}),n.jsx(W,{apiKey:t,prod:r,onSelect:e=>{s.onSelect&&s.onSelect({assetId:e.id,url:e.url,fileName:e.filename,mime:e.mime_type,width:e.width,height:e.height,instanceId:c})},onCrop:e=>{h(e),d.includes("cropper")&&p("cropper")},onDelete:F("delete")?B:null,deletingId:_,images:z,loading:R,error:j,allowedActions:{select:F("select"),download:F("download"),copy:F("copy"),delete:F("delete"),crop:F("crop")}}),A&&!R&&n.jsx(Bt,{currentPage:A.page||g,totalPages:A.pages||1,onPageChange:e=>{b(e)},disabled:R||_})]}),"upload"===f&&n.jsxs("div",{children:[k&&n.jsx(U,{text:"Subiendo imagen..."}),x&&n.jsxs("div",{className:"alert alert-danger",children:["Error al subir imagen: ",x]}),S&&n.jsxs("div",{className:"alert alert-success",children:["✅ Imagen subida correctamente: ",S.filename]}),n.jsx(le,{onUpload:async e=>{const t=await w(e);t&&(I(),b(1),D(e=>[t,...e]),p("gallery"),s.onUpload&&s.onUpload({assetId:t.id,url:t.url,fileName:t.filename,mime:t.mime_type,width:t.width,height:t.height,instanceId:c}))},disabled:k,apiKey:t,prod:r})]}),"cropper"===f&&n.jsx(Wt,{image:m,onSave:()=>{I(),h(null),p("gallery")},onCancel:()=>{h(null),p("gallery")},onDelete:()=>B(m?.id),deleting:_,onVariantCreated:(e,t)=>{O(e)}}),n.jsx(Vt,{isOpen:y,onClose:v})]})}class Yt{constructor(e,t,n,r){this.id=e,this.config=t,this.eventManager=n,this.modalManager=r,this.root=null,this.container=null,this.modal=null,this.mounted=!1,this.destroyed=!1,this.button=null,this._validateConfig(),this._initialize()}_initialize(){"embed"===this.config.mode?this.mount():"button"===this.config.mode&&this._createButton(),this._emitDOMEvent("ready",{instance:this,config:this.config,timestamp:Date.now()})}mount(){if(this.mounted||this.destroyed)return this;if(this.container=this._resolveContainer(),!this.container)return this.eventManager.emit("error",{instanceId:this.id,error:"Container not found"}),this;try{this.root=k.createRoot(this.container),this.root.render(this._renderApp()),this.mounted=!0,this.eventManager.emit("ready",{instance:this})}catch(e){this.eventManager.emit("error",{instanceId:this.id,error:e.message})}return this}unmount(){return this.mounted?(this.root&&(this.root.unmount(),this.root=null),"button"===this.config.mode&&this.button,this.mounted=!1,this):this}open(){return"modal"!==this.config.mode&&"button"!==this.config.mode||(this.modal||this._createModal(),this.modal&&!this.modal.isOpened()&&(this.modal.open(),this.eventManager.emit("modal:open",{instance:this}))),this}close(){return this.modal&&this.modal.isOpened()&&(this.modal.close(),this.eventManager.emit("modal:close",{instance:this})),this}updateConfig(e){return this.config={...this.config,...e},this.mounted&&this.root.render(this._renderApp()),this.eventManager.emit("config:updated",{instance:this,newConfig:e}),this}destroy(){this.destroyed||(this.unmount(),this.modal&&(this.modal.destroy(),this.modal=null),this.button&&this.button.parentNode&&(this.button.parentNode.removeChild(this.button),this.button=null),this.eventManager.emit("destroy",{instance:this}),this.container=null,this.config=null,this.eventManager=null,this.modalManager=null,this.destroyed=!0)}getId(){return this.id}getMode(){return this.config.mode}isMounted(){return this.mounted}isDestroyed(){return this.destroyed}getContainer(){return this.container}getConfig(){return{...this.config}}isContainerInDOM(){return this.container&&document.contains(this.container)}_createModal(){if(this.modalManager&&"modal"===this.config.mode&&(this.modal=this.modalManager.createModal({title:this.config.title||"Limbo Image Manager",size:this.config.modalSize||"large",onOpen:()=>{const e={instance:this,mode:"modal",timestamp:Date.now()};this._emitDOMEvent("modal:open",e),this.config.callbacks?.onOpen&&this.config.callbacks.onOpen(e)},onClose:()=>{const e={instance:this,mode:"modal",timestamp:Date.now()};this._emitDOMEvent("modal:close",e),this.config.callbacks?.onClose&&this.config.callbacks.onClose(e),this.config.autoDestroy&&this.destroy()},onDestroy:()=>{this.modal=null}}),this.modal)){const e=this.modal.getBodyContainer();this.root=k.createRoot(e),this.root.render(this._renderApp()),this.mounted=!0}}_createButton(){if(this.container||(this.container=this._resolveContainer()),!this.container)return void this.eventManager.emit("error",{instanceId:this.id,error:"Container not found for button mode"});const e=document.createElement("button");e.type="button",e.className="limbo-trigger-button",e.textContent=this.config.buttonText||"Abrir Limbo",e.style.cssText="\n background: #001978;\n color: white;\n border: none;\n padding: 10px 20px;\n border-radius: 6px;\n cursor: pointer;\n font-family: inherit;\n font-size: 14px;\n font-weight: 500;\n transition: all 0.2s ease;\n ",e.addEventListener("mouseenter",()=>{e.style.backgroundColor="#334793",e.style.transform="translateY(-1px)"}),e.addEventListener("mouseleave",()=>{e.style.backgroundColor="#001978",e.style.transform="translateY(0)"}),e.addEventListener("click",()=>{this.open()}),this.container.appendChild(e),this.button=e,this.mounted=!0}_resolveContainer(){const{container:e}=this.config;return e?"string"==typeof e?document.querySelector(e):e instanceof Element?e:null:null}_renderApp(){return e.createElement("div",{id:`limbo-component-container-${this.id}`,className:"limbo-instance limbo-component-container-wrapper py-3","data-limbo-id":this.id,"data-limbo-mode":this.config.mode},e.createElement(Kt,{apiKey:this.config.apiKey,prod:this.config.prod||!1,url:this.config.url,features:this.config.features,modeUI:this.config.modeUI||"full",ui:this.config.ui,callbacks:this._createCallbacks(),instanceId:this.id}))}_createCallbacks(){return{onSelect:e=>{const t=this._createStandardPayload(e,"select");this.config.callbacks?.onSelect&&this.config.callbacks.onSelect(t),this._emitDOMEvent("select",t)},onUpload:e=>{const t=this._createStandardPayload(e,"upload");this.config.callbacks?.onUpload&&this.config.callbacks.onUpload(t),this._emitDOMEvent("upload",t)},onError:e=>{const t={instance:this,error:{message:e.message||"Unknown error",code:e.code||"UNKNOWN",timestamp:Date.now()}};this.config.callbacks?.onError&&this.config.callbacks.onError(t.error),this._emitDOMEvent("error",t)},onClose:()=>{const e={instance:this,timestamp:Date.now()};this.config.callbacks?.onClose&&this.config.callbacks.onClose(),this._emitDOMEvent("close",e)}}}_createStandardPayload(e,t){const n={instance:this,eventType:t,timestamp:Date.now(),instanceId:this.id,mode:this.config.mode,features:this.config.features};return e&&(e.assetId||e.id?(n.assetId=e.assetId||e.id,n.variants=e.variants||[],n.master=e.master||{urlSigned:e.url||e.urlSigned,width:e.width,height:e.height,mime:e.mime||e.mimeType},n.fileName=e.fileName||e.name,n.mime=e.mime||e.mimeType,n.width=e.width,n.height=e.height,n.fileBlob=e.fileBlob||e.file,n.metadata={uploadedBy:e.uploadedBy,uploadedAt:e.uploadedAt||e.timestamp,size:e.size,...e.metadata}):Object.assign(n,e)),n}_emitDOMEvent(e,t){const n=new CustomEvent(`limbo:${e}`,{detail:t,bubbles:!0,cancelable:!0});(this.getContainer()||document).dispatchEvent(n),this.eventManager.emit(e,t)}_validateConfig(){if(!(this.config.auth?.apiKey||this.config.auth?.publicKey||this.config.apiKey||this.config.publicKey))throw new Error(`LimboInstance ${this.id}: Authentication is required. Provide either auth.publicKey (recommended) or auth.apiKey (for server-side only)`);if((this.config.auth?.apiKey||this.config.apiKey)&&"undefined"!=typeof window&&console.warn("⚠️ SECURITY WARNING: API Key detected in client-side code.\nThis is a security risk! Use publicKey instead for client applications.\nAPI Keys should only be used in server-side environments."),!["embed","modal","button"].includes(this.config.mode))throw new Error(`LimboInstance ${this.id}: invalid mode ${this.config.mode}`);if("embed"===this.config.mode&&!this.config.container)throw new Error(`LimboInstance ${this.id}: container is required for embed mode`);if("button"===this.config.mode&&!this.config.container)throw new Error(`LimboInstance ${this.id}: container is required for button mode`)}}class Gt{constructor(){this.instances=new Map,this.counter=0}create(e,t,n){const r="limbo-"+ ++this.counter,a=new Yt(r,e,t,n);return this.instances.set(r,a),a}get(e){return this.instances.get(e)}getAll(){return Array.from(this.instances.values())}getActive(){return this.getAll().filter(e=>e.isMounted())}destroy(e){const t=this.instances.get(e);return!!t&&(t.destroy(),this.instances.delete(e),!0)}destroyAll(){this.instances.forEach(e=>e.destroy()),this.instances.clear()}cleanupOrphans(){const e=[];return this.instances.forEach((t,n)=>{t.isContainerInDOM()||e.push(n)}),e.forEach(e=>this.destroy(e)),e.length}getStats(){const e=this.getAll();return{total:e.length,active:e.filter(e=>e.isMounted()).length,embed:e.filter(e=>"embed"===e.getMode()).length,modal:e.filter(e=>"modal"===e.getMode()).length,button:e.filter(e=>"button"===e.getMode()).length}}}class Xt{constructor(){this.config=null,this.instances=new Map,this.observer=null,this.initialized=!1}configure(e,t,n){return this.config={dataset:e.dataset||"data-limbo-input-file",return:e.return||"url",mode:e.mode||"modal",features:e.features||["gallery","upload","cropper"],crop:e.crop||"free",quality:e.quality||.9,format:e.format||"webp",modeUI:e.modeUI||"full",modalSize:e.modalSize||"medium",theme:e.theme||"light",compact:e.compact||!1,maxSize:e.maxSize||"10MB",formats:e.formats||["jpg","jpeg","png","webp"],minWidth:e.minWidth||null,minHeight:e.minHeight||null,maxWidth:e.maxWidth||null,maxHeight:e.maxHeight||null,buttonText:e.buttonText||"Seleccionar Imagen",buttonClass:e.buttonClass||"limbo-auto-button",buttonStyle:e.buttonStyle||"primary",showPreview:!1!==e.showPreview,allowMultiple:e.allowMultiple||!1,autoAssign:!1!==e.autoAssign,...e},this.configManager=t,this.eventManager=n,this._initialize(),this}cleanup(){this.observer&&(this.observer.disconnect(),this.observer=null),this.instances.forEach(({input:e,button:t})=>{this._restoreInput(e,t)}),this.instances.clear(),this.config=null,this.initialized=!1}getStats(){return{configured:null!==this.config,totalInputs:this.instances.size,dataset:this.config?.dataset,returnType:this.config?.return}}_initialize(){this.initialized||(this._scanExistingInputs(),this._setupObserver(),this.initialized=!0,this.eventManager.emit("autoInputs:initialized",{config:this.config,inputsFound:this.instances.size}))}_scanExistingInputs(){const e=`input[${this.config.dataset}]`;document.querySelectorAll(e).forEach(e=>this._processInput(e))}_processInput(e){const t=this._getInputId(e);if(this.instances.has(t))return;if(!this._validateInput(e))return;const n=this._createButton(e);this._hideInput(e),this._insertButton(e,n),this.instances.set(t,{input:e,button:n,config:this._getInputConfig(e)}),this.eventManager.emit("autoInputs:processed",{inputId:t,input:e,button:n})}_createButton(e){const t=document.createElement("button"),n=this._getInputConfig(e);t.type="button",t.textContent=n.buttonText||this.config.buttonText;const r=[this.config.buttonClass];return n.buttonClass&&n.buttonClass!==this.config.buttonClass&&r.push(n.buttonClass),t.className=r.join(" "),this._styleButton(t,n),this._attachButtonEvents(t,e),t.setAttribute("aria-label",n.buttonText||this.config.buttonText),t.setAttribute("data-limbo-trigger","true"),t.setAttribute("data-limbo-input-id",n.inputId),n.disabled&&(t.disabled=!0),t}_styleButton(e,t){const n=t.buttonStyle||this.config.buttonStyle,r=t.theme||this.config.theme,a=t.compact||this.config.compact,o={border:"none",borderRadius:"8px",cursor:"pointer",fontFamily:"inherit",fontSize:a?"12px":"14px",fontWeight:"500",transition:"all 0.2s ease",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:a?"6px 12px":"8px 16px",textDecoration:"none",userSelect:"none"},i={primary:{backgroundColor:"dark"===r?"#3b82f6":"#001978",color:"white",hoverBg:"dark"===r?"#2563eb":"#334793"},secondary:{backgroundColor:"dark"===r?"#374151":"#f3f4f6",color:"dark"===r?"#f9fafb":"#374151",border:"1px solid "+("dark"===r?"#4b5563":"#d1d5db"),hoverBg:"dark"===r?"#4b5563":"#e5e7eb"},outline:{backgroundColor:"transparent",color:"dark"===r?"#3b82f6":"#001978",border:"2px solid "+("dark"===r?"#3b82f6":"#001978"),hoverBg:"dark"===r?"#3b82f6":"#001978",hoverColor:"white"},ghost:{backgroundColor:"transparent",color:"dark"===r?"#f9fafb":"#374151",hoverBg:"dark"===r?"#374151":"#f3f4f6"}},l=i[n]||i.primary;Object.assign(e.style,{...o,...l});const s=l.backgroundColor,c=l.color;e.addEventListener("mouseenter",()=>{e.style.backgroundColor=l.hoverBg||l.backgroundColor,l.hoverColor&&(e.style.color=l.hoverColor),e.style.transform="translateY(-1px)",e.style.boxShadow="0 4px 12px rgba(0, 0, 0, 0.15)"}),e.addEventListener("mouseleave",()=>{e.style.backgroundColor=s,e.style.color=c,e.style.transform="translateY(0)",e.style.boxShadow="none"}),t.disabled&&(e.style.opacity="0.5",e.style.cursor="not-allowed")}_attachButtonEvents(e,t){e.addEventListener("click",e=>{e.preventDefault(),this._handleButtonClick(t)})}_handleButtonClick(e){const t=this._getInputConfig(e),n=this._createModalConfig(t);this.eventManager.emit("autoInputs:modalRequest",{input:e,config:n,callback:async t=>await this._handleImageSelection(e,t)})}async _handleImageSelection(e,t){const n=this._getInputConfig(e);try{const r=await this._formatImageData(t,n);!1!==n.autoAssign&&(e.value=r),e.dispatchEvent(new Event("change",{bubbles:!0})),e.dispatchEvent(new CustomEvent("limbo:resultReady",{detail:{imageData:t,input:e,value:r,config:n,assignment:{format:n.return,smartAssign:!1!==n.smartAssign,autoAssign:!1!==n.autoAssign},legacy:{imageData:t,formatted:this._createFormattedResult(t,n)}},bubbles:!0})),e.dispatchEvent(new CustomEvent("limbo:imageSelected",{detail:{imageData:t,input:e,value:r,config:n,formatted:this._createFormattedResult(t,n)},bubbles:!0})),this.eventManager.emit("autoInputs:imageSelected",{input:e,imageData:t,value:r,config:n})}catch(r){console.error("Error handling image selection:",r),e.dispatchEvent(new CustomEvent("limbo:error",{detail:{error:r.message,input:e,imageData:t,config:n},bubbles:!0})),this._handleImageSelectionLegacy(e,t)}}_handleImageSelectionLegacy(e,t){const n=this._getInputConfig(e),r=this._formatImageData(t,n);!1!==n.autoAssign&&(e.value=r),e.dispatchEvent(new Event("change",{bubbles:!0})),e.dispatchEvent(new CustomEvent("limbo:imageSelected",{detail:{imageData:t,input:e,value:r,config:n,formatted:this._createFormattedResult(t,n)},bubbles:!0})),this.eventManager.emit("autoInputs:imageSelected",{input:e,imageData:t,value:r,config:n})}_createFormattedResult(e,t){return{url:e.url||e.path||"",base64:e.base64||e.dataUrl||"",assetId:e.assetId||e.id||"",fileName:e.fileName||e.filename||"",object:{url:e.url||e.path,assetId:e.assetId||e.id,fileName:e.fileName||e.filename,mime:e.mime||e.mime_type,width:e.width,height:e.height,size:e.size||e.file_size,created:e.created_at||e.created,metadata:e.metadata||{}},json:JSON.stringify({url:e.url||e.path,assetId:e.assetId||e.id,fileName:e.fileName||e.filename,mime:e.mime||e.mime_type,width:e.width,height:e.height,size:e.size||e.file_size}),metadata:{width:e.width,height:e.height,size:e.size||e.file_size,format:e.format||e.mime_type,quality:t.quality||this.config.quality,aspectRatio:e.width&&e.height?e.width/e.height:null}}}async _formatImageData(e,t=null){switch((t||{}).return||this.config.return||"url"){case"url":return e.url||e.path||"";case"base64":return e.base64||e.dataUrl||"";case"assetId":return e.assetId||e.id||"";case"fileName":return e.fileName||e.filename||"";case"object":return JSON.stringify({url:e.url||e.path,assetId:e.assetId||e.id,fileName:e.fileName||e.filename,mime:e.mime||e.mime_type,width:e.width,height:e.height,size:e.size||e.file_size,created:e.created_at||e.created});default:return JSON.stringify({url:e.url||e.path,assetId:e.assetId||e.id,fileName:e.fileName||e.filename,mime:e.mime||e.mime_type,width:e.width,height:e.height,size:e.size||e.file_size})}}_createModalConfig(e){return{mode:e.mode||this.config.mode||"modal",modeUI:e.modeUI||this.config.modeUI||"full",features:e.features||this.config.features,modalSize:e.modalSize||this.config.modalSize||"medium",title:e.description||this.config.title||"Seleccionar imagen",cropper:this._getCropperConfig(e),ui:{showActions:this._getUIActions(e),hideActions:[],showTabs:this._shouldShowTabs(e),theme:e.theme||this.config.theme,compact:e.compact||this.config.compact,showPreview:void 0!==e.showPreview?e.showPreview:this.config.showPreview},validation:{maxSize:e.maxSize||this.config.maxSize,formats:e.formats||this.config.formats,minWidth:e.minWidth||this.config.minWidth,minHeight:e.minHeight||this.config.minHeight,maxWidth:e.maxWidth||this.config.maxWidth,maxHeight:e.maxHeight||this.config.maxHeight,required:e.required||!1},behavior:{allowMultiple:e.allowMultiple||this.config.allowMultiple,closeOnSelect:!0,autoAssign:void 0!==e.autoAssign?e.autoAssign:this.config.autoAssign},returnConfig:{format:e.return||this.config.return,quality:e.quality||this.config.quality,outputFormat:e.format||this.config.format},inputMeta:{inputId:e.inputId,inputName:e.inputName,inputType:e.inputType,placeholder:e.placeholder}}}_getCropperConfig(e){const t=e.crop||this.config.crop;if(!t||"none"===t||"false"===t)return null;if("free"===t)return{aspectRatio:null,quality:e.quality||this.config.quality,format:e.format||this.config.format};const n={"1:1":1,"16:9":16/9,"4:3":4/3,"3:2":1.5,"2:1":2,square:1,landscape:16/9,portrait:3/4};if(n[t])return{aspectRatio:n[t],quality:e.quality||this.config.quality,format:e.format||this.config.format,minCropBoxWidth:e.minWidth||this.config.minWidth,minCropBoxHeight:e.minHeight||this.config.minHeight};if("string"==typeof t&&t.includes(":")){const[n,r]=t.split(":").map(Number);if(!isNaN(n)&&!isNaN(r)&&0!==r)return{aspectRatio:n/r,quality:e.quality||this.config.quality,format:e.format||this.config.format}}const r=parseFloat(t);return!isNaN(r)&&r>0?{aspectRatio:r,quality:e.quality||this.config.quality,format:e.format||this.config.format}:"object"==typeof t?{quality:e.quality||this.config.quality,format:e.format||this.config.format,...t}:null}_shouldShowTabs(e){const t=e.modeUI||this.config.modeUI||"full",n=e.features||this.config.features;return!["gallery-only","upload-only","crop-only","ia-only"].includes(t)&&(n&&n.length>1)}_getUIActions(e){const t=e.modeUI||this.config.modeUI||"full",n=e.features||this.config.features;let r=[];switch(t){case"gallery-only":case"upload-only":r=["select"];break;case"crop-only":r=["select","crop"];break;default:r=["select"],n.includes("cropper")&&r.push("crop"),n.includes("gallery")&&(r.push("download","copy"),this.config.allowDelete&&r.push("delete"))}return r}_getInputId(e){return e.id||e.name||`limbo-auto-${Date.now()}-${Math.random()}`}_validateInput(e){return e instanceof HTMLInputElement}_getInputConfig(e){const t=e=>e?e.split(",").map(e=>e.trim()):null,n=e=>{if(!e)return null;const t=e.match(/^(\d+(?:\.\d+)?)(MB|KB|B)?$/i);if(!t)return null;const n=parseFloat(t[1]);switch((t[2]||"B").toUpperCase()){case"MB":return 1024*n*1024;case"KB":return 1024*n;default:return n}},r=(e,t=!1)=>null===e?t:"true"===e||"1"===e||""===e,a=e=>e?parseFloat(e):null;return{return:e.getAttribute("data-limbo-return")||this.config.return,mode:e.getAttribute("data-limbo-mode")||this.config.mode,features:t(e.getAttribute("data-limbo-features"))||this.config.features,crop:e.getAttribute("data-limbo-crop")||this.config.crop,quality:a(e.getAttribute("data-limbo-quality"))||this.config.quality,format:e.getAttribute("data-limbo-format")||this.config.format,modeUI:e.getAttribute("data-limbo-mode-ui")||this.config.modeUI,modalSize:e.getAttribute("data-limbo-modal-size")||this.config.modalSize,theme:e.getAttribute("data-limbo-theme")||this.config.theme,compact:r(e.getAttribute("data-limbo-compact"),this.config.compact),maxSize:n(e.getAttribute("data-limbo-max-size"))||n(this.config.maxSize),formats:t(e.getAttribute("data-limbo-formats"))||this.config.formats,minWidth:a(e.getAttribute("data-limbo-min-width"))||this.config.minWidth,minHeight:a(e.getAttribute("data-limbo-min-height"))||this.config.minHeight,maxWidth:a(e.getAttribute("data-limbo-max-width"))||this.config.maxWidth,maxHeight:a(e.getAttribute("data-limbo-max-height"))||this.config.maxHeight,buttonText:e.getAttribute("data-limbo-button-text")||this.config.buttonText,buttonStyle:e.getAttribute("data-limbo-button-style")||this.config.buttonStyle,buttonClass:e.getAttribute("data-limbo-button-class")||this.config.buttonClass,showPreview:r(e.getAttribute("data-limbo-show-preview"),this.config.showPreview),allowMultiple:r(e.getAttribute("data-limbo-allow-multiple"),this.config.allowMultiple),autoAssign:r(e.getAttribute("data-limbo-auto-assign"),this.config.autoAssign),placeholder:e.getAttribute("data-limbo-placeholder"),description:e.getAttribute("data-limbo-description"),required:r(e.getAttribute("data-limbo-required"),!1),disabled:r(e.getAttribute("data-limbo-disabled"),!1),inputId:e.id||e.name||this._generateInputId(e),inputName:e.name,inputType:e.type}}_generateInputId(){return`limbo-auto-input-${Date.now()}-${Math.random().toString(36).substr(2,9)}`}_hideInput(e){e.style.display="none"}_insertButton(e,t){e.parentNode.insertBefore(t,e.nextSibling)}_restoreInput(e,t){e.style.display="",t&&t.parentNode&&t.parentNode.removeChild(t)}_setupObserver(){this.observer=new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&this._scanNodeForInputs(e)})})}),this.observer.observe(document.body,{childList:!0,subtree:!0})}_scanNodeForInputs(e){const t=`input[${this.config.dataset}]`;e.matches&&e.matches(t)&&this._processInput(e);const n=e.querySelectorAll&&e.querySelectorAll(t);n&&n.forEach(e=>this._processInput(e))}}class Zt{constructor(){this.listeners=new Map}emit(e,t={}){this._emitDOMEvent(e,t),this._executeListeners(e,t)}on(e,t){return this.listeners.has(e)||this.listeners.set(e,[]),this.listeners.get(e).push(t),()=>this.off(e,t)}off(e,t){const n=this.listeners.get(e);if(n){const e=n.indexOf(t);e>-1&&n.splice(e,1)}}cleanup(){this.listeners.clear()}_emitDOMEvent(e,t){const n=new CustomEvent(`limbo:${e}`,{detail:{...t,timestamp:Date.now()},bubbles:!0,cancelable:!0});(t.instance?.getContainer()||document).dispatchEvent(n)}_executeListeners(e,t){const n=this.listeners.get(e);n&&n.forEach(n=>{try{n(t)}catch(r){console.error(`Error executing listener for ${e}:`,r)}})}getStats(){const e={};return this.listeners.forEach((t,n)=>{e[n]=t.length}),e}}class Jt{constructor(){this.activeModals=new Set,this.zIndexBase=1e4,this.focusableSelectors=["button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"]):not([disabled])',"a[href]"].join(", "),this.initialized=!1,this._initGlobalListeners()}createModal(e){const t=new en(this._generateModalId(),e,this);return this.activeModals.add(t),t}closeModal(e){const t=this._findModal(e);return!!t&&(t.close(),!0)}closeAllModals(){this.activeModals.forEach(e=>e.close()),this.activeModals.clear()}getActiveModal(){return Array.from(this.activeModals).pop()||null}getStats(){return{active:this.activeModals.size,nextZIndex:this._getNextZIndex()}}_generateModalId(){return`limbo-modal-${Date.now()}-${Math.random().toString(36).substr(2,9)}`}_findModal(e){return Array.from(this.activeModals).find(t=>t.getId()===e)}_getNextZIndex(){return this.zIndexBase+10*this.activeModals.size}_removeModal(e){this.activeModals.delete(e)}_handleGlobalKeydown(e){const t=this.getActiveModal();t&&("Escape"===e.key&&(e.preventDefault(),t.close()),"Tab"===e.key&&this._handleTabTrap(e,t))}_handleTabTrap(e,t){const n=t.getFocusableElements();if(0===n.length)return;const r=n[0],a=n[n.length-1];e.shiftKey?document.activeElement===r&&(e.preventDefault(),a.focus()):document.activeElement===a&&(e.preventDefault(),r.focus())}_initGlobalListeners(){this.initialized||(this.globalKeydownHandler=e=>this._handleGlobalKeydown(e),document.addEventListener("keydown",this.globalKeydownHandler),this.initialized=!0)}destroy(){this.closeAllModals(),this.initialized&&this.globalKeydownHandler&&(document.removeEventListener("keydown",this.globalKeydownHandler),this.initialized=!1,this.globalKeydownHandler=null)}}class en{constructor(e,t,n){this.id=e,this.config={title:t.title||"Limbo",content:t.content||null,showCloseButton:!1!==t.showCloseButton,backdrop:!1!==t.backdrop,keyboard:!1!==t.keyboard,focus:!1!==t.focus,animation:!1!==t.animation,size:t.size||"large",onOpen:t.onOpen||null,onClose:t.onClose||null,onDestroy:t.onDestroy||null,...t},this.manager=n,this.element=null,this.backdrop=null,this.isOpen=!1,this.previousFocus=null,this._create()}_create(){this._createBackdrop(),this._createModal(),this._attachEvents()}_createBackdrop(){this.config.backdrop&&(this.backdrop=document.createElement("div"),this.backdrop.className="limbo-modal-backdrop",this.backdrop.style.cssText=`\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.5);\n z-index: ${this.manager._getNextZIndex()};\n opacity: 0;\n transition: opacity 0.3s ease;\n `,this.backdrop.addEventListener("click",e=>{e.target===this.backdrop&&this.close()}))}_createModal(){this.element=document.createElement("div"),this.element.className=`limbo-modal limbo-modal--${this.config.size}`,this.element.id=this.id,this.element.role="dialog",this.element.setAttribute("aria-modal","true"),this.element.setAttribute("aria-labelledby",`${this.id}-title`),this.element.tabIndex=-1;const e=window.innerWidth<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),t={small:e?"width: 100%; height: 100%;":"max-width: 400px;",medium:e?"width: 100%; height: 100%;":"max-width: 600px;",large:e?"width: 100%; height: 100%;":"max-width: 800px;",xlarge:e?"width: 100%; height: 100%;":"max-width: 1200px;"},n=e?`\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n transform: translateY(100%);\n width: 100%;\n height: 100%;\n max-width: none;\n max-height: none;\n border-radius: 0;\n background: white;\n z-index: ${this.manager._getNextZIndex()+1};\n opacity: 1;\n transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n overflow: hidden;\n display: flex;\n flex-direction: column;\n padding-top: env(safe-area-inset-top);\n padding-left: env(safe-area-inset-left);\n padding-right: env(safe-area-inset-right);\n padding-bottom: env(safe-area-inset-bottom);\n `:`\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%) scale(0.8);\n ${t[this.config.size]}\n width: 90%;\n max-height: 90vh;\n background: white;\n border-radius: 16px;\n box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);\n z-index: ${this.manager._getNextZIndex()+1};\n opacity: 0;\n transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n overflow: hidden;\n display: flex;\n flex-direction: column;\n `;this.element.style.cssText=n,this._createHeader(),this._createBody(),document.body.appendChild(this.backdrop),document.body.appendChild(this.element)}_createHeader(){const e=document.createElement("div");e.className="limbo-modal-header";const t=window.innerWidth<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);e.style.cssText=`\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ${t?"16px 20px":"20px 24px"};\n border-bottom: 1px solid #e9ecef;\n background: #f8f9fa;\n ${t?"position: sticky; top: 0; z-index: 10;":""}\n min-height: ${t?"60px":"auto"};\n `;const n=document.createElement("h2");if(n.id=`${this.id}-title`,n.className="limbo-modal-title",n.textContent=this.config.title,n.style.cssText="\n margin: 0;\n font-size: 18px;\n font-weight: 600;\n color: #001978;\n flex: 1;\n margin-right: 16px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n ",e.appendChild(n),this.config.showCloseButton){const n=document.createElement("button");n.type="button",n.className="limbo-modal-close",n.innerHTML="✕",n.setAttribute("aria-label","Cerrar modal"),n.style.cssText=`\n background: none;\n border: none;\n font-size: ${t?"28px":"24px"};\n color: #6c757d;\n cursor: pointer;\n padding: ${t?"8px":"4px"};\n border-radius: 4px;\n transition: all 0.2s ease;\n min-width: ${t?"44px":"auto"};\n min-height: ${t?"44px":"auto"};\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n `,n.addEventListener("mouseenter",()=>{n.style.backgroundColor="#f8f9fa",n.style.color="#001978"}),n.addEventListener("mouseleave",()=>{n.style.backgroundColor="transparent",n.style.color="#6c757d"}),n.addEventListener("click",()=>this.close()),e.appendChild(n)}this.element.appendChild(e)}_createBody(){const e=window.innerWidth<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),t=document.createElement("div");t.className="limbo-modal-body",t.id=`${this.id}-body`,t.style.cssText=`\n flex: 1;\n overflow-y: auto;\n padding: 0;\n -webkit-overflow-scrolling: touch;\n ${e?"height: 100%; overscroll-behavior: contain;":""}\n `,this.config.content&&("string"==typeof this.config.content?t.innerHTML=this.config.content:this.config.content instanceof Element&&t.appendChild(this.config.content)),this.element.appendChild(t)}_attachEvents(){this._originalBodyOverflow=document.body.style.overflow}open(){if(this.isOpen)return this;window.limbo&&window.limbo.core&&window.limbo.core.keyboard?(window.limbo.core.keyboard.pushFocus(document.activeElement),window.limbo.core.keyboard.setActiveModal(this.element)):this.previousFocus=document.activeElement,document.body.style.overflow="hidden";const e=window.innerWidth<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);return requestAnimationFrame(()=>{this.backdrop&&(this.backdrop.style.opacity="1"),this.element.style.opacity="1",this.element.style.transform=e?"translateY(0%)":"translate(-50%, -50%) scale(1)"}),this.isOpen=!0,this.config.focus&&setTimeout(()=>{if(window.limbo&&window.limbo.core&&window.limbo.core.keyboard)window.limbo.core.keyboard.focusFirst(this.element);else{const e=this.getFocusableElements()[0];e&&e.focus()}},300),this.config.onOpen&&this.config.onOpen(this),this}close(){if(!this.isOpen)return this;const e=window.innerWidth<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);return this.backdrop&&(this.backdrop.style.opacity="0"),this.element.style.opacity="0",this.element.style.transform=e?"translateY(100%)":"translate(-50%, -50%) scale(0.8)",setTimeout(()=>{this._cleanup()},300),this.isOpen=!1,window.limbo&&window.limbo.core&&window.limbo.core.keyboard&&(window.limbo.core.keyboard.setActiveModal(null),window.limbo.core.keyboard.releaseFocus()),this.config.onClose&&this.config.onClose(this),this}destroy(){this.close(),this.manager._removeModal(this),this.config.onDestroy&&this.config.onDestroy(this)}getBodyContainer(){return this.element.querySelector(".limbo-modal-body")}getFocusableElements(){return Array.from(this.element.querySelectorAll(this.manager.focusableSelectors))}getId(){return this.id}isOpened(){return this.isOpen}getConfig(){return{...this.config}}_cleanup(){document.body.style.overflow=this._originalBodyOverflow||"",this.previousFocus&&"function"==typeof this.previousFocus.focus&&this.previousFocus.focus(),this.backdrop&&this.backdrop.parentNode&&this.backdrop.parentNode.removeChild(this.backdrop),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}}class tn{constructor(){this.currentTheme=null,this.customThemes=new Map,this.config=this._getDefaultConfig(),this.isInitialized=!1,this.isCompactMode=!1,this.compactBreakpoint=null,this.compactObserver=null,this.mediaQueryObserver=null,this.mutationObserver=null,this.storageListener=null,this.themeCache=new Map,this.appliedStyles=new Set,this.changeCallbacks=new Set}_getDefaultConfig(){return{theme:{auto:!0,storage:!0,inherit:!0,smooth:!0,detectSystem:!0},compact:{enabled:!1,auto:!0,breakpoint:768,forceOnMobile:!0,persistPreference:!0},presets:{light:{name:"light",displayName:"Claro",variables:{"--limbo-primary":"#3b82f6","--limbo-primary-hover":"#2563eb","--limbo-primary-light":"#dbeafe","--limbo-primary-dark":"#1e40af","--limbo-bg-primary":"#ffffff","--limbo-bg-secondary":"#f8fafc","--limbo-bg-tertiary":"#f1f5f9","--limbo-bg-overlay":"rgba(0, 0, 0, 0.5)","--limbo-bg-card":"#ffffff","--limbo-bg-input":"#ffffff","--limbo-text-primary":"#0f172a","--limbo-text-secondary":"#475569","--limbo-text-tertiary":"#64748b","--limbo-text-inverse":"#ffffff","--limbo-text-muted":"#94a3b8","--limbo-border-light":"#e2e8f0","--limbo-border-medium":"#cbd5e1","--limbo-border-strong":"#94a3b8","--limbo-border-focus":"#3b82f6","--limbo-success":"#10b981","--limbo-success-light":"#d1fae5","--limbo-error":"#ef4444","--limbo-error-light":"#fee2e2","--limbo-warning":"#f59e0b","--limbo-warning-light":"#fef3c7","--limbo-info":"#3b82f6","--limbo-info-light":"#dbeafe","--limbo-shadow-sm":"0 1px 2px 0 rgba(0, 0, 0, 0.05)","--limbo-shadow-md":"0 4px 6px -1px rgba(0, 0, 0, 0.1)","--limbo-shadow-lg":"0 10px 15px -3px rgba(0, 0, 0, 0.1)","--limbo-shadow-xl":"0 20px 25px -5px rgba(0, 0, 0, 0.1)","--limbo-radius-sm":"4px","--limbo-radius-md":"6px","--limbo-radius-lg":"8px","--limbo-radius-xl":"12px","--limbo-font-family":"system-ui, -apple-system, sans-serif","--limbo-font-size-xs":"12px","--limbo-font-size-sm":"14px","--limbo-font-size-md":"16px","--limbo-font-size-lg":"18px","--limbo-font-size-xl":"20px","--limbo-z-dropdown":"1000","--limbo-z-sticky":"1020","--limbo-z-fixed":"1030","--limbo-z-modal":"1050","--limbo-z-tooltip":"1070","--limbo-transition-fast":"150ms cubic-bezier(0.4, 0, 0.2, 1)","--limbo-transition-normal":"300ms cubic-bezier(0.4, 0, 0.2, 1)","--limbo-transition-slow":"500ms cubic-bezier(0.4, 0, 0.2, 1)","--limbo-spacing-compact":"0.5rem","--limbo-spacing-compact-sm":"0.25rem","--limbo-spacing-compact-lg":"0.75rem","--limbo-font-size-compact-xs":"11px","--limbo-font-size-compact-sm":"12px","--limbo-font-size-compact-md":"14px","--limbo-font-size-compact-lg":"16px","--limbo-radius-compact":"4px","--limbo-radius-compact-sm":"3px","--limbo-radius-compact-lg":"6px","--limbo-button-height-compact":"32px","--limbo-input-height-compact":"36px","--limbo-modal-padding-compact":"12px","--limbo-card-padding-compact":"12px","--limbo-gap-compact":"8px","--limbo-gap-compact-sm":"4px","--limbo-gap-compact-lg":"12px"}},dark:{name:"dark",displayName:"Oscuro",variables:{"--limbo-primary":"#60a5fa","--limbo-primary-hover":"#3b82f6","--limbo-primary-light":"#1e293b","--limbo-primary-dark":"#93c5fd","--limbo-bg-primary":"#0f172a","--limbo-bg-secondary":"#1e293b","--limbo-bg-tertiary":"#334155","--limbo-bg-overlay":"rgba(0, 0, 0, 0.8)","--limbo-bg-card":"#1e293b","--limbo-bg-input":"#334155","--limbo-text-primary":"#f8fafc","--limbo-text-secondary":"#cbd5e1","--limbo-text-tertiary":"#94a3b8","--limbo-text-inverse":"#0f172a","--limbo-text-muted":"#64748b","--limbo-border-light":"#334155","--limbo-border-medium":"#475569","--limbo-border-strong":"#64748b","--limbo-border-focus":"#60a5fa","--limbo-success":"#34d399","--limbo-success-light":"#064e3b","--limbo-error":"#f87171","--limbo-error-light":"#7f1d1d","--limbo-warning":"#fbbf24","--limbo-warning-light":"#78350f","--limbo-info":"#60a5fa","--limbo-info-light":"#1e3a8a","--limbo-shadow-sm":"0 1px 2px 0 rgba(0, 0, 0, 0.2)","--limbo-shadow-md":"0 4px 6px -1px rgba(0, 0, 0, 0.3)","--limbo-shadow-lg":"0 10px 15px -3px rgba(0, 0, 0, 0.4)","--limbo-shadow-xl":"0 20px 25px -5px rgba(0, 0, 0, 0.5)","--limbo-radius-sm":"4px","--limbo-radius-md":"6px","--limbo-radius-lg":"8px","--limbo-radius-xl":"12px","--limbo-font-family":"system-ui, -apple-system, sans-serif","--limbo-font-size-xs":"12px","--limbo-font-size-sm":"14px","--limbo-font-size-md":"16px","--limbo-font-size-lg":"18px","--limbo-font-size-xl":"20px","--limbo-z-dropdown":"1000","--limbo-z-sticky":"1020","--limbo-z-fixed":"1030","--limbo-z-modal":"1050","--limbo-z-tooltip":"1070","--limbo-transition-fast":"150ms cubic-bezier(0.4, 0, 0.2, 1)","--limbo-transition-normal":"300ms cubic-bezier(0.4, 0, 0.2, 1)","--limbo-transition-slow":"500ms cubic-bezier(0.4, 0, 0.2, 1)","--limbo-spacing-compact":"0.5rem","--limbo-spacing-compact-sm":"0.25rem","--limbo-spacing-compact-lg":"0.75rem","--limbo-font-size-compact-xs":"11px","--limbo-font-size-compact-sm":"12px","--limbo-font-size-compact-md":"14px","--limbo-font-size-compact-lg":"16px","--limbo-radius-compact":"4px","--limbo-radius-compact-sm":"3px","--limbo-radius-compact-lg":"6px","--limbo-button-height-compact":"32px","--limbo-input-height-compact":"36px","--limbo-modal-padding-compact":"12px","--limbo-card-padding-compact":"12px","--limbo-gap-compact":"8px","--limbo-gap-compact-sm":"4px","--limbo-gap-compact-lg":"12px"}},auto:{name:"auto",displayName:"Automático",variables:{}}},inheritance:{portalSelectors:["body","[data-theme]",".theme-light",".theme-dark",".light-theme",".dark-theme"],variablePrefix:"--",fallbackTheme:"light"},transitions:{duration:"300ms",easing:"cubic-bezier(0.4, 0, 0.2, 1)",properties:["background-color","border-color","color","fill","stroke","box-shadow"]}}}initialize(e={}){this.isInitialized?console.warn("ThemeManager already initialized"):(this.config=this._deepMerge(this.config,e),this._loadCustomThemes(),this.config.theme.inherit&&this._inheritPortalTheme(),this._applyInitialTheme(),this._applyInitialCompactMode(),this._setupObservers(),this._injectBaseStyles(),this.isInitialized=!0)}_injectBaseStyles(){if(document.getElementById("limbo-theme-styles"))return;const e=`\n :root {\n /* Variables de transición para cambios de tema */\n color-scheme: light dark;\n }\n \n [data-limbo-theme] {\n transition: ${this.config.transitions.properties.map(e=>`${e} ${this.config.transitions.duration} ${this.config.transitions.easing}`).join(", ")};\n }\n \n /* Clases de utilidad para temas */\n .limbo-theme-light {\n color-scheme: light;\n }\n \n .limbo-theme-dark {\n color-scheme: dark;\n }\n \n .limbo-theme-auto {\n color-scheme: light dark;\n }\n \n /* Estilos para elementos del componente con variables CSS */\n .limbo-component {\n background-color: var(--limbo-bg-primary);\n color: var(--limbo-text-primary);\n border-color: var(--limbo-border-light);\n border-radius: var(--limbo-radius-md);\n font-family: var(--limbo-font-family);\n font-size: var(--limbo-font-size-md);\n transition: var(--limbo-transition-normal);\n }\n \n .limbo-card {\n background-color: var(--limbo-bg-card);\n border: 1px solid var(--limbo-border-light);\n border-radius: var(--limbo-radius-lg);\n box-shadow: var(--limbo-shadow-md);\n color: var(--limbo-text-primary);\n }\n \n .limbo-input {\n background-color: var(--limbo-bg-input);\n border: 1px solid var(--limbo-border-medium);\n border-radius: var(--limbo-radius-md);\n color: var(--limbo-text-primary);\n font-family: var(--limbo-font-family);\n font-size: var(--limbo-font-size-md);\n transition: var(--limbo-transition-fast);\n }\n \n .limbo-input:focus {\n border-color: var(--limbo-border-focus);\n box-shadow: 0 0 0 3px var(--limbo-primary-light);\n outline: none;\n }\n \n .limbo-button {\n background-color: var(--limbo-primary);\n border: 1px solid var(--limbo-primary);\n border-radius: var(--limbo-radius-md);\n color: var(--limbo-text-inverse);\n font-family: var(--limbo-font-family);\n font-size: var(--limbo-font-size-md);\n transition: var(--limbo-transition-fast);\n cursor: pointer;\n }\n \n .limbo-button:hover {\n background-color: var(--limbo-primary-hover);\n border-color: var(--limbo-primary-hover);\n }\n \n .limbo-button.secondary {\n background-color: var(--limbo-bg-secondary);\n border-color: var(--limbo-border-medium);\n color: var(--limbo-text-primary);\n }\n \n .limbo-button.secondary:hover {\n background-color: var(--limbo-bg-tertiary);\n }\n \n /* Estados de feedback con variables */\n .limbo-state-success {\n background-color: var(--limbo-success-light);\n border-color: var(--limbo-success);\n color: var(--limbo-success);\n }\n \n .limbo-state-error {\n background-color: var(--limbo-error-light);\n border-color: var(--limbo-error);\n color: var(--limbo-error);\n }\n \n .limbo-state-warning {\n background-color: var(--limbo-warning-light);\n border-color: var(--limbo-warning);\n color: var(--limbo-warning);\n }\n \n .limbo-state-info {\n background-color: var(--limbo-info-light);\n border-color: var(--limbo-info);\n color: var(--limbo-info);\n }\n \n /* Overlay y modal con variables */\n .limbo-overlay {\n background-color: var(--limbo-bg-overlay);\n backdrop-filter: blur(4px);\n }\n \n .limbo-modal {\n background-color: var(--limbo-bg-card);\n border-radius: var(--limbo-radius-xl);\n box-shadow: var(--limbo-shadow-xl);\n color: var(--limbo-text-primary);\n }\n \n /* Responsive design con variables */\n @media (max-width: 640px) {\n .limbo-component {\n font-size: var(--limbo-font-size-sm);\n }\n }\n \n /* Modo reducido de movimiento */\n @media (prefers-reduced-motion: reduce) {\n [data-limbo-theme] {\n transition: none;\n }\n \n .limbo-component,\n .limbo-input,\n .limbo-button {\n transition: none;\n }\n }\n \n /* Esquemas de color automático */\n @media (prefers-color-scheme: dark) {\n :root:not([data-limbo-theme]) {\n color-scheme: dark;\n }\n }\n \n @media (prefers-color-scheme: light) {\n :root:not([data-limbo-theme]) {\n color-scheme: light;\n }\n }\n \n /* ===================================\n MODO COMPACTO - ESTILOS ESPECÍFICOS \n =================================== */\n \n /* Activación del modo compacto por atributo o clase */\n [data-limbo-compact="true"],\n .limbo-compact-mode {\n /* Componentes base más pequeños */\n --limbo-font-size-md: var(--limbo-font-size-compact-md);\n --limbo-font-size-sm: var(--limbo-font-size-compact-sm);\n --limbo-font-size-lg: var(--limbo-font-size-compact-lg);\n --limbo-spacing: var(--limbo-spacing-compact);\n --limbo-radius-md: var(--limbo-radius-compact);\n --limbo-gap: var(--limbo-gap-compact);\n }\n \n /* Botones compactos */\n [data-limbo-compact="true"] .limbo-button,\n .limbo-compact-mode .limbo-button {\n height: var(--limbo-button-height-compact);\n padding: var(--limbo-spacing-compact-sm) var(--limbo-spacing-compact);\n font-size: var(--limbo-font-size-compact-sm);\n border-radius: var(--limbo-radius-compact);\n min-width: auto;\n }\n \n /* Inputs compactos */\n [data-limbo-compact="true"] .limbo-input,\n .limbo-compact-mode .limbo-input {\n height: var(--limbo-input-height-compact);\n padding: var(--limbo-spacing-compact-sm) var(--limbo-spacing-compact);\n font-size: var(--limbo-font-size-compact-md);\n border-radius: var(--limbo-radius-compact);\n }\n \n /* Cards compactas */\n [data-limbo-compact="true"] .limbo-card,\n .limbo-compact-mode .limbo-card {\n padding: var(--limbo-card-padding-compact);\n border-radius: var(--limbo-radius-compact-lg);\n }\n \n /* Modales compactos */\n [data-limbo-compact="true"] .limbo-modal,\n .limbo-compact-mode .limbo-modal {\n padding: var(--limbo-modal-padding-compact);\n border-radius: var(--limbo-radius-compact-lg);\n max-width: 90vw;\n max-height: 90vh;\n }\n \n /* Tabs compactas */\n [data-limbo-compact="true"] .limbo-tabs,\n .limbo-compact-mode .limbo-tabs {\n gap: var(--limbo-gap-compact-sm);\n }\n \n [data-limbo-compact="true"] .limbo-tab,\n .limbo-compact-mode .limbo-tab {\n padding: var(--limbo-spacing-compact-sm) var(--limbo-spacing-compact);\n font-size: var(--limbo-font-size-compact-sm);\n border-radius: var(--limbo-radius-compact-sm);\n }\n \n /* Gallery compacta */\n [data-limbo-compact="true"] .limbo-gallery,\n .limbo-compact-mode .limbo-gallery {\n gap: var(--limbo-gap-compact-sm);\n }\n \n [data-limbo-compact="true"] .limbo-gallery-item,\n .limbo-compact-mode .limbo-gallery-item {\n border-radius: var(--limbo-radius-compact);\n min-height: 120px; /* Más pequeño para móviles */\n }\n \n /* Notificaciones compactas */\n [data-limbo-compact="true"] .limbo-notification,\n .limbo-compact-mode .limbo-notification {\n padding: var(--limbo-spacing-compact-sm) var(--limbo-spacing-compact);\n font-size: var(--limbo-font-size-compact-sm);\n border-radius: var(--limbo-radius-compact);\n }\n \n /* Progress indicators compactos */\n [data-limbo-compact="true"] .limbo-progress,\n .limbo-compact-mode .limbo-progress {\n height: 3px; /* Más delgado */\n }\n \n [data-limbo-compact="true"] .limbo-progress-circular,\n .limbo-compact-mode .limbo-progress-circular {\n width: 20px;\n height: 20px;\n }\n \n /* Auto-activación en pantallas pequeñas */\n @media (max-width: 768px) {\n :root[data-limbo-compact="auto"],\n .limbo-component[data-limbo-compact="auto"] {\n /* Aplicar automáticamente estilos compactos */\n --limbo-font-size-md: var(--limbo-font-size-compact-md);\n --limbo-font-size-sm: var(--limbo-font-size-compact-sm);\n --limbo-spacing: var(--limbo-spacing-compact);\n --limbo-radius-md: var(--limbo-radius-compact);\n --limbo-gap: var(--limbo-gap-compact);\n }\n \n /* Modal full-screen en móvil cuando es compacto */\n [data-limbo-compact="auto"] .limbo-modal,\n [data-limbo-compact="true"] .limbo-modal {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100vw;\n height: 100vh;\n max-width: 100vw;\n max-height: 100vh;\n border-radius: 0;\n margin: 0;\n }\n \n /* Tabs en accordion en móvil */\n [data-limbo-compact="auto"] .limbo-tabs,\n [data-limbo-compact="true"] .limbo-tabs {\n flex-direction: column;\n width: 100%;\n }\n \n /* Gallery de 2 columnas en móvil */\n [data-limbo-compact="auto"] .limbo-gallery,\n [data-limbo-compact="true"] .limbo-gallery {\n grid-template-columns: 1fr 1fr;\n gap: var(--limbo-gap-compact);\n }\n }\n \n /* Touch targets más grandes en móviles */\n @media (max-width: 768px) and (pointer: coarse) {\n [data-limbo-compact="auto"] .limbo-button,\n [data-limbo-compact="true"] .limbo-button {\n min-height: 44px; /* Tamaño mínimo de toque recomendado */\n padding: var(--limbo-spacing-compact) var(--limbo-spacing-compact-lg);\n }\n \n [data-limbo-compact="auto"] .limbo-tab,\n [data-limbo-compact="true"] .limbo-tab {\n min-height: 44px;\n }\n }\n `,t=document.createElement("style");t.id="limbo-theme-styles",t.textContent=e,document.head.appendChild(t)}applyTheme(e,t={}){const n=this._getTheme(e);if(!n)return console.warn(`Theme '${e}' not found`),!1;const r=this.currentTheme;return this._applyThemeVariables(n,t.scope),this._updateThemeAttributes(n.name),this.config.theme.storage&&!t.temporary&&this._saveThemePreference(n.name),this.currentTheme=n.name,this._triggerChangeCallbacks(n.name,r),!0}toggleTheme(e="light",t="dark"){const n=this.currentTheme===e?t:e;return this.applyTheme(n)}applyAutoTheme(){const e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return this.applyTheme(e)}registerTheme(e,t){const n={name:e,displayName:t.displayName||e,variables:t.variables||{},extends:t.extends||null,...t};if(n.extends){const e=this._getTheme(n.extends);e&&(n.variables={...e.variables,...n.variables})}return this.customThemes.set(e,n),this}removeTheme(e){if(this.config.presets[e])return console.warn(`Cannot remove predefined theme: ${e}`),!1;const t=this.customThemes.delete(e);return t&&this.currentTheme===e&&this.applyTheme(this.config.inheritance.fallbackTheme),t}getAvailableThemes(){const e=Object.keys(this.config.presets),t=Array.from(this.customThemes.keys());return{presets:e,custom:t,all:[...e,...t]}}getCurrentTheme(){return{name:this.currentTheme,theme:this._getTheme(this.currentTheme),isCustom:this.customThemes.has(this.currentTheme),variables:this._getCurrentVariables()}}enableCompactMode(e={}){const t={element:document.documentElement,persist:!0,...e};return t.element.setAttribute("data-limbo-compact","true"),t.element.classList.add("limbo-compact-mode"),this.isCompactMode=!0,t.persist&&this.config.compact.persistPreference&&this._saveCompactPreference(!0),this._triggerCompactChange(!0),this}disableCompactMode(e={}){const t={element:document.documentElement,persist:!0,...e};return t.element.setAttribute("data-limbo-compact","false"),t.element.classList.remove("limbo-compact-mode"),this.isCompactMode=!1,t.persist&&this.config.compact.persistPreference&&this._saveCompactPreference(!1),this._triggerCompactChange(!1),this}toggleCompactMode(e={}){return this.isCompactMode?this.disableCompactMode(e):this.enableCompactMode(e)}applyAutoCompactMode(){const e=this._shouldUseCompactMode();return e&&!this.isCompactMode?this.enableCompactMode({persist:!1}):!e&&this.isCompactMode&&this.disableCompactMode({persist:!1}),this}getCompactState(){return{isEnabled:this.isCompactMode,isAuto:this.config.compact.auto,breakpoint:this.config.compact.breakpoint,currentViewport:window.innerWidth,shouldBeCompact:this._shouldUseCompactMode()}}_shouldUseCompactMode(){if(!this.config.compact.auto)return this.config.compact.enabled;const e=window.innerWidth<=this.config.compact.breakpoint,t=/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),n="ontouchstart"in window||navigator.maxTouchPoints>0;return!(!this.config.compact.forceOnMobile||!t&&!n)||e}_saveCompactPreference(e){try{localStorage.setItem("limbo-compact-preference",e.toString())}catch(t){console.warn("Could not save compact preference:",t)}}_loadCompactPreference(){try{return"true"===localStorage.getItem("limbo-compact-preference")}catch(e){return console.warn("Could not load compact preference:",e),null}}_triggerCompactChange(e){this.changeCallbacks.forEach(t=>{try{t({type:"compact",isCompact:e,viewport:window.innerWidth,timestamp:Date.now()})}catch(n){console.error("Error in compact mode change callback:",n)}})}_inheritPortalTheme(){const e=this._detectPortalTheme();return e?(this.registerTheme("portal-inherited",e),"portal-inherited"):null}_detectPortalTheme(){const e={name:"portal-detected",displayName:"Tema del Portal",variables:{}};for(const t of this.config.inheritance.portalSelectors){const n=document.querySelector(t);if(n){const t=this._extractCSSVariables(n);Object.keys(t).length>0&&(e.variables={...e.variables,...t});const r=n.getAttribute("data-theme")||n.getAttribute("class")?.match(/theme-(\w+)/)||n.getAttribute("class")?.match(/(\w+)-theme/);r&&(e.detectedName=Array.isArray(r)?r[1]:r)}}return Object.keys(e.variables).length>0?e:null}_extractCSSVariables(e){const t={},n=getComputedStyle(e);["primary","primary-hover","primary-light","primary-dark","bg-primary","bg-secondary","bg-tertiary","bg-card","bg-input","text-primary","text-secondary","text-tertiary","text-inverse","border-light","border-medium","border-strong","border-focus","success","error","warning","info","shadow-sm","shadow-md","shadow-lg","shadow-xl","radius-sm","radius-md","radius-lg","radius-xl"].forEach(e=>{const r=`--limbo-${e}`,a=n.getPropertyValue(r).trim();a&&(t[r]=a)});return["--primary-color","--background-color","--text-color","--border-color","--accent-color","--surface-color"].forEach(e=>{const r=n.getPropertyValue(e).trim();if(r){const n=this._mapGenericToLimbo(e,r);n&&Object.assign(t,n)}}),t}_mapGenericToLimbo(e,t){return{"--primary-color":{"--limbo-primary":t},"--background-color":{"--limbo-bg-primary":t},"--text-color":{"--limbo-text-primary":t},"--border-color":{"--limbo-border-light":t},"--accent-color":{"--limbo-primary":t},"--surface-color":{"--limbo-bg-card":t}}[e]||null}_applyInitialTheme(){let e=this.config.inheritance.fallbackTheme;if(this.config.theme.storage){const t=this._loadThemePreference();t&&this._getTheme(t)&&(e=t)}const t=document.documentElement.getAttribute("data-limbo-theme");t&&this._getTheme(t)&&(e=t);const n=this._inheritPortalTheme();n&&(e=n),this.config.theme.auto&&"auto"===e&&(e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),this.applyTheme(e,{temporary:!1})}_applyInitialCompactMode(){let e=!1;if(this.config.compact.persistPreference){const t=this._loadCompactPreference();null!==t&&(e=t)}const t=document.documentElement.getAttribute("data-limbo-compact");"true"===t?e=!0:"false"===t&&(e=!1),("auto"===t||this.config.compact.auto)&&(e=this._shouldUseCompactMode()),e?this.enableCompactMode({persist:!1}):this.disableCompactMode({persist:!1})}_applyThemeVariables(e,t=document.documentElement){const n="string"==typeof t?document.querySelector(t):t;n?(Object.entries(e.variables).forEach(([e,t])=>{n.style.setProperty(e,t),this.appliedStyles.add(`${n.tagName}:${e}`)}),this.themeCache.set(e.name,{theme:e,appliedAt:Date.now(),scope:n})):console.warn("Theme scope element not found")}_updateThemeAttributes(e){document.documentElement.setAttribute("data-limbo-theme",e),document.documentElement.classList.remove("limbo-theme-light","limbo-theme-dark","limbo-theme-auto"),document.documentElement.classList.add(`limbo-theme-${e}`),this._updateMetaThemeColor(e)}_updateMetaThemeColor(e){const t=this._getTheme(e);if(!t)return;const n=t.variables["--limbo-primary"]||"#3b82f6";let r=document.querySelector('meta[name="theme-color"]');r||(r=document.createElement("meta"),r.name="theme-color",document.head.appendChild(r)),r.content=n}_getTheme(e){return this.config.presets[e]?this.config.presets[e]:this.customThemes.has(e)?this.customThemes.get(e):null}_getCurrentVariables(){const e=this._getTheme(this.currentTheme);if(!e)return{};const t=getComputedStyle(document.documentElement),n={};return Object.keys(e.variables).forEach(e=>{n[e]=t.getPropertyValue(e).trim()}),n}_saveThemePreference(e){try{localStorage.setItem("limbo-theme-preference",e)}catch(t){console.warn("Could not save theme preference:",t)}}_loadThemePreference(){try{return localStorage.getItem("limbo-theme-preference")}catch(e){return console.warn("Could not load theme preference:",e),null}}_loadCustomThemes(){try{const e=localStorage.getItem("limbo-custom-themes");if(e){const t=JSON.parse(e);Object.entries(t).forEach(([e,t])=>{this.customThemes.set(e,t)})}}catch(e){console.warn("Could not load custom themes:",e)}}_saveCustomThemes(){try{const e=Object.fromEntries(this.customThemes);localStorage.setItem("limbo-custom-themes",JSON.stringify(e))}catch(e){console.warn("Could not save custom themes:",e)}}_setupObservers(){this.config.theme.detectSystem&&this._setupSystemObserver(),this.config.theme.storage&&this._setupStorageObserver(),this._setupMutationObserver(),this.config.compact.auto&&this._setupViewportObserver()}_setupSystemObserver(){const e=window.matchMedia("(prefers-color-scheme: dark)");e.addEventListener("change",e=>{if("auto"===this.currentTheme||this.config.theme.auto){const t=e.matches?"dark":"light";this.applyTheme(t,{temporary:!0})}}),this.mediaQueryObserver=e}_setupStorageObserver(){const e=e=>{"limbo-theme-preference"===e.key&&e.newValue!==this.currentTheme&&this._getTheme(e.newValue)&&this.applyTheme(e.newValue)};window.addEventListener("storage",e),this.storageListener=e}_setupMutationObserver(){const e=new MutationObserver(e=>{e.forEach(e=>{if("attributes"===e.type&&"data-limbo-theme"===e.attributeName){const t=e.target.getAttribute("data-limbo-theme");t&&t!==this.currentTheme&&this._getTheme(t)&&this.applyTheme(t)}})});e.observe(document.documentElement,{attributes:!0,attributeFilter:["data-limbo-theme"]}),this.mutationObserver=e}_setupViewportObserver(){const e=`(max-width: ${this.config.compact.breakpoint}px)`,t=window.matchMedia(e);t.addEventListener("change",()=>{("auto"===document.documentElement.getAttribute("data-limbo-compact")||this.config.compact.auto)&&this.applyAutoCompactMode()}),this.compactObserver=t,window.addEventListener("orientationchange",()=>{setTimeout(()=>{("auto"===document.documentElement.getAttribute("data-limbo-compact")||this.config.compact.auto)&&this.applyAutoCompactMode()},100)})}onThemeChange(e){return this.changeCallbacks.add(e),()=>this.changeCallbacks.delete(e)}_triggerChangeCallbacks(e,t){this.changeCallbacks.forEach(n=>{try{n({theme:e,previousTheme:t,themeData:this._getTheme(e),variables:this._getCurrentVariables()})}catch(r){console.error("Error in theme change callback:",r)}})}generateThemeFromColors(e,t){const n={name:e,displayName:e,variables:{}};t.primary&&(n.variables["--limbo-primary"]=t.primary,n.variables["--limbo-primary-hover"]=this._darkenColor(t.primary,10),n.variables["--limbo-primary-light"]=this._lightenColor(t.primary,40),n.variables["--limbo-primary-dark"]=this._darkenColor(t.primary,20)),t.background&&(n.variables["--limbo-bg-primary"]=t.background,n.variables["--limbo-bg-secondary"]=this._lightenColor(t.background,5),n.variables["--limbo-bg-tertiary"]=this._lightenColor(t.background,10),n.variables["--limbo-bg-card"]=t.background),t.text&&(n.variables["--limbo-text-primary"]=t.text,n.variables["--limbo-text-secondary"]=this._lightenColor(t.text,20),n.variables["--limbo-text-tertiary"]=this._lightenColor(t.text,40));const r=this._getTheme(this.config.inheritance.fallbackTheme);return r&&(n.variables={...r.variables,...n.variables}),this.registerTheme(e,n),n}_darkenColor(e,t){const n=parseInt(e.replace("#",""),16),r=Math.round(2.55*t),a=(n>>16)-r,o=(n>>8&255)-r,i=(255&n)-r;return"#"+(16777216+65536*(a<255?a<1?0:a:255)+256*(o<255?o<1?0:o:255)+(i<255?i<1?0:i:255)).toString(16).slice(1)}_lightenColor(e,t){const n=parseInt(e.replace("#",""),16),r=Math.round(2.55*t),a=(n>>16)+r,o=(n>>8&255)+r,i=(255&n)+r;return"#"+(16777216+65536*(a<255?a<1?0:a:255)+256*(o<255?o<1?0:o:255)+(i<255?i<1?0:i:255)).toString(16).slice(1)}_deepMerge(e,t){const n={...e};return Object.keys(t).forEach(r=>{t[r]&&"object"==typeof t[r]&&!Array.isArray(t[r])?n[r]=this._deepMerge(e[r]||{},t[r]):n[r]=t[r]}),n}getThemeInfo(){return{current:this.getCurrentTheme(),available:this.getAvailableThemes(),compact:this.getCompactState(),config:this.config,isInitialized:this.isInitialized,cache:{themes:this.themeCache.size,applied:this.appliedStyles.size},observers:{system:!!this.mediaQueryObserver,storage:!!this.storageListener,mutation:!!this.mutationObserver,viewport:!!this.compactObserver}}}debug(){return console.table(this.getThemeInfo()),this.getThemeInfo()}destroy(){this.mediaQueryObserver&&this.mediaQueryObserver.removeEventListener("change",this._setupSystemObserver),this.storageListener&&window.removeEventListener("storage",this.storageListener),this.mutationObserver&&this.mutationObserver.disconnect(),this.compactObserver&&this.compactObserver.removeEventListener("change",this._setupViewportObserver),this.changeCallbacks.clear(),this.themeCache.clear(),this.appliedStyles.clear(),this._saveCustomThemes();const e=document.getElementById("limbo-theme-styles");e&&e.remove(),this.isInitialized=!1}}const nn=new class{constructor(){this.config=new o,this.instances=new Gt,this.autoInputs=new Xt,this.events=new Zt,this.modals=new Jt,this.theme=new tn,this.containerQueryDetector=x,this._setupInternalListeners(),this._initializeContainerQueries()}configure(e){var t;return this.config.setGlobal(e),t={publicKey:e.publicKey,apiKey:e.apiKey,token:e.token,authMode:e.authMode,prod:e.prod||!1},_={..._,...t},_.authMode||(_.token?_.authMode="manual":_.authMode="session"),this.config}setToken(e){return function(e){_.token=e}(e),this}create(e){const t=this.config.merge(e);return this.instances.create(t,this.events,this.modals)}configureAutoInputs(e){return this.autoInputs.configure(e,this.config,this.events)}setTheme(e){return e&&(this.config.set("theme",e),this.theme.setTheme(e),this.events.emit("theme:changed",{theme:e})),this}getTheme(){return this.theme.getCurrentTheme()}scanAndActivate(e=null){const t=this.autoInputs.config?.dataset||"data-limbo-input-file",n=e||`[${t}]`,r=document.querySelectorAll(n);if(0===r.length)return{found:0,processed:0,skipped:0};let a=0,o=0;return r.forEach(e=>{try{this.autoInputs._processInput(e),a++}catch(t){console.warn(`⚠️ Limbo: Error procesando input ${e.id||e.name}:`,t),o++}}),this.events.emit("limbo:scanCompleted",{found:r.length,processed:a,skipped:o,inputs:Array.from(r)}),{found:r.length,processed:a,skipped:o}}_initializeContainerQueries(){this.containerQueryDetector.observeResize(),setTimeout(()=>{document.querySelectorAll(".limbo-component-container-wrapper").forEach(e=>{this.containerQueryDetector.applyResponsiveClasses(e)})},100)}rescan(e=document){const t=this.autoInputs.config?.dataset||"data-limbo-input-file",n=e.querySelectorAll(`[${t}]`);let r=0;return n.forEach(e=>{if(!this.autoInputs.instances.has(this.autoInputs._getInputId(e)))try{this.autoInputs._processInput(e),r++}catch(t){console.warn("⚠️ Limbo: Error procesando nuevo input:",t)}}),r}init(e){const t=this._mapLegacyOptions(e);return this.create(t)}getInstances(){return this.instances.getAll()}destroy(){this.instances.destroyAll(),this.autoInputs.cleanup(),this.events.cleanup(),this.theme.removeTheme()}_mapLegacyOptions(e){return{container:e.container||"#image-manager",mode:"embed",features:["gallery","upload","cropper"],apiKey:e.apiKey,prod:e.prod||!1,url:void 0===e.url||e.url}}_setupInternalListeners(){this.events.on("autoInputs:modalRequest",({config:e,callback:t})=>{this._handleAutoInputModalRequest({config:e,callback:t})})}_handleAutoInputModalRequest({config:e,callback:t}){const n=this.create({...e,mode:"modal",autoDestroy:!0,callbacks:{onSelect:e=>{t(e),n.close()},onClose:()=>{}}});n.open()}};"undefined"!=typeof window&&(window.Limbo=nn);"undefined"!=typeof window&&document.querySelector("#root")&&(nn.configure({prod:!1,publicKey:"pk_9fcfdd91a14755cc68d0e11a14269554",authMode:"session"}),nn.create({container:"#root",mode:"embed",modeUI:"full",features:["gallery","upload","cropper"],title:"Limbo Image Manager - Development",url:!0}),nn.configureAutoInputs({dataset:"data-limbo-input-file",return:"url",features:["gallery","upload","cropper"],modeUI:"full",modalSize:"large",title:"Seleccionar imagen",crops:"free",allowDelete:!1})),module.exports=nn;
|
|
30
|
+
Ct.$define(),It.$define(),At.$define(),zt.$define(),_t.$define(),jt.$define(),Pt.$define(),Ft.$define();class Ht{constructor(e,t,n){this.canvasRef=e,this.imageRef=t,this.selectionRef=n}get canvasElement(){return this.canvasRef?.current}get image(){return this.imageRef?.current}get selectionElement(){return this.selectionRef?.current}get isReady(){return!!(this.canvasElement&&this.image&&this.selectionElement)}transform={move:(e,t)=>{if(!this.image)return!1;try{return this.image.$move(e,t),!0}catch(n){return console.warn("Error moving image:",n),!1}},moveTo:(e,t)=>{if(!this.image)return!1;try{return this.image.$moveTo(e,t),!0}catch(n){return console.warn("Error moving image to position:",n),!1}},zoom:e=>{if(!this.image)return!1;try{return this.image.$zoom(e),!0}catch(t){return console.warn("Error zooming image:",t),!1}},rotate:e=>{if(!this.image)return!1;try{const t=e*Math.PI/180;return this.image.$rotate(t),!0}catch(t){return console.warn("Error rotating image:",t),!1}},scale:(e,t=e)=>{if(!this.image)return!1;try{return this.image.$scale(e,t),!0}catch(n){return console.warn("Error scaling image:",n),!1}},center:(e="contain")=>{if(!this.image)return!1;try{return this.image.$center(e),!0}catch(t){return console.warn("Error centering image:",t),!1}},reset:()=>{if(!this.image)return!1;try{return this.image.$resetTransform(),!0}catch(e){return console.warn("Error resetting transform:",e),!1}},getTransform:()=>{if(!this.image)return null;try{return this.image.$getTransform()}catch(e){return console.warn("Error getting transform:",e),null}},setTransform:(e,t,n,r,a,o)=>{if(!this.image)return!1;try{return this.image.$setTransform(e,t,n,r,a,o),!0}catch(i){return console.warn("Error setting transform:",i),!1}},resetZoom:()=>{if(!this.image)return!1;try{const e=this.image.$getTransform();if(!e)return!1;const[t,n,r,a,o,i]=e,l=Math.sqrt(t*t+n*n),s=Math.sqrt(r*r+a*a),c=t/l,u=n/l,d=r/s,f=a/s;return this.image.$setTransform(c,u,d,f,o,i),!0}catch(e){return console.warn("Error resetting zoom:",e),!1}},setZoom:e=>{if(!this.image||e<=0)return!1;try{const t=this.image.$getTransform();if(!t)return!1;const[n,r,a,o,i,l]=t,s=Math.sqrt(n*n+r*r),c=Math.sqrt(a*a+o*o),u=n/s*e,d=r/s*e,f=a/c*e,p=o/c*e;return this.image.$setTransform(u,d,f,p,i,l),!0}catch(t){return console.warn("Error setting zoom level:",t),!1}},getZoom:()=>{if(!this.image)return 1;try{const e=this.image.$getTransform();if(!e)return 1;const[t,n]=e;return Math.sqrt(t*t+n*n)}catch(e){return console.warn("Error getting zoom level:",e),1}},fitToCanvas:(e=.1)=>{if(!this.image||!this.canvasElement)return!1;try{const t=this.canvasElement.getBoundingClientRect();let n=this.image.querySelector("img")||this.image;if(!n?.naturalWidth||!n?.naturalHeight)return!1;const r=1-e,a=t.width*r/n.naturalWidth,o=t.height*r/n.naturalHeight,i=Math.min(a,o,1);return this.transform.setZoom(i)}catch(t){return console.warn("Error fitting to canvas:",t),!1}}};selection={center:()=>{if(!this.selectionElement)return!1;try{return this.selectionElement.$center(),!0}catch(e){return console.warn("Error centering selection:",e),!1}},reset:()=>{if(!this.selectionElement)return!1;try{return this.selectionElement.$reset(),!0}catch(e){return console.warn("Error resetting selection:",e),!1}},setCoverage:e=>{if(!this.selectionElement||e<0||e>1)return!1;try{return this.selectionElement.initialCoverage=e,this.selectionElement.$reset(),!0}catch(t){return console.warn("Error setting coverage:",t),!1}},setAspectRatio:e=>{if(!this.selectionElement)return!1;try{let t;if(""===e||null==e)t=NaN;else if("number"==typeof e)t=e;else{if("string"!=typeof e)return console.warn("Unsupported aspect ratio type:",typeof e,e),!1;if(e.includes("/")){const[n,r]=e.split("/").map(e=>parseFloat(e.trim()));if(isNaN(n)||isNaN(r)||0===r)return console.warn("Invalid aspect ratio format:",e),!1;t=n/r}else if(t=parseFloat(e),isNaN(t))return console.warn("Invalid aspect ratio format:",e),!1}return this.selectionElement.aspectRatio=t,this.selectionElement.$render(),!0}catch(t){return console.warn("Error setting aspect ratio:",t),!1}},move:(e,t)=>{if(!this.selectionElement)return!1;try{return this.selectionElement.$move(e,t),!0}catch(n){return console.warn("Error moving selection:",n),!1}},zoom:e=>{if(!this.selectionElement)return!1;try{return this.selectionElement.$zoom(e),!0}catch(t){return console.warn("Error zooming selection:",t),!1}},change:(e,t,n,r,a)=>{if(!this.selectionElement)return!1;try{return this.selectionElement.$change(e,t,n,r,a),!0}catch(o){return console.warn("Error changing selection:",o),!1}},toCanvas:async(e={})=>{if(!this.selectionElement)return null;try{const t={width:800,height:600,imageSmoothingEnabled:!0,imageSmoothingQuality:"high",...e};return await this.selectionElement.$toCanvas(t)}catch(t){return console.warn("Error exporting to canvas:",t),null}},getData:()=>{if(!this.selectionElement)return null;try{return{x:this.selectionElement.x,y:this.selectionElement.y,width:this.selectionElement.width,height:this.selectionElement.height,aspectRatio:this.selectionElement.aspectRatio}}catch(e){return console.warn("Error getting selection data:",e),null}}};canvas={setBackground:e=>{if(!this.canvasElement)return!1;try{return this.canvasElement.background=e,!0}catch(t){return console.warn("Error setting background:",t),!1}},setScaleStep:e=>{if(!this.canvasElement)return!1;try{return this.canvasElement.scaleStep=e,!0}catch(t){return console.warn("Error setting scale step:",t),!1}},setDisabled:e=>{if(!this.canvasElement)return!1;try{return this.canvasElement.disabled=e,!0}catch(t){return console.warn("Error setting disabled state:",t),!1}}};utils={flipHorizontal:()=>{const e=this.transform.getTransform();if(!e)return!1;const[t,n,r,a,o,i]=e;return this.transform.setTransform(-t,n,r,a,o,i)},flipVertical:()=>{const e=this.transform.getTransform();if(!e)return!1;const[t,n,r,a,o,i]=e;return this.transform.setTransform(t,n,r,-a,o,i)},setupInitialView:async(e={})=>{const{paspartuFactor:t=.85,retries:n=3,retryDelay:r=200}=e;return new Promise(e=>{const a=(o=0)=>{if(!this.isReady)return o<n?void setTimeout(()=>a(o+1),r):void e(!1);try{const i=this.canvasElement.getBoundingClientRect();let l=this.image.querySelector("img")||this.image;if(!l?.naturalWidth||!l?.naturalHeight)return o<n?void setTimeout(()=>a(o+1),r):(this.transform.center(),void e(!1));if(i.width>0&&i.height>0){const n=i.width*t/l.naturalWidth,r=i.height*t/l.naturalHeight,a=Math.min(n,r,1);this.transform.setTransform(a,0,0,a,0,0)?setTimeout(()=>{this.transform.center(),this.selection.center(),e(!0)},100):(this.transform.reset(),setTimeout(()=>{a<1&&this.transform.scale(a),setTimeout(()=>{this.transform.center(),this.selection.center(),e(!0)},100)},100))}else this.transform.center(),e(!1)}catch(i){console.warn("Error in setup:",i),this.transform.center(),e(!1)}};a()})},resetAll:()=>{const e={transform:this.transform.reset(),selection:this.selection.reset(),center:!1};return setTimeout(()=>{e.center=this.transform.center()&&this.selection.center()},100),e},checkExportability:async()=>{try{return!!(await this.selection.toCanvas({width:1,height:1}))}catch{return!1}},resetZoomOnly:()=>this.transform.resetZoom(),getZoomInfo:()=>{const e=this.transform.getZoom();return{current:e,isZoomedIn:e>1,isZoomedOut:e<1,percentage:Math.round(100*e)}},setBackground:e=>this.canvas.setBackground(e)};setupEventListeners(e={}){const{onSelectionChange:t,onImageTransform:n,onAction:r,onActionStart:a,onActionMove:o,onActionEnd:i}=e,l=[];if(t&&this.selectionElement){const e=e=>{t({x:e.detail.x,y:e.detail.y,width:e.detail.width,height:e.detail.height})};this.selectionElement.addEventListener("change",e),l.push(()=>{this.selectionElement&&this.selectionElement.removeEventListener("change",e)})}if(n&&this.image){const e=e=>{n({matrix:e.detail.matrix,oldMatrix:e.detail.oldMatrix})};this.image.addEventListener("transform",e),l.push(()=>{this.image&&this.image.removeEventListener("transform",e)})}if(this.canvasElement){if(r){const e=e=>r(e.detail);this.canvasElement.addEventListener("action",e),l.push(()=>{this.canvasElement&&this.canvasElement.removeEventListener("action",e)})}if(a){const e=e=>a(e.detail);this.canvasElement.addEventListener("actionstart",e),l.push(()=>{this.canvasElement&&this.canvasElement.removeEventListener("actionstart",e)})}if(o){const e=e=>o(e.detail);this.canvasElement.addEventListener("actionmove",e),l.push(()=>{this.canvasElement&&this.canvasElement.removeEventListener("actionmove",e)})}if(i){const e=e=>i(e.detail);this.canvasElement.addEventListener("actionend",e),l.push(()=>{this.canvasElement&&this.canvasElement.removeEventListener("actionend",e)})}}return()=>{l.forEach(e=>e())}}}function Wt({image:t,onSave:r,onCancel:a,onDelete:o,deleting:i=!1,onVariantCreated:l=null}){const[s,c]=e.useState(!1),[u,d]=e.useState(null),[f,p]=e.useState(!1),[m,h]=e.useState(""),[g,b]=e.useState(!0),[y,v]=e.useState(!0),[w,k]=e.useState({horizontal:!1,vertical:!1}),[x,S]=e.useState(!1),[C,E]=e.useState({current:1,percentage:100}),T=window.limboCore?.accessibilityManager,_=e.useMemo(()=>{const e=window.limboCore?.config?.getGlobal()||{};return e.cropper?.allowedAspectRatios||[{label:"📐 Libre",value:"",ratio:null},{label:"⬜ 1:1 (Cuadrado)",value:"1",ratio:1},{label:"📺 4:3 (Clásico)",value:"4/3",ratio:4/3},{label:"🖥️ 16:9 (Widescreen)",value:"16/9",ratio:16/9},{label:"📷 3:2 (Foto)",value:"3/2",ratio:1.5},{label:"📱 2:3 (Retrato)",value:"2/3",ratio:2/3},{label:"📲 9:16 (Stories)",value:"9/16",ratio:9/16}]},[]),{createCropVariant:N,loading:P,error:z}=Ut(),R=((t,n={})=>{const r=e.useRef(null),a=e.useRef(null),o=e.useRef(null),i=e.useRef(null),[l,s]=e.useState(null),[c,u]=e.useState(null),[d,f]=e.useState(!1),[p,m]=e.useState(!0),[h,g]=e.useState(0),b={aspectRatio:"",shade:!0,paspartuFactor:.85,...n};e.useEffect(()=>{r.current&&a.current&&o.current&&(i.current=new Ht(r,a,o),f(!0))},[]),e.useEffect(()=>{if(i.current)return i.current.setupEventListeners({onSelectionChange:e=>{s(e)},onImageTransform:()=>{g(e=>e+1)}})},[d]),e.useEffect(()=>{i.current&&t&&(async()=>{i.current.selection.setAspectRatio(b.aspectRatio),i.current.canvas.setBackground(b.shade),await i.current.utils.setupInitialView({paspartuFactor:b.paspartuFactor});const e=await i.current.utils.checkExportability();m(e);const t=a.current?.querySelector("img")||a.current;t?.naturalWidth&&t?.naturalHeight&&u({naturalWidth:t.naturalWidth,naturalHeight:t.naturalHeight,currentWidth:t.width,currentHeight:t.height})})()},[t,b.aspectRatio,b.shade,b.paspartuFactor]);const y=e.useCallback(()=>({move:(e,t)=>i.current?.transform.move(e,t)||!1,zoom:e=>i.current?.transform.zoom(e)||!1,rotate:e=>i.current?.transform.rotate(e)||!1,center:()=>i.current?.transform.center()||!1,reset:()=>i.current?.transform.reset()||!1,resetZoom:()=>i.current?.transform.resetZoom()||!1,setZoom:e=>i.current?.transform.setZoom(e)||!1,getZoom:()=>i.current?.transform.getZoom()||1,fitToCanvas:e=>i.current?.transform.fitToCanvas(e)||!1,flipHorizontal:()=>i.current?.utils.flipHorizontal()||!1,flipVertical:()=>i.current?.utils.flipVertical()||!1}),[]),v=e.useCallback(()=>({center:()=>i.current?.selection.center()||!1,reset:()=>i.current?.selection.reset()||!1,setCoverage:e=>i.current?.selection.setCoverage(e)||!1,setAspectRatio:e=>i.current?.selection.setAspectRatio(e)||!1,toCanvas:e=>i.current?.selection.toCanvas(e)||Promise.resolve(null)}),[]),w=e.useCallback(()=>({resetAll:()=>{if(i.current){const e=i.current.utils.resetAll();return s(null),e}return!1},setBackground:e=>i.current?.canvas.setBackground(e)||!1,resetZoomOnly:()=>i.current?.utils.resetZoomOnly()||!1,getZoomInfo:()=>i.current?.utils.getZoomInfo()||{current:1,percentage:100,isZoomedIn:!1,isZoomedOut:!1}}),[]);return{refs:{canvasRef:r,imageRef:a,selectionRef:o},state:{cropData:l,imageInfo:c,isReady:d,canExport:p,transformVersion:h},transform:y(),selection:v(),utils:w(),manager:i.current}})(t,{aspectRatio:m,showGrid:g,shade:y,initialCoverage:.5,paspartuFactor:.85}),{refs:j,state:A,transform:I,selection:L,utils:M}=R,{canvasRef:$,imageRef:D,selectionRef:O}=j,{cropData:F,imageInfo:U,canExport:H,transformVersion:W}=A,B=e.useMemo(()=>U||{naturalWidth:t.width||1920,naturalHeight:t.height||1080,currentWidth:t.width||1920,currentHeight:t.height||1080},[U,t.width,t.height]),V=e.useCallback(()=>b(e=>!e),[]),q=e.useCallback(()=>v(e=>!e),[]),Q=e.useCallback(()=>S(e=>!e),[]),K=e.useCallback(()=>I.center(),[I]),Y=e.useCallback(()=>L.center(),[L]),G=e.useCallback(()=>L.reset(),[L]),X=e.useCallback((e,t)=>I.move(e,t),[I]),Z=e.useCallback(e=>I.zoom(e),[I]),J=e.useCallback(e=>I.rotate(e),[I]),ee=e.useCallback(()=>{M.resetAll(),h(""),b(!0),v(!0),k({horizontal:!1,vertical:!1}),c(!1),d(null)},[M]),te=e.useCallback(e=>{L.setCoverage(e)},[L]),ne=e.useCallback(()=>M.resetZoomOnly(),[M]),re=e.useCallback(()=>{k(e=>{const t=!e.horizontal;return I.flipHorizontal(),{...e,horizontal:t}})},[I]),ae=e.useCallback(()=>{k(e=>{const t=!e.vertical;return I.flipVertical(),{...e,vertical:t}})},[I]),oe=e.useCallback(e=>{h(e);const t=_.find(t=>t.value===e),n=t?t.ratio:e;L.setAspectRatio(n)},[L,_]),ie=e.useCallback(async()=>{if(!H)return null;try{const e=await L.toCanvas({width:800,height:600,imageSmoothingEnabled:!0,imageSmoothingQuality:"high"});return e?e.toDataURL("image/jpeg",.9):null}catch(e){return console.warn("Error generating preview:",e),null}},[H,L]),le=e.useCallback(async()=>{if(s)return c(!1),d(null),void p(!1);if(H){c(!0),p(!0);try{const e=await ie();e?d(e):(c(!1),alert("No se puede exportar el recorte por restricciones de CORS en la imagen original."))}finally{p(!1)}}else alert("No se puede exportar el recorte por restricciones de CORS en la imagen original.")},[H,ie,s]),se=e.useCallback(async()=>{if(!H){const e="No se puede exportar el recorte por restricciones de CORS en la imagen original.";return T?.announceError(e),void alert(e)}if(!A.isReady){const e="El cropper aún no está inicializado. Espera un momento e inténtalo de nuevo.";return T?.announceError(e),void alert(e)}T?.announce("Creando variante recortada de la imagen");try{if(!F||!B)throw console.error("❌ Datos faltantes:",{cropData:F,effectiveImageInfo:B}),new Error(`No hay datos de recorte disponibles. CropData: ${!!F}, ImageInfo: ${!!B}`);if(!F.x&&0!==F.x||!F.y&&0!==F.y||!F.width||!F.height)throw console.error("❌ CropData inválido:",F),new Error("Los datos de recorte no tienen las propiedades esperadas");if(!B.naturalWidth||!B.naturalHeight)throw console.error("❌ ImageInfo inválido:",B),new Error("Los datos de imagen no tienen las dimensiones esperadas");const{x:e,y:n,width:a,height:o}=F,{naturalWidth:i,naturalHeight:s}=B,c={x:e/i,y:n/s,width:a/i,height:o/s},u=a/o;let d,f;const p=1200;u>1?(d=Math.min(a,p),f=Math.round(d/u)):(f=Math.min(o,p),d=Math.round(f*u));const m=Date.now(),[h]=t.filename.split("."),g=`${h}_crop_${m}`,b=await N(t.id,c,{name:g,width:d,height:f,format:"webp",quality:90});b&&(T?.announceSuccess(`Variante recortada creada: ${g}`),l?.(t.id,b),r(b))}catch(e){console.warn("Error creating crop variant:",e);const t="No se pudo crear la variante recortada. Inténtalo de nuevo.";T?.announceError(t),alert(t)}},[H,F,U,B,t.filename,t.id,N,r,l,T,A.isReady]);return e.useEffect(()=>{c(!1),d(null)},[t]),e.useEffect(()=>{R.manager&&(L.setAspectRatio(m),M.setBackground(y))},[m,y,R.manager,L,M]),e.useEffect(()=>{if(R.manager&&R.manager.utils)try{const e=R.manager.transform.getZoom(),t={current:e,isZoomedIn:e>1,isZoomedOut:e<1,percentage:Math.round(100*e)};E(t)}catch(e){console.warn("Error updating zoom info:",e)}},[W,R.manager]),e.useEffect(()=>{if(!s||!H)return;const e=setTimeout(async()=>{p(e=>!u&&!e||e);try{const e=await ie();e&&d(e)}finally{p(!1)}},300);return()=>{clearTimeout(e),p(!1)}},[F,W,s,H,ie,m,w,u]),e.useEffect(()=>{const e=$.current,t=t=>{if("Delete"===t.key||"Backspace"===t.key||"Backspace"===t.key&&t.metaKey||"Backspace"===t.key&&t.ctrlKey){const n=t.target;if(e&&(n===e||n===document.body||n===document.documentElement||"CROPPER-CANVAS"===n.tagName||"CROPPER-SELECTION"===n.tagName||"CROPPER-IMAGE"===n.tagName||"CROPPER-HANDLE"===n.tagName||"CROPPER-GRID"===n.tagName||n.closest("cropper-canvas")||e.contains(n)))return t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),!1}};return document.addEventListener("keydown",t,!0),document.addEventListener("keyup",t,!0),window.addEventListener("keydown",t,!0),e&&e.addEventListener("keydown",t,!0),()=>{document.removeEventListener("keydown",t,!0),document.removeEventListener("keyup",t,!0),window.removeEventListener("keydown",t,!0),e&&e.removeEventListener("keydown",t,!0)}},[$]),t?n.jsxs("div",{className:"limbo-cropper-view px-2 border-2 border-gray-200/50 rounded-lg min-w-fit max-w-7xl mx-auto h-screen flex flex-col",children:[n.jsxs("div",{className:"limbo-cropper-header flex flex-col sm:flex-row justify-between items-start sm:items-center p-4 sm:p-6 pb-4 border-b border-gray-200 bg-white z-10 flex-shrink-0 gap-4 sm:gap-2",children:[n.jsxs("div",{className:"flex-1 min-w-0",children:[n.jsx("h2",{className:"text-lg sm:text-xl font-bold text-gray-800 truncate",children:"Recortar imagen"}),n.jsx("p",{className:"text-sm text-gray-600 mt-1 truncate",children:t.filename})]}),n.jsxs("div",{className:"flex gap-2 w-full sm:w-auto",children:[n.jsx("button",{onClick:a,disabled:P,className:"limbo-btn limbo-btn-secondary px-4 py-2 flex-1 sm:flex-initial",children:"Cancelar"}),n.jsx("button",{onClick:()=>o?.(t),disabled:i|P,className:"limbo-btn limbo-btn-danger px-4 py-2 flex-1 sm:flex-initial","aria-label":`Eliminar imagen ${t.filename}`,children:i?"Eliminando...":"Eliminar"})]})]}),n.jsxs("div",{className:"limbo-cropper-status bg-white border-gray-100 px-4 sm:px-6 py-2 pb-0 flex-shrink-0",children:[z&&n.jsxs("div",{className:"alert alert-danger mb-2 text-sm",role:"alert",children:[n.jsx("strong",{children:"Error:"})," ",z]}),F&&F.width>0&&n.jsxs("div",{className:"alert alert-info mb-2 text-sm",role:"status",children:[n.jsx("strong",{children:"Área:"})," ",Math.round(F.width)," ×"," ",Math.round(F.height)," px"]}),U&&n.jsxs("div",{className:"alert alert-secondary mb-2 text-sm",role:"status",children:[n.jsx("strong",{children:"Original:"})," ",U.naturalWidth," ×"," ",U.naturalHeight," px",U.currentWidth!==U.naturalWidth&&n.jsxs("span",{className:"ml-2 sm:ml-3 text-xs block sm:inline",children:["(Mostrada: ",Math.round(U.currentWidth)," ×"," ",Math.round(U.currentHeight)," px)"]})]}),!H&&n.jsx("div",{className:"alert alert-warning mb-2 text-sm",role:"alert",children:"⚠️ No se puede exportar por restricciones CORS"})]}),n.jsxs("div",{className:"flex flex-col md:flex-row flex-1 overflow-hidden rounded-lg gap-4 md:gap-0 cropper-main-content-area",children:[n.jsx("div",{className:"flex-1 relative min-w-0 order-2 md:order-1",children:n.jsxs("div",{className:"limbo-cropper-container absolute inset-2 sm:inset-4 bg-white rounded-lg border-2 border-gray-200 shadow-lg overflow-hidden",children:[s&&n.jsxs("div",{className:"absolute top-2 sm:top-4 right-2 sm:right-4 bg-white rounded-lg border border-gray-300 p-2 sm:p-3 z-50 shadow-xl w-48 sm:w-64 max-w-[calc(50%-1rem)] sm:max-w-[calc(50%-2rem)] md:min-w-1/4",children:[n.jsxs("div",{className:"flex justify-between items-center mb-2",children:[n.jsx("h3",{className:"text-xs font-semibold text-gray-700",children:"Vista previa"}),n.jsx("button",{onClick:()=>{c(!1),d(null)},className:"text-gray-400 hover:text-gray-600 p-1 -m-1","aria-label":"Cerrar vista previa",children:n.jsx("span",{className:"icon icon-close-small text-xs"})})]}),n.jsx("div",{className:"bg-gray-50 rounded p-2 flex justify-center items-center min-h-[80px] relative",children:u?n.jsxs("div",{className:"relative w-full h-full flex justify-center items-center",children:[n.jsx("img",{src:u,alt:"Vista previa del recorte",className:"max-w-full max-h-80 object-contain rounded shadow-sm"}),f&&n.jsx("div",{className:"absolute top-1 right-1 bg-blue-500 rounded-full p-1",children:n.jsx("div",{className:"animate-spin w-3 h-3 border border-white border-t-transparent rounded-full"})})]}):n.jsxs("div",{className:"flex flex-col items-center justify-center",children:[n.jsx("div",{className:"animate-spin w-6 h-6 border-2 border-blue-500 border-t-transparent rounded-full mb-2"}),n.jsx("span",{className:"text-xs text-gray-500",children:"Generando..."})]})})]}),n.jsxs("cropper-canvas",{ref:$,style:{width:"100%",height:"100%",display:"block"},background:!!y||void 0,id:"limbo-cropperjs-canvas",tabindex:"-1",onKeyDown:e=>{"Delete"!==e.key&&"Backspace"!==e.key||(e.preventDefault(),e.stopPropagation())},children:[n.jsx("cropper-image",{ref:D,src:t.url||t.path,alt:t.filename,id:"limbo-cropperjs-image",action:"move",crossOrigin:"anonymous",rotatable:!0,scalable:!0,skewable:!0,translatable:!0}),n.jsxs("cropper-selection",{ref:O,"initial-coverage":"0.5",movable:!0,resizable:!0,keyboard:"false",action:"move",style:{cursor:"move"},"data-prevent-delete":"true",tabindex:"-1",children:[g&&n.jsx("cropper-grid",{role:"grid",action:"move",covered:!0,bordered:!0}),n.jsx("cropper-handle",{action:"move",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"32px",height:"32px",zIndex:"10"}}),n.jsx("cropper-handle",{action:"n-resize"}),n.jsx("cropper-handle",{action:"e-resize"}),n.jsx("cropper-handle",{action:"s-resize"}),n.jsx("cropper-handle",{action:"w-resize"}),n.jsx("cropper-handle",{action:"ne-resize"}),n.jsx("cropper-handle",{action:"nw-resize"}),n.jsx("cropper-handle",{action:"se-resize"}),n.jsx("cropper-handle",{action:"sw-resize"})]})]})]})}),n.jsx("div",{className:"limbo-cropper-controls w-full md:w-80 bg-white border-t md:border-t-0 md:border-l border-gray-200 overflow-y-auto flex-shrink-0 order-1 md:order-2 max-h-96 md:max-h-none",children:n.jsxs("div",{className:"p-3 sm:p-4 space-y-3 sm:space-y-4 relative",children:[n.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-4 md:sticky top-0 z-50",children:[n.jsx("h3",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Acciones"}),n.jsxs("div",{className:"space-y-2",children:[n.jsxs("button",{onClick:le,disabled:P||!H,className:"w-full min-h-10 transition-colors "+(s?"limbo-btn limbo-btn-danger":"limbo-btn limbo-btn-primary"),"aria-label":"Generar vista previa del recorte",children:[n.jsx("span",{className:"icon "+(s?"icon-close-small-white":"icon-search-white")}),s?"Cerrar previa":"Vista previa"]}),n.jsx("button",{onClick:se,disabled:P||!F||!B||!H||!A.isReady,className:"w-full limbo-btn limbo-btn-success min-h-10","aria-label":"Guardar imagen recortada",children:P?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"icon icon-save-white"})," ","Guardando..."]}):n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"icon icon-save-white"})," Guardar recorte"]})}),n.jsxs("button",{onClick:ee,disabled:P,className:"w-full limbo-btn limbo-btn-secondary min-h-10","aria-label":"Reiniciar todas las configuraciones",children:[n.jsx("span",{className:"icon icon-refresh-white"})," Reiniciar todo"]})]})]}),n.jsxs("div",{className:"bg-gradient-to-br from-brand-blue-50 to-green-50 rounded-lg border border-blue-200 shadow-sm",children:[n.jsxs("button",{onClick:Q,className:"w-full p-4 flex items-center justify-between cursor-pointer hover:bg-blue-100/50 transition-colors rounded-t-lg","aria-expanded":x,"aria-label":"Mostrar/ocultar guía de uso",children:[n.jsxs("h3",{className:"text-lg font-semibold text-blue-800 flex items-center",children:[n.jsx("span",{className:"icon icon-lightbulb text-yellow-500 mr-2"}),"Guía de uso"]}),n.jsx("span",{className:"icon icon-arrow-down-blue transition-transform duration-200 "+(x?"rotate-180":"")})]}),x&&n.jsxs("div",{className:"px-4 pb-4 space-y-3",children:[n.jsxs("div",{className:"bg-white/60 rounded-md p-3 border-l-4 border-blue-400",children:[n.jsx("h4",{className:"font-semibold text-blue-700 mb-2 text-sm",children:"🖱️ Navegación básica"}),n.jsxs("div",{className:"text-sm text-blue-600 space-y-1",children:[n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Arrastra la imagen:"})," Haz clic fuera del área de selección y arrastra"]}),n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Zoom:"})," Usa la rueda del ratón (fuera del área de selección)"]}),n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Vista completa:"}),' Botón "Reset zoom" para ajustar al tamaño óptimo']})]})]}),n.jsxs("div",{className:"bg-white/60 rounded-md p-3 border-l-4 border-green-400",children:[n.jsx("h4",{className:"font-semibold text-green-700 mb-2 text-sm",children:"✂️ Área de selección"}),n.jsxs("div",{className:"text-sm text-green-600 space-y-1",children:[n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Mover selección:"})," Arrastra desde el centro",n.jsx("span",{className:"icon bg-white icon-move align-[middle!important] mx-1 border border-green-600 rounded-full"})]}),n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Redimensionar:"})," Arrastra desde las esquinas o bordes"]}),n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Tamaños rápidos:"})," Usa los botones 50%, 70%, 90%, 100%"]}),n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Proporciones:"})," Selecciona ratios predefinidos (1:1, 16:9, etc.)"]})]})]}),n.jsxs("div",{className:"bg-white/60 rounded-md p-3 border-l-4 border-purple-400",children:[n.jsx("h4",{className:"font-semibold text-purple-700 mb-2 text-sm",children:"⌨️ Atajos de teclado"}),n.jsxs("div",{className:"text-sm text-purple-600 space-y-1",children:[n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Flechas:"}),n.jsx("span",{className:"icon icon-arrow-right-box rotate-180 mx-1"}),n.jsx("span",{className:"icon icon-arrow-right-box mx-1"}),n.jsx("span",{className:"icon icon-arrow-right-box -rotate-90 mx-1"}),n.jsx("span",{className:"icon icon-arrow-right-box rotate-90 mx-1"}),"Mueven la selección (10px)"]}),n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Shift + Arrastrar:"})," Mantiene proporciones al redimensionar"]}),n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Ctrl + Rueda:"})," Zoom más preciso"]})]})]}),n.jsxs("div",{className:"bg-white/60 rounded-md p-3 border-l-4 border-amber-400",children:[n.jsx("h4",{className:"font-semibold text-amber-700 mb-2 text-sm",children:"💡 Consejos profesionales"}),n.jsxs("div",{className:"text-sm text-amber-600 space-y-1",children:[n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Vista previa:"}),' Usa el botón "Vista previa" antes de guardar']}),n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Grid:"})," Actívalo para aplicar la regla de los tercios"]}),n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Transformaciones:"})," Rota y voltea antes de hacer el recorte final"]}),n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Calidad:"})," Las imágenes se exportan en alta calidad (JPEG 90%)"]})]})]}),n.jsxs("div",{className:"bg-white/60 rounded-md p-3 border-l-4 border-orange-600",children:[n.jsx("h4",{className:"font-semibold text-orange-700 mb-2 text-sm",children:"⚠️ Advertencias"}),n.jsxs("div",{className:"text-sm text-orange-600 space-y-1",children:[n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Recortes grandes:"})," Pueden tardar más en procesarse"]}),n.jsxs("div",{children:["• ",n.jsx("strong",{children:"Calidad de imagen:"})," La calidad puede verse afectada al escalar"]})]})]})]})]}),n.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-3 sm:p-4",children:[n.jsx("h3",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Proporción"}),n.jsx("div",{className:"limbo-cropper-aspect-buttons grid grid-cols-2 md:grid-cols-1 gap-2 md:hidden",children:_.map(e=>n.jsx("button",{onClick:()=>oe(e.value),className:"p-2 text-xs rounded border transition-colors cursor-pointer "+(m===e.value?"bg-blue-100 border-blue-300 text-blue-800":"bg-gray-100 border-gray-300 text-gray-700"),disabled:P,title:`Cambiar a proporción ${e.label}`,children:e.label},e.value))}),n.jsx("select",{value:m,onChange:e=>oe(e.target.value),className:"w-full form-control hidden md:block",disabled:P,"aria-label":"Seleccionar proporción de aspecto",children:_.map(e=>n.jsx("option",{value:e.value,children:e.label},e.value))})]}),n.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-4",children:[n.jsx("h3",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Visualización"}),n.jsxs("div",{className:"space-y-2",children:[n.jsxs("button",{onClick:V,className:"w-full flex cursor-pointer items-center justify-between p-2 rounded transition-colors "+(g?"bg-blue-100 border border-blue-300 text-blue-800":"bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200"),disabled:P,"aria-pressed":g,"aria-label":"Activar/desactivar grid",children:[n.jsxs("span",{className:"text-sm flex items-center",children:[n.jsx("span",{className:"icon icon-area-blue me-1"})," Grid"]}),n.jsx("span",{className:"text-xs",children:g?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"icon icon-tick icon--xs align-[middle!important] -mt-0.5"})," ","Activo"]}):"Inactivo"})]}),n.jsxs("button",{onClick:q,className:"w-full flex cursor-pointer items-center justify-between p-2 rounded transition-colors "+(y?"bg-blue-100 border border-blue-300 text-blue-800":"bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200"),disabled:P,"aria-pressed":y,"aria-label":"Activar/desactivar sombreado",children:[n.jsxs("span",{className:"text-sm flex items-center",children:[n.jsx("span",{className:"icon icon-comparison-blue me-1"})," ","Sombreado"]}),n.jsx("span",{className:"text-xs",children:y?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"icon icon-tick icon--xs align-[middle!important] -mt-0.5"})," ","Activo"]}):"Inactivo"})]})]})]}),n.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-4",children:[n.jsx("h3",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Ajustes del selector"}),n.jsxs("div",{className:"space-y-2",children:[n.jsx("button",{onClick:Y,className:"w-full p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Centrar selección",disabled:P,"aria-label":"Centrar área de selección",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsxs("span",{children:[n.jsx("span",{className:"icon icon-radio-button icon--sm align-[middle!important] "})," ","Centrar selección"]})})}),n.jsx("button",{onClick:G,className:"w-full p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Reiniciar selección",disabled:P,"aria-label":"Reiniciar área de selección",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsxs("span",{children:[n.jsx("span",{className:"icon icon-refresh icon--sm lign-[middle!important] "})," ","Reset selección"]})})})]}),n.jsxs("div",{className:"mt-3",children:[n.jsx("p",{className:"text-xs text-gray-600 mb-2",children:"Tamaños rápidos"}),n.jsxs("div",{className:"grid grid-cols-2 gap-1",children:[n.jsx("button",{onClick:()=>te(.5),className:"p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",disabled:P,"aria-label":"Selección 50%",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{children:"50%"})})}),n.jsx("button",{onClick:()=>te(.7),className:"p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",disabled:P,"aria-label":"Selección 70%",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{children:"70%"})})}),n.jsx("button",{onClick:()=>te(.9),className:"p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",disabled:P,"aria-label":"Selección 90%",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{children:"90%"})})}),n.jsx("button",{onClick:()=>te(1),className:"p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",disabled:P,"aria-label":"Selección completa",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{children:"100%"})})})]})]})]}),n.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-4",children:[n.jsx("h3",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Transformar imagen"}),n.jsxs("div",{className:"mb-4",children:[n.jsx("p",{className:"text-xs text-gray-600 mb-2",children:"Mover imagen"}),n.jsxs("div",{className:"grid grid-cols-3 gap-1",children:[n.jsx("div",{}),n.jsx("button",{onClick:()=>X(0,-10),className:"p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Mover arriba",disabled:P,"aria-label":"Mover imagen hacia arriba",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{className:"icon icon-arrow-up-blue"})})}),n.jsx("div",{}),n.jsx("button",{onClick:()=>X(-10,0),className:"p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Mover izquierda",disabled:P,"aria-label":"Mover imagen hacia la izquierda",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{className:"icon icon-arrow-left-blue"})})}),n.jsx("button",{onClick:K,className:"p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Centrar y ajustar imagen",disabled:P,"aria-label":"Centrar y ajustar imagen",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{className:"icon icon-radio-button-blue icon-md"})})}),n.jsx("button",{onClick:()=>X(10,0),className:"p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Mover derecha",disabled:P,"aria-label":"Mover imagen hacia la derecha",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{className:"icon icon-arrow-right-blue"})})}),n.jsx("div",{}),n.jsx("button",{onClick:()=>X(0,10),className:"p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Mover abajo",disabled:P,"aria-label":"Mover imagen hacia abajo",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{className:"icon icon-arrow-down-blue"})})}),n.jsx("div",{})]})]}),n.jsxs("div",{className:"mb-4",children:[n.jsxs("p",{className:"text-xs text-gray-600 mb-2",children:["Zoom ",C?C.percentage+"%":""]}),n.jsxs("div",{className:"flex gap-1",children:[n.jsx("button",{onClick:()=>Z(-.2),className:"flex-1 p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Alejar 20%",disabled:P,"aria-label":"Alejar imagen",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{className:"icon icon-zoom-out-blue"})})}),n.jsx("button",{onClick:ne,className:"flex-1 p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Restablecer zoom original",disabled:P,"aria-label":"Restablecer el zoom para que la imagen se vea con su resolución original",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{className:"icon icon-screenshot-blue"})})}),n.jsx("button",{onClick:()=>Z(.2),className:"flex-1 p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Acercar 20%",disabled:P,"aria-label":"Acercar imagen",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{className:"icon icon-zoom-in-blue"})})})]})]}),n.jsxs("div",{className:"mb-4",children:[n.jsx("p",{className:"text-xs text-gray-600 mb-2",children:"Rotación"}),n.jsxs("div",{className:"flex gap-1 *:text-brand-blue-1000 *:text-sm",children:[n.jsx("button",{onClick:()=>J(-90),className:"flex-1 p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Rotar -90°",disabled:P,"aria-label":"Rotar imagen 90 grados a la izquierda",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{className:"icon icon-reply-blue"})})}),n.jsx("button",{onClick:()=>J(-45),className:"flex-1 p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Rotar -45°",disabled:P,"aria-label":"Rotar imagen 45 grados a la izquierda",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{children:"-45°"})})}),n.jsx("button",{onClick:()=>J(45),className:"flex-1 p-2 rounded cursor-pointer transition-colors text-xs bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Rotar +45°",disabled:P,"aria-label":"Rotar imagen 45 grados a la derecha",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{children:"+45°"})})}),n.jsx("button",{onClick:()=>J(90),className:"flex-1 p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Rotar +90°",disabled:P,"aria-label":"Rotar imagen 90 grados a la derecha",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{className:"icon icon-send-arrow-blue"})})})]})]}),n.jsxs("div",{className:"mb-4",children:[n.jsx("p",{className:"text-xs text-gray-600 mb-2",children:"Voltear"}),n.jsxs("div",{className:"flex gap-1",children:[n.jsx("button",{onClick:re,className:"flex-1 p-2 rounded cursor-pointer transition-colors text-sm "+(w.horizontal?"bg-blue-100 border border-blue-300 text-blue-800":"bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200"),title:"Voltear horizontalmente "+(w.horizontal?"(activo)":""),disabled:P,"aria-label":"Voltear imagen horizontalmente","aria-pressed":w.horizontal,children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{className:"icon icon-arrow-left-right-blue border border-brand-blue-1000 rounded"})})}),n.jsx("button",{onClick:ae,className:"flex-1 p-2 cursor-pointer rounded transition-colors text-sm "+(w.vertical?"bg-blue-100 border border-blue-300 text-blue-800":"bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200"),title:"Voltear verticalmente "+(w.vertical?"(activo)":""),disabled:P,"aria-label":"Voltear imagen verticalmente","aria-pressed":w.vertical,children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsx("span",{className:"icon icon-arrow-up-down-blue border border-brand-blue-1000 rounded"})})})]})]}),n.jsx("button",{onClick:()=>{I.reset(),k({horizontal:!1,vertical:!1})},className:"w-full p-2 rounded cursor-pointer transition-colors text-sm bg-gray-100 border border-gray-300 text-gray-700 hover:bg-gray-200",title:"Reiniciar transformaciones",disabled:P,"aria-label":"Reiniciar todas las transformaciones de la imagen",children:n.jsx("div",{className:"flex items-center justify-center",children:n.jsxs("span",{children:[n.jsx("span",{className:"icon icon-refresh-blue icon--sm align-[middle!important] "})," ","Reiniciar ajustes"]})})})]})]})})]})]}):null}function Bt({currentPage:t,totalPages:r,onPageChange:a,disabled:o=!1}){if(!r||r<=1)return null;const i=(()=>{const e=[],n=[],a=Math.max(1,t-2),o=Math.min(r,t+2);for(let t=a;t<=o;t++)e.push(t);return a>1&&(n.push(1),a>2&&n.push("...")),n.push(...e),o<r&&(o<r-1&&n.push("..."),n.push(r)),n})();return n.jsxs("div",{className:"flex items-center justify-center space-x-2 py-4",children:[n.jsxs("button",{onClick:()=>{t>1&&a(t-1)},disabled:o||t<=1,className:`\n px-3 py-2 text-sm font-medium rounded-md transition-colors disabled:cursor-default cursor-pointer\n ${o||t<=1?"text-gray-400 bg-gray-100 cursor-not-allowed":"text-gray-700 bg-white border border-gray-300 hover:bg-gray-50 focus:ring-2 focus:ring-blue-500"}\n `,children:[n.jsx("span",{className:"icon icon-arrow-left-white icon--sm"})," Anterior"]}),n.jsx("div",{className:"flex space-x-1",children:i.map((r,i)=>n.jsx(e.Fragment,{children:"..."===r?n.jsx("span",{className:"px-3 py-2 text-sm text-gray-500",children:"..."}):n.jsx("button",{onClick:()=>(e=>{e!==t&&a(e)})(r),disabled:o,className:`\n px-3 py-2 text-sm font-medium rounded-md transition-colors disabled:cursor-default cursor-pointer\n ${r===t?"bg-blue-600 text-white border border-blue-600":o?"text-gray-400 bg-gray-100 cursor-not-allowed":"text-gray-700 bg-white border border-gray-300 hover:bg-gray-50 focus:ring-2 focus:ring-blue-500"}\n `,children:r})},`page-${r}-${i}`))}),n.jsxs("button",{onClick:()=>{t<r&&a(t+1)},disabled:o||t>=r,className:`\n px-3 py-2 text-sm font-medium rounded-md transition-colors disabled:cursor-default cursor-pointer\n ${o||t>=r?"text-gray-400 bg-gray-100 cursor-not-allowed":"text-gray-700 bg-white border border-gray-300 hover:bg-gray-50 focus:ring-2 focus:ring-blue-500"}\n `,children:["Siguiente ",n.jsx("span",{className:"icon icon-arrow-right-white icon--sm"})]}),n.jsxs("div",{className:"text-sm text-gray-500 ml-4",children:["Página ",t," de ",r]})]})}function Vt({isOpen:e,onClose:t}){return e?n.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",style:{zIndex:9999},children:n.jsxs("div",{className:"bg-white rounded-lg p-6 max-w-md mx-4 shadow-xl",children:[n.jsxs("div",{className:"flex items-center mb-4",children:[n.jsx("svg",{className:"w-6 h-6 text-red-600 mr-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})}),n.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:"Sesión Expirada"})]}),n.jsxs("div",{className:"mb-6",children:[n.jsx("p",{className:"text-gray-600 mb-2",children:"Su sesión ha expirado por seguridad."}),n.jsx("p",{className:"text-gray-600",children:"Es necesario recargar la página para obtener un nuevo token de acceso."})]}),n.jsx("div",{className:"flex justify-end space-x-3",children:n.jsx("button",{onClick:t,className:"px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-colors",children:"Recargar Página"})})]})}):null}function qt(){const[t,n]=e.useState(!1),[r,a]=e.useState(null);return{deleteImg:async e=>{if(!e)return a("ID de imagen no proporcionado"),!1;n(!0),a(null);try{const t=await async function(e){try{return await P({endpoint:`/assets/${e}`,method:"DELETE",basePath:I,useJWT:!0})}catch(r){throw A(r)}}(e);return!1!==t.success}catch(t){return a(t.message),!1}finally{n(!1)}},loading:t,error:r,reset:()=>{a(null)}}}const Qt=new Map;function Kt({apiKey:t,prod:r=!1,url:a=!0,features:o=["gallery","upload","cropper"],modeUI:i="full",ui:l={showActions:["select","download","copy","delete","crop","variants"],hideActions:[],theme:"light",language:"es",compactMode:!1,showTabs:!0},callbacks:s={},instanceId:c=null,itemsPerPage:u=10}){sessionStorage.removeItem("limbo_stock_selectedService"),sessionStorage.removeItem("limbo_stock_dynamicForm"),sessionStorage.removeItem("limbo_stock_stockImages"),sessionStorage.removeItem("limbo_stock_currentPage"),sessionStorage.removeItem("limbo_stock_paginationInfo"),sessionStorage.removeItem("limbo_portals_searchName"),sessionStorage.removeItem("limbo_portals_limit"),sessionStorage.removeItem("limbo_portals_currentPage"),sessionStorage.removeItem("limbo_portals_images"),sessionStorage.removeItem("limbo_portals_portalResults"),sessionStorage.removeItem("limbo_portals_paginationInfo");const d=(()=>{switch(i){case"gallery-only":return["gallery"];case"upload-only":return["upload"];case"crop-only":return["cropper"];case"ia-only":return["ia"];default:return o}})(),[f,p]=e.useState(d.includes("gallery")?"gallery":d.includes("upload")?"upload":d.includes("cropper")?"cropper":d.includes("ia")?"ia":d[0]||"gallery"),[m,h]=e.useState(null),[g,b]=e.useState(1),{isTokenExpired:y,handleTokenExpiredClose:v}=function(){const[t,n]=e.useState(!1),r=e.useCallback(e=>{if(401===e?.response?.status){const t=e.response.data;if("token_expired"===t?.error||t?.message?.includes("expired")||t?.message?.includes("caducado")||t?.error?.includes("expired"))return n(!0),!0}return!1},[]),a=e.useCallback(()=>{n(!1),alert("El token ha expirado. La página se recargará para obtener un nuevo token."),window.location.reload()},[]);return e.useEffect(()=>{const e=e=>{e.detail&&e.detail.error&&r(e.detail.error)};return window.addEventListener("tokenExpiredError",e),()=>{window.removeEventListener("tokenExpiredError",e)}},[r]),{isTokenExpired:t,checkTokenExpiration:r,handleTokenExpiredClose:a}}(),{upload:w,loading:k,error:x,uploadedImage:S,reset:E}=function(){const[t,n]=e.useState(!1),[r,a]=e.useState(null),[o,i]=e.useState(null);return{upload:async(e,t=null)=>{if(!e)return a("No se ha proporcionado ningún archivo"),null;n(!0),a(null),i(null);try{const n=await M(e,t,!1),r=n.result||n;return i(r),r}catch(r){return a(r.message),null}finally{n(!1)}},loading:t,error:r,uploadedImage:o,reset:()=>{a(null),i(null)}}}(),{deleteImg:T,loading:_,error:N,reset:P}=qt(),{images:z,loading:R,error:j,pagination:A,invalidateCache:I,setImages:$}=function(t,n=!1,r={}){const[a,o]=e.useState([]),[i,l]=e.useState(!0),[s,c]=e.useState(null),[u,d]=e.useState(null),[f,p]=e.useState(0),m=e.useMemo(()=>JSON.stringify(r),[r]);return e.useEffect(()=>{const e=`${m}`,t=Qt.get(e),n=Date.now();if(t&&n-t.timestamp<6e5)return o(t.data),d(t.pagination||null),void l(!1);let a=!0;return(async()=>{if(f>=3)a&&(c("Error de autenticación: Verifica tus credenciales API"),l(!1));else try{const t=await L(r);if(!a)return;const i=t.result||[],l=t.pagination||null;o(i),d(l),c(null),p(0),Qt.set(e,{data:i,pagination:l,timestamp:n})}catch(t){a&&(c(t.message),p(e=>e+1))}finally{a&&l(!1)}})(),()=>{a=!1}},[t,n,m,f,r]),{images:a,loading:i,error:s,pagination:u,setImages:o,invalidateCache:()=>{Qt.delete(`${m}`)}}}(t,r,{limit:u,page:g}),{refreshVariants:O}=D(),F=e=>!l.hideActions?.includes(e)&&(!!l.showActions?.includes(e)||!(l.showActions?.length>0)),H=[{id:"gallery",label:"Galería",feature:"gallery"},{id:"upload",label:"Subir nueva",feature:"upload"},{id:"cropper",label:"Recortador",hideNonActive:!0,feature:"cropper"}].filter(e=>d.includes(e.feature)),B=async e=>{if(!confirm("¿Estás seguro de que quieres eliminar esta imagen?"))return;await T(e)&&(I(),b(1),$(t=>t.filter(t=>t.id!==e)),m&&m.id===e&&(h(null),p("gallery")))};return n.jsxs("div",{className:"limbo-card-parent max-w-7xl mx-auto my-8 p-6 shadow-xl w-full",children:[l.showTabs&&n.jsx(C,{tabs:H,active:f,onChange:e=>{p(e),"upload"!==e&&E(),"gallery"!==e&&P()}}),j&&n.jsxs("div",{className:"alert alert-danger",children:["Error al cargar imágenes: ",j]}),N&&n.jsxs("div",{className:"alert alert-danger",children:["Error al eliminar imagen: ",N]}),"gallery"===f&&n.jsxs(n.Fragment,{children:[_&&n.jsx(U,{text:"Eliminando imagen..."}),n.jsx(W,{apiKey:t,prod:r,onSelect:e=>{s.onSelect&&s.onSelect({assetId:e.id,url:e.url,fileName:e.filename,mime:e.mime_type,width:e.width,height:e.height,instanceId:c})},onCrop:e=>{h(e),d.includes("cropper")&&p("cropper")},onDelete:F("delete")?B:null,deletingId:_,images:z,loading:R,error:j,allowedActions:{select:F("select"),download:F("download"),copy:F("copy"),delete:F("delete"),crop:F("crop")}}),A&&!R&&n.jsx(Bt,{currentPage:A.page||g,totalPages:A.pages||1,onPageChange:e=>{b(e)},disabled:R||_})]}),"upload"===f&&n.jsxs("div",{children:[k&&n.jsx(U,{text:"Subiendo imagen..."}),x&&n.jsxs("div",{className:"alert alert-danger",children:["Error al subir imagen: ",x]}),S&&n.jsxs("div",{className:"alert alert-success",children:["✅ Imagen subida correctamente: ",S.filename]}),n.jsx(le,{onUpload:async e=>{const t=await w(e);t&&(I(),b(1),$(e=>[t,...e]),p("gallery"),s.onUpload&&s.onUpload({assetId:t.id,url:t.url,fileName:t.filename,mime:t.mime_type,width:t.width,height:t.height,instanceId:c}))},disabled:k,apiKey:t,prod:r})]}),"cropper"===f&&n.jsx(Wt,{image:m,onSave:()=>{I(),h(null),p("gallery")},onCancel:()=>{h(null),p("gallery")},onDelete:()=>B(m?.id),deleting:_,onVariantCreated:(e,t)=>{O(e)}}),n.jsx(Vt,{isOpen:y,onClose:v})]})}class Yt{constructor(e,t,n,r){this.id=e,this.config=t,this.eventManager=n,this.modalManager=r,this.root=null,this.container=null,this.modal=null,this.mounted=!1,this.destroyed=!1,this.button=null,this._validateConfig(),this._initialize()}_initialize(){"embed"===this.config.mode?this.mount():"button"===this.config.mode&&this._createButton(),this._emitDOMEvent("ready",{instance:this,config:this.config,timestamp:Date.now()})}mount(){if(this.mounted||this.destroyed)return this;if(this.container=this._resolveContainer(),!this.container)return this.eventManager.emit("error",{instanceId:this.id,error:"Container not found"}),this;try{this.root=k.createRoot(this.container),this.root.render(this._renderApp()),this.mounted=!0,this.eventManager.emit("ready",{instance:this})}catch(e){this.eventManager.emit("error",{instanceId:this.id,error:e.message})}return this}unmount(){return this.mounted?(this.root&&(this.root.unmount(),this.root=null),"button"===this.config.mode&&this.button,this.mounted=!1,this):this}open(){return"modal"!==this.config.mode&&"button"!==this.config.mode||(this.modal||this._createModal(),this.modal&&!this.modal.isOpened()&&(this.modal.open(),this.eventManager.emit("modal:open",{instance:this}))),this}close(){return this.modal&&this.modal.isOpened()&&(this.modal.close(),this.eventManager.emit("modal:close",{instance:this})),this}updateConfig(e){return this.config={...this.config,...e},this.mounted&&this.root.render(this._renderApp()),this.eventManager.emit("config:updated",{instance:this,newConfig:e}),this}destroy(){this.destroyed||(this.unmount(),this.modal&&(this.modal.destroy(),this.modal=null),this.button&&this.button.parentNode&&(this.button.parentNode.removeChild(this.button),this.button=null),this.eventManager.emit("destroy",{instance:this}),this.container=null,this.config=null,this.eventManager=null,this.modalManager=null,this.destroyed=!0)}getId(){return this.id}getMode(){return this.config.mode}isMounted(){return this.mounted}isDestroyed(){return this.destroyed}getContainer(){return this.container}getConfig(){return{...this.config}}isContainerInDOM(){return this.container&&document.contains(this.container)}_createModal(){if(this.modalManager&&"modal"===this.config.mode&&(this.modal=this.modalManager.createModal({title:this.config.title||"Limbo Image Manager",size:this.config.modalSize||"large",onOpen:()=>{const e={instance:this,mode:"modal",timestamp:Date.now()};this._emitDOMEvent("modal:open",e),this.config.callbacks?.onOpen&&this.config.callbacks.onOpen(e)},onClose:()=>{const e={instance:this,mode:"modal",timestamp:Date.now()};this._emitDOMEvent("modal:close",e),this.config.callbacks?.onClose&&this.config.callbacks.onClose(e),this.config.autoDestroy&&this.destroy()},onDestroy:()=>{this.modal=null}}),this.modal)){const e=this.modal.getBodyContainer();this.root=k.createRoot(e),this.root.render(this._renderApp()),this.mounted=!0}}_createButton(){if(this.container||(this.container=this._resolveContainer()),!this.container)return void this.eventManager.emit("error",{instanceId:this.id,error:"Container not found for button mode"});const e=document.createElement("button");e.type="button",e.className="limbo-trigger-button",e.textContent=this.config.buttonText||"Abrir Limbo",e.style.cssText="\n background: #001978;\n color: white;\n border: none;\n padding: 10px 20px;\n border-radius: 6px;\n cursor: pointer;\n font-family: inherit;\n font-size: 14px;\n font-weight: 500;\n transition: all 0.2s ease;\n ",e.addEventListener("mouseenter",()=>{e.style.backgroundColor="#334793",e.style.transform="translateY(-1px)"}),e.addEventListener("mouseleave",()=>{e.style.backgroundColor="#001978",e.style.transform="translateY(0)"}),e.addEventListener("click",()=>{this.open()}),this.container.appendChild(e),this.button=e,this.mounted=!0}_resolveContainer(){const{container:e}=this.config;return e?"string"==typeof e?document.querySelector(e):e instanceof Element?e:null:null}_renderApp(){return e.createElement("div",{id:`limbo-component-container-${this.id}`,className:"limbo-instance limbo-component-container-wrapper py-3","data-limbo-id":this.id,"data-limbo-mode":this.config.mode},e.createElement(Kt,{apiKey:this.config.apiKey,prod:this.config.prod||!1,url:this.config.url,features:this.config.features,modeUI:this.config.modeUI||"full",ui:this.config.ui,callbacks:this._createCallbacks(),instanceId:this.id}))}_createCallbacks(){return{onSelect:e=>{const t=this._createStandardPayload(e,"select");this.config.callbacks?.onSelect&&this.config.callbacks.onSelect(t),this._emitDOMEvent("select",t)},onUpload:e=>{const t=this._createStandardPayload(e,"upload");this.config.callbacks?.onUpload&&this.config.callbacks.onUpload(t),this._emitDOMEvent("upload",t)},onError:e=>{const t={instance:this,error:{message:e.message||"Unknown error",code:e.code||"UNKNOWN",timestamp:Date.now()}};this.config.callbacks?.onError&&this.config.callbacks.onError(t.error),this._emitDOMEvent("error",t)},onClose:()=>{const e={instance:this,timestamp:Date.now()};this.config.callbacks?.onClose&&this.config.callbacks.onClose(),this._emitDOMEvent("close",e)}}}_createStandardPayload(e,t){const n={instance:this,eventType:t,timestamp:Date.now(),instanceId:this.id,mode:this.config.mode,features:this.config.features};return e&&(e.assetId||e.id?(n.assetId=e.assetId||e.id,n.variants=e.variants||[],n.master=e.master||{urlSigned:e.url||e.urlSigned,width:e.width,height:e.height,mime:e.mime||e.mimeType},n.fileName=e.fileName||e.name,n.mime=e.mime||e.mimeType,n.width=e.width,n.height=e.height,n.fileBlob=e.fileBlob||e.file,n.metadata={uploadedBy:e.uploadedBy,uploadedAt:e.uploadedAt||e.timestamp,size:e.size,...e.metadata}):Object.assign(n,e)),n}_emitDOMEvent(e,t){const n=new CustomEvent(`limbo:${e}`,{detail:t,bubbles:!0,cancelable:!0});(this.getContainer()||document).dispatchEvent(n),this.eventManager.emit(e,t)}_validateConfig(){if(!(this.config.auth?.apiKey||this.config.auth?.publicKey||this.config.apiKey||this.config.publicKey))throw new Error(`LimboInstance ${this.id}: Authentication is required. Provide either auth.publicKey (recommended) or auth.apiKey (for server-side only)`);if((this.config.auth?.apiKey||this.config.apiKey)&&"undefined"!=typeof window&&console.warn("⚠️ SECURITY WARNING: API Key detected in client-side code.\nThis is a security risk! Use publicKey instead for client applications.\nAPI Keys should only be used in server-side environments."),!["embed","modal","button"].includes(this.config.mode))throw new Error(`LimboInstance ${this.id}: invalid mode ${this.config.mode}`);if("embed"===this.config.mode&&!this.config.container)throw new Error(`LimboInstance ${this.id}: container is required for embed mode`);if("button"===this.config.mode&&!this.config.container)throw new Error(`LimboInstance ${this.id}: container is required for button mode`)}}class Gt{constructor(){this.instances=new Map,this.counter=0}create(e,t,n){const r="limbo-"+ ++this.counter,a=new Yt(r,e,t,n);return this.instances.set(r,a),a}get(e){return this.instances.get(e)}getAll(){return Array.from(this.instances.values())}getActive(){return this.getAll().filter(e=>e.isMounted())}destroy(e){const t=this.instances.get(e);return!!t&&(t.destroy(),this.instances.delete(e),!0)}destroyAll(){this.instances.forEach(e=>e.destroy()),this.instances.clear()}cleanupOrphans(){const e=[];return this.instances.forEach((t,n)=>{t.isContainerInDOM()||e.push(n)}),e.forEach(e=>this.destroy(e)),e.length}getStats(){const e=this.getAll();return{total:e.length,active:e.filter(e=>e.isMounted()).length,embed:e.filter(e=>"embed"===e.getMode()).length,modal:e.filter(e=>"modal"===e.getMode()).length,button:e.filter(e=>"button"===e.getMode()).length}}}class Xt{constructor(){this.config=null,this.instances=new Map,this.observer=null,this.initialized=!1}configure(e,t,n){return this.config={dataset:e.dataset||"data-limbo-input-file",return:e.return||"url",mode:e.mode||"modal",features:e.features||["gallery","upload","cropper"],crop:e.crop||"free",quality:e.quality||.9,format:e.format||"webp",modeUI:e.modeUI||"full",modalSize:e.modalSize||"medium",theme:e.theme||"light",compact:e.compact||!1,maxSize:e.maxSize||"10MB",formats:e.formats||["jpg","jpeg","png","webp"],minWidth:e.minWidth||null,minHeight:e.minHeight||null,maxWidth:e.maxWidth||null,maxHeight:e.maxHeight||null,buttonText:e.buttonText||"Seleccionar Imagen",buttonClass:e.buttonClass||"limbo-auto-button",buttonStyle:e.buttonStyle||"primary",showPreview:!1!==e.showPreview,allowMultiple:e.allowMultiple||!1,autoAssign:!1!==e.autoAssign,...e},this.configManager=t,this.eventManager=n,this._initialize(),this}cleanup(){this.observer&&(this.observer.disconnect(),this.observer=null),this.instances.forEach(({input:e,button:t})=>{this._restoreInput(e,t)}),this.instances.clear(),this.config=null,this.initialized=!1}getStats(){return{configured:null!==this.config,totalInputs:this.instances.size,dataset:this.config?.dataset,returnType:this.config?.return}}_initialize(){this.initialized||(this._scanExistingInputs(),this._setupObserver(),this.initialized=!0,this.eventManager.emit("autoInputs:initialized",{config:this.config,inputsFound:this.instances.size}))}_scanExistingInputs(){const e=`input[${this.config.dataset}]`;document.querySelectorAll(e).forEach(e=>this._processInput(e))}_processInput(e){const t=this._getInputId(e);if(this.instances.has(t))return;if(!this._validateInput(e))return;const n=this._createButton(e);this._hideInput(e),this._insertButton(e,n),this.instances.set(t,{input:e,button:n,config:this._getInputConfig(e)}),this.eventManager.emit("autoInputs:processed",{inputId:t,input:e,button:n})}_createButton(e){const t=document.createElement("button"),n=this._getInputConfig(e);t.type="button",t.textContent=n.buttonText||this.config.buttonText;const r=[this.config.buttonClass];return n.buttonClass&&n.buttonClass!==this.config.buttonClass&&r.push(n.buttonClass),t.className=r.join(" "),this._styleButton(t,n),this._attachButtonEvents(t,e),t.setAttribute("aria-label",n.buttonText||this.config.buttonText),t.setAttribute("data-limbo-trigger","true"),t.setAttribute("data-limbo-input-id",n.inputId),n.disabled&&(t.disabled=!0),t}_styleButton(e,t){const n=t.buttonStyle||this.config.buttonStyle,r=t.theme||this.config.theme,a=t.compact||this.config.compact,o={border:"none",borderRadius:"8px",cursor:"pointer",fontFamily:"inherit",fontSize:a?"12px":"14px",fontWeight:"500",transition:"all 0.2s ease",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:a?"6px 12px":"8px 16px",textDecoration:"none",userSelect:"none"},i={primary:{backgroundColor:"dark"===r?"#3b82f6":"#001978",color:"white",hoverBg:"dark"===r?"#2563eb":"#334793"},secondary:{backgroundColor:"dark"===r?"#374151":"#f3f4f6",color:"dark"===r?"#f9fafb":"#374151",border:"1px solid "+("dark"===r?"#4b5563":"#d1d5db"),hoverBg:"dark"===r?"#4b5563":"#e5e7eb"},outline:{backgroundColor:"transparent",color:"dark"===r?"#3b82f6":"#001978",border:"2px solid "+("dark"===r?"#3b82f6":"#001978"),hoverBg:"dark"===r?"#3b82f6":"#001978",hoverColor:"white"},ghost:{backgroundColor:"transparent",color:"dark"===r?"#f9fafb":"#374151",hoverBg:"dark"===r?"#374151":"#f3f4f6"}},l=i[n]||i.primary;Object.assign(e.style,{...o,...l});const s=l.backgroundColor,c=l.color;e.addEventListener("mouseenter",()=>{e.style.backgroundColor=l.hoverBg||l.backgroundColor,l.hoverColor&&(e.style.color=l.hoverColor),e.style.transform="translateY(-1px)",e.style.boxShadow="0 4px 12px rgba(0, 0, 0, 0.15)"}),e.addEventListener("mouseleave",()=>{e.style.backgroundColor=s,e.style.color=c,e.style.transform="translateY(0)",e.style.boxShadow="none"}),t.disabled&&(e.style.opacity="0.5",e.style.cursor="not-allowed")}_attachButtonEvents(e,t){e.addEventListener("click",e=>{e.preventDefault(),this._handleButtonClick(t)})}_handleButtonClick(e){const t=this._getInputConfig(e),n=this._createModalConfig(t);this.eventManager.emit("autoInputs:modalRequest",{input:e,config:n,callback:async t=>await this._handleImageSelection(e,t)})}async _handleImageSelection(e,t){const n=this._getInputConfig(e);try{const r=await this._formatImageData(t,n);!1!==n.autoAssign&&(e.value=r),e.dispatchEvent(new Event("change",{bubbles:!0})),e.dispatchEvent(new CustomEvent("limbo:resultReady",{detail:{imageData:t,input:e,value:r,config:n,assignment:{format:n.return,smartAssign:!1!==n.smartAssign,autoAssign:!1!==n.autoAssign},legacy:{imageData:t,formatted:this._createFormattedResult(t,n)}},bubbles:!0})),e.dispatchEvent(new CustomEvent("limbo:imageSelected",{detail:{imageData:t,input:e,value:r,config:n,formatted:this._createFormattedResult(t,n)},bubbles:!0})),this.eventManager.emit("autoInputs:imageSelected",{input:e,imageData:t,value:r,config:n})}catch(r){console.error("Error handling image selection:",r),e.dispatchEvent(new CustomEvent("limbo:error",{detail:{error:r.message,input:e,imageData:t,config:n},bubbles:!0})),this._handleImageSelectionLegacy(e,t)}}_handleImageSelectionLegacy(e,t){const n=this._getInputConfig(e),r=this._formatImageData(t,n);!1!==n.autoAssign&&(e.value=r),e.dispatchEvent(new Event("change",{bubbles:!0})),e.dispatchEvent(new CustomEvent("limbo:imageSelected",{detail:{imageData:t,input:e,value:r,config:n,formatted:this._createFormattedResult(t,n)},bubbles:!0})),this.eventManager.emit("autoInputs:imageSelected",{input:e,imageData:t,value:r,config:n})}_createFormattedResult(e,t){return{url:e.url||e.path||"",base64:e.base64||e.dataUrl||"",assetId:e.assetId||e.id||"",fileName:e.fileName||e.filename||"",object:{url:e.url||e.path,assetId:e.assetId||e.id,fileName:e.fileName||e.filename,mime:e.mime||e.mime_type,width:e.width,height:e.height,size:e.size||e.file_size,created:e.created_at||e.created,metadata:e.metadata||{}},json:JSON.stringify({url:e.url||e.path,assetId:e.assetId||e.id,fileName:e.fileName||e.filename,mime:e.mime||e.mime_type,width:e.width,height:e.height,size:e.size||e.file_size}),metadata:{width:e.width,height:e.height,size:e.size||e.file_size,format:e.format||e.mime_type,quality:t.quality||this.config.quality,aspectRatio:e.width&&e.height?e.width/e.height:null}}}async _formatImageData(e,t=null){switch((t||{}).return||this.config.return||"url"){case"url":return e.url||e.path||"";case"base64":return e.base64||e.dataUrl||"";case"assetId":return e.assetId||e.id||"";case"fileName":return e.fileName||e.filename||"";case"object":return JSON.stringify({url:e.url||e.path,assetId:e.assetId||e.id,fileName:e.fileName||e.filename,mime:e.mime||e.mime_type,width:e.width,height:e.height,size:e.size||e.file_size,created:e.created_at||e.created});default:return JSON.stringify({url:e.url||e.path,assetId:e.assetId||e.id,fileName:e.fileName||e.filename,mime:e.mime||e.mime_type,width:e.width,height:e.height,size:e.size||e.file_size})}}_createModalConfig(e){return{mode:e.mode||this.config.mode||"modal",modeUI:e.modeUI||this.config.modeUI||"full",features:e.features||this.config.features,modalSize:e.modalSize||this.config.modalSize||"medium",title:e.description||this.config.title||"Seleccionar imagen",cropper:this._getCropperConfig(e),ui:{showActions:this._getUIActions(e),hideActions:[],showTabs:this._shouldShowTabs(e),theme:e.theme||this.config.theme,compact:e.compact||this.config.compact,showPreview:void 0!==e.showPreview?e.showPreview:this.config.showPreview},validation:{maxSize:e.maxSize||this.config.maxSize,formats:e.formats||this.config.formats,minWidth:e.minWidth||this.config.minWidth,minHeight:e.minHeight||this.config.minHeight,maxWidth:e.maxWidth||this.config.maxWidth,maxHeight:e.maxHeight||this.config.maxHeight,required:e.required||!1},behavior:{allowMultiple:e.allowMultiple||this.config.allowMultiple,closeOnSelect:!0,autoAssign:void 0!==e.autoAssign?e.autoAssign:this.config.autoAssign},returnConfig:{format:e.return||this.config.return,quality:e.quality||this.config.quality,outputFormat:e.format||this.config.format},inputMeta:{inputId:e.inputId,inputName:e.inputName,inputType:e.inputType,placeholder:e.placeholder}}}_getCropperConfig(e){const t=e.crop||this.config.crop;if(!t||"none"===t||"false"===t)return null;if("free"===t)return{aspectRatio:null,quality:e.quality||this.config.quality,format:e.format||this.config.format};const n={"1:1":1,"16:9":16/9,"4:3":4/3,"3:2":1.5,"2:1":2,square:1,landscape:16/9,portrait:3/4};if(n[t])return{aspectRatio:n[t],quality:e.quality||this.config.quality,format:e.format||this.config.format,minCropBoxWidth:e.minWidth||this.config.minWidth,minCropBoxHeight:e.minHeight||this.config.minHeight};if("string"==typeof t&&t.includes(":")){const[n,r]=t.split(":").map(Number);if(!isNaN(n)&&!isNaN(r)&&0!==r)return{aspectRatio:n/r,quality:e.quality||this.config.quality,format:e.format||this.config.format}}const r=parseFloat(t);return!isNaN(r)&&r>0?{aspectRatio:r,quality:e.quality||this.config.quality,format:e.format||this.config.format}:"object"==typeof t?{quality:e.quality||this.config.quality,format:e.format||this.config.format,...t}:null}_shouldShowTabs(e){const t=e.modeUI||this.config.modeUI||"full",n=e.features||this.config.features;return!["gallery-only","upload-only","crop-only","ia-only"].includes(t)&&(n&&n.length>1)}_getUIActions(e){const t=e.modeUI||this.config.modeUI||"full",n=e.features||this.config.features;let r=[];switch(t){case"gallery-only":case"upload-only":r=["select"];break;case"crop-only":r=["select","crop"];break;default:r=["select"],n.includes("cropper")&&r.push("crop"),n.includes("gallery")&&(r.push("download","copy"),this.config.allowDelete&&r.push("delete"))}return r}_getInputId(e){return e.id||e.name||`limbo-auto-${Date.now()}-${Math.random()}`}_validateInput(e){return e instanceof HTMLInputElement}_getInputConfig(e){const t=e=>e?e.split(",").map(e=>e.trim()):null,n=e=>{if(!e)return null;const t=e.match(/^(\d+(?:\.\d+)?)(MB|KB|B)?$/i);if(!t)return null;const n=parseFloat(t[1]);switch((t[2]||"B").toUpperCase()){case"MB":return 1024*n*1024;case"KB":return 1024*n;default:return n}},r=(e,t=!1)=>null===e?t:"true"===e||"1"===e||""===e,a=e=>e?parseFloat(e):null;return{return:e.getAttribute("data-limbo-return")||this.config.return,mode:e.getAttribute("data-limbo-mode")||this.config.mode,features:t(e.getAttribute("data-limbo-features"))||this.config.features,crop:e.getAttribute("data-limbo-crop")||this.config.crop,quality:a(e.getAttribute("data-limbo-quality"))||this.config.quality,format:e.getAttribute("data-limbo-format")||this.config.format,modeUI:e.getAttribute("data-limbo-mode-ui")||this.config.modeUI,modalSize:e.getAttribute("data-limbo-modal-size")||this.config.modalSize,theme:e.getAttribute("data-limbo-theme")||this.config.theme,compact:r(e.getAttribute("data-limbo-compact"),this.config.compact),maxSize:n(e.getAttribute("data-limbo-max-size"))||n(this.config.maxSize),formats:t(e.getAttribute("data-limbo-formats"))||this.config.formats,minWidth:a(e.getAttribute("data-limbo-min-width"))||this.config.minWidth,minHeight:a(e.getAttribute("data-limbo-min-height"))||this.config.minHeight,maxWidth:a(e.getAttribute("data-limbo-max-width"))||this.config.maxWidth,maxHeight:a(e.getAttribute("data-limbo-max-height"))||this.config.maxHeight,buttonText:e.getAttribute("data-limbo-button-text")||this.config.buttonText,buttonStyle:e.getAttribute("data-limbo-button-style")||this.config.buttonStyle,buttonClass:e.getAttribute("data-limbo-button-class")||this.config.buttonClass,showPreview:r(e.getAttribute("data-limbo-show-preview"),this.config.showPreview),allowMultiple:r(e.getAttribute("data-limbo-allow-multiple"),this.config.allowMultiple),autoAssign:r(e.getAttribute("data-limbo-auto-assign"),this.config.autoAssign),placeholder:e.getAttribute("data-limbo-placeholder"),description:e.getAttribute("data-limbo-description"),required:r(e.getAttribute("data-limbo-required"),!1),disabled:r(e.getAttribute("data-limbo-disabled"),!1),inputId:e.id||e.name||this._generateInputId(e),inputName:e.name,inputType:e.type}}_generateInputId(){return`limbo-auto-input-${Date.now()}-${Math.random().toString(36).substr(2,9)}`}_hideInput(e){e.style.display="none"}_insertButton(e,t){e.parentNode.insertBefore(t,e.nextSibling)}_restoreInput(e,t){e.style.display="",t&&t.parentNode&&t.parentNode.removeChild(t)}_setupObserver(){this.observer=new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&this._scanNodeForInputs(e)})})}),this.observer.observe(document.body,{childList:!0,subtree:!0})}_scanNodeForInputs(e){const t=`input[${this.config.dataset}]`;e.matches&&e.matches(t)&&this._processInput(e);const n=e.querySelectorAll&&e.querySelectorAll(t);n&&n.forEach(e=>this._processInput(e))}}class Zt{constructor(){this.listeners=new Map}emit(e,t={}){this._emitDOMEvent(e,t),this._executeListeners(e,t)}on(e,t){return this.listeners.has(e)||this.listeners.set(e,[]),this.listeners.get(e).push(t),()=>this.off(e,t)}off(e,t){const n=this.listeners.get(e);if(n){const e=n.indexOf(t);e>-1&&n.splice(e,1)}}cleanup(){this.listeners.clear()}_emitDOMEvent(e,t){const n=new CustomEvent(`limbo:${e}`,{detail:{...t,timestamp:Date.now()},bubbles:!0,cancelable:!0});(t.instance?.getContainer()||document).dispatchEvent(n)}_executeListeners(e,t){const n=this.listeners.get(e);n&&n.forEach(n=>{try{n(t)}catch(r){console.error(`Error executing listener for ${e}:`,r)}})}getStats(){const e={};return this.listeners.forEach((t,n)=>{e[n]=t.length}),e}}class Jt{constructor(){this.activeModals=new Set,this.zIndexBase=1e4,this.focusableSelectors=["button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"]):not([disabled])',"a[href]"].join(", "),this.initialized=!1,this._initGlobalListeners()}createModal(e){const t=new en(this._generateModalId(),e,this);return this.activeModals.add(t),t}closeModal(e){const t=this._findModal(e);return!!t&&(t.close(),!0)}closeAllModals(){this.activeModals.forEach(e=>e.close()),this.activeModals.clear()}getActiveModal(){return Array.from(this.activeModals).pop()||null}getStats(){return{active:this.activeModals.size,nextZIndex:this._getNextZIndex()}}_generateModalId(){return`limbo-modal-${Date.now()}-${Math.random().toString(36).substr(2,9)}`}_findModal(e){return Array.from(this.activeModals).find(t=>t.getId()===e)}_getNextZIndex(){return this.zIndexBase+10*this.activeModals.size}_removeModal(e){this.activeModals.delete(e)}_handleGlobalKeydown(e){const t=this.getActiveModal();t&&("Escape"===e.key&&(e.preventDefault(),t.close()),"Tab"===e.key&&this._handleTabTrap(e,t))}_handleTabTrap(e,t){const n=t.getFocusableElements();if(0===n.length)return;const r=n[0],a=n[n.length-1];e.shiftKey?document.activeElement===r&&(e.preventDefault(),a.focus()):document.activeElement===a&&(e.preventDefault(),r.focus())}_initGlobalListeners(){this.initialized||(this.globalKeydownHandler=e=>this._handleGlobalKeydown(e),document.addEventListener("keydown",this.globalKeydownHandler),this.initialized=!0)}destroy(){this.closeAllModals(),this.initialized&&this.globalKeydownHandler&&(document.removeEventListener("keydown",this.globalKeydownHandler),this.initialized=!1,this.globalKeydownHandler=null)}}class en{constructor(e,t,n){this.id=e,this.config={title:t.title||"Limbo",content:t.content||null,showCloseButton:!1!==t.showCloseButton,backdrop:!1!==t.backdrop,keyboard:!1!==t.keyboard,focus:!1!==t.focus,animation:!1!==t.animation,size:t.size||"large",onOpen:t.onOpen||null,onClose:t.onClose||null,onDestroy:t.onDestroy||null,...t},this.manager=n,this.element=null,this.backdrop=null,this.isOpen=!1,this.previousFocus=null,this._create()}_create(){this._createBackdrop(),this._createModal(),this._attachEvents()}_createBackdrop(){this.config.backdrop&&(this.backdrop=document.createElement("div"),this.backdrop.className="limbo-modal-backdrop",this.backdrop.style.cssText=`\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.5);\n z-index: ${this.manager._getNextZIndex()};\n opacity: 0;\n transition: opacity 0.3s ease;\n `,this.backdrop.addEventListener("click",e=>{e.target===this.backdrop&&this.close()}))}_createModal(){this.element=document.createElement("div"),this.element.className=`limbo-modal limbo-modal--${this.config.size}`,this.element.id=this.id,this.element.role="dialog",this.element.setAttribute("aria-modal","true"),this.element.setAttribute("aria-labelledby",`${this.id}-title`),this.element.tabIndex=-1;const e=window.innerWidth<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),t={small:e?"width: 100%; height: 100%;":"max-width: 400px;",medium:e?"width: 100%; height: 100%;":"max-width: 600px;",large:e?"width: 100%; height: 100%;":"max-width: 800px;",xlarge:e?"width: 100%; height: 100%;":"max-width: 1200px;"},n=e?`\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n transform: translateY(100%);\n width: 100%;\n height: 100%;\n max-width: none;\n max-height: none;\n border-radius: 0;\n background: white;\n z-index: ${this.manager._getNextZIndex()+1};\n opacity: 1;\n transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n overflow: hidden;\n display: flex;\n flex-direction: column;\n padding-top: env(safe-area-inset-top);\n padding-left: env(safe-area-inset-left);\n padding-right: env(safe-area-inset-right);\n padding-bottom: env(safe-area-inset-bottom);\n `:`\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%) scale(0.8);\n ${t[this.config.size]}\n width: 90%;\n max-height: 90vh;\n background: white;\n border-radius: 16px;\n box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);\n z-index: ${this.manager._getNextZIndex()+1};\n opacity: 0;\n transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n overflow: hidden;\n display: flex;\n flex-direction: column;\n `;this.element.style.cssText=n,this._createHeader(),this._createBody(),document.body.appendChild(this.backdrop),document.body.appendChild(this.element)}_createHeader(){const e=document.createElement("div");e.className="limbo-modal-header";const t=window.innerWidth<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);e.style.cssText=`\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ${t?"16px 20px":"20px 24px"};\n border-bottom: 1px solid #e9ecef;\n background: #f8f9fa;\n ${t?"position: sticky; top: 0; z-index: 10;":""}\n min-height: ${t?"60px":"auto"};\n `;const n=document.createElement("h2");if(n.id=`${this.id}-title`,n.className="limbo-modal-title",n.textContent=this.config.title,n.style.cssText="\n margin: 0;\n font-size: 18px;\n font-weight: 600;\n color: #001978;\n flex: 1;\n margin-right: 16px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n ",e.appendChild(n),this.config.showCloseButton){const n=document.createElement("button");n.type="button",n.className="limbo-modal-close",n.innerHTML="✕",n.setAttribute("aria-label","Cerrar modal"),n.style.cssText=`\n background: none;\n border: none;\n font-size: ${t?"28px":"24px"};\n color: #6c757d;\n cursor: pointer;\n padding: ${t?"8px":"4px"};\n border-radius: 4px;\n transition: all 0.2s ease;\n min-width: ${t?"44px":"auto"};\n min-height: ${t?"44px":"auto"};\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n `,n.addEventListener("mouseenter",()=>{n.style.backgroundColor="#f8f9fa",n.style.color="#001978"}),n.addEventListener("mouseleave",()=>{n.style.backgroundColor="transparent",n.style.color="#6c757d"}),n.addEventListener("click",()=>this.close()),e.appendChild(n)}this.element.appendChild(e)}_createBody(){const e=window.innerWidth<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),t=document.createElement("div");t.className="limbo-modal-body",t.id=`${this.id}-body`,t.style.cssText=`\n flex: 1;\n overflow-y: auto;\n padding: 0;\n -webkit-overflow-scrolling: touch;\n ${e?"height: 100%; overscroll-behavior: contain;":""}\n `,this.config.content&&("string"==typeof this.config.content?t.innerHTML=this.config.content:this.config.content instanceof Element&&t.appendChild(this.config.content)),this.element.appendChild(t)}_attachEvents(){this._originalBodyOverflow=document.body.style.overflow}open(){if(this.isOpen)return this;window.limbo&&window.limbo.core&&window.limbo.core.keyboard?(window.limbo.core.keyboard.pushFocus(document.activeElement),window.limbo.core.keyboard.setActiveModal(this.element)):this.previousFocus=document.activeElement,document.body.style.overflow="hidden";const e=window.innerWidth<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);return requestAnimationFrame(()=>{this.backdrop&&(this.backdrop.style.opacity="1"),this.element.style.opacity="1",this.element.style.transform=e?"translateY(0%)":"translate(-50%, -50%) scale(1)"}),this.isOpen=!0,this.config.focus&&setTimeout(()=>{if(window.limbo&&window.limbo.core&&window.limbo.core.keyboard)window.limbo.core.keyboard.focusFirst(this.element);else{const e=this.getFocusableElements()[0];e&&e.focus()}},300),this.config.onOpen&&this.config.onOpen(this),this}close(){if(!this.isOpen)return this;const e=window.innerWidth<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);return this.backdrop&&(this.backdrop.style.opacity="0"),this.element.style.opacity="0",this.element.style.transform=e?"translateY(100%)":"translate(-50%, -50%) scale(0.8)",setTimeout(()=>{this._cleanup()},300),this.isOpen=!1,window.limbo&&window.limbo.core&&window.limbo.core.keyboard&&(window.limbo.core.keyboard.setActiveModal(null),window.limbo.core.keyboard.releaseFocus()),this.config.onClose&&this.config.onClose(this),this}destroy(){this.close(),this.manager._removeModal(this),this.config.onDestroy&&this.config.onDestroy(this)}getBodyContainer(){return this.element.querySelector(".limbo-modal-body")}getFocusableElements(){return Array.from(this.element.querySelectorAll(this.manager.focusableSelectors))}getId(){return this.id}isOpened(){return this.isOpen}getConfig(){return{...this.config}}_cleanup(){document.body.style.overflow=this._originalBodyOverflow||"",this.previousFocus&&"function"==typeof this.previousFocus.focus&&this.previousFocus.focus(),this.backdrop&&this.backdrop.parentNode&&this.backdrop.parentNode.removeChild(this.backdrop),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}}class tn{constructor(){this.currentTheme=null,this.customThemes=new Map,this.config=this._getDefaultConfig(),this.isInitialized=!1,this.isCompactMode=!1,this.compactBreakpoint=null,this.compactObserver=null,this.mediaQueryObserver=null,this.mutationObserver=null,this.storageListener=null,this.themeCache=new Map,this.appliedStyles=new Set,this.changeCallbacks=new Set}_getDefaultConfig(){return{theme:{auto:!0,storage:!0,inherit:!0,smooth:!0,detectSystem:!0},compact:{enabled:!1,auto:!0,breakpoint:768,forceOnMobile:!0,persistPreference:!0},presets:{light:{name:"light",displayName:"Claro",variables:{"--limbo-primary":"#3b82f6","--limbo-primary-hover":"#2563eb","--limbo-primary-light":"#dbeafe","--limbo-primary-dark":"#1e40af","--limbo-bg-primary":"#ffffff","--limbo-bg-secondary":"#f8fafc","--limbo-bg-tertiary":"#f1f5f9","--limbo-bg-overlay":"rgba(0, 0, 0, 0.5)","--limbo-bg-card":"#ffffff","--limbo-bg-input":"#ffffff","--limbo-text-primary":"#0f172a","--limbo-text-secondary":"#475569","--limbo-text-tertiary":"#64748b","--limbo-text-inverse":"#ffffff","--limbo-text-muted":"#94a3b8","--limbo-border-light":"#e2e8f0","--limbo-border-medium":"#cbd5e1","--limbo-border-strong":"#94a3b8","--limbo-border-focus":"#3b82f6","--limbo-success":"#10b981","--limbo-success-light":"#d1fae5","--limbo-error":"#ef4444","--limbo-error-light":"#fee2e2","--limbo-warning":"#f59e0b","--limbo-warning-light":"#fef3c7","--limbo-info":"#3b82f6","--limbo-info-light":"#dbeafe","--limbo-shadow-sm":"0 1px 2px 0 rgba(0, 0, 0, 0.05)","--limbo-shadow-md":"0 4px 6px -1px rgba(0, 0, 0, 0.1)","--limbo-shadow-lg":"0 10px 15px -3px rgba(0, 0, 0, 0.1)","--limbo-shadow-xl":"0 20px 25px -5px rgba(0, 0, 0, 0.1)","--limbo-radius-sm":"4px","--limbo-radius-md":"6px","--limbo-radius-lg":"8px","--limbo-radius-xl":"12px","--limbo-font-family":"system-ui, -apple-system, sans-serif","--limbo-font-size-xs":"12px","--limbo-font-size-sm":"14px","--limbo-font-size-md":"16px","--limbo-font-size-lg":"18px","--limbo-font-size-xl":"20px","--limbo-z-dropdown":"1000","--limbo-z-sticky":"1020","--limbo-z-fixed":"1030","--limbo-z-modal":"1050","--limbo-z-tooltip":"1070","--limbo-transition-fast":"150ms cubic-bezier(0.4, 0, 0.2, 1)","--limbo-transition-normal":"300ms cubic-bezier(0.4, 0, 0.2, 1)","--limbo-transition-slow":"500ms cubic-bezier(0.4, 0, 0.2, 1)","--limbo-spacing-compact":"0.5rem","--limbo-spacing-compact-sm":"0.25rem","--limbo-spacing-compact-lg":"0.75rem","--limbo-font-size-compact-xs":"11px","--limbo-font-size-compact-sm":"12px","--limbo-font-size-compact-md":"14px","--limbo-font-size-compact-lg":"16px","--limbo-radius-compact":"4px","--limbo-radius-compact-sm":"3px","--limbo-radius-compact-lg":"6px","--limbo-button-height-compact":"32px","--limbo-input-height-compact":"36px","--limbo-modal-padding-compact":"12px","--limbo-card-padding-compact":"12px","--limbo-gap-compact":"8px","--limbo-gap-compact-sm":"4px","--limbo-gap-compact-lg":"12px"}},dark:{name:"dark",displayName:"Oscuro",variables:{"--limbo-primary":"#60a5fa","--limbo-primary-hover":"#3b82f6","--limbo-primary-light":"#1e293b","--limbo-primary-dark":"#93c5fd","--limbo-bg-primary":"#0f172a","--limbo-bg-secondary":"#1e293b","--limbo-bg-tertiary":"#334155","--limbo-bg-overlay":"rgba(0, 0, 0, 0.8)","--limbo-bg-card":"#1e293b","--limbo-bg-input":"#334155","--limbo-text-primary":"#f8fafc","--limbo-text-secondary":"#cbd5e1","--limbo-text-tertiary":"#94a3b8","--limbo-text-inverse":"#0f172a","--limbo-text-muted":"#64748b","--limbo-border-light":"#334155","--limbo-border-medium":"#475569","--limbo-border-strong":"#64748b","--limbo-border-focus":"#60a5fa","--limbo-success":"#34d399","--limbo-success-light":"#064e3b","--limbo-error":"#f87171","--limbo-error-light":"#7f1d1d","--limbo-warning":"#fbbf24","--limbo-warning-light":"#78350f","--limbo-info":"#60a5fa","--limbo-info-light":"#1e3a8a","--limbo-shadow-sm":"0 1px 2px 0 rgba(0, 0, 0, 0.2)","--limbo-shadow-md":"0 4px 6px -1px rgba(0, 0, 0, 0.3)","--limbo-shadow-lg":"0 10px 15px -3px rgba(0, 0, 0, 0.4)","--limbo-shadow-xl":"0 20px 25px -5px rgba(0, 0, 0, 0.5)","--limbo-radius-sm":"4px","--limbo-radius-md":"6px","--limbo-radius-lg":"8px","--limbo-radius-xl":"12px","--limbo-font-family":"system-ui, -apple-system, sans-serif","--limbo-font-size-xs":"12px","--limbo-font-size-sm":"14px","--limbo-font-size-md":"16px","--limbo-font-size-lg":"18px","--limbo-font-size-xl":"20px","--limbo-z-dropdown":"1000","--limbo-z-sticky":"1020","--limbo-z-fixed":"1030","--limbo-z-modal":"1050","--limbo-z-tooltip":"1070","--limbo-transition-fast":"150ms cubic-bezier(0.4, 0, 0.2, 1)","--limbo-transition-normal":"300ms cubic-bezier(0.4, 0, 0.2, 1)","--limbo-transition-slow":"500ms cubic-bezier(0.4, 0, 0.2, 1)","--limbo-spacing-compact":"0.5rem","--limbo-spacing-compact-sm":"0.25rem","--limbo-spacing-compact-lg":"0.75rem","--limbo-font-size-compact-xs":"11px","--limbo-font-size-compact-sm":"12px","--limbo-font-size-compact-md":"14px","--limbo-font-size-compact-lg":"16px","--limbo-radius-compact":"4px","--limbo-radius-compact-sm":"3px","--limbo-radius-compact-lg":"6px","--limbo-button-height-compact":"32px","--limbo-input-height-compact":"36px","--limbo-modal-padding-compact":"12px","--limbo-card-padding-compact":"12px","--limbo-gap-compact":"8px","--limbo-gap-compact-sm":"4px","--limbo-gap-compact-lg":"12px"}},auto:{name:"auto",displayName:"Automático",variables:{}}},inheritance:{portalSelectors:["body","[data-theme]",".theme-light",".theme-dark",".light-theme",".dark-theme"],variablePrefix:"--",fallbackTheme:"light"},transitions:{duration:"300ms",easing:"cubic-bezier(0.4, 0, 0.2, 1)",properties:["background-color","border-color","color","fill","stroke","box-shadow"]}}}initialize(e={}){this.isInitialized?console.warn("ThemeManager already initialized"):(this.config=this._deepMerge(this.config,e),this._loadCustomThemes(),this.config.theme.inherit&&this._inheritPortalTheme(),this._applyInitialTheme(),this._applyInitialCompactMode(),this._setupObservers(),this._injectBaseStyles(),this.isInitialized=!0)}_injectBaseStyles(){if(document.getElementById("limbo-theme-styles"))return;const e=`\n :root {\n /* Variables de transición para cambios de tema */\n color-scheme: light dark;\n }\n \n [data-limbo-theme] {\n transition: ${this.config.transitions.properties.map(e=>`${e} ${this.config.transitions.duration} ${this.config.transitions.easing}`).join(", ")};\n }\n \n /* Clases de utilidad para temas */\n .limbo-theme-light {\n color-scheme: light;\n }\n \n .limbo-theme-dark {\n color-scheme: dark;\n }\n \n .limbo-theme-auto {\n color-scheme: light dark;\n }\n \n /* Estilos para elementos del componente con variables CSS */\n .limbo-component {\n background-color: var(--limbo-bg-primary);\n color: var(--limbo-text-primary);\n border-color: var(--limbo-border-light);\n border-radius: var(--limbo-radius-md);\n font-family: var(--limbo-font-family);\n font-size: var(--limbo-font-size-md);\n transition: var(--limbo-transition-normal);\n }\n \n .limbo-card {\n background-color: var(--limbo-bg-card);\n border: 1px solid var(--limbo-border-light);\n border-radius: var(--limbo-radius-lg);\n box-shadow: var(--limbo-shadow-md);\n color: var(--limbo-text-primary);\n }\n \n .limbo-input {\n background-color: var(--limbo-bg-input);\n border: 1px solid var(--limbo-border-medium);\n border-radius: var(--limbo-radius-md);\n color: var(--limbo-text-primary);\n font-family: var(--limbo-font-family);\n font-size: var(--limbo-font-size-md);\n transition: var(--limbo-transition-fast);\n }\n \n .limbo-input:focus {\n border-color: var(--limbo-border-focus);\n box-shadow: 0 0 0 3px var(--limbo-primary-light);\n outline: none;\n }\n \n .limbo-button {\n background-color: var(--limbo-primary);\n border: 1px solid var(--limbo-primary);\n border-radius: var(--limbo-radius-md);\n color: var(--limbo-text-inverse);\n font-family: var(--limbo-font-family);\n font-size: var(--limbo-font-size-md);\n transition: var(--limbo-transition-fast);\n cursor: pointer;\n }\n \n .limbo-button:hover {\n background-color: var(--limbo-primary-hover);\n border-color: var(--limbo-primary-hover);\n }\n \n .limbo-button.secondary {\n background-color: var(--limbo-bg-secondary);\n border-color: var(--limbo-border-medium);\n color: var(--limbo-text-primary);\n }\n \n .limbo-button.secondary:hover {\n background-color: var(--limbo-bg-tertiary);\n }\n \n /* Estados de feedback con variables */\n .limbo-state-success {\n background-color: var(--limbo-success-light);\n border-color: var(--limbo-success);\n color: var(--limbo-success);\n }\n \n .limbo-state-error {\n background-color: var(--limbo-error-light);\n border-color: var(--limbo-error);\n color: var(--limbo-error);\n }\n \n .limbo-state-warning {\n background-color: var(--limbo-warning-light);\n border-color: var(--limbo-warning);\n color: var(--limbo-warning);\n }\n \n .limbo-state-info {\n background-color: var(--limbo-info-light);\n border-color: var(--limbo-info);\n color: var(--limbo-info);\n }\n \n /* Overlay y modal con variables */\n .limbo-overlay {\n background-color: var(--limbo-bg-overlay);\n backdrop-filter: blur(4px);\n }\n \n .limbo-modal {\n background-color: var(--limbo-bg-card);\n border-radius: var(--limbo-radius-xl);\n box-shadow: var(--limbo-shadow-xl);\n color: var(--limbo-text-primary);\n }\n \n /* Responsive design con variables */\n @media (max-width: 640px) {\n .limbo-component {\n font-size: var(--limbo-font-size-sm);\n }\n }\n \n /* Modo reducido de movimiento */\n @media (prefers-reduced-motion: reduce) {\n [data-limbo-theme] {\n transition: none;\n }\n \n .limbo-component,\n .limbo-input,\n .limbo-button {\n transition: none;\n }\n }\n \n /* Esquemas de color automático */\n @media (prefers-color-scheme: dark) {\n :root:not([data-limbo-theme]) {\n color-scheme: dark;\n }\n }\n \n @media (prefers-color-scheme: light) {\n :root:not([data-limbo-theme]) {\n color-scheme: light;\n }\n }\n \n /* ===================================\n MODO COMPACTO - ESTILOS ESPECÍFICOS \n =================================== */\n \n /* Activación del modo compacto por atributo o clase */\n [data-limbo-compact="true"],\n .limbo-compact-mode {\n /* Componentes base más pequeños */\n --limbo-font-size-md: var(--limbo-font-size-compact-md);\n --limbo-font-size-sm: var(--limbo-font-size-compact-sm);\n --limbo-font-size-lg: var(--limbo-font-size-compact-lg);\n --limbo-spacing: var(--limbo-spacing-compact);\n --limbo-radius-md: var(--limbo-radius-compact);\n --limbo-gap: var(--limbo-gap-compact);\n }\n \n /* Botones compactos */\n [data-limbo-compact="true"] .limbo-button,\n .limbo-compact-mode .limbo-button {\n height: var(--limbo-button-height-compact);\n padding: var(--limbo-spacing-compact-sm) var(--limbo-spacing-compact);\n font-size: var(--limbo-font-size-compact-sm);\n border-radius: var(--limbo-radius-compact);\n min-width: auto;\n }\n \n /* Inputs compactos */\n [data-limbo-compact="true"] .limbo-input,\n .limbo-compact-mode .limbo-input {\n height: var(--limbo-input-height-compact);\n padding: var(--limbo-spacing-compact-sm) var(--limbo-spacing-compact);\n font-size: var(--limbo-font-size-compact-md);\n border-radius: var(--limbo-radius-compact);\n }\n \n /* Cards compactas */\n [data-limbo-compact="true"] .limbo-card,\n .limbo-compact-mode .limbo-card {\n padding: var(--limbo-card-padding-compact);\n border-radius: var(--limbo-radius-compact-lg);\n }\n \n /* Modales compactos */\n [data-limbo-compact="true"] .limbo-modal,\n .limbo-compact-mode .limbo-modal {\n padding: var(--limbo-modal-padding-compact);\n border-radius: var(--limbo-radius-compact-lg);\n max-width: 90vw;\n max-height: 90vh;\n }\n \n /* Tabs compactas */\n [data-limbo-compact="true"] .limbo-tabs,\n .limbo-compact-mode .limbo-tabs {\n gap: var(--limbo-gap-compact-sm);\n }\n \n [data-limbo-compact="true"] .limbo-tab,\n .limbo-compact-mode .limbo-tab {\n padding: var(--limbo-spacing-compact-sm) var(--limbo-spacing-compact);\n font-size: var(--limbo-font-size-compact-sm);\n border-radius: var(--limbo-radius-compact-sm);\n }\n \n /* Gallery compacta */\n [data-limbo-compact="true"] .limbo-gallery,\n .limbo-compact-mode .limbo-gallery {\n gap: var(--limbo-gap-compact-sm);\n }\n \n [data-limbo-compact="true"] .limbo-gallery-item,\n .limbo-compact-mode .limbo-gallery-item {\n border-radius: var(--limbo-radius-compact);\n min-height: 120px; /* Más pequeño para móviles */\n }\n \n /* Notificaciones compactas */\n [data-limbo-compact="true"] .limbo-notification,\n .limbo-compact-mode .limbo-notification {\n padding: var(--limbo-spacing-compact-sm) var(--limbo-spacing-compact);\n font-size: var(--limbo-font-size-compact-sm);\n border-radius: var(--limbo-radius-compact);\n }\n \n /* Progress indicators compactos */\n [data-limbo-compact="true"] .limbo-progress,\n .limbo-compact-mode .limbo-progress {\n height: 3px; /* Más delgado */\n }\n \n [data-limbo-compact="true"] .limbo-progress-circular,\n .limbo-compact-mode .limbo-progress-circular {\n width: 20px;\n height: 20px;\n }\n \n /* Auto-activación en pantallas pequeñas */\n @media (max-width: 768px) {\n :root[data-limbo-compact="auto"],\n .limbo-component[data-limbo-compact="auto"] {\n /* Aplicar automáticamente estilos compactos */\n --limbo-font-size-md: var(--limbo-font-size-compact-md);\n --limbo-font-size-sm: var(--limbo-font-size-compact-sm);\n --limbo-spacing: var(--limbo-spacing-compact);\n --limbo-radius-md: var(--limbo-radius-compact);\n --limbo-gap: var(--limbo-gap-compact);\n }\n \n /* Modal full-screen en móvil cuando es compacto */\n [data-limbo-compact="auto"] .limbo-modal,\n [data-limbo-compact="true"] .limbo-modal {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100vw;\n height: 100vh;\n max-width: 100vw;\n max-height: 100vh;\n border-radius: 0;\n margin: 0;\n }\n \n /* Tabs en accordion en móvil */\n [data-limbo-compact="auto"] .limbo-tabs,\n [data-limbo-compact="true"] .limbo-tabs {\n flex-direction: column;\n width: 100%;\n }\n \n /* Gallery de 2 columnas en móvil */\n [data-limbo-compact="auto"] .limbo-gallery,\n [data-limbo-compact="true"] .limbo-gallery {\n grid-template-columns: 1fr 1fr;\n gap: var(--limbo-gap-compact);\n }\n }\n \n /* Touch targets más grandes en móviles */\n @media (max-width: 768px) and (pointer: coarse) {\n [data-limbo-compact="auto"] .limbo-button,\n [data-limbo-compact="true"] .limbo-button {\n min-height: 44px; /* Tamaño mínimo de toque recomendado */\n padding: var(--limbo-spacing-compact) var(--limbo-spacing-compact-lg);\n }\n \n [data-limbo-compact="auto"] .limbo-tab,\n [data-limbo-compact="true"] .limbo-tab {\n min-height: 44px;\n }\n }\n `,t=document.createElement("style");t.id="limbo-theme-styles",t.textContent=e,document.head.appendChild(t)}applyTheme(e,t={}){const n=this._getTheme(e);if(!n)return console.warn(`Theme '${e}' not found`),!1;const r=this.currentTheme;return this._applyThemeVariables(n,t.scope),this._updateThemeAttributes(n.name),this.config.theme.storage&&!t.temporary&&this._saveThemePreference(n.name),this.currentTheme=n.name,this._triggerChangeCallbacks(n.name,r),!0}toggleTheme(e="light",t="dark"){const n=this.currentTheme===e?t:e;return this.applyTheme(n)}applyAutoTheme(){const e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return this.applyTheme(e)}registerTheme(e,t){const n={name:e,displayName:t.displayName||e,variables:t.variables||{},extends:t.extends||null,...t};if(n.extends){const e=this._getTheme(n.extends);e&&(n.variables={...e.variables,...n.variables})}return this.customThemes.set(e,n),this}removeTheme(e){if(this.config.presets[e])return console.warn(`Cannot remove predefined theme: ${e}`),!1;const t=this.customThemes.delete(e);return t&&this.currentTheme===e&&this.applyTheme(this.config.inheritance.fallbackTheme),t}getAvailableThemes(){const e=Object.keys(this.config.presets),t=Array.from(this.customThemes.keys());return{presets:e,custom:t,all:[...e,...t]}}getCurrentTheme(){return{name:this.currentTheme,theme:this._getTheme(this.currentTheme),isCustom:this.customThemes.has(this.currentTheme),variables:this._getCurrentVariables()}}enableCompactMode(e={}){const t={element:document.documentElement,persist:!0,...e};return t.element.setAttribute("data-limbo-compact","true"),t.element.classList.add("limbo-compact-mode"),this.isCompactMode=!0,t.persist&&this.config.compact.persistPreference&&this._saveCompactPreference(!0),this._triggerCompactChange(!0),this}disableCompactMode(e={}){const t={element:document.documentElement,persist:!0,...e};return t.element.setAttribute("data-limbo-compact","false"),t.element.classList.remove("limbo-compact-mode"),this.isCompactMode=!1,t.persist&&this.config.compact.persistPreference&&this._saveCompactPreference(!1),this._triggerCompactChange(!1),this}toggleCompactMode(e={}){return this.isCompactMode?this.disableCompactMode(e):this.enableCompactMode(e)}applyAutoCompactMode(){const e=this._shouldUseCompactMode();return e&&!this.isCompactMode?this.enableCompactMode({persist:!1}):!e&&this.isCompactMode&&this.disableCompactMode({persist:!1}),this}getCompactState(){return{isEnabled:this.isCompactMode,isAuto:this.config.compact.auto,breakpoint:this.config.compact.breakpoint,currentViewport:window.innerWidth,shouldBeCompact:this._shouldUseCompactMode()}}_shouldUseCompactMode(){if(!this.config.compact.auto)return this.config.compact.enabled;const e=window.innerWidth<=this.config.compact.breakpoint,t=/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),n="ontouchstart"in window||navigator.maxTouchPoints>0;return!(!this.config.compact.forceOnMobile||!t&&!n)||e}_saveCompactPreference(e){try{localStorage.setItem("limbo-compact-preference",e.toString())}catch(t){console.warn("Could not save compact preference:",t)}}_loadCompactPreference(){try{return"true"===localStorage.getItem("limbo-compact-preference")}catch(e){return console.warn("Could not load compact preference:",e),null}}_triggerCompactChange(e){this.changeCallbacks.forEach(t=>{try{t({type:"compact",isCompact:e,viewport:window.innerWidth,timestamp:Date.now()})}catch(n){console.error("Error in compact mode change callback:",n)}})}_inheritPortalTheme(){const e=this._detectPortalTheme();return e?(this.registerTheme("portal-inherited",e),"portal-inherited"):null}_detectPortalTheme(){const e={name:"portal-detected",displayName:"Tema del Portal",variables:{}};for(const t of this.config.inheritance.portalSelectors){const n=document.querySelector(t);if(n){const t=this._extractCSSVariables(n);Object.keys(t).length>0&&(e.variables={...e.variables,...t});const r=n.getAttribute("data-theme")||n.getAttribute("class")?.match(/theme-(\w+)/)||n.getAttribute("class")?.match(/(\w+)-theme/);r&&(e.detectedName=Array.isArray(r)?r[1]:r)}}return Object.keys(e.variables).length>0?e:null}_extractCSSVariables(e){const t={},n=getComputedStyle(e);["primary","primary-hover","primary-light","primary-dark","bg-primary","bg-secondary","bg-tertiary","bg-card","bg-input","text-primary","text-secondary","text-tertiary","text-inverse","border-light","border-medium","border-strong","border-focus","success","error","warning","info","shadow-sm","shadow-md","shadow-lg","shadow-xl","radius-sm","radius-md","radius-lg","radius-xl"].forEach(e=>{const r=`--limbo-${e}`,a=n.getPropertyValue(r).trim();a&&(t[r]=a)});return["--primary-color","--background-color","--text-color","--border-color","--accent-color","--surface-color"].forEach(e=>{const r=n.getPropertyValue(e).trim();if(r){const n=this._mapGenericToLimbo(e,r);n&&Object.assign(t,n)}}),t}_mapGenericToLimbo(e,t){return{"--primary-color":{"--limbo-primary":t},"--background-color":{"--limbo-bg-primary":t},"--text-color":{"--limbo-text-primary":t},"--border-color":{"--limbo-border-light":t},"--accent-color":{"--limbo-primary":t},"--surface-color":{"--limbo-bg-card":t}}[e]||null}_applyInitialTheme(){let e=this.config.inheritance.fallbackTheme;if(this.config.theme.storage){const t=this._loadThemePreference();t&&this._getTheme(t)&&(e=t)}const t=document.documentElement.getAttribute("data-limbo-theme");t&&this._getTheme(t)&&(e=t);const n=this._inheritPortalTheme();n&&(e=n),this.config.theme.auto&&"auto"===e&&(e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),this.applyTheme(e,{temporary:!1})}_applyInitialCompactMode(){let e=!1;if(this.config.compact.persistPreference){const t=this._loadCompactPreference();null!==t&&(e=t)}const t=document.documentElement.getAttribute("data-limbo-compact");"true"===t?e=!0:"false"===t&&(e=!1),("auto"===t||this.config.compact.auto)&&(e=this._shouldUseCompactMode()),e?this.enableCompactMode({persist:!1}):this.disableCompactMode({persist:!1})}_applyThemeVariables(e,t=document.documentElement){const n="string"==typeof t?document.querySelector(t):t;n?(Object.entries(e.variables).forEach(([e,t])=>{n.style.setProperty(e,t),this.appliedStyles.add(`${n.tagName}:${e}`)}),this.themeCache.set(e.name,{theme:e,appliedAt:Date.now(),scope:n})):console.warn("Theme scope element not found")}_updateThemeAttributes(e){document.documentElement.setAttribute("data-limbo-theme",e),document.documentElement.classList.remove("limbo-theme-light","limbo-theme-dark","limbo-theme-auto"),document.documentElement.classList.add(`limbo-theme-${e}`),this._updateMetaThemeColor(e)}_updateMetaThemeColor(e){const t=this._getTheme(e);if(!t)return;const n=t.variables["--limbo-primary"]||"#3b82f6";let r=document.querySelector('meta[name="theme-color"]');r||(r=document.createElement("meta"),r.name="theme-color",document.head.appendChild(r)),r.content=n}_getTheme(e){return this.config.presets[e]?this.config.presets[e]:this.customThemes.has(e)?this.customThemes.get(e):null}_getCurrentVariables(){const e=this._getTheme(this.currentTheme);if(!e)return{};const t=getComputedStyle(document.documentElement),n={};return Object.keys(e.variables).forEach(e=>{n[e]=t.getPropertyValue(e).trim()}),n}_saveThemePreference(e){try{localStorage.setItem("limbo-theme-preference",e)}catch(t){console.warn("Could not save theme preference:",t)}}_loadThemePreference(){try{return localStorage.getItem("limbo-theme-preference")}catch(e){return console.warn("Could not load theme preference:",e),null}}_loadCustomThemes(){try{const e=localStorage.getItem("limbo-custom-themes");if(e){const t=JSON.parse(e);Object.entries(t).forEach(([e,t])=>{this.customThemes.set(e,t)})}}catch(e){console.warn("Could not load custom themes:",e)}}_saveCustomThemes(){try{const e=Object.fromEntries(this.customThemes);localStorage.setItem("limbo-custom-themes",JSON.stringify(e))}catch(e){console.warn("Could not save custom themes:",e)}}_setupObservers(){this.config.theme.detectSystem&&this._setupSystemObserver(),this.config.theme.storage&&this._setupStorageObserver(),this._setupMutationObserver(),this.config.compact.auto&&this._setupViewportObserver()}_setupSystemObserver(){const e=window.matchMedia("(prefers-color-scheme: dark)");e.addEventListener("change",e=>{if("auto"===this.currentTheme||this.config.theme.auto){const t=e.matches?"dark":"light";this.applyTheme(t,{temporary:!0})}}),this.mediaQueryObserver=e}_setupStorageObserver(){const e=e=>{"limbo-theme-preference"===e.key&&e.newValue!==this.currentTheme&&this._getTheme(e.newValue)&&this.applyTheme(e.newValue)};window.addEventListener("storage",e),this.storageListener=e}_setupMutationObserver(){const e=new MutationObserver(e=>{e.forEach(e=>{if("attributes"===e.type&&"data-limbo-theme"===e.attributeName){const t=e.target.getAttribute("data-limbo-theme");t&&t!==this.currentTheme&&this._getTheme(t)&&this.applyTheme(t)}})});e.observe(document.documentElement,{attributes:!0,attributeFilter:["data-limbo-theme"]}),this.mutationObserver=e}_setupViewportObserver(){const e=`(max-width: ${this.config.compact.breakpoint}px)`,t=window.matchMedia(e);t.addEventListener("change",()=>{("auto"===document.documentElement.getAttribute("data-limbo-compact")||this.config.compact.auto)&&this.applyAutoCompactMode()}),this.compactObserver=t,window.addEventListener("orientationchange",()=>{setTimeout(()=>{("auto"===document.documentElement.getAttribute("data-limbo-compact")||this.config.compact.auto)&&this.applyAutoCompactMode()},100)})}onThemeChange(e){return this.changeCallbacks.add(e),()=>this.changeCallbacks.delete(e)}_triggerChangeCallbacks(e,t){this.changeCallbacks.forEach(n=>{try{n({theme:e,previousTheme:t,themeData:this._getTheme(e),variables:this._getCurrentVariables()})}catch(r){console.error("Error in theme change callback:",r)}})}generateThemeFromColors(e,t){const n={name:e,displayName:e,variables:{}};t.primary&&(n.variables["--limbo-primary"]=t.primary,n.variables["--limbo-primary-hover"]=this._darkenColor(t.primary,10),n.variables["--limbo-primary-light"]=this._lightenColor(t.primary,40),n.variables["--limbo-primary-dark"]=this._darkenColor(t.primary,20)),t.background&&(n.variables["--limbo-bg-primary"]=t.background,n.variables["--limbo-bg-secondary"]=this._lightenColor(t.background,5),n.variables["--limbo-bg-tertiary"]=this._lightenColor(t.background,10),n.variables["--limbo-bg-card"]=t.background),t.text&&(n.variables["--limbo-text-primary"]=t.text,n.variables["--limbo-text-secondary"]=this._lightenColor(t.text,20),n.variables["--limbo-text-tertiary"]=this._lightenColor(t.text,40));const r=this._getTheme(this.config.inheritance.fallbackTheme);return r&&(n.variables={...r.variables,...n.variables}),this.registerTheme(e,n),n}_darkenColor(e,t){const n=parseInt(e.replace("#",""),16),r=Math.round(2.55*t),a=(n>>16)-r,o=(n>>8&255)-r,i=(255&n)-r;return"#"+(16777216+65536*(a<255?a<1?0:a:255)+256*(o<255?o<1?0:o:255)+(i<255?i<1?0:i:255)).toString(16).slice(1)}_lightenColor(e,t){const n=parseInt(e.replace("#",""),16),r=Math.round(2.55*t),a=(n>>16)+r,o=(n>>8&255)+r,i=(255&n)+r;return"#"+(16777216+65536*(a<255?a<1?0:a:255)+256*(o<255?o<1?0:o:255)+(i<255?i<1?0:i:255)).toString(16).slice(1)}_deepMerge(e,t){const n={...e};return Object.keys(t).forEach(r=>{t[r]&&"object"==typeof t[r]&&!Array.isArray(t[r])?n[r]=this._deepMerge(e[r]||{},t[r]):n[r]=t[r]}),n}getThemeInfo(){return{current:this.getCurrentTheme(),available:this.getAvailableThemes(),compact:this.getCompactState(),config:this.config,isInitialized:this.isInitialized,cache:{themes:this.themeCache.size,applied:this.appliedStyles.size},observers:{system:!!this.mediaQueryObserver,storage:!!this.storageListener,mutation:!!this.mutationObserver,viewport:!!this.compactObserver}}}debug(){return console.table(this.getThemeInfo()),this.getThemeInfo()}destroy(){this.mediaQueryObserver&&this.mediaQueryObserver.removeEventListener("change",this._setupSystemObserver),this.storageListener&&window.removeEventListener("storage",this.storageListener),this.mutationObserver&&this.mutationObserver.disconnect(),this.compactObserver&&this.compactObserver.removeEventListener("change",this._setupViewportObserver),this.changeCallbacks.clear(),this.themeCache.clear(),this.appliedStyles.clear(),this._saveCustomThemes();const e=document.getElementById("limbo-theme-styles");e&&e.remove(),this.isInitialized=!1}}const nn=new class{constructor(){this.config=new o,this.instances=new Gt,this.autoInputs=new Xt,this.events=new Zt,this.modals=new Jt,this.theme=new tn,this.containerQueryDetector=x,this._setupInternalListeners(),this._initializeContainerQueries()}configure(e){var t;return this.config.setGlobal(e),t={publicKey:e.publicKey,apiKey:e.apiKey,token:e.token,authMode:e.authMode||"manual",prod:e.prod||!1,mode:e.mode||"embed",callbacks:e.callbacks||null},_={..._,...t},_.authMode||(_.token?_.authMode="manual":_.authMode="session"),this.config}setToken(e){return function(e){_.token=e}(e),this}create(e){const t=this.config.merge(e);return this.instances.create(t,this.events,this.modals)}configureAutoInputs(e){return this.autoInputs.configure(e,this.config,this.events)}setTheme(e){return e&&(this.config.set("theme",e),this.theme.setTheme(e),this.events.emit("theme:changed",{theme:e})),this}getTheme(){return this.theme.getCurrentTheme()}scanAndActivate(e=null){const t=this.autoInputs.config?.dataset||"data-limbo-input-file",n=e||`[${t}]`,r=document.querySelectorAll(n);if(0===r.length)return{found:0,processed:0,skipped:0};let a=0,o=0;return r.forEach(e=>{try{this.autoInputs._processInput(e),a++}catch(t){console.warn(`⚠️ Limbo: Error procesando input ${e.id||e.name}:`,t),o++}}),this.events.emit("limbo:scanCompleted",{found:r.length,processed:a,skipped:o,inputs:Array.from(r)}),{found:r.length,processed:a,skipped:o}}_initializeContainerQueries(){this.containerQueryDetector.observeResize(),setTimeout(()=>{document.querySelectorAll(".limbo-component-container-wrapper").forEach(e=>{this.containerQueryDetector.applyResponsiveClasses(e)})},100)}rescan(e=document){const t=this.autoInputs.config?.dataset||"data-limbo-input-file",n=e.querySelectorAll(`[${t}]`);let r=0;return n.forEach(e=>{if(!this.autoInputs.instances.has(this.autoInputs._getInputId(e)))try{this.autoInputs._processInput(e),r++}catch(t){console.warn("⚠️ Limbo: Error procesando nuevo input:",t)}}),r}init(e){const t=this._mapLegacyOptions(e);return this.create(t)}getInstances(){return this.instances.getAll()}destroy(){this.instances.destroyAll(),this.autoInputs.cleanup(),this.events.cleanup(),this.theme.removeTheme()}_mapLegacyOptions(e){return{container:e.container||"#image-manager",mode:"embed",features:["gallery","upload","cropper"],apiKey:e.apiKey,prod:e.prod||!1,url:void 0===e.url||e.url}}_setupInternalListeners(){this.events.on("autoInputs:modalRequest",({config:e,callback:t})=>{this._handleAutoInputModalRequest({config:e,callback:t})})}_handleAutoInputModalRequest({config:e,callback:t}){const n=this.create({...e,mode:"modal",autoDestroy:!0,callbacks:{onSelect:e=>{t(e),n.close()},onClose:()=>{}}});n.open()}};"undefined"!=typeof window&&(window.Limbo=nn),module.exports=nn;
|
|
31
31
|
//# sourceMappingURL=limbo.cjs.map
|