(function(Nr,Bn){typeof exports=="object"&&typeof module<"u"?module.exports=Bn():typeof define=="function"&&define.amd?define(Bn):(Nr=typeof globalThis<"u"?globalThis:Nr||self,Nr.ReactGallery=Bn())})(this,function(){"use strict";function Nr(r,i){for(var s=0;su[c]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}function Bn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Ga={exports:{}},Rr={},Qa={exports:{}},me={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ya;function pp(){if(Ya)return me;Ya=1;var r=Symbol.for("react.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),p=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),E=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),C=Symbol.iterator;function T(S){return S===null||typeof S!="object"?null:(S=C&&S[C]||S["@@iterator"],typeof S=="function"?S:null)}var $={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,O={};function D(S,A,fe){this.props=S,this.context=A,this.refs=O,this.updater=fe||$}D.prototype.isReactComponent={},D.prototype.setState=function(S,A){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,A,"setState")},D.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function V(){}V.prototype=D.prototype;function J(S,A,fe){this.props=S,this.context=A,this.refs=O,this.updater=fe||$}var M=J.prototype=new V;M.constructor=J,R(M,D.prototype),M.isPureReactComponent=!0;var F=Array.isArray,H=Object.prototype.hasOwnProperty,K={current:null},b={key:!0,ref:!0,__self:!0,__source:!0};function de(S,A,fe){var ue,he={},ye=null,Ce=null;if(A!=null)for(ue in A.ref!==void 0&&(Ce=A.ref),A.key!==void 0&&(ye=""+A.key),A)H.call(A,ue)&&!b.hasOwnProperty(ue)&&(he[ue]=A[ue]);var xe=arguments.length-2;if(xe===1)he.children=fe;else if(1>>1,A=B[S];if(0>>1;Sc(he,Q))yec(Ce,he)?(B[S]=Ce,B[ye]=Q,S=ye):(B[S]=he,B[ue]=Q,S=ue);else if(yec(Ce,Q))B[S]=Ce,B[ye]=Q,S=ye;else break e}}return oe}function c(B,oe){var Q=B.sortIndex-oe.sortIndex;return Q!==0?Q:B.id-oe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;r.unstable_now=function(){return f.now()}}else{var p=Date,h=p.now();r.unstable_now=function(){return p.now()-h}}var v=[],E=[],N=1,C=null,T=3,$=!1,R=!1,O=!1,D=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,J=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function M(B){for(var oe=s(E);oe!==null;){if(oe.callback===null)u(E);else if(oe.startTime<=B)u(E),oe.sortIndex=oe.expirationTime,i(v,oe);else break;oe=s(E)}}function F(B){if(O=!1,M(B),!R)if(s(v)!==null)R=!0,se(H);else{var oe=s(E);oe!==null&&ge(F,oe.startTime-B)}}function H(B,oe){R=!1,O&&(O=!1,V(de),de=-1),$=!0;var Q=T;try{for(M(oe),C=s(v);C!==null&&(!(C.expirationTime>oe)||B&&!W());){var S=C.callback;if(typeof S=="function"){C.callback=null,T=C.priorityLevel;var A=S(C.expirationTime<=oe);oe=r.unstable_now(),typeof A=="function"?C.callback=A:C===s(v)&&u(v),M(oe)}else u(v);C=s(v)}if(C!==null)var fe=!0;else{var ue=s(E);ue!==null&&ge(F,ue.startTime-oe),fe=!1}return fe}finally{C=null,T=Q,$=!1}}var K=!1,b=null,de=-1,pe=5,m=-1;function W(){return!(r.unstable_now()-mB||125S?(B.sortIndex=Q,i(E,B),s(v)===null&&B===s(E)&&(O?(V(de),de=-1):O=!0,ge(F,Q-S))):(B.sortIndex=A,i(v,B),R||$||(R=!0,se(H))),B},r.unstable_shouldYield=W,r.unstable_wrapCallback=function(B){var oe=T;return function(){var Q=T;T=oe;try{return B.apply(this,arguments)}finally{T=Q}}}}(gl)),gl}var eu;function gp(){return eu||(eu=1,hl.exports=hp()),hl.exports}/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var tu;function yp(){if(tu)return it;tu=1;var r=U,i=gp();function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),v=Object.prototype.hasOwnProperty,E=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,N={},C={};function T(e){return v.call(C,e)?!0:v.call(N,e)?!1:E.test(e)?C[e]=!0:(N[e]=!0,!1)}function $(e,t,n,o){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function R(e,t,n,o){if(t===null||typeof t>"u"||$(e,t,n,o))return!0;if(o)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function O(e,t,n,o,l,a,d){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=d}var D={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){D[e]=new O(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];D[t]=new O(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){D[e]=new O(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){D[e]=new O(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){D[e]=new O(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){D[e]=new O(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){D[e]=new O(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){D[e]=new O(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){D[e]=new O(e,5,!1,e.toLowerCase(),null,!1,!1)});var V=/[\-:]([a-z])/g;function J(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(V,J);D[t]=new O(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(V,J);D[t]=new O(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(V,J);D[t]=new O(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){D[e]=new O(e,1,!1,e.toLowerCase(),null,!1,!1)}),D.xlinkHref=new O("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){D[e]=new O(e,1,!1,e.toLowerCase(),null,!0,!0)});function M(e,t,n,o){var l=D.hasOwnProperty(t)?D[t]:null;(l!==null?l.type!==0:o||!(2g||l[d]!==a[g]){var y=` `+l[d].replace(" at new "," at ");return e.displayName&&y.includes("")&&(y=y.replace("",e.displayName)),y}while(1<=d&&0<=g);break}}}finally{fe=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?A(e):""}function he(e){switch(e.tag){case 5:return A(e.type);case 16:return A("Lazy");case 13:return A("Suspense");case 19:return A("SuspenseList");case 0:case 2:case 15:return e=ue(e.type,!1),e;case 11:return e=ue(e.type.render,!1),e;case 1:return e=ue(e.type,!0),e;default:return""}}function ye(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case b:return"Fragment";case K:return"Portal";case pe:return"Profiler";case de:return"StrictMode";case ae:return"Suspense";case le:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case W:return(e.displayName||"Context")+".Consumer";case m:return(e._context.displayName||"Context")+".Provider";case ee:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case te:return t=e.displayName||null,t!==null?t:ye(e.type)||"Memo";case se:t=e._payload,e=e._init;try{return ye(e(t))}catch{}}return null}function Ce(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ye(t);case 8:return t===de?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function xe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Pe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Je(e){var t=Pe(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(d){o=""+d,a.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(d){o=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function nr(e){e._valueTracker||(e._valueTracker=Je(e))}function jt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=Pe(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function Qt(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function es(e,t){var n=t.checked;return Q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function wc(e,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=xe(t.value!=null?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Sc(e,t){t=t.checked,t!=null&&M(e,"checked",t,!1)}function ts(e,t){Sc(e,t);var n=xe(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ns(e,t.type,n):t.hasOwnProperty("defaultValue")&&ns(e,t.type,xe(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function kc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ns(e,t,n){(t!=="number"||Qt(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Gr=Array.isArray;function rr(e,t,n,o){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=li.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Yr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ag=["Webkit","ms","Moz","O"];Object.keys(Yr).forEach(function(e){Ag.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Yr[t]=Yr[e]})});function Pc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Yr.hasOwnProperty(e)&&Yr[e]?(""+t).trim():t+"px"}function Nc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,l=Pc(n,t[n],o);n==="float"&&(n="cssFloat"),o?e.setProperty(n,l):e[n]=l}}var zg=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function is(e,t){if(t){if(zg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function ls(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ss=null;function as(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var us=null,or=null,ir=null;function Rc(e){if(e=vo(e)){if(typeof us!="function")throw Error(s(280));var t=e.stateNode;t&&(t=Ri(t),us(e.stateNode,e.type,t))}}function Oc(e){or?ir?ir.push(e):ir=[e]:or=e}function Ac(){if(or){var e=or,t=ir;if(ir=or=null,Rc(e),t)for(e=0;e>>=0,e===0?32:31-(Wg(e)/Vg|0)|0}var fi=64,di=4194304;function qr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pi(e,t){var n=e.pendingLanes;if(n===0)return 0;var o=0,l=e.suspendedLanes,a=e.pingedLanes,d=n&268435455;if(d!==0){var g=d&~l;g!==0?o=qr(g):(a&=d,a!==0&&(o=qr(a)))}else d=n&~l,d!==0?o=qr(d):a!==0&&(o=qr(a));if(o===0)return 0;if(t!==0&&t!==o&&!(t&l)&&(l=o&-o,a=t&-t,l>=a||l===16&&(a&4194240)!==0))return t;if(o&4&&(o|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0n;n++)t.push(e);return t}function eo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Pt(t),e[t]=n}function Qg(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0=ao),lf=" ",sf=!1;function af(e,t){switch(e){case"keyup":return xy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ar=!1;function Cy(e,t){switch(e){case"compositionend":return uf(t);case"keypress":return t.which!==32?null:(sf=!0,lf);case"textInput":return e=t.data,e===lf&&sf?null:e;default:return null}}function _y(e,t){if(ar)return e==="compositionend"||!Ps&&af(e,t)?(e=qc(),vi=ks=un=null,ar=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=gf(n)}}function vf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wf(){for(var e=window,t=Qt();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Qt(e.document)}return t}function Os(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function $y(e){var t=wf(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&vf(n.ownerDocument.documentElement,n)){if(o!==null&&Os(n)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,a=Math.min(o.start,l);o=o.end===void 0?a:Math.min(o.end,l),!e.extend&&a>o&&(l=o,o=a,a=l),l=yf(n,a);var d=yf(n,o);l&&d&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==d.node||e.focusOffset!==d.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),a>o?(e.addRange(t),e.extend(d.node,d.offset)):(t.setEnd(d.node,d.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ur=null,As=null,po=null,zs=!1;function Sf(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zs||ur==null||ur!==Qt(o)||(o=ur,"selectionStart"in o&&Os(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),po&&fo(po,o)||(po=o,o=Ti(As,"onSelect"),0mr||(e.current=Vs[mr],Vs[mr]=null,mr--)}function Ne(e,t){mr++,Vs[mr]=e.current,e.current=t}var pn={},qe=dn(pn),st=dn(!1),On=pn;function hr(e,t){var n=e.type.contextTypes;if(!n)return pn;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var l={},a;for(a in n)l[a]=t[a];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function at(e){return e=e.childContextTypes,e!=null}function Oi(){Oe(st),Oe(qe)}function Lf(e,t,n){if(qe.current!==pn)throw Error(s(168));Ne(qe,t),Ne(st,n)}function Mf(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var l in o)if(!(l in t))throw Error(s(108,Ce(e)||"Unknown",l));return Q({},n,o)}function Ai(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pn,On=qe.current,Ne(qe,e),Ne(st,st.current),!0}function Df(e,t,n){var o=e.stateNode;if(!o)throw Error(s(169));n?(e=Mf(e,t,On),o.__reactInternalMemoizedMergedChildContext=e,Oe(st),Oe(qe),Ne(qe,e)):Oe(st),Ne(st,n)}var Xt=null,zi=!1,Hs=!1;function jf(e){Xt===null?Xt=[e]:Xt.push(e)}function Ky(e){zi=!0,jf(e)}function mn(){if(!Hs&&Xt!==null){Hs=!0;var e=0,t=Ee;try{var n=Xt;for(Ee=1;e>=d,l-=d,Zt=1<<32-Pt(t)+l|n<ce?(Ge=re,re=null):Ge=re.sibling;var we=z(k,re,x[ce],j);if(we===null){re===null&&(re=Ge);break}e&&re&&we.alternate===null&&t(k,re),w=a(we,w,ce),ne===null?q=we:ne.sibling=we,ne=we,re=Ge}if(ce===x.length)return n(k,re),ze&&zn(k,ce),q;if(re===null){for(;cece?(Ge=re,re=null):Ge=re.sibling;var En=z(k,re,we.value,j);if(En===null){re===null&&(re=Ge);break}e&&re&&En.alternate===null&&t(k,re),w=a(En,w,ce),ne===null?q=En:ne.sibling=En,ne=En,re=Ge}if(we.done)return n(k,re),ze&&zn(k,ce),q;if(re===null){for(;!we.done;ce++,we=x.next())we=L(k,we.value,j),we!==null&&(w=a(we,w,ce),ne===null?q=we:ne.sibling=we,ne=we);return ze&&zn(k,ce),q}for(re=o(k,re);!we.done;ce++,we=x.next())we=G(re,k,ce,we.value,j),we!==null&&(e&&we.alternate!==null&&re.delete(we.key===null?ce:we.key),w=a(we,w,ce),ne===null?q=we:ne.sibling=we,ne=we);return e&&re.forEach(function(T1){return t(k,T1)}),ze&&zn(k,ce),q}function be(k,w,x,j){if(typeof x=="object"&&x!==null&&x.type===b&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case H:e:{for(var q=x.key,ne=w;ne!==null;){if(ne.key===q){if(q=x.type,q===b){if(ne.tag===7){n(k,ne.sibling),w=l(ne,x.props.children),w.return=k,k=w;break e}}else if(ne.elementType===q||typeof q=="object"&&q!==null&&q.$$typeof===se&&Vf(q)===ne.type){n(k,ne.sibling),w=l(ne,x.props),w.ref=wo(k,ne,x),w.return=k,k=w;break e}n(k,ne);break}else t(k,ne);ne=ne.sibling}x.type===b?(w=bn(x.props.children,k.mode,j,x.key),w.return=k,k=w):(j=ll(x.type,x.key,x.props,null,k.mode,j),j.ref=wo(k,w,x),j.return=k,k=j)}return d(k);case K:e:{for(ne=x.key;w!==null;){if(w.key===ne)if(w.tag===4&&w.stateNode.containerInfo===x.containerInfo&&w.stateNode.implementation===x.implementation){n(k,w.sibling),w=l(w,x.children||[]),w.return=k,k=w;break e}else{n(k,w);break}else t(k,w);w=w.sibling}w=Ua(x,k.mode,j),w.return=k,k=w}return d(k);case se:return ne=x._init,be(k,w,ne(x._payload),j)}if(Gr(x))return X(k,w,x,j);if(oe(x))return Z(k,w,x,j);Mi(k,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,w!==null&&w.tag===6?(n(k,w.sibling),w=l(w,x),w.return=k,k=w):(n(k,w),w=Ba(x,k.mode,j),w.return=k,k=w),d(k)):n(k,w)}return be}var wr=Hf(!0),Kf=Hf(!1),Di=dn(null),ji=null,Sr=null,Zs=null;function Js(){Zs=Sr=ji=null}function qs(e){var t=Di.current;Oe(Di),e._currentValue=t}function ea(e,t,n){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function kr(e,t){ji=e,Zs=Sr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ut=!0),e.firstContext=null)}function Et(e){var t=e._currentValue;if(Zs!==e)if(e={context:e,memoizedValue:t,next:null},Sr===null){if(ji===null)throw Error(s(308));Sr=e,ji.dependencies={lanes:0,firstContext:e}}else Sr=Sr.next=e;return t}var In=null;function ta(e){In===null?In=[e]:In.push(e)}function Gf(e,t,n,o){var l=t.interleaved;return l===null?(n.next=n,ta(t)):(n.next=l.next,l.next=n),t.interleaved=n,qt(e,o)}function qt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var hn=!1;function na(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function en(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gn(e,t,n){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,ve&2){var l=o.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),o.pending=t,qt(e,n)}return l=o.interleaved,l===null?(t.next=t,ta(o)):(t.next=l.next,l.next=t),o.interleaved=t,qt(e,n)}function Fi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,gs(e,n)}}function Yf(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var l=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var d={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?l=a=d:a=a.next=d,n=n.next}while(n!==null);a===null?l=a=t:a=a.next=t}else l=a=t;n={baseState:o.baseState,firstBaseUpdate:l,lastBaseUpdate:a,shared:o.shared,effects:o.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function bi(e,t,n,o){var l=e.updateQueue;hn=!1;var a=l.firstBaseUpdate,d=l.lastBaseUpdate,g=l.shared.pending;if(g!==null){l.shared.pending=null;var y=g,_=y.next;y.next=null,d===null?a=_:d.next=_,d=y;var I=e.alternate;I!==null&&(I=I.updateQueue,g=I.lastBaseUpdate,g!==d&&(g===null?I.firstBaseUpdate=_:g.next=_,I.lastBaseUpdate=y))}if(a!==null){var L=l.baseState;d=0,I=_=y=null,g=a;do{var z=g.lane,G=g.eventTime;if((o&z)===z){I!==null&&(I=I.next={eventTime:G,lane:0,tag:g.tag,payload:g.payload,callback:g.callback,next:null});e:{var X=e,Z=g;switch(z=t,G=n,Z.tag){case 1:if(X=Z.payload,typeof X=="function"){L=X.call(G,L,z);break e}L=X;break e;case 3:X.flags=X.flags&-65537|128;case 0:if(X=Z.payload,z=typeof X=="function"?X.call(G,L,z):X,z==null)break e;L=Q({},L,z);break e;case 2:hn=!0}}g.callback!==null&&g.lane!==0&&(e.flags|=64,z=l.effects,z===null?l.effects=[g]:z.push(g))}else G={eventTime:G,lane:z,tag:g.tag,payload:g.payload,callback:g.callback,next:null},I===null?(_=I=G,y=L):I=I.next=G,d|=z;if(g=g.next,g===null){if(g=l.shared.pending,g===null)break;z=g,g=z.next,z.next=null,l.lastBaseUpdate=z,l.shared.pending=null}}while(!0);if(I===null&&(y=L),l.baseState=y,l.firstBaseUpdate=_,l.lastBaseUpdate=I,t=l.shared.interleaved,t!==null){l=t;do d|=l.lane,l=l.next;while(l!==t)}else a===null&&(l.shared.lanes=0);Mn|=d,e.lanes=d,e.memoizedState=L}}function Xf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var o=sa.transition;sa.transition={};try{e(!1),t()}finally{Ee=n,sa.transition=o}}function hd(){return Ct().memoizedState}function Xy(e,t,n){var o=Sn(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},gd(e))yd(t,n);else if(n=Gf(e,t,n,o),n!==null){var l=ot();It(n,e,o,l),vd(n,t,o)}}function Zy(e,t,n){var o=Sn(e),l={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(gd(e))yd(t,l);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var d=t.lastRenderedState,g=a(d,n);if(l.hasEagerState=!0,l.eagerState=g,Nt(g,d)){var y=t.interleaved;y===null?(l.next=l,ta(t)):(l.next=y.next,y.next=l),t.interleaved=l;return}}catch{}finally{}n=Gf(e,t,l,o),n!==null&&(l=ot(),It(n,e,o,l),vd(n,t,o))}}function gd(e){var t=e.alternate;return e===$e||t!==null&&t===$e}function yd(e,t){Eo=Wi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vd(e,t,n){if(n&4194240){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,gs(e,n)}}var Ki={readContext:Et,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useInsertionEffect:et,useLayoutEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useMutableSource:et,useSyncExternalStore:et,useId:et,unstable_isNewReconciler:!1},Jy={readContext:Et,useCallback:function(e,t){return Ut().memoizedState=[e,t===void 0?null:t],e},useContext:Et,useEffect:sd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Vi(4194308,4,cd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vi(4,2,e,t)},useMemo:function(e,t){var n=Ut();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=Ut();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=Xy.bind(null,$e,e),[o.memoizedState,e]},useRef:function(e){var t=Ut();return e={current:e},t.memoizedState=e},useState:id,useDebugValue:ma,useDeferredValue:function(e){return Ut().memoizedState=e},useTransition:function(){var e=id(!1),t=e[0];return e=Yy.bind(null,e[1]),Ut().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=$e,l=Ut();if(ze){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Ke===null)throw Error(s(349));Ln&30||ed(o,t,n)}l.memoizedState=n;var a={value:n,getSnapshot:t};return l.queue=a,sd(nd.bind(null,o,a,e),[e]),o.flags|=2048,To(9,td.bind(null,o,a,n,t),void 0,null),n},useId:function(){var e=Ut(),t=Ke.identifierPrefix;if(ze){var n=Jt,o=Zt;n=(o&~(1<<32-Pt(o)-1)).toString(32)+n,t=":"+t+"R"+n,n=Co++,0<\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=d.createElement(n,{is:o.is}):(e=d.createElement(n),n==="select"&&(d=e,o.multiple?d.multiple=!0:o.size&&(d.size=o.size))):e=d.createElementNS(e,n),e[bt]=t,e[yo]=o,jd(e,t,!1,!1),t.stateNode=e;e:{switch(d=ls(n,o),n){case"dialog":Re("cancel",e),Re("close",e),l=o;break;case"iframe":case"object":case"embed":Re("load",e),l=o;break;case"video":case"audio":for(l=0;lTr&&(t.flags|=128,o=!0,Po(a,!1),t.lanes=4194304)}else{if(!o)if(e=Bi(d),e!==null){if(t.flags|=128,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Po(a,!0),a.tail===null&&a.tailMode==="hidden"&&!d.alternate&&!ze)return tt(t),null}else 2*Fe()-a.renderingStartTime>Tr&&n!==1073741824&&(t.flags|=128,o=!0,Po(a,!1),t.lanes=4194304);a.isBackwards?(d.sibling=t.child,t.child=d):(n=a.last,n!==null?n.sibling=d:t.child=d,a.last=d)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Fe(),t.sibling=null,n=Ie.current,Ne(Ie,o?n&1|2:n&1),t):(tt(t),null);case 22:case 23:return ja(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&t.mode&1?vt&1073741824&&(tt(t),t.subtreeFlags&6&&(t.flags|=8192)):tt(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function l1(e,t){switch(Gs(t),t.tag){case 1:return at(t.type)&&Oi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xr(),Oe(st),Oe(qe),la(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return oa(t),null;case 13:if(Oe(Ie),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));vr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Oe(Ie),null;case 4:return xr(),null;case 10:return qs(t.type._context),null;case 22:case 23:return ja(),null;case 24:return null;default:return null}}var Xi=!1,nt=!1,s1=typeof WeakSet=="function"?WeakSet:Set,Y=null;function Cr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(o){De(e,t,o)}else n.current=null}function Ta(e,t,n){try{n()}catch(o){De(e,t,o)}}var Bd=!1;function a1(e,t){if(js=gi,e=wf(),Os(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var l=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var d=0,g=-1,y=-1,_=0,I=0,L=e,z=null;t:for(;;){for(var G;L!==n||l!==0&&L.nodeType!==3||(g=d+l),L!==a||o!==0&&L.nodeType!==3||(y=d+o),L.nodeType===3&&(d+=L.nodeValue.length),(G=L.firstChild)!==null;)z=L,L=G;for(;;){if(L===e)break t;if(z===n&&++_===l&&(g=d),z===a&&++I===o&&(y=d),(G=L.nextSibling)!==null)break;L=z,z=L.parentNode}L=G}n=g===-1||y===-1?null:{start:g,end:y}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fs={focusedElem:e,selectionRange:n},gi=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var X=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(X!==null){var Z=X.memoizedProps,be=X.memoizedState,k=t.stateNode,w=k.getSnapshotBeforeUpdate(t.elementType===t.type?Z:Ot(t.type,Z),be);k.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(j){De(t,t.return,j)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return X=Bd,Bd=!1,X}function No(e,t,n){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var l=o=o.next;do{if((l.tag&e)===e){var a=l.destroy;l.destroy=void 0,a!==void 0&&Ta(t,n,a)}l=l.next}while(l!==o)}}function Zi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function Pa(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ud(e){var t=e.alternate;t!==null&&(e.alternate=null,Ud(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[bt],delete t[yo],delete t[Ws],delete t[Vy],delete t[Hy])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Wd(e){return e.tag===5||e.tag===3||e.tag===4}function Vd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Na(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ni));else if(o!==4&&(e=e.child,e!==null))for(Na(e,t,n),e=e.sibling;e!==null;)Na(e,t,n),e=e.sibling}function Ra(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(Ra(e,t,n),e=e.sibling;e!==null;)Ra(e,t,n),e=e.sibling}var Ye=null,At=!1;function yn(e,t,n){for(n=n.child;n!==null;)Hd(e,t,n),n=n.sibling}function Hd(e,t,n){if(Ft&&typeof Ft.onCommitFiberUnmount=="function")try{Ft.onCommitFiberUnmount(ci,n)}catch{}switch(n.tag){case 5:nt||Cr(n,t);case 6:var o=Ye,l=At;Ye=null,yn(e,t,n),Ye=o,At=l,Ye!==null&&(At?(e=Ye,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ye.removeChild(n.stateNode));break;case 18:Ye!==null&&(At?(e=Ye,n=n.stateNode,e.nodeType===8?Us(e.parentNode,n):e.nodeType===1&&Us(e,n),io(e)):Us(Ye,n.stateNode));break;case 4:o=Ye,l=At,Ye=n.stateNode.containerInfo,At=!0,yn(e,t,n),Ye=o,At=l;break;case 0:case 11:case 14:case 15:if(!nt&&(o=n.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){l=o=o.next;do{var a=l,d=a.destroy;a=a.tag,d!==void 0&&(a&2||a&4)&&Ta(n,t,d),l=l.next}while(l!==o)}yn(e,t,n);break;case 1:if(!nt&&(Cr(n,t),o=n.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(g){De(n,t,g)}yn(e,t,n);break;case 21:yn(e,t,n);break;case 22:n.mode&1?(nt=(o=nt)||n.memoizedState!==null,yn(e,t,n),nt=o):yn(e,t,n);break;default:yn(e,t,n)}}function Kd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new s1),t.forEach(function(o){var l=y1.bind(null,e,o);n.has(o)||(n.add(o),o.then(l,l))})}}function zt(e,t){var n=t.deletions;if(n!==null)for(var o=0;ol&&(l=d),o&=~a}if(o=l,o=Fe()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*c1(o/1960))-o,10e?16:e,wn===null)var o=!1;else{if(e=wn,wn=null,nl=0,ve&6)throw Error(s(331));var l=ve;for(ve|=4,Y=e.current;Y!==null;){var a=Y,d=a.child;if(Y.flags&16){var g=a.deletions;if(g!==null){for(var y=0;yFe()-za?jn(e,0):Aa|=n),ft(e,t)}function ip(e,t){t===0&&(e.mode&1?(t=di,di<<=1,!(di&130023424)&&(di=4194304)):t=1);var n=ot();e=qt(e,t),e!==null&&(eo(e,t,n),ft(e,n))}function g1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ip(e,n)}function y1(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(s(314))}o!==null&&o.delete(t),ip(e,n)}var lp;lp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||st.current)ut=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ut=!1,o1(e,t,n);ut=!!(e.flags&131072)}else ut=!1,ze&&t.flags&1048576&&Ff(t,$i,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Yi(e,t),e=t.pendingProps;var l=hr(t,qe.current);kr(t,n),l=ua(null,t,o,e,l,n);var a=ca();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,at(o)?(a=!0,Ai(t)):a=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,na(t),l.updater=Gi,t.stateNode=l,l._reactInternals=t,ga(t,o,e,n),t=Sa(null,t,o,!0,a,n)):(t.tag=0,ze&&a&&Ks(t),rt(null,t,l,n),t=t.child),t;case 16:o=t.elementType;e:{switch(Yi(e,t),e=t.pendingProps,l=o._init,o=l(o._payload),t.type=o,l=t.tag=w1(o),e=Ot(o,e),l){case 0:t=wa(null,t,o,e,n);break e;case 1:t=zd(null,t,o,e,n);break e;case 11:t=Pd(null,t,o,e,n);break e;case 14:t=Nd(null,t,o,Ot(o.type,e),n);break e}throw Error(s(306,o,""))}return t;case 0:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:Ot(o,l),wa(e,t,o,l,n);case 1:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:Ot(o,l),zd(e,t,o,l,n);case 3:e:{if(Id(t),e===null)throw Error(s(387));o=t.pendingProps,a=t.memoizedState,l=a.element,Qf(e,t),bi(t,o,null,n);var d=t.memoizedState;if(o=d.element,a.isDehydrated)if(a={element:o,isDehydrated:!1,cache:d.cache,pendingSuspenseBoundaries:d.pendingSuspenseBoundaries,transitions:d.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){l=Er(Error(s(423)),t),t=$d(e,t,o,n,l);break e}else if(o!==l){l=Er(Error(s(424)),t),t=$d(e,t,o,n,l);break e}else for(yt=fn(t.stateNode.containerInfo.firstChild),gt=t,ze=!0,Rt=null,n=Kf(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(vr(),o===l){t=tn(e,t,n);break e}rt(e,t,o,n)}t=t.child}return t;case 5:return Zf(t),e===null&&Ys(t),o=t.type,l=t.pendingProps,a=e!==null?e.memoizedProps:null,d=l.children,bs(o,l)?d=null:a!==null&&bs(o,a)&&(t.flags|=32),Ad(e,t),rt(e,t,d,n),t.child;case 6:return e===null&&Ys(t),null;case 13:return Ld(e,t,n);case 4:return ra(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=wr(t,null,o,n):rt(e,t,o,n),t.child;case 11:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:Ot(o,l),Pd(e,t,o,l,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,l=t.pendingProps,a=t.memoizedProps,d=l.value,Ne(Di,o._currentValue),o._currentValue=d,a!==null)if(Nt(a.value,d)){if(a.children===l.children&&!st.current){t=tn(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var g=a.dependencies;if(g!==null){d=a.child;for(var y=g.firstContext;y!==null;){if(y.context===o){if(a.tag===1){y=en(-1,n&-n),y.tag=2;var _=a.updateQueue;if(_!==null){_=_.shared;var I=_.pending;I===null?y.next=y:(y.next=I.next,I.next=y),_.pending=y}}a.lanes|=n,y=a.alternate,y!==null&&(y.lanes|=n),ea(a.return,n,t),g.lanes|=n;break}y=y.next}}else if(a.tag===10)d=a.type===t.type?null:a.child;else if(a.tag===18){if(d=a.return,d===null)throw Error(s(341));d.lanes|=n,g=d.alternate,g!==null&&(g.lanes|=n),ea(d,n,t),d=a.sibling}else d=a.child;if(d!==null)d.return=a;else for(d=a;d!==null;){if(d===t){d=null;break}if(a=d.sibling,a!==null){a.return=d.return,d=a;break}d=d.return}a=d}rt(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,o=t.pendingProps.children,kr(t,n),l=Et(l),o=o(l),t.flags|=1,rt(e,t,o,n),t.child;case 14:return o=t.type,l=Ot(o,t.pendingProps),l=Ot(o.type,l),Nd(e,t,o,l,n);case 15:return Rd(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:Ot(o,l),Yi(e,t),t.tag=1,at(o)?(e=!0,Ai(t)):e=!1,kr(t,n),Sd(t,o,l),ga(t,o,l,n),Sa(null,t,o,!0,e,n);case 19:return Dd(e,t,n);case 22:return Od(e,t,n)}throw Error(s(156,t.tag))};function sp(e,t){return Fc(e,t)}function v1(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tt(e,t,n,o){return new v1(e,t,n,o)}function ba(e){return e=e.prototype,!(!e||!e.isReactComponent)}function w1(e){if(typeof e=="function")return ba(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ee)return 11;if(e===te)return 14}return 2}function xn(e,t){var n=e.alternate;return n===null?(n=Tt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ll(e,t,n,o,l,a){var d=2;if(o=e,typeof e=="function")ba(e)&&(d=1);else if(typeof e=="string")d=5;else e:switch(e){case b:return bn(n.children,l,a,t);case de:d=8,l|=8;break;case pe:return e=Tt(12,n,t,l|2),e.elementType=pe,e.lanes=a,e;case ae:return e=Tt(13,n,t,l),e.elementType=ae,e.lanes=a,e;case le:return e=Tt(19,n,t,l),e.elementType=le,e.lanes=a,e;case ge:return sl(n,l,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case m:d=10;break e;case W:d=9;break e;case ee:d=11;break e;case te:d=14;break e;case se:d=16,o=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=Tt(d,n,t,l),t.elementType=e,t.type=o,t.lanes=a,t}function bn(e,t,n,o){return e=Tt(7,e,o,t),e.lanes=n,e}function sl(e,t,n,o){return e=Tt(22,e,o,t),e.elementType=ge,e.lanes=n,e.stateNode={isHidden:!1},e}function Ba(e,t,n){return e=Tt(6,e,null,t),e.lanes=n,e}function Ua(e,t,n){return t=Tt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function S1(e,t,n,o,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=hs(0),this.expirationTimes=hs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hs(0),this.identifierPrefix=o,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Wa(e,t,n,o,l,a,d,g,y){return e=new S1(e,t,n,g,y),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Tt(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},na(a),e}function k1(e,t,n){var o=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(nu)}catch(r){console.error(r)}}nu(),Ja.exports=yp();var yl=Ja.exports;const Io=Bn(yl);var ru=yl;ml.createRoot=ru.createRoot,ml.hydrateRoot=ru.hydrateRoot;const ou={wrap:"_wrap_udjkj_1",preview:"_preview_udjkj_10"},Or={black:"#000",white:"#fff"},Wn={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Vn={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Hn={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Kn={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Gn={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Ar={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},vp={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Cn(r,...i){const s=new URL(`https://mui.com/production-error/?code=${r}`);return i.forEach(u=>s.searchParams.append("args[]",u)),`Minified MUI error #${r}; visit ${s} for the full message.`}const iu="$$material";function vl(){return vl=Object.assign?Object.assign.bind():function(r){for(var i=1;i0?Qe(Yn,--lt):0,Qn--,Be===10&&(Qn=1,Do--),Be}function dt(){return Be=lt2||Lr(Be)>3?"":" "}function Lp(r,i){for(;--i&&dt()&&!(Be<48||Be>102||Be>57&&Be<65||Be>70&&Be<97););return $r(r,Fo()+(i<6&&Lt()==32&&dt()==32))}function El(r){for(;dt();)switch(Be){case r:return lt;case 34:case 39:r!==34&&r!==39&&El(Be);break;case 40:r===41&&El(r);break;case 92:dt();break}return lt}function Mp(r,i){for(;dt()&&r+Be!==57;)if(r+Be===84&&Lt()===47)break;return"/*"+$r(i,lt-1)+"*"+Lo(r===47?r:dt())}function Dp(r){for(;!Lr(Lt());)dt();return $r(r,lt)}function jp(r){return du(Bo("",null,null,null,[""],r=fu(r),0,[0],r))}function Bo(r,i,s,u,c,f,p,h,v){for(var E=0,N=0,C=p,T=0,$=0,R=0,O=1,D=1,V=1,J=0,M="",F=c,H=f,K=u,b=M;D;)switch(R=J,J=dt()){case 40:if(R!=108&&Qe(b,C-1)==58){kl(b+=ke(bo(J),"&","&\f"),"&\f")!=-1&&(V=-1);break}case 34:case 39:case 91:b+=bo(J);break;case 9:case 10:case 13:case 32:b+=$p(R);break;case 92:b+=Lp(Fo()-1,7);continue;case 47:switch(Lt()){case 42:case 47:Mo(Fp(Mp(dt(),Fo()),i,s),v);break;default:b+="/"}break;case 123*O:h[E++]=$t(b)*V;case 125*O:case 59:case 0:switch(J){case 0:case 125:D=0;case 59+N:V==-1&&(b=ke(b,/\f/g,"")),$>0&&$t(b)-C&&Mo($>32?mu(b+";",u,s,C-1):mu(ke(b," ","")+";",u,s,C-2),v);break;case 59:b+=";";default:if(Mo(K=pu(b,i,s,E,N,c,h,M,F=[],H=[],C),f),J===123)if(N===0)Bo(b,i,K,K,F,f,C,h,H);else switch(T===99&&Qe(b,3)===110?100:T){case 100:case 108:case 109:case 115:Bo(r,K,K,u&&Mo(pu(r,K,K,0,0,c,h,M,c,F=[],C),H),c,H,C,h,u?F:H);break;default:Bo(b,K,K,K,[""],H,0,h,H)}}E=N=$=0,O=V=1,M=b="",C=p;break;case 58:C=1+$t(b),$=R;default:if(O<1){if(J==123)--O;else if(J==125&&O++==0&&Ip()==125)continue}switch(b+=Lo(J),J*O){case 38:V=N>0?1:(b+="\f",-1);break;case 44:h[E++]=($t(b)-1)*V,V=1;break;case 64:Lt()===45&&(b+=bo(dt())),T=Lt(),N=C=$t(M=b+=Dp(Fo())),J++;break;case 45:R===45&&$t(b)==2&&(O=0)}}return f}function pu(r,i,s,u,c,f,p,h,v,E,N){for(var C=c-1,T=c===0?f:[""],$=xl(T),R=0,O=0,D=0;R0?T[V]+" "+J:ke(J,/&\f/g,T[V])))&&(v[D++]=M);return jo(r,i,s,c===0?wl:h,v,E,N)}function Fp(r,i,s){return jo(r,i,s,su,Lo(zp()),zr(r,2,-2),0)}function mu(r,i,s,u){return jo(r,i,s,Sl,zr(r,0,u),zr(r,u+1,-1),u)}function Xn(r,i){for(var s="",u=xl(r),c=0;c6)switch(Qe(r,i+1)){case 109:if(Qe(r,i+4)!==45)break;case 102:return ke(r,/(.+:)(.+)-([^]+)/,"$1"+Se+"$2-$3$1"+$o+(Qe(r,i+3)==108?"$3":"$2-$3"))+r;case 115:return~kl(r,"stretch")?gu(ke(r,"stretch","fill-available"),i)+r:r}break;case 4949:if(Qe(r,i+1)!==115)break;case 6444:switch(Qe(r,$t(r)-3-(~kl(r,"!important")&&10))){case 107:return ke(r,":",":"+Se)+r;case 101:return ke(r,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Se+(Qe(r,14)===45?"inline-":"")+"box$3$1"+Se+"$2$3$1"+Ze+"$2box$3")+r}break;case 5936:switch(Qe(r,i+11)){case 114:return Se+r+Ze+ke(r,/[svh]\w+-[tblr]{2}/,"tb")+r;case 108:return Se+r+Ze+ke(r,/[svh]\w+-[tblr]{2}/,"tb-rl")+r;case 45:return Se+r+Ze+ke(r,/[svh]\w+-[tblr]{2}/,"lr")+r}return Se+r+Ze+r+r}return r}var Qp=function(i,s,u,c){if(i.length>-1&&!i.return)switch(i.type){case Sl:i.return=gu(i.value,i.length);break;case au:return Xn([Ir(i,{value:ke(i.value,"@","@"+Se)})],c);case wl:if(i.length)return Ap(i.props,function(f){switch(Op(f,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Xn([Ir(i,{props:[ke(f,/:(read-\w+)/,":"+$o+"$1")]})],c);case"::placeholder":return Xn([Ir(i,{props:[ke(f,/:(plac\w+)/,":"+Se+"input-$1")]}),Ir(i,{props:[ke(f,/:(plac\w+)/,":"+$o+"$1")]}),Ir(i,{props:[ke(f,/:(plac\w+)/,Ze+"input-$1")]})],c)}return""})}},Yp=[Qp],Xp=function(i){var s=i.key;if(s==="css"){var u=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(u,function(O){var D=O.getAttribute("data-emotion");D.indexOf(" ")!==-1&&(document.head.appendChild(O),O.setAttribute("data-s",""))})}var c=i.stylisPlugins||Yp,f={},p,h=[];p=i.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+s+' "]'),function(O){for(var D=O.getAttribute("data-emotion").split(" "),V=1;V=4;++u,c-=4)s=r.charCodeAt(u)&255|(r.charCodeAt(++u)&255)<<8|(r.charCodeAt(++u)&255)<<16|(r.charCodeAt(++u)&255)<<24,s=(s&65535)*1540483477+((s>>>16)*59797<<16),s^=s>>>24,i=(s&65535)*1540483477+((s>>>16)*59797<<16)^(i&65535)*1540483477+((i>>>16)*59797<<16);switch(c){case 3:i^=(r.charCodeAt(u+2)&255)<<16;case 2:i^=(r.charCodeAt(u+1)&255)<<8;case 1:i^=r.charCodeAt(u)&255,i=(i&65535)*1540483477+((i>>>16)*59797<<16)}return i^=i>>>13,i=(i&65535)*1540483477+((i>>>16)*59797<<16),((i^i>>>15)>>>0).toString(36)}var tm={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},nm=!1,rm=/[A-Z]|^ms/g,om=/_EMO_([^_]+?)_([^]*?)_EMO_/g,vu=function(i){return i.charCodeAt(1)===45},wu=function(i){return i!=null&&typeof i!="boolean"},Cl=lu(function(r){return vu(r)?r:r.replace(rm,"-$&").toLowerCase()}),Su=function(i,s){switch(i){case"animation":case"animationName":if(typeof s=="string")return s.replace(om,function(u,c,f){return Mt={name:c,styles:f,next:Mt},c})}return tm[i]!==1&&!vu(i)&&typeof s=="number"&&s!==0?s+"px":s},im="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Mr(r,i,s){if(s==null)return"";var u=s;if(u.__emotion_styles!==void 0)return u;switch(typeof s){case"boolean":return"";case"object":{var c=s;if(c.anim===1)return Mt={name:c.name,styles:c.styles,next:Mt},c.name;var f=s;if(f.styles!==void 0){var p=f.next;if(p!==void 0)for(;p!==void 0;)Mt={name:p.name,styles:p.styles,next:Mt},p=p.next;var h=f.styles+";";return h}return lm(r,i,s)}case"function":{if(r!==void 0){var v=Mt,E=s(r);return Mt=v,Mr(r,i,E)}break}}var N=s;if(i==null)return N;var C=i[N];return C!==void 0?C:N}function lm(r,i,s){var u="";if(Array.isArray(s))for(var c=0;c96?fm:dm},Tu=function(i,s,u){var c;if(s){var f=s.shouldForwardProp;c=i.__emotion_forwardProp&&f?function(p){return i.__emotion_forwardProp(p)&&f(p)}:f}return typeof c!="function"&&u&&(c=i.__emotion_forwardProp),c},pm=!1,mm=function(i){var s=i.cache,u=i.serialized,c=i.isStringTag;return yu(s,u,c),um(function(){return qp(s,u,c)}),null},hm=function r(i,s){var u=i.__emotion_real===i,c=u&&i.__emotion_base||i,f,p;s!==void 0&&(f=s.label,p=s.target);var h=Tu(i,s,u),v=h||_u(c),E=!v("as");return function(){var N=arguments,C=u&&i.__emotion_styles!==void 0?i.__emotion_styles.slice(0):[];if(f!==void 0&&C.push("label:"+f+";"),N[0]==null||N[0].raw===void 0)C.push.apply(C,N);else{C.push(N[0][0]);for(var T=N.length,$=1;${i[s]=Ru(r[s])}),i}function pt(r,i,s={clone:!0}){const u=s.clone?{...r}:r;return Vt(r)&&Vt(i)&&Object.keys(i).forEach(c=>{U.isValidElement(i[c])?u[c]=i[c]:Vt(i[c])&&Object.prototype.hasOwnProperty.call(r,c)&&Vt(r[c])?u[c]=pt(r[c],i[c],s):s.clone?u[c]=Vt(i[c])?Ru(i[c]):i[c]:u[c]=i[c]}),u}const wm=r=>{const i=Object.keys(r).map(s=>({key:s,val:r[s]}))||[];return i.sort((s,u)=>s.val-u.val),i.reduce((s,u)=>({...s,[u.key]:u.val}),{})};function Sm(r){const{values:i={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:s="px",step:u=5,...c}=r,f=wm(i),p=Object.keys(f);function h(T){return`@media (min-width:${typeof i[T]=="number"?i[T]:T}${s})`}function v(T){return`@media (max-width:${(typeof i[T]=="number"?i[T]:T)-u/100}${s})`}function E(T,$){const R=p.indexOf($);return`@media (min-width:${typeof i[T]=="number"?i[T]:T}${s}) and (max-width:${(R!==-1&&typeof i[p[R]]=="number"?i[p[R]]:$)-u/100}${s})`}function N(T){return p.indexOf(T)+1u.startsWith("@container")).sort((u,c)=>{var p,h;const f=/min-width:\s*([0-9.]+)/;return+(((p=u.match(f))==null?void 0:p[1])||0)-+(((h=c.match(f))==null?void 0:h[1])||0)});return s.length?s.reduce((u,c)=>{const f=i[c];return delete u[c],u[c]=f,u},{...i}):i}function xm(r,i){return i==="@"||i.startsWith("@")&&(r.some(s=>i.startsWith(`@${s}`))||!!i.match(/^@\d/))}function Em(r,i){const s=i.match(/^@([^/]+)?\/?(.+)?$/);if(!s)return null;const[,u,c]=s,f=Number.isNaN(+u)?u||0:+u;return r.containerQueries(c).up(f)}function Cm(r){const i=(f,p)=>f.replace("@media",p?`@container ${p}`:"@container");function s(f,p){f.up=(...h)=>i(r.breakpoints.up(...h),p),f.down=(...h)=>i(r.breakpoints.down(...h),p),f.between=(...h)=>i(r.breakpoints.between(...h),p),f.only=(...h)=>i(r.breakpoints.only(...h),p),f.not=(...h)=>{const v=i(r.breakpoints.not(...h),p);return v.includes("not all and")?v.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):v}}const u={},c=f=>(s(u,f),u);return s(c),{...r,containerQueries:c}}const _m={borderRadius:4};function Dr(r,i){return i?pt(r,i,{clone:!1}):r}const Uo={xs:0,sm:600,md:900,lg:1200,xl:1536},Ou={keys:["xs","sm","md","lg","xl"],up:r=>`@media (min-width:${Uo[r]}px)`},Tm={containerQueries:r=>({up:i=>{let s=typeof i=="number"?i:Uo[i]||i;return typeof s=="number"&&(s=`${s}px`),r?`@container ${r} (min-width:${s})`:`@container (min-width:${s})`}})};function Ht(r,i,s){const u=r.theme||{};if(Array.isArray(i)){const f=u.breakpoints||Ou;return i.reduce((p,h,v)=>(p[f.up(f.keys[v])]=s(i[v]),p),{})}if(typeof i=="object"){const f=u.breakpoints||Ou;return Object.keys(i).reduce((p,h)=>{if(xm(f.keys,h)){const v=Em(u.containerQueries?u:Tm,h);v&&(p[v]=s(i[h],h))}else if(Object.keys(f.values||Uo).includes(h)){const v=f.up(h);p[v]=s(i[h],h)}else{const v=h;p[v]=i[v]}return p},{})}return s(i)}function Pm(r={}){var s;return((s=r.keys)==null?void 0:s.reduce((u,c)=>{const f=r.up(c);return u[f]={},u},{}))||{}}function Nm(r,i){return r.reduce((s,u)=>{const c=s[u];return(!c||Object.keys(c).length===0)&&delete s[u],s},i)}function Au(r){if(typeof r!="string")throw new Error(Cn(7));return r.charAt(0).toUpperCase()+r.slice(1)}function Wo(r,i,s=!0){if(!i||typeof i!="string")return null;if(r&&r.vars&&s){const u=`vars.${i}`.split(".").reduce((c,f)=>c&&c[f]?c[f]:null,r);if(u!=null)return u}return i.split(".").reduce((u,c)=>u&&u[c]!=null?u[c]:null,r)}function Vo(r,i,s,u=s){let c;return typeof r=="function"?c=r(s):Array.isArray(r)?c=r[s]||u:c=Wo(r,s)||u,i&&(c=i(c,u,r)),c}function je(r){const{prop:i,cssProperty:s=r.prop,themeKey:u,transform:c}=r,f=p=>{if(p[i]==null)return null;const h=p[i],v=p.theme,E=Wo(v,u)||{};return Ht(p,h,C=>{let T=Vo(E,c,C);return C===T&&typeof C=="string"&&(T=Vo(E,c,`${i}${C==="default"?"":Au(C)}`,C)),s===!1?T:{[s]:T}})};return f.propTypes={},f.filterProps=[i],f}function Rm(r){const i={};return s=>(i[s]===void 0&&(i[s]=r(s)),i[s])}const Om={m:"margin",p:"padding"},Am={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},zu={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},zm=Rm(r=>{if(r.length>2)if(zu[r])r=zu[r];else return[r];const[i,s]=r.split(""),u=Om[i],c=Am[s]||"";return Array.isArray(c)?c.map(f=>u+f):[u+c]}),Tl=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Pl=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Tl,...Pl];function jr(r,i,s,u){const c=Wo(r,i,!0)??s;return typeof c=="number"||typeof c=="string"?f=>typeof f=="string"?f:typeof c=="string"?`calc(${f} * ${c})`:c*f:Array.isArray(c)?f=>{if(typeof f=="string")return f;const p=Math.abs(f),h=c[p];return f>=0?h:typeof h=="number"?-h:`-${h}`}:typeof c=="function"?c:()=>{}}function Nl(r){return jr(r,"spacing",8)}function Fr(r,i){return typeof i=="string"||i==null?i:r(i)}function Im(r,i){return s=>r.reduce((u,c)=>(u[c]=Fr(i,s),u),{})}function $m(r,i,s,u){if(!i.includes(s))return null;const c=zm(s),f=Im(c,u),p=r[s];return Ht(r,p,f)}function Iu(r,i){const s=Nl(r.theme);return Object.keys(r).map(u=>$m(r,i,u,s)).reduce(Dr,{})}function Le(r){return Iu(r,Tl)}Le.propTypes={},Le.filterProps=Tl;function Me(r){return Iu(r,Pl)}Me.propTypes={},Me.filterProps=Pl;function $u(r=8,i=Nl({spacing:r})){if(r.mui)return r;const s=(...u)=>(u.length===0?[1]:u).map(f=>{const p=i(f);return typeof p=="number"?`${p}px`:p}).join(" ");return s.mui=!0,s}function Ho(...r){const i=r.reduce((u,c)=>(c.filterProps.forEach(f=>{u[f]=c}),u),{}),s=u=>Object.keys(u).reduce((c,f)=>i[f]?Dr(c,i[f](u)):c,{});return s.propTypes={},s.filterProps=r.reduce((u,c)=>u.concat(c.filterProps),[]),s}function wt(r){return typeof r!="number"?r:`${r}px solid`}function St(r,i){return je({prop:r,themeKey:"borders",transform:i})}const Lm=St("border",wt),Mm=St("borderTop",wt),Dm=St("borderRight",wt),jm=St("borderBottom",wt),Fm=St("borderLeft",wt),bm=St("borderColor"),Bm=St("borderTopColor"),Um=St("borderRightColor"),Wm=St("borderBottomColor"),Vm=St("borderLeftColor"),Hm=St("outline",wt),Km=St("outlineColor"),Ko=r=>{if(r.borderRadius!==void 0&&r.borderRadius!==null){const i=jr(r.theme,"shape.borderRadius",4),s=u=>({borderRadius:Fr(i,u)});return Ht(r,r.borderRadius,s)}return null};Ko.propTypes={},Ko.filterProps=["borderRadius"],Ho(Lm,Mm,Dm,jm,Fm,bm,Bm,Um,Wm,Vm,Ko,Hm,Km);const Go=r=>{if(r.gap!==void 0&&r.gap!==null){const i=jr(r.theme,"spacing",8),s=u=>({gap:Fr(i,u)});return Ht(r,r.gap,s)}return null};Go.propTypes={},Go.filterProps=["gap"];const Qo=r=>{if(r.columnGap!==void 0&&r.columnGap!==null){const i=jr(r.theme,"spacing",8),s=u=>({columnGap:Fr(i,u)});return Ht(r,r.columnGap,s)}return null};Qo.propTypes={},Qo.filterProps=["columnGap"];const Yo=r=>{if(r.rowGap!==void 0&&r.rowGap!==null){const i=jr(r.theme,"spacing",8),s=u=>({rowGap:Fr(i,u)});return Ht(r,r.rowGap,s)}return null};Yo.propTypes={},Yo.filterProps=["rowGap"];const Gm=je({prop:"gridColumn"}),Qm=je({prop:"gridRow"}),Ym=je({prop:"gridAutoFlow"}),Xm=je({prop:"gridAutoColumns"}),Zm=je({prop:"gridAutoRows"}),Jm=je({prop:"gridTemplateColumns"}),qm=je({prop:"gridTemplateRows"}),e0=je({prop:"gridTemplateAreas"}),t0=je({prop:"gridArea"});Ho(Go,Qo,Yo,Gm,Qm,Ym,Xm,Zm,Jm,qm,e0,t0);function Zn(r,i){return i==="grey"?i:r}const n0=je({prop:"color",themeKey:"palette",transform:Zn}),r0=je({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Zn}),o0=je({prop:"backgroundColor",themeKey:"palette",transform:Zn});Ho(n0,r0,o0);function mt(r){return r<=1&&r!==0?`${r*100}%`:r}const i0=je({prop:"width",transform:mt}),Rl=r=>{if(r.maxWidth!==void 0&&r.maxWidth!==null){const i=s=>{var c,f,p,h,v;const u=((p=(f=(c=r.theme)==null?void 0:c.breakpoints)==null?void 0:f.values)==null?void 0:p[s])||Uo[s];return u?((v=(h=r.theme)==null?void 0:h.breakpoints)==null?void 0:v.unit)!=="px"?{maxWidth:`${u}${r.theme.breakpoints.unit}`}:{maxWidth:u}:{maxWidth:mt(s)}};return Ht(r,r.maxWidth,i)}return null};Rl.filterProps=["maxWidth"];const l0=je({prop:"minWidth",transform:mt}),s0=je({prop:"height",transform:mt}),a0=je({prop:"maxHeight",transform:mt}),u0=je({prop:"minHeight",transform:mt});je({prop:"size",cssProperty:"width",transform:mt}),je({prop:"size",cssProperty:"height",transform:mt});const c0=je({prop:"boxSizing"});Ho(i0,Rl,l0,s0,a0,u0,c0);const Xo={border:{themeKey:"borders",transform:wt},borderTop:{themeKey:"borders",transform:wt},borderRight:{themeKey:"borders",transform:wt},borderBottom:{themeKey:"borders",transform:wt},borderLeft:{themeKey:"borders",transform:wt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:wt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ko},color:{themeKey:"palette",transform:Zn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Zn},backgroundColor:{themeKey:"palette",transform:Zn},p:{style:Me},pt:{style:Me},pr:{style:Me},pb:{style:Me},pl:{style:Me},px:{style:Me},py:{style:Me},padding:{style:Me},paddingTop:{style:Me},paddingRight:{style:Me},paddingBottom:{style:Me},paddingLeft:{style:Me},paddingX:{style:Me},paddingY:{style:Me},paddingInline:{style:Me},paddingInlineStart:{style:Me},paddingInlineEnd:{style:Me},paddingBlock:{style:Me},paddingBlockStart:{style:Me},paddingBlockEnd:{style:Me},m:{style:Le},mt:{style:Le},mr:{style:Le},mb:{style:Le},ml:{style:Le},mx:{style:Le},my:{style:Le},margin:{style:Le},marginTop:{style:Le},marginRight:{style:Le},marginBottom:{style:Le},marginLeft:{style:Le},marginX:{style:Le},marginY:{style:Le},marginInline:{style:Le},marginInlineStart:{style:Le},marginInlineEnd:{style:Le},marginBlock:{style:Le},marginBlockStart:{style:Le},marginBlockEnd:{style:Le},displayPrint:{cssProperty:!1,transform:r=>({"@media print":{display:r}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Go},rowGap:{style:Yo},columnGap:{style:Qo},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:mt},maxWidth:{style:Rl},minWidth:{transform:mt},height:{transform:mt},maxHeight:{transform:mt},minHeight:{transform:mt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function f0(...r){const i=r.reduce((u,c)=>u.concat(Object.keys(c)),[]),s=new Set(i);return r.every(u=>s.size===Object.keys(u).length)}function d0(r,i){return typeof r=="function"?r(i):r}function p0(){function r(s,u,c,f){const p={[s]:u,theme:c},h=f[s];if(!h)return{[s]:u};const{cssProperty:v=s,themeKey:E,transform:N,style:C}=h;if(u==null)return null;if(E==="typography"&&u==="inherit")return{[s]:u};const T=Wo(c,E)||{};return C?C(p):Ht(p,u,R=>{let O=Vo(T,N,R);return R===O&&typeof R=="string"&&(O=Vo(T,N,`${s}${R==="default"?"":Au(R)}`,R)),v===!1?O:{[v]:O}})}function i(s){const{sx:u,theme:c={}}=s||{};if(!u)return null;const f=c.unstable_sxConfig??Xo;function p(h){let v=h;if(typeof h=="function")v=h(c);else if(typeof h!="object")return h;if(!v)return null;const E=Pm(c.breakpoints),N=Object.keys(E);let C=E;return Object.keys(v).forEach(T=>{const $=d0(v[T],c);if($!=null)if(typeof $=="object")if(f[T])C=Dr(C,r(T,$,c,f));else{const R=Ht({theme:c},$,O=>({[T]:O}));f0(R,$)?C[T]=i({sx:$,theme:c}):C=Dr(C,R)}else C=Dr(C,r(T,$,c,f))}),km(c,Nm(N,C))}return Array.isArray(u)?u.map(p):p(u)}return i}const Jn=p0();Jn.filterProps=["sx"];function m0(r,i){var u;const s=this;if(s.vars){if(!((u=s.colorSchemes)!=null&&u[r])||typeof s.getColorSchemeSelector!="function")return{};let c=s.getColorSchemeSelector(r);return c==="&"?i:((c.includes("data-")||c.includes("."))&&(c=`*:where(${c.replace(/\s*&$/,"")}) &`),{[c]:i})}return s.palette.mode===r?i:{}}function Ol(r={},...i){const{breakpoints:s={},palette:u={},spacing:c,shape:f={},...p}=r,h=Sm(s),v=$u(c);let E=pt({breakpoints:h,direction:"ltr",components:{},palette:{mode:"light",...u},spacing:v,shape:{..._m,...f}},p);return E=Cm(E),E.applyStyles=m0,E=i.reduce((N,C)=>pt(N,C),E),E.unstable_sxConfig={...Xo,...p==null?void 0:p.unstable_sxConfig},E.unstable_sx=function(C){return Jn({sx:C,theme:this})},E}function h0(r){return Object.keys(r).length===0}function g0(r=null){const i=U.useContext(Cu);return!i||h0(i)?r:i}const y0=Ol();function v0(r=y0){return g0(r)}const Lu=r=>r,w0=(()=>{let r=Lu;return{configure(i){r=i},generate(i){return r(i)},reset(){r=Lu}}})();function Mu(r){var i,s,u="";if(typeof r=="string"||typeof r=="number")u+=r;else if(typeof r=="object")if(Array.isArray(r)){var c=r.length;for(i=0;i{u[c]=Al(r,c,s)}),u}function ju(r){const{variants:i,...s}=r,u={variants:i,style:Nu(s),isProcessed:!0};return u.style===s||i&&i.forEach(c=>{typeof c.style!="function"&&(c.style=Nu(c.style))}),u}const k0=Ol();function zl(r){return r!=="ownerState"&&r!=="theme"&&r!=="sx"&&r!=="as"}function x0(r){return r?(i,s)=>s[r]:null}function E0(r,i,s){r.theme=T0(r.theme)?s:r.theme[i]||r.theme}function Zo(r,i){const s=typeof i=="function"?i(r):i;if(Array.isArray(s))return s.flatMap(u=>Zo(r,u));if(Array.isArray(s==null?void 0:s.variants)){let u;if(s.isProcessed)u=s.style;else{const{variants:c,...f}=s;u=f}return Fu(r,s.variants,[u])}return s!=null&&s.isProcessed?s.style:s}function Fu(r,i,s=[]){var c;let u;e:for(let f=0;f{vm(h,H=>H.filter(K=>K!==Jn));const{name:E,slot:N,skipVariantsResolver:C,skipSx:T,overridesResolver:$=x0(N0(N)),...R}=v,O=C!==void 0?C:N&&N!=="Root"&&N!=="root"||!1,D=T||!1;let V=zl;N==="Root"||N==="root"?V=u:N?V=c:P0(h)&&(V=void 0);const J=ym(h,{shouldForwardProp:V,label:_0(),...R}),M=H=>{if(typeof H=="function"&&H.__emotion_real!==H)return function(b){return Zo(b,H)};if(Vt(H)){const K=ju(H);return K.variants?function(de){return Zo(de,K)}:K.style}return H},F=(...H)=>{const K=[],b=H.map(M),de=[];if(K.push(f),E&&$&&de.push(function(ee){var se,ge;const le=(ge=(se=ee.theme.components)==null?void 0:se[E])==null?void 0:ge.styleOverrides;if(!le)return null;const te={};for(const B in le)te[B]=Zo(ee,le[B]);return $(ee,te)}),E&&!O&&de.push(function(ee){var te,se;const ae=ee.theme,le=(se=(te=ae==null?void 0:ae.components)==null?void 0:te[E])==null?void 0:se.variants;return le?Fu(ee,le):null}),D||de.push(Jn),Array.isArray(b[0])){const W=b.shift(),ee=new Array(K.length).fill(""),ae=new Array(de.length).fill("");let le;le=[...ee,...W,...ae],le.raw=[...ee,...W.raw,...ae],K.unshift(le)}const pe=[...K,...b,...de],m=J(...pe);return h.muiName&&(m.muiName=h.muiName),m};return J.withConfig&&(F.withConfig=J.withConfig),F}}function _0(r,i){return void 0}function T0(r){for(const i in r)return!1;return!0}function P0(r){return typeof r=="string"&&r.charCodeAt(0)>96}function N0(r){return r&&r.charAt(0).toLowerCase()+r.slice(1)}function Il(r,i){const s={...i};for(const u in r)if(Object.prototype.hasOwnProperty.call(r,u)){const c=u;if(c==="components"||c==="slots")s[c]={...r[c],...s[c]};else if(c==="componentsProps"||c==="slotProps"){const f=r[c],p=i[c];if(!p)s[c]=f||{};else if(!f)s[c]=p;else{s[c]={...p};for(const h in f)if(Object.prototype.hasOwnProperty.call(f,h)){const v=h;s[c][v]=Il(f[v],p[v])}}}else s[c]===void 0&&(s[c]=r[c])}return s}const $l=typeof window<"u"?U.useLayoutEffect:U.useEffect;function R0(r,i=Number.MIN_SAFE_INTEGER,s=Number.MAX_SAFE_INTEGER){return Math.max(i,Math.min(r,s))}var O0={USER:"vlm",npm_config_user_agent:"npm/10.8.1 node/v20.14.0 linux x64 workspaces/false",GIT_ASKPASS:"/home/vlm/.vscode-server/bin/cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba/extensions/git/dist/askpass.sh",npm_node_execpath:"/home/vlm/.nvm/versions/node/v20.14.0/bin/node",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/vlm",OLDPWD:"/home/vlm/projekty/eshop/eshop-react",TERM_PROGRAM_VERSION:"1.96.4",NVM_BIN:"/home/vlm/.nvm/versions/node/v20.14.0/bin",VSCODE_IPC_HOOK_CLI:"/mnt/wslg/runtime-dir/vscode-ipc-059a4fc2-e413-42a9-80d7-12aad71d762e.sock",npm_package_json:"/home/vlm/projekty/eshop/eshop-react/react/src/app/gallery/package.json",NVM_INC:"/home/vlm/.nvm/versions/node/v20.14.0/include/node",VSCODE_GIT_ASKPASS_MAIN:"/home/vlm/.vscode-server/bin/cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba/extensions/git/dist/askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"/home/vlm/.vscode-server/bin/cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba/node",npm_config_userconfig:"/home/vlm/.npmrc",npm_config_local_prefix:"/home/vlm/projekty/eshop/eshop-react/react/src/app/gallery",COLORTERM:"truecolor",WSL_DISTRO_NAME:"Debian",COLOR:"1",NVM_DIR:"/home/vlm/.nvm",WAYLAND_DISPLAY:"wayland-0",LOGNAME:"vlm",NAME:"it-miler-nb",WSL_INTEROP:"/run/WSL/13_interop",http_proxy:"http://proxy.dek.cz:3128",PULSE_SERVER:"unix:/mnt/wslg/PulseServer",_:"/home/vlm/.nvm/versions/node/v20.14.0/bin/npm",npm_config_prefix:"/home/vlm/.nvm/versions/node/v20.14.0",npm_config_npm_version:"10.8.1",TERM:"xterm-256color",npm_config_cache:"/home/vlm/.npm",npm_config_node_gyp:"/home/vlm/.nvm/versions/node/v20.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/vlm/projekty/eshop/eshop-react/react/src/app/gallery/node_modules/.bin:/home/vlm/projekty/eshop/eshop-react/react/src/app/node_modules/.bin:/home/vlm/projekty/eshop/eshop-react/react/src/node_modules/.bin:/home/vlm/projekty/eshop/eshop-react/react/node_modules/.bin:/home/vlm/projekty/eshop/eshop-react/node_modules/.bin:/home/vlm/projekty/eshop/node_modules/.bin:/home/vlm/projekty/node_modules/.bin:/home/vlm/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/home/vlm/.nvm/versions/node/v20.14.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/vlm/.vscode-server/bin/cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba/bin/remote-cli:/home/vlm/.nvm/versions/node/v20.14.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program Files (x86)/Eclipse Adoptium/jre-8.0.422.5-hotspot/bin:/mnt/c/Program Files/Eclipse Adoptium/jre-8.0.422.5-hotspot/bin:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files/Microsoft VS Code/bin:/mnt/c/Program Files (x86)/Microsoft SQL Server/160/DTS/Binn/:/mnt/c/nvm:/mnt/c/nvm/nodejs:/mnt/c/Program Files (x86)/pas/:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/PuTTY/:/mnt/c/Users/miler vlastimil/AppData/Local/Microsoft/WindowsApps:/mnt/c/nvm:/mnt/c/nvm/nodejs:/mnt/c/Users/miler vlastimil/AppData/Local/Programs/oh-my-posh/bin:/home/vlm/.vscode-server/data/User/globalStorage/github.copilot-chat/debugCommand",WSL_PAC_URL:"http://proxy.dek.cz/wpad.dat",NODE:"/home/vlm/.nvm/versions/node/v20.14.0/bin/node",npm_package_name:"react-eshop",XDG_RUNTIME_DIR:"/mnt/wslg/runtime-dir",DISPLAY:":0",LANG:"en_US.UTF-8",LS_COLORS:"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.swp=00;90:*.tmp=00;90:*.dpkg-dist=00;90:*.dpkg-old=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:",VSCODE_GIT_IPC_HANDLE:"/mnt/wslg/runtime-dir/vscode-git-ab85a6a1e2.sock",TERM_PROGRAM:"vscode",npm_lifecycle_script:"npm run check && vite build",SHELL:"/bin/bash",npm_package_version:"0.0.0",npm_lifecycle_event:"build",NODE_PATH:"/home/vlm/projekty/eshop/eshop-react/react/node_modules/.pnpm/vite@5.4.11_@types+node@20.14.13/node_modules/vite/bin/node_modules:/home/vlm/projekty/eshop/eshop-react/react/node_modules/.pnpm/vite@5.4.11_@types+node@20.14.13/node_modules/vite/node_modules:/home/vlm/projekty/eshop/eshop-react/react/node_modules/.pnpm/vite@5.4.11_@types+node@20.14.13/node_modules:/home/vlm/projekty/eshop/eshop-react/react/node_modules/.pnpm/node_modules",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",npm_config_globalconfig:"/home/vlm/.nvm/versions/node/v20.14.0/etc/npmrc",npm_config_init_module:"/home/vlm/.npm-init.js",PWD:"/home/vlm/projekty/eshop/eshop-react/react/src/app/gallery",npm_execpath:"/home/vlm/.nvm/versions/node/v20.14.0/lib/node_modules/npm/bin/npm-cli.js",NVM_CD_FLAGS:"",npm_config_global_prefix:"/home/vlm/.nvm/versions/node/v20.14.0",HTTP_PROXY:"http://proxy.dek.cz:3128",npm_command:"run-script",WSL2_GUI_APPS_ENABLED:"1",HOSTTYPE:"x86_64",WSLENV:"VSCODE_WSL_EXT_LOCATION/up:VSCODE_SERVER_TAR/up",INIT_CWD:"/home/vlm/projekty/eshop/eshop-react/react/src/app/gallery",EDITOR:"vi",NODE_ENV:"production"};function Ll(r,i=0,s=1){return R0(r,i,s)}function A0(r){r=r.slice(1);const i=new RegExp(`.{1,${r.length>=6?2:1}}`,"g");let s=r.match(i);return s&&s[0].length===1&&(s=s.map(u=>u+u)),s?`rgb${s.length===4?"a":""}(${s.map((u,c)=>c<3?parseInt(u,16):Math.round(parseInt(u,16)/255*1e3)/1e3).join(", ")})`:""}function rn(r){if(r.type)return r;if(r.charAt(0)==="#")return rn(A0(r));const i=r.indexOf("("),s=r.substring(0,i);if(!["rgb","rgba","hsl","hsla","color"].includes(s))throw new Error(Cn(9,r));let u=r.substring(i+1,r.length-1),c;if(s==="color"){if(u=u.split(" "),c=u.shift(),u.length===4&&u[3].charAt(0)==="/"&&(u[3]=u[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(c))throw new Error(Cn(10,c))}else u=u.split(",");return u=u.map(f=>parseFloat(f)),{type:s,values:u,colorSpace:c}}const z0=r=>{const i=rn(r);return i.values.slice(0,3).map((s,u)=>i.type.includes("hsl")&&u!==0?`${s}%`:s).join(" ")},Br=(r,i)=>{try{return z0(r)}catch{return i&&O0.NODE_ENV!=="production"&&console.warn(i),r}};function Jo(r){const{type:i,colorSpace:s}=r;let{values:u}=r;return i.includes("rgb")?u=u.map((c,f)=>f<3?parseInt(c,10):c):i.includes("hsl")&&(u[1]=`${u[1]}%`,u[2]=`${u[2]}%`),i.includes("color")?u=`${s} ${u.join(" ")}`:u=`${u.join(", ")}`,`${i}(${u})`}function bu(r){r=rn(r);const{values:i}=r,s=i[0],u=i[1]/100,c=i[2]/100,f=u*Math.min(c,1-c),p=(E,N=(E+s/30)%12)=>c-f*Math.max(Math.min(N-3,9-N,1),-1);let h="rgb";const v=[Math.round(p(0)*255),Math.round(p(8)*255),Math.round(p(4)*255)];return r.type==="hsla"&&(h+="a",v.push(i[3])),Jo({type:h,values:v})}function Ml(r){r=rn(r);let i=r.type==="hsl"||r.type==="hsla"?rn(bu(r)).values:r.values;return i=i.map(s=>(r.type!=="color"&&(s/=255),s<=.03928?s/12.92:((s+.055)/1.055)**2.4)),Number((.2126*i[0]+.7152*i[1]+.0722*i[2]).toFixed(3))}function I0(r,i){const s=Ml(r),u=Ml(i);return(Math.max(s,u)+.05)/(Math.min(s,u)+.05)}function $0(r,i){return r=rn(r),i=Ll(i),(r.type==="rgb"||r.type==="hsl")&&(r.type+="a"),r.type==="color"?r.values[3]=`/${i}`:r.values[3]=i,Jo(r)}function qo(r,i,s){try{return $0(r,i)}catch{return r}}function Dl(r,i){if(r=rn(r),i=Ll(i),r.type.includes("hsl"))r.values[2]*=1-i;else if(r.type.includes("rgb")||r.type.includes("color"))for(let s=0;s<3;s+=1)r.values[s]*=1-i;return Jo(r)}function _e(r,i,s){try{return Dl(r,i)}catch{return r}}function jl(r,i){if(r=rn(r),i=Ll(i),r.type.includes("hsl"))r.values[2]+=(100-r.values[2])*i;else if(r.type.includes("rgb"))for(let s=0;s<3;s+=1)r.values[s]+=(255-r.values[s])*i;else if(r.type.includes("color"))for(let s=0;s<3;s+=1)r.values[s]+=(1-r.values[s])*i;return Jo(r)}function Te(r,i,s){try{return jl(r,i)}catch{return r}}function L0(r,i=.15){return Ml(r)>.5?Dl(r,i):jl(r,i)}function ei(r,i,s){try{return L0(r,i)}catch{return r}}function Bu(...r){return r.reduce((i,s)=>s==null?i:function(...c){i.apply(this,c),s.apply(this,c)},()=>{})}function _n(r){return r&&r.ownerDocument||document}function ti(r){return _n(r).defaultView||window}function Fl(r,i){typeof r=="function"?r(i):r&&(r.current=i)}function Uu(r){const i=U.useRef(r);return $l(()=>{i.current=r}),U.useRef((...s)=>(0,i.current)(...s)).current}function qn(...r){return U.useMemo(()=>r.every(i=>i==null)?null:i=>{r.forEach(s=>{Fl(s,i)})},r)}function M0(r=window){const i=r.document.documentElement.clientWidth;return r.innerWidth-i}function Wu(r,i,s=void 0){const u={};for(const c in r){const f=r[c];let p="",h=!0;for(let v=0;vu.match(/^on[A-Z]/)&&typeof r[u]=="function"&&!i.includes(u)).forEach(u=>{s[u]=r[u]}),s}function Hu(r){if(r===void 0)return{};const i={};return Object.keys(r).filter(s=>!(s.match(/^on[A-Z]/)&&typeof r[s]=="function")).forEach(s=>{i[s]=r[s]}),i}function F0(r){const{getSlotProps:i,additionalProps:s,externalSlotProps:u,externalForwardedProps:c,className:f}=r;if(!i){const $=br(s==null?void 0:s.className,f,c==null?void 0:c.className,u==null?void 0:u.className),R={...s==null?void 0:s.style,...c==null?void 0:c.style,...u==null?void 0:u.style},O={...s,...c,...u};return $.length>0&&(O.className=$),Object.keys(R).length>0&&(O.style=R),{props:O,internalRef:void 0}}const p=Vu({...c,...u}),h=Hu(u),v=Hu(c),E=i(p),N=br(E==null?void 0:E.className,s==null?void 0:s.className,f,c==null?void 0:c.className,u==null?void 0:u.className),C={...E==null?void 0:E.style,...s==null?void 0:s.style,...c==null?void 0:c.style,...u==null?void 0:u.style},T={...E,...s,...v,...h};return N.length>0&&(T.className=N),Object.keys(C).length>0&&(T.style=C),{props:T,internalRef:E.ref}}function b0(r,i,s){return typeof r=="function"?r(i,s):r}function bl(r){var i;return parseInt(U.version,10)>=19?((i=r==null?void 0:r.props)==null?void 0:i.ref)||null:(r==null?void 0:r.ref)||null}const B0=U.createContext(void 0);function U0(r){const{theme:i,name:s,props:u}=r;if(!i||!i.components||!i.components[s])return u;const c=i.components[s];return c.defaultProps?Il(c.defaultProps,u):!c.styleOverrides&&!c.variants?Il(c,u):u}function W0({props:r,name:i}){const s=U.useContext(B0);return U0({props:r,name:i,theme:{components:s}})}const Ku={theme:void 0};function V0(r){let i,s;return function(c){let f=i;return(f===void 0||c.theme!==s)&&(Ku.theme=c.theme,f=ju(r(Ku)),i=f,s=c.theme),f}}function H0(r=""){function i(...u){if(!u.length)return"";const c=u[0];return typeof c=="string"&&!c.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${r?`${r}-`:""}${c}${i(...u.slice(1))})`:`, ${c}`}return(u,...c)=>`var(--${r?`${r}-`:""}${u}${i(...c)})`}const Gu=(r,i,s,u=[])=>{let c=r;i.forEach((f,p)=>{p===i.length-1?Array.isArray(c)?c[Number(f)]=s:c&&typeof c=="object"&&(c[f]=s):c&&typeof c=="object"&&(c[f]||(c[f]=u.includes(f)?[]:{}),c=c[f])})},K0=(r,i,s)=>{function u(c,f=[],p=[]){Object.entries(c).forEach(([h,v])=>{(!s||s&&!s([...f,h]))&&v!=null&&(typeof v=="object"&&Object.keys(v).length>0?u(v,[...f,h],Array.isArray(v)?[...p,h]:p):i([...f,h],v,p))})}u(r)},G0=(r,i)=>typeof i=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(u=>r.includes(u))||r[r.length-1].toLowerCase().includes("opacity")?i:`${i}px`:i;function Bl(r,i){const{prefix:s,shouldSkipGeneratingVar:u}=i||{},c={},f={},p={};return K0(r,(h,v,E)=>{if((typeof v=="string"||typeof v=="number")&&(!u||!u(h,v))){const N=`--${s?`${s}-`:""}${h.join("-")}`,C=G0(h,v);Object.assign(c,{[N]:C}),Gu(f,h,`var(${N})`,E),Gu(p,h,`var(${N}, ${C})`,E)}},h=>h[0]==="vars"),{css:c,vars:f,varsWithDefaults:p}}function Q0(r,i={}){const{getSelector:s=D,disableCssColorScheme:u,colorSchemeSelector:c}=i,{colorSchemes:f={},components:p,defaultColorScheme:h="light",...v}=r,{vars:E,css:N,varsWithDefaults:C}=Bl(v,i);let T=C;const $={},{[h]:R,...O}=f;if(Object.entries(O||{}).forEach(([M,F])=>{const{vars:H,css:K,varsWithDefaults:b}=Bl(F,i);T=pt(T,b),$[M]={css:K,vars:H}}),R){const{css:M,vars:F,varsWithDefaults:H}=Bl(R,i);T=pt(T,H),$[h]={css:M,vars:F}}function D(M,F){var K,b;let H=c;if(c==="class"&&(H=".%s"),c==="data"&&(H="[data-%s]"),c!=null&&c.startsWith("data-")&&!c.includes("%s")&&(H=`[${c}="%s"]`),M){if(H==="media")return r.defaultColorScheme===M?":root":{[`@media (prefers-color-scheme: ${((b=(K=f[M])==null?void 0:K.palette)==null?void 0:b.mode)||M})`]:{":root":F}};if(H)return r.defaultColorScheme===M?`:root, ${H.replace("%s",String(M))}`:H.replace("%s",String(M))}return":root"}return{vars:T,generateThemeVars:()=>{let M={...E};return Object.entries($).forEach(([,{vars:F}])=>{M=pt(M,F)}),M},generateStyleSheets:()=>{var de,pe;const M=[],F=r.defaultColorScheme||"light";function H(m,W){Object.keys(W).length&&M.push(typeof m=="string"?{[m]:{...W}}:m)}H(s(void 0,{...N}),N);const{[F]:K,...b}=$;if(K){const{css:m}=K,W=(pe=(de=f[F])==null?void 0:de.palette)==null?void 0:pe.mode,ee=!u&&W?{colorScheme:W,...m}:{...m};H(s(F,{...ee}),ee)}return Object.entries(b).forEach(([m,{css:W}])=>{var le,te;const ee=(te=(le=f[m])==null?void 0:le.palette)==null?void 0:te.mode,ae=!u&&ee?{colorScheme:ee,...W}:{...W};H(s(m,{...ae}),ae)}),M}}}function Y0(r){return function(s){return r==="media"?`@media (prefers-color-scheme: ${s})`:r?r.startsWith("data-")&&!r.includes("%s")?`[${r}="${s}"] &`:r==="class"?`.${s} &`:r==="data"?`[data-${s}] &`:`${r.replace("%s",s)} &`:"&"}}function Qu(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Or.white,default:Or.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const X0=Qu();function Yu(){return{text:{primary:Or.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Or.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Xu=Yu();function Zu(r,i,s,u){const c=u.light||u,f=u.dark||u*1.5;r[i]||(r.hasOwnProperty(s)?r[i]=r[s]:i==="light"?r.light=jl(r.main,c):i==="dark"&&(r.dark=Dl(r.main,f)))}function Z0(r="light"){return r==="dark"?{main:Hn[200],light:Hn[50],dark:Hn[400]}:{main:Hn[700],light:Hn[400],dark:Hn[800]}}function J0(r="light"){return r==="dark"?{main:Vn[200],light:Vn[50],dark:Vn[400]}:{main:Vn[500],light:Vn[300],dark:Vn[700]}}function q0(r="light"){return r==="dark"?{main:Wn[500],light:Wn[300],dark:Wn[700]}:{main:Wn[700],light:Wn[400],dark:Wn[800]}}function eh(r="light"){return r==="dark"?{main:Kn[400],light:Kn[300],dark:Kn[700]}:{main:Kn[700],light:Kn[500],dark:Kn[900]}}function th(r="light"){return r==="dark"?{main:Gn[400],light:Gn[300],dark:Gn[700]}:{main:Gn[800],light:Gn[500],dark:Gn[900]}}function nh(r="light"){return r==="dark"?{main:Ar[400],light:Ar[300],dark:Ar[700]}:{main:"#ed6c02",light:Ar[500],dark:Ar[900]}}function Ul(r){const{mode:i="light",contrastThreshold:s=3,tonalOffset:u=.2,...c}=r,f=r.primary||Z0(i),p=r.secondary||J0(i),h=r.error||q0(i),v=r.info||eh(i),E=r.success||th(i),N=r.warning||nh(i);function C(O){return I0(O,Xu.text.primary)>=s?Xu.text.primary:X0.text.primary}const T=({color:O,name:D,mainShade:V=500,lightShade:J=300,darkShade:M=700})=>{if(O={...O},!O.main&&O[V]&&(O.main=O[V]),!O.hasOwnProperty("main"))throw new Error(Cn(11,D?` (${D})`:"",V));if(typeof O.main!="string")throw new Error(Cn(12,D?` (${D})`:"",JSON.stringify(O.main)));return Zu(O,"light",J,u),Zu(O,"dark",M,u),O.contrastText||(O.contrastText=C(O.main)),O};let $;return i==="light"?$=Qu():i==="dark"&&($=Yu()),pt({common:{...Or},mode:i,primary:T({color:f,name:"primary"}),secondary:T({color:p,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:T({color:h,name:"error"}),warning:T({color:N,name:"warning"}),info:T({color:v,name:"info"}),success:T({color:E,name:"success"}),grey:vp,contrastThreshold:s,getContrastText:C,augmentColor:T,tonalOffset:u,...$},c)}function rh(r){const i={};return Object.entries(r).forEach(u=>{const[c,f]=u;typeof f=="object"&&(i[c]=`${f.fontStyle?`${f.fontStyle} `:""}${f.fontVariant?`${f.fontVariant} `:""}${f.fontWeight?`${f.fontWeight} `:""}${f.fontStretch?`${f.fontStretch} `:""}${f.fontSize||""}${f.lineHeight?`/${f.lineHeight} `:""}${f.fontFamily||""}`)}),i}function oh(r,i){return{toolbar:{minHeight:56,[r.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[r.up("sm")]:{minHeight:64}},...i}}function ih(r){return Math.round(r*1e5)/1e5}const Ju={textTransform:"uppercase"},qu='"Roboto", "Helvetica", "Arial", sans-serif';function lh(r,i){const{fontFamily:s=qu,fontSize:u=14,fontWeightLight:c=300,fontWeightRegular:f=400,fontWeightMedium:p=500,fontWeightBold:h=700,htmlFontSize:v=16,allVariants:E,pxToRem:N,...C}=typeof i=="function"?i(r):i,T=u/14,$=N||(D=>`${D/v*T}rem`),R=(D,V,J,M,F)=>({fontFamily:s,fontWeight:D,fontSize:$(V),lineHeight:J,...s===qu?{letterSpacing:`${ih(M/V)}em`}:{},...F,...E}),O={h1:R(c,96,1.167,-1.5),h2:R(c,60,1.2,-.5),h3:R(f,48,1.167,0),h4:R(f,34,1.235,.25),h5:R(f,24,1.334,0),h6:R(p,20,1.6,.15),subtitle1:R(f,16,1.75,.15),subtitle2:R(p,14,1.57,.1),body1:R(f,16,1.5,.15),body2:R(f,14,1.43,.15),button:R(p,14,1.75,.4,Ju),caption:R(f,12,1.66,.4),overline:R(f,12,2.66,1,Ju),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return pt({htmlFontSize:v,pxToRem:$,fontFamily:s,fontSize:u,fontWeightLight:c,fontWeightRegular:f,fontWeightMedium:p,fontWeightBold:h,...O},C,{clone:!1})}const sh=.2,ah=.14,uh=.12;function Ae(...r){return[`${r[0]}px ${r[1]}px ${r[2]}px ${r[3]}px rgba(0,0,0,${sh})`,`${r[4]}px ${r[5]}px ${r[6]}px ${r[7]}px rgba(0,0,0,${ah})`,`${r[8]}px ${r[9]}px ${r[10]}px ${r[11]}px rgba(0,0,0,${uh})`].join(",")}const ch=["none",Ae(0,2,1,-1,0,1,1,0,0,1,3,0),Ae(0,3,1,-2,0,2,2,0,0,1,5,0),Ae(0,3,3,-2,0,3,4,0,0,1,8,0),Ae(0,2,4,-1,0,4,5,0,0,1,10,0),Ae(0,3,5,-1,0,5,8,0,0,1,14,0),Ae(0,3,5,-1,0,6,10,0,0,1,18,0),Ae(0,4,5,-2,0,7,10,1,0,2,16,1),Ae(0,5,5,-3,0,8,10,1,0,3,14,2),Ae(0,5,6,-3,0,9,12,1,0,3,16,2),Ae(0,6,6,-3,0,10,14,1,0,4,18,3),Ae(0,6,7,-4,0,11,15,1,0,4,20,3),Ae(0,7,8,-4,0,12,17,2,0,5,22,4),Ae(0,7,8,-4,0,13,19,2,0,5,24,4),Ae(0,7,9,-4,0,14,21,2,0,5,26,4),Ae(0,8,9,-5,0,15,22,2,0,6,28,5),Ae(0,8,10,-5,0,16,24,2,0,6,30,5),Ae(0,8,11,-5,0,17,26,2,0,6,32,5),Ae(0,9,11,-5,0,18,28,2,0,7,34,6),Ae(0,9,12,-6,0,19,29,2,0,7,36,6),Ae(0,10,13,-6,0,20,31,3,0,8,38,7),Ae(0,10,13,-6,0,21,33,3,0,8,40,7),Ae(0,10,14,-6,0,22,35,3,0,8,42,7),Ae(0,11,14,-7,0,23,36,3,0,9,44,8),Ae(0,11,15,-7,0,24,38,3,0,9,46,8)],fh={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},dh={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ec(r){return`${Math.round(r)}ms`}function ph(r){if(!r)return 0;const i=r/36;return Math.min(Math.round((4+15*i**.25+i/5)*10),3e3)}function mh(r){const i={...fh,...r.easing},s={...dh,...r.duration};return{getAutoHeightDuration:ph,create:(c=["all"],f={})=>{const{duration:p=s.standard,easing:h=i.easeInOut,delay:v=0,...E}=f;return(Array.isArray(c)?c:[c]).map(N=>`${N} ${typeof p=="string"?p:ec(p)} ${h} ${typeof v=="string"?v:ec(v)}`).join(",")},...r,easing:i,duration:s}}const hh={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function gh(r){return Vt(r)||typeof r>"u"||typeof r=="string"||typeof r=="boolean"||typeof r=="number"||Array.isArray(r)}function tc(r={}){const i={...r};function s(u){const c=Object.entries(u);for(let f=0;fpt($,R),T),T.unstable_sxConfig={...Xo,...E==null?void 0:E.unstable_sxConfig},T.unstable_sx=function(R){return Jn({sx:R,theme:this})},T.toRuntimeSource=tc,T}function yh(r){let i;return r<1?i=5.11916*r**2:i=4.5*Math.log(r+1)+2,Math.round(i*10)/1e3}const vh=[...Array(25)].map((r,i)=>{if(i===0)return"none";const s=yh(i);return`linear-gradient(rgba(255 255 255 / ${s}), rgba(255 255 255 / ${s}))`});function nc(r){return{inputPlaceholder:r==="dark"?.5:.42,inputUnderline:r==="dark"?.7:.42,switchTrackDisabled:r==="dark"?.2:.12,switchTrack:r==="dark"?.3:.38}}function rc(r){return r==="dark"?vh:[]}function wh(r){const{palette:i={mode:"light"},opacity:s,overlays:u,...c}=r,f=Ul(i);return{palette:f,opacity:{...nc(f.mode),...s},overlays:u||rc(f.mode),...c}}function Sh(r){var i;return!!r[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!r[0].match(/sxConfig$/)||r[0]==="palette"&&!!((i=r[1])!=null&&i.match(/(mode|contrastThreshold|tonalOffset)/))}const kh=r=>[...[...Array(25)].map((i,s)=>`--${r?`${r}-`:""}overlays-${s}`),`--${r?`${r}-`:""}palette-AppBar-darkBg`,`--${r?`${r}-`:""}palette-AppBar-darkColor`],xh=r=>(i,s)=>{const u=r.rootSelector||":root",c=r.colorSchemeSelector;let f=c;if(c==="class"&&(f=".%s"),c==="data"&&(f="[data-%s]"),c!=null&&c.startsWith("data-")&&!c.includes("%s")&&(f=`[${c}="%s"]`),r.defaultColorScheme===i){if(i==="dark"){const p={};return kh(r.cssVarPrefix).forEach(h=>{p[h]=s[h],delete s[h]}),f==="media"?{[u]:s,"@media (prefers-color-scheme: dark)":{[u]:p}}:f?{[f.replace("%s",i)]:p,[`${u}, ${f.replace("%s",i)}`]:s}:{[u]:{...s,...p}}}if(f&&f!=="media")return`${u}, ${f.replace("%s",String(i))}`}else if(i){if(f==="media")return{[`@media (prefers-color-scheme: ${String(i)})`]:{[u]:s}};if(f)return f.replace("%s",String(i))}return u};function Eh(r,i){i.forEach(s=>{r[s]||(r[s]={})})}function P(r,i,s){!r[i]&&s&&(r[i]=s)}function Ur(r){return!r||!r.startsWith("hsl")?r:bu(r)}function Kt(r,i){`${i}Channel`in r||(r[`${i}Channel`]=Br(Ur(r[i]),`MUI: Can't create \`palette.${i}Channel\` because \`palette.${i}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). To suppress this warning, you need to explicitly provide the \`palette.${i}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Ch(r){return typeof r=="number"?`${r}px`:typeof r=="string"||typeof r=="function"||Array.isArray(r)?r:"8px"}const Dt=r=>{try{return r()}catch{}},_h=(r="mui")=>H0(r);function Vl(r,i,s,u){if(!i)return;i=i===!0?{}:i;const c=u==="dark"?"dark":"light";if(!s){r[u]=wh({...i,palette:{mode:c,...i==null?void 0:i.palette}});return}const{palette:f,...p}=Wl({...s,palette:{mode:c,...i==null?void 0:i.palette}});return r[u]={...i,palette:f,opacity:{...nc(c),...i==null?void 0:i.opacity},overlays:(i==null?void 0:i.overlays)||rc(c)},p}function Th(r={},...i){const{colorSchemes:s={light:!0},defaultColorScheme:u,disableCssColorScheme:c=!1,cssVarPrefix:f="mui",shouldSkipGeneratingVar:p=Sh,colorSchemeSelector:h=s.light&&s.dark?"media":void 0,rootSelector:v=":root",...E}=r,N=Object.keys(s)[0],C=u||(s.light&&N!=="light"?"light":N),T=_h(f),{[C]:$,light:R,dark:O,...D}=s,V={...D};let J=$;if((C==="dark"&&!("dark"in s)||C==="light"&&!("light"in s))&&(J=!0),!J)throw new Error(Cn(21,C));const M=Vl(V,J,E,C);R&&!V.light&&Vl(V,R,void 0,"light"),O&&!V.dark&&Vl(V,O,void 0,"dark");let F={defaultColorScheme:C,...M,cssVarPrefix:f,colorSchemeSelector:h,rootSelector:v,getCssVar:T,colorSchemes:V,font:{...rh(M.typography),...M.font},spacing:Ch(E.spacing)};Object.keys(F.colorSchemes).forEach(pe=>{const m=F.colorSchemes[pe].palette,W=ee=>{const ae=ee.split("-"),le=ae[1],te=ae[2];return T(ee,m[le][te])};if(m.mode==="light"&&(P(m.common,"background","#fff"),P(m.common,"onBackground","#000")),m.mode==="dark"&&(P(m.common,"background","#000"),P(m.common,"onBackground","#fff")),Eh(m,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),m.mode==="light"){P(m.Alert,"errorColor",_e(m.error.light,.6)),P(m.Alert,"infoColor",_e(m.info.light,.6)),P(m.Alert,"successColor",_e(m.success.light,.6)),P(m.Alert,"warningColor",_e(m.warning.light,.6)),P(m.Alert,"errorFilledBg",W("palette-error-main")),P(m.Alert,"infoFilledBg",W("palette-info-main")),P(m.Alert,"successFilledBg",W("palette-success-main")),P(m.Alert,"warningFilledBg",W("palette-warning-main")),P(m.Alert,"errorFilledColor",Dt(()=>m.getContrastText(m.error.main))),P(m.Alert,"infoFilledColor",Dt(()=>m.getContrastText(m.info.main))),P(m.Alert,"successFilledColor",Dt(()=>m.getContrastText(m.success.main))),P(m.Alert,"warningFilledColor",Dt(()=>m.getContrastText(m.warning.main))),P(m.Alert,"errorStandardBg",Te(m.error.light,.9)),P(m.Alert,"infoStandardBg",Te(m.info.light,.9)),P(m.Alert,"successStandardBg",Te(m.success.light,.9)),P(m.Alert,"warningStandardBg",Te(m.warning.light,.9)),P(m.Alert,"errorIconColor",W("palette-error-main")),P(m.Alert,"infoIconColor",W("palette-info-main")),P(m.Alert,"successIconColor",W("palette-success-main")),P(m.Alert,"warningIconColor",W("palette-warning-main")),P(m.AppBar,"defaultBg",W("palette-grey-100")),P(m.Avatar,"defaultBg",W("palette-grey-400")),P(m.Button,"inheritContainedBg",W("palette-grey-300")),P(m.Button,"inheritContainedHoverBg",W("palette-grey-A100")),P(m.Chip,"defaultBorder",W("palette-grey-400")),P(m.Chip,"defaultAvatarColor",W("palette-grey-700")),P(m.Chip,"defaultIconColor",W("palette-grey-700")),P(m.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),P(m.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),P(m.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),P(m.LinearProgress,"primaryBg",Te(m.primary.main,.62)),P(m.LinearProgress,"secondaryBg",Te(m.secondary.main,.62)),P(m.LinearProgress,"errorBg",Te(m.error.main,.62)),P(m.LinearProgress,"infoBg",Te(m.info.main,.62)),P(m.LinearProgress,"successBg",Te(m.success.main,.62)),P(m.LinearProgress,"warningBg",Te(m.warning.main,.62)),P(m.Skeleton,"bg",`rgba(${W("palette-text-primaryChannel")} / 0.11)`),P(m.Slider,"primaryTrack",Te(m.primary.main,.62)),P(m.Slider,"secondaryTrack",Te(m.secondary.main,.62)),P(m.Slider,"errorTrack",Te(m.error.main,.62)),P(m.Slider,"infoTrack",Te(m.info.main,.62)),P(m.Slider,"successTrack",Te(m.success.main,.62)),P(m.Slider,"warningTrack",Te(m.warning.main,.62));const ee=ei(m.background.default,.8);P(m.SnackbarContent,"bg",ee),P(m.SnackbarContent,"color",Dt(()=>m.getContrastText(ee))),P(m.SpeedDialAction,"fabHoverBg",ei(m.background.paper,.15)),P(m.StepConnector,"border",W("palette-grey-400")),P(m.StepContent,"border",W("palette-grey-400")),P(m.Switch,"defaultColor",W("palette-common-white")),P(m.Switch,"defaultDisabledColor",W("palette-grey-100")),P(m.Switch,"primaryDisabledColor",Te(m.primary.main,.62)),P(m.Switch,"secondaryDisabledColor",Te(m.secondary.main,.62)),P(m.Switch,"errorDisabledColor",Te(m.error.main,.62)),P(m.Switch,"infoDisabledColor",Te(m.info.main,.62)),P(m.Switch,"successDisabledColor",Te(m.success.main,.62)),P(m.Switch,"warningDisabledColor",Te(m.warning.main,.62)),P(m.TableCell,"border",Te(qo(m.divider,1),.88)),P(m.Tooltip,"bg",qo(m.grey[700],.92))}if(m.mode==="dark"){P(m.Alert,"errorColor",Te(m.error.light,.6)),P(m.Alert,"infoColor",Te(m.info.light,.6)),P(m.Alert,"successColor",Te(m.success.light,.6)),P(m.Alert,"warningColor",Te(m.warning.light,.6)),P(m.Alert,"errorFilledBg",W("palette-error-dark")),P(m.Alert,"infoFilledBg",W("palette-info-dark")),P(m.Alert,"successFilledBg",W("palette-success-dark")),P(m.Alert,"warningFilledBg",W("palette-warning-dark")),P(m.Alert,"errorFilledColor",Dt(()=>m.getContrastText(m.error.dark))),P(m.Alert,"infoFilledColor",Dt(()=>m.getContrastText(m.info.dark))),P(m.Alert,"successFilledColor",Dt(()=>m.getContrastText(m.success.dark))),P(m.Alert,"warningFilledColor",Dt(()=>m.getContrastText(m.warning.dark))),P(m.Alert,"errorStandardBg",_e(m.error.light,.9)),P(m.Alert,"infoStandardBg",_e(m.info.light,.9)),P(m.Alert,"successStandardBg",_e(m.success.light,.9)),P(m.Alert,"warningStandardBg",_e(m.warning.light,.9)),P(m.Alert,"errorIconColor",W("palette-error-main")),P(m.Alert,"infoIconColor",W("palette-info-main")),P(m.Alert,"successIconColor",W("palette-success-main")),P(m.Alert,"warningIconColor",W("palette-warning-main")),P(m.AppBar,"defaultBg",W("palette-grey-900")),P(m.AppBar,"darkBg",W("palette-background-paper")),P(m.AppBar,"darkColor",W("palette-text-primary")),P(m.Avatar,"defaultBg",W("palette-grey-600")),P(m.Button,"inheritContainedBg",W("palette-grey-800")),P(m.Button,"inheritContainedHoverBg",W("palette-grey-700")),P(m.Chip,"defaultBorder",W("palette-grey-700")),P(m.Chip,"defaultAvatarColor",W("palette-grey-300")),P(m.Chip,"defaultIconColor",W("palette-grey-300")),P(m.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),P(m.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),P(m.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),P(m.LinearProgress,"primaryBg",_e(m.primary.main,.5)),P(m.LinearProgress,"secondaryBg",_e(m.secondary.main,.5)),P(m.LinearProgress,"errorBg",_e(m.error.main,.5)),P(m.LinearProgress,"infoBg",_e(m.info.main,.5)),P(m.LinearProgress,"successBg",_e(m.success.main,.5)),P(m.LinearProgress,"warningBg",_e(m.warning.main,.5)),P(m.Skeleton,"bg",`rgba(${W("palette-text-primaryChannel")} / 0.13)`),P(m.Slider,"primaryTrack",_e(m.primary.main,.5)),P(m.Slider,"secondaryTrack",_e(m.secondary.main,.5)),P(m.Slider,"errorTrack",_e(m.error.main,.5)),P(m.Slider,"infoTrack",_e(m.info.main,.5)),P(m.Slider,"successTrack",_e(m.success.main,.5)),P(m.Slider,"warningTrack",_e(m.warning.main,.5));const ee=ei(m.background.default,.98);P(m.SnackbarContent,"bg",ee),P(m.SnackbarContent,"color",Dt(()=>m.getContrastText(ee))),P(m.SpeedDialAction,"fabHoverBg",ei(m.background.paper,.15)),P(m.StepConnector,"border",W("palette-grey-600")),P(m.StepContent,"border",W("palette-grey-600")),P(m.Switch,"defaultColor",W("palette-grey-300")),P(m.Switch,"defaultDisabledColor",W("palette-grey-600")),P(m.Switch,"primaryDisabledColor",_e(m.primary.main,.55)),P(m.Switch,"secondaryDisabledColor",_e(m.secondary.main,.55)),P(m.Switch,"errorDisabledColor",_e(m.error.main,.55)),P(m.Switch,"infoDisabledColor",_e(m.info.main,.55)),P(m.Switch,"successDisabledColor",_e(m.success.main,.55)),P(m.Switch,"warningDisabledColor",_e(m.warning.main,.55)),P(m.TableCell,"border",_e(qo(m.divider,1),.68)),P(m.Tooltip,"bg",qo(m.grey[700],.92))}Kt(m.background,"default"),Kt(m.background,"paper"),Kt(m.common,"background"),Kt(m.common,"onBackground"),Kt(m,"divider"),Object.keys(m).forEach(ee=>{const ae=m[ee];ae&&typeof ae=="object"&&(ae.main&&P(m[ee],"mainChannel",Br(Ur(ae.main))),ae.light&&P(m[ee],"lightChannel",Br(Ur(ae.light))),ae.dark&&P(m[ee],"darkChannel",Br(Ur(ae.dark))),ae.contrastText&&P(m[ee],"contrastTextChannel",Br(Ur(ae.contrastText))),ee==="text"&&(Kt(m[ee],"primary"),Kt(m[ee],"secondary")),ee==="action"&&(ae.active&&Kt(m[ee],"active"),ae.selected&&Kt(m[ee],"selected")))})}),F=i.reduce((pe,m)=>pt(pe,m),F);const H={prefix:f,disableCssColorScheme:c,shouldSkipGeneratingVar:p,getSelector:xh(F)},{vars:K,generateThemeVars:b,generateStyleSheets:de}=Q0(F,H);return F.vars=K,Object.entries(F.colorSchemes[F.defaultColorScheme]).forEach(([pe,m])=>{F[pe]=m}),F.generateThemeVars=b,F.generateStyleSheets=de,F.generateSpacing=function(){return $u(E.spacing,Nl(this))},F.getColorSchemeSelector=Y0(h),F.spacing=F.generateSpacing(),F.shouldSkipGeneratingVar=p,F.unstable_sxConfig={...Xo,...E==null?void 0:E.unstable_sxConfig},F.unstable_sx=function(m){return Jn({sx:m,theme:this})},F.toRuntimeSource=tc,F}function oc(r,i,s){r.colorSchemes&&s&&(r.colorSchemes[i]={...s!==!0&&s,palette:Ul({...s===!0?{}:s.palette,mode:i})})}function Ph(r={},...i){const{palette:s,cssVariables:u=!1,colorSchemes:c=s?void 0:{light:!0},defaultColorScheme:f=s==null?void 0:s.mode,...p}=r,h=f||"light",v=c==null?void 0:c[h],E={...c,...s?{[h]:{...typeof v!="boolean"&&v,palette:s}}:void 0};if(u===!1){if(!("colorSchemes"in r))return Wl(r,...i);let N=s;"palette"in r||E[h]&&(E[h]!==!0?N=E[h].palette:h==="dark"&&(N={mode:"dark"}));const C=Wl({...r,palette:N},...i);return C.defaultColorScheme=h,C.colorSchemes=E,C.palette.mode==="light"&&(C.colorSchemes.light={...E.light!==!0&&E.light,palette:C.palette},oc(C,"dark",E.dark)),C.palette.mode==="dark"&&(C.colorSchemes.dark={...E.dark!==!0&&E.dark,palette:C.palette},oc(C,"light",E.light)),C}return!s&&!("light"in E)&&h==="light"&&(E.light=!0),Th({...p,colorSchemes:E,defaultColorScheme:h,...typeof u!="boolean"&&u},...i)}const ic=Ph();function Nh(){const r=v0(ic);return r[iu]||r}function Rh(r){return r!=="ownerState"&&r!=="theme"&&r!=="sx"&&r!=="as"}const Hl=C0({themeId:iu,defaultTheme:ic,rootShouldForwardProp:r=>Rh(r)&&r!=="classes"}),Oh=V0;function lc(r){return W0(r)}function Ah(r,i){if(r==null)return{};var s={};for(var u in r)if({}.hasOwnProperty.call(r,u)){if(i.includes(u))continue;s[u]=r[u]}return s}function Kl(r,i){return Kl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,u){return s.__proto__=u,s},Kl(r,i)}function zh(r,i){r.prototype=Object.create(i.prototype),r.prototype.constructor=r,Kl(r,i)}const sc={disabled:!1},ac=Un.createContext(null);var Ih=function(i){return i.scrollTop},Wr="unmounted",Tn="exited",Pn="entering",er="entered",Gl="exiting",Gt=function(r){zh(i,r);function i(u,c){var f;f=r.call(this,u,c)||this;var p=c,h=p&&!p.isMounting?u.enter:u.appear,v;return f.appearStatus=null,u.in?h?(v=Tn,f.appearStatus=Pn):v=er:u.unmountOnExit||u.mountOnEnter?v=Wr:v=Tn,f.state={status:v},f.nextCallback=null,f}i.getDerivedStateFromProps=function(c,f){var p=c.in;return p&&f.status===Wr?{status:Tn}:null};var s=i.prototype;return s.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},s.componentDidUpdate=function(c){var f=null;if(c!==this.props){var p=this.state.status;this.props.in?p!==Pn&&p!==er&&(f=Pn):(p===Pn||p===er)&&(f=Gl)}this.updateStatus(!1,f)},s.componentWillUnmount=function(){this.cancelNextCallback()},s.getTimeouts=function(){var c=this.props.timeout,f,p,h;return f=p=h=c,c!=null&&typeof c!="number"&&(f=c.exit,p=c.enter,h=c.appear!==void 0?c.appear:p),{exit:f,enter:p,appear:h}},s.updateStatus=function(c,f){if(c===void 0&&(c=!1),f!==null)if(this.cancelNextCallback(),f===Pn){if(this.props.unmountOnExit||this.props.mountOnEnter){var p=this.props.nodeRef?this.props.nodeRef.current:Io.findDOMNode(this);p&&Ih(p)}this.performEnter(c)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Tn&&this.setState({status:Wr})},s.performEnter=function(c){var f=this,p=this.props.enter,h=this.context?this.context.isMounting:c,v=this.props.nodeRef?[h]:[Io.findDOMNode(this),h],E=v[0],N=v[1],C=this.getTimeouts(),T=h?C.appear:C.enter;if(!c&&!p||sc.disabled){this.safeSetState({status:er},function(){f.props.onEntered(E)});return}this.props.onEnter(E,N),this.safeSetState({status:Pn},function(){f.props.onEntering(E,N),f.onTransitionEnd(T,function(){f.safeSetState({status:er},function(){f.props.onEntered(E,N)})})})},s.performExit=function(){var c=this,f=this.props.exit,p=this.getTimeouts(),h=this.props.nodeRef?void 0:Io.findDOMNode(this);if(!f||sc.disabled){this.safeSetState({status:Tn},function(){c.props.onExited(h)});return}this.props.onExit(h),this.safeSetState({status:Gl},function(){c.props.onExiting(h),c.onTransitionEnd(p.exit,function(){c.safeSetState({status:Tn},function(){c.props.onExited(h)})})})},s.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},s.safeSetState=function(c,f){f=this.setNextCallback(f),this.setState(c,f)},s.setNextCallback=function(c){var f=this,p=!0;return this.nextCallback=function(h){p&&(p=!1,f.nextCallback=null,c(h))},this.nextCallback.cancel=function(){p=!1},this.nextCallback},s.onTransitionEnd=function(c,f){this.setNextCallback(f);var p=this.props.nodeRef?this.props.nodeRef.current:Io.findDOMNode(this),h=c==null&&!this.props.addEndListener;if(!p||h){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var v=this.props.nodeRef?[this.nextCallback]:[p,this.nextCallback],E=v[0],N=v[1];this.props.addEndListener(E,N)}c!=null&&setTimeout(this.nextCallback,c)},s.render=function(){var c=this.state.status;if(c===Wr)return null;var f=this.props,p=f.children;f.in,f.mountOnEnter,f.unmountOnExit,f.appear,f.enter,f.exit,f.timeout,f.addEndListener,f.onEnter,f.onEntering,f.onEntered,f.onExit,f.onExiting,f.onExited,f.nodeRef;var h=Ah(f,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Un.createElement(ac.Provider,{value:null},typeof p=="function"?p(c,h):Un.cloneElement(Un.Children.only(p),h))},i}(Un.Component);Gt.contextType=ac,Gt.propTypes={};function tr(){}Gt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:tr,onEntering:tr,onEntered:tr,onExit:tr,onExiting:tr,onExited:tr},Gt.UNMOUNTED=Wr,Gt.EXITED=Tn,Gt.ENTERING=Pn,Gt.ENTERED=er,Gt.EXITING=Gl;const $h=r=>r.scrollTop;function uc(r,i){const{timeout:s,easing:u,style:c={}}=r;return{duration:c.transitionDuration??(typeof s=="number"?s:s[i.mode]||0),easing:c.transitionTimingFunction??(typeof u=="object"?u[i.mode]:u),delay:c.transitionDelay}}function ni(r,i){const{className:s,elementType:u,ownerState:c,externalForwardedProps:f,getSlotOwnerState:p,internalForwardedProps:h,...v}=i,{component:E,slots:N={[r]:void 0},slotProps:C={[r]:void 0},...T}=f,$=N[r]||u,R=b0(C[r],c),{props:{component:O,...D},internalRef:V}=F0({className:s,...v,externalForwardedProps:r==="root"?T:void 0,externalSlotProps:R}),J=qn(V,R==null?void 0:R.ref,i.ref),M=p?p(D):{},F={...c,...M},H=r==="root"?O||E:O,K=j0($,{...r==="root"&&!E&&!N[r]&&h,...r!=="root"&&!N[r]&&h,...D,...H&&{as:H},ref:J},F);return Object.keys(M).forEach(b=>{delete K[b]}),[$,K]}function Lh(r){return typeof r=="function"?r():r}const Mh=U.forwardRef(function(i,s){const{children:u,container:c,disablePortal:f=!1}=i,[p,h]=U.useState(null),v=qn(U.isValidElement(u)?bl(u):null,s);if($l(()=>{f||h(Lh(c)||document.body)},[c,f]),$l(()=>{if(p&&!f)return Fl(s,p),()=>{Fl(s,null)}},[s,p,f]),f){if(U.isValidElement(u)){const E={ref:v};return U.cloneElement(u,E)}return ie.jsx(U.Fragment,{children:u})}return ie.jsx(U.Fragment,{children:p&&yl.createPortal(u,p)})}),Dh={entering:{opacity:1},entered:{opacity:1}},jh=U.forwardRef(function(i,s){const u=Nh(),c={enter:u.transitions.duration.enteringScreen,exit:u.transitions.duration.leavingScreen},{addEndListener:f,appear:p=!0,children:h,easing:v,in:E,onEnter:N,onEntered:C,onEntering:T,onExit:$,onExited:R,onExiting:O,style:D,timeout:V=c,TransitionComponent:J=Gt,...M}=i,F=U.useRef(null),H=qn(F,bl(h),s),K=le=>te=>{if(le){const se=F.current;te===void 0?le(se):le(se,te)}},b=K(T),de=K((le,te)=>{$h(le);const se=uc({style:D,timeout:V,easing:v},{mode:"enter"});le.style.webkitTransition=u.transitions.create("opacity",se),le.style.transition=u.transitions.create("opacity",se),N&&N(le,te)}),pe=K(C),m=K(O),W=K(le=>{const te=uc({style:D,timeout:V,easing:v},{mode:"exit"});le.style.webkitTransition=u.transitions.create("opacity",te),le.style.transition=u.transitions.create("opacity",te),$&&$(le)}),ee=K(R),ae=le=>{f&&f(F.current,le)};return ie.jsx(J,{appear:p,in:E,nodeRef:F,onEnter:de,onEntered:pe,onEntering:b,onExit:W,onExited:ee,onExiting:m,addEndListener:ae,timeout:V,...M,children:(le,te)=>U.cloneElement(h,{style:{opacity:0,visibility:le==="exited"&&!E?"hidden":void 0,...Dh[le],...D,...h.props.style},ref:H,...te})})});function Fh(r){return Al("MuiBackdrop",r)}Du("MuiBackdrop",["root","invisible"]);const bh=r=>{const{ownerState:i,...s}=r;return s},Bh=r=>{const{classes:i,invisible:s}=r;return Wu({root:["root",s&&"invisible"]},Fh,i)},Uh=Hl("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(r,i)=>{const{ownerState:s}=r;return[i.root,s.invisible&&i.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Wh=U.forwardRef(function(i,s){const u=lc({props:i,name:"MuiBackdrop"}),{children:c,className:f,component:p="div",invisible:h=!1,open:v,components:E={},componentsProps:N={},slotProps:C={},slots:T={},TransitionComponent:$,transitionDuration:R,...O}=u,D={...u,component:p,invisible:h},V=Bh(D),J={transition:$,root:E.Root,...T},M={...N,...C},F={slots:J,slotProps:M},[H,K]=ni("root",{elementType:Uh,externalForwardedProps:F,className:br(V.root,f),ownerState:D}),[b,de]=ni("transition",{elementType:jh,externalForwardedProps:F,ownerState:D}),pe=bh(de);return ie.jsx(b,{in:v,timeout:R,...O,...pe,children:ie.jsx(H,{"aria-hidden":!0,...K,classes:V,ref:s,children:c})})});function Vh(r){const i=_n(r);return i.body===r?ti(r).innerWidth>i.documentElement.clientWidth:r.scrollHeight>r.clientHeight}function Vr(r,i){i?r.setAttribute("aria-hidden","true"):r.removeAttribute("aria-hidden")}function cc(r){return parseInt(ti(r).getComputedStyle(r).paddingRight,10)||0}function Hh(r){const s=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(r.tagName),u=r.tagName==="INPUT"&&r.getAttribute("type")==="hidden";return s||u}function fc(r,i,s,u,c){const f=[i,s,...u];[].forEach.call(r.children,p=>{const h=!f.includes(p),v=!Hh(p);h&&v&&Vr(p,c)})}function Ql(r,i){let s=-1;return r.some((u,c)=>i(u)?(s=c,!0):!1),s}function Kh(r,i){const s=[],u=r.container;if(!i.disableScrollLock){if(Vh(u)){const p=M0(ti(u));s.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${cc(u)+p}px`;const h=_n(u).querySelectorAll(".mui-fixed");[].forEach.call(h,v=>{s.push({value:v.style.paddingRight,property:"padding-right",el:v}),v.style.paddingRight=`${cc(v)+p}px`})}let f;if(u.parentNode instanceof DocumentFragment)f=_n(u).body;else{const p=u.parentElement,h=ti(u);f=(p==null?void 0:p.nodeName)==="HTML"&&h.getComputedStyle(p).overflowY==="scroll"?p:u}s.push({value:f.style.overflow,property:"overflow",el:f},{value:f.style.overflowX,property:"overflow-x",el:f},{value:f.style.overflowY,property:"overflow-y",el:f}),f.style.overflow="hidden"}return()=>{s.forEach(({value:f,el:p,property:h})=>{f?p.style.setProperty(h,f):p.style.removeProperty(h)})}}function Gh(r){const i=[];return[].forEach.call(r.children,s=>{s.getAttribute("aria-hidden")==="true"&&i.push(s)}),i}class Qh{constructor(){this.modals=[],this.containers=[]}add(i,s){let u=this.modals.indexOf(i);if(u!==-1)return u;u=this.modals.length,this.modals.push(i),i.modalRef&&Vr(i.modalRef,!1);const c=Gh(s);fc(s,i.mount,i.modalRef,c,!0);const f=Ql(this.containers,p=>p.container===s);return f!==-1?(this.containers[f].modals.push(i),u):(this.containers.push({modals:[i],container:s,restore:null,hiddenSiblings:c}),u)}mount(i,s){const u=Ql(this.containers,f=>f.modals.includes(i)),c=this.containers[u];c.restore||(c.restore=Kh(c,s))}remove(i,s=!0){const u=this.modals.indexOf(i);if(u===-1)return u;const c=Ql(this.containers,p=>p.modals.includes(i)),f=this.containers[c];if(f.modals.splice(f.modals.indexOf(i),1),this.modals.splice(u,1),f.modals.length===0)f.restore&&f.restore(),i.modalRef&&Vr(i.modalRef,s),fc(f.container,i.mount,i.modalRef,f.hiddenSiblings,!1),this.containers.splice(c,1);else{const p=f.modals[f.modals.length-1];p.modalRef&&Vr(p.modalRef,!1)}return u}isTopModal(i){return this.modals.length>0&&this.modals[this.modals.length-1]===i}}const Yh=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Xh(r){const i=parseInt(r.getAttribute("tabindex")||"",10);return Number.isNaN(i)?r.contentEditable==="true"||(r.nodeName==="AUDIO"||r.nodeName==="VIDEO"||r.nodeName==="DETAILS")&&r.getAttribute("tabindex")===null?0:r.tabIndex:i}function Zh(r){if(r.tagName!=="INPUT"||r.type!=="radio"||!r.name)return!1;const i=u=>r.ownerDocument.querySelector(`input[type="radio"]${u}`);let s=i(`[name="${r.name}"]:checked`);return s||(s=i(`[name="${r.name}"]`)),s!==r}function Jh(r){return!(r.disabled||r.tagName==="INPUT"&&r.type==="hidden"||Zh(r))}function qh(r){const i=[],s=[];return Array.from(r.querySelectorAll(Yh)).forEach((u,c)=>{const f=Xh(u);f===-1||!Jh(u)||(f===0?i.push(u):s.push({documentOrder:c,tabIndex:f,node:u}))}),s.sort((u,c)=>u.tabIndex===c.tabIndex?u.documentOrder-c.documentOrder:u.tabIndex-c.tabIndex).map(u=>u.node).concat(i)}function eg(){return!0}function tg(r){const{children:i,disableAutoFocus:s=!1,disableEnforceFocus:u=!1,disableRestoreFocus:c=!1,getTabbable:f=qh,isEnabled:p=eg,open:h}=r,v=U.useRef(!1),E=U.useRef(null),N=U.useRef(null),C=U.useRef(null),T=U.useRef(null),$=U.useRef(!1),R=U.useRef(null),O=qn(bl(i),R),D=U.useRef(null);U.useEffect(()=>{!h||!R.current||($.current=!s)},[s,h]),U.useEffect(()=>{if(!h||!R.current)return;const M=_n(R.current);return R.current.contains(M.activeElement)||(R.current.hasAttribute("tabIndex")||R.current.setAttribute("tabIndex","-1"),$.current&&R.current.focus()),()=>{c||(C.current&&C.current.focus&&(v.current=!0,C.current.focus()),C.current=null)}},[h]),U.useEffect(()=>{if(!h||!R.current)return;const M=_n(R.current),F=b=>{D.current=b,!(u||!p()||b.key!=="Tab")&&M.activeElement===R.current&&b.shiftKey&&(v.current=!0,N.current&&N.current.focus())},H=()=>{var pe,m;const b=R.current;if(b===null)return;if(!M.hasFocus()||!p()||v.current){v.current=!1;return}if(b.contains(M.activeElement)||u&&M.activeElement!==E.current&&M.activeElement!==N.current)return;if(M.activeElement!==T.current)T.current=null;else if(T.current!==null)return;if(!$.current)return;let de=[];if((M.activeElement===E.current||M.activeElement===N.current)&&(de=f(R.current)),de.length>0){const W=!!((pe=D.current)!=null&&pe.shiftKey&&((m=D.current)==null?void 0:m.key)==="Tab"),ee=de[0],ae=de[de.length-1];typeof ee!="string"&&typeof ae!="string"&&(W?ae.focus():ee.focus())}else b.focus()};M.addEventListener("focusin",H),M.addEventListener("keydown",F,!0);const K=setInterval(()=>{M.activeElement&&M.activeElement.tagName==="BODY"&&H()},50);return()=>{clearInterval(K),M.removeEventListener("focusin",H),M.removeEventListener("keydown",F,!0)}},[s,u,c,p,h,f]);const V=M=>{C.current===null&&(C.current=M.relatedTarget),$.current=!0,T.current=M.target;const F=i.props.onFocus;F&&F(M)},J=M=>{C.current===null&&(C.current=M.relatedTarget),$.current=!0};return ie.jsxs(U.Fragment,{children:[ie.jsx("div",{tabIndex:h?0:-1,onFocus:J,ref:E,"data-testid":"sentinelStart"}),U.cloneElement(i,{ref:O,onFocus:V}),ie.jsx("div",{tabIndex:h?0:-1,onFocus:J,ref:N,"data-testid":"sentinelEnd"})]})}function ng(r){return typeof r=="function"?r():r}function rg(r){return r?r.props.hasOwnProperty("in"):!1}const ri=new Qh;function og(r){const{container:i,disableEscapeKeyDown:s=!1,disableScrollLock:u=!1,closeAfterTransition:c=!1,onTransitionEnter:f,onTransitionExited:p,children:h,onClose:v,open:E,rootRef:N}=r,C=U.useRef({}),T=U.useRef(null),$=U.useRef(null),R=qn($,N),[O,D]=U.useState(!E),V=rg(h);let J=!0;(r["aria-hidden"]==="false"||r["aria-hidden"]===!1)&&(J=!1);const M=()=>_n(T.current),F=()=>(C.current.modalRef=$.current,C.current.mount=T.current,C.current),H=()=>{ri.mount(F(),{disableScrollLock:u}),$.current&&($.current.scrollTop=0)},K=Uu(()=>{const te=ng(i)||M().body;ri.add(F(),te),$.current&&H()}),b=()=>ri.isTopModal(F()),de=Uu(te=>{T.current=te,te&&(E&&b()?H():$.current&&Vr($.current,J))}),pe=U.useCallback(()=>{ri.remove(F(),J)},[J]);U.useEffect(()=>()=>{pe()},[pe]),U.useEffect(()=>{E?K():(!V||!c)&&pe()},[E,pe,V,c,K]);const m=te=>se=>{var ge;(ge=te.onKeyDown)==null||ge.call(te,se),!(se.key!=="Escape"||se.which===229||!b())&&(s||(se.stopPropagation(),v&&v(se,"escapeKeyDown")))},W=te=>se=>{var ge;(ge=te.onClick)==null||ge.call(te,se),se.target===se.currentTarget&&v&&v(se,"backdropClick")};return{getRootProps:(te={})=>{const se=Vu(r);delete se.onTransitionEnter,delete se.onTransitionExited;const ge={...se,...te};return{role:"presentation",...ge,onKeyDown:m(ge),ref:R}},getBackdropProps:(te={})=>{const se=te;return{"aria-hidden":!0,...se,onClick:W(se),open:E}},getTransitionProps:()=>{const te=()=>{D(!1),f&&f()},se=()=>{D(!0),p&&p(),c&&pe()};return{onEnter:Bu(te,h==null?void 0:h.props.onEnter),onExited:Bu(se,h==null?void 0:h.props.onExited)}},rootRef:R,portalRef:de,isTopModal:b,exited:O,hasTransition:V}}function ig(r){return Al("MuiModal",r)}Du("MuiModal",["root","hidden","backdrop"]);const lg=r=>{const{open:i,exited:s,classes:u}=r;return Wu({root:["root",!i&&s&&"hidden"],backdrop:["backdrop"]},ig,u)},sg=Hl("div",{name:"MuiModal",slot:"Root",overridesResolver:(r,i)=>{const{ownerState:s}=r;return[i.root,!s.open&&s.exited&&i.hidden]}})(Oh(({theme:r})=>({position:"fixed",zIndex:(r.vars||r).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:i})=>!i.open&&i.exited,style:{visibility:"hidden"}}]}))),ag=Hl(Wh,{name:"MuiModal",slot:"Backdrop",overridesResolver:(r,i)=>i.backdrop})({zIndex:-1}),ug=U.forwardRef(function(i,s){const u=lc({name:"MuiModal",props:i}),{BackdropComponent:c=ag,BackdropProps:f,classes:p,className:h,closeAfterTransition:v=!1,children:E,container:N,component:C,components:T={},componentsProps:$={},disableAutoFocus:R=!1,disableEnforceFocus:O=!1,disableEscapeKeyDown:D=!1,disablePortal:V=!1,disableRestoreFocus:J=!1,disableScrollLock:M=!1,hideBackdrop:F=!1,keepMounted:H=!1,onBackdropClick:K,onClose:b,onTransitionEnter:de,onTransitionExited:pe,open:m,slotProps:W={},slots:ee={},theme:ae,...le}=u,te={...u,closeAfterTransition:v,disableAutoFocus:R,disableEnforceFocus:O,disableEscapeKeyDown:D,disablePortal:V,disableRestoreFocus:J,disableScrollLock:M,hideBackdrop:F,keepMounted:H},{getRootProps:se,getBackdropProps:ge,getTransitionProps:B,portalRef:oe,isTopModal:Q,exited:S,hasTransition:A}=og({...te,rootRef:s}),fe={...te,exited:S},ue=lg(fe),he={};if(E.props.tabIndex===void 0&&(he.tabIndex="-1"),A){const{onEnter:jt,onExited:Qt}=B();he.onEnter=jt,he.onExited=Qt}const ye={...le,slots:{root:T.Root,backdrop:T.Backdrop,...ee},slotProps:{...$,...W}},[Ce,xe]=ni("root",{elementType:sg,externalForwardedProps:ye,getSlotProps:se,additionalProps:{ref:s,as:C},ownerState:fe,className:br(h,ue==null?void 0:ue.root,!fe.open&&fe.exited&&(ue==null?void 0:ue.hidden))}),[Pe,Je]=ni("backdrop",{elementType:c,externalForwardedProps:ye,additionalProps:f,getSlotProps:jt=>ge({...jt,onClick:Qt=>{K&&K(Qt),jt!=null&&jt.onClick&&jt.onClick(Qt)}}),className:br(f==null?void 0:f.className,ue==null?void 0:ue.backdrop),ownerState:fe}),nr=qn(f==null?void 0:f.ref,Je.ref);return!H&&!m&&(!A||S)?null:ie.jsx(Mh,{ref:oe,container:N,disablePortal:V,children:ie.jsxs(Ce,{...xe,children:[!F&&c?ie.jsx(Pe,{...Je,ref:nr}):null,ie.jsx(tg,{disableEnforceFocus:O,disableAutoFocus:R,disableRestoreFocus:J,isEnabled:Q,open:m,children:U.cloneElement(E,he)})]})})}),Hr={modal:"_modal_wfhyw_1",wrap:"_wrap_wfhyw_6",preview:"_preview_wfhyw_11",sidebar:"_sidebar_wfhyw_18",title:"_title_wfhyw_26"},cg={footer:"_footer_1fkc3_1",close:"_close_1fkc3_6",title:"_title_1fkc3_41"},Yl={wrap:"_wrap_plmcw_1",arrowWrap:"_arrowWrap_plmcw_7",image:"_image_plmcw_20"},fg=(r,i,s)=>{const u=r.length;return{list:r,handlePrevious:p=>{p==null||p.stopPropagation(),s(h=>{const v=h-1;return v<0?u-1:v})},handleNext:p=>{p==null||p.stopPropagation(),s(h=>{const v=h+1;return v>=u?0:v})},itemCount:u,sizeList:i}},dc=U.createContext(null),Xl=()=>U.useContext(dc),Zl={wrap:"_wrap_x1ss1_1",next:"_next_x1ss1_10",prev:"_prev_x1ss1_11",disabled:"_disabled_x1ss1_53"},dg=({children:r,className:i,hasNext:s,hasPrev:u,onNext:c,onPrev:f})=>ie.jsxs(ie.Fragment,{children:[ie.jsxs("div",{className:`r-arrow-navigation ${Zl.wrap} ${i||""}`.trim(),children:[u&&ie.jsx("div",{className:Zl.prev,onClick:f}),s&&ie.jsx("div",{className:Zl.next,onClick:c})]}),r]}),Kr=/(\.jpg|\.png|\.jpeg|\.webp)/,pc=/_[er]w\d+/,mc=/_[er]h\d+/,pg=r=>r.replace(Kr,".webp"),mg=(r,i)=>pc.test(r)?(console.warn("Source already has exact or resize width"),r):r.replace(Kr,`_ew${i}$1`),hg=(r,i)=>mc.test(r)?(console.warn("Source already has exact or resize height"),r):r.replace(Kr,`_eh${i}$1`),gg=(r,i)=>pc.test(r)?(console.warn("Source already has exact or resize width"),r):r.replace(Kr,`_rw${i}$1`),yg=(r,i)=>mc.test(r)?(console.warn("Source already has exact or resize height"),r):r.replace(Kr,`_rh${i}$1`);let hc=class{constructor(i){this.source=i}exactHeight(i){return this.source=hg(this.source,i),this}exactWidth(i){return this.source=mg(this.source,i),this}getSource(){return this.source}resizeHeight(i){return this.source=yg(this.source,i),this}resizeWidth(i){return this.source=gg(this.source,i),this}toWebp(){return this.source=pg(this.source),this}};const vg=(r,i)=>{U.useEffect(()=>{if(r==null)return;const s=u=>wg(u,i);return r.addEventListener("touchstart",gc,!1),r.addEventListener("touchmove",s,!1),()=>{r.removeEventListener("touchstart",gc,!1),r.removeEventListener("touchmove",s,!1)}},[r,i])};let oi,ii;const gc=r=>{const i=r.touches[0];oi=i.clientX,ii=i.clientY},wg=(r,i)=>{var p,h,v,E;if(!oi||!ii)return;const s=r.touches[0].clientX,u=r.touches[0].clientY,c=oi-s,f=ii-u;Math.abs(c)>Math.abs(f)?c>0?(p=i.onRight)==null||p.call(i):(h=i.onLeft)==null||h.call(i):f>0?(v=i.onDown)==null||v.call(i):(E=i.onUp)==null||E.call(i),oi=void 0,ii=void 0},yc=({item:r,size:i})=>{const[s,u]=U.useState(null),c=Xl();return vg(s,{onLeft:c.handlePrevious,onRight:c.handleNext}),ie.jsx("div",{className:`r-preview ${Yl.wrap}`,ref:f=>u(f),children:ie.jsx(dg,{className:Yl.arrowWrap,hasNext:c.list.length>1,hasPrev:c.list.length>1,onNext:c.handleNext,onPrev:c.handlePrevious,children:ie.jsxs("div",{className:Yl.image,children:[r.type==="image"&&ie.jsx(Sg,{item:r,size:i}),r.type==="youtube"&&ie.jsx(kg,{item:r,size:i})]})})})},Sg=({item:r,size:i})=>{const[s,u]=U.useState(!0);return ie.jsx("picture",{className:s?"loading-spinner":"",style:i,children:ie.jsx("img",{src:new hc(r.src).exactWidth(i.width).exactHeight(i.height).toWebp().getSource(),alt:r.title,width:i.width,height:i.height,onLoad:()=>u(!1)})})},kg=({item:r})=>ie.jsx("iframe",{allowFullScreen:!0,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",src:`https://www.youtube-nocookie.com/embed/${r.src}?rel=0`,title:r.title}),Jl={wrap:"_wrap_1osdc_1",item:"_item_1osdc_6",active:"_active_1osdc_33"},vc=({activeIndex:r,changeIndex:i,size:s})=>{const u=Xl();return ie.jsx("div",{className:`r-thumbnail-list ${Jl.wrap}`,children:u.list.map((c,f)=>ie.jsxs("div",{className:`${Jl.item} ${r===f?Jl.active:""}`.trim(),onClick:()=>i(f),children:[c.type==="image"&&ie.jsx("picture",{children:ie.jsx("img",{src:`${new hc(c.src).exactWidth(s.width).exactHeight(s.height).toWebp().getSource()}`,alt:c.title,width:48,height:48,loading:"lazy"})}),c.type==="youtube"&&ie.jsxs(ie.Fragment,{children:[!1,ie.jsx("i",{className:"icon-youtube-play"})]})]},f))})},xg={getOffset(r){const i=r.getBoundingClientRect();return{left:i.left+window.scrollX,top:i.top+window.scrollY,bottom:i.bottom+window.scrollY,right:i.right+window.scrollX}},matchMedia(r,i){return window.matchMedia(`(${r?"max-":"min-"}width: ${i}px)`).matches}},Eg=(r,i=!0)=>{U.useEffect(()=>(i&&r(),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}),[r,i])},Cg=(r,i)=>{U.useEffect(()=>{const s=u=>{var c,f;u.deltaY>0?(c=i==null?void 0:i.scrollDown)==null||c.call(i,u):(f=i==null?void 0:i.scrollUp)==null||f.call(i,u)};return r==null||r.addEventListener("wheel",s),()=>{r==null||r.removeEventListener("wheel",s)}},[r,i])},_g=({activeIndex:r,activeItem:i,changeIndex:s,onClose:u,open:c,title:f})=>{const[p,h]=U.useState(!0),v=Xl(),[E,N]=U.useState(),C=v.sizeList;return Eg(()=>{xg.matchMedia(!0,660)?(u(),h(!1)):h(!0)}),U.useEffect(()=>{const T=$=>{($.key==="ArrowLeft"||$.key==="ArrowUp")&&v.handlePrevious(),($.key==="ArrowRight"||$.key==="ArrowDown")&&v.handleNext()};return c&&p?document.addEventListener("keyup",T):document.removeEventListener("keyup",T),()=>{document.removeEventListener("keyup",T)}},[v,p,c]),Cg(E,{scrollUp(){v.handlePrevious()},scrollDown(){v.handleNext()}}),ie.jsx(ug,{style:{height:"calc(100% - 1rem)",width:"calc(100% - 2rem)",margin:"auto"},open:p&&c,onClose:u,children:ie.jsxs("div",{className:`r-modal ${Hr.modal} ${Hr.wrap}`,ref:T=>N(T),children:[ie.jsxs("div",{className:Hr.preview,children:[ie.jsx(yc,{item:i,size:C.large}),ie.jsx("div",{className:cg.close,onClick:u})]}),ie.jsxs("div",{className:Hr.sidebar,children:[ie.jsx("div",{className:Hr.title,children:f}),ie.jsx(vc,{activeIndex:r,changeIndex:s,size:C.small})]})]})})},Tg=(r,i,s)=>{const u=[];for(const c of s??[])u.push({title:i,src:c,type:"youtube"});for(const c of r??[])u.push({title:i,src:c,type:"image"});return u},Pg=r=>({large:ql(r==null?void 0:r.large,{width:800,height:800}),medium:ql(r==null?void 0:r.medium,{width:370,height:370}),small:ql(r==null?void 0:r.small,{width:56,height:56})}),ql=(r,i)=>typeof r=="object"?r:typeof r=="number"?{height:r,width:r}:{height:i.height,width:i.width},Ng=()=>{const[r,i]=U.useState(!1);return{state:r,open:()=>i(!0),close:()=>i(!1)}},Rg=({id:r,images:i,sizes:s,title:u,youtubes:c})=>{U.useEffect(()=>{const T=R=>{const{id:O,nthItem:D}=R.detail;if(r&&r===O){$(D);return}!r&&!O&&$(D)},$=R=>{R!==void 0&&R>=0&&(R{window.removeEventListener("ES_GALLERY_OPEN",T)}});const f=Pg(s),[p,h]=U.useState(0),v=U.useMemo(()=>Tg(i,u,c),[i,u,c]),E=U.useMemo(()=>fg(v,f,h),[v,f]),N=v[p],C=Ng();return ie.jsxs(dc.Provider,{value:E,children:[ie.jsxs("div",{className:`r-a-gallery ${ou.wrap}`,children:[ie.jsx("div",{className:ou.preview,onClick:C.open,children:ie.jsx(yc,{item:N,size:f.medium})}),v.length>1&&ie.jsx(vc,{activeIndex:p,changeIndex:h,size:f.small})]}),ie.jsx(_g,{open:C.state,onClose:C.close,activeIndex:p,activeItem:N,changeIndex:h,title:u})]})};function Og(r,i){ml.createRoot(document.querySelector(`#${r}`)).render(ie.jsx(U.StrictMode,{children:ie.jsx(Rg,{...i})}))}return Og}); //# sourceMappingURL=index.umd.cjs.map