vendor: 4,265 bytes, lines 1-2
1/*! For license information please see main.3c3c8c16.js.LICENSE.txt */ 2(()=>{"use strict";var e={4:(e,t,n)=>{var a=n(853),r=n(43),i=n(950);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 l(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function s(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(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(31===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function d(e){if(s(e)!==e)throw Error(o(188))}function m(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=m(e)))return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for("react.element"),h=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),j=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),S=Symbol.for("react.lazy");Symbol.for("react.scope");var z=Symbol.for("react.activity");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var C=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var E=Symbol.iterator;function P(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=E&&e[E]||e["@@iterator"])?e:null}var T=Symbol.for("react.client.reference");function O(e){if(null==e)return null;if("function"===typeof e)return e.$$typeof===T?null:e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case v:return"Fragment";case y:return"Profiler";case b:return"StrictMode";case w:return"Suspense";case N:return"SuspenseList";case z:return"Activity"}if("object"===typeof e)switch(e.$$typeof){case g:return"Portal";case j:return e.displayName||"Context";case x:return(e._context.displayName||"Context")+".Consumer";case k: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:O(e.type)||"Memo";case S:t=e._payload,e=e._init;try{return O(e(t))}catch(n){}}return null}var L=Array.isArray,F=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D={pending:!1,data:null,method:null,action:null},I=[],R=-1;function M(e){return{current:e}}function U(e){0>R||(e.current=I[R],I[R]=null,R--)}function q(e,t){R++,I[R]=e.current,e.current=t}var B,H,V=M(null),$=M(null),W=M(null),Q=M(null);function G(e,t){switch(q(W,t),q($,e),q(V,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=bd(t=vd(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(V),q(V,e)}function K(){U(V),U($),U(W)}function J(e){null!==e.memoizedState&&q(Q,e);var t=V.current,n=bd(t,e.type);t!==n&&(q($,e),q(V,n))}function Y(e){$.current===e&&(U(V),U($)),Q.current===e&&(U(Q),um._currentValue=D)}function X(e){if(void 0===B)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);B=t&&t[1]||"",H=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+B+e+H}var Z=!1;function ee(e,t){if(!e||Z)return"";Z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;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(r){var a=r}Reflect.construct(e,[],n)}
vendor: 5,948 bytes, line 2
2else{try{n.call()}catch(i){a=i}e.call(n.prototype)}}else{try{throw Error()}catch(o){a=o}(n=e())&&"function"===typeof n.catch&&n.catch(function(){})}}catch(l){if(l&&a&&"string"===typeof l.stack)return[l.stack,a.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),o=i[0],l=i[1];if(o&&l){var s=o.split("\n"),c=l.split("\n");for(r=a=0;a<s.length&&!s[a].includes("DetermineComponentFrameRoot");)a++;for(;r<c.length&&!c[r].includes("DetermineComponentFrameRoot");)r++;if(a===s.length||r===c.length)for(a=s.length-1,r=c.length-1;1<=a&&0<=r&&s[a]!==c[r];)r--;for(;1<=a&&0<=r;a--,r--)if(s[a]!==c[r]){if(1!==a||1!==r)do{if(a--,0>--r||s[a]!==c[r]){var u="\n"+s[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=a&&0<=r);break}}}finally{Z=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?X(n):""}function te(e,t){switch(e.tag){case 26:case 27:case 5:return X(e.type);case 16:return X("Lazy");case 13:return e.child!==t&&null!==t?X("Suspense Fallback"):X("Suspense");case 19:return X("SuspenseList");case 0:case 15:return ee(e.type,!1);case 11:return ee(e.type.render,!1);case 1:return ee(e.type,!0);case 31:return X("Activity");default:return""}}function ne(e){try{var t="",n=null;do{t+=te(e,n),n=e,e=e.return}while(e);return t}catch(a){return"\nError generating stack: "+a.message+"\n"+a.stack}}var ae=Object.prototype.hasOwnProperty,re=a.unstable_scheduleCallback,ie=a.unstable_cancelCallback,oe=a.unstable_shouldYield,le=a.unstable_requestPaint,se=a.unstable_now,ce=a.unstable_getCurrentPriorityLevel,ue=a.unstable_ImmediatePriority,de=a.unstable_UserBlockingPriority,me=a.unstable_NormalPriority,fe=a.unstable_LowPriority,pe=a.unstable_IdlePriority,he=a.log,ge=a.unstable_setDisableYieldValue,ve=null,be=null;function ye(e){if("function"===typeof he&&ge(e),be&&"function"===typeof be.setStrictMode)try{be.setStrictMode(ve,e)}catch(t){}}var xe=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(je(e)/ke|0)|0},je=Math.log,ke=Math.LN2;var we=256,Ne=262144,_e=4194304;function Se(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:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&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 ze(e,t,n){var a=e.pendingLanes;if(0===a)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var l=134217727&a;return 0!==l?0!==(a=l&~i)?r=Se(a):0!==(o&=l)?r=Se(o):n||0!==(n=l&~e)&&(r=Se(n)):0!==(l=a&~i)?r=Se(l):0!==o?r=Se(o):n||0!==(n=a&~e)&&(r=Se(n)),0===r?0:0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(n=t&-t)||32===i&&0!==(4194048&n))?t:r}function Ce(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Ee(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 Pe(){var e=_e;return 0===(62914560&(_e<<=1))&&(_e=4194304),e}function Te(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Oe(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 a=31-xe(t);e.entangledLanes|=t,e.entanglements[a]=1073741824|e.entanglements[a]|261930&n}function Fe(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-xe(n),r=1<<a;r&t|e[a]&t&&(e[a]|=t),n&=~r}}function Ae(e,t){var n=t&-t;return 0!==((n=0!==(42&n)?1:De(n))&(e.suspendedLanes|t))?0:n}function De(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 Ie(e){return 2<(e&=-e)?8<e?0!==(134217727&e)?32:268435456:8:2}function Re(){var e=A.p;return 0!==e?e:void 0===(e=window.event)?32:Sm(e.type)}function Me(e,t){var n=A.p;try{return A.p=e,t()}finally{A.p=n}}var Ue=Math.random().toString(36).slice(2),qe="__reactFiber$"+Ue,Be="__reactProps$"+Ue,He="__reactContainer$"+Ue,Ve="__reactEvents$"+Ue,$e="__reactListeners$"+Ue,We="__reactHandles$"+Ue,Qe="__reactResources$"+Ue,Ge="__reactMarker$"+Ue;function Ke(e){delete e[qe],delete e[Be],delete e[Ve],delete e[$e],delete e[We]}function Je(e){var t=e[qe];if(t)return t;for(var n=e.parentNode;n;){if(t=n[He]||n[qe]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Dd(e);null!==e;){if(n=e[qe])return n;e=Dd(e)}return t}n=(e=n).parentNode}return null}function Ye(e){if(e=e[qe]||e[He]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function Xe(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(o(33))}function Ze(e){var t=e[Qe];return t||(t=e[Qe]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[Ge]=!0}var tt=new Set,nt={};function at(e,t){rt(e,t),rt(e+"Capture",t)}function rt(e,t){for(nt[e]=t,e=0;e<t.length;e++)tt.add(t[e])}var it=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
2037D\\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]*$"),ot={},lt={};function st(e,t,n){if(r=t,ae.call(lt,r)||!ae.call(ot,r)&&(it.test(r)?lt[r]=!0:(ot[r]=!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 a=t.toLowerCase().slice(0,5);if("data-"!==a&&"aria-"!==a)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var r}function ct(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 ut(e,t,n,a){if(null===a)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+a)}}function dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function mt(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ft(e){if(!e._valueTracker){var t=mt(e)?"checked":"value";e._valueTracker=function(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&"undefined"!==typeof a&&"function"===typeof a.get&&"function"===typeof a.set){var r=a.get,i=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e,t,""+e[t])}}function pt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=mt(e)?e.checked?"true":"false":e.value),(e=a)!==n&&(t.setValue(e),!0)}function ht(e){if("undefined"===typeof(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 vt(e){return e.replace(gt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function bt(e,t,n,a,r,i,o,l){e.name="",null!=o&&"function"!==typeof o&&"symbol"!==typeof o&&"boolean"!==typeof o?e.type=o:e.removeAttribute("type"),null!=t?"number"===o?(0===t&&""===e.value||e.value!=t)&&(e.value=""+dt(t)):e.value!==""+dt(t)&&(e.value=""+dt(t)):"submit"!==o&&"reset"!==o||e.removeAttribute("value"),null!=t?xt(e,o,dt(t)):null!=n?xt(e,o,dt(n)):null!=a&&e.removeAttribute("value"),null==r&&null!=i&&(e.defaultChecked=!!i),null!=r&&(e.checked=r&&"function"!==typeof r&&"symbol"!==typeof r),null!=l&&"function"!==typeof l&&"symbol"!==typeof l&&"boolean"!==typeof l?e.name=""+dt(l):e.removeAttribute("name")}function yt(e,t,n,a,r,i,o,l){if(null!=i&&"function"!==typeof i&&"symbol"!==typeof i&&"boolean"!==typeof i&&(e.type=i),null!=t||null!=n){if(!("submit"!==i&&"reset"!==i||void 0!==t&&null!==t))return void ft(e);n=null!=n?""+dt(n):"",t=null!=t?""+dt(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}a="function"!==typeof(a=null!=a?a:r)&&"symbol"!==typeof a&&!!a,e.checked=l?e.checked:!!a,e.defaultChecked=!!a,null!=o&&"function"!==typeof o&&"symbol"!==typeof o&&"boolean"!==typeof o&&(e.name=o),ft(e)}function xt(e,t,n){"number"===t&&ht(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function jt(e,t,n,a){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&a&&(e[n].defaultSelected=!0)}else{for(n=""+dt(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(a&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function kt(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)}
vendor: 4,421 bytes, line 2
2function wt(e,t,n,a){if(null==t){if(null!=a){if(null!=n)throw Error(o(92));if(L(a)){if(1<a.length)throw Error(o(93));a=a[0]}n=a}null==n&&(n=""),t=n}n=dt(t),e.defaultValue=n,(a=e.textContent)===n&&""!==a&&null!==a&&(e.value=a),ft(e)}function Nt(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 _t=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 St(e,t,n){var a=0===t.indexOf("--");null==n||"boolean"===typeof n||""===n?a?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":a?e.setProperty(t,n):"number"!==typeof n||0===n||_t.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function zt(e,t,n){if(null!=t&&"object"!==typeof t)throw Error(o(62));if(e=e.style,null!=n){for(var a in n)!n.hasOwnProperty(a)||null!=t&&t.hasOwnProperty(a)||(0===a.indexOf("--")?e.setProperty(a,""):"float"===a?e.cssFloat="":e[a]="");for(var r in t)a=t[r],t.hasOwnProperty(r)&&n[r]!==a&&St(e,r,a)}else for(var i in t)t.hasOwnProperty(i)&&St(e,i,t[i])}function Ct(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 Et=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
2-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"]]),Pt=/^[\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 Tt(e){return Pt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ot(){}var Lt=null;function Ft(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var At=null,Dt=null;function It(e){var t=Ye(e);if(t&&(e=t.stateNode)){var n=e[Be]||null;e:switch(e=t.stateNode,t.type){case"input":if(bt(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="'+vt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var r=a[Be]||null;if(!r)throw Error(o(90));bt(a,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)(a=n[t]).form===e.form&&pt(a)}break e;case"textarea":kt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&jt(e,!!n.multiple,t,!1)}}}var Rt=!1;function Mt(e,t,n){if(Rt)return e(t,n);Rt=!0;try{return e(t)}finally{if(Rt=!1,(null!==At||null!==Dt)&&(Zc(),At&&(t=At,e=Dt,Dt=At=null,It(t),e)))for(t=0;t<e.length;t++)It(e[t])}}function Ut(e,t){var n=e.stateNode;if(null===n)return null;var a=n[Be]||null;if(null===a)return null;n=a[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":(a=!a.disabled)||(a=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!a;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var qt=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),Bt=!1;if(qt)try{var Ht={};Object.defineProperty(Ht,"passive",{get:function(){Bt=!0}}),window.addEventListener("test",Ht,Ht),window.removeEventListener("test",Ht,Ht)}catch(Ym){Bt=!1}var Vt=null,$t=null,Wt=null;function Qt(){if(Wt)return Wt;var e,t,n=$t,a=n.length,r="value"in Vt?Vt.value:Vt.textContent,i=r.length;for(e=0;e<a&&n[e]===r[e];e++);var o=a-e;for(t=1;t<=o&&n[a-t]===r[i-t];t++);return Wt=r.slice(e,1<t?1-t:void 0)}function Gt(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 Jt(){return!1}function Yt(e){function t(t,n,a,r,i){for(var o in this._reactName=t,this._targetInst=a,this.type=n,this.nativeEvent=r,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(r):r[o]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?Kt:Jt,this.isPropagationStopped=Jt,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,en,tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nn=Yt(tn),an=f({},tn,{view:0,detail:0}),rn=Yt(an),on=f({},an,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 4,404 bytes, line 2
2Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==en&&(en&&"mousemove"===e.type?(Xt=e.screenX-en.screenX,Zt=e.screenY-en.screenY):Zt=Xt=0,en=e),Xt)},movementY:function(e){return"movementY"in e?e.movementY:Zt}}),ln=Yt(on),sn=Yt(f({},on,{dataTransfer:0})),cn=Yt(f({},an,{relatedTarget:0})),un=Yt(f({},tn,{animationName:0,elapsedTime:0,pseudoElement:0})),dn=Yt(f({},tn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),mn=Yt(f({},tn,{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"},hn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=hn[e])&&!!t[e]}function vn(){return gn}var bn=Yt(f({},an,{key:function(e){if(e.key){var t=fn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Gt(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:vn,charCode:function(e){return"keypress"===e.type?Gt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Gt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),yn=Yt(f({},on,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),xn=Yt(f({},an,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vn})),jn=Yt(f({},tn,{propertyName:0,elapsedTime:0,pseudoElement:0})),kn=Yt(f({},on,{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})),wn=Yt(f({},tn,{newState:0,oldState:0})),Nn=[9,13,27,32],_n=qt&&"CompositionEvent"in window,Sn=null;qt&&"documentMode"in document&&(Sn=document.documentMode);var zn=qt&&"TextEvent"in window&&!Sn,Cn=qt&&(!_n||Sn&&8<Sn&&11>=Sn),En=String.fromCharCode(32),Pn=!1;function Tn(e,t){switch(e){case"keyup":return-1!==Nn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function On(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Ln=!1;var Fn={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 An(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Fn[e.type]:"textarea"===t}function Dn(e,t,n,a){At?Dt?Dt.push(a):Dt=[a]:At=a,0<(t=ad(t,"onChange")).length&&(n=new nn("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var In=null,Rn=null;function Mn(e){Ku(e,0)}function Un(e){if(pt(Xe(e)))return e}function qn(e,t){if("change"===e)return t}var Bn=!1;if(qt){var Hn;if(qt){var Vn="oninput"in document;if(!Vn){var $n=document.createElement("div");$n.setAttribute("oninput","return;"),Vn="function"===typeof $n.oninput}Hn=Vn}else Hn=!1;Bn=Hn&&(!document.documentMode||9<document.documentMode)}function Wn(){In&&(In.detachEvent("onpropertychange",Qn),Rn=In=null)}function Qn(e){if("value"===e.propertyName&&Un(Rn)){var t=[];Dn(t,Rn,e,Ft(e)),Mt(Mn,t)}}function Gn(e,t,n){"focusin"===e?(Wn(),Rn=n,(In=t).attachEvent("onpropertychange",Qn)):"focusout"===e&&Wn()}function Kn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Un(Rn)}function Jn(e,t){if("click"===e)return Un(t)}function Yn(e,t){if("input"===e||"change"===e)return Un(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;
2if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var r=n[a];if(!ae.call(t,r)||!Xn(e[r],t[r]))return!1}return!0}function ea(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ta(e,t){var n,a=ea(e);for(e=0;a;){if(3===a.nodeType){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=ea(a)}}function na(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?na(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function aa(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(a){n=!1}if(!n)break;t=ht((e=t.contentWindow).document)}return t}function ra(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 ia=qt&&"documentMode"in document&&11>=document.documentMode,oa=null,la=null,sa=null,ca=!1;function ua(e,t,n){var a=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ca||null==oa||oa!==ht(a)||("selectionStart"in(a=oa)&&ra(a)?a={start:a.selectionStart,end:a.selectionEnd}:a={anchorNode:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset},sa&&Zn(sa,a)||(sa=a,0<(a=ad(la,"onSelect")).length&&(t=new nn("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=oa)))}function da(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ma={animationend:da("Animation","AnimationEnd"),animationiteration:da("Animation","AnimationIteration"),animationstart:da("Animation","AnimationStart"),transitionrun:da("Transition","TransitionRun"),transitionstart:da("Transition","TransitionStart"),transitioncancel:da("Transition","TransitionCancel"),transitionend:da("Transition","TransitionEnd")},fa={},pa={};function ha(e){if(fa[e])return fa[e];if(!ma[e])return e;var t,n=ma[e];for(t in n)if(n.hasOwnProperty(t)&&t in pa)return fa[e]=n[t];return e}qt&&(pa=document.createElement("div").style,"AnimationEvent"in window||(delete ma.animationend.animation,delete ma.animationiteration.animation,delete ma.animationstart.animation),"TransitionEvent"in window||delete ma.transitionend.transition);var ga=ha("animationend"),va=ha("animationiteration"),ba=ha("animationstart"),ya=ha("transitionrun"),xa=ha("transitionstart"),ja=ha("transitioncancel"),ka=ha("transitionend"),wa=new Map,Na="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 _a(e,t){wa.set(e,t),at(t,[e])}Na.push("scrollEnd");var Sa="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)},za=[],Ca=0,Ea=0;function Pa(){for(var e=Ca,t=Ea=Ca=0;t<e;){var n=za[t];za[t++]=null;var a=za[t];za[t++]=null;var r=za[t];za[t++]=null;var i=za[t];if(za[t++]=null,null!==a&&null!==r){var o=a.pending;
vendor: 16,294 bytes, line 2
2null===o?r.next=r:(r.next=o.next,o.next=r),a.pending=r}0!==i&&Fa(n,r,i)}}function Ta(e,t,n,a){za[Ca++]=e,za[Ca++]=t,za[Ca++]=n,za[Ca++]=a,Ea|=a,e.lanes|=a,null!==(e=e.alternate)&&(e.lanes|=a)}function Oa(e,t,n,a){return Ta(e,t,n,a),Aa(e)}function La(e,t){return Ta(e,null,null,t),Aa(e)}function Fa(e,t,n){e.lanes|=n;var a=e.alternate;null!==a&&(a.lanes|=n);for(var r=!1,i=e.return;null!==i;)i.childLanes|=n,null!==(a=i.alternate)&&(a.childLanes|=n),22===i.tag&&(null===(e=i.stateNode)||1&e._visibility||(r=!0)),e=i,i=i.return;return 3===e.tag?(i=e.stateNode,r&&null!==t&&(r=31-xe(n),null===(a=(e=i.hiddenUpdates)[r])?e[r]=[t]:a.push(t),t.lane=536870912|n),i):null}function Aa(e){if(50<Vc)throw Vc=0,$c=null,Error(o(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Da={};function Ia(e,t,n,a){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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ra(e,t,n,a){return new Ia(e,t,n,a)}function Ma(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ua(e,t){var n=e.alternate;return null===n?((n=Ra(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 qa(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 Ba(e,t,n,a,r,i){var l=0;if(a=e,"function"===typeof e)Ma(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,V.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case z:return(e=Ra(31,n,t,r)).elementType=z,e.lanes=i,e;case v:return Ha(n.children,r,i,t);case b:l=8,r|=24;break;case y:return(e=Ra(12,n,t,2|r)).elementType=y,e.lanes=i,e;case w:return(e=Ra(13,n,t,r)).elementType=w,e.lanes=i,e;case N:return(e=Ra(19,n,t,r)).elementType=N,e.lanes=i,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case j:l=10;break e;case x:l=9;break e;case k:l=11;break e;case _:l=14;break e;case S:l=16,a=null;break e}l=29,n=Error(o(130,null===e?"null":typeof e,"")),a=null}return(t=Ra(l,n,t,r)).elementType=e,t.type=a,t.lanes=i,t}function Ha(e,t,n,a){return(e=Ra(7,e,a,t)).lanes=n,e}function Va(e,t,n){return(e=Ra(6,e,null,t)).lanes=n,e}function $a(e){var t=Ra(18,null,null,0);return t.stateNode=e,t}function Wa(e,t,n){return(t=Ra(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Qa=new WeakMap;function Ga(e,t){if("object"===typeof e&&null!==e){var n=Qa.get(e);return void 0!==n?n:(t={value:e,source:t,stack:ne(t)},Qa.set(e,t),t)}return{value:e,source:t,stack:ne(t)}}var Ka=[],Ja=0,Ya=null,Xa=0,Za=[],er=0,tr=null,nr=1,ar="";function rr(e,t){Ka[Ja++]=Xa,Ka[Ja++]=Ya,Ya=e,Xa=t}function ir(e,t,n){Za[er++]=nr,Za[er++]=ar,Za[er++]=tr,tr=e;var a=nr;e=ar;var r=32-xe(a)-1;a&=~(1<<r),n+=1;var i=32-xe(t)+r;if(30<i){var o=r-r%5;i=(a&(1<<o)-1).toString(32),a>>=o,r-=o,nr=1<<32-xe(t)+r|n<<r|a,ar=i+e}else nr=1<<i|n<<r|a,ar=e}function or(e){null!==e.return&&(rr(e,1),ir(e,1,0))}function lr(e){for(;e===Ya;)Ya=Ka[--Ja],Ka[Ja]=null,Xa=Ka[--Ja],Ka[Ja]=null;for(;e===tr;)tr=Za[--er],Za[er]=null,ar=Za[--er],Za[er]=null,nr=Za[--er],Za[er]=null}function sr(e,t){Za[er++]=nr,Za[er++]=ar,Za[er++]=tr,nr=t.id,ar=t.overflow,tr=e}var cr=null,ur=null,dr=!1,mr=null,fr=!1,pr=Error(o(519));function hr(e){throw jr(Ga(Error(o(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),pr}function gr(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[qe]=e,t[Be]=a,n){case"dialog":Ju("cancel",t),Ju("close",t);break;case"iframe":case"object":case"embed":Ju("load",t);break;case"video":case"audio":for(n=0;n<Qu.length;n++)Ju(Qu[n],t);break;case"source":Ju("error",t);break;case"img":case"image":case"link":Ju("error",t),Ju("load",t);break;case"details":Ju("toggle",t);break;case"input":Ju("invalid",t),yt(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Ju("invalid",t);break;case"textarea":Ju("invalid",t),wt(t,a.value,a.defaultValue,a.children)}"string"!==typeof(n=a.children)&&"number"!==typeof n&&"bigint"!==typeof n||t.textContent===""+n||!0===a.suppressHydrationWarning||cd(t.textContent,n)?(null!=a.popover&&(Ju("beforetoggle",t),Ju("toggle",t)),null!=a.onScroll&&Ju("scroll",t),null!=a.onScrollEnd&&Ju("scrollend",t),null!=a.onClick&&(t.onclick=Ot),t=!0):t=!1,t||hr(e,!0)}function vr(e){for(cr=e.return;cr;)switch(cr.tag){case 5:case 31:case 13:return void(fr=!1);case 27:case 3:return void(fr=!0);default:cr=cr.return}}function br(e){if(e!==cr)return!1;if(!dr)return vr(e),dr=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||yd(e.type,e.memoizedProps)),t=!t),t&&ur&&hr(e),vr(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));ur=Ad(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));ur=Ad(e)}else 27===n?(n=ur,Sd(e.type)?(e=Fd,Fd=null,ur=e):ur=n):ur=cr?Ld(e.stateNode.nextSibling):null;return!0}function yr(){ur=cr=null,dr=!1}function xr(){var e=mr;return null!==e&&(null===Pc?Pc=e:Pc.push.apply(Pc,e),mr=null),e}function jr(e){null===mr?mr=[e]:mr.push(e)}var kr=M(null),wr=null,Nr=null;function _r(e,t,n){q(kr,t._currentValue),t._currentValue=n}function Sr(e){e._currentValue=kr.current,U(kr)}function zr(e,t,n){for(;null!==e;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==a&&(a.childLanes|=t)):null!==a&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Cr(e,t,n,a){var r=e.child;for(null!==r&&(r.return=e);null!==r;){var i=r.dependencies;if(null!==i){var l=r.child;i=i.firstContext;e:for(;null!==i;){var s=i;i=r;for(var c=0;c<t.length;c++)if(s.context===t[c]){i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),zr(i.return,n,e),a||(l=null);break e}i=s.next}}else if(18===r.tag){if(null===(l=r.return))throw Error(o(341));l.lanes|=n,null!==(i=l.alternate)&&(i.lanes|=n),zr(l,n,e),l=null}else l=r.child;if(null!==l)l.return=r;else for(l=r;null!==l;){if(l===e){l=null;break}if(null!==(r=l.sibling)){r.return=l.return,l=r;break}l=l.return}r=l}}function Er(e,t,n,a){e=null;for(var r=t,i=!1;null!==r;){if(!i)if(0!==(524288&r.flags))i=!0;else if(0!==(262144&r.flags))break;if(10===r.tag){var l=r.alternate;if(null===l)throw Error(o(387));if(null!==(l=l.memoizedProps)){var s=r.type;Xn(r.pendingProps.value,l.value)||(null!==e?e.push(s):e=[s])}}else if(r===Q.current){if(null===(l=r.alternate))throw Error(o(387));l.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(null!==e?e.push(um):e=[um])}r=r.return}null!==e&&Cr(t,e,n,a),t.flags|=262144}function Pr(e){for(e=e.firstContext;null!==e;){if(!Xn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Tr(e){wr=e,Nr=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Or(e){return Fr(wr,e)}function Lr(e,t){return null===wr&&Tr(e),Fr(e,t)}function Fr(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===Nr){if(null===e)throw Error(o(308));Nr=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Nr=Nr.next=t;return n}var Ar="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()})}},Dr=a.unstable_scheduleCallback,Ir=a.unstable_NormalPriority,Rr={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Mr(){return{controller:new Ar,data:new Map,refCount:0}}function Ur(e){e.refCount--,0===e.refCount&&Dr(Ir,function(){e.controller.abort()})}var qr=null,Br=0,Hr=0,Vr=null;function $r(){if(0===--Br&&null!==qr){null!==Vr&&(Vr.status="fulfilled");var e=qr;qr=null,Hr=0,Vr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Wr=F.S;F.S=function(e,t){Lc=se(),"object"===typeof t&&null!==t&&"function"===typeof t.then&&function(e,t){if(null===qr){var n=qr=[];Br=0,Hr=Bu(),Vr={status:"pending",value:void 0,then:function(e){n.push(e)}}}Br++,t.then($r,$r)}(0,t),null!==Wr&&Wr(e,t)};var Qr=M(null);function Gr(){var e=Qr.current;return null!==e?e:pc.pooledCache}function Kr(e,t){q(Qr,null===t?Qr.current:t.pool)}function Jr(){var e=Gr();return null===e?null:{parent:Rr._currentValue,pool:e}}var Yr=Error(o(460)),Xr=Error(o(474)),Zr=Error(o(542)),ei={then:function(){}};function ti(e){return"fulfilled"===(e=e.status)||"rejected"===e}function ni(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Ot,Ot),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw oi(e=t.reason),e;default:if("string"===typeof t.status)t.then(Ot,Ot);else{if(null!==(e=pc)&&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 oi(e=t.reason),e}throw ri=t,Yr}}function ai(e){try{return(0,e._init)(e._payload)}catch(t){if(null!==t&&"object"===typeof t&&"function"===typeof t.then)throw ri=t,Yr;throw t}}var ri=null;function ii(){if(null===ri)throw Error(o(459));var e=ri;return ri=null,e}function oi(e){if(e===Yr||e===Zr)throw Error(o(483))}var li=null,si=0;function ci(e){var t=si;return si+=1,null===li&&(li=[]),ni(li,e,t)}function ui(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function di(e,t){if(t.$$typeof===p)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 mi(e){function t(t,n){if(e){var a=t.deletions;null===a?(t.deletions=[n],t.flags|=16):a.push(n)}}function n(n,a){if(!e)return null;for(;null!==a;)t(n,a),a=a.sibling;return null}function a(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 r(e,t){return(e=Ua(e,t)).index=0,e.sibling=null,e}function i(t,n,a){return t.index=a,e?null!==(a=t.alternate)?(a=a.index)<n?(t.flags|=67108866,n):a:(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,a){return null===t||6!==t.tag?((t=Va(n,e.mode,a)).return=e,t):((t=r(t,n)).return=e,t)}function c(e,t,n,a){var i=n.type;return i===v?d(e,t,n.props.children,a,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===S&&ai(i)===t.type)?(ui(t=r(t,n.props),n),t.return=e,t):(ui(t=Ba(n.type,n.key,n.props,null,e.mode,a),n),t.return=e,t)}function u(e,t,n,a){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Wa(n,e.mode,a)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function d(e,t,n,a,i){return null===t||7!==t.tag?((t=Ha(n,e.mode,a,i)).return=e,t):((t=r(t,n)).return=e,t)}function m(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t||"bigint"===typeof t)return(t=Va(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case h:return ui(n=Ba(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case g:return(t=Wa(t,e.mode,n)).return=e,t;case S:return m(e,t=ai(t),n)}if(L(t)||P(t))return(t=Ha(t,e.mode,n,null)).return=e,t;if("function"===typeof t.then)return m(e,ci(t),n);if(t.$$typeof===j)return m(e,Lr(e,t),n);di(e,t)}return null}function f(e,t,n,a){var r=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n||"bigint"===typeof n)return null!==r?null:s(e,t,""+n,a);if("object"===typeof n&&null!==n){switch(n.$$typeof){case h:return n.key===r?c(e,t,n,a):null;case g:return n.key===r?u(e,t,n,a):null;case S:return f(e,t,n=ai(n),a)}if(L(n)||P(n))return null!==r?null:d(e,t,n,a,null);if("function"===typeof n.then)return f(e,t,ci(n),a);if(n.$$typeof===j)return f(e,t,Lr(e,n),a);di(e,n)}return null}function p(e,t,n,a,r){if("string"===typeof a&&""!==a||"number"===typeof a||"bigint"===typeof a)return s(t,e=e.get(n)||null,""+a,r);if("object"===typeof a&&null!==a){switch(a.$$typeof){case h:return c(t,e=e.get(null===a.key?n:a.key)||null,a,r);case g:return u(t,e=e.get(null===a.key?n:a.key)||null,a,r);case S:return p(e,t,n,a=ai(a),r)}if(L(a)||P(a))return d(t,e=e.get(n)||null,a,r,null);if("function"===typeof a.then)return p(e,t,n,ci(a),r);if(a.$$typeof===j)return p(e,t,n,Lr(t,a),r);di(t,a)}return null}function b(s,c,u,d){if("object"===typeof u&&null!==u&&u.type===v&&null===u.key&&(u=u.props.children),"object"===typeof u&&null!==u){switch(u.$$typeof){case h:e:{for(var y=u.key;null!==c;){if(c.key===y){if((y=u.type)===v){if(7===c.tag){n(s,c.sibling),(d=r(c,u.props.children)).return=s,s=d;break e}}else if(c.elementType===y||"object"===typeof y&&null!==y&&y.$$typeof===S&&ai(y)===c.type){n(s,c.sibling),ui(d=r(c,u.props),u),d.return=s,s=d;break e}n(s,c);break}t(s,c),c=c.sibling}u.type===v?((d=Ha(u.props.children,s.mode,d,u.key)).return=s,s=d):(ui(d=Ba(u.type,u.key,u.props,null,s.mode,d),u),d.return=s,s=d)}return l(s);case g:e:{for(y=u.key;null!==c;){if(c.key===y){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(s,c.sibling),(d=r(c,u.children||[])).return=s,s=d;break e}n(s,c);break}t(s,c),c=c.sibling}(d=Wa(u,s.mode,d)).return=s,s=d}return l(s);case S:return b(s,c,u=ai(u),d)}if(L(u))return function(r,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 v=f(r,d,l[h],s);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(r,d),o=i(v,o,h),null===u?c=v:u.sibling=v,u=v,d=g}if(h===l.length)return n(r,d),dr&&rr(r,h),c;if(null===d){for(;h<l.length;h++)null!==(d=m(r,l[h],s))&&(o=i(d,o,h),null===u?c=d:u.sibling=d,u=d);return dr&&rr(r,h),c}for(d=a(d);h<l.length;h++)null!==(g=p(d,r,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(r,e)}),dr&&rr(r,h),c}(s,c,u,d);if(P(u)){if("function"!==typeof(y=P(u)))throw Error(o(150));return function(r,l,s,c){if(null==s)throw Error(o(151));for(var u=null,d=null,h=l,g=l=0,v=null,b=s.next();null!==h&&!b.done;g++,b=s.next()){h.index>g?(v=h,h=null):v=h.sibling;var y=f(r,h,b.value,c);if(null===y){null===h&&(h=v);break}e&&h&&null===y.alternate&&t(r,h),l=i(y,l,g),null===d?u=y:d.sibling=y,d=y,h=v}if(b.done)return n(r,h),dr&&rr(r,g),u;if(null===h){for(;!b.done;g++,b=s.next())null!==(b=m(r,b.value,c))&&(l=i(b,l,g),null===d?u=b:d.sibling=b,d=b);return dr&&rr(r,g),u}for(h=a(h);!b.done;g++,b=s.next())null!==(b=p(h,r,g,b.value,c))&&(e&&null!==b.alternate&&h.delete(null===b.key?g:b.key),l=i(b,l,g),null===d?u=b:d.sibling=b,d=b);return e&&h.forEach(function(e){return t(r,e)}),dr&&rr(r,g),u}(s,c,u=y.call(u),d)}
vendor: 9,364 bytes, line 2
2if("function"===typeof u.then)return b(s,c,ci(u),d);if(u.$$typeof===j)return b(s,c,Lr(s,u),d);di(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=r(c,u)).return=s,s=d):(n(s,c),(d=Va(u,s.mode,d)).return=s,s=d),l(s)):n(s,c)}return function(e,t,n,a){try{si=0;var r=b(e,t,n,a);return li=null,r}catch(o){if(o===Yr||o===Zr)throw o;var i=Ra(29,o,null,e.mode);return i.lanes=a,i.return=e,i}}}var fi=mi(!0),pi=mi(!1),hi=!1;function gi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vi(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 bi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function yi(e,t,n){var a=e.updateQueue;if(null===a)return null;if(a=a.shared,0!==(2&fc)){var r=a.pending;return null===r?t.next=t:(t.next=r.next,r.next=t),a.pending=t,t=Aa(e),Fa(e,null,n),t}return Ta(e,a,t,n),Aa(e)}function xi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194048&n))){var a=t.lanes;n|=a&=e.pendingLanes,t.lanes=n,Fe(e,n)}}function ji(e,t){var n=e.updateQueue,a=e.alternate;if(null!==a&&n===(a=a.updateQueue)){var r=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===i?r=i=o:i=i.next=o,n=n.next}while(null!==n);null===i?r=i=t:i=i.next=t}else r=i=t;return n={baseState:a.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ki=!1;function wi(){if(ki){if(null!==Vr)throw Vr}}function Ni(e,t,n,a){ki=!1;var r=e.updateQueue;hi=!1;var i=r.firstBaseUpdate,o=r.lastBaseUpdate,l=r.shared.pending;if(null!==l){r.shared.pending=null;var s=l,c=s.next;s.next=null,null===o?i=c:o.next=c,o=s;var u=e.alternate;null!==u&&((l=(u=u.updateQueue).lastBaseUpdate)!==o&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s))}if(null!==i){var d=r.baseState;for(o=0,u=c=s=null,l=i;;){var m=-536870913&l.lane,p=m!==l.lane;if(p?(gc&m)===m:(a&m)===m){0!==m&&m===Hr&&(ki=!0),null!==u&&(u=u.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var h=e,g=l;m=t;var v=n;switch(g.tag){case 1:if("function"===typeof(h=g.payload)){d=h.call(v,d,m);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(m="function"===typeof(h=g.payload)?h.call(v,d,m):h)||void 0===m)break e;d=f({},d,m);break e;case 2:hi=!0}}null!==(m=l.callback)&&(e.flags|=64,p&&(e.flags|=8192),null===(p=r.callbacks)?r.callbacks=[m]:p.push(m))}else p={lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=p,s=d):u=u.next=p,o|=m;if(null===(l=l.next)){if(null===(l=r.shared.pending))break;l=(p=l).next,p.next=null,r.lastBaseUpdate=p,r.shared.pending=null}}null===u&&(s=d),r.baseState=s,r.firstBaseUpdate=c,r.lastBaseUpdate=u,null===i&&(r.shared.lanes=0),Nc|=o,e.lanes=o,e.memoizedState=d}}function _i(e,t){if("function"!==typeof e)throw Error(o(191,e));e.call(t)}function Si(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)_i(n[e],t)}var zi=M(null),Ci=M(0);function Ei(e,t){q(Ci,e=kc),q(zi,t),kc=e|t.baseLanes}function Pi(){q(Ci,kc),q(zi,zi.current)}function Ti(){kc=Ci.current,U(zi),U(Ci)}var Oi=M(null),Li=null;function Fi(e){var t=e.alternate;q(Mi,1&Mi.current),q(Oi,e),null===Li&&(null===t||null!==zi.current||null!==t.memoizedState)&&(Li=e)}function Ai(e){q(Mi,Mi.current),q(Oi,e),null===Li&&(Li=e)}function Di(e){22===e.tag?(q(Mi,Mi.current),q(Oi,e),null===Li&&(Li=e)):Ii()}function Ii(){q(Mi,Mi.current),q(Oi,Oi.current)}function Ri(e){U(Oi),Li===e&&(Li=null),U(Mi)}var Mi=M(0);function Ui(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Td(n)||Od(n)))return t}else if(19!==t.tag||"forwards"!==t.memoizedProps.revealOrder&&"backwards"!==t.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==t.memoizedProps.revealOrder&&"together"!==t.memoizedProps.revealOrder){if(null!==t.child){t.child.return=t,t=t.child;continue}}else if(0!==(128&t.flags))return t;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}var qi=0,Bi=null,Hi=null,Vi=null,$i=!1,Wi=!1,Qi=!1,Gi=0,Ki=0,Ji=null,Yi=0;function Xi(){throw Error(o(321))}function Zi(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 eo(e,t,n,a,r,i){return qi=i,Bi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,F.H=null===e||null===e.memoizedState?gl:vl,Qi=!1,i=n(a,r),Qi=!1,Wi&&(i=no(t,n,a,r)),to(e),i}function to(e){F.H=hl;var t=null!==Hi&&null!==Hi.next;if(qi=0,Vi=Hi=Bi=null,$i=!1,Ki=0,Ji=null,t)throw Error(o(300));null===e||Ll||null!==(e=e.dependencies)&&Pr(e)&&(Ll=!0)}function no(e,t,n,a){Bi=e;var r=0;do{if(Wi&&(Ji=null),Ki=0,Wi=!1,25<=r)throw Error(o(301));if(r+=1,Vi=Hi=null,null!=e.updateQueue){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,null!=i.memoCache&&(i.memoCache.index=0)}F.H=bl,i=t(n,a)}while(Wi);return i}function ao(){var e=F.H,t=e.useState()[0];return t="function"===typeof t.then?co(t):t,e=e.useState()[0],(null!==Hi?Hi.memoizedState:null)!==e&&(Bi.flags|=1024),t}function ro(){var e=0!==Gi;return Gi=0,e}function io(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function oo(e){if($i){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}$i=!1}qi=0,Vi=Hi=Bi=null,Wi=!1,Ki=Gi=0,Ji=null}function lo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Vi?Bi.memoizedState=Vi=e:Vi=Vi.next=e,Vi}function so(){if(null===Hi){var e=Bi.alternate;e=null!==e?e.memoizedState:null}else e=Hi.next;var t=null===Vi?Bi.memoizedState:Vi.next;if(null!==t)Vi=t,Hi=e;else{if(null===e){if(null===Bi.alternate)throw Error(o(467));throw Error(o(310))}e={memoizedState:(Hi=e).memoizedState,baseState:Hi.baseState,baseQueue:Hi.baseQueue,queue:Hi.queue,next:null},null===Vi?Bi.memoizedState=Vi=e:Vi=Vi.next=e}return Vi}function co(e){var t=Ki;return Ki+=1,null===Ji&&(Ji=[]),e=ni(Ji,e,t),t=Bi,null===(null===Vi?t.memoizedState:Vi.next)&&(t=t.alternate,F.H=null===t||null===t.memoizedState?gl:vl),e}function uo(e){if(null!==e&&"object"===typeof e){if("function"===typeof e.then)return co(e);if(e.$$typeof===j)return Or(e)}throw Error(o(438,String(e)))}function mo(e){var t=null,n=Bi.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var a=Bi.alternate;null!==a&&(null!==(a=a.updateQueue)&&(null!=(a=a.memoCache)&&(t={data:a.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},Bi.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=C;return t.index++,n}function fo(e,t){return"function"===typeof t?t(e):t}function po(e){return ho(so(),Hi,e)}function ho(e,t,n){var a=e.queue;if(null===a)throw Error(o(311));a.lastRenderedReducer=n;var r=e.baseQueue,i=a.pending;if(null!==i){if(null!==r){var l=r.next;r.next=i.next,i.next=l}t.baseQueue=r=i,a.pending=null}if(i=e.baseState,null===r)e.memoizedState=i;else{var s=l=null,c=null,u=t=r.next,d=!1;do{var m=-536870913&u.lane;if(m!==u.lane?(gc&m)===m:(qi&m)===m){var f=u.revertLane;if(0===f)null!==c&&(c=c.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),m===Hr&&(d=!0);else{if((qi&f)===f){u=u.next,f===Hr&&(d=!0);continue}m={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(s=c=m,l=i):c=c.next=m,Bi.lanes|=f,Nc|=f}m=u.action,Qi&&n(i,m),i=u.hasEagerState?u.eagerState:n(i,m)}else f={lane:m,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(s=c=f,l=i):c=c.next=f,Bi.lanes|=m,Nc|=m;u=u.next}while(null!==u&&u!==t);if(null===c?l=i:c.next=s,!Xn(i,e.memoizedState)&&(Ll=!0,d&&null!==(n=Vr)))throw n;e.memoizedState=i,e.baseState=l,e.baseQueue=c,a.lastRenderedState=i}return null===r&&(a.lanes=0),[e.memoizedState,a.dispatch]}function go(e){var t=so(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var a=n.dispatch,r=n.pending,i=t.memoizedState;if(null!==r){n.pending=null;var l=r=r.next;do{i=e(i,l.action),l=l.next}while(l!==r);Xn(i,t.memoizedState)||(Ll=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,a]}function vo(e,t,n){var a=Bi,r=so(),i=dr;if(i){if(void 0===n)throw Error(o(407));n=n()}else n=t();var l=!Xn((Hi||r).memoizedState,n);if(l&&(r.memoizedState=n,Ll=!0),r=r.queue,Bo(xo.bind(null,a,r,e),[e]),r.getSnapshot!==t||l||null!==Vi&&1&Vi.memoizedState.tag){if(a.flags|=2048,Io(9,{destroy:void 0},yo.bind(null,a,r,n,t),null),null===pc)throw Error(o(349));i||0!==(127&qi)||bo(a,t,n)}return n}function bo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Bi.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Bi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}
vendor: 2,394 bytes, line 2
2function yo(e,t,n,a){t.value=n,t.getSnapshot=a,jo(t)&&ko(e)}function xo(e,t,n){return n(function(){jo(t)&&ko(e)})}function jo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Xn(e,n)}catch(a){return!0}}function ko(e){var t=La(e,2);null!==t&&Gc(t,e,2)}function wo(e){var t=lo();if("function"===typeof e){var n=e;if(e=n(),Qi){ye(!0);try{n()}finally{ye(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fo,lastRenderedState:e},t}function No(e,t,n,a){return e.baseState=n,ho(e,Hi,"function"===typeof a?a:fo)}function _o(e,t,n,a,r){if(ml(e))throw Error(o(485));if(null!==(e=t.action)){var i={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){i.listeners.push(e)}};null!==F.T?n(!0):i.isTransition=!1,a(i),null===(n=t.pending)?(i.next=t.pending=i,So(t,i)):(i.next=n.next,t.pending=n.next=i)}}function So(e,t){var n=t.action,a=t.payload,r=e.state;if(t.isTransition){var i=F.T,o={};F.T=o;try{var l=n(r,a),s=F.S;null!==s&&s(o,l),zo(e,t,l)}catch(c){Eo(e,t,c)}finally{null!==i&&null!==o.types&&(i.types=o.types),F.T=i}}else try{zo(e,t,i=n(r,a))}catch(u){Eo(e,t,u)}}function zo(e,t,n){null!==n&&"object"===typeof n&&"function"===typeof n.then?n.then(function(n){Co(e,t,n)},function(n){return Eo(e,t,n)}):Co(e,t,n)}function Co(e,t,n){t.status="fulfilled",t.value=n,Po(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,So(e,n)))}function Eo(e,t,n){var a=e.pending;if(e.pending=null,null!==a){a=a.next;do{t.status="rejected",t.reason=n,Po(t),t=t.next}while(t!==a)}e.action=null}function Po(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function To(e,t){return t}function Oo(e,t){if(dr){var n=pc.formState;if(null!==n){e:{var a=Bi;if(dr){if(ur){t:{for(var r=ur,i=fr;8!==r.nodeType;){if(!i){r=null;break t}if(null===(r=Ld(r.nextSibling))){r=null;break t}}r="F!"===(i=r.data)||"F"===i?r:null}if(r){ur=Ld(r.nextSibling),a="F!"===r.data;break e}}hr(a)}a=!1}a&&(t=n[0])}}return(n=lo()).memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:To,lastRenderedState:t},n.queue=a,n=cl.bind(null,Bi,a),a.dispatch=n,a=wo(!1),i=dl.bind(null,Bi,!1,a.queue),r={state:t,dispatch:null,action:e,pending:null},(a=lo()).queue=r,n=_o.bind(null,Bi,r,i,n),r.dispatch=n,a.memoizedState=e,[t,n,!1]}function Lo(e){return Fo(so(),Hi,e)}
2function Fo(e,t,n){if(t=ho(e,t,To)[0],e=po(fo)[0],"object"===typeof t&&null!==t&&"function"===typeof t.then)try{var a=co(t)}catch(o){if(o===Yr)throw Zr;throw o}else a=t;var r=(t=so()).queue,i=r.dispatch;return n!==t.memoizedState&&(Bi.flags|=2048,Io(9,{destroy:void 0},Ao.bind(null,r,n),null)),[a,i,e]}function Ao(e,t){e.action=t}function Do(e){var t=so(),n=Hi;if(null!==n)return Fo(t,n,e);so(),t=t.memoizedState;var a=(n=so()).queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Io(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},null===(t=Bi.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Bi.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Ro(){return so().memoizedState}function Mo(e,t,n,a){var r=lo();Bi.flags|=e,r.memoizedState=Io(1|t,{destroy:void 0},n,void 0===a?null:a)}function Uo(e,t,n,a){var r=so();a=void 0===a?null:a;var i=r.memoizedState.inst;null!==Hi&&null!==a&&Zi(a,Hi.memoizedState.deps)?r.memoizedState=Io(t,i,n,a):(Bi.flags|=e,r.memoizedState=Io(1|t,i,n,a))}function qo(e,t){Mo(8390656,8,e,t)}function Bo(e,t){Uo(2048,8,e,t)}function Ho(e){var t=so().memoizedState;return function(e){Bi.flags|=4;var t=Bi.updateQueue;if(null===t)t={lastEffect:null,events:null,stores:null,memoCache:null},Bi.updateQueue=t,t.events=[e];else{var n=t.events;null===n?t.events=[e]:n.push(e)}}({ref:t,nextImpl:e}),function(){if(0!==(2&fc))throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Vo(e,t){return Uo(4,2,e,t)}function $o(e,t){return Uo(4,4,e,t)}function Wo(e,t){if("function"===typeof t){e=e();var n=t(e);return function(){"function"===typeof n?n():t(null)}}if(null!==t&&void 0!==t)return e=e(),t.current=e,function(){t.current=null}}function Qo(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,Uo(4,4,Wo.bind(null,t,e),n)}function Go(){}function Ko(e,t){var n=so();t=void 0===t?null:t;var a=n.memoizedState;return null!==t&&Zi(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Jo(e,t){var n=so();t=void 0===t?null:t;var a=n.memoizedState;if(null!==t&&Zi(t,a[1]))return a[0];if(a=e(),Qi){ye(!0);try{e()}finally{ye(!1)}}return n.memoizedState=[a,t],a}function Yo(e,t,n){return void 0===n||0!==(1073741824&qi)&&0===(261930&gc)?e.memoizedState=t:(e.memoizedState=n,e=Qc(),Bi.lanes|=e,Nc|=e,n)}function Xo(e,t,n,a){return Xn(n,t)?n:null!==zi.current?(e=Yo(e,n,a),Xn(e,t)||(Ll=!0),e):0===(42&qi)||0!==(1073741824&qi)&&0===(261930&gc)?(Ll=!0,e.memoizedState=n):(e=Qc(),Bi.lanes|=e,Nc|=e,t)}function Zo(e,t,n,a,r){var i=A.p;A.p=0!==i&&8>i?i:8;var o=F.T,l={};F.T=l,dl(e,!1,t,n);try{var s=r(),c=F.S;if(null!==c&&c(l,s),null!==s&&"object"===typeof s&&"function"===typeof s.then)ul(e,t,function(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(a.status="rejected",a.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),a}(s,a),Wc());else ul(e,t,a,Wc())}catch(u){ul(e,t,{then:function(){},status:"rejected",reason:u},Wc())}finally{A.p=i,null!==o&&null!==l.types&&(o.types=l.types),F.T=o}}function el(){}function tl(e,t,n,a){if(5!==e.tag)throw Error(o(476));var r=nl(e).queue;Zo(e,r,t,D,null===n?el:function(){return al(e),n(a)})}function nl(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:fo,lastRenderedState:D},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fo,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function al(e){var t=nl(e);null===t.next&&(t=e.alternate.memoizedState),ul(e,t.next.queue,{},Wc())}function rl(){return Or(um)}function il(){return so().memoizedState}function ol(){return so().memoizedState}function ll(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Wc(),a=yi(t,e=bi(n),n);return null!==a&&(Gc(a,t,n),xi(a,t,n)),t={cache:Mr()},void(e.payload=t)}t=t.return}}function sl(e,t,n){var a=Wc();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ml(e)?fl(t,n):null!==(n=Oa(e,t,n,a))&&(Gc(n,e,a),pl(n,t,a))}function cl(e,t,n){ul(e,t,n,Wc())}function ul(e,t,n,a){var r={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ml(e))fl(t,r);else{var i=e.alternate;
vendor: 8,243 bytes, line 2
2if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var o=t.lastRenderedState,l=i(o,n);if(r.hasEagerState=!0,r.eagerState=l,Xn(l,o))return Ta(e,t,r,0),null===pc&&Pa(),!1}catch(s){}if(null!==(n=Oa(e,t,r,a)))return Gc(n,e,a),pl(n,t,a),!0}return!1}function dl(e,t,n,a){if(a={lane:2,revertLane:Bu(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ml(e)){if(t)throw Error(o(479))}else null!==(t=Oa(e,n,a,2))&&Gc(t,e,2)}function ml(e){var t=e.alternate;return e===Bi||null!==t&&t===Bi}function fl(e,t){Wi=$i=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function pl(e,t,n){if(0!==(4194048&n)){var a=t.lanes;n|=a&=e.pendingLanes,t.lanes=n,Fe(e,n)}}var hl={readContext:Or,use:uo,useCallback:Xi,useContext:Xi,useEffect:Xi,useImperativeHandle:Xi,useLayoutEffect:Xi,useInsertionEffect:Xi,useMemo:Xi,useReducer:Xi,useRef:Xi,useState:Xi,useDebugValue:Xi,useDeferredValue:Xi,useTransition:Xi,useSyncExternalStore:Xi,useId:Xi,useHostTransitionStatus:Xi,useFormState:Xi,useActionState:Xi,useOptimistic:Xi,useMemoCache:Xi,useCacheRefresh:Xi};hl.useEffectEvent=Xi;var gl={readContext:Or,use:uo,useCallback:function(e,t){return lo().memoizedState=[e,void 0===t?null:t],e},useContext:Or,useEffect:qo,useImperativeHandle:function(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,Mo(4194308,4,Wo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Mo(4194308,4,e,t)},useInsertionEffect:function(e,t){Mo(4,2,e,t)},useMemo:function(e,t){var n=lo();t=void 0===t?null:t;var a=e();if(Qi){ye(!0);try{e()}finally{ye(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=lo();if(void 0!==n){var r=n(t);if(Qi){ye(!0);try{n(t)}finally{ye(!1)}}}else r=t;return a.memoizedState=a.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},a.queue=e,e=e.dispatch=sl.bind(null,Bi,e),[a.memoizedState,e]},useRef:function(e){return e={current:e},lo().memoizedState=e},useState:function(e){var t=(e=wo(e)).queue,n=cl.bind(null,Bi,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Go,useDeferredValue:function(e,t){return Yo(lo(),e,t)},useTransition:function(){var e=wo(!1);return e=Zo.bind(null,Bi,e.queue,!0,!1),lo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=Bi,r=lo();if(dr){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===pc)throw Error(o(349));0!==(127&gc)||bo(a,t,n)}r.memoizedState=n;var i={value:n,getSnapshot:t};return r.queue=i,qo(xo.bind(null,a,i,e),[e]),a.flags|=2048,Io(9,{destroy:void 0},yo.bind(null,a,i,n,t),null),n},useId:function(){var e=lo(),t=pc.identifierPrefix;if(dr){var n=ar;t="_"+t+"R_"+(n=(nr&~(1<<32-xe(nr)-1)).toString(32)+n),0<(n=Gi++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=Yi++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:rl,useFormState:Oo,useActionState:Oo,useOptimistic:function(e){var t=lo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=dl.bind(null,Bi,!0,n),n.dispatch=t,[e,t]},useMemoCache:mo,useCacheRefresh:function(){return lo().memoizedState=ll.bind(null,Bi)},useEffectEvent:function(e){var t=lo(),n={impl:e};return t.memoizedState=n,function(){if(0!==(2&fc))throw Error(o(440));return n.impl.apply(void 0,arguments)}}},vl={readContext:Or,use:uo,useCallback:Ko,useContext:Or,useEffect:Bo,useImperativeHandle:Qo,useInsertionEffect:Vo,useLayoutEffect:$o,useMemo:Jo,useReducer:po,useRef:Ro,useState:function(){return po(fo)},useDebugValue:Go,useDeferredValue:function(e,t){return Xo(so(),Hi.memoizedState,e,t)},useTransition:function(){var e=po(fo)[0],t=so().memoizedState;return["boolean"===typeof e?e:co(e),t]},useSyncExternalStore:vo,useId:il,useHostTransitionStatus:rl,useFormState:Lo,useActionState:Lo,useOptimistic:function(e,t){return No(so(),0,e,t)},useMemoCache:mo,useCacheRefresh:ol};vl.useEffectEvent=Ho;var bl={readContext:Or,use:uo,useCallback:Ko,useContext:Or,useEffect:Bo,useImperativeHandle:Qo,useInsertionEffect:Vo,useLayoutEffect:$o,useMemo:Jo,useReducer:go,useRef:Ro,useState:function(){return go(fo)},useDebugValue:Go,useDeferredValue:function(e,t){var n=so();return null===Hi?Yo(n,e,t):Xo(n,Hi.memoizedState,e,t)},useTransition:function(){var e=go(fo)[0],t=so().memoizedState;return["boolean"===typeof e?e:co(e),t]},useSyncExternalStore:vo,useId:il,useHostTransitionStatus:rl,useFormState:Do,useActionState:Do,useOptimistic:function(e,t){var n=so();return null!==Hi?No(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:mo,useCacheRefresh:ol};function yl(e,t,n,a){n=null===(n=n(a,t=e.memoizedState))||void 0===n?t:f({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}bl.useEffectEvent=Ho;var xl={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Wc(),r=bi(a);r.payload=t,void 0!==n&&null!==n&&(r.callback=n),null!==(t=yi(e,r,a))&&(Gc(t,e,a),xi(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Wc(),r=bi(a);r.tag=1,r.payload=t,void 0!==n&&null!==n&&(r.callback=n),null!==(t=yi(e,r,a))&&(Gc(t,e,a),xi(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Wc(),a=bi(n);a.tag=2,void 0!==t&&null!==t&&(a.callback=t),null!==(t=yi(e,a,n))&&(Gc(t,e,n),xi(t,e,n))}};function jl(e,t,n,a,r,i,o){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(a,i,o):!t.prototype||!t.prototype.isPureReactComponent||(!Zn(n,a)||!Zn(r,i))}function kl(e,t,n,a){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,a),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&xl.enqueueReplaceState(t,t.state,null)}function wl(e,t){var n=t;if("ref"in t)for(var a in n={},t)"ref"!==a&&(n[a]=t[a]);if(e=e.defaultProps)for(var r in n===t&&(n=f({},n)),e)void 0===n[r]&&(n[r]=e[r]);return n}function Nl(e){Sa(e)}function _l(e){console.error(e)}function Sl(e){Sa(e)}function zl(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(a){setTimeout(function(){throw a})}}function El(e,t,n){return(n=bi(n)).tag=3,n.payload={element:null},n.callback=function(){zl(e,t)},n}function Pl(e){return(e=bi(e)).tag=3,e}function Tl(e,t,n,a){var r=n.type.getDerivedStateFromError;if("function"===typeof r){var i=a.value;e.payload=function(){return r(i)},e.callback=function(){Cl(t,n,a)}}var o=n.stateNode;null!==o&&"function"===typeof o.componentDidCatch&&(e.callback=function(){Cl(t,n,a),"function"!==typeof r&&(null===Dc?Dc=new Set([this]):Dc.add(this));var e=a.stack;this.componentDidCatch(a.value,{componentStack:null!==e?e:""})})}var Ol=Error(o(461)),Ll=!1;function Fl(e,t,n,a){t.child=null===e?pi(t,null,n,a):fi(t,e.child,n,a)}function Al(e,t,n,a,r){n=n.render;var i=t.ref;if("ref"in a){var o={};for(var l in a)"ref"!==l&&(o[l]=a[l])}else o=a;return Tr(t),a=eo(e,t,n,o,i,r),l=ro(),null===e||Ll?(dr&&l&&or(t),t.flags|=1,Fl(e,t,a,r),t.child):(io(e,t,r),rs(e,t,r))}function Dl(e,t,n,a,r){if(null===e){var i=n.type;return"function"!==typeof i||Ma(i)||void 0!==i.defaultProps||null!==n.compare?((e=Ba(n.type,null,a,t,t.mode,r)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Il(e,t,i,a,r))}if(i=e.child,!is(e,r)){var o=i.memoizedProps;if((n=null!==(n=n.compare)?n:Zn)(o,a)&&e.ref===t.ref)return rs(e,t,r)}return t.flags|=1,(e=Ua(i,a)).ref=t.ref,e.return=t,t.child=e}function Il(e,t,n,a,r){if(null!==e){var i=e.memoizedProps;if(Zn(i,a)&&e.ref===t.ref){if(Ll=!1,t.pendingProps=a=i,!is(e,r))return t.lanes=e.lanes,rs(e,t,r);0!==(131072&e.flags)&&(Ll=!0)}}return Vl(e,t,n,a,r)}function Rl(e,t,n,a){var r=a.children,i=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===a.mode){if(0!==(128&t.flags)){if(i=null!==i?i.baseLanes|n:n,null!==e){for(a=t.child=e.child,r=0;null!==a;)r=r|a.lanes|a.childLanes,a=a.sibling;a=r&~i}else a=0,t.child=null;return Ul(e,t,i,n,a)}if(0===(536870912&n))return a=t.lanes=536870912,Ul(e,t,null!==i?i.baseLanes|n:n,n,a);t.memoizedState={baseLanes:0,cachePool:null}
2,null!==e&&Kr(0,null!==i?i.cachePool:null),null!==i?Ei(t,i):Pi(),Di(t)}else null!==i?(Kr(0,i.cachePool),Ei(t,i),Ii(),t.memoizedState=null):(null!==e&&Kr(0,null),Pi(),Ii());return Fl(e,t,r,n),t.child}function Ml(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ul(e,t,n,a,r){var i=Gr();return i=null===i?null:{parent:Rr._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},null!==e&&Kr(0,null),Pi(),Di(t),null!==e&&Er(e,t,a,!0),t.childLanes=r,null}function ql(e,t){return(t=Zl({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function Bl(e,t,n){return fi(t,e.child,null,n),(e=ql(t,t.pendingProps)).flags|=2,Ri(t),t.memoizedState=null,e}function Hl(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 Vl(e,t,n,a,r){return Tr(t),n=eo(e,t,n,a,void 0,r),a=ro(),null===e||Ll?(dr&&a&&or(t),t.flags|=1,Fl(e,t,n,r),t.child):(io(e,t,r),rs(e,t,r))}function $l(e,t,n,a,r,i){return Tr(t),t.updateQueue=null,n=no(t,a,n,r),to(e),a=ro(),null===e||Ll?(dr&&a&&or(t),t.flags|=1,Fl(e,t,n,i),t.child):(io(e,t,i),rs(e,t,i))}function Wl(e,t,n,a,r){if(Tr(t),null===t.stateNode){var i=Da,o=n.contextType;"object"===typeof o&&null!==o&&(i=Or(o)),i=new n(a,i),t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i.updater=xl,t.stateNode=i,i._reactInternals=t,(i=t.stateNode).props=a,i.state=t.memoizedState,i.refs={},gi(t),o=n.contextType,i.context="object"===typeof o&&null!==o?Or(o):Da,i.state=t.memoizedState,"function"===typeof(o=n.getDerivedStateFromProps)&&(yl(t,n,o,a),i.state=t.memoizedState),"function"===typeof n.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(o=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),o!==i.state&&xl.enqueueReplaceState(i,i.state,null),Ni(t,a,i,r),wi(),i.state=t.memoizedState),"function"===typeof i.componentDidMount&&(t.flags|=4194308),a=!0}else if(null===e){i=t.stateNode;var l=t.memoizedProps,s=wl(n,l);i.props=s;var c=i.context,u=n.contextType;o=Da,"object"===typeof u&&null!==u&&(o=Or(u));var d=n.getDerivedStateFromProps;u="function"===typeof d||"function"===typeof i.getSnapshotBeforeUpdate,l=t.pendingProps!==l,u||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(l||c!==o)&&kl(t,i,a,o),hi=!1;var m=t.memoizedState;i.state=m,Ni(t,a,i,r),wi(),c=t.memoizedState,l||m!==c||hi?("function"===typeof d&&(yl(t,n,d,a),c=t.memoizedState),(s=hi||jl(t,n,s,a,m,c,o))?(u||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||("function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"===typeof i.componentDidMount&&(t.flags|=4194308)):("function"===typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=c),i.props=a,i.state=c,i.context=o,a=s):("function"===typeof i.componentDidMount&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,vi(e,t),u=wl(n,o=t.memoizedProps),i.props=u,d=t.pendingProps,m=i.context,c=n.contextType,s=Da,"object"===typeof c&&null!==c&&(s=Or(c)),(c="function"===typeof(l=n.getDerivedStateFromProps)||"function"===typeof i.getSnapshotBeforeUpdate)||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(o!==d||m!==s)&&kl(t,i,a,s),hi=!1,m=t.memoizedState,i.state=m,Ni(t,a,i,r),wi();var f=t.memoizedState;o!==d||m!==f||hi||null!==e&&null!==e.dependencies&&Pr(e.dependencies)?("function"===typeof l&&(yl(t,n,l,a),f=t.memoizedState),(u=hi||jl(t,n,u,a,m,f,s)||null!==e&&null!==e.dependencies&&Pr(e.dependencies))?(c||"function"!==typeof i.UNSAFE_componentWillUpdate&&"function"!==typeof i.componentWillUpdate||("function"===typeof i.componentWillUpdate&&i.componentWillUpdate(a,f,s),"function"===typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(a,f,s)),"function"===typeof i.componentDidUpdate&&(t.flags|=4),"function"===typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof i.componentDidUpdate||o===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||o===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=f),i.props=a,i.state=f,i.context=s,a=u):("function"!==typeof i.componentDidUpdate||o===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||o===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,Hl(e,t),a=0!==(128&t.flags),i||a?(i=t.stateNode,n=a&&"function"!==typeof n.getDerivedStateFromError?null:i.render(),t.flags|=1,null!==e&&a?(t.child=fi(t,e.child,null,r),t.child=fi(t,null,n,r)):Fl(e,t,n,r),t.memoizedState=i.state,e=t.child):e=rs(e,t,r),e}function Ql(e,t,n,a){return yr(),t.flags|=256,Fl(e,t,n,a),t.child}var Gl={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Kl(e){return{baseLanes:e,cachePool:Jr()}}
vendor: 2,630 bytes, line 2
2function Jl(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=zc),e}function Yl(e,t,n){var a,r=t.pendingProps,i=!1,l=0!==(128&t.flags);if((a=l)||(a=(null===e||null!==e.memoizedState)&&0!==(2&Mi.current)),a&&(i=!0,t.flags&=-129),a=0!==(32&t.flags),t.flags&=-33,null===e){if(dr){if(i?Fi(t):Ii(),(e=ur)?null!==(e=null!==(e=Pd(e,fr))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==tr?{id:nr,overflow:ar}:null,retryLane:536870912,hydrationErrors:null},(n=$a(e)).return=t,t.child=n,cr=t,ur=null):e=null,null===e)throw hr(t);return Od(e)?t.lanes=32:t.lanes=536870912,null}var s=r.children;return r=r.fallback,i?(Ii(),s=Zl({mode:"hidden",children:s},i=t.mode),r=Ha(r,i,n,null),s.return=t,r.return=t,s.sibling=r,t.child=s,(r=t.child).memoizedState=Kl(n),r.childLanes=Jl(e,a,n),t.memoizedState=Gl,Ml(null,r)):(Fi(t),Xl(t,s))}var c=e.memoizedState;if(null!==c&&null!==(s=c.dehydrated)){if(l)256&t.flags?(Fi(t),t.flags&=-257,t=es(e,t,n)):null!==t.memoizedState?(Ii(),t.child=e.child,t.flags|=128,t=null):(Ii(),s=r.fallback,i=t.mode,r=Zl({mode:"visible",children:r.children},i),(s=Ha(s,i,n,null)).flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,fi(t,e.child,null,n),(r=t.child).memoizedState=Kl(n),r.childLanes=Jl(e,a,n),t.memoizedState=Gl,t=Ml(null,r));else if(Fi(t),Od(s)){if(a=s.nextSibling&&s.nextSibling.dataset)var u=a.dgst;a=u,(r=Error(o(419))).stack="",r.digest=a,jr({value:r,source:null,stack:null}),t=es(e,t,n)}else if(Ll||Er(e,t,n,!1),a=0!==(n&e.childLanes),Ll||a){if(null!==(a=pc)&&(0!==(r=Ae(a,n))&&r!==c.retryLane))throw c.retryLane=r,La(e,r),Gc(a,e,r),Ol;Td(s)||ou(),t=es(e,t,n)}else Td(s)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,ur=Ld(s.nextSibling),cr=t,dr=!0,mr=null,fr=!1,null!==e&&sr(t,e),(t=Xl(t,r.children)).flags|=4096);return t}return i?(Ii(),s=r.fallback,i=t.mode,u=(c=e.child).sibling,(r=Ua(c,{mode:"hidden",children:r.children})).subtreeFlags=65011712&c.subtreeFlags,null!==u?s=Ua(u,s):(s=Ha(s,i,n,null)).flags|=2,s.return=t,r.return=t,r.sibling=s,t.child=r,Ml(null,r),r=t.child,null===(s=e.child.memoizedState)?s=Kl(n):(null!==(i=s.cachePool)?(c=Rr._currentValue,i=i.parent!==c?{parent:c,pool:c}:i):i=Jr(),s={baseLanes:s.baseLanes|n,cachePool:i}),r.memoizedState=s,r.childLanes=Jl(e,a,n),t.memoizedState=Gl,Ml(e.child,r)):(Fi(t),e=(n=e.child).sibling,(n=Ua(n,{mode:"visible",children:r.children})).return=t,n.sibling=null,null!==e&&(null===(a=t.deletions)?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=n,t.memoizedState=null,n)}function Xl(e,t){return(t=Zl({mode:"visible",children:t},e.mode)).return=e,e.child=t}function Zl(e,t){return(e=Ra(22,e,null,t)).lanes=0,e}
vendor: 8,436 bytes, line 2
2function es(e,t,n){return fi(t,e.child,null,n),(e=Xl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function ts(e,t,n){e.lanes|=t;var a=e.alternate;null!==a&&(a.lanes|=t),zr(e.return,t,n)}function ns(e,t,n,a,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:r,treeForkCount:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=a,o.tail=n,o.tailMode=r,o.treeForkCount=i)}function as(e,t,n){var a=t.pendingProps,r=a.revealOrder,i=a.tail;a=a.children;var o=Mi.current,l=0!==(2&o);if(l?(o=1&o|2,t.flags|=128):o&=1,q(Mi,o),Fl(e,t,a,n),a=dr?Xa:0,!l&&null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ts(e,n,t);else if(19===e.tag)ts(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}switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===Ui(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),ns(t,!1,r,n,i,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===Ui(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}ns(t,!0,n,null,i,a);break;case"together":ns(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function rs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Nc|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Er(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=Ua(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ua(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function is(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Pr(e))}function os(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Ll=!0;else{if(!is(e,n)&&0===(128&t.flags))return Ll=!1,function(e,t,n){switch(t.tag){case 3:G(t,t.stateNode.containerInfo),_r(0,Rr,e.memoizedState.cache),yr();break;case 27:case 5:J(t);break;case 4:G(t,t.stateNode.containerInfo);break;case 10:_r(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,Ai(t),null;break;case 13:var a=t.memoizedState;if(null!==a)return null!==a.dehydrated?(Fi(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Yl(e,t,n):(Fi(t),null!==(e=rs(e,t,n))?e.sibling:null);Fi(t);break;case 19:var r=0!==(128&e.flags);if((a=0!==(n&t.childLanes))||(Er(e,t,n,!1),a=0!==(n&t.childLanes)),r){if(a)return as(e,t,n);t.flags|=128}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null,r.lastEffect=null),q(Mi,Mi.current),a)break;return null;case 22:return t.lanes=0,Rl(e,t,n,t.pendingProps);case 24:_r(0,Rr,e.memoizedState.cache)}return rs(e,t,n)}(e,t,n);Ll=0!==(131072&e.flags)}else Ll=!1,dr&&0!==(1048576&t.flags)&&ir(t,Xa,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=ai(t.elementType),t.type=e,"function"!==typeof e){if(void 0!==e&&null!==e){var r=e.$$typeof;if(r===k){t.tag=11,t=Al(null,t,e,a,n);break e}if(r===_){t.tag=14,t=Dl(null,t,e,a,n);break e}}throw t=O(e)||e,Error(o(306,t,""))}Ma(e)?(a=wl(e,a),t.tag=1,t=Wl(null,t,e,a,n)):(t.tag=0,t=Vl(null,t,e,a,n))}return t;case 0:return Vl(e,t,t.type,t.pendingProps,n);case 1:return Wl(e,t,a=t.type,r=wl(a,t.pendingProps),n);case 3:e:{if(G(t,t.stateNode.containerInfo),null===e)throw Error(o(387));a=t.pendingProps;var i=t.memoizedState;r=i.element,vi(e,t),Ni(t,a,null,n);var l=t.memoizedState;if(a=l.cache,_r(0,Rr,a),a!==i.cache&&Cr(t,[Rr],n,!0),wi(),a=l.element,i.isDehydrated){if(i={element:a,isDehydrated:!1,cache:l.cache},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Ql(e,t,a,n);break e}if(a!==r){jr(r=Ga(Error(o(424)),t)),t=Ql(e,t,a,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(ur=Ld(e.firstChild),cr=t,dr=!0,mr=null,fr=!0,n=pi(t,null,a,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(yr(),a===r){t=rs(e,t,n);break e}Fl(e,t,a,n)}t=t.child}return t;case 26:return Hl(e,t),null===e?(n=$d(t.type,null,t.pendingProps,null))?t.memoizedState=n:dr||(n=t.type,e=t.pendingProps,(a=gd(W.current).createElement(n))[qe]=t,a[Be]=e,md(a,n,e),et(a),t.stateNode=a):t.memoizedState=$d(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return J(t),null===e&&dr&&(a=t.stateNode=Id(t.type,t.pendingProps,W.current),cr=t,fr=!0,r=ur,Sd(t.type)?(Fd=r,ur=Ld(a.firstChild)):ur=r),Fl(e,t,t.pendingProps.children,n),Hl(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&dr&&((r=a=ur)&&(null!==(a=function(e,t,n,a){for(;1===e.nodeType;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(a){if(!e[Ge])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(i!==r.rel||e.getAttribute("href")!==(null==r.href||""===r.href?null:r.href)||e.getAttribute("crossorigin")!==(null==r.crossOrigin?null:r.crossOrigin)||e.getAttribute("title")!==(null==r.title?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==r.src?null:r.src)||e.getAttribute("type")!==(null==r.type?null:r.type)||e.getAttribute("crossorigin")!==(null==r.crossOrigin?null:r.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var i=null==r.name?null:""+r.name;if("hidden"===r.type&&e.getAttribute("name")===i)return e}if(null===(e=Ld(e.nextSibling)))break}return null}(a,t.type,t.pendingProps,fr))?(t.stateNode=a,cr=t,ur=Ld(a.firstChild),fr=!1,r=!0):r=!1),r||hr(t)),J(t),r=t.type,i=t.pendingProps,l=null!==e?e.memoizedProps:null,a=i.children,yd(r,i)?a=null:null!==l&&yd(r,l)&&(t.flags|=32),null!==t.memoizedState&&(r=eo(e,t,ao,null,null,n),um._currentValue=r),Hl(e,t),Fl(e,t,a,n),t.child;case 6:return null===e&&dr&&((e=n=ur)&&(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=Ld(e.nextSibling)))return null}return e}(n,t.pendingProps,fr))?(t.stateNode=n,cr=t,ur=null,e=!0):e=!1),e||hr(t)),null;case 13:return Yl(e,t,n);case 4:return G(t,t.stateNode.containerInfo),a=t.pendingProps,null===e?t.child=fi(t,null,a,n):Fl(e,t,a,n),t.child;case 11:return Al(e,t,t.type,t.pendingProps,n);case 7:return Fl(e,t,t.pendingProps,n),t.child;case 8:case 12:return Fl(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,_r(0,t.type,a.value),Fl(e,t,a.children,n),t.child;case 9:return r=t.type._context,a=t.pendingProps.children,Tr(t),a=a(r=Or(r)),t.flags|=1,Fl(e,t,a,n),t.child;case 14:return Dl(e,t,t.type,t.pendingProps,n);case 15:return Il(e,t,t.type,t.pendingProps,n);case 19:return as(e,t,n);case 31:return function(e,t,n){var a=t.pendingProps,r=0!==(128&t.flags);if(t.flags&=-129,null===e){if(dr){if("hidden"===a.mode)return e=ql(t,a),t.lanes=536870912,Ml(null,e);if(Ai(t),(e=ur)?null!==(e=null!==(e=Pd(e,fr))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==tr?{id:nr,overflow:ar}:null,retryLane:536870912,hydrationErrors:null},(n=$a(e)).return=t,t.child=n,cr=t,ur=null):e=null,null===e)throw hr(t);return t.lanes=536870912,null}return ql(t,a)}var i=e.memoizedState;if(null!==i){var l=i.dehydrated;if(Ai(t),r)if(256&t.flags)t.flags&=-257,t=Bl(e,t,n);else{if(null===t.memoizedState)throw Error(o(558));t.child=e.child,t.flags|=128,t=null}else if(Ll||Er(e,t,n,!1),r=0!==(n&e.childLanes),Ll||r){if(null!==(a=pc)&&0!==(l=Ae(a,n))&&l!==i.retryLane)throw i.retryLane=l,La(e,l),Gc(a,e,l),Ol;ou(),t=Bl(e,t,n)}else e=i.treeContext,ur=Ld(l.nextSibling),cr=t,dr=!0,mr=null,fr=!1,null!==e&&sr(t,e),(t=ql(t,a)).flags|=4096;return t}return(e=Ua(e.child,{mode:a.mode,children:a.children})).ref=t.ref,t.child=e,e.return=t,e}(e,t,n);case 22:return Rl(e,t,n,t.pendingProps);case 24:return Tr(t),a=Or(Rr),null===e?(null===(r=Gr())&&(r=pc,i=Mr(),r.pooledCache=i,i.refCount++,null!==i&&(r.pooledCacheLanes|=n),r=i),t.memoizedState={parent:a,cache:r},gi(t),_r(0,Rr,r)):(0!==(e.lanes&n)&&(vi(e,t),Ni(t,null,null,n),wi()),r
vendor: 38,257 bytes, line 2
2=e.memoizedState,i=t.memoizedState,r.parent!==a?(r={parent:a,cache:a},t.memoizedState=r,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=r),_r(0,Rr,a)):(a=i.cache,_r(0,Rr,a),a!==r.cache&&Cr(t,[Rr],n,!0))),Fl(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function ls(e){e.flags|=4}function ss(e,t,n,a,r){if((t=0!==(32&e.mode))&&(t=!1),t){if(e.flags|=16777216,(335544128&r)===r)if(e.stateNode.complete)e.flags|=8192;else{if(!au())throw ri=ei,Xr;e.flags|=8192}}else e.flags&=-16777217}function cs(e,t){if("stylesheet"!==t.type||0!==(4&t.state.loading))e.flags&=-16777217;else if(e.flags|=16777216,!rm(t)){if(!au())throw ri=ei,Xr;e.flags|=8192}}function us(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Pe():536870912,e.lanes|=t,Cc|=t)}function ds(e,t){if(!dr)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 a=null;null!==n;)null!==n.alternate&&(a=n),n=n.sibling;null===a?t||null===e.tail?e.tail=null:e.tail.sibling=null:a.sibling=null}}function ms(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,a=0;if(t)for(var r=e.child;null!==r;)n|=r.lanes|r.childLanes,a|=65011712&r.subtreeFlags,a|=65011712&r.flags,r.return=e,r=r.sibling;else for(r=e.child;null!==r;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags,a|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function fs(e,t,n){var a=t.pendingProps;switch(lr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return ms(t),null;case 3:return n=t.stateNode,a=null,null!==e&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Sr(Rr),K(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(br(t)?ls(t):null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,xr())),ms(t),null;case 26:var r=t.type,i=t.memoizedState;return null===e?(ls(t),null!==i?(ms(t),cs(t,i)):(ms(t),ss(t,r,0,0,n))):i?i!==e.memoizedState?(ls(t),ms(t),cs(t,i)):(ms(t),t.flags&=-16777217):((e=e.memoizedProps)!==a&&ls(t),ms(t),ss(t,r,0,0,n)),null;case 27:if(Y(t),n=W.current,r=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==a&&ls(t);else{if(!a){if(null===t.stateNode)throw Error(o(166));return ms(t),null}e=V.current,br(t)?gr(t):(e=Id(r,a,n),t.stateNode=e,ls(t))}return ms(t),null;case 5:if(Y(t),r=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==a&&ls(t);else{if(!a){if(null===t.stateNode)throw Error(o(166));return ms(t),null}if(i=V.current,br(t))gr(t);else{var l=gd(W.current);switch(i){case 1:i=l.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:i=l.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":i=l.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":i=l.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":(i=l.createElement("div")).innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i="string"===typeof a.is?l.createElement("select",{is:a.is}):l.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i="string"===typeof a.is?l.createElement(r,{is:a.is}):l.createElement(r)}}i[qe]=t,i[Be]=a;e:for(l=t.child;null!==l;){if(5===l.tag||6===l.tag)i.appendChild(l.stateNode);else if(4!==l.tag&&27!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;null===l.sibling;){if(null===l.return||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=i;e:switch(md(i,r,a),r){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&ls(t)}}return ms(t),ss(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==a&&ls(t);else{if("string"!==typeof a&&null===t.stateNode)throw Error(o(166));if(e=W.current,br(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,null!==(r=cr))switch(r.tag){case 27:case 5:a=r.memoizedProps}e[qe]=t,(e=!!(e.nodeValue===n||null!==a&&!0===a.suppressHydrationWarning||cd(e.nodeValue,n)))||hr(t,!0)}else(e=gd(e).createTextNode(a))[qe]=t,t.stateNode=e}return ms(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(a=br(t),null!==n){if(null===e){if(!a)throw Error(o(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(o(557));e[qe]=t}else yr(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ms(t),e=!1}else n=xr(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(Ri(t),t):(Ri(t),null);if(0!==(128&t.flags))throw Error(o(558))}return ms(t),null;case 13:if(a=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(r=br(t),null!==a&&null!==a.dehydrated){if(null===e){if(!r)throw Error(o(318));if(!(r=null!==(r=t.memoizedState)?r.dehydrated:null))throw Error(o(317));r[qe]=t}else yr(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ms(t),r=!1}else r=xr(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return 256&t.flags?(Ri(t),t):(Ri(t),null)}return Ri(t),0!==(128&t.flags)?(t.lanes=n,t):(n=null!==a,e=null!==e&&null!==e.memoizedState,n&&(r=null,null!==(a=t.child).alternate&&null!==a.alternate.memoizedState&&null!==a.alternate.memoizedState.cachePool&&(r=a.alternate.memoizedState.cachePool.pool),i=null,null!==a.memoizedState&&null!==a.memoizedState.cachePool&&(i=a.memoizedState.cachePool.pool),i!==r&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),us(t,t.updateQueue),ms(t),null);case 4:return K(),null===e&&Zu(t.stateNode.containerInfo),ms(t),null;case 10:return Sr(t.type),ms(t),null;case 19:if(U(Mi),null===(a=t.memoizedState))return ms(t),null;if(r=0!==(128&t.flags),null===(i=a.rendering))if(r)ds(a,!1);else{if(0!==wc||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(i=Ui(e))){for(t.flags|=128,ds(a,!1),e=i.updateQueue,t.updateQueue=e,us(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)qa(n,e),n=n.sibling;return q(Mi,1&Mi.current|2),dr&&rr(t,a.treeForkCount),t.child}e=e.sibling}null!==a.tail&&se()>Fc&&(t.flags|=128,r=!0,ds(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Ui(i))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,us(t,e),ds(a,!0),null===a.tail&&"hidden"===a.tailMode&&!i.alternate&&!dr)return ms(t),null}else 2*se()-a.renderingStartTime>Fc&&536870912!==n&&(t.flags|=128,r=!0,ds(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?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=se(),e.sibling=null,n=Mi.current,q(Mi,r?1&n|2:1&n),dr&&rr(t,a.treeForkCount),e):(ms(t),null);case 22:case 23:return Ri(t),Ti(),a=null!==t.memoizedState,null!==e?null!==e.memoizedState!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?0!==(536870912&n)&&0===(128&t.flags)&&(ms(t),6&t.subtreeFlags&&(t.flags|=8192)):ms(t),null!==(n=t.updateQueue)&&us(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),a=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),null!==e&&U(Qr),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Sr(Rr),ms(t),null;case 25:case 30:return null}throw Error(o(156,t.tag))}function ps(e,t){switch(lr(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Sr(Rr),K(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return Y(t),null;case 31:if(null!==t.memoizedState){if(Ri(t),null===t.alternate)throw Error(o(340));yr()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(Ri(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));yr()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return U(Mi),null;case 4:return K(),null;case 10:return Sr(t.type),null;case 22:case 23:return Ri(t),Ti(),null!==e&&U(Qr),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return Sr(Rr),null;default:return null}}function hs(e,t){switch(lr(t),t.tag){case 3:Sr(Rr),K();break;case 26:case 27:case 5:Y(t);break;case 4:K();break;case 31:null!==t.memoizedState&&Ri(t);break;case 13:Ri(t);break;case 19:U(Mi);break;case 10:Sr(t.type);break;case 22:case 23:Ri(t),Ti(),null!==e&&U(Qr);break;case 24:Sr(Rr)}}function gs(e,t){try{var n=t.updateQueue,a=null!==n?n.lastEffect:null;if(null!==a){var r=a.next;n=r;do{if((n.tag&e)===e){a=void 0;var i=n.create,o=n.inst;a=i(),o.destroy=a}n=n.next}while(n!==r)}}catch(l){wu(t,t.return,l)}}function vs(e,t,n){try{var a=t.updateQueue,r=null!==a?a.lastEffect:null;if(null!==r){var i=r.next;a=i;do{if((a.tag&e)===e){var o=a.inst,l=o.destroy;if(void 0!==l){o.destroy=void 0,r=t;var s=n,c=l;try{c()}catch(u){wu(r,s,u)}}}a=a.next}while(a!==i)}}catch(u){wu(t,t.return,u)}}function bs(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{Si(t,n)}catch(a){wu(e,e.return,a)}}}function ys(e,t,n){n.props=wl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){wu(e,t,a)}}function xs(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;default:a=e.stateNode}"function"===typeof n?e.refCleanup=n(a):n.current=a}}catch(r){wu(e,t,r)}}function js(e,t){var n=e.ref,a=e.refCleanup;if(null!==n)if("function"===typeof a)try{a()}catch(r){wu(e,t,r)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"===typeof n)try{n(null)}catch(i){wu(e,t,i)}else n.current=null}function ks(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(r){wu(e,e.return,r)}}function ws(e,t,n){try{var a=e.stateNode;!function(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,i=null,l=null,s=null,c=null,u=null,d=null;for(p in n){var m=n[p];if(n.hasOwnProperty(p)&&null!=m)switch(p){case"checked":case"value":break;case"defaultValue":c=m;default:a.hasOwnProperty(p)||ud(e,t,p,null,a,m)}}for(var f in a){var p=a[f];if(m=n[f],a.hasOwnProperty(f)&&(null!=p||null!=m))switch(f){case"type":i=p;break;case"name":r=p;break;case"checked":u=p;break;case"defaultChecked":d=p;break;case"value":l=p;break;case"defaultValue":s=p;break;case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(o(137,t));break;default:p!==m&&ud(e,t,f,p,a,m)}}return void bt(e,l,s,c,u,d,i,r);case"select":for(i in p=l=s=f=null,n)if(c=n[i],n.hasOwnProperty(i)&&null!=c)switch(i){case"value":break;case"multiple":p=c;default:a.hasOwnProperty(i)||ud(e,t,i,null,a,c)}for(r in a)if(i=a[r],c=n[r],a.hasOwnProperty(r)&&(null!=i||null!=c))switch(r){case"value":f=i;break;case"defaultValue":s=i;break;case"multiple":l=i;default:i!==c&&ud(e,t,r,i,a,c)}return t=s,n=l,a=p,void(null!=f?jt(e,!!n,f,!1):!!a!==!!n&&(null!=t?jt(e,!!n,t,!0):jt(e,!!n,n?[]:"",!1)));case"textarea":for(s in p=f=null,n)if(r=n[s],n.hasOwnProperty(s)&&null!=r&&!a.hasOwnProperty(s))switch(s){case"value":case"children":break;default:ud(e,t,s,null,a,r)}for(l in a)if(r=a[l],i=n[l],a.hasOwnProperty(l)&&(null!=r||null!=i))switch(l){case"value":f=r;break;case"defaultValue":p=r;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=r)throw Error(o(91));break;default:r!==i&&ud(e,t,l,r,a,i)}return void kt(e,f,p);case"option":for(var h in n)if(f=n[h],n.hasOwnProperty(h)&&null!=f&&!a.hasOwnProperty(h))if("selected"===h)e.selected=!1;else ud(e,t,h,null,a,f);for(c in a)if(f=a[c],p=n[c],a.hasOwnProperty(c)&&f!==p&&(null!=f||null!=p))if("selected"===c)e.selected=f&&"function"!==typeof f&&"symbol"!==typeof f;else ud(e,t,c,f,a,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 g in n)f=n[g],n.hasOwnProperty(g)&&null!=f&&!a.hasOwnProperty(g)&&ud(e,t,g,null,a,f);for(u in a)if(f=a[u],p=n[u],a.hasOwnProperty(u)&&f!==p&&(null!=f||null!=p))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(o(137,t));break;default:ud(e,t,u,f,a,p)}return;default:if(Ct(t)){for(var v in n)f=n[v],n.hasOwnProperty(v)&&void 0!==f&&!a.hasOwnProperty(v)&&dd(e,t,v,void 0,a,f);for(d in a)f=a[d],p=n[d],!a.hasOwnProperty(d)||f===p||void 0===f&&void 0===p||dd(e,t,d,f,a,p);return}}for(var b in n)f=n[b],n.hasOwnProperty(b)&&null!=f&&!a.hasOwnProperty(b)&&ud(e,t,b,null,a,f);for(m in a)f=a[m],p=n[m],!a.hasOwnProperty(m)||f===p||null==f&&null==p||ud(e,t,m,f,a,p)}(a,e.type,n,t),a[Be]=t}catch(r){wu(e,e.return,r)}}function Ns(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&Sd(e.type)||4===e.tag}function _s(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Ns(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&&Sd(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 Ss(e,t,n){var a=e.tag;if(5===a||6===a)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)&&void 0!==n||null!==t.onclick||(t.onclick=Ot));else if(4!==a&&(27===a&&Sd(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(Ss(e,t,n),e=e.sibling;null!==e;)Ss(e,t,n),e=e.sibling}function zs(e,t,n){var a=e.tag;if(5===a||6===a)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==a&&(27===a&&Sd(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(zs(e,t,n),e=e.sibling;null!==e;)zs(e,t,n),e=e.sibling}function Cs(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);md(t,a,n),t[qe]=e,t[Be]=n}catch(i){wu(e,e.return,i)}}var Es=!1,Ps=!1,Ts=!1,Os="function"===typeof WeakSet?WeakSet:Set,Ls=null;function Fs(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Gs(e,n),4&a&&gs(5,n);break;case 1:if(Gs(e,n),4&a)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(o){wu(n,n.return,o)}else{var r=wl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){wu(n,n.return,l)}}64&a&&bs(n),512&a&&xs(n,n.return);break;case 3:if(Gs(e,n),64&a&&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{Si(e,t)}catch(o){wu(n,n.return,o)}}break;case 27:null===t&&4&a&&Cs(n);case 26:case 5:Gs(e,n),null===t&&4&a&&ks(n),512&a&&xs(n,n.return);break;case 12:Gs(e,n);break;case 31:Gs(e,n),4&a&&Us(e,n);break;case 13:Gs(e,n),4&a&&qs(e,n),64&a&&(null!==(e=n.memoizedState)&&(null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}(e,n=zu.bind(null,n))));break;case 22:if(!(a=null!==n.memoizedState||Es)){t=null!==t&&null!==t.memoizedState||Ps,r=Es;var i=Ps;Es=a,(Ps=t)&&!i?Js(e,n,0!==(8772&n.subtreeFlags)):Gs(e,n),Es=r,Ps=i}break;case 30:break;default:Gs(e,n)}}function As(e){var t=e.alternate;null!==t&&(e.alternate=null,As(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&Ke(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 Ds=null,Is=!1;function Rs(e,t,n){for(n=n.child;null!==n;)Ms(e,t,n),n=n.sibling}function Ms(e,t,n){if(be&&"function"===typeof be.onCommitFiberUnmount)try{be.onCommitFiberUnmount(ve,n)}catch(i){}switch(n.tag){case 26:Ps||js(n,t),Rs(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Ps||js(n,t);var a=Ds,r=Is;Sd(n.type)&&(Ds=n.stateNode,Is=!1),Rs(e,t,n),Rd(n.stateNode),Ds=a,Is=r;break;case 5:Ps||js(n,t);case 6:if(a=Ds,r=Is,Ds=null,Rs(e,t,n),Is=r,null!==(Ds=a))if(Is)try{(9===Ds.nodeType?Ds.body:"HTML"===Ds.nodeName?Ds.ownerDocument.body:Ds).removeChild(n.stateNode)}catch(o){wu(n,t,o)}else try{Ds.removeChild(n.stateNode)}catch(o){wu(n,t,o)}break;case 18:null!==Ds&&(Is?(zd(9===(e=Ds).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Vm(e)):zd(Ds,n.stateNode));break;case 4:a=Ds,r=Is,Ds=n.stateNode.containerInfo,Is=!0,Rs(e,t,n),Ds=a,Is=r;break;case 0:case 11:case 14:case 15:vs(2,n,t),Ps||vs(4,n,t),Rs(e,t,n);break;case 1:Ps||(js(n,t),"function"===typeof(a=n.stateNode).componentWillUnmount&&ys(n,t,a)),Rs(e,t,n);break;case 21:Rs(e,t,n);break;case 22:Ps=(a=Ps)||null!==n.memoizedState,Rs(e,t,n),Ps=a;break;default:Rs(e,t,n)}}function Us(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&null!==(e=e.memoizedState))){e=e.dehydrated;try{Vm(e)}catch(n){wu(t,t.return,n)}}}function qs(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{Vm(e)}catch(n){wu(t,t.return,n)}}function Bs(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Os),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Os),t;default:throw Error(o(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var a=Cu.bind(null,e,t);t.then(a,a)}})}function Hs(e,t){var n=t.deletions;if(null!==n)for(var a=0;a<n.length;a++){var r=n[a],i=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 27:if(Sd(s.type)){Ds=s.stateNode,Is=!1;break e}break;case 5:Ds=s.stateNode,Is=!1;break e;case 3:case 4:Ds=s.stateNode.containerInfo,Is=!0;break e}s=s.return}if(null===Ds)throw Error(o(160));Ms(i,l,r),Ds=null,Is=!1,null!==(i=r.alternate)&&(i.return=null),r.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)$s(t,e),t=t.sibling}var Vs=null;function $s(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Hs(t,e),Ws(e),4&a&&(vs(3,e,e.return),gs(3,e),vs(5,e,e.return));break;case 1:Hs(t,e),Ws(e),512&a&&(Ps||null===n||js(n,n.return)),64&a&&Es&&(null!==(e=e.updateQueue)&&(null!==(a=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?a:n.concat(a))));break;case 26:var r=Vs;if(Hs(t,e),Ws(e),512&a&&(Ps||null===n||js(n,n.return)),4&a){var i=null!==n?n.memoizedState:null;if(a=e.memoizedState,null===n)if(null===a)if(null===e.stateNode){e:{a=e.type,n=e.memoizedProps,r=r.ownerDocument||r;t:switch(a){case"title":(!(i=r.getElementsByTagName("title")[0])||i[Ge]||i[qe]||"http://www.w3.org/2000/svg"===i.namespaceURI||i.hasAttribute("itemprop"))&&(i=r.createElement(a),r.head.insertBefore(i,r.querySelector("head > title"))),md(i,a,n),i[qe]=e,et(i),a=i;break e;case"link":var l=nm("link","href",r).get(a+(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}md(i=r.createElement(a),a,n),r.head.appendChild(i);break;case"meta":if(l=nm("meta","content",r).get(a+(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}md(i=r.createElement(a),a,n),r.head.appendChild(i);break;default:throw Error(o(468,a))}i[qe]=e,et(i),a=i}e.stateNode=a}else am(r,e.type,e.stateNode);else e.stateNode=Yd(r,a,e.memoizedProps);else i!==a?(null===i?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):i.count--,null===a?am(r,e.type,e.stateNode):Yd(r,a,e.memoizedProps)):null===a&&null!==e.stateNode&&ws(e,e.memoizedProps,n.memoizedProps)}break;case 27:Hs(t,e),Ws(e),512&a&&(Ps||null===n||js(n,n.return)),null!==n&&4&a&&ws(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Hs(t,e),Ws(e),512&a&&(Ps||null===n||js(n,n.return)),32&e.flags){r=e.stateNode;try{Nt(r,"")}catch(h){wu(e,e.return,h)}}4&a&&null!=e.stateNode&&ws(e,r=e.memoizedProps,null!==n?n.memoizedProps:r),1024&a&&(Ts=!0);break;case 6:if(Hs(t,e),Ws(e),4&a){if(null===e.stateNode)throw Error(o(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(h){wu(e,e.return,h)}}break;case 3:if(tm=null,r=Vs,Vs=qd(t.containerInfo),Hs(t,e),Vs=r,Ws(e),4&a&&null!==n&&n.memoizedState.isDehydrated)try{Vm(t.containerInfo)}catch(h){wu(e,e.return,h)}Ts&&(Ts=!1,Qs(e));break;case 4:a=Vs,Vs=qd(e.stateNode.containerInfo),Hs(t,e),Ws(e),Vs=a;break;case 12:default:Hs(t,e),Ws(e);break;case 31:case 19:Hs(t,e),Ws(e),4&a&&(null!==(a=e.updateQueue)&&(e.updateQueue=null,Bs(e,a)));break;case 13:Hs(t,e),Ws(e),8192&e.child.flags&&null!==e.memoizedState!==(null!==n&&null!==n.memoizedState)&&(Oc=se()),4&a&&(null!==(a=e.updateQueue)&&(e.updateQueue=null,Bs(e,a)));break;case 22:r=null!==e.memoizedState;var c=null!==n&&null!==n.memoizedState,u=Es,d=Ps;if(Es=u||r,Ps=d||c,Hs(t,e),Ps=d,Es=u,Ws(e),8192&a)e:for(t=e.stateNode,t._visibility=r?-2&t._visibility:1|t._visibility,r&&(null===n||c||Es||Ps||Ks(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){c=n=t;try{if(i=c.stateNode,r)"function"===typeof(l=i.style).setProperty?l.setProperty("display","none","important"):l.display="none";else{s=c.stateNode;var m=c.memoizedProps.style,f=void 0!==m&&null!==m&&m.hasOwnProperty("display")?m.display:null;s.style.display=null==f||"boolean"===typeof f?"":(""+f).trim()}}catch(h){wu(c,c.return,h)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=r?"":c.memoizedProps}catch(h){wu(c,c.return,h)}}}else if(18===t.tag){if(null===n){c=t;try{var p=c.stateNode;r?Cd(p,!0):Cd(c.stateNode,!1)}catch(h){wu(c,c.return,h)}}}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&a&&(null!==(a=e.updateQueue)&&(null!==(n=a.retryQueue)&&(a.retryQueue=null,Bs(e,n))));case 30:case 21:}}function Ws(e){var t=e.flags;if(2&t){try{for(var n,a=e.return;null!==a;){if(Ns(a)){n=a;break}a=a.return}if(null==n)throw Error(o(160));switch(n.tag){case 27:var r=n.stateNode;zs(e,_s(e),r);break;case 5:var i=n.stateNode;32&n.flags&&(Nt(i,""),n.flags&=-33),zs(e,_s(e),i);break;case 3:case 4:var l=n.stateNode.containerInfo;Ss(e,_s(e),l);break;default:throw Error(o(161))}}catch(s){wu(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Qs(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Qs(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Gs(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Fs(e,t.alternate,t),t=t.sibling}function Ks(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:vs(4,t,t.return),Ks(t);break;case 1:js(t,t.return);var n=t.stateNode;"function"===typeof n.componentWillUnmount&&ys(t,t.return,n),Ks(t);break;case 27:Rd(t.stateNode);case 26:case 5:js(t,t.return),Ks(t);break;case 22:null===t.memoizedState&&Ks(t);break;default:Ks(t)}e=e.sibling}}function Js(e,t,n){for(n=n&&0!==(8772&t.subtreeFlags),t=t.child;null!==t;){var a=t.alternate,r=e,i=t,o=i.flags;switch(i.tag){case 0:case 11:case 15:Js(r,i,n),gs(4,i);break;case 1:if(Js(r,i,n),"function"===typeof(r=(a=i).stateNode).componentDidMount)try{r.componentDidMount()}catch(c){wu(a,a.return,c)}if(null!==(r=(a=i).updateQueue)){var l=a.stateNode;try{var s=r.shared.hiddenCallbacks;if(null!==s)for(r.shared.hiddenCallbacks=null,r=0;r<s.length;r++)_i(s[r],l)}catch(c){wu(a,a.return,c)}}n&&64&o&&bs(i),xs(i,i.return);break;case 27:Cs(i);case 26:case 5:Js(r,i,n),n&&null===a&&4&o&&ks(i),xs(i,i.return);break;case 12:Js(r,i,n);break;case 31:Js(r,i,n),n&&4&o&&Us(r,i);break;case 13:Js(r,i,n),n&&4&o&&qs(r,i);break;case 22:null===i.memoizedState&&Js(r,i,n),xs(i,i.return);break;case 30:break;default:Js(r,i,n)}t=t.sibling}}function Ys(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&&Ur(n))}function Xs(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ur(e))}function Zs(e,t,n,a){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)ec(e,t,n,a),t=t.sibling}function ec(e,t,n,a){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Zs(e,t,n,a),2048&r&&gs(9,t);break;case 1:case 31:case 13:default:Zs(e,t,n,a);break;case 3:Zs(e,t,n,a),2048&r&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ur(e)));break;case 12:if(2048&r){Zs(e,t,n,a),e=t.stateNode;try{var i=t.memoizedProps,o=i.id,l=i.onPostCommit;"function"===typeof l&&l(o,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(s){wu(t,t.return,s)}}else Zs(e,t,n,a);break;case 23:break;case 22:i=t.stateNode,o=t.alternate,null!==t.memoizedState?2&i._visibility?Zs(e,t,n,a):nc(e,t):2&i._visibility?Zs(e,t,n,a):(i._visibility|=2,tc(e,t,n,a,0!==(10256&t.subtreeFlags)||!1)),2048&r&&Ys(o,t);break;case 24:Zs(e,t,n,a),2048&r&&Xs(t.alternate,t)}}function tc(e,t,n,a,r){for(r=r&&(0!==(10256&t.subtreeFlags)||!1),t=t.child;null!==t;){var i=e,o=t,l=n,s=a,c=o.flags;switch(o.tag){case 0:case 11:case 15:tc(i,o,l,s,r),gs(8,o);break;case 23:break;case 22:var u=o.stateNode;null!==o.memoizedState?2&u._visibility?tc(i,o,l,s,r):nc(i,o):(u._visibility|=2,tc(i,o,l,s,r)),r&&2048&c&&Ys(o.alternate,o);break;case 24:tc(i,o,l,s,r),r&&2048&c&&Xs(o.alternate,o);break;default:tc(i,o,l,s,r)}t=t.sibling}}function nc(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,a=t,r=a.flags;switch(a.tag){case 22:nc(n,a),2048&r&&Ys(a.alternate,a);break;case 24:nc(n,a),2048&r&&Xs(a.alternate,a);break;default:nc(n,a)}t=t.sibling}}var ac=8192;function rc(e,t,n){if(e.subtreeFlags&ac)for(e=e.child;null!==e;)ic(e,t,n),e=e.sibling}function ic(e,t,n){switch(e.tag){case 26:rc(e,t,n),e.flags&ac&&null!==e.memoizedState&&function(e,t,n,a){if("stylesheet"===n.type&&("string"!==typeof a.media||!1!==matchMedia(a.media).matches)&&0===(4&n.state.loading)){if(null===n.instance){var r=Wd(a.href),i=t.querySelector(Qd(r));if(i)return null!==(t=i._p)&&"object"===typeof t&&"function"===typeof t.then&&(e.count++,e=om.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,void et(i);i=t.ownerDocument||t,a=Gd(a),(r=Md.get(r))&&Zd(a,r),et(i=i.createElement("link"));var o=i;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),md(i,"link",a),n.instance=i}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&0===(3&n.state.loading)&&(e.count++,n=om.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,Vs,e.memoizedState,e.memoizedProps);break;case 5:default:rc(e,t,n);break;case 3:case 4:var a=Vs;Vs=qd(e.stateNode.containerInfo),rc(e,t,n),Vs=a;break;case 22:null===e.memoizedState&&(null!==(a=e.alternate)&&null!==a.memoizedState?(a=ac,ac=16777216,rc(e,t,n),ac=a):rc(e,t,n))}}function oc(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 lc(e){var t=e.deletions;if(0!==(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var a=t[n];Ls=a,uc(a,e)}oc(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)sc(e),e=e.sibling}function sc(e){switch(e.tag){case 0:case 11:case 15:lc(e),2048&e.flags&&vs(9,e,e.return);break;case 3:case 12:default:lc(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,cc(e)):lc(e)}}function cc(e){var t=e.deletions;if(0!==(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var a=t[n];Ls=a,uc(a,e)}oc(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:vs(8,t,t.return),cc(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,cc(t));break;default:cc(t)}e=e.sibling}}function uc(e,t){for(;null!==Ls;){var n=Ls;switch(n.tag){case 0:case 11:case 15:vs(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var a=n.memoizedState.cachePool.pool;null!=a&&a.refCount++}break;case 24:Ur(n.memoizedState.cache)}if(null!==(a=n.child))a.return=n,Ls=a;else e:for(n=e;null!==Ls;){var r=(a=Ls).sibling,i=a.return;if(As(a),a===n){Ls=null;break e}if(null!==r){r.return=i,Ls=r;break e}Ls=i}}}var dc={getCacheForType:function(e){var t=Or(Rr),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Or(Rr).controller.signal}},mc="function"===typeof WeakMap?WeakMap:Map,fc=0,pc=null,hc=null,gc=0,vc=0,bc=null,yc=!1,xc=!1,jc=!1,kc=0,wc=0,Nc=0,_c=0,Sc=0,zc=0,Cc=0,Ec=null,Pc=null,Tc=!1,Oc=0,Lc=0,Fc=1/0,Ac=null,Dc=null,Ic=0,Rc=null,Mc=null,Uc=0,qc=0,Bc=null,Hc=null,Vc=0,$c=null;function Wc(){return 0!==(2&fc)&&0!==gc?gc&-gc:null!==F.T?Bu():Re()}function Qc(){if(0===zc)if(0===(536870912&gc)||dr){var e=Ne;0===(3932160&(Ne<<=1))&&(Ne=262144),zc=e}else zc=536870912;return null!==(e=Oi.current)&&(e.flags|=32),zc}function Gc(e,t,n){(e!==pc||2!==vc&&9!==vc)&&null===e.cancelPendingCommit||(tu(e,0),Xc(e,gc,zc,!1)),Oe(e,n),0!==(2&fc)&&e===pc||(e===pc&&(0===(2&fc)&&(_c|=n),4===wc&&Xc(e,gc,zc,!1)),Au(e))}function Kc(e,t,n){if(0!==(6&fc))throw Error(o(327));for(var a=!n&&0===(127&t)&&0===(t&e.expiredLanes)||Ce(e,t),r=a?function(e,t){var n=fc;fc|=2;var a=ru(),r=iu();pc!==e||gc!==t?(Ac=null,Fc=se()+500,tu(e,t)):xc=Ce(e,t);e:for(;;)try{if(0!==vc&&null!==hc){t=hc;var i=bc;t:switch(vc){case 1:vc=0,bc=null,mu(e,t,i,1);break;case 2:case 9:if(ti(i)){vc=0,bc=null,du(t);break}t=function(){2!==vc&&9!==vc||pc!==e||(vc=7),Au(e)},i.then(t,t);break e;case 3:vc=7;break e;case 4:vc=5;break e;case 7:ti(i)?(vc=0,bc=null,du(t)):(vc=0,bc=null,mu(e,t,i,7));break;case 5:var l=null;switch(hc.tag){case 26:l=hc.memoizedState;case 5:case 27:var s=hc;if(l?rm(l):s.stateNode.complete){vc=0,bc=null;var c=s.sibling;if(null!==c)hc=c;else{var u=s.return;null!==u?(hc=u,fu(u)):hc=null}break t}}vc=0,bc=null,mu(e,t,i,5);break;case 6:vc=0,bc=null,mu(e,t,i,6);break;case 8:eu(),wc=6;break e;default:throw Error(o(462))}}cu();break}catch(d){nu(e,d)}return Nr=wr=null,F.H=a,F.A=r,fc=n,null!==hc?0:(pc=null,gc=0,Pa(),wc)}(e,t):lu(e,t,!0),i=a;;){if(0===r){xc&&!a&&Xc(e,t,0,!1);break}if(n=e.current.alternate,!i||Yc(n)){if(2===r){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;r=Ec;var c=s.current.memoizedState.isDehydrated;if(c&&(tu(s,l).flags|=256),2!==(l=lu(s,l,!1))){if(jc&&!c){s.errorRecoveryDisabledLanes|=i,_c|=i,r=4;break e}i=Pc,Pc=r,null!==i&&(null===Pc?Pc=i:Pc.push.apply(Pc,i))}r=l}if(i=!1,2!==r)continue}}if(1===r){tu(e,0),Xc(e,t,0,!0);break}e:{switch(a=e,i=r){case 0:case 1:throw Error(o(345));case 4:if((4194048&t)!==t)break;case 6:Xc(a,t,zc,!yc);break e;case 2:Pc=null;break;case 3:case 5:break;default:throw Error(o(329))}if((62914560&t)===t&&10<(r=Oc+300-se())){if(Xc(a,t,zc,!yc),0!==ze(a,0,!0))break e;Uc=t,a.timeoutHandle=jd(Jc.bind(null,a,n,Pc,Ac,Tc,t,zc,_c,Cc,yc,i,"Throttled",-0,0),r)}else Jc(a,n,Pc,Ac,Tc,t,zc,_c,Cc,yc,i,null,-0,0)}break}r=lu(e,t,!1),i=!1}Au(e)}function Jc(e,t,n,a,r,i,o,l,s,c,u,d,m,f){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||16785408===(16785408&d)){ic(t,i,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ot});var p=(62914560&i)===i?Oc-se():(4194048&i)===i?Lc-se():0;if(null!==(p=function(e,t){return e.stylesheets&&0===e.count&&sm(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&sm(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&0===im&&(im=62500*function(){if("function"===typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var r=n[a],i=r.transferSize,o=r.initiatorType,l=r.duration;if(i&&l&&fd(o)){for(o=0,l=r.responseEnd,a+=1;a<n.length;a++){var s=n[a],c=s.startTime;if(c>l)break;var u=s.transferSize,d=s.initiatorType;u&&fd(d)&&(o+=u*((s=s.responseEnd)<l?1:(l-c)/(s-c)))}if(--a,t+=8*(i+o)/(r.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"===typeof(e=navigator.connection.downlink)?e:5}());var r=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&sm(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>im?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(r)}}:null}(d,p)))return Uc=i,e.cancelPendingCommit=p(hu.bind(null,e,t,i,n,a,r,o,l,s,u,d,null,m,f)),void Xc(e,i,o,!c)}hu(e,t,i,n,a,r,o,l,s)}function Yc(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 a=0;a<n.length;a++){var r=n[a],i=r.getSnapshot;r=r.value;try{if(!Xn(i(),r))return!1}catch(o){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 Xc(e,t,n,a){t&=~Sc,t&=~_c,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var r=t;0<r;){var i=31-xe(r),o=1<<i;a[i]=-1,r&=~o}0!==n&&Le(e,n,t)}function Zc(){return 0!==(6&fc)||(Du(0,!1),!1)}function eu(){if(null!==hc){if(0===vc)var e=hc.return;else Nr=wr=null,oo(e=hc),li=null,si=0,e=hc;for(;null!==e;)hs(e.alternate,e),e=e.return;hc=null}}function tu(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,kd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Uc=0,eu(),pc=e,hc=n=Ua(e.current,null),gc=t,vc=0,bc=null,yc=!1,xc=Ce(e,t),jc=!1,Cc=zc=Sc=_c=Nc=wc=0,Pc=Ec=null,Tc=!1,0!==(8&t)&&(t|=32&t);var a=e.entangledLanes;if(0!==a)for(e=e.entanglements,a&=t;0<a;){var r=31-xe(a),i=1<<r;t|=e[r],a&=~i}return kc=t,Pa(),n}function nu(e,t){Bi=null,F.H=hl,t===Yr||t===Zr?(t=ii(),vc=3):t===Xr?(t=ii(),vc=4):vc=t===Ol?8:null!==t&&"object"===typeof t&&"function"===typeof t.then?6:1,bc=t,null===hc&&(wc=1,zl(e,Ga(t,e.current)))}function au(){var e=Oi.current;return null===e||((4194048&gc)===gc?null===Li:((62914560&gc)===gc||0!==(536870912&gc))&&e===Li)}function ru(){var e=F.H;return F.H=hl,null===e?hl:e}function iu(){var e=F.A;return F.A=dc,e}function ou(){wc=4,yc||(4194048&gc)!==gc&&null!==Oi.current||(xc=!0),0===(134217727&Nc)&&0===(134217727&_c)||null===pc||Xc(pc,gc,zc,!1)}function lu(e,t,n){var a=fc;fc|=2;var r=ru(),i=iu();pc===e&&gc===t||(Ac=null,tu(e,t)),t=!1;var o=wc;e:for(;;)try{if(0!==vc&&null!==hc){var l=hc,s=bc;switch(vc){case 8:eu(),o=6;break e;case 3:case 2:case 9:case 6:null===Oi.current&&(t=!0);var c=vc;if(vc=0,bc=null,mu(e,l,s,c),n&&xc){o=0;break e}break;default:c=vc,vc=0,bc=null,mu(e,l,s,c)}}su(),o=wc;break}catch(u){nu(e,u)}return t&&e.shellSuspendCounter++,Nr=wr=null,fc=a,F.H=r,F.A=i,null===hc&&(pc=null,gc=0,Pa()),o}function su(){for(;null!==hc;)uu(hc)}function cu(){for(;null!==hc&&!oe();)uu(hc)}function uu(e){var t=os(e.alternate,e,kc);e.memoizedProps=e.pendingProps,null===t?fu(e):hc=t}function du(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=$l(n,t,t.pendingProps,t.type,void 0,gc);break;case 11:t=$l(n,t,t.pendingProps,t.type.render,t.ref,gc);break;case 5:oo(t);default:hs(n,t),t=os(n,t=hc=qa(t,kc),kc)}e.memoizedProps=e.pendingProps,null===t?fu(e):hc=t}function mu(e,t,n,a){Nr=wr=null,oo(t),li=null,si=0;var r=t.return;try{if(function(e,t,n,a,r){if(n.flags|=32768,null!==a&&"object"===typeof a&&"function"===typeof a.then){if(null!==(t=n.alternate)&&Er(t,n,r,!0),null!==(n=Oi.current)){switch(n.tag){case 31:case 13:return null===Li?ou():null===n.alternate&&0===wc&&(wc=3),n.flags&=-257,n.flags|=65536,n.lanes=r,a===ei?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([a]):t.add(a),Nu(e,a,r)),!1;case 22:return n.flags|=65536,a===ei?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([a]):n.add(a),Nu(e,a,r)),!1}throw Error(o(435,n.tag))}return Nu(e,a,r),ou(),!1}if(dr)return null!==(t=Oi.current)?(0===(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=r,a!==pr&&jr(Ga(e=Error(o(422),{cause:a}),n))):(a!==pr&&jr(Ga(t=Error(o(423),{cause:a}),n)),(e=e.current.alternate).flags|=65536,r&=-r,e.lanes|=r,a=Ga(a,n),ji(e,r=El(e.stateNode,a,r)),4!==wc&&(wc=2)),!1;var i=Error(o(520),{cause:a});if(i=Ga(i,n),null===Ec?Ec=[i]:Ec.push(i),4!==wc&&(wc=2),null===t)return!0;a=Ga(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,ji(n,e=El(n.stateNode,a,e)),!1;case 1:if(t=n.type,i=n.stateNode,0===(128&n.flags)&&("function"===typeof t.getDerivedStateFromError||null!==i&&"function"===typeof i.componentDidCatch&&(null===Dc||!Dc.has(i))))return n.flags|=65536,r&=-r,n.lanes|=r,Tl(r=Pl(r),e,n,a),ji(n,r),!1}n=n.return}while(null!==n);return!1}(e,r,t,n,gc))return wc=1,zl(e,Ga(n,e.current)),void(hc=null)}catch(i){if(null!==r)throw hc=r,i;return wc=1,zl(e,Ga(n,e.current)),void(hc=null)}32768&t.flags?(dr||1===a?e=!0:xc||0!==(536870912&gc)?e=!1:(yc=e=!0,(2===a||9===a||3===a||6===a)&&(null!==(a=Oi.current)&&13===a.tag&&(a.flags|=16384))),pu(t,e)):fu(t)}function fu(e){var t=e;do{if(0!==(32768&t.flags))return void pu(t,yc);e=t.return;var n=fs(t.alternate,t,kc);if(null!==n)return void(hc=n);if(null!==(t=t.sibling))return void(hc=t);hc=t=e}while(null!==t);0===wc&&(wc=5)}function pu(e,t){do{var n=ps(e.alternate,e);if(null!==n)return n.flags&=32767,void(hc=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deleti
2ons=null),!t&&null!==(e=e.sibling))return void(hc=e);hc=e=n}while(null!==e);wc=6,hc=null}function hu(e,t,n,a,r,i,l,s,c){e.cancelPendingCommit=null;do{xu()}while(0!==Ic);if(0!==(6&fc))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,a,r,i){var o=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=o&~n;0<n;){var u=31-xe(n),d=1<<u;l[u]=0,s[u]=-1;var m=c[u];if(null!==m)for(c[u]=null,u=0;u<m.length;u++){var f=m[u];null!==f&&(f.lane&=-536870913)}n&=~d}0!==a&&Le(e,a,0),0!==i&&0===r&&0!==e.tag&&(e.suspendedLanes|=i&~(o&~t))}(e,n,i|=Ea,l,s,c),e===pc&&(hc=pc=null,gc=0),Mc=t,Rc=e,Uc=n,qc=i,Bc=r,Hc=a,0!==(10256&t.subtreeFlags)||0!==(10256&t.flags)?(e.callbackNode=null,e.callbackPriority=0,re(me,function(){return ju(),null})):(e.callbackNode=null,e.callbackPriority=0),a=0!==(13878&t.flags),0!==(13878&t.subtreeFlags)||a){a=F.T,F.T=null,r=A.p,A.p=2,l=fc,fc|=4;try{!function(e,t){if(e=e.containerInfo,pd=ym,ra(e=aa(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var a=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(a&&0!==a.rangeCount){n=a.anchorNode;var r=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{n.nodeType,i.nodeType}catch(g){n=null;break e}var l=0,s=-1,c=-1,u=0,d=0,m=e,f=null;t:for(;;){for(var p;m!==n||0!==r&&3!==m.nodeType||(s=l+r),m!==i||0!==a&&3!==m.nodeType||(c=l+a),3===m.nodeType&&(l+=m.nodeValue.length),null!==(p=m.firstChild);)f=m,m=p;for(;;){if(m===e)break t;if(f===n&&++u===r&&(s=l),f===i&&++d===a&&(c=l),null!==(p=m.nextSibling))break;f=(m=f).parentNode}m=p}n=-1===s||-1===c?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(hd={focusedElem:e,selectionRange:n},ym=!1,Ls=t;null!==Ls;)if(e=(t=Ls).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Ls=e;else for(;null!==Ls;){switch(i=(t=Ls).alternate,e=t.flags,t.tag){case 0:if(0!==(4&e)&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(r=e[n]).ref.impl=r.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(0!==(1024&e)&&null!==i){e=void 0,n=t,r=i.memoizedProps,i=i.memoizedState,a=n.stateNode;try{var h=wl(n.type,r);e=a.getSnapshotBeforeUpdate(h,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(v){wu(n,n.return,v)}}break;case 3:if(0!==(1024&e))if(9===(n=(e=t.stateNode.containerInfo).nodeType))Ed(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ed(e);break;default:e.textContent=""}break;default:if(0!==(1024&e))throw Error(o(163))}if(null!==(e=t.sibling)){e.return=t.return,Ls=e;break}Ls=t.return}}(e,t)}finally{fc=l,A.p=r,F.T=a}}Ic=1,gu(),vu(),bu()}}function gu(){if(1===Ic){Ic=0;var e=Rc,t=Mc,n=0!==(13878&t.flags);if(0!==(13878&t.subtreeFlags)||n){n=F.T,F.T=null;var a=A.p;A.p=2;var r=fc;fc|=4;try{$s(t,e);var i=hd,o=aa(e.containerInfo),l=i.focusedElem,s=i.selectionRange;if(o!==l&&l&&l.ownerDocument&&na(l.ownerDocument.documentElement,l)){if(null!==s&&ra(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,m=d&&d.defaultView||window;if(m.getSelection){var f=m.getSelection(),p=l.textContent.length,h=Math.min(s.start,p),g=void 0===s.end?h:Math.min(s.end,p);!f.extend&&h>g&&(o=g,g=h,h=o);var v=ta(l,h),b=ta(l,g);if(v&&b&&(1!==f.rangeCount||f.anchorNode!==v.node||f.anchorOffset!==v.offset||f.focusNode!==b.node||f.focusOffset!==b.offset)){var y=d.createRange();y.setStart(v.node,v.offset),f.removeAllRanges(),h>g?(f.addRange(y),f.extend(b.node,b.offset)):(y.setEnd(b.node,b.offset),f.addRange(y))}}}}for(d=[],f=l;f=f.parentNode;)1===f.nodeType&&d.push({element:f,left:f.scrollLeft,top:f.scrollTop});for("function"===typeof l.focus&&l.focus(),l=0;l<d.length;l++){var x=d[l];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}ym=!!pd,hd=pd=null}finally{fc=r,A.p=a,F.T=n}}e.current=t,Ic=2}}function vu(){if(2===Ic){Ic=0;var e=Rc,t=Mc,n=0!==(8772&t.flags);if(0!==(8772&t.subtreeFlags)||n){n=F.T,F.T=null;var a=A.p;A.p=2;var r=fc;fc|=4;
2try{Fs(e,t.alternate,t)}finally{fc=r,A.p=a,F.T=n}}Ic=3}}function bu(){if(4===Ic||3===Ic){Ic=0,le();var e=Rc,t=Mc,n=Uc,a=Hc;0!==(10256&t.subtreeFlags)||0!==(10256&t.flags)?Ic=5:(Ic=0,Mc=Rc=null,yu(e,e.pendingLanes));var r=e.pendingLanes;if(0===r&&(Dc=null),Ie(n),t=t.stateNode,be&&"function"===typeof be.onCommitFiberRoot)try{be.onCommitFiberRoot(ve,t,void 0,128===(128&t.current.flags))}catch(s){}if(null!==a){t=F.T,r=A.p,A.p=2,F.T=null;try{for(var i=e.onRecoverableError,o=0;o<a.length;o++){var l=a[o];i(l.value,{componentStack:l.stack})}}finally{F.T=t,A.p=r}}0!==(3&Uc)&&xu(),Au(e),r=e.pendingLanes,0!==(261930&n)&&0!==(42&r)?e===$c?Vc++:(Vc=0,$c=e):Vc=0,Du(0,!1)}}function yu(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Ur(t)))}function xu(){return gu(),vu(),bu(),ju()}function ju(){if(5!==Ic)return!1;var e=Rc,t=qc;qc=0;var n=Ie(Uc),a=F.T,r=A.p;try{A.p=32>n?32:n,F.T=null,n=Bc,Bc=null;var i=Rc,l=Uc;if(Ic=0,Mc=Rc=null,Uc=0,0!==(6&fc))throw Error(o(331));var s=fc;if(fc|=4,sc(i.current),ec(i,i.current,l,n),fc=s,Du(0,!1),be&&"function"===typeof be.onPostCommitFiberRoot)try{be.onPostCommitFiberRoot(ve,i)}catch(c){}return!0}finally{A.p=r,F.T=a,yu(e,t)}}function ku(e,t,n){t=Ga(n,t),null!==(e=yi(e,t=El(e.stateNode,t,2),2))&&(Oe(e,2),Au(e))}function wu(e,t,n){if(3===e.tag)ku(e,e,n);else for(;null!==t;){if(3===t.tag){ku(t,e,n);break}if(1===t.tag){var a=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof a.componentDidCatch&&(null===Dc||!Dc.has(a))){e=Ga(n,e),null!==(a=yi(t,n=Pl(2),2))&&(Tl(n,a,t,e),Oe(a,2),Au(a));break}}t=t.return}}function Nu(e,t,n){var a=e.pingCache;if(null===a){a=e.pingCache=new mc;var r=new Set;a.set(t,r)}else void 0===(r=a.get(t))&&(r=new Set,a.set(t,r));r.has(n)||(jc=!0,r.add(n),e=_u.bind(null,e,t,n),t.then(e,e))}function _u(e,t,n){var a=e.pingCache;null!==a&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,pc===e&&(gc&n)===n&&(4===wc||3===wc&&(62914560&gc)===gc&&300>se()-Oc?0===(2&fc)&&tu(e,0):Sc|=n,Cc===gc&&(Cc=0)),Au(e)}function Su(e,t){0===t&&(t=Pe()),null!==(e=La(e,t))&&(Oe(e,t),Au(e))}function zu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Su(e,n)}function Cu(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,r=e.memoizedState;null!==r&&(n=r.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(o(314))}null!==a&&a.delete(t),Su(e,n)}var Eu=null,Pu=null,Tu=!1,Ou=!1,Lu=!1,Fu=0;function Au(e){e!==Pu&&null===e.next&&(null===Pu?Eu=Pu=e:Pu=Pu.next=e),Ou=!0,Tu||(Tu=!0,Nd(function(){0!==(6&fc)?re(ue,Iu):Ru()}))}function Du(e,t){if(!Lu&&Ou){Lu=!0;do{for(var n=!1,a=Eu;null!==a;){if(!t)if(0!==e){var r=a.pendingLanes;if(0===r)var i=0;else{var o=a.suspendedLanes,l=a.pingedLanes;i=(1<<31-xe(42|e)+1)-1,i=201326741&(i&=r&~(o&~l))?201326741&i|1:i?2|i:0}0!==i&&(n=!0,qu(a,i))}else i=gc,0===(3&(i=ze(a,a===pc?i:0,null!==a.cancelPendingCommit||-1!==a.timeoutHandle)))||Ce(a,i)||(n=!0,qu(a,i));a=a.next}}while(n);Lu=!1}}function Iu(){Ru()}function Ru(){Ou=Tu=!1;var e=0;0!==Fu&&function(){var e=window.event;if(e&&"popstate"===e.type)return e!==xd&&(xd=e,!0);return xd=null,!1}()&&(e=Fu);for(var t=se(),n=null,a=Eu;null!==a;){var r=a.next,i=Mu(a,t);0===i?(a.next=null,null===n?Eu=r:n.next=r,null===r&&(Pu=n)):(n=a,(0!==e||0!==(3&i))&&(Ou=!0)),a=r}0!==Ic&&5!==Ic||Du(e,!1),0!==Fu&&(Fu=0)}function Mu(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,r=e.expirationTimes,i=-62914561&e.pendingLanes;0<i;){var o=31-xe(i),l=1<<o,s=r[o];-1===s?0!==(l&n)&&0===(l&a)||(r[o]=Ee(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}if(n=gc,n=ze(e,e===(t=pc)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),a=e.callbackNode,0===n||e===t&&(2===vc||9===vc)||null!==e.cancelPendingCommit)return null!==a&&null!==a&&ie(a),e.callbackNode=null,e.callbackPriority=0;if(0===(3&n)||Ce(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==a&&ie(a),Ie(n)){case 2:case 8:n=de;break;case 32:default:n=me;break;case 268435456:n=pe}return a=Uu.bind(null,e),n=re(n,a),e.callbackPriority=t,e.callbackNode=n,t}return null!==a&&null!==a&&ie(a),e.callbackPriority=2,e.callbackNode=null,2}function Uu(e,t){if(0!==Ic&&5!==Ic)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(xu()&&e.callbackNode!==n)return null;var a=gc;return 0===(a=ze(e,e===pc?a:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Kc(e,a,t),Mu(e,se()),null!=e.callbackNode&&e.callbackNode===n?Uu.bind(null,e):null)}function qu(e,t){if(xu())return null;Kc(e,t,!0)}function Bu(){if(0===Fu){var e=Hr;0===e&&(e=we,0===(261888&(we<<=1))&&(we=256)),Fu=e}return Fu}function Hu(e){return null==e||"symbol"===typeof e||"boolean"===typeof e?null:"function"===typeof e?e:Tt(""+e)}function Vu(e,t){var n=t.ownerDocument.createElement("input");
vendor: 5,020 bytes, line 2
2return 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 $u=0;$u<Na.length;$u++){var Wu=Na[$u];_a(Wu.toLowerCase(),"on"+(Wu[0].toUpperCase()+Wu.slice(1)))}_a(ga,"onAnimationEnd"),_a(va,"onAnimationIteration"),_a(ba,"onAnimationStart"),_a("dblclick","onDoubleClick"),_a("focusin","onFocus"),_a("focusout","onBlur"),_a(ya,"onTransitionRun"),_a(xa,"onTransitionStart"),_a(ja,"onTransitionCancel"),_a(ka,"onTransitionEnd"),rt("onMouseEnter",["mouseout","mouseover"]),rt("onMouseLeave",["mouseout","mouseover"]),rt("onPointerEnter",["pointerout","pointerover"]),rt("onPointerLeave",["pointerout","pointerover"]),at("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),at("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),at("onBeforeInput",["compositionend","keypress","textInput","paste"]),at("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),at("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),at("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qu="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(" "),Gu=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Qu));function Ku(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var a=e[n],r=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var o=a.length-1;0<=o;o--){var l=a[o],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==i&&r.isPropagationStopped())break e;i=l,r.currentTarget=c;try{i(r)}catch(u){Sa(u)}r.currentTarget=null,i=s}else for(o=0;o<a.length;o++){if(s=(l=a[o]).instance,c=l.currentTarget,l=l.listener,s!==i&&r.isPropagationStopped())break e;i=l,r.currentTarget=c;try{i(r)}catch(u){Sa(u)}r.currentTarget=null,i=s}}}}function Ju(e,t){var n=t[Ve];void 0===n&&(n=t[Ve]=new Set);var a=e+"__bubble";n.has(a)||(ed(t,e,2,!1),n.add(a))}function Yu(e,t,n){var a=0;t&&(a|=4),ed(n,e,a,t)}var Xu="_reactListening"+Math.random().toString(36).slice(2);function Zu(e){if(!e[Xu]){e[Xu]=!0,tt.forEach(function(t){"selectionchange"!==t&&(Gu.has(t)||Yu(t,!1,e),Yu(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Xu]||(t[Xu]=!0,Yu("selectionchange",!1,t))}}function ed(e,t,n,a){switch(Sm(t)){case 2:var r=xm;break;case 8:r=jm;break;default:r=km}n=r.bind(null,t,n,e),r=void 0,!Bt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(r=!0),a?void 0!==r?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):void 0!==r?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function td(e,t,n,a,r){var i=a;if(0===(1&t)&&0===(2&t)&&null!==a)e:for(;;){if(null===a)return;var o=a.tag;if(3===o||4===o){var l=a.stateNode.containerInfo;if(l===r)break;if(4===o)for(o=a.return;null!==o;){var c=o.tag;if((3===c||4===c)&&o.stateNode.containerInfo===r)return;o=o.return}for(;null!==l;){if(null===(o=Je(l)))return;if(5===(c=o.tag)||6===c||26===c||27===c){a=i=o;continue e}l=l.parentNode}}a=a.return}Mt(function(){var a=i,r=Ft(n),o=[];e:{var l=wa.get(e);if(void 0!==l){var c=nn,u=e;switch(e){case"keypress":if(0===Gt(n))break e;case"keydown":case"keyup":c=bn;break;case"focusin":u="focus",c=cn;break;case"focusout":u="blur",c=cn;break;case"beforeblur":case"afterblur":c=cn;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=ln;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=sn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=xn;break;case ga:case va:case ba:c=un;break;case ka:c=jn;break;case"scroll":case"scrollend":c=rn;break;case"wheel":c=kn;break;case"copy":case"cut":case"paste":c=dn;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=wn}var d=0!==(4&t),m=!d&&("scroll"===e||"scrollend"===e),f=d?null!==l?l+"Capture":null:l;d=[];for(var p,h=a;null!==h;){var g=h;if(p=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===p||null===f||null!=(g=Ut(h,f))&&d.push(nd(h,g,p)),m)break;h=h.return}0<d.length&&(l=new c(l,u,null,n,r),o.push({event:l,listeners:d}))}}if(0===(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===Lt||!(u=n.relatedTarget||n.fromElement)||!Je(u)&&!u[He])&&(c||l)&&(l=r.window===r?r:(l=r.ownerDocument)?l.defaultView||l.parentWindow:window,c?(c=a,null!==(u=(u=n.relatedTarget||n.toElement)?Je(u):null)&&(m=s(u),d=u.tag,u!==m||5!==d&&27!==d&&6!==d)&&(u=null)):(c=null,u=a),c!==u)){
vendor: 5,609 bytes, line 2
2if(d=ln,g="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(d=yn,g="onPointerLeave",f="onPointerEnter",h="pointer"),m=null==c?l:Xe(c),p=null==u?l:Xe(u),(l=new d(g,h+"leave",c,n,r)).target=m,l.relatedTarget=p,g=null,Je(r)===a&&((d=new d(f,h+"enter",u,n,r)).target=p,d.relatedTarget=m,g=d),m=g,c&&u)e:{for(d=rd,h=u,p=0,g=f=c;g;g=d(g))p++;g=0;for(var v=h;v;v=d(v))g++;for(;0<p-g;)f=d(f),p--;for(;0<g-p;)h=d(h),g--;for(;p--;){if(f===h||null!==h&&f===h.alternate){d=f;break e}f=d(f),h=d(h)}d=null}else d=null;null!==c&&id(o,l,c,d,!1),null!==u&&null!==m&&id(o,m,u,d,!0)}if("select"===(c=(l=a?Xe(a):window).nodeName&&l.nodeName.toLowerCase())||"input"===c&&"file"===l.type)var b=qn;else if(An(l))if(Bn)b=Yn;else{b=Kn;var y=Gn}else!(c=l.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?a&&Ct(a.elementType)&&(b=qn):b=Jn;switch(b&&(b=b(e,a))?Dn(o,b,n,r):(y&&y(e,l,a),"focusout"===e&&a&&"number"===l.type&&null!=a.memoizedProps.value&&xt(l,"number",l.value)),y=a?Xe(a):window,e){case"focusin":(An(y)||"true"===y.contentEditable)&&(oa=y,la=a,sa=null);break;case"focusout":sa=la=oa=null;break;case"mousedown":ca=!0;break;case"contextmenu":case"mouseup":case"dragend":ca=!1,ua(o,n,r);break;case"selectionchange":if(ia)break;case"keydown":case"keyup":ua(o,n,r)}var x;if(_n)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else Ln?Tn(e,n)&&(j="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(j="onCompositionStart");j&&(Cn&&"ko"!==n.locale&&(Ln||"onCompositionStart"!==j?"onCompositionEnd"===j&&Ln&&(x=Qt()):($t="value"in(Vt=r)?Vt.value:Vt.textContent,Ln=!0)),0<(y=ad(a,j)).length&&(j=new mn(j,e,null,n,r),o.push({event:j,listeners:y}),x?j.data=x:null!==(x=On(n))&&(j.data=x))),(x=zn?function(e,t){switch(e){case"compositionend":return On(t);case"keypress":return 32!==t.which?null:(Pn=!0,En);case"textInput":return(e=t.data)===En&&Pn?null:e;default:return null}}(e,n):function(e,t){if(Ln)return"compositionend"===e||!_n&&Tn(e,t)?(e=Qt(),Wt=$t=Vt=null,Ln=!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 Cn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(j=ad(a,"onBeforeInput")).length&&(y=new mn("onBeforeInput","beforeinput",null,n,r),o.push({event:y,listeners:j}),y.data=x)),function(e,t,n,a,r){if("submit"===t&&n&&n.stateNode===r){var i=Hu((r[Be]||null).action),o=a.submitter;o&&null!==(t=(t=o[Be]||null)?Hu(t.formAction):o.getAttribute("formAction"))&&(i=t,o=null);var l=new nn("action","action",null,a,r);e.push({event:l,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(0!==Fu){var e=o?Vu(r,o):new FormData(r);tl(n,{pending:!0,data:e,method:r.method,action:i},null,e)}}else"function"===typeof i&&(l.preventDefault(),e=o?Vu(r,o):new FormData(r),tl(n,{pending:!0,data:e,method:r.method,action:i},i,e))},currentTarget:r}]})}}(o,e,a,n,r)}Ku(o,t)})}function nd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ad(e,t){for(var n=t+"Capture",a=[];null!==e;){var r=e,i=r.stateNode;if(5!==(r=r.tag)&&26!==r&&27!==r||null===i||(null!=(r=Ut(e,n))&&a.unshift(nd(e,r,i)),null!=(r=Ut(e,t))&&a.push(nd(e,r,i))),3===e.tag)return a;e=e.return}return[]}function rd(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function id(e,t,n,a,r){for(var i=t._reactName,o=[];null!==n&&n!==a;){var l=n,s=l.alternate,c=l.stateNode;if(l=l.tag,null!==s&&s===a)break;5!==l&&26!==l&&27!==l||null===c||(s=c,r?null!=(c=Ut(n,i))&&o.unshift(nd(n,c,s)):r||null!=(c=Ut(n,i))&&o.push(nd(n,c,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var od=/\r\n?/g,ld=/\u0000|\uFFFD/g;function sd(e){return("string"===typeof e?e:""+e).replace(od,"\n").replace(ld,"")}function cd(e,t){return t=sd(t),sd(e)===t}function ud(e,t,n,a,r,i){switch(n){case"children":"string"===typeof a?"body"===t||"textarea"===t&&""===a||Nt(e,a):("number"===typeof a||"bigint"===typeof a)&&"body"!==t&&Nt(e,""+a);break;case"className":ct(e,"class",a);break;case"tabIndex":ct(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ct(e,n,a);break;case"style":zt(e,a,i);break;case"data":if("object"!==t){ct(e,"data",a);break}case"src":case"href":if(""===a&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==a||"function"===typeof a||"symbol"===typeof a||"boolean"===typeof a){e.removeAttribute(n);break}a=Tt(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if("function"===typeof a){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&&ud(e,t,"name",r.name,r,null),ud(e,t,"formEncType",r.formEncType,r,null),ud(e,t,"formMethod",r.formMethod,r,null),ud(e,t,"formTarget",r.formTarget,r,null)):(ud(e,t,"encType",r.encType,r,null),ud(e,t,"method",r.method,r,null),ud(e,t,"target",r.target,r,null))),null==a||"symbol"===typeof a||"boolean"===typeof a){e.removeAttribute(n);break}a=Tt(""+a),e.setAttribute(n,a);break;case"onClick":null!=a&&(e.onclick=Ot);break;case"onScroll":null!=a&&Ju("scroll",e);break;case"onScrollEnd":null!=a&&Ju("scrollend",e);break;
2case"dangerouslySetInnerHTML":if(null!=a){if("object"!==typeof a||!("__html"in a))throw Error(o(61));if(null!=(n=a.__html)){if(null!=r.children)throw Error(o(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&"function"!==typeof a&&"symbol"!==typeof a;break;case"muted":e.muted=a&&"function"!==typeof a&&"symbol"!==typeof a;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==a||"function"===typeof a||"boolean"===typeof a||"symbol"===typeof a){e.removeAttribute("xlink:href");break}n=Tt(""+a),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!=a&&"function"!==typeof a&&"symbol"!==typeof a?e.setAttribute(n,""+a):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":a&&"function"!==typeof a&&"symbol"!==typeof a?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===a?e.setAttribute(n,""):!1!==a&&null!=a&&"function"!==typeof a&&"symbol"!==typeof a?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=a&&"function"!==typeof a&&"symbol"!==typeof a&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":null==a||"function"===typeof a||"symbol"===typeof a||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Ju("beforetoggle",e),Ju("toggle",e),st(e,"popover",a);break;case"xlinkActuate":ut(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":ut(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":ut(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":ut(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":ut(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":ut(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":ut(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":ut(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":ut(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":st(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&st(e,n=Et.get(n)||n,a)}}function dd(e,t,n,a,r,i){switch(n){case"style":zt(e,a,i);break;case"dangerouslySetInnerHTML":if(null!=a){if("object"!==typeof a||!("__html"in a))throw Error(o(61));if(null!=(n=a.__html)){if(null!=r.children)throw Error(o(60));e.innerHTML=n}}break;case"children":"string"===typeof a?Nt(e,a):("number"===typeof a||"bigint"===typeof a)&&Nt(e,""+a);break;case"onScroll":null!=a&&Ju("scroll",e);break;case"onScrollEnd":null!=a&&Ju("scrollend",e);break;case"onClick":null!=a&&(e.onclick=Ot);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:nt.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),"function"===typeof(i=null!=(i=e[Be]||null)?i[n]:null)&&e.removeEventListener(t,i,r),"function"!==typeof a)?n in e?e[n]=a:!0===a?e.setAttribute(n,""):st(e,n,a):("function"!==typeof i&&null!==i&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,r)))}}function md(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ju("error",e),Ju("load",e);var a,r=!1,i=!1;for(a in n)if(n.hasOwnProperty(a)){var l=n[a];if(null!=l)switch(a){case"src":r=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:ud(e,t,a,l,n,null)}}return i&&ud(e,t,"srcSet",n.srcSet,n,null),void(r&&ud(e,t,"src",n.src,n,null));case"input":Ju("invalid",e);var s=a=l=i=null,c=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(null!=d)switch(r){case"name":i=d;break;case"type":l=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":a=d;break;case"defaultValue":s=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(o(137,t));break;default:ud(e,t,r,d,n,null)}}return void yt(e,a,s,c,u,l,i,!1);case"select":for(i in Ju("invalid",e),r=l=a=null,n)if(n.hasOwnProperty(i)&&null!=(s=n[i]))switch(i){case"value":a=s;break;case"defaultValue":l=s;break;case"multiple":r=s;default:ud(e,t,i,s,n,null)}return t=a,n=l,e.multiple=!!r,void(null!=t?jt(e,!!r,t,!1):null!=n&&jt(e,!!r,n,!0));case"textarea":for(l in Ju("invalid",e),a=i=r=null,n)if(n.hasOwnProperty(l)&&null!=(s=n[l]))switch(l){case"value":r=s;break;case"defaultValue":i=s;break;case"children":a=s;break;case"dangerouslySetInnerHTML":if(null!=s)throw Error(o(91));break;default:ud(e,t,l,s,n,null)}return void wt(e,r,i,a);case"option":for(c in n)if(n.hasOwnProperty(c)&&null!=(r=n[c]))if("selected"===c)e.selected=r&&"function"!==typeof r&&"symbol"!==typeof r;else ud(e,t,c,r,n,null);return;
vendor: 4,176 bytes, line 2
2case"dialog":Ju("beforetoggle",e),Ju("toggle",e),Ju("cancel",e),Ju("close",e);break;case"iframe":case"object":Ju("load",e);break;case"video":case"audio":for(r=0;r<Qu.length;r++)Ju(Qu[r],e);break;case"image":Ju("error",e),Ju("load",e);break;case"details":Ju("toggle",e);break;case"embed":case"source":case"link":Ju("error",e),Ju("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!=(r=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:ud(e,t,u,r,n,null)}return;default:if(Ct(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(r=n[d])&&dd(e,t,d,r,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(null!=(r=n[s])&&ud(e,t,s,r,n,null))}function fd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var pd=null,hd=null;function gd(e){return 9===e.nodeType?e:e.ownerDocument}function vd(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 bd(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 yd(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 xd=null;var jd="function"===typeof setTimeout?setTimeout:void 0,kd="function"===typeof clearTimeout?clearTimeout:void 0,wd="function"===typeof Promise?Promise:void 0,Nd="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof wd?function(e){return wd.resolve(null).then(e).catch(_d)}:jd;function _d(e){setTimeout(function(){throw e})}function Sd(e){return"head"===e}function zd(e,t){var n=t,a=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&8===r.nodeType)if("/$"===(n=r.data)||"/&"===n){if(0===a)return e.removeChild(r),void Vm(t);a--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)a++;else if("html"===n)Rd(e.ownerDocument.documentElement);else if("head"===n){Rd(n=e.ownerDocument.head);for(var i=n.firstChild;i;){var o=i.nextSibling,l=i.nodeName;i[Ge]||"SCRIPT"===l||"STYLE"===l||"LINK"===l&&"stylesheet"===i.rel.toLowerCase()||n.removeChild(i),i=o}}else"body"===n&&Rd(e.ownerDocument.body);n=r}while(n);Vm(t)}function Cd(e,t){var n=e;e=0;do{var a=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===e)break;e--}else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=a}while(n)}function Ed(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":Ed(n),Ke(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function Pd(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Ld(e.nextSibling)))return null}return e}function Td(e){return"$?"===e.data||"$~"===e.data}function Od(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Ld(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||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var Fd=null;function Ad(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Ld(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function Dd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}
vendor: 4,709 bytes, line 2
2function Id(e,t,n){switch(t=gd(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 Rd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ke(e)}var Md=new Map,Ud=new Set;function qd(e){return"function"===typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Bd=A.d;A.d={f:function(){var e=Bd.f(),t=Zc();return e||t},r:function(e){var t=Ye(e);null!==t&&5===t.tag&&"form"===t.type?al(t):Bd.r(e)},D:function(e){Bd.D(e),Vd("dns-prefetch",e,null)},C:function(e,t){Bd.C(e,t),Vd("preconnect",e,t)},L:function(e,t,n){Bd.L(e,t,n);var a=Hd;if(a&&e&&t){var r='link[rel="preload"][as="'+vt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(r+='[imagesrcset="'+vt(n.imageSrcSet)+'"]',"string"===typeof n.imageSizes&&(r+='[imagesizes="'+vt(n.imageSizes)+'"]')):r+='[href="'+vt(e)+'"]';var i=r;switch(t){case"style":i=Wd(e);break;case"script":i=Kd(e)}Md.has(i)||(e=f({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Md.set(i,e),null!==a.querySelector(r)||"style"===t&&a.querySelector(Qd(i))||"script"===t&&a.querySelector(Jd(i))||(md(t=a.createElement("link"),"link",e),et(t),a.head.appendChild(t)))}},m:function(e,t){Bd.m(e,t);var n=Hd;if(n&&e){var a=t&&"string"===typeof t.as?t.as:"script",r='link[rel="modulepreload"][as="'+vt(a)+'"][href="'+vt(e)+'"]',i=r;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Kd(e)}if(!Md.has(i)&&(e=f({rel:"modulepreload",href:e},t),Md.set(i,e),null===n.querySelector(r))){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Jd(i)))return}md(a=n.createElement("link"),"link",e),et(a),n.head.appendChild(a)}}},X:function(e,t){Bd.X(e,t);var n=Hd;if(n&&e){var a=Ze(n).hoistableScripts,r=Kd(e),i=a.get(r);i||((i=n.querySelector(Jd(r)))||(e=f({src:e,async:!0},t),(t=Md.get(r))&&em(e,t),et(i=n.createElement("script")),md(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(r,i))}},S:function(e,t,n){Bd.S(e,t,n);var a=Hd;if(a&&e){var r=Ze(a).hoistableStyles,i=Wd(e);t=t||"default";var o=r.get(i);if(!o){var l={loading:0,preload:null};if(o=a.querySelector(Qd(i)))l.loading=5;else{e=f({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Md.get(i))&&Zd(e,n);var s=o=a.createElement("link");et(s),md(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,Xd(o,t,a)}o={type:"stylesheet",instance:o,count:1,state:l},r.set(i,o)}}},M:function(e,t){Bd.M(e,t);var n=Hd;if(n&&e){var a=Ze(n).hoistableScripts,r=Kd(e),i=a.get(r);i||((i=n.querySelector(Jd(r)))||(e=f({src:e,async:!0,type:"module"},t),(t=Md.get(r))&&em(e,t),et(i=n.createElement("script")),md(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(r,i))}}};var Hd="undefined"===typeof document?null:document;function Vd(e,t,n){var a=Hd;if(a&&"string"===typeof t&&t){var r=vt(t);r='link[rel="'+e+'"][href="'+r+'"]',"string"===typeof n&&(r+='[crossorigin="'+n+'"]'),Ud.has(r)||(Ud.add(r),e={rel:e,crossOrigin:n,href:t},null===a.querySelector(r)&&(md(t=a.createElement("link"),"link",e),et(t),a.head.appendChild(t)))}}function $d(e,t,n,a){var r,i,l,s,c=(c=W.current)?qd(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=Wd(n.href),(a=(n=Ze(c).hoistableStyles).get(t))||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"===typeof n.href&&"string"===typeof n.precedence){e=Wd(n.href);var u=Ze(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(Qd(e)))&&!u._p&&(d.instance=u,d.state.loading=5),Md.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},Md.set(e,n),u||(r=c,i=e,l=n,s=d.state,r.querySelector('link[rel="preload"][as="style"]['+i+"]")?s.loading=1:(i=r.createElement("link"),s.preload=i,i.addEventListener("load",function(){return s.loading|=1}),i.addEventListener("error",function(){return s.loading|=2}),md(i,"link",l),et(i),r.head.appendChild(i))))),t&&null===a)throw Error(o(528,""));return d}if(t&&null!==a)throw Error(o(529,""));return null;
vendor: 7,173 bytes, line 2
2case"script":return t=n.async,"string"===typeof(n=n.src)&&t&&"function"!==typeof t&&"symbol"!==typeof t?(t=Kd(n),(a=(n=Ze(c).hoistableScripts).get(t))||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Wd(e){return'href="'+vt(e)+'"'}function Qd(e){return'link[rel="stylesheet"]['+e+"]"}function Gd(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Kd(e){return'[src="'+vt(e)+'"]'}function Jd(e){return"script[async]"+e}function Yd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+vt(n.href)+'"]');if(a)return t.instance=a,et(a),a;var r=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return et(a=(e.ownerDocument||e).createElement("style")),md(a,"style",r),Xd(a,n.precedence,e),t.instance=a;case"stylesheet":r=Wd(n.href);var i=e.querySelector(Qd(r));if(i)return t.state.loading|=4,t.instance=i,et(i),i;a=Gd(n),(r=Md.get(r))&&Zd(a,r),et(i=(e.ownerDocument||e).createElement("link"));var l=i;return l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),md(i,"link",a),t.state.loading|=4,Xd(i,n.precedence,e),t.instance=i;case"script":return i=Kd(n.src),(r=e.querySelector(Jd(i)))?(t.instance=r,et(r),r):(a=n,(r=Md.get(i))&&em(a=f({},n),r),et(r=(e=e.ownerDocument||e).createElement("script")),md(r,"link",a),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(o(443,t.type))}else"stylesheet"===t.type&&0===(4&t.state.loading)&&(a=t.instance,t.state.loading|=4,Xd(a,n.precedence,e));return t.instance}function Xd(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=a.length?a[a.length-1]:null,i=r,o=0;o<a.length;o++){var l=a[o];if(l.dataset.precedence===t)i=l;else if(i!==r)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Zd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function em(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var tm=null;function nm(e,t,n){if(null===tm){var a=new Map,r=tm=new Map;r.set(n,a)}else(a=(r=tm).get(n))||(a=new Map,r.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var i=n[r];if(!(i[Ge]||i[qe]||"link"===e&&"stylesheet"===i.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==i.namespaceURI){var o=i.getAttribute(t)||"";o=e+o;var l=a.get(o);l?l.push(i):a.set(o,[i])}}return a}function am(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function rm(e){return"stylesheet"!==e.type||0!==(3&e.state.loading)}var im=0;function om(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)sm(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var lm=null;function sm(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,lm=new Map,t.forEach(cm,e),lm=null,om.call(e))}function cm(e,t){if(!(4&t.state.loading)){var n=lm.get(e);if(n)var a=n.get(null);else{n=new Map,lm.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<r.length;i++){var o=r[i];"LINK"!==o.nodeName&&"not all"===o.getAttribute("media")||(n.set(o.dataset.precedence,o),a=o)}a&&n.set(null,a)}o=(r=t.instance).getAttribute("data-precedence"),(i=n.get(o)||a)===a&&n.set(null,r),n.set(o,r),this.count++,a=om.bind(this),r.addEventListener("load",a),r.addEventListener("error",a),i?i.parentNode.insertBefore(r,i.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(r,e.firstChild),t.state.loading|=4}}var um={$$typeof:j,Provider:null,Consumer:null,_currentValue:D,_currentValue2:D,_threadCount:0};function dm(e,t,n,a,r,i,o,l,s){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=a,this.onUncaughtError=r,this.onCaughtError=i,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function mm(e,t,n,a,r,i,o,l,s,c,u,d){return e=new dm(e,t,n,o,s,c,u,d,l),t=1,!0===i&&(t|=24),i=Ra(3,null,null,t),e.current=i,i.stateNode=e,(t=Mr()).refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:n,cache:t},gi(i),e}function fm(e){return e?e=Da:Da}function pm(e,t,n,a,r,i){r=fm(r),null===a.context?a.context=r:a.pendingContext=r,(a=bi(t)).payload={element:n},null!==(i=void 0===i?null:i)&&(a.callback=i),null!==(n=yi(e,a,t))&&(Gc(n,0,t),xi(n,e,t))}function hm(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function gm(e,t){hm(e,t),(e=e.alternate)&&hm(e,t)}function vm(e){if(13===e.tag||31===e.tag){var t=La(e,67108864);null!==t&&Gc(t,0,67108864),gm(e,67108864)}}function bm(e){if(13===e.tag||31===e.tag){var t=Wc(),n=La(e,t=De(t));null!==n&&Gc(n,0,t),gm(e,t)}}var ym=!0;function xm(e,t,n,a){var r=F.T;F.T=null;var i=A.p;try{A.p=2,km(e,t,n,a)}finally{A.p=i,F.T=r}}function jm(e,t,n,a){var r=F.T;F.T=null;var i=A.p;try{A.p=8,km(e,t,n,a)}finally{A.p=i,F.T=r}}function km(e,t,n,a){if(ym){var r=wm(a);if(null===r)td(e,t,a,Nm,n),Am(e,a);else if(function(e,t,n,a,r){switch(t){case"focusin":return Cm=Dm(Cm,e,t,n,a,r),!0;case"dragenter":return Em=Dm(Em,e,t,n,a,r),!0;case"mouseover":return Pm=Dm(Pm,e,t,n,a,r),!0;case"pointerover":var i=r.pointerId;return Tm.set(i,Dm(Tm.get(i)||null,e,t,n,a,r)),!0;case"gotpointercapture":return i=r.pointerId,Om.set(i,Dm(Om.get(i)||null,e,t,n,a,r)),!0}return!1}(r,e,t,n,a))a.stopPropagation();else if(Am(e,a),4&t&&-1<Fm.indexOf(e)){for(;null!==r;){var i=Ye(r);if(null!==i)switch(i.tag){case 3:if((i=i.stateNode).current.memoizedState.isDehydrated){var o=Se(i.pendingLanes);if(0!==o){var l=i;for(l.pendingLanes|=2,l.entangledLanes|=2;o;){var s=1<<31-xe(o);l.entanglements[1]|=s,o&=~s}Au(i),0===(6&fc)&&(Fc=se()+500,Du(0,!1))}}break;case 31:case 13:null!==(l=La(i,2))&&Gc(l,0,2),Zc(),gm(i,2)}if(null===(i=wm(a))&&td(e,t,a,Nm,n),i===r)break;r=i}null!==r&&a.stopPropagation()}else td(e,t,a,null,n)}}function wm(e){return _m(e=Ft(e))}var Nm=null;function _m(e){if(Nm=null,null!==(e=Je(e))){var t=s(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(31===n){if(null!==(e=u(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 Nm=e,null}function Sm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close"
vendor: 2,157 bytes, line 2
2: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(ce()){case ue:return 2;case de:return 8;case me:case fe:return 32;case pe:return 268435456;default:return 32}default:return 32}}var zm=!1,Cm=null,Em=null,Pm=null,Tm=new Map,Om=new Map,Lm=[],Fm="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 Am(e,t){switch(e){case"focusin":case"focusout":Cm=null;break;case"dragenter":case"dragleave":Em=null;break;case"mouseover":case"mouseout":Pm=null;break;case"pointerover":case"pointerout":Tm.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Om.delete(t.pointerId)}}function Dm(e,t,n,a,r,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:i,targetContainers:[r]},null!==t&&(null!==(t=Ye(t))&&vm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,null!==r&&-1===t.indexOf(r)&&t.push(r),e)}function Im(e){var t=Je(e.target);if(null!==t){var n=s(t);
vendor: 5,640 bytes, line 2
2if(null!==n)if(13===(t=n.tag)){if(null!==(t=c(n)))return e.blockedOn=t,void Me(e.priority,function(){bm(n)})}else if(31===t){if(null!==(t=u(n)))return e.blockedOn=t,void Me(e.priority,function(){bm(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Rm(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=wm(e.nativeEvent);if(null!==n)return null!==(t=Ye(n))&&vm(t),e.blockedOn=n,!1;var a=new(n=e.nativeEvent).constructor(n.type,n);Lt=a,n.target.dispatchEvent(a),Lt=null,t.shift()}return!0}function Mm(e,t,n){Rm(e)&&n.delete(t)}function Um(){zm=!1,null!==Cm&&Rm(Cm)&&(Cm=null),null!==Em&&Rm(Em)&&(Em=null),null!==Pm&&Rm(Pm)&&(Pm=null),Tm.forEach(Mm),Om.forEach(Mm)}function qm(e,t){e.blockedOn===t&&(e.blockedOn=null,zm||(zm=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Um)))}var Bm=null;function Hm(e){Bm!==e&&(Bm=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Bm===e&&(Bm=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],r=e[t+2];if("function"!==typeof a){if(null===_m(a||n))continue;break}var i=Ye(n);null!==i&&(e.splice(t,3),t-=3,tl(i,{pending:!0,data:r,method:n.method,action:a},a,r))}}))}function Vm(e){function t(t){return qm(t,e)}null!==Cm&&qm(Cm,e),null!==Em&&qm(Em,e),null!==Pm&&qm(Pm,e),Tm.forEach(t),Om.forEach(t);for(var n=0;n<Lm.length;n++){var a=Lm[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Lm.length&&null===(n=Lm[0]).blockedOn;)Im(n),null===n.blockedOn&&Lm.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(a=0;a<n.length;a+=3){var r=n[a],i=n[a+1],o=r[Be]||null;if("function"===typeof i)o||Hm(n);else if(o){var l=null;if(i&&i.hasAttribute("formAction")){if(r=i,o=i[Be]||null)l=o.formAction;else if(null!==_m(r))continue}else l=o.action;"function"===typeof l?n[a+1]=l:(n.splice(a,3),a-=3),Hm(n)}}}function $m(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return r=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==r&&(r(),r=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"===typeof navigation){var a=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),null!==r&&(r(),r=null)}}}function Wm(e){this._internalRoot=e}function Qm(e){this._internalRoot=e}Qm.prototype.render=Wm.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));pm(t.current,Wc(),e,t,null,null)},Qm.prototype.unmount=Wm.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;pm(e.current,2,null,e,null,null),Zc(),t[He]=null}},Qm.prototype.unstable_scheduleHydration=function(e){if(e){var t=Re();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lm.length&&0!==t&&t<Lm[n].priority;n++);Lm.splice(n,0,e),0===n&&Im(e)}};var Gm=r.version;if("19.2.0"!==Gm)throw Error(o(527,Gm,"19.2.0"));A.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=s(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,a=t;;){var r=n.return;if(null===r)break;var i=r.alternate;if(null===i){if(null!==(a=r.return)){n=a;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===n)return d(r),e;if(i===a)return d(r),t;i=i.sibling}throw Error(o(188))}if(n.return!==a.return)n=r,a=i;else{for(var l=!1,c=r.child;c;){if(c===n){l=!0,n=r,a=i;break}if(c===a){l=!0,a=r,n=i;break}c=c.sibling}if(!l){for(c=i.child;c;){if(c===n){l=!0,n=i,a=r;break}if(c===a){l=!0,a=i,n=r;break}c=c.sibling}if(!l)throw Error(o(189))}}if(n.alternate!==a)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?m(e):null)?null:e.stateNode};var Km={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.2.0"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Jm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jm.isDisabled&&Jm.supportsFiber)try{ve=Jm.inject(Km),be=Jm}catch(Xm){}}t.createRoot=function(e,t){if(!l(e))throw Error(o(299));var n=!1,a="",r=Nl,i=_l,s=Sl;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onUncaughtError&&(r=t.onUncaughtError),void 0!==t.onCaughtError&&(i=t.onCaughtError),void 0!==t.onRecoverableError&&(s=t.onRecoverableError)),t=mm(e,1,!1,null,0,n,a,null,r,i,s,$m),e[He]=t.current,Zu(e),new Wm(t)},t.hydrateRoot=function(e,t,n){if(!l(e))throw Error(o(299));var a=!1,r="",i=Nl,s=_l,c=Sl,u=null;return null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(r=n.identifierPrefix),void 0!==n.onUncaughtError&&(i=n.onUncaughtError),void 0!==n.onCaughtError&&(s=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.formState&&(u=n.formState)),(t=mm(e,1,!0,t,0,a,r,u,i,s,c,$m)).context=fm(null),n=t.current,(r=bi(a=De(a=Wc()))).callback=null,yi(n,r,a),n=a,t.current.lanes=n,Oe(t,n),Au(t),e[He]=t.current,Zu(e),new Qm(t)},t.version="19.2.0"}
2,43:(e,t,n)=>{e.exports=n(288)},288:(e,t)=>{var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,v={};function b(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}function y(){}function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=b.prototype;var j=x.prototype=new y;j.constructor=x,g(j,b.prototype),j.isPureReactComponent=!0;var k=Array.isArray;function w(){}var N={H:null,A:null,T:null,S:null},_=Object.prototype.hasOwnProperty;function S(e,t,a){var r=a.ref;return{$$typeof:n,type:e,key:t,ref:void 0!==r?r:null,props:a}}function z(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function E(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function P(e,t,r,i,o){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s,c,u=!1;if(null===e)u=!0;else switch(l){case"bigint":case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case a:u=!0;break;case m:return P((u=e._init)(e._payload),t,r,i,o)}}if(u)return o=o(e),u=""===i?"."+E(e,0):i,k(o)?(r="",null!=u&&(r=u.replace(C,"$&/")+"/"),P(o,t,r,"",function(e){return e})):null!=o&&(z(o)&&(s=o,c=r+(null==o.key||e&&e.key===o.key?"":(""+o.key).replace(C,"$&/")+"/")+u,o=S(s.type,c,s.props)),t.push(o)),1;u=0;var d,f=""===i?".":i+":";if(k(e))for(var h=0;h<e.length;h++)u+=P(i=e[h],t,r,l=f+E(i,h),o);else if("function"===typeof(h=null===(d=e)||"object"!==typeof d?null:"function"===typeof(d=p&&d[p]||d["@@iterator"])?d:null))for(e=h.call(e),h=0;!(i=e.next()).done;)u+=P(i=i.value,t,r,l=f+E(i,h++),o);else if("object"===l){if("function"===typeof e.then)return P(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"===typeof e.status?e.then(w,w):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,r,i,o);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return u}function T(e,t,n){if(null==e)return e;var a=[],r=0;return P(e,a,"","",function(e){return t.call(n,e,r++)}),a}function O(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var L="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)},F={map:T,forEach:function(e,t,n){T(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return T(e,function(){t++}),t},toArray:function(e){return T(e,function(e){return e})||[]},only:function(e){if(!z(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};t.Activity=f,t.Children=F,t.Component=b,t.Fragment=r,t.Profiler=o,t.PureComponent=x,t.StrictMode=i,t.Suspense=u,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return N.H.useMemoCache(e)}}
2,t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cacheSignal=function(){return null},t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error("The argument must be a React element, but you passed "+e+".");var a=g({},e.props),r=e.key;if(null!=t)for(i in void 0!==t.key&&(r=""+t.key),t)!_.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(a[i]=t[i]);var i=arguments.length-2;if(1===i)a.children=n;else if(1<i){for(var o=Array(i),l=0;l<i;l++)o[l]=arguments[l+2];a.children=o}return S(e.type,r,a)},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:l,_context:e},e},t.createElement=function(e,t,n){var a,r={},i=null;if(null!=t)for(a in void 0!==t.key&&(i=""+t.key),t)_.call(t,a)&&"key"!==a&&"__self"!==a&&"__source"!==a&&(r[a]=t[a]);var o=arguments.length-2;if(1===o)r.children=n;else if(1<o){for(var l=Array(o),s=0;s<o;s++)l[s]=arguments[s+2];r.children=l}if(e&&e.defaultProps)for(a in o=e.defaultProps)void 0===r[a]&&(r[a]=o[a]);return S(e,i,r)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=z,t.lazy=function(e){return{$$typeof:m,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=N.T,n={};N.T=n;try{var a=e(),r=N.S;null!==r&&r(n,a),"object"===typeof a&&null!==a&&"function"===typeof a.then&&a.then(w,L)}catch(i){L(i)}finally{null!==t&&null!==n.types&&(t.types=n.types),N.T=t}},t.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},t.use=function(e){return N.H.use(e)},t.useActionState=function(e,t,n){return N.H.useActionState(e,t,n)},t.useCallback=function(e,t){return N.H.useCallback(e,t)},t.useContext=function(e){return N.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return N.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return N.H.useEffect(e,t)},t.useEffectEvent=function(e){return N.H.useEffectEvent(e)},t.useId=function(){return N.H.useId()},t.useImperativeHandle=function(e,t,n){return N.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return N.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return N.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return N.H.useMemo(e,t)},t.useOptimistic=function(e,t){return N.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return N.H.useReducer(e,t,n)},t.useRef=function(e){return N.H.useRef(e)},t.useState=function(e){return N.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return N.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return N.H.useTransition()},t.version="19.2.0"},391:(e,t,n)=>{!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4)},579:(e,t,n)=>{e.exports=n(799)},672:(e,t,n)=>{var a=n(43);function r(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(){}var o={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},l=Symbol.for("react.portal");var s=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){return"font"===e?"":"string"===typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(r(299));return function(e,t,n){var a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:l,key:null==a?null:""+a,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.flushSync=function(e){var t=s.T,n=o.p;try{if(s.T=null,o.p=2,e)return e()}finally{s.T=t,o.p=n,o.d.f()}},t.preconnect=function(e,t){"string"===typeof e&&(t?t="string"===typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,o.d.C(e,t))},t.prefetchDNS=function(e){"string"===typeof e&&o.d.D(e)},t.preinit=function(e,t){if("string"===typeof e&&t&&"string"===typeof t.as){var n=t.as,a=c(n,t.crossOrigin),r="string"===typeof t.integrity?t.integrity:void 0,i="string"===typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?o.d.S(e,"string"===typeof t.precedence?t.precedence:void 0,{crossOrigin:a,integrity:r,fetchPriority:i}):"script"===n&&o.d.X(e,{crossOrigin:a,integrity:r,fetchPriority:i,nonce:"string"===typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"===typeof e)if("object"===typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=c(t.as,t.crossOrigin);o.d.M(e,{crossOrigin:n,integrity:"string"===typeof t.integrity?t.integrity:void 0,nonce:"string"===typeof t.nonce?t.nonce:void 0})}}else null==t&&o.d.M(e)},t.preload=function(e,t){if("string"===typeof e&&"object"===typeof t&&null!==t&&"string"===typeof t.as){var n=t.as,a=c(n,t.crossOrigin);o.d.L(e,n,{crossOrigin:a,integrity:"string"===typeof t.integrity?t.integrity:void 0,nonce:"string"===typeof t.nonce?t.nonce:void 0,type:"string"===typeof t.type?t.type:void 0,fetchPriority:"string"===typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"str
2ing"===typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"===typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"===typeof t.imageSizes?t.imageSizes:void 0,media:"string"===typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"===typeof e)if(t){var n=c(t.as,t.crossOrigin);o.d.m(e,{as:"string"===typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"===typeof t.integrity?t.integrity:void 0})}else o.d.m(e)},t.requestFormReset=function(e){o.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},t.useFormStatus=function(){return s.H.useHostTransitionStatus()},t.version="19.2.0"},799:(e,t)=>{var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(e,t,a){var r=null;if(void 0!==a&&(r=""+a),void 0!==t.key&&(r=""+t.key),"key"in t)for(var i in a={},t)"key"!==i&&(a[i]=t[i]);else a=t;return t=a.ref,{$$typeof:n,type:e,key:r,ref:void 0!==t?t:null,props:a}}t.Fragment=a,t.jsx=r,t.jsxs=r},853:(e,t,n)=>{e.exports=n(896)},896:(e,t)=>{function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var a=n-1>>>1,r=e[a];if(!(0<i(r,t)))break e;e[a]=t,e[n]=r,n=a}}function a(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var a=0,r=e.length,o=r>>>1;a<o;){var l=2*(a+1)-1,s=e[l],c=l+1,u=e[c];if(0>i(s,n))c<r&&0>i(u,s)?(e[a]=u,e[c]=n,a=c):(e[a]=s,e[l]=n,a=l);else{if(!(c<r&&0>i(u,n)))break e;e[a]=u,e[c]=n,a=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"===typeof performance&&"function"===typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var c=[],u=[],d=1,m=null,f=3,p=!1,h=!1,g=!1,v=!1,b="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,x="undefined"!==typeof setImmediate?setImmediate:null;function j(e){for(var t=a(u);null!==t;){if(null===t.callback)r(u);else{if(!(t.startTime<=e))break;r(u),t.sortIndex=t.expirationTime,n(c,t)}t=a(u)}}function k(e){if(g=!1,j(e),!h)if(null!==a(c))h=!0,N||(N=!0,w());else{var t=a(u);null!==t&&O(k,t.startTime-e)}}var w,N=!1,_=-1,S=5,z=-1;function C(){return!!v||!(t.unstable_now()-z<S)}function E(){if(v=!1,N){var e=t.unstable_now();z=e;var n=!0;try{e:{h=!1,g&&(g=!1,y(_),_=-1),p=!0;var i=f;try{t:{for(j(e),m=a(c);null!==m&&!(m.expirationTime>e&&C());){var o=m.callback;if("function"===typeof o){m.callback=null,f=m.priorityLevel;var l=o(m.expirationTime<=e);if(e=t.unstable_now(),"function"===typeof l){m.callback=l,j(e),n=!0;break t}m===a(c)&&r(c),j(e)}else r(c);m=a(c)}if(null!==m)n=!0;else{var s=a(u);null!==s&&O(k,s.startTime-e),n=!1}}break e}finally{m=null,f=i,p=!1}n=void 0}}finally{n?w():N=!1}}}if("function"===typeof x)w=function(){x(E)};else if("undefined"!==typeof MessageChannel){var P=new MessageChannel,T=P.port2;P.port1.onmessage=E,w=function(){T.postMessage(null)}}else w=function(){b(E,0)};function O(e,n){_=b(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):S=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_requestPaint=function(){v=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,r,i){var o=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?o+i:o:i=o,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:r,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>o?(e.sortIndex=i,n(u,e),null===a(c)&&e===a(u)&&(g?(y(_),_=-1):g=!0,O(k,i-o))):(e.sortIndex=l,n(c,e),h||p||(h=!0,N||(N=!0,w()))),e},t.unstable_shouldYield=C,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},950:(e,t,n)=>{!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(672)}},t={};function n(a){var r=t[a];
2if(void 0!==r)return r.exports;var i=t[a]={exports:{}};return e[a](i,i.exports,n),i.exports}n.m=e,(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(a,r){if(1&r&&(a=this(a)),8&r)return a;if("object"===typeof a&&a){if(4&r&&a.__esModule)return a;if(16&r&&"function"===typeof a.then)return a}var i=Object.create(null);n.r(i);var o={};e=e||[null,t({}),t([]),t(t)];for(var l=2&r&&a;("object"==typeof l||"function"==typeof l)&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach(e=>o[e]=()=>a[e]);return o.default=()=>a,n.d(i,o),i}})(),n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce((t,a)=>(n.f[a](e,t),t),[])),n.u=e=>"static/js/"+e+".564cd1fa.chunk.js",n.miniCssF=e=>{},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="stibbert-frontend:";n.l=(a,r,i,o)=>{if(e[a])e[a].push(r);else{var l,s;if(void 0!==i)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==a||d.getAttribute("data-webpack")==t+i){l=d;break}}l||(s=!0,(l=document.createElement("script")).charset="utf-8",n.nc&&l.setAttribute("nonce",n.nc),l.setAttribute("data-webpack",t+i),l.src=a),e[a]=[r];var m=(t,n)=>{l.onerror=l.onload=null,clearTimeout(f);var r=e[a];if(delete e[a],l.parentNode&&l.parentNode.removeChild(l),r&&r.forEach(e=>e(n)),t)return t(n)},f=setTimeout(m.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=m.bind(null,l.onerror),l.onload=m.bind(null,l.onload),s&&document.head.appendChild(l)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/shop/",(()=>{var e={792:0};n.f.j=(t,a)=>{var r=n.o(e,t)?e[t]:void 0;if(0!==r)if(r)a.push(r[2]);else{var i=new Promise((n,a)=>r=e[t]=[n,a]);a.push(r[2]=i);var o=n.p+n.u(t),l=new Error;n.l(o,a=>{if(n.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=a&&("load"===a.type?"missing":a.type),o=a&&a.target&&a.target.src;l.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",l.name="ChunkLoadError",l.type=i,l.request=o,r[1](l)}},"chunk-"+t,t)}};var t=(t,a)=>{var r,i,[o,l,s]=a,c=0;if(o.some(t=>0!==e[t])){for(r in l)n.o(l,r)&&(n.m[r]=l[r]);if(s)s(n)}for(t&&t(a);c<o.length;c++)i=o[c],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0},a=self.webpackChunkstibbert_frontend=self.webpackChunkstibbert_frontend||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))})();var a,r=n(43),i=n.t(r,2),o=n(391),l=n(950),s=n.t(l,2);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},c.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(a||(a={}));const u="popstate";function d(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function m(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function f(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,n,a){return void 0===n&&(n=null),c({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?g(t):t,{state:n,key:t&&t.key||a||Math.random().toString(36).substr(2,8)})}function h(e){let{pathname:t="/",search:n="",hash:a=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),a&&"#"!==a&&(t+="#"===a.charAt(0)?a:"#"+a),t}function g(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substr(a),e=e.substr(0,a)),e&&(t.pathname=e)}return t}function v(e,t,n,r){void 0===r&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,l=i.history,s=a.Pop,m=null,g=v();function v(){return(l.state||{idx:null}).idx}function b(){s=a.Pop;let e=v(),t=null==e?null:e-g;g=e,m&&m({action:s,location:x.location,delta:t})}function y(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,n="string"===typeof e?e:h(e);return n=n.replace(/ $/,"%20"),d(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==g&&(g=0,l.replaceState(c({},l.state,{idx:g}),""));let x={get action(){return s},get location(){return e(i,l)},listen(e){if(m)throw new Error("A history only accepts one active listener");return i.addEventListener(u,b),m=e,()=>{i.removeEventListener(u,b),m=null}},createHref:e=>
vendor: 2,994 bytes, line 2
2t(i,e),createURL:y,encodeLocation(e){let t=y(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s=a.Push;let r=p(x.location,e,t);n&&n(r,e),g=v()+1;let c=f(r,g),u=x.createHref(r);try{l.pushState(c,"",u)}catch(d){if(d instanceof DOMException&&"DataCloneError"===d.name)throw d;i.location.assign(u)}o&&m&&m({action:s,location:x.location,delta:1})},replace:function(e,t){s=a.Replace;let r=p(x.location,e,t);n&&n(r,e),g=v();let i=f(r,g),c=x.createHref(r);l.replaceState(i,"",c),o&&m&&m({action:s,location:x.location,delta:0})},go:e=>l.go(e)};return x}var b;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(b||(b={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function y(e,t,n){return void 0===n&&(n="/"),x(e,t,n,!1)}function x(e,t,n,a){let r=F(("string"===typeof t?g(t):t).pathname||"/",n);if(null==r)return null;let i=j(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(i);let o=null;for(let l=0;null==o&&l<i.length;++l){let e=L(r);o=T(i[l],e,a)}return o}function j(e,t,n,a){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===a&&(a="");let r=(e,r,i)=>{let o={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:r,route:e};o.relativePath.startsWith("/")&&(d(o.relativePath.startsWith(a),'Absolute route path "'+o.relativePath+'" nested under path "'+a+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),o.relativePath=o.relativePath.slice(a.length));let l=M([a,o.relativePath]),s=n.concat(o);e.children&&e.children.length>0&&(d(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),j(e.children,t,s,l)),(null!=e.path||e.index)&&t.push({path:l,score:P(l,e.index),routesMeta:s})};return e.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let a of k(e.path))r(e,t,a);else r(e,t)}),t}function k(e){let t=e.split("/");if(0===t.length)return[];let[n,...a]=t,r=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===a.length)return r?[i,""]:[i];let o=k(a.join("/")),l=[];return l.push(...o.map(e=>""===e?i:[i,e].join("/"))),r&&l.push(...o),l.map(t=>e.startsWith("/")&&""===t?"/":t)}const w=/^:[\w-]+$/,N=3,_=2,S=1,z=10,C=-2,E=e=>"*"===e;function P(e,t){let n=e.split("/"),a=n.length;return n.some(E)&&(a+=C),t&&(a+=_),n.filter(e=>!E(e)).reduce((e,t)=>e+(w.test(t)?N:""===t?S:z),a)}function T(e,t,n){void 0===n&&(n=!1);let{routesMeta:a}=e,r={},i="/",o=[];for(let l=0;l<a.length;++l){let e=a[l],s=l===a.length-1,c="/"===i?t:t.slice(i.length)||"/",u=O({path:e.relativePath,caseSensitive:e.caseSensitive,end:s},c),d=e.route;if(!u&&s&&n&&!a[a.length-1].route.index&&(u=O({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;
2Object.assign(r,u.params),o.push({params:r,pathname:M([i,u.pathname]),pathnameBase:U(M([i,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(i=M([i,u.pathnameBase]))}return o}function O(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,a]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);m("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let a=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(a.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"));e.endsWith("*")?(a.push({paramName:"*"}),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":""!==e&&"/"!==e&&(r+="(?:(?=\\/|$))");let i=new RegExp(r,t?void 0:"i");return[i,a]}(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let i=r[0],o=i.replace(/(.)\/+$/,"$1"),l=r.slice(1);return{params:a.reduce((e,t,n)=>{let{paramName:a,isOptional:r}=t;if("*"===a){let e=l[n]||"";o=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const s=l[n];return e[a]=r&&!s?void 0:(s||"").replace(/%2F/g,"/"),e},{}),pathname:i,pathnameBase:o,pattern:e}}function L(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return m(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function F(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,a=e.charAt(n);return a&&"/"!==a?null:e.slice(n)||"/"}function A(e,t,n,a){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(a)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function D(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function I(e,t){let n=D(e);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function R(e,t,n,a){let r;void 0===a&&(a=!1),"string"===typeof e?r=g(e):(r=c({},e),d(!r.pathname||!r.pathname.includes("?"),A("?","pathname","search",r)),d(!r.pathname||!r.pathname.includes("#"),A("#","pathname","hash",r)),d(!r.search||!r.search.includes("#"),A("#","search","hash",r)));let i,o=""===e||""===r.pathname,l=o?"/":r.pathname;if(null==l)i=n;else{let e=t.length-1;if(!a&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;r.pathname=t.join("/")}i=e>=0?t[e]:"/"}let s=function(e,t){void 0===t&&(t="/");let{pathname:n,search:a="",hash:r=""}="string"===typeof e?g(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:q(a),hash:B(r)}}(r,i),u=l&&"/"!==l&&l.endsWith("/"),m=(o||"."===l)&&n.endsWith("/");return s.pathname.endsWith("/")||!u&&!m||(s.pathname+="/"),s}const M=e=>e.join("/").replace(/\/\/+/g,"/"),U=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),q=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",B=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function H(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const V=["post","put","patch","delete"],$=(new Set(V),["get",...V]);new Set($),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},W.apply(this,arguments)}const Q=r.createContext(null);const G=r.createContext(null);const K=r.createContext(null);const J=r.createContext(null);const Y=r.createContext({outlet:null,matches:[],isDataRoute:!1});const X=r.createContext(null);function Z(){return null!=r.useContext(J)}function ee(){return Z()||d(!1),r.useContext(J).location}function te(e){r.useContext(K).static||r.useLayoutEffect(e)}function ne(){let{isDataRoute:e}=r.useContext(Y);return e?function(){let{router:e}=me(ue.UseNavigateStable),t=pe(de.UseNavigateStable),n=r.useRef(!1);return te(()=>{n.current=!0}),r.useCallback(function(a,r){void 0===r&&(r={}),n.current&&("number"===typeof a?e.navigate(a):e.navigate(a,W({fromRouteId:t},r)))},[e,t])}():function(){Z()||d(!1);let e=r.useContext(Q),{basename:t,future:n,navigator:a}=r.useContext(K),{matches:i}=r.useContext(Y),{pathname:o}=ee(),l=JSON.stringify(I(i,n.v7_relativeSplatPath)),s=r.useRef(!1);return te(()=>{s.current=!0}),r.useCallback(function(n,r){if(void 0===r&&(r={}),!s.current)return;if("number"===typeof n)return void a.go(n);let i=R(n,JSON.parse(l),o,"path"===r.relative);null==e&&"/"!==t&&(i.pathname="/"===i.pathname?t:M([t,i.pathname])),(r.replace?a.replace:a.push)(i,r.state,r)},[t,a,l,o,e])}()}function ae(e,t){let{relative:n}=void 0===t?{}:t,{future:a}=r.useContext(K),{matches:i}=r.useContext(Y),{pathname:o}=ee(),l=JSON.stringify(I(i,a.v7_relativeSplatPath));return r.useMemo(()=>R(e,JSON.parse(l),o,"path"===n),[e,l,o,n])}function re(e,t,n,i){Z()||d(!1);let{navigator:o}=r.useContext(K),{matches:l}=r.useContext(Y),s=l[l.length-1],c=s?s.params:{},u=(s&&s.pathname,s?s.pathnameBase:"/");s&&s.route;let m,f=ee();if(t){var p;let e="string"===typeof t?g(t):t;"/"===u||(null==(p=e.pathname)?void 0:p.startsWith(u))||d(!1),m=e}else m=f;let h=m.pathname||"/",v=h;if("/"!==u){let e=u.replace(/^\//,"").split("/");v="/"+h.replace(/^\//,"").split("/").slice(e.length).join("/")}let b=y(e,{pathname:v});let x=ce(b&&b.map(e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:M([u,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:M([u,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),l,n,i);return t&&x?r.createElement(J.Provider,{value:{location:W({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:a.Pop}},x):x}function ie(){let e=function(){var e;let t=r.useContext(X),n=fe(de.UseRouteError),a=pe(de.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[a]}(),t=H(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:a};return r.createElement(r.Fragment,null,r.createElement("h2",null,"Unexpected Application
2Error!"),r.createElement("h3",{style:{fontStyle:"italic"}},t),n?r.createElement("pre",{style:i},n):null,null)}const oe=r.createElement(ie,null);class le extends r.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?r.createElement(Y.Provider,{value:this.props.routeContext},r.createElement(X.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function se(e){let{routeContext:t,match:n,children:a}=e,i=r.useContext(Q);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),r.createElement(Y.Provider,{value:t},a)}function ce(e,t,n,a){var i;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===a&&(a=null),null==e){var o;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(o=a)&&o.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let l=e,s=null==(i=n)?void 0:i.errors;if(null!=s){let e=l.findIndex(e=>e.route.id&&void 0!==(null==s?void 0:s[e.route.id]));e>=0||d(!1),l=l.slice(0,Math.min(l.length,e+1))}let c=!1,u=-1;if(n&&a&&a.v7_partialHydration)for(let r=0;r<l.length;r++){let e=l[r];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(u=r),e.route.id){let{loaderData:t,errors:a}=n,r=e.route.loader&&void 0===t[e.route.id]&&(!a||void 0===a[e.route.id]);if(e.route.lazy||r){c=!0,l=u>=0?l.slice(0,u+1):[l[0]];break}}}return l.reduceRight((e,a,i)=>{let o,d=!1,m=null,f=null;var p;n&&(o=s&&a.route.id?s[a.route.id]:void 0,m=a.route.errorElement||oe,c&&(u<0&&0===i?(p="route-fallback",!1||he[p]||(he[p]=!0),d=!0,f=null):u===i&&(d=!0,f=a.route.hydrateFallbackElement||null)));let h=t.concat(l.slice(0,i+1)),g=()=>{let t;return t=o?m:d?f:a.route.Component?r.createElement(a.route.Component,null):a.route.element?a.route.element:e,r.createElement(se,{match:a,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(a.route.ErrorBoundary||a.route.errorElement||0===i)?r.createElement(le,{location:n.location,revalidation:n.revalidation,component:m,error:o,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):g()},null)}var ue=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ue||{}),de=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(de||{});function me(e){let t=r.useContext(Q);return t||d(!1),t}function fe(e){let t=r.useContext(G);return t||d(!1),t}function pe(e){let t=function(){let e=r.useContext(Y);return e||d(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||d(!1),n.route.id}const he={};function ge(e,t){null==e||e.v7_startTransition,void 0===(null==e?void 0:e.v7_relativeSplatPath)&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}i.startTransition;function ve(e){d(!1)}function be(e){let{basename:t="/",children:n=null,location:i,navigationType:o=a.Pop,navigator:l,static:s=!1,future:c}=e;Z()&&d(!1);let u=t.replace(/^\/*/,"/"),m=r.useMemo(()=>({basename:u,navigator:l,static:s,future:W({v7_relativeSplatPath:!1},c)}),[u,c,l,s]);"string"===typeof i&&(i=g(i));let{pathname:f="/",search:p="",hash:h="",state:v=null,key:b="default"}=i,y=r.useMemo(()=>{let e=F(f,u);return null==e?null:{location:{pathname:e,search:p,hash:h,state:v,key:b},navigationType:o}},[u,f,p,h,v,b,o]);return null==y?null:r.createElement(K.Provider,{value:m},r.createElement(J.Provider,{children:n,value:y}))}function ye(e){let{children:t,location:n}=e;return re(xe(t),n)}new Promise(()=>{});r.Component;function xe(e,t){void 0===t&&(t=[]);let n=[];
2return r.Children.forEach(e,(e,a)=>{if(!r.isValidElement(e))return;let i=[...t,a];if(e.type===r.Fragment)return void n.push.apply(n,xe(e.props.children,i));e.type!==ve&&d(!1),e.props.index&&e.props.children&&d(!1);let o={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=xe(e.props.children,i)),n.push(o)}),n}function je(){return je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},je.apply(this,arguments)}function ke(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const we=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(Gt){}new Map;const Ne=i.startTransition;s.flushSync,i.useId;function _e(e){let{basename:t,children:n,future:a,window:i}=e,o=r.useRef();var l;null==o.current&&(o.current=(void 0===(l={window:i,v5Compat:!0})&&(l={}),v(function(e,t){let{pathname:n,search:a,hash:r}=e.location;return p("",{pathname:n,search:a,hash:r},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"===typeof t?t:h(t)},null,l)));let s=o.current,[c,u]=r.useState({action:s.action,location:s.location}),{v7_startTransition:d}=a||{},m=r.useCallback(e=>{d&&Ne?Ne(()=>u(e)):u(e)},[u,d]);return r.useLayoutEffect(()=>s.listen(m),[s,m]),r.useEffect(()=>ge(a),[a]),r.createElement(be,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:s,future:a})}const Se="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,ze=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ce=r.forwardRef(function(e,t){let n,{onClick:a,relative:i,reloadDocument:o,replace:l,state:s,target:c,to:u,preventScrollReset:m,viewTransition:f}=e,p=ke(e,we),{basename:g}=r.useContext(K),v=!1;if("string"===typeof u&&ze.test(u)&&(n=u,Se))try{let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),n=F(t.pathname,g);t.origin===e.origin&&null!=n?u=n+t.search+t.hash:v=!0}catch(Gt){}let b=function(e,t){let{relative:n}=void 0===t?{}:t;Z()||d(!1);let{basename:a,navigator:i}=r.useContext(K),{hash:o,pathname:l,search:s}=ae(e,{relative:n}),c=l;return"/"!==a&&(c="/"===l?a:M([a,l])),i.createHref({pathname:c,search:s,hash:o})}(u,{relative:i}),y=function(e,t){let{target:n,replace:a,state:i,preventScrollReset:o,relative:l,viewTransition:s}=void 0===t?{}:t,c=ne(),u=ee(),d=ae(e,{relative:l});return r.useCallback(t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==a?a:h(u)===h(d);c(e,{replace:n,state:i,preventScrollReset:o,relative:l,viewTransition:s})}},[u,c,d,a,i,n,e,o,l,s])}(u,{replace:l,state:s,target:c,preventScrollReset:m,relative:i,viewTransition:f});return r.createElement("a",je({},p,{href:n||b,onClick:v||o?a:function(e){a&&a(e),e.defaultPrevented||y(e)},ref:t,target:c}))});var Ee,Pe;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ee||(Ee={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Pe||(Pe={}));function Te(e){return Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Te(e)}function Oe(e){var t=function(e,t){if("object"!=Te(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=Te(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Te(t)?t:t+""}function Le(e,t,n){return(t=Oe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?Fe(Object(n),!0).forEach(function(t){Le(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var De=n(579);const Ie=(0,r.createContext)(),Re=function(){var e,t,n,a,r,i,o,l,s;let c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const u=null!==(e=null!==(t=null!==(n=null!==(a=c.id)&&void 0!==a?a:c.id_prodotto)&&void 0!==n?n:c.idProdotto)&&void 0!==t?t:c.productId)&&void 0!==e?e:null,d=null!==(r=null!==(i=null!==(o=c.nome)&&void 0!==o?o:c.titolo)&&void 0!==i?i:c.name)&&void 0!==r?r:"",m=null!==(l=null!==(s=c.prezzo)&&void 0!==s?s:c.price)&&void 0!==l?l:0,f="number"===typeof c.quantita?c.quantita:"number"===typeof c.stock?c.stock:null;return Ae(Ae({},c),{},{id:u,nome:d,prezzo:m,stock:f})},Me=()=>{const e=(0,r.useContext)(Ie);if(!e)throw new Error("useCart deve essere usato dentro CartProvider");return e},Ue=e=>{let{children:t}=e;const[n,a]=(0,r.useState)(()=>{const e=localStorage.getItem("stibbertCart");if(!e)return[];try{const t=JSON.parse(e);return Array.isArray(t)?t.map(Re):[]}catch(t){return[]}});(0,r.useEffect)(()=>{localStorage.setItem("stibbertCart",JSON.stringify(n))},[n]);const i=e=>{a(t=>t.filter(t=>t.id!==e))},o=()=>n.reduce((e,t)=>e+parseFloat(t.prezzo)*t.quantita,0),l={cart:n,addToCart:function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const r=Re(e),i=null!==(t=r.stock)&&void 0!==t?t:1/0;0!==i?r.id?a(e=>{const t=e.find(e=>e.id===r.id),a=i===1/0?n:Math.max(0,Math.min(n,i));if(t)return e.map(e=>{var t,n;if(e.id!==r.id)return e;const i=null!==(t=null!==(n=r.stock)&&void 0!==n?n:e.stock)&&void 0!==t?t:1/0,o=e.quantita+a,l=i===1/0?o:Math.min(o,i);return Ae(Ae({},e),{},{stock:i===1/0?null:i,quantita:l})});{const t=i===1/0?a:Math.min(a,i);return[...e,Ae(Ae({},r),{},{quantita:t})]}}):console.warn("Impossibile aggiungere al carrello: ID prodotto mancante",e):console.warn("Prodotto esaurito, impossibile aggiungere al carrello.")},removeFromCart:i,updateQuantity:(e,t)=>{t<=0?i(e):a(n=>n.map(n=>n.id===e?Ae(Ae({},n),{},{quantita:null===n.stock||"undefined"===typeof n.stock?t:Math.min(t,n.stock)}):n))},clearCart:()=>{a([])},getTotal:o,getSubtotal:o,getItemCount:()=>n.reduce((e,t)=>e+t.quantita,0)};return(0,De.jsx)(Ie.Provider,{value:l,children:t})},qe=(0,r.createContext)(),Be=()=>{const e=(0,r.useContext)(qe);if(!e)throw new Error("useLanguage must be used within a LanguageProvider");return e},He=e=>{let{children:t}=e;const[n,a]=(0,r.useState)(()=>"undefined"!==typeof window&&localStorage.getItem("stibbert-language")||"it");(0,r.useEffect)(()=>{"undefined"!==typeof window&&localStorage.setItem("stibbert-language",n)},[n]);const i={language:n,changeLanguage:e=>{a(e)}};return(0,De.jsx)(qe.Provider,{value:i,children:t})},Ve={it:{"header.home":"Home","header.museum_site":"Sito Museo","header.cart":"Carrello","home.title":"Benvenuti al Museo Stibbert","home.subtitle":"Scopri la nostra collezione di prodotti unici","home.hero.title":"Museo Stibbert","home.hero.subtitle":"Arte, Storia e Tradizione","home.products.title":"I Nostri Prodotti","home.products.subtitle":"Scopri la nostra collezione esclusiva","home.filters.search":"Cerca prodotti...","home.filters.category":"Tutte le categorie","home.filters.price_min":"Prezzo minimo","home.filters.price_max":"Prezzo massimo","home.filters.reset":"Reset Filtri","home.filters.filters":"Filtri","home.filters.price":"Prezzo","home.filters.category_label":"Categoria","home.filters.availability":"Disponibilit\xe0","home.filters.availability_all":"Tutti i prodotti","home.filters.availability_in_stock":"Solo disponibili","home.filters.availability_out_of_stock":"Solo esauriti","home.filters.from":"Da","home.filters.to":"A","home.sort.order_by":"Ordina per","home.sort.most_recent":"Pi\xf9 recenti","home.sort.price_low":"Prezzo crescente","home.sort.price_high":"Prezzo decrescente","home.sort.name_az":"Nome A-Z","home.sort.name_za":"Nome Z-A","home.empty":"Nessun prodotto trovato con i filtri selezionati.","home.error":"Errore nel caricamento dei prodotti.","home.retry":"Riprova","home.products_found":"prodotti trovati","product.add_to_cart":"Aggiungi al Carrello","product.view_details":"Visualizza Dettagli","product.price":"Prezzo","product.category":"Categoria","product.stock_available":"{quantity}
2 pezzi disponibili","product.out_of_stock":"Al momento non disponibile","product.out_of_stock_short":"Non disponibile","product.title":"Dettagli Prodotto","product.back":"Torna ai Prodotti","product.quantity":"Quantit\xe0","product.description":"Descrizione","product.images":"Immagini","product.loading":"Caricamento prodotto...","product.error":"Errore nel caricamento del prodotto.","product.not_found":"Prodotto non trovato.","product.buy_now":"Acquista Ora","product.similar_products":"Prodotti Simili","cart.title":"Il Tuo Carrello","cart.empty":"Il tuo carrello \xe8 vuoto","cart.empty_subtitle":"Aggiungi alcuni prodotti per iniziare lo shopping!","cart.shop_now":"Inizia a Comprare","cart.item":"Prodotto","cart.quantity":"Quantit\xe0","cart.price":"Prezzo","cart.total":"Totale","cart.subtotal":"Subtotale","cart.shipping":"Spedizione","cart.shipping_free":"Gratuita","cart.shipping_loading":"Calcolo in corso...","cart.shipping_error":"Errore nel recupero della spedizione","cart.shipping_warning":"Impossibile calcolare la spedizione, verr\xe0 applicato temporaneamente un costo pari a 0\u20ac.","cart.free_shipping_unlocked":"Complimenti! La spedizione \xe8 gratuita.","cart.free_shipping_missing":"Aggiungi ancora {amount}\u20ac per ottenere la spedizione gratuita.","cart.shipping_destination":"Destinazione stimata","cart.shipping_destination_hint":"Scegli un'area per stimare la spedizione; al checkout useremo l'indirizzo reale.","cart.checkout":"Procedi al Checkout","cart.clear_cart":"Svuota Carrello","cart.remove_item":"Rimuovi","cart.item_stock_left":"Ancora {quantity} disponibili","cart.item_out_of_stock":"Al momento finiti","cart.order_summary":"Riepilogo Ordine","cart.subtotal":"Subtotale","cart.continue_shopping":"Continua lo Shopping","checkout.title":"Checkout","checkout.back_to_cart":"Torna al Carrello","checkout.shipping_details":"Dati di Spedizione","checkout.order_summary":"Riepilogo Ordine","checkout.complete_payment":"Completa il Pagamento","checkout.total":"Totale","checkout.form.name":"Nome","checkout.form.surname":"Cognome","checkout.form.email":"Email","checkout.form.phone":"Telefono","checkout.form.street":"Via","checkout.form.number":"Civico","checkout.form.postal_code":"CAP","checkout.form.city":"Citt\xe0","checkout.form.province":"Provincia","checkout.form.state":"Stato","checkout.form.required":"Compila tutti i campi obbligatori per procedere al pagamento","checkout.payment_methods":"Metodi di pagamento","checkout.payment_methods_desc":"Nexi, Carte di Credito/Debito","checkout.security":"Sicurezza","checkout.security_desc":"Il pagamento \xe8 gestito da Nexi su pagina sicura","checkout.subtotal":"Subtotale","checkout.shipping":"Spedizione","checkout.shipping_free":"Gratuita","checkout.shipping_loading":"Calcolo spedizione in corso...","checkout.shipping_error":"Impossibile calcolare la spedizione. Riprova tra qualche istante.","checkout.shipping_warning":"Impossibile calcolare la spedizione, verr\xe0 considerata gratuita fino alla risoluzione del problema.","checkout.free_shipping_unlocked":"Spedizione gratuita attivata!","checkout.free_shipping_missing":"Ti mancano {amount}\u20ac per la spedizione gratuita.","checkout.detected_zone":"Destinazione rilevata: {zone}","checkout.detected_zone_hint":'Compila il campo "Stato" per aggiornare automaticamente costi e soglia.',"checkout.terms_intro":"Ho letto, compreso e accettato le","checkout.terms_conditions":"Condizioni Generali di Acquisto","checkout.terms_connector":"e le","checkout.terms_privacy":"Norme di Protezione dei Dati Personali in conformit\xe0 al GDPR 2016/679","checkout.terms_warning":"In caso di mancato consenso, l'acquisto non pu\xf2 aver luogo.","checkout.terms_error":"Per procedere \xe8 necessario accettare le condizioni e le norme sulla protezione dei dati.","checkout.pay_with_nexi":"Paga con Nexi","checkout.redirect_to_nexi":"Verrai reindirizzato alla cassa sicura Nexi per completare il pagamento.","checkout.processing_payment":"Reindirizzamento in corso...","checkout.success.title":"Ordine Completato!","checkout.success.message":"Il tuo ordine \xe8 stato elaborato con successo.","checkout.success.redirect":"Verrai reindirizzato alla home page tra qualche secondo...","nexi.result.verifying":"Verifica del pagamento in corso","nexi.result.wait_message":"Stiamo attendendo la conferma di Nexi. Questo processo potrebbe richiedere qualche secondo.","nexi.result.success_title":"Pagamento completato!","nexi.result.success_message":"Abbiamo ricevuto il tuo ordine. Ti invieremo una conferma via email a breve.","nexi.result.failed_title":"Pagamento non completato","nexi.result.error_generic":"Si \xe8 verificato un problema durante la verifica del pagamento.","nexi.result.invalid_order":"Ordine non valido o mancante.","nexi.result.not_confirmed":"Pagamento non ancora confermato da Nexi. Se hai gi\xe0 pagato, contattaci.","nexi.result.back_home":"Torna alla Home","nexi.result.back_checkout":"Torna al Checkout","nexi.cancel.title":"Pagamento annullato","nexi.cancel.message":"Hai annullato
2il pagamento su Nexi. Puoi riprovare in qualsiasi momento.","nexi.cancel.back_checkout":"Riprova il pagamento","nexi.cancel.back_home":"Torna alla Home","footer.contacts":"Contatti","footer.address":"Via Federigo Stibbert, 26","footer.hours":"Orari Museo","footer.hours_desc":"Lun - Mer: 10:00 - 14:00","footer.useful_links":"Link Utili","footer.museum_site":"Sito Museo","common.loading":"Caricamento...","common.error":"Errore","common.success":"Successo","common.cancel":"Annulla","common.confirm":"Conferma","common.save":"Salva","common.edit":"Modifica","common.delete":"Elimina","common.close":"Chiudi","common.back":"Indietro","common.next":"Avanti","common.previous":"Precedente","common.required":"Obbligatorio","common.optional":"Opzionale","terms.title":"Condizioni Generali di Acquisto","terms.last_update":"Ultimo aggiornamento:","terms.section_1_title":"1. Informazioni Generali","terms.section_1_content":"Questo documento definisce i termini e le condizioni che regolano l'utilizzo e la vendita di prodotti come libri e gadget sul sito e-commerce di Fondazione Museo Stibbert ets. di seguito Museo Stibbert. Accedendo al sito e completando un ordine, l'utente accetta integralmente i presenti Termini e Condizioni.","terms.section_2_title":"2. Oggetto del Servizio","terms.section_2_content":"Il sito consente agli utenti di acquistare gadget ufficiali del Museo Stibbert, quali articoli da regalo, prodotti editoriali, abbigliamento e altri articoli di merchandising.","terms.section_3_title":"3. Prodotti e Disponibilit\xe0","terms.section_3_content":"Le descrizioni e le immagini dei prodotti sono indicative e potrebbero non rappresentare perfettamente il prodotto finale. La disponibilit\xe0 dei prodotti \xe8 indicata sul sito, ma non pu\xf2 essere garantita fino alla conferma dell'ordine.","terms.section_4_title":"4. Prezzi e Pagamenti","terms.section_4_content":"Tutti i prezzi sono espressi in euro (\u20ac) e sono comprensivi di IVA, salvo diversa indicazione. Il pagamento pu\xf2 essere effettuato tramite carte di credito e debito del circuito Visa e Mastercard in modo sicuro tramite il circuito di pagamento Nexi. L'ordine si considera accettato solo dopo la conferma del pagamento.","terms.section_5_title":"5. Spedizioni e Consegna","terms.section_5_content":"Le spese di spedizione sono indicate nel corso della procedura d'acquisto. I tempi di consegna, specificati durante l'acquisto, sono indicativi e possono variare in base al corriere e alla destinazione. Le consegne vengono effettuate all'indirizzo indicato dall'utente e il Museo Stibbert non risponde di eventuali errori di consegna derivanti da inesattezze ed errori da parte dell'utente. Il Museo Stibbert non \xe8 responsabile di ritardi indipendenti dal proprio controllo. Al momento della consegna gli utenti devono verificare l'integrit\xe0 del pacco ed il suo contenuto. In caso di anomalie dovranno firmare la bolla del corriere con riserva specifica e fare immediatamente una segnalazione all'indirizzo [email protected].","terms.section_6_title":"6. Diritto di Recesso","terms.section_6_content":"Ai sensi della normativa vigente, l'utente pu\xf2 esercitare il diritto di recesso entro 14 giorni dalla consegna, salvo eccezioni previste dalla legge, dandone comunicazione scritta a Museo Stibbert all' indirizzo [email protected] ed, utilizzando un vettore a propria scelta, restituire entro 14 giorni il prodotto opportunamente imballato a: Bookshop Museo Stibbert, via di Montughi, 4 50139 Firenze. Le spese di restituzione sono a carico dell'utente. Il rimborso sar\xe0 effettuato dopo aver verificato l'integrit\xe0 dei prodotti restituiti.","terms.section_7_title":"7. Garanzia dei Prodotti","terms.section_7_content":"I prodotti sono coperti da garanzia legale secondo la normativa italiana. Eventuali difetti devono essere segnalati entro i termini previsti.","terms.section_9_title":"9. Limitazioni di responsabilit\xe0","terms.section_9_content":"Il Museo Stibbert non \xe8 responsabile per danni derivanti da uso improprio dei prodotti acquistati n\xe9 per inadempienze, disservizi o ritardi dovuti a cause di forza maggiore. In ogni caso la responsabilit\xe0 di Museo Stibbert non potr\xe0 eccedere le somme pagate dall'utente al Museo Stibbert per l'acquisto.","terms.section_11_title":"11. Propriet\xe0 Intellettuale","terms.section_11_content":"Tutti i contenuti presenti sul sito (testi, immagini, marchi, loghi) sono di propriet\xe0 del Museo Stibbert o concessi in licenza. Ne \xe8 vietato l'uso non autorizzato.","terms.section_12_title":"12. Privacy e Protezione dei Dati","terms.section_12_content":"Il trattamento dei dati personali \xe8 regolato dall'Informativa Privacy pubblicata sul sito. L'utente \xe8 invitato a consultarla per maggiori dettagli.","terms.section_13_title":"13. Legge Applicabile e Foro Competente","terms.section_13_content":"I presenti Termini e Condizioni sono regolati dalla legge italiana. Per eventuali controversie sar\xe0 competente il foro del consumatore, salvo quanto previsto dalla normativa vigente per casi particolari.","terms.section_14_title":"14. Modifiche ai Termini e Condizioni","terms.section_14_content":"Il Museo Stibbert si riserva il diritto di modificare in qualsiasi momento i presenti Termini e Condizioni. Le modifiche entreranno in vigore dalla data di pubblicazione sul sito."},en:{"header.home":"Home","header.museum_site":"Museum Site","header.cart":"Cart","home.title":"Welcome to Stibbert Museum","home.subtitle":"Discover our unique collection of products","home.hero.title":"Stibbert Museum","home.hero.subtitle":"Art, History and Tradition","home.products.title":"Our Products","home.products.subtitle":"Discover our exclusive collection","home.filters.search":"Search products...","home.filters.category":"All categories","home.filters.price_min":"Minimum price","home.filters.price_max":"Maximum price","home.filters.reset"
2:"Reset Filters","home.filters.filters":"Filters","home.filters.price":"Price","home.filters.category_label":"Category","home.filters.availability":"Availability","home.filters.availability_all":"All products","home.filters.availability_in_stock":"In stock only","home.filters.availability_out_of_stock":"Sold out only","home.filters.from":"From","home.filters.to":"To","home.sort.order_by":"Sort by","home.sort.most_recent":"Most recent","home.sort.price_low":"Price low to high","home.sort.price_high":"Price high to low","home.sort.name_az":"Name A-Z","home.sort.name_za":"Name Z-A","home.empty":"No products found with the selected filters.","home.error":"Error loading products.","home.retry":"Retry","home.products_found":"products found","product.add_to_cart":"Add to Cart","product.view_details":"View Details","product.price":"Price","product.category":"Category","product.stock_available":"{quantity} pcs available","product.out_of_stock":"Currently unavailable","product.out_of_stock_short":"Sold out","product.title":"Product Details","product.back":"Back to Products","product.quantity":"Quantity","product.description":"Description","product.images":"Images","product.loading":"Loading product...","product.error":"Error loading product.","product.not_found":"Product not found.","product.buy_now":"Buy Now","product.similar_products":"Similar Products","cart.title":"Your Cart","cart.empty":"Your cart is empty","cart.empty_subtitle":"Add some products to start shopping!","cart.shop_now":"Start Shopping","cart.item":"Item","cart.quantity":"Quantity","cart.price":"Price","cart.total":"Total","cart.subtotal":"Subtotal","cart.shipping":"Shipping","cart.shipping_free":"Free","cart.shipping_loading":"Calculating...","cart.shipping_error":"Unable to load shipping cost","cart.shipping_warning":"Shipping cost could not be calculated, we are temporarily applying 0\u20ac.","cart.free_shipping_unlocked":"Great! You unlocked free shipping.","cart.free_shipping_missing":"Add {amount}\u20ac more to unlock free shipping.","cart.shipping_destination":"Estimated destination","cart.shipping_destination_hint":"Choose an area to preview shipping; at checkout we will use the address you enter.","cart.checkout":"Proceed to Checkout","cart.clear_cart":"Clear Cart","cart.remove_item":"Remove","cart.item_stock_left":"{quantity} left in stock","cart.item_out_of_stock":"Currently sold out","cart.order_summary":"Order Summary","cart.continue_shopping":"Continue Shopping","checkout.title":"Checkout","checkout.back_to_cart":"Back to Cart","checkout.shipping_details":"Shipping Details","checkout.order_summary":"Order Summary","checkout.complete_payment":"Complete Payment","checkout.total":"Total","checkout.form.name":"Name","checkout.form.surname":"Surname","checkout.form.email":"Email","checkout.form.phone":"Phone","checkout.form.street":"Street","checkout.form.number":"Number","checkout.form.postal_code":"Postal Code","checkout.form.city":"City","checkout.form.province":"Province","checkout.form.state":"State","checkout.form.required":"Fill in all required fields to proceed with payment","checkout.payment_methods":"Payment methods","checkout.payment_methods_desc":"Nexi, Credit/Debit Cards","checkout.security":"Security","checkout.security_desc":"Payment is handled by Nexi on a secure page","checkout.subtotal":"Subtotal","checkout.shipping":"Shipping","checkout.shipping_free":"Free","checkout.shipping_loading":"Calculating shipping...","checkout.shipping_error":"Unable to calculate shipping right now. Please try again.","checkout.shipping_warning":"Shipping could not be calculated, we are temporarily applying 0\u20ac.","checkout.free_shipping_unlocked":"Free shipping unlocked!","checkout.free_shipping_missing":"Add {amount}\u20ac more to get free shipping.","checkout.detected_zone":"Detected destination: {zone}","checkout.detected_zone_hint":"Shipping updates automatically based on the State field.","checkout.terms_intro":"I have read, understood and accepted the","checkout.terms_conditions":"General Terms of Purchase","checkout.terms_connector":"and the","checkout.terms_privacy":"Personal Data Protection Policy pursuant to GDPR 2016/679","checkout.terms_warning":"If you do not provide consent, the purchase cannot be completed.","checkout.terms_error":"Please accept the terms and privacy policy to proceed.","terms.title":"General Terms of Purchase","terms.last_update":"Last update:","terms.section_1_title":"1. General Information","terms.section_1_content":"This document defines the terms and conditions governing the use and sale of products such as books and merchandise on the Fondazione Museo Stibbert ets. e-commerce site, hereinafter the Stibbert Museum. By accessing the site and completing an order, the user fully accepts these Terms and Conditions.","terms.section_2_title":"2. Scope of Service","terms.section_2_content":"The site allows users to purchase official Stibbert Museum merchandise, such as gift items, publishing products, clothing, and other merchandise.","terms.section_3_title":"3. Products and Availability","terms.section_3_content":"Product descriptions and images are indicative and may not accurately represent the final product. Product availability is indicated on the site but cannot be guaranteed until the order is confirmed.","terms.section_4_title":"4. Price
2s and Payments","terms.section_4_content":"All prices are expressed in euros (\u20ac) and include VAT, unless otherwise indicated. Payment can be made securely via Visa and Mastercard credit and debit cards through the Nexi payment system. The order is considered accepted only after payment has been confirmed.","terms.section_5_title":"5. Shipping and Delivery","terms.section_5_content":"Shipping costs are indicated during the purchase process. Delivery times, specified during the purchase process, are approximate and may vary depending on the courier and destination. Deliveries are made to the address indicated by the user, and the Stibbert Museum is not responsible for any delivery errors resulting from inaccuracies or errors on the part of the user. The Stibbert Museum is not responsible for delays beyond its control. Upon delivery, users must verify the integrity of the package and its contents. In the event of any anomalies, please sign the courier's delivery note with a specific reservation and immediately report the defect to [email protected].","terms.section_6_title":"6. Right of Withdrawal","terms.section_6_content":"Pursuant to current legislation, the user may exercise the right of withdrawal within 14 days of delivery, subject to exceptions provided by law, by giving written notice to Museo Stibbert at [email protected] and, using a carrier of their choice, returning the appropriately packaged product within 14 days to: Bookshop Museo Stibbert, Via di Montughi, 4 50139 Florence. Return shipping costs are the responsibility of the user. Refunds will be issued after the integrity of the returned products has been verified.","terms.section_7_title":"7. Product Warranty","terms.section_7_content":"Products are covered by a legal warranty in accordance with Italian law. Any defects must be reported within the established timeframe.","terms.section_9_title":"9. Limitations of Liability","terms.section_9_content":"Museo Stibbert is not responsible for damage resulting from improper use of purchased products or for failure to fulfill the order, poor service, or delays due to force majeure. In any case, the liability of the Stibbert Museum cannot exceed the amount paid by the user to the Stibbert Museum for the purchase.","terms.section_11_title":"11. Intellectual Property","terms.section_11_content":"All content on the site (text, images, trademarks, logos) is the property of the Stibbert Museum or licensed. Unauthorized use is prohibited.","terms.section_12_title":"12. Privacy and Data Protection","terms.section_12_content":"The processing of personal data is governed by the Privacy Policy published on the site. Users are invited to consult it for further details.","terms.section_13_title":"13. Applicable Law and Jurisdiction","terms.section_13_content":"These Terms and Conditions are governed by Italian law. Any disputes shall be subject to the jurisdiction of the consumer's court, except as provided by applicable law for specific cases.","terms.section_14_title":"14. Changes to the Terms and Conditions","terms.section_14_content":"The Stibbert Museum reserves the right to modify these Terms and Conditions at any time. Changes will take effect from the date of publication on the site.","checkout.pay_with_nexi":"Pay with Nexi","checkout.redirect_to_nexi":"You will be redirected to Nexi secure checkout to complete the payment.","checkout.processing_payment":"Redirecting...","checkout.success.title":"Order Completed!","checkout.success.message":"Your order has been processed successfully.","checkout.success.redirect":"You will be redirected to the home page in a few seconds...","nexi.result.verifying":"Verifying your payment","nexi.result.wait_message":"We are waiting for Nexi confirmation. This may take a few seconds.","nexi.result.success_title":"Payment completed!","nexi.result.success_message":"We have received your order. A confirmation email will arrive shortly.","nexi.result.failed_title":"Payment not completed","nexi.result.error_generic":"A problem occurred while verifying the payment.","nexi.result.invalid_order":"Invalid or missing order.","nexi.result.not_confirmed":"Payment not yet confirmed by Nexi. If you already paid please contact us.","nexi.result.back_home":"Back to Home","nexi.result.back_checkout":"Back to Checkout","nexi.cancel.title":"Payment cancelled","nexi.cancel.message":"You cancelled the payment on Nexi. You can try again anytime.","nexi.cancel.back_checkout":"Try payment again","nexi.cancel.back_home":"Back to Home","footer.contacts":"Contacts","footer.address":"Via Federigo Stibbert, 26","footer.hours":"Museum Hours","footer.hours_desc":"Mon - Wed: 10:00 - 14:00","footer.useful_links":"Useful Links","footer.museum_site":"Museum Site","common.loading":"Loading...","common.error":"Error","common.success":"Success","common.cancel":"Cancel","common.confirm":"Confirm","common.save":"Save","common.edit":"Edit","common.delete":"Delete","common.close":"Close","common.back":"Back","common.next":"Next","common.previous":"Previous","common.required":"Required","common.optional":"Optional"}},$e=()=>{const{language:e}=Be();return{t:function(t){var n,a;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const i=Ve[e]||{},o="object"===typeof r&&null!==r,l=o?r.fallback:r,s=o?r.values:void 0;let c=null!==(n=null!==(a=i[t])&&void 0!==a?a:l)&&void 0!==n?n:t;
2return s&&"string"===typeof c&&Object.entries(s).forEach(e=>{let[t,n]=e;const a=new RegExp("{".concat(t,"}"),"g");c=c.replace(a,n)}),c},language:e}},We=()=>{const{getItemCount:e}=Me(),{t:t}=$e();return(0,De.jsx)("header",{className:"header",children:(0,De.jsxs)("div",{className:"container header-content",children:[(0,De.jsx)(Ce,{to:"/",className:"logo",children:(0,De.jsx)("img",{src:"".concat("/shop","/logomuseo.png"),alt:"Museo Stibbert",className:"logo-image"})}),(0,De.jsxs)("nav",{className:"nav",children:[(0,De.jsx)(Ce,{to:"/",className:"nav-link",children:t("header.home")}),(0,De.jsx)("a",{href:"https://www.museostibbert.it",target:"_blank",rel:"noopener noreferrer",className:"nav-link",children:t("header.museum_site")}),(0,De.jsxs)(Ce,{to:"/carrello",className:"nav-link cart-link",children:[(0,De.jsx)("i",{className:"fas fa-shopping-cart cart-icon"}),e()>0&&(0,De.jsx)("span",{className:"cart-badge",children:e()})]})]})]})})},Qe=()=>{const e="/shop",{t:t}=$e();return(0,De.jsxs)("footer",{className:"footer",children:[(0,De.jsxs)("div",{className:"container footer-content",children:[(0,De.jsx)("div",{className:"footer-section",children:(0,De.jsx)("div",{className:"footer-logo",children:(0,De.jsx)("img",{src:"".concat(e,"/logomuseo.png"),alt:"Museo Stibbert",className:"footer-logo-image"})})}),(0,De.jsxs)("div",{className:"footer-section",children:[(0,De.jsx)("h4",{children:t("footer.contacts")}),(0,De.jsx)("p",{children:t("footer.address")}),(0,De.jsx)("p",{children:"50134 Firenze"}),(0,De.jsx)("p",{children:"Tel: 055 475520"}),(0,De.jsx)("p",{children:"Email: [email protected]"})]}),(0,De.jsxs)("div",{className:"footer-section",children:[(0,De.jsx)("h4",{children:t("footer.hours")}),(0,De.jsx)("p",{children:t("footer.hours_desc")}),(0,De.jsx)("p",{children:"Ven - Dom: 10:00 - 18:00"}),(0,De.jsx)("p",{children:"Gioved\xec: Chiuso"})]}),(0,De.jsxs)("div",{className:"footer-section",children:[(0,De.jsx)("h4",{children:t("footer.useful_links")}),(0,De.jsx)("p",{children:(0,De.jsx)("a",{href:"https://www.museostibbert.it",target:"_blank",rel:"noopener noreferrer",children:t("footer.museum_site")})}),(0,De.jsx)("p",{children:(0,De.jsx)("a",{href:"https://www.museostibbert.it",target:"_blank",rel:"noopener noreferrer",children:"Informazioni Visite"})}),(0,De.jsx)("p",{children:(0,De.jsx)("a",{href:"".concat(e,"/amministrazione"),target:"_blank",rel:"noopener noreferrer",children:"Amministrazione"})})]})]}),(0,De.jsx)("div",{className:"footer-bottom",children:(0,De.jsx)("div",{className:"container",children:(0,De.jsxs)("p",{children:["\xa9 ",(new Date).getFullYear()," Museo Stibbert - Tutti i diritti riservati"]})})})]})},Ge=()=>{const{pathname:e}=ee();return(0,r.useEffect)(()=>{window.scrollTo(0,0)},[e]),null},Ke=e=>{var t;let{prodotto:n}=e;const a=ne(),{addToCart:r}=Me(),{t:i}=$e(),o="number"===typeof n.quantita?n.quantita:null!==(t=n.stock)&&void 0!==t?t:0,l=o<=0,s=()=>{a("/prodotto/".concat(n.id))};return(0,De.jsxs)("div",{className:"product-card ".concat(l?"sold-out":""),children:[(0,De.jsxs)("div",{className:"product-image",onClick:s,children:[(0,De.jsx)("img",{src:n.foto||"https://via.placeholder.com/400x400/2C5F2D/FFFFFF?text=Prodotto",alt:n.nome}),l&&(0,De.jsx)("span",{className:"stock-badge",children:i("product.out_of_stock")})]}),(0,De.jsxs)("div",{className:"product-info",children:[(0,De.jsx)("h3",{className:"product-name",onClick:s,children:n.nome}),(0,De.jsxs)("p",{className:"product-price",children:["\u20ac ",parseFloat(n.prezzo).toFixed(2)]})]}),(0,De.jsx)("div",{className:"product-stock-info",children:l?(0,De.jsx)("span",{className:"stock-message out",children:i("product.out_of_stock")}):(0,De.jsx)("span",{className:"stock-message in",children:i("product.stock_available",{values:{quantity:o}})})}),(0,De.jsx)("div",{className:"product-controls",children:(0,De.jsx)("button",{className:"btn-add-cart",onClick:e=>{e.preventDefault(),l||r(n,1)},disabled:l,children:i(l?"product.out_of_stock_short":"product.add_to_cart")})})]})},Je=()=>{const[e,t]=(0,r.useState)(!1),{language:n,changeLanguage:a}=Be(),i=[{code:"it",name:"Italiano",flag:"\ud83c\uddee\ud83c\uddf9"},{code:"en",name:"English",flag:"\ud83c\uddec\ud83c\udde7"}],o=i.find(e=>e.code===n);return(0,De.jsxs)("div",{className:"language-selector",children:[(0,De.jsxs)("button",{className:"language-button",onClick:()=>t(!e),"aria-label":"Seleziona lingua",children:[(0,De.jsx)("span",{className:"flag",children:null===o||void 0===o?void 0:o.flag}),(0,De.jsx)("span",{className:"lang-code",children:null===o||void 0===o?void 0:o.code.toUpperCase()}),(0,De.jsx)("span",{className:"arrow ".concat(e?"open":""),children:"\u25bc"})]}),e&&(0,De.jsx)("div",{className:"language-dropdown",children:i.map(e=>(0,De.jsxs)("button",{className:"language-option ".concat(n===e.code?"active":""),onClick:()=>{return n=e.code,a(n),void t(!1);var n},children:[(0,De.jsx)("span",{className:"flag",children:e.flag}),(0,De.jsx)("span",{className:"name",children:e.name})]},e.code))})]})};async function Ye(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n="".concat("/shop/backend/api").concat(e),a=Ae(Ae({},t),{},{headers:Ae({"Content-Type":"application/json"},t.headers)});try{const e=await fetch(n,a);console.log("Response status:",e.status),console.log("Response ok:",e.ok);const t=await e.text();if(console.log("Response text:",t),!e.ok)throw new Error("Server error ".concat(e.status,": ").concat(t));const r=JSON.parse(t);if(!r.success)throw new Error(r.error||"Errore nella richiesta");return r.data}catch(r){throw console.error("Errore API:",r),r}}const Xe={getAll:async()=>
2await Ye("/prodotti.php"),getById:async e=>await Ye("/prodotti.php?id=".concat(e)),getByCategoria:async e=>await Ye("/prodotti.php?categoria=".concat(e)),create:async e=>await Ye("/prodotti.php",{method:"POST",body:JSON.stringify(e)}),update:async(e,t)=>await Ye("/prodotti.php",{method:"PUT",body:JSON.stringify(Ae({id:e},t))}),delete:async e=>await Ye("/prodotti.php?id=".concat(e),{method:"DELETE"})},Ze={getAll:async()=>await Ye("/ordini.php"),getById:async e=>await Ye("/ordini.php?id=".concat(e)),create:async e=>await Ye("/ordini.php",{method:"POST",body:JSON.stringify(e)}),updatePagato:async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return await Ye("/ordini.php",{method:"PUT",body:JSON.stringify({id_ordine:e,pagato:t})})}},et={createOrder:async e=>await Ye("/nexi.php?action=create",{method:"POST",body:JSON.stringify(e)}),checkStatus:async e=>await Ye("/nexi.php?action=check",{method:"POST",body:JSON.stringify({order_id:e})})},tt={getShipping:async()=>await Ye("/settings.php"),updateShipping:async e=>await Ye("/settings.php",{method:"PUT",credentials:"include",body:JSON.stringify(e)})},nt=n.p+"static/media/header1.c76f6d378f6523651ba7.jpg",at=n.p+"static/media/header2.933141373d706816f0bf.jpg",rt=n.p+"static/media/header3.f2533aee20eb27dc2f06.jpg",it=n.p+"static/media/header4.381205444047a9f79d47.jpg",ot=()=>{const{t:e}=$e(),[t,n]=(0,r.useState)([]),[a,i]=(0,r.useState)([]),[o,l]=(0,r.useState)([]),[s,c]=(0,r.useState)(!0),[u,d]=(0,r.useState)(null),[m,f]=(0,r.useState)({categorie:[],prezzoMin:"",prezzoMax:"",disponibilita:"tutti"}),[p,h]=(0,r.useState)("data-desc"),[g,v]=(0,r.useState)(!1),[b,y]=(0,r.useState)(0),[x,j]=(0,r.useState)(!1),k=[nt,at,rt,it];(0,r.useEffect)(()=>{w()},[]),(0,r.useEffect)(()=>{const e=setInterval(()=>{j(!0),setTimeout(()=>{y(e=>e===k.length-1?0:e+1),j(!1)},300)},3e3);return()=>clearInterval(e)},[k.length]);const w=async()=>{try{c(!0);const e="/shop/backend/api",t=await fetch("".concat(e,"/categorie.php")),a=await t.json(),r=a.success&&a.data||[];l(r);const o=await fetch("".concat(e,"/prodotti.php?attivo=1")),s=await o.json();let u=s.success&&s.data||[];u=await Promise.all(u.map(async t=>{var n;let a=null;if(t.foto)try{const n=await fetch("".concat(e,"/get_images.php?folder=").concat(t.foto)),r=await n.json();r.success&&r.data.main_image&&(a=r.data.main_image.full_url)}catch(Gt){console.warn("Errore caricamento immagine home:",Gt)}return{id:t.id_prodotto,nome:t.titolo,prezzo:t.prezzo,foto:a,quantita:Number(null!==(n=t.quantita)&&void 0!==n?n:0),categorie:t.categoria_nome||void 0,id_categoria:t.id_categoria,data_creazione:t.data_creazione||(new Date).toISOString()}})),n(u),i(u),d(null)}catch(e){d("Errore nel caricamento dei prodotti. Riprova pi\xf9 tardi."),console.error(e)}finally{c(!1)}};(0,r.useEffect)(()=>{t.length>0&&(()=>{let e=[...t];m.categorie.length>0&&(e=e.filter(e=>m.categorie.includes(parseInt(e.id_categoria)))),""!==m.prezzoMin&&(e=e.filter(e=>parseFloat(e.prezzo)>=parseFloat(m.prezzoMin))),""!==m.prezzoMax&&(e=e.filter(e=>parseFloat(e.prezzo)<=parseFloat(m.prezzoMax))),"disponibili"===m.disponibilita?e=e.filter(e=>{var t;return(null!==(t=e.quantita)&&void 0!==t?t:0)>0}):"esauriti"===m.disponibilita&&(e=e.filter(e=>{var t;return(null!==(t=e.quantita)&&void 0!==t?t:0)<=0})),e.sort((e,t)=>{switch(p){case"nome-asc":return e.nome.localeCompare(t.nome);case"nome-desc":return t.nome.localeCompare(e.nome);case"prezzo-asc":return parseFloat(e.prezzo)-parseFloat(t.prezzo);case"prezzo-desc":return parseFloat(t.prezzo)-parseFloat(e.prezzo);default:return 0}}),i(e)})()},[t,m,p]);const N=()=>{f({categorie:[],prezzoMin:"",prezzoMax:"",disponibilita:"tutti"}),h("data-desc")},_=()=>{v(!1)};return(0,De.jsxs)("div",{className:"home",children:[(0,De.jsxs)("section",{className:"hero",children:[(0,De.jsx)("div",{className:"hero-background ".concat(x?"fade-out"
2:"fade-in"),style:{backgroundImage:"url(".concat(k[b],")")}}),(0,De.jsx)("div",{className:"hero-overlay"}),(0,De.jsxs)("div",{className:"hero-content",children:[(0,De.jsx)("h1",{children:e("home.title")}),(0,De.jsx)("p",{className:"hero-subtitle",children:e("home.subtitle")})]})]}),(0,De.jsxs)("div",{className:"container",children:[(0,De.jsx)("section",{className:"controls-section",children:(0,De.jsxs)("div",{className:"controls-header",children:[(0,De.jsxs)("button",{className:"filters-toggle-btn",onClick:()=>{v(!0)},children:[(0,De.jsx)("i",{className:"fas fa-filter"}),e("home.filters.filters")]}),(0,De.jsxs)("div",{className:"sorting-controls",children:[(0,De.jsxs)("select",{value:p,onChange:e=>h(e.target.value),className:"sort-select",children:[(0,De.jsx)("option",{value:"data-desc",children:e("home.sort.most_recent")}),(0,De.jsx)("option",{value:"data-asc",children:"Meno recenti"}),(0,De.jsx)("option",{value:"nome-asc",children:e("home.sort.name_az")}),(0,De.jsx)("option",{value:"nome-desc",children:e("home.sort.name_za")}),(0,De.jsx)("option",{value:"prezzo-asc",children:e("home.sort.price_low")}),(0,De.jsx)("option",{value:"prezzo-desc",children:e("home.sort.price_high")})]}),(0,De.jsx)("div",{className:"results-info",children:(0,De.jsxs)("span",{children:[a.length," ",e("home.products_found")]})})]})]})}),(0,De.jsx)("div",{className:"sidebar-overlay ".concat(g?"active":""),onClick:_}),(0,De.jsxs)("div",{className:"filters-sidebar ".concat(g?"open":""),children:[(0,De.jsxs)("div",{className:"sidebar-header",children:[(0,De.jsx)("h3",{children:e("home.filters.filters")}),(0,De.jsx)("button",{className:"close-sidebar-btn",onClick:_,children:(0,De.jsx)("i",{className:"fas fa-times"})})]}),(0,De.jsxs)("div",{className:"sidebar-content",children:[o.length>0&&(0,De.jsxs)("div",{className:"filter-group",children:[(0,De.jsx)("h4",{children:e("home.filters.category_label")}),(0,De.jsx)("div",{className:"filter-checkboxes",children:o.map(e=>{const t=e.id||e.id_categoria||e.ID;return(0,De.jsxs)("label",{className:"filter-checkbox",children:[(0,De.jsx)("input",{type:"checkbox",checked:m.categorie.includes(parseInt(t)),onChange:()=>(e=>{const t=parseInt(e);f(e=>Ae(Ae({},e),{},{categorie:e.categorie.includes(t)?e.categorie.filter(e=>e!==t):[...e.categorie,t]}))})(t)}),(0,De.jsx)("span",{className:"checkmark"}),e.nome," (",e.numero_prodotti,")"]},t)})})]}),(0,De.jsxs)("div",{className:"filter-group",children:[(0,De.jsx)("h4",{children:e("home.filters.price")}),(0,De.jsxs)("div",{className:"price-range",children:[(0,De.jsx)("input",{type:"number",placeholder:"".concat(e("home.filters.from")," \u20ac"),value:m.prezzoMin,onChange:e=>f(t=>Ae(Ae({},t),{},{prezzoMin:e.target.value})),min:"0",step:"0.01"}),(0,De.jsx)("span",{children:"\u2014"}),(0,De.jsx)("input",{type:"number",placeholder:"".concat(e("home.filters.to")," \u20ac"),value:m.prezzoMax,onChange:e=>f(t=>Ae(Ae({},t),{},{prezzoMax:e.target.value})),min:"0",step:"0.01"})]})]}),(0,De.jsxs)("div",{className:"filter-group",children:[(0,De.jsx)("h4",{children:e("home.filters.availability")}),(0,De.jsxs)("select",{value:m.disponibilita,onChange:e=>f(t=>Ae(Ae({},t),{},{disponibilita:e.target.value})),className:"availability-select",children:[(0,De.jsx)("option",{value:"tutti",children:e("home.filters.availability_all")}),(0,De.jsx)("option",{value:"disponibili",children:e("home.filters.availability_in_stock")}),(0,De.jsx)("option",{value:"esauriti",children:e("home.filters.availability_out_of_stock")})]})]}),(0,De.jsx)("button",{className:"reset-filters-btn",onClick:N,children:e("home.filters.reset")})]})]}),(0,De.jsx)("section",{className:"products-section",children:s?(0,De.jsxs)("div",{className:"loading",children:[(0,De.jsx)("div",{className:"spinner"}),(0,De.jsx)("p",{children:e("common.loading")})]}):u?(0,De.jsxs)("div",{className:"error",children:[(0,De.jsx)("p",{children:u}),(0,De.jsx)("button",{className:"btn btn-primary",onClick:w,children:e("home.retry")})]}):0===a.length?(0,De.jsxs)("div",{className:"empty",children:[(0,De.jsx)("p",{children:e("home.empty")}),(0,De.jsx)("button",{className:"btn btn-primary",onClick:N,children:e("home.filters.reset")})]}):(0,De.jsx)("div",{className:"products-grid",children:a.map(e=>(0,De.jsx)(Ke,{prodotto:e},e.id))})})]}),(0,De.jsx)(Je,{})]})},lt=()=>{const{id:e}=function(){let{matches:e}=r.useContext(Y),t=e[e.length-1];return t?t.params:{}}(),t=ne(),{addToCart:n}=Me(),{t:a}=$e(),[i,o]=(0,r.useState)(null),[l,s]=(0,r.useState)(1),[c,u]=(0,r.useState)(!0),[d,m]=(0,r.useState)(null),[f,p]=(0,r.useState)(!1),[h,g]=(0,r.useState)(0),[v,b]=(0,r.useState)([]),[y,x]=(0,r.useState)(!1);(0,r.useEffect)(()=>{j()},[e]);const j=async()=>{try{u(!0);const r=await Xe.getById(e);if(r&&r.foto)try{const e="/shop/backend/api",i=await fetch("".concat(e,"/get_images.php?folder=").concat(r.foto)),o=await i.json();var t,n,a;if(o.success)r.mainImageUrl=(null===(t=o.data.main_image)||void 0===t?void 0:t.full_url)||null,r.images=(null===(n=o.data.all_images)||void 0===n?void 0:n.map(e=>e.full_url))||[],r.additionalImages=(null===(a=o.data.additional_images)||void 0===a?void 0:a.map(e=>e.full_url))||[]}catch(Gt){console.warn("Errore recupero immagini prodotto:",Gt)}if(console.log("\ud83d\udce6 Prodotto caricato:",{id:null===r||void 0===r?void 0:r.id_prodotto,titolo:null===r||void 0===r?void 0:r.titolo,quantita:null===r||void 0===r?void 0:r.quantita,quantitaType:typeof(null===r||void 0===r?void 0:r.quantita)}),o(r),r&&r.id_categoria){const e=await Xe.getByCategoria(r.id_categoria),t=await Promise.all(e.map(async e=>
2{if(e.foto)try{const t="/shop/backend/api",n=await fetch("".concat(t,"/get_images.php?folder=").concat(e.foto)),a=await n.json();a.success&&a.data.main_image&&(e.mainImageUrl=a.data.main_image.full_url)}catch(Gt){console.warn("Errore recupero immagine prodotto simile:",Gt)}return e})),n=t.filter(e=>e.id_prodotto!==r.id_prodotto).slice(0,4);b(n)}m(null)}catch(r){m("Prodotto non trovato."),console.error(r)}finally{u(!1)}},k=i?"number"===typeof i.quantita?i.quantita:"string"===typeof i.quantita&&parseInt(i.quantita,10)||0:0,w=k<=0;(0,r.useEffect)(()=>{i&&s(k>0?1:0)},[i,k]);const N=()=>{if(!i)return[];const e=[];return i.mainImageUrl&&e.push(i.mainImageUrl),i.additionalImages&&i.additionalImages.length>0&&e.push(...i.additionalImages),0===e.length&&e.push("https://via.placeholder.com/600x600/2C5F2D/FFFFFF?text=Prodotto"),e},_=()=>{x(!1)},S=()=>{const e=N();g(t=>(t+1)%e.length)},z=()=>{const e=N();g(t=>(t-1+e.length)%e.length)};return(0,r.useEffect)(()=>{const e=e=>{y&&("Escape"===e.key?_():"ArrowLeft"===e.key?z():"ArrowRight"===e.key&&S())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[y]),c?(0,De.jsx)("div",{className:"container",children:(0,De.jsxs)("div",{className:"loading",children:[(0,De.jsx)("div",{className:"spinner"}),(0,De.jsx)("p",{children:"Caricamento prodotto..."})]})}):d||!i?(0,De.jsx)("div",{className:"container",children:(0,De.jsxs)("div",{className:"error",children:[(0,De.jsx)("h2",{children:d||"Prodotto non trovato"}),(0,De.jsx)("button",{className:"btn btn-primary",onClick:()=>t("/"),children:a("product.back")})]})}):(0,De.jsxs)("div",{className:"prodotto-page",children:[(0,De.jsxs)("div",{className:"container",children:[(0,De.jsxs)("button",{className:"btn-back",onClick:()=>t(-1),children:[(0,De.jsx)("i",{className:"fas fa-arrow-left"})," ",a("product.back")]}),(0,De.jsxs)("div",{className:"prodotto-detail",children:[(0,De.jsxs)("div",{className:"prodotto-image-section",children:[(0,De.jsxs)("div",{className:"prodotto-image-main",children:[(0,De.jsx)("button",{className:"image-nav-btn prev-btn",onClick:()=>{const e=N();g(t=>(t-1+e.length)%e.length)},children:(0,De.jsx)("i",{className:"fas fa-chevron-left"})}),(0,De.jsx)("img",{src:N()[h],alt:i.titolo,onClick:()=>{x(!0)},className:"main-product-image"}),(0,De.jsx)("button",{className:"image-nav-btn next-btn",onClick:()=>{const e=N();g(t=>(t+1)%e.length)},children:(0,De.jsx)("i",{className:"fas fa-chevron-right"})})]}),N().length>1&&(0,De.jsx)("div",{className:"prodotto-image-thumbnails",children:N().map((e,t)=>(0,De.jsx)("button",{className:"thumbnail-btn ".concat(t===h?"active":""),onClick:()=>(e=>{g(e)})(t),children:(0,De.jsx)("img",{src:e,alt:"".concat(i.titolo," ").concat(t+1)})},t))})]}),(0,De.jsxs)("div",{className:"prodotto-info-large",children:[(0,De.jsx)("h1",{children:i.titolo}),i.categoria_nome&&(0,De.jsx)("p",{className:"prodotto-category-badge",children:i.categoria_nome}),(0,De.jsxs)("div",{className:"prodotto-price-large",children:["\u20ac ",parseFloat(i.prezzo).toFixed(2)]}),i.descrizione&&(0,De.jsx)("div",{className:"prodotto-description",children:(0,De.jsx)("p",{children:i.descrizione})}),(0,De.jsxs)("div",{className:"prodotto-actions",children:[(0,De.jsxs)("div",{className:"quantity-selector",children:[(0,De.jsxs)("label",{children:[a("product.quantity"),":"]}),(0,De.jsxs)("div",{className:"quantity-controls",children:[(0,De.jsx)("button",{onClick:()=>s(Math.max(1,l-1)),className:"quantity-btn",disabled:w||l<=1,children:(0,De.jsx)("i",{className:"fas fa-minus"})}),(0,De.jsx)("input",{type:"number",value:l,onChange:e=>{const t=Math.max(1,parseInt(e.target.value,10)||1);s(Math.min(t,Math.max(1,k)))},min:"1",className:"quantity-input",disabled:w}),(0,De.jsx)("button",{onClick:()=>s(Math.min(l+1,k)),className:"quantity-btn",disabled:w||l>=k,children:(0,De.jsx)("i",{className:"fas fa-plus"})})]})]}),(0,De.jsx)("p",{className:"stock-status ".concat(w?"out":"in"),children:w?a("product.out_of_stock"):a("product.stock_available",{values:{quantity:k}})}),(0,De.jsxs)("div",{className:"action-buttons",children:[(0,De.jsxs)("button",{className:"btn btn-primary btn-large",onClick:()=>{w||(n(i,l),p(!0),setTimeout(()=>{p(!1)},2e3))},disabled:w,children:[(0,De.jsx)("i",{className:"fas fa-shopping-cart"})," ",f?"Aggiunto!":a("product.add_to_cart")]}),(0,De.jsx)("button",{className:"btn btn-secondary btn-large",onClick:()=>{w||(n(i,l),t("/carrello"))}
2,disabled:w,children:a("product.buy_now")})]})]})]})]}),v.length>0&&(0,De.jsxs)("div",{className:"prodotti-simili-section",children:[(0,De.jsx)("h2",{children:a("product.similar_products")}),(0,De.jsx)("div",{className:"prodotti-simili-grid",children:v.map(e=>{var t;const n={id:e.id_prodotto,nome:e.titolo,prezzo:e.prezzo,foto:e.mainImageUrl||null,quantita:null!==(t=e.quantita)&&void 0!==t?t:0,categorie:e.categoria_nome||void 0,id_categoria:e.id_categoria};return(0,De.jsx)(Ke,{prodotto:n},e.id_prodotto)})})]}),y&&(0,De.jsx)("div",{className:"image-modal-overlay",onClick:_,children:(0,De.jsxs)("div",{className:"image-modal-content",onClick:e=>e.stopPropagation(),children:[(0,De.jsx)("button",{className:"image-modal-close",onClick:_,children:(0,De.jsx)("i",{className:"fas fa-times"})}),(0,De.jsx)("button",{className:"image-modal-nav prev",onClick:z,children:(0,De.jsx)("i",{className:"fas fa-chevron-left"})}),(0,De.jsx)("div",{className:"image-modal-main",children:(0,De.jsx)("img",{src:N()[h],alt:"".concat(i.titolo," - Immagine ").concat(h+1),className:"modal-image"})}),(0,De.jsx)("button",{className:"image-modal-nav next",onClick:S,children:(0,De.jsx)("i",{className:"fas fa-chevron-right"})}),N().length>1&&(0,De.jsx)("div",{className:"image-modal-thumbnails",children:N().map((e,t)=>(0,De.jsx)("button",{className:"modal-thumbnail ".concat(t===h?"active":""),onClick:()=>(e=>{g(e)})(t),children:(0,De.jsx)("img",{src:e,alt:"".concat(i.titolo," ").concat(t+1)})},t))}),(0,De.jsx)("div",{className:"image-modal-info",children:(0,De.jsxs)("span",{className:"image-counter",children:[h+1," / ",N().length]})})]})})]}),(0,De.jsx)(Je,{})]})},st={italy:{label:"Italia",free_shipping_min:0,shipping_cost:0},eu:{label:"Unione Europea",free_shipping_min:0,shipping_cost:0},world:{label:"Resto del mondo",free_shipping_min:0,shipping_cost:0}},ct=["italia","italy","it","repubblica italiana"],ut=["austria","belgio","belgium","bulgaria","croazia","croatia","cipro","cyprus","repubblica ceca","czech republic","danimarca","denmark","estonia","finlandia","finland","francia","france","germania","germany","grecia","greece","irlanda","ireland","letonia","latvia","lituania","lithuania","lussemburgo","luxembourg","malta","paesi bassi","netherlands","olanda","polonia","poland","portogallo","portugal","romania","slovacchia","slovakia","slovenia","spagna","spain","svezia","sweden","ungheria","hungary","europa","europe","ue","eu"],dt=["italy","eu","world"],mt={italy:st.italy.label,eu:st.eu.label,world:st.world.label};function ft(){return JSON.parse(JSON.stringify(st))}function pt(e,t){const n=(null===e||void 0===e?void 0:e.zones)||e||{},a=function(e){if(!e)return"italy";const t=e.toLowerCase();return dt.includes(t)?t:"italy"}(t);return n[a]||st[a]}const ht={zones:ft(),fixed_shipping_enabled:!1,updated_at:null},gt=e=>{var t,n;return e&&"object"===typeof e?{zones:Ae(Ae({},ft()),e.zones||{}),fixed_shipping_enabled:null!==(t=e.fixed_shipping_enabled)&&void 0!==t&&t,updated_at:null!==(n=e.updated_at)&&void 0!==n?n:null}:ht};let vt=null,bt=null;const yt=e=>{vt=gt(e)},xt=()=>{const[e,t]=(0,r.useState)(vt||ht),[n,a]=(0,r.useState)(!vt),[i,o]=(0,r.useState)(null),l=(0,r.useCallback)(async()=>{a(!0),o(null);try{const e=await tt.getShipping(),n=gt(e);vt=n,t(n)}catch(e){o(e.message||"Impossibile caricare le impostazioni di spedizione")}finally{a(!1)}},[]);return(0,r.useEffect)(()=>{if(vt)return t(vt),void a(!1);bt||(bt=tt.getShipping().then(e=>{const t=gt(e);return vt=t,t}).finally(()=>{bt=null}));let e=!0;return bt.then(n=>{e&&(t(n),a(!1))}).catch(t=>{e&&(o(t.message||"Impossibile caricare le impostazioni di spedizione"),a(!1))}),()=>{e=!1}},[]),{settings:e||ht,loading:n,error:i,refresh:l}},jt=e=>{if("string"!==typeof e)return null;const t=e.trim();if(!t)return null;const n=t.startsWith("http://")||t.startsWith("https://")||t.startsWith("data:"),a=t.startsWith("/")||t.startsWith("./");return n||a?t:null},kt=e=>{var t;const n=[null===e||void 0===e?void 0:e.mainImageUrl,null===e||void 0===e||null===(t=e.images)||void 0===t?void 0:t.find(e=>jt(e)),null===e||void 0===e?void 0:e.foto];for(const a of n){const e=jt(a);if(e)return e}return"https://via.placeholder.com/150x150/2C5F2D/FFFFFF?text=Prodotto"},wt=()=>{var e;const t=ne(),{cart:n,removeFromCart:a,updateQuantity:i,getSubtotal:o,clearCart:l}=Me(),{t:s}=$e(),{settings:c,loading:u,error:d}=xt(),[m,f]=(0,r.useState)("italy"),[p,h]=(0,r.useState)({});(0,r.useEffect)(()=>{(async()=>
2{if(0===n.length)return;const e=n.map(async e=>{try{var t;const n=await Xe.getById(e.id);return{id:e.id,stock:"number"===typeof n.quantita?n.quantita:null!==(t=n.stock)&&void 0!==t?t:null}}catch(a){var n;return console.warn("Errore recupero stock per prodotto ".concat(e.id,":"),a),{id:e.id,stock:null!==(n=e.stock)&&void 0!==n?n:null}}}),t=await Promise.all(e),a={};t.forEach(e=>{let{id:t,stock:n}=e;a[t]=n}),h(a)})()},[n]);const g=o(),v=pt(c,m),b=parseFloat(v.free_shipping_min)||0,y=parseFloat(v.shipping_cost)||0,x=null!==(e=null===c||void 0===c?void 0:c.fixed_shipping_enabled)&&void 0!==e&&e,j=!x&&(0===b||g>=b),k=d||j?0:y,w=g+k,N=Math.max(0,b-g),_=u?s("cart.shipping_loading"):d?s("cart.shipping_error"):"".concat(j?s("cart.shipping_free"):"\u20ac ".concat(k.toFixed(2))," (").concat(v.label,")");return 0===n.length?(0,De.jsx)("div",{className:"carrello-page",children:(0,De.jsx)("div",{className:"container",children:(0,De.jsxs)("div",{className:"carrello-empty",children:[(0,De.jsx)("div",{className:"empty-icon",children:(0,De.jsx)("i",{className:"fas fa-shopping-cart"})}),(0,De.jsx)("h2",{children:s("cart.empty")}),(0,De.jsx)("p",{children:s("cart.empty_subtitle")}),(0,De.jsx)(Ce,{to:"/",className:"btn btn-primary",children:s("cart.shop_now")})]})})}):(0,De.jsxs)("div",{className:"carrello-page",children:[(0,De.jsxs)("div",{className:"container",children:[(0,De.jsxs)("h1",{className:"carrello-title",children:[(0,De.jsx)("i",{className:"fas fa-shopping-cart"})," ",s("cart.title")]}),(0,De.jsxs)("div",{className:"carrello-layout",children:[(0,De.jsx)("div",{className:"carrello-items",children:n.map((e,t)=>{var n;const r=void 0!==p[e.id]?p[e.id]:"number"===typeof e.stock?e.stock:null,o=null!==r&&e.quantita>=r,l=null!==r&&r<=0,c=null!==r?Math.max(0,r-e.quantita):null;return(0,De.jsxs)("div",{className:"carrello-item",children:[(0,De.jsx)("div",{className:"item-image",children:(0,De.jsx)("img",{src:kt(e),alt:e.nome})}),(0,De.jsxs)("div",{className:"item-info",children:[(0,De.jsx)(Ce,{to:"/prodotto/".concat(e.id),className:"item-name",children:e.nome}),(0,De.jsxs)("p",{className:"item-price",children:["\u20ac ",parseFloat(e.prezzo).toFixed(2)]}),null!==r&&(0,De.jsx)("p",{className:"item-stock ".concat(l?"out":""),children:l?s("cart.item_out_of_stock"):s("cart.item_stock_left",{values:{quantity:c}})})]}),(0,De.jsxs)("div",{className:"item-quantity",children:[(0,De.jsx)("button",{onClick:()=>i(e.id,e.quantita-1),className:"quantity-btn",children:(0,De.jsx)("i",{className:"fas fa-minus"})}),(0,De.jsx)("span",{className:"quantity-value",children:e.quantita}),(0,De.jsx)("button",{onClick:()=>i(e.id,e.quantita+1),className:"quantity-btn",disabled:o,children:(0,De.jsx)("i",{className:"fas fa-plus"})})]}),(0,De.jsx)("button",{onClick:()=>a(e.id),className:"btn-remove",title:"Rimuovi dal carrello",children:(0,De.jsx)("i",{className:"fas fa-trash"})})]},null!==(n=e.id)&&void 0!==n?n:"cart-item-".concat(t))})}),(0,De.jsxs)("div",{className:"carrello-summary",children:[(0,De.jsx)("h2",{children:s("cart.order_summary")}),(0,De.jsxs)("div",{className:"summary-row",children:[(0,De.jsxs)("span",{children:[s("cart.subtotal")," (",n.length," ",1===n.length?s("cart.item"):s("cart.items"),")"]}),(0,De.jsxs)("span",{children:["\u20ac ",g.toFixed(2)]})]}),(0,De.jsxs)("div",{className:"summary-row",children:[(0,De.jsx)("span",{children:s("cart.shipping")}),(0,De.jsx)("span",{className:j?"shipping-free":"",children:_})]}),(0,De.jsxs)("div",{className:"shipping-destination-selector",children:[(0,De.jsx)("label",{htmlFor:"shipping-zone-select",children:s("cart.shipping_destination")}),(0,De.jsx)("select",{id:"shipping-zone-select",value:m,onChange:e=>{f(e.target.value)},disabled:u||d,children:dt.map(e=>(0,De.jsx)("option",{value:e,children:mt[e]},e))}),(0,De.jsx)("p",{className:"shipping-destination-hint",children:s("cart.shipping_destination_hint")})]}),!u&&!d&&!x&&(b>0||y>0)&&(0,De.jsx)("div",{className:"shipping-banner ".concat(j?"success":"info"),children:j?s("cart.free_shipping_unlocked"):s("cart.free_shipping_missing",{values:{amount:N.toFixed(2)}})}),d&&(0,De.jsx)("div",{className:"shipping-banner warning",children:s("cart.shipping_warning")}),(0,De.jsx)("div",{className:"summary-divider"}),(0,De.jsxs)("div",{className:"summary-total",children:[(0,De.jsx)("span",{children:s("cart.total")}),(0,De.jsxs)("span",{children:["\u20ac ",w.toFixed(2)]})]}),(0,De.jsx)("button",{className:"btn btn-primary btn-checkout",onClick:()=>t("/checkout"),children:s("cart.checkout")}),(0,De.jsx)("button",{className:"btn btn-outline btn-continue",onClick:()=>t("/"),children:s("cart.continue_shopping")}),(0,De.jsx)("button",{className:"btn-clear-cart",onClick:l,children:s("cart.clear_cart")})]})]})]}),(0,De.jsx)(Je,{})]})},Nt=()=>{var e;const t=ne(),{cart:n,getSubtotal:a}=Me(),{t:i}=$e(),{settings:o,loading:l,error:s}=xt(),c=a(),[u,d]=(0,r.useState)({nome:"",cognome:"",mail:"",telefono:"",via:"",civico:"",cap:"",citta:"",provincia:"",stato:""}),[m,f]=(0,r.useState)(!1),[p,h]=(0,r.useState)(null),[g,v]=(0,r.useState)(!1),[b,y]=(0,r.useState)(null),[x,j]=(0,r.useState)(!1),k=(0,r.useMemo)(()=>function(e){const t=(e||"").trim().toLowerCase();return t?ct.includes(t)?"italy":ut.includes(t)?"eu":"world":"italy"}
2(u.stato),[u.stato]),w=pt(o,k),N=parseFloat(w.free_shipping_min)||0,_=parseFloat(w.shipping_cost)||0,S=null!==(e=null===o||void 0===o?void 0:o.fixed_shipping_enabled)&&void 0!==e&&e,z=!S&&(0===N||c>=N),C=s||z?0:_,E=c+C,P=Math.max(0,N-c),T=w.label||mt[k];if(0===n.length)return t("/carrello"),null;const O=e=>{const t=Ae(Ae({},u),{},{[e.target.name]:e.target.value});d(t),p&&h(null),L(t)},L=e=>{const t=["nome","cognome","mail","via","civico","cap","citta","provincia","stato"].every(t=>e[t]&&""!==e[t].trim());v(t)};return(0,De.jsxs)("div",{className:"checkout-page",children:[(0,De.jsxs)("div",{className:"container",children:[(0,De.jsx)("h1",{className:"checkout-title",children:i("checkout.title")}),(0,De.jsxs)("div",{className:"checkout-layout",children:[(0,De.jsxs)("div",{className:"checkout-form-section",children:[(0,De.jsx)("h2",{children:i("checkout.shipping_details")}),(0,De.jsxs)("div",{className:"checkout-form",children:[(0,De.jsxs)("div",{className:"form-row",children:[(0,De.jsxs)("div",{className:"form-group",children:[(0,De.jsxs)("label",{htmlFor:"nome",children:[i("checkout.form.name")," *"]}),(0,De.jsx)("input",{type:"text",id:"nome",name:"nome",value:u.nome,onChange:O,required:!0,placeholder:"Mario"})]}),(0,De.jsxs)("div",{className:"form-group",children:[(0,De.jsxs)("label",{htmlFor:"cognome",children:[i("checkout.form.surname")," *"]}),(0,De.jsx)("input",{type:"text",id:"cognome",name:"cognome",value:u.cognome,onChange:O,required:!0,placeholder:"Rossi"})]})]}),(0,De.jsxs)("div",{className:"form-group",children:[(0,De.jsxs)("label",{htmlFor:"mail",children:[i("checkout.form.email")," *"]}),(0,De.jsx)("input",{type:"email",id:"mail",name:"mail",value:u.mail,onChange:O,required:!0,placeholder:"[email protected]"})]}),(0,De.jsxs)("div",{className:"form-group",children:[(0,De.jsx)("label",{htmlFor:"telefono",children:i("checkout.form.phone")}),(0,De.jsx)("input",{type:"tel",id:"telefono",name:"telefono",value:u.telefono,onChange:O,placeholder:"+39 123 456 7890"})]}),(0,De.jsxs)("div",{className:"form-row",children:[(0,De.jsxs)("div",{className:"form-group",children:[(0,De.jsxs)("label",{htmlFor:"via",children:[i("checkout.form.street")," *"]}),(0,De.jsx)("input",{type:"text",id:"via",name:"via",value:u.via,onChange:O,required:!0,placeholder:"Via Example"})]}),(0,De.jsxs)("div",{className:"form-group",children:[(0,De.jsxs)("label",{htmlFor:"civico",children:[i("checkout.form.number")," *"]}),(0,De.jsx)("input",{type:"text",id:"civico",name:"civico",value:u.civico,onChange:O,required:!0,placeholder:"123"})]})]}),(0,De.jsxs)("div",{className:"form-row",children:[(0,De.jsxs)("div",{className:"form-group",children:[(0,De.jsxs)("label",{htmlFor:"cap",children:[i("checkout.form.postal_code")," *"]}),(0,De.jsx)("input",{type:"text",id:"cap",name:"cap",value:u.cap,onChange:O,required:!0,placeholder:"50100"})]}),(0,De.jsxs)("div",{className:"form-group",children:[(0,De.jsxs)("label",{htmlFor:"citta",children:[i("checkout.form.city")," *"]}),(0,De.jsx)("input",{type:"text",id:"citta",name:"citta",value:u.citta,onChange:O,required:!0,placeholder:"Firenze"})]}),(0,De.jsxs)("div",{className:"form-group",children:[(0,De.jsxs)("label",{htmlFor:"provincia",children:[i("checkout.form.province")," *"]}),(0,De.jsx)("input",{type:"text",id:"provincia",name:"provincia",value:u.provincia,onChange:O,required:!0,placeholder:"FI"})]})]}),(0,De.jsxs)("div",{className:"form-group",children:[(0,De.jsxs)("label",{htmlFor:"stato",children:[i("checkout.form.state")," *"]}),(0,De.jsx)("input",{type:"text",id:"stato",name:"stato",value:u.stato,onChange:O,required:!0,placeholder:"Italia"}),!l&&!s&&(0,De.jsx)("p",{className:"shipping-zone-inline",children:i("checkout.detected_zone",{values:{zone:T}})})]}),p&&(0,De.jsxs)("div",{className:"error-message",children:["\u26a0\ufe0f ",p]}),(0,De.jsx)("div",{className:"form-actions",children:(0,De.jsxs)("button",{type:"button",className:"btn btn-outline",onClick:()=>t("/carrello"),disabled:m,children:["\u2190 ",i("checkout.back_to_cart")]})}),(0,De.jsxs)("div",{className:"nexi-section",children:[(0,De.jsx)("h3",{children:i("checkout.complete_payment")}),(0,De.jsxs)("p",{children:[i("checkout.total"),": \u20ac ",E.toFixed(2)]}),(0,De.jsx)("button",{type:"button",className:"btn btn-primary nexi-button",onClick:async()=>{try{if(f(!0),h(null),!x)return f(!1),void h(i("checkout.terms_error"));const e=b||await(async()=>
2{if(b)return b;const e={cliente:{nome:"".concat(u.nome," ").concat(u.cognome).trim(),mail:u.mail,telefono:u.telefono,via:u.via,civico:u.civico,cap:u.cap,citta:u.citta,provincia:u.provincia,stato:u.stato},prodotti:n.map(e=>({id_prodotto:e.id,quantita:e.quantita})),pagato:0},t=await Ze.create(e);return y(t.id_ordine),t.id_ordine})();if(l)throw new Error(i("checkout.shipping_loading"));if(s)throw new Error(i("checkout.shipping_error"));const t=await et.createOrder({order_id:e,amount:E.toFixed(2),currency:"EUR"});if(null===t||void 0===t||!t.hosted_page_url)throw new Error("URL pagamento Nexi non disponibile");window.location.href=t.hosted_page_url}catch(e){h("Errore durante la creazione del pagamento Nexi: "+e.message),console.error(e)}finally{f(!1)}},disabled:!g||!x||m||l||!!s,children:i(m?"checkout.processing_payment":"checkout.pay_with_nexi")}),(0,De.jsx)("p",{className:"nexi-note",children:i("checkout.redirect_to_nexi")}),l&&(0,De.jsx)("p",{className:"shipping-note info",children:i("checkout.shipping_loading")}),s&&(0,De.jsx)("p",{className:"shipping-note warning",children:i("checkout.shipping_error")}),(0,De.jsxs)("div",{className:"terms-consent",children:[(0,De.jsxs)("label",{className:"terms-checkbox",children:[(0,De.jsx)("input",{type:"checkbox",checked:x,onChange:e=>j(e.target.checked)}),(0,De.jsxs)("span",{children:[i("checkout.terms_intro")," ",(0,De.jsx)(Ce,{to:"/condizioni-di-acquisto",className:"inline-link",children:i("checkout.terms_conditions")})," ",i("checkout.terms_connector")," ",(0,De.jsx)("a",{href:"https://www.museostibbert.it/frontend/index.php?sez=page&isPrivacy=1",target:"_blank",rel:"noopener noreferrer",className:"inline-link",children:i("checkout.terms_privacy")}),"."]})]}),(0,De.jsx)("p",{className:"terms-warning-text",children:i("checkout.terms_warning")})]}),!l&&!s&&!S&&(N>0||_>0)&&(0,De.jsx)("p",{className:"shipping-note ".concat(z?"success":"info"),children:z?i("checkout.free_shipping_unlocked"):i("checkout.free_shipping_missing",{values:{amount:P.toFixed(2)}})})]})]})]}),(0,De.jsxs)("div",{className:"checkout-summary",children:[(0,De.jsx)("h2",{children:i("checkout.order_summary")}),(0,De.jsx)("div",{className:"summary-items",children:n.map(e=>(0,De.jsxs)("div",{className:"summary-item",children:[(0,De.jsxs)("div",{className:"summary-item-info",children:[(0,De.jsx)("span",{className:"summary-item-name",children:e.nome}),(0,De.jsxs)("span",{className:"summary-item-qty",children:["x",e.quantita]})]}),(0,De.jsxs)("span",{className:"summary-item-price",children:["\u20ac ",(parseFloat(e.prezzo)*e.quantita).toFixed(2)]})]},e.id))}),(0,De.jsx)("div",{className:"summary-divider"}),(0,De.jsxs)("div",{className:"summary-row",children:[(0,De.jsx)("span",{children:i("checkout.subtotal")}),(0,De.jsxs)("span",{children:["\u20ac ",c.toFixed(2)]})]}),(0,De.jsxs)("div",{className:"summary-row",children:[(0,De.jsx)("span",{children:i("checkout.shipping")}),(0,De.jsx)("span",{className:z?"shipping-free":"",children:l?i("checkout.shipping_loading"):s?i("checkout.shipping_error"):z?i("checkout.shipping_free"):"\u20ac ".concat(C.toFixed(2))})]}),!l&&!s&&(0,De.jsxs)("div",{className:"shipping-zone-info",children:[(0,De.jsx)("span",{className:"shipping-zone-pill",children:i("checkout.detected_zone",{values:{zone:T}})}),(0,De.jsx)("p",{className:"shipping-zone-hint",children:i("checkout.detected_zone_hint")})]}),!l&&!s&&!S&&(N>0||_>0)&&(0,De.jsx)("div",{className:"shipping-banner ".concat(z?"success":"info"),children:z?i("checkout.free_shipping_unlocked"):i("checkout.free_shipping_missing",{values:{amount:P.toFixed(2)}})}),s&&(0,De.jsx)("div",{className:"shipping-banner warning",children:i("checkout.shipping_warning")}),(0,De.jsx)("div",{className:"summary-divider"}),(0,De.jsxs)("div",{className:"summary-total",children:[(0,De.jsx)("span",{children:i("checkout.total")}),(0,De.jsxs)("span",{children:["\u20ac ",E.toFixed(2)]})]}),(0,De.jsxs)("div",{className:"payment-note",children:[(0,De.jsxs)("p",{children:[(0,De.jsxs)("strong",{children:[i("checkout.payment_methods"),":"]})," ",i("checkout.payment_methods_desc")]}),(0,De.jsxs)("p",{children:[(0,De.jsxs)("strong",{children:[i("checkout.security"),":"]})," ",i("checkout.security_desc")]})]})]})]})]}),(0,De.jsx)(Je,{})]})},_t=()=>{const e=ee(),t=ne(),{t:n}=$e(),{clearCart:a}=Me(),i=(0,r.useRef)(!1),[o,l]=(0,r.useState)(!0),[s,c]=(0,r.useState)("pending"),[u,d]=(0,r.useState)(null),m=new URLSearchParams(e.search),f=m.get("orderId"),p=m.get("esito")||m.get("outcome");(0,r.useEffect)(()=>{let e=!0;return(async()=>
2{if(!f)return d(n("nexi.result.invalid_order")),c("failed"),void l(!1);const t=parseInt(f,10);if(Number.isNaN(t)||t<=0)return d(n("nexi.result.invalid_order")),c("failed"),void l(!1);try{const r=await et.checkStatus(t);if(!e)return;r.paid?(i.current||(a(),i.current=!0),c("success")):(c(p&&"OK"===p.toUpperCase()?"pending":"failed"),r.paid||d(n("nexi.result.not_confirmed")))}catch(r){if(!e)return;d(r.message||n("nexi.result.error_generic")),c("failed")}finally{e&&l(!1)}})(),()=>{e=!1}},[f,p,a,n]);const h=()=>{t("/")};return(0,De.jsx)("div",{className:"checkout-page",children:(0,De.jsx)("div",{className:"container",children:(0,De.jsxs)("div",{className:"checkout-success",children:[o&&(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)("div",{className:"success-icon",children:"\u231b"}),(0,De.jsx)("h1",{children:n("nexi.result.verifying")}),(0,De.jsx)("p",{children:n("nexi.result.wait_message")})]}),!o&&"success"===s&&(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)("div",{className:"success-icon",children:"\u2713"}),(0,De.jsx)("h1",{children:n("nexi.result.success_title")}),(0,De.jsx)("p",{children:n("nexi.result.success_message")}),(0,De.jsx)("button",{className:"btn btn-primary",onClick:h,children:n("nexi.result.back_home")})]}),!o&&"success"!==s&&(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)("div",{className:"success-icon error",children:"!"}),(0,De.jsx)("h1",{children:n("nexi.result.failed_title")}),(0,De.jsx)("p",{children:u||n("nexi.result.error_generic")}),(0,De.jsxs)("div",{className:"result-actions",children:[(0,De.jsx)("button",{className:"btn btn-outline",onClick:()=>{t("/checkout")},children:n("nexi.result.back_checkout")}),(0,De.jsx)("button",{className:"btn btn-primary",onClick:h,children:n("nexi.result.back_home")})]})]})]})})})},St=()=>{const e=ne(),{t:t}=$e();return(0,De.jsx)("div",{className:"checkout-page",children:(0,De.jsx)("div",{className:"container",children:(0,De.jsxs)("div",{className:"checkout-success",children:[(0,De.jsx)("div",{className:"success-icon error",children:"\u2715"}),(0,De.jsx)("h1",{children:t("nexi.cancel.title")}),(0,De.jsx)("p",{children:t("nexi.cancel.message")}),(0,De.jsxs)("div",{className:"result-actions",children:[(0,De.jsx)("button",{className:"btn btn-outline",onClick:()=>e("/checkout"),children:t("nexi.cancel.back_checkout")}),(0,De.jsx)("button",{className:"btn btn-primary",onClick:()=>e("/"),children:t("nexi.cancel.back_home")})]})]})})})},zt=()=>{const e=ne(),[t,n]=(0,r.useState)({username:"",password:""}),[a,i]=(0,r.useState)(!1),[o,l]=(0,r.useState)(null),[s,c]=(0,r.useState)(!1),u=e=>{n(Ae(Ae({},t),{},{[e.target.name]:e.target.value}))};return(0,De.jsx)("div",{className:"admin-login-page",children:(0,De.jsxs)("div",{className:"login-container",children:[(0,De.jsxs)("div",{className:"login-left",children:[(0,De.jsx)("img",{src:"".concat("/shop","/logomuseo.png"),alt:"Museo Stibbert",className:"login-logo"}),(0,De.jsx)("h1",{children:"Amministrazione"}),(0,De.jsx)("p",{children:"Museo Stibbert Shop"}),(0,De.jsx)("p",{className:"subtitle",children:"Gestisci prodotti, ordini e contenuti del tuo e-commerce"})]}),(0,De.jsxs)("div",{className:"login-right",children:[(0,De.jsx)("h2",{children:"Accedi al Pannello"}),(0,De.jsxs)("form",{onSubmit:async n=>{n.preventDefault(),i(!0),l(null);try{console.log("\ud83d\udd10 Tentativo di login con:",t);const n=await fetch("".concat("/shop/backend/api","/auth.php"),{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(t)});console.log("\ud83d\udce1 Risposta ricevuta:",n.status,n.statusText);const a=await n.json();if(console.log("\ud83d\udccb Dati ricevuti:",a),!a.success)throw console.error("\u274c Login fallito:",a),new Error(a.message||"Errore durante il login");console.log("\u2705 Login riuscito! Reindirizzamento..."),localStorage.setItem("admin_logged_in","true"),localStorage.setItem("admin_data",JSON.stringify(a.data)),e("/amministrazione/dashboard")}catch(a){console.error("\ud83d\udca5 Errore durante il login:",a),l(a.message||"Errore di connessione al server")}finally{i(!1)}},className:"login-form",children:[(0,De.jsxs)("div",{className:"form-group",children:[(0,De.jsx)("label",{htmlFor:"username",children:"Username"}),(0,De.jsx)("input",{type:"text",id:"username",name:"username",value:t.username,onChange:u,required:!0,placeholder:"Inserisci username"})]}),(0,De.jsxs)("div",{className:"form-group",children:[(0,De.jsx)("label",{htmlFor:"password",children:"Password"}),(0,De.jsxs)("div",{className:"password-input-wrapper",children:[(0,De.jsx)("input",{type:s?"text":"password",id:"password",name:"password",value:t.password,onChange:u,required:!0,placeholder:"Inserisci password"}),(0,De.jsx)("button",{type:"button",className:"password-toggle",onClick:()=>c(!s),tabIndex:-1,"aria-label":s?"Nascondi password":"Mostra password",children:(0,De.jsx)("i",{className:"fas ".concat(s?"fa-eye-slash":"fa-eye")})})]})]}),o&&(0,De.jsxs)("div",{className:"error-message",children:["\u26a0\ufe0f ",o]}),(0,De.jsx)("button",{type:"submit",className:"btn btn-primary btn-login",disabled:a,children:a?"Accesso in corso...":"Accedi"})]}),(0,De.jsx)("div",{className:"login-footer",children:(0,De.jsx)(Ce,{to:"/",className:"back-link",children:"\u2190 Torna al sito"})})]})]})})},Ct=e=>{let{isOpen:t,onClose:n,onAddCategory:a,initialData:i=null,title:o="Aggiungi Categoria"}=e;const[l,s]=(0,r.useState)({nome:""}),[c,u]=(0,r.useState)(!1),[d,m]=(0,r.useState)(null);(0,r.useEffect)(()=>{s(i?{nome:i.nome||""}:{nome:""})},[i]);const f=()=>{s({nome:""}),m(null),n()};return t?(0,De.jsx)("div",{className:"modal-overlay",onClick:f,children:(0,De.jsxs)("div",{className:"modal-content",onClick:e=>e.stopPropagation(),children:[(0,De.jsx)("button",{className:"modal-close-button",onClick:f,children:"\xd7"}),(0,De.jsx)("div",{className:"modal-header",children:(0,De.jsx)("h2",{children:o})}),(0,De.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),u(!0),m(null);try{await a(l),s({nome:""}),n()}catch(t){m(t.message||"Errore durante l'aggiunta della categoria")}finally{u(!1)}},className:"modal-form",children:[(0,De.jsxs)("div",{className:"form-group",children:[(0,De.jsx)("label",{htmlFor:"nome",children:"Nome Categoria"}),(0,De.jsx)("input",{type:"text",id:"nome",name:"nome",value:l.nome,onChange:e=>{s(Ae(Ae({},l),{},{[e.target.name]:e.target.value}))},required:!0,placeholder:"Inserisci il nome della categoria",disabled:c})]}),d&&(0,De.jsxs)("div",{className:"error-message",children:["\u26a0\ufe0f ",d]}),(0,De.jsxs)("div",{className:"modal-actions",children:[(0,De.jsx)("button",{type:"button",className:"btn btn-secondary",onClick:f,disabled:c,
2children:"Annulla"}),(0,De.jsx)("button",{type:"submit",className:"btn btn-primary",disabled:c,children:c?i?"Modifica in corso...":"Aggiunta in corso...":i?"Modifica":"Aggiungi"})]})]})]})}):null},Et=e=>{let{isOpen:t,onClose:n,onAddProduct:a,categories:i}=e;const[o,l]=(0,r.useState)({titolo:"",descrizione:"",prezzo:"",quantita:"0",id_categoria:"",attivo:!0,foto:null,fotoPreview:null,fotoAggiuntive:[]}),[s,c]=(0,r.useState)(!1),[u,d]=(0,r.useState)(null);(0,r.useEffect)(()=>{t&&(l({titolo:"",descrizione:"",prezzo:"",quantita:"0",id_categoria:"",attivo:!0,foto:null,fotoPreview:null,fotoAggiuntive:[]}),d(null))},[t]);const m=e=>{const{name:t,value:n,type:a,checked:r,files:i}=e.target;if("file"===a&&i&&i.length>0){const e=i[0],n=new FileReader;n.onload=n=>{l(Ae(Ae({},o),{},{[t]:e,fotoPreview:n.target.result}))},n.readAsDataURL(e)}else l(Ae(Ae({},o),{},{[t]:"checkbox"===a?r:n}))};return t?(0,De.jsx)("div",{className:"product-modal-overlay",onClick:n,children:(0,De.jsxs)("div",{className:"product-modal-content",onClick:e=>e.stopPropagation(),children:[(0,De.jsx)("button",{className:"product-modal-close-button",onClick:n,children:"\xd7"}),(0,De.jsx)("div",{className:"product-modal-header",children:(0,De.jsx)("h2",{children:"Aggiungi Prodotto"})}),(0,De.jsx)("div",{className:"product-modal-body",children:(0,De.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),c(!0),d(null);const t="/shop/backend/api";try{if(!o.titolo.trim())throw new Error("Il titolo \xe8 obbligatorio");if(!o.descrizione.trim())throw new Error("La descrizione \xe8 obbligatoria");if(!o.prezzo||parseFloat(o.prezzo)<=0)throw new Error("Il prezzo deve essere maggiore di 0");if(!o.id_categoria)throw new Error("La categoria \xe8 obbligatoria");const e=parseInt(o.quantita,10);if(Number.isNaN(e)||e<0)throw new Error("La quantit\xe0 deve essere maggiore o uguale a 0");console.log("\ud83d\udcf8 Inizio upload immagini...");let r=null;if(o.foto){console.log("\ud83d\udce4 Upload immagine principale...");const e=new FormData;e.append("image",o.foto),e.append("product_name",o.titolo),e.append("image_type","main");const n=await fetch("".concat(t,"/upload_image.php"),{method:"POST",body:e}),a=await n.json();if(console.log("\ud83d\udccb Risposta upload principale:",a),!a.success)throw new Error(a.error||"Errore upload immagine principale");r=a.data.folder_name,console.log("\u2705 Immagine principale caricata! Cartella:",r)}if(o.fotoAggiuntive&&o.fotoAggiuntive.length>0){console.log("\ud83d\udce4 Upload",o.fotoAggiuntive.length,"immagini aggiuntive...");for(let e=0;e<o.fotoAggiuntive.length;e++){const n=o.fotoAggiuntive[e],a=new FormData;a.append("image",n.file),a.append("product_name",o.titolo),a.append("image_type","additional");const i=await fetch("".concat(t,"/upload_image.php"),{method:"POST",body:a}),l=await i.json();console.log("\ud83d\udccb Risposta upload immagine ".concat(e+1,":"),l),l.success?(r||(r=l.data.folder_name),console.log("\u2705 Immagine ".concat(e+1," caricata!"))):console.warn("\u26a0\ufe0f Errore upload immagine ".concat(e+1,":"),l.error)}}console.log("\ud83d\udcbe Creazione prodotto nel database...");const i={titolo:o.titolo.trim(),descrizione:o.descrizione.trim(),prezzo:parseFloat(o.prezzo),quantita:e,id_categoria:parseInt(o.id_categoria),attivo:o.attivo?1:0,foto:r};await a(i),console.log("\u2705 Prodotto creato con successo!"),n()}catch(r){console.error("\ud83d\udca5 Errore:",r),d(r.message||"Errore durante l'aggiunta del prodotto")}finally{c(!1)}},className:"product-modal-form",children:[(0,De.jsxs)("div",{className:"form-layout",children:[(0,De.jsxs)("div",{className:"form-left",children:[(0,De.jsxs)("div",{className:"form-group",children:[(0,De.jsx)("label",{htmlFor:"titolo",children:"Titolo Prodotto *"}),(0,De.jsx)("input",{type:"text",id:"titolo",name:"titolo",value:o.titolo,onChange:m,required:!0,placeholder:"Inserisci titolo prodotto",autoFocus:!0})]}),(0,De.jsxs)("div",{className:"form-group",children:[(0,De.jsx)("label",{htmlFor:"descrizione",children:"Descrizione *"}),(0,De.jsx)("textarea",{id:"descrizione",name:"descrizione",value:o.descrizione,onChange:m,required:!0,placeholder:"Inserisci descrizione prodotto",rows:"3"})]}),(0,De.jsxs)("div",{className:"form-row",children:[(0,De.jsxs)("div",{className:"form-group",children:[(0,De.jsx)("label",{htmlFor:"prezzo",children:"Prezzo (\u20ac) *"}),(0,De.jsx)("input",{type:"number",id:"prezzo",name:"prezzo",value:o.prezzo,onChange:m,required:!0,step:"0.01",min:"0.01",placeholder:"0.00"})]}),(0,De.jsxs)("div",{className:"form-group",children:[(0,De.jsx)("label",{htmlFor:"quantita",children:"Quantit\xe0 *"}),(0,De.jsx)("input",{type:"number",id:"quantita",name:"quantita",value:o.quantita,onChange:m,required:!0,min:"0",step:"1",placeholder:"0"})]})]}),(0,De.jsxs)("div",{className:"form-group",children:[(0,De.jsx)("label",{htmlFor:"id_categoria",children:"Categoria *"}),(0,De.jsxs)("select",{id:"id_categoria",name:"id_categoria",value:o.id_categoria,onChange:m,required:!0,children:[(0,De.jsx)("option",{value:"",children:"Seleziona categoria"}),i.map(e=>(0,De.jsx)("option",{value:e.id_categoria,children:e.nome},e.id_categoria))]})]}),(0,De.jsxs)("div",{className:"form-group checkbox-group",children:[(0,De.jsxs)("label",{className:"checkbox-label",children:[(0,De.jsx)("input",{type:"checkbox",name:"attivo",checked:o.attivo,onChange:m}),(0,De.jsx)("span",{className:"checkbox-custom"}),"Prodotto attivo"]}),(0,De.jsx)("small",{className:"form-help",children:"I prodotti inattivi non saranno visibili nello shop"})]})]}),(0,De.jsx)("div",{className:"form-right",children:(0,De.jsxs)("div",{className:"images-section",children:[(0,De.jsx)("h3",{children:"Immagini Prodotto"}),(0,De.jsxs)("div",{className:"main-image-container",children:[(0,De.jsx)("label",{htmlFor:"foto",className:"main-image-upload",children:o.fotoPreview?(0,De.jsx)("img",{src:o.fotoPreview,alt:"Preview",className:"main-image-preview"}):(0,De.jsxs)("div",{className:"main-image-placeholder",children:[(0,De.jsx)("i",{className:"fas fa-camera"}),(0,De.jsx)("span",{children:"Immagine Principale"})]})}),(0,De.jsx)("input",{type:"file",id:"foto",name:"foto",onChange:m,accept:"image/*",style:{display:"none"}})]}),(0,De.jsxs)("div",{className:"additional-images",children:[(0,De.jsxs)("label",{htmlFor:"fotoAggiuntive",className:"additional-upload",children:[(0,De.jsx)("i",{className:"fas fa-plus"}),(0,De.jsx)("span",{children:"Aggiungi Foto"})]}),(0,De.jsx)("input",{type:"file",id:"fotoAggiuntive",onChange:e=>{const t=Array.from(e.target.files).map(e=>new Promise(t=>{const n=new FileReader;n.onload=n=>t({file:e,preview:n.target.result}),n.readAsDataURL(e)}));Promise.all(t).then(e=>{l(Ae(Ae({},o),{},{fotoAggiuntive:[...o.fotoAggiuntive,...e].slice(0,3)}))})},accept:"image/*",multiple:!0,style:{display:"none"}}),(0,De.jsxs)("div",{className:"additional-images-grid",children:[o.fotoAggiuntive.map((e,t)=>(0,De.jsxs)("div",{className:"additional-image-item",children:[(0,De.jsx)("img",{src:e.preview,alt:"Preview ".concat(t+1)}),(0,De.jsx)("button",{type:"button",className:"remove-image",onClick:()=>(e=>{l(Ae(Ae({},o),{}
2,{fotoAggiuntive:o.fotoAggiuntive.filter((t,n)=>n!==e)}))})(t),children:(0,De.jsx)("i",{className:"fas fa-times"})})]},t)),Array.from({length:3-o.fotoAggiuntive.length}).map((e,t)=>(0,De.jsx)("div",{className:"additional-image-placeholder",children:(0,De.jsx)("i",{className:"fas fa-image"})},"empty-".concat(t)))]})]})]})})]}),u&&(0,De.jsxs)("div",{className:"product-error-message",children:["\u26a0\ufe0f ",u]}),(0,De.jsxs)("div",{className:"product-modal-actions",children:[(0,De.jsx)("button",{type:"button",className:"btn btn-secondary",onClick:n,disabled:s,children:"Annulla"}),(0,De.jsx)("button",{type:"submit",className:"btn btn-primary",disabled:s,children:s?"Aggiunta in corso...":"Aggiungi Prodotto"})]})]})})]})}):null},Pt="/shop/backend/api",Tt=()=>{const e=ne(),[t,n]=(0,r.useState)(null),[a,i]=(0,r.useState)(!0),[o,l]=(0,r.useState)({categorie_totali:0,prodotti_totali:0,ordini_totali:0}),[s,c]=(0,r.useState)({categorie:[],prodotti:[],ordini:[]}),[u,d]=(0,r.useState)([]),[m,f]=(0,r.useState)(!1),[p,h]=(0,r.useState)(!1);(0,r.useEffect)(()=>{g(),v(),b()},[]);const g=()=>{console.log("\ud83d\udd0d Verifica autenticazione locale...");const t=localStorage.getItem("admin_logged_in"),a=localStorage.getItem("admin_data");if(!t||!a)return console.log("\u274c Non autenticato, reindirizzamento al login..."),void e("/amministrazione");console.log("\u2705 Autenticazione verificata!"),n(JSON.parse(a)),i(!1)},v=async()=>{try{console.log("\ud83d\udcca Caricamento dati dashboard...");const e=await fetch("".concat(Pt,"/dashboard_stats.php")),t=await e.json();t.success&&(l(t.data),console.log("\u2705 Statistiche caricate:",t.data));const n=await fetch("".concat(Pt,"/dashboard_data.php")),a=await n.json();if(a.success){const e=await Promise.all((a.data.prodotti||[]).map(async e=>{if(e.foto)try{const t=await fetch("".concat(Pt,"/get_images.php?folder=").concat(e.foto)),n=await t.json();n.success&&n.data.main_image&&(e.mainImageUrl=n.data.main_image.full_url)}catch(Gt){console.warn("Errore recupero immagine prodotto dashboard:",Gt)}return e})),t=await fetch("".concat(Pt,"/ordini.php")),n=await t.json();c({categorie:a.data.categorie||[],prodotti:e||[],ordini:n.success?n.data.slice(0,5):[]}),console.log("\u2705 Dati dashboard caricati:",a.data)}}catch(e){console.error("\ud83d\udca5 Errore caricamento dashboard:",e)}},b=async()=>{try{console.log("\ud83d\udcc1 Caricamento categorie per modal prodotto...");const e=await fetch("".concat(Pt,"/categorie.php")),t=await e.json();if(!t.success)throw new Error(t.error||"Errore durante il caricamento delle categorie");d(t.data),console.log("\u2705 Categorie caricate:",t.data)}catch(e){console.error("\ud83d\udca5 Errore caricamento categorie:",e)}};if(a)return(0,De.jsx)("div",{className:"admin-dashboard",children:(0,De.jsxs)("div",{className:"loading",children:[(0,De.jsx)("div",{className:"spinner"}),(0,De.jsx)("p",{children:"Caricamento..."})]})});return(0,De.jsxs)("div",{className:"admin-dashboard admin-page",children:[(0,De.jsxs)("aside",{className:"admin-sidebar",children:[(0,De.jsx)("div",{className:"sidebar-header",children:(0,De.jsx)("img",{src:"".concat("/shop","/logomuseo.png"),alt:"Museo Stibbert",className:"sidebar-logo"})}),(0,De.jsx)("div",{className:"sidebar-admin-title",children:(0,De.jsxs)("h1",{children:[(0,De.jsx)("strong",{style:{color:"var(--bianco), font-weight: 700, font-size: 1.2rem"},children:"Museo Stibbert"})," Amministrazione"]})}),(0,De.jsxs)("nav",{className:"sidebar-nav",children:[(0,De.jsxs)("button",{className:"nav-item active",children:[(0,De.jsx)("i",{className:"fas fa-tachometer-alt"}),(0,De.jsx)("span",{children:"Dashboard"})]}),(0,De.jsxs)("button",{className:"nav-item",onClick:()=>e("/amministrazione/categorie"),children:[(0,De.jsx)("i",{className:"fas fa-tags"}),(0,De.jsx)("span",{children:"Categorie"})]}),(0,De.jsxs)("button",{className:"nav-item",onClick:()=>e("/amministrazione/prodotti"),children:[(0,De.jsx)("i",{className:"fas fa-box"}),(0,De.jsx)("span",{children:"Prodotti"})]}),(0,De.jsxs)("button",{className:"nav-item",onClick:()=>e("/amministrazione/ordini"),children:[(0,De.jsx)("i",{className:"fas fa-shopping-cart"}),(0,De.jsx)("span",{children:"Ordini"})]}),(0,De.jsxs)("button",{className:"nav-item",onClick:()=>e("/amministrazione/impostazioni"),children:[(0,De.jsx)("i",{className:"fas fa-cog"}),(0,De.jsx)("span",{children:"Impostazioni"})]})]}),(0,De.jsx)("div",{className:"sidebar-footer",children:(0,De.jsxs)("button",{className:"nav-item logout-item",onClick:()=>{console.log("\ud83d\udeaa Logout..."),localStorage.removeItem("admin_logged_in"),localStorage.removeItem("admin_data"),e("/amministrazione")},children:[(0,De.jsx)("i",{className:"fas fa-sign-out-alt"}),(0,De.jsx)("span",{children:"Logout"})]})})]}),(0,De.jsxs)("main",{className:"admin-main",children:[(0,De.jsxs)("div",{className:"main-header",children:[(0,De.jsx)("h1",{children:"Dashboard"}),(0,De.jsxs)("div",{className:"header-actions",children:[(0,De.jsxs)("button",{className:"btn btn-primary",onClick:()=>h(!0),children:[(0,De.jsx)("i",{className:"fas fa-plus"}),"Aggiungi Prodotto"]}),(0,De.jsxs)("button",{className:"btn btn-secondary",onClick:()=>f(!0),children:[(0,De.jsx)("i",{className:"fas fa-tag"}),"Aggiungi Categoria"]})]})]}),(0,De.jsxs)("div",{className:"main-content",children:[(0,De.jsxs)("div",{className:"stats-cards",children:[(0,De.jsxs)("div",{className:"stat-card",children:[(0,De.jsx)("div",{className:"stat-icon",children:(0,De.jsx)("i",{className:"fas fa-tags"})}),(0,De.jsxs)("div",{className:"stat-content",children:[(0,De.jsx)("h3",{children:o.categorie_totali}),(0,De.jsx)("p",{children:"Categorie Totali"})]})]}),(0,De.jsxs)("div",{className:"stat-card",children:[(0,De.jsx)("div",{className:"stat-icon",children:(0,De.jsx)("i",{className:"fas fa-box"})}),(0,De.jsxs)("div",{className:"stat-content",children:[(0,De.jsx)("h3",{children:o.prodotti_totali}),(0,De.jsx)("p",{children:"Prodotti Totali"})]})]}),(0,De.jsxs)("div",{className:"stat-card",children:[(0,De.jsx)("div",{className:"stat-icon",children:(0,De.jsx)("i",{className:"fas fa-shopping-cart"})}),(0,De.jsxs)("div",{className:"stat-content",children:[(0,De.jsx)("h3",{children:o.ordini_totali}),(0,De.jsx)("p",{children:"Ordini Totali"})]})]})]}),(0,De.jsxs)("div",{className:"dashboard-tables",children:[(0,De.jsxs)("div",{className:"table-section",children:[(0,De.jsxs)("div",{className:"table-header",children:[(0,De.jsx)("h3",{children:"Ultimi Ordini"}),(0,De.jsx)("button",{className:"btn btn-outline",onClick:()=>e("/amministrazione/ordini"),children:"Vedi Tutti"})]}),(0,De.jsx)("div",{className:"ordini-table-container",children:(0,De.jsxs)("table",{className:"ordini-table",children:[(0,De.jsx)("thead",{children:(0,De.jsxs)("tr",{children:[(0,De.jsx)("th",{children:"ID Ordine"}),(0,De.jsx)("th",{children:"Cliente"}),(0,De.jsx)("th",{children:"Totale"}),(0,De.jsx)("th",{children:"Stato"}),(0,De.jsx)("th",{children:"Data"})]})}),(0,De.jsx)("tbody",{children:0===s.ordini.length?(0,De.jsx)("tr",{children:(0,De.jsx)("td",{colSpan:"5",className:"empty-state",children:(0,De.jsxs)("div",{className:"empty-message",children:[(0,De.jsx)("i",{className:"fas fa-shopping-cart"}),(0,De.jsx)("p",{children:"Nessun ordine trovato"})]})})}):s.ordini.map(e=>{return(0,De.jsxs)("tr",{children:[(0,De.jsx)("td",{className:"ordine-id",children:(0,De.jsxs)("strong",{children:["#",e.id_ordine]})}),(0,De.jsx)("td",{className:"ordine-cliente",children:(0,De.jsx)("div",{className:"cliente-info",children:(0,De.jsx)("strong",{children:e.nome_cliente})})}),(0,De.jsx)("td",{className:"ordine-totale",children:(0,De.jsx)("strong",{children:(a=e.totale,new Intl.NumberFormat("it-IT",{style:"currency",currency:"EUR"}).format(a))})}),(0,De.jsx)("td",{className:"ordine-stato",children:(n=e.pagato,1===Number(n)?(0,De.jsx)("span",{className:"status-badge paid",children:"Pagato"}):(0,De.jsx)("span",{className:"status-badge unpaid",children:"Non Pagato"}))}),(0,De.jsx)("td",{className:"ordine-data",children:(t=e.data_ordine,new Date(t).toLocaleDateString("it-IT",{day:"2-digit",month:"2-digit",year:"numeric"}))})]},e.id_ordine);var t,n,a})})]})})]}),(0,De.jsxs)("div",{className:"table-section",children:[(0,De.jsxs)("div",{className:"table-header",children:[(0,De.jsx)("h3",{children:"Ultime
2Categorie"}),(0,De.jsx)("button",{className:"btn btn-outline",onClick:()=>e("/amministrazione/categorie"),children:"Vedi Tutti"})]}),(0,De.jsx)("div",{className:"categories-table-container",children:(0,De.jsxs)("table",{className:"categories-table",children:[(0,De.jsx)("thead",{children:(0,De.jsxs)("tr",{children:[(0,De.jsx)("th",{children:"Nome"}),(0,De.jsx)("th",{children:"Prodotti Associati"}),(0,De.jsx)("th",{children:"Data Creazione"})]})}),(0,De.jsx)("tbody",{children:s.categorie.map(e=>(0,De.jsxs)("tr",{children:[(0,De.jsx)("td",{className:"category-name",children:(0,De.jsx)("strong",{children:e.nome})}),(0,De.jsx)("td",{className:"products-count",children:(0,De.jsx)("span",{className:"count-badge",children:e.numero_prodotti||0})}),(0,De.jsx)("td",{className:"category-date",children:new Date(e.data_creazione).toLocaleDateString("it-IT")})]},e.id_categoria))})]})})]}),(0,De.jsxs)("div",{className:"table-section",children:[(0,De.jsxs)("div",{className:"table-header",children:[(0,De.jsx)("h3",{children:"Ultimi Prodotti"}),(0,De.jsx)("button",{className:"btn btn-outline",onClick:()=>e("/amministrazione/prodotti"),children:"Vedi Tutti"})]}),(0,De.jsx)("div",{className:"products-table-container",children:(0,De.jsxs)("table",{className:"products-table",children:[(0,De.jsx)("thead",{children:(0,De.jsxs)("tr",{children:[(0,De.jsx)("th",{children:"Prodotto"}),(0,De.jsx)("th",{children:"Categoria"}),(0,De.jsx)("th",{children:"Prezzo"}),(0,De.jsx)("th",{children:"Stato"})]})}),(0,De.jsx)("tbody",{children:s.prodotti.map(e=>(0,De.jsxs)("tr",{children:[(0,De.jsxs)("td",{className:"admin-product-info",children:[(0,De.jsxs)("div",{className:"product-id",children:["#",e.id_prodotto]}),(0,De.jsx)("div",{className:"admin-product-image",children:(0,De.jsx)("img",{src:e.mainImageUrl||"/placeholder.png",alt:e.titolo})}),(0,De.jsx)("span",{className:"product-title",children:e.titolo})]}),(0,De.jsx)("td",{className:"category-cell",children:(0,De.jsx)("span",{className:"category-badge",children:e.categoria_nome||"N/A"})}),(0,De.jsx)("td",{className:"price-cell",children:(0,De.jsxs)("span",{className:"price",children:["\u20ac",e.prezzo]})}),(0,De.jsx)("td",{className:"status-cell",children:(0,De.jsx)("span",{className:"status-badge ".concat(e.attivo?"active":"inactive"),children:e.attivo?"Attivo":"Inattivo"})})]},e.id_prodotto))})]})})]})]})]})]}),(0,De.jsx)(Ct,{isOpen:m,onClose:()=>f(!1),onAddCategory:async e=>{console.log("\ud83d\udcc1 Aggiunta categoria:",e);try{const t=await fetch("".concat(Pt,"/categorie.php"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),n=await t.json();if(console.log("\ud83d\udccb Risposta aggiunta categoria:",n),!n.success)throw new Error(n.error||"Errore durante l'aggiunta della categoria");console.log("\u2705 Categoria aggiunta con successo!"),v(),b()}catch(t){throw console.error("\ud83d\udca5 Errore aggiunta categoria:",t),t}}}),(0,De.jsx)(Et,{isOpen:p,onClose:()=>h(!1),onAddProduct:async e=>{console.log("\ud83d\udce6 Aggiunta prodotto:",e);try{const t=await fetch("".concat(Pt,"/prodotti.php"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),n=await t.json();if(console.log("\ud83d\udccb Risposta aggiunta prodotto:",n),!n.success)throw new Error(n.error||"Errore durante l'aggiunta del prodotto");console.log("\u2705 Prodotto aggiunto con successo!"),v()}catch(t){throw console.error("\ud83d\udca5 Errore aggiunta prodotto:",t),t}},categories:u})]})},Ot=e=>{let{isOpen:t,onClose:n,onEditCategory:a,initialData:i}=e;const[o,l]=(0,r.useState)({nome:""}),[s,c]=(0,r.useState)(!1),[u,d]=(0,r.useState)(null);(0,r.useEffect)(()=>
2{l(i?{nome:i.nome||""}:{nome:""})},[i]);const m=()=>{d(null),n()};return t?(0,De.jsx)("div",{className:"modal-overlay ".concat(t?"open":""),onClick:m,children:(0,De.jsxs)("div",{className:"modal-content",onClick:e=>e.stopPropagation(),children:[(0,De.jsx)("button",{className:"modal-close-button",onClick:m,children:"\xd7"}),(0,De.jsx)("div",{className:"modal-header",children:(0,De.jsx)("h2",{children:"Modifica Categoria"})}),(0,De.jsx)("div",{className:"modal-body",children:(0,De.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),c(!0),d(null);try{await a(o),n()}catch(t){d(t.message||"Errore durante la modifica")}finally{c(!1)}},className:"modal-form",children:[(0,De.jsxs)("div",{className:"form-group",children:[(0,De.jsx)("label",{htmlFor:"nome",children:"Nome Categoria"}),(0,De.jsx)("input",{type:"text",id:"nome",name:"nome",value:o.nome,onChange:e=>{l(Ae(Ae({},o),{},{[e.target.name]:e.target.value}))},required:!0,placeholder:"Inserisci nome categoria"})]}),u&&(0,De.jsxs)("div",{className:"error-message",children:["\u26a0\ufe0f ",u]}),(0,De.jsxs)("div",{className:"modal-actions",children:[(0,De.jsx)("button",{type:"button",className:"btn btn-secondary",onClick:m,disabled:s,children:"Annulla"}),(0,De.jsx)("button",{type:"submit",className:"btn btn-primary",disabled:s,children:s?"Modifica in corso...":"Modifica"})]})]})})]})}):null},Lt=e=>{let{isOpen:t,onClose:n,onConfirm:a,message:r}=e;return t?(0,De.jsx)("div",{className:"modal-overlay ".concat(t?"open":""),onClick:n,children:(0,De.jsxs)("div",{className:"modal-content",onClick:e=>e.stopPropagation(),children:[(0,De.jsx)("button",{className:"modal-close-button",onClick:n,children:"\xd7"}),(0,De.jsx)("div",{className:"modal-header",children:(0,De.jsx)("h2",{children:"Conferma Eliminazione"})}),(0,De.jsxs)("div",{className:"modal-body",children:[(0,De.jsx)("div",{className:"warning-icon",children:(0,De.jsx)("i",{className:"fas fa-exclamation-triangle"})}),(0,De.jsx)("p",{children:r||"Sei sicuro di voler eliminare questo elemento?"})]}),(0,De.jsxs)("div",{className:"modal-actions",children:[(0,De.jsx)("button",{type:"button",className:"btn btn-secondary",onClick:n,children:"Annulla"}),(0,De.jsx)("button",{type:"button",className:"btn btn-danger",onClick:a,children:"Elimina"})]})]})}):null},Ft="/shop/backend/api",At=()=>{const e=ne(),[t,n]=(0,r.useState)([]),[a,i]=(0,r.useState)(!0),[o,l]=(0,r.useState)(!1),[s,c]=(0,r.useState)(!1),[u,d]=(0,r.useState)(null),[m,f]=(0,r.useState)(!1),[p,h]=(0,r.useState)(null),[g,v]=(0,r.useState)(""),[b,y]=(0,r.useState)([]),[x,j]=(0,r.useState)({searchText:"",sortBy:"nome_categoria",sortOrder:"asc"});(0,r.useEffect)(()=>{k(),w()},[]),(0,r.useEffect)(()=>{N()},[t,x]);const k=()=>{console.log("\ud83d\udd0d Verifica autenticazione locale...");const t=localStorage.getItem("admin_logged_in"),n=localStorage.getItem("admin_data");if(!t||!n)return console.log("\u274c Non autenticato, reindirizzamento al login..."),void e("/amministrazione");console.log("\u2705 Autenticazione verificata!"),i(!1)},w=async()=>{try{console.log("\ud83d\udcc1 Caricamento categorie...");const e=await fetch("".concat(Ft,"/categorie.php")),t=await e.json();console.log("\ud83d\udccb Categorie caricate:",t),t.success?n(t.data||[]):console.error("\u274c Errore caricamento categorie:",t.error)}catch(e){console.error("\ud83d\udca5 Errore caricamento categorie:",e)}},N=()=>{let e=[...t];if(x.searchText.trim()){const t=x.searchText.toLowerCase();e=e.filter(e=>{var n;return((null===(n=e.nome)||void 0===n?void 0:n.toLowerCase())||"").includes(t)})}e.sort((e,t)=>{var n,a;let r,i;switch(x.sortBy){case"nome_categoria":r=(null===(n=e.nome)||void 0===n?void 0:n.toLowerCase())||"",i=(null===(a=t.nome)||void 0===a?void 0:a.toLowerCase())||"";break;case"data_creazione":r=new Date(e.data_creazione)||new Date(0),i=new Date(t.data_creazione)||new Date(0);break;default:return 0}return"asc"===x.sortOrder?r>i?1:-1:r<i?1:-1}),y(e)};return a?(0,De.jsx)("div",{className:"categories-page",children:(0,De.jsx)("div",{className:"loading",children:"Caricamento..."})}
2):(0,De.jsxs)("div",{className:"categories-page admin-page",children:[(0,De.jsxs)("aside",{className:"admin-sidebar",children:[(0,De.jsx)("div",{className:"sidebar-header",children:(0,De.jsx)("img",{src:"".concat("/shop","/logomuseo.png"),alt:"Museo Stibbert",className:"sidebar-logo"})}),(0,De.jsx)("div",{className:"sidebar-admin-title",children:(0,De.jsxs)("h1",{children:[(0,De.jsx)("strong",{style:{color:"var(--bianco), font-weight: 700, font-size: 1.2rem"},children:"Museo Stibbert"})," Amministrazione"]})}),(0,De.jsxs)("nav",{className:"sidebar-nav",children:[(0,De.jsxs)("button",{className:"nav-item",onClick:()=>e("/amministrazione/dashboard"),children:[(0,De.jsx)("i",{className:"fas fa-tachometer-alt"}),(0,De.jsx)("span",{children:"Dashboard"})]}),(0,De.jsxs)("button",{className:"nav-item active",children:[(0,De.jsx)("i",{className:"fas fa-tags"}),(0,De.jsx)("span",{children:"Categorie"})]}),(0,De.jsxs)("button",{className:"nav-item",onClick:()=>e("/amministrazione/prodotti"),children:[(0,De.jsx)("i",{className:"fas fa-box"}),(0,De.jsx)("span",{children:"Prodotti"})]}),(0,De.jsxs)("button",{className:"nav-item",onClick:()=>e("/amministrazione/ordini"),children:[(0,De.jsx)("i",{className:"fas fa-shopping-cart"}),(0,De.jsx)("span",{children:"Ordini"})]}),(0,De.jsxs)("button",{className:"nav-item",onClick:()=>e("/amministrazione/impostazioni"),children:[(0,De.jsx)("i",{className:"fas fa-cog"}),(0,De.jsx)("span",{children:"Impostazioni"})]})]}),(0,De.jsx)("div",{className:"sidebar-footer",children:(0,De.jsxs)("button",{className:"nav-item logout-item",onClick:()=>{localStorage.removeItem("admin_logged_in"),localStorage.removeItem("admin_data"),e("/amministrazione")},children:[(0,De.jsx)("i",{className:"fas fa-sign-out-alt"}),(0,De.jsx)("span",{children:"Logout"})]})})]}),(0,De.jsxs)("main",{className:"admin-main",children:[(0,De.jsx)("div",{className:"page-header",children:(0,De.jsxs)("div",{className:"header-content",children:[(0,De.jsx)("h1",{children:"Categorie"}),(0,De.jsx)("div",{className:"header-actions",children:(0,De.jsxs)("button",{className:"btn btn-primary",onClick:()=>l(!0),children:[(0,De.jsx)("i",{className:"fas fa-plus"}),"Aggiungi Categoria"]})})]})}),(0,De.jsxs)("div",{className:"main-content",children:[(0,De.jsxs)("div",{className:"filters-bar",children:[(0,De.jsx)("div",{className:"search-group",children:(0,De.jsx)("input",{id:"search-input",type:"text",placeholder:"Cerca per nome categoria...",value:x.searchText,onChange:e=>{j(t=>Ae(Ae({},t),{},{searchText:e.target.value}))},className:"search-input"})}),(0,De.jsxs)("div",{className:"controls-group",children:[(0,De.jsxs)("div",{className:"sort-group",children:[(0,De.jsx)("label",{htmlFor:"sort-select",children:"Ordina per:"}),(0,De.jsxs)("select",{id:"sort-select",className:"sort-select",value:"".concat(x.sortBy,"-").concat(x.sortOrder),onChange:e=>{const[t,n]=e.target.value.split("-");j(e=>Ae(Ae({},e),{},{sortBy:t,sortOrder:n}))},children:[(0,De.jsx)("option",{value:"nome_categoria-asc",children:"Nome (A-Z)"}),(0,De.jsx)("option",{value:"nome_categoria-desc",children:"Nome (Z-A)"}),(0,De.jsx)("option",{value:"data_creazione-desc",children:"Data (Pi\xf9 Recenti)"}),(0,De.jsx)("option",{value:"data_creazione-asc",children:"Data (Pi\xf9 Vecchi)"})]})]}),(0,De.jsx)("button",{className:"reset-filters-btn",onClick:()=>{j({searchText:"",sortBy:"nome_categoria",sortOrder:"asc"})},children:"Reset Filtri"})]})]}),(0,De.jsx)("div",{className:"categories-table-container",children:0===b.length?(0,De.jsxs)("div",{className:"empty-state",children:[(0,De.jsx)("i",{className:"fas fa-folder-open"}),(0,De.jsx)("h3",{children:"Nessuna categoria presente"}),(0,De.jsx)("p",{children:'Clicca su "Aggiungi Categoria" per creare la prima categoria'})]}):(0,De.jsxs)("table",{className:"categories-table",children:[(0,De.jsx)("thead",{children:(0,De.jsxs)("tr",{children:[(0,De.jsx)("th",{children:"Nome"}),(0,De.jsx)("th",{children:"Prodotti Associati"}),(0,De.jsx)("th",{children:"Data Creazione"}),(0,De.jsx)("th",{children:"Azioni"})]})}),(0,De.jsx)("tbody",{children:b.map(e=>{const t=1===Number(e.is_default);return(0,De.jsxs)("tr",{children:[(0,De.jsx)("td",{className:"category-name",children:(0,De.jsxs)("div",{className:"category-name-wrapper",children:[(0,De.jsx)("strong",{children:e.nome}),t&&(0,De.jsx)("span",{className:"default-badge",children:"Default"})]})}),(0,De.jsx)("td",{className:"products-count",children:(0,De.jsx)("span",{className:"count-badge",children:e.numero_prodotti||0})}),(0,De.jsx)("td",{className:"category-date",children:(n=e.data_creazione,new Date(n).toLocaleDateString("it-IT",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}))}),(0,De.jsx)("td",{className:"category-actions",children:t?(0,De.jsx)("span",{className:"actions-disabled",children:"Non modificabile"}):(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)("button",{className:"btn btn-sm btn-secondary",onClick:()=>{d(e),c(!0)},title:"Modifica",children:(0,De.jsx)("i",{className:"fas fa-edit"})}),(0,De.jsx)("button",{className:"btn btn-sm btn-danger",onClick:()=>(e=>{if(1===Number(e.is_default))return void alert('La categoria predefinita "Senza Categoria" non pu\xf2 essere eliminata.');const t=e.numero_prodotti||0,n=t>0?'Eliminando "'.concat(e.nome,'" ').concat(1===t?"il prodotto associato verr\xe0":"".concat(t," prodotti associati verranno"),' spostati automaticamente nella categoria "Senza Categoria". Confermi l\'operazione?'):'Sei sicuro di voler eliminare la categoria "'.concat(e.nome,'"?');v(n),h(e),f(!0)})(e),title:"Elimina",children:(0,De.jsx)("i",{className:"fas fa-tras
2h"})})]})})]},e.id_categoria);var n})})]})})]})]}),(0,De.jsx)(Ct,{isOpen:o,onClose:()=>l(!1),onAddCategory:async e=>{console.log("\ud83d\udcc1 Aggiunta categoria:",e);try{const t=await fetch("".concat(Ft,"/categorie.php"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),n=await t.json();if(console.log("\ud83d\udccb Risposta aggiunta categoria:",n),!n.success)throw new Error(n.error||"Errore durante l'aggiunta della categoria");console.log("\u2705 Categoria aggiunta con successo!"),w()}catch(t){throw console.error("\ud83d\udca5 Errore aggiunta categoria:",t),t}}}),(0,De.jsx)(Ot,{isOpen:s,onClose:()=>{c(!1),d(null)},onEditCategory:e=>{(async(e,t)=>{console.log("\u270f\ufe0f Modifica categoria:",e,t);try{const n=await fetch("".concat(Ft,"/categorie.php"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(Ae({id:e},t))}),a=await n.json();if(console.log("\ud83d\udccb Risposta modifica categoria:",a),!a.success)throw new Error(a.error||"Errore durante la modifica della categoria");console.log("\u2705 Categoria modificata con successo!"),w()}catch(n){throw console.error("\ud83d\udca5 Errore modifica categoria:",n),n}})(u.id_categoria,e),c(!1),d(null)},initialData:u}),(0,De.jsx)(Lt,{isOpen:m,onClose:()=>{f(!1),h(null),v("")},onConfirm:async()=>{if(p)try{const e=await fetch("".concat(Ft,"/categorie.php"),{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:p.id_categoria})}),t=await e.json();if(console.log("\ud83d\udccb Risposta eliminazione categoria:",t),!t.success)throw new Error(t.error||"Errore durante l'eliminazione della categoria");console.log("\u2705 Categoria eliminata con successo!"),w(),f(!1),h(null),v("")}catch(e){console.error("\ud83d\udca5 Errore eliminazione categoria:",e),alert("Errore durante l'eliminazione: "+e.message)}},message:g||(p?'Sei sicuro di voler eliminare la categoria "'.concat(p.nome,'"?'):"Sei sicuro di voler eliminare questa categoria?")})]})},Dt=e=>{let{isOpen:t,onClose:n,onEditProduct:a,product:i,categories:o}=e;const[l,s]=(0,r.useState)({id:"",titolo:"",descrizione:"",prezzo:"",quantita:"0",id_categoria:"",attivo:!0,foto:null,fotoPreview:null,fotoAggiuntive:[],folderName:null}),[c,u]=(0,r.useState)({main:null,additional:[]}),[d,m]=(0,r.useState)(!1),[f,p]=(0,r.useState)(null),h="/shop/backend/api";(0,r.useEffect)(()=>{var e;i?(s({id:i.id_prodotto||"",titolo:i.titolo||"",descrizione:i.descrizione||"",prezzo:i.prezzo||"",quantita:(null!==(e=i.quantita)&&void 0!==e?e:0).toString(),id_categoria:i.id_categoria||"",attivo:1===i.attivo||"1"===i.attivo||!0===i.attivo,foto:null,fotoPreview:null,fotoAggiuntive:[],folderName:i.foto||null}),(async()=>{if(i&&i.foto)try{console.log("\ud83d\udcf8 Caricamento immagini esistenti per:",i.foto);const e=await fetch("".concat(h,"/get_images.php?folder=").concat(i.foto)),t=await e.json();t.success&&(u({main:t.data.main_image,additional:t.data.additional_images||[]}),console.log("\u2705 Immagini caricate:",t.data))}catch(e){console.warn("\u26a0\ufe0f Errore caricamento immagini:",e)}else u({main:null,additional:[]})})()):(s({id:"",titolo:"",descrizione:"",prezzo:"",quantita:"0",id_categoria:"",attivo:!0,foto:null,fotoPreview:null,fotoAggiuntive:[],folderName:null}),u({main:null,additional:[]}));p(null)},[i,t]);const g=e=>{const{name:t,value:n,type:a,checked:r,files:i}=e.target;if("file"===a&&i&&i.length>0){const e=i[0],n=new FileReader;n.onload=n=>{s(Ae(Ae({},l),{},{[t]:e,fotoPreview:n.target.result}))},n.readAsDataURL(e)}else s(Ae(Ae({},l),{},{[t]:"checkbox"===a?r:n}))},v=async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!l.folderName||!e.file_name)return void console.error("Dati immagine mancanti");if(window.confirm("Vuoi eliminare questa immagine? Questa azione \xe8 irreversibile."))try{console.log("\ud83d\uddd1\ufe0f Eliminazione immagine:",e.file_name);const n=await fetch("".concat(h,"/delete_single_image.php"),{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({folder:l.folderName,filename:e.file_name})}),a=await n.json();if(console.log("\ud83d\udccb Risposta eliminazione immagine:",a),!a.success)throw new Error(a.error||"Errore durante l'eliminazione dell'immagine");console.log("\u2705 Immagine eliminata con successo!"),u(Ae(Ae({},c),{},t?{main:null}:{additional:c.additional.filter(t=>t.file_name!==e.file_name)}))}catch(n){console.error("\ud83d\udca5 Errore eliminazione immagine:",n),alert("Errore durante l'eliminazione dell'immagine: "+n.message)}};return t?(0,De.jsx)("div",{className:"product-modal-overlay",onClick:n,children:(0,De.jsxs)("div",{className:"product-modal-content",onClick:e=>e.stopPropagation(),children:[(0,De.jsx)("button",{className:"product-modal-close-button",onClick:n,children:"\xd7"}),(0,De.jsx)("div",{className:"product-modal-header",children:(0,De.jsx)("h2",{children:"Modifica Prodotto"})}),(0,De.jsx)("div",{className:"product-modal-body",children:(0,De.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),m(!0),p(null);try{if(!l.titolo.trim())throw new Error("Il titolo \xe8 obbligatorio");if(!l.descrizione.trim())throw new Error("La descrizione \xe8 obbligatoria");if(!l.prezzo||parseFloat(l.prezzo)<=0)throw new Error("Il prezzo deve essere maggiore di 0");if(!l.id_categoria)throw new Error("La categoria \xe8 obbligatoria");const e=parseInt(l.quantita,10);if(Number.isNaN(e)||e<0)throw new Error("La quantit\xe0 deve essere maggiore o uguale a 0");console.log("\ud83d\udcf8 Controllo nuove immagini...");let t=l.folderName;if(!t&&(l.foto||l.fotoAggiuntive.length>0)&&(t=l.titolo.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"").substring(0,50)),l.foto&&t){console.log("\ud83d\udce4 Upload nuova immagine principale nella cartella esistente:",t);const e=new FormData;e.append("image",l.foto),e.append("product_name",t),e.append("image_type","main");const n=await fetch("".concat(h,"/upload_image.php"),{method:"POST",body:e}),a=await n.json();if(!a.success)throw new Error(a.error||"Errore upload immagine principale");console.log("\u2705 Nuova immagine principale caricata nella cartella esistente!")}if(l.fotoAggiuntive&&l.fotoAggiuntive.length>0&&t){console.log("\ud83d\udce4 Upload",l.fotoAggiuntive.length,"nuove immagini aggiuntive nella cartella esistente:",t);for(let e=0;e<l.fotoAggiuntive.length;e++){const n=l.fotoAggiuntive[e],a=new FormData;a.append("image",n.file),a.append("product_name",t),a.append("image_type","additional");const r=await fetch("".concat(h,"/upload_image.php"),{method:"POST",body:a}),i=await r.json();i.success?console.log("\u2705 Immagine aggiuntiva ".concat(e+1,"
2caricata nella cartella esistente!")):console.warn("\u26a0\ufe0f Errore upload immagine ".concat(e+1,":"),i.error)}}const n={id:parseInt(l.id),titolo:l.titolo.trim(),descrizione:l.descrizione.trim(),prezzo:parseFloat(l.prezzo),quantita:e,id_categoria:parseInt(l.id_categoria),attivo:l.attivo?1:0,foto:t};console.log("\ud83d\udcdd Dati prodotto da modificare:",n),await a(n)}catch(t){console.error("\ud83d\udca5 Errore:",t),p(t.message||"Errore durante la modifica del prodotto")}finally{m(!1)}},className:"product-modal-form",children:[(0,De.jsxs)("div",{className:"form-layout",children:[(0,De.jsxs)("div",{className:"form-left",children:[(0,De.jsxs)("div",{className:"form-group",children:[(0,De.jsx)("label",{htmlFor:"titolo",children:"Titolo Prodotto *"}),(0,De.jsx)("input",{type:"text",id:"titolo",name:"titolo",value:l.titolo,onChange:g,required:!0,placeholder:"Inserisci titolo prodotto",autoFocus:!0})]}),(0,De.jsxs)("div",{className:"form-group",children:[(0,De.jsx)("label",{htmlFor:"descrizione",children:"Descrizione *"}),(0,De.jsx)("textarea",{id:"descrizione",name:"descrizione",value:l.descrizione,onChange:g,required:!0,placeholder:"Inserisci descrizione prodotto",rows:"4"})]}),(0,De.jsxs)("div",{className:"form-row",children:[(0,De.jsxs)("div",{className:"form-group",children:[(0,De.jsx)("label",{htmlFor:"prezzo",children:"Prezzo (\u20ac) *"}),(0,De.jsx)("input",{type:"number",id:"prezzo",name:"prezzo",value:l.prezzo,onChange:g,required:!0,step:"0.01",min:"0.01",placeholder:"0.00"})]}),(0,De.jsxs)("div",{className:"form-group",children:[(0,De.jsx)("label",{htmlFor:"quantita",children:"Quantit\xe0 *"}),(0,De.jsx)("input",{type:"number",id:"quantita",name:"quantita",value:l.quantita,onChange:g,required:!0,min:"0",step:"1",placeholder:"0"})]})]}),(0,De.jsxs)("div",{className:"form-group",children:[(0,De.jsx)("label",{htmlFor:"id_categoria",children:"Categoria *"}),(0,De.jsxs)("select",{id:"id_categoria",name:"id_categoria",value:l.id_categoria,onChange:g,required:!0,children:[(0,De.jsx)("option",{value:"",children:"Seleziona categoria"}),o.map(e=>(0,De.jsx)("option",{value:e.id_categoria,children:e.nome},e.id_categoria))]})]}),(0,De.jsxs)("div",{className:"form-group checkbox-group",children:[(0,De.jsxs)("label",{className:"checkbox-label",children:[(0,De.jsx)("input",{type:"checkbox",name:"attivo",checked:l.attivo,onChange:g}),(0,De.jsx)("span",{className:"checkbox-custom"}),"Prodotto attivo"]}),(0,De.jsx)("small",{className:"form-help",children:"I prodotti inattivi non saranno visibili nello shop"})]})]}),(0,De.jsx)("div",{className:"form-right",children:(0,De.jsxs)("div",{className:"images-section",children:[(0,De.jsx)("h3",{children:"Immagini Prodotto"}),(0,De.jsxs)("div",{className:"main-image-container",children:[(0,De.jsx)("label",{htmlFor:"foto",className:"main-image-upload",children:l.fotoPreview?(0,De.jsx)("img",{src:l.fotoPreview,alt:"Preview",className:"main-image-preview"}):c.main?(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)("img",{src:c.main.full_url,alt:"Preview",className:"main-image-preview"}),(0,De.jsx)("button",{type:"button",className:"remove-existing-image",onClick:e=>{e.preventDefault(),v(c.main,!0)},title:"Elimina immagine",children:(0,De.jsx)("i",{className:"fas fa-times"})})]}):(0,De.jsxs)("div",{className:"main-image-placeholder",children:[(0,De.jsx)("i",{className:"fas fa-camera"}),(0,De.jsx)("span",{children:"Immagine Principale"})]})}),(0,De.jsx)("input",{type:"file",id:"foto",name:"foto",onChange:g,accept:"image/*",style:{display:"none"}})]}),(0,De.jsxs)("div",{className:"additional-images",children:[(0,De.jsxs)("label",{htmlFor:"fotoAggiuntive",className:"additional-upload",children:[(0,De.jsx)("i",{className:"fas fa-plus"}),(0,De.jsx)("span",{children:"Aggiungi Foto"})]}),(0,De.jsx)("input",{type:"file",id:"fotoAggiuntive",onChange:e=>{const t=Array.from(e.target.files).map(e=>new Promise(t=>{const n=new FileReader;n.onload=n=>t({file:e,preview:n.target.result}),n.readAsDataURL(e)}));Promise.all(t).then(e=>{s(Ae(Ae({},l),{},{fotoAggiuntive:[...l.fotoAggiuntive,...e].slice(0,3)}))})},accept:"image/*",multiple:!0,style:{display:"none"}}),(0,De.jsxs)("div",{className:"additional-images-grid",children:[c.additional.map((e,t)=>(0,De.jsxs)("div",{className:"additional-image-item",children:[(0,De.jsx)("img",{src:e.full_url,alt:"Existing ".concat(t+1)}),(0,De.jsx)("button",{type:"button",className:"remove-image",onClick:()=>v(e,!1),title:"Elimina immagine",children:(0,De.jsx)("i",{className:"fas fa-times"})})]},"existing-".concat(t))),l.fotoAggiuntive.map((e,t)=>(0,De.jsxs)("div",{className:"additional-image-item",children:[(0,De.jsx)("img",{src:e.preview,alt:"Preview ".concat(t+1)}),(0,De.jsx)("button",{type:"button",className:"remove-image",onClick:()=>(e=>{s(Ae(Ae({},l),{}
2,{fotoAggiuntive:l.fotoAggiuntive.filter((t,n)=>n!==e)}))})(t),children:(0,De.jsx)("i",{className:"fas fa-times"})})]},t)),Array.from({length:3-c.additional.length-l.fotoAggiuntive.length}).map((e,t)=>(0,De.jsx)("div",{className:"additional-image-placeholder",children:(0,De.jsx)("i",{className:"fas fa-image"})},"empty-".concat(t)))]})]})]})})]}),f&&(0,De.jsxs)("div",{className:"product-error-message",children:["\u26a0\ufe0f ",f]}),(0,De.jsxs)("div",{className:"product-modal-actions",children:[(0,De.jsx)("button",{type:"button",className:"btn btn-secondary",onClick:n,disabled:d,children:"Annulla"}),(0,De.jsx)("button",{type:"submit",className:"btn btn-primary",disabled:d,children:d?"Modifica in corso...":"Modifica Prodotto"})]})]})})]})}):null},It="/shop/backend/api",Rt=()=>{const e=ne(),[t,n]=(0,r.useState)([]),[a,i]=(0,r.useState)([]),[o,l]=(0,r.useState)([]),[s,c]=(0,r.useState)(!0),[u,d]=(0,r.useState)(!1),[m,f]=(0,r.useState)(!1),[p,h]=(0,r.useState)(null),[g,v]=(0,r.useState)(!1),[b,y]=(0,r.useState)(null),[x,j]=(0,r.useState)({searchText:"",sortBy:"data_creazione",sortOrder:"desc"});(0,r.useEffect)(()=>{k(),w(),N()},[]),(0,r.useEffect)(()=>{_()},[t,x]);const k=()=>{console.log("\ud83d\udd0d Verifica autenticazione locale...");const t=localStorage.getItem("admin_logged_in"),n=localStorage.getItem("admin_data");if(!t||!n)return console.log("\u274c Non autenticato, reindirizzamento al login..."),void e("/amministrazione");console.log("\u2705 Autenticazione verificata!"),c(!1)},w=async()=>{try{console.log("\ud83d\udce6 Caricamento prodotti...");const e=await fetch("".concat(It,"/prodotti.php")),t=await e.json();if(console.log("\ud83d\udccb Prodotti ricevuti:",t),t.success){const e=t.data||[],a=await Promise.all(e.map(async e=>{var t;if(e.attivo=1===e.attivo||"1"===e.attivo||!0===e.attivo,e.quantita=parseInt(null!==(t=e.quantita)&&void 0!==t?t:0,10),e.foto)try{const t=await fetch("".concat(It,"/get_images.php?folder=").concat(e.foto)),n=await t.json();n.success&&n.data.main_image&&(e.mainImageUrl=n.data.main_image.full_url)}catch(n){console.warn("\u26a0\ufe0f Errore caricamento immagini prodotto ".concat(e.titolo,":"),n)}return e}));n(a)}else console.error("\u274c Errore caricamento prodotti:",t.error)}catch(e){console.error("\ud83d\udca5 Errore caricamento prodotti:",e)}},N=async()=>{try{console.log("\ud83d\udcc1 Caricamento categorie...");const e=await fetch("".concat(It,"/categorie.php")),t=await e.json();console.log("\ud83d\udccb Categorie ricevute:",t),t.success?l(t.data||[]):console.error("\u274c Errore caricamento categorie:",t.error)}catch(e){console.error("\ud83d\udca5 Errore caricamento categorie:",e)}},_=()=>{let e=[...t];if(x.searchText.trim()){const t=x.searchText.toLowerCase();e=e.filter(e=>{var n,a;const r=(null===(n=e.titolo)||void 0===n?void 0:n.toLowerCase())||"",i=(null===(a=e.descrizione)||void 0===a?void 0:a.toLowerCase())||"",l=(e=>{const t=o.find(t=>t.id_categoria===e);return t?t.nome:"N/A"})(e.id_categoria).toLowerCase();return r.includes(t)||i.includes(t)||l.includes(t)})}e.sort((e,t)=>{var n,a;let r,i;switch(x.sortBy){case"titolo":r=(null===(n=e.titolo)||void 0===n?void 0:n.toLowerCase())||"",i=(null===(a=t.titolo)||void 0===a?void 0:a.toLowerCase())||"";break;case"prezzo":r=parseFloat(e.prezzo)||0,i=parseFloat(t.prezzo)||0;break;case"data_creazione":r=new Date(e.data_creazione)||new Date(0),i=new Date(t.data_creazione)||new Date(0);break;default:return 0}return"asc"===x.sortOrder?r>i?1:-1:r<i?1:-1}),i(e)},S=e=>e.mainImageUrl?e.mainImageUrl:"/placeholder-product.png";return s?(0,De.jsx)("div",{className:"products-page",children:(0,De.jsx)("div",{className:"loading-spinner"})}):(0,De.jsxs)("div",{className:"products-page admin-page",children:[(0,De.jsxs)("aside",{className:"admin-sidebar",children:[(0,De.jsx)("div",{className:"sidebar-header",children:(0,De.jsx)("img",{src:"".concat("/shop","/logomuseo.png"),alt:"Museo Stibbert",className:"sidebar-logo"})}),(0,De.jsx)("div",{className:"sidebar-admin-title",children:(0,De.jsxs)("h1",{children:[(0,De.jsx)("strong",{style:{color:"var(--bianco), font-weight: 700, font-size: 1.2rem"},children:"Museo Stibbert"})," Amministrazione"]})}),(0,De.jsxs)("nav",{className:"sidebar-nav",children:[(0,De.jsxs)("button",{className:"nav-item",onClick:()=>
2e("/amministrazione/dashboard"),children:[(0,De.jsx)("i",{className:"fas fa-tachometer-alt"}),(0,De.jsx)("span",{children:"Dashboard"})]}),(0,De.jsxs)("button",{className:"nav-item",onClick:()=>e("/amministrazione/categorie"),children:[(0,De.jsx)("i",{className:"fas fa-tags"}),(0,De.jsx)("span",{children:"Categorie"})]}),(0,De.jsxs)("button",{className:"nav-item active",children:[(0,De.jsx)("i",{className:"fas fa-box"}),(0,De.jsx)("span",{children:"Prodotti"})]}),(0,De.jsxs)("button",{className:"nav-item",onClick:()=>e("/amministrazione/ordini"),children:[(0,De.jsx)("i",{className:"fas fa-shopping-cart"}),(0,De.jsx)("span",{children:"Ordini"})]}),(0,De.jsxs)("button",{className:"nav-item",onClick:()=>e("/amministrazione/impostazioni"),children:[(0,De.jsx)("i",{className:"fas fa-cog"}),(0,De.jsx)("span",{children:"Impostazioni"})]})]}),(0,De.jsx)("div",{className:"sidebar-footer",children:(0,De.jsxs)("button",{className:"nav-item logout-item",onClick:()=>{localStorage.removeItem("admin_logged_in"),localStorage.removeItem("admin_data"),e("/amministrazione")},children:[(0,De.jsx)("i",{className:"fas fa-sign-out-alt"}),(0,De.jsx)("span",{children:"Logout"})]})})]}),(0,De.jsxs)("main",{className:"admin-main",children:[(0,De.jsx)("div",{className:"page-header",children:(0,De.jsxs)("div",{className:"header-content",children:[(0,De.jsx)("h1",{children:"Prodotti"}),(0,De.jsx)("div",{className:"header-actions",children:(0,De.jsxs)("button",{className:"btn btn-primary",onClick:()=>d(!0),children:[(0,De.jsx)("i",{className:"fas fa-plus"}),"Aggiungi Prodotto"]})})]})}),(0,De.jsxs)("div",{className:"main-content",children:[(0,De.jsxs)("div",{className:"filters-bar",children:[(0,De.jsx)("div",{className:"search-group",children:(0,De.jsx)("input",{id:"search-input",type:"text",placeholder:"Cerca per nome, categoria o descrizione...",value:x.searchText,onChange:e=>{j(t=>Ae(Ae({},t),{},{searchText:e.target.value}))},className:"search-input"})}),(0,De.jsxs)("div",{className:"controls-group",children:[(0,De.jsxs)("div",{className:"sort-group",children:[(0,De.jsx)("label",{htmlFor:"sort-select",children:"Ordina per:"}),(0,De.jsxs)("select",{id:"sort-select",className:"sort-select",value:"".concat(x.sortBy,"-").concat(x.sortOrder),onChange:e=>{const[t,n]=e.target.value.split("-");j(e=>Ae(Ae({},e),{},{sortBy:t,sortOrder:n}))},children:[(0,De.jsx)("option",{value:"data_creazione-desc",children:"Data (Pi\xf9 Recenti)"}),(0,De.jsx)("option",{value:"data_creazione-asc",children:"Data (Pi\xf9 Vecchi)"}),(0,De.jsx)("option",{value:"prezzo-asc",children:"Prezzo (Crescente)"}),(0,De.jsx)("option",{value:"prezzo-desc",children:"Prezzo (Decrescente)"}),(0,De.jsx)("option",{value:"titolo-asc",children:"Nome (A-Z)"}),(0,De.jsx)("option",{value:"titolo-desc",children:"Nome (Z-A)"})]})]}),(0,De.jsx)("button",{className:"reset-filters-btn",onClick:()=>{j({searchText:"",sortBy:"data_creazione",sortOrder:"desc"})},children:"Reset Filtri"})]})]}),(0,De.jsx)("div",{className:"table-container",children:(0,De.jsxs)("table",{className:"products-table",children:[(0,De.jsx)("thead",{children:(0,De.jsxs)("tr",{children:[(0,De.jsx)("th",{children:"PRODOTTO"}),(0,De.jsx)("th",{children:"QUANTIT\xc0"}),(0,De.jsx)("th",{children:"PREZZO"}),(0,De.jsx)("th",{children:"STATO"}),(0,De.jsx)("th",{children:"AZIONI"})]})}),(0,De.jsx)("tbody",{children:0===a.length?(0,De.jsx)("tr",{children:(0,De.jsx)("td",{colSpan:"5",className:"empty-state",children:(0,De.jsxs)("div",{className:"empty-message",children:[(0,De.jsx)("i",{className:"fas fa-box-open"}),(0,De.jsx)("p",{children:"Nessun prodotto trovato"}),(0,De.jsx)("button",{className:"btn btn-primary",onClick:()=>d(!0),children:"Aggiungi il primo prodotto"})]})})}):a.map(e=>{return(0,De.jsxs)("tr",{children:[(0,De.jsxs)("td",{className:"admin-product-info",children:[(0,De.jsxs)("div",{className:"product-id",children:["#",e.id_prodotto]}),(0,De.jsx)("div",{className:"admin-product-image",children:(0,De.jsx)("img",{src:S(e),alt:e.titolo})}),(0,De.jsx)("span",{className:"product-title",children:e.titolo})]}),(0,De.jsx)("td",{className:"quantity-cell",children:(0,De.jsx)("span",{className:"quantity-badge ".concat(e.quantita>0?"in-stock":"out-stock"),children:e.quantita>0?e.quantita:"0"})}),(0,De.jsx)("td",{className:"price-cell",children:(0,De.jsx)("span",{className:"price",children:(t=e.prezzo,new Intl.NumberFormat("it-IT",{style:"currency",currency:"EUR"}).format(t))})}),(0,De.jsx)("td",{className:"status-cell",children:(0,De.jsx)("span",{className:"status-badge ".concat(e.attivo?"active":"inactive"),children:e.attivo?"Attivo":"Non Attivo"})}),(0,De.jsxs)("td",{className:"actions-cell",children:[(0,De.jsx)("button",{className:"btn-edit",onClick:()=>(e=>{h(e),f(!0)})(e),title:"Modifica prodotto",children:(0,De.jsx)("i",{className:"fas fa-edit"})}),(0,De.jsx)("button",{className:"btn-delete",onClick:()=>(e=>{y(e),v(!0)})(e),title:"Elimina prodotto",children:(0,De.jsx)("i",{className:"fas fa-tras
2h"})})]})]},e.id_prodotto);var t})})]})})]})]}),(0,De.jsx)(Et,{isOpen:u,onClose:()=>d(!1),onAddProduct:async e=>{console.log("\ud83d\udce6 Aggiunta prodotto:",e);try{const t=await fetch("".concat(It,"/prodotti.php"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),n=await t.json();if(console.log("\ud83d\udccb Risposta aggiunta prodotto:",n),!n.success)throw new Error(n.error||"Errore durante l'aggiunta del prodotto");console.log("\u2705 Prodotto aggiunto con successo!"),w(),d(!1)}catch(t){throw console.error("\ud83d\udca5 Errore aggiunta prodotto:",t),t}},categories:o}),(0,De.jsx)(Dt,{isOpen:m,onClose:()=>{f(!1),h(null)},onEditProduct:async e=>{console.log("\u270f\ufe0f Modifica prodotto:",e);try{const t=await fetch("".concat(It,"/prodotti.php"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),n=await t.json();if(console.log("\ud83d\udccb Risposta modifica prodotto:",n),!n.success)throw new Error(n.error||"Errore durante la modifica del prodotto");console.log("\u2705 Prodotto modificato con successo!"),w(),f(!1),h(null)}catch(t){throw console.error("\ud83d\udca5 Errore modifica prodotto:",t),t}},product:p,categories:o}),(0,De.jsx)(Lt,{isOpen:g,onClose:()=>{v(!1),y(null)},onConfirm:()=>(async e=>{console.log("\ud83d\uddd1\ufe0f Eliminazione prodotto:",e);try{const a=t.find(t=>t.id_prodotto===e),r=null===a||void 0===a?void 0:a.foto,i=await fetch("".concat(It,"/prodotti.php"),{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e})}),o=await i.json();if(console.log("\ud83d\udccb Risposta eliminazione prodotto:",o),!o.success)throw new Error(o.error||"Errore durante l'eliminazione del prodotto");if(console.log("\u2705 Prodotto eliminato con successo dal database!"),r){console.log("\ud83d\udcf8 Eliminazione cartella immagini:",r);try{const e=await fetch("".concat(It,"/delete_images.php"),{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({folder:r})}),t=await e.json();console.log("\ud83d\udccb Risposta eliminazione immagini:",t),t.success?console.log("\u2705 Cartella immagini eliminata con successo!"):console.warn("\u26a0\ufe0f Impossibile eliminare la cartella immagini:",t.error)}catch(n){console.warn("\u26a0\ufe0f Errore durante l'eliminazione delle immagini:",n)}}console.log("\u2705 Prodotto e immagini eliminate con successo!"),w(),v(!1),y(null)}catch(a){throw console.error("\ud83d\udca5 Errore eliminazione prodotto:",a),a}})(null===b||void 0===b?void 0:b.id_prodotto),title:"Conferma Eliminazione",message:'Sei sicuro di voler eliminare il prodotto "'.concat(null===b||void 0===b?void 0:b.titolo,'"?'),confirmText:"Elimina Prodotto"})]})},Mt="/shop/backend/api",Ut=()=>{var e,t,n;const a=ne(),[i,o]=(0,r.useState)([]),[l,s]=(0,r.useState)(!0),[c,u]=(0,r.useState)(!1),[d,m]=(0,r.useState)(null),[f,p]=(0,r.useState)([]),[h,g]=(0,r.useState)({searchText:"",sortBy:"data_ordine",sortOrder:"desc",dateFrom:"",dateTo:""});(0,r.useEffect)(()=>{v(),b()},[]),(0,r.useEffect)(()=>{j()},[i,h]);const v=()=>{console.log("\ud83d\udd0d Verifica autenticazione locale...");const e=localStorage.getItem("admin_logged_in"),t=localStorage.getItem("admin_data");if(!e||!t)return console.log("\u274c Non autenticato, reindirizzamento al login..."),void a("/amministrazione");console.log("\u2705 Autenticazione verificata!"),s(!1)},b=async()=>{try{console.log("\ud83d\udce6 Caricamento ordini...");const e=await fetch("".concat(Mt,"/ordini.php")),t=await e.json();console.log("\ud83d\udccb Ordini caricati:",t),t.success?o(t.data||[]):console.error("\u274c Errore caricamento ordini:",t.error)}catch(e){console.error("\ud83d\udca5 Errore caricamento ordini:",e)}},y=async e=>{console.log("\ud83d\udc41\ufe0f Visualizzazione dettagli ordine:",e.id_ordine);const t=await(async e=>{try{console.log("\ud83d\udd0d Caricamento dettagli ordine:",e);const t=await fetch("".concat(Mt,"/ordini.php?id=").concat(e)),n=await t.json();return console.log("\ud83d\udccb Dettagli ordine caricati:",n),n.success?n.data:(console.error("\u274c Errore caricamento dettagli ordine:",n.error),null)}catch(t){return console.error("\ud83d\udca5 Errore caricamento dettagli ordine:",t),null}})(e.id_ordine);t&&(m(t),u(!0))},x=e=>new Date(e).toLocaleDateString("it-IT",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}),j=()=>{let e=[...i];if(h.searchText.trim()){const t=h.searchText.toLowerCase();e=e.filter(e=>{var n,a,r,i,o;const l=(null===(n=e.nome_cliente)||void 0===n?void 0:n.toLowerCase())||"",s=(null===(a=e.citta_cliente)||void 0===a?void 0:a.toLowerCase())||"",c=(null===(r=e.provincia_cliente)||void 0===r?void 0:r.toLowerCase())||"",u=(null===(i=e.email_cliente)||void 0===i?void 0:i.toLowerCase())||"",d=(null===(o=e.prodotti)||void 0===o?void 0:o.some(e=>{var n;return null===(n=e.nome_prodotto)||void 0===n?void 0:n.toLowerCase().includes(t)}))||!1;return l.includes(t)||s.includes(t)||c.includes(t)||u.includes(t)||d})}h.dateFrom&&(e=e.filter(e=>new Date(e.data_ordine)>=new Date(h.dateFrom))),h.dateTo&&(e=e.filter(e=>{const t=new Date(e.data_ordine),n=new Date(h.dateTo);return n.setDate(n.getDate()+1),t<n})),e.sort((e,t)=>
2{var n,a;let r,i;switch(h.sortBy){case"nome_cliente":r=(null===(n=e.nome_cliente)||void 0===n?void 0:n.toLowerCase())||"",i=(null===(a=t.nome_cliente)||void 0===a?void 0:a.toLowerCase())||"";break;case"totale":r=parseFloat(e.totale)||0,i=parseFloat(t.totale)||0;break;case"data_ordine":r=new Date(e.data_ordine)||new Date(0),i=new Date(t.data_ordine)||new Date(0);break;case"pagato":r=1===Number(e.pagato)?1:0,i=1===Number(t.pagato)?1:0;break;default:return 0}return"asc"===h.sortOrder?r>i?1:-1:r<i?1:-1}),p(e)},k=e=>"\u20ac".concat(parseFloat(e).toFixed(2)),w=e=>1===Number(e)?(0,De.jsx)("span",{className:"status-badge paid",children:"Pagato"}):(0,De.jsx)("span",{className:"status-badge unpaid",children:"Non Pagato"}),N=e=>1===Number(e)?(0,De.jsx)("span",{className:"status-badge shipped",children:"Spedito"}):(0,De.jsx)("span",{className:"status-badge not-shipped",children:"Non Spedito"});return l?(0,De.jsx)("div",{className:"ordini-page",children:(0,De.jsx)("div",{className:"loading",children:"Caricamento..."})}):(0,De.jsxs)("div",{className:"ordini-page admin-page",children:[(0,De.jsxs)("aside",{className:"admin-sidebar",children:[(0,De.jsx)("div",{className:"sidebar-header",children:(0,De.jsx)("img",{src:"".concat("/shop","/logomuseo.png"),alt:"Museo Stibbert",className:"sidebar-logo"})}),(0,De.jsx)("div",{className:"sidebar-admin-title",children:(0,De.jsxs)("h1",{children:[(0,De.jsx)("strong",{style:{color:"var(--bianco), font-weight: 700, font-size: 1.2rem"},children:"Museo Stibbert"})," Amministrazione"]})}),(0,De.jsxs)("nav",{className:"sidebar-nav",children:[(0,De.jsxs)("button",{className:"nav-item",onClick:()=>a("/amministrazione/dashboard"),children:[(0,De.jsx)("i",{className:"fas fa-tachometer-alt"}),(0,De.jsx)("span",{children:"Dashboard"})]}),(0,De.jsxs)("button",{className:"nav-item",onClick:()=>a("/amministrazione/categorie"),children:[(0,De.jsx)("i",{className:"fas fa-tags"}),(0,De.jsx)("span",{children:"Categorie"})]}),(0,De.jsxs)("button",{className:"nav-item",onClick:()=>a("/amministrazione/prodotti"),children:[(0,De.jsx)("i",{className:"fas fa-box"}),(0,De.jsx)("span",{children:"Prodotti"})]}),(0,De.jsxs)("button",{className:"nav-item active",children:[(0,De.jsx)("i",{className:"fas fa-shopping-cart"}),(0,De.jsx)("span",{children:"Ordini"})]}),(0,De.jsxs)("button",{className:"nav-item",onClick:()=>a("/amministrazione/impostazioni"),children:[(0,De.jsx)("i",{className:"fas fa-cog"}),(0,De.jsx)("span",{children:"Impostazioni"})]})]}),(0,De.jsx)("div",{className:"sidebar-footer",children:(0,De.jsxs)("button",{className:"nav-item logout-item",onClick:()=>{localStorage.removeItem("admin_logged_in"),localStorage.removeItem("admin_data"),a("/amministrazione")},children:[(0,De.jsx)("i",{className:"fas fa-sign-out-alt"}),(0,De.jsx)("span",{children:"Logout"})]})})]}),(0,De.jsxs)("main",{className:"admin-main",children:[(0,De.jsx)("div",{className:"page-header",children:(0,De.jsxs)("div",{className:"header-content",children:[(0,De.jsx)("h1",{children:"Ordini"}),(0,De.jsx)("div",{className:"header-actions"})]})}),(0,De.jsxs)("div",{className:"main-content",children:[(0,De.jsxs)("div",{className:"filters-container",children:[(0,De.jsx)("div",{className:"date-bar",children:(0,De.jsxs)("div",{className:"date-group",children:[(0,De.jsxs)("div",{className:"date-input-group",children:[(0,De.jsx)("label",{htmlFor:"date-from",children:"Da:"}),(0,De.jsx)("input",{id:"date-from",type:"date",value:h.dateFrom,onChange:e=>{g(t=>Ae(Ae({},t),{},{dateFrom:e.target.value}))},className:"date-input"})]}),(0,De.jsxs)("div",{className:"date-input-group",children:[(0,De.jsx)("label",{htmlFor:"date-to",children:"A:"}),(0,De.jsx)("input",{id:"date-to",type:"date",value:h.dateTo,onChange:e=>{g(t=>Ae(Ae({},t),{},{dateTo:e.target.value}))},className:"date-input"})]})]})}),(0,De.jsxs)("div",{className:"filters-bar",children:[(0,De.jsx)("div",{className:"search-group",children:(0,De.jsx)("input",{id:"search-input",type:"text",placeholder:"Cerca per nome, citt\xe0, provincia, email, prodotto...",value:h.searchText,onChange:e=>{g(t=>Ae(Ae({},t),{},{searchText:e.target.value}))},className:"search-input"})}),(0,De.jsxs)("div",{className:"controls-group",children:[(0,De.jsxs)("div",{className:"sort-group",children:[(0,De.jsx)("label",{htmlFor:"sort-select",children:"Ordina per:"}
2),(0,De.jsxs)("select",{id:"sort-select",className:"sort-select",value:"".concat(h.sortBy,"-").concat(h.sortOrder),onChange:e=>{const[t,n]=e.target.value.split("-");g(e=>Ae(Ae({},e),{},{sortBy:t,sortOrder:n}))},children:[(0,De.jsx)("option",{value:"data_ordine-desc",children:"Data (Pi\xf9 Recenti)"}),(0,De.jsx)("option",{value:"data_ordine-asc",children:"Data (Pi\xf9 Vecchi)"}),(0,De.jsx)("option",{value:"totale-asc",children:"Totale (Crescente)"}),(0,De.jsx)("option",{value:"totale-desc",children:"Totale (Decrescente)"}),(0,De.jsx)("option",{value:"nome_cliente-asc",children:"Cliente (A-Z)"}),(0,De.jsx)("option",{value:"nome_cliente-desc",children:"Cliente (Z-A)"}),(0,De.jsx)("option",{value:"pagato-desc",children:"Pagato (Prima)"}),(0,De.jsx)("option",{value:"pagato-asc",children:"Non Pagato (Prima)"})]})]}),(0,De.jsx)("button",{className:"reset-filters-btn",onClick:()=>{g({searchText:"",sortBy:"data_ordine",sortOrder:"desc",dateFrom:"",dateTo:""})},children:"Reset Filtri"})]})]})]}),(0,De.jsx)("div",{className:"ordini-table-container",children:0===f.length?(0,De.jsxs)("div",{className:"empty-state",children:[(0,De.jsx)("i",{className:"fas fa-shopping-cart"}),(0,De.jsx)("h3",{children:"Nessun ordine presente"}),(0,De.jsx)("p",{children:"Gli ordini appariranno qui quando i clienti effettueranno acquisti"})]}):(0,De.jsxs)("table",{className:"ordini-table",children:[(0,De.jsx)("thead",{children:(0,De.jsxs)("tr",{children:[(0,De.jsx)("th",{children:"ID Ordine"}),(0,De.jsx)("th",{children:"Cliente"}),(0,De.jsx)("th",{children:"Totale"}),(0,De.jsx)("th",{children:"Stato"}),(0,De.jsx)("th",{children:"Spedito"}),(0,De.jsx)("th",{children:"Data"}),(0,De.jsx)("th",{children:"Azioni"})]})}),(0,De.jsx)("tbody",{children:f.map(e=>{var t;return(0,De.jsxs)("tr",{children:[(0,De.jsx)("td",{className:"ordine-id",children:(0,De.jsxs)("strong",{children:["#",e.id_ordine]})}),(0,De.jsx)("td",{className:"ordine-cliente",children:(0,De.jsx)("div",{className:"cliente-info",children:(0,De.jsx)("strong",{children:e.nome_cliente})})}),(0,De.jsx)("td",{className:"ordine-totale",children:(0,De.jsx)("strong",{children:k(e.totale)})}),(0,De.jsx)("td",{className:"ordine-stato",children:w(e.pagato)}),(0,De.jsx)("td",{className:"ordine-spedito",children:N(null!==(t=e.spedito)&&void 0!==t?t:0)}),(0,De.jsx)("td",{className:"ordine-data",children:x(e.data_ordine)}),(0,De.jsx)("td",{className:"ordine-actions",children:(0,De.jsx)("button",{className:"btn btn-sm btn-primary",onClick:()=>y(e),title:"Visualizza Dettagli",children:(0,De.jsx)("i",{className:"fas fa-eye"})})})]},e.id_ordine)})})]})})]})]}),c&&d&&(0,De.jsx)("div",{className:"modal-overlay",onClick:()=>u(!1),children:(0,De.jsxs)("div",{className:"modal-ordini-dettagli",onClick:e=>e.stopPropagation(),children:[(0,De.jsxs)("div",{className:"modal-header",children:[(0,De.jsxs)("h2",{children:["Dettagli Ordine #",d.id_ordine]}),(0,De.jsx)("button",{className:"modal-close",onClick:()=>u(!1),children:(0,De.jsx)("i",{className:"fas fa-times"})})]}),(0,De.jsx)("div",{className:"modal-body",children:(0,De.jsxs)("div",{className:"modal-grid",children:[(0,De.jsxs)("div",{className:"info-card client-card",children:[(0,De.jsxs)("div",{className:"card-header",children:[(0,De.jsx)("div",{className:"card-icon",children:(0,De.jsx)("i",{className:"fas fa-user"})}),(0,De.jsx)("h4",{children:"Cliente"})]}),(0,De.jsxs)("div",{className:"card-content",children:[(0,De.jsxs)("div",{className:"info-row",children:[(0,De.jsx)("div",{className:"info-label",children:"Nome"}),(0,De.jsx)("div",{className:"info-value",children:d.nome_cliente})]}),(0,De.jsxs)("div",{className:"info-row",children:[(0,De.jsx)("div",{className:"info-label",children:"Email"}),(0,De.jsx)("div",{className:"info-value email-value",children:d.email_cliente})]}),(0,De.jsxs)("div",{className:"info-row",children:[(0,De.jsx)("div",{className:"info-label",children:"Telefono"}),(0,De.jsx)("div",{className:"info-value",children:d.telefono_cliente})]})]})]}),(0,De.jsxs)("div",{className:"info-card address-card",children:[(0,De.jsxs)("div",{className:"card-header",children:[(0,De.jsx)("div",{className:"card-icon",children:(0,De.jsx)("i",{className:"fas fa-map-marker-alt"})}),(0,De.jsx)("h4",{children:"Spedizione"})]}),(0,De.jsxs)("div",{className:"card-content",children:[(0,De.jsxs)("div",{className:"info-row",children:[(0,De.jsx)("div",{className:"info-label",children:"Via"}),(0,De.jsx)("div",{className:"info-value",children:d.indirizzo_cliente})]}),(0,De.jsxs)("div",{className:"info-row",children:[(0,De.jsx)("div",{className:"info-label",children:"Civico"}),(0,De.jsx)("div",{className:"info-value",children:d.civico_cliente})]}),(0,De.jsxs)("div",{className:"info-row",children:[(0,De.jsx)("div",{className:"info-label",children:"CAP"}),(0,De.jsx)("div",{className:"info-value",children:d.cap_cliente})]}),(0,De.jsxs)("div",{className:"info-row",children:[(0,De.jsx)("div",{className:"info-label",children:"Citt\xe0"}),(0,De.jsx)("div",{className:"info-value",children:d.citta_cliente})]}),(0,De.jsxs)("div",{className:"info-row",children:[(0,De.jsx)("div",{className:"info-label",children:"Provincia"}),(0,De.jsx)("div",{className:"info-value",children:d.provincia_cliente})]}),(0,De.jsxs)("div",{className:"info-row",children:[(0,De.jsx)("div",{className:"info-label",children:"Stato"}),(0,De.jsx)("div",{className:"info-value",children:d.stato_cliente})]})]})]}),(0,De.jsxs)("div",{className:"info-card products-card",children:[(0,De.jsxs)("div",{className:"card-header",children:[(0,De.jsx)("div",{className:"card-icon",children:(0,De.jsx)("i",{className:"fas fa-box"})}),(0,De.jsx)("h4",{children:"Prodotti Ordinati"})]}),(0,De.jsx)("div",{className:"card-content",children:(0,De.jsx)("div",{className:"products-list",children:d.dettagli&&d.dettagli.map((e,t)=>(0,De.jsxs)("div",{className:"product-detail",children:[(0,De.jsxs)("div",{className:"info-row",children:[(0,De.jsx)("div",{className:"info-label",children:"Prodotto"}),(0,De.jsx)("div",{className:"info-value product-name",children:e.nome_prodotto})]}),(0,De.jsxs)("div",{className:"info-row",children:[(0,De.jsx)("div",{className:"info-label",children:"ID Prodotto"}),(0,De.jsxs)("div",{className:"info-value",children:["#",e.id_prodotto]})]}),(0,De.jsxs)("div",{className:"info-row",children:[(0,De.jsx)("div",{className:"info-label",children:"Quantit\xe0"}),(0,De.jsx)("div",{className:"info-value",children:e.quantita})]}),(0,De.jsxs)("div",{className:"info-row",children:[(0,De.jsx)("div",{className:"info-label",children:"Prezzo Unitario"}),(0,De.jsx)("div",{className:"info-value",children:k(e.prezzo_unitario)})]}),(0,De.jsxs)("div",{className:"info-row total-row",children:[(0,De.jsx)("div",{className:"info-label",children:"Subtotale"}),(0,De.jsx)("div",{className:"info-value total-price",children:k(e.prezzo_unitario*e.quantita)})]})]},t))})})]}),(0,De.jsxs)("div",{className:"info-card summary-card",children:[(0,De.jsxs)("div",{className:"card-header",children:[(0,De.jsx)("div",{className:"card-icon",children:(0,De.jsx)("i",{className:"fas fa-receipt"})}),(0,De.jsx)("h4",{children:"Riepilogo Ordine"})]}),(0,De.jsx)("div",{className:"card-content",children:(0,De.jsxs)("div",{className:"summary-list",children:[(0,De.jsxs)("div",{className:"info-row",children:[(0,De.jsx)("div",{className:"info-label",children:"Data Ordine"}),(0,De.jsx)("div",{className:"info-value",children:x(d.data_ordine)})]}),(0,De.jsxs)("div",{className:"info-row",children:[(0,De.jsx)("div",{className:"info-label",children:"Metodo Pagamento"}),(0,De.jsx)("div",{className:"info-value",children:"Nexi"})]}),(0,De.jsxs)("div",{className:"info-row",children:[(0,De.jsx)("div",{className:"info-label",children:"Stato Pagamento"}),(0,De.jsx)("div",{className:"info-value",children:w(d.pagato)})]}),(0,De.jsxs)("div",{className:"info-row",children:[(0,De.jsx)("div",{className:"info-label",children:"Stato Spedizione"}),(0,De.jsx)("div",{className:"info-value",children:(0,De.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"1rem",justifyContent:"flex-end"},children:[N(null!==(e=d.spedito)&&void 0!==e?e:0),(0,De.jsxs)("label",{className:"shipping-toggle",style:{display:"flex",alignItems:"center",gap:"0.5rem",cursor:"pointer"},children:[(0,De.jsx)("input",{type:"checkbox",checked:1===Number(null!==(t=d.spedito)&&void 0!==t?t:0),onChange:e=>(async(e,t)=>{try{console.log("\ud83d\udce6 Aggiornamento stato spedizione:",e,t);const n=await fetch("".concat(Mt,"/ordini.php"),{method:"PUT",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({id_ordine:e,spedito:t?1:0})}),a=await n.json();a.success?(console.log("\u2705 Stato spedizione aggiornato:",a),o(n=>n.map(n=>n.id_ordine===e?Ae(Ae({},n),{},{spedito:t?1:0}):n)),d&&d.id_ordine===e&&m(e=>Ae(Ae({},e),{},{spedito:t?1:0}))):(console.error("\u274c Errore aggiornamento stato spedizione:",a.error),alert("Errore durante l'aggiornamento dello stato di spedizione: "+(a.error||"Errore sconosciuto")))}catch(n){console.error("\ud83d\udca5 Errore aggiornamento stato spedizione:",n),alert("Errore durante l'aggiornamento dello stato di spedizione")}})(d.id_ordine,e.target.checked),style:{width:"18px",height:"18px",cursor:"pointer"}}),(0,De.jsx)("span",{style:{fontSize:"0.9rem",color:"var(--grigio-scuro)"},children:1===Number(null!==(n=d.spedito)&&void 0!==n?n:0)?"Segna come non spedito":"Segna come spedito"})]})]})})]}),(0,De.jsxs)("div",{className:"summary-total",children:[(0,De.jsx)("div",{className:"total-label",children:"TOTALE ORDINE"}),(0,De.jsx)("div",{className:"total-value",children:k(d.totale)})]})]})})]})]})})]})})]})},qt=e=>{let{isOpen:t,onClose:n,onEditUsername:a,currentUsername:i}=e;const[o,l]=(0,r.useState)({username:i||"",currentPassword:""}),[s,c]=(0,r.useState)(!1),[u,d]=(0,r.useState)(null);(0,r.useEffect)(()=>
2{l(i?{username:i,currentPassword:""}:{username:"",currentPassword:""}),d(null)},[i,t]);const m=e=>{l(Ae(Ae({},o),{},{[e.target.name]:e.target.value}))};return t?(0,De.jsx)("div",{className:"modal-overlay",onClick:n,children:(0,De.jsxs)("div",{className:"modal-content",onClick:e=>e.stopPropagation(),children:[(0,De.jsx)("button",{className:"modal-close-button",onClick:n,children:"\xd7"}),(0,De.jsx)("div",{className:"modal-header",children:(0,De.jsx)("h2",{children:"Modifica Nome Utente"})}),(0,De.jsx)("div",{className:"modal-body",children:(0,De.jsxs)("form",{onSubmit:async e=>{if(e.preventDefault(),c(!0),d(null),!o.username.trim())return d("Il nome utente non pu\xf2 essere vuoto"),void c(!1);if(o.username.trim().length<3)return d("Il nome utente deve essere di almeno 3 caratteri"),void c(!1);if(o.username.trim()===i)return d("Il nome utente \xe8 identico a quello attuale"),void c(!1);try{await a(o.username.trim(),o.currentPassword),n()}catch(t){d(t.message||"Errore durante l'aggiornamento del nome utente")}finally{c(!1)}},className:"modal-form",children:[(0,De.jsxs)("div",{className:"form-group",children:[(0,De.jsx)("label",{htmlFor:"currentPassword",children:"Password Attuale"}),(0,De.jsx)("input",{type:"password",id:"currentPassword",name:"currentPassword",value:o.currentPassword,onChange:m,required:!0,placeholder:"Inserisci password attuale",autoFocus:!0})]}),(0,De.jsxs)("div",{className:"form-group",children:[(0,De.jsx)("label",{htmlFor:"username",children:"Nuovo Nome Utente"}),(0,De.jsx)("input",{type:"text",id:"username",name:"username",value:o.username,onChange:m,required:!0,placeholder:"Inserisci nuovo nome utente"})]}),u&&(0,De.jsxs)("div",{className:"error-message",children:["\u26a0\ufe0f ",u]}),(0,De.jsxs)("div",{className:"modal-actions",children:[(0,De.jsx)("button",{type:"button",className:"btn btn-secondary",onClick:n,disabled:s,children:"Annulla"}),(0,De.jsx)("button",{type:"submit",className:"btn btn-primary",disabled:s,children:s?"Aggiornamento in corso...":"Aggiorna"})]})]})})]})}):null},Bt="/shop/backend/api",Ht=[{key:"italy",description:"Ordini con indirizzo di spedizione in Italia."},{key:"eu",description:"Destinazioni all'interno dell'Unione Europea (esclusa l'Italia)."},{key:"world",description:"Spedizioni verso paesi extra-UE."}],Vt=()=>{var e;const t=ne(),[n,a]=(0,r.useState)(null),[i,o]=(0,r.useState)(!0),[l,s]=(0,r.useState)(!1),[c,u]=(0,r.useState)({zones:ft(),fixed_shipping_enabled:!1,updated_at:null}),[d,m]=(0,r.useState)(!0),[f,p]=(0,r.useState)(!1),[h,g]=(0,r.useState)(null),[v,b]=(0,r.useState)(null),[y,x]=(0,r.useState)({currentPassword:"",newPassword:"",confirmPassword:""}),[j,k]=(0,r.useState)(!1),[w,N]=(0,r.useState)(null),[_,S]=(0,r.useState)(null);(0,r.useEffect)(()=>{z(),(async()=>{try{var e,t;m(!0),g(null);const n=await tt.getShipping(),a={zones:Ae(Ae({},ft()),(null===n||void 0===n?void 0:n.zones)||{}),fixed_shipping_enabled:null!==(e=null===n||void 0===n?void 0:n.fixed_shipping_enabled)&&void 0!==e&&e,updated_at:null!==(t=null===n||void 0===n?void 0:n.updated_at)&&void 0!==t?t:null};u(a),yt(a)}catch(n){g(n.message||"Errore nel recupero delle impostazioni di spedizione.")}finally{m(!1)}})()},[]);const z=()=>{console.log("\ud83d\udd0d Verifica autenticazione locale...");const e=localStorage.getItem("admin_logged_in"),n=localStorage.getItem("admin_data");if(!e||!n)return console.log("\u274c Non autenticato, reindirizzamento al login..."),void t("/amministrazione");console.log("\u2705 Autenticazione verificata!"),a(JSON.parse(n)),o(!1)},C=e=>{x(Ae(Ae({},y),{},{[e.target.name]:e.target.value}))},E=(e,t,n)=>{u(a=>{var r;return Ae(Ae({},a),{},{zones:Ae(Ae({},a.zones),{},{[e]:Ae(Ae({},null===(r=a.zones)||void 0===r?void 0:r[e]),{},{[t]:n})})})})};return i?(0,De.jsx)("div",{className:"settings-page",children:(0,De.jsx)("div",{className:"loading-spinner"})}):(0,De.jsxs)("div",{className:"settings-page admin-page",children:[(0,De.jsxs)("aside",{className:"admin-sidebar",children:[(0,De.jsx)("div",{className:"sidebar-header",children:(0,De.jsx)("img",{src:"".concat("/shop","/logomuseo.png"),alt:"Museo Stibbert",className:"sidebar-logo"})}),(0,De.jsx)("div",{className:"sidebar-admin-title",children:(0,De.jsxs)("h1",{children:[(0,De.jsx)("strong",{style:{color:"var(--bianco), font-weight: 700, font-size: 1.2rem"},children:"Museo Stibbert"})," Amministrazione"]})}),(0,De.jsxs)("nav",{className:"sidebar-nav",children:[(0,De.jsxs)("button",{className:"nav-item",onClick:()=>
2t("/amministrazione/dashboard"),children:[(0,De.jsx)("i",{className:"fas fa-tachometer-alt"}),(0,De.jsx)("span",{children:"Dashboard"})]}),(0,De.jsxs)("button",{className:"nav-item",onClick:()=>t("/amministrazione/categorie"),children:[(0,De.jsx)("i",{className:"fas fa-tags"}),(0,De.jsx)("span",{children:"Categorie"})]}),(0,De.jsxs)("button",{className:"nav-item",onClick:()=>t("/amministrazione/prodotti"),children:[(0,De.jsx)("i",{className:"fas fa-box"}),(0,De.jsx)("span",{children:"Prodotti"})]}),(0,De.jsxs)("button",{className:"nav-item",onClick:()=>t("/amministrazione/ordini"),children:[(0,De.jsx)("i",{className:"fas fa-shopping-cart"}),(0,De.jsx)("span",{children:"Ordini"})]}),(0,De.jsxs)("button",{className:"nav-item active",children:[(0,De.jsx)("i",{className:"fas fa-cog"}),(0,De.jsx)("span",{children:"Impostazioni"})]})]}),(0,De.jsx)("div",{className:"sidebar-footer",children:(0,De.jsxs)("button",{className:"nav-item logout-item",onClick:()=>{localStorage.removeItem("admin_logged_in"),localStorage.removeItem("admin_data"),t("/amministrazione")},children:[(0,De.jsx)("i",{className:"fas fa-sign-out-alt"}),(0,De.jsx)("span",{children:"Logout"})]})})]}),(0,De.jsxs)("main",{className:"admin-main",children:[(0,De.jsx)("div",{className:"page-header",children:(0,De.jsx)("div",{className:"header-content",children:(0,De.jsx)("h1",{children:"Impostazioni"})})}),(0,De.jsxs)("div",{className:"main-content",children:[(0,De.jsxs)("div",{className:"settings-container",children:[(0,De.jsx)("h2",{children:"Spedizione e soglia gratuita"}),(0,De.jsx)("p",{className:"settings-description",children:"Configura importi minimi e costi di spedizione per Italia, Unione Europea e paesi extra-UE. I valori vengono applicati automaticamente nel carrello e aggiornati dinamicamente al checkout in base all'indirizzo inserito dal cliente."}),(0,De.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),p(!0),b(null),g(null);try{var t,n,a,r;const e={zones:dt.reduce((e,t)=>{var n;const a=(null===(n=c.zones)||void 0===n?void 0:n[t])||{};return e[t]={free_shipping_min:parseFloat(a.free_shipping_min)||0,shipping_cost:parseFloat(a.shipping_cost)||0},e},{}),fixed_shipping_enabled:null!==(t=c.fixed_shipping_enabled)&&void 0!==t&&t},i=await tt.updateShipping(e),o={zones:Ae(Ae({},ft()),(null===i||void 0===i?void 0:i.zones)||e.zones),fixed_shipping_enabled:null!==(n=null!==(a=null===i||void 0===i?void 0:i.fixed_shipping_enabled)&&void 0!==a?a:e.fixed_shipping_enabled)&&void 0!==n&&n,updated_at:null!==(r=null===i||void 0===i?void 0:i.updated_at)&&void 0!==r?r:(new Date).toISOString()};u(o),yt(o),b("Impostazioni di spedizione aggiornate con successo!")}catch(i){g(i.message||"Errore durante il salvataggio delle impostazioni di spedizione.")}finally{p(!1)}},className:"settings-form",children:[(0,De.jsx)("div",{className:"shipping-zones-grid",children:Ht.map(e=>{var t,n,a;let{key:r,description:i}=e;const o=(null===(t=c.zones)||void 0===t?void 0:t[r])||{};return(0,De.jsxs)("div",{className:"zone-card",children:[(0,De.jsxs)("div",{className:"zone-card-header",children:[(0,De.jsx)("h3",{children:mt[r]}),(0,De.jsx)("span",{className:"zone-tag",children:"italy"===r?"Italia":"eu"===r?"UE":"Extra-UE"})]}),(0,De.jsx)("p",{className:"zone-card-description",children:i}),(0,De.jsxs)("div",{className:"zone-inputs",children:[(0,De.jsxs)("div",{className:"settings-item",children:[(0,De.jsx)("label",{children:"Ordine minimo per spedizione gratuita (\u20ac)"}),(0,De.jsx)("input",{type:"number",min:"0",step:"0.01",value:null!==(n=o.free_shipping_min)&&void 0!==n?n:0,onChange:e=>E(r,"free_shipping_min",e.target.value),disabled:d||f})]}),(0,De.jsxs)("div",{className:"settings-item",children:[(0,De.jsx)("label",{children:"Costo spedizione (\u20ac)"}),(0,De.jsx)("input",{type:"number",min:"0",step:"0.01",value:null!==(a=o.shipping_cost)&&void 0!==a?a:0,onChange:e=>E(r,"shipping_cost",e.target.value),disabled:d||f})]})]})]},r)})}),(0,De.jsxs)("div",{className:"fixed-shipping-option",children:[(0,De.jsxs)("div",{className:"checkbox-container",children:[(0,De.jsx)("input",{type:"checkbox",id:"fixed-shipping-checkbox",checked:null!==(e=c.fixed_shipping_enabled)&&void 0!==e&&e,onChange:e=>{u(t=>Ae(Ae({},t),{},{fixed_shipping_enabled:e.target.checked}))},disabled:d||f,className:"fixed-shipping-checkbox"}),(0,De.jsxs)("label",{htmlFor:"fixed-shipping-checkbox",className:"checkbox-label",children:[(0,De.jsx)("span",{className:"checkbox-custom"}),(0,De.jsx)("span",{className:"checkbox-text",children:"Applica sempre il costo fisso di spedizione"})]})]}),(0,De.jsx)("p",{className:"settings-hint",children:'Se abilitato, il costo di spedizione verr\xe0 sempre applicato indipendentemente dal valore del carrello. Il banner "aggiungi ancora X\u20ac per avere le spedizioni gratis" non verr\xe0 mostrato.'})]}),h&&(0,De.jsxs)("div",{className:"error-message",children:["\u26a0\ufe0f ",h]}),v&&(0,De.jsxs)("div",{className:"success-message",children:["\u2705 ",v]}),(0,De.jsx)("button",{type:"submit",className:"btn btn-primary",disabled:d||f,children:f?"
2Salvataggio...":"Salva impostazioni"}),c.updated_at&&(0,De.jsxs)("p",{className:"settings-hint",children:["Ultimo aggiornamento: ",(e=>{if(!e)return"";const t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleString("it-IT")})(c.updated_at)]})]})]}),(0,De.jsxs)("div",{className:"settings-container",children:[(0,De.jsx)("h2",{children:"Informazioni Account"}),(0,De.jsxs)("div",{className:"settings-item",children:[(0,De.jsx)("label",{children:"Nome Utente"}),(0,De.jsxs)("div",{className:"input-with-button",children:[(0,De.jsx)("input",{type:"text",value:(null===n||void 0===n?void 0:n.username)||"",readOnly:!0,className:"readonly-input"}),(0,De.jsxs)("button",{className:"btn btn-primary",onClick:()=>s(!0),children:[(0,De.jsx)("i",{className:"fas fa-edit"}),"Modifica"]})]})]})]}),(0,De.jsxs)("div",{className:"settings-container",children:[(0,De.jsx)("h2",{children:"Cambio Password"}),(0,De.jsxs)("form",{onSubmit:async e=>{if(e.preventDefault(),k(!0),N(null),S(null),y.newPassword!==y.confirmPassword)return N("Le password non coincidono"),void k(!1);if(y.newPassword.length<6)return N("La nuova password deve essere di almeno 6 caratteri"),void k(!1);try{console.log("\ud83d\udd12 Cambio password in corso...");const e=await fetch("".concat(Bt,"/admin.php"),{method:"PUT",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({action:"update_password",current_password:y.currentPassword,new_password:y.newPassword,confirm_password:y.confirmPassword,current_username:(null===n||void 0===n?void 0:n.username)||"stibbert-admin"})}),t=await e.json();if(console.log("\ud83d\udccb Risposta cambio password:",t),!t.success)throw new Error(t.error||"Errore durante il cambio password");S("Password aggiornata con successo!"),x({currentPassword:"",newPassword:"",confirmPassword:""})}catch(t){console.error("\ud83d\udca5 Errore cambio password:",t),N(t.message||"Errore durante il cambio password")}finally{k(!1)}},className:"password-form",children:[(0,De.jsxs)("div",{className:"settings-item",children:[(0,De.jsx)("label",{htmlFor:"currentPassword",children:"Password Attuale"}),(0,De.jsx)("input",{type:"password",id:"currentPassword",name:"currentPassword",value:y.currentPassword,onChange:C,required:!0,placeholder:"Inserisci password attuale"})]}),(0,De.jsxs)("div",{className:"settings-item",children:[(0,De.jsx)("label",{htmlFor:"newPassword",children:"Nuova Password"}),(0,De.jsx)("input",{type:"password",id:"newPassword",name:"newPassword",value:y.newPassword,onChange:C,required:!0,placeholder:"Inserisci nuova password"})]}),(0,De.jsxs)("div",{className:"settings-item",children:[(0,De.jsx)("label",{htmlFor:"confirmPassword",children:"Ripeti Nuova Password"}),(0,De.jsx)("input",{type:"password",id:"confirmPassword",name:"confirmPassword",value:y.confirmPassword,onChange:C,required:!0,placeholder:"Ripeti nuova password"})]}),w&&(0,De.jsxs)("div",{className:"error-message",children:["\u26a0\ufe0f ",w]}),_&&(0,De.jsxs)("div",{className:"success-message",children:["\u2705 ",_]}),(0,De.jsx)("button",{type:"submit",className:"btn btn-primary",disabled:j,children:j?"Aggiornamento in corso...":"Modifica Password"})]})]})]})]}),(0,De.jsx)(qt,{isOpen:l,onClose:()=>s(!1),onEditUsername:async(e,t)=>{try{console.log("\ud83d\udc64 Aggiornamento username:",e);const r=await fetch("".concat(Bt,"/admin.php"),{method:"PUT",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({action:"update_username",username:e,current_password:t,current_username:(null===n||void 0===n?void 0:n.username)||"stibbert-admin"})}),i=await r.json();if(console.log("\ud83d\udccb Risposta aggiornamento username:",i),!i.success)throw new Error(i.error||"Errore durante l'aggiornamento dell'username");const o=Ae(Ae({},n),{},{username:e});a(o),localStorage.setItem("admin_data",JSON.stringify(o)),s(!1)}catch(r){throw console.error("\ud83d\udca5 Errore aggiornamento username:",r),r}},currentUsername:(null===n||void 0===n?void 0:n.username)||""})]})},$t=()=>{const{t:e}=$e(),t=e("terms.title",{fallback:"Condizioni Generali di Acquisto"}),n=e("terms.last_update",{fallback:"Ultimo aggiornamento:"}),a=[{key:"section_1",title:e("terms.section_1_title"),content:e("terms.section_1_content")},{key:"section_2",title:e("terms.section_2_title"),content:e("terms.section_2_content")},{key:"section_3",title:e("terms.section_3_title"),content:e("terms.section_3_content")},{key:"section_4",title:e("terms.section_4_title"),content:e("terms.section_4_content")},{key:"section_5",title:e("terms.section_5_title"),content:e("terms.section_5_content")},{key:"section_6",title:e("terms.section_6_title"),content:e("terms.section_6_content")},{key:"section_7",title:e("terms.section_7_title"),content:e("terms.section_7_content")},{key:"section_9",title:e("terms.section_9_title"),content:e("terms.section_9_content")},{key:"section_11",title:e("terms.section_11_title"),content:e("terms.section_11_content")},{key:"section_12",title:e("terms.section_12_title"),content:e("terms.section_12_content")},{key:"section_13",title:e("terms.section_13_title"),content:e("terms.section_13_content")},{key:"section_14",title:e("terms.section_14_title"),content:e("terms.section_14_content")}];return(0,De.jsxs)("div",{className:"terms-page",children:[(0,De.jsxs)("div",{className:"container",children:[(0,De.jsxs)("header",{className:"terms-header",children:[(0,De.jsx)("h1",{children:t}),(0,De.jsxs)("p",{className:"terms-updated",children:[n," ",(0,De.jsx)("strong",{children:"27/11/2025"})]})]}),(0,De.jsx)("section",{className:"terms-content",children:a.map(e=>(0,De.jsxs)("div",{className:"terms-section",children:[(0,De.jsx)("h2",{children:e.title}),(0,De.jsx)("p",{children:e.content})]},e.key))})]}),(0,De.jsx)(Je,{})]})};const Wt=function(){return(0,De.jsx)(_e,{basename:"/shop",children:(0,De.jsx)(He,{children:(0,De.jsxs)(Ue,{children:[(0,De.jsx)(Ge,{}),(0,De.jsx)("div",{className:"App",children:(0,De.jsxs)(ye,{children:[(0,De.jsx)(ve,{path:"/",element:(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)(We,{}),(0,De.jsx)("main",{className:"main-content",children:(0,De.jsx)(ot,{})}),(0,De.jsx)(Qe,{})]})}),(0,De.jsx)(ve,{path:"/prodotto/:id",element:(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)(We,{}),(0,De.jsx)("main",{className:"main-content",children:(0,De.jsx)(lt,{})}),(0,De.jsx)(Qe,{})]})}),(0,De.jsx)(ve,{path:"/carrello",element:(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)(We,{}),(0,De.jsx)("main",{className:"main-content",children:(0,De.jsx)(wt,{})}),(0,De.jsx)(Qe,{})]})}),(0,De.jsx)(ve,{path:"/checkout",element:(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)(We,{}),(0,De.jsx)("main",{className:"main-content",children:(0,De.jsx)(Nt,{})}),(0,De.jsx)(Qe,{})]})}),(0,De.jsx)(ve,{path:"/checkout/nexi-result",element:(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)(We,{}),(0,De.jsx)("main",{className:"main-content",children:(0,De.jsx)(_t,{})}),(0,De.jsx)(Qe,{})]})}),(0,De.jsx)(ve,{path:"/checkout/nexi-cancel",element:(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)(We,{}),(0,De.jsx)("main",{className:"main-content",children:(0,De.jsx)(St,{})}),(0,De.jsx)(Qe,{})]})}),(0,De.jsx)(ve,{path:"/condizioni-di-acquisto",element:(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)(We,{}),(0,De.jsx)("main",{className:"main-content",children:(0,De.jsx)($t,{})}),(0,De.jsx)(Qe,{})]})}),(0,De.jsx)(ve,{path:"/amministrazione",element:(0,De.jsx)(zt,{})}),(0,De.jsx)(ve,{path:"/amministrazione/dashboard",element:(0,De.jsx)(Tt,{})}),(0,De.jsx)(ve,{path:"/amministrazione/categorie",element:(0,De.jsx)(At,{})}),(0,De.jsx)(ve,{path:"/amministrazione/prodotti",element:(0,De.jsx)(Rt,{})}),(0,De.jsx)(ve,{path:"/amministrazione/ordini",element:(0,De.jsx)(Ut,{})}),(0,De.jsx)(ve,{path:"/amministrazione/impostazioni",element:(0,De.jsx)(Vt,{})})]})})]})})})},Qt=e=>{e&&e instanceof Function&&n.e(453).then(n.bind(n,453)).then(t=>{let{getCLS:n,getFID:a,getFCP:r,getLCP:i,getTTFB:o}=t;n(e),a(e),r(e),i(e),o(e)})};o.createRoot(document.getElementById("root")).render((0,De.jsx)(r.StrictMode,{children:(0,De.jsx)(Wt,{})})),Qt()})(); 3//# sourceMappingURL=main.3c3c8c16.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.