PageSourceSearch

https://shoponlinenewyork.com/static/js/main.222817cd.js

js shoponlinenewyork.com collected 2026-10-08 17:37:06 UTC 710,313 bytes, 3 lines download raw bytes

1/*! For license information please see main.222817cd.js.LICENSE.txt */
2(()=>{var e={4(e,t,n){"use strict";var r=n(853),a=n(43),o=n(950);function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}var l=Symbol.for("react.element"),c=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),m=Symbol.for("react.consumer"),g=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),w=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var k=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var S=Symbol.for("react.memo_cache_sentinel"),E=Symbol.iterator;function N(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=E&&e[E]||e["@@iterator"])?e:null}var j=Symbol.for("react.client.reference");function C(e){if(null==e)return null;if("function"===typeof e)return e.$$typeof===j?null:e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case d:return"Fragment";case u:return"Portal";case p:return"Profiler";case h:return"StrictMode";case v:return"Suspense";case b:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case g:return(e.displayName||"Context")+".Provider";case m:return(e._context.displayName||"Context")+".Consumer";case y:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case x:return null!==(t=e.displayName||null)?t:C(e.type)||"Memo";case w:t=e._payload,e=e._init;try{return C(e(t))}catch(n){}}return null}var T,P,A=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R=Object.assign;function O(e){if(void 0===T)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);T=t&&t[1]||"",P=-1<n.stack.indexOf("\n    at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+T+e+P}var F=!1;function L(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(a){var r=a}Reflect.construct(e,[],n)}
vendor: 5,106 bytes, line 2
2else{try{n.call()}catch(o){r=o}e.call(n.prototype)}}else{try{throw Error()}catch(i){r=i}(n=e())&&"function"===typeof n.catch&&n.catch(function(){})}}catch(s){if(s&&r&&"string"===typeof s.stack)return[s.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),i=o[0],s=o[1];if(i&&s){var l=i.split("\n"),c=s.split("\n");for(a=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;a<c.length&&!c[a].includes("DetermineComponentFrameRoot");)a++;if(r===l.length||a===c.length)for(r=l.length-1,a=c.length-1;1<=r&&0<=a&&l[r]!==c[a];)a--;for(;1<=r&&0<=a;r--,a--)if(l[r]!==c[a]){if(1!==r||1!==a)do{if(r--,0>--a||l[r]!==c[a]){var u="\n"+l[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=a);break}}}finally{F=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?O(n):""}function D(e){switch(e.tag){case 26:case 27:case 5:return O(e.type);case 16:return O("Lazy");case 13:return O("Suspense");case 19:return O("SuspenseList");case 0:case 15:return e=L(e.type,!1);case 11:return e=L(e.type.render,!1);case 1:return e=L(e.type,!0);default:return""}}function M(e){try{var t="";do{t+=D(e),e=e.return}while(e);return t}catch(n){return"\nError generating stack: "+n.message+"\n"+n.stack}}function _(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function I(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function z(e){if(_(e)!==e)throw Error(i(188))}function B(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=B(e)))return t;e=e.sibling}return null}var U=Array.isArray,V=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},q=[],H=-1;function Y(e){return{current:e}}function K(e){0>H||(e.current=q[H],q[H]=null,H--)}function $(e,t){H++,q[H]=e.current,e.current=t}var X=Y(null),Q=Y(null),G=Y(null),J=Y(null);function Z(e,t){switch($(G,t),$(Q,e),$(X,null),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?Qu(t):0;break;default:if(t=(e=8===e?t.parentNode:t).tagName,e=e.namespaceURI)t=Gu(e=Qu(e),t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}K(X),$(X,t)}function ee(){K(X),K(Q),K(G)}function te(e){null!==e.memoizedState&&$(J,e);var t=X.current,n=Gu(t,e.type);t!==n&&($(Q,e),$(X,n))}function ne(e){Q.current===e&&(K(X),K(Q)),J.current===e&&(K(J),Md._currentValue=W)}var re=Object.prototype.hasOwnProperty,ae=r.unstable_scheduleCallback,oe=r.unstable_cancelCallback,ie=r.unstable_shouldYield,se=r.unstable_requestPaint,le=r.unstable_now,ce=r.unstable_getCurrentPriorityLevel,ue=r.unstable_ImmediatePriority,de=r.unstable_UserBlockingPriority,he=r.unstable_NormalPriority,pe=r.unstable_LowPriority,fe=r.unstable_IdlePriority,me=r.log,ge=r.unstable_setDisableYieldValue,ye=null,ve=null;function be(e){if("function"===typeof me&&ge(e),ve&&"function"===typeof ve.setStrictMode)try{ve.setStrictMode(ye,e)}catch(t){}}var xe=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(we(e)/ke|0)|0},we=Math.log,ke=Math.LN2;var Se=128,Ee=4194304;function Ne(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128: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 4194176&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function je(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,i=e.warmLanes;e=0!==e.finishedLanes;var s=134217727&n;return 0!==s?0!==(n=s&~a)?r=Ne(n):0!==(o&=s)?r=Ne(o):e||0!==(i=s&~i)&&(r=Ne(i)):0!==(s=n&~a)?r=Ne(s):0!==o?r=Ne(o):e||0!==(i=n&~i)&&(r=Ne(i)),0===r?0:0!==t&&t!==r&&0===(t&a)&&((a=r&-r)>=(i=t&-t)||32===a&&0!==(4194176&i))?t:r}function Ce(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Te(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 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 t+5e3;default:return-1}}function Pe(){var e=Se;return 0===(4194176&(Se<<=1))&&(Se=128),e}function Ae(){var e=Ee;return 0===(62914560&(Ee<<=1))&&(Ee=4194304),e}function Re(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}
2function Oe(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Fe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-xe(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194218&n}function Le(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-xe(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function De(e){return 2<(e&=-e)?8<e?0!==(134217727&e)?32:268435456:8:2}function Me(){var e=V.p;return 0!==e?e:void 0===(e=window.event)?32:Gd(e.type)}var _e=Math.random().toString(36).slice(2),Ie="__reactFiber$"+_e,ze="__reactProps$"+_e,Be="__reactContainer$"+_e,Ue="__reactEvents$"+_e,Ve="__reactListeners$"+_e,We="__reactHandles$"+_e,qe="__reactResources$"+_e,He="__reactMarker$"+_e;function Ye(e){delete e[Ie],delete e[ze],delete e[Ue],delete e[Ve],delete e[We]}function Ke(e){var t=e[Ie];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Be]||n[Ie]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ld(e);null!==e;){if(n=e[Ie])return n;e=ld(e)}return t}n=(e=n).parentNode}return null}function $e(e){if(e=e[Ie]||e[Be]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function Xe(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(i(33))}function Qe(e){var t=e[qe];return t||(t=e[qe]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ge(e){e[He]=!0}var Je=new Set,Ze={};function et(e,t){tt(e,t),tt(e+"Capture",t)}function tt(e,t){for(Ze[e]=t,e=0;e<t.length;e++)Je.add(t[e])}var nt=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),rt=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),at={},ot={};function it(e,t,n){if(a=t,re.call(ot,a)||!re.call(at,a)&&(rt.test(a)?ot[a]=!0:(at[a]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var a}function st(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function lt(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function ct(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ut(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function dt(e){e._valueTracker||(e._valueTracker=function(e){var t=ut(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function ht(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ut(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function pt(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var ft=/[\n"\\]/g;function mt(e){return e.replace(ft,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function gt(e,t,n,r,a,o,i,s){e.name="",null!=i&&"function"!==typeof i&&"symbol"!==typeof i&&"boolean"!==typeof i?e.type=i:e.removeAttribute("type"),null!=t?"number"===i?(0===t&&""===e.value||e.value!=t)&&(e.value=""+ct(t)):e.value!==""+ct(t)&&(e.value=""+ct(t)):"submit"!==i&&"reset"!==i||e.removeAttribute("value"),null!=t?vt(e,i,ct(t)):null!=n?vt(e,i,ct(n)):null!=r&&e.removeAttribute("value"),null==a&&null!=o&&(e.defaultChecked=!!o),null!=a&&(e.checked=a&&"function"!==typeof a&&"symbol"!==typeof a),null!=s&&"function"!==typeof s&&"symbol"!==typeof s&&"boolean"!==typeof s?e.name=""+ct(s):e.removeAttribute("name")}function yt(e,t,n,r,a,o,i,s){if(null!=o&&"function"!==typeof o&&"symbol"!==typeof o&&"boolean"!==typeof o&&(e.type=o),null!=t||null!=n){if(!("submit"!==o&&"reset"!==o||void 0!==t&&null!==t))return;n=null!=n?""+ct(n):"",t=null!=t?""+ct(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r="function"!==typeof(r=null!=r?r:a)&&"symbol"!==typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=i&&"function"!==typeof i&&"symbol"!==typeof i&&"boolean"!==typeof i&&(e.name=i)}function vt(e,t,n){"number"===t&&pt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function bt(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ct(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function xt(e,t,n){null==t||((t=""+ct(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+ct(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function wt(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(i(92));if(U(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}null==n&&(n=""),t=n}n=ct(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r)}function kt(e,t){if(t){var n=e.firstChild;
2if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var St=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Et(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"===typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!==typeof n||0===n||St.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Nt(e,t,n){if(null!=t&&"object"!==typeof t)throw Error(i(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Et(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Et(e,o,t[o])}function jt(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ct=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
2-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Tt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Pt(e){return Tt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var At=null;function Rt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ot=null,Ft=null;function Lt(e){var t=$e(e);if(t&&(e=t.stateNode)){var n=e[ze]||null;e:switch(e=t.stateNode,t.type){case"input":if(gt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+mt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[ze]||null;if(!a)throw Error(i(90));gt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&ht(r)}break e;case"textarea":xt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&bt(e,!!n.multiple,t,!1)}}}var Dt=!1;function Mt(e,t,n){if(Dt)return e(t,n);Dt=!0;try{return e(t)}finally{if(Dt=!1,(null!==Ot||null!==Ft)&&(Ic(),Ot&&(t=Ot,e=Ft,Ft=Ot=null,Lt(t),e)))for(t=0;t<e.length;t++)Lt(e[t])}}function _t(e,t){var n=e.stateNode;if(null===n)return null;var r=n[ze]||null;if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var It=!1;if(nt)try{var zt={};Object.defineProperty(zt,"passive",{get:function(){It=!0}}),window.addEventListener("test",zt,zt),window.removeEventListener("test",zt,zt)}catch(wh){It=!1}var Bt=null,Ut=null,Vt=null;function Wt(){if(Vt)return Vt;var e,t,n=Ut,r=n.length,a="value"in Bt?Bt.value:Bt.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return Vt=a.slice(e,1<t?1-t:void 0)}function qt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Ht(){return!0}function Yt(){return!1}function Kt(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?Ht:Yt,this.isPropagationStopped=Yt,this}return R(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Ht)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Ht)},persist:function(){},isPersistent:Ht}),t}var $t,Xt,Qt,Gt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jt=Kt(Gt),Zt=R({},Gt,{view:0,detail:0}),en=Kt(Zt),tn=R({},Zt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Qt&&(Qt&&"mousemove"===e.type?($t=e.screenX-Qt.screenX,Xt=e.screenY-Qt.screenY):Xt=$t=0,Qt=e),$t)},movementY:function(e){return"movementY"in e?e.movementY:Xt}}),nn=Kt(tn),rn=Kt(R({},tn,{dataTransfer:0})),an=Kt(R({},Zt,{relatedTarget:0})),on=Kt(R({},Gt,{animationName:0,elapsedTime:0,pseudoElement:0})),sn=Kt(R({},Gt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),ln=Kt(R({},Gt,{data:0})),cn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},un={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},dn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=dn[e])&&!!t[e]}function pn(){return hn}var fn=Kt(R({},Zt,{key:function(e){if(e.key){var t=cn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=qt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"ke
2yup"===e.type?un[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pn,charCode:function(e){return"keypress"===e.type?qt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?qt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),mn=Kt(R({},tn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),gn=Kt(R({},Zt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pn})),yn=Kt(R({},Gt,{propertyName:0,elapsedTime:0,pseudoElement:0})),vn=Kt(R({},tn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),bn=Kt(R({},Gt,{newState:0,oldState:0})),xn=[9,13,27,32],wn=nt&&"CompositionEvent"in window,kn=null;nt&&"documentMode"in document&&(kn=document.documentMode);var Sn=nt&&"TextEvent"in window&&!kn,En=nt&&(!wn||kn&&8<kn&&11>=kn),Nn=String.fromCharCode(32),jn=!1;function Cn(e,t){switch(e){case"keyup":return-1!==xn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Pn=!1;var An={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Rn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!An[e.type]:"textarea"===t}function On(e,t,n,r){Ot?Ft?Ft.push(r):Ft=[r]:Ot=r,0<(t=Mu(t,"onChange")).length&&(n=new Jt("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Fn=null,Ln=null;function Dn(e){Tu(e,0)}function Mn(e){if(ht(Xe(e)))return e}function _n(e,t){if("change"===e)return t}var In=!1;if(nt){var zn;if(nt){var Bn="oninput"in document;if(!Bn){var Un=document.createElement("div");Un.setAttribute("oninput","return;"),Bn="function"===typeof Un.oninput}zn=Bn}else zn=!1;In=zn&&(!document.documentMode||9<document.documentMode)}function Vn(){Fn&&(Fn.detachEvent("onpropertychange",Wn),Ln=Fn=null)}function Wn(e){if("value"===e.propertyName&&Mn(Ln)){var t=[];On(t,Ln,e,Rt(e)),Mt(Dn,t)}}function qn(e,t,n){"focusin"===e?(Vn(),Ln=n,(Fn=t).attachEvent("onpropertychange",Wn)):"focusout"===e&&Vn()}function Hn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Mn(Ln)}function Yn(e,t){if("click"===e)return Mn(t)}function Kn(e,t){if("input"===e||"change"===e)return Mn(t)}var $n="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function Xn(e,t){if($n(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!re.call(t,a)||!$n(e[a],t[a]))return!1}return!0}function Qn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gn(e,t){var n,r=Qn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Qn(r)}}function Jn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Jn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Zn(e){for(var t=pt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=pt((e=t.contentWindow).document)}return t}function er(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function tr(e,t){var n=Zn(t);t=e.focusedElem;var r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Jn(t.ownerDocument.documentElement,t)){if(null!==r&&er(t))if(e=r.start,void 0===(n=r.end)&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if((n=(e=t.ownerDocument||document)&&e.defaultView||window).getSelection){n=n.getSelection();var a=t.textContent.length,o=Math.min(r.start,a);r=void 0===r.end?o:Math.min(r.end,a),!n.extend&&o>r&&(a=r,r=o,o=a),a=Gn(t,o);var i=Gn(t,r);a&&i&&(1!==n.rangeCount||n.anchorNode!==a.node||n.anchorOffset!==a.offset||n.focusNode!==i.node||n.focusOffset!==i.offset)&&((e=e.createRange()).setStart(a.node,a.offset),n.removeAllRanges(),o>r?(n.addRange(e),n.extend(i.node,i.offset)):(e.setEnd(i.node,i.offset),n.addRange(e)))}for(e=[],n=t;n=n.parentNode;)1===n.nodeType&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});
vendor: 11,616 bytes, line 2
2for("function"===typeof t.focus&&t.focus(),t=0;t<e.length;t++)(n=e[t]).element.scrollLeft=n.left,n.element.scrollTop=n.top}}var nr=nt&&"documentMode"in document&&11>=document.documentMode,rr=null,ar=null,or=null,ir=!1;function sr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ir||null==rr||rr!==pt(r)||("selectionStart"in(r=rr)&&er(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},or&&Xn(or,r)||(or=r,0<(r=Mu(ar,"onSelect")).length&&(t=new Jt("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=rr)))}function lr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var cr={animationend:lr("Animation","AnimationEnd"),animationiteration:lr("Animation","AnimationIteration"),animationstart:lr("Animation","AnimationStart"),transitionrun:lr("Transition","TransitionRun"),transitionstart:lr("Transition","TransitionStart"),transitioncancel:lr("Transition","TransitionCancel"),transitionend:lr("Transition","TransitionEnd")},ur={},dr={};function hr(e){if(ur[e])return ur[e];if(!cr[e])return e;var t,n=cr[e];for(t in n)if(n.hasOwnProperty(t)&&t in dr)return ur[e]=n[t];return e}nt&&(dr=document.createElement("div").style,"AnimationEvent"in window||(delete cr.animationend.animation,delete cr.animationiteration.animation,delete cr.animationstart.animation),"TransitionEvent"in window||delete cr.transitionend.transition);var pr=hr("animationend"),fr=hr("animationiteration"),mr=hr("animationstart"),gr=hr("transitionrun"),yr=hr("transitionstart"),vr=hr("transitioncancel"),br=hr("transitionend"),xr=new Map,wr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function kr(e,t){xr.set(e,t),et(t,[e])}var Sr=[],Er=0,Nr=0;function jr(){for(var e=Er,t=Nr=Er=0;t<e;){var n=Sr[t];Sr[t++]=null;var r=Sr[t];Sr[t++]=null;var a=Sr[t];Sr[t++]=null;var o=Sr[t];if(Sr[t++]=null,null!==r&&null!==a){var i=r.pending;null===i?a.next=a:(a.next=i.next,i.next=a),r.pending=a}0!==o&&Ar(n,a,o)}}function Cr(e,t,n,r){Sr[Er++]=e,Sr[Er++]=t,Sr[Er++]=n,Sr[Er++]=r,Nr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Tr(e,t,n,r){return Cr(e,t,n,r),Rr(e)}function Pr(e,t){return Cr(e,null,null,t),Rr(e)}function Ar(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var a=!1,o=e.return;null!==o;)o.childLanes|=n,null!==(r=o.alternate)&&(r.childLanes|=n),22===o.tag&&(null===(e=o.stateNode)||1&e._visibility||(a=!0)),e=o,o=o.return;a&&null!==t&&3===e.tag&&(o=e.stateNode,a=31-xe(n),null===(e=(o=o.hiddenUpdates)[a])?o[a]=[t]:e.push(t),t.lane=536870912|n)}function Rr(e){if(50<Tc)throw Tc=0,Pc=null,Error(i(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Or={},Fr=new WeakMap;function Lr(e,t){if("object"===typeof e&&null!==e){var n=Fr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:M(t)},Fr.set(e,t),t)}return{value:e,source:t,stack:M(t)}}var Dr=[],Mr=0,_r=null,Ir=0,zr=[],Br=0,Ur=null,Vr=1,Wr="";function qr(e,t){Dr[Mr++]=Ir,Dr[Mr++]=_r,_r=e,Ir=t}function Hr(e,t,n){zr[Br++]=Vr,zr[Br++]=Wr,zr[Br++]=Ur,Ur=e;var r=Vr;e=Wr;var a=32-xe(r)-1;r&=~(1<<a),n+=1;var o=32-xe(t)+a;if(30<o){var i=a-a%5;o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,Vr=1<<32-xe(t)+a|n<<a|r,Wr=o+e}else Vr=1<<o|n<<a|r,Wr=e}function Yr(e){null!==e.return&&(qr(e,1),Hr(e,1,0))}function Kr(e){for(;e===_r;)_r=Dr[--Mr],Dr[Mr]=null,Ir=Dr[--Mr],Dr[Mr]=null;for(;e===Ur;)Ur=zr[--Br],zr[Br]=null,Wr=zr[--Br],zr[Br]=null,Vr=zr[--Br],zr[Br]=null}var $r=null,Xr=null,Qr=!1,Gr=null,Jr=!1,Zr=Error(i(519));function ea(e){throw oa(Lr(Error(i(418,"")),e)),Zr}function ta(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Ie]=e,t[ze]=r,n){case"dialog":Pu("cancel",t),Pu("close",t);break;case"iframe":case"object":case"embed":Pu("load",t);break;case"video":case"audio":for(n=0;n<ju.length;n++)Pu(ju[n],t);break;case"source":Pu("error",t);break;case"img":case"image":case"link":Pu("error",t),Pu("load",t);break;case"details":Pu("toggle",t);break;case"input":Pu("invalid",t),yt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),dt(t);break;case"select":Pu("invalid",t);break;case"textarea":Pu("invalid",t),wt(t,r.value,r.defaultValue,r.children),dt(t)}"string"!==typeof(n=r.children)&&"number"!==typeof n&&"bigint"!==typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||Vu(t.textContent,n)?(null!=r.popover&&(Pu("beforetoggle",t),Pu("toggle",t)),null!=r.onScroll&&Pu("scroll",t),null!=r.onScrollEnd&&Pu("scrollend",t),null!=r.onClick&&(t.onclick=Wu),t=!0):t=!1,t||ea(e)}function na(e){for($r=e.return;$r;)switch($r.tag){case 3:case 27:return void(Jr=!0);case 5:case 13:return void(Jr=!1);default:$r=$r.return}}function ra(e){if(e!==$r)return!1;if(!Qr)return na(e),Qr=!0,!1;var t,n=!1;if((t=3!==e.tag&&27!==e.tag)&&((t=5===e.tag)&&(t=!("form"!==(t=e.type)&&"button"!==t)||Ju(e.type,e.memoizedProps)),t=!t),t&&(n=!0),n&&Xr&&ea(e),na(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType)if("/$"===(t=e.data)){if(0===n){Xr=sd(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++;e=e.nextSibling}Xr=null}}else Xr=$r?sd(e.stateNode.nextSibling):null;return!0}function aa(){Xr=$r=null,Qr=!1}function oa(e){null===Gr?Gr=[e]:Gr.push(e)}var ia=Error(i(460)),sa=Error(i(474)),la={then:function(){}};function ca(e){return"fulfilled"===(e=e.status)||"rejected"===e}function ua(){}function da(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(ua,ua),t=n),t.status){case"fulfilled":return t.value;case"rejected":if((e=t.reason)===ia)throw Error(i(483));throw e;default:if("string"===typeof t.status)t.then(ua,ua);else{if(null!==(e=tc)&&100<e.shellSuspendCounter)throw Error(i(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":if((e=t.reason)===ia)throw Error(i(483));throw e}throw ha=t,ia}}var ha=null;function pa(){if(null===ha)throw Error(i(459));var e=ha;return ha=null,e}var fa=null,ma=0;function ga(e){var t=ma;return ma+=1,null===fa&&(fa=[]),da(fa,e,t)}function ya(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function va(e,t){if(t.$$typeof===l)throw Error(i(525));throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ba(e){return(0,e._init)(e._payload)}function xa(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function a(e,t){return(e=_l(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=33554434,n):r:(t.flags|=33554434,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=33554434),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Vl(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function h(e,t,n,r){var o=n.type;return o===d?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===w&&ba(o)===t.type)?(ya(t=a(t,n.props),n),t.return=e,t):(ya(t=zl(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function p(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Wl(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Bl(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function m(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t||"bigint"===typeof t)return(t=Vl(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case c:return ya(n=zl(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case u:return(t=Wl(t,e.mode,n)).return=e,t;case w:return m(e,t=(0,t._init)(t._payload),n)}if(U(t)||N(t))return(t=Bl(t,e.mode,n,null)).return=e,t;if("function"===typeof t.then)return m(e,ga(t),n);if(t.$$typeof===g)return m(e,js(e,t),n);va(e,t)}return null}function y(e,t,n,r){var a=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n||"bigint"===typeof n)return null!==a?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case c:return n.key===a?h(e,t,n,r):null;case u:return n.key===a?p(e,t,n,r):null;case w:return y(e,t,n=(a=n._init)(n._payload),r)}if(U(n)||N(n))return null!==a?null:f(e,t,n,r,null);if("function"===typeof n.then)return y(e,t,ga(n),r);if(n.$$typeof===g)return y(e,t,js(e,n),r);va(e,n)}return null}function v(e,t,n,r,a){if("string"===typeof r&&""!==r||"number"===typeof r||"bigint"===typeof r)return l(t,e=e.get(n)||null,""+r,a);if("object"===typeof r&&null!==r){switch(r.$$typeof){case c:return h(t,e=e.get(null===r.key?n:r.key)||null,r,a);case u:return p(t,e=e.get(null===r.key?n:r.key)||null,r,a);case w:return v(e,t,n,r=(0,r._init)(r._payload),a)}if(U(r)||N(r))return f(t,e=e.get(n)||null,r,a,null);if("function"===typeof r.then)return v(e,t,n,ga(r),a);if(r.$$typeof===g)return v(e,t,n,js(t,r),a);va(t,r)}return null}function b(l,h,p,f){if("object"===typeof p&&null!==p&&p.type===d&&null===p.key&&(p=p.props.children),"object"===typeof p&&null!==p){switch(p.$$typeof){case c:e:{for(var x=p.key;null!==h;){if(h.key===x){if((x=p.type)===d){if(7===h.tag){n(l,h.sibling),(f=a(h,p.props.children)).return=l,l=f;break e}}else if(h.elementType===x||"object"===typeof x&&null!==x&&x.$$typeof===w&&ba(x)===h.type){n(l,h.sibling),ya(f=a(h,p.props),p),f.return=l,l=f;break e}n(l,h);break}t(l,h),h=h.sibling}p.type===d?((f=Bl(p.props.children,l.mode,f,p.key)).return=l,l=f):(ya(f=zl(p.type,p.key,p.props,null,l.mode,f),p),f.return=l,l=f)}return s(l);case u:e:{for(x=p.key;null!==h;){if(h.key===x){if(4===h.tag&&h.stateNode.containerInfo===p.containerInfo&&h.stateNode.implementation===p.implementation){n(l,h.sibling),(f=a(h,p.children||[])).return=l,l=f;break e}n(l,h);break}t(l,h),h=h.sibling}(f=Wl(p,l.mode,f)).return=l,l=f}return s(l);case w:return b(l,h,p=(x=p._init)(p._payload),f)}if(U(p))return function(a,i,s,l){for(var c=null,u=null,d=i,h=i=0,p=null;null!==d&&h<s.length;h++){d.index>h?(p=d,d=null):p=d.sibling;var f=y(a,d,s[h],l);if(null===f){null===d&&(d=p);break}e&&d&&null===f.alternate&&t(a,d),i=o(f,i,h),null===u?c=f:u.sibling=f,u=f,d=p}if(h===s.length)return n(a,d),Qr&&qr(a,h),c;if(null===d){for(;h<s.length;h++)null!==(d=m(a,s[h],l))&&(i=o(d,i,h),null===u?c=d:u.sibling=d,u=d);return Qr&&qr(a,h),c}for(d=r(d);h<s.length;h++)null!==(p=v(d,a,h,s[h],l))&&(e&&null!==p.alternate&&d.delete(null===p.key?h:p.key),i=o(p,i,h),null===u?c=p:u.sibling=p,u=p);return e&&d.forEach(function(e){return t(a,e)}),Qr&&qr(a,h),c}(l,h,p,f);
vendor: 4,612 bytes, line 2
2if(N(p)){if("function"!==typeof(x=N(p)))throw Error(i(150));return function(a,s,l,c){if(null==l)throw Error(i(151));for(var u=null,d=null,h=s,p=s=0,f=null,g=l.next();null!==h&&!g.done;p++,g=l.next()){h.index>p?(f=h,h=null):f=h.sibling;var b=y(a,h,g.value,c);if(null===b){null===h&&(h=f);break}e&&h&&null===b.alternate&&t(a,h),s=o(b,s,p),null===d?u=b:d.sibling=b,d=b,h=f}if(g.done)return n(a,h),Qr&&qr(a,p),u;if(null===h){for(;!g.done;p++,g=l.next())null!==(g=m(a,g.value,c))&&(s=o(g,s,p),null===d?u=g:d.sibling=g,d=g);return Qr&&qr(a,p),u}for(h=r(h);!g.done;p++,g=l.next())null!==(g=v(h,a,p,g.value,c))&&(e&&null!==g.alternate&&h.delete(null===g.key?p:g.key),s=o(g,s,p),null===d?u=g:d.sibling=g,d=g);return e&&h.forEach(function(e){return t(a,e)}),Qr&&qr(a,p),u}(l,h,p=x.call(p),f)}if("function"===typeof p.then)return b(l,h,ga(p),f);if(p.$$typeof===g)return b(l,h,js(l,p),f);va(l,p)}return"string"===typeof p&&""!==p||"number"===typeof p||"bigint"===typeof p?(p=""+p,null!==h&&6===h.tag?(n(l,h.sibling),(f=a(h,p)).return=l,l=f):(n(l,h),(f=Vl(p,l.mode,f)).return=l,l=f),s(l)):n(l,h)}return function(e,t,n,r){try{ma=0;var a=b(e,t,n,r);return fa=null,a}catch(i){if(i===ia)throw i;var o=Dl(29,i,null,e.mode);return o.lanes=r,o.return=e,o}}}var wa=xa(!0),ka=xa(!1),Sa=Y(null),Ea=Y(0);function Na(e,t){$(Ea,e=cc),$(Sa,t),cc=e|t.baseLanes}function ja(){$(Ea,cc),$(Sa,Sa.current)}function Ca(){cc=Ea.current,K(Sa),K(Ea)}var Ta=Y(null),Pa=null;function Aa(e){var t=e.alternate;$(La,1&La.current),$(Ta,e),null===Pa&&(null===t||null!==Sa.current||null!==t.memoizedState)&&(Pa=e)}function Ra(e){if(22===e.tag){if($(La,La.current),$(Ta,e),null===Pa){var t=e.alternate;null!==t&&null!==t.memoizedState&&(Pa=e)}}else Oa()}function Oa(){$(La,La.current),$(Ta,Ta.current)}function Fa(e){K(Ta),Pa===e&&(Pa=null),K(La)}var La=Y(0);function Da(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ma="undefined"!==typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},_a=r.unstable_scheduleCallback,Ia=r.unstable_NormalPriority,za={$$typeof:g,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ba(){return{controller:new Ma,data:new Map,refCount:0}}function Ua(e){e.refCount--,0===e.refCount&&_a(Ia,function(){e.controller.abort()})}var Va=null,Wa=0,qa=0,Ha=null;function Ya(){if(0===--Wa&&null!==Va){null!==Ha&&(Ha.status="fulfilled");var e=Va;Va=null,qa=0,Ha=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Ka=A.S;A.S=function(e,t){"object"===typeof t&&null!==t&&"function"===typeof t.then&&function(e,t){if(null===Va){var n=Va=[];Wa=0,qa=wu(),Ha={status:"pending",value:void 0,then:function(e){n.push(e)}}}Wa++,t.then(Ya,Ya)}(0,t),null!==Ka&&Ka(e,t)};var $a=Y(null);function Xa(){var e=$a.current;return null!==e?e:tc.pooledCache}function Qa(e,t){$($a,null===t?$a.current:t.pool)}function Ga(){var e=Xa();return null===e?null:{parent:za._currentValue,pool:e}}var Ja=0,Za=null,eo=null,to=null,no=!1,ro=!1,ao=!1,oo=0,io=0,so=null,lo=0;function co(){throw Error(i(321))}function uo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!$n(e[n],t[n]))return!1;return!0}function ho(e,t,n,r,a,o){return Ja=o,Za=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=null===e||null===e.memoizedState?ji:Ci,ao=!1,o=n(r,a),ao=!1,ro&&(o=fo(t,n,r,a)),po(e),o}function po(e){A.H=Ni;var t=null!==eo&&null!==eo.next;if(Ja=0,to=eo=Za=null,no=!1,io=0,so=null,t)throw Error(i(300));null===e||qi||null!==(e=e.dependencies)&&Ss(e)&&(qi=!0)}function fo(e,t,n,r){Za=e;var a=0;do{if(ro&&(so=null),io=0,ro=!1,25<=a)throw Error(i(301));if(a+=1,to=eo=null,null!=e.updateQueue){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,null!=o.memoCache&&(o.memoCache.index=0)}A.H=Ti,o=t(n,r)}while(ro);return o}function mo(){var e=A.H,t=e.useState()[0];return t="function"===typeof t.then?wo(t):t,e=e.useState()[0],(null!==eo?eo.memoizedState:null)!==e&&(Za.flags|=1024),t}function go(){var e=0!==oo;return oo=0,e}function yo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function vo(e){if(no){for(e=e.memoizedState;null!==e;){var t=e.queue;
vendor: 4,815 bytes, line 2
2null!==t&&(t.pending=null),e=e.next}no=!1}Ja=0,to=eo=Za=null,ro=!1,io=oo=0,so=null}function bo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===to?Za.memoizedState=to=e:to=to.next=e,to}function xo(){if(null===eo){var e=Za.alternate;e=null!==e?e.memoizedState:null}else e=eo.next;var t=null===to?Za.memoizedState:to.next;if(null!==t)to=t,eo=e;else{if(null===e){if(null===Za.alternate)throw Error(i(467));throw Error(i(310))}e={memoizedState:(eo=e).memoizedState,baseState:eo.baseState,baseQueue:eo.baseQueue,queue:eo.queue,next:null},null===to?Za.memoizedState=to=e:to=to.next=e}return to}function wo(e){var t=io;return io+=1,null===so&&(so=[]),e=da(so,e,t),t=Za,null===(null===to?t.memoizedState:to.next)&&(t=t.alternate,A.H=null===t||null===t.memoizedState?ji:Ci),e}function ko(e){if(null!==e&&"object"===typeof e){if("function"===typeof e.then)return wo(e);if(e.$$typeof===g)return Ns(e)}throw Error(i(438,String(e)))}function So(e){var t=null,n=Za.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Za.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Za.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=S;return t.index++,n}function Eo(e,t){return"function"===typeof t?t(e):t}function No(e){return jo(xo(),eo,e)}function jo(e,t,n){var r=e.queue;if(null===r)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(null!==o){if(null!==a){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,null===a)e.memoizedState=o;else{var l=s=null,c=null,u=t=a.next,d=!1;do{var h=-536870913&u.lane;if(h!==u.lane?(rc&h)===h:(Ja&h)===h){var p=u.revertLane;if(0===p)null!==c&&(c=c.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),h===qa&&(d=!0);else{if((Ja&p)===p){u=u.next,p===qa&&(d=!0);continue}h={lane:0,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=h,s=o):c=c.next=h,Za.lanes|=p,dc|=p}h=u.action,ao&&n(o,h),o=u.hasEagerState?u.eagerState:n(o,h)}else p={lane:h,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=p,s=o):c=c.next=p,Za.lanes|=h,dc|=h;u=u.next}while(null!==u&&u!==t);if(null===c?s=o:c.next=l,!$n(o,e.memoizedState)&&(qi=!0,d&&null!==(n=Ha)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=c,r.lastRenderedState=o}return null===a&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Co(e){var t=xo(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(null!==a){n.pending=null;var s=a=a.next;do{o=e(o,s.action),s=s.next}while(s!==a);$n(o,t.memoizedState)||(qi=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function To(e,t,n){var r=Za,a=xo(),o=Qr;if(o){if(void 0===n)throw Error(i(407));n=n()}else n=t();var s=!$n((eo||a).memoizedState,n);if(s&&(a.memoizedState=n,qi=!0),a=a.queue,Zo(Ro.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||null!==to&&1&to.memoizedState.tag){if(r.flags|=2048,$o(9,Ao.bind(null,r,a,n,t),{destroy:void 0},null),null===tc)throw Error(i(349));o||0!==(60&Ja)||Po(r,t,n)}return n}function Po(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Za.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Za.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ao(e,t,n,r){t.value=n,t.getSnapshot=r,Oo(t)&&Fo(e)}function Ro(e,t,n){return n(function(){Oo(t)&&Fo(e)})}function Oo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$n(e,n)}catch(r){return!0}}function Fo(e){var t=Pr(e,2);null!==t&&Oc(t,e,2)}function Lo(e){var t=bo();if("function"===typeof e){var n=e;if(e=n(),ao){be(!0);try{n()}finally{be(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eo,lastRenderedState:e},t}function Do(e,t,n,r){return e.baseState=n,jo(e,eo,"function"===typeof r?r:Eo)}function Mo(e,t,n,r,a){if(ki(e))throw Error(i(485));if(null!==(e=t.action)){var o={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};null!==A.T?n(!0):o.isTransition=!1,r(o),null===(n=t.pending)?(o.next=t.pending=o,_o(t,o)):(o.next=n.next,t.pending=n.next=o)}}function _o(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var o=A.T,i={};A.T=i;try{var s=n(a,r),l=A.S;null!==l&&l(i,s),Io(e,t,s)}catch(c){Bo(e,t,c)}finally{A.T=o}}else try{Io(e,t,o=n(a,r))}catch(u){Bo(e,t,u)}}
2function Io(e,t,n){null!==n&&"object"===typeof n&&"function"===typeof n.then?n.then(function(n){zo(e,t,n)},function(n){return Bo(e,t,n)}):zo(e,t,n)}function zo(e,t,n){t.status="fulfilled",t.value=n,Uo(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,_o(e,n)))}function Bo(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Uo(t),t=t.next}while(t!==r)}e.action=null}function Uo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Vo(e,t){return t}function Wo(e,t){if(Qr){var n=tc.formState;if(null!==n){e:{var r=Za;if(Qr){if(Xr){t:{for(var a=Xr,o=Jr;8!==a.nodeType;){if(!o){a=null;break t}if(null===(a=sd(a.nextSibling))){a=null;break t}}a="F!"===(o=a.data)||"F"===o?a:null}if(a){Xr=sd(a.nextSibling),r="F!"===a.data;break e}}ea(r)}r=!1}r&&(t=n[0])}}return(n=bo()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vo,lastRenderedState:t},n.queue=r,n=bi.bind(null,Za,r),r.dispatch=n,r=Lo(!1),o=wi.bind(null,Za,!1,r.queue),a={state:t,dispatch:null,action:e,pending:null},(r=bo()).queue=a,n=Mo.bind(null,Za,a,o,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function qo(e){return Ho(xo(),eo,e)}function Ho(e,t,n){t=jo(e,t,Vo)[0],e=No(Eo)[0],t="object"===typeof t&&null!==t&&"function"===typeof t.then?wo(t):t;var r=xo(),a=r.queue,o=a.dispatch;return n!==r.memoizedState&&(Za.flags|=2048,$o(9,Yo.bind(null,a,n),{destroy:void 0},null)),[t,o,e]}function Yo(e,t){e.action=t}function Ko(e){var t=xo(),n=eo;if(null!==n)return Ho(t,n,e);xo(),t=t.memoizedState;var r=(n=xo()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function $o(e,t,n,r){return e={tag:e,create:t,inst:n,deps:r,next:null},null===(t=Za.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Za.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Xo(){return xo().memoizedState}function Qo(e,t,n,r){var a=bo();Za.flags|=e,a.memoizedState=$o(1|t,n,{destroy:void 0},void 0===r?null:r)}function Go(e,t,n,r){var a=xo();r=void 0===r?null:r;var o=a.memoizedState.inst;null!==eo&&null!==r&&uo(r,eo.memoizedState.deps)?a.memoizedState=$o(t,n,o,r):(Za.flags|=e,a.memoizedState=$o(1|t,n,o,r))}function Jo(e,t){Qo(8390656,8,e,t)}function Zo(e,t){Go(2048,8,e,t)}function ei(e,t){return Go(4,2,e,t)}function ti(e,t){return Go(4,4,e,t)}function ni(e,t){if("function"===typeof t){e=e();var n=t(e);return function(){"function"===typeof n?n():t(null)}}if(null!==t&&void 0!==t)return e=e(),t.current=e,function(){t.current=null}}function ri(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,Go(4,4,ni.bind(null,t,e),n)}function ai(){}function oi(e,t){var n=xo();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&uo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ii(e,t){var n=xo();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&uo(t,r[1]))return r[0];if(r=e(),ao){be(!0);try{e()}finally{be(!1)}}return n.memoizedState=[r,t],r}function si(e,t,n){return void 0===n||0!==(1073741824&Ja)?e.memoizedState=t:(e.memoizedState=n,e=Rc(),Za.lanes|=e,dc|=e,n)}function li(e,t,n,r){return $n(n,t)?n:null!==Sa.current?(e=si(e,n,r),$n(e,t)||(qi=!0),e):0===(42&Ja)?(qi=!0,e.memoizedState=n):(e=Rc(),Za.lanes|=e,dc|=e,t)}function ci(e,t,n,r,a){var o=V.p;V.p=0!==o&&8>o?o:8;var i=A.T,s={};A.T=s,wi(e,!1,t,n);try{var l=a(),c=A.S;if(null!==c&&c(s,l),null!==l&&"object"===typeof l&&"function"===typeof l.then)xi(e,t,function(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status="rejected",r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}(l,r),Ac());else xi(e,t,r,Ac())}catch(u){xi(e,t,{then:function(){},status:"rejected",reason:u},Ac())}finally{V.p=o,A.T=i}}function ui(){}function di(e,t,n,r){if(5!==e.tag)throw Error(i(476));var a=hi(e).queue;ci(e,a,t,W,null===n?ui:function(){return pi(e),n(r)})}function hi(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eo,lastRenderedState:W},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eo,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function pi(e){xi(e,hi(e).next.queue,{},Ac())}function fi(){return Ns(Md)}function mi(){return xo().memoizedState}function gi(){return xo().memoizedState}function yi(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Ac(),r=Os(t,e=Rs(n),n);return null!==r&&(Oc(r,t,n),Fs(r,t,n)),t={cache:Ba()},void(e.payload=t)}t=t.return}}
vendor: 4,264 bytes, line 2
2function vi(e,t,n){var r=Ac();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},ki(e)?Si(t,n):null!==(n=Tr(e,t,n,r))&&(Oc(n,e,r),Ei(n,t,r))}function bi(e,t,n){xi(e,t,n,Ac())}function xi(e,t,n,r){var a={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(ki(e))Si(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=o(i,n);if(a.hasEagerState=!0,a.eagerState=s,$n(s,i))return Cr(e,t,a,0),null===tc&&jr(),!1}catch(l){}if(null!==(n=Tr(e,t,a,r)))return Oc(n,e,r),Ei(n,t,r),!0}return!1}function wi(e,t,n,r){if(r={lane:2,revertLane:wu(),action:r,hasEagerState:!1,eagerState:null,next:null},ki(e)){if(t)throw Error(i(479))}else null!==(t=Tr(e,n,r,2))&&Oc(t,e,2)}function ki(e){var t=e.alternate;return e===Za||null!==t&&t===Za}function Si(e,t){ro=no=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ei(e,t,n){if(0!==(4194176&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Le(e,n)}}var Ni={readContext:Ns,use:ko,useCallback:co,useContext:co,useEffect:co,useImperativeHandle:co,useLayoutEffect:co,useInsertionEffect:co,useMemo:co,useReducer:co,useRef:co,useState:co,useDebugValue:co,useDeferredValue:co,useTransition:co,useSyncExternalStore:co,useId:co};Ni.useCacheRefresh=co,Ni.useMemoCache=co,Ni.useHostTransitionStatus=co,Ni.useFormState=co,Ni.useActionState=co,Ni.useOptimistic=co;var ji={readContext:Ns,use:ko,useCallback:function(e,t){return bo().memoizedState=[e,void 0===t?null:t],e},useContext:Ns,useEffect:Jo,useImperativeHandle:function(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,Qo(4194308,4,ni.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qo(4194308,4,e,t)},useInsertionEffect:function(e,t){Qo(4,2,e,t)},useMemo:function(e,t){var n=bo();t=void 0===t?null:t;var r=e();if(ao){be(!0);try{e()}finally{be(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=bo();if(void 0!==n){var a=n(t);if(ao){be(!0);try{n(t)}finally{be(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=vi.bind(null,Za,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},bo().memoizedState=e},useState:function(e){var t=(e=Lo(e)).queue,n=bi.bind(null,Za,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ai,useDeferredValue:function(e,t){return si(bo(),e,t)},useTransition:function(){var e=Lo(!1);return e=ci.bind(null,Za,e.queue,!0,!1),bo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Za,a=bo();if(Qr){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===tc)throw Error(i(349));0!==(60&rc)||Po(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Jo(Ro.bind(null,r,o,e),[e]),r.flags|=2048,$o(9,Ao.bind(null,r,o,n,t),{destroy:void 0},null),n},useId:function(){var e=bo(),t=tc.identifierPrefix;if(Qr){var n=Wr;t=":"+t+"R"+(n=(Vr&~(1<<32-xe(Vr)-1)).toString(32)+n),0<(n=oo++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=lo++).toString(32)+":";return e.memoizedState=t},useCacheRefresh:function(){return bo().memoizedState=yi.bind(null,Za)}};ji.useMemoCache=So,ji.useHostTransitionStatus=fi,ji.useFormState=Wo,ji.useActionState=Wo,ji.useOptimistic=function(e){var t=bo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=wi.bind(null,Za,!0,n),n.dispatch=t,[e,t]};var Ci={readContext:Ns,use:ko,useCallback:oi,useContext:Ns,useEffect:Zo,useImperativeHandle:ri,useInsertionEffect:ei,useLayoutEffect:ti,useMemo:ii,useReducer:No,useRef:Xo,useState:function(){return No(Eo)},useDebugValue:ai,useDeferredValue:function(e,t){return li(xo(),eo.memoizedState,e,t)},useTransition:function(){var e=No(Eo)[0],t=xo().memoizedState;return["boolean"===typeof e?e:wo(e),t]},useSyncExternalStore:To,useId:mi};Ci.useCacheRefresh=gi,Ci.useMemoCache=So,Ci.useHostTransitionStatus=fi,Ci.useFormState=qo,Ci.useActionState=qo,Ci.useOptimistic=function(e,t){return Do(xo(),0,e,t)};var Ti={readContext:Ns,use:ko,useCallback:oi,useContext:Ns,useEffect:Zo,useImperativeHandle:ri,useInsertionEffect:ei,useLayoutEffect:ti,useMemo:ii,useReducer:Co,useRef
2:Xo,useState:function(){return Co(Eo)},useDebugValue:ai,useDeferredValue:function(e,t){var n=xo();return null===eo?si(n,e,t):li(n,eo.memoizedState,e,t)},useTransition:function(){var e=Co(Eo)[0],t=xo().memoizedState;return["boolean"===typeof e?e:wo(e),t]},useSyncExternalStore:To,useId:mi};function Pi(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:R({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}Ti.useCacheRefresh=gi,Ti.useMemoCache=So,Ti.useHostTransitionStatus=fi,Ti.useFormState=Ko,Ti.useActionState=Ko,Ti.useOptimistic=function(e,t){var n=xo();return null!==eo?Do(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])};var Ai={isMounted:function(e){return!!(e=e._reactInternals)&&_(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ac(),a=Rs(r);a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=Os(e,a,r))&&(Oc(t,e,r),Fs(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ac(),a=Rs(r);a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=Os(e,a,r))&&(Oc(t,e,r),Fs(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ac(),r=Rs(n);r.tag=2,void 0!==t&&null!==t&&(r.callback=t),null!==(t=Os(e,r,n))&&(Oc(t,e,n),Fs(t,e,n))}};function Ri(e,t,n,r,a,o,i){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!t.prototype||!t.prototype.isPureReactComponent||(!Xn(n,r)||!Xn(a,o))}function Oi(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ai.enqueueReplaceState(t,t.state,null)}function Fi(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var a in n===t&&(n=R({},n)),e)void 0===n[a]&&(n[a]=e[a]);return n}var Li="function"===typeof reportError?reportError:function(e){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof e&&null!==e&&"string"===typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"===typeof process&&"function"===typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function Di(e){Li(e)}function Mi(e){console.error(e)}function _i(e){Li(e)}function Ii(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function zi(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Bi(e,t,n){return(n=Rs(n)).tag=3,n.payload={element:null},n.callback=function(){Ii(e,t)},n}function Ui(e){return(e=Rs(e)).tag=3,e}function Vi(e,t,n,r){var a=n.type.getDerivedStateFromError;if("function"===typeof a){var o=r.value;e.payload=function(){return a(o)},e.callback=function(){zi(t,n,r)}}var i=n.stateNode;null!==i&&"function"===typeof i.componentDidCatch&&(e.callback=function(){zi(t,n,r),"function"!==typeof a&&(null===kc?kc=new Set([this]):kc.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Wi=Error(i(461)),qi=!1;function Hi(e,t,n,r){t.child=null===e?ka(t,null,n,r):wa(t,e.child,n,r)}function Yi(e,t,n,r,a){n=n.render;var o=t.ref;if("ref"in r){var i={};for(var s in r)"ref"!==s&&(i[s]=r[s])}else i=r;return Es(t),r=ho(e,t,n,i,o,a),s=go(),null===e||qi?(Qr&&s&&Yr(t),t.flags|=1,Hi(e,t,r,a),t.child):(yo(e,t,a),hs(e,t,a))}function Ki(e,t,n,r,a){if(null===e){var o=n.type;return"function"!==typeof o||Ml(o)||void 0!==o.defaultProps||null!==n.compare?((e=zl(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,$i(e,t,o,r,a))}if(o=e.child,!ps(e,a)){var i=o.memoizedProps;if((n=null!==(n=n.compare)?n:Xn)(i,r)&&e.ref===t.ref)return hs(e,t,a)}return t.flags|=1,(e=_l(o,r)).ref=t.ref,e.return=t,t.child=e}function $i(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(Xn(o,r)&&e.ref===t.ref){if(qi=!1,t.pendingProps=r=o,!ps(e,a))return t.lanes=e.lanes,hs(e,t,a);0!==(131072&e.flags)&&(qi=!0)}}return Ji(e,t,n,r,a)}function Xi(e,t,n){var r=t.pendingProps,a=r.children,o=0!==(2&t.stateNode._pendingVisibility),i=null!==e?e.memoizedState:null;if(Gi(e,t),"hidden"===r.mode||o){if(0!==(128&t.flags)){if(r=null!==i?i.baseLanes|n:n,null!==e){for(a=t.child=e.child,o=0;null!==a;)o=o|a.lanes|a.childLanes,a=a.sibling;t.childLanes=o&~r}else t.childLanes=0,t.child=null;return Qi(e,t,r,n)}if(0===(536870912&n))return t.lanes=t.childLanes=536870912,Qi(e,t,null!==i?i.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null}
2,null!==e&&Qa(0,null!==i?i.cachePool:null),null!==i?Na(t,i):ja(),Ra(t)}else null!==i?(Qa(0,i.cachePool),Na(t,i),Oa(),t.memoizedState=null):(null!==e&&Qa(0,null),ja(),Oa());return Hi(e,t,a,n),t.child}function Qi(e,t,n,r){var a=Xa();return a=null===a?null:{parent:za._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},null!==e&&Qa(0,null),ja(),Ra(t),null!==e&&ks(e,t,r,!0),null}function Gi(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=2097664);else{if("function"!==typeof n&&"object"!==typeof n)throw Error(i(284));null!==e&&e.ref===n||(t.flags|=2097664)}}function Ji(e,t,n,r,a){return Es(t),n=ho(e,t,n,r,void 0,a),r=go(),null===e||qi?(Qr&&r&&Yr(t),t.flags|=1,Hi(e,t,n,a),t.child):(yo(e,t,a),hs(e,t,a))}function Zi(e,t,n,r,a,o){return Es(t),t.updateQueue=null,n=fo(t,r,n,a),po(e),r=go(),null===e||qi?(Qr&&r&&Yr(t),t.flags|=1,Hi(e,t,n,o),t.child):(yo(e,t,o),hs(e,t,o))}function es(e,t,n,r,a){if(Es(t),null===t.stateNode){var o=Or,i=n.contextType;"object"===typeof i&&null!==i&&(o=Ns(i)),o=new n(r,o),t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,o.updater=Ai,t.stateNode=o,o._reactInternals=t,(o=t.stateNode).props=r,o.state=t.memoizedState,o.refs={},Ps(t),i=n.contextType,o.context="object"===typeof i&&null!==i?Ns(i):Or,o.state=t.memoizedState,"function"===typeof(i=n.getDerivedStateFromProps)&&(Pi(t,n,i,r),o.state=t.memoizedState),"function"===typeof n.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(i=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),i!==o.state&&Ai.enqueueReplaceState(o,o.state,null),_s(t,r,o,a),Ms(),o.state=t.memoizedState),"function"===typeof o.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){o=t.stateNode;var s=t.memoizedProps,l=Fi(n,s);o.props=l;var c=o.context,u=n.contextType;i=Or,"object"===typeof u&&null!==u&&(i=Ns(u));var d=n.getDerivedStateFromProps;u="function"===typeof d||"function"===typeof o.getSnapshotBeforeUpdate,s=t.pendingProps!==s,u||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s||c!==i)&&Oi(t,o,r,i),Ts=!1;var h=t.memoizedState;o.state=h,_s(t,r,o,a),Ms(),c=t.memoizedState,s||h!==c||Ts?("function"===typeof d&&(Pi(t,n,d,r),c=t.memoizedState),(l=Ts||Ri(t,n,l,r,h,c,i))?(u||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.flags|=4194308)):("function"===typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=i,r=l):("function"===typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,As(e,t),u=Fi(n,i=t.memoizedProps),o.props=u,d=t.pendingProps,h=o.context,c=n.contextType,l=Or,"object"===typeof c&&null!==c&&(l=Ns(c)),(c="function"===typeof(s=n.getDerivedStateFromProps)||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(i!==d||h!==l)&&Oi(t,o,r,l),Ts=!1,h=t.memoizedState,o.state=h,_s(t,r,o,a),Ms();var p=t.memoizedState;i!==d||h!==p||Ts||null!==e&&null!==e.dependencies&&Ss(e.dependencies)?("function"===typeof s&&(Pi(t,n,s,r),p=t.memoizedState),(u=Ts||Ri(t,n,u,r,h,p,l)||null!==e&&null!==e.dependencies&&Ss(e.dependencies))?(c||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,l),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,l)),"function"===typeof o.componentDidUpdate&&(t.flags|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof o.componentDidUpdate||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=l,r=u):("function"!==typeof o.componentDidUpdate||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}
vendor: 33,419 bytes, line 2
2return o=r,Gi(e,t),r=0!==(128&t.flags),o||r?(o=t.stateNode,n=r&&"function"!==typeof n.getDerivedStateFromError?null:o.render(),t.flags|=1,null!==e&&r?(t.child=wa(t,e.child,null,a),t.child=wa(t,null,n,a)):Hi(e,t,n,a),t.memoizedState=o.state,e=t.child):e=hs(e,t,a),e}function ts(e,t,n,r){return aa(),t.flags|=256,Hi(e,t,n,r),t.child}var ns={dehydrated:null,treeContext:null,retryLane:0};function rs(e){return{baseLanes:e,cachePool:Ga()}}function as(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=fc),e}function os(e,t,n){var r,a=t.pendingProps,o=!1,s=0!==(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!==(2&La.current)),r&&(o=!0,t.flags&=-129),r=0!==(32&t.flags),t.flags&=-33,null===e){if(Qr){if(o?Aa(t):Oa(),Qr){var l,c=Xr;if(l=c){e:{for(l=c,c=Jr;8!==l.nodeType;){if(!c){c=null;break e}if(null===(l=sd(l.nextSibling))){c=null;break e}}c=l}null!==c?(t.memoizedState={dehydrated:c,treeContext:null!==Ur?{id:Vr,overflow:Wr}:null,retryLane:536870912},(l=Dl(18,null,null,0)).stateNode=c,l.return=t,t.child=l,$r=t,Xr=null,l=!0):l=!1}l||ea(t)}if(null!==(c=t.memoizedState)&&null!==(c=c.dehydrated))return"$!"===c.data?t.lanes=16:t.lanes=536870912,null;Fa(t)}return c=a.children,a=a.fallback,o?(Oa(),c=ss({mode:"hidden",children:c},o=t.mode),a=Bl(a,o,n,null),c.return=t,a.return=t,c.sibling=a,t.child=c,(o=t.child).memoizedState=rs(n),o.childLanes=as(e,r,n),t.memoizedState=ns,a):(Aa(t),is(t,c))}if(null!==(l=e.memoizedState)&&null!==(c=l.dehydrated)){if(s)256&t.flags?(Aa(t),t.flags&=-257,t=ls(e,t,n)):null!==t.memoizedState?(Oa(),t.child=e.child,t.flags|=128,t=null):(Oa(),o=a.fallback,c=t.mode,a=ss({mode:"visible",children:a.children},c),(o=Bl(o,c,n,null)).flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,wa(t,e.child,null,n),(a=t.child).memoizedState=rs(n),a.childLanes=as(e,r,n),t.memoizedState=ns,t=o);else if(Aa(t),"$!"===c.data){if(r=c.nextSibling&&c.nextSibling.dataset)var u=r.dgst;r=u,(a=Error(i(419))).stack="",a.digest=r,oa({value:a,source:null,stack:null}),t=ls(e,t,n)}else if(qi||ks(e,t,n,!1),r=0!==(n&e.childLanes),qi||r){if(null!==(r=tc)){if(0!==(42&(a=n&-n)))a=1;else switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:a=64;break;case 268435456:a=134217728;break;default:a=0}if(0!==(a=0!==(a&(r.suspendedLanes|n))?0:a)&&a!==l.retryLane)throw l.retryLane=a,Pr(e,a),Oc(r,e,a),Wi}"$?"===c.data||qc(),t=ls(e,t,n)}else"$?"===c.data?(t.flags|=128,t.child=e.child,t=su.bind(null,e),c._reactRetry=t,t=null):(e=l.treeContext,Xr=sd(c.nextSibling),$r=t,Qr=!0,Gr=null,Jr=!1,null!==e&&(zr[Br++]=Vr,zr[Br++]=Wr,zr[Br++]=Ur,Vr=e.id,Wr=e.overflow,Ur=t),(t=is(t,a.children)).flags|=4096);return t}return o?(Oa(),o=a.fallback,c=t.mode,u=(l=e.child).sibling,(a=_l(l,{mode:"hidden",children:a.children})).subtreeFlags=31457280&l.subtreeFlags,null!==u?o=_l(u,o):(o=Bl(o,c,n,null)).flags|=2,o.return=t,a.return=t,a.sibling=o,t.child=a,a=o,o=t.child,null===(c=e.child.memoizedState)?c=rs(n):(null!==(l=c.cachePool)?(u=za._currentValue,l=l.parent!==u?{parent:u,pool:u}:l):l=Ga(),c={baseLanes:c.baseLanes|n,cachePool:l}),o.memoizedState=c,o.childLanes=as(e,r,n),t.memoizedState=ns,a):(Aa(t),e=(n=e.child).sibling,(n=_l(n,{mode:"visible",children:a.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function is(e,t){return(t=ss({mode:"visible",children:t},e.mode)).return=e,e.child=t}function ss(e,t){return Ul(e,t,0,null)}function ls(e,t,n){return wa(t,e.child,null,n),(e=is(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function cs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),xs(e.return,t,n)}function us(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function ds(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(Hi(e,t,r.children,n),0!==(2&(r=La.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&cs(e,n,t);else if(19===e.tag)cs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch($(La,r),a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===Da(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),us(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===Da(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}us(t,!0,n,null,o);break;case"together":us(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),dc|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(ks(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=_l(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=_l(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ps(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Ss(e))}function fs(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)qi=!0;else{if(!ps(e,n)&&0===(128&t.flags))return qi=!1,function(e,t,n){switch(t.tag){case 3:Z(t,t.stateNode.containerInfo),vs(t,za,e.memoizedState.cache),aa();break;case 27:case 5:te(t);break;case 4:Z(t,t.stateNode.containerInfo);break;case 10:vs(t,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(Aa(t),t.flags|=128,null):0!==(n&t.child.childLanes)?os(e,t,n):(Aa(t),null!==(e=hs(e,t,n))?e.sibling:null);Aa(t);break;case 19:var a=0!==(128&e.flags);if((r=0!==(n&t.childLanes))||(ks(e,t,n,!1),r=0!==(n&t.childLanes)),a){if(r)return ds(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),$(La,La.current),r)break;return null;case 22:case 23:return t.lanes=0,Xi(e,t,n);case 24:vs(t,za,e.memoizedState.cache)}return hs(e,t,n)}(e,t,n);qi=0!==(131072&e.flags)}else qi=!1,Qr&&0!==(1048576&t.flags)&&Hr(t,Ir,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var r=t.elementType,a=r._init;if(r=a(r._payload),t.type=r,"function"!==typeof r){if(void 0!==r&&null!==r){if((a=r.$$typeof)===y){t.tag=11,t=Yi(null,t,r,e,n);break e}if(a===x){t.tag=14,t=Ki(null,t,r,e,n);break e}}throw t=C(r)||r,Error(i(306,t,""))}Ml(r)?(e=Fi(r,e),t.tag=1,t=es(null,t,r,e,n)):(t.tag=0,t=Ji(null,t,r,e,n))}return t;case 0:return Ji(e,t,t.type,t.pendingProps,n);case 1:return es(e,t,r=t.type,a=Fi(r,t.pendingProps),n);case 3:e:{if(Z(t,t.stateNode.containerInfo),null===e)throw Error(i(387));var o=t.pendingProps;r=(a=t.memoizedState).element,As(e,t),_s(t,o,null,n);var s=t.memoizedState;if(o=s.cache,vs(t,za,o),o!==a.cache&&ws(t,[za],n,!0),Ms(),o=s.element,a.isDehydrated){if(a={element:o,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=ts(e,t,o,n);break e}if(o!==r){oa(r=Lr(Error(i(424)),t)),t=ts(e,t,o,n);break e}for(Xr=sd(t.stateNode.containerInfo.firstChild),$r=t,Qr=!0,Gr=null,Jr=!0,n=ka(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(aa(),o===r){t=hs(e,t,n);break e}Hi(e,t,o,n)}t=t.child}return t;case 26:return Gi(e,t),null===e?(n=gd(t.type,null,t.pendingProps,null))?t.memoizedState=n:Qr||(n=t.type,e=t.pendingProps,(r=Xu(G.current).createElement(n))[Ie]=t,r[ze]=e,Yu(r,n,e),Ge(r),t.stateNode=r):t.memoizedState=gd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return te(t),null===e&&Qr&&(r=t.stateNode=cd(t.type,t.pendingProps,G.current),$r=t,Jr=!0,Xr=sd(r.firstChild)),r=t.pendingProps.children,null!==e||Qr?Hi(e,t,r,n):t.child=wa(t,null,r,n),Gi(e,t),t.child;case 5:return null===e&&Qr&&((a=r=Xr)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[He])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(o=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(o!==a.rel||e.getAttribute("href")!==(null==a.href?null:a.href)||e.getAttribute("crossorigin")!==(null==a.crossOrigin?null:a.crossOrigin)||e.getAttribute("title")!==(null==a.title?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((o=e.getAttribute("src"))!==(null==a.src?null:a.src)||e.getAttribute("type")!==(null==a.type?null:a.type)||e.getAttribute("crossorigin")!==(null==a.crossOrigin?null:a.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var o=null==a.name?null:""+a.name;if("hidden"===a.type&&e.getAttribute("name")===o)return e}if(null===(e=sd(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,Jr))?(t.stateNode=r,$r=t,Xr=sd(r.firstChild),Jr=!1,a=!0):a=!1),a||ea(t)),te(t),a=t.type,o=t.pendingProps,s=null!==e?e.memoizedProps:null,r=o.children,Ju(a,o)?r=null:null!==s&&Ju(a,s)&&(t.flags|=32),null!==t.memoizedState&&(a=ho(e,t,mo,null,null,n),Md._currentValue=a),Gi(e,t),Hi(e,t,r,n),t.child;case 6:return null===e&&Qr&&((e=n=Xr)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=sd(e.nextSibling)))return null}return e}(n,t.pendingProps,Jr))?(t.stateNode=n,$r=t,Xr=null,e=!0):e=!1),e||ea(t)),null;case 13:return os(e,t,n);case 4:return Z(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wa(t,null,r,n):Hi(e,t,r,n),t.child;case 11:return Yi(e,t,t.type,t.pendingProps,n);case 7:return Hi(e,t,t.pendingProps,n),t.child;case 8:case 12:return Hi(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,vs(t,t.type,r.value),Hi(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Es(t),r=r(a=Ns(a)),t.flags|=1,Hi(e,t,r,n),t.child;case 14:return Ki(e,t,t.type,t.pendingProps,n);case 15:return $i(e,t,t.type,t.pendingProps,n);case 19:return ds(e,t,n);case 22:return Xi(e,t,n);case 24:return Es(t),r=Ns(za),null===e?(null===(a=Xa())&&(a=tc,o=Ba(),a.pooledCache=o,o.refCount++,null!==o&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ps(t),vs(t,za,a)):(0!==(e.lanes&n)&&(As(e,t),_s(t,null,null,n),Ms()),a=e.memoizedState,o=t.memoizedState,a.parent!==r?(a={parent:r,cache:r},t.memoizedState=a,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=a),vs(t,za,r)):(r=o.cache,vs(t,za,r),r!==a.cache&&ws(t,[za],n,!0))),Hi(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}var ms=Y(null),gs=null,ys=null;function vs(e,t,n){$(ms,t._currentValue),t._currentValue=n}function bs(e){e._currentValue=ms.current,K(ms)}function xs(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ws(e,t,n,r){var a=e.child;for(null!==a&&(a.return=e);null!==a;){var o=a.dependencies;if(null!==o){var s=a.child;o=o.firstContext;e:for(;null!==o;){var l=o;o=a;for(var c=0;c<t.length;c++)if(l.context===t[c]){o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),xs(o.return,n,e),r||(s=null);break e}o=l.next}}else if(18===a.tag){if(null===(s=a.return))throw Error(i(341));s.lanes|=n,null!==(o=s.alternate)&&(o.lanes|=n),xs(s,n,e),s=null}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===e){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}}function ks(e,t,n,r){e=null;for(var a=t,o=!1;null!==a;){if(!o)if(0!==(524288&a.flags))o=!0;else if(0!==(262144&a.flags))break;if(10===a.tag){var s=a.alternate;if(null===s)throw Error(i(387));if(null!==(s=s.memoizedProps)){var l=a.type;$n(a.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(a===J.current){if(null===(s=a.alternate))throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(null!==e?e.push(Md):e=[Md])}a=a.return}null!==e&&ws(t,e,n,r),t.flags|=262144}function Ss(e){for(e=e.firstContext;null!==e;){if(!$n(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Es(e){gs=e,ys=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Ns(e){return Cs(gs,e)}function js(e,t){return null===gs&&Es(e),Cs(e,t)}function Cs(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===ys){if(null===e)throw Error(i(308));ys=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ys=ys.next=t;return n}var Ts=!1;function Ps(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function As(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Rs(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Os(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&ec)){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=Rr(e),Ar(e,null,n),t}return Cr(e,r,t,n),Rr(e)}function Fs(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194176&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Le(e,n)}}function Ls(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ds=!1;function Ms(){if(Ds){if(null!==Ha)throw Ha}}function _s(e,t,n,r){Ds=!1;var a=e.updateQueue;Ts=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,s=a.shared.pending;if(null!==s){a.shared.pending=null;var l=s,c=l.next;l.next=null,null===i?o=c:i.next=c,i=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=a.baseState;for(i=0,u=c=l=null,s=o;;){var h=-536870913&s.lane,p=h!==s.lane;if(p?(rc&h)===h:(r&h)===h){0!==h&&h===qa&&(Ds=!0),null!==u&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var f=e,m=s;h=t;var g=n;switch(m.tag){case 1:if("function"===typeof(f=m.payload)){d=f.call(g,d,h);break e}d=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null===(h="function"===typeof(f=m.payload)?f.call(g,d,h):f)||void 0===h)break e;d=R({},d,h);break e;case 2:Ts=!0}}null!==(h=s.callback)&&(e.flags|=64,p&&(e.flags|=8192),null===(p=a.callbacks)?a.callbacks=[h]:p.push(h))}else p={lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=p,l=d):u=u.next=p,i|=h;if(null===(s=s.next)){if(null===(s=a.shared.pending))break;s=(p=s).next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}null===u&&(l=d),a.baseState=l,a.firstBaseUpdate=c,a.lastBaseUpdate=u,null===o&&(a.shared.lanes=0),dc|=i,e.lanes=i,e.memoizedState=d}}function Is(e,t){if("function"!==typeof e)throw Error(i(191,e));e.call(t)}function zs(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Is(n[e],t)}function Bs(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var a=r.next;n=a;do{if((n.tag&e)===e){r=void 0;var o=n.create,i=n.inst;r=o(),i.destroy=r}n=n.next}while(n!==a)}}catch(s){ru(t,t.return,s)}}function Us(e,t,n){try{var r=t.updateQueue,a=null!==r?r.lastEffect:null;if(null!==a){var o=a.next;r=o;do{if((r.tag&e)===e){var i=r.inst,s=i.destroy;if(void 0!==s){i.destroy=void 0,a=t;var l=n;try{s()}catch(c){ru(a,l,c)}}}r=r.next}while(r!==o)}}catch(c){ru(t,t.return,c)}}function Vs(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{zs(t,n)}catch(r){ru(e,e.return,r)}}}function Ws(e,t,n){n.props=Fi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){ru(e,t,r)}}function qs(e,t){try{var n=e.ref;if(null!==n){var r=e.stateNode;switch(e.tag){case 26:case 27:case 5:var a=r;break;default:a=r}"function"===typeof n?e.refCleanup=n(a):n.current=a}}catch(o){ru(e,t,o)}}function Hs(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"===typeof r)try{r()}catch(a){ru(e,t,a)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"===typeof n)try{n(null)}catch(o){ru(e,t,o)}else n.current=null}function Ys(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(a){ru(e,e.return,a)}}function Ks(e,t,n){try{var r=e.stateNode;!function(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,o=null,s=null,l=null,c=null,u=null,d=null;for(f in n){var h=n[f];if(n.hasOwnProperty(f)&&null!=h)switch(f){case"checked":case"value":break;case"defaultValue":c=h;default:r.hasOwnProperty(f)||qu(e,t,f,null,r,h)}}for(var p in r){var f=r[p];if(h=n[p],r.hasOwnProperty(p)&&(null!=f||null!=h))switch(p){case"type":o=f;break;case"name":a=f;break;case"checked":u=f;break;case"defaultChecked":d=f;break;case"value":s=f;break;case"defaultValue":l=f;break;case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(i(137,t));break;default:f!==h&&qu(e,t,p,f,r,h)}}return void gt(e,s,l,c,u,d,o,a);case"select":for(o in f=s=l=p=null,n)if(c=n[o],n.hasOwnProperty(o)&&null!=c)switch(o){case"value":break;case"multiple":f=c;default:r.hasOwnProperty(o)||qu(e,t,o,null,r,c)}for(a in r)if(o=r[a],c=n[a],r.hasOwnProperty(a)&&(null!=o||null!=c))switch(a){case"value":p=o;break;case"defaultValue":l=o;break;case"multiple":s=o;default:o!==c&&qu(e,t,a,o,r,c)}return t=l,n=s,r=f,void(null!=p?bt(e,!!n,p,!1):!!r!==!!n&&(null!=t?bt(e,!!n,t,!0):bt(e,!!n,n?[]:"",!1)));case"textarea":for(l in f=p=null,n)if(a=n[l],n.hasOwnProperty(l)&&null!=a&&!r.hasOwnProperty(l))switch(l){case"value":case"children":break;default:qu(e,t,l,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(null!=a||null!=o))switch(s){case"value":p=a;break;case"defaultValue":f=a;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=a)throw Error(i(91));break;default:a!==o&&qu(e,t,s,a,r,o)}return void xt(e,p,f);case"option":for(var m in n)if(p=n[m],n.hasOwnProperty(m)&&null!=p&&!r.hasOwnProperty(m))if("selected"===m)e.selected=!1;else qu(e,t,m,null,r,p);for(c in r)if(p=r[c],f=n[c],r.hasOwnProperty(c)&&p!==f&&(null!=p||null!=f))if("selected"===c)e.selected=p&&"function"!==typeof p&&"symbol"!==typeof p;else qu(e,t,c,p,r,f);return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!r.hasOwnProperty(g)&&qu(e,t,g,null,r,p);for(u in r)if(p=r[u],f=n[u],r.hasOwnProperty(u)&&p!==f&&(null!=p||null!=f))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(i(137,t));break;default:qu(e,t,u,p,r,f)}return;default:if(jt(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&void 0!==p&&!r.hasOwnProperty(y)&&Hu(e,t,y,void 0,r,p);for(d in r)p=r[d],f=n[d],!r.hasOwnProperty(d)||p===f||void 0===p&&void 0===f||Hu(e,t,d,p,r,f);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&null!=p&&!r.hasOwnProperty(v)&&qu(e,t,v,null,r,p);for(h in r)p=r[h],f=n[h],!r.hasOwnProperty(h)||p===f||null==p&&null==f||qu(e,t,h,p,r,f)}(r,e.type,n,t),r[ze]=t}catch(a){ru(e,e.return,a)}}function $s(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag||4===e.tag}function Xs(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||$s(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&27!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Qs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Wu));else if(4!==r&&27!==r&&null!==(e=e.child))for(Qs(e,t,n),e=e.sibling;null!==e;)Qs(e,t,n),e=e.sibling}function Gs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&27!==r&&null!==(e=e.child))for(Gs(e,t,n),e=e.sibling;null!==e;)Gs(e,t,n),e=e.sibling}var Js=!1,Zs=!1,el=!1,tl="function"===typeof WeakSet?WeakSet:Set,nl=null,rl=!1;function al(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:yl(e,n),4&r&&Bs(5,n);break;case 1:if(yl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(s){ru(n,n.return,s)}else{var a=Fi(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){ru(n,n.return,l)}}64&r&&Vs(n),512&r&&qs(n,n.return);break;case 3:if(yl(e,n),64&r&&null!==(r=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:e=n.child.stateNode}try{zs(r,e)}catch(s){ru(n,n.return,s)}}break;case 26:yl(e,n),512&r&&qs(n,n.return);break;case 27:case 5:yl(e,n),null===t&&4&r&&Ys(n),512&r&&qs(n,n.return);break;case 12:default:yl(e,n);break;case 13:yl(e,n),4&r&&ul(e,n);break;case 22:if(!(a=null!==n.memoizedState||Js)){t=null!==t&&null!==t.memoizedState||Zs;var o=Js,i=Zs;Js=a,(Zs=t)&&!i?bl(e,n,0!==(8772&n.subtreeFlags)):yl(e,n),Js=o,Zs=i}512&r&&("manual"===n.memoizedProps.mode?qs(n,n.return):Hs(n,n.return))}}function ol(e){var t=e.alternate;null!==t&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&Ye(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var il=null,sl=!1;function ll(e,t,n){for(n=n.child;null!==n;)cl(e,t,n),n=n.sibling}function cl(e,t,n){if(ve&&"function"===typeof ve.onCommitFiberUnmount)try{ve.onCommitFiberUnmount(ye,n)}catch(i){}switch(n.tag){case 26:Zs||Hs(n,t),ll(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Zs||Hs(n,t);var r=il,a=sl;for(il=n.stateNode,ll(e,t,n),t=(n=n.stateNode).attributes;t.length;)n.removeAttributeNode(t[0]);Ye(n),il=r,sl=a;break;case 5:Zs||Hs(n,t);case 6:a=il;var o=sl;if(il=null,ll(e,t,n),sl=o,null!==(il=a))if(sl)try{e=il,r=n.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)}catch(s){ru(n,t,s)}else try{il.removeChild(n.stateNode)}catch(s){ru(n,t,s)}break;case 18:null!==il&&(sl?(t=il,n=n.stateNode,8===t.nodeType?od(t.parentNode,n):1===t.nodeType&&od(t,n),mh(t)):od(il,n.stateNode));break;case 4:r=il,a=sl,il=n.stateNode.containerInfo,sl=!0,ll(e,t,n),il=r,sl=a;break;case 0:case 11:case 14:case 15:Zs||Us(2,n,t),Zs||Us(4,n,t),ll(e,t,n);break;case 1:Zs||(Hs(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount&&Ws(n,t,r)),ll(e,t,n);break;case 21:ll(e,t,n);break;case 22:Zs||Hs(n,t),Zs=(r=Zs)||null!==n.memoizedState,ll(e,t,n),Zs=r;break;default:ll(e,t,n)}}function ul(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{mh(e)}catch(n){ru(t,t.return,n)}}function dl(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new tl),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new tl),t;default:throw Error(i(435,e.tag))}}(e);t.forEach(function(t){var r=lu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}function hl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:case 5:il=l.stateNode,sl=!1;break e;case 3:case 4:il=l.stateNode.containerInfo,sl=!0;break e}l=l.return}if(null===il)throw Error(i(160));cl(o,s,a),il=null,sl=!1,null!==(o=a.alternate)&&(o.return=null),a.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)fl(t,e),t=t.sibling}var pl=null;function fl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:hl(t,e),ml(e),4&r&&(Us(3,e,e.return),Bs(3,e),Us(5,e,e.return));break;case 1:hl(t,e),ml(e),512&r&&(Zs||null===n||Hs(n,n.return)),64&r&&Js&&(null!==(e=e.updateQueue)&&(null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r))));break;case 26:var a=pl;if(hl(t,e),ml(e),512&r&&(Zs||null===n||Hs(n,n.return)),4&r){var o=null!==n?n.memoizedState:null;if(r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(r){case"title":(!(o=a.getElementsByTagName("title")[0])||o[He]||o[Ie]||"http://www.w3.org/2000/svg"===o.namespaceURI||o.hasAttribute("itemprop"))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector("head > title"))),Yu(o,r,n),o[Ie]=e,Ge(o),r=o;break e;case"link":var s=Cd("link","href",a).get(r+(n.href||""));if(s)for(var l=0;l<s.length;l++)if((o=s[l]).getAttribute("href")===(null==n.href?null:n.href)&&o.getAttribute("rel")===(null==n.rel?null:n.rel)&&o.getAttribute("title")===(null==n.title?null:n.title)&&o.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){s.splice(l,1);break t}Yu(o=a.createElement(r),r,n),a.head.appendChild(o);break;case"meta":if(s=Cd("meta","content",a).get(r+(n.content||"")))for(l=0;l<s.length;l++)if((o=s[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&o.getAttribute("name")===(null==n.name?null:n.name)&&o.getAttribute("property")===(null==n.property?null:n.property)&&o.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&o.getAttribute("charset")===(null==n.charSet?null:n.charSet)){s.splice(l,1);break t}Yu(o=a.createElement(r),r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[Ie]=e,Ge(o),r=o}e.stateNode=r}else Td(a,e.type,e.stateNode);else e.stateNode=kd(a,r,e.memoizedProps);else o!==r?(null===o?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):o.count--,null===r?Td(a,e.type,e.stateNode):kd(a,r,e.memoizedProps)):null===r&&null!==e.stateNode&&Ks(e,e.memoizedProps,n.memoizedProps)}break;case 27:if(4&r&&null===e.alternate){a=e.stateNode,o=e.memoizedProps;try{for(var c=a.firstChild;c;){var u=c.nextSibling,d=c.nodeName;c[He]||"HEAD"===d||"BODY"===d||"SCRIPT"===d||"STYLE"===d||"LINK"===d&&"stylesheet"===c.rel.toLowerCase()||a.removeChild(c),c=u}for(var h=e.type,p=a.attributes;p.length;)a.removeAttributeNode(p[0]);Yu(a,h,o),a[Ie]=e,a[ze]=o}catch(m){ru(e,e.return,m)}}case 5:if(hl(t,e),ml(e),512&r&&(Zs||null===n||Hs(n,n.return)),32&e.flags){a=e.stateNode;try{kt(a,"")}catch(m){ru(e,e.return,m)}}4&r&&null!=e.stateNode&&Ks(e,a=e.memoizedProps,null!==n?n.memoizedProps:a),1024&r&&(el=!0);break;case 6:if(hl(t,e),ml(e),4&r){if(null===e.stateNode)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(m){ru(e,e.return,m)}}break;case 3:if(jd=null,a=pl,pl=hd(t.containerInfo),hl(t,e),pl=a,ml(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{mh(t.containerInfo)}catch(m){ru(e,e.return,m)}el&&(el=!1,gl(e));break;case 4:r=pl,pl=hd(e.stateNode.containerInfo),hl(t,e),ml(e),pl=r;break;case 12:hl(t,e),ml(e);break;case 13:hl(t,e),ml(e),8192&e.child.flags&&null!==e.memoizedState!==(null!==n&&null!==n.memoizedState)&&(bc=le()),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,dl(e,r)));break;case 22:if(512&r&&(Zs||null===n||Hs(n,n.return)),c=null!==e.memoizedState,u=null!==n&&null!==n.memoizedState,Js=(d=Js)||c,Zs=(h=Zs)||u,hl(t,e),Zs=h,Js=d,ml(e),(t=e.stateNode)._current=e,t._visibility&=-3,t._visibility|=2&t._pendingVisibility,8192&r&&(t._visibility=c?-2&t._visibility:1|t._visibility,c&&(t=Js||Zs,null===n||u||t||vl(e)),null===e.memoizedProps||"manual"!==e.memoizedProps.mode))e:for(n=null,t=e;;){if(5===t.tag||26===t.tag||27===t.tag){if(null===n){u=n=t;try{if(a=u.stateNode,c)"function"===typeof(o=a.style).setProperty?o.setProperty("display","none","important"):o.display="none";else{s=u.stateNode;var f=void 0!==(l=u.memoizedProps.style)&&null!==l&&l.hasOwnProperty("display")?l.display:null;s.style.display=null==f||"boolean"===typeof f?"":(""+f).trim()}}catch(m){ru(u,u.return,m)}}}else if(6===t.tag){if(null===n){u=t;try{u.stateNode.nodeValue=c?"":u.memoizedProps}catch(m){ru(u,u.return,m)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&(null!==(r=e.updateQueue)&&(null!==(n=r.retryQueue)&&(r.retryQueue=null,dl(e,n))));break;case 19:hl(t,e),ml(e),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,dl(e,r)));break;case 21:break;default:hl(t,e),ml(e)}}function ml(e){var t=e.flags;if(2&t){try{if(27!==e.tag){e:{for(var n=e.return;null!==n;){if($s(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 27:var a=r.stateNode;Gs(e,Xs(e),a);break;case 5:var o=r.stateNode;32&r.flags&&(kt(o,""),r.flags&=-33),Gs(e,Xs(e),o);break;case 3:case 4:var s=r.stateNode.containerInfo;Qs(e,Xs(e),s);break;default:throw Error(i(161))}}}catch(l){ru(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function gl(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;gl(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function yl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)al(e,t.alternate,t),t=t.sibling}function vl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Us(4,t,t.return),vl(t);break;case 1:Hs(t,t.return);var n=t.stateNode;"function"===typeof n.componentWillUnmount&&Ws(t,t.return,n),vl(t);break;case 26:case 27:case 5:Hs(t,t.return),vl(t);break;case 22:Hs(t,t.return),null===t.memoizedState&&vl(t);break;default:vl(t)}e=e.sibling}}function bl(e,t,n){for(n=n&&0!==(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,a=e,o=t,i=o.flags;switch(o.tag){case 0:case 11:case 15:bl(a,o,n),Bs(4,o);break;case 1:if(bl(a,o,n),"function"===typeof(a=(r=o).stateNode).componentDidMount)try{a.componentDidMount()}catch(c){ru(r,r.return,c)}if(null!==(a=(r=o).updateQueue)){var s=r.stateNode;try{var l=a.shared.hiddenCallbacks;if(null!==l)for(a.shared.hiddenCallbacks=null,a=0;a<l.length;a++)Is(l[a],s)}catch(c){ru(r,r.return,c)}}n&&64&i&&Vs(o),qs(o,o.return);break;case 26:case 27:case 5:bl(a,o,n),n&&null===r&&4&i&&Ys(o),qs(o,o.return);break;case 12:default:bl(a,o,n);break;case 13:bl(a,o,n),n&&4&i&&ul(a,o);break;case 22:null===o.memoizedState&&bl(a,o,n),qs(o,o.return)}t=t.sibling}}function xl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Ua(n))}function wl(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ua(e))}function kl(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)Sl(e,t,n,r),t=t.sibling}function Sl(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:kl(e,t,n,r),2048&a&&Bs(9,t);break;case 3:kl(e,t,n,r),2048&a&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ua(e)));break;case 12:if(2048&a){kl(e,t,n,r),e=t.stateNode;try{var o=t.memoizedProps,i=o.id,s=o.onPostCommit;"function"===typeof s&&s(i,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(l){ru(t,t.return,l)}}else kl(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,null!==t.memoizedState?4&o._visibility?kl(e,t,n,r):Nl(e,t):4&o._visibility?kl(e,t,n,r):(o._visibility|=4,El(e,t,n,r,0!==(10256&t.subtreeFlags))),2048&a&&xl(t.alternate,t);break;case 24:kl(e,t,n,r),2048&a&&wl(t.alternate,t);break;default:kl(e,t,n,r)}}function El(e,t,n,r,a){for(a=a&&0!==(10256&t.subtreeFlags),t=t.child;null!==t;){var o=e,i=t,s=n,l=r,c=i.flags;switch(i.tag){case 0:case 11:case 15:El(o,i,s,l,a),Bs(8,i);break;case 23:break;case 22:var u=i.stateNode;null!==i.memoizedState?4&u._visibility?El(o,i,s,l,a):Nl(o,i):(u._visibility|=4,El(o,i,s,l,a)),a&&2048&c&&xl(i.alternate,i);break;case 24:El(o,i,s,l,a),a&&2048&c&&wl(i.alternate,i);break;default:El(o,i,s,l,a)}t=t.sibling}}function Nl(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,a=r.flags;switch(r.tag){case 22:Nl(n,r),2048&a&&xl(r.alternate,r);break;case 24:Nl(n,r),2048&a&&wl(r.alternate,r);break;default:Nl(n,r)}t=t.sibling}}var jl=8192;function Cl(e){if(e.subtreeFlags&jl)for(e=e.child;null!==e;)Tl(e),e=e.sibling}function Tl(e){switch(e.tag){case 26:Cl(e),e.flags&jl&&null!==e.memoizedState&&function(e,t,n){if(null===Ad)throw Error(i(475));var r=Ad;
2if("stylesheet"===t.type&&("string"!==typeof n.media||!1!==matchMedia(n.media).matches)&&0===(4&t.state.loading)){if(null===t.instance){var a=yd(n.href),o=e.querySelector(vd(a));if(o)return null!==(e=o._p)&&"object"===typeof e&&"function"===typeof e.then&&(r.count++,r=Od.bind(r),e.then(r,r)),t.state.loading|=4,t.instance=o,void Ge(o);o=e.ownerDocument||e,n=bd(n),(a=ud.get(a))&&Ed(n,a),Ge(o=o.createElement("link"));var s=o;s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Yu(o,"link",n),t.instance=o}null===r.stylesheets&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&0===(3&t.state.loading)&&(r.count++,t=Od.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}(pl,e.memoizedState,e.memoizedProps);break;case 5:default:Cl(e);break;case 3:case 4:var t=pl;pl=hd(e.stateNode.containerInfo),Cl(e),pl=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=jl,jl=16777216,Cl(e),jl=t):Cl(e))}}function Pl(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function Al(e){var t=e.deletions;if(0!==(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];nl=r,Fl(r,e)}Pl(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)Rl(e),e=e.sibling}function Rl(e){switch(e.tag){case 0:case 11:case 15:Al(e),2048&e.flags&&Us(9,e,e.return);break;case 3:case 12:default:Al(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&4&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-5,Ol(e)):Al(e)}}function Ol(e){var t=e.deletions;if(0!==(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];nl=r,Fl(r,e)}Pl(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:Us(8,t,t.return),Ol(t);break;case 22:4&(n=t.stateNode)._visibility&&(n._visibility&=-5,Ol(t));break;default:Ol(t)}
2e=e.sibling}}function Fl(e,t){for(;null!==nl;){var n=nl;switch(n.tag){case 0:case 11:case 15:Us(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Ua(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,nl=r;else e:for(n=e;null!==nl;){var a=(r=nl).sibling,o=r.return;if(ol(r),r===n){nl=null;break e}if(null!==a){a.return=o,nl=a;break e}nl=o}}}function Ll(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dl(e,t,n,r){return new Ll(e,t,n,r)}function Ml(e){return!(!(e=e.prototype)||!e.isReactComponent)}function _l(e,t){var n=e.alternate;return null===n?((n=Dl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=31457280&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Il(e,t){e.flags&=31457282;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function zl(e,t,n,r,a,o){var s=0;if(r=e,"function"===typeof e)Ml(e)&&(s=1);else if("string"===typeof e)s=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!==typeof t.precedence||"string"!==typeof t.href||""===t.href)break;return!0;case"link":if("string"!==typeof t.rel||"string"!==typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"===typeof t.precedence&&null==e);case"script":if(t.async&&"function"!==typeof t.async&&"symbol"!==typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"===typeof t.src)return!0}return!1}(e,n,X.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case d:return Bl(n.children,a,o,t);case h:s=8,a|=24;break;case p:return(e=Dl(12,n,t,2|a)).elementType=p,e.lanes=o,e;case v:return(e=Dl(13,n,t,a)).elementType=v,e.lanes=o,e;case b:return(e=Dl(19,n,t,a)).elementType=b,e.lanes=o,e;case k:return Ul(n,a,o,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case f:case g:s=10;break e;case m:s=9;break e;case y:s=11;break e;case x:s=14;break e;case w:s=16,r=null;break e}s=29,n=Error(i(130,null===e?"null":typeof e,"")),r=null}return(t=Dl(s,n,t,a)).elementType=e,t.type=r,t.lanes=o,t}function Bl(e,t,n,r){return(e=Dl(7,e,r,t)).lanes=n,e}function Ul(e,t,n,r){(e=Dl(22,e,r,t)).elementType=k,e.lanes=n;var a={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var e=a._current;if(null===e)throw Error(i(456));if(0===(2&a._pendingVisibility)){var t=Pr(e,2);null!==t&&(a._pendingVisibility|=2,Oc(t,e,2))}},attach:function(){var e=a._current;if(null===e)throw Error(i(456));if(0!==(2&a._pendingVisibility)){var t=Pr(e,2);null!==t&&(a._pendingVisibility&=-3,Oc(t,e,2))}}};return e.stateNode=a,e}function Vl(e,t,n){return(e=Dl(6,e,null,t)).lanes=n,e}function Wl(e,t,n){return(t=Dl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ql(e){e.flags|=4}function Hl(e,t){if("stylesheet"!==t.type||0!==(4&t.state.loading))e.flags&=-16777217;else if(e.flags|=16777216,!Pd(t)){if(null!==(t=Ta.current)&&((4194176&rc)===rc?null!==Pa:(62914560&rc)!==rc&&0===(536870912&rc)||t!==Pa))throw ha=la,sa;e.flags|=8192}}function Yl(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Ae():536870912,e.lanes|=t,mc|=t)}
vendor: 16,960 bytes, line 2
2function Kl(e,t){if(!Qr)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function $l(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=31457280&a.subtreeFlags,r|=31457280&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Xl(e,t,n){var r=t.pendingProps;switch(Kr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return $l(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),bs(za),ee(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(ra(t)?ql(t):null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==Gr&&(Lc(Gr),Gr=null))),$l(t),null;case 26:return n=t.memoizedState,null===e?(ql(t),null!==n?($l(t),Hl(t,n)):($l(t),t.flags&=-16777217)):n?n!==e.memoizedState?(ql(t),$l(t),Hl(t,n)):($l(t),t.flags&=-16777217):(e.memoizedProps!==r&&ql(t),$l(t),t.flags&=-16777217),null;case 27:ne(t),n=G.current;var a=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==r&&ql(t);else{if(!r){if(null===t.stateNode)throw Error(i(166));return $l(t),null}e=X.current,ra(t)?ta(t):(e=cd(a,r,n),t.stateNode=e,ql(t))}return $l(t),null;case 5:if(ne(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&ql(t);else{if(!r){if(null===t.stateNode)throw Error(i(166));return $l(t),null}if(e=X.current,ra(t))ta(t);else{switch(a=Xu(G.current),e){case 1:e=a.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=a.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=a.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=a.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":(e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"===typeof r.is?a.createElement("select",{is:r.is}):a.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"===typeof r.is?a.createElement(n,{is:r.is}):a.createElement(n)}}e[Ie]=t,e[ze]=r;e:for(a=t.child;null!==a;){if(5===a.tag||6===a.tag)e.appendChild(a.stateNode);else if(4!==a.tag&&27!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;null===a.sibling;){if(null===a.return||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=e;e:switch(Yu(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&ql(t)}}return $l(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&ql(t);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));if(e=G.current,ra(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(a=$r))switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Ie]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||Vu(e.nodeValue,n)))||ea(t)}else(e=Xu(e).createTextNode(r))[Ie]=t,t.stateNode=e}return $l(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(a=ra(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[Ie]=t}else aa(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;$l(t),a=!1}else null!==Gr&&(Lc(Gr),Gr=null),a=!0;if(!a)return 256&t.flags?(Fa(t),t):(Fa(t),null)}if(Fa(t),0!==(128&t.flags))return t.lanes=n,t;if(n=null!==r,e=null!==e&&null!==e.memoizedState,n){a=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(a=r.alternate.memoizedState.cachePool.pool);var o=null;null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),Yl(t,t.updateQueue),$l(t),null;case 4:return ee(),null===e&&Ou(t.stateNode.containerInfo),$l(t),null;case 10:return bs(t.type),$l(t),null;case 19:if(K(La),null===(a=t.memoizedState))return $l(t),null;if(r=0!==(128&t.flags),null===(o=a.rendering))if(r)Kl(a,!1);else{if(0!==uc||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(o=Da(e))){for(t.flags|=128,Kl(a,!1),e=o.updateQueue,t.updateQueue=e,Yl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Il(n,e),n=n.sibling;return $(La,1&La.current|2),t.child}e=e.sibling}null!==a.tail&&le()>xc&&(t.flags|=128,r=!0,Kl(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Da(o))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Yl(t,e),Kl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!o.alternate&&!Qr)return $l(t),null}else 2*le()-a.renderingStartTime>xc&&536870912!==n&&(t.flags|=128,r=!0,Kl(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=a.last)?e.sibling=o:t.child=o,a.last=o)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=le(),t.sibling=null,e=La.current,$(La,r?1&e|2:1&e),t):($l(t),null);case 22:case 23:return Fa(t),Ca(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?0!==(536870912&n)&&0===(128&t.flags)&&($l(t),6&t.subtreeFlags&&(t.flags|=8192)):$l(t),null!==(n=t.updateQueue)&&Yl(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&K($a),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),bs(za),$l(t),null;case 25:return null}throw Error(i(156,t.tag))}function Ql(e,t){switch(Kr(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return bs(za),ee(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return ne(t),null;case 13:if(Fa(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));aa()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return K(La),null;case 4:return ee(),null;case 10:return bs(t.type),null;case 22:case 23:return Fa(t),Ca(),null!==e&&K($a),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return bs(za),null;default:return null}}function Gl(e,t){switch(Kr(t),t.tag){case 3:bs(za),ee();break;case 26:case 27:case 5:ne(t);break;case 4:ee();break;case 13:Fa(t);break;case 19:K(La);break;case 10:bs(t.type);break;case 22:case 23:Fa(t),Ca(),null!==e&&K($a);break;case 24:bs(za)}}var Jl={getCacheForType:function(e){var t=Ns(za),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},Zl="function"===typeof WeakMap?WeakMap:Map,ec=0,tc=null,nc=null,rc=0,ac=0,oc=null,ic=!1,sc=!1,lc=!1,cc=0,uc=0,dc=0,hc=0,pc=0,fc=0,mc=0,gc=null,yc=null,vc=!1,bc=0,xc=1/0,wc=null,kc=null,Sc=!1,Ec=null,Nc=0,jc=0,Cc=null,Tc=0,Pc=null;function Ac(){if(0!==(2&ec)&&0!==rc)return rc&-rc;if(null!==A.T){return 0!==qa?qa:wu()}return Me()}function Rc(){0===fc&&(fc=0===(536870912&rc)||Qr?Pe():536870912);var e=Ta.current;return null!==e&&(e.flags|=32),fc}function Oc(e,t,n){(e===tc&&2===ac||null!==e.cancelPendingCommit)&&(Bc(e,0),_c(e,rc,fc,!1)),Oe(e,n),0!==(2&ec)&&e===tc||(e===tc&&(0===(2&ec)&&(hc|=n),4===uc&&_c(e,rc,fc,!1)),mu(e))}function Fc(e,t,n){if(0!==(6&ec))throw Error(i(327));for(var r=!n&&0===(60&t)&&0===(t&e.expiredLanes)||Ce(e,t),a=r?function(e,t){var n=ec;ec|=2;var r=Vc(),a=Wc();tc!==e||rc!==t?(wc=null,xc=le()+500,Bc(e,t)):sc=Ce(e,t);e:for(;;)try{if(0!==ac&&null!==nc){t=nc;var o=oc;t:switch(ac){case 1:ac=0,oc=null,Qc(e,t,o,1);break;case 2:if(ca(o)){ac=0,oc=null,Xc(t);break}t=function(){2===ac&&tc===e&&(ac=7),mu(e)},o.then(t,t);break e;case 3:ac=7;break e;case 4:ac=5;break e;case 7:ca(o)?(ac=0,oc=null,Xc(t)):(ac=0,oc=null,Qc(e,t,o,7));break;case 5:var s=null;switch(nc.tag){case 26:s=nc.memoizedState;case 5:case 27:var l=nc;if(!s||Pd(s)){ac=0,oc=null;var c=l.sibling;if(null!==c)nc=c;else{var u=l.return;null!==u?(nc=u,Gc(u)):nc=null}break t}}ac=0,oc=null,Qc(e,t,o,5);break;case 6:ac=0,oc=null,Qc(e,t,o,6);break;case 8:zc(),uc=6;break e;default:throw Error(i(462))}}Kc();break}catch(d){Uc(e,d)}return ys=gs=null,A.H=r,A.A=a,ec=n,null!==nc?0:(tc=null,rc=0,jr(),uc)}(e,t):Hc(e,t,!0),o=r;;){if(0===a){sc&&!r&&_c(e,t,0,!1);break}if(6===a)_c(e,t,0,!ic);else{if(n=e.current.alternate,o&&!Mc(n)){a=Hc(e,t,!1),o=!1;continue}if(2===a){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=0!==(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;a=gc;var c=l.current.memoizedState.isDehydrated;if(c&&(Bc(l,s).flags|=256),2!==(s=Hc(l,s,!1))){if(lc&&!c){l.errorRecoveryDisabledLanes|=o,hc|=o,a=4;break e}o=yc,yc=a,null!==o&&Lc(o)}a=s}if(o=!1,2!==a)continue}}if(1===a){Bc(e,0),_c(e,t,0,!0);break}e:{switch(r=e,a){case 0:case 1:throw Error(i(345));case 4:if((4194176&t)===t){_c(r,t,fc,!ic);break e}break;case 2:yc=null;break;case 3:case 5:break;default:throw Error(i(329))}if(r.finishedWork=n,r.finishedLanes=t,(62914560&t)===t&&10<(o=bc+300-le())){if(_c(r,t,fc,!ic),0!==je(r,0))break e;r.timeoutHandle=ed(Dc.bind(null,r,n,yc,wc,vc,t,fc,hc,mc,ic,2,-0,0),o)}else Dc(r,n,yc,wc,vc,t,fc,hc,mc,ic,0,-0,0)}}break}mu(e)}function Lc(e){null===yc?yc=e:yc.push.apply(yc,e)}function Dc(e,t,n,r,a,o,s,l,c,u,d,h,p){var f=t.subtreeFlags;if((8192&f||16785408===(16785408&f))&&(Ad={stylesheets:null,count:0,unsuspend:Rd},Tl(t),null!==(t=function(){if(null===Ad)throw Error(i(475));var e=Ad;return e.stylesheets&&0===e.count&&Ld(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Ld(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}())))return e.cancelPendingCommit=t(Zc.bind(null,e,n,r,a,s,l,c,1,h,p)),void _c(e,o,s,!u);Zc(e,n,r,a,s,l,c,d,h,p)}function Mc(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!$n(o(),a))return!1}catch(i){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function _c(e,t,n,r){t&=~pc,t&=~hc,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var o=31-xe(a),i=1<<o;r[o]=-1,a&=~i}0!==n&&Fe(e,n,t)}function Ic(){return 0!==(6&ec)||(gu(0,!1),!1)}function zc(){if(null!==nc){if(0===ac)var e=nc.return;else ys=gs=null,vo(e=nc),fa=null,ma=0,e=nc;for(;null!==e;)Gl(e.alternate,e),e=e.return;nc=null}}function Bc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,td(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),zc(),tc=e,nc=n=_l(e.current,null),rc=t,ac=0,oc=null,ic=!1,sc=Ce(e,t),lc=!1,mc=fc=pc=hc=dc=uc=0,yc=gc=null,vc=!1,0!==(8&t)&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var a=31-xe(r),o=1<<a;t|=e[a],r&=~o}return cc=t,jr(),n}function Uc(e,t){Za=null,A.H=Ni,t===ia?(t=pa(),ac=3):t===sa?(t=pa(),ac=4):ac=t===Wi?8:null!==t&&"object"===typeof t&&"function"===typeof t.then?6:1,oc=t,null===nc&&(uc=1,Ii(e,Lr(t,e.current)))}function Vc(){var e=A.H;return A.H=Ni,null===e?Ni:e}function Wc(){var e=A.A;return A.A=Jl,e}function qc(){uc=4,ic||(4194176&rc)!==rc&&null!==Ta.current||(sc=!0),0===(134217727&dc)&&0===(134217727&hc)||null===tc||_c(tc,rc,fc,!1)}function Hc(e,t,n){var r=ec;ec|=2;var a=Vc(),o=Wc();tc===e&&rc===t||(wc=null,Bc(e,t)),t=!1;var i=uc;e:for(;;)try{if(0!==ac&&null!==nc){var s=nc,l=oc;switch(ac){case 8:zc(),i=6;break e;case 3:case 2:case 6:null===Ta.current&&(t=!0);var c=ac;if(ac=0,oc=null,Qc(e,s,l,c),n&&sc){i=0;break e}break;default:c=ac,ac=0,oc=null,Qc(e,s,l,c)}}Yc(),i=uc;break}catch(u){Uc(e,u)}return t&&e.shellSuspendCounter++,ys=gs=null,ec=r,A.H=a,A.A=o,null===nc&&(tc=null,rc=0,jr()),i}function Yc(){for(;null!==nc;)$c(nc)}function Kc(){for(;null!==nc&&!ie();)$c(nc)}function $c(e){var t=fs(e.alternate,e,cc);e.memoizedProps=e.pendingProps,null===t?Gc(e):nc=t}function Xc(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Zi(n,t,t.pendingProps,t.type,void 0,rc);break;case 11:t=Zi(n,t,t.pendingProps,t.type.render,t.ref,rc);break;case 5:vo(t);default:Gl(n,t),t=fs(n,t=nc=Il(t,cc),cc)}e.memoizedProps=e.pendingProps,null===t?Gc(e):nc=t}function Qc(e,t,n,r){ys=gs=null,vo(t),fa=null,ma=0;var a=t.return;try{if(function(e,t,n,r,a){if(n.flags|=32768,null!==r&&"object"===typeof r&&"function"===typeof r.then){if(null!==(t=n.alternate)&&ks(t,n,a,!0),null!==(n=Ta.current)){switch(n.tag){case 13:return null===Pa?qc():null===n.alternate&&0===uc&&(uc=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===la?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),au(e,r,a)),!1;case 22:return n.flags|=65536,r===la?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),au(e,r,a)),!1}throw Error(i(435,n.tag))}return au(e,r,a),qc(),!1}if(Qr)return null!==(t=Ta.current)?(0===(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Zr&&oa(Lr(e=Error(i(422),{cause:r}),n))):(r!==Zr&&oa(Lr(t=Error(i(423),{cause:r}),n)),(e=e.current.alternate).flags|=65536,a&=-a,e.lanes|=a,r=Lr(r,n),Ls(e,a=Bi(e.stateNode,r,a)),4!==uc&&(uc=2)),!1;var o=Error(i(520),{cause:r});if(o=Lr(o,n),null===gc?gc=[o]:gc.push(o),4!==uc&&(uc=2),null===t)return!0;r=Lr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,Ls(n,e=Bi(n.stateNode,r,e)),!1;case 1:if(t=n.type,o=n.stateNode,0===(128&n.flags)&&("function"===typeof t.getDerivedStateFromError||null!==o&&"function"===typeof o.componentDidCatch&&(null===kc||!kc.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,Vi(a=Ui(a),e,n,r),Ls(n,a),!1}n=n.return}while(null!==n);return!1}(e,a,t,n,rc))return uc=1,Ii(e,Lr(n,e.current)),void(nc=null)}catch(o){if(null!==a)throw nc=a,o;return uc=1,Ii(e,Lr(n,e.current)),void(nc=null)}32768&t.flags?(Qr||1===r?e=!0:sc||0!==(536870912&rc)?e=!1:(ic=e=!0,(2===r||3===r||6===r)&&(null!==(r=Ta.current)&&13===r.tag&&(r.flags|=16384))),Jc(t,e)):Gc(t)}function Gc(e){var t=e;do{if(0!==(32768&t.flags))return void Jc(t,ic);e=t.return;var n=Xl(t.alternate,t,cc);if(null!==n)return void(nc=n);if(null!==(t=t.sibling))return void(nc=t);nc=t=e}while(null!==t);0===uc&&(uc=5)}function Jc(e,t){do{var n=Ql(e.alternate,e);if(null!==n)return n.flags&=32767,void(nc=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(nc=e);nc=e=n}while(null!==e);uc=6,nc=null}function Zc(e,t,n,r,a,o,s,l,c,u){var d=A.T,h=V.p;try{V.p=2,A.T=null,function(e,t,n,r,a,o,s,l){do{tu()}while(null!==Ec);if(0!==(6&ec))throw Error(i(327));var c=e.finishedWork;if(r=e.finishedLanes,null===c)return null;if(e.finishedWork=null,e.finishedLanes=0,c===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var u=c.lanes|c.childLanes;if(function(e,t,n,r,a,o){var i=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,c=e.hiddenUpdates;for(n=i&~n;0<n;){var u=31-xe(n),d=1<<u;s[u]=0,l[u]=-1;var h=c[u];if(null!==h)for(c[u]=null,u=0;u<h.length;u++){var p=h[u];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Fe(e,r,0),0!==o&&0===a&&0!==e.tag&&(e.suspendedLanes|=o&~(i&~t))}(e,r,u|=Nr,o,s,l),e===tc&&(nc=tc=null,rc=0),0===(10256&c.subtreeFlags)&&0===(10256&c.flags)||Sc||(Sc=!0,jc=u,Cc=n,function(e,t){ae(e,t)}(he,function(){return tu(),null})),n=0!==(15990&c.flags),0!==(15990&c.subtreeFlags)||n?(n=A.T,A.T=null,o=V.p,V.p=2,s=ec,ec|=4,function(e,t){if(e=e.containerInfo,Ku=qd,er(e=Zn(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(g){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,h=e,p=null;t:for(;;){for(var f;h!==n||0!==a&&3!==h.nodeType||(l=s+a),h!==o||0!==r&&3!==h.nodeType||(c=s+r),3===h.nodeType&&(s+=h.nodeValue.length),null!==(f=h.firstChild);)p=h,h=f;for(;;){if(h===e)break t;if(p===n&&++u===a&&(l=s),p===o&&++d===r&&(c=s),null!==(f=h.nextSibling))break;
2p=(h=p).parentNode}h=f}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for($u={focusedElem:e,selectionRange:n},qd=!1,nl=t;null!==nl;)if(e=(t=nl).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,nl=e;else for(;null!==nl;){switch(o=(t=nl).alternate,e=t.flags,t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(0!==(1024&e)&&null!==o){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var m=Fi(n.type,a,(n.elementType,n.type));e=r.getSnapshotBeforeUpdate(m,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(y){ru(n,n.return,y)}}break;case 3:if(0!==(1024&e))if(9===(n=(e=t.stateNode.containerInfo).nodeType))id(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":id(e);break;default:e.textContent=""}break;default:if(0!==(1024&e))throw Error(i(163))}if(null!==(e=t.sibling)){e.return=t.return,nl=e;break}nl=t.return}m=rl,rl=!1}(e,c),fl(c,e),tr($u,e.containerInfo),qd=!!Ku,$u=Ku=null,e.current=c,al(e,c.alternate,c),se(),ec=s,V.p=o,A.T=n):e.current=c,Sc?(Sc=!1,Ec=e,Nc=r):eu(e,u),u=e.pendingLanes,0===u&&(kc=null),function(e){if(ve&&"function"===typeof ve.onCommitFiberRoot)try{ve.onCommitFiberRoot(ye,e,void 0,128===(128&e.current.flags))}catch(t){}}(c.stateNode),mu(e),null!==t)for(a=e.onRecoverableError,c=0;c<t.length;c++)u=t[c],a(u.value,{componentStack:u.stack});0!==(3&Nc)&&tu(),u=e.pendingLanes,0!==(4194218&r)&&0!==(42&u)?e===Pc?Tc++:(Tc=0,Pc=e):Tc=0,gu(0,!1)}(e,t,n,r,h,a,o,s)}finally{A.T=d,V.p=h}}function eu(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Ua(t)))}function tu(){if(null!==Ec){var e=Ec,t=jc;jc=0;var n=De(Nc),r=A.T,a=V.p;try{if(V.p=32>n?32:n,A.T=null,null===Ec)var o=!1;else{n=Cc,Cc=null;var s=Ec,l=Nc;if(Ec=null,Nc=0,0!==(6&ec))throw Error(i(331));var c=ec;if(ec|=4,Rl(s.current),Sl(s,s.current,l,n),ec=c,gu(0,!1),ve&&"function"===typeof ve.onPostCommitFiberRoot)try{ve.onPostCommitFiberRoot(ye,s)}catch(u){}o=!0}return o}finally{V.p=a,A.T=r,eu(e,t)}}return!1}function nu(e,t,n){t=Lr(n,t),null!==(e=Os(e,t=Bi(e.stateNode,t,2),2))&&(Oe(e,2),mu(e))}function ru(e,t,n){if(3===e.tag)nu(e,e,n);else for(;null!==t;){if(3===t.tag){nu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===kc||!kc.has(r))){e=Lr(n,e),null!==(r=Os(t,n=Ui(2),2))&&(Vi(n,r,t,e),Oe(r,2),mu(r));break}}t=t.return}}function au(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Zl;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(lc=!0,a.add(n),e=ou.bind(null,e,t,n),t.then(e,e))}function ou(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,tc===e&&(rc&n)===n&&(4===uc||3===uc&&(62914560&rc)===rc&&300>le()-bc?0===(2&ec)&&Bc(e,0):pc|=n,mc===rc&&(mc=0)),mu(e)}function iu(e,t){0===t&&(t=Ae()),null!==(e=Pr(e,t))&&(Oe(e,t),mu(e))}function su(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),iu(e,n)}function lu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}null!==r&&r.delete(t),iu(e,n)}var cu=null,uu=null,du=!1,hu=!1,pu=!1,fu=0;function mu(e){var t;e!==uu&&null===e.next&&(null===uu?cu=uu=e:uu=uu.next=e),hu=!0,du||(du=!0,t=yu,rd(function(){0!==(6&ec)?ae(ue,t):t()}))}function gu(e,t){if(!pu&&hu){pu=!0;do{for(var n=!1,r=cu;null!==r;){if(!t)if(0!==e){var a=r.pendingLanes;if(0===a)var o=0;else{var i=r.suspendedLanes,s=r.pingedLanes;o=(1<<31-xe(42|e)+1)-1,o=201326677&(o&=a&~(i&~s))?201326677&o|1:o?2|o:0}0!==o&&(n=!0,xu(r,o))}else o=rc,0===(3&(o=je(r,r===tc?o:0)))||Ce(r,o)||(n=!0,xu(r,o));r=r.next}}while(n);pu=!1}}function yu(){hu=du=!1;var e=0;0!==fu&&(function(){var e=window.event;if(e&&"popstate"===e.type)return e!==Zu&&(Zu=e,!0);return Zu=null,!1}()&&(e=fu),fu=0);for(var t=le(),n=null,r=cu;null!==r;){var a=r.next,o=vu(r,t);0===o?(r.next=null,null===n?cu=a:n.next=a,null===a&&(uu=n)):(n=r,(0!==e||0!==(3&o))&&(hu=!0)),r=a}gu(e,!1)}function vu(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=-62914561&e.pendingLanes;0<o;){var i=31-xe(o),s=1<<i,l=a[i];-1===l?0!==(s&n)&&0===(s&r)||(a[i]=Te(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}if(n=rc,n=je(e,e===(t=tc)?n:0),r=e.callbackNode,0===n||e===t&&2===ac||null!==e.cancelPendingCommit)return null!==r&&null!==r&&oe(r),e.callbackNode=null,e.callbackPriority=0;if(0===(3&n)||Ce(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&oe(r),De(n)){case 2:case 8:n=de;break;case 32:default:n=he;break;case 268435456:n=fe}return r=bu.bind(null,e),n=ae(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&oe(r),e.callbackPriority=2,e.callbackNode=null,2}function bu(e,t){var n=e.callbackNode;if(tu()&&e.callbackNode!==n)return null;var r=rc;return 0===(r=je(e,e===tc?r:0))?null:(Fc(e,r,t),vu(e,le()),null!=e.callbackNode&&e.callbackNode===n?bu.bind(null,e):null)}function xu(e,t){if(tu())return null;Fc(e,t,!0)}function wu(){return 0===fu&&(fu=Pe()),fu}function ku(e){return null==e||"symbol"===typeof e||"boolean"===typeof e?null:"function"===typeof e?e:Pt(""+e)}function Su(e,t){var n=t.ownerDocument.createElement("input");
vendor: 6,685 bytes, line 2
2return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Eu=0;Eu<wr.length;Eu++){var Nu=wr[Eu];kr(Nu.toLowerCase(),"on"+(Nu[0].toUpperCase()+Nu.slice(1)))}kr(pr,"onAnimationEnd"),kr(fr,"onAnimationIteration"),kr(mr,"onAnimationStart"),kr("dblclick","onDoubleClick"),kr("focusin","onFocus"),kr("focusout","onBlur"),kr(gr,"onTransitionRun"),kr(yr,"onTransitionStart"),kr(vr,"onTransitionCancel"),kr(br,"onTransitionEnd"),tt("onMouseEnter",["mouseout","mouseover"]),tt("onMouseLeave",["mouseout","mouseover"]),tt("onPointerEnter",["pointerout","pointerover"]),tt("onPointerLeave",["pointerout","pointerover"]),et("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),et("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),et("onBeforeInput",["compositionend","keypress","textInput","paste"]),et("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),et("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),et("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ju="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Cu=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ju));function Tu(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&a.isPropagationStopped())break e;o=s,a.currentTarget=c;try{o(a)}catch(u){Li(u)}a.currentTarget=null,o=l}else for(i=0;i<r.length;i++){if(l=(s=r[i]).instance,c=s.currentTarget,s=s.listener,l!==o&&a.isPropagationStopped())break e;o=s,a.currentTarget=c;try{o(a)}catch(u){Li(u)}a.currentTarget=null,o=l}}}}function Pu(e,t){var n=t[Ue];void 0===n&&(n=t[Ue]=new Set);var r=e+"__bubble";n.has(r)||(Fu(t,e,2,!1),n.add(r))}function Au(e,t,n){var r=0;t&&(r|=4),Fu(n,e,r,t)}var Ru="_reactListening"+Math.random().toString(36).slice(2);function Ou(e){if(!e[Ru]){e[Ru]=!0,Je.forEach(function(t){"selectionchange"!==t&&(Cu.has(t)||Au(t,!1,e),Au(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ru]||(t[Ru]=!0,Au("selectionchange",!1,t))}}function Fu(e,t,n,r){switch(Gd(t)){case 2:var a=Hd;break;case 8:a=Yd;break;default:a=Kd}n=a.bind(null,t,n,e),a=void 0,!It||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Lu(e,t,n,r,a){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var s=r.stateNode.containerInfo;if(s===a||8===s.nodeType&&s.parentNode===a)break;if(4===i)for(i=r.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===a||8===l.nodeType&&l.parentNode===a))return;i=i.return}for(;null!==s;){if(null===(i=Ke(s)))return;if(5===(l=i.tag)||6===l||26===l||27===l){r=o=i;continue e}s=s.parentNode}}r=r.return}Mt(function(){var r=o,a=Rt(n),i=[];e:{var s=xr.get(e);if(void 0!==s){var l=Jt,c=e;switch(e){case"keypress":if(0===qt(n))break e;case"keydown":case"keyup":l=fn;break;case"focusin":c="focus",l=an;break;case"focusout":c="blur",l=an;break;case"beforeblur":case"afterblur":l=an;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=nn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=rn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=gn;break;case pr:case fr:case mr:l=on;break;case br:l=yn;break;case"scroll":case"scrollend":l=en;break;case"wheel":l=vn;break;case"copy":case"cut":case"paste":l=sn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=mn;break;case"toggle":case"beforetoggle":l=bn}var u=0!==(4&t),d=!u&&("scroll"===e||"scrollend"===e),h=u?null!==s?s+"Capture":null:s;u=[];for(var p,f=r;null!==f;){var m=f;if(p=m.stateNode,5!==(m=m.tag)&&26!==m&&27!==m||null===p||null===h||null!=(m=_t(f,h))&&u.push(Du(f,m,p)),d)break;f=f.return}0<u.length&&(s=new l(s,c,null,n,a),i.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===At||!(c=n.relatedTarget||n.fromElement)||!Ke(c)&&!c[Be])&&(l||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?Ke(c):null)&&(d=_(c),u=c.tag,c!==d||5!==u&&27!==u&&6!==u)&&(c=null)):(l=null,c=r),l!==c)){if(u=nn,m="onMouseLeave",h="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(u=mn,m="onPointerLeave",h="onPointerEnter",f="pointer"),d=null==l?s:Xe(l),p=null==c?s:Xe(c),(s=new u(m,f+"leave",l,n,a)).target=d,s.relatedTarget=p,m=null,Ke(a)===r&&((u=new u(h,f+"enter",c,n,a)).target=p,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(h=c,f=0,p=u=l;p;p=_u(p))f++;for(p=0,m=h;m;m=_u(m))p++;for(;0<f-p;)u=_u(u),f--;for(;0<p-f;)h=_u(h),p--;for(;f--;){if(u===h||null!==h&&u===h.alternate)break e;u=_u(u),h=_u(h)}u=null}else u=null;null!==l&&Iu(i,s,l,u,!1),null!==c&&null!==d&&Iu(i,d,c,u,!0)}if("select"===(l=(s=r?Xe(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=_n;else if(Rn(s))if(In)g=Kn;else{g=Hn;var y=qn}else!(l=s.nodeName)||"input"!==l.toLowerCase()||"checkbox"!==s.type&&"radio"!==s.type?r&&jt(r.elementType)&&(g=_n):g=Yn;switch(g&&(g=g(e,r))?On(i,g,n,a):(y&&y(e,s,r),"focusout"===e&&r&&"number"===s.type&&null!=r.memoizedProps.value&&vt(s,"number",s.value)),y=r?Xe(r):window,e){case"focusin":(Rn(y)||"true"===y.contentEditable)&&(rr=y,ar=r,or=null);break;case"focusout":or=ar=rr=null;break;case"mousedown":ir=!0;break;case"contextmenu":case"mouseup":case"dragend":ir=!1,sr(i,n,a);break;case"selectionchange":if(nr)break;case"keydown":case"keyup":sr(i,n,a)}var v;if(wn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Pn?Cn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");
2b&&(En&&"ko"!==n.locale&&(Pn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Pn&&(v=Wt()):(Ut="value"in(Bt=a)?Bt.value:Bt.textContent,Pn=!0)),0<(y=Mu(r,b)).length&&(b=new ln(b,e,null,n,a),i.push({event:b,listeners:y}),v?b.data=v:null!==(v=Tn(n))&&(b.data=v))),(v=Sn?function(e,t){switch(e){case"compositionend":return Tn(t);case"keypress":return 32!==t.which?null:(jn=!0,Nn);case"textInput":return(e=t.data)===Nn&&jn?null:e;default:return null}}(e,n):function(e,t){if(Pn)return"compositionend"===e||!wn&&Cn(e,t)?(e=Wt(),Vt=Ut=Bt=null,Pn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return En&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(b=Mu(r,"onBeforeInput")).length&&(y=new ln("onBeforeInput","beforeinput",null,n,a),i.push({event:y,listeners:b}),y.data=v)),function(e,t,n,r,a){if("submit"===t&&n&&n.stateNode===a){var o=ku((a[ze]||null).action),i=r.submitter;i&&null!==(t=(t=i[ze]||null)?ku(t.formAction):i.getAttribute("formAction"))&&(o=t,i=null);var s=new Jt("action","action",null,r,a);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==fu){var e=i?Su(a,i):new FormData(a);di(n,{pending:!0,data:e,method:a.method,action:o},null,e)}}else"function"===typeof o&&(s.preventDefault(),e=i?Su(a,i):new FormData(a),di(n,{pending:!0,data:e,method:a.method,action:o},o,e))},currentTarget:a}]})}}(i,e,r,n,a)}Tu(i,t)})}function Du(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Mu(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;5!==(a=a.tag)&&26!==a&&27!==a||null===o||(null!=(a=_t(e,n))&&r.unshift(Du(e,a,o)),null!=(a=_t(e,t))&&r.push(Du(e,a,o))),e=e.return}return r}function _u(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Iu(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(s=s.tag,null!==l&&l===r)break;5!==s&&26!==s&&27!==s||null===c||(l=c,a?null!=(c=_t(n,o))&&i.unshift(Du(n,c,l)):a||null!=(c=_t(n,o))&&i.push(Du(n,c,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var zu=/\r\n?/g,Bu=/\u0000|\uFFFD/g;function Uu(e){return("string"===typeof e?e:""+e).replace(zu,"\n").replace(Bu,"")}function Vu(e,t){return t=Uu(t),Uu(e)===t}function Wu(){}function qu(e,t,n,r,a,o){switch(n){case"children":"string"===typeof r?"body"===t||"textarea"===t&&""===r||kt(e,r):("number"===typeof r||"bigint"===typeof r)&&"body"!==t&&kt(e,""+r);break;case"className":st(e,"class",r);break;case"tabIndex":st(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":st(e,n,r);break;case"style":Nt(e,r,o);break;case"data":if("object"!==t){st(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==r||"function"===typeof r||"symbol"===typeof r||"boolean"===typeof r){e.removeAttribute(n);break}r=Pt(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if("function"===typeof r){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"===typeof o&&("formAction"===n?("input"!==t&&qu(e,t,"name",a.name,a,null),qu(e,t,"formEncType",a.formEncType,a,null),qu(e,t,"formMethod",a.formMethod,a,null),qu(e,t,"formTarget",a.formTarget,a,null)):(qu(e,t,"encType",a.encType,a,null),qu(e,t,"method",a.method,a,null),qu(e,t,"target",a.target,a,null))),null==r||"symbol"===typeof r||"boolean"===typeof r){e.removeAttribute(n);break}r=Pt(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&(e.onclick=Wu);break;case"onScroll":null!=r&&Pu("scroll",e);break;case"onScrollEnd":null!=r&&Pu("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!==typeof r||!("__html"in r))throw Error(i(61));if(null!=(n=r.__html)){if(null!=a.children)throw Error(i(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!==typeof r&&"symbol"!==typeof r;break;case"muted":e.muted=r&&"function"!==typeof r&&"symbol"!==typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"===typeof r||"boolean"===typeof r||"symbol"===typeof r){e.removeAttribute("xlink:href");break}n=Pt(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!==typeof r&&"symbol"!==typeof r?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
2ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!==typeof r&&"symbol"!==typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!==typeof r&&"symbol"!==typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!==typeof r&&"symbol"!==typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"===typeof r||"symbol"===typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":Pu("beforetoggle",e),Pu("toggle",e),it(e,"popover",r);break;case"xlinkActuate":lt(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":lt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":lt(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":lt(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":lt(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":lt(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":lt(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":lt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":lt(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":it(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&it(e,n=Ct.get(n)||n,r)}}function Hu(e,t,n,r,a,o){switch(n){case"style":Nt(e,r,o);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!==typeof r||!("__html"in r))throw Error(i(61));if(null!=(n=r.__html)){if(null!=a.children)throw Error(i(60));e.innerHTML=n}}break;case"children":"string"===typeof r?kt(e,r):("number"===typeof r||"bigint"===typeof r)&&kt(e,""+r);break;case"onScroll":null!=r&&Pu("scroll",e);break;case"onScrollEnd":null!=r&&Pu("scrollend",e);break;case"onClick":null!=r&&(e.onclick=Wu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Ze.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),"function"===typeof(o=null!=(o=e[ze]||null)?o[n]:null)&&e.removeEventListener(t,o,a),"function"!==typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):it(e,n,r):("function"!==typeof o&&null!==o&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a)))}}function Yu(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Pu("error",e),Pu("load",e);var r,a=!1,o=!1;for(r in n)if(n.hasOwnProperty(r)){var s=n[r];if(null!=s)switch(r){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:qu(e,t,r,s,n,null)}}return o&&qu(e,t,"srcSet",n.srcSet,n,null),void(a&&qu(e,t,"src",n.src,n,null));case"input":Pu("invalid",e);var l=r=s=o=null,c=null,u=null;for(a in n)if(n.hasOwnProperty(a)){var d=n[a];if(null!=d)switch(a){case"name":o=d;break;case"type":s=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":r=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(i(137,t));break;default:qu(e,t,a,d,n,null)}}return yt(e,r,l,c,u,s,o,!1),void dt(e);case"select":for(o in Pu("invalid",e),a=s=r=null,n)if(n.hasOwnProperty(o)&&null!=(l=n[o]))switch(o){case"value":r=l;break;case"defaultValue":s=l;break;case"multiple":a=l;default:qu(e,t,o,l,n,null)}return t=r,n=s,e.multiple=!!a,void(null!=t?bt(e,!!a,t,!1):null!=n&&bt(e,!!a,n,!0));case"textarea":for(s in Pu("invalid",e),r=o=a=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":a=l;break;case"defaultValue":o=l;break;case"children":r=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(i(91));break;default:qu(e,t,s,l,n,null)}return wt(e,a,o,r),void dt(e);case"option":for(c in n)if(n.hasOwnProperty(c)&&null!=(a=n[c]))if("selected"===c)e.selected=a&&"function"!==typeof a&&"symbol"!==typeof a;else qu(e,t,c,a,n,null);return;
vendor: 4,521 bytes, line 2
2case"dialog":Pu("cancel",e),Pu("close",e);break;case"iframe":case"object":Pu("load",e);break;case"video":case"audio":for(a=0;a<ju.length;a++)Pu(ju[a],e);break;case"image":Pu("error",e),Pu("load",e);break;case"details":Pu("toggle",e);break;case"embed":case"source":case"link":Pu("error",e),Pu("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&null!=(a=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:qu(e,t,u,a,n,null)}return;default:if(jt(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(a=n[d])&&Hu(e,t,d,a,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(a=n[l])&&qu(e,t,l,a,n,null))}var Ku=null,$u=null;function Xu(e){return 9===e.nodeType?e:e.ownerDocument}function Qu(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Gu(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function Ju(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"bigint"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Zu=null;var ed="function"===typeof setTimeout?setTimeout:void 0,td="function"===typeof clearTimeout?clearTimeout:void 0,nd="function"===typeof Promise?Promise:void 0,rd="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof nd?function(e){return nd.resolve(null).then(e).catch(ad)}:ed;function ad(e){setTimeout(function(){throw e})}function od(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void mh(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);mh(t)}function id(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":id(n),Ye(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function sd(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"F!"===t||"F"===t)break;if("/$"===t)return null}}return e}function ld(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}function cd(e,t,n){switch(t=Xu(n),e){case"html":if(!(e=t.documentElement))throw Error(i(452));return e;case"head":if(!(e=t.head))throw Error(i(453));return e;case"body":if(!(e=t.body))throw Error(i(454));return e;default:throw Error(i(451))}}var ud=new Map,dd=new Set;function hd(e){return"function"===typeof e.getRootNode?e.getRootNode():e.ownerDocument}var pd=V.d;V.d={f:function(){var e=pd.f(),t=Ic();return e||t},r:function(e){var t=$e(e);null!==t&&5===t.tag&&"form"===t.type?pi(t):pd.r(e)},D:function(e){pd.D(e),md("dns-prefetch",e,null)},C:function(e,t){pd.C(e,t),md("preconnect",e,t)},L:function(e,t,n){pd.L(e,t,n);var r=fd;if(r&&e&&t){var a='link[rel="preload"][as="'+mt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(a+='[imagesrcset="'+mt(n.imageSrcSet)+'"]',"string"===typeof n.imageSizes&&(a+='[imagesizes="'+mt(n.imageSizes)+'"]')):a+='[href="'+mt(e)+'"]';var o=a;switch(t){case"style":o=yd(e);break;case"script":o=xd(e)}ud.has(o)||(e=R({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),ud.set(o,e),null!==r.querySelector(a)||"style"===t&&r.querySelector(vd(o))||"script"===t&&r.querySelector(wd(o))||(Yu(t=r.createElement("link"),"link",e),Ge(t),r.head.appendChild(t)))}},m:function(e,t){pd.m(e,t);var n=fd;if(n&&e){var r=t&&"string"===typeof t.as?t.as:"script",a='link[rel="modulepreload"][as="'+mt(r)+'"][href="'+mt(e)+'"]',o=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=xd(e)}if(!ud.has(o)&&(e=R({rel:"modulepreload",href:e},t),ud.set(o,e),null===n.querySelector(a))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(wd(o)))return}Yu(r=n.createElement("link"),"link",e),Ge(r),n.head.appendChild(r)}}},X:function(e,t){pd.X(e,t);var n=fd;if(n&&e){var r=Qe(n).hoistableScripts,a=xd(e),o=r.get(a);o||((o=n.querySelector(wd(a)))||(e=R({src:e,async:!0}
vendor: 5,982 bytes, line 2
2,t),(t=ud.get(a))&&Nd(e,t),Ge(o=n.createElement("script")),Yu(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(a,o))}},S:function(e,t,n){pd.S(e,t,n);var r=fd;if(r&&e){var a=Qe(r).hoistableStyles,o=yd(e);t=t||"default";var i=a.get(o);if(!i){var s={loading:0,preload:null};if(i=r.querySelector(vd(o)))s.loading=5;else{e=R({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ud.get(o))&&Ed(e,n);var l=i=r.createElement("link");Ge(l),Yu(l,"link",e),l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Sd(i,t,r)}i={type:"stylesheet",instance:i,count:1,state:s},a.set(o,i)}}},M:function(e,t){pd.M(e,t);var n=fd;if(n&&e){var r=Qe(n).hoistableScripts,a=xd(e),o=r.get(a);o||((o=n.querySelector(wd(a)))||(e=R({src:e,async:!0,type:"module"},t),(t=ud.get(a))&&Nd(e,t),Ge(o=n.createElement("script")),Yu(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(a,o))}}};var fd="undefined"===typeof document?null:document;function md(e,t,n){var r=fd;if(r&&"string"===typeof t&&t){var a=mt(t);a='link[rel="'+e+'"][href="'+a+'"]',"string"===typeof n&&(a+='[crossorigin="'+n+'"]'),dd.has(a)||(dd.add(a),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(a)&&(Yu(t=r.createElement("link"),"link",e),Ge(t),r.head.appendChild(t)))}}function gd(e,t,n,r){var a,o,s,l,c=(c=G.current)?hd(c):null;if(!c)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return"string"===typeof n.precedence&&"string"===typeof n.href?(t=yd(n.href),(r=(n=Qe(c).hoistableStyles).get(t))||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"===typeof n.href&&"string"===typeof n.precedence){e=yd(n.href);var u=Qe(c).hoistableStyles,d=u.get(e);if(d||(c=c.ownerDocument||c,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=c.querySelector(vd(e)))&&!u._p&&(d.instance=u,d.state.loading=5),ud.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},ud.set(e,n),u||(a=c,o=e,s=n,l=d.state,a.querySelector('link[rel="preload"][as="style"]['+o+"]")?l.loading=1:(o=a.createElement("link"),l.preload=o,o.addEventListener("load",function(){return l.loading|=1}),o.addEventListener("error",function(){return l.loading|=2}),Yu(o,"link",s),Ge(o),a.head.appendChild(o))))),t&&null===r)throw Error(i(528,""));return d}if(t&&null!==r)throw Error(i(529,""));return null;case"script":return t=n.async,"string"===typeof(n=n.src)&&t&&"function"!==typeof t&&"symbol"!==typeof t?(t=xd(n),(r=(n=Qe(c).hoistableScripts).get(t))||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function yd(e){return'href="'+mt(e)+'"'}function vd(e){return'link[rel="stylesheet"]['+e+"]"}function bd(e){return R({},e,{"data-precedence":e.precedence,precedence:null})}function xd(e){return'[src="'+mt(e)+'"]'}function wd(e){return"script[async]"+e}function kd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+mt(n.href)+'"]');if(r)return t.instance=r,Ge(r),r;var a=R({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return Ge(r=(e.ownerDocument||e).createElement("style")),Yu(r,"style",a),Sd(r,n.precedence,e),t.instance=r;case"stylesheet":a=yd(n.href);var o=e.querySelector(vd(a));if(o)return t.state.loading|=4,t.instance=o,Ge(o),o;r=bd(n),(a=ud.get(a))&&Ed(r,a),Ge(o=(e.ownerDocument||e).createElement("link"));var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Yu(o,"link",r),t.state.loading|=4,Sd(o,n.precedence,e),t.instance=o;case"script":return o=xd(n.src),(a=e.querySelector(wd(o)))?(t.instance=a,Ge(a),a):(r=n,(a=ud.get(o))&&Nd(r=R({},n),a),Ge(a=(e=e.ownerDocument||e).createElement("script")),Yu(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(i(443,t.type))}else"stylesheet"===t.type&&0===(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,Sd(r,n.precedence,e));return t.instance}function Sd(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,o=a,i=0;i<r.length;i++){var s=r[i];if(s.dataset.precedence===t)o=s;else if(o!==a)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Ed(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function Nd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var jd=null;function Cd(e,t,n){if(null===jd){var r=new Map,a=jd=new Map;a.set(n,r)}else(r=(a=jd).get(n))||(r=new Map,a.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var o=n[a];if(!(o[He]||o[Ie]||"link"===e&&"stylesheet"===o.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==o.namespaceURI){var i=o.getAttribute(t)||"";i=e+i;var s=r.get(i);s?s.push(o):r.set(i,[o])}}return r}function Td(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function Pd(e){return"stylesheet"!==e.type||0!==(3&e.state.loading)}var Ad=null;function Rd(){}function Od(){if(this.count--,0===this.count)if(this.stylesheets)Ld(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var Fd=null;function Ld(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Fd=new Map,t.forEach(Dd,e),Fd=null,Od.call(e))}function Dd(e,t){if(!(4&t.state.loading)){var n=Fd.get(e);
vendor: 5,867 bytes, line 2
2if(n)var r=n.get(null);else{n=new Map,Fd.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<a.length;o++){var i=a[o];"LINK"!==i.nodeName&&"not all"===i.getAttribute("media")||(n.set(i.dataset.precedence,i),r=i)}r&&n.set(null,r)}i=(a=t.instance).getAttribute("data-precedence"),(o=n.get(i)||r)===r&&n.set(null,a),n.set(i,a),this.count++,r=Od.bind(this),a.addEventListener("load",r),a.addEventListener("error",r),o?o.parentNode.insertBefore(a,o.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(a,e.firstChild),t.state.loading|=4}}var Md={$$typeof:g,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function _d(e,t,n,r,a,o,i,s){this.tag=1,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Re(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Re(0),this.hiddenUpdates=Re(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=o,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function Id(e,t,n,r,a,o,i,s,l,c,u,d){return e=new _d(e,t,n,i,s,l,c,d),t=1,!0===o&&(t|=24),o=Dl(3,null,null,t),e.current=o,o.stateNode=e,(t=Ba()).refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:r,isDehydrated:n,cache:t},Ps(o),e}function zd(e){return e?e=Or:Or}function Bd(e,t,n,r,a,o){a=zd(a),null===r.context?r.context=a:r.pendingContext=a,(r=Rs(t)).payload={element:n},null!==(o=void 0===o?null:o)&&(r.callback=o),null!==(n=Os(e,r,t))&&(Oc(n,0,t),Fs(n,e,t))}function Ud(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vd(e,t){Ud(e,t),(e=e.alternate)&&Ud(e,t)}function Wd(e){if(13===e.tag){var t=Pr(e,67108864);null!==t&&Oc(t,0,67108864),Vd(e,67108864)}}var qd=!0;function Hd(e,t,n,r){var a=A.T;A.T=null;var o=V.p;try{V.p=2,Kd(e,t,n,r)}finally{V.p=o,A.T=a}}function Yd(e,t,n,r){var a=A.T;A.T=null;var o=V.p;try{V.p=8,Kd(e,t,n,r)}finally{V.p=o,A.T=a}}function Kd(e,t,n,r){if(qd){var a=$d(r);if(null===a)Lu(e,t,r,Xd,n),ih(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Zd=sh(Zd,e,t,n,r,a),!0;case"dragenter":return eh=sh(eh,e,t,n,r,a),!0;case"mouseover":return th=sh(th,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return nh.set(o,sh(nh.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,rh.set(o,sh(rh.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(ih(e,r),4&t&&-1<oh.indexOf(e)){for(;null!==a;){var o=$e(a);if(null!==o)switch(o.tag){case 3:if((o=o.stateNode).current.memoizedState.isDehydrated){var i=Ne(o.pendingLanes);if(0!==i){var s=o;for(s.pendingLanes|=2,s.entangledLanes|=2;i;){var l=1<<31-xe(i);s.entanglements[1]|=l,i&=~l}mu(o),0===(6&ec)&&(xc=le()+500,gu(0,!1))}}break;case 13:null!==(s=Pr(o,2))&&Oc(s,0,2),Ic(),Vd(o,2)}if(null===(o=$d(r))&&Lu(e,t,r,Xd,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else Lu(e,t,r,null,n)}}function $d(e){return Qd(e=Rt(e))}var Xd=null;function Qd(e){if(Xd=null,null!==(e=Ke(e))){var t=_(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=I(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Xd=e,null}function Gd(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ce()){case ue:return 2;case de:return 8;case he:case pe:return 32;case fe:return 268435456;default:return 32}default:return 32}}var Jd=!1,Zd=null,eh=null,th=null,nh=new Map,rh=new Map,ah=[],oh="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function ih(e,t){switch(e){case"focusin":case"focusout":Zd=null;break;case"dragenter":case"dragleave":eh=null;break;case"mouseover":case"mouseout":th=null;break;case"pointerover":case"pointerout":nh.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rh.delete(t.pointerId)}}function sh(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&(null!==(t=$e(t))&&Wd(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function lh(e){var t=Ke(e.target);if(null!==t){var n=_(t);
2if(null!==n)if(13===(t=n.tag)){if(null!==(t=I(n)))return e.blockedOn=t,void function(e,t){var n=V.p;try{return V.p=e,t()}finally{V.p=n}}(e.priority,function(){if(13===n.tag){var e=Ac(),t=Pr(n,e);null!==t&&Oc(t,0,e),Vd(n,e)}})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function ch(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=$d(e.nativeEvent);if(null!==n)return null!==(t=$e(n))&&Wd(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);At=r,n.target.dispatchEvent(r),At=null,t.shift()}return!0}function uh(e,t,n){ch(e)&&n.delete(t)}function dh(){Jd=!1,null!==Zd&&ch(Zd)&&(Zd=null),null!==eh&&ch(eh)&&(eh=null),null!==th&&ch(th)&&(th=null),nh.forEach(uh),rh.forEach(uh)}function hh(e,t){e.blockedOn===t&&(e.blockedOn=null,Jd||(Jd=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,dh)))}var ph=null;function fh(e){ph!==e&&(ph=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){ph===e&&(ph=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],a=e[t+2];if("function"!==typeof r){if(null===Qd(r||n))continue;break}var o=$e(n);null!==o&&(e.splice(t,3),t-=3,di(o,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function mh(e){function t(t){return hh(t,e)}null!==Zd&&hh(Zd,e),null!==eh&&hh(eh,e),null!==th&&hh(th,e),nh.forEach(t),rh.forEach(t);for(var n=0;n<ah.length;n++){var r=ah[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<ah.length&&null===(n=ah[0]).blockedOn;)lh(n),null===n.blockedOn&&ah.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var a=n[r],o=n[r+1],i=a[ze]||null;if("function"===typeof o)i||fh(n);else if(i){var s=null;if(o&&o.hasAttribute("formAction")){if(a=o,i=o[ze]||null)s=i.formAction;else if(null!==Qd(a))continue}else s=i.action;"function"===typeof s?n[r+1]=s:(n.splice(r,3),r-=3),fh(n)}}}function gh(e){this._internalRoot=e}function yh(e){this._internalRoot=e}yh.prototype.render=gh.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Bd(t.current,Ac(),e,t,null,null)},yh.prototype.unmount=gh.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;0===e.tag&&tu(),Bd(e.current,2,null,e,null,null),Ic(),t[Be]=null}},yh.prototype.unstable_scheduleHydration=function(e){if(e){var t=Me();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ah.length&&0!==t&&t<ah[n].priority;n++);ah.splice(n,0,e),0===n&&lh(e)}};var vh=a.version;if("19.0.0"!==vh)throw Error(i(527,vh,"19.0.0"));V.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=_(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var o=a.alternate;if(null===o){if(null!==(r=a.return)){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return z(a),e;if(o===r)return z(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var s=!1,l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?B(e):null)?null:e.stateNode};var bh={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:A,findFiberByHostInstance:Ke,reconcilerVersion:"19.0.0"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var xh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xh.isDisabled&&xh.supportsFiber)try{ye=xh.inject(bh),ve=xh}catch(kh){}}t.createRoot=function(e,t){if(!s(e))throw Error(i(299));var n=!1,r="",a=Di,o=Mi,l=_i;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(a=t.onUncaughtError),void 0!==t.onCaughtError&&(o=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=Id(e,1,!1,null,0,n,r,a,o,l,0,null),e[Be]=t.current,Ou(8===e.nodeType?e.parentNode:e),new gh(t)},t.hydrateRoot=function(e,t,n){if(!s(e))throw Error(i(299));var r=!1,a="",o=Di,l=Mi,c=_i,u=null;return null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onUncaughtError&&(o=n.onUncaughtError),void 0!==n.onCaughtError&&(l=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&n.unstable_transitionCallbacks,void 0!==n.formState&&(u=n.formState)),(t=Id(e,1,!0,t,0,r,a,o,l,c,0,u)).context=zd(null),n=t.current,(a=Rs(r=Ac())).callback=null,Os(n,a,r),t.current.lanes=r,Oe(t,r),mu(t),e[Be]=t.current,Ou(e),new yh(t)},t.version="19.0.0"},672(e,t,n){"use strict";var r=n(43);function a(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var i={d:{f:o,r:function(){throw Error(a(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},s=Symbol.for("react.portal");var l=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){return"font"===e?"":"string"===typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(a(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:s,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},t.preconnect=function(e,t){"string"===typeof e&&(t?t="string"===typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,i.d.C(e,t))},t.prefetchDNS=function(e){"string"===typeof e&&i.d.D(e)},t.preinit=function(e,t){if("string"===typeof e&&t&&"string"===typeof t.as){var n=t.as,r=c(n,t.crossOrigin),a="string"===typeof t.integrity?t.integrity:void 0,o="string"===typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?i.d.S(e,"string"===typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):"script"===n&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:"string"===typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"===typeof e)if("object"===typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:"string"===typeof t.integrity?t.integrity:void 0,nonce:"string"===typeof t.nonce?t.nonce:void 0})}}else null==t&&i.d.M(e)},t.preload=function(e,t){if("string"===typeof e&&"object"===typeof t&&null!==t&&"string"===typeof t.as){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:"string"===typeof t.integrity?t.integrity:void 0,nonce:"string"===typeof t.nonce?t.nonce:void 0,type:"string"===typeof t.type?t.type:void 0,fetchPriority:"string"===typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"str
2ing"===typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"===typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"===typeof t.imageSizes?t.imageSizes:void 0,media:"string"===typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"===typeof e)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:"string"===typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"===typeof t.integrity?t.integrity:void 0})}else i.d.m(e)},t.requestFormReset=function(e){i.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},t.useFormStatus=function(){return l.H.useHostTransitionStatus()},t.version="19.0.0"},391(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4)},950(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(672)},818(e,t,n){var r=n(715).default;var a=n(43);function o(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var i=o(a);!function(e){if(!e||"undefined"===typeof window)return;const t=document.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t)}('.rfm-marquee-container {\n  overflow-x: hidden;\n  display: flex;\n  flex-direction: row;\n  position: relative;\n  width: var(--width);\n  transform: var(--transform);\n}\n.rfm-marquee-container:hover div {\n  animation-play-state: var(--pause-on-hover);\n}\n.rfm-marquee-container:active div {\n  animation-play-state: var(--pause-on-click);\n}\n\n.rfm-overlay {\n  position: absolute;\n  width: 100%;\n  height: 100%;\n}\n.rfm-overlay::before, .rfm-overlay::after {\n  background: linear-gradient(to right, var(--gradient-color), rgba(255, 255, 255, 0));\n  content: "";\n  height: 100%;\n  position: absolute;\n  width: var(--gradient-width);\n  z-index: 2;\n  pointer-events: none;\n  touch-action: none;\n}\n.rfm-overlay::after {\n  right: 0;\n  top: 0;\n  transform: rotateZ(180deg);\n}\n.rfm-overlay::before {\n  left: 0;\n  top: 0;\n}\n\n.rfm-marquee {\n  flex: 0 0 auto;\n  min-width: var(--min-width);\n  z-index: 1;\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  animation: scroll var(--duration) linear var(--delay) var(--iteration-count);\n  animation-play-state: var(--play);\n  animation-delay: var(--delay);\n  animation-direction: var(--direction);\n}\n@keyframes scroll {\n  0% {\n    transform: translateX(0%);\n  }\n  100% {\n    transform: translateX(-100%);\n  }\n}\n\n.rfm-initial-child-container {\n  flex: 0 0 auto;\n  display: flex;\n  min-width: auto;\n  flex-direction: row;\n  align-items: center;\n}\n\n.rfm-child {\n  transform: var(--transform);\n}');const s=a.forwardRef(function(e,t){let n=e.style,o=void 0===n?{}:n,s=e.className,l=void 0===s?"":s,c=e.autoFill,u=void 0!==c&&c,d=e.play,h=void 0===d||d,p=e.pauseOnHover,f=void 0!==p&&p,m=e.pauseOnClick,g=void 0!==m&&m,y=e.direction,v=void 0===y?"left":y,b=e.speed,x=void 0===b?50:b,w=e.delay,k=void 0===w?0:w,S=e.loop,E=void 0===S?0:S,N=e.gradient,j=void 0!==N&&N,C=e.gradientColor,T=void 0===C?"white":C,P=e.gradientWidth,A=void 0===P?200:P,R=e.onFinish,O=e.onCycleComplete,F=e.onMount,L=e.children;const D=a.useState(0),M=r(D,2),_=M[0],I=M[1],z=a.useState(0),B=r(z,2),U=B[0],V=B[1],W=a.useState(1),q=r(W,2),H=q[0],Y=q[1],K=a.useState(!1),$=r(K,2),X=$[0],Q=$[1],G=a.useRef(null),J=t||G,Z=a.useRef(null),ee=a.useCallback(()=>{if(Z.current&&J.current){const e=J.current.getBoundingClientRect(),t=Z.current.getBoundingClientRect();let n=e.width,r=t.width;"up"!==v&&"down"!==v||(n=e.height,r=t.height),Y(u&&n&&r&&r<n?Math.ceil(n/r):1),I(n),V(r)}},[u,J,v]);a.useEffect(()=>{if(X&&(ee(),Z.current&&J.current)){const e=new ResizeObserver(()=>ee());return e.observe(J.current),e.observe(Z.current),()=>{e&&e.disconnect()}}},[ee,J,X]),a.useEffect(()=>{ee()},[ee,L]),a.useEffect(()=>{Q(!0)},[]),a.useEffect(()=>{"function"===typeof F&&F()},[]);const te=a.useMemo(()=>u?U*H/x:U<_?_/x:U/x,[u,_,U,H,x]),ne=a.useMemo(()=>Object.assign(Object.assign({},o),{"--pause-on-hover":!h||f?"paused":"running","--pause-on-click":!h||f&&!g||g?"paused":"running","--width":"up"===v||"down"===v?"100vh":"100%","--transform":"up"===v?"rotate(-90deg)":"down"===v?"rotate(90deg)":"none"}),[o,h,f,g,v]),re=a.useMemo(()=>({"--gradient-color":T,"--gradient-width":"number"===typeof A?"".concat(A,"px"):A}),[T,A]),ae=a.useMemo(()=>
2({"--play":h?"running":"paused","--direction":"left"===v?"normal":"reverse","--duration":"".concat(te,"s"),"--delay":"".concat(k,"s"),"--iteration-count":E?"".concat(E):"infinite","--min-width":u?"auto":"100%"}),[h,v,te,k,E,u]),oe=a.useMemo(()=>({"--transform":"up"===v?"rotate(90deg)":"down"===v?"rotate(-90deg)":"none"}),[v]),ie=a.useCallback(e=>[...Array(Number.isFinite(e)&&e>=0?e:0)].map((e,t)=>i.default.createElement(a.Fragment,{key:t},a.Children.map(L,e=>i.default.createElement("div",{style:oe,className:"rfm-child"},e)))),[oe,L]);return X?i.default.createElement("div",{ref:J,style:ne,className:"rfm-marquee-container "+l},j&&i.default.createElement("div",{style:re,className:"rfm-overlay"}),i.default.createElement("div",{className:"rfm-marquee",style:ae,onAnimationIteration:O,onAnimationEnd:R},i.default.createElement("div",{className:"rfm-initial-child-container",ref:Z},a.Children.map(L,e=>i.default.createElement("div",{style:oe,className:"rfm-child"},e))),ie(H-1)),i.default.createElement("div",{className:"rfm-marquee",style:ae},ie(H))):null});t.A=s},799(e,t){"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function a(e,t,r){var a=null;if(void 0!==r&&(a=""+r),void 0!==t.key&&(a=""+t.key),"key"in t)for(var o in r={},t)"key"!==o&&(r[o]=t[o]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:a,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=a,t.jsxs=a},288(e,t){"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var x=b.prototype=new v;x.constructor=b,m(x,y.prototype),x.isPureReactComponent=!0;var w=Array.isArray,k={H:null,A:null,T:null,S:null},S=Object.prototype.hasOwnProperty;function E(e,t,r,a,o,i){return r=i.ref,{$$typeof:n,type:e,key:t,ref:void 0!==r?r:null,props:i}}function N(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var j=/\/+/g;function C(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function T(){}function P(e,t,a,o,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,c,u=!1;if(null===e)u=!0;else switch(s){case"bigint":case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0;break;case h:return P((u=e._init)(e._payload),t,a,o,i)}}if(u)return i=i(e),u=""===o?"."+C(e,0):o,w(i)?(a="",null!=u&&(a=u.replace(j,"$&/")+"/"),P(i,t,a,"",function(e){return e})):null!=i&&(N(i)&&(l=i,c=a+(null==i.key||e&&e.key===i.key?"":(""+i.key).replace(j,"$&/")+"/")+u,i=E(l.type,c,void 0,0,0,l.props)),t.push(i)),1;u=0;var d,f=""===o?".":o+":";if(w(e))for(var m=0;m<e.length;m++)u+=P(o=e[m],t,a,s=f+C(o,m),i);else if("function"===typeof(m=null===(d=e)||"object"!==typeof d?null:"function"===typeof(d=p&&d[p]||d["@@iterator"])?d:null))for(e=m.call(e),m=0;!(o=e.next()).done;)u+=P(o=o.value,t,a,s=f+C(o,m++),i);else if("object"===s){if("function"===typeof e.then)return P(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"===typeof e.status?e.then(T,T):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,a,o,i);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return u}function A(e,t,n){if(null==e)return e;var r=[],a=0;return P(e,r,"","",function(e){return t.call(n,e,a++)}),r}function R(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var O="function"===typeof reportError?reportError:function(e){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof e&&null!==e&&"string"===typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"===typeof process&&"function"===typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function F(){}t.Children={map:A,forEach:function(e,t,n){A(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return A(e,function(){t++}),t},toArray:function(e){return A(e,function(e){return e})||[]},only:function(e){if(!N(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=a,t.Profiler=i,t.PureComponent=b,t.StrictMode=o,t.Suspense=u,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,t.act=function(){throw Error("act(...) is not supported in production builds of React.")},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error("The argument must be a React element, but you passed "+e+".");var r=m({},e.props),a=e.key;if(null!=t)for(o in void 0!==t.ref&&void 0,void 0!==t.key&&(a=""+t.key),t)!S.call(t,o)||"key"===o||"__self"===o||"__source"===o||"ref"===o&&void 0===t.ref||(r[o]=t[o]);var o=arguments.length-2;if(1===o)r.children=n;else if(1<o){for(var i=Array(o),s=0;s<o;s++)i[s]=arguments[s+2];r.children=i}return E(e.type,a,void 0,0,0,r)},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:s,_context:e},e},t.createElement=function(e,t,n){var r,a={},o=null;if(null!=t)for(r in void 0!==t.key&&(o=""+t.key),t)S.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(a[r]=t[r]);var i=arguments.length-2;if(1===i)a.children=n;else if(1<i){for(var s=Array(i),l=0;l<i;l++)s[l]=arguments[l+2];a.children=s}if(e&&e.defaultProps)for(r in i=e.defaultProps)void 0===a[r]&&(a[r]=i[r]);return E(e,o,void 0,0,0,a)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=N,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:R}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=k.T,n={};k.T=n;try{var r=e(),a=k.S;null!==a&&a(n,r),"object"===typeof r&&null!==r&&"function"===typeof r.then&&r.then(F,O)}catch(o){O(o)}finally{k.T=t}},t.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},t.use=function(e){return k.H.use(e)},t.useActionState=function(e,t,n){return k.H.useActionState(e,t,n)},t.useCallback=function(e,t){return k.H.useCallback(e,t)},t.useContext=function(e){return k.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return k.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return k.H.useEffect(e,t)},t.useId=function(){return k.H.useId()},t.useImperativeHandle=function(e,t,n){return k.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return k.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return k.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return k.H.useMemo(e,t)},t.useOptimistic=function(e,t){return k.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return k.H.useReducer(e,t,n)},t.useRef=function(e){return k.H.useRef(e)},t.useState=function(e){return k.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return k.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return k.H.useTransition()},t.version="19.0.0"},43(e,t,n){"use strict";e.exports=n(288)},579(e,t,n){"use strict";e.exports=n(799)},896(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,n=r}}function r(e){return 0===e.length?null:e[0]}function a(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,i=a>>>1;r<i;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<a&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<a&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"===typeof performance&&"function"===typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,h=null,p=3,f=!1,m=!1,g=!1,y="function"===typeof setTimeout?setTimeout:null,v="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function x(e){for(var t=r(u);null!==t;){if(null===t.callback)a(u);else{if(!(t.startTime<=e))break;a(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function w(e){if(g=!1,x(e),!m)if(null!==r(c))m=!0,R();else{var t=r(u);null!==t&&O(w,t.startTime-e)}}var k,S=!1,E=-1,N=5,j=-1;function C(){return!(t.unstable_now()-j<N)}function T(){if(S){var e=t.unstable_now();j=e;var n=!0;try{e:{m=!1,g&&(g=!1,v(E),E=-1),f=!0;var o=p;try{t:{for(x(e),h=r(c);null!==h&&!(h.expirationTime>e&&C());){var i=h.callback;if("function"===typeof i){h.callback=null,p=h.priorityLevel;var s=i(h.expirationTime<=e);if(e=t.unstable_now(),"function"===typeof s){h.callback=s,x(e),n=!0;break t}h===r(c)&&a(c),x(e)}else a(c);h=r(c)}if(null!==h)n=!0;else{var l=r(u);null!==l&&O(w,l.startTime-e),n=!1}}break e}finally{h=null,p=o,f=!1}n=void 0}}finally{n?k():S=!1}}}if("function"===typeof b)k=function(){b(T)};else if("undefined"!==typeof MessageChannel){var P=new MessageChannel,A=P.port2;P.port1.onmessage=T,k=function(){A.postMessage(null)}}else k=function(){y(T,0)};
2function R(){S||(S=!0,k())}function O(e,n){E=y(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||f||(m=!0,R())},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,a,o){var i=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?i+o:i:o=i,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:a,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>i?(e.sortIndex=o,n(u,e),null===r(c)&&e===r(u)&&(g?(v(E),E=-1):g=!0,O(w,o-i))):(e.sortIndex=s,n(c,e),m||f||(m=!0,R())),e},t.unstable_shouldYield=C,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},853(e,t,n){"use strict";e.exports=n(896)},79(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},987(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},156(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},752(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},715(e,t,n){var r=n(987),a=n(156),o=n(122),i=n(752);e.exports=function(e,t){return r(e)||a(e,t)||o(e,t)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},122(e,t,n){var r=n(79);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,a){if(1&a&&(r=this(r)),8&a)return r;if("object"===typeof r&&r){if(4&a&&r.__esModule)return r;if(16&a&&"function"===typeof r.then)return r}var o=Object.create(null);n.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&a&&r;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>i[e]=()=>r[e]);return i.default=()=>r,n.d(o,i),o}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
2),Object.defineProperty(e,"__esModule",{value:!0})},n.dn=e=>{(Object.getOwnPropertyDescriptor(e,"name")||{}).writable||Object.defineProperty(e,"name",{value:"default",configurable:!0})},(()=>{"use strict";var e={};n.r(e),n.d(e,{hasBrowserEnv:()=>wo,hasStandardBrowserEnv:()=>So,hasStandardBrowserWebWorkerEnv:()=>Eo,navigator:()=>ko,origin:()=>No});var t=n(43),r=n.t(t,2),a=n(391);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}function s(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function d(e,t,n){u(e,t),t.set(e,n)}function h(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function p(e,t){return e.get(h(e,t))}function f(e,t,n){return e.set(h(e,t),n),n}var m="undefined"===typeof window||"Deno"in globalThis;function g(){}function y(e,t){return"function"===typeof e?e(t):e}function v(e,t){const n=e.type,r=void 0===n?"all":n,a=e.exact,o=e.fetchStatus,i=e.predicate,s=e.queryKey,l=e.stale;if(s)if(a){if(t.queryHash!==x(s,t.options))return!1}else if(!k(t.queryKey,s))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return("boolean"!==typeof l||t.isStale()===l)&&((!o||o===t.state.fetchStatus)&&!(i&&!i(t)))}function b(e,t){const n=e.exact,r=e.status,a=e.predicate,o=e.mutationKey;if(o){if(!t.options.mutationKey)return!1;if(n){if(w(t.options.mutationKey)!==w(o))return!1}else if(!k(t.options.mutationKey,o))return!1}return(!r||t.state.status===r)&&!(a&&!a(t))}function x(e,t){return((null===t||void 0===t?void 0:t.queryKeyHashFn)||w)(e)}function w(e){return JSON.stringify(e,(e,t)=>N(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function k(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some(n=>!k(e[n],t[n])))}function S(e,t){if(e===t)return e;const n=E(e)&&E(t);if(n||N(e)&&N(t)){const r=n?e:Object.keys(e),a=r.length,o=n?t:Object.keys(t),i=o.length,s=n?[]:{};let l=0;for(let c=0;c<i;c++){const a=n?c:o[c];(!n&&r.includes(a)||n)&&void 0===e[a]&&void 0===t[a]?(s[a]=void 0,l++):(s[a]=S(e[a],t[a]),s[a]===e[a]&&void 0!==e[a]&&l++)}return a===i&&l===a?e:s}return t}function E(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function N(e){if(!j(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!j(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function j(e){return"[object Object]"===Object.prototype.toString.call(e)}function C(e,t,n){return"function"===typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?S(e,t):t}function T(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=[...e,t];return n&&r.length>n?r.slice(1):r}function P(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var A=Symbol();function R(e,t){return!e.queryFn&&null!==t&&void 0!==t&&t.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==A?e.queryFn:()=>Promise.reject(new Error("Missing queryFn: '".concat(e.queryHash,"'")))}function O(e,t){u(e,t),t.add(e)}var F,L,D,M,_,I,z=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},a=e=>setTimeout(e,0);const o=r=>{t?e.push(r):a(()=>{n(r)})};return{batch:o=>{let i;t++;try{i=o()}finally{t--,t||(()=>{const t=e;e=[],t.length&&a(()=>{r(()=>
2{t.forEach(e=>{n(e)})})})})()}return i},batchCalls:e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];o(()=>{e(...n)})},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{a=e}}}(),B=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},U=new(F=new WeakMap,L=new WeakMap,D=new WeakMap,class extends B{constructor(){super(),d(this,F,void 0),d(this,L,void 0),d(this,D,void 0),f(D,this,e=>{if(!m&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){p(L,this)||this.setEventListener(p(D,this))}onUnsubscribe(){var e;this.hasListeners()||(null===(e=p(L,this))||void 0===e||e.call(this),f(L,this,void 0))}setEventListener(e){var t;f(D,this,e),null===(t=p(L,this))||void 0===t||t.call(this),f(L,this,e(e=>{"boolean"===typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){p(F,this)!==e&&(f(F,this,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){var e;return"boolean"===typeof p(F,this)?p(F,this):"hidden"!==(null===(e=globalThis.document)||void 0===e?void 0:e.visibilityState)}}),V=new(M=new WeakMap,_=new WeakMap,I=new WeakMap,class extends B{constructor(){super(),d(this,M,!0),d(this,_,void 0),d(this,I,void 0),f(I,this,e=>{if(!m&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}})}onSubscribe(){p(_,this)||this.setEventListener(p(I,this))}onUnsubscribe(){var e;this.hasListeners()||(null===(e=p(_,this))||void 0===e||e.call(this),f(_,this,void 0))}setEventListener(e){var t;f(I,this,e),null===(t=p(_,this))||void 0===t||t.call(this),f(_,this,e(this.setOnline.bind(this)))}setOnline(e){p(M,this)!==e&&(f(M,this,e),this.listeners.forEach(t=>{t(e)}))}isOnline(){return p(M,this)}});function W(e){return Math.min(1e3*2**e,3e4)}function q(e){return"online"!==(null!==e&&void 0!==e?e:"online")||V.isOnline()}var H,Y=class extends Error{constructor(e){super("CancelledError"),this.revert=null===e||void 0===e?void 0:e.revert,this.silent=null===e||void 0===e?void 0:e.silent}};function K(e){return e instanceof Y}function $(e){let t,n,r,a=!1,o=0,i=!1;const s=new Promise((e,t)=>{n=e,r=t}),l=()=>U.isFocused()&&("always"===e.networkMode||V.isOnline())&&e.canRun(),c=()=>q(e.networkMode)&&e.canRun(),u=r=>{var a,o;i||(i=!0,null===(a=e.onSuccess)||void 0===a||a.call(e,r),null===(o=t)||void 0===o||o(),n(r))},d=n=>{var a,o;i||(i=!0,null===(a=e.onError)||void 0===a||a.call(e,n),null===(o=t)||void 0===o||o(),r(n))},h=()=>new Promise(n=>{var r;t=e=>{(i||l())&&n(e)},null===(r=e.onPause)||void 0===r||r.call(e)}).then(()=>{var n;(t=void 0,i)||(null===(n=e.onContinue)||void 0===n||n.call(e))}),p=()=>{if(i)return;let t;const n=0===o?e.initialPromise:void 0;try{t=null!==n&&void 0!==n?n:e.fn()}catch(r){t=Promise.reject(r)}Promise.resolve(t).then(u).catch(t=>{var n,r,s;if(i)return;const c=null!==(n=e.retry)&&void 0!==n?n:m?0:3,u=null!==(r=e.retryDelay)&&void 0!==r?r:W,f="function"===typeof u?u(o,t):u,g=!0===c||"number"===typeof c&&o<c||"function"===typeof c&&c(o,t);var y;!a&&g?(o++,null===(s=e.onFail)||void 0===s||s.call(e,o,t),(y=f,new Promise(e=>{setTimeout(e,y)})).then(()=>l()?void 0:h()).then(()=>{a?d(t):p()})):d(t)})};return{promise:s,cancel:t=>{var n;i||(d(new Y(t)),null===(n=e.abort)||void 0===n||n.call(e))},continue:()=>{var e;return null===(e=t)||void 0===e||e(),s},cancelRetry:()=>{a=!0},continueRetry:()=>{a=!1},canStart:c,start:()=>(c()?p():h().then(p),s)}}var X,Q,G,J,Z,ee,te,ne,re=(H=new WeakMap,class{constructor(){d(this,H,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){var e;this.clearGcTimeout(),"number"===typeof(e=this.gcTime)&&e>=0&&e!==1/0&&f(H,this,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,null!==e&&void 0!==e?e:m?1/0:3e5)}clearGcTimeout(){p(H,this)&&(clearTimeout(p(H,this)),f(H,this,void 0))}}),ae=(X=new WeakMap,Q=new WeakMap,G=new WeakMap,J=new WeakMap,Z=new WeakMap,ee=new WeakMap,te=new WeakSet,class extends re{constructor(e){var t;super(),O(this,te),d(this,X,void 0),d(this,Q,void 0),d(this,G,void 0),d(this,J,void 0),d(this,Z,void 0),d(this,ee,void 0),f(ee,this,!1),f(Z,this,e.defaultOptions),this.setOptions(e.options),this.observers=[],f(G,this,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,f(X,this,function(e){const t="function"===typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"===typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!==r&&void 0!==r?r:Date.now():0,error:null,errorUpdate
2Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options)),this.state=null!==(t=e.state)&&void 0!==t?t:p(X,this),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return null===(e=p(J,this))||void 0===e?void 0:e.promise}setOptions(e){this.options=c(c({},p(Z,this)),e),this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||p(G,this).remove(this)}setData(e,t){const n=C(this.state.data,e,this.options);return h(te,this,oe).call(this,{data:n,type:"success",dataUpdatedAt:null===t||void 0===t?void 0:t.updatedAt,manual:null===t||void 0===t?void 0:t.manual}),n}setState(e,t){h(te,this,oe).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,n;const r=null===(t=p(J,this))||void 0===t?void 0:t.promise;return null===(n=p(J,this))||void 0===n||n.cancel(e),r?r.then(g).catch(g):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(p(X,this))}isActive(){return this.observers.some(e=>{return!1!==(t=e.options.enabled,n=this,"function"===typeof t?t(n):t);var t,n})}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.state.isInvalidated||void 0===this.state.data||!function(e,t){return Math.max(e+(t||0)-Date.now(),0)}(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(e=>e.shouldFetchOnWindowFocus());null===t||void 0===t||t.refetch({cancelRefetch:!1}),null===(e=p(J,this))||void 0===e||e.continue()}onOnline(){var e;const t=this.observers.find(e=>e.shouldFetchOnReconnect());null===t||void 0===t||t.refetch({cancelRefetch:!1}),null===(e=p(J,this))||void 0===e||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),p(G,this).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(p(J,this)&&(p(ee,this)?p(J,this).cancel({revert:!0}):p(J,this).cancelRetry()),this.scheduleGc()),p(G,this).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||h(te,this,oe).call(this,{type:"invalidate"})}fetch(e,t){var n,r;if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&null!==t&&void 0!==t&&t.cancelRefetch)this.cancel({silent:!0});else if(p(J,this))return p(J,this).continueRetry(),p(J,this).promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const a=new AbortController,o=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(f(ee,this,!0),a.signal)})},i={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=R(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return o(n),f(ee,this,!1),this.options.persister?this.options.persister(e,n,this):e(n)}};var s;(o(i),null===(n=this.options.behavior)||void 0===n||n.onFetch(i,this),f(Q,this,this.state),"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null===(r=i.fetchOptions)||void 0===r?void 0:r.meta))&&h(te,this,oe).call(this,{type:"fetch",meta:null===(s=i.fetchOptions)||void 0===s?void 0:s.meta});const l=e=>{var t,n,r,a;(K(e)&&e.silent||h(te,this,oe).call(this,{type:"error",error:e}),K(e))||(null===(t=(n=p(G,this).config).onError)||void 0===t||t.call(n,e,this),null===(r=(a=p(G,this).config).onSettled)||void 0===r||r.call(a,this.state.data,e,this));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return f(J,this,$({initialPromise:null===t||void 0===t?void 0:t.initialPromise,fn:i.fetchFn,abort:a.abort.bind(a),onSuccess:e=>{var t,n,r,a;if(void 0!==e){try{this.setData(e)}catch(o){return void l(o)}null===(t=(n=p(G,this).config).onSuccess)||void 0===t||t.call(n,e,this),null===(r=(a=p(G,this).config).onSettled)||void 0===r||r.call(a,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1}else l(new Error("".concat(this.queryHash," data is undefined")))},onError:l,onFail:(e,t)=>{h(te,this,oe).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{h(te,this,oe).call(this,{type:"pause"})},onContinue:()=>{h(te,this,oe).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),p(J,this).start()}});function oe(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return c(c({},t),{},{fetchFailureCount:e.failureCount,fetchFailureReason:e.error});case"pause":return c(c({},t),{},{fetchStatus:"paused"});case"continue":return c(c({},t),{},{fetchStatus:"fetching"});case"fetch":return c(c(c({},t),function(e,t){return c({fetchFailureCount:0,fetchFailureReason:null,fetchStatus:q(t.networkMode)?"fetching":"paused"},void 0===e&&{error:null,status:"pending"})}(t.data,this.options)),{},{fetchMeta:null!==(n=e.meta)&&void 0!==n?n:null});case"success":return c(c({},t),{},{data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!==(r=e.dataUpdatedAt)&&void 0!==r?r:Date.now(),error:null,isInvalidated:!1,status:"success"},!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":const a=e.error;return K(a)&&a.revert&&p(Q,this)?c(c({},p(Q,this)),{},{fetchStatus:"idle"}):c(c({},t),{}
2,{error:a,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"});case"invalidate":return c(c({},t),{},{isInvalidated:!0});case"setState":return c(c({},t),e.state)}})(this.state),z.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),p(G,this).notify({query:this,type:"updated",action:e})})}var ie,se,le,ce,ue,de,he=(ne=new WeakMap,class extends B{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),d(this,ne,void 0),this.config=e,f(ne,this,new Map)}build(e,t,n){var r;const a=t.queryKey,o=null!==(r=t.queryHash)&&void 0!==r?r:x(a,t);let i=this.get(o);return i||(i=new ae({cache:this,queryKey:a,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(i)),i}add(e){p(ne,this).has(e.queryHash)||(p(ne,this).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=p(ne,this).get(e.queryHash);t&&(e.destroy(),t===e&&p(ne,this).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){z.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return p(ne,this).get(e)}getAll(){return[...p(ne,this).values()]}find(e){const t=c({exact:!0},e);return this.getAll().find(e=>v(t,e))}findAll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>v(e,t)):t}notify(e){z.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){z.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){z.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}}),pe=(ie=new WeakMap,se=new WeakMap,le=new WeakMap,ce=new WeakSet,class extends re{constructor(e){super(),O(this,ce),d(this,ie,void 0),d(this,se,void 0),d(this,le,void 0),this.mutationId=e.mutationId,f(se,this,e.mutationCache),f(ie,this,[]),this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){p(ie,this).includes(e)||(p(ie,this).push(e),this.clearGcTimeout(),p(se,this).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){f(ie,this,p(ie,this).filter(t=>t!==e)),this.scheduleGc(),p(se,this).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){p(ie,this).length||("pending"===this.state.status?this.scheduleGc():p(se,this).remove(this))}continue(){var e,t;return null!==(e=null===(t=p(le,this))||void 0===t?void 0:t.continue())&&void 0!==e?e:this.execute(this.state.variables)}async execute(e){var t;f(le,this,$({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{h(ce,this,fe).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{h(ce,this,fe).call(this,{type:"pause"})},onContinue:()=>{h(ce,this,fe).call(this,{type:"continue"})},retry:null!==(t=this.options.retry)&&void 0!==t?t:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>p(se,this).canRun(this)}));const n="pending"===this.state.status,r=!p(le,this).canStart();try{var a,o,i,s,l,c,u,d;if(!n){var m,g,y,v;h(ce,this,fe).call(this,{type:"pending",variables:e,isPaused:r}),await(null===(m=(g=p(se,this).config).onMutate)||void 0===m?void 0:m.call(g,e,this));const t=await(null===(y=(v=this.options).onMutate)||void 0===y?void 0:y.call(v,e));t!==this.state.context&&h(ce,this,fe).call(this,{type:"pending",context:t,variables:e,isPaused:r})}const t=await p(le,this).start();return await(null===(a=(o=p(se,this).config).onSuccess)||void 0===a?void 0:a.call(o,t,e,this.state.context,this)),await(null===(i=(s=this.options).onSuccess)||void 0===i?void 0:i.call(s,t,e,this.state.context)),await(null===(l=(c=p(se,this).config).onSettled)||void 0===l?void 0:l.call(c,t,null,this.state.variables,this.state.context,this)),await(null===(u=(d=this.options).onSettled)||void 0===u?void 0:u.call(d,t,null,e,this.state.context)),h(ce,this,fe).call(this,{type:"success",data:t}),t}catch(C){try{var b,x,w,k,S,E,N,j;throw await(null===(b=(x=p(se,this).config).onError)||void 0===b?void 0:b.call(x,C,e,this.state.context,this)),await(null===(w=(k=this.options).onError)||void 0===w?void 0:w.call(k,C,e,this.state.context)),await(null===(S=(E=p(se,this).config).onSettled)||void 0===S?void 0:S.call(E,void 0,C,this.state.variables,this.state.context,this)),await(null===(N=(j=this.options).onSettled)||void 0===N?void 0:N.call(j,void 0,C,e,this.state.context)),C}finally{h(ce,this,fe).call(this,{type:"error",error:C})}}finally{p(se,this).runNext(this)}}});function fe(e){this.state=(t=>{switch(e.type){case"failed":return c(c({},t),{},{failureCount:e.failureCount,failureReason:e.error});case"pause":return c(c({},t),{},{isPaused:!0});case"continue":return c(c({},t),{},{isPaused:!1});
2case"pending":return c(c({},t),{},{context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()});case"success":return c(c({},t),{},{data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return c(c({},t),{},{data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"})}})(this.state),z.batch(()=>{p(ie,this).forEach(t=>{t.onMutationUpdate(e)}),p(se,this).notify({mutation:this,type:"updated",action:e})})}var me,ge,ye,ve,be,xe,we,ke,Se=(ue=new WeakMap,de=new WeakMap,class extends B{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),d(this,ue,void 0),d(this,de,void 0),this.config=e,f(ue,this,new Map),f(de,this,Date.now())}build(e,t,n){var r;const a=new pe({mutationCache:this,mutationId:f(de,this,(r=p(de,this),++r)),options:e.defaultMutationOptions(t),state:n});return this.add(a),a}add(e){var t;const n=Ee(e),r=null!==(t=p(ue,this).get(n))&&void 0!==t?t:[];r.push(e),p(ue,this).set(n,r),this.notify({type:"added",mutation:e})}remove(e){const t=Ee(e);if(p(ue,this).has(t)){var n;const r=null===(n=p(ue,this).get(t))||void 0===n?void 0:n.filter(t=>t!==e);r&&(0===r.length?p(ue,this).delete(t):p(ue,this).set(t,r))}this.notify({type:"removed",mutation:e})}canRun(e){var t;const n=null===(t=p(ue,this).get(Ee(e)))||void 0===t?void 0:t.find(e=>"pending"===e.state.status);return!n||n===e}runNext(e){var t,n;const r=null===(t=p(ue,this).get(Ee(e)))||void 0===t?void 0:t.find(t=>
2t!==e&&t.state.isPaused);return null!==(n=null===r||void 0===r?void 0:r.continue())&&void 0!==n?n:Promise.resolve()}clear(){z.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...p(ue,this).values()].flat()}find(e){const t=c({exact:!0},e);return this.getAll().find(e=>b(t,e))}findAll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.getAll().filter(t=>b(e,t))}notify(e){z.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return z.batch(()=>Promise.all(e.map(e=>e.continue().catch(g))))}});function Ee(e){var t,n;return null!==(t=null===(n=e.options.scope)||void 0===n?void 0:n.id)&&void 0!==t?t:String(e.mutationId)}function Ne(e){return{onFetch:(t,n)=>{var r,a,o;const i=t.options,s=null===(r=t.fetchOptions)||void 0===r||null===(r=r.meta)||void 0===r||null===(r=r.fetchMore)||void 0===r?void 0:r.direction,l=(null===(a=t.state.data)||void 0===a?void 0:a.pages)||[],c=(null===(o=t.state.data)||void 0===o?void 0:o.pageParams)||[];let u={pages:[],pageParams:[]},d=0;const h=async()=>{let n=!1;const r=R(t.options,t.fetchOptions),a=async(e,a,o)=>{if(n)return Promise.reject();if(null==a&&e.pages.length)return Promise.resolve(e);const i={queryKey:t.queryKey,pageParam:a,direction:o?"backward":"forward",meta:t.options.meta};var s;s=i,Object.defineProperty(s,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)});const l=await r(i),c=t.options.maxPages,u=o?P:T;return{pages:u(e.pages,l,c),pageParams:u(e.pageParams,a,c)}};if(s&&l.length){const e="backward"===s,t={pages:l,pageParams:c},n=(e?Ce:je)(i,t);u=await a(t,n,e)}else{const t=null!==e&&void 0!==e?e:l.length;do{var o;const e=0===d?null!==(o=c[0])&&void 0!==o?o:i.initialPageParam:je(i,u);if(d>0&&null==e)break;u=await a(u,e),d++}while(d<t)}return u};t.options.persister?t.fetchFn=()=>{var e,r;return null===(e=(r=t.options).persister)||void 0===e?void 0:e.call(r,h,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=h}}}function je(e,t){let n=t.pages,r=t.pageParams;const a=n.length-1;return n.length>0?e.getNextPageParam(n[a],n,r[a],r):void 0}function Ce(e,t){var n;let r=t.pages,a=t.pageParams;return r.length>0?null===(n=e.getPreviousPageParam)||void 0===n?void 0:n.call(e,r[0],r,a[0],a):void 0}var Te=(me=new WeakMap,ge=new WeakMap,ye=new WeakMap,ve=new WeakMap,be=new WeakMap,xe=new WeakMap,we=new WeakMap,ke=new WeakMap,class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d(this,me,void 0),d(this,ge,void 0),d(this,ye,void 0),d(this,ve,void 0),d(this,be,void 0),d(this,xe,void 0),d(this,we,void 0),d(this,ke,void 0),f(me,this,e.queryCache||new he),f(ge,this,e.mutationCache||new Se),f(ye,this,e.defaultOptions||{}),f(ve,this,new Map),f(be,this,new Map),f(xe,this,0)}mount(){var e;f(xe,this,(e=p(xe,this),e++,e)),1===p(xe,this)&&(f(we,this,U.subscribe(async e=>{e&&(await this.resumePausedMutations(),p(me,this).onFocus())})),f(ke,this,V.subscribe(async e=>{e&&(await this.resumePausedMutations(),p(me,this).onOnline())})))}unmount(){var e,t,n;f(xe,this,(e=p(xe,this),e--,e)),0===p(xe,this)&&(null===(t=p(we,this))||void 0===t||t.call(this),f(we,this,void 0),null===(n=p(ke,this))||void 0===n||n.call(this),f(ke,this,void 0))}isFetching(e){return p(me,this).findAll(c(c({},e),{},{fetchStatus:"fetching"})).length}isMutating(e){return p(ge,this).findAll(c(c({},e),{},{status:"pending"})).length}getQueryData(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null===(t=p(me,this).get(n.queryHash))||void 0===t?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=p(me,this).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(y(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return p(me,this).findAll(e).map(e=>[e.queryKey,e.state.data])}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=p(me,this).get(r.queryHash),o=function(e,t){return"function"===typeof e?e(t):e}(t,null===a||void 0===a?void 0:a.state.data);if(void 0!==o)return p(me,this).build(this,r).setData(o,c(c({},n),{},{manual:!0}))}
2setQueriesData(e,t,n){return z.batch(()=>p(me,this).findAll(e).map(e=>{let r=e.queryKey;return[r,this.setQueryData(r,t,n)]}))}getQueryState(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null===(t=p(me,this).get(n.queryHash))||void 0===t?void 0:t.state}removeQueries(e){const t=p(me,this);z.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const n=p(me,this),r=c({type:"active"},e);return z.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(r,t)))}cancelQueries(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=c({revert:!0},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=z.batch(()=>p(me,this).findAll(e).map(e=>e.cancel(t)));return Promise.all(n).then(g).catch(g)}invalidateQueries(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return z.batch(()=>{var n,r;if(p(me,this).findAll(e).forEach(e=>{e.invalidate()}),"none"===e.refetchType)return Promise.resolve();const a=c(c({},e),{},{type:null!==(n=null!==(r=e.refetchType)&&void 0!==r?r:e.type)&&void 0!==n?n:"active"});return this.refetchQueries(a,t)})}refetchQueries(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;const r=c(c({},n),{},{cancelRefetch:null===(e=null===n||void 0===n?void 0:n.cancelRefetch)||void 0===e||e}),a=z.batch(()=>p(me,this).findAll(t).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(g)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(a).then(g)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=p(me,this).build(this,t);return n.isStaleByTime(y(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(g).catch(g)}fetchInfiniteQuery(e){return e.behavior=Ne(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(g).catch(g)}ensureInfiniteQueryData(e){return e.behavior=Ne(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return V.isOnline()?p(ge,this).resumePausedMutations():Promise.resolve()}getQueryCache(){return p(me,this)}getMutationCache(){return p(ge,this)}getDefaultOptions(){return p(ye,this)}setDefaultOptions(e){f(ye,this,e)}setQueryDefaults(e,t){p(ve,this).set(w(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...p(ve,this).values()];let n={};return t.forEach(t=>{k(e,t.queryKey)&&(n=c(c({},n),t.defaultOptions))}),n}setMutationDefaults(e,t){p(be,this).set(w(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...p(be,this).values()];let n={};return t.forEach(t=>{k(e,t.mutationKey)&&(n=c(c({},n),t.defaultOptions))}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t=c(c(c(c({},p(ye,this).queries),this.getQueryDefaults(e.queryKey)),e),{},{_defaulted:!0});return t.queryHash||(t.queryHash=x(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===A&&(t.enabled=!1),t}defaultMutationOptions(e){return null!==e&&void 0!==e&&e._defaulted?e:c(c(c(c({},p(ye,this).mutations),(null===e||void 0===e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey)),e),{},{_defaulted:!0})}clear(){p(me,this).clear(),p(ge,this).clear()}}),Pe=n(579),Ae=t.createContext(void 0),Re=e=>{let n=e.client,r=e.children;return t.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),(0,Pe.jsx)(Ae.Provider,{value:n,children:r})};function Oe(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Le(e){if(Array.isArray(e))return e}function De(e,t){if(e){if("string"==typeof e)return Fe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fe(e,t):void 0}}
2function Me(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _e(e){return Le(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||De(e)||Me()}function Ie(e,t){return Le(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return s}}(e,t)||De(e,t)||Me()}const ze=["sri"],Be=["page"],Ue=["page","matches"],Ve=["page","matches"],We=["onClick","discover","prefetch","relative","reloadDocument","replace","mask","state","target","to","preventScrollReset","viewTransition","defaultShouldRevalidate"],qe=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],He=["discover","fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition","defaultShouldRevalidate"];var Ye="popstate";function Ke(e){return"object"===typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function $e(){return tt(function(e,t){var n;let r=null===(n=t.state)||void 0===n?void 0:n.masked,a=r||e.location;return Je("",{pathname:a.pathname,search:a.search,hash:a.hash},t.state&&t.state.usr||null,t.state&&t.state.key||"default",r?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)},function(e,t){return"string"===typeof t?t:Ze(t)},null,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}function Xe(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function Qe(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function Ge(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Je(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;return c(c({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?et(t):t),{},{state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10),mask:a})}function Ze(e){let t=e.pathname,n=void 0===t?"/":t,r=e.search,a=void 0===r?"":r,o=e.hash,i=void 0===o?"":o;return a&&"?"!==a&&(n+="?"===a.charAt(0)?a:"?"+a),i&&"#"!==i&&(n+="#"===i.charAt(0)?i:"#"+i),n}function et(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function tt(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=r.window,o=void 0===a?document.defaultView:a,i=r.v5Compat,s=void 0!==i&&i,l=o.history,u="POP",d=null,h=p();function p(){return(l.state||{idx:null}).idx}function f(){u="POP";let e=p(),t=null==e?null:e-h;h=e,d&&d({action:u,location:g.location,delta:t})}function m(e){return nt(e)}null==h&&(h=0,l.replaceState(c(c({},l.state),{},{idx:h}),""));let g={get action(){return u},get location(){return e(o,l)},listen(e){if(d)throw new Error("A history only accepts one active listener");return o.addEventListener(Ye,f),d=e,()=>{o.removeEventListener(Ye,f),d=null}},createHref:e=>t(o,e),createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){u="PUSH";let r=Ke(e)?e:Je(g.location,e,t);n&&n(r,e),h=p()+1;let a=Ge(r,h),i=g.createHref(r.mask||r);try{l.pushState(a,"",i)}catch(c){if(c instanceof DOMException&&"DataCloneError"===c.name)throw c;o.location.assign(i)}s&&d&&d({action:u,location:g.location,delta:1})},replace:function(e,t){u="REPLACE";let r=Ke(e)?e:Je(g.location,e,t);n&&n(r,e),h=p();let a=Ge(r,h),o=g.createHref(r.mask||r);l.replaceState(a,"",o),s&&d&&d({action:u,location:g.location,delta:0})},go:e=>l.go(e)};return g}function nt(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n="http://localhost";"undefined"!==typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),Xe(n,"
2No window.location.(origin|href) available to create URL");let r="string"===typeof e?e:Ze(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}new WeakMap;function rt(e,t){return at(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/",!1)}function at(e,t,n,r,a){let o=xt(("string"===typeof t?et(t):t).pathname||"/",n);if(null==o)return null;let i=null!==a&&void 0!==a?a:ot(e),s=null,l=bt(o);for(let c=0;null==s&&c<i.length;++c)s=gt(i[c],l,r);return s}function ot(e){let t=it(e);return function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(t),t}function it(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=function(e,o){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,s=arguments.length>3?arguments[3]:void 0,l={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(r)&&i)return;Xe(l.relativePath.startsWith(r),'Absolute route path "'.concat(l.relativePath,'" nested under path "').concat(r,'" is not valid. An absolute child route path must start with the combined path of all its parent routes.')),l.relativePath=l.relativePath.slice(r.length)}let c=Tt([r,l.relativePath]),u=n.concat(l);e.children&&e.children.length>0&&(Xe(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'.concat(c,'".')),it(e.children,t,u,c,i)),(null!=e.path||e.index)&&t.push({path:c,score:mt(c,e.index),routesMeta:u})};return e.forEach((e,t)=>{var n;if(""!==e.path&&null!==(n=e.path)&&void 0!==n&&n.includes("?"))for(let r of st(e.path))o(e,t,!0,r);else o(e,t)}),t}function st(e){let t=e.split("/");if(0===t.length)return[];let n=_e(t),r=n[0],a=Fe(n).slice(1),o=r.endsWith("?"),i=r.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];let s=st(a.join("/")),l=[];return l.push(...s.map(e=>""===e?i:[i,e].join("/"))),o&&l.push(...s),l.map(t=>e.startsWith("/")&&""===t?"/":t)}var lt=/^:[\w-]+$/,ct=3,ut=2,dt=1,ht=10,pt=-2,ft=e=>"*"===e;function mt(e,t){let n=e.split("/"),r=n.length;return n.some(ft)&&(r+=pt),t&&(r+=ut),n.filter(e=>!ft(e)).reduce((e,t)=>e+(lt.test(t)?ct:""===t?dt:ht),r)}function gt(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.routesMeta,a={},o="/",i=[];for(let s=0;s<r.length;++s){let e=r[s],l=s===r.length-1,c="/"===o?t:t.slice(o.length)||"/",u=yt({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),d=e.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=yt({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;
2Object.assign(a,u.params),i.push({params:a,pathname:Tt([o,u.pathname]),pathnameBase:At(Tt([o,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(o=Tt([o,u.pathnameBase]))}return i}function yt(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let n=Ie(vt(e.path,e.caseSensitive,e.end),2),r=n[0],a=n[1],o=t.match(r);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:a.reduce((e,t,n)=>{let r=t.paramName,a=t.isOptional;if("*"===r){let e=l[n]||"";s=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const o=l[n];return e[r]=a&&!o?void 0:(o||"").replace(/%2F/g,"/"),e},{}),pathname:i,pathnameBase:s,pattern:e}}function vt(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Qe("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'.concat(e,'" will be treated as if it were "').concat(e.replace(/\*$/,"/*"),'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "').concat(e.replace(/\*$/,"/*"),'".'));let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n,a,o)=>{if(r.push({paramName:t,isOptional:null!=n}),n){let t=o.charAt(a+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function bt(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return Qe(!1,'The URL path "'.concat(e,'" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (').concat(t,").")),e}}function xt(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}var wt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function kt(e,t){let n=Pt(t).split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function St(e,t,n,r){return"Cannot include a '".concat(e,"' character in a manually specified `to.").concat(t,"` field [").concat(JSON.stringify(r),"].  Please separate it out to the `to.").concat(n,'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.')}function Et(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function Nt(e){let t=Et(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function jt(e,t,n){let r,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];"string"===typeof e?r=et(e):(r=c({},e),Xe(!r.pathname||!r.pathname.includes("?"),St("?","pathname","search",r)),Xe(!r.pathname||!r.pathname.includes("#"),St("#","pathname","hash",r)),Xe(!r.search||!r.search.includes("#"),St("#","search","hash",r)));let o,i=""===e||""===r.pathname,s=i?"/":r.pathname;if(null==s)o=n;else{let e=t.length-1;if(!a&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;r.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",r="string"===typeof e?et(e):e,a=r.pathname,o=r.search,i=void 0===o?"":o,s=r.hash,l=void 0===s?"":s;return a?(a=Ct(a),t=a.startsWith("/")?kt(a.substring(1),"/"):kt(a,n)):t=n,{pathname:t,search:Rt(i),hash:Ot(l)}}(r,o),u=s&&"/"!==s&&s.endsWith("/"),d=(i||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!u&&!d||(l.pathname+="/"),l}var Ct=e=>e.replace(/\/\/+/g,"/"),Tt=e=>Ct(e.join("/")),Pt=e=>e.replace(/\/+$/,""),At=e=>Pt(e).replace(/^\/*/,"/"),Rt=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Ot=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var Ft=class{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Lt(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}function Dt(e){let t=e.map(e=>
2e.route.path).filter(Boolean);return Tt(t)||"/"}var Mt="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;function _t(e,t){let n=e;if("string"!==typeof n||!wt.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(Mt)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),o=xt(r.pathname,t);r.origin===e.origin&&null!=o?n=o+r.search+r.hash:a=!0}catch(o){Qe(!1,'<Link to="'.concat(n,'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.'))}return{absoluteURL:r,isExternal:a,to:n}}Symbol("Uninstrumented");Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var It=["POST","PUT","PATCH","DELETE"],zt=(new Set(It),["GET",...It]);new Set(zt),Symbol("ResetLoaderData");new WeakMap,new WeakMap,new WeakMap,new WeakMap;var Bt=t.createContext(null);Bt.displayName="DataRouter";var Ut=t.createContext(null);Ut.displayName="DataRouterState";var Vt=t.createContext(!1);function Wt(){return t.useContext(Vt)}var qt=t.createContext({isTransitioning:!1});qt.displayName="ViewTransition";var Ht=t.createContext(new Map);Ht.displayName="Fetchers";var Yt=t.createContext(null);Yt.displayName="Await";var Kt=t.createContext(null);Kt.displayName="Navigation";var $t=t.createContext(null);$t.displayName="Location";var Xt=t.createContext({outlet:null,matches:[],isDataRoute:!1});Xt.displayName="Route";var Qt=t.createContext(null);Qt.displayName="RouteError";var Gt="REACT_ROUTER_ERROR";function Jt(){return null!=t.useContext($t)}function Zt(){return Xe(Jt(),"useLocation() may be used only in the context of a <Router> component."),t.useContext($t).location}var en="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function tn(e){t.useContext(Kt).static||t.useLayoutEffect(e)}function nn(){return t.useContext(Xt).isDataRoute?function(){let e=mn("useNavigate").router,n=yn("useNavigate"),r=t.useRef(!1);tn(()=>{r.current=!0});let a=t.useCallback(async function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Qe(r.current,en),r.current&&("number"===typeof t?await e.navigate(t):await e.navigate(t,c({fromRouteId:n},a)))},[e,n]);return a}():function(){Xe(Jt(),"useNavigate() may be used only in the context of a <Router> component.");let e=t.useContext(Bt),n=t.useContext(Kt),r=n.basename,a=n.navigator,o=t.useContext(Xt).matches,i=Zt().pathname,s=JSON.stringify(Nt(o)),l=t.useRef(!1);tn(()=>{l.current=!0});let c=t.useCallback(function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Qe(l.current,en),!l.current)return;if("number"===typeof t)return void a.go(t);let o=jt(t,JSON.parse(s),i,"path"===n.relative);null==e&&"/"!==r&&(o.pathname="/"===o.pathname?r:Tt([r,o.pathname])),(n.replace?a.replace:a.push)(o,n.state,n)},[r,a,s,i,e]);return c}()}t.createContext(null);function rn(){var e;let n=t.useContext(Xt).matches,r=n[n.length-1];return null!==(e=null===r||void 0===r?void 0:r.params)&&void 0!==e?e:{}}function an(e){let n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).relative,r=t.useContext(Xt).matches,a=Zt().pathname,o=JSON.stringify(Nt(r));return t.useMemo(()=>jt(e,JSON.parse(o),a,"path"===n),[e,o,a,n])}function on(e,n,r){Xe(Jt(),"useRoutes() may be used only in the context of a <Router> component.");let a=t.useContext(Kt).navigator,o=t.useContext(Xt).matches,i=o[o.length-1],s=i?i.params:{},l=i?i.pathname:"/",u=i?i.pathnameBase:"/",d=i&&i.route;{let e=d&&d.path||"";xn(l,!d||e.endsWith("*")||e.endsWith("*?"),'You rendered descendant <Routes> (or called `useRoutes()`) at "'.concat(l,'" (under <Route path="').concat(e,'">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won\'t match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="').concat(e,'"> to <Route path="').concat("/"===e?"*":"".concat(e,"/*"),'">.'))}let h,p=Zt();if(n){var f;let e="string"===typeof n?et(n):n;Xe("/"===u||(null===(f=e.pathname)||void 0===f?void 0:f.startsWith(u)),'When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "'.concat(u,'" but pathname "').concat(e.pathname,'" was given in the `location` prop.')),h=e}else h=p;let m=h.pathname||"/",g=m;if("/"!==u){let e=u.replace(/^\//,"").split("/");g="/"+m.replace(/^\//,"").split("/").slice(e.length).join("/")}let y=r&&r.state.matches.length?r.state.matches.map(e=>Object.assign(e,{route:r.manifest[e.route.id]||e.route})):rt(e,{pathname:g});Qe(d||null!=y,'No routes matched location "'.concat(h.pathname).concat(h.search).concat(h.hash,'" ')),Qe(null==y||void 0!==y[y.length-1].route.element||void 0!==y[y.length-1].route.Component||void 0!==y[y.length-1].route.lazy,'Matched leaf route at location "'.concat(h.pathname).concat(h.search).concat(h.hash,'" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));let v=pn(y&&y.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:Tt([u,a.encodeLocation?a.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:Tt([u,a.encodeLocation?a.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),o,r);return n&&v?t.createElement($t.Provider,{value:{location:c({pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0},h),navigationType:"POP"}},v):v}function sn(){let e=vn(),n=Lt(e)?"".concat(e.status," ").concat(e.statusText):e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:a},i={padding:"2px 4px",backgroundColor:a},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=t.createElement(t.Fragment,null,t.createElement("p",null,"\ud83d\udcbf Hey developer \ud83d\udc4b"),t.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",t.createElement("code",{style:i},"ErrorBoundary")," or"," ",t.createElement("code",{style:i},"errorElement")," prop on your route.")),t.createElement(t.Fragment,null,t.createElement("h2",null,"Unexpected Application 
2Error!"),t.createElement("h3",{style:{fontStyle:"italic"}},n),r?t.createElement("pre",{style:o},r):null,s)}var ln=t.createElement(sn,null),cn=class extends t.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"===typeof e&&e&&"digest"in e&&"string"===typeof e.digest){const t=function(e){if(e.startsWith("".concat(Gt,":").concat("ROUTE_ERROR_RESPONSE",":{")))try{let t=JSON.parse(e.slice(40));if("object"===typeof t&&t&&"number"===typeof t.status&&"string"===typeof t.statusText)return new Ft(t.status,t.statusText,t.data)}catch(t){}}(e.digest);t&&(e=t)}let n=void 0!==e?t.createElement(Xt.Provider,{value:this.props.routeContext},t.createElement(Qt.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?t.createElement(dn,{error:e},n):n}};cn.contextType=Vt;var un=new WeakMap;function dn(e){let n=e.children,r=e.error,a=t.useContext(Kt).basename;if("object"===typeof r&&r&&"digest"in r&&"string"===typeof r.digest){let e=function(e){if(e.startsWith("".concat(Gt,":").concat("REDIRECT",":{")))try{let t=JSON.parse(e.slice(28));if("object"===typeof t&&t&&"number"===typeof t.status&&"string"===typeof t.statusText&&"string"===typeof t.location&&"boolean"===typeof t.reloadDocument&&"boolean"===typeof t.replace)return t}catch(t){}}(r.digest);if(e){let n=un.get(r);if(n)throw n;let o=_t(e.location,a);if(Mt&&!un.get(r)){if(!o.isExternal&&!e.reloadDocument){const t=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace}));throw un.set(r,t),t}window.location.href=o.absoluteURL||o.to}return t.createElement("meta",{httpEquiv:"refresh",content:"0;url=".concat(o.absoluteURL||o.to)})}}return n}function hn(e){let n=e.routeContext,r=e.match,a=e.children,o=t.useContext(Bt);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),t.createElement(Xt.Provider,{value:n},a)}function pn(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,a=null===r||void 0===r?void 0:r.state;if(null==e){if(!a)return null;if(a.errors)e=a.matches;else{if(0!==n.length||a.initialized||!(a.matches.length>0))return null;e=a.matches}}let o=e,i=null===a||void 0===a?void 0:a.errors;if(null!=i){let e=o.findIndex(e=>e.route.id&&void 0!==(null===i||void 0===i?void 0:i[e.route.id]));Xe(e>=0,"Could not find a matching route for errors on route IDs: ".concat(Object.keys(i).join(","))),o=o.slice(0,Math.min(o.length,e+1))}let s=!1,l=-1;if(r&&a){s=a.renderFallback;for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let e=a.loaderData,n=a.errors,i=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!n||void 0===n[t.route.id]);if(t.route.lazy||i){r.isStatic&&(s=!0),o=l>=0?o.slice(0,l+1):[o[0]];break}}}}let c=null===r||void 0===r?void 0:r.onError,u=a&&c?(e,t)=>{var n,r;c(e,{location:a.location,params:null!==(n=null===(r=a.matches)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.params)&&void 0!==n?n:{},pattern:Dt(a.matches),errorInfo:t})}:void 0;return o.reduceRight((e,r,c)=>{let d,h=!1,p=null,f=null;a&&(d=i&&r.route.id?i[r.route.id]:void 0,p=r.route.errorElement||ln,s&&(l<0&&0===c?(xn("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,f=null):l===c&&(h=!0,f=r.route.hydrateFallbackElement||null)));let m=n.concat(o.slice(0,c+1)),g=()=>{let n;return n=d?p:h?f:r.route.Component?t.createElement(r.route.Component,null):r.route.element?r.route.element:e,t.createElement(hn,{match:r,routeContext:{outlet:e,matches:m,isDataRoute:null!=a},children:n})};return a&&(r.route.ErrorBoundary||r.route.errorElement||0===c)?t.createElement(cn,{location:a.location,revalidation:a.revalidation,component:p,error:d,children:g(),routeC
2ontext:{outlet:null,matches:m,isDataRoute:!0},onError:u}):g()},null)}function fn(e){return"".concat(e," must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.")}function mn(e){let n=t.useContext(Bt);return Xe(n,fn(e)),n}function gn(e){let n=t.useContext(Ut);return Xe(n,fn(e)),n}function yn(e){let n=function(e){let n=t.useContext(Xt);return Xe(n,fn(e)),n}(e),r=n.matches[n.matches.length-1];return Xe(r.route.id,"".concat(e,' can only be used on routes that contain a unique "id"')),r.route.id}function vn(){var e;let n=t.useContext(Qt),r=gn("useRouteError"),a=yn("useRouteError");return void 0!==n?n:null===(e=r.errors)||void 0===e?void 0:e[a]}var bn={};function xn(e,t,n){t||bn[e]||(bn[e]=!0,Qe(!1,n))}var wn={};function kn(e,t){e||wn[t]||(wn[t]=!0,console.warn(t))}r.useOptimistic;t.memo(Sn);function Sn(e){let t=e.routes,n=e.manifest,r=e.future;return on(t,void 0,{manifest:n,state:e.state,isStatic:e.isStatic,onError:e.onError,future:r})}function En(e){Xe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Nn(e){let n=e.basename,r=void 0===n?"/":n,a=e.children,o=void 0===a?null:a,i=e.location,s=e.navigationType,l=void 0===s?"POP":s,c=e.navigator,u=e.static,d=void 0!==u&&u,h=e.useTransitions;Xe(!Jt(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=r.replace(/^\/*/,"/"),f=t.useMemo(()=>({basename:p,navigator:c,static:d,useTransitions:h,future:{}}),[p,c,d,h]);"string"===typeof i&&(i=et(i));let m=i,g=m.pathname,y=void 0===g?"/":g,v=m.search,b=void 0===v?"":v,x=m.hash,w=void 0===x?"":x,k=m.state,S=void 0===k?null:k,E=m.key,N=void 0===E?"default":E,j=m.mask,C=t.useMemo(()=>{let e=xt(y,p);return null==e?null:{location:{pathname:e,search:b,hash:w,state:S,key:N,mask:j},navigationType:l}},[p,y,b,w,S,N,l,j]);return Qe(null!=C,'<Router basename="'.concat(p,'"> is not able to match the URL "').concat(y).concat(b).concat(w,"\" because it does not start with the basename, so the <Router> won't render anything.")),null==C?null:t.createElement(Kt.Provider,{value:f},t.createElement($t.Provider,{children:o,value:C}))}function jn(e){let t=e.children,n=e.location;return on(Cn(t),n)}t.Component;function Cn(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[];return t.Children.forEach(e,(e,a)=>{if(!t.isValidElement(e))return;let o=[...n,a];if(e.type===t.Fragment)return void r.push.apply(r,Cn(e.props.children,o));Xe(e.type===En,"[".concat("string"===typeof e.type?e.type:e.type.name,"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>")),Xe(!e.props.index||!e.props.children,"An index route cannot have child routes.");let i={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=Cn(e.props.children,o)),r.push(i)}),r}var Tn="get",Pn="application/x-www-form-urlencoded";function An(e){return"undefined"!==typeof HTMLElement&&e instanceof HTMLElement}function Rn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}var On=null;var Fn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ln(e){return null==e||Fn.has(e)?e:(Qe(!1,'"'.concat(e,'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` and will default to "').concat(Pn,'"')),null)}function Dn(e,t){let n,r,a,o,i;if(An(s=e)&&"form"===s.tagName.toLowerCase()){let i=e.getAttribute("action");r=i?xt(i,t):null,n=e.getAttribute("method")||Tn,a=Ln(e.getAttribute("enctype"))||Pn,o=new FormData(e)}else if(function(e){return An(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return An(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||i.getAttribute("action");if(r=s?xt(s,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||Tn,a=Ln(e.getAttribute("formenctype"))||Ln(i.getAttribute("enctype"))||Pn,o=new FormData(i,e),!function(){if(null===On)try{new FormData(document.createElement("form"),0),On=!1}catch(e){On=!0}return On}()){let t=e.name,n=e.type,r=e.value;if("image"===n){let e=t?"".concat(t,"."):"";o.append("".concat(e,"x"),"0"),o.append("".concat(e,"y"),"0")}else t&&o.append(t,r)}}else{if(An(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Tn,r=null,a=Pn,i=e}var s;return o&&"text/plain"===a&&(i=o,o=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:o,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Mn(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}Symbol("SingleFetchRedirect");function _n(e,t,n,r){let a="string"===typeof e?new URL(e,"undefined"===typeof window?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname="".concat(a.pathname,"_.").concat(r):a.pathname="".concat(a.pathname,".").concat(r):"/"===a.pathname?a.pathname="_root.".concat(r):t&&"/"===xt(a.pathname,t)?a.pathname="".concat(Pt(t),"/_root.").concat(r):a.pathname="".concat(Pt(a.pathname),".").concat(r),a}async function In(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error("Error loading route module `".concat(e.module,"`, reloading page...")),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.
2isSpaMode,window.location.reload(),new Promise(()=>{})}}function zn(e){return null!=e&&"string"===typeof e.page}function Bn(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"===typeof e.imageSrcSet&&"string"===typeof e.imageSizes:"string"===typeof e.rel&&"string"===typeof e.href)}function Un(e,t,n,r,a,o){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>{var r;return n[t].pathname!==e.pathname||(null===(r=n[t].route.path)||void 0===r?void 0:r.endsWith("*"))&&n[t].params["*"]!==e.params["*"]};return"assets"===o?t.filter((e,t)=>i(e,t)||s(e,t)):"data"===o?t.filter((t,o)=>{let l=r.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(i(t,o)||s(t,o))return!0;if(t.route.shouldRevalidate){var c;let r=t.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:(null===(c=n[0])||void 0===c?void 0:c.params)||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"===typeof r)return r}return!0}):[]}function Vn(e,t){let n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).includeHydrateFallback;return r=e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let a=[r.module];return r.clientActionModule&&(a=a.concat(r.clientActionModule)),r.clientLoaderModule&&(a=a.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(a=a.concat(r.hydrateFallbackModule)),r.imports&&(a=a.concat(r.imports)),a}).flat(1),[...new Set(r)];var r}function Wn(e,t){let n=new Set,r=new Set(t);return e.reduce((e,a)=>{if(t&&!zn(a)&&"script"===a.as&&a.href&&r.has(a.href))return e;let o=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(a));return n.has(o)||(n.add(o),e.push({key:o,link:a})),e},[])}function qn(e,t){return"lazy"===e.mode&&!0===t}function Hn(){let e=t.useContext(Bt);return Mn(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Yn(){let e=t.useContext(Ut);return Mn(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Kn=t.createContext(void 0);function $n(){let e=t.useContext(Kn);return Mn(e,"You must render this element inside a <HydratedRouter> element"),e}function Xn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Qn(e,t,n){if(n&&!tr)return[e[0]];if(t){let n=e.findIndex(e=>void 0!==t[e.route.id]);return e.slice(0,n+1)}return e}Kn.displayName="FrameworkContext";function Gn(e){let n=e.page,r=Oe(e,Be),a=Wt(),o=Hn().router,i=t.useMemo(()=>rt(o.routes,n,o.basename),[o.routes,n,o.basename]);return i?a?t.createElement(Zn,c({page:n,matches:i},r)):t.createElement(er,c({page:n,matches:i},r)):null}function Jn(e){let n=$n(),r=n.manifest,a=n.routeModules,o=Ie(t.useState([]),2),i=o[0],s=o[1];return t.useEffect(()=>{let t=!1;return async function(e,t,n){return Wn((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await In(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Bn).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?c(c({},e),{},{rel:"prefetch",as:"style"}):c(c({},e),{},{rel:"prefetch"})))}(e,r,a).then(e=>{t||s(e)}),()=>{t=!0}},[e,r,a]),i}function Zn(e){let n=e.page,r=e.matches,a=Oe(e,Ue),o=Zt(),i=$n().future,s=Hn().basename,l=t.useMemo(()=>{if(n===o.pathname+o.search+o.hash)return[];let e=_n(n,s,i.unstable_trailingSlashAwareDataRequests,"rsc"),t=!1,a=[];for(let n of r)"function"===typeof n.route.shouldRevalidate?t=!0:a.push(n.route.id);return t&&a.length>0&&e.searchParams.set("_routes",a.join(",")),[e.pathname+e.search]},[s,i.unstable_trailingSlashAwareDataRequests,n,o,r]);return t.createElement(t.Fragment,null,l.map(e=>t.createElement("link",c({key:e,rel:"prefetch",as:"fetch",href:e},a))))}function er(e){let n=e.page,r=e.matches,a=Oe(e,Ve),o=Zt(),i=$n(),s=i.future,l=i.manifest,u=i.routeModules,d=Hn().basename,h=Yn(),p=h.loaderData,f=h.matches,m=t.useMemo(()=>Un(n,r,f,l,o,"data"),[n,r,f,l,o]),g=t.useMemo(()=>Un(n,r,f,l,o,"assets"),[n,r,f,l,o]),y=t.useMemo(()=>{if(n===o.pathname+o.search+o.hash)return[];let e=new Set,t=!1;if(r.forEach(n=>{var r;let a=l.routes[n.route.id];a&&a.hasLoader&&(!m.some(e=>e.route.id===n.route.id)&&n.route.id in p&&null!==(r=u[n.route.id])&&void 0!==r&&r.shouldRevalidate||a.hasCl
2ientLoader?t=!0:e.add(n.route.id))}),0===e.size)return[];let a=_n(n,d,s.unstable_trailingSlashAwareDataRequests,"data");return t&&e.size>0&&a.searchParams.set("_routes",r.filter(t=>e.has(t.route.id)).map(e=>e.route.id).join(",")),[a.pathname+a.search]},[d,s.unstable_trailingSlashAwareDataRequests,p,o,l,m,r,n,u]),v=t.useMemo(()=>Vn(g,l),[g,l]),b=Jn(g);return t.createElement(t.Fragment,null,y.map(e=>t.createElement("link",c({key:e,rel:"prefetch",as:"fetch",href:e},a))),v.map(e=>t.createElement("link",c({key:e,rel:"modulepreload",href:e},a))),b.map(e=>{var n;let r=e.key,o=e.link;return t.createElement("link",c(c({key:r,nonce:a.nonce},o),{},{crossOrigin:null!==(n=o.crossOrigin)&&void 0!==n?n:a.crossOrigin}))}))}var tr=!1;function nr(e){let n=$n(),r=n.manifest,a=n.serverHandoffString,o=n.isSpaMode,i=n.renderMeta,s=n.routeDiscovery,l=n.ssr,u=Hn(),d=u.router,h=u.static,p=u.staticContext,f=Yn().matches,m=Wt(),g=qn(s,l);i&&(i.didRenderScripts=!0);let y=Qn(f,null,o);t.useEffect(()=>{0},[]);let v=t.useMemo(()=>{var n;if(m)return null;let o=p?"window.__reactRouterContext = ".concat(a,";").concat("window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());"):" ",i=h?"".concat(null!==r.hmr&&void 0!==n&&n.runtime?"import ".concat(JSON.stringify(r.hmr.runtime),";"):"").concat(g?"":"import ".concat(JSON.stringify(r.url)),";\n").concat(y.map((e,t)=>{let n="route".concat(t),a=r.routes[e.route.id];Mn(a,"Route ".concat(e.route.id," not found in manifest"));let o=a.clientActionModule,i=a.clientLoaderModule,s=a.clientMiddlewareModule,l=a.hydrateFallbackModule,c=a.module,u=[...o?[{module:o,varName:"".concat(n,"_
2clientAction")}]:[],...i?[{module:i,varName:"".concat(n,"_clientLoader")}]:[],...s?[{module:s,varName:"".concat(n,"_clientMiddleware")}]:[],...l?[{module:l,varName:"".concat(n,"_HydrateFallback")}]:[],{module:c,varName:"".concat(n,"_main")}];return 1===u.length?"import * as ".concat(n," from ").concat(JSON.stringify(c),";"):[u.map(e=>"import * as ".concat(e.varName,' from "').concat(e.module,'";')).join("\n"),"const ".concat(n," = {").concat(u.map(e=>"...".concat(e.varName)).join(","),"};")].join("\n")}).join("\n"),"\n  ").concat(g?"window.__reactRouterManifest = ".concat(JSON.stringify(function(e,t){let n=e.sri,r=Oe(e,ze),a=new Set(t.state.matches.map(e=>e.route.id)),o=t.state.location.pathname.split("/").filter(Boolean),i=["/"];for(o.pop();o.length>0;)i.push("/".concat(o.join("/"))),o.pop();i.forEach(e=>{let n=at(t.routes,e,t.basename||"/",!1,t.branches);n&&n.forEach(e=>a.add(e.route.id))});let s=[...a].reduce((e,t)=>Object.assign(e,{[t]:r.routes[t]}),{});return c(c({},r),{},{routes:s,sri:!!n||void 0})}(r,d),null,2),";"):"","\n  window.__reactRouterRouteModules = {").concat(y.map((e,t)=>"".concat(JSON.stringify(e.route.id),":route").concat(t)).join(","),"};\n\nimport(").concat(JSON.stringify(r.entry.module),");"):" ";return t.createElement(t.Fragment,null,t.createElement("script",c(c({},e),{},{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:o},type:void 0})),t.createElement("script",c(c({},e),{},{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:i},type:"module",async:!0})))},[]),b=tr||m?[]:[...new Set(r.entry.imports.concat(Vn(y,r,{includeHydrateFallback:!0})))],x="object"===typeof r.sri?r.sri:{};return kn(!m,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),tr||m?null:t.createElement(t.Fragment,null,"object"===typeof r.sri?t.createElement("script",c(c({},e),{},{"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:x})}})):null,g?null:t.createElement("link",{rel:"modulepreload",href:r.url,crossOrigin:e.crossOrigin,integrity:x[r.url],nonce:e.nonce,suppressHydrationWarning:!0}),t.createElement("link",{rel:"modulepreload",href:r.entry.module,crossOrigin:e.crossOrigin,integrity:x[r.entry.module],nonce:e.nonce,suppressHydrationWarning:!0}),b.map(n=>t.createElement("link",{key:n,rel:"modulepreload",href:n,crossOrigin:e.crossOrigin,integrity:x[n],nonce:e.nonce,suppressHydrationWarning:!0})),v)}function rr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach(t=>{"function"===typeof t?t(e):null!=t&&(t.current=e)})}}t.Component;function ar(e){let n=e.error,r=e.isOutsideRemixApp;console.error(n);let a,o=t.createElement("script",{dangerouslySetInnerHTML:{__html:'\n        console.log(\n          "\ud83d\udcbf Hey developer \ud83d\udc4b. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n        );\n      '}});if(Lt(n))return t.createElement(or,{title:"Unhandled Thrown Response!"},t.createElement("h1",{style:{fontSize:"24px"}},n.status," ",n.statusText),o);if(n instanceof Error)0;else{let e=null==n?"Unknown Error":"object"===typeof n&&"toString"in n?n.toString():JSON.stringify(n);new Error(e)}return t.createElement(or,{title:"Application Error!",isOutsideRemixApp:r},t.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),t.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},a.stack),o)}function or(e){var n;let r=e.title,a=e.renderScripts,o=e.isOutsideRemixApp,i=e.children;return null!==$n().routeModules.root&&void 0!==n&&n.Layout&&!o?i:t.createElement("html",{lang:"en"},t.createElement("head",null,t.createElement("meta",{charSet:"utf-8"}),t.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),t.createElement("title",null,r)),t.createElement("body",null,t.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},i,a?t.createElement(nr,null):null)))}var ir="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;try{ir&&(window.__reactRouterVersion="7.15.1")}catch(qy){}function sr(e){let n=e.basename,r=e.children,a=e.useTransitions,o=e.window,i=t.useRef();null==i.current&&(i.current=$e({window:o,v5Compat:!0}));let s=i.current,l=Ie(t.useState({action:s.action,location:s.location}),2),c=l[0],u=l[1],d=t.useCallback(e=>{!1===a?u(e):t.startTransition(()=>u(e))},[a]);return t.useLayoutEffect(()=>s.listen(d),[s,d]),t.createElement(Nn,{basename:n,children:r,location:c.location,navigationType:c.action,navigator:s,useTransitions:a})}var lr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cr=t.forwardRef(function(e,n){let r=e.onClick,a=e.discover,o=void 0===a?"render":a,i=e.prefetch,s=void 0===i?"none":i,l=e.relative,u=e.reloadDocument,d=e.replace,h=e.mask,p=e.state,f=e.target,m=e.to,g=e.preventScrollReset,y=e.viewTransition,v=e.defaultShouldRevalidate,b=Oe(e,We),x=t.useContext(Kt),w=x.basename,k=x.navigator,S=x.useTransitions,E="string"===typeof m&&lr.test(m),N=_t(m,w);m=N.to;let j=function(e){let n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).relative;Xe(Jt(),"useHref() may be used only in the context of a <Router> component.");let r=t.useContext(Kt),a=r.basename,o=r.navigator,i=an(e,{relative:n}),s=i.hash,l=i.pathname,c=i.search,u=l;return"/"!==a&&(u="/"===l?a:Tt([a,l])),o.createHref({pathname:u,search:c,hash:s})}(m,{relative:l}),C=Zt(),T=null;if(h){let e=jt(h,[],C.mask?C.mask.pathname:"/",!0);"/"!==w&&(e.pathname="/"===e.pathname?w:Tt([w,e.pathname])),T=k.createHref(e)}let P=function(e,n){let r=t.useContext(Kn),a=Ie(t.useState(!1),2),o=a[0],i=a[1],s=Ie(t.useState(!1),2),l=s[0],c=s[1],u=n.onFocus,d=n.onBlur,h=n.onMouseEnter,p=n.onMouseLeave,f=n.onTouchStart,m=t.useRef(null);t.useEffect(()=>{if("render"===e&&c(!0),"viewport"===e){let e=new IntersectionObserver(e=>
2{e.forEach(e=>{c(e.isIntersecting)})},{threshold:.5});return m.current&&e.observe(m.current),()=>{e.disconnect()}}},[e]),t.useEffect(()=>{if(o){let e=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(e)}}},[o]);let g=()=>{i(!0)},y=()=>{i(!1),c(!1)};return r?"intent"!==e?[l,m,{}]:[l,m,{onFocus:Xn(u,g),onBlur:Xn(d,y),onMouseEnter:Xn(h,g),onMouseLeave:Xn(p,y),onTouchStart:Xn(f,g)}]:[!1,m,{}]}(s,b),A=Ie(P,3),R=A[0],O=A[1],F=A[2],L=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.target,a=n.replace,o=n.mask,i=n.state,s=n.preventScrollReset,l=n.relative,c=n.viewTransition,u=n.defaultShouldRevalidate,d=n.useTransitions,h=nn(),p=Zt(),f=an(e,{relative:l});return t.useCallback(n=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(n,r)){n.preventDefault();let r=void 0!==a?a:Ze(p)===Ze(f),m=()=>h(e,{replace:r,mask:o,state:i,preventScrollReset:s,relative:l,viewTransition:c,defaultShouldRevalidate:u});d?t.startTransition(()=>m()):m()}},[p,h,f,a,o,i,r,e,s,l,c,u,d])}(m,{replace:d,mask:h,state:p,target:f,preventScrollReset:g,relative:l,viewTransition:y,defaultShouldRevalidate:v,useTransitions:S});let D=!(N.isExternal||u),M=t.createElement("a",c(c(c({},b),F),{},{href:(D?T:void 0)||N.absoluteURL||j,onClick:D?function(e){r&&r(e),e.defaultPrevented||L(e)}:r,ref:rr(n,O),target:f,"data-discover":E||"render"!==o?void 0:"true"}));return R&&!E?t.createElement(t.Fragment,null,M,t.createElement(Gn,{page:j})):M});cr.displayName="Link",t.forwardRef(function(e,n){let r=e["aria-current"],a=void 0===r?"page":r,o=e.caseSensitive,i=void 0!==o&&o,s=e.className,l=void 0===s?"":s,u=e.end,d=void 0!==u&&u,h=e.style,p=e.to,f=e.viewTransition,m=e.children,g=Oe(e,qe),y=an(p,{relative:g.relative}),v=Zt(),b=t.useContext(Ut),x=t.useContext(Kt),w=x.navigator,k=x.basename,S=null!=b&&function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.relative,a=t.useContext(qt);Xe(null!=a,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let o=hr("useViewTransitionState").basename,i=an(e,{relative:r});if(!a.isTransitioning)return!1;let s=xt(a.currentLocation.pathname,o)||a.currentLocation.pathname,l=xt(a.nextLocation.pathname,o)||a.nextLocation.pathname;return null!=yt(i.pathname,l)||null!=yt(i.pathname,s)}(y)&&!0===f,E=w.encodeLocation?w.encodeLocation(y).pathname:y.pathname,N=v.pathname,j=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;i||(N=N.toLowerCase(),j=j?j.toLowerCase():null,E=E.toLowerCase()),j&&k&&(j=xt(j,k)||j);const C="/"!==E&&E.endsWith("/")?E.length-1:E.length;let T,P=N===E||!d&&N.startsWith(E)&&"/"===N.charAt(C),A=null!=j&&(j===E||!d&&j.startsWith(E)&&"/"===j.charAt(E.length)),R={isActive:P,isPending:A,isTransitioning:S},O=P?a:void 0;T="function"===typeof l?l(R):[l,P?"active":null,A?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let F="function"===typeof h?h(R):h;return t.createElement(cr,c(c({},g),{},{"aria-current":O,className:T,ref:n,style:F,to:p,viewTransition:f}),"function"===typeof m?m(R):m)}).displayName="NavLink";var ur=t.forwardRef((e,n)=>{let r=e.discover,a=void 0===r?"render":r,o=e.fetcherKey,i=e.navigate,s=e.reloadDocument,l=e.replace,u=e.state,d=e.method,h=void 0===d?Tn:d,p=e.action,f=e.onSubmit,m=e.relative,g=e.preventScrollReset,y=e.viewTransition,v=e.defaultShouldRevalidate,b=Oe(e,He),x=t.useContext(Kt).useTransitions,w=gr(),k=function(e){let n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).relative,r=t.useContext(Kt).basename,a=t.useContext(Xt);Xe(a,"useFormAction must be used inside a RouteContext");let o=Ie(a.matches.slice(-1),1)[0],i=c({},an(e||".",{relative:n})),s=Zt();if(null==e){i.search=s.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();i.search=n?"?".concat(n):""}}e&&"."!==e||!o.route.index||(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index");"/"!==r&&(i.pathname="/"===i.pathname?r:Tt([r,i.pathname]));return Ze(i)}(p,{relative:m}),S="get"===h.toLowerCase()?"get":"post",E="string"===typeof p&&lr.test(p);return t.createElement("form",c(c({ref:n,method:S,action:k,onSubmit:s?f:e=>{if(f&&f(e),e.defaultPrevented)return;e.preventDefault();let n=e.nativeEvent.submitter,r=(null===n||void 0===n?void 0:n.getAttribute("formmethod"))||h,a=()=>w(n||e.currentTarget,{fetcherKey:o,method:r,navigate:i,replace:l,state:u,relative:m,preventScrollReset:g,viewTransition:y,defaultShouldRevalidate:v});x&&!1!==i?t.startTransition(()=>a()):a()}},b),{},{"data-discover":E||"render"!==a?void 0:"true"}))});function dr(e){return"".concat(e," must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.")}function hr(e){let n=t.useContext(Bt);return Xe(n,dr(e)),n}function pr(e){Qe("undefined"!==typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let n=t.useRef(Rn(e)),r=t.useRef(!1),a=Zt(),o=t.useMemo(()=>function(e,t){let n=Rn(e);return t&&t.forEach((e,r)=>
2{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}(a.search,r.current?null:n.current),[a.search]),i=nn(),s=t.useCallback((e,t)=>{const n=Rn("function"===typeof e?e(new URLSearchParams(o)):e);r.current=!0,i("?"+n,t)},[i,o]);return[o,s]}ur.displayName="Form";var fr=0,mr=()=>"__".concat(String(++fr),"__");function gr(){let e=hr("useSubmit").router,n=t.useContext(Kt).basename,r=yn("useRouteId"),a=e.fetch,o=e.navigate;return t.useCallback(async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=Dn(e,n),s=i.action,l=i.method,c=i.encType,u=i.formData,d=i.body;if(!1===t.navigate){let e=t.fetcherKey||mr();await a(e,r,t.action||s,{defaultShouldRevalidate:t.defaultShouldRevalidate,preventScrollReset:t.preventScrollReset,formData:u,body:d,formMethod:t.method||l,formEncType:t.encType||c,flushSync:t.flushSync})}else await o(t.action||s,{defaultShouldRevalidate:t.defaultShouldRevalidate,preventScrollReset:t.preventScrollReset,formData:u,body:d,formMethod:t.method||l,formEncType:t.encType||c,replace:t.replace,state:t.state,fromRouteId:r,flushSync:t.flushSync,viewTransition:t.viewTransition})},[a,o,n,r])}var yr="1.3.26";function vr(e,t,n){return Math.max(e,Math.min(t,n))}var br=class{constructor(){s(this,"isRunning",!1),s(this,"value",0),s(this,"from",0),s(this,"to",0),s(this,"currentTime",0),s(this,"lerp",void 0),s(this,"duration",void 0),s(this,"easing",void 0),s(this,"onUpdate",void 0)}advance(e){var t;if(!this.isRunning)return;let n=!1;if(this.duration&&this.easing){this.currentTime+=e;const t=vr(0,this.currentTime/this.duration,1);n=t>=1;const r=n?1:this.easing(t);this.value=this.from+(this.to-this.from)*r}else this.lerp?(this.value=function(e,t,n,r){return function(e,t,n){return(1-n)*e+n*t}(e,t,1-Math.exp(-n*r))}(this.value,this.to,60*this.lerp,e),Math.round(this.value)===Math.round(this.to)&&(this.value=this.to,n=!0)):(this.value=this.to,n=!0);n&&this.stop(),null===(t=this.onUpdate)||void 0===t||t.call(this,this.value,n)}stop(){this.isRunning=!1}fromTo(e,t,n){let r=n.lerp,a=n.duration,o=n.easing,i=n.onStart,s=n.onUpdate;this.from=this.value=e,this.to=t,this.lerp=r,this.duration=a,this.easing=o,this.currentTime=0,this.isRunning=!0,null===i||void 0===i||i(),this.onUpdate=s}};var xr=class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.autoResize,a=void 0===r||r,o=n.debounce,i=void 0===o?250:o;s(this,"width",0),s(this,"height",0),s(this,"scrollHeight",0),s(this,"scrollWidth",0),s(this,"debouncedResize",void 0),s(this,"wrapperResizeObserver",void 0),s(this,"contentResizeObserver",void 0),s(this,"resize",()=>{this.onWrapperResize(),this.onContentResize()}),s(this,"onWrapperResize",()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)}),s(this,"onContentResize",()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)}),this.wrapper=e,this.content=t,a&&(this.debouncedResize=function(e,t){let n;return function(){for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];clearTimeout(n),n=setTimeout(()=>{n=void 0,e.apply(this,a)},t)}}(this.resize,i),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){var e,t;null===(e=this.wrapperResizeObserver)||void 0===e||e.disconnect(),null===(t=this.contentResizeObserver)||void 0===t||t.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize)}get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},wr=class{constructor(){s(this,"events",{})}emit(e){const t=this.events[e]||[];for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];for(let i=0,s=t.length;i<s;i++){var o;null===(o=t[i])||void 0===o||o.call(t,...r)}}on(e,t){return this.events[e]?this.events[e].push(t):this.events[e]=[t],()=>{var n;this.events[e]=null===(n=this.events[e])||void 0===n?void 0:n.filter(e=>t!==e)}}off(e,t){var n;this.events[e]=null===(n=this.events[e])||void 0===n?void 0:n.filter(e=>t!==e)}destroy(){this.events={}}};const kr=100/6,Sr={passive:!1};function Er(e,t){return 1===e?kr:2===e?t:1}var Nr=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{wheelMultiplier:1,touchMultiplier:1};s(this,"touchStart",{x:0,y:0}),s(this,"lastDelta",{x:0,y:0}),s(this,"window",{width:0,height:0}),s(this,"emitter",new wr),s(this,"onTouchStart",e=>{const t=e.targetTouches?e.targetTouches[0]:e,n=t.clientX,r=t.clientY;this.touchStart.x=n,this.touchStart.y=r,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:e})}),s(this,"onTouchMove",e=>{const t=e.targetTouches?e.targetTouches[0]:e,n=t.clientX,r=t.clientY,a=-(n-this.touchStart.x)*this.options.touchMultiplier,o=-(r-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=n,this.touchStart.y=r,this.lastDelta={x:a,y:o},this.emitter.emit("scroll",{deltaX:a,deltaY:o,event:e})}),s(this,"onTouchEnd",e=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})}),s(this,"onWheel",e=>{let t=e.deltaX,n=e.deltaY,r=e.deltaMode;t*=Er(r,this.window.width),n*=Er(r,this.window.height),t*=this.options.wheelMultiplier,n*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:t,deltaY:n,event:e})}),s(this,"onWindowResize",()=>{this.window={width:window.innerWidth,height:window.innerHeight}}),this.element=e,this.options=t,window.addEventListener("resize",this.onWindowResize),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,Sr),this.element.addEventListener("touchstart",this.onTouchStart,Sr),this.element.addEventListener("touchmove",this.onTouchMove,Sr),this.element.addEventListener("touchend",this.onTouchEnd,Sr)}on(e,t){return this.emitter.on(e,t)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize),this.element.removeEventListener("wheel",this.onWheel,Sr),this.element.removeEventListener("touchstart",this.onTouchStart,Sr),this.element.removeEventListener("touchmove",this.onTouchMove,Sr),this.element.removeEventListener("touchend",this.onTouchEnd,Sr)}};const jr=e=>Math.min(1,1.001-2**(-10*e));
2var Cr=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.wrapper,n=void 0===t?window:t,r=e.content,a=void 0===r?document.documentElement:r,o=e.eventsTarget,i=void 0===o?n:o,l=e.smoothWheel,u=void 0===l||l,d=e.syncTouch,h=void 0!==d&&d,p=e.syncTouchLerp,f=void 0===p?.075:p,m=e.touchInertiaExponent,g=void 0===m?1.7:m,y=e.duration,v=e.easing,b=e.lerp,x=void 0===b?.1:b,w=e.infinite,k=void 0!==w&&w,S=e.orientation,E=void 0===S?"vertical":S,N=e.gestureOrientation,j=void 0===N?"horizontal"===E?"both":"vertical":N,C=e.touchMultiplier,T=void 0===C?1:C,P=e.wheelMultiplier,A=void 0===P?1:P,R=e.autoResize,O=void 0===R||R,F=e.prevent,L=e.virtualScroll,D=e.overscroll,M=void 0===D||D,_=e.autoRaf,I=void 0!==_&&_,z=e.anchors,B=void 0!==z&&z,U=e.autoToggle,V=void 0!==U&&U,W=e.allowNestedScroll,q=void 0!==W&&W,H=e.__experimental__naiveDimensions,Y=void 0!==H&&H,K=e.naiveDimensions,$=void 0===K?Y:K,X=e.stopInertiaOnNavigate,Q=void 0!==X&&X,G=e.respectReducedMotion,J=void 0===G||G;s(this,"_isScrolling",!1),s(this,"_isStopped",!1),s(this,"_isLocked",!1),s(this,"_preventNextNativeScrollEvent",!1),s(this,"_resetVelocityTimeout",null),s(this,"_rafId",null),s(this,"_isDraggingSelection",!1),s(this,"reducedMotionMediaQuery",window.matchMedia("(prefers-reduced-motion: reduce)")),s(this,"isTouching",void 0),s(this,"isIos",void 0),s(this,"time",0),s(this,"userData",{}),s(this,"lastVelocity",0),s(this,"velocity",0),s(this,"direction",0),s(this,"options",void 0),s(this,"targetScroll",void 0),s(this,"animatedScroll",void 0),s(this,"animate",new br),s(this,"emitter",new wr),s(this,"dimensions",void 0),s(this,"virtualScroll",void 0),s(this,"onScrollEnd",e=>{e instanceof CustomEvent||"smooth"!==this.isScrolling&&!1!==this.isScrolling||e.stopPropagation()}),s(this,"dispatchScrollendEvent",()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))}),s(this,"onTransitionEnd",e=>{var t;null!==(t=e.propertyName)&&void 0!==t&&t.includes("overflow")&&e.target===this.rootElement&&this.checkOverflow()}),s(this,"onClick",e=>{const t=e.composedPath().filter(e=>e instanceof HTMLAnchorElement&&e.href).map(e=>new URL(e.href)),n=new URL(window.location.href);if(this.options.anchors){const e=t.find(e=>n.host===e.host&&n.pathname===e.pathname&&e.hash);if(e){const t="object"===typeof this.options.anchors&&this.options.anchors?this.options.anchors:void 0,n=decodeURIComponent(e.hash);return void this.scrollTo(n,t)}}this.options.stopInertiaOnNavigate&&t.some(e=>n.host===e.host&&n.pathname!==e.pathname)&&this.reset()}),s(this,"onPointerDown",e=>{1===e.button&&this.reset()}),s(this,"onVirtualScroll",e=>{if("function"===typeof this.options.virtualScroll&&!1===this.options.virtualScroll(e))return;const t=e.deltaX,n=e.deltaY,r=e.event;if(this.emitter.emit("virtual-scroll",{deltaX:t,deltaY:n,event:r}),r.ctrlKey)return;if(r.lenisStopPropagation)return;const a=r.type.includes("touch"),o=r.type.includes("wheel");if(a&&this.isIos&&("touchstart"===r.type&&(this._isDraggingSelection=this.isTouchOnSelectionHandle(r)),this._isDraggingSelection))return void("touchend"===r.type&&(this._isDraggingSelection=!1));this.isTouching="touchstart"===r.type||"touchmove"===r.type;const i=0===t&&0===n;if(this.options.syncTouch&&a&&"touchstart"===r.type&&i&&!this.isStopped&&!this.isLocked)return void this.reset();const s="vertical"===this.options.gestureOrientation&&0===n||"horizontal"===this.options.gestureOrientation&&0===t;if(i||s)return;let l=r.composedPath();l=l.slice(0,l.indexOf(this.rootElement));const u=this.options.prevent,d=Math.abs(t)>=Math.abs(n)?"horizontal":"vertical";if(l.find(e=>{var r,i,s,l,c;return e instanceof HTMLElement&&("function"===typeof u&&(null===u||void 0===u?void 0:u(e))||(null===(r=e.hasAttribute)||void 0===r?void 0:r.call(e,"data-lenis-prevent"))||"vertical"===d&&(null===(i=e.hasAttribute)||void 0===i?void 0:i.call(e,"data-lenis-prevent-vertical"))||"horizontal"===d&&(null===(s=e.hasAttribute)||void 0===s?void 0:s.call(e,"data-lenis-prevent-horizontal"))||a&&(null===(l=e.hasAttribute)||void 0===l?void 0:l.call(e,"data-lenis-prevent-touch"))||o&&(null===(c=e.hasAttribute)||void 0===c?void 0:c.call(e,"data-lenis-prevent-wheel"))||this.options.allowNestedScroll&&this.hasNestedScroll(e,{deltaX:t,deltaY:n}))}
2))return;if(this.isStopped||this.isLocked)return void(r.cancelable&&r.preventDefault());if(!(this.options.syncTouch&&a||this.options.smoothWheel&&o))return this.isScrolling="native",this.animate.stop(),void(r.lenisStopPropagation=!0);let h=n;"both"===this.options.gestureOrientation?h=Math.abs(n)>Math.abs(t)?n:t:"horizontal"===this.options.gestureOrientation&&(h=t),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||0===this.animatedScroll&&n>0||this.animatedScroll===this.limit&&n<0))&&(r.lenisStopPropagation=!0),r.cancelable&&r.preventDefault();const p=a&&this.options.syncTouch,f=a&&"touchend"===r.type;f&&(h=Math.sign(h)*Math.abs(this.velocity)**this.options.touchInertiaExponent),this.scrollTo(this.targetScroll+h,c({programmatic:!1},p?{lerp:f?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}))}),s(this,"onNativeScroll",()=>{if(null!==this._resetVelocityTimeout&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent)this._preventNextNativeScrollEvent=!1;else if(!1===this.isScrolling||"native"===this.isScrolling){const e=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-e,this.direction=Math.sign(this.animatedScroll-e),this.isStopped||(this.isScrolling="native"),this.emit(),0!==this.velocity&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}}),s(this,"raf",e=>{const t=e-(this.time||e);this.time=e,this.animate.advance(.001*t),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}),window.lenisVersion=yr,window.lenis||(window.lenis={}),window.lenis.version=yr,"horizontal"===E&&(window.lenis.horizontal=!0),!0===h&&(window.lenis.touch=!0),this.isIos=/(iPad|iPhone|iPod)/g.test(navigator.userAgent),n&&n!==document.documentElement||(n=window),"number"===typeof y&&"function"!==typeof v?v=jr:"function"===typeof v&&"number"!==typeof y&&(y=1),this.options={wrapper:n,content:a,eventsTarget:i,smoothWheel:u,syncTouch:h,syncTouchLerp:f,touchInertiaExponent:g,duration:y,easing:v,lerp:x,infinite:k,gestureOrientation:j,orientation:E,touchMultiplier:T,wheelMultiplier:A,autoResize:O,prevent:F,virtualScroll:L,overscroll:M,autoRaf:I,anchors:B,autoToggle:V,allowNestedScroll:q,naiveDimensions:$,stopInertiaOnNavigate:Q,respectReducedMotion:J},this.dimensions=new xr(n,a,{autoResize:O}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener("click",this.onClick),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown),this.virtualScroll=new Nr(i,{touchMultiplier:T,wheelMultiplier:A}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd)),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener("click",this.onClick),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(e,t){return this.emitter.on(e,t)}off(e,t){return this.emitter.off(e,t)}get overflow(){const e=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[e]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}setScroll(e){this.isHorizontal?this.options.wrapper.scrollTo({left:e,behavior:"instant"}):this.options.wrapper.scrollTo({top:e,behavior:"instant"})}isTouchOnSelectionHandle(e){var t;const n=window.getSelection();if(!n||n.isCollapsed||0===n.rangeCount)return!1;const r=null!==(t=e.targetTouches[0])&&void 0!==t?t:e.changedTouches[0];if(!r)return!1;const a=n.getRangeAt(0).getClientRects();if(0===a.length)return!1;const o=a[0],i=a[a.length-1],s=Math.hypot(r.clientX-o.left,r.clientY-o.top)<=40,l=Math.hypot(r.clientX-i.right,r.clientY-i.bottom)<=40;return s||l}resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit
2()}emit(){this.emitter.emit("scroll",this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){this.isStopped&&(this.options.autoToggle?this.rootElement.style.removeProperty("overflow"):this.internalStart())}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){this.isStopped||(this.options.autoToggle?this.rootElement.style.setProperty("overflow","clip"):this.internalStop())}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}scrollTo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.offset,r=void 0===n?0:n,a=t.immediate,o=void 0!==a&&a,i=t.lock,s=void 0!==i&&i,l=t.programmatic,c=void 0===l||l,u=t.lerp,d=void 0===u?c?this.options.lerp:void 0:u,h=t.duration,p=void 0===h?c?this.options.duration:void 0:h,f=t.easing,m=void 0===f?c?this.options.easing:void 0:f,g=t.onStart,y=t.onComplete,v=t.force,b=void 0!==v&&v,x=t.userData;if(this.prefersReducedMotion&&(c?o=!0:(d=1,p=void 0,m=void 0)),(this.isStopped||this.isLocked)&&!b)return;let w=e,k=r;if("string"===typeof w&&["top","left","start","#"].includes(w))w=0;else if("string"===typeof w&&["bottom","right","end"].includes(w))w=this.limit;else{var S;let e=null;if("string"===typeof w?(e=w.startsWith("#")?document.getElementById(w.slice(1)):document.querySelector(w),e||("#top"===w?w=0:console.warn("Lenis: Target not found",w))):w instanceof HTMLElement&&null!==(S=w)&&void 0!==S&&S.nodeType&&(e=w),e){if(this.options.wrapper!==window){const e=this.rootElement.getBoundingClientRect();k-=this.isHorizontal?e.left:e.top}const t=e.getBoundingClientRect(),n=getComputedStyle(e),r=this.isHorizontal?Number.parseFloat(n.scrollMarginLeft):Number.parseFloat(n.scrollMarginTop),a=getComputedStyle(this.rootElement),o=this.isHorizontal?Number.parseFloat(a.scrollPaddingLeft):Number.parseFloat(a.scrollPaddingTop);w=(this.isHorizontal?t.left:t.top)+this.animatedScroll-(Number.isNaN(r)?0:r)-(Number.isNaN(o)?0:o)}}if("number"===typeof w){if(w+=k,this.options.infinite){if(c){this.targetScroll=this.animatedScroll=this.scroll;const e=w-this.animatedScroll;e>this.limit/2?w-=this.limit:e<-this.limit/2&&(w+=this.limit)}}else w=vr(0,w,this.limit);if(w===this.targetScroll)return null===g||void 0===g||g(this),void(null===y||void 0===y||y(this));if(this.userData=null!==x&&void 0!==x?x:{},o)return this.animatedScroll=this.targetScroll=w,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),null===y||void 0===y||y(this),this.userData={},void requestAnimationFrame(()=>{this.dispatchScrollendEvent()});c||(this.targetScroll=w),"number"===typeof p&&"function"!==typeof m?m=jr:"function"===typeof m&&"number"!==typeof p&&(p=1),this.animate.fromTo(this.animatedScroll,w,{duration:p,easing:m,lerp:d,onStart:()=>{s&&(this.isLocked=!0),this.isScrolling="smooth",null===g||void 0===g||g(this)},onUpdate:(e,t)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=e-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=e,this.setScroll(this.scroll),c&&(this.targetScroll=e),t||this.emit(),t&&(this.reset(),this.emit(),null===y||void 0===y||y(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}hasNestedScroll(e,t){var n;let r=t.deltaX,a=t.deltaY;const o=Date.now();e._lenis||(e._lenis={});const i=e._lenis;let s,l,c,u,d,h,p,f,m,g;if(o-(null!==(n=i.time)&&void 0!==n?n:0)>2e3){i.time=Date.now();const t=window.getComputedStyle(e);if(i.computedStyle=t,s=["auto","overlay","scroll"].includes(t.overflowX),l=["auto","overlay","scroll"].includes(t.overflowY),d=["auto"].includes(t.overscrollBehaviorX),h=["auto"].includes(t.overscrollBehaviorY),i.hasOverflowX=s,i.hasOverflowY=l,!s&&!l)return!1;p=e.scrollWidth,f=e.scrollHeight,m=e.clientWidth,g=e.clientHeight,c=p>m,u=f>g,i.isScrollableX=c,i.isScrollableY=u,i.scrollWidth=p,i.scrollHeight=f,i.clientWidth=m,i.clientHeight=g,i.hasOverscrollBehaviorX=d,i.hasOverscrollBehaviorY=h}else c=i.isScrollableX,u=i.isScrollableY,s=i.hasOverflowX,l=i.hasOverflowY,p=i.scrollWidth,f=i.scrollHeight,m=i.clientWidth,g=i.clientHeight,d=i.hasOverscrollBehaviorX,h=i.hasOverscrollBehaviorY;if(!(s&&c||l&&u))return!1;const y=Math.abs(r)>=Math.abs(a)?"horizontal":"vertical";let v,b,x,w,k,S;if("horizontal"===y)v=Math.round(e.scrollLeft),b=p-m,x=r,w=s,k=c,S=d;else{if("vertical"!==y)return!1;v=Math.round(e.scrollTop),b=f-g,x=a,w=l,k=u,S=h}return!S&&(v>=b||v<=0)||(x>0?v<b:v>0)&&w&&k}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return"horizontal"===this.options.orientation}get actualScroll(){var e,t;const n=this.options.wrapper;return this.isHorizontal?null!==(e=n.scrollX)&&void 0!==e?e:n.scrollLeft:null!==(t=n.scrollY)&&void 0!==t?t:n.scrollTop}get scroll(){return this.options.infinite?(e=this.animatedScroll,t=this.limit,(e%t+t)%t):this.animatedScroll;var e,t}get progress(){return 0===this.limit?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(e){this._isScrolling!==e&&(this._isScrolling=e,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(e){this._isStopped!==e&&(this._isStopped=e,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this.updateClassName())}get isSmooth(){return"smooth"===this.isScrolling}get prefersReducedMotion(){return this.options.respectReducedMotion&&this.reducedMotionMediaQuery.matches}get className(){let e="lenis";return this.options.autoToggle&&(e+=" lenis-autoToggle"),this.isStopped&&(e+=" lenis-stopped"),this.isLocked&&(e+=" lenis-locked"),this.isScrolling&&(e+=" lenis-scrolling"),"smooth"===this.isScrolling&&(e+=" lenis-smooth"),e}updateClassName(){this.cleanUpClassName(),this.className.split(" ").forEach(e
2=>{this.rootElement.classList.add(e)})}cleanUpClassName(){for(const e of Array.from(this.rootElement.classList))("lenis"===e||e.startsWith("lenis-"))&&this.rootElement.classList.remove(e)}},Tr=n(950);const Pr=["message"];const Ar=Array(12).fill(0),Rr=e=>{let n=e.visible,r=e.className;return t.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":n},t.createElement("div",{className:"sonner-spinner"},Ar.map((e,n)=>t.createElement("div",{className:"sonner-loading-bar",key:"spinner-bar-".concat(n)}))))},Or=t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},t.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Fr=t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},t.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Lr=t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},t.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Dr=t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},t.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Mr=t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},t.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),t.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}));let _r=1;const Ir=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;const n=e.message,r=Oe(e,Pr),a="number"===typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:_r++,o=this.toasts.find(e=>e.id===a),i=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),o?this.toasts=this.toasts.map(t=>t.id===a?(this.publish(c(c(c({},t),e),{},{id:a,title:n})),c(c(c({},t),e),{}
2,{id:a,dismissible:i,title:n})):t):this.addToast(c(c({title:n},r),{},{dismissible:i,id:a})),a},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create(c(c({},t),{},{message:e})),this.error=(e,t)=>this.create(c(c({},t),{},{message:e,type:"error"})),this.success=(e,t)=>this.create(c(c({},t),{},{type:"success",message:e})),this.info=(e,t)=>this.create(c(c({},t),{},{type:"info",message:e})),this.warning=(e,t)=>this.create(c(c({},t),{},{type:"warning",message:e})),this.loading=(e,t)=>this.create(c(c({},t),{},{type:"loading",message:e})),this.promise=(e,n)=>{if(!n)return;let r;void 0!==n.loading&&(r=this.create(c(c({},n),{},{promise:e,type:"loading",message:n.loading,description:"function"!==typeof n.description?n.description:void 0})));const a=Promise.resolve(e instanceof Function?e():e);let o,i=void 0!==r;const s=a.then(async e=>{o=["resolve",e];if(t.isValidElement(e))i=!1,this.create({id:r,type:"default",message:e});else if(zr(e)&&!e.ok){i=!1;const a="function"===typeof n.error?await n.error("HTTP error! status: ".concat(e.status)):n.error,o="function"===typeof n.description?await n.description("HTTP error! status: ".concat(e.status)):n.description,s="object"===typeof a&&!t.isValidElement(a)?a:{message:a};this.create(c({id:r,type:"error",description:o},s))}else if(e instanceof Error){i=!1;const a="function"===typeof n.error?await n.error(e):n.error,o="function"===typeof n.description?await n.description(e):n.description,s="object"===typeof a&&!t.isValidElement(a)?a:{message:a};this.create(c({id:r,type:"error",description:o},s))}else if(void 0!==n.success){i=!1;const a="function"===typeof n.success?await n.success(e):n.success,o="function"===typeof n.description?await n.description(e):n.description,s="object"===typeof a&&!t.isValidElement(a)?a:{message:a};this.create(c({id:r,type:"success",description:o},s))}}).catch(async e=>{if(o=["reject",e],void 0!==n.error){i=!1;const a="function"===typeof n.error?await n.error(e):n.error,o="function"===typeof n.description?await n.description(e):n.description,s="object"===typeof a&&!t.isValidElement(a)?a:{message:a};this.create(c({id:r,type:"error",description:o},s))}}).finally(()=>{i&&(this.dismiss(r),r=void 0),null==n.finally||n.finally.call(n)}),l=()=>new Promise((e,t)=>s.then(()=>"reject"===o[0]?t(o[1]):e(o[1])).catch(t));return"string"!==typeof r&&"number"!==typeof r?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(e,t)=>{const n=(null==t?void 0:t.id)||_r++;return this.create(c({jsx:e(n),id:n},t)),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},zr=e=>e&&"object"===typeof e&&"ok"in e&&"boolean"===typeof e.ok&&"status"in e&&"number"===typeof e.status,Br=(e,t)=>{const n=(null==t?void 0:t.id)||_r++;return Ir.addToast(c(c({title:e},t),{},{id:n})),n},Ur=Object.assign(Br,{success:Ir.success,info:Ir.info,warning:Ir.warning,error:Ir.error,custom:Ir.custom,message:Ir.message,promise:Ir.promise,dismiss:Ir.dismiss,loading:Ir.loading},{getHistory:()=>Ir.toasts,getToasts:()=>Ir.getActiveToasts()});function Vr(e){return void 0!==e.label}!function(e){if(!e||"undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}[data-sonner-toaster][data-lifted=true]{transform:translateY(-8px)
vendor: 13,513 bytes, line 2
2}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function 
2Wr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}const qr=e=>{var n,r,a,o,i,s,l,u,d;const h=e.invert,p=e.toast,f=e.unstyled,m=e.interacting,g=e.setHeights,y=e.visibleToasts,v=e.heights,b=e.index,x=e.toasts,w=e.expanded,k=e.removeToast,S=e.defaultRichColors,E=e.closeButton,N=e.style,j=e.cancelButtonStyle,C=e.actionButtonStyle,T=e.className,P=void 0===T?"":T,A=e.descriptionClassName,R=void 0===A?"":A,O=e.duration,F=e.position,L=e.gap,D=e.expandByDefault,M=e.classNames,_=e.icons,I=e.closeButtonAriaLabel,z=void 0===I?"Close toast":I,B=Ie(t.useState(null),2),U=B[0],V=B[1],W=Ie(t.useState(null),2),q=W[0],H=W[1],Y=Ie(t.useState(!1),2),K=Y[0],$=Y[1],X=Ie(t.useState(!1),2),Q=X[0],G=X[1],J=Ie(t.useState(!1),2),Z=J[0],ee=J[1],te=Ie(t.useState(!1),2),ne=te[0],re=te[1],ae=Ie(t.useState(!1),2),oe=ae[0],ie=ae[1],se=Ie(t.useState(0),2),le=se[0],ce=se[1],ue=Ie(t.useState(0),2),de=ue[0],he=ue[1],pe=t.useRef(p.duration||O||4e3),fe=t.useRef(null),me=t.useRef(null),ge=0===b,ye=b+1<=y,ve=p.type,be=!1!==p.dism
2issible,xe=p.className||"",we=p.descriptionClassName||"",ke=t.useMemo(()=>v.findIndex(e=>e.toastId===p.id)||0,[v,p.id]),Se=t.useMemo(()=>{var e;return null!=(e=p.closeButton)?e:E},[p.closeButton,E]),Ee=t.useMemo(()=>p.duration||O||4e3,[p.duration,O]),Ne=t.useRef(0),je=t.useRef(0),Ce=t.useRef(0),Te=t.useRef(null),Pe=Ie(F.split("-"),2),Ae=Pe[0],Re=Pe[1],Oe=t.useMemo(()=>v.reduce((e,t,n)=>n>=ke?e:e+t.height,0),[v,ke]),Fe=(()=>{const e=Ie(t.useState(document.hidden),2),n=e[0],r=e[1];return t.useEffect(()=>{const e=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),n})(),Le=p.invert||h,De="loading"===ve;je.current=t.useMemo(()=>ke*L+Oe,[ke,Oe]),t.useEffect(()=>{pe.current=Ee},[Ee]),t.useEffect(()=>{$(!0)},[]),t.useEffect(()=>{const e=me.current;if(e){const t=e.getBoundingClientRect().height;return he(t),g(e=>[{toastId:p.id,height:t,position:p.position},...e]),()=>g(e=>e.filter(e=>e.toastId!==p.id))}},[g,p.id]),t.useLayoutEffect(()=>{if(!K)return;const e=me.current,t=e.style.height;e.style.height="auto";const n=e.getBoundingClientRect().height;e.style.height=t,he(n),g(e=>e.find(e=>e.toastId===p.id)?e.map(e=>e.toastId===p.id?c(c({},e),{},{height:n}):e):[{toastId:p.id,height:n,position:p.position},...e])},[K,p.title,p.description,g,p.id]);const Me=t.useCallback(()=>{G(!0),ce(je.current),g(e=>e.filter(e=>e.toastId!==p.id)),setTimeout(()=>{k(p)},200)},[p,k,g,je]);t.useEffect(()=>{if(p.promise&&"loading"===ve||p.duration===1/0||"loading"===p.type)return;let e;return w||m||Fe?(()=>{if(Ce.current<Ne.current){const e=(new Date).getTime()-Ne.current;pe.current=pe.current-e}Ce.current=(new Date).getTime()})():pe.current!==1/0&&(Ne.current=(new Date).getTime(),e=setTimeout(()=>{null==p.onAutoClose||p.onAutoClose.call(p,p),Me()},pe.current)),()=>clearTimeout(e)},[w,m,p,ve,Fe,Me]),t.useEffect(()=>{p.delete&&Me()},[Me,p.delete]);const _e=p.icon||(null==_?void 0:_[ve])||(e=>{switch(e){case"success":return Or;case"info":return Lr;case"warning":return Fr;case"error":return Dr;default:return null}})(ve);var ze,Be;return t.createElement("li",{tabIndex:0,ref:me,className:Wr(P,xe,null==M?void 0:M.toast,null==p||null==(n=p.classNames)?void 0:n.toast,null==M?void 0:M.default,null==M?void 0:M[ve],null==p||null==(r=p.classNames)?void 0:r[ve]),"data-sonner-toast":"","data-rich-colors":null!=(ze=p.richColors)?ze:S,"data-styled":!Boolean(p.jsx||p.unstyled||f),"data-mounted":K,"data-promise":Boolean(p.promise),"data-swiped":oe,"data-removed":Q,"data-visible":ye,"data-y-position":Ae,"data-x-position":Re,"data-index":b,"data-front":ge,"data-swiping":Z,"data-dismissible":be,"data-type":ve,"data-invert":Le,"data-swipe-out":ne,"data-swipe-direction":q,"data-expanded":Boolean(w||D&&K),style:c(c({"--index":b,"--toasts-before":b,"--z-index":x.length-b,"--offset":"".concat(Q?le:je.current,"px"),"--initial-height":D?"auto":"".concat(de,"px")},N),p.style),onDragEnd:()=>{ee(!1),V(null),Te.current=null},onPointerDown:e=>{!De&&be&&(fe.current=new Date,ce(je.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(ee(!0),Te.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,n;if(ne||!be)return;Te.current=null;const r=Number((null==(e=me.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),a=Number((null==(t=me.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),o=(new Date).getTime()-(null==(n=fe.current)?void 0:n.getTime()),i="x"===U?r:a,s=Math.abs(i)/o;if(Math.abs(i)>=45||s>.11)return ce(je.current),null==p.onDismiss||p.onDismiss.call(p,p),H("x"===U?r>0?"right":"left":a>0?"down":"up"),Me(),void re(!0);var l,c;null==(l=me.current)||l.style.setProperty("--swipe-amount-x","0px"),null==(c=me.current)||c.style.setProperty("--swipe-amount-y","0px"),ie(!1),ee(!1),V(null)},onPointerMove:t=>{var n,r,a;if(!Te.current||!be)return;if((null==(n=window.getSelection())?void 0:n.toString().length)>0)return;const o=t.clientY-Te.current.y,i=t.clientX-Te.current.x;var s;const l=null!=(s=e.swipeDirections)?s:function(e){const t=Ie(e.split("-"),2),n=t[0],r=t[1],a=[];return n&&a.push(n),r&&a.push(r),a}(F);!U&&(Math.abs(i)>1||Math.abs(o)>1)&&V(Math.abs(i)>Math.abs(o)?"x":"y");let c={x:0,y:0};const u=e=>1/(1.5+Math.abs(e)/20);if("y"===U){if(l.includes("top")||l.includes("bottom"))if(l.includes("top")&&o<0||l.includes("bottom")&&o>0)c.y=o;else{const e=o*u(o);c.y=Math.abs(e)<Math.abs(o)?e:o}}else if("x"===U&&(l.includes("left")||l.includes("right")))if(l.includes("left")&&i<0||l.includes("right")&&i>0)c.x=i;else{const e=i*u(i);c.x=Math.abs(e)<Math.abs(i)?e:i}(Math.abs(c.x)>0||Math.abs(c.y)>0)&&ie(!0),null==(r=me.current)||r.style.setProperty("--swipe-amount-x","".concat(c.x,"px")),null==(a=me.current)||a.style.setProperty("--swipe-amount-y","".concat(c.y,"px"))}},Se&&!p.jsx&&"loading"!==ve?t.createElement("button",{"aria-label":z,"data-disabled":De,"data-close-button":!0,onClick:De||!be?()=>{}:()=>{Me(),null==p.onDismiss||p.onDismiss.call(p,p)},className:Wr(null==M?void 0:M.closeButton,null==p||null==(a=p.classNames)?void 0:a.closeButton)},null!=(Be=null==_?void 0:_.close)?Be:Mr):null,(ve||p.icon||p.promise)&&null!==p.icon&&(null!==(null==_?void 0:_[ve])||p.icon)?t.createElement("div",{"data-icon":"",className:Wr(null==M?void 0:M.icon,null==p||null==(o=p.classNames)?void 0:o.icon)},p.promise||"loading"===p.type&&!p.icon?p.icon||function(){var e,n;return(null==_?void 0:_.loading)?t.createElement("div",{className:Wr(null==M?void 0:M.loader,null==p||null==(n=p.classNames)?void 0:n.loader,"sonner-loader"),"data-visible":"loading"===ve},_.loading):t.createElement(Rr,{className:Wr(null==M?void 0:M.loader,null==p||null==(e=p.classNames)?void 0:e.loader),visible:"loading"===ve})}():null,"loading"!==p.type?_e:null):null,t.createElement("div",{"data-content":"",className:Wr(null==M?void 0:M.content,null==p||null==(i=p.classNames)?void 0:i.content)},t.createElement("div",{"data-title":"",className:Wr(null==M?void 0:M.title,null==p||null==(s=p.classNames)?void 0:s.title)},p.jsx?p.jsx:"function"===typeof p.title?p.title():p.title),p.description?t.createElement("div",{"data-description":"",className:Wr(R,we,null==M?void 0:M.description,null==p||null==(l=p.classNames)?void 0:l.description)},"function"===typeof p.description?p.description():p.description):null),t.isValidElement(p.cancel)?p.cancel:p.cancel&&Vr(p.cancel)?t.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||j,onClick:e=>{Vr(p.cancel)&&be&&(null==p.cancel.onClick||p.cancel.onClick.call(p.cancel,e),Me())},className:Wr(null==M?void 0:M.cancelButton,null==p||null==(u=p.classNames)?void 0:u.cancelButton)},p.cancel.label):null,t.isValidElement(p.action)?p.action:p.action&&Vr(p.action)?t.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||C,onClick:e=>{Vr(p.action)&&(null==p.action.onClick||p.action.onClick.call(p.action,e),e.defaultPrevented||Me())},className:Wr(null==M?void 0:M.actionButton,null==p||null==(d=p.classNames)?void 0:d.actionButton)},p.action.label):null)};function Hr(){if("undefined"===typeof window)return"ltr";if("undefined"===typeof document)return"ltr";const e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}function Yr(e,t){const n={};return[e,t].forEach((e,t)=>{const r=1===t,a=r?"--mobile-offset":"--offset",o=r?"16px":"24px";function i(e){["top","right","bottom","left"].forEach(t=>{n["".concat(a,"-").concat(t)]="number"===typeof e?"".concat(e,"px"):e})}"number"===typeof e||"string"===typeof e?i(e):"object"===typeof e?["top","right","bottom","left"].forEach(t=>{void 0===e[t]?n["".concat(a,"-").concat(t)]=o:n["".concat(a,"-").concat(t)]="number"===typeof e[t]?"".concat(e[t],"px"):e[t]}):i(o)}),n}const Kr=t.forwardRef(function(e,n){const r=e.invert,a=e.position,o=void 0===a?"bottom-right":a,i=e.hotkey,s=void 0===i?["altKey","KeyT"]:i,l=e.expand,u=e.closeButton,d=e.className,h=e.offset,p=e.mobileOffset,f=e.theme,m=void 0===f?"light":f,g=e.richColors,y=e.duration,v=e.style,b=e.visibleToasts,x=void 0===b?3:b,w=e.toastOptions,k=e.dir,S=void 0===k?Hr():k,E=e.gap,N=void 0===E?14:E,j=e.icons,C=e.containerAriaLabel,T=void 0===C?"Notifications":C,P=Ie(t.useState([]),2),A=P[0],R=P[1],O=t.useMemo(()=>Array.from(new Set([o].concat(A.filter(e=>e.position).map(e=>e.position)))),[A,o]),F=Ie(t.useState([]),2),L=F[0],D=F[1],M=Ie(t.useState(!1),2),_=M[0],I=M[1],z=Ie(t.useState(!1),2),B=z[0],U=z[1],V=Ie(t.useState("system"!==m?m:"undefined"!==typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
2k":"light"),2),W=V[0],q=V[1],H=t.useRef(null),Y=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),K=t.useRef(null),$=t.useRef(!1),X=t.useCallback(e=>{R(t=>{var n;return(null==(n=t.find(t=>t.id===e.id))?void 0:n.delete)||Ir.dismiss(e.id),t.filter(t=>t.id!==e.id)})},[]);return t.useEffect(()=>Ir.subscribe(e=>{e.dismiss?requestAnimationFrame(()=>{R(t=>t.map(t=>t.id===e.id?c(c({},t),{},{delete:!0}):t))}):setTimeout(()=>{Tr.flushSync(()=>{R(t=>{const n=t.findIndex(t=>t.id===e.id);return-1!==n?[...t.slice(0,n),c(c({},t[n]),e),...t.slice(n+1)]:[e,...t]})})})}),[A]),t.useEffect(()=>{if("system"!==m)return void q(m);if("system"===m&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?q("dark"):q("light")),"undefined"===typeof window)return;const e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",e=>{let t=e.matches;q(t?"dark":"light")})}catch(t){e.addListener(e=>{let t=e.matches;try{q(t?"dark":"light")}catch(qy){console.error(qy)}})}},[m]),t.useEffect(()=>{A.length<=1&&I(!1)},[A]),t.useEffect(()=>{const e=e=>{var t;var n;s.every(t=>e[t]||e.code===t)&&(I(!0),null==(n=H.current)||n.focus());"Escape"!==e.code||document.activeElement!==H.current&&!(null==(t=H.current)?void 0:t.contains(document.activeElement))||I(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[s]),t.useEffect(()=>{if(H.current)return()=>{K.current&&(K.current.focus({preventScroll:!0}),K.current=null,$.current=!1)}},[H.current]),t.createElement("section",{ref:n,"aria-label":"".concat(T," ").concat(Y),tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},O.map((n,a)=>{var o;const i=Ie(n.split("-"),2),s=i[0],f=i[1];return A.length?t.createElement("ol",{key:n,dir:"auto"===S?Hr():S,tabIndex:-1,ref:H,className:d,"data-sonner-toaster":!0,"data-sonner-theme":W,"data-y-position":s,"data-lifted":_&&A.length>1&&!l,"data-x-position":f,style:c(c({"--front-toast-height":"".concat((null==(o=L[0])?void 0:o.height)||0,"px"),"--width":"".concat(356,"px"),"--gap":"".concat(N,"px")},v),Yr(h,p)),onBlur:e=>{$.current&&!e.currentTarget.contains(e.relatedTarget)&&($.current=!1,K.current&&(K.current.focus({preventScroll:!0}),K.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||$.current||($.current=!0,K.current=e.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{B||I(!1)},onDragEnd:()=>I(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||U(!0)},onPointerUp:()=>U(!1)},A.filter(e=>!e.position&&0===a||e.position===n).map((a,o)=>{var i,s;return t.createElement(qr,{key:a.id,icons:j,index:o,toast:a,defaultRichColors:g,duration:null!=(i=null==w?void 0:w.duration)?i:y,className:null==w?void 0:w.className,descriptionClassName:null==w?void 0:w.descriptionClassName,invert:r,visibleToasts:x,closeButton:null!=(s=null==w?void 0:w.closeButton)?s:u,interacting:B,position:n,style:null==w?void 0:w.style,unstyled:null==w?void 0:w.unstyled,classNames:null==w?void 0:w.classNames,cancelButtonStyle:null==w?void 0:w.cancelButtonStyle,actionButtonStyle:null==w?void 0:w.actionButtonStyle,closeButtonAriaLabel:null==w?void 0:w.closeButtonAriaLabel,removeToast:X,toasts:A.filter(e=>e.position==a.position),heights:L.filter(e=>e.position==a.position),setHeights:D,expandByDefault:l,gap:N,expanded:_,swipeDirections:e.swipeDirections})})):null}))}),$r=(0,t.createContext)(null),Xr="sony_cart",Qr=()=>(0,t.useContext)($r),Gr=e=>{let n=e.children;const r=Ie((0,t.useState)(()=>{try{return JSON.parse(localStorage.getItem(Xr)||"[]")}catch(e){return[]}}),2),a=r[0],o=r[1],i=Ie((0,t.useState)(!1),2),s=i[0],l=i[1];(0,t.useEffect)(()=>{localStorage.setItem(Xr,JSON.stringify(a))},[a]);const u=(0,t.useMemo)(()=>({subtotal:a.reduce((e,t)=>e+t.price*t.qty,0),count:a.reduce((e,t)=>e+t.qty,0)}),[a]),d=u.subtotal,h=u.count;return(0,Pe.jsx)($r.Provider,{value:{items:a,add:function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const a=e.slug+"-"+((null===r||void 0===r?void 0:r.vid)||"base"),i=null!==(t=null===r||void 0===r?void 0:r.price)&&void 0!==t?t:e.price;o(t=>t.find(e=>e.key===a)?t.map(e=>e.key===a?c(c({},e),{},{qty:Math.min(e.qty+n,20)}):e):[...t,{key:a,slug:e.slug,vid:(null===r||void 0===r?void 0:r.vid)||null,variantName:(null===r||void 0===r?void 0:r.name)||null,
2name:e.name,price:i,image:e.image,qty:n}]),l(!0)},setQty:(e,t)=>{o(t<=0?t=>t.filter(t=>t.key!==e):n=>n.map(n=>n.key===e?c(c({},n),{},{qty:t}):n))},remove:e=>o(t=>t.filter(t=>t.key!==e)),clear:()=>o([]),subtotal:d,count:h,open:s,setOpen:l},children:n})};function Jr(e,t){return function(){return e.apply(t,arguments)}}const Zr=Object.prototype.toString,ea=Object.getPrototypeOf,ta=Symbol.iterator,na=Symbol.toStringTag,ra=(()=>{let e=Object.prototype.hasOwnProperty;return(t,n)=>e.call(t,n)})(),aa=(e,t)=>{let n=e;const r=[];for(;null!=n&&n!==Object.prototype;){if(-1!==r.indexOf(n))return!1;if(r.push(n),ra(n,t))return!0;n=ea(n)}return!1},oa=(ia=Object.create(null),e=>{const t=Zr.call(e);return ia[t]||(ia[t]=t.slice(8,-1).toLowerCase())});var ia;const sa=e=>(e=e.toLowerCase(),t=>oa(t)===e),la=e=>t=>typeof t===e,ca=Array.isArray,ua=la("undefined");function da(e){return null!==e&&!ua(e)&&null!==e.constructor&&!ua(e.constructor)&&fa(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ha=sa("ArrayBuffer");const pa=la("string"),fa=la("function"),ma=la("number"),ga=e=>null!==e&&"object"===typeof e,ya=e=>{if(!ga(e))return!1;const t=ea(e);return(null===t||t===Object.prototype||null===ea(t))&&!aa(e,na)&&!aa(e,ta)},va=sa("Date"),ba=sa("File"),xa=sa("Blob"),wa=sa("FileList");const ka="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{},Sa="undefined"!==typeof ka.FormData?ka.FormData:void 0,Ea=sa("URLSearchParams"),Na=Ie(["ReadableStream","Request","Response","Headers"].map(sa),4),ja=Na[0],Ca=Na[1],Ta=Na[2],Pa=Na[3];function Aa(e,t){let n,r,a=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).allOwnKeys,o=void 0!==a&&a;if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),ca(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{if(da(e))return;const r=o?Object.getOwnPropertyNames(e):Object.keys(e),a=r.length;let i;for(n=0;n<a;n++)i=r[n],t.call(null,e[i],i,e)}}function Ra(e,t){if(da(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,a=n.length;for(;a-- >0;)if(r=n[a],t===r.toLowerCase())return r;return null}const Oa="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:n.g,Fa=e=>!ua(e)&&e!==Oa;const La=(Da="undefined"!==typeof Uint8Array&&ea(Uint8Array),e=>Da&&e instanceof Da);var Da;const Ma=sa("HTMLFormElement"),_a=Object.prototype.propertyIsEnumerable,Ia=sa("RegExp"),za=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Aa(n,(n,a)=>{let o;!1!==(o=t(n,a,e))&&(r[a]=o||n)}),Object.defineProperties(e,r)};const Ba=sa("AsyncFunction"),Ua=((e,t)=>{return e?setImmediate:t?(n="axios@".concat(Math.random()),r=[],Oa.addEventListener("message",e=>{let t=e.source,a=e.data;t===Oa&&a===n&&r.length&&r.shift()()},!1),e=>{r.push(e),Oa.postMessage(n,"*")}):e=>setTimeout(e);var n,r})("function"===typeof setImmediate,fa(Oa.postMessage)),Va="undefined"!==typeof queueMicrotask?queueMicrotask.bind(Oa):"undefined"!==typeof process&&process.nextTick||Ua,Wa=e=>null!=e&&fa(e[ta]),qa={isArray:ca,isArrayBuffer:ha,isBuffer:da,isFormData:e=>{if(!e)return!1;if(Sa&&e instanceof Sa)return!0;const t=ea(e);if(!t||t===Object.prototype)return!1;if(!fa(e.append))return!1;const n=oa(e);return"formdata"===n||"object"===n&&fa(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ha(e.buffer),t},isString:pa,isNumber:ma,isBoolean:e=>!0===e||!1===e,isObject:ga,isPlainObject:ya,isEmptyObject:e=>{if(!ga(e)||da(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(qy){return!1}},isReadableStream:ja,isRequest:Ca,isResponse:Ta,isHeaders:Pa,isUndefined:ua,isDate:va,isFile:ba,isReactNativeBlob:e=>!(!e||"undefined"===typeof e.uri),isReactNative:e=>e&&"undefined"!==typeof e.getParts,isBlob:xa,isRegExp:Ia,isFunction:fa,isStream:e=>ga(e)&&fa(e.pipe),isURLSearchParams:Ea,isTypedArray:La,isFileList:wa,forEach:Aa,merge:function e(){const t=Fa(this)&&this||{},n=t.caseless,r=t.skipUndefined,a={},o=(t,o)=>{if("__proto__"===o||"constructor"===o||"prototype"===o)return;const i=n&&"string"===typeof o&&Ra(a,o)||o,s=ra(a,i)?a[i]:void 0;ya(s)&&ya(t)?a[i]=e(s,t):ya(t)?a[i]=e({},t):ca(t)?a[i]=t.slice():r&&ua(t)||(a[i]=t)};for(let i=0,s=arguments.length;i<s;i++){const e=i<0||arguments.length<=i?void 0:arguments[i];if(!e||da(e))continue;if(Aa(e,o),"object"!==typeof e||ca(e))continue;const t=Object.getOwnPropertySymbols(e);for(let n=0;n<t.length;n++){const r=t[n];_a.call(e,r)&&o(e[r],r)}}return a},extend:function(e,t,n){return Aa(t,(t,r)=>{n&&fa(t)?Object.defineProperty(e,r,{__proto__:null,value:Jr(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).allOwnKeys}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,
vendor: 4,253 bytes, line 2
2configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let a,o,i;const s={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)i=a[o],r&&!r(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&ea(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:oa,kindOfTest:sa,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(ca(e))return e;let t=e.length;if(!ma(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[ta]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Ma,hasOwnProperty:ra,hasOwnProp:ra,hasOwnInPrototypeChain:aa,getSafeProp:(e,t)=>null!=e&&aa(e,t)?e[t]:void 0,reduceDescriptors:za,freezeMethods:e=>{za(e,(t,n)=>{if(fa(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];fa(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return ca(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Ra,global:Oa,isContextDefined:Fa,isSpecCompliantForm:function(e){return!!(e&&fa(e.append)&&"FormData"===e[na]&&e[ta])},toJSONObject:e=>{const t=new WeakSet,n=e=>{if(ga(e)){if(t.has(e))return;if(da(e))return e;if(!("toJSON"in e)){t.add(e);const r=ca(e)?[]:{};return Aa(e,(e,t)=>{const a=n(e);!ua(a)&&(r[t]=a)}),t.delete(e),r}}return e};return n(e)},isAsyncFn:Ba,isThenable:e=>e&&(ga(e)||fa(e))&&fa(e.then)&&fa(e.catch),setImmediate:Ua,asap:Va,isIterable:Wa,isSafeIterable:e=>null!=e&&aa(e,ta)&&Wa(e)},Ha=qa.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ya=e=>{const t={};let n,r,a;return e&&e.split("\n").forEach(function(e){a=e.indexOf(":"),n=e.substring(0,a).trim().toLowerCase(),r=e.substring(a+1).trim(),!n||t[n]&&Ha[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};n.dn(Ya);const Ka=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),$a=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Xa(e,t){return qa.isArray(e)?e.map(e=>Xa(e,t)):function(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function Qa(e){const t=Object.create(null);return qa.forEach(e.toJSON(),(e,n)=>{t[n]=(e=>Xa(e,$a))(e)}),t}const Ga=Symbol("internals");function Ja(e){return e&&String(e).trim().toLowerCase()}function Za(e){return!1===e||null==e?e:qa.isArray(e)?e.map(Za):(e=>Xa(e,Ka))(String(e))}function eo(e,t,n,r,a){return qa.isFunction(r)?r.call(this,t,n):(a&&(t=n),qa.isString(t)?qa.isString(r)?-1!==t.indexOf(r):qa.isRegExp(r)?r.test(t):void 0:void 0)}class to{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function a(e,t,n){const a=Ja(t);if(!a)return;const o=qa.findKey(r,a);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=Za(e))}const o=(e,t)=>qa.forEach(e,(e,n)=>a(e,n,t));if(qa.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(qa.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o(Ya(e),t);else if(qa.isObject(e)&&qa.isSafeIterable(e)){let n,r,a=Object.create(null);for(const t of e){if(!qa.isArray(t))throw new TypeError("Object iterator must return a key-value pair");r=t[0],qa.hasOwnProp(a,r)?(n=a[r],a[r]=qa.isArray(n)?[...n,t[1]]:[n,t[1]]):a[r]=t[1]}o(a,t)}else null!=e&&a(t,e,n);return this}get(e,t){if(e=Ja(e)){const n=qa.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;
2=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(qa.isFunction(t))return t.call(this,e,n);if(qa.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ja(e)){const n=qa.findKey(this,e);return!(!n||void 0===this[n]||t&&!eo(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function a(e){if(e=Ja(e)){const a=qa.findKey(n,e);!a||t&&!eo(0,n[a],a,t)||(delete n[a],r=!0)}}return qa.isArray(e)?e.forEach(a):a(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const a=t[n];e&&!eo(0,this[a],a,e,!0)||(delete this[a],r=!0)}return r}normalize(e){const t=this,n={};return qa.forEach(this,(r,a)=>{const o=qa.findKey(n,a);if(o)return t[o]=Za(r),void delete t[a];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(a):String(a).trim();i!==a&&delete t[a],t[i]=Za(r),n[i]=!0}),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return qa.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&qa.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(e=>{let t=Ie(e,2);return t[0]+": "+t[1]}).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return r.forEach(e=>t.set(e)),t}static accessor(e){const t=(this[Ga]=this[Ga]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Ja(e);t[r]||(!function(e,t){const n=qa.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,a){return this[r].call(this,t,e,n,a)},configurable:!0})})}(n,e),t[r]=!0)}return qa.isArray(e)?e.forEach(r):r(e),this}}to.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),qa.reduceDescriptors(to.prototype,(e,t)=>{let n=e.value,r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[r]=e}}}),qa.freezeMethods(to);const no=to;function ro(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),r=[],a=e=>{if(null===e||"object"!==typeof e)return e;if(qa.isBuffer(e))return e;if(-1!==r.indexOf(e))return;let t;if(e instanceof no&&(e=e.toJSON()),r.push(e),qa.isArray(e))t=[],e.forEach((e,n)=>{const r=a(e);qa.isUndefined(r)||(t[n]=r)});else{if(!qa.isPlainObject(e)&&function(e){if(qa.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(qa.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return r.pop(),e;t=Object.create(null);for(const r of Object.entries(e)){var o=Ie(r,2);const e=o[0],i=o[1],s=n.has(e.toLowerCase())?"[REDACTED ****]":a(i);qa.isUndefined(s)||(t[e]=s)}}return r.pop(),t};return a(e)}class ao extends Error{static from(e,t,n,r,a,o){const i=new ao(e.message,t||e.code,n,r,a);return i.cause=e,i.name=e.name,null!=e.status&&null==i.status&&(i.status=e.status),o&&Object.assign(i,o),i}constructor(e,t,n,r,a){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status)}toJSON(){const e=this.config,t=e&&qa.hasOwnProp(e,"redact")?e.redact:void 0,n=qa.isArray(t)&&t.length>0?ro(e,t):qa.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}}ao.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",ao.ERR_BAD_OPTION="ERR_BAD_OPTION",ao.ECONNABORTED="ECONNABORTED",ao.ETIMEDOUT="ETIMEDOUT",ao.ECONNREFUSED="ECONNREFUSED",ao.ERR_NETWORK="ERR_NETWORK",ao.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",ao.ERR_DEPRECATED="ERR_DEPRECATED",ao.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",ao.ERR_BAD_REQUEST="ERR_BAD_REQUEST",ao.ERR_CANCELED="ERR_CANCELED",ao.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",ao.ERR_INVALID_URL="ERR_INVALID_URL",ao.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const oo=ao;function io(e){return qa.isPlainObject(e)||qa.isArray(e)}function so(e){return qa.endsWith(e,"[]")?e.slice(0,-2):e}function lo(e,t,n){return e?e.concat(t).map(function(e,t){return e=so(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const co=qa.toFlatObject(qa,{},null,function(e){return/^is[A-Z]/.test(e)});const uo=function(e,t,n){if(!qa.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=qa.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!qa.isUndefined(t[e])})).metaTokens,a=n.visitor||p,o=n.dots,i=n.indexes,s=n.Blob||"undefined"!==typeof Blob&&Blob,l=void 0===n.maxDepth?100:n.maxDepth,c=s&&qa.isSpecCompliantForm(t),u=[];
2if(!qa.isFunction(a))throw new TypeError("visitor must be a function");function d(e){if(null===e)return"";if(qa.isDate(e))return e.toISOString();if(qa.isBoolean(e))return e.toString();if(!c&&qa.isBlob(e))throw new oo("Blob is not supported. Use a Buffer instead.");return qa.isArrayBuffer(e)||qa.isTypedArray(e)?c&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function h(e){if(e>l)throw new oo("Object is too deeply nested ("+e+" levels). Max depth: "+l,oo.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(e,n,a){let s=e;if(qa.isReactNative(t)&&qa.isReactNativeBlob(e))return t.append(lo(a,n,o),d(e)),!1;if(e&&!a&&"object"===typeof e)if(qa.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=function(e,t){if(l===1/0)return JSON.stringify(e);const n=[];return JSON.stringify(e,function(e,r){if(!qa.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),h(t+n.length-1),r})}(e,1);else if(qa.isArray(e)&&function(e){return qa.isArray(e)&&!e.some(io)}(e)||(qa.isFileList(e)||qa.endsWith(n,"[]"))&&(s=qa.toArray(e)))return n=so(n),s.forEac
2h(function(e,r){!qa.isUndefined(e)&&null!==e&&t.append(!0===i?lo([n],r,o):null===i?n:n+"[]",d(e))}),!1;return!!io(e)||(t.append(lo(a,n,o),d(e)),!1)}const f=Object.assign(co,{defaultVisitor:p,convertValue:d,isVisitable:io});if(!qa.isObject(e))throw new TypeError("data must be an object");return function e(n,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!qa.isUndefined(n)){if(h(o),-1!==u.indexOf(n))throw new Error("Circular reference detected in "+r.join("."));u.push(n),qa.forEach(n,function(n,i){!0===(!(qa.isUndefined(n)||null===n)&&a.call(t,n,qa.isString(i)?i.trim():i,r,f))&&e(n,r?r.concat(i):[i],o+1)}),u.pop()}}(e),t};function ho(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function po(e,t){this._pairs=[],e&&uo(e,this,t)}const fo=po.prototype;fo.append=function(e,t){this._pairs.push([e,t])},fo.toString=function(e){const t=e?function(t){return e.call(this,t,ho)}:ho;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const mo=po;function go(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function yo(e,t,n){if(!t)return e;const r=qa.isFunction(n)?{serialize:n}:n,a=qa.getSafeProp(r,"encode")||go,o=qa.getSafeProp(r,"serialize");let i;if(i=o?o(t,r):qa.isURLSearchParams(t)?t.toString():new mo(t,r).toString(a),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const vo=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){qa.forEach(this.handlers,function(t){null!==t&&e(t)})}},bo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},xo={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:mo,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},wo="undefined"!==typeof window&&"undefined"!==typeof document,ko="object"===typeof navigator&&navigator||void 0,So=wo&&(!ko||["ReactNative","NativeScript","NS"].indexOf(ko.product)<0),Eo="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,No=wo&&window.location.href||"http://localhost",jo=c(c({},e),xo);function Co(e){if(e>100)throw new oo("FormData field is too deeply nested ("+e+" levels). Max depth: 100",oo.ERR_FORM_DATA_DEPTH_EXCEEDED)}const To=function(e){function t(e,n,r,a){Co(a);let o=e[a++];if("__proto__"===o)return!0;const i=Number.isFinite(+o),s=a>=e.length;if(o=!o&&qa.isArray(r)?r.length:o,s)return qa.hasOwnProp(r,o)?r[o]=qa.isArray(r[o])?r[o].concat(n):[r[o],n]:r[o]=n,!i;qa.hasOwnProp(r,o)&&qa.isObject(r[o])||(r[o]=[]);return t(e,n,r[o],a)&&qa.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const a=n.length;let o;for(r=0;r<a;r++)o=n[r],t[o]=e[o];return t}(r[o])),!i}if(qa.isFormData(e)&&qa.isFunction(e.entries)){const n={};return qa.forEachEntry(e,(e,r)=>{t(function(e){const t=[],n=/\w+|\[(\w*)]/g;let r;for(;null!==(r=n.exec(e));)Co(t.length),t.push("[]"===r[0]?"":r[1]||r[0]);return t}(e),r,n,0)}),n}return null},Po=(e,t)=>null!=e&&qa.hasOwnProp(e,t)?e[t]:void 0;const Ao={transitional:bo,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,a=qa.isObject(e);a&&qa.isHTMLForm(e)&&(e=new FormData(e));if(qa.isFormData(e))return r?JSON.stringify(To(e)):e;if(qa.isArrayBuffer(e)||qa.isBuffer(e)||qa.isStream(e)||qa.isFile(e)||qa.isBlob(e)||qa.isReadableStream(e))return e;if(qa.isArrayBufferView(e))return e.buffer;if(qa.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;
2if(a){const t=Po(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return uo(e,new jo.classes.URLSearchParams,c({visitor:function(e,t,n,r){return jo.isNode&&qa.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,t).toString();if((o=qa.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=Po(this,"env"),r=n&&n.FormData;return uo(o?{"files[]":e}:e,r&&new r,t)}}return a||r?(t.setContentType("application/json",!1),function(e,t,n){if(qa.isString(e))try{return(t||JSON.parse)(e),qa.trim(e)}catch(qy){if("SyntaxError"!==qy.name)throw qy}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=Po(this,"transitional")||Ao.transitional,n=t&&t.forcedJSONParsing,r=Po(this,"responseType"),a="json"===r;if(qa.isResponse(e)||qa.isReadableStream(e))return e;if(e&&qa.isString(e)&&(n&&!r||a)){const n=!(t&&t.silentJSONParsing)&&a;try{return JSON.parse(e,Po(this,"parseReviver"))}catch(qy){if(n){if("SyntaxError"===qy.name)throw oo.from(qy,oo.ERR_BAD_RESPONSE,this,null,Po(this,"response"));throw qy}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:jo.classes.FormData,Blob:jo.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};qa.forEach(["delete","get","head","post","put","patch","query"],e=>{Ao.headers[e]={}});const Ro=Ao;function Oo(e,t){const n=this||Ro,r=t||n,a=no.from(r.headers);let o=r.data;return qa.forEach(e,function(e){o=e.call(n,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function Fo(e){return!(!e||!e.__CANCEL__)}const Lo=class extends oo{constructor(e,t,n){super(null==e?"canceled":e,oo.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Do(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new oo("Request failed with status code "+n.status,n.status>=400&&n.status<500?oo.ERR_BAD_REQUEST:oo.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}const Mo=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a,o=0,i=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[i];a||(a=l),n[o]=s,r[o]=l;let u=i,d=0;for(;u!==o;)d+=n[u++],u%=e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-a<t)return;const h=c&&l-c;return h?Math.round(1e3*d/h):void 0}};const _o=function(e,t){let n,r,a=0,o=1e3/t;const i=function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();a=o,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[function(){const e=Date.now(),t=e-a;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];t>=o?i(l,e):(n=l,r||(r=setTimeout(()=>{r=null,i(n)},o-t)))},()=>n&&i(n)]},Io=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0;const a=Mo(50,250);return _o(n=>{if(!n||"number"!==typeof n.loaded)return;const o=n.loaded,i=n.lengthComputable?n.total:void 0,s=null!=i?Math.min(o,i):o,l=Math.max(0,s-r),c=a(l);r=Math.max(r,s);e({loaded:s,total:i,progress:i?s/i:void 0,bytes:l,rate:c||void 0,estimated:c&&i?(i-s)/c:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},zo=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Bo=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return qa.asap(()=>e(...n))},Uo=jo.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,jo.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(jo.origin),jo.navigator&&/(msie|trident)/i.test(jo.navigator.userAgent)):()=>!0,Vo=jo.hasStandardBrowserEnv?{write(e,t,n,r,a,o,i){if("undefined"===typeof document)return;const s=["".concat(e,"=").concat(encodeURIComponent(t))];qa.isNumber(n)&&s.push("expires=".concat(new Date(n).toUTCString())),qa.isString(r)&&s.push("path=".concat(r)),qa.isString(a)&&s.push("domain=".concat(a)),!0===o&&s.push("secure"),qa.isString(i)&&s.push("SameSite=".concat(i)),document.cookie=s.join("; ")},read(e){if("undefined"===typeof document)return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),a=r.indexOf("=");if(-1!==a&&r.slice(0,a)===e)return decodeURIComponent(r.slice(a+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};const Wo=/^https?:(?!\/\/)/i,qo=/[\t\n\r]/g;function Ho(e,t){if("string"===typeof e&&Wo.test(function(e){return function(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}(e).replace(qo,"")}(e)))throw new oo('Invalid URL: missing "//" after protocol',oo.ERR_INVALID_URL,t)}function Yo(e,t,n,r){Ho(t,r);let a=!("string"===typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return e&&(a||!1===n)?(Ho(e,r),function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t)):t}const Ko=e=>e instanceof no?c({},e):e;function $o(e,t){t=t||{};const n=Object.create(null);function r(e,t,n,r){return qa.isPlainObject(e)&&qa.isPlainObject(t)?qa.merge.call({caseless:r},e,t):qa.isPlainObject(t)?qa.merge({},t):qa.isArray(t)?t.slice():t}function a(e,t,n,a){return qa.isUndefined(t)?qa.isUndefined(e)?void 0:r(void 0,e,0,a):r(e,t,0,a)}function o(e,t){if(!qa.isUndefined(t))return r(void 0,t)}function i(e,t){return qa.isUndefined(t)?qa.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,a,o){return qa.hasOwnProp(t,o)?r(n,a):qa.hasOwnProp(e,o)?r(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:s,headers:(e,t,n)=>a(Ko(e),Ko(t),0,!0)};return qa.forEach(Object.keys(c(c({},e),t)),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const o=qa.hasOwnProp(l,r)?l[r]:a,i=o(qa.hasOwnProp(e,r)?e[r]:void 0,qa.hasOwnProp(t,r)?t[r]:void 0,r);qa.isUndefined(i)&&o!==s||(n[r]=i)}),qa.hasOwnProp(t,"validateStatus")&&qa.isUndefined(t.validateStatus)&&!1===function(n){const r=qa.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!qa.isUndefined(r)){if(!qa.isPlainObject(r))return;if(qa.hasOwnProp(r,n))return r[n]}const a=qa.hasOwnProp(e,"transitional")?e.transitional:void 0;
2if(qa.isPlainObject(a)&&qa.hasOwnProp(a,n))return a[n]}("validateStatusUndefinedResolves")&&(qa.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const Xo=["content-type","content-length"];const Qo=function(e){const t=$o({},e),n=e=>qa.hasOwnProp(t,e)?t[e]:void 0,r=n("data");let a=n("withXSRFToken");const o=n("xsrfHeaderName"),i=n("xsrfCookieName");let s=n("headers");const l=n("auth"),c=n("baseURL"),u=n("allowAbsoluteUrls"),d=n("url");if(t.headers=s=no.from(s),t.url=yo(Yo(c,d,u,t),n("params"),n("paramsSerializer")),l){const e=qa.getSafeProp(l,"username")||"",t=qa.getSafeProp(l,"password")||"";s.set("Authorization","Basic "+btoa(e+":"+(t?encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}if(qa.isFormData(r)&&(jo.hasStandardBrowserEnv||jo.hasStandardBrowserWebWorkerEnv||qa.isReactNative(r)?s.setContentType(void 0):qa.isFunction(r.getHeaders)&&function(e,t,n){"content-only"===n?Object.entries(t).forEach(t=>{let n=Ie(t,2),r=n[0],a=n[1];Xo.includes(r.toLowerCase())&&e.set(r,a)}):e.set(t)}(s,r.getHeaders(),n("formDataHeaderPolicy"))),jo.hasStandardBrowserEnv){qa.isFunction(a)&&(a=a(t));if(!0===a||null==a&&Uo(t.url)){const e=o&&i&&Vo.read(i);e&&s.set(o,e)}}return t},Go="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Qo(e);let a=r.data;const o=no.from(r.headers).normalize();let i,s,l,c,u,d=r.responseType,h=r.onUploadProgress,p=r.onDownloadProgress;function f(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=no.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Do(function(e){t(e),f()},function(e){n(e),f()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}if(m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&m.responseURL.startsWith("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new oo("Request aborted",oo.ECONNABORTED,e,m)),f(),m=null)},m.onerror=function(t){const r=t&&t.message?t.message:"Network Error",a=new oo(r,oo.ERR_NETWORK,e,m);a.event=t||null,n(a),f(),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const a=r.transitional||bo;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new oo(t,a.clarifyTimeoutError?oo.ETIMEDOUT:oo.ECONNABORTED,e,m)),f(),m=null},void 0===a&&o.setContentType(null),"setRequestHeader"in m&&qa.forEach(Qa(o),function(e,t){m.setRequestHeader(t,e)}),qa.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p){var y=Ie(Io(p,!0),2);l=y[0],u=y[1],m.addEventListener("progress",l)}if(h&&m.upload){var v=Ie(Io(h),2);s=v[0],c=v[1],m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)}(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new Lo(null,e,m):t),m.abort(),f(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const b=function(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}(r.url);!b||jo.protocols.includes(b)?m.send(a||null):n(new oo("Unsupported protocol "+b+":",oo.ERR_BAD_REQUEST,e))})},Jo=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const a=function(e){if(!r){r=!0,i();const t=e instanceof Error?e:this.reason;n.abort(t instanceof oo?t:new Lo(t instanceof Error?t.message:t))}};let o=t&&setTimeout(()=>{o=null,a(new oo("timeout of ".concat(t,"ms exceeded"),oo.ETIMEDOUT))},t);const i=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)}),e=null)};e.forEach(e=>e.addEventListener("abort",a));const s=n.signal;return s.unsubscribe=()=>qa.asap(i),s};function Zo(e,t){this.v=e,this.k=t}function ei(e){return function(){return new ti(e.apply(this,arguments))}}function ti(e){var t,n;function r(t,n){try{var o=e[t](n),i=o.value,s=i instanceof Zo;Promise.resolve(s?i.v:i).then(function(n){if(s){var l="return"===t&&i.k?t:"next";if(!i.k||n.done)return r(l,n);n=e[l](n).value}a(!!o.done,n)},function(e){r("throw",e)})}catch(e){a(2,e)}}function a(e,a){2===e?t.reject(a):t.resolve({value:a,done:e}),(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,a){return new Promise(function(o,i){var s={key:e,arg:a,resolve:o,reject:i,next:null};n?n=n.next=s:(t=n=s,r(e,a))})}
2,"function"!=typeof e.return&&(this.return=void 0)}function ni(e){return new Zo(e,0)}function ri(e){var t={},n=!1;function r(t,r){return n=!0,r=new Promise(function(n){n(e[t](r))}),{done:!1,value:new Zo(r,1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return n?(n=!1,e):r("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(n)throw n=!1,e;return r("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return n?(n=!1,e):r("return",e)}),t}function ai(e){var t,n,r,a=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);a--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new oi(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function oi(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return oi=function(e){this.s=e,this.n=e.next},oi.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new oi(e)}ti.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},ti.prototype.next=function(e){return this._invoke("next",e)},ti.prototype.throw=function(e){return this._invoke("throw",e)},ti.prototype.return=function(e){return this._invoke("return",e)};const ii=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,a=0;for(;a<n;)r=a+t,yield e.slice(a,r),a=r},si=function(){var e=ei(function*(e,t){var n,r=!1,a=!1;try{for(var o,i=ai(li(e));r=!(o=yield ni(i.next())).done;r=!1){const e=o.value;yield*ri(ai(ii(e,t)))}}catch(s){a=!0,n=s}finally{try{r&&null!=i.return&&(yield ni(i.return()))}finally{if(a)throw n}}});return function(t,n){return e.apply(this,arguments)}}(),li=function(){var e=ei(function*(e){if(e[Symbol.asyncIterator])return void(yield*ri(ai(e)));const t=e.getReader();try{for(;;){const e=yield ni(t.read()),n=e.done,r=e.value;if(n)break;yield r}}finally{yield ni(t.cancel())}});return function(t){return e.apply(this,arguments)}}(),ci=(e,t,n,r)=>{const a=si(e,t);let o,i=0,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const t=await a.next(),r=t.done,o=t.value;if(r)return s(),void e.close();let l=o.byteLength;if(n){let e=i+=l;n(e)}e.enqueue(new Uint8Array(o))}catch(t){throw s(t),t}},cancel:e=>(s(e),a.return())},{highWaterMark:2})},ui=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,di=(e,t,n)=>t+2<n&&ui(e.charCodeAt(t+1))&&ui(e.charCodeAt(t+2));const hi="1.18.0",pi=qa.isFunction,fi=e=>{if(!qa.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},mi=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return!!e(...n)}catch(qy){return!1}},gi=e=>{const t=void 0!==qa.global&&null!==qa.global?qa.global:globalThis,n=t.ReadableStream,r=t.TextEncoder,a=e=qa.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e),o=a.fetch,i=a.Request,s=a.Response,l=o?pi(o):"function"===typeof fetch,u=pi(i),d=pi(s);if(!l)return!1;const h=l&&pi(n),p=l&&("function"===typeof r?(f=new r,e=>f.encode(e)):async e=>new Uint8Array(await new i(e).arrayBuffer()));var f;const m=u&&h&&mi(()=>{let e=!1;const t=new i(jo.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),g=d&&h&&mi(()=>qa.isReadableStream(new s("").body)),y={stream:g&&(e=>e.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!y[e]&&(y[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new oo("Response type '".concat(e,"' is not supported"),oo.ERR_NOT_SUPPORT,n)})});const v=async e=>{if(null==e)return 0;if(qa.isBlob(e))return e.size;if(qa.isSpecCompliantForm(e)){const t=new i(jo.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return qa.isArrayBufferView(e)||qa.isArrayBuffer(e)?e.byteLength:(qa.isURLSearchParams(e)&&(e+=""),qa.isString(e)?(await p(e)).byteLength:void 0)};return async e=>{let t=Qo(e),n=t.url,a=t.method,l=t.data,d=t.signal,p=t.cancelToken,f=t.timeout,b=t.onDownloadProgress,x=t.onUploadProgress,w=t.responseType,k=t.headers,S=t.withCredentials,E=void 0===S?"same-origin":S,N=t.fetchOptions,j=t.maxContentLength,C=t.maxBodyLength;const T=qa.isNumber(j)&&j>-1,P=qa.isNumber(C)&&C>-1;let A=o||fetch;w=w?(w+"").toLowerCase():"text";let R=Jo([d,p&&p.toAbortSignal()],f),O=null;const F=R&&R.unsubscribe&&(()=>{R.unsubscribe()});let L,D=null;const M=()=>new oo("Request body larger than maxBodyLength limit",oo.ERR_BAD_REQUEST,e,O);try{let t;const o=(I="auth",qa.hasOwnProp(e,I)?e[I]:void 0);if(o){const e=qa.getSafeProp(o,"username")||"";t={username:e,password:qa.getSafeProp(o,"password")||""}}if((e=>{const t=e.indexOf("://");let n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")})(n)){const e=new URL(n,jo.origin);if(!t&&(e.username||e.password)){const n=fi(e.username);t={username:n,password:fi(e.password)}}(e.username||e.password)&&(e.username="",e.password="",n=e.href)}if(t&&(k.delete("authorization"),k.set("Authorization","Basic "+btoa((_=(t.username||"")+":"+(t.password||""),encodeURIComponent(_).replace(/%([0-9A-F]{2})/gi,(e,t)=>
vendor: 1,266 bytes, line 2
2String.fromCharCode(parseInt(t,16))))))),T&&"string"===typeof n&&n.startsWith("data:")){const t=function(e){if(!e||"string"!==typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let e=r.length;const t=r.length;for(let s=0;s<t;s++)if(37===r.charCodeAt(s)&&s+2<t){const t=r.charCodeAt(s+1),n=r.charCodeAt(s+2);ui(t)&&ui(n)&&(e-=2,s+=2)}let n=0,a=t-1;const o=e=>e>=2&&37===r.charCodeAt(e-2)&&51===r.charCodeAt(e-1)&&(68===r.charCodeAt(e)||100===r.charCodeAt(e));a>=0&&(61===r.charCodeAt(a)?(n++,a--):o(a)&&(n++,a-=3)),1===n&&a>=0&&(61===r.charCodeAt(a)||o(a))&&n++;const i=3*Math.floor(e/4)-(n||0);return i>0?i:0}let a=0;for(let o=0,i=r.length;o<i;o++){const e=r.charCodeAt(o);if(37===e&&di(r,o,i))a+=1,o+=2;else if(e<128)a+=1;else if(e<2048)a+=2;else if(e>=55296&&e<=56319&&o+1<i){const e=r.charCodeAt(o+1);e>=56320&&e<=57343?(a+=4,o++):a+=3}else a+=3}return a}(n);if(t>j)throw new oo("maxContentLength size of "+j+" exceeded",oo.ERR_BAD_RESPONSE,e,O)}if(P&&"get"!==a&&"head"!==a){const e=await v(l);if("number"===typeof e&&isFinite(e)&&(L=e,e>C))throw M()}const d=P&&(qa.isReadableStream(l)||qa.isStream(l)),p=(e,t,n)=>ci(e,65536,e=>{if(P&&e>C)throw D=M();t&&t(e)},n);
2if(m&&"get"!==a&&"head"!==a&&(x||d)){if(L=null==L?await(async(e,t)=>{const n=qa.toFiniteNumber(e.getContentLength());return null==n?v(t):n})(k,l):L,0!==L||d){let e,t=new i(n,{method:"POST",body:l,duplex:"half"});if(qa.isFormData(l)&&(e=t.headers.get("content-type"))&&k.setContentType(e),t.body){const e=Ie(x&&zo(L,Io(Bo(x)))||[],2),n=e[0],r=e[1];l=p(t.body,n,r)}}}else if(d&&!u&&h&&"get"!==a&&"head"!==a)l=p(l);else if(d&&u&&!m&&"get"!==a&&"head"!==a)throw new oo("Stream request bodies are not supported by the current fetch implementation",oo.ERR_NOT_SUPPORT,e,O);qa.isString(E)||(E=E?"include":"omit");const f=u&&"credentials"in i.prototype;if(qa.isFormData(l)){const e=k.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&k.delete("content-type")}k.set("User-Agent","axios/"+hi,!1);const S=c(c({},N),{},{signal:R,method:a.toUpperCase(),headers:Qa(k.normalize()),body:l,duplex:"half",credentials:f?E:void 0});O=u&&new i(n,S);let z=await(u?A(O,N):A(n,S));const B=no.from(z.headers);if(T){const t=qa.toFiniteNumber(B.getContentLength());if(null!=t&&t>j)throw new oo("maxContentLength size of "+j+" exceeded",oo.ERR_BAD_RESPONSE,e,O)}const U=g&&("stream"===w||"response"===w);if(g&&z.body&&(b||T||U&&F)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=z[e]});const n=qa.toFiniteNumber(B.getContentLength()),r=Ie(b&&zo(n,Io(Bo(b),!0))||[],2),a=r[0],o=r[1];let i=0;const l=t=>{if(T&&(i=t,i>j))throw new oo("maxContentLength size of "+j+" exceeded",oo.ERR_BAD_RESPONSE,e,O);a&&a(t)};z=new s(ci(z.body,65536,l,()=>{o&&o(),F&&F()}),t)}w=w||"text";let V=await y[qa.findKey(y,w)||"text"](z,e);if(T&&!g&&!U){let t;if(null!=V&&("number"===typeof V.byteLength?t=V.byteLength:"number"===typeof V.size?t=V.size:"string"===typeof V&&(t="function"===typeof r?(new r).encode(V).byteLength:V.length)),"number"===typeof t&&t>j)throw new oo("maxContentLength size of "+j+" exceeded",oo.ERR_BAD_RESPONSE,e,O)}return!U&&F&&F(),await new Promise((t,n)=>{Do(t,n,{data:V,headers:no.from(z.headers),status:z.status,statusText:z.statusText,config:e,request:O})})}catch(z){if(F&&F(),R&&R.aborted&&R.reason instanceof oo){const t=R.reason;throw t.config=e,O&&(t.request=O),z!==t&&(t.cause=z),t}if(D)throw O&&!D.request&&(D.request=O),D;if(z instanceof oo)throw O&&!z.request&&(z.request=O),z;if(z&&"TypeError"===z.name&&/Load failed|fetch/i.test(z.message))throw Object.assign(new oo("Network Error",oo.ERR_NETWORK,e,O,z&&z.response),{cause:z.cause||z});throw oo.from(z,z&&z.code,e,O,z&&z.response)}var _,I}},yi=new Map,vi=e=>{let t=e&&e.env||{};const n=t.fetch,r=[t.Request,t.Response,n];let a,o,i=r.length,s=yi;for(;i--;)a=r[i],o=s.get(a),void 0===o&&s.set(a,o=i?new Map:gi(t)),s=o;return o},bi=(vi(),{http:null,xhr:Go,fetch:{get:vi}});qa.forEach(bi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(qy){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const xi=e=>"- ".concat(e),wi=e=>qa.isFunction(e)||null===e||!1===e;const ki={getAdapter:function(e,t){const n=(e=qa.isArray(e)?e:[e]).length;let r,a;const o={};for(let i=0;i<n;i++){let n;if(r=e[i],a=r,!wi(r)&&(a=bi[(n=String(r)).toLowerCase()],void 0===a))throw new oo("Unknown adapter '".concat(n,"'"));
vendor: 5,752 bytes, line 2
2if(a&&(qa.isFunction(a)||(a=a.get(t))))break;o[n||"#"+i]=a}if(!a){const e=Object.entries(o).map(e=>{let t=Ie(e,2),n=t[0],r=t[1];return"adapter ".concat(n," ")+(!1===r?"is not supported by the environment":"is not available in the build")});let t=n?e.length>1?"since :\n"+e.map(xi).join("\n"):" "+xi(e[0]):"as no adapter specified";throw new oo("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return a},adapters:bi};function Si(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Lo(null,e)}function Ei(e){Si(e),e.headers=no.from(e.headers),e.data=Oo.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return ki.getAdapter(e.adapter||Ro.adapter,e)(e).then(function(t){Si(e),e.response=t;try{t.data=Oo.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=no.from(t.headers),t},function(t){if(!Fo(t)&&(Si(e),t&&t.response)){e.response=t.response;try{t.response.data=Oo.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=no.from(t.response.headers)}return Promise.reject(t)})}const Ni={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ni[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ji={};Ni.transitional=function(e,t,n){function r(e,t){return"[Axios v"+hi+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,a,o)=>{if(!1===e)throw new oo(r(a," has been removed"+(t?" in "+t:"")),oo.ERR_DEPRECATED);return t&&!ji[a]&&(ji[a]=!0,console.warn(r(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,a,o)}},Ni.spelling=function(e){return(t,n)=>(console.warn("".concat(n," is likely a misspelling of ").concat(e)),!0)};const Ci={assertOptions:function(e,t,n){if("object"!==typeof e)throw new oo("options must be an object",oo.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const o=r[a],i=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(i){const t=e[o],n=void 0===t||i(t,o,e);if(!0!==n)throw new oo("option "+o+" must be "+n,oo.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new oo("Unknown option "+o,oo.ERR_BAD_OPTION)}},validators:Ni},Ti=Ci.validators;class Pi{constructor(e){this.defaults=e||{},this.interceptors={request:new vo,response:new vo}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=(()=>{if(!e.stack)return"";const t=e.stack.indexOf("\n");return-1===t?"":e.stack.slice(t+1)})();try{if(n.stack){if(t){const e=t.indexOf("\n"),r=-1===e?-1:t.indexOf("\n",e+1),a=-1===r?"":t.slice(r+1);String(n.stack).endsWith(a)||(n.stack+="\n"+t)}}else n.stack=t}catch(qy){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{};const n=t=$o(this.defaults,t),r=n.transitional,a=n.paramsSerializer,o=n.headers;void 0!==r&&Ci.assertOptions(r,{silentJSONParsing:Ti.transitional(Ti.boolean),forcedJSONParsing:Ti.transitional(Ti.boolean),clarifyTimeoutError:Ti.transitional(Ti.boolean),legacyInterceptorReqResOrdering:Ti.transitional(Ti.boolean),advertiseZstdAcceptEncoding:Ti.transitional(Ti.boolean),validateStatusUndefinedResolves:Ti.transitional(Ti.boolean)},!1),null!=a&&(qa.isFunction(a)?t.paramsSerializer={serialize:a}:Ci.assertOptions(a,{encode:Ti.function,serialize:Ti.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Ci.assertOptions(t,{baseUrl:Ti.spelling("baseURL"),withXsrfToken:Ti.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&qa.merge(o.common,o[t.method]);o&&qa.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete o[e]}),t.headers=no.concat(i,o);const s=[];let l=!0;this.interceptors.request.forEach(function(e){if("function"===typeof e.runWhen&&!1===e.runWhen(t))return;l=l&&e.synchronous;const n=t.transitional||bo;n&&n.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d,h=0;if(!l){const e=[Ei.bind(this),void 0];for(e.unshift(...s),e.push(...c),d=e.length,u=Promise.resolve(t);h<d;)u=u.then(e[h++],e[h++]);return u}d=s.length;let p=t;for(;h<d;){const e=s[h++],t=s[h++];try{p=e(p)}catch(f){t.call(this,f);break}}try{u=Ei.call(this,p)}catch(f){return Promise.reject(f)}for(h=0,d=c.length;h<d;)u=u.then(c[h++],c[h++]);return u}getUri(e){return yo(Yo((e=$o(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}qa.forEach(["delete","get","head","options"],function(e){Pi.prototype[e]=function(t,n){return this.request($o(n||{},{method:e,url:t,data:n&&qa.hasOwnProp(n,"data")?n.data:void 0}))}}),qa.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,r,a){return this.request($o(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Pi.prototype[e]=t(),"query"!==e&&(Pi.prototype[e+"Form"]=t(!0))});const Ai=Pi;class Ri{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,a){n.reason||(n.reason=new Lo(e,r,a),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
2subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Ri(function(t){e=t}),cancel:e}}}const Oi=Ri;const Fi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Fi).forEach(e=>{let t=Ie(e,2),n=t[0],r=t[1];Fi[r]=n});const Li=Fi;const Di=function e(t){const n=new Ai(t),r=Jr(Ai.prototype.request,n);return qa.extend(r,Ai.prototype,n,{allOwnKeys:!0}),qa.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e($o(t,n))},r}(Ro);Di.Axios=Ai,Di.CanceledError=Lo,Di.CancelToken=Oi,Di.isCancel=Fo,Di.VERSION=hi,Di.toFormData=uo,Di.AxiosError=oo,Di.Cancel=Di.CanceledError,Di.all=function(e){return Promise.all(e)},Di.spread=function(e){return function(t){return e.apply(null,t)}},Di.isAxiosError=function(e){return qa.isObject(e)&&!0===e.isAxiosError},Di.mergeConfig=$o,Di.AxiosHeaders=no,Di.formToJSON=e=>To(qa.isHTMLForm(e)?new FormData(e):e),Di.getAdapter=ki.getAdapter,Di.HttpStatusCode=Li,Di.default=Di;const Mi=Di.create({baseURL:"".concat("https://shoponlinenewyork.com","/api"),withCredentials:!0}),_i=e=>{var t,n;const r=null===e||void 0===e||null===(t=e.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail;return"string"===typeof r?r:Array.isArray(r)?r.map(e=>(null===e||void 0===e?void 0:e.msg)||"").filter(Boolean).join(" "):"Something went wrong. Please try again."},Ii=(0,t.createContext)(null),zi=()=>(0,t.useContext)(Ii),Bi=e=>{let n=e.children;const r=Ie((0,t.useState)(void 0),2),a=r[0],o=r[1];(0,t.useEffect)(()=>{Mi.get("/auth/me").then(e=>o(e.data)).catch(()=>o(null))},[]);return(0,Pe.jsx)(Ii.Provider,{value:{user:a,setUser:o,logout:async()=>{await Mi.post("/auth/logout").catch(()=>{}),o(null)}},children:n})},Ui=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},Vi=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()};var Wi={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const qi=["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"],Hi=(0,t.forwardRef)((e,n)=>{let r=e.color,a=void 0===r?"currentColor":r,o=e.size,i=void 0===o?24:o,s=e.strokeWidth,l=void 0===s?2:s,u=e.absoluteStrokeWidth,d=e.className,h=void 0===d?"":d,p=e.children,f=e.iconNode,m=Oe(e,qi);return(0,t.createElement)("svg",c(c(c({ref:n},Wi),{},{width:i,height:i,stroke:a,strokeWidth:u?24*Number(l)/Number(i):l,className:Vi("lucide",h)}
2,!p&&!(e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(m)&&{"aria-hidden":"true"}),m),[...f.map(e=>{let n=Ie(e,2),r=n[0],a=n[1];return(0,t.createElement)(r,a)}),...Array.isArray(p)?p:[p]])}),Yi=["className"],Ki=(e,n)=>{const r=(0,t.forwardRef)((r,a)=>{let o=r.className,i=Oe(r,Yi);return(0,t.createElement)(Hi,c({ref:a,iconNode:n,className:Vi("lucide-".concat((s=Ui(e),s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase())),"lucide-".concat(e),o)},i));var s});return r.displayName=Ui(e),r},$i=Ki("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),Xi=Ki("heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]),Qi=Ki("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),Gi=Ki("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]),Ji=Ki("shopping-bag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]]),Zi=Ki("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),es=Ki("menu",[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]]),ts=[{label:"Home",to:"/"},{label:"Furniture",to:"/shop?category=Furniture"},{label:"Lamps & Lights",to:"/shop?category=Lighting"},{label:"Decor",to:"/shop?category=Decor",children:[{label:"Wall Decor",to:"/shop?category=Decor&sub=Wall Decor"},{label:"Kitchen",to:"/shop?category=Decor&sub=Kitchen"},{label:"Living Room Decor",to:"/shop?category=Decor&sub=Living Room Decor"}]},{label:"Kitchen",to:"/shop?category=Kitchen"},{label:"Home Safety",to:"/shop?category=Home Safety"},{label:"About Us",to:"/#story"},{label:"Track Order",to:"/track"},{label:"Contact Us",to:"/contact"}],ns=()=>{var e,n;const r=Qr(),a=r.count,o=r.setOpen,i=zi(),s=i.user,l=i.logout,c=nn(),u=Ie((0,t.useState)(!1),2),d=u[0],h=u[1],p=Ie((0,t.useState)(!1),2),f=p[0],m=p[1],g=Ie((0,t.useState)(""),2),y=g[0],v=g[1],b=Zt().pathname,x=e=>{null===e||void 0===e||e.preventDefault();const t=y.trim();t?(h(!1),m(!1),v(""),c("/shop?search=".concat(encodeURIComponent(t)))):m(!1)},w=e=>{const t=e.slice(2);var n;"/"===b?null===(n=document.getElementById(t))||void 0===n||n.scrollIntoView({behavior:"smooth"}):c(e)};return(0,Pe.jsxs)("header",{className:"fixed top-0 left-0 right-0 z-50 border-b border-black/10 bg-bone/90 backdrop-blur-xl",children:[(0,Pe.jsxs)("div",{className:"mx-auto flex max-w-[1600px] items-center justify-between px-6 py-4 sm:px-10",children:["/auth"!==b&&(0,Pe.jsx)(cr,{to:"/","data-testid":"nav-logo",className:"flex items-center",children:(0,Pe.jsx)("img",{src:"/logo.webp",alt:"Shop Online New York",className:"h-12 w-auto mix-blend-multiply"})}),(0,Pe.jsx)("nav",{className:"hidden items-center gap-8 text-xs uppercase tracking-[0.18em] text-ash lg:flex",children:ts.map(e=>e.to.startsWith("/#")?(0,Pe.jsx)("button",{"data-testid":"nav-".concat(e.label.toLowerCase().replace(/[^a-z]+/g,"-")),onClick:()=>w(e.to),className:"uppercase tracking-[0.18em] transition-colors duration-300 hover:text-charcoal",children:e.label},e.label):e.children?(0,Pe.jsxs)("div",{className:"group relative",children:[(0,Pe.jsx)(cr,{to:e.to,"data-testid":"nav-".concat(e.label.toLowerCase().replace(/[^a-z]+/g,"-")),className:"transition-colors duration-300 hover:text-charcoal",children:e.label}),(0,Pe.jsx)("div",{className:"invisible absolute left-1/2 top-full -translate-x-1/2 pt-5 opacity-0 transition-all duration-300 group-hover:visible group-hover:opacity-100",children:(0,Pe.jsx)("div",{className:"min-w-[170px] rounded-2xl border border-charcoal/10 bg-bone p-3 shadow-[0_20px_50px_rgba(22,40,63,0.12)]",children:e.children.map(e=>(0,Pe.jsx)(cr,{to:e.to,"data-testid":"nav-decor-sub-".concat(e.label.toLowerCase().replace(/[^a-z]+/g,"-")),className:"block rounded-lg px-4 py-2.5 text-[11px] uppercase tracking-[0.18em] text-ash transition-colors duration-300 hover:bg-charcoal hover:text-bone",children:e.label},e.label))})})]},e.label):(0,Pe.jsx)(cr,{to:e.to,"data-testid":"nav-".concat(e.label.toLowerCase().replace(/[^a-z]+/g,"-")),className:"transition-colors duration-300 hover:text-charcoal",children:e.label},e.label))}),(0,Pe.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Pe.jsxs)("form",{onSubmit:x,className:"flex items-center gap-2","data-testid":"nav-search",children:[f&&(0,Pe.jsx)("input",{autoFocus:!0,"data-testid":"nav-search-input",value:y,onChange:e=>v(e.target.value),placeholder:"Search pieces...",className:"w-36 rounded-full border border-charcoal/20 bg-transparent px-4 py-2 text-xs font-light text-charcoal outline-none transition-colors duration-300 placeholder:text-ash focu
2s:border-charcoal sm:w-52"}),(0,Pe.jsx)("button",{type:f&&y.trim()?"submit":"button","data-testid":"nav-search-button",onClick:()=>!f&&m(!0),className:"rounded-full border border-charcoal/20 p-2.5 transition-colors duration-300 hover:bg-charcoal hover:text-bone","aria-label":"Search",children:(0,Pe.jsx)($i,{size:15})})]}),(0,Pe.jsx)(cr,{to:"/account?tab=wishlist","data-testid":"nav-wishlist",className:"rounded-full border border-charcoal/20 p-2.5 transition-colors duration-300 hover:bg-charcoal hover:text-bone","aria-label":"Wishlist",children:(0,Pe.jsx)(Xi,{size:15})}),s?(0,Pe.jsxs)("div",{className:"hidden items-center gap-3 sm:flex","data-testid":"nav-user",children:[(0,Pe.jsxs)(cr,{to:"admin"===s.role?"/admin":"/account","data-testid":"nav-account",className:"flex items-center gap-2 text-xs uppercase tracking-[0.18em] text-charcoal transition-colors duration-300 hover:text-taupe",children:[(0,Pe.jsx)(Qi,{size:14,className:"text-taupe"})," ",(null===(e=s.name)||void 0===e?void 0:e.split(" ")[0])||"Account"]}),(0,Pe.jsxs)("button",{"data-testid":"nav-logout",onClick:l,className:"flex items-center gap-1 text-xs uppercase tracking-[0.18em] text-ash transition-colors duration-300 hover:text-charcoal",children:[(0,Pe.jsx)(Gi,{size:13})," Sign out"]})]}):(0,Pe.jsx)(cr,{to:"/auth","data-testid":"nav-signin",className:"hidden text-xs uppercase tracking-[0.18em] text-ash transition-colors duration-300 hover:text-charcoal sm:block",children:"Sign in"}),(0,Pe.jsxs)("button",{"data-testid":"nav-cart-button",onClick:()=>o(!0),className:"relative flex items-center gap-2 rounded-full border border-charcoal/20 px-5 py-2 text-xs uppercase tracking-[0.2em] transition-colors duration-300 hover:bg-charcoal hover:text-bone",children:[(0,Pe.jsx)(Ji,{size:15,strokeWidth:1.5}),"Cart",a>0&&(0,Pe.jsx)("span",{"data-testid":"nav-cart-count",className:"flex h-5 w-5 items-center justify-center rounded-full bg-moss text-[10px] text-bone",children:a})]}),(0,Pe.jsx)("button",{"data-testid":"mobile-menu-button",onClick:()=>h(e=>!e),className:"rounded-full border border-charcoal/20 p-2.5 transition-colors duration-300 hover:bg-charcoal hover:text-bone lg:hidden","aria-label":"Open menu",children:d?(0,Pe.jsx)(Zi,{size:16}):(0,Pe.jsx)(es,{size:16})})]})]}),d&&(0,Pe.jsxs)("nav",{"data-testid":"mobile-menu",className:"border-t border-charcoal/10 bg-bone px-6 py-6 lg:hidden",children:[(0,Pe.jsxs)("form",{onSubmit:x,className:"mb-6 flex items-center gap-2","data-testid":"mobile-search",children:[(0,Pe.jsx)("input",{"data-testid":"mobile-search-input",value:y,onChange:e=>v(e.target.value),placeholder:"Search pieces...",className:"flex-1 rounded-full border border-charcoal/20 bg-transparent px-4 py-2.5 text-sm font-light text-charcoal outline-none placeholder:text-ash focus:border-charcoal"}),(0,Pe.jsx)("button",{type:"submit","data-testid":"mobile-search-button",className:"rounded-full border border-charcoal/20 p-2.5 transition-colors duration-300 hover:bg-charcoal hover:text-bone","aria-label":"Search",children:(0,Pe.jsx)($i,{size:15})})]}),(0,Pe.jsxs)("div",{className:"grid grid-cols-2 gap-x-8 gap-y-5 text-sm uppercase tracking-[0.18em] text-charcoal",children:[s?(0,Pe.jsxs)("button",{"data-testid":"mobile-nav-signout",onClick:()=>{h(!1),l()},className:"text-left uppercase tracking-[0.18em] text-moss",children:["Sign out (",(null===(n=s.name)||void 0===n?void 0:n.split(" ")[0])||"account",")"]}):(0,Pe.jsx)(cr,{to:"/auth","data-testid":"mobile-nav-signin",onClick:()=>h(!1),children:"Sign in"}),ts.map(e=>{var t;return e.to.startsWith("/#")?(0,Pe.jsx)("button",{"data-testid":"mobile-nav-".concat(e.label.toLowerCase().replace(/[^a-z]+/g,"-")),onClick:()=>{h(!1),w(e.to)},className:"text-left uppercase tracking-[0.18em]",children:e.label},e.label):(0,Pe.jsxs)("div",{className:"contents",children:[(0,Pe.jsx)(cr,{to:e.to,"data-testid":"mobile-nav-".concat(e.label.toLowerCase().replace(/[^a-z]+/g,"-")),onClick:()=>h(!1),children:e.label}),null===(t=e.children)||void 0===t?void 0:t.map(e=>(0,Pe.jsxs)(cr,{to:e.to,"data-testid":"mobile-nav-decor-sub-".concat(e.label.toLowerCase().replace(/[^a-z]+/g,"-")),onClick:()=>h(!1),className:"pl-4 text-[11px] normal-case tracking-[0.12em] text-ash",children:["\u21b3 ",e.label]},e.label))]},e.label)})]})]})]})},rs=(0,t.createContext)({});function as(e){const n=(0,t.useRef)(null);return null===n.current&&(n.current=e()),n.current}const os=(0,t.createContext)(null),is=(0,t.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class ss extends t.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function ls(e){let n=e.children,r=e.isPresent;const a=(0,t.useId)(),o=(0,t.useRef)(null),i=(0,t.useRef)({width:0,height:0,top:0,left:0}),s=(0,t.useContext)(is).nonce;return(0,t.useInsertionEffect)(()=>
2{const e=i.current,t=e.width,n=e.height,l=e.top,c=e.left;if(r||!o.current||!t||!n)return;o.current.dataset.motionPopId=a;const u=document.createElement("style");return s&&(u.nonce=s),document.head.appendChild(u),u.sheet&&u.sheet.insertRule('\n          [data-motion-pop-id="'.concat(a,'"] {\n            position: absolute !important;\n            width: ').concat(t,"px !important;\n            height: ").concat(n,"px !important;\n            top: ").concat(l,"px !important;\n            left: ").concat(c,"px !important;\n          }\n        ")),()=>{document.head.removeChild(u)}},[r]),(0,Pe.jsx)(ss,{isPresent:r,childRef:o,sizeRef:i,children:t.cloneElement(n,{ref:o})})}const cs=e=>{let n=e.children,r=e.initial,a=e.isPresent,o=e.onExitComplete,i=e.custom,s=e.presenceAffectsLayout,l=e.mode;const c=as(us),u=(0,t.useId)(),d=(0,t.useCallback)(e=>{c.set(e,!0);for(const t of c.values())if(!t)return;o&&o()},[c,o]),h=(0,t.useMemo)(()=>({id:u,initial:r,isPresent:a,custom:i,onExitComplete:d,register:e=>(c.set(e,!1),()=>c.delete(e))}),s?[Math.random(),d]:[a,d]);return(0,t.useMemo)(()=>{c.forEach((e,t)=>c.set(t,!1))},[a]),t.useEffect(()=>{!a&&!c.size&&o&&o()},[a]),"popLayout"===l&&(n=(0,Pe.jsx)(ls,{isPresent:a,children:n})),(0,Pe.jsx)(os.Provider,{value:h,children:n})};function us(){return new Map}function ds(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const n=(0,t.useContext)(os);if(null===n)return[!0,null];const r=n.isPresent,a=n.onExitComplete,o=n.register,i=(0,t.useId)();(0,t.useEffect)(()=>{e&&o(i)},[e]);const s=(0,t.useCallback)(()=>e&&a&&a(i),[i,a,e]);return!r&&a?[!1,s]:[!0]}const hs=e=>e.key||"";function ps(e){const n=[];return t.Children.forEach(e,e=>{(0,t.isValidElement)(e)&&n.push(e)}),n}const fs="undefined"!==typeof window,ms=fs?t.useLayoutEffect:t.useEffect,gs=e=>{let n=e.children,r=e.custom,a=e.initial,o=void 0===a||a,i=e.onExitComplete,s=e.presenceAffectsLayout,l=void 0===s||s,c=e.mode,u=void 0===c?"sync":c,d=e.propagate,h=void 0!==d&&d;const p=Ie(ds(h),2),f=p[0],m=p[1],g=(0,t.useMemo)(()=>ps(n),[n]),y=h&&!f?[]:g.map(hs),v=(0,t.useRef)(!0),b=(0,t.useRef)(g),x=as(()=>new Map),w=Ie((0,t.useState)(g),2),k=w[0],S=w[1],E=Ie((0,t.useState)(g),2),N=E[0],j=E[1];ms(()=>{v.current=!1,b.current=g;for(let e=0;e<N.length;e++){const t=hs(N[e]);y.includes(t)?x.delete(t):!0!==x.get(t)&&x.set(t,!1)}},[N,y.length,y.join("-")]);const C=[];if(g!==k){let e=[...g];for(let t=0;t<N.length;t++){const n=N[t],r=hs(n);y.includes(r)||(e.splice(t,0,n),C.push(n))}return"wait"===u&&C.length&&(e=C),j(ps(e)),void S(g)}const T=(0,t.useContext)(rs).forceRender;return(0,Pe.jsx)(Pe.Fragment,{children:N.map(e=>{const t=hs(e),n=!(h&&!f)&&(g===N||y.includes(t));return(0,Pe.jsx)(cs,{isPresent:n,initial:!(v.current&&!o)&&void 0,custom:n?void 0:r,presenceAffectsLayout:l,mode:u,onExitComplete:n?void 0:()=>{if(!x.has(t))return;x.set(t,!0);let e=!0;x.forEach(t=>{t||(e=!1)}),e&&(null===T||void 0===T||T(),j(b.current),h&&(null===m||void 0===m||m()),i&&i())},children:e},t)})})};function ys(e){if("undefined"===typeof Proxy)return e;const t=new Map;return new Proxy(function(){return e(...arguments)},{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}function vs(e){return null!==e&&"object"===typeof e&&"function"===typeof e.start}const bs=e=>Array.isArray(e);function xs(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function ws(e){return"string"===typeof e||Array.isArray(e)}function ks(e){const t=[{},{}];return null===e||void 0===e||e.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Ss(e,t,n,r){if("function"===typeof t){const a=Ie(ks(r),2),o=a[0],i=a[1];t=t(void 0!==n?n:e.custom,o,i)}if("string"===typeof t&&(t=e.variants&&e.variants[t]),"function"===typeof t){const a=Ie(ks(r),2),o=a[0],i=a[1];t=t(void 0!==n?n:e.custom,o,i)}return t}function Es(e,t,n){const r=e.getProps();return Ss(r,t,void 0!==n?n:r.custom,e)}const Ns=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],js=["initial",...Ns];function Cs(e){let t;return()=>(void 0===t&&(t=e()),t)}const Ts=Cs(()=>void 0!==window.ScrollTimeline);class Ps{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){const n=this.animations.map(n=>Ts()&&n.attachTimeline?n.attachTimeline(e):"function"===typeof t?t(n):void 0);return()=>
2{n.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class As extends Ps{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}function Rs(e,t){return e?e[t]||e.default||e:void 0}const Os=2e4;function Fs(e){let t=0;let n=e.next(t);for(;!n.done&&t<Os;)t+=50,n=e.next(t);return t>=Os?1/0:t}function Ls(e){return"function"===typeof e}function Ds(e,t){e.timeline=t,e.onfinish=null}const Ms=e=>Array.isArray(e)&&"number"===typeof e[0],_s={linearEasing:void 0};function Is(e,t){const n=Cs(e);return()=>{var e;return null!==(e=_s[t])&&void 0!==e?e:n()}}const zs=Is(()=>{try{document.createElement("div").animate({opacity:0}
2,{easing:"linear(0, 1)"})}catch(qy){return!1}return!0},"linearEasing"),Bs=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Us=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r="";const a=Math.max(Math.round(t/n),2);for(let o=0;o<a;o++)r+=e(Bs(0,a-1,o))+", ";return"linear(".concat(r.substring(0,r.length-2),")")};function Vs(e){return Boolean("function"===typeof e&&zs()||!e||"string"===typeof e&&(e in qs||zs())||Ms(e)||Array.isArray(e)&&e.every(Vs))}const Ws=e=>{let t=Ie(e,4),n=t[0],r=t[1],a=t[2],o=t[3];return"cubic-bezier(".concat(n,", ").concat(r,", ").concat(a,", ").concat(o,")")},qs={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ws([0,.65,.55,1]),circOut:Ws([.55,0,1,.45]),backIn:Ws([.31,.01,.66,-.59]),backOut:Ws([.33,1.53,.69,.99])};function Hs(e,t){return e?"function"===typeof e&&zs()?Us(e,t):Ms(e)?Ws(e):Array.isArray(e)?e.map(e=>Hs(e,t)||qs.easeOut):qs[e]:void 0}const Ys={x:!1,y:!1};function Ks(){return Ys.x||Ys.y}function $s(e,t,n){var r;if(e instanceof Element)return[e];if("string"===typeof e){let a=document;t&&(a=t.current);const o=null!==(r=null===n||void 0===n?void 0:n[e])&&void 0!==r?r:a.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function Xs(e,t){const n=$s(e),r=new AbortController;return[n,c(c({passive:!0},t),{},{signal:r.signal}),()=>r.abort()]}function Qs(e){return t=>{"touch"===t.pointerType||Ks()||e(t)}}const Gs=(e,t)=>!!t&&(e===t||Gs(e,t.parentElement)),Js=e=>"mouse"===e.pointerType?"number"!==typeof e.button||e.button<=0:!1!==e.isPrimary,Zs=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const el=new WeakSet;function tl(e){return t=>{"Enter"===t.key&&e(t)}}function nl(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function rl(e){return Js(e)&&!Ks()}function al(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=Ie(Xs(e,n),3),a=r[0],o=r[1],i=r[2],s=e=>{const r=e.currentTarget;if(!rl(e)||el.has(r))return;el.add(r);const a=t(e),i=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),rl(e)&&el.has(r)&&(el.delete(r),"function"===typeof a&&a(e,{success:t}))},s=e=>{i(e,n.useGlobalTarget||Gs(r,e.target))},l=e=>{i(e,!1)};window.addEventListener("pointerup",s,o),window.addEventListener("pointercancel",l,o)};return a.forEach(e=>{(function(e){return Zs.has(e.tagName)||-1!==e.tabIndex})(e)||null!==e.getAttribute("tabindex")||(e.tabIndex=0);(n.useGlobalTarget?window:e).addEventListener("pointerdown",s,o),e.addEventListener("focus",e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=tl(()=>{if(el.has(n))return;nl(n,"down");const e=tl(()=>{nl(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>nl(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,o),o)}),i}const ol=e=>1e3*e,il=e=>e/1e3,sl=e=>e;const ll=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],cl=new Set(ll),ul=new Set(["width","height","top","left","right","bottom",...ll]),dl=e=>bs(e)?e[e.length-1]||0:e,hl=!1,pl=!1;const fl=["read","resolveKeyframes","update","preRender","render","postRender"];function ml(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,i=fl.reduce((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,a=!1;const o=new WeakSet;let i={delta:0,timestamp:0,isProcessing:!1};function s(t){o.has(t)&&(l.schedule(t),e()),t(i)}const l={schedule:function(e){const a=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&r?t:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&o.add(e),a.has(e)||a.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{if(i=e,r)a=!0;else{r=!0;var o=[n,t];t=o[0],n=o[1],t.forEach(s),t.clear(),r=!1,a&&(a=!1,l.process(e))}}};return l}(o),e),{}),s=i.read,l=i.resolveKeyframes,c=i.update,u=i.preRender,d=i.render,h=i.postRender,p=()=>{const o=pl?a.timestamp:performance.now();n=!1,a.delta=r?1e3/60:Math.max(Math.min(o-a.timestamp,40),1),a.timestamp=o,a.isProcessing=!0,s.process(a),l.process(a),c.process(a),u.process(a),d.process(a),h.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(p))},f=fl.reduce((t,o)=>{const s=i[o];return t[o]=function(t){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n||(n=!0,r=!0,a.isProcessing||e(p)),s.schedule(t,o,i)},t},{});return{schedule:f,cancel:e=>{for(let t=0;t<fl.length;t++)i[fl[t]].cancel(e)},state:a,steps:i}}const gl=ml("undefined"!==typeof requestAnimationFrame?requestAnimationFrame:sl,!0),yl=gl.schedule,vl=gl.cancel,bl=gl.state,xl=gl.steps;let wl;function kl(){wl=void 0}const Sl={now:()=>(void 0===wl&&Sl.set(bl.isProcessing||pl?bl.timestamp:performance.now()),wl),set:e=>{wl=e,queueMicrotask(kl)}};function El(e,t){-1===e.indexOf(t)&&e.push(t)}function Nl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class jl{constructor(){this.subscriptions=[]}add(e){return El(this.subscriptions,e),()=>Nl(this.subscriptions,e)}
2notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let a=0;a<r;a++){const r=this.subscriptions[a];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Cl(e,t){return t?e*(1e3/t):0}const Tl={current:void 0};class Pl{constructor(e){var t=this;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.version="11.18.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=function(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=Sl.now();t.updatedAt!==r&&t.setPrevFrameValue(),t.prev=t.current,t.setCurrent(e),t.current!==t.prev&&t.events.change&&t.events.change.notify(t.current),n&&t.events.renderRequest&&t.events.renderRequest.notify(t.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){var t;this.current=e,this.updatedAt=Sl.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.current;this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new jl);const n=this.events[e].add(t);return"change"===e?()=>{n(),yl.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Tl.current&&Tl.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=Sl.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Cl(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Al(e,t){return new Pl(e,t)}const Rl=["transitionEnd","transition"];function Ol(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Al(n))}const Fl=e=>Boolean(e&&e.getVelocity);function Ll(e,t){const n=e.getValue("willChange");if(r=n,Boolean(Fl(r)&&r.add))return n.add(t);var r}const Dl=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Ml="data-"+Dl("framerAppearId");function _l(e){return e.props[Ml]}const Il=!1,zl=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function Bl(e,t,n,r){if(e===t&&n===r)return sl;const a=t=>function(e,t,n,r,a){let o,i,s=0;do{i=t+(n-t)/2,o=zl(i,r,a)-e,o>0?n=i:t=i}while(Math.abs(o)>1e-7&&++s<12);return i}(t,0,1,e,n);return e=>0===e||1===e?e:zl(a(e),t,r)}const Ul=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Vl=e=>t=>1-e(1-t),Wl=Bl(.33,1.53,.69,.99),ql=Vl(Wl),Hl=Ul(ql),Yl=e=>(e*=2)<1?.5*ql(e):.5*(2-Math.pow(2,-10*(e-1))),Kl=e=>1-Math.sin(Math.acos(e)),$l=Vl(Kl),Xl=Ul(Kl),Ql=e=>/^0(?:[\0-\x08\x0E-\x1F!-\x2D\/-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+$/.test(e);function Gl(e){return"number"===typeof e?0===e:null===e||("none"===e||"0"===e||Ql(e))}
2const Jl=(e,t,n)=>n>t?t:n<e?e:n,Zl={test:e=>"number"===typeof e,parse:parseFloat,transform:e=>e},ec=c(c({},Zl),{},{transform:e=>Jl(0,1,e)}),tc=c(c({},Zl),{},{default:1}),nc=e=>Math.round(1e5*e)/1e5,rc=/-?(?:[0-9]+(?:\.[0-9]+)?|\.[0-9]+)/g;const ac=/^(?:#[0-9a-f]{3,8}|(?:rgb|h[s\u017F]l)a?\((?:-?[\.0-9]+%?[\t-\r ,\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+){2}-?[\.0-9]+%?[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*(?:[,\/][\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*)?(?:\b[0-9]+(?:\.[0-9]+)?|\.[0-9]+)?%?\))$/i,oc=(e,t)=>n=>Boolean("string"===typeof n&&ac.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),ic=(e,t,n)=>r=>{if("string"!==typeof r)return r;const a=Ie(r.match(rc),4),o=a[0],i=a[1],s=a[2],l=a[3];return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:void 0!==l?parseFloat(l):1}},sc=c(c({},Zl),{},{transform:e=>Math.round((e=>Jl(0,255,e))(e))}),lc={test:oc("rgb","red"),parse:ic("red","green","blue"),transform:e=>{let t=e.red,n=e.green,r=e.blue,a=e.alpha,o=void 0===a?1:a;return"rgba("+sc.transform(t)+", "+sc.transform(n)+", "+sc.transform(r)+", "+nc(ec.transform(o))+")"}};const cc={test:oc("#"),parse:function(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}},transform:lc.transform},uc=e=>({test:t=>"string"===typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>"".concat(t).concat(e)}),dc=uc("deg"),hc=uc("%"),pc=uc("px"),fc=uc("vh"),mc=uc("vw"),gc=c(c({},hc),{},{parse:e=>hc.parse(e)/100,transform:e=>hc.transform(100*e)}),yc={test:oc("hsl","hue"),parse:ic("hue","saturation","lightness"),transform:e=>{let t=e.hue,n=e.saturation,r=e.lightness,a=e.alpha,o=void 0===a?1:a;return"hsla("+Math.round(t)+", "+hc.transform(nc(n))+", "+hc.transform(nc(r))+", "+nc(ec.transform(o))+")"}},vc={test:e=>lc.test(e)||cc.test(e)||yc.test(e),parse:e=>lc.test(e)?lc.parse(e):yc.test(e)?yc.parse(e):cc.parse(e),transform:e=>"string"===typeof e?e:e.hasOwnProperty("red")?lc.transform(e):yc.transform(e)},bc=/(?:#[0-9a-f]{3,8}|(?:rgb|h[s\u017F]l)a?\((?:-?[\.0-9]+%?[\t-\r ,\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+){2}-?[\.0-9]+%?[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*(?:[,\/][\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*)?(?:\b[0-9]+(?:\.[0-9]+)?|\.[0-9]+)?%?\))/gi;const xc="number",wc="color",kc=/var[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*\([\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*--(?:[\x2D0-9A-Z_a-z\u017F\u212A]+[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*|[\x2D0-9A-Z_a-z\u017F\u212A]+[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*,(?:[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*(?:(?![\t-\r \(\)\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uD800-\uDFFF\uFEFF])[^]|[\uD800-\uDBFF][\uDC00-\uDFFF])|[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*\((?:(?:(?![\(\)\uD800-\uDFFF])[^]|[\uD800-\uDBFF][\uDC00-\uDFFF])|\((?:(?![\(\)\uD800-\uDFFF])[^]|[\uD800-\uDBFF][\uDC00-\uDFFF])*\))*\))+[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*)\)|#[0-9a-f]{3,8}|(?:rgb|h[s\u017F]l)a?\((?:-?[\.0-9]+%?[\t-\r ,\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+){2}-?[\.0-9]+%?[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*(?:[,\/][\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*)?(?:\b[0-9]+(?:\.[0-9]+)?|\.[0-9]+)?%?\)|-?(?:[0-9]+(?:\.[0-9]+)?|\.[0-9]+)/gi;function Sc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let o=0;const i=t.replace(kc,e=>(vc.test(e)?(r.color.push(o),a.push(wc),n.push(vc.parse(e))):e.startsWith("var(")?(r.var.push(o),a.push("var"),n.push(e)):(r.number.push(o),a.push(xc),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:i,indexes:r,types:a}}function Ec(e){return Sc(e).values}function Nc(e){const t=Sc(e),n=t.split,r=t.types,a=n.length;return e=>{let t="";for(let o=0;o<a;o++)if(t+=n[o],void 0!==e[o]){const n=r[o];t+=n===xc?nc(e[o]):n===wc?vc.transform(e[o]):e[o]}return t}}const jc=e=>"number"===typeof e?0:e;const Cc={test:function(e){var t,n;return isNaN(e)&&"string"===typeof e&&((null===(t=e.match(rc))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(bc))||void 0===n?void 0:n.length)||0)>0},parse:Ec,createTransformer:Nc,getAnimatableNone:function(e){const t=Ec(e);return Nc(e)(t.map(jc))}},Tc=new Set(["brightness","contrast","saturate","opacity"]);function Pc(e){const t=Ie(e.slice(0,-1).split("("),2),n=t[0],r=t[1];if("drop-shadow"===n)return e;const a=Ie(r.match(rc)||[],1)[0];if(!a)return e;const o=r.replace(a,"");let i=Tc.has(n)?1:0;return a!==r&&(i*=100),n+"("+i+o+")"}const Ac=/\b([\x2Da-z]*)\((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\)/g,Rc=c(c({},Cc),{},{getAnimatableNone:e=>{const t=e.match(Ac);return t?t.map(Pc).join(" "):e}}),Oc={borderWidth:pc,borderTopWidth:pc,borderRightWidth:pc,borderBottomWidth:pc,borderLeftWidth:pc,borderRadius:pc,radius:pc,borderTopLeftRadius:pc,borderTopRightRadius:pc,borderBottomRightRadius:pc,borderBottomLeftRadius:pc,width:pc,maxWidth:pc,height:pc,maxHeight:pc,top:pc,right:pc,bottom:pc,left:pc,padding:pc,paddingTop:pc,paddingRight:pc,paddingBottom:pc,paddingLeft:pc,margin:pc,marginTop:pc,marginRight:pc,marginBottom:pc,marginLeft:pc,backgroundPositionX:pc,backgroundPositionY:pc},Fc={rotate:dc,rotateX:dc,rotateY:dc,rotateZ:dc,scale:tc,scaleX:tc,scaleY:tc,scaleZ:tc,skew:dc,skewX:dc,skewY:dc,distance:pc,translateX:pc,translateY:pc,translateZ:pc,x:pc,y:pc,z:pc,perspective:pc,transformPerspective:pc,opacity:ec,originX:gc,originY:gc,originZ:pc},Lc=c(c({},Zl),{},{transform:Math.round}),Dc=c(c(c({},Oc),Fc),{},{zIndex:Lc,size:pc,fillOpacity:ec,strokeOpacity:ec,numOctaves:Lc}),Mc=c(c({},Dc),{},{color:vc,backgroundColor:vc,outlineColor:vc,fill:vc,stroke:vc,borderColor:vc,borderTopColor:vc,borderRightColor:vc,borderBottomColor:vc,borderLeftColor:vc,filter:Rc,WebkitFilter:Rc}),_c=e=>Mc[e];function Ic(e,t){let n=_c(e);return n!==Rc&&(n=Cc),n.getAnimatableNone?n.getAnimatableNone(t):void 0}
2const zc=new Set(["auto","none","0"]);const Bc=e=>e===Zl||e===pc,Uc=(e,t)=>parseFloat(e.split(", ")[t]),Vc=(e,t)=>(n,r)=>{let a=r.transform;if("none"===a||!a)return 0;const o=a.match(/^matrix3d\(((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)\)$/);if(o)return Uc(o[1],t);{const t=a.match(/^matrix\(((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)\)$/);return t?Uc(t[1],e):0}},Wc=new Set(["x","y","z"]),qc=ll.filter(e=>!Wc.has(e));const Hc={width:(e,t)=>{let n=e.x,r=t.paddingLeft,a=void 0===r?"0":r,o=t.paddingRight,i=void 0===o?"0":o;return n.max-n.min-parseFloat(a)-parseFloat(i)},height:(e,t)=>{let n=e.y,r=t.paddingTop,a=void 0===r?"0":r,o=t.paddingBottom,i=void 0===o?"0":o;return n.max-n.min-parseFloat(a)-parseFloat(i)},top:(e,t)=>{let n=t.top;return parseFloat(n)},left:(e,t)=>{let n=t.left;return parseFloat(n)},bottom:(e,t)=>{let n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:(e,t)=>{let n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:Vc(4,13),y:Vc(5,14)};Hc.translateX=Hc.x,Hc.translateY=Hc.y;const Yc=new Set;let Kc=!1,$c=!1;function Xc(){if($c){const e=Array.from(Yc).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{const t=function(e){const t=[];return qc.forEach(n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();const t=n.get(e);t&&t.forEach(t=>{let n=Ie(t,2),r=n[0],a=n[1];var o;null===(o=e.getValue(r))||void 0===o||o.set(a)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}$c=!1,Kc=!1,Yc.forEach(e=>e.complete()),Yc.clear()}function Qc(){Yc.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&($c=!0)})}class Gc{constructor(e,t,n,r,a){let o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=a,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Yc.add(this),Kc||(Kc=!0,yl.read(Qc),yl.resolveKeyframes(Xc))):(this.readKeyframes(),this.complete())}readKeyframes(){const e=this.unresolvedKeyframes,t=this.name,n=this.element,r=this.motionValue;for(let a=0;a<e.length;a++)if(null===e[a])if(0===a){const a=null===r||void 0===r?void 0:r.get(),o=e[e.length-1];if(void 0!==a)e[0]=a;else if(n&&t){const r=n.readValue(t,o);void 0!==r&&null!==r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===a&&r.set(e[0])}else e[a]=e[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Yc.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Yc.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let Jc=sl,Zc=sl;const eu=e=>/^-?(?:[0-9]+(?:\.[0-9]+)?|\.[0-9]+)$/.test(e),tu=e=>t=>"string"===typeof t&&t.startsWith(e),nu=tu("--"),ru=tu("var(--"),au=e=>!!ru(e)&&ou.test(e.split("/*")[0].trim()),ou=/var\(--(?:[\x2D0-9A-Z_a-z\u017F\u212A]+[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*|[\x2D0-9A-Z_a-z\u017F\u212A]+[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*,(?:[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*(?:(?![\t-\r \(\)\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uD800-\uDFFF\uFEFF])[^]|[\uD800-\uDBFF][\uDC00-\uDFFF])|[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*\((?:(?:(?![\(\)\uD800-\uDFFF])[^]|[\uD800-\uDBFF][\uDC00-\uDFFF])|\((?:(?![\(\)\uD800-\uDFFF])[^]|[\uD800-\uDBFF][\uDC00-\uDFFF])*\))*\))+[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*)\)$/i,iu=/^var\(--(?:([\x2D0-9A-Z_a-z]+)|([\x2D0-9A-Z_a-z]+), ?([ #%\(\),-\.0-9A-Za-z]+))\)/;function su(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;Zc(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));const r=function(e){const t=iu.exec(e);if(!t)return[,];const n=Ie(t,4),r=n[1],a=n[2],o=n[3];return["--".concat(null!==r&&void 0!==r?r:a),o]}(e),a=Ie(r,2),o=a[0],i=a[1];if(!o)return;const s=window.getComputedStyle(t).getPropertyValue(o);if(s){const e=s.trim();return eu(e)?parseFloat(e):e}return au(i)?su(i,t,n+1):i}const lu=e=>t=>t.test(e),cu=[Zl,pc,hc,dc,mc,fc,{test:e=>"auto"===e,parse:e=>e}],uu=e=>cu.find(lu(e));class du extends Gc{constructor(e,t,n,r,a){super(e,t,n,r,a,!0)}readKeyframes(){const e=this.unresolvedKeyframes,t=this.element,n=this.name;if(!t||!t.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let n=e[l];
2if("string"===typeof n&&(n=n.trim(),au(n))){const r=su(n,t.current);void 0!==r&&(e[l]=r),l===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!ul.has(n)||2!==e.length)return;const r=Ie(e,2),a=r[0],o=r[1],i=uu(a),s=uu(o);if(i!==s)if(Bc(i)&&Bc(s))for(let l=0;l<e.length;l++){const t=e[l];"string"===typeof t&&(e[l]=parseFloat(t))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const e=this.unresolvedKeyframes,t=this.name,n=[];for(let r=0;r<e.length;r++)Gl(e[r])&&n.push(r);n.length&&function(e,t,n){let r,a=0;for(;a<e.length&&!r;){const t=e[a];"string"===typeof t&&!zc.has(t)&&Sc(t).values.length&&(r=e[a]),a++}if(r&&n)for(const o of t)e[o]=Ic(n,r)}(e,n,t)}measureInitialState(){const e=this.element,t=this.unresolvedKeyframes,n=this.name;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Hc[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const t=this.element,n=this.name,r=this.unresolvedKeyframes;if(!t||!t.current)return;const a=t.getValue(n);a&&a.jump(this.measuredOrigin,!1);const o=r.length-1,i=r[o];r[o]=Hc[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==i&&void 0===this.finalKeyframe&&(this.finalKeyframe=i),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEac
2h(e=>{let n=Ie(e,2),r=n[0],a=n[1];t.getValue(r).set(a)}),this.resolveNoneKeyframes()}}const hu=(e,t)=>"zIndex"!==t&&(!("number"!==typeof e&&!Array.isArray(e))||!("string"!==typeof e||!Cc.test(e)&&"0"!==e||e.startsWith("url(")));function pu(e,t,n,r){const a=e[0];if(null===a)return!1;if("display"===t||"visibility"===t)return!0;const o=e[e.length-1],i=hu(a,t),s=hu(o,t);return Jc(i===s,"You are trying to animate ".concat(t,' from "').concat(a,'" to "').concat(o,'". ').concat(a," is not an animatable value - to enable this animation set ").concat(a," to a value animatable to ").concat(o," via the `style` property.")),!(!i||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||Ls(n))&&r)}const fu=e=>null!==e;function mu(e,t,n){let r=t.repeat,a=t.repeatType,o=void 0===a?"loop":a;const i=e.filter(fu),s=r&&"loop"!==o&&r%2===1?0:i.length-1;return s&&void 0!==n?n:i[s]}const gu=["autoplay","delay","type","repeat","repeatDelay","repeatType"];class yu{constructor(e){let t=e.autoplay,n=void 0===t||t,r=e.delay,a=void 0===r?0:r,o=e.type,i=void 0===o?"keyframes":o,s=e.repeat,l=void 0===s?0:s,u=e.repeatDelay,d=void 0===u?0:u,h=e.repeatType,p=void 0===h?"loop":h,f=Oe(e,gu);this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Sl.now(),this.options=c({autoplay:n,delay:a,type:i,repeat:l,repeatDelay:d,repeatType:p},f),this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(Qc(),Xc()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=Sl.now(),this.hasAttemptedResolve=!0;const n=this.options,r=n.name,a=n.type,o=n.velocity,i=n.delay,s=n.onComplete,l=n.onUpdate;if(!n.isGenerator&&!pu(e,r,a,o)){if(Il||!i)return null===l||void 0===l||l(mu(e,this.options,t)),null===s||void 0===s||s(),void this.resolveFinishedPromise();this.options.duration=0}const u=this.initPlayback(e,t);!1!==u&&(this._resolved=c({keyframes:e,finalKeyframe:t},u),this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const vu=(e,t,n)=>e+(t-e)*n;function bu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function xu(e,t){return n=>n>0?t:e}const wu=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},ku=[cc,lc,yc];function Su(e){const t=(n=e,ku.find(e=>e.test(n)));var n;if(Jc(Boolean(t),"'".concat(e,"' is not an animatable color. Use the equivalent color code instead.")),!Boolean(t))return!1;let r=t.parse(e);return t===yc&&(r=function(e){let t=e.hue,n=e.saturation,r=e.lightness,a=e.alpha;t/=360,n/=100,r/=100;let o=0,i=0,s=0;if(n){const e=r<.5?r*(1+n):r+n-r*n,a=2*r-e;o=bu(a,e,t+1/3),i=bu(a,e,t),s=bu(a,e,t-1/3)}else o=i=s=r;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*s),alpha:a}}(r)),r}const Eu=(e,t)=>{const n=Su(e),r=Su(t);if(!n||!r)return xu(e,t);const a=c({},n);return e=>(a.red=wu(n.red,r.red,e),a.green=wu(n.green,r.green,e),a.blue=wu(n.blue,r.blue,e),a.alpha=vu(n.alpha,r.alpha,e),lc.transform(a))},Nu=(e,t)=>n=>t(e(n)),ju=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(Nu)},Cu=new Set(["none","hidden"]);function Tu(e,t){return n=>vu(e,t,n)}function Pu(e){return"number"===typeof e?Tu:"string"===typeof e?au(e)?xu:vc.test(e)?Eu:Ou:Array.isArray(e)?Au:"object"===typeof e?vc.test(e)?Eu:Ru:xu}function Au(e,t){const n=[...e],r=n.length,a=e.map((e,n)=>Pu(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=a[t](e);return n}}function Ru(e,t){const n=c(c({},e),t),r={};for(const a in n)void 0!==e[a]&&void 0!==t[a]&&(r[a]=Pu(e[a])(e[a],t[a]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const Ou=(e,t)=>{const n=Cc.createTransformer(t),r=Sc(e),a=Sc(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?Cu.has(e)&&!a.values.length||Cu.has(t)&&!r.values.length?function(e,t){return Cu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):ju(Au(function(e,t){var n;const r=[],a={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],s=e.indexes[i][a[i]],l=null!==(n=e.values[s])&&void 0!==n?n:0;r[o]=l,a[i]++}return r}(r,a),a.values),n):(Jc(!0,"Complex values '".concat(e,"' and '").concat(t,"' too different to mix. Ensure all c
2olors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.")),xu(e,t))};function Fu(e,t,n){if("number"===typeof e&&"number"===typeof t&&"number"===typeof n)return vu(e,t,n);return Pu(e)(e,t)}function Lu(e,t,n){const r=Math.max(t-5,0);return Cl(n-e(r),t-r)}const Du=100,Mu=10,_u=1,Iu=0,zu=800,Bu=.3,Uu=.3,Vu={granular:.01,default:2},Wu={granular:.005,default:.5},qu=.01,Hu=10,Yu=.05,Ku=1,$u=.001;function Xu(e){let t,n,r=e.duration,a=void 0===r?zu:r,o=e.bounce,i=void 0===o?Bu:o,s=e.velocity,l=void 0===s?Iu:s,c=e.mass,u=void 0===c?_u:c;Jc(a<=ol(Hu),"Spring duration must be 10 seconds or less");let d=1-i;d=Jl(Yu,Ku,d),a=Jl(qu,Hu,il(a)),d<1?(t=e=>{const t=e*d,n=t*a,r=t-l,o=Gu(e,d),i=Math.exp(-n);return $u-r/o*i},n=e=>{const n=e*d*a,r=n*l+l,o=Math.pow(d,2)*Math.pow(e,2)*a,i=Math.exp(-n),s=Gu(Math.pow(e,2),d);return(-t(e)+$u>0?-1:1)*((r-o)*i)/s}):(t=e=>Math.exp(-e*a)*((e-l)*a+1)-.001,n=e=>Math.exp(-e*a)*(a*a*(l-e)));const h=function(e,t,n){let r=n;for(let a=1;a<Qu;a++)r-=e(r)/t(r);return r}(t,n,5/a);if(a=ol(a),isNaN(h))return{stiffness:Du,damping:Mu,duration:a};{const e=Math.pow(h,2)*u;return{stiffness:e,damping:2*d*Math.sqrt(u*e),duration:a}}}const Qu=12;function Gu(e,t){return e*Math.sqrt(1-t*t)}const Ju=["duration","bounce"],Zu=["stiffness","damping","mass"];function ed(e,t){return t.some(t=>void 0!==e[t])}function td(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Uu;const t="object"!==typeof e?{visualDuration:e,keyframes:[0,1],bounce:arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bu}:e;let n=t.restSpeed,r=t.restDelta;const a=t.keyframes[0],o=t.keyframes[t.keyframes.length-1],i={done:!1,value:a},s=function(e){let t=c({velocity:Iu,stiffness:Du,damping:Mu,mass:_u,isResolvedFromDuration:!1},e);if(!ed(e,Zu)&&ed(e,Ju))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),a=r*r,o=2*Jl(.05,1,1-(e.bounce||0))*Math.sqrt(a);t=c(c({},t),{},{mass:_u,stiffness:a,damping:o})}else{const n=Xu(e);t=c(c(c({},t),n),{},{mass:_u}),t.isResolvedFromDuration=!0}return t}(c(c({},t),{},{velocity:-il(t.velocity||0)})),l=s.stiffness,u=s.damping,d=s.mass,h=s.duration,p=s.velocity,f=s.isResolvedFromDuration,m=p||0,g=u/(2*Math.sqrt(l*d)),y=o-a,v=il(Math.sqrt(l/d)),b=Math.abs(y)<5;let x;if(n||(n=b?Vu.granular:Vu.default),r||(r=b?Wu.granular:Wu.default),g<1){const e=Gu(v,g);x=t=>{const n=Math.exp(-g*v*t);return o-n*((m+g*v*y)/e*Math.sin(e*t)+y*Math.cos(e*t))}}else if(1===g)x=e=>o-Math.exp(-v*e)*(y+(m+v*y)*e);else{const e=v*Math.sqrt(g*g-1);x=t=>{const n=Math.exp(-g*v*t),r=Math.min(e*t,300);return o-n*((m+g*v*y)*Math.sinh(r)+e*y*Math.cosh(r))/e}}const w={calculatedDuration:f&&h||null,next:e=>{const t=x(e);if(f)i.done=e>=h;else{let a=0;g<1&&(a=0===e?ol(m):Lu(x,e,t));const s=Math.abs(a)<=n,l=Math.abs(o-t)<=r;i.done=s&&l}return i.value=i.done?o:t,i},toString:()=>{const e=Math.min(Fs(w),Os),t=Us(t=>w.next(e*t).value,e,30);return e+"ms "+t}};return w}function nd(e){let t=e.keyframes,n=e.velocity,r=void 0===n?0:n,a=e.power,o=void 0===a?.8:a,i=e.timeConstant,s=void 0===i?325:i,l=e.bounceDamping,c=void 0===l?10:l,u=e.bounceStiffness,d=void 0===u?500:u,h=e.modifyTarget,p=e.min,f=e.max,m=e.restDelta,g=void 0===m?.5:m,y=e.restSpeed;const v=t[0],b={done:!1,value:v},x=e=>void 0===p?f:void 0===f||Math.abs(p-e)<Math.abs(f-e)?p:f;let w=o*r;const k=v+w,S=void 0===h?k:h(k);S!==k&&(w=S-v);const E=e=>-w*Math.exp(-e/s),N=e=>S+E(e),j=e=>{const t=E(e),n=N(e);b.done=Math.abs(t)<=g,b.value=b.done?S:n};let C,T;const P=e=>{var t;(t=b.value,void 0!==p&&t<p||void 0!==f&&t>f)&&(C=e,T=td({keyframes:[b.value,x(b.value)],velocity:Lu(N,e,b.value),damping:c,stiffness:d,restDelta:g,restSpeed:y}))};return P(0),{calculatedDuration:null,next:e=>{let t=!1;return T||void 0!==C||(t=!0,j(e),P(e)),void 0!==C&&e>=C?T.next(e-C):(!t&&j(e),b)}}}const rd=Bl(.42,0,1,1),ad=Bl(0,0,.58,1),od=Bl(.42,0,.58,1),id={linear:sl,easeIn:rd,easeInOut:od,easeOut:ad,circIn:Kl,circInOut:Xl,circOut:$l,backIn:ql,backInOut:Hl,backOut:Wl,anticipate:Yl},sd=e=>{if(Ms(e)){Zc(4===e.length,"Cubic bezier arrays must contain four numerical values.");const t=Ie(e,4);return Bl(t[0],t[1],t[2],t[3])}return"string"===typeof e?(Zc(void 0!==id[e],"Invalid easing type '".concat(e,"'")),id[e]):e};function ld(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.clamp,a=void 0===r||r,o=n.ease,i=n.mixer;const s=e.length;if(Zc(s===t.length,"Both input and output ranges must be the same length"),1===s)return()=>t[0];if(2===s&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=function(e,t,n){const r=[],a=n||Fu,o=e.length-1;for(let i=0;i<o;i++){let n=a(e[i],e[i+1]);if(t){const e=Array.isArray(t)?t[i]||sl:t;n=ju(e,n)}r.push(n)}return r}(t,o,i),u=c.length,d=n=>{if(l&&n<e[0])return t[0];let r=0;if(u>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const a=Bs(e[r],e[r+1],n);return c[r](a)};return a?t=>d(Jl(e[0],e[s-1],t)):d}function cd(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=Bs(0,t,r);e.push(vu(n,1,a))}}(t,e.length-1),t}function ud(e){let t=e.duration,n=void 0===t?300:t,r=e.keyframes,a=e.times,o=e.ease,i=void 0===o?"easeInOut":o;const s=(e=>Array.isArray(e)&&"number"!==typeof e[0])(i)?i.map(sd):sd(i),l={done:!1,value:r[0]},c=function(e,t){return e.map(e=>e*t)}(a&&a.length===r.length?a:cd(r),n),u=ld(c,r,{ease:Array.isArray(s)?s:(d=r,h=s,d.map(()=>h||od).splice(0,d.length-1))});var d,h;return{calculatedDuration:n,next:e=>(l.value=u(e),l.done=e>=n,l)}}const dd=e=>{const t=t=>{let n=t.timestamp;return e(n)};return{start:()=>yl.update(t,!0),stop:()=>vl(t),now:()=>bl.isProcessing?bl.timestamp:Sl.now()}},hd={decay:nd,inertia:nd,tween:ud,keyframes:ud,spring:td},pd=e=>e/100;class fd extends yu{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>
2{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const e=this.options.onStop;e&&e()};const t=this.options,n=t.name,r=t.motionValue,a=t.element,o=t.keyframes,i=(null===a||void 0===a?void 0:a.KeyframeResolver)||Gc;this.resolver=new i(o,(e,t)=>this.onKeyframesResolved(e,t),n,r,a),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const t=this.options,n=t.type,r=void 0===n?"keyframes":n,a=t.repeat,o=void 0===a?0:a,i=t.repeatDelay,s=void 0===i?0:i,l=t.repeatType,u=t.velocity,d=void 0===u?0:u,h=Ls(r)?r:hd[r]||ud;let p,f;h!==ud&&"number"!==typeof e[0]&&(p=ju(pd,Fu(e[0],e[1])),e=[0,100]);const m=h(c(c({},this.options),{},{keyframes:e}));"mirror"===l&&(f=h(c(c({},this.options),{},{keyframes:[...e].reverse(),velocity:-d}))),null===m.calculatedDuration&&(m.calculatedDuration=Fs(m));const g=m.calculatedDuration,y=g+s;return{generator:m,mirroredGenerator:f,mapPercentToKeyframes:p,calculatedDuration:g,resolvedDuration:y,totalDuration:y*(o+1)-s}}onPostResolved(){const e=this.options.autoplay,t=void 0===e||e;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.resolved;if(!n){const e=this.options.keyframes;return{done:!0,value:e[e.length-1]}}const r=n.finalKeyframe,a=n.generator,o=n.mirroredGenerator,i=n.mapPercentToKeyframes,s=n.keyframes,l=n.calculatedDuration,c=n.totalDuration,u=n.resolvedDuration;if(null===this.startTime)return a.next(0);const d=this.options,h=d.delay,p=d.repeat,f=d.repeatType,m=d.repeatDelay,g=d.onUpdate;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const y=this.currentTime-h*(this.speed>=0?1:-1),v=this.speed>=0?y<0:y>c;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let b=this.currentTime,x=a;if(p){const e=Math.min(this.currentTime,c)/u;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,p+1);Boolean(t%2)&&("reverse"===f?(n=1-n,m&&(n-=m/u)):"mirror"===f&&(x=o)),b=Jl(0,1,n)*u}const w=v?{done:!1,value:s[0]}:x.next(b);i&&(w.value=i(w.value));let k=w.done;v||null===l||(k=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&k);return S&&void 0!==r&&(w.value=mu(s,this.options,r)),g&&g(w.value),S&&this.finish(),w}get duration(){const e=this.resolved;return e?il(e.calculatedDuration):0}get time(){return il(this.currentTime)}set time(e){e=ol(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=il(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const e=this.options,t=e.driver,n=void 0===t?dd:t,r=e.onPlay,a=e.startTime;this.driver||(this.driver=n(e=>this.tick(e))),r&&r();const o=this.driver.now();null!==this.holdTime?this.startTime=o-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=o):this.startTime=null!==a&&void 0!==a?a:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const e=this.options.onComplete;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedProm
2ise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const md=new Set(["opacity","clipPath","filter","transform"]);const gd=Cs(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),yd=["onComplete","onUpdate","motionValue","element"],vd=["motionValue","onUpdate","onComplete","element"];const bd={anticipate:Yl,backInOut:Hl,circInOut:Xl};class xd extends yu{constructor(e){super(e);const t=this.options,n=t.name,r=t.motionValue,a=t.element,o=t.keyframes;this.resolver=new du(o,(e,t)=>this.onKeyframesResolved(e,t),n,r,a),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let r=this.options,a=r.duration,o=void 0===a?300:a,i=r.times,s=r.ease,l=r.type,u=r.motionValue,d=r.name,h=r.startTime;if(!(null===(n=u.owner)||void 0===n?void 0:n.current))return!1;var p;if("string"===typeof s&&zs()&&s in bd&&(s=bd[s]),Ls((p=this.options).type)||"spring"===p.type||!Vs(p.ease)){const t=this.options,n=(t.onComplete,t.onUpdate,t.motionValue,t.element,Oe(t,yd)),r=function(e,t){const n=new fd(c(c({},t),{},{keyframes:e,repeat:0,delay:0,isGenerator:!0}));let r={done:!1,value:e[0]};const a=[];let o=0;for(;!r.done&&o<2e4;)r=n.sample(o),a.push(r.value),o+=10;return{times:void 0,keyframes:a,duration:o-10,ease:"linear"}}(e,n);1===(e=r.keyframes).length&&(e[1]=e[0]),o=r.duration,i=r.times,s=r.ease,l="keyframes"}const f=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=r.delay,o=void 0===a?0:a,i=r.duration,s=void 0===i?300:i,l=r.repeat,c=void 0===l?0:l,u=r.repeatType,d=void 0===u?"loop":u,h=r.ease,p=void 0===h?"easeInOut":h,f=r.times;const m={[t]:n};f&&(m.offset=f);const g=Hs(p,s);return Array.isArray(g)&&(m.easing=g),e.animate(m,{delay:o,duration:s,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:c+1,direction:"reverse"===d?"alternate":"normal"})}(u.owner.current,d,e,c(c({},this.options),{},{duration:o,times:i,ease:s}));return f.startTime=null!==h&&void 0!==h?h:this.calcStartTime(),this.pendingTimeline?(Ds(f,this.pendingTimeline),this.pendingTimeline=void 0):f.onfinish=()=>{const n=this.options.onComplete;u.set(mu(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:f,duration:o,times:i,type:l,ease:s,keyframes:e}}get duration(){const e=this.resolved;if(!e)return 0;const t=e.duration;return il(t)}get time(){const e=this.resolved;if(!e)return 0;const t=e.animation;return il(t.currentTime||0)}set time(e){const t=this.resolved;if(!t)return;t.animation.currentTime=ol(e)}get speed(){const e=this.resolved;if(!e)return 1;return e.animation.playbackRate}set speed(e){const t=this.resolved;if(!t)return;t.animation.playbackRate=e}get state(){const e=this.resolved;if(!e)return"idle";return e.animation.playState}get startTime(){const e=this.resolved;if(!e)return null;return e.animation.startTime}attachTimeline(e){if(this._resolved){const t=this.resolved;if(!t)return sl;Ds(t.animation,e)}else this.pendingTimeline=e;return sl}play(){if(this.isStopped)return;const e=this.resolved;if(!e)return;const t=e.animation;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const e=this.resolved;if(!e)return;e.animation.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const e=this.resolved;if(!e)return;const t=e.animation,n=e.keyframes,r=e.duration,a=e.type,o=e.ease,i=e.times;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const e=this.options,t=e.motionValue,s=(e.onUpdate,e.onComplete,e.element,Oe(e,vd)),l=new fd(c(c({},s),{},{keyframes:n,duration:r,type:a,ease:o,times:i,isGenerator:!0})),u=ol(this.time);t.setWithVelocity(l.sample(u-10).value,l.sample(u).value,10)}const s=this.options.onStop;s&&s(),this.cancel()}complete(){const e=this.resolved;e&&e.animation.finish()}cancel(){const e=this.resolved;e&&e.animation.cancel()}static supports(e){const t=e.motionValue,n=e.name,r=e.repeatDelay,a=e.repeatType,o=e.damping,i=e.type;return gd()&&n&&md.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUp
2date&&!r&&"mirror"!==a&&0!==o&&"inertia"!==i}}const wd={type:"spring",stiffness:500,damping:25,restSpeed:10},kd={type:"keyframes",duration:.8},Sd={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ed=(e,t)=>{let n=t.keyframes;return n.length>2?kd:cl.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===n[1]?2*Math.sqrt(550):30,restSpeed:10}:wd:Sd},Nd=["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"];const jd=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;return i=>{const s=Rs(r,e)||{},l=s.delay||r.delay||0;let u=r.elapsed,d=void 0===u?0:u;d-=ol(l);let h=c(c({keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity()},s),{},{delay:-d,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{i(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:a});(function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from,e.elapsed;let t=Oe(e,Nd);return!!Object.keys(t).length})(s)||(h=c(c({},h),Ed(e,h))),h.duration&&(h.duration=ol(h.duration)),h.repeatDelay&&(h.repeatDelay=ol(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let p=!1;if((!1===h.type||0===h.duration&&!h.repeatDelay)&&(h.duration=0,0===h.delay&&(p=!0)),(Il||hl)&&(p=!0,h.duration=0,h.delay=0),p&&!o&&void 0!==t.get()){const e=mu(h.keyframes,s);if(void 0!==e)return yl.update(()=>{h.onUpdate(e),h.onComplete()}),new As([])}return!o&&xd.supports(h)?new xd(h):new fd(h)}},Cd=["transition","transitionEnd"];function Td(e,t){let n=e.protectedKeys,r=e.needsAnimating;const a=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,a}function Pd(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.delay,a=void 0===r?0:r,o=n.transitionOverride,i=n.type;var s;let l=t.transition,u=void 0===l?e.getDefaultTransition():l,d=t.transitionEnd,h=Oe(t,Cd);o&&(u=o);const p=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const m in h){const t=e.getValue(m,null!==(s=e.latestValues[m])&&void 0!==s?s:null),n=h[m];if(void 0===n||f&&Td(f,m))continue;const r=c({delay:a},Rs(u||{},m));let o=!1;if(window.MotionHandoffAnimation){const t=_l(e);if(t){const e=window.MotionHandoffAnimation(t,m,yl);null!==e&&(r.startTime=e,o=!0)}}Ll(e,m),t.start(jd(m,t,n,e.shouldReduceMotion&&ul.has(m)?{type:!1}:r,e,o));const i=t.animation;i&&p.push(i)}return d&&Promise.all(p).then(()=>{yl.update(()=>{d&&function(e,t){let n=Es(e,t)||{},r=n.transitionEnd,a=void 0===r?{}:r,o=(n.transition,Oe(n,Rl));o=c(c({},o),a);for(const i in o)Ol(e,i,dl(o[i]))}(e,d)})}),p}function Ad(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var r;const a=Es(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let o=(a||{}).transition,i=void 0===o?e.getDefaultTransition()||{}:o;n.transitionOverride&&(i=n.transitionOverride);const s=a?()=>Promise.all(Pd(e,a,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const a=i,o=a.delayChildren,s=void 0===o?0:o,l=a.staggerChildren,u=a.staggerDirection;return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=arguments.length>5?arguments[5]:void 0;const i=[],s=(e.variantChildren.size-1)*r,l=1===a?function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*r}:function(){return s-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*r};return Array.from(e.variantChildren).sort(Rd).forEach((e,r)=>{e.notify("AnimationStart",t),i.push(Ad(e,t,c(c({},o),{},{delay:n+l(r)})).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(i)}(e,t,s+r,l,u,n)}:()=>Promise.resolve(),u=i.when;if(u){const e=Ie("beforeChildren"===u?[s,l]:[l,s],2),t=e[0],n=e[1];return t().then(()=>n())}return Promise.all([s(),l(n.delay)])}function Rd(e,t){return e.sortNodePosition(t)}const Od=js.length;function Fd(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&Fd(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<Od;n++){const r=js[n],a=e.props[r];(ws(a)||!1===a)&&(t[r]=a)}return t}const Ld=["transition","transitionEnd"],Dd=[...Ns].reverse(),Md=Ns.length;function _d(e){return t=>Promise.all(t.map(t=>{let n=t.animation,r=t.options;return function(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.notify("AnimationStart",t),Array.isArray(t)){const a=t.map(t=>Ad(e,t,r));n=Promise.all(a)}else if("string"===typeof t)n=Ad(e,t,r);else{const a="function"===typeof t?Es(e,t,r.custom):t;n=Promise.all(Pd(e,a,r))}return n.then(()=>
2{e.notify("AnimationComplete",t)})}(e,n,r)}))}function Id(e){let t=_d(e),n=Ud(),r=!0;const a=t=>(n,r)=>{var a;const o=Es(e,r,"exit"===t?null===(a=e.presenceContext)||void 0===a?void 0:a.custom:void 0);if(o){o.transition;const e=o.transitionEnd,t=Oe(o,Ld);n=c(c(c({},n),t),e)}return n};function o(o){const i=e.props,s=Fd(e.parent)||{},l=[],u=new Set;let d={},h=1/0;for(let t=0;t<Md;t++){const p=Dd[t],f=n[p],m=void 0!==i[p]?i[p]:s[p],g=ws(m),y=p===o?f.isActive:null;!1===y&&(h=t);let v=m===s[p]&&m!==i[p]&&g;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),f.protectedKeys=c({},d),!f.isActive&&null===y||!m&&!f.prevProp||vs(m)||"boolean"===typeof m)continue;const b=zd(f.prevProp,m);let x=b||p===o&&f.isActive&&!v&&g||t>h&&g,w=!1;const k=Array.isArray(m)?m:[m];let S=k.reduce(a(p),{});!1===y&&(S={});const E=f.prevResolvedValues,N=void 0===E?{}:E,j=c(c({},N),S),C=t=>{x=!0,u.has(t)&&(w=!0,u.delete(t)),f.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in j){const t=S[e],n=N[e];if(d.hasOwnProperty(e))continue;let r=!1;r=bs(t)&&bs(n)?!xs(t,n):t!==n,r?void 0!==t&&null!==t?C(e):u.add(e):void 0!==t&&u.has(e)?C(e):f.protectedKeys[e]=!0}f.prevProp=m,f.prevResolvedValues=S,f.isActive&&(d=c(c({},d),S)),r&&e.blockInitialAnimation&&(x=!1);x&&(!(v&&b)||w)&&l.push(...k.map(e=>({animation:e,options:{type:p}})))}if(u.size){const t={};u.forEach(n=>{const r=e.getBaseTarget(n),a=e.getValue(n);a&&(a.liveStyle=!0),t[n]=null!==r&&void 0!==r?r:null}),l.push({animation:t})}let p=Boolean(l.length);return!r||!1!==i.initial&&i.initial!==i.animate||e.manuallyAnimateOnMount||(p=!1),r=!1,p?t(l):Promise.resolve()}return{animateChanges:o,setActive:function(t,r){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;const i=o(t);for(const e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=Ud(),r=!0}}}function zd(e,t){return"string"===typeof t?t!==e:!!Array.isArray(t)&&!xs(t,e)}function Bd(){return{isActive:arguments.length>0&&void 0!==arguments[0]&&arguments[0],protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ud(){return{animate:Bd(!0),whileInView:Bd(),whileHover:Bd(),whileTap:Bd(),whileDrag:Bd(),whileFocus:Bd(),exit:Bd()}}class Vd{constructor(e){this.isMounted=!1,this.node=e}update(){}}let Wd=0;const qd={animation:{Feature:class extends Vd{constructor(e){super(e),e.animationState||(e.animationState=Id(e))}updateAnimationControlsSubscription(){const e=this.node.getProps().animate;vs(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){this.node.getProps().animate!==(this.node.prevProps||{}).animate&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends Vd{constructor(){super(...arguments),this.id=Wd++}update(){if(!this.node.presenceContext)return;const e=this.node.presenceContext,t=e.isPresent,n=e.onExitComplete,r=(this.node.prevPresenceContext||{}).isPresent;if(!this.node.animationState||t===r)return;const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>n(this.id))}mount(){const e=(this.node.presenceContext||{}).register;e&&(this.unmount=e(this.id))}unmount(){}}}};function Hd(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Yd(e){return{point:{x:e.pageX,y:e.pageY}}}function Kd(e,t,n,r){return Hd(e,t,(e=>t=>Js(t)&&e(t,Yd(t)))(n),r)}const $d=(e,t)=>Math.abs(e-t);class Xd{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.transformPagePoint,a=n.contextWindow,o=n.dragSnapToOrigin,i=void 0!==o&&o;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Jd(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=$d(e.x,t.x),r=$d(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const r=e.point,a=bl.timestamp;this.history.push(c(c({},r),{},{timestamp:a}));const o=this.handlers,i=o.onStart,s=o.onMove;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>
2{this.lastMoveEvent=e,this.lastMoveEventInfo=Qd(t,this.transformPagePoint),yl.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const n=this.handlers,r=n.onEnd,a=n.onSessionEnd,o=n.resumeAnimation;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=Jd("pointercancel"===e.type?this.lastMoveEventInfo:Qd(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,i),a&&a(e,i)},!Js(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=r,this.contextWindow=a||window;const s=Qd(Yd(e),this.transformPagePoint),l=s.point,u=bl.timestamp;this.history=[c(c({},l),{},{timestamp:u})];const d=t.onSessionStart;d&&d(e,Jd(s,this.history)),this.removeListeners=ju(Kd(this.contextWindow,"pointermove",this.handlePointerMove),Kd(this.contextWindow,"pointerup",this.handlePointerUp),Kd(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),vl(this.updatePoint)}}function Qd(e,t){return t?{point:t(e.point)}:e}function Gd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Jd(e,t){let n=e.point;return{point:n,delta:Gd(n,eh(t)),offset:Gd(n,Zd(t)),velocity:th(t,.1)}}function Zd(e){return e[0]}function eh(e){return e[e.length-1]}function th(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=eh(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>ol(t)));)n--;if(!r)return{x:0,y:0};const o=il(a.timestamp-r.timestamp);if(0===o)return{x:0,y:0};const i={x:(a.x-r.x)/o,y:(a.y-r.y)/o};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function nh(e){return e&&"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function rh(e){return e.max-e.min}function ah(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;e.origin=r,e.originPoint=vu(t.min,t.max,e.origin),e.scale=rh(n)/rh(t),e.translate=vu(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function oh(e,t,n,r){ah(e.x,t.x,n.x,r?r.originX:void 0),ah(e.y,t.y,n.y,r?r.originY:void 0)}function ih(e,t,n){e.min=n.min+t.min,e.max=e.min+rh(t)}function sh(e,t,n){e.min=t.min-n.min,e.max=e.min+rh(t)}function lh(e,t,n){sh(e.x,t.x,n.x),sh(e.y,t.y,n.y)}function ch(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function uh(e,t){let n=t.min-e.min,r=t.max-e.max;if(t.max-t.min<e.max-e.min){var a=[r,n];n=a[0],r=a[1]}return{min:n,max:r}}const dh=.35;function hh(e,t,n){return{min:ph(e,t),max:ph(e,n)}}function ph(e,t){return"number"===typeof e?e:e[t]||0}const fh=()=>({x:{min:0,max:0},y:{min:0,max:0}});function mh(e){return[e("x"),e("y")]}function gh(e){let t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function yh(e){return void 0===e||1===e}function vh(e){let t=e.scale,n=e.scaleX,r=e.scaleY;return!yh(t)||!yh(n)||!yh(r)}function bh(e){return vh(e)||xh(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function xh(e){return wh(e.x)||wh(e.y)}function wh(e){return e&&"0%"!==e}function kh(e,t,n){return n+t*(e-n)}function Sh(e,t,n,r,a){return void 0!==a&&(e=kh(e,a,r)),kh(e,n,r)+t}function Eh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;e.min=Sh(e.min,t,n,r,a),e.max=Sh(e.max,t,n,r,a)}function Nh(e,t){let n=t.x,r=t.y;Eh(e.x,n.translate,n.scale,n.originPoint),Eh(e.y,r.translate,r.scale,r.originPoint)}const jh=.999999999999,Ch=1.0000000000001;function Th(e,t){e.min=e.min+t,e.max=e.max+t}function Ph(e,t,n,r){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.5;Eh(e,t,n,vu(e.min,e.max,a),r)}function Ah(e,t){Ph(e.x,t.x,t.scaleX,t.scale,t.originX),Ph(e.y,t.y,t.scaleY,t.scale,t.originY)}function Rh(e,t){return gh(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const Oh=e=>{let t=e.current;return t?t.ownerDocument.defaultView:null},Fh=new WeakMap;class Lh{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e){let t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).snapToCursor,n=void 0!==t&&t;const r=this.visualElement.presenceContext;if(r&&!1===r.isPresent)return;const a=this.getProps().dragSnapToOrigin;this.panSession=new Xd(e,{onSessionStart:e=>{this.getProps().dragSnapToOrigin?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Yd(e).point)},onStart:(e,t)=>{const n=this.getProps(),r=n.drag,a=n.dragPropagation,o=n.onDragStart;if(r&&!a&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(i=r)||"y"===i?Ys[i]?null:(Ys[i]=!0,()=>{Ys[i]=!1}):Ys.x||Ys.y?null:(Ys.x=Ys.y=!0,()=>{Ys.x=Ys.y=!1}),!this.openDragLock))return;var i;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),mh(e=>{let t=this.getAxisMotionValue(e).get()||0;if(hc.test(t)){const n=this.visualElement.projection;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=rh(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),o&&yl.postRender(()=>o(e,t)),Ll(this.visualElement,"transform");const s=this.visualElement.animationState;s&&s.setActive("whileDrag",!0)},onMove:(e,t)=>
2{const n=this.getProps(),r=n.dragPropagation,a=n.dragDirectionLock,o=n.onDirectionLock,i=n.onDrag;if(!r&&!this.openDragLock)return;const s=t.offset;if(a&&null===this.currentDirection)return this.currentDirection=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(s),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>mh(e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:a,contextWindow:Oh(this.visualElement)})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const r=t.velocity;this.startAnimation(r);const a=this.getProps().onDragEnd;a&&yl.postRender(()=>a(e,t))}cancel(){this.isDragging=!1;const e=this.visualElement,t=e.projection,n=e.animationState;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;!this.getProps().dragPropagation&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,t,n){const r=this.getProps().drag;if(!n||!Dh(e,r,this.currentDirection))return;const a=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,t,n){let r=t.min,a=t.max;return void 0!==r&&e<r?e=n?vu(r,e,n.min):Math.max(e,r):void 0!==a&&e>a&&(e=n?vu(a,e,n.max):Math.min(e,a)),e}(o,this.constraints[e],this.elastic[e])),a.set(o)}resolveConstraints(){var e;const t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;n&&nh(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!a)&&function(e,t){let n=t.top,r=t.left,a=t.bottom,o=t.right;return{x:ch(e.x,r,o),y:ch(e.y,n,a)}}(a.layoutBox,n),this.elastic=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:dh;return!1===e?e=0:!0===e&&(e=dh),{x:hh(e,"left","right"),y:hh(e,"top","bottom")}}(r),o!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&mh(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(a.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!nh(t))return!1;const r=t.current;Zc(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const a=this.visualElement.projection;if(!a||!a.layout)return!1;const o=function(e,t,n){const r=Rh(e,n),a=t.scroll;return a&&(Th(r.x,a.offset.x),Th(r.y,a.offset.y)),r}(r,a.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:uh(e.x,t.x),y:uh(e.y,t.y)}}(a.layout.layoutBox,o);if(n){const e=n(function(e){let t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=gh(e))}return i}startAnimation(e){const t=this.getProps(),n=t.drag,r=t.dragMomentum,a=t.dragElastic,o=t.dragTransition,i=t.dragSnapToOrigin,s=t.onDragTransitionEnd,l=this.constraints||{},u=mh(t=>
2{if(!Dh(t,n,this.currentDirection))return;let s=l&&l[t]||{};i&&(s={min:0,max:0});const u=a?200:1e6,d=a?40:1e7,h=c(c({type:"inertia",velocity:r?e[t]:0,bounceStiffness:u,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10},o),s);return this.startAxisValueAnimation(t,h)});return Promise.all(u).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return Ll(this.visualElement,e),n.start(jd(e,n,0,t,this.visualElement,!1))}stopAnimation(){mh(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){mh(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t="_drag".concat(e.toUpperCase()),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){mh(t=>{if(!Dh(t,this.getProps().drag,this.currentDirection))return;const n=this.visualElement.projection,r=this.getAxisMotionValue(t);if(n&&n.layout){const a=n.layout.layoutBox[t],o=a.min,i=a.max;r.set(e[t]-vu(o,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const e=this.getProps(),t=e.drag,n=e.dragConstraints,r=this.visualElement.projection;if(!nh(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};mh(e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();a[e]=function(e,t){let n=.5;const r=rh(e),a=rh(t);return a>r?n=Bs(t.min,t.max-r,e.min):r>a&&(n=Bs(e.min,e.max-a,t.min)),Jl(0,1,n)}({min:n,max:n},this.constraints[e])}});const o=this.visualElement.getProps().transformTemplate;this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),mh(e=>{if(!Dh(e,t,null))return;const n=this.getAxisMotionValue(e),r=this.constraints[e],o=r.min,i=r.max;n.set(vu(o,i,a[e]))})}addListeners(){if(!this.visualElement.current)return;Fh.set(this.visualElement,this);const e=Kd(this.visualElement.current,"pointerdown",e=>{const t=this.getProps(),n=t.drag,r=t.dragListener;n&&(void 0===r||r)&&this.start(e)}),t=()=>{const e=this.getProps().dragConstraints;nh(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},n=this.visualElement.projection,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),yl.read(t);const a=Hd(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",e=>{let t=e.delta,n=e.hasLayoutChanged;this.isDragging&&n&&(mh(e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{a(),e(),r(),o&&o()}}getProps(){const e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,a=void 0!==r&&r,o=e.dragPropagation,i=void 0!==o&&o,s=e.dragConstraints,l=void 0!==s&&s,u=e.dragElastic,d=void 0===u?dh:u,h=e.dragMomentum,p=void 0===h||h;return c(c({},e),{},{drag:n,dragDirectionLock:a,dragPropagation:i,dragConstraints:l,dragElastic:d,dragMomentum:p})}}function Dh(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}const Mh=e=>(t,n)=>{e&&yl.postRender(()=>e(t,n))};const _h=(0,t.createContext)({}),Ih={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function zh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Bh={correct:(e,t)=>{if(!t.target)return e;if("string"===typeof e){if(!pc.test(e))return e;e=parseFloat(e)}const n=zh(e,t.target.x),r=zh(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},Uh={correct:(e,t)=>{let n=t.treeScale,r=t.projectionDelta;const a=e,o=Cc.parse(e);if(o.length>5)return a;const i=Cc.createTransformer(e),s="number"!==typeof o[0]?1:0,l=r.x.scale*n.x,c=r.y.scale*n.y;o[0+s]/=l,o[1+s]/=c;const u=vu(l,c,.5);return"number"===typeof o[2+s]&&(o[2+s]/=u),"number"===typeof o[3+s]&&(o[3+s]/=u),i(o)}},Vh={};const Wh=ml(queueMicrotask,!1),qh=Wh.schedule;Wh.cancel;class Hh extends t.Component{componentDidMount(){const e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,a=e.layoutId,o=t.projection;var i;i=Kh,Object.assign(Vh,i),o&&(n.group&&n.group.add(o),r&&r.register&&a&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions(c(c({},o.options),{},{onExitComplete:()=>this.safeToRemove()}))),Ih.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const t=this.props,n=t.layoutDependency,r=t.visualElement,a=t.drag,o=t.isPresent,i=r.projection;return i?(i.isPresent=o,a||e.layoutDependency!==n||void 0===n?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||yl.postRender(()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const e=this.props.visualElement.projection;e&&(e.root.didUpdate(),qh.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,a=t.projection;a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),r&&r.deregister&&r.deregister(a))}safeToRemove(){const e=this.props.safeToRemove;e&&e()}render(){return null}}function Yh(e){const n=Ie(ds(),2),r=n[0],a=n[1],o=(0,t.useContext)(rs);return(0,Pe.jsx)(Hh,c(c({},e),{},{layoutGroup:o,switchLayoutGroup:(0,t.useContext)(_h),isPresent:r,safeToRemove:a}))}const Kh={borderRadius:c(c({},Bh),{},{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Bh,borderTopRightRadius:Bh,borderBottomLeftRadius:Bh,borderBottomRightRadius:Bh,boxShadow:Uh};const $h=(e,t)=>e.depth-t.depth;class Xh{constructor(){this.children=[],this.isDirty=!1}add(e){El(this.children,e),this.isDirty=!0}remove(e){Nl(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort($h),this.isDirty=!1,this.children.forEac
2h(e)}}function Qh(e,t){const n=Sl.now(),r=a=>{const o=a.timestamp-n;o>=t&&(vl(r),e(o-t))};return yl.read(r,!0),()=>vl(r)}function Gh(e){const t=Fl(e)?e.get():e;return n=t,Boolean(n&&"object"===typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const Jh=["TopLeft","TopRight","BottomLeft","BottomRight"],Zh=Jh.length,ep=e=>"string"===typeof e?parseFloat(e):e,tp=e=>"number"===typeof e||pc.test(e);function np(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const rp=op(0,.5,$l),ap=op(.5,.95,sl);function op(e,t,n){return r=>r<e?0:r>t?1:n(Bs(e,t,r))}function ip(e,t){e.min=t.min,e.max=t.max}function sp(e,t){ip(e.x,t.x),ip(e.y,t.y)}function lp(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function cp(e,t,n,r,a){return e=kh(e-=t,1/n,r),void 0!==a&&(e=kh(e,1/a,r)),e}function up(e,t,n,r,a){let o=Ie(n,3),i=o[0],s=o[1],l=o[2];!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,a=arguments.length>4?arguments[4]:void 0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:e;hc.test(t)&&(t=parseFloat(t),t=vu(i.min,i.max,t/100)-i.min);if("number"!==typeof t)return;let s=vu(o.min,o.max,r);e===o&&(s-=t),e.min=cp(e.min,t,n,s,a),e.max=cp(e.max,t,n,s,a)}(e,t[i],t[s],t[l],t.scale,r,a)}const dp=["x","scaleX","originX"],hp=["y","scaleY","originY"];function pp(e,t,n,r){up(e.x,t,dp,n?n.x:void 0,r?r.x:void 0),up(e.y,t,hp,n?n.y:void 0,r?r.y:void 0)}function fp(e){return 0===e.translate&&1===e.scale}function mp(e){return fp(e.x)&&fp(e.y)}function gp(e,t){return e.min===t.min&&e.max===t.max}function yp(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function vp(e,t){return yp(e.x,t.x)&&yp(e.y,t.y)}function bp(e){return rh(e.x)/rh(e.y)}function xp(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class wp{constructor(){this.members=[]}add(e){El(this.members,e),e.scheduleRender()}remove(e){if(Nl(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex(t=>e===t);if(0===t)return!1;let n;for(let r=t;r>=0;r--){const e=this.members[r];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);!1===e.options.crossfade&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const t=e.options,n=e.resumingFrom;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const kp={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Sp="undefined"!==typeof window&&void 0!==window.MotionDebug,Ep=["","X","Y","Z"],Np={visibility:"hidden"};let jp=0;function Cp(e,t,n,r){const a=t.latestValues;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Tp(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const t=e.options.visualElement;if(!t)return;const n=_l(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const t=e.options,r=t.layout,a=t.layoutId;window.MotionCancelOptimisedAnimation(n,"transform",yl,!(r||a))}const r=e.parent;r&&!r.hasCheckedOptimisedAppear&&Tp(r)}function Pp(e){let t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,a=e.checkIsScrollRoot,o=e.resetTransform;return class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===n||void 0===n?void 0:n();this.id=jp++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Sp&&(kp.totalNodes=kp.resolvedTargetDeltas=kp.recalculatedProjection=0),this.nodes.forEac
2h(Op),this.nodes.forEach(zp),this.nodes.forEach(Bp),this.nodes.forEach(Fp),Sp&&window.MotionDebug.record(kp)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=t?t.root||t:this,this.path=t?[...t.path,t]:[],this.parent=t,this.depth=t?t.depth+1:0;for(let n=0;n<this.path.length;n++)this.path[n].shouldResetTransform=!0;this.root===this&&(this.nodes=new Xh)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new jl),this.eventHandlers.get(e).add(t)}notifyListeners(e){const t=this.eventHandlers.get(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];t&&t.notify(...r)}hasListeners(e){return this.eventHandlers.has(e)}mount(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root.hasTreeAnimated;if(this.instance)return;var r;this.isSVG=(r=e)instanceof SVGElement&&"svg"!==r.tagName,this.instance=e;const a=this.options,o=a.layoutId,i=a.layout,s=a.visualElement;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(this.isLayoutDirty=!0),t){let n;const r=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=Qh(r,250),Ih.hasAnimatedSinceResize&&(Ih.hasAnimatedSinceResize=!1,this.nodes.forEach(Ip))})}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&s&&(o||i)&&this.addEventListener("didUpdate",e=>{let t=e.delta,n=e.hasLayoutChanged,r=e.hasRelativeTargetChanged,a=e.layout;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||s.getDefaultTransition()||Yp,i=s.getProps(),l=i.onLayoutAnimationStart,u=i.onLayoutAnimationComplete,d=!this.targetLayout||!vp(this.targetLayout,a)||r,h=!n&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||n&&(d||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,h);const e=c(c({},Rs(o,"layout")),{},{onPlay:l,onComplete:u});(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else n||Ip(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=a})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,vl(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Up),this.animationId++)}getTransformTemplate(){const e=this.options.visualElement;return e&&e.getProps().transformTemplate}willUpdate(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Tp(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let o=0;o<this.path.length;o++){const e=this.path[o];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const t=this.options,n=t.layoutId,r=t.layout;if(void 0===n&&!r)return;const a=this.getTransformTemplate();this.prevTransformTemplateValue=a?a(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Dp);this.isUpdating||this.nodes.forEach(Mp),this.isUpdating=!1,this.nodes.forEach(_p),this.nodes.forEach(Ap),this.nodes.forEach(Rp),this.clearAllSnapshots();const e=Sl.now();bl.delta=Jl(0,1e3/60,e-bl.timestamp),bl.timestamp=e,bl.isProcessing=!0,xl.update.process(bl),xl.preRender.process(bl),xl.render.process(bl),bl.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,qh.read(this.scheduleUpdate))}
2clearAllSnapshots(){this.nodes.forEach(Lp),this.sharedNodes.forEach(Vp)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,yl.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){yl.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),(!this.options.alwaysMeasureLayout||!this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const t=this.options.visualElement;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){const t=a(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!mp(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,a=r!==this.prevTransformTemplateValue;e&&(t||bh(this.latestValues)||a)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),Xp((r=n).x),Xp(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const t=this.options.visualElement;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const n=t.measureViewportBox();if(!((null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)||this.path.some(Gp))){const e=this.root.scroll;e&&(Th(n.x,e.offset.x),Th(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n={x:{min:0,max:0},y:{min:0,max:0}};if(sp(n,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return n;for(let r=0;r<this.path.length;r++){const t=this.path[r],a=t.scroll,o=t.options;t!==this.root&&a&&o.layoutScroll&&(a.wasRoot&&sp(n,e),Th(n.x,a.offset.x),Th(n.y,a.offset.y))}return n}applyTransform(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n={x:{min:0,max:0},y:{min:0,max:0}};sp(n,e);for(let r=0;r<this.path.length;r++){const e=this.path[r];!t&&e.options.layoutScroll&&e.scroll&&e!==e.root&&Ah(n,{x:-e.scroll.offset.x,y:-e.scroll.offset.y}),bh(e.latestValues)&&Ah(n,e.latestValues)}return bh(this.latestValues)&&Ah(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};sp(t,e);for(let n=0;n<this.path.length;n++){const e=this.path[n];if(!e.instance)continue;if(!bh(e.latestValues))continue;vh(e.latestValues)&&e.updateSnapshot();const r=fh();sp(r,e.measurePageBox()),pp(t,e.latestValues,e.snapshot?e.snapshot.layoutBox:void 0,r)}return bh(this.latestValues)&&pp(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options=c(c(c({},this.options),e),{},{crossfade:void 0===e.crossfade||e.crossfade})}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==bl.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isS
2haredProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const a=this.options,o=a.layout,i=a.layoutId;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=bl.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},lh(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),sp(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,l,c;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,l=this.relativeTarget,c=this.relativeParent.target,ih(s.x,l.x,c.x),ih(s.y,l.y,c.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):sp(this.target,this.layout.layoutBox),Nh(this.target,this.targetDelta)):sp(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},lh(this.relativeTargetOrigin,this.target,e.target),sp(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Sp&&kp.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!vh(this.parent.latestValues)&&!xh(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===bl.timestamp&&(r=!1),r)return;const a=this.options,o=a.layout,i=a.layoutId;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;sp(this.layoutCorrected,this.layout.layoutBox);const s=this.treeScale.x,l=this.treeScale.y;!function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const a=n.length;if(!a)return;let o,i;t.x=t.y=1;for(let s=0;s<a;s++){o=n[s],i=o.projectionDelta;const a=o.options.visualElement;a&&a.props.style&&"contents"===a.props.style.display||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Ah(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,Nh(e,i)),r&&bh(o.latestValues)&&Ah(e,o.latestValues))}t.x<Ch&&t.x>jh&&(t.x=1),t.y<Ch&&t.y>jh&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const c=t.target;c?(this.projectionDelta&&this.prevProjectionDelta?(lp(this.prevProjectionDelta.x,this.projectionDelta.x),lp(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),oh(this.projectionDelta,this.layoutCorrected,c,this.latestValues),this.treeScale.x===s&&this.treeScale.y===l&&xp(this.projectionDelta.x,this.prevProjectionDelta.x)&&xp(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",c)),Sp&&kp.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.snapshot,r=n?n.latestValues:{},a=c({},this.latestValues),o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const i={x:{min:0,max:0},y:{min:0,max:0}},s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=Boolean(s&&!u&&!0===this.options.crossfade&&!this.path.some(Hp));let h;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,c,p,f,m,g;Wp(o.x,e.x,n),Wp(o.y,e.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(lh(i,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,m=i,g=n,qp(p.x,f.x,m.x,g),qp(p.y,f.y,m.y,g),h&&(l=this.relativeTarget,c=h,gp(l.x,c.x)&&gp(l.y,c.y))&&(this.isProjectionDirty=!1),h||(h={x:{min:0,max:0},y:{min:0,max:0}}),sp(h,this.relativeTarget)),s&&(this.animationValues=a,function(e,t,n,r,a,o){a?(e.opacity=vu(0,void 0!==n.opacity?n.opacity:1,rp(r)),e.opacityExit=vu(void 0!==t.opacity?t.opacity:1,0,ap(r))):o&&(e.opacity=vu(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let i=0;i<Zh;i++){const a="border".concat(Jh[i],"Radius");let o=np(t,a),s=np(n,a);void 0===o&&void 0===s||(o||(o=0),s||(s=0),0===o||0===s||tp(o)===tp(s)?(e[a]=Math.max(vu(ep(o),ep(s),r),0),(hc.test(s)||hc.test(o))&&(e[a]+="%")):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=vu(t.rotate||0,n.rotate||0,r))}(a,r,this.latestValues,n,d,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(vl(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=yl.update(()=>{Ih.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=Fl(e)?e:Al(e);return r.start(jd("",r,t,n)),r.animation}(0,1e3,c(c({},e),{},{onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}})),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let t=e.targetWithTransforms,n=e.target,r=e.layout,a=e.latestValues;if(t&&n&&r){if(this!==e&&this.layout&&r&&Qp(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=rh(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=rh(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}sp(t,n),Ah(t,a),oh(this.projectionDeltaWithTransform,this.layoutCorrected,t,a)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new wp);this.sharedNodes.get(e).add(t);
2const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)}promote(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.needsReset,n=e.transition,r=e.preserveFollowOpacity;const a=this.getStack();a&&a.promote(this,r),t&&(this.projectionDelta=void 0,this.needsReset=!0),n&&this.setOptions({transition:n})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const e=this.options.visualElement;if(!e)return;let t=!1;const n=e.latestValues;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&Cp("z",e,r,this.animationValues);for(let a=0;a<Ep.length;a++)Cp("rotate".concat(Ep[a]),e,r,this.animationValues),Cp("skew".concat(Ep[a]),e,r,this.animationValues);e.render();for(const a in r)e.setStaticValue(a,r[a]),this.animationValues&&(this.animationValues[a]=r[a]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Np;const r={visibility:""},a=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Gh(null===e||void 0===e?void 0:e.pointerEvents)||"",r.transform=a?a(this.latestValues,""):"none",r;const o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Gh(null===e||void 0===e?void 0:e.pointerEvents)||""),this.hasProjected&&!bh(this.latestValues)&&(t.transform=a?a({},""):"none",this.hasProjected=!1),t}const i=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=function(e,t,n){let r="";
2const a=e.x.translate/t.x,o=e.y.translate/t.y,i=(null===n||void 0===n?void 0:n.z)||0;if((a||o||i)&&(r="translate3d(".concat(a,"px, ").concat(o,"px, ").concat(i,"px) ")),1===t.x&&1===t.y||(r+="scale(".concat(1/t.x,", ").concat(1/t.y,") ")),n){const e=n.transformPerspective,t=n.rotate,a=n.rotateX,o=n.rotateY,i=n.skewX,s=n.skewY;e&&(r="perspective(".concat(e,"px) ").concat(r)),t&&(r+="rotate(".concat(t,"deg) ")),a&&(r+="rotateX(".concat(a,"deg) ")),o&&(r+="rotateY(".concat(o,"deg) ")),i&&(r+="skewX(".concat(i,"deg) ")),s&&(r+="skewY(".concat(s,"deg) "))}const s=e.x.scale*t.x,l=e.y.scale*t.y;return 1===s&&1===l||(r+="scale(".concat(s,", ").concat(l,")")),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i),a&&(r.transform=a(i,r.transform));const s=this.projectionDelta,l=s.x,c=s.y;r.transformOrigin="".concat(100*l.origin,"% ").concat(100*c.origin,"% 0"),o.animationValues?r.opacity=o===this?null!==(n=null!==(t=i.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r.opacity=o===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0;for(const u in Vh){if(void 0===i[u])continue;const e=Vh[u],t=e.correct,n=e.applyTo,a="none"===r.transform?i[u]:t(i[u],o);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=a}else r[u]=a}return this.options.layoutId&&(r.pointerEvents=o===this?Gh(null===e||void 0===e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(Dp),this.root.sharedNodes.clear()}}}function Ap(e){e.updateLayout()}function Rp(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const t=e.layout,r=t.layoutBox,a=t.measuredBox,o=e.options.animationType,i=n.source!==e.layout.source;"size"===o?mh(e=>{const t=i?n.measuredBox[e]:n.layoutBox[e],a=rh(t);t.min=r[e].min,t.max=t.min+a}):Qp(o,n.layoutBox,r)&&mh(t=>{const a=i?n.measuredBox[t]:n.layoutBox[t],o=rh(r[t]);a.max=a.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[t].max=e.relativeTarget[t].min+o)});const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};oh(s,r,n.layoutBox);const l={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?oh(l,e.applyTransform(a,!0),n.measuredBox):oh(l,r,n.layoutBox);const c=!mp(s);let u=!1;if(!e.resumeFrom){const t=e.getClosestProjectingParent();if(t&&!t.resumeFrom){const a=t.snapshot,o=t.layout;if(a&&o){const i={x:{min:0,max:0},y:{min:0,max:0}};lh(i,n.layoutBox,a.layoutBox);const s={x:{min:0,max:0},y:{min:0,max:0}};lh(s,r,o.layoutBox),vp(i,s)||(u=!0),t.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=i,e.relativeParent=t)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(e.isLead()){const t=e.options.onExitComplete;t&&t()}e.options.transition=void 0}function Op(e){Sp&&kp.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Fp(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Lp(e){e.clearSnapshot()}function Dp(e){e.clearMeasurements()}function Mp(e){e.isLayoutDirty=!1}function _p(e){const t=e.options.visualElement;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ip(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function zp(e){e.resolveTargetDelta()}function Bp(e){e.calcProjection()}function Up(e){e.resetSkewAndRotation()}function Vp(e){e.removeLeadSnapshot()}
2function Wp(e,t,n){e.translate=vu(t.translate,0,n),e.scale=vu(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function qp(e,t,n,r){e.min=vu(t.min,n.min,r),e.max=vu(t.max,n.max,r)}function Hp(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Yp={duration:.45,ease:[.4,0,.1,1]},Kp=e=>"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),$p=Kp("applewebkit/")&&!Kp("chrome/")?Math.round:sl;function Xp(e){e.min=$p(e.min),e.max=$p(e.max)}function Qp(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=bp(t),a=bp(n),o=.2,!(Math.abs(r-a)<=o));var r,a,o}function Gp(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const Jp=Pp({attachResizeListener:(e,t)=>Hd(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Zp={current:void 0},ef=Pp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Zp.current){const e=new Jp({});e.mount(window),e.setOptions({layoutScroll:!0}),Zp.current=e}return Zp.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),tf={pan:{Feature:class extends Vd{constructor(){super(...arguments),this.removePointerDownListener=sl}onPointerDown(e){this.session=new Xd(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Oh(this.node)})}createPanHandlers(){const e=this.node.getProps(),t=e.onPanSessionStart,n=e.onPanStart,r=e.onPan,a=e.onPanEnd;return{onSessionStart:Mh(t),onStart:Mh(n),onMove:r,onEnd:(e,t)=>{delete this.session,a&&yl.postRender(()=>a(e,t))}}}mount(){this.removePointerDownListener=Kd(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Vd{constructor(e){super(e),this.removeGroupControls=sl,this.removeListeners=sl,this.controls=new Lh(e)}mount(){const e=this.node.getProps().dragControls;e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||sl}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:ef,MeasureLayout:Yh}};function nf(e,t,n){const r=e.props;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const a=r["onHover"+n];a&&yl.postRender(()=>a(t,Yd(t)))}function rf(e,t,n){const r=e.props;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const a=r["onTap"+("End"===n?"":n)];a&&yl.postRender(()=>a(t,Yd(t)))}const af=["root"],of=new WeakMap,sf=new WeakMap,lf=e=>{const t=of.get(e.target);t&&t(e)},cf=e=>{e.forEach(lf)};function uf(e,t,n){const r=function(e){let t=e.root,n=Oe(e,af);const r=t||document;sf.has(r)||sf.set(r,{});const a=sf.get(r),o=JSON.stringify(n);return a[o]||(a[o]=new IntersectionObserver(cf,c({root:t},n))),a[o]}(t);return of.set(e,n),r.observe(e),()=>{of.delete(e),r.unobserve(e)}}const df={some:0,all:1};const hf={inView:{Feature:class extends Vd{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const e=this.node.getProps().viewport,t=void 0===e?{}:e,n=t.root,r=t.margin,a=t.amount,o=void 0===a?"some":a,i=t.once,s={root:n?n.current:void 0,rootMargin:r,threshold:"number"===typeof o?o:df[o]};return uf(this.node.current,s,e=>{const t=e.isIntersecting;if(this.isInView===t)return;if(this.isInView=t,i&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const n=this.node.getProps(),r=n.onViewportEnter,a=n.onViewportLeave,o=t?r:a;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"===typeof IntersectionObserver)return;const e=this.node,t=e.props,n=e.prevProps,r=["amount","margin","root"].some(function(e){let t=e.viewport,n=void 0===t?{}:t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.viewport,o=void 0===a?{}:a;return e=>n[e]!==o[e]}(t,n));r&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Vd{mount(){const e=this.node.current;e&&(this.unmount=al(e,e=>(rf(this.node,e,"Start"),(e,t)=>{let n=t.success;return rf(this.node,e,n?"End":"Cancel")}),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends Vd{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(qy){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ju(Hd(this.node.current,"focus",()=>this.onFocus()),Hd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Vd{mount(){const e=this.node.current;e&&(this.unmount=function(e,t){const n=Ie(Xs(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),3),r=n[0],a=n[1],o=n[2],i=Qs(e=>{const n=e.target,r=t(e);
2if("function"!==typeof r||!n)return;const o=Qs(e=>{r(e),n.removeEventListener("pointerleave",o)});n.addEventListener("pointerleave",o,a)});return r.forEach(e=>{e.addEventListener("pointerenter",i,a)}),o}(e,e=>(nf(this.node,e,"Start"),e=>nf(this.node,e,"End"))))}unmount(){}}}},pf={layout:{ProjectionNode:ef,MeasureLayout:Yh}},ff=(0,t.createContext)({strict:!1}),mf=(0,t.createContext)({});function gf(e){return vs(e.animate)||js.some(t=>ws(e[t]))}function yf(e){return Boolean(gf(e)||e.variants)}function vf(e){const n=function(e,t){if(gf(e)){const t=e.initial,n=e.animate;return{initial:!1===t||ws(t)?t:void 0,animate:ws(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,t.useContext)(mf)),r=n.initial,a=n.animate;return(0,t.useMemo)(()=>({initial:r,animate:a}),[bf(r),bf(a)])}function bf(e){return Array.isArray(e)?e.join(" "):e}const xf={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},wf={};for(const n in xf)wf[n]={isEnabled:e=>xf[n].some(t=>!!e[t])};const kf=Symbol.for("motionComponentSymbol");function Sf(e,n,r){return(0,t.useCallback)(t=>{t&&e.onMount&&e.onMount(t),n&&(t?n.mount(t):n.unmount()),r&&("function"===typeof r?r(t):nh(r)&&(r.current=t))},[n])}function Ef(e,n,r,a,o){var i,s;const l=(0,t.useContext)(mf).visualElement,c=(0,t.useContext)(ff),u=(0,t.useContext)(os),d=(0,t.useContext)(is).reducedMotion,h=(0,t.useRef)(null);a=a||c.renderer,!h.current&&a&&(h.current=a(e,{visualState:n,parent:l,props:r,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:d}));const p=h.current,f=(0,t.useContext)(_h);!p||p.projection||!o||"html"!==p.type&&"svg"!==p.type||function(e,t,n,r){const a=t.layoutId,o=t.layout,i=t.drag,s=t.dragConstraints,l=t.layoutScroll,c=t.layoutRoot;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Nf(e.parent)),e.projection.setOptions({layoutId:a,layout:o,alwaysMeasureLayout:Boolean(i)||s&&nh(s),visualElement:e,animationType:"string"===typeof o?o:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}(h.current,r,o,f);const m=(0,t.useRef)(!1);(0,t.useInsertionEffect)(()=>{p&&m.current&&p.update(r,u)});const g=r[Ml],y=(0,t.useRef)(Boolean(g)&&!(null===(i=window.MotionHandoffIsComplete)||void 0===i?void 0:i.call(window,g))&&(null===(s=window.MotionHasOptimisedAnimation)||void 0===s?void 0:s.call(window,g)));return ms(()=>{p&&(m.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),qh.render(p.render),y.current&&p.animationState&&p.animationState.animateChanges())}),(0,t.useEffect)(()=>{p&&(!y.current&&p.animationState&&p.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,g)}),y.current=!1))}),p}function Nf(e){if(e)return!1!==e.options.allowProjection?e.projection:Nf(e.parent)}function jf(e){let n=e.preloadedFeatures,r=e.createVisualElement,a=e.useRender,o=e.useVisualState,i=e.Component;var s,l;function u(e,n){let s;const l=c(c(c({},(0,t.useContext)(is)),e),{},{layoutId:Cf(e)}),u=l.isStatic,d=vf(e),h=o(e,u);if(!u&&fs){!function(){(0,t.useContext)(ff).strict;0}();const e=function(e){const t=wf.drag,n=wf.layout;if(!t&&!n)return{};const r=c(c({},t),n);return{MeasureLayout:(null===t||void 0===t?void 0:t.isEnabled(e))||(null===n||void 0===n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(l);s=e.MeasureLayout,d.visualElement=Ef(i,h,l,r,e.ProjectionNode)}return(0,Pe.jsxs)(mf.Provider,{value:d,children:[s&&d.visualElement?(0,Pe.jsx)(s,c({visualElement:d.visualElement},l)):null,a(i,e,Sf(h,d.visualElement,n),h,u,d.visualElement)]})}n&&function(e){for(const t in e)wf[t]=c(c({},wf[t]),e[t])}(n),u.displayName="motion.".concat("string"===typeof i?i:"create(".concat(null!==(l=null!==(s=i.displayName)&&void 0!==s?s:i.name)&&void 0!==l?l:"",")"));const d=(0,t.forwardRef)(u);return d[kf]=i,d}function Cf(e){let n=e.layoutId;const r=(0,t.useContext)(rs).id;return r&&void 0!==n?r+"-"+n:n}const Tf=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Pf(e){return"string"===typeof e&&!e.includes("-")&&!!(Tf.indexOf(e)>-1||/[A-Z]/.test(e))}const Af=["transitionEnd","transition"];const Rf=e=>(n,r)=>{const a=(0,t.useContext)(mf),o=(0,t.useContext)(os),i=()=>function(e,t,n,r){let a=e.scrapeMotionValuesFromProps,o=e.createRenderState,i=e.onUpdate;const s={latestValues:Of(t,n,r,a),renderState:o()};return i&&(s.onMount=e=>i(c({props:t,current:e},s)),s.onUpdate=e=>i(e)),s}(e,n,a,o);return r?i():as(i)};function Of(e,t,n,r){const a={},o=r(e,{});for(const h in o)a[h]=Gh(o[h]);let i=e.initial,s=e.animate;const l=gf(e),c=yf(e);t&&c&&!l&&!1!==e.inherit&&(void 0===i&&(i=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===i;const d=u?s:i;if(d&&"boolean"!==typeof d&&!vs(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=Ss(e,t[n]);if(r){const e=r.transitionEnd,t=(r.transition,Oe(r,Af));for(const n in t){let e=t[n];if(Array.isArray(e)){e=e[u?e.length-1:0]}null!==e&&(a[n]=e)}for(const n in e)a[n]=e[n]}}}return a}const Ff=(e,t)=>
2t&&"number"===typeof e?t.transform(e):e,Lf={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Df=ll.length;function Mf(e,t,n){const r=e.style,a=e.vars,o=e.transformOrigin;let i=!1,s=!1;for(const l in t){const e=t[l];if(cl.has(l))i=!0;else if(nu(l))a[l]=e;else{const t=Ff(e,Dc[l]);l.startsWith("origin")?(s=!0,o[l]=t):r[l]=t}}if(t.transform||(i||n?r.transform=function(e,t,n){let r="",a=!0;for(let o=0;o<Df;o++){const i=ll[o],s=e[i];if(void 0===s)continue;let l=!0;if(l="number"===typeof s?s===(i.startsWith("scale")?1:0):0===parseFloat(s),!l||n){const e=Ff(s,Dc[i]);l||(a=!1,r+="".concat(Lf[i]||i,"(").concat(e,") ")),n&&(t[i]=e)}}return r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),s){const e=o.originX,t=void 0===e?"50%":e,n=o.originY,a=void 0===n?"50%":n,i=o.originZ,s=void 0===i?0:i;r.transformOrigin="".concat(t," ").concat(a," ").concat(s)}}function _f(e,t,n){return"string"===typeof e?e:pc.transform(t+n*e)}const If={offset:"stroke-dashoffset",array:"stroke-dasharray"},zf={offset:"strokeDashoffset",array:"strokeDasharray"};const Bf=["attrX","attrY","attrScale","originX","originY","pathLength","pathSpacing","pathOffset"];function Uf(e,t,n,r){let a=t.attrX,o=t.attrY,i=t.attrScale,s=t.originX,l=t.originY,c=t.pathLength,u=t.pathSpacing,d=void 0===u?1:u,h=t.pathOffset,p=void 0===h?0:h;if(Mf(e,Oe(t,Bf),r),n)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const f=e.attrs,m=e.style,g=e.dimensions;f.transform&&(g&&(m.transform=f.transform),delete f.transform),g&&(void 0!==s||void 0!==l||m.transform)&&(m.transformOrigin=function(e,t,n){const r=_f(t,e.x,e.width),a=_f(n,e.y,e.height);return"".concat(r," ").concat(a)}(g,void 0!==s?s:.5,void 0!==l?l:.5)),void 0!==a&&(f.x=a),void 0!==o&&(f.y=o),void 0!==i&&(f.scale=i),void 0!==c&&function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];e.pathLength=1;const o=a?If:zf;e[o.offset]=pc.transform(-r);const i=pc.transform(t),s=pc.transform(n);e[o.array]="".concat(i," ").concat(s)}(f,c,d,p,!1)}const Vf=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Wf=()=>c(c({},{style:{},transform:{},transformOrigin:{},vars:{}}),{},{attrs:{}}),qf=e=>"string"===typeof e&&"svg"===e.toLowerCase();function Hf(e,t,n,r){let a=t.style,o=t.vars;Object.assign(e.style,a,r&&r.getProjectionStyles(n));for(const i in o)e.style.setProperty(i,o[i])}const Yf=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Kf(e,t,n,r){Hf(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(Yf.has(a)?a:Dl(a),t.attrs[a])}function $f(e,t){let n=t.layout,r=t.layoutId;return cl.has(e)||e.startsWith("origin")||(n||void 0!==r)&&(!!Vh[e]||"opacity"===e)}function Xf(e,t,n){var r;const a=e.style,o={};for(const i in a)(Fl(a[i])||t.style&&Fl(t.style[i])||$f(i,e)||void 0!==(null===(r=null===n||void 0===n?void 0:n.getValue(i))||void 0===r?void 0:r.liveStyle))&&(o[i]=a[i]);return o}function Qf(e,t,n){const r=Xf(e,t,n);for(const a in e)if(Fl(e[a])||Fl(t[a])){r[-1!==ll.indexOf(a)?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a]=e[a]}return r}const Gf=["x","y","width","height","cx","cy","r"],Jf={useVisualState:Rf({scrapeMotionValuesFromProps:Qf,createRenderState:Wf,onUpdate:e=>{let t=e.props,n=e.prevProps,r=e.current,a=e.renderState,o=e.latestValues;if(!r)return;let i=!!t.drag;if(!i)for(const l in o)if(cl.has(l)){i=!0;break}if(!i)return;let s=!n;if(n)for(let l=0;l<Gf.length;l++){const e=Gf[l];t[e]!==n[e]&&(s=!0)}s&&(yl.read(()=>function(e,t){try{t.dimensions="function"===typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(qy){t.dimensions={x:0,y:0,width:0,height:0}}}(r,a)),yl.render(()=>{Uf(a,o,qf(r.tagName),t.transformTemplate),Kf(r,a)}))}})},Zf={useVisualState:Rf({scrapeMotionValuesFromProps:Xf,createRenderState:Vf})};function em(e,t,n){for(const r in t)Fl(t[r])||$f(r,n)||(e[r]=t[r])}function tm(e,n){const r={};return em(r,e.style||{},e),Object.assign(r,function(e,n){let r=e.transformTemplate;return(0,t.useMemo)(()=>{const e={style:{},transform:{},transformOrigin:{},vars:{}};return Mf(e,n,r),Object.assign({},e.vars,e.style)},[n])}
2(e,n)),r}function nm(e,t){const n={},r=tm(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const rm=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function am(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||rm.has(e)}let om=e=>!am(e);try{(im=require("@emotion/is-prop-valid").default)&&(om=e=>e.startsWith("on")?!am(e):im(e))}catch(Hy){}var im;function sm(e,n,r,a){const o=(0,t.useMemo)(()=>{const t=Wf();return Uf(t,n,qf(a),e.transformTemplate),c(c({},t.attrs),{},{style:c({},t.style)})},[n]);if(e.style){const t={};em(t,e.style,e),o.style=c(c({},t),o.style)}return o}function lm(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(n,r,a,o,i)=>{let s=o.latestValues;const l=(Pf(n)?sm:nm)(r,s,i,n),u=function(e,t,n){const r={};for(const a in e)"values"===a&&"object"===typeof e.values||(om(a)||!0===n&&am(a)||!t&&!am(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}(r,"string"===typeof n,e),d=n!==t.Fragment?c(c(c({},u),l),{},{ref:a}):{},h=r.children,p=(0,t.useMemo)(()=>Fl(h)?h.get():h,[h]);return(0,t.createElement)(n,c(c({},d),{},{children:p}))}}function cm(e,t){return function(n){let r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{forwardMotionProps:!1}).forwardMotionProps;return jf(c(c({},Pf(n)?Jf:Zf),{},{preloadedFeatures:e,useRender:lm(r),createVisualElement:t,Component:n}))}}const um={current:null},dm={current:!1};const hm=[...cu,vc,Cc],pm=new WeakMap;const fm=["willChange"],mm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class gm{scrapeMotionValuesFromProps(e,t,n){return{}}constructor(e){let t=e.parent,n=e.props,r=e.presenceContext,a=e.reducedMotionConfig,o=e.blockInitialAnimation,i=e.visualState,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Gc,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=Sl.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,yl.render(this.render,!1,!0))};const l=i.latestValues,u=i.renderState,d=i.onUpdate;this.onUpdate=d,this.latestValues=l,this.baseTarget=c({},l),this.initialValues=n.initial?c({},l):{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=s,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=gf(n),this.isVariantNode=yf(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const h=this.scrapeMotionValuesFromProps(n,{},this),p=(h.willChange,Oe(h,fm));for(const c in p){const e=p[c];void 0!==l[c]&&Fl(e)&&e.set(l[c],!1)}}mount(e){this.current=e,pm.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),dm.current||function(){if(dm.current=!0,fs)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>um.current=e.matches;e.addListener(t),t()}else um.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||um.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){pm.delete(this.current),this.projection&&this.projection.unmount(),vl(this.notifyUpdate),vl(this.render),this.valueSubscriptions.forEach(e
2=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=cl.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&yl.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),a=t.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),a(),o&&o(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in wf){const t=wf[e];if(!t)continue;const n=t.isEnabled,r=t.Feature;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<mm.length;n++){const t=mm[n];this.propEventSubscriptions[t]&&(this.propEventSubscriptions[t](),delete this.propEventSubscriptions[t]);const r=e["on"+t];r&&(this.propEventSubscriptions[t]=this.on(t,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const a=t[r],o=n[r];if(Fl(a))e.addValue(r,a);else if(Fl(o))e.addValue(r,Al(a,{owner:e}));else if(o!==a)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(a):t.hasAnimated||t.set(a)}else{const t=e.getStaticValue(r);e.addValue(r,Al(void 0!==t?t:a,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=Al(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];var a;return void 0!==r&&null!==r&&("string"===typeof r&&(eu(r)||Ql(r))?r=parseFloat(r):(a=r,!hm.find(lu(a))&&Cc.test(t)&&(r=Ic(e,t))),this.setBaseTarget(e,Fl(r)?r.get():r)),Fl(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const n=this.props.initial;let r;if("string"===typeof n||"object"===typeof n){const a=Ss(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);a&&(r=a[e])}if(n&&void 0!==r)return r;const a=this.getBaseTargetFromProps(this.props,e);return void 0===a||Fl(a)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:a}on(e,t){return this.events[e]||(this.events[e]=new jl),this.events[e].add(t)}notify(e){if(this.events[e]){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.events[e].notify(...n)}}}class ym extends gm{constructor(){super(...arguments),this.KeyframeResolver=du}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,t){let n=t.vars,r=t.style;delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const e=this.props.children;Fl(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent="".concat(e))}))}}class vm extends ym{constructor(){super(...arguments),this.type="html",this.renderInstance=Hf}readValueFromInstance(e,t){if(cl.has(t)){const e=_c(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),a=(nu(t)?r.getPropertyValue(t):r[t])||0;return"string"===typeof a?a.trim():a}var n}measureInstanceViewportBox(e,t){return Rh(e,t.transformPagePoint)}build(e,t,n){Mf(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Xf(e,t,n)}}class bm extends ym{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=fh}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(cl.has(t)){const e=_c(t);return e&&e.default||0}return t=Yf.has(t)?t:Dl(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Qf(e,t,n)}
2build(e,t,n){Uf(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){Kf(e,t,0,r)}mount(e){this.isSVGTag=qf(e.tagName),super.mount(e)}}const xm=(e,n)=>Pf(e)?new bm(n):new vm(n,{allowProjection:e!==t.Fragment}),wm=ys(cm(c(c(c(c({},qd),hf),tf),pf),xm)),km=Ki("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),Sm=Ki("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),Em=Ki("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),Nm=Ki("badge-percent",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M9 9h.01",key:"1q5me6"}],["path",{d:"M15 15h.01",key:"lqbp3k"}]]),jm=Ki("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),Cm=e=>"$"+Number(e).toLocaleString("en-US",{minimumFractionDigits:0,maximumFractionDigits:2}),Tm=199,Pm=[[10001,10282],[10301,10314],[10451,10475],[11004,11005],[11101,11106],[11201,11256],[11351,11436],[11691,11697]],Am=e=>/^\d{5}$/.test((e||"").trim())&&Pm.some(t=>{let n=Ie(t,2),r=n[0],a=n[1];return+e>=r&&+e<=a}),Rm=e=>/^\+1[2-9]\d{9}$/.test((e||"").trim()),Om=()=>{const e=Qr(),n=e.items,r=e.open,a=e.setOpen,o=e.setQty,i=e.remove,s=e.subtotal,l=zi().user,u=Ie((0,t.useState)(!1),2),d=u[0],h=u[1],p=Ie((0,t.useState)("cart"),2),f=p[0],m=p[1],g=Ie((0,t.useState)({name:"",email:"",phone:"",address:"",city:"",province:"",zip:""}),2),y=g[0],v=g[1],b=Ie((0,t.useState)(""),2),x=b[0],w=b[1],k=Ie((0,t.useState)(!1),2),S=k[0],E=k[1],N=l&&s>=Tm?25:0,j=s-N;(0,t.useEffect)(()=>{"shipping"===f&&l&&Mi.get("/auth/me").then(e=>{const t=e.data,n=t.default_shipping||{};v(e=>({name:e.name||n.name||t.name||"",email:e.email||n.email||t.email||"",phone:e.phone||n.phone||t.mobile||"",address:e.address||n.address||"",city:e.city||n.city||"",province:e.province||n.province||"",zip:e.zip||n.zip||""}))}).catch(()=>{})},[f,l]);const C=e=>t=>v(n=>c(c({},n),{},{[e]:t.target.value}));return(0,Pe.jsx)(gs,{children:r&&(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(wm.div,{"data-testid":"cart-backdrop",initial:{opacity:0}
2,animate:{opacity:1},exit:{opacity:0},onClick:()=>a(!1),className:"fixed inset-0 z-[70] bg-charcoal/40 backdrop-blur-sm"}),(0,Pe.jsxs)(wm.aside,{"data-testid":"cart-drawer",initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{duration:.5,ease:[.22,1,.36,1]},className:"fixed right-0 top-0 z-[80] flex h-full w-full max-w-md flex-col bg-bone",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between border-b border-black/10 px-8 py-6",children:[(0,Pe.jsx)("h2",{className:"font-serif text-2xl tracking-tight",children:"Your cart"}),(0,Pe.jsx)("button",{"data-testid":"cart-close-button",onClick:()=>a(!1),className:"rounded-full p-2 transition-colors duration-300 hover:bg-sand","aria-label":"Close cart",children:(0,Pe.jsx)(Zi,{size:18})})]}),(0,Pe.jsx)("div",{className:"flex-1 overflow-y-auto px-8 py-6",children:0===n.length?(0,Pe.jsx)("p",{"data-testid":"cart-empty-message",className:"mt-16 text-center text-sm font-light text-ash",children:"Your cart is empty. The good pieces are waiting."}):(0,Pe.jsx)("ul",{className:"space-y-8",children:n.map(e=>(0,Pe.jsxs)("li",{"data-testid":"cart-item-".concat(e.key),className:"flex gap-5",children:[(0,Pe.jsx)("div",{className:"h-24 w-20 shrink-0 overflow-hidden bg-sand",children:(0,Pe.jsx)("img",{src:e.image,alt:e.name,className:"h-full w-full object-cover"})}),(0,Pe.jsxs)("div",{className:"flex flex-1 flex-col",children:[(0,Pe.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,Pe.jsxs)("p",{className:"font-serif text-lg leading-tight",children:[e.name,e.variantName&&(0,Pe.jsx)("span",{className:"block text-xs uppercase tracking-[0.15em] text-ash",children:e.variantName})]}),(0,Pe.jsx)("button",{"data-testid":"cart-remove-".concat(e.key),onClick:()=>i(e.key),className:"text-ash transition-colors duration-300 hover:text-charcoal","aria-label":"Remove ".concat(e.name),children:(0,Pe.jsx)(km,{size:15})})]}),(0,Pe.jsx)("p",{className:"mt-1 text-sm text-ash",children:Cm(e.price)}),(0,Pe.jsxs)("div",{className:"mt-auto flex items-center gap-4 pt-2",children:[(0,Pe.jsx)("button",{"data-testid":"cart-qty-minus-".concat(e.key),onClick:()=>o(e.key,e.qty-1),className:"rounded-full border border-charcoal/20 p-1.5 transition-colors duration-300 hover:bg-charcoal hover:text-bone","aria-label":"Decrease quantity",children:(0,Pe.jsx)(Sm,{size:12})}),(0,Pe.jsx)("span",{"data-testid":"cart-qty-".concat(e.key),className:"w-4 text-center text-sm",children:e.qty}),(0,Pe.jsx)("button",{"data-testid":"cart-qty-plus-".concat(e.key),onClick:()=>o(e.key,e.qty+1),className:"rounded-full border border-charcoal/20 p-1.5 transition-colors duration-300 hover:bg-charcoal hover:text-bone","aria-label":"Increase quantity",children:(0,Pe.jsx)(Em,{size:12})})]})]})]},e.key))})}),n.length>0&&"cart"===f&&(0,Pe.jsxs)("div",{className:"border-t border-black/10 px-8 py-6",children:[(0,Pe.jsxs)("div",{className:"mb-5 space-y-2",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Pe.jsx)("span",{className:"text-xs uppercase tracking-[0.2em] text-ash",children:"Subtotal"}),(0,Pe.jsx)("span",{"data-testid":"cart-subtotal",className:"font-serif text-2xl",children:Cm(s)})]}),N>0&&(0,Pe.jsxs)("div",{className:"flex items-center justify-between text-moss","data-testid":"member-saving",children:[(0,Pe.jsxs)("span",{className:"flex items-center gap-2 text-xs uppercase tracking-[0.2em]",children:[(0,Pe.jsx)(Nm,{size:13})," Member saving"]}),(0,Pe.jsxs)("span",{className:"font-serif text-lg",children:["-",Cm(N)]})]}),l&&s<Tm&&(0,Pe.jsxs)("p",{className:"text-xs font-light text-ash","data-testid":"member-nudge",children:["Members save ",Cm(25)," on orders over ",Cm(Tm)," \u2014 you're ",Cm(Tm-s)," away."]})]}),(0,Pe.jsxs)("button",{"data-testid":"checkout-button",onClick:()=>m("shipping"),className:"group flex w-full items-center justify-center gap-3 rounded-full bg-charcoal py-4 text-xs uppercase tracking-[0.2em] text-bone transition-colors duration-300 hover:bg-moss",children:["Proceed to Checkout",(0,Pe.jsx)(jm,{size:14,className:"transition-transform duration-300 group-hover:translate-x-1"})]}),(0,Pe.jsx)("p",{className:"mt-4 text-center text-xs font-light text-ash",children:"Secure payment by Stripe \u2014 cards, Apple Pay, Google Pay."})]}),n.length>0&&"shipping"===f&&(0,Pe.jsxs)("div",{className:"border-t border-black/10 px-8 py-6",children:[(0,Pe.jsx)("p",{className:"mb-4 text-xs uppercase tracking-[0.2em] text-ash",children:"Delivery details \u2014 New York"}),(0,Pe.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,Pe.jsx)("input",{"data-testid":"ship-name",placeholder:"Full name",value:y.name,onChange:C("name"),className:"col-span-2 rounded-md border border-charcoal/20 bg-transparent px-4 py-2.5 text-sm outline-none placeholder:text-ash/60 focus:border-charcoal"}),(0,Pe.jsx)("input",{"data-testid":"ship-email",type:"email",placeholder:"Email",value:y.email,onChange:C("email"),className:"col-span-2 rounded-md border border-charcoal/20 bg-transparent px-4 py-2.5 text-sm outline-none placeholder:text-ash/60 focus:border-charcoal"}),(0,Pe.jsx)("input",{"data-testid":"ship-address",placeholder:"Street address",value:y.address,onChange:C("address"),className:"col-span-2 rounded-md border border-charcoal/20 bg-transparent px-4 py-2.5 text-sm outline-none placeholder:text-ash/60 focus:border-charcoal"}),(0,Pe.jsx)("input",{"data-testid":"ship-city",placeholder:"City",value:y.city,onChange:C("city"),className:"rounded-md border border-charcoal/20 bg-transparent px-4 py-2.5 text-sm outline-none placeholder:text-ash/60 focus:border-charcoal"}),(0,Pe.jsx)("input",{"data-testid":"ship-zip",placeholder:"ZIP (NYC only)",value:y.zip,onChange:C("zip"),className:"rounded-md border border-charcoal/20 bg-transparent px-4 py-2.5 text-sm outline-none placeholder:text-ash/60 focus:border-charcoal"}),(0,Pe.jsx)("input",{"data-testid":"ship-phone",placeholder:"US mobile \u2014 +1\u2026",value:y.phone,onChange:C("phone"),className:"col-span-2 rounded-md border border-charcoal/20 bg-transparent px-4 py-2.5 text-sm outline-none placeholder:text-ash/60 focus:border-charcoal"})]}),y.zip&&!Am(y.zip)&&(0,Pe.jsxs)("div",{"data-testid":"zip-error",className:"mt-3",children:[(0,Pe.jsx)("p",{className:"text-xs font-light text-moss",children:"That ZIP is outside our service area \u2014 we deliver within New York City only."}),S?(0,Pe.jsxs)("p",{"data-testid":"lead-saved",className:"mt-3 text-xs font-light text-charcoal",children:["Noted \u2014 we'll email you the day we deliver to ",y.zip,"."]}):(0,Pe.jsxs)("div",{className:"mt-3 flex gap-2",children:[(0,Pe.jsx)("input",{"data-testid":"lead-email",type:"email",placeholder:"Your email",value:x,onChange:e=>w(e.target.value),className:"flex-1 rounded-md border border-charcoal/20 bg-transparent px-3 py-2 text-xs outline-none placeholder:text-ash/60 focus:border-charcoal"}),(0,Pe.jsx)("button",{"data-testid":"lead-notify-button",onClick:async()=>{try{await Mi.post("/leads",{email:x,zip:y.zip}),E(!0),Ur.success("Noted \u2014 we'll write the day we reach your area.")}catch(e){Ur.error("Please enter a valid email address.")}},className:"rounded-full bg-charcoal px-4 py-2 text-[10px] uppercase tracking-[0.15em] text-bone transition-colors duration-300 hover:bg-moss",children:"Notify me"})]})]}),y.phone&&!Rm(y.phone)&&(0,Pe.jsx)("p",{"data-testid":"phone-error",className:"mt-2 text-xs font-light text-moss",children:"US mobile numbers only, starting with +1 \u2014 our delivery team calls before arriving."}),(0,Pe.jsxs)("button",{"data-testid":"pay-now-button",onClick:async()=>
2{if(y.name&&y.email&&y.address&&y.city&&y.zip)if(Am(y.zip))if(Rm(y.phone)){h(!0);try{const e=await Mi.post("/checkout",{items:n.map(e=>({slug:e.slug,qty:e.qty,vid:e.vid})),origin_url:window.location.origin,shipping:c(c({},y),{},{country:"United States",country_code:"US"})});window.location.href=e.data.checkout_url}catch(qy){Ur.error("Checkout could not be started. Please try again."),h(!1)}}else Ur.error("Please enter a valid US mobile number, e.g. +12125550123 \u2014 our delivery team calls before arriving.");else Ur.error("We deliver within New York City only \u2014 that ZIP code is outside our service area.");else Ur.error("Please fill in your name, email, address, city and ZIP.")},disabled:d,className:"group mt-5 flex w-full items-center justify-center gap-3 rounded-full bg-charcoal py-4 text-xs uppercase tracking-[0.2em] text-bone transition-colors duration-300 hover:bg-moss disabled:opacity-60",children:[d?"Taking you to payment...":"Pay ".concat(Cm(j)," securely"),!d&&(0,Pe.jsx)(jm,{size:14,className:"transition-transform duration-300 group-hover:translate-x-1"})]}),(0,Pe.jsx)("button",{"data-testid":"back-to-cart-button",onClick:()=>m("cart"),className:"mt-3 w-full text-center text-xs uppercase tracking-[0.2em] text-ash transition-colors duration-300 hover:text-charcoal",children:"Back to cart"})]})]})]})})},Fm=Ki("message-circle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]),Lm=Ki("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]),Dm=Ki("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]),Mm=Ki("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),_m=()=>{let e=localStorage.getItem("sony_chat_session");return e||(e="chat-"+Math.random().toString(36).slice(2)+Date.now().toString(36),localStorage.setItem("sony_chat_session",e)),e},Im=()=>{const e=Ie((0,t.useState)(!1),2),n=e[0],r=e[1],a=Ie((0,t.useState)([{role:"assistant",text:"Hello \u2014 welcome to Shop ONline New York. Ask me about our pieces, delivery across NYC, member pricing or returns."}]),2),o=a[0],i=a[1],s=Ie((0,t.useState)(""),2),l=s[0],c=s[1],u=Ie((0,t.useState)(!1),2),d=u[0],h=u[1],p=Ie((0,t.useState)(null),2),f=p[0],m=p[1],g=Ie((0,t.useState)(""),2),y=g[0],v=g[1],b=Ie((0,t.useState)(""),2),x=b[0],w=b[1],k=Ie((0,t.useState)(!1),2),S=k[0],E=k[1],N=(0,t.useRef)(null);(0,t.useEffect)(()=>{var e;null===(e=N.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})},[o,d,f]);const j=async()=>{const e=l.trim();if(e&&!d){c(""),i(t=>[...t,{role:"user",text:e}]),h(!0),i(e=>[...e,{role:"assistant",text:""}]);try{const t=(await fetch("".concat("https://shoponlinenewyork.com/api","/chat"),{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({session_id:_m(),message:e})})).body.getReader(),n=new TextDecoder;let r="";for(;;){const e=await t.read(),a=e.done,o=e.value;if(a)break;r+=n.decode(o,{stream:!0}),i(e=>{const t=[...e];return t[t.length-1]={role:"assistant",text:r},t})}}catch(t){i(e=>{const t=[...e];return t[t.length-1]={role:"assistant",text:"Sorry \u2014 I lost my footing. Please try again."},t})}finally{h(!1)}}},C="w-full rounded-md border border-charcoal/20 bg-transparent px-3 py-2.5 text-sm outline-none placeholder:text-ash/60 focus:border-charcoal";return(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)("button",{"data-testid":"chat-open-button",onClick:()=>r(e=>!e),"aria-label":"Chat with us",className:"fixed bottom-6 right-6 z-[90] flex h-14 w-14 items-center justify-center rounded-full bg-charcoal text-bone shadow-lg transition-colors duration-300 hover:bg-moss",children:n?(0,Pe.jsx)(Zi,{size:20}):(0,Pe.jsx)(Fm,{size:20})}),(0,Pe.jsx)(gs,{children:n&&(0,Pe.jsxs)(wm.div,{"data-testid":"chat-panel",initial:{opacity:0,y:24,scale:.98}
2,animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:24,scale:.98},transition:{duration:.35,ease:[.22,1,.36,1]},className:"fixed bottom-24 right-6 z-[90] flex h-[520px] w-[380px] max-w-[calc(100vw-3rem)] flex-col overflow-hidden rounded-lg border border-charcoal/10 bg-bone shadow-2xl",children:[(0,Pe.jsxs)("div",{className:"bg-charcoal px-5 py-4 text-bone",children:[(0,Pe.jsx)("p",{className:"font-serif text-lg",children:"Shop assistant"}),(0,Pe.jsx)("p",{className:"text-xs font-light text-bone/60",children:"Answers instantly \xb7 team replies within 48 hours"})]}),(0,Pe.jsxs)("div",{className:"flex-1 space-y-4 overflow-y-auto px-5 py-5",children:[o.map((e,t)=>(0,Pe.jsx)("div",{className:"flex ".concat("user"===e.role?"justify-end":"justify-start"),children:(0,Pe.jsxs)("p",{className:"max-w-[80%] rounded-lg px-4 py-2.5 text-sm font-light leading-relaxed ".concat("user"===e.role?"bg-charcoal text-bone":"bg-sand text-charcoal"),children:[e.text,d&&t===o.length-1&&"assistant"===e.role&&(0,Pe.jsx)("span",{className:"animate-pulse",children:"\u258d"})]})},t)),(0,Pe.jsx)("div",{ref:N})]}),!S&&!f&&(0,Pe.jsx)("button",{"data-testid":"chat-escalate-button",onClick:()=>m("choose"),className:"mx-5 mb-2 text-left text-[11px] uppercase tracking-[0.15em] text-taupe transition-colors duration-300 hover:text-charcoal",children:"Need a person? Talk to the team"}),"choose"===f&&(0,Pe.jsxs)("div",{className:"mx-5 mb-3 rounded-md border border-charcoal/10 bg-sand/60 p-4","data-testid":"escalate-choose",children:[(0,Pe.jsx)("p",{className:"mb-3 text-xs font-light text-ash",children:"How should our team reach you? We'll respond within 48 hours."}),(0,Pe.jsxs)("div",{className:"flex gap-2",children:[(0,Pe.jsxs)("button",{"data-testid":"escalate-email",onClick:()=>m("email"),className:"flex flex-1 items-center justify-center gap-2 rounded-full border border-charcoal/20 py-2 text-xs uppercase tracking-[0.15em] hover:bg-charcoal hover:text-bone",children:[(0,Pe.jsx)(Lm,{size:13})," Email"]}),(0,Pe.jsxs)("button",{"data-testid":"escalate-phone",onClick:()=>m("phone"),className:"flex flex-1 items-center justify-center gap-2 rounded-full border border-charcoal/20 py-2 text-xs uppercase tracking-[0.15em] hover:bg-charcoal hover:text-bone",children:[(0,Pe.jsx)(Dm,{size:13})," Phone"]})]})]}),("email"===f||"phone"===f)&&(0,Pe.jsxs)("div",{className:"mx-5 mb-3 space-y-2 rounded-md border border-charcoal/10 bg-sand/60 p-4","data-testid":"escalate-form",children:[(0,Pe.jsx)("input",{"data-testid":"escalate-contact",placeholder:"email"===f?"Your email address":"Your phone number",value:y,onChange:e=>v(e.target.value),className:C}),(0,Pe.jsx)("textarea",{"data-testid":"escalate-details",rows:2,placeholder:"What should we help with? (optional)",value:x,onChange:e=>w(e.target.value),className:C}),(0,Pe.jsxs)("div",{className:"flex gap-2",children:[(0,Pe.jsx)("button",{"data-testid":"escalate-submit",onClick:async()=>{try{await Mi.post("/chat/escalate",{session_id:_m(),preference:f,contact:y,details:x}),E(!0),i(e=>[...e,{role:"assistant",text:"Thank you \u2014 that's noted. Our team will reach out within the next 48 hours by ".concat("email"===f?"email":"phone",". Anything else I can help with meanwhile?")}]),m(null),v(""),w("")}catch(qy){Ur.error(_i(qy))}},disabled:!y,className:"flex-1 rounded-full bg-charcoal py-2.5 text-xs uppercase tracking-[0.15em] text-bone hover:bg-moss disabled:opacity-60",children:"Request callback"}),(0,Pe.jsx)("button",{onClick:()=>m("choose"),className:"px-3 text-xs text-ash hover:text-charcoal",children:"Back"})]})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-2 border-t border-charcoal/10 p-4",children:[(0,Pe.jsx)("input",{"data-testid":"chat-input",placeholder:"Ask about pieces, delivery, returns\u2026",value:l,onChange:e=>c(e.target.value),onKeyDown:e=>"Enter"===e.key&&j(),className:C}),(0,Pe.jsx)("button",{"data-testid":"chat-send",onClick:j,disabled:d||!l.trim(),className:"rounded-full bg-charcoal p-3 text-bone transition-colors duration-300 hover:bg-moss disabled:opacity-50","aria-label":"Send message",children:(0,Pe.jsx)(Mm,{size:15})})]})]})})]})};function zm(e,t){let n;const r=()=>{const r=t.currentTime,a=(null===r?0:r.value)/100;n!==a&&e(a),n=a};return yl.update(r,!0),()=>vl(r)}const Bm=new WeakMap;let Um;function Vm(e){let t=e.target,n=e.contentRect,r=e.borderBoxSize;var a;
2null===(a=Bm.get(t))||void 0===a||a.forEach(e=>{e({target:t,contentSize:n,get size(){return function(e,t){if(t){const e=t[0];return{width:e.inlineSize,height:e.blockSize}}return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}(t,r)}})})}function Wm(e){e.forEach(Vm)}function qm(e,t){Um||"undefined"!==typeof ResizeObserver&&(Um=new ResizeObserver(Wm));const n=$s(e);return n.forEach(e=>{let n=Bm.get(e);n||(n=new Set,Bm.set(e,n)),n.add(t),null===Um||void 0===Um||Um.observe(e)}),()=>{n.forEach(e=>{const n=Bm.get(e);null===n||void 0===n||n.delete(t),(null===n||void 0===n?void 0:n.size)||null===Um||void 0===Um||Um.unobserve(e)})}}const Hm=new Set;let Ym;function Km(e){return Hm.add(e),Ym||(Ym=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};Hm.forEach(e=>e(t))},window.addEventListener("resize",Ym)),()=>{Hm.delete(e),!Hm.size&&Ym&&(Ym=void 0)}}const $m={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Xm(e,t,n,r){const a=n[t],o=$m[t],i=o.length,s=o.position,l=a.current,c=n.time;a.current=e["scroll".concat(s)],a.scrollLength=e["scroll".concat(i)]-e["client".concat(i)],a.offset.length=0,a.offset[0]=0,a.offset[1]=a.scrollLength,a.progress=Bs(0,a.scrollLength,a.current);const u=r-c;a.velocity=u>50?0:Cl(a.current-l,u)}const Qm={start:0,center:.5,end:1};function Gm(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=0;if(e in Qm&&(e=Qm[e]),"string"===typeof e){const t=parseFloat(e);e.endsWith("px")?r=t:e.endsWith("%")?e=t/100:e.endsWith("vw")?r=t/100*document.documentElement.clientWidth:e.endsWith("vh")?r=t/100*document.documentElement.clientHeight:e=t}return"number"===typeof e&&(r=t*e),n+r}const Jm=[0,0];function Zm(e,t,n,r){let a=Array.isArray(e)?e:Jm,o=0,i=0;return"number"===typeof e?a=[e,e]:"string"===typeof e&&(a=(e=e.trim()).includes(" ")?e.split(" "):[e,Qm[e]?e:"0"]),o=Gm(a[0],n,r),i=Gm(a[1],t),o-i}const eg={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},tg={x:0,y:0};function ng(e,t,n){const r=n.offset,a=void 0===r?eg.All:r,o=n.target,i=void 0===o?e:o,s=n.axis,l=void 0===s?"y":s,c="y"===l?"height":"width",u=i!==e?function(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(r instanceof HTMLElement)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if("svg"===r.tagName){const e=r.getBoundingClientRect();r=r.parentElement;const t=r.getBoundingClientRect();n.x+=e.left-t.left,n.y+=e.top-t.top}else{if(!(r instanceof SVGGraphicsElement))break;{const e=r.getBBox(),t=e.x,a=e.y;n.x+=t,n.y+=a;let o=null,i=r.parentNode;for(;!o;)"svg"===i.tagName&&(o=i),i=r.parentNode;r=o}}return n}(i,e):tg,d=i===e?{width:e.scrollWidth,height:e.scrollHeight}:function(e){return"getBBox"in e&&"svg"!==e.tagName?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}(i),h={width:e.clientWidth,height:e.clientHeight};t[l].offset.length=0;let p=!t[l].interpolate;const f=a.length;for(let m=0;m<f;m++){const e=Zm(a[m],h[c],d[c],u[l]);p||e===t[l].interpolatorOffsets[m]||(p=!0),t[l].offset[m]=e}p&&(t[l].interpolate=ld(t[l].offset,cd(a),{clamp:!1}),t[l].interpolatorOffsets=[...t[l].offset]),t[l].progress=Jl(0,1,t[l].interpolate(t[l].current))}function rg(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return{measure:()=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2?arguments[2]:void 0;if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}(e,r.target,n),update:t=>{!function(e,t,n){Xm(e,"x",t,n),Xm(e,"y",t,n),t.time=n}(e,n,t),(r.offset||r.target)&&ng(e,n,r)},notify:()=>t(n)}}const ag=["container"],og=new WeakMap,ig=new WeakMap,sg=new WeakMap,lg=e=>e===document.documentElement?window:e;function cg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.container,r=void 0===n?document.documentElement:n,a=Oe(t,ag),o=sg.get(r);o||(o=new Set,sg.set(r,o));const i=rg(r,e,{time:0,x:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0},y:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}},a);if(o.add(i),!og.has(r)){const e=()=>{for(const e of o)e.measure()},t=()=>{for(const e of o)e.update(bl.timestamp)},n=()=>{for(const e of o)e.notify()},a=()=>{yl.read(e,!1,!0),yl.read(t,!1,!0),yl.update(n,!1,!0)};og.set(r,a);const i=lg(r);window.addEventListener("resize",a,{passive:!0}),r!==document.documentElement&&ig.set(r,(l=a,"function"===typeof(s=r)?Km(s):qm(s,l))),i.addEventListener("scroll",a,{passive:!0})}var s,l;const c=og.get(r);return yl.read(c,!1,!0),()=>{var e;vl(c);const t=sg.get(r);if(!t)return;if(t.delete(i),t.size)return;const n=og.get(r);og.delete(r),n&&(lg(r).removeEventListener("scroll",n),null===(e=ig.get(r))||void 0===e||e(),window.removeEventListener("resize",n))}}const ug=["axis"];const dg=new Map;function hg(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.source,n=e.container,r=void 0===n?document.documentElement:n,a=e.axis,o=void 0===a?"y":a;t&&(r=t),dg.has(r)||dg.set(r,{});const i=dg.get(r);return i[o]||(i[o]=Ts()?new ScrollTimeline({source:r,axis:o}):function(e){let t=e.source,n=e.container,r=e.axis,a=void 0===r?"y":r;t&&(n=t);const o={value:0},i=cg(e=>{o.value=100*e[a].progress},{container:n,axis:a});return{currentTime:o,cancel:i}}({source:r,axis:o})),i[o]}function pg(e){return e&&(e.target||e.offset)}function fg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.axis;const r=c({axis:void 0===n?"y":n},Oe(t,ug));return"function"===typeof e?function(e,t){return function(e){return 2===e.length}(e)||pg(t)?cg(n=>{e(n[t.axis].progress,n)},t):zm(e,hg(t))}(e,r):function(e,t){if(e.flatten(),pg(t))return e.pause(),cg(n=>{e.time=e.duration*n[t.axis].progress},t);{const n=hg(t);return e.attachTimeline?e.attachTimeline(n,e=>(e.pause(),zm(t=>{e.time=e.duration*t},n))):sl}}(e,r)}const mg=["container","target","layoutEffect"];function gg(e,t){Jc(Boolean(!t||t.current),"You have defined a ".concat(e," options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its `layoutEffect: false` option."))}const yg=()=>({scrollX:Al(0),scrollY:Al(0),scrollXProgress:Al(0),scrollYProgress:Al(0)});function vg(e,n){const r=function(e){const n=as(()=>Al(e));if((0,t.useContext)(is).isStatic){const r=Ie((0,t.useState)(e),2)[1];(0,t.useEffect)(()=>n.on("change",r),[])}return n}(n()),a=()=>r.set(n());return a(),ms(()=>{const t=()=>yl.preRender(a,!1,!0),n=e.map(e=>e.on("change",t));return()=>
2{n.forEach(e=>e()),vl(a)}}),r}function bg(e,t,n,r){if("function"===typeof e)return function(e){Tl.current=[],e();const t=vg(Tl.current,e);return Tl.current=void 0,t}(e);const a="function"===typeof t?t:function(){const e=!Array.isArray(arguments.length<=0?void 0:arguments[0]),t=e?0:-1,n=0+t<0||arguments.length<=0+t?void 0:arguments[0+t],r=2+t<0||arguments.length<=2+t?void 0:arguments[2+t],a=3+t<0||arguments.length<=3+t?void 0:arguments[3+t],o=ld(1+t<0||arguments.length<=1+t?void 0:arguments[1+t],r,c({mixer:(i=r[0],(e=>e&&"object"===typeof e&&e.mix)(i)?i.mix:void 0)},a));var i;return e?o(n):o}(t,n,r);return Array.isArray(e)?xg(e,a):xg([e],e=>{let t=Ie(e,1)[0];return a(t)})}function xg(e,t){const n=as(()=>[]);return vg(e,()=>{n.length=0;const r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}const wg=Ki("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]),kg=["Great prices","for the quality."],Sg=()=>{const e=(0,t.useRef)(null),n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.container,r=e.target,a=e.layoutEffect,o=void 0===a||a,i=Oe(e,mg);const s=as(yg);return(o?ms:t.useEffect)(()=>(gg("target",r),gg("container",n),fg((e,t)=>{let n=t.x,r=t.y;s.scrollX.set(n.current),s.scrollXProgress.set(n.progress),s.scrollY.set(r.current),s.scrollYProgress.set(r.progress)},c(c({},i),{},{container:(null===n||void 0===n?void 0:n.current)||void 0,target:(null===r||void 0===r?void 0:r.current)||void 0}))),[n,r,JSON.stringify(i.offset)]),s}({target:e,offset:["start start","end start"]}),r=n.scrollYProgress,a=bg(r,[0,1],["0%","22%"]),o=bg(r,[0,1],[1,1.08]);return(0,Pe.jsx)("section",{ref:e,"data-testid":"hero-section",className:"relative min-h-screen overflow-hidden pt-24",children:(0,Pe.jsxs)("div",{className:"mx-auto grid max-w-[1600px] grid-cols-1 gap-10 px-6 pb-16 sm:px-10 lg:grid-cols-12 lg:gap-0",children:[(0,Pe.jsxs)("div",{className:"flex flex-col justify-center lg:col-span-6 lg:pr-16",children:[(0,Pe.jsx)(wm.p,{initial:{opacity:0}
2,animate:{opacity:1},transition:{delay:.1,duration:.8},className:"mb-8 text-xs uppercase tracking-[0.3em] text-taupe",children:"Home decor \u2014 delivered across New York, by hand"}),(0,Pe.jsx)("h1",{className:"font-serif text-5xl font-light leading-[0.95] tracking-tighter sm:text-6xl lg:text-8xl",children:kg.map((e,t)=>(0,Pe.jsx)("span",{className:"block overflow-hidden pb-1",children:(0,Pe.jsx)(wm.span,{className:"block",initial:{y:"110%"},animate:{y:0},transition:{delay:.25+.18*t,duration:1,ease:[.22,1,.36,1]},children:e})},e))}),(0,Pe.jsx)(wm.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.9,duration:.8},className:"mt-8 max-w-md text-base font-light leading-relaxed text-ash",children:"Furniture, lighting and objects for people who notice the difference \u2014 priced for people who shouldn't have to pay for it."}),(0,Pe.jsx)(wm.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:1.1,duration:.8},className:"mt-12 flex items-center gap-6",children:(0,Pe.jsxs)(cr,{to:"/shop","data-testid":"hero-shop-cta",className:"group flex items-center gap-3 rounded-full bg-charcoal px-8 py-4 text-xs uppercase tracking-[0.2em] text-bone transition-colors duration-300 hover:bg-moss",children:["Shop the collection",(0,Pe.jsx)(wg,{size:14,className:"transition-transform duration-300 group-hover:translate-y-0.5"})]})})]}),(0,Pe.jsxs)("div",{className:"relative lg:col-span-6",children:[(0,Pe.jsxs)(wm.div,{initial:{clipPath:"inset(100% 0 0 0)"},animate:{clipPath:"inset(0% 0 0 0)"},transition:{delay:.4,duration:1.2,ease:[.22,1,.36,1]},className:"relative h-[60vh] overflow-hidden lg:h-[80vh]",children:[(0,Pe.jsx)(wm.img,{src:"https://images.unsplash.com/photo-1724582586529-62622e50c0b3?q=80&w=1600&auto=format&fit=crop",alt:"A warm, minimal living room styled with Hearth & Co. pieces",style:{y:a,scale:o},className:"h-[120%] w-full object-cover"}),(0,Pe.jsx)("div",{className:"absolute inset-0 bg-charcoal/10"})]}),(0,Pe.jsx)(wm.p,{initial:{opacity:0}
2,animate:{opacity:1},transition:{delay:1.4,duration:.8},className:"mt-4 text-xs uppercase tracking-[0.2em] text-ash",children:"The Autumn Room \u2014 styled entirely from this season's collection"})]})]})})},Eg=()=>(0,Pe.jsx)(wm.section,{"data-testid":"member-strip",initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.8},className:"bg-charcoal py-5 text-bone",children:(0,Pe.jsxs)("div",{className:"mx-auto flex max-w-[1600px] flex-wrap items-center justify-center gap-x-8 gap-y-2 px-6 sm:px-10",children:[(0,Pe.jsxs)("p",{className:"flex items-center gap-3 text-xs uppercase tracking-[0.25em]",children:[(0,Pe.jsx)(Nm,{size:16,className:"text-powder"}),"Members save $25 on orders over $199"]}),(0,Pe.jsxs)(cr,{to:"/auth","data-testid":"member-strip-cta",className:"group flex items-center gap-2 text-xs uppercase tracking-[0.25em] text-powder transition-colors duration-300 hover:text-bone",children:["Join free",(0,Pe.jsx)(jm,{size:13,className:"transition-transform duration-300 group-hover:translate-x-1"})]})]})});var Ng=n(818);const jg=["Honest pricing","Made to be lived with","Delivered across New York, by hand","Small-batch textiles","Furniture that outlasts trends"],Cg=()=>(0,Pe.jsx)("div",{"data-testid":"editorial-marquee",className:"marquee-serif border-y border-charcoal/10 bg-powder py-6",children:(0,Pe.jsx)(Ng.A,{speed:28,gradient:!1,pauseOnHover:!0,children:jg.map(e=>(0,Pe.jsxs)("span",{className:"mx-10 flex items-center gap-10 font-serif text-2xl font-light italic text-charcoal/80",children:[e,(0,Pe.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-moss"})]},e))})}),Tg=e=>{let t=e.product,n=e.className,r=void 0===n?"":n,a=e.ratio,o=void 0===a?"aspect-[4/5]":a;const i=Qr().add,s=zi().user;return(0,Pe.jsxs)("div",{"data-testid":"product-card-".concat(t.slug),className:"group ".concat(r),children:[(0,Pe.jsxs)(cr,{to:"/product/".concat(t.slug),className:"relative block overflow-hidden bg-sand ".concat(o),children:[(0,Pe.jsx)("img",{src:t.image,alt:t.name,loading:"lazy",className:"h-full w-full object-cover transition-transform duration-700 ease-out group-hover:scale-105"}),(0,Pe.jsx)("div",{className:"absolute inset-0 bg-charcoal/0 transition-colors duration-500 group-hover:bg-charcoal/10"}),(0,Pe.jsx)("button",{"data-testid":"wishlist-".concat(t.slug),onClick:e=>{e.preventDefault(),(async()=>{if(s)try{const e=await Mi.post("/my/wishlist",{slug:t.slug});Ur(e.data.slugs.includes(t.slug)?"".concat(t.name," saved to your wishlist"):"Removed from your wishlist")}catch(e){Ur.error(_i(e))}else Ur("Sign in to save pieces to your wishlist")})()},"aria-label":"Save ".concat(t.name," to wishlist"),className:"absolute right-3 top-3 rounded-full bg-bone/90 p-2.5 text-charcoal opacity-0 transition-all duration-300 hover:bg-moss hover:text-bone group-hover:opacity-100",children:(0,Pe.jsx)(Xi,{size:15})})]}),(0,Pe.jsxs)("div",{className:"mt-4 flex items-start justify-between gap-4",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(cr,{to:"/product/".concat(t.slug),"data-testid":"product-link-".concat(t.slug),className:"font-serif text-xl leading-tight transition-colors duration-300 hover:text-taupe",children:t.name}),(0,Pe.jsx)("p",{className:"mt-1 text-xs uppercase tracking-[0.2em] text-ash",children:t.category})]}),(0,Pe.jsx)("p",{"data-testid":"product-price-".concat(t.slug),className:"whitespace-nowrap text-sm text-ash",children:Cm(t.price)})]}),(0,Pe.jsxs)("button",{"data-testid":"add-to-cart-".concat(t.slug),onClick:()=>{i(t),Ur("".concat(t.name," added to your cart"))},className:"mt-3 flex items-center gap-2 rounded-full border border-charcoal/20 px-5 py-2 text-xs uppercase tracking-[0.2em] opacity-0 transition-all duration-300 hover:bg-charcoal hover:text-bone group-hover:opacity-100",children:[(0,Pe.jsx)(Em,{size:13})," Add to cart"]})]})},Pg=e=>{let t=e.children,n=e.delay,r=void 0===n?0:n,a=e.className,o=void 0===a?"":a,i=e.y,s=void 0===i?36:i;return(0,Pe.jsx)(wm.div,{initial:{opacity:0,y:s},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.9,delay:r,ease:[.22,1,.36,1]},className:o,children:t})},Ag=()=>{const e=Ie((0,t.useState)([]),2),n=e[0],r=e[1];return(0,t.useEffect)(()=>{Mi.get("/products",{params:{featured:!0}}).then(e=>r(e.data)).catch(()=>{})},[]),(0,Pe.jsxs)("section",{id:"featured","data-testid":"featured-section",className:"mx-auto max-w-[1600px] px-6 py-24 sm:px-10 sm:py-32",children:[(0,Pe.jsx)(Pg,{children:(0,Pe.jsxs)("div",{className:"mb-16 flex flex-wrap items-end justify-between gap-6",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("p",{className:"mb-4 text-xs uppercase tracking-[0.3em] text-taupe",children:"This season"}),(0,Pe.jsxs)("h2",{className:"font-serif text-3xl font-light tracking-tight sm:text-4xl lg:text-5xl",children:["The pieces people",(0,Pe.jsx)("br",{}),"write to us about"]})]}),(0,Pe.jsxs)(cr,{to:"/shop","data-testid":"featured-view-all",className:"group flex items-center gap-2 text-xs uppercase tracking-[0.2em] text-ash transition-colors duration-300 hover:text-charcoal",children:["View everything",(0,Pe.jsx)(jm,{size:14,className:"transition-transform duration-300 group-hover:translate-x-1"})]})]})}),(0,Pe.jsx)("div",{className:"grid grid-cols-2 gap-6 md:grid-cols-3 md:gap-10",children:n.slice(0,6).map((e,t)=>(0,Pe.jsx)(Pg,{delay:.06*t,children:(0,Pe.jsx)(Tg,{product:e,ratio:"aspect-[4/5]"})},e.slug))})]})},Rg=()=>{const e=Ie((0,t.useState)([]),2),n=e[0],r=e[1];return(0,t.useEffect)(()=>{Mi.get("/products",{params:{deal:!0}}).then(e=>r(e.data)).catch(()=>{})},[]),n.length?(0,Pe.jsxs)("section",{"data-testid":"steal-deal-section",className:"mx-auto max-w-[1600px] px-6 py-24 sm:px-10 sm:py-32",children:[(0,Pe.jsx)(Pg,{children:(0,Pe.jsxs)("div",{className:"mb-16 flex flex-wrap items-end justify-between gap-6",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("p",{className:"mb-4 text-xs uppercase tracking-[0.3em] text-moss",children:"Small prices, big atmosphere"}),(0,Pe.jsx)("h2",{className:"font-serif text-3xl font-light tracking-tight sm:text-4xl lg:text-5xl",children:"Steal the deal"})]}),(0,Pe.jsxs)(cr,{to:"/shop","data-testid":"deal-view-all",className:"group flex items-center gap-2 text-xs uppercase tracking-[0.2em] text-ash transition-colors duration-300 hover:text-charcoal",children:["Browse everything",(0,Pe.jsx)(jm,{size:14,className:"transition-transform duration-300 group-hover:translate-x-1"})]})]})}),(0,Pe.jsx)("div",{className:"grid grid-cols-2 gap-6 md:grid-cols-4 md:gap-10",children:n.slice(0,4).map((e,t)=>(0,Pe.jsx)(Pg,{delay:.06*t,children:(0,Pe.jsx)(Tg,{product:e,ratio:"aspect-[4/5]"})},e.slug))})]}):null},Og=()=>{const e=Ie((0,t.useState)([]),2),n=e[0],r=e[1];return(0,t.useEffect)(()=>{Mi.get("/products",{params:{u99:!0}}).then(e=>r(e.data)).catch(()=>{})},[]),n.length?(0,Pe.jsx)("section",{"data-testid":"under-99-section",className:"bg-powder/4
20 py-24 sm:py-32",children:(0,Pe.jsxs)("div",{className:"mx-auto max-w-[1600px] px-6 sm:px-10",children:[(0,Pe.jsx)(Pg,{children:(0,Pe.jsxs)("div",{className:"mb-16 flex flex-wrap items-end justify-between gap-6",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("p",{className:"mb-4 text-xs uppercase tracking-[0.3em] text-taupe",children:"Little upgrades, honest prices"}),(0,Pe.jsx)("h2",{className:"font-serif text-3xl font-light tracking-tight sm:text-4xl lg:text-5xl",children:"Everything under $99"})]}),(0,Pe.jsxs)(cr,{to:"/shop?maxprice=99","data-testid":"u99-view-all",className:"group flex items-center gap-2 text-xs uppercase tracking-[0.2em] text-ash transition-colors duration-300 hover:text-charcoal",children:["Shop all under $99",(0,Pe.jsx)(jm,{size:14,className:"transition-transform duration-300 group-hover:translate-x-1"})]})]})}),(0,Pe.jsx)("div",{className:"grid grid-cols-2 gap-6 md:grid-cols-4 md:gap-10",children:n.slice(0,4).map((e,t)=>(0,Pe.jsx)(Pg,{delay:.06*t,children:(0,Pe.jsx)(Tg,{product:e,ratio:"aspect-[4/5]"})},e.slug))})]})}):null},Fg=[{n:"01",title:"Fair prices, on purpose",body:"We keep margins honest and overheads low, so the price on the tag reflects the object \u2014 not the showroom it sat in."},{n:"02",title:"Made to be lived with",body:"Every piece is chosen for how it ages: solid wood that scars beautifully, linen that softens, glazes that deepen."},{n:"03",title:"Local, by hand",body:"We deliver across New York ourselves. No couriers tossing boxes \u2014 your pieces arrive placed, not dropped."}],Lg=()=>(0,Pe.jsx)("section",{id:"story","data-testid":"manifesto-section",className:"bg-charcoal py-24 text-bone sm:py-32",children:(0,Pe.jsxs)("div",{className:"mx-auto max-w-[1600px] px-6 sm:px-10",children:[(0,Pe.jsxs)(Pg,{children:[(0,Pe.jsx)("p",{className:"mb-4 text-xs uppercase tracking-[0.3em] text-bone/60",children:"Our philosophy"}),(0,Pe.jsxs)("h2",{className:"mb-20 max-w-2xl font-serif text-3xl font-light leading-tight tracking-tight sm:text-4xl lg:text-5xl",children:["A home isn't decorated.",(0,Pe.jsx)("br",{}),"It's gathered."]})]}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 gap-16 lg:grid-cols-12",children:[(0,Pe.jsx)("div",{className:"lg:col-span-7",children:Fg.map((e,t)=>(0,Pe.jsx)(Pg,{delay:.1*t,children:(0,Pe.jsxs)("div",{className:"flex gap-8 border-t border-bone/15 py-10 sm:gap-14",children:[(0,Pe.jsx)("span",{className:"font-serif text-5xl font-light italic text-moss sm:text-6xl",children:e.n}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("h3",{className:"font-serif text-xl tracking-tight sm:text-2xl",children:e.title}),(0,Pe.jsx)("p",{className:"mt-3 max-w-md text-sm font-light leading-relaxed text-bone/70",children:e.body})]})]})},e.n))}),(0,Pe.jsx)(Pg,{delay:.2,className:"lg:col-span-5",children:(0,Pe.jsx)("div",{className:"overflow-hidden",children:(0,Pe.jsx)("img",{src:"https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?q=80&w=900&h=1200&auto=format&fit=crop",alt:"A calm bedroom gathered piece by piece",loading:"lazy",className:"h-full max-h-[560px] w-full object-cover transition-transform duration-700 ease-out hover:scale-105"})})})]})]})}),Dg=Ki("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]),Mg=[{name:"Furniture",note:"Sofas, chairs, tables",image:"https://images.unsplash.com/photo-1555041469-a586c61ea9bc?q=80&w=900&auto=format&fit=crop"},{name:"Lighting",note:"Lamps for low, warm light",image:"https://images.unsplash.com/photo-1615873968403-89e068629265?q=80&w=900&auto=format&fit=crop"},{name:"Decor",note:"Vases and objects",image:"https://images.pexels.com/photos/17619624/pexels-photo-17619624.jpeg?auto=compress&cs=tinysrgb&w=900"},{name:"Kitchen",note:"Pantry, storage & tools",image:"https://cf.cjdropshipping.com/1766448
20/b80c66e0-449c-45cc-9b73-413cb0075aed.jpg"},{name:"Home Safety",note:"Baby & child protection",image:"https://cf.cjdropshipping.com/384dd0e0-4ef2-439e-a142-05b3699abb14.png"}],_g=()=>(0,Pe.jsxs)("section",{id:"collections","data-testid":"collections-section",className:"mx-auto max-w-[1600px] px-6 py-24 sm:px-10 sm:py-32",children:[(0,Pe.jsxs)(Pg,{children:[(0,Pe.jsx)("p",{className:"mb-4 text-xs uppercase tracking-[0.3em] text-taupe",children:"Browse by room & mood"}),(0,Pe.jsx)("h2",{className:"mb-16 font-serif text-3xl font-light tracking-tight sm:text-4xl lg:text-5xl",children:"Collections"})]}),(0,Pe.jsx)("div",{className:"grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-5",children:Mg.map((e,t)=>(0,Pe.jsx)(Pg,{delay:.08*t,children:(0,Pe.jsxs)(cr,{to:"/shop?category=".concat(e.name),"data-testid":"collection-".concat(e.name.toLowerCase()),className:"group block",children:[(0,Pe.jsx)("div",{className:"flex aspect-[4/5] items-center justify-center overflow-hidden bg-sand p-6",children:(0,Pe.jsx)("img",{src:e.image,alt:e.name,loading:"lazy",className:"max-h-full max-w-full object-contain transition-transform duration-700 ease-out group-hover:scale-105"})}),(0,Pe.jsxs)("div",{className:"mt-4 flex items-center justify-between",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("h3",{className:"font-serif text-xl tracking-tight",children:e.name}),(0,Pe.jsx)("p",{className:"mt-1 text-xs uppercase tracking-[0.2em] text-ash",children:e.note})]}),(0,Pe.jsx)(Dg,{size:18,className:"text-ash transition-all duration-300 group-hover:-translate-y-1 group-hover:translate-x-1 group-hover:text-charcoal"})]})]})},e.name))})]}),Ig=e=>{let t=e.testid,n=e.children;return(0,Pe.jsx)("span",{"data-testid":t,className:"flex h-8 items-center gap-1.5 rounded-md bg-bone px-3 text-[10px] font-bold tracking-wide text-charcoal",children:n})},zg=()=>(0,Pe.jsx)("footer",{"data-testid":"footer",className:"bg-charcoal py-32 text-bone",children:(0,Pe.jsxs)("div",{className:"mx-auto max-w-[1600px] px-6 sm:px-10",children:[(0,Pe.jsx)("p",{className:"mb-4 text-xs uppercase tracking-[0.3em] text-bone/50",children:"Delivery"}),(0,Pe.jsx)("p",{"data-testid":"footer-delivery-note",className:"max-w-3xl font-serif text-3xl font-light leading-tight tracking-tight sm:text-4xl lg:text-5xl",children:"Delivered across New York, by hand."}),(0,Pe.jsx)("p",{className:"mt-6 max-w-md text-sm font-light leading-relaxed text-bone/60",children:"New York's finest, online \u2014 every order is packed, carried and placed in your home by our own team. Cashless checkout, careful arrival."}),(0,Pe.jsxs)("div",{className:"mt-20 flex flex-wrap gap-10 border-t border-bone/15 pt-10 text-xs uppercase tracking-[0.2em] text-bone/60",children:[(0,Pe.jsx)(cr,{to:"/shop","data-testid":"footer-shop-link",className:"transition-colors duration-300 hover:text-bone",children:"Shop"}),(0,Pe.jsx)("a",{href:"/#story","data-testid":"footer-story-link",className:"transition-colors duration-300 hover:text-bone",children:"About us"}),(0,Pe.jsx)("a",{href:"/#collections","data-testid":"footer-collections-link",className:"transition-colors duration-300 hover:text-bone",children:"Collections"}),(0,Pe.jsx)(cr,{to:"/track","data-testid":"footer-track-link",className:"transition-colors duration-300 hover:text-bone",children:"Track order"}),(0,Pe.jsx)(cr,{to:"/contact","data-testid":"footer-contact-link",className:"transition-colors duration-300 hover:text-bone",children:"Contact us"})]}),(0,Pe.jsxs)("div",{className:"mt-8 flex flex-wrap gap-x-10 gap-y-4 text-xs uppercase tracking-[0.2em] text-bone/40",children:[(0,Pe.jsx)(cr,{to:"/help","data-testid":"footer-help-link",className:"transition-colors duration-300 hover:text-bone",children:"Help @ FAQ"}),(0,Pe.jsx)(cr,{to:"/return-policy","data-testid":"footer-return-policy-link",className:"transition-colors duration-300 hover:text-bone",children:"Return Policy"}),(0,Pe.jsx)(cr,{to:"/terms","data-testid":"footer-terms-link",className:"transition-colors duration-300 hover:text-bone",children:"Terms & Conditions"}),(0,Pe.jsx)(cr,{to:"/privacy","data-testid":"footer-privacy-link",className:"transition-colors duration-300 hover:text-bone",children:"Privacy Policy"})]}),(0,Pe.jsx)("p",{className:"mt-24 select-none font-serif text-[13vw] font-light leading-none tracking-tighter text-bone/10 lg:text-[10rem]",children:"Shop ONline New York"}),(0,Pe.jsxs)("div",{className:"mt-16 flex flex-wrap items-center justify-between gap-6 border-t border-bone/15 pt-8",children:[(0,Pe.jsx)("p",{"data-testid":"footer-copyright",className:"text-xs font-light text-bone/40",children:"\xa9 2026 Shop ONline New York. All rights reserved."}),(0,Pe.jsxs)("div",{className:"flex flex-wrap items-center gap-2","data-testid":"footer-payment-badges",children:[(0,Pe.jsx)(Ig,{testid:"pay-visa",children:(0,Pe.jsx)("span",{className:"italic",children:"VISA"})}),(0,Pe.jsx)(Ig,{testid:"pay-mastercard",children:(0,Pe.jsxs)("svg",{width:"24",height:"15",viewBox:"0 0 26 16","aria-label":"Mastercard",children:[(0,Pe.jsx)("circle",{cx:"9",cy:"8",r:"7",fill:"#EB001B"}),(0,Pe.jsx)("circle",{cx:"17",cy:"8",r:"7",fill:"#F79E1B",fillOpacity:"0.85"})]})}),(0,Pe.jsx)(Ig,{testid:"pay-amex",children:"AMEX"}),(0,Pe.jsx)(Ig,{testid:"pay-applepay",children:"Apple Pay"}),(0,Pe.jsx)(Ig,{testid:"pay-gpay",children:"G Pay"})]})]})]})});function Bg(){const e=Zt().hash;return(0,t.useEffect)(()=>
2{if(!e)return;const t=()=>{var t;return null===(t=document.querySelector(e))||void 0===t?void 0:t.scrollIntoView({behavior:"smooth"})},n=setTimeout(t,300),r=setTimeout(t,1200);return()=>{clearTimeout(n),clearTimeout(r)}},[e]),(0,Pe.jsxs)("main",{"data-testid":"home-page",children:[(0,Pe.jsx)(Sg,{}),(0,Pe.jsx)(Eg,{}),(0,Pe.jsx)(Cg,{}),(0,Pe.jsx)(Ag,{}),(0,Pe.jsx)(Rg,{}),(0,Pe.jsx)(Og,{}),(0,Pe.jsx)(Lg,{}),(0,Pe.jsx)(_g,{}),(0,Pe.jsx)(zg,{})]})}const Ug=Ki("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Vg=["All","Furniture","Lighting","Decor","Textiles","Kitchen","Home Safety"],Wg=[{label:"Any price",min:null,max:null},{label:"Under $100",min:0,max:100},{label:"$100 \u2013 $500",min:100,max:500},{label:"$500 \u2013 $1,000",min:500,max:1e3},{label:"Over $1,000",min:1e3,max:null}];function qg(){const e=Ie((0,t.useState)([]),2),n=e[0],r=e[1],a=Ie((0,t.useState)(Vg),2),o=a[0],i=a[1],s=Ie((0,t.useState)(24),2),l=s[0],c=s[1],u=Ie(pr(),2),d=u[0],h=u[1],p=Ie((0,t.useState)(()=>d.get("maxprice")?1:0),2),f=p[0],m=p[1],g=Ie((0,t.useState)(!0),2),y=g[0],v=g[1],b=Ie((0,t.useState)(!1),2),x=b[0],w=b[1],k=Ie((0,t.useState)(0),2),S=k[0],E=k[1],N=d.get("category")||"All",j=d.get("sub")||"",C=d.get("search")||"";(0,t.useEffect)(()=>{Mi.get("/products").then(e=>{const t=new Set(e.data.map(e=>e.category));i(Vg.filter(e=>"All"===e||t.has(e)))}).catch(()=>{})},[]),(0,t.useEffect)(()=>{v(!0),w(!1),c(24);const e={};"All"!==N&&(e.category=N),j&&(e.sub=j),C&&(e.q=C),Mi.get("/products",{params:e}).then(e=>r(e.data)).catch(()=>{r([]),w(!0)}).finally(()=>v(!1))},[N,j,C,S]);const T=Wg[f],P=T.min,A=T.max,R=n.filter(e=>(null==P||e.price>=P)&&(null==A||e.price<A)),O=R.slice(0,l);return(0,Pe.jsxs)("main",{"data-testid":"shop-page",className:"pt-24",children:[(0,Pe.jsxs)("div",{className:"mx-auto max-w-[1600px] px-6 py-16 sm:px-10 sm:py-24",children:[(0,Pe.jsxs)(Pg,{children:[(0,Pe.jsx)("p",{className:"mb-4 text-xs uppercase tracking-[0.3em] text-taupe",children:"The full catalogue"}),(0,Pe.jsx)("h1",{className:"font-serif text-4xl font-light tracking-tighter sm:text-5xl lg:text-6xl",children:"Shop"})]}),(0,Pe.jsxs)("div",{className:"mt-12 flex flex-wrap items-center gap-4","data-testid":"shop-filters",children:[(0,Pe.jsx)("span",{className:"text-xs uppercase tracking-[0.2em] text-ash",children:"Browse"}),(0,Pe.jsxs)("div",{className:"relative",children:[(0,Pe.jsx)("select",{"data-testid":"category-dropdown",value:N,onChange:e=>h("All"===e.target.value?{}:{category:e.target.value}),className:"appearance-none rounded-full border border-charcoal/20 bg-transparent py-2.5 pl-6 pr-12 text-xs uppercase tracking-[0.2em] text-charcoal outline-none transition-colors duration-300 hover:border-charcoal focus:border-charcoal",children:o.map(e=>(0,Pe.jsx)("option",{value:e,"data-testid":"category-option-".concat(e.toLowerCase()),children:"All"===e?"All pieces":e},e))}),(0,Pe.jsx)(Ug,{size:14,className:"pointer-events-none absolute right-5 top-1/2 -translate-y-1/2 text-ash"})]}),(0,Pe.jsxs)("div",{className:"relative",children:[(0,Pe.jsx)("select",{"data-testid":"price-filter-dropdown",value:f,onChange:e=>{m(Number(e.target.value)),c(24)},className:"appearance-none rounded-full border border-charcoal/20 bg-transparent py-2.5 pl-6 pr-12 text-xs uppercase tracking-[0.2em] text-charcoal outline-none transition-colors duration-300 hover:border-charcoal focus:border-charcoal",children:Wg.map((e,t)=>
2(0,Pe.jsx)("option",{value:t,"data-testid":"price-option-".concat(t),children:e.label},e.label))}),(0,Pe.jsx)(Ug,{size:14,className:"pointer-events-none absolute right-5 top-1/2 -translate-y-1/2 text-ash"})]}),C&&(0,Pe.jsxs)("span",{"data-testid":"shop-search-chip",className:"rounded-full bg-moss px-4 py-2 text-[10px] uppercase tracking-[0.2em] text-bone",children:["Search: \u201c",C,"\u201d"]}),j&&(0,Pe.jsxs)("span",{"data-testid":"shop-subcategory-chip",className:"rounded-full bg-charcoal px-4 py-2 text-[10px] uppercase tracking-[0.2em] text-bone",children:[N," \u2192 ",j]}),!y&&(0,Pe.jsxs)("span",{"data-testid":"shop-count",className:"text-xs uppercase tracking-[0.2em] text-ash",children:[R.length," ",1===R.length?"piece":"pieces"]})]}),y?(0,Pe.jsx)("p",{"data-testid":"shop-loading",className:"mt-24 text-sm font-light text-ash",children:"Gathering the collection..."}):x?(0,Pe.jsxs)("div",{"data-testid":"shop-error",className:"mt-24 text-center",children:[(0,Pe.jsx)("p",{className:"text-sm font-light text-ash",children:"The collection didn't load \u2014 the shop may be waking up."}),(0,Pe.jsx)("button",{"data-testid":"shop-retry-button",onClick:()=>E(e=>e+1),className:"mt-6 rounded-full border border-charcoal/20 px-10 py-4 text-xs uppercase tracking-[0.2em] transition-colors duration-300 hover:bg-charcoal hover:text-bone",children:"Try again"})]}):(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)("div",{className:"mt-16 grid grid-cols-2 gap-6 md:grid-cols-3 md:gap-10 lg:grid-cols-4",children:O.map((e,t)=>(0,Pe.jsx)(Pg,{delay:t%4*.05,children:(0,Pe.jsx)(Tg,{product:e,ratio:"aspect-[4/5]"})},e.slug))}),l<R.length&&(0,Pe.jsx)("div",{className:"mt-20 text-center",children:(0,Pe.jsxs)("button",{"data-testid":"load-more-button",onClick:()=>c(e=>e+24),className:"rounded-full border border-charcoal/20 px-10 py-4 text-xs uppercase tracking-[0.2em] transition-colors duration-300 hover:bg-charcoal hover:text-bone",children:["Load more \u2014 ",R.length-l," remaining"]})})]})]}),(0,Pe.jsx)(zg,{})]})}const Hg=Ki("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]),Yg=Ki("truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]]),Kg=Ki("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),$g=Ki("refresh-ccw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]]),Xg=Ki("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]),Qg=e=>{let t=e.value,n=e.size,r=void 0===n?15:n;return(0,Pe.jsx)("span",{className:"flex gap-0.5","aria-label":"".concat(t," out of 5 stars"),children:[1,2,3,4,5].map(e=>(0,Pe.jsx)(Xg,{size:r,className:e<=Math.round(t)?"fill-taupe text-taupe":"text-charcoal/25"},e))})},Gg=e=>{let n=e.slug;const r=zi().user,a=Ie((0,t.useState)({average:0,count:0,reviews:[]}),2),o=a[0],i=a[1],s=Ie((0,t.useState)(0),2),l=s[0],c=s[1],u=Ie((0,t.useState)(""),2),d=u[0],h=u[1],p=Ie((0,t.useState)(!1),2),f=p[0],m=p[1],g=()=>Mi.get("/products/".concat(n,"/reviews")).then(e=>i(e.data)).catch(()=>{});(0,t.useEffect)(()=>{g()},[n]);return(0,Pe.jsx)("section",{"data-testid":"review-section",className:"mx-auto max-w-[1600px] px-6 pb-24 sm:px-10",children:(0,Pe.jsxs)("div",{className:"grid grid-cols-1 gap-16 border-t border-black/10 pt-16 lg:grid-cols-12",children:[(0,Pe.jsxs)("div",{className:"lg:col-span-5",children:[(0,Pe.jsx)("p",{className:"mb-3 text-xs uppercase tracking-[0.3em] text-taupe",children:"Reviews"}),(0,Pe.jsxs)("div",{className:"flex items-end gap-4",children:[(0,Pe.jsx)("span",{"data-testid":"review-average",className:"font-serif text-6xl font-light",children:o.average||"\u2014"}),(0,Pe.jsxs)("div",{className:"pb-2",children:[(0,Pe.jsx)(Qg,{value:o.average}),(0,Pe.jsxs)("p",{"data-testid":"review-count",className:"mt-1 text-xs uppercase tracking-[0.2em] text-ash",children:[o.count," ",1===o.count?"review":"reviews"]})]})]}
2),r?(0,Pe.jsxs)("div",{className:"mt-10 space-y-4","data-testid":"review-form",children:[(0,Pe.jsx)("p",{className:"text-xs uppercase tracking-[0.2em] text-ash",children:"Share yours"}),(0,Pe.jsx)("div",{className:"flex gap-2",children:[1,2,3,4,5].map(e=>(0,Pe.jsx)("button",{"data-testid":"star-".concat(e),onClick:()=>c(e),"aria-label":"".concat(e," stars"),className:"transition-transform duration-200 hover:scale-110",children:(0,Pe.jsx)(Xg,{size:24,className:e<=l?"fill-moss text-moss":"text-charcoal/25"})},e))}),(0,Pe.jsx)("textarea",{"data-testid":"review-comment",rows:3,placeholder:"How is the piece living with you? (optional)",value:d,onChange:e=>h(e.target.value),className:"w-full rounded-md border border-charcoal/20 bg-transparent px-4 py-3 text-sm outline-none placeholder:text-ash/60 focus:border-charcoal"}),(0,Pe.jsx)("button",{"data-testid":"review-submit",onClick:async()=>{if(l){m(!0);try{await Mi.post("/products/".concat(n,"/reviews"),{rating:l,comment:d}),Ur.success("Thank you \u2014 your review is live."),c(0),h(""),g()}catch(qy){Ur.error(_i(qy))}finally{m(!1)}}else Ur.error("Pick a star rating first.")},disabled:f,className:"rounded-full bg-charcoal px-8 py-3.5 text-xs uppercase tracking-[0.2em] text-bone transition-colors duration-300 hover:bg-moss disabled:opacity-60",children:"Post review"})]}):(0,Pe.jsxs)("p",{className:"mt-10 text-sm font-light text-ash",children:[(0,Pe.jsx)(cr,{to:"/auth","data-testid":"review-signin-prompt",className:"underline underline-offset-4 hover:text-charcoal",children:"Sign in"})," to share your review."]})]}),(0,Pe.jsx)("div",{className:"lg:col-span-7",children:(0,Pe.jsxs)("div",{className:"space-y-8",children:[0===o.reviews.length&&(0,Pe.jsx)("p",{className:"text-sm font-light text-ash",children:"No reviews yet \u2014 be the first to gather one."}),o.reviews.map((e,t)=>(0,Pe.jsxs)(wm.div,{"data-testid":"review-".concat(t),initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.05*t},className:"border-t border-black/10 pt-6",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Pe.jsx)("p",{className:"text-sm font-medium",children:e.name}),(0,Pe.jsx)(Qg,{value:e.rating,size:13})]}),e.comment&&(0,Pe.jsx)("p",{className:"mt-2 max-w-xl text-sm font-light leading-relaxed text-ash",children:e.comment})]},e.user_id+t))]})})]})})},Jg=Ki("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),Zg=e=>{let t=e.label,n=void 0===t?"Back":t,r=e.fallback,a=void 0===r?"/":r;const o=nn(),i=Zt();return(0,Pe.jsxs)("button",{"data-testid":"back-button",onClick:()=>"default"===i.key?o(a):o(-1),className:"mb-8 flex items-center gap-2 text-xs uppercase tracking-[0.2em] text-ash transition-colors duration-300 hover:text-charcoal",children:[(0,Pe.jsx)(Jg,{size:14})," ",n]})},ey=e=>e?Math.round(e/10):null;function ty(){var e,n;const r=rn().slug,a=Qr().add,o=Ie((0,t.useState)(null),2),i=o[0],s=o[1],l=Ie((0,t.useState)(1),2),c=l[0],u=l[1],d=Ie((0,t.useState)(null),2),h=d[0],p=d[1],f=Ie((0,t.useState)(0),2),m=f[0],g=f[1],y=Ie((0,t.useState)(!1),2),v=y[0],b=y[1];(0,t.useEffect)(()=>{s(null),b(!1),p(null),g(0),Mi.get("/products/".concat(r)).then(e=>{s(e.data);const t=(e.data.variants||[])[0];t&&p(t)}).catch(()=>b(!0))},[r]);const x=(0,t.useMemo)(()=>{if(!i)return[];return(i.images&&i.images.length?i.images:[i.image]).filter(Boolean)},[i]);if(v)return(0,Pe.jsxs)("main",{className:"flex min-h-screen flex-col items-start justify-center px-6 sm:px-10","data-testid":"product-not-found",children:[(0,Pe.jsx)("h1",{className:"font-serif text-4xl font-light",children:"That piece has wandered off."}),(0,Pe.jsx)(cr,{to:"/shop",className:"mt-8 text-xs uppercase tracking-[0.2em] text-taupe hover:text-charcoal",children:"Back to the shop"})]});if(!i)return(0,Pe.jsx)("main",{className:"flex min-h-screen items-center justify-center","data-testid":"product-loading",children:(0,Pe.jsx)("p",{className:"text-sm font-light text-ash",children:"Unwrapping..."})});const w=null!==(e=null===h||void 0===h?void 0:h.price)&&void 0!==e?e:i.price,k=h&&(ey(h.length_mm)||ey(h.width_mm)||ey(h.height_mm))?"".concat(ey(h.length_mm)||"\u2014"," \xd7 ").concat(ey(h.width_mm)||"\u2014"," \xd7 ").concat(ey(h.height_mm)||"\u2014"," cm"):null,S=null!==h&&void 0!==h&&h.weight_g?"".concat((h.weight_g/1e3).toFixed(1)," kg"):null,E=null!==(n=null===h||void 0===h?void 0:h.stock)&&void 0!==n?n:i.stock;return(0,Pe.jsxs)("main",{"data-testid":"product-detail-page",className:"pt-24",children:[(0,Pe.jsxs)("div",{className:"mx-auto grid max-w-[1600px] grid-cols-1 gap-16 px-6 py-16 sm:px-10 lg:grid-cols-12",children:[(0,Pe.jsxs)(wm.div,{initial:{clipPath:"inset(0 0 100% 0)"},animate:{clipPath:"inset(0 0 0% 0)"},transition:{duration:1,ease:[.22,1,.36,1]},className:"lg:col-span-7",children:[(0,Pe.jsx)("div",{className:"overflow-hidden bg-sand",children:(0,Pe.jsx)("img",{src:x[m],alt:i.name,"data-testid":"product-image",className:"aspect-[4/3] w-full object-cover"})}),x.length>1&&(0,Pe.jsx)("div",{className:"mt-4 flex gap-3 overflow-x-auto pb-2","data-testid":"product-gallery",children:x.map((e,t)=>(0,Pe.jsx)("button",{"data-testid":"gallery-thumb-".concat(t),onClick:()=>g(t),className:"h-20 w-20 shrink-0 overflow-hidden border transition-colors duration-300 ".concat(t===m?"border-charcoal":"border-transparent opacity-60 hover:opacity-100"),children:(0,Pe.jsx)("img",{src:e,alt:"".concat(i.name," view ").concat(t+1),className:"h-full w-full object-cover"})},e+t))})]}),(0,Pe.jsxs)(wm.div,{initial:{opacity:0,y:30}
2,animate:{opacity:1,y:0},transition:{delay:.2,duration:.8},className:"flex flex-col justify-center lg:col-span-5",children:[(0,Pe.jsx)(Zg,{label:"Back",fallback:"/shop"}),(0,Pe.jsx)("p",{className:"mb-3 text-xs uppercase tracking-[0.3em] text-taupe",children:i.category}),(0,Pe.jsx)("h1",{"data-testid":"product-name",className:"font-serif text-4xl font-light tracking-tight sm:text-5xl",children:i.name}),(0,Pe.jsx)("p",{"data-testid":"product-price",className:"mt-5 text-xl text-ash",children:Cm(w)}),i.description&&(0,Pe.jsx)("p",{"data-testid":"product-description",className:"mt-8 max-w-md text-base font-light leading-relaxed text-ash",children:i.description}),(i.variants||[]).length>1&&(0,Pe.jsxs)("div",{className:"mt-8","data-testid":"variant-selector",children:[(0,Pe.jsx)("p",{className:"mb-3 text-xs uppercase tracking-[0.2em] text-ash",children:"Options"}),(0,Pe.jsx)("div",{className:"flex flex-wrap gap-2",children:i.variants.map(e=>(0,Pe.jsx)("button",{"data-testid":"variant-".concat(e.vid),onClick:()=>p(e),className:"rounded-full border px-4 py-2 text-xs transition-colors duration-300 ".concat((null===h||void 0===h?void 0:h.vid)===e.vid?"border-charcoal bg-charcoal text-bone":"border-charcoal/20 text-ash hover:border-charcoal hover:text-charcoal"),children:e.name},e.vid))})]}),(0,Pe.jsxs)("div",{className:"mt-10 flex items-center gap-6",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-4 roun
2ded-full border border-charcoal/20 px-4 py-2",children:[(0,Pe.jsx)("button",{"data-testid":"qty-minus",onClick:()=>u(Math.max(1,c-1)),className:"p-1 transition-colors duration-300 hover:text-taupe","aria-label":"Decrease quantity",children:(0,Pe.jsx)(Sm,{size:14})}),(0,Pe.jsx)("span",{"data-testid":"qty-value",className:"w-6 text-center text-sm",children:c}),(0,Pe.jsx)("button",{"data-testid":"qty-plus",onClick:()=>u(Math.min(20,c+1)),className:"p-1 transition-colors duration-300 hover:text-taupe","aria-label":"Increase quantity",children:(0,Pe.jsx)(Em,{size:14})})]}),(0,Pe.jsxs)("button",{"data-testid":"add-to-cart-button",onClick:()=>{a(i,c,h),Ur("".concat(i.name," added to your cart"))},className:"flex flex-1 items-center justify-center gap-3 rounded-full bg-charcoal px-8 py-4 text-xs uppercase tracking-[0.2em] text-bone transition-colors duration-300 hover:bg-moss",children:[(0,Pe.jsx)(Ji,{size:15})," Add to cart"]})]}),(0,Pe.jsxs)("div",{className:"mt-12 space-y-3 border-t border-black/10 pt-8 text-sm font-light text-ash","data-testid":"product-specs",children:[k&&(0,Pe.jsxs)("p",{className:"flex items-center gap-3",children:[(0,Pe.jsx)(Hg,{size:16,className:"text-taupe"})," Dimensions: ",(0,Pe.jsx)("span",{"data-testid":"spec-dimensions",className:"text-charcoal",children:k})]}),S&&(0,Pe.jsxs)("p",{className:"flex items-center gap-3",children:[(0,Pe.jsx)(Hg,{size:16,className:"text-taupe"})," Weight: ",(0,Pe.jsx)("span",{"data-testid":"spec-weight",className:"text-charcoal",children:S})]}),E>0&&(0,Pe.jsxs)("p",{className:"flex items-center gap-3",children:[(0,Pe.jsx)(Hg,{size:16,className:"text-taupe"}),"In stock \u2014 ",(0,Pe.jsxs)("span",{"data-testid":"spec-stock",className:"text-charcoal",children:[E.toLocaleString()," available"]})]})]}),(0,Pe.jsxs)("div",{className:"mt-8 space-y-4 border-t border-black/10 pt-8 text-sm font-light text-ash",children:[(0,Pe.jsxs)("p",{className:"flex items-center gap-3",children:[(0,Pe.jsx)(Yg,{size:16,className:"text-taupe"})," Delivered across New York, by hand \u2014 usually within a few days."]}),(0,Pe.jsxs)("p",{className:"flex items-center gap-3",children:[(0,Pe.jsx)(Kg,{size:16,className:"text-taupe"})," Checked piece by piece before it leaves us."]}),(0,Pe.jsxs)("p",{className:"flex items-center gap-3",children:[(0,Pe.jsx)($g,{size:16,className:"text-taupe"})," Changed your mind? Easy local returns."]})]})]})]}),(0,Pe.jsx)(Gg,{slug:r}),(0,Pe.jsx)(zg,{})]})}const ny=Ki("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),ry=Ki("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),ay=[{name:"Manhattan",zips:"10001 \u2013 10282"},{name:"Brooklyn",zips:"11201 \u2013 11256"},{name:"Queens",zips:"11004 \u2013 11697"},{name:"The Bronx",zips:"10451 \u2013 10475"},{name:"Staten Island",zips:"10301 \u2013 10314"}];function oy(){const e=Ie((0,t.useState)({name:"",email:"",message:""}),2),n=e[0],r=e[1],a=Ie((0,t.useState)(!1),2),o=a[0],i=a[1],s=e=>t=>r(n=>c(c({},n),{},{[e]:t.target.value})),l="w-full rounded-md border border-charcoal/20 bg-transparent px-4 py-3 text-sm outline-none placeholder:text-ash/60 focus:border-charcoal";return(0,Pe.jsxs)("main",{"data-testid":"contact-page",className:"pt-24",children:[(0,Pe.jsxs)("div",{className:"mx-auto grid max-w-[1600px] grid-cols-1 gap-16 px-6 py-24 sm:px-10 lg:grid-cols-12",children:[(0,Pe.jsx)("div",{className:"lg:col-span-12",children:(0,Pe.jsx)(Zg,{})}),(0,Pe.jsxs)(wm.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},className:"lg:col-span-5",children:[(0,Pe.jsx)("p",{className:"mb-4 text-xs uppercase tracking-[0.3em] text-taupe",children:"Contact us"}),(0,Pe.jsx)("h1",{className:"font-serif text-4xl font-light tracking-tighter sm:text-5xl",children:"Talk to a real person"}),(0,Pe.jsx)("p",{className:"mt-8 max-w-md text-base font-light leading-relaxed text-ash",children:"Questions about a piece, a delivery window, or an order \u2014 write to us here. A member of our New York team replies personally."}),(0,Pe.jsxs)("div",{className:"mt-12 space-y-4 text-sm font-light text-ash",children:[(0,Pe.jsxs)("p",{className:"flex items-center gap-3",children:[(0,Pe.jsx)(Lm,{size:16,className:"text-taupe"})," [email protected]"]}),(0,Pe.jsxs)("p",{className:"flex items-center gap-3",children:[(0,Pe.jsx)(ny,{size:16,className:"text-taupe"})," New York City \u2014 delivery across the five boroughs"]})]}),(0,Pe.jsxs)("div",{className:"mt-14","data-testid":"delivery-zone",children:[(0,Pe.jsx)("h2",{className:"font-serif text-2xl font-light tracking-tight",children:"Where we deliver"}),(0,Pe.jsx)("p",{className:"mt-3 max-w-md text-sm font-light leading-relaxed text-ash",children:"Every order is packed, carried and placed by our own team \u2014 which is why we serve New York City only, for now. Checkout accepts these ZIP codes:"}),(0,Pe.jsx)("div",{className:"mt-8 space-y-0",children:ay.map(e=>(0,Pe.jsxs)("div",{"data-testid":"borough-".concat(e.name.toLowerCase().replace(/[^a-z]+/g,"-")),className:"flex items-center justify-between border-t border-charcoal/10 py-4 last:border-b",children:[(0,Pe.jsxs)("span",{className:"flex items-center gap-3 text-sm",children:[(0,Pe.jsx)(ry,{size:14,className:"text-moss"}),e.name]}),(0,Pe.jsxs)("span",{className:"text-xs uppercase tracking-[0.15em] text-ash",children:["ZIP ",e.zips]})]},e.name))}),(0,Pe.jsx)("p",{className:"mt-6 max-w-md text-xs font-light leading-relaxed text-ash",children:"Just outside the city? Enter your ZIP at checkout and leave your email \u2014 we'll write the day we reach you."})]})]}),(0,Pe.jsx)(wm.div,{initial:{opacity:0,y:30}
2,animate:{opacity:1,y:0},transition:{delay:.15,duration:.8},className:"lg:col-span-7",children:(0,Pe.jsxs)("div",{className:"space-y-4 rounded-md border border-charcoal/10 bg-sand/50 p-8 sm:p-12",children:[(0,Pe.jsx)("input",{"data-testid":"contact-name",placeholder:"Your name",value:n.name,onChange:s("name"),className:l}),(0,Pe.jsx)("input",{"data-testid":"contact-email",type:"email",placeholder:"Your email",value:n.email,onChange:s("email"),className:l}),(0,Pe.jsx)("textarea",{"data-testid":"contact-message",placeholder:"How can we help?",rows:6,value:n.message,onChange:s("message"),className:l}),(0,Pe.jsxs)("button",{"data-testid":"contact-submit",onClick:async()=>{if(n.name&&n.email&&n.message){i(!0);try{await Mi.post("/contact",n),Ur.success("Message sent \u2014 we'll get back to you soon."),r({name:"",email:"",message:""})}catch(e){Ur.error("Could not send your message. Please try again.")}finally{i(!1)}}else Ur.error("Please fill in all three fields.")},disabled:o,className:"flex items-center gap-3 rounded-full bg-charcoal px-8 py-4 text-xs uppercase tracking-[0.2em] text-bone transition-colors duration-300 hover:bg-moss disabled:opacity-60",children:[(0,Pe.jsx)(Mm,{size:14})," ",o?"Sending...":"Send message"]})]})})]}),(0,Pe.jsx)(zg,{})]})}const iy=Ki("credit-card",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]),sy=Ki("warehouse",[["path",{d:"M18 21V10a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v11",key:"pb2vm6"}],["path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 1.132-1.803l7.95-3.974a2 2 0 0 1 1.837 0l7.948 3.974A2 2 0 0 1 22 8z",key:"doq5xv"}],["path",{d:"M6 13h12",key:"yf64js"}],["path",{d:"M6 17h12",key:"1jwigz"}]]),ly=Ki("package-search",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]),cy=[{key:"paid",label:"Payment confirmed",icon:iy},{key:"sent_to_cj",label:"Sent to our fulfilment partner",icon:sy},{key:"shipped",label:"On its way",icon:Yg}];function uy(){var e;const n=Ie((0,t.useState)(""),2),r=n[0],a=n[1],o=Ie((0,t.useState)(""),2),i=o[0],s=o[1],l=Ie((0,t.useState)(null),2),c=l[0],u=l[1],d=Ie((0,t.useState)(""),2),h=d[0],p=d[1],f=Ie((0,t.useState)(!1),2),m=f[0],g=f[1],y="w-full rounded-md border border-charcoal/20 bg-transparent px-4 py-3 text-sm outline-none placeholder:text-ash/60 focus:border-charcoal";return(0,Pe.jsxs)("main",{"data-testid":"track-order-page",className:"pt-24",children:[(0,Pe.jsxs)("div",{className:"mx-auto max-w-[900px] px-6 py-24 sm:px-10",children:[(0,Pe.jsx)(Zg,{}),(0,Pe.jsxs)(wm.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},children:[(0,Pe.jsx)("p",{className:"mb-4 text-xs uppercase tracking-[0.3em] text-taupe",children:"Track my order"}),(0,Pe.jsx)("h1",{className:"font-serif text-4xl font-light tracking-tighter sm:text-5xl",children:"Where is my order?"}),(0,Pe.jsx)("p",{className:"mt-6 max-w-md text-base font-light leading-relaxed text-ash",children:"Enter your order number (it starts with SONY-) and the email you used at checkout."}),(0,Pe.jsxs)("div",{className:"mt-10 grid grid-cols-1 gap-4 sm:grid-cols-2",children:[(0,Pe.jsx)("input",{"data-testid":"track-order-id",placeholder:"Order number \u2014 e.g. SONY-AB12CD34",value:r,onChange:e=>a(e.target.value),className:y}),(0,Pe.jsx)("input",{"data-testid":"track-email",type:"email",placeholder:"Email used at checkout",value:i,onChange:e=>s(e.target.value),className:y})]}),(0,Pe.jsxs)("button",{"data-testid":"track-submit",onClick:async()=>{g(!0),p(""),u(null);try{const e=await Mi.get("/orders/track",{params:{order_id:r,email:i}});u(e.data)}catch(qy){var e,t;p((null===(e=qy.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"We couldn't find that order. Check the number and email.")}finally{g(!1)}},disabled:m||!r||!i,className:"mt-6 flex items-center gap-3 rounded-full bg-charcoal px-8 py-4 text-xs uppercase tracking-[0.2em] text-bone transition-colors duration-300 hover:bg-moss disabled:opacity-60",children:[(0,Pe.jsx)(ly,{size:15})," ",m?"Looking it up...":"Track order"]}),h&&(0,Pe.jsx)("p",{"data-testid":"track-error",className:"mt-6 text-sm text-moss",children:h})]}),c&&(0,Pe.jsxs)(wm.div,{"data-testid":"track-result",initial:{opacity:0,y:24}
2,animate:{opacity:1,y:0},transition:{duration:.7},className:"mt-16 rounded-md border border-charcoal/10 bg-sand/40 p-8 sm:p-12",children:[(0,Pe.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-4",children:[(0,Pe.jsxs)("h2",{className:"font-serif text-2xl tracking-tight",children:["Order ",c.order_id]}),(0,Pe.jsx)("span",{className:"text-sm text-ash",children:Cm(c.amount)})]}),(0,Pe.jsx)("div",{className:"mt-10 space-y-0",children:cy.map((e,t)=>{const n=t<=(e=>{var t,n;return e?"paid"!==e.payment_status?-1:null!==(t=e.tracking)&&void 0!==t&&t.number||null!==(n=e.tracking)&&void 0!==n&&n.status?2:"sent_to_cj"===e.fulfillment?1:0:-1})(c),r=e.icon;return(0,Pe.jsxs)("div",{"data-testid":"track-step-".concat(e.key),className:"flex items-center gap-5 py-4",children:[(0,Pe.jsx)("span",{className:"flex h-10 w-10 items-center justify-center rounded-full border ".concat(n?"border-moss bg-moss text-bone":"border-charcoal/20 text-ash"),children:n?(0,Pe.jsx)(ry,{size:16}):(0,Pe.jsx)(r,{size:16})}),(0,Pe.jsx)("p",{className:"text-sm ".concat(n?"text-charcoal":"text-ash"),children:e.label})]},e.key)})}),"paid"!==c.payment_status&&(0,Pe.jsx)("p",{className:"mt-6 text-sm font-light text-ash",children:"Payment hasn't been confirmed for this order yet."}),(null===(e=c.tracking)||void 0===e?void 0:e.number)&&(0,Pe.jsxs)("p",{"data-testid":"tracking-number",className:"mt-6 text-sm text-charcoal",children:["Tracking: ",(0,Pe.jsx)("span",{className:"font-medium",children:c.tracking.number}),c.tracking.carrier?" via ".concat(c.tracking.carrier):""]}),(0,Pe.jsxs)("div",{className:"mt-10 border-t border-charcoal/10 pt-8",children:[(0,Pe.jsx)("p",{className:"mb-4 text-xs uppercase tracking-[0.2em] text-ash",children:"In this order"}),(0,Pe.jsx)("ul",{className:"space-y-2 text-sm font-light",children:c.items.map((e,t)=>(0,Pe.jsxs)("li",{className:"flex justify-between gap-4",children:[(0,Pe.jsxs)("span",{children:[e.name,e.variant?" \u2014 ".concat(e.variant):""," \xd7 ",e.qty]}),(0,Pe.jsx)("span",{className:"text-ash",children:Cm(e.price*e.qty)})]},t))})]})]})]}),(0,Pe.jsx)(zg,{})]})}const dy=Ki("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]),hy=Ki("smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]),py=[{key:"signin",label:"Sign in",icon:dy},{key:"signup",label:"Create account",icon:Lm},{key:"otp",label:"Mobile OTP",icon:hy}],fy="w-full rounded-md border border-charcoal/20 bg-transparent px-4 py-3 text-sm outline-none placeholder:text-ash/60 focus:border-charcoal";function my(){const e=zi().setUser,n=nn(),r=Ie((0,t.useState)("signin"),2),a=r[0],o=r[1],i=Ie((0,t.useState)(""),2),s=i[0],l=i[1],u=Ie((0,t.useState)(""),2),d=u[0],h=u[1],p=Ie((0,t.useState)(!1),2),f=p[0],m=p[1],g=Ie((0,t.useState)(null),2),y=g[0],v=g[1],b=Ie((0,t.useState)({name:"",email:"",mobile:"",password:"",identifier:"",code:""}),2),x=b[0],w=b[1],k=Ie((0,t.useState)(!1),2),S=k[0],E=k[1],N=e=>t=>w(n=>c(c({},n),{},{[e]:t.target.value})),j=t=>{e(t),n("/")};return(0,Pe.jsxs)("main",{"data-testid":"auth-page",className:"grid min-h-screen grid-cols-1 lg:grid-cols-2",children:[(0,Pe.jsxs)("div",{className:"relative hidden flex-col justify-center bg-charcoal p-12 text-bone lg:flex",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("p",{className:"mb-4 text-xs uppercase tracking-[0.3em] text-bone/50",children:"Members"}),(0,Pe.jsxs)("h1",{className:"font-serif text-5xl font-light leading-tight tracking-tight",children:["Your home,",(0,Pe.jsx)("br",{}),"your account."]}),(0,Pe.jsx)("p",{className:"mt-6 max-w-sm text-sm font-light leading-relaxed text-bone/60",children:"Sign in to track orders, check out faster and keep your gathered pieces in one place."})]}),(0,Pe.jsx)("p",{className:"absolute bottom-12 left-12 text-xs uppercase tracking-[0.2em] text-bone/40",children:"Shop ONline New York \u2014 New York's finest, online"})]}),(0,Pe.jsx)("div",{className:"flex items-center justify-center bg-bone px-6 py-16",children:(0,Pe.jsxs)(wm.div,{initial:{opacity:0,y:24}
2,animate:{opacity:1,y:0},transition:{duration:.7},className:"w-full max-w-md",children:[(0,Pe.jsx)(Zg,{label:"Back to store"}),(0,Pe.jsx)(cr,{to:"/","data-testid":"auth-form-logo",className:"mb-10 mt-6 flex justify-center",children:(0,Pe.jsx)("img",{src:"/logo.webp",alt:"Shop ONline New York",className:"h-16 w-auto mix-blend-multiply sm:h-20"})}),(0,Pe.jsx)("div",{className:"mb-8 grid grid-cols-3 gap-2 rounded-full border border-charcoal/15 p-1","data-testid":"auth-tabs",children:py.map(e=>(0,Pe.jsx)("button",{"data-testid":"tab-".concat(e.key),onClick:()=>(e=>{o(e),l(""),h(""),v(null)})(e.key),className:"rounded-full px-2 py-2.5 text-[11px] uppercase tracking-[0.15em] transition-colors duration-300 ".concat(a!==e.key||y?"text-ash hover:text-charcoal":"bg-charcoal text-bone"),children:e.label},e.key))}),(0,Pe.jsxs)("div",{className:"space-y-4",children:["signup"===a&&!y&&(0,Pe.jsx)("input",{"data-testid":"signup-name",placeholder:"Full name",value:x.name,onChange:N("name"),className:fy}),("signup"===a||y)&&(0,Pe.jsx)("input",{"data-testid":"auth-email",type:"email",placeholder:"Email",value:x.email,onChange:N("email"),className:fy}),"signin"===a&&!y&&(0,Pe.jsx)("input",{"data-testid":"signin-identifier",placeholder:"Email or mobile number",value:x.identifier,onChange:N("identifier"),className:fy}),("signup"===a||"otp"===a)&&!y&&(0,Pe.jsx)("input",{"data-testid":"auth-mobile",placeholder:"Mobile with country code \u2014 +1...",value:x.mobile,onChange:N("mobile"),className:fy}),"otp"===a&&!y&&S&&(0,Pe.jsx)("input",{"data-testid":"otp-code",placeholder:"6-digit code",value:x.code,onChange:N("code"),className:fy}),"otp"===a&&!y&&S&&!x.name&&(0,Pe.jsx)("input",{"data-testid":"otp-name",placeholder:"Your name (first time only)",value:x.name,onChange:N("name"),className:fy}),"otp"===a&&!y&&!S&&!s&&(0,Pe.jsx)("p",{"data-testid":"otp-note",className:"text-xs font-light leading-relaxed text-ash",children:"New here? We'll create your account the first time your number verifies."}),("signin"===a||"signup"===a)&&!y&&(0,Pe.jsx)("input",{"data-testid":"auth-password",type:"password",placeholder:"signup"===a?"Password \u2014 at least 8 characters":"Password",value:x.password,onChange:N("password"),className:fy}),s&&(0,Pe.jsx)("p",{"data-testid":"auth-error",className:"text-sm text-moss",children:s}),d&&(0,Pe.jsx)("p",{"data-testid":"auth-notice",className:"text-sm text-charcoal",children:d}),(0,Pe.jsxs)("button",{"data-testid":"auth-submit",onClick:async()=>{m(!0),l(""),h("");try{if("forgot-password"===y)await Mi.post("/auth/forgot-password",{email:x.email}),h("If that email is registered, a reset link is on its way.");else if("forgot-id"===y)await Mi.post("/auth/forgot-id",{email:x.email}),h("If that email is registered, we've sent your sign-in ID to it.");else if("signin"===a){const e=await Mi.post("/auth/login",{identifier:x.identifier,password:x.password});j(e.data)}else if("signup"===a){const e=await Mi.post("/auth/register",{name:x.name,email:x.email,mobile:x.mobile,password:x.password});j(e.data)}else if("otp"===a)if(S){const e=await Mi.post("/auth/otp/verify",{mobile:x.mobile,code:x.code,name:x.name});j(e.data)}else await Mi.post("/auth/otp/send",{mobile:x.mobile}),E(!0),h("Code sent \u2014 check your messages.")}catch(qy){l(_i(qy))}finally{m(!1)}},disabled:f,className:"group flex w-full items-center justify-center gap-3 rounded-full bg-charcoal py-4 text-xs uppercase tracking-[0.2em] text-bone transition-colors duration-300 hover:bg-moss disabled:opacity-60",children:["forgot-password"===y?"Send reset link":"forgot-id"===y?"Email my sign-in ID":"signin"===a?"Sign in":"signup"===a?"Create my account":S?"Verify & continue":"Send code by SMS",(0,Pe.jsx)(jm,{size:14,className:"transition-transform duration-300 group-hover:translate-x-1"})]}),(0,Pe.jsx)("div",{className:"flex justify-between pt-2 text-xs text-ash",children:y?(0,Pe.jsx)("button",{"data-testid":"back-to-signin",onClick:()=>{v(null),l(""),h("")},className:"transition-colors duration-300 hover:text-charcoal",children:"Back to sign in"}):(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)("button",{"data-testid":"forgot-id-link",onClick:()=>{v("forgot-id"),l(""),h("")},className:"transition-colors duration-300 hover:text-charcoal",children:"Forgot ID?"}),(0,Pe.jsx)("button",{"data-testid":"forgot-password-link",onClick:()=>{v("forgot-password"),l(""),h("")},className:"transition-colors duration-300 hover:text-charcoal",children:"Forgot password?"})]})})]}),(0,Pe.jsx)("p",{className:"mt-10 text-center text-xs font-light text-ash",children:(0,Pe.jsx)(cr,{to:"/","data-testid":"auth-continue-guest",className:"underline underline-offset-4 hover:text-charcoal",children:"Continue browsing as a guest"})})]})})]})}function gy(){const e=Ie(pr(),1)[0].get("token")||"",n=nn(),r=Ie((0,t.useState)(""),2),a=r[0],o=r[1],i=Ie((0,t.useState)(""),2),s=i[0],l=i[1],c=Ie((0,t.useState)(""),2),u=c[0],d=c[1],h=Ie((0,t.useState)(!1),2),p=h[0],f=h[1];return(0,Pe.jsx)("main",{"data-testid":"reset-password-page",className:"flex min-h-screen flex-col items-center justify-center bg-bone px-6",children:(0,Pe.jsxs)(wm.div,{initial:{opacity:0,y:24}
2,animate:{opacity:1,y:0},transition:{duration:.7},className:"w-full max-w-md",children:[(0,Pe.jsx)(Zg,{}),(0,Pe.jsx)(cr,{to:"/",className:"mb-10 flex justify-center",children:(0,Pe.jsx)("img",{src:"/logo.webp",alt:"Shop ONline New York",className:"h-16 w-auto mix-blend-multiply"})}),(0,Pe.jsx)("h1",{className:"text-center font-serif text-4xl font-light tracking-tight",children:"Choose a new password"}),(0,Pe.jsxs)("div",{className:"mt-10 space-y-4",children:[(0,Pe.jsx)("input",{"data-testid":"reset-password-input",type:"password",placeholder:"New password \u2014 at least 8 characters",value:a,onChange:e=>o(e.target.value),className:"w-full rounded-md border border-charcoal/20 bg-transparent px-4 py-3 text-sm outline-none placeholder:text-ash/60 focus:border-charcoal"}),s&&(0,Pe.jsx)("p",{"data-testid":"reset-error",className:"text-sm text-moss",children:s}),u&&(0,Pe.jsx)("p",{"data-testid":"reset-success",className:"text-sm text-charcoal",children:u}),(0,Pe.jsx)("button",{"data-testid":"reset-submit",onClick:async()=>{f(!0),l("");try{await Mi.post("/auth/reset-password",{token:e,password:a}),d("Password updated. You can sign in now."),setTimeout(()=>n("/auth"),2e3)}catch(qy){l(_i(qy))}finally{f(!1)}},disabled:p||!e,className:"w-full rounded-full bg-charcoal py-4 text-xs uppercase tracking-[0.2em] text-bone transition-colors duration-300 hover:bg-moss disabled:opacity-60",children:"Update password"})]})]})})}const yy=Ki("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),vy=Ki("life-buoy",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.93 4.93 4.24 4.24",key:"1ymg45"}],["path",{d:"m14.83 9.17 4.24-4.24",key:"1cb5xl"}],["path",{d:"m14.83 14.83 4.24 4.24",key:"q42g0n"}],["path",{d:"m9.17 14.83-4.24 4.24",key:"bqpfvv"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]]),by=Ki("circle-user",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]]),xy=[{key:"orders",label:"My Orders",icon:Hg},{key:"wishlist",label:"Wishlist",icon:Xi},{key:"returns",label:"Returns & Refunds",icon:yy},{key:"support",label:"Service & Support",icon:vy},{key:"profile",label:"Profile",icon:by}],wy="w-full rounded-md border border-charcoal/20 bg-transparent px-4 py-3 text-sm outline-none placeholder:text-ash/60 focus:border-charcoal",ky=e=>{let t=e.children,n=e.tone,r=void 0===n?"sand":n;return(0,Pe.jsx)("span",{className:"rounded-full px-3 py-1 text-[11px] uppercase tracking-[0.15em] ".concat("green"===r?"bg-moss/10 text-charcoal":"bg-sand text-ash"),children:t})};function Sy(){var e;const n=zi().user,r=nn(),a=Ie(pr(),1)[0],o=Ie((0,t.useState)(a.get("tab")||"orders"),2),i=o[0],s=o[1],l=Ie((0,t.useState)(null),2),u=l[0],d=l[1],h=Ie((0,t.useState)({order_id:"",reason:""}),2),p=h[0],f=h[1],m=Ie((0,t.useState)({subject:"",message:""}),2),g=m[0],y=m[1],v=Ie((0,t.useState)(!1),2),b=v[0],x=v[1];(0,t.useEffect)(()=>{null===n&&r("/auth")},[n,r]);const w=()=>Mi.get("/my/overview").then(e=>d(e.data)).catch(()=>{});if((0,t.useEffect)(()=>{n&&w()},[n]),!n||!u)return(0,Pe.jsx)("main",{className:"flex min-h-screen items-center justify-center","data-testid":"account-loading",children:(0,Pe.jsx)("p",{className:"text-sm font-light text-ash",children:"Opening your account..."})});const k=u.orders.filter(e=>"paid"===e.payment_status);return(0,Pe.jsxs)("main",{"data-testid":"account-page",className:"pt-24",children:[(0,Pe.jsxs)("div",{className:"mx-auto max-w-[1400px] px-6 py-16 sm:px-10",children:[(0,Pe.jsx)(Zg,{}),(0,Pe.jsxs)(wm.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.7},children:[(0,Pe.jsx)("p",{className:"mb-3 text-xs uppercase tracking-[0.3em] text-taupe",children:"Members"}),(0,Pe.jsxs)("h1",{className:"font-serif text-4xl font-light tracking-tighter sm:text-5xl",children:["Hello, ",(null===(e=u.user.name)||void 0===e?void 0:e.split(" ")[0])||"friend","."]}),(0,Pe.jsxs)("p",{className:"mt-4 text-sm font-light text-ash",children:["Member pricing is on: $",u.member_discount.amount," off orders over $",u.member_discount.min_subtotal," \u2014 applied automatically at checkout."]})]}),(0,Pe.jsx)("div",{className:"mt-12 flex flex-wrap gap-2","data-testid":"account-tabs",children:xy.map(e=>(0,Pe.jsxs)("button",{"data-testid":"account-tab-".concat(e.key),onClick:()=>s(e.key),className:"flex items-center gap-2 rounded-full border px-5 py-2.5 text-xs uppercase tracking-[0.15em] transition-colors duration-300 ".concat(i===e.ke
2y?"border-charcoal bg-charcoal text-bone":"border-charcoal/20 text-ash hover:text-charcoal"),children:[(0,Pe.jsx)(e.icon,{size:14})," ",e.label]},e.key))}),(0,Pe.jsxs)("div",{className:"mt-12",children:["orders"===i&&(0,Pe.jsx)("div",{"data-testid":"account-orders",children:0===u.orders.length?(0,Pe.jsxs)("p",{className:"text-sm font-light text-ash",children:["No orders yet \u2014 ",(0,Pe.jsx)(cr,{to:"/shop",className:"underline underline-offset-4",children:"start gathering"}),"."]}):(0,Pe.jsx)("div",{className:"space-y-6",children:u.orders.map(e=>(0,Pe.jsxs)("div",{"data-testid":"order-card-".concat(e.order_id),className:"rounded-md border border-charcoal/10 bg-sand/40 p-6 sm:p-8",children:[(0,Pe.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,Pe.jsx)("p",{className:"font-serif text-xl",children:e.order_id}),(0,Pe.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Pe.jsx)(ky,{tone:"paid"===e.payment_status?"green":"sand",children:e.payment_status}),(0,Pe.jsx)(ky,{children:e.fulfillment.replace(/_/g," ")}),(0,Pe.jsx)("span",{className:"text-sm text-ash",children:Cm(e.amount)})]})]}),(0,Pe.jsx)("ul",{className:"mt-4 space-y-1 text-sm font-light text-ash",children:e.items.map((e,t)=>(0,Pe.jsxs)("li",{children:[e.name,e.variant?" \u2014 ".concat(e.variant):""," \xd7 ",e.qty]},t))}),(0,Pe.jsxs)(cr,{to:"/track","data-testid":"order-track-".concat(e.order_id),className:"mt-4 inline-flex items-center gap-2 text-xs uppercase tracking-[0.2em] text-taupe hover:text-charcoal",children:[(0,Pe.jsx)(Yg,{size:13})," Track this order"]})]},e.order_id))})}),"wishlist"===i&&(0,Pe.jsx)("div",{"data-testid":"account-wishlist",children:0===u.wishlist.length?(0,Pe.jsx)("p",{className:"text-sm font-light text-ash",children:"Nothing saved yet \u2014 tap the heart on any piece you love."}):(0,Pe.jsx)("div",{className:"grid grid-cols-2 gap-6 md:grid-cols-4 md:gap-10",children:u.wishlist.map(e=>(0,Pe.jsx)(Tg,{product:e,ratio:"aspect-[4/5]"},e.slug))})}),"returns"===i&&(0,Pe.jsxs)("div",{"data-testid":"account-returns",className:"grid grid-cols-1 gap-12 lg:grid-cols-2",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("h2",{className:"font-serif text-2xl font-light",children:"Request a return"}),(0,Pe.jsx)("p",{className:"mt-3 text-sm font-light text-ash",children:"Pick one of your paid orders \u2014 refunds are reviewed within two working days and paid back to your original payment method."}),(0,Pe.jsxs)("div",{className:"mt-6 space-y-4",children:[(0,Pe.jsxs)("select",{"data-testid":"return-order-select",value:p.order_id,onChange:e=>f(t=>c(c({},t),{},{order_id:e.target.value})),className:wy,children:[(0,Pe.jsx)("option",{value:"",children:"Choose an order\u2026"}),k.map(e=>(0,Pe.jsxs)("option",{value:e.order_id,children:[e.order_id," \u2014 ",Cm(e.amount)]},e.order_id))]}),(0,Pe.jsx)("textarea",{"data-testid":"return-reason",rows:4,placeholder:"Why are you returning it?",value:p.reason,onChange:e=>f(t=>c(c({},t),{},{reason:e.target.value})),className:wy}),(0,Pe.jsx)("button",{"data-testid":"return-submit",onClick:async()=>{x(!0);try{await Mi.post("/my/returns",p),Ur.success("Return request received \u2014 we'll email you the next steps."),f({order_id:"",reason:""}),w()}catch(qy){Ur.error(_i(qy))}finally{x(!1)}},disabled:b||!p.order_id||!p.reason,className:"rounded-full bg-charcoal px-8 py-4 text-xs uppercase tracking-[0.2em] text-bone transition-colors duration-300 hover:bg-moss disabled:opacity-60",children:"Request return"})]})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("h2",{className:"font-serif text-2xl font-light",children:"Your returns"}),(0,Pe.jsxs)("div",{className:"mt-6 space-y-4",children:[0===u.returns.length&&(0,Pe.jsx)("p",{className:"text-sm font-light text-ash",children:"No returns requested."}),u.returns.map(e=>(0,Pe.jsxs)("div",{"data-testid":"return-card-".concat(e.return_id),className:"rounded-md border border-charcoal/10 p-5",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Pe.jsx)("p",{className:"font-medium",children:e.return_id}),(0,Pe.jsx)(ky,{children:e.status})]}),(0,Pe.jsxs)("p",{className:"mt-2 text-sm font-light text-ash",children:["Order ",e.order_id," \xb7 refund ",e.refund_status.replace(/_/g," ")
2]}),(0,Pe.jsx)("p",{className:"mt-1 text-sm font-light text-ash",children:e.reason})]},e.return_id))]})]})]}),"support"===i&&(0,Pe.jsxs)("div",{"data-testid":"account-support",className:"grid grid-cols-1 gap-12 lg:grid-cols-2",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("h2",{className:"font-serif text-2xl font-light",children:"Account support"}),(0,Pe.jsx)("p",{className:"mt-3 text-sm font-light text-ash",children:"Order help, delivery changes, product questions \u2014 we reply by email, usually same day."}),(0,Pe.jsxs)("div",{className:"mt-6 space-y-4",children:[(0,Pe.jsx)("input",{"data-testid":"ticket-subject",placeholder:"Subject",value:g.subject,onChange:e=>y(t=>c(c({},t),{},{subject:e.target.value})),className:wy}),(0,Pe.jsx)("textarea",{"data-testid":"ticket-message",rows:5,placeholder:"Tell us what you need",value:g.message,onChange:e=>y(t=>c(c({},t),{},{message:e.target.value})),className:wy}),(0,Pe.jsx)("button",{"data-testid":"ticket-submit",onClick:async()=>{x(!0);try{await Mi.post("/my/support",g),Ur.success("Support request sent \u2014 our team will reply by email."),y({subject:"",message:""}),w()}catch(qy){Ur.error(_i(qy))}finally{x(!1)}},disabled:b||!g.subject||!g.message,className:"rounded-full bg-charcoal px-8 py-4 text-xs uppercase tracking-[0.2em] text-bone transition-colors duration-300 hover:bg-moss disabled:opacity-60",children:"Send to support"})]})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("h2",{className:"font-serif text-2xl font-light",children:"Your requests"}),(0,Pe.jsxs)("div",{className:"mt-6 space-y-4",children:[0===u.tickets.length&&(0,Pe.jsx)("p",{className:"text-sm font-light text-ash",children:"No support requests yet."}),u.tickets.map(e=>(0,Pe.jsxs)("div",{"data-testid":"ticket-card-".concat(e.ticket_id),className:"rounded-md border border-charcoal/10 p-5",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Pe.jsx)("p",{className:"font-medium",children:e.subject}),(0,Pe.jsx)(ky,{children:e.status})]}),(0,Pe.jsxs)("p",{className:"mt-2 text-sm font-light text-ash",children:[e.ticket_id," \xb7 ",e.message]})]},e.ticket_id))]})]})]}),"profile"===i&&(0,Pe.jsxs)("div",{"data-testid":"account-profile",className:"max-w-lg",children:[(0,Pe.jsx)("h2",{className:"font-serif text-2xl font-light",children:"Profile"}),(0,Pe.jsxs)("dl",{className:"mt-6 space-y-4 text-sm",children:[(0,Pe.jsxs)("div",{className:"flex justify-between border-b border-charcoal/10 pb-3",children:[(0,Pe.jsx)("dt",{className:"text-ash",children:"Name"}),(0,Pe.jsx)("dd",{"data-testid":"profile-name",children:u.user.name})]}),(0,Pe.jsxs)("div",{className:"flex justify-between border-b border-charcoal/10 pb-3",children:[(0,Pe.jsx)("dt",{className:"text-ash",children:"Email"}),(0,Pe.jsx)("dd",{"data-testid":"profile-email",children:u.user.email||"\u2014"})]}),(0,Pe.jsxs)("div",{className:"flex justify-between border-b border-charcoal/10 pb-3",children:[(0,Pe.jsx)("dt",{className:"text-ash",children:"Mobile"}),(0,Pe.jsx)("dd",{"data-testid":"profile-mobile",children:u.user.mobile||"\u2014"})]})]}),u.user.default_shipping&&(0,Pe.jsxs)("div",{className:"mt-8",children:[(0,Pe.jsx)("h3",{className:"text-xs uppercase tracking-[0.2em] text-ash",children:"Saved delivery address"}),(0,Pe.jsxs)("p",{"data-testid":"profile-address",className:"mt-3 text-sm font-light",children:[u.user.default_shipping.address,", ",u.user.default_shipping.city," ",u.user.default_shipping.zip]}),(0,Pe.jsx)("p",{className:"mt-2 text-xs font-light text-ash",children:"This address prefills your checkout \u2014 update it by placing an order with new details."})]})]})]})]}),(0,Pe.jsx)(zg,{})]})}const Ey=Ki("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]),Ny=Ki("inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]),jy=Ki("message-square",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]),Cy=Ki("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]),Ty=Ki("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),Py="https://shoponlinenewyork.com/api",Ay=[{key:"overview",label:"Overview",icon:Ey},{key:"orders",label:"Orders",icon:Hg},{key:"returns",label:"Returns & Refunds",icon:yy},{key:"leads",label:"Lead Inbox",icon:Ny},{key:"heroes",label:"Hero Products",icon:Xg},{key:"reviews",label:"Reviews",icon:jy},{key:"payments",label:"Payments",icon:iy,ownerOnly:!0},{key:"team",label:"Team",icon:Cy,ownerOnly:!0}],Ry=["received","pending","shipped","delivered"],Oy=e=>{let t=e.children,n=e.className,r=void 0===n?"":n;return(0,Pe.jsx)("div",{className:"rounded-md border border-charcoal/10 bg-sand/40 p-6 ".concat(r),children:t})};function Fy(){var e;const n=zi().user,r=nn(),a=Ie((0,t.useState)("overview"),2),o=a[0],i=a[1],s=Ie((0,t.useState)(null),2),l=s[0],u=s[1],d=Ie((0,t.useState)([]),2),h=d[0],p=d[1],f=Ie((0,t.useState)(""),2),m=f[0],g=f[1],y=Ie((0,t.useState)([]),2),v=y[0],b=y[1],x=Ie((0,t.useState)(null),2),w=x[0],k=x[1],S=Ie((0,t.useState)(""),2),E=S[0],N=S[1],j=Ie((0,t.useState)([]),2),C=j[0],T=j[1],P=Ie((0,t.useState)({}),2),A=P[0],R=P[1],O=Ie((0,t.useState)([]),2),F=O[0],L=O[1],D=Ie((0,t.useState)({name:"",email:"",password:"",role:"staff_view"}),2),M=D[0],_=D[1],I=Ie((0,t.useState)([]),2),z=I[0],B=I[1],U=Ie((0,t.useState)(null),2),V=U[0],W=U[1],q=Ie((0,t.useState)(!1),2),H=q[0],Y=q[1],K="admin"===(null===n||void 0===n?void 0:n.role),$="admin"===(null===n||void 0===n?void 0:n.role)||"staff_edit"===(null===n||void 0===n?void 0:n.role);(0,t.useEffect)(()=>{null===n&&r("/auth"),n&&!["admin","staff_edit","staff_view"].includes(n.role)&&r("/")},[n,r]);const X=()=>Mi.get("/admin/overview").then(e=>u(e.data)).catch(e=>Ur.error(_i(e))),Q=()=>Mi.get("/admin/orders",{params:m?{delivery_status:m}:{}}).then(e=>p(e.data)).catch(()=>{}),G=()=>Mi.get("/admin/returns").then(e=>b(e.data)).catch(()=>{}),J=e=>Mi.get("/admin/products",{params:e?{q:e}:{}}).then(e=>T(e.data)).catch(()=>{}),Z=()=>Mi.get("/admin/team").then(e=>L(e.data)).catch(()=>{}),ee=()=>Mi.get("/admin/reviews").then(e=>B(e.data)).catch(()=>{});if((0,t.useEffect)(()=>{n&&["admin","staff_edit","staff_view"].includes(n.role)&&("overview"===o&&X(),"orders"===o&&Q(),"returns"===o&&G(),"leads"===o&&Mi.get("/admin/leads").then(e=>k(e.data)).catch(()=>{}),"heroes"===o&&J(E),"team"===o&&K&&Z(),"reviews"===o&&ee(),"payments"===o&&K&&Mi.get("/admin/stripe").then(e=>W(e.data)).catch(e=>Ur.error(_i(e))))},[o,n,m]),!n||!["admin","staff_edit","staff_view"].includes(n.role))return null;const te=async(e,t)=>{try{await Mi.patch("/admin/returns/".concat(e),{decision:t,partial_amount:Number(A[e]||0)}),Ur.success("Return ".concat(e,": ").concat(t.replace(/_/g," ")," \u2014 customer emailed")),G()}catch(qy){Ur.error(_i(qy))}},ne=l?Math.max(...l.monthly.map(e=>e.revenue),1):1;return(0,Pe.jsx)("main",{"data-testid":"admin-dashboard",className:"min-h-screen bg-bone pt-24",children:(0,Pe.jsxs)("div",{className:"mx-auto max-w-[1500px] px-6 py-14 sm:px-10",children:[(0,Pe.jsx)(Zg,{label:"Back to store"}),(0,Pe.jsxs)(wm.div,{initial:{opacity:0,y:20}
2,animate:{opacity:1,y:0},transition:{duration:.6},children:[(0,Pe.jsx)("p",{className:"mb-2 text-xs uppercase tracking-[0.3em] text-taupe",children:"Shop ONline New York"}),(0,Pe.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-4",children:[(0,Pe.jsx)("h1",{className:"font-serif text-4xl font-light tracking-tighter",children:"Dashboard"}),K&&(0,Pe.jsxs)("button",{"data-testid":"purge-test-data-button",onClick:async()=>{if(window.confirm("Delete ALL test data (test orders, test customer/staff accounts, test leads, messages, tickets and reviews)? Real customer data is untouched. This cannot be undone.")){Y(!0);try{const e=await Mi.post("/admin/purge-test-data"),t=Object.entries(e.data.deleted).map(e=>{let t=Ie(e,2),n=t[0],r=t[1];return"".concat(n,": ").concat(r)}).join(", ");Ur.success("Test data cleared \u2014 ".concat(t)),X()}catch(qy){Ur.error(_i(qy))}finally{Y(!1)}}},disabled:H,className:"flex items-center gap-2 rounded-full border border-moss/40 px-5 py-2.5 text-xs uppercase tracking-[0.15em] text-moss transition-colors duration-300 hover:bg-moss hover:text-bone disabled:opacity-50",children:[(0,Pe.jsx)(km,{size:14})," ",H?"Clearing...":"Clear test data"]})]})]}),(0,Pe.jsx)("div",{className:"mt-10 flex flex-wrap gap-2","data-testid":"admin-tabs",children:Ay.filter(e=>!e.ownerOnly||K).map(e=>(0,Pe.jsxs)("button",{"data-testid":"admin-tab-".concat(e.key),onClick:()=>i(e.key),className:"flex items-center gap-2 rounded-full border px-5 py-2.5 text-xs uppercase tracking-[0.15em] transition-colors duration-300 ".concat(o===e.key?"border-charcoal bg-charcoal text-bone":"border-charcoal/20 text-ash hover:text-charcoal"),children:[(0,Pe.jsx)(e.icon,{size:14})," ",e.label]},e.key))}),(0,Pe.jsxs)("div",{className:"mt-10",children:["overview"===o&&l&&(0,Pe.jsxs)("div",{"data-testid":"admin-overview",children:[(0,Pe.jsxs)("div",{className:"grid grid-cols-2 gap-4 md:grid-cols-4",children:[(0,Pe.jsxs)(Oy,{children:[(0,Pe.jsx)("p",{className:"text-xs uppercase tracking-[0.2em] text-ash",children:"Monthly turnover"}),(0,Pe.jsx)("p",{"data-testid":"kpi-turnover",className:"mt-2 font-serif text-3xl",children:Cm(l.turnover_this_month)}),(0,Pe.jsxs)("a",{"data-testid":"export-orders-csv",href:"".concat(Py,"/admin/export/orders"),className:"mt-3 inline-flex items-center gap-2 text-[11px] uppercase tracking-[0.15em] text-taupe hover:text-charcoal",children:[(0,Pe.jsx)(Ty,{size:12})," Export orders CSV"]})]}),(0,Pe.jsxs)(Oy,{children:[(0,Pe.jsx)("p",{className:"text-xs uppercase tracking-[0.2em] text-ash",children:"Total revenue"}),(0,Pe.jsx)("p",{"data-testid":"kpi-revenue",className:"mt-2 font-serif text-3xl",children:Cm(l.total_revenue)})]}),(0,Pe.jsxs)(Oy,{children:[(0,Pe.jsx)("p",{className:"text-xs uppercase tracking-[0.2em] text-ash",children:"Paid orders"}),(0,Pe.jsx)("p",{"data-testid":"kpi-orders",className:"mt-2 font-serif text-3xl",children:l.orders_paid})]}),(0,Pe.jsxs)(Oy,{children:[(0,Pe.jsx)("p",{className:"text-xs uppercase tracking-[0.2em] text-ash",children:"Open returns"}),(0,Pe.jsx)("p",{"data-testid":"kpi-returns",className:"mt-2 font-serif text-3xl",children:l.open_returns})]})]}),(0,Pe.jsx)("div",{className:"mt-4 grid grid-cols-2 gap-4 md:grid-cols-4",children:Ry.map(e=>(0,Pe.jsxs)(Oy,{children:[(0,Pe.jsx)("p",{className:"text-xs uppercase tracking-[0.2em] text-ash",children:e}),(0,Pe.jsx)("p",{"data-testid":"kpi-stage-".concat(e),className:"mt-2 font-serif text-2xl",children:l.stage_counts[e]||0})]},e))}),(0,Pe.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-4 lg:grid-cols-2",children:[(0,Pe.jsxs)(Oy,{children:[(0,Pe.jsx)("p",{className:"mb-6 text-xs uppercase tracking-[0.2em] text-ash",children:"Turnover \u2014 last 6 months"}),(0,Pe.jsx)("div",{className:"flex h-44 items-end gap-4","data-testid":"monthly-chart",children:l.monthly.map(e=>(0,Pe.jsxs)("div",{className:"flex flex-1 flex-col items-center gap-2",children:[(0,Pe.jsx)("span",{className:"text-xs text-ash",children:e.revenue?Cm(e.revenue):"\u2014"}),(0,Pe.jsx)("div",{className:"w-full rounded-sm bg-charcoal/85",style:{height:"".concat(Math.max(e.revenue/ne*100,2),"%")}}),(0,Pe.jsxs)("span",{className:"text-[10px] uppercase tracking-widest text-ash",children:[e.month.slice(5),"/",e.month.slice(2,4)]})]},e.month))})]}),(0,Pe.jsxs)(Oy,{children:[(0,Pe.jsx)("p",{className:"mb-6 text-xs uppercase tracking-[0.2em] text-ash",children:"Best sellers by revenue"}),(0,Pe.jsxs)("div",{className:"space-y-3",children:[0===l.top_products.length&&(0,Pe.jsx)("p",{className:"text-sm font-light text-ash",children:"No sales yet."}),l.top_products.map((e,t)=>(0,Pe.jsxs)("div",{"data-testid":"top-product-".concat(t),className:"flex items-center justify-between gap-4 border-b border-charcoal/10 pb-3 text-sm last:border-0",children:[(0,Pe.jsxs)("span",{className:"truncate font-light",children:[t+1,". ",e.name]}),(0,Pe.jsxs)("span",{className:"whitespace-nowrap text-ash",children:[e.qty," sold \xb7 ",Cm(e.revenue)]})]},e.name))]}),(0,Pe.jsxs)("div",{className:"mt-6 flex gap-6 border-t border-charcoal/10 pt-4 text-xs uppercase tracking-[0.15em] text-ash",children:[(0,Pe.jsxs)("span",{"data-testid":"kpi-leads",children:["Leads: ",l.leads]}),(0,Pe.jsxs)("span",{"data-testid":"kpi-messages",children:["Messages: ",l.unread_messages]}),(0,Pe.jsxs)("span",{"data-testid":"kpi-tickets",children:["Tickets: ",l.open_tickets]}),(0,Pe.jsxs)("span",{"data-testid":"kpi-live",children:["Live products: ",l.products_live]})]})]})]})]}),"payments"===o&&(0,Pe.jsx)("div",{"data-testid":"admin-payments",children:V?(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)("div",{className:"mb-6 flex items-center gap-3",children:(0,Pe.jsxs)("span",{"data-testid":"stripe-mode-badge",className:"rounded-full px-4 py-1.5 text-[11px] uppercase tracking-[0.15em] ".concat("live"===V.mode?"bg-charcoal text-bone":"border border-charcoal/30 text-ash"),children:["Stripe \xb7 ","live"===V.mode?"Live mode \u2014 real money":"Test mode"]})}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[(0,Pe.jsxs)(Oy,{children:[(0,Pe.jsx)("p",{className:"text-xs uppercase tracking-[0.2em] text-ash",children:"Available balance"}),(0,Pe.jsx)("p",{"data-testid":"stripe-available",className:"mt-2 font-serif text-3xl",children:Cm(V.available)}),(0,Pe.jsx)("p",{className:"mt-2 text-xs font-light text-ash",children:"Ready to pay out to your bank"})]}),(0,Pe.jsxs)(Oy,{children:[(0,Pe.jsx)("p",{className:"text-xs uppercase tracking-[0.2em] text-ash",children:"Pending balance"}),(0,Pe.jsx)("p",{"data-testid":"stripe-pending",className:"mt-2 font-serif text-3xl",children:Cm(V.pending)}),(0,Pe.jsx)("p",{className:"mt-2 text-xs font-light text-ash",children:"Recent charges still settling"})]})]}),(0,Pe.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-4 lg:grid-cols-2",children:[(0,Pe.jsxs)(Oy,{children:[(0,Pe.jsx)("p",{className:"mb-4 text-xs uppercase tracking-[0.2em] text-ash",children:"Recent charges"}),(0,Pe.jsxs)("div",{className:"space-y-3",children:[0===V.charges.length&&(0,Pe.jsx)("p",{className:"text-sm font-light text-ash",children:"No charges yet \u2014 they'll appear here the moment a customer pays."}),V.charges.map(e=>(0,Pe.jsxs)("div",{"data-testid":"stripe-charge-".concat(e.id),className:"flex items-center justify-between gap-4 border-b border-charcoal/10 pb-3 text-sm last:border-0",children:[(0,Pe.jsxs)("div",{className:"min-w-0",children:[(0,Pe.jsx)("p",{className:"truncate font-light",children:e.email||e.id}),(0,Pe.jsx)("p",{className:"text-xs text-ash",children:e.created})]}),(0,Pe.jsxs)("div",{className:"text-right",children:[(0,Pe.jsx)("p",{className:"whitespace-nowrap",children:Cm(e.amount)}),(0,Pe.jsx)("p",{className:"text-[11px] uppercase tracking-widest ".concat(e.refunded?"text-moss":"text-ash"),children:e.refunded?"refunded":e.status})]})]},e.id))]})]}),(0,Pe.jsxs)(Oy,{children:[(0,Pe.jsx)("p",{className:"mb-4 text-xs uppercase tracking-[0.2em] text-ash",children:"Payouts to your bank"}),(0,Pe.jsxs)("div",{className:"space-y-3",children:[0===V.payouts.length&&(0,Pe.jsx)("p",{className:"text-sm font-light text-ash",children:"No payouts yet \u2014 Stripe pays out automatically on your account's schedule (usually every 2 business days)."}),V.payouts.map(e=>(0,Pe.jsxs)("div",{"data-testid":"stripe-payout-".concat(e.id),className:"flex items-center justify-between gap-4 border-b border-charcoal/10 pb-3 text-sm last:border-0",children:[(0,Pe.jsxs)("span",{className:"font-light",children:["Arrives ",e.arrival||"\u2014"]}),(0,Pe.jsxs)("span",{className:"whitespace-nowrap",children:[Cm(e.amount)," ",(0,Pe.jsx)("span",{className:"ml-2 text-[11px] uppercase tracking-widest text-ash",children:e.status})]})]},e.id))]})]})]})]}):(0,Pe.jsx)("p",{className:"text-sm font-light text-ash",children:"Loading your Str
2ipe account\u2026"})}),"orders"===o&&(0,Pe.jsxs)("div",{"data-testid":"admin-orders",children:[(0,Pe.jsxs)("div",{className:"mb-6 flex flex-wrap gap-2",children:[(0,Pe.jsx)("button",{"data-testid":"stage-filter-all",onClick:()=>g(""),className:"rounded-full border px-4 py-2 text-xs uppercase tracking-[0.15em] ".concat(m?"border-charcoal/20 text-ash":"border-charcoal bg-charcoal text-bone"),children:"All"}),Ry.map(e=>(0,Pe.jsx)("button",{"data-testid":"stage-filter-".concat(e),onClick:()=>g(e),className:"rounded-full border px-4 py-2 text-xs uppercase tracking-[0.15em] ".concat(m===e?"border-charcoal bg-charcoal text-bone":"border-charcoal/20 text-ash"),children:e},e))]}),(0,Pe.jsxs)("div",{className:"space-y-4",children:[0===h.length&&(0,Pe.jsx)("p",{className:"text-sm font-light text-ash",children:"No orders here yet."}),h.map(e=>{var t,n,r;return(0,Pe.jsx)(Oy,{"data-testid":"admin-order-".concat(e.order_id),children:(0,Pe.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-4",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)("p",{className:"font-serif text-lg",children:[e.order_id," ",(0,Pe.jsxs)("span",{className:"text-sm text-ash",children:["\xb7 ",Cm(e.amount)," \xb7 ",e.email]})]}),(0,Pe.jsxs)("p",{className:"mt-1 text-xs font-light text-ash",children:[null===(t=e.items)||void 0===t?void 0:t.map(e=>"".concat(e.name," \xd7").concat(e.qty)).join(", ")," \xb7 ",null===(n=e.shipping)||void 0===n?void 0:n.city," ",null===(r=e.shipping)||void 0===r?void 0:r.zip,e.cj_order_id?" \xb7 CJ ".concat(e.cj_order_id):""]})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Pe.jsx)("span",{className:"rounded-full px-3 py-1 text-[11px] uppercase tracking-[0.15em] ".concat("paid"===e.payment_status?"bg-moss/10 text-charcoal":"bg-sand text-ash"),children:e.payment_status}),(0,Pe.jsx)("select",{"data-testid":"order-stage-".concat(e.order_id),value:e.delivery_status||"received",onChange:t=>(async(e,n)=>{try{await Mi.patch("/admin/orders/".concat(e),{delivery_status:n}),Ur.success("".concat(e," \u2192 ").concat(n)),Q()}catch(t){Ur.error(_i(t))}})(e.order_id,t.target.value),disabled:!$,className:"rounded-full border border-charcoal/20 bg-transparent px-4 py-2 text-xs uppercase tracking-[0.15em] outline-none disabled:opacity-50",children:Ry.map(e=>(0,Pe.jsx)("option",{value:e,children:e},e))})]})]})},e.order_id)})]})]}),"returns"===o&&(0,Pe.jsxs)("div",{className:"space-y-4","data-testid":"admin-returns",children:[0===v.length&&(0,Pe.jsx)("p",{className:"text-sm font-light text-ash",children:"No returns raised."}),v.map(e=>(0,Pe.jsx)(Oy,{"data-testid":"admin-return-".concat(e.return_id),children:(0,Pe.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)("p",{className:"font-serif text-lg",children:[e.return_id," ",(0,Pe.jsxs)("span",{className:"text-sm text-ash",children:["\xb7 order ",e.order_id," \xb7 ",Cm(e.order_amount||0)," \xb7 ",e.customer]})]}),(0,Pe.jsxs)("p",{className:"mt-1 text-sm font-light text-ash",children:['"',e.reason,'"']}),(0,Pe.jsxs)("p",{className:"mt-1 text-xs uppercase tracking-[0.15em] text-ash",children:["status: ",e.status.replace(/_/g," ")," \xb7 refund: ",e.refund_status.replace(/_/g," "),e.partial_amount?" (".concat(Cm(e.partial_amount),")"):""]})]}),"requested"===e.status&&$&&(0,Pe.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,Pe.jsx)("button",{"data-testid":"return-accept-".concat(e.return_id),onClick:()=>te(e.return_id,"accepted"),className:"rounded-full bg-charcoal px-4 py-2 text-xs uppercase tracking-[0.15em] text-bone hover:bg-moss",children:"Accept full"}),(0,Pe.jsx)("input",{"data-testid":"return-partial-".concat(e.return_id),placeholder:"$ partial",value:A[e.return_id]||"",onChange:t=>R(n=>c(c({},n),{},{[e.return_id]:t.target.value})),className:"w-24 rounded-full border border-charcoal/20 bg-transparent px-3 py-2 text-xs outline-none"}),(0,Pe.jsx)("button",{"data-testid":"return-partial-btn-".concat(e.return_id),onClick:()=>te(e.return_id,"partially_accepted"),className:"rounded-full border border-charcoal/20 px-4 py-2 text-xs uppercase tracking-[0.15em] hover:bg-charcoal hover:text-bone",children:"Partial"}),(0,Pe.jsx)("button",{"data-testid":"return-decline-".concat(e.return_id),onClick:()=>te(e.return_id,"declined"),className:"rounded-full border border-moss/40 px-4 py-2 text-xs uppercase tracking-[0.15em] text-moss hover:bg-moss hover:text-bone",children:"Decline"})]})]})},e.return_id))]}),"leads"===o&&w&&(0,Pe.jsxs)("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-3","data-testid":"admin-leads",children:[(0,Pe.jsxs)(Oy,{children:[(0,Pe.jsxs)("div",{className:"mb-4 flex items-center justify-between",children:[(0,Pe.jsxs)("p",{className:"text-xs uppercase tracking-[0.2em] text-ash",children:["Expansion leads (",w.expansion_leads.length,")"]}),(0,Pe.jsxs)("a",{"data-testid":"export-leads-csv",href:"".concat(Py,"/admin/export/leads"),className:"inline-flex items-center gap-1 text-[11px] uppercase tracking-[0.15em] text-taupe hover:text-charcoal",children:[(0,Pe.jsx)(Ty,{size:12})," CSV"]})]}),(0,Pe.jsxs)("div",{className:"space-y-3 text-sm font-light",children:[0===w.expansion_leads.length&&(0,Pe.jsx)("p",{className:"text-ash",children:"None yet."}),w.expansion_leads.map(e=>(0,Pe.jsxs)("div",{"data-testid":"lead-".concat(e.email),className:"flex justify-between border-b border-charcoal/10 pb-2 last:border-0",children:[(0,Pe.jsx)("span",{children:e.email}),(0,Pe.jsxs)("span",{className:"text-ash",children:["ZIP ",e.zip]})]},e.email))]})]}),(0,Pe.jsxs)(Oy,{children:[(0,Pe.jsxs)("p",{className:"mb-4 text-xs uppercase tracking-[0.2em] text-ash",children:["Contact messages (",w.contact_messages.length,")"]}),(0,Pe.jsxs)("div",{className:"space-y-3 text-sm font-light",children:[0===w.contact_messages.length&&(0,Pe.jsx)("p",{className:"text-ash",children:"None yet."}),w.contact_messages.map((e,t)=>(0,Pe.jsxs)("div",{className:"border-b border-charcoal/10 pb-2 last:border-0",children:[(0,Pe.jsxs)("p",{children:[e.name," \xb7 ",(0,Pe.jsx)("span",{className:"text-ash",children:e.email})]}),(0,Pe.jsx)("p",{className:"mt-1 text-ash",children:e.message})]},t))]})]}),(0,Pe.jsxs)(Oy,{children:[(0,Pe.jsxs)("p",{className:"mb-4 text-xs uppercase tracking-[0.2em] text-ash",children:["Support tickets (",w.support_tickets.length,")"]}),(0,Pe.jsxs)("div",{className:"space-y-3 text-sm font-light",children:[0===w.support_tickets.length&&(0,Pe.jsx)("p",{className:"text-ash",children:"None yet."}),w.support_tickets.map(e=>(0,Pe.jsxs)("div",{"data-testid":"admin-ticket-".concat(e.ticket_id),className:"border-b border-charcoal/10 pb-2 last:border-0",children:[(0,Pe.jsxs)("p",{children:[e.subject," ",(0,Pe.jsxs)("span",{className:"text-xs uppercase text-ash",children:["\xb7 ",e.status]})]}),(0,Pe.jsx)("p",{className:"mt-1 text-ash",children:e.message})]},e.ticket_id))]})]})]}),"team"===o&&K&&(0,Pe.jsxs)("div",{"data-testid":"admin-team",className:"grid grid-cols-1 gap-4 lg:grid-cols-2",children:[(0,Pe.jsxs)(Oy,{children:[(0,Pe.jsx)("p",{className:"mb-2 text-xs uppercase tracking-[0.2em] text-ash",children:"Add a team member"}),(0,Pe.jsx)("p",{className:"mb-6 text-sm font-light text-ash",children:"Viewers (accountant, CA) see everything but can't change anything. Editors can move orders, decide returns and manage hero products."}),(0,Pe.jsxs)("div",{className:"space-y-4",children:[(0,Pe.jsx)("input",{"data-testid":"member-name",placeholder:"Full name",value:M.name,onChange:e=>_(t=>c(c({},t),{},{name:e.target.value})),className:"w-full rounded-md border border-charcoal/20 bg-transparent px-4 py-3 text-sm outline-none placeholder:text-ash/60 focus:border-charcoal"}),(0,Pe.jsx)("input",{"data-testid":"member-email",type:"email",placeholder:"Email",value:M.email,onChange:e=>_(t=>c(c({},t),{},{email:e.target.value})),className:"w-full rounded-md border border-charcoal/20 bg-transparent px-4 py-3 text-sm outline-none placeholder:text-ash/60 focus:border-charcoal"}),(0,Pe.jsx)("input",{"data-testid":"member-password",type:"password",placeholder:"Temporary password \u2014 8+ characters",value:M.password,onChange:e=>_(t=>c(c({},t),{},{password:e.target.value})),className:"w-full rounded-md border border-charcoal/20 bg-transparent px-4 py-3 text-sm outline-none placeholder:text-ash/60 focus:border-charcoal"}),(0,Pe.jsxs)("select",{"data-testid":"member-role",value:M.role,onChange:e=>_(t=>c(c({},t),{},{role:e.target.value})),className:"w-full rounded-md border border-charcoal/20 bg-transparent px-4 py-3 text-sm outline-none",children:[(0,Pe.jsx)("option",{value:"staff_view",children:"Viewer \u2014 read only"}),(0,Pe.jsx)("option",{value:"staff_edit",children:"Editor \u2014 view & edit"})]}),(0,Pe.jsx)("button",{"data-testid":"member-add",onClick:async()=>{try{await Mi.post("/admin/team",M),Ur.success("".concat(M.name," added as ").concat("staff_edit"===M.role?"editor":"viewer")),_({name:"",email:"",password:"",role:"staff_view"}),Z()}catch(qy){Ur.error(_i(qy))}},disabled:!M.name||!M.email||!M.password,className:"rounded-full bg-charcoal px-8 py-4 text-xs uppercase tracking-[0.2em] text-bone transition-colors duration-300 hover:bg-moss disabled:opacity-60",children:"Add member"})]})]}),(0,Pe.jsxs)(Oy,{children:[(0,Pe.jsx)("p",{className:"mb-6 text-xs uppercase tracking-[0.2em] text-ash",children:"Current team"}),(0,Pe.jsx)("div",{className:"space-y-3",children:F.map(e=>(0,Pe.jsxs)("div",{"data-testid":"team-row-".concat(e.user_id),className:"flex items-center justify-between border-b border-charcoal/10 pb-3 text-sm last:border-0",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)("p",{children:[e.name," ","admin"===e.role&&(0,Pe.jsx)("span",{className:"text-xs text-taupe",children:"(you)"})]}),(0,Pe.jsx)("p",{className:"text-xs font-light text-ash",children:e.email})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Pe.jsx)("span",{className:"rounded-full bg-sand px-3 py-1 text-[11px] uppercase tracking-[0.15em] text-ash",children:"admin"===e.role?"Owner":"staff_edit"===e.role?"Editor":"Viewer"}),"admin"!==e.role&&(0,Pe.jsx)("button",{"data-testid":"team-remove-".concat(e.user_id),onClick:()=>(async(e,t)=>{try{await Mi.delete("/admin/team/".concat(e)),Ur.success("".concat(t," removed")),Z()}catch(qy){Ur.error(_i(qy))}})(e.user_id,e.name),className:"text-xs uppercase tracking-[0.15em] text-moss hover:text-charcoal",children:"Remove"})]})]},e.user_id))})]})]}),"reviews"===o&&(0,Pe.jsxs)("div",{className:"space-y-4","data-testid":"admin-reviews",children:[0===z.length&&(0,Pe.jsx)("p",{className:"text-sm font-light text-ash",children:"No reviews yet."}),z.map(e=>(0,Pe.jsx)(Oy,{"data-testid":"admin-review-".concat(e.product_slug),children:(0,Pe.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)("p",{className:"font-serif text-lg",children:[e.product_name," ",(0,Pe.jsxs)("span",{className:"text-sm text-taupe",children:["\u2605".repeat(e.rating),"\u2606".repeat(5-e.rating)]})]}),(0,Pe.jsxs)("p",{className:"mt-1 text-sm font-light text-ash",children:[e.name," \xb7 ",e.comment||"(no comment)"]}),e.hidden&&(0,Pe.jsx)("p",{className:"mt-1 text-xs uppercase tracking-[0.15em] text-moss",children:"hidden from storefront"})]}),$&&(0,Pe.jsx)("button",{"data-testid":"review-toggle-".concat(e.user_id),onClick:async()=>{try{await Mi.patch("/admin/reviews",{product_slug:e.product_slug,user_id:e.user_id,hidden:!e.hidden}),ee()}catch(qy){Ur.error(_i(qy))}},className:"rounded-full px-4 py-2 text-xs uppercase tracking-[0.15em] transition-colors duration-300 ".concat(e.hidden?"bg-charcoal text-bone hover:bg-moss":"border border-charcoal/20 text-ash hover:text-charcoal"),children:e.hidden?"Show again":"Hide"})]})},e.product_slug+e.user_id))]}),"heroes"===o&&(0,Pe.jsxs)("div",{"data-testid":"admin-heroes",children:[(0,Pe.jsxs)("div",{className:"mb-4 flex flex-wrap items-center justify-between gap-4",children:[(0,Pe.jsx)("p",{className:"max-w-lg text-sm font-light text-ash",children:'The six products marked as heroes appear in the home page "featured" section. Search your catalog and toggle.'}),(0,Pe.jsxs)("div",{className:"text-right",children:[(0,Pe.jsx)("button",{"data-testid":"sync-now-button",onClick:async()=>{try{Ur.info("Re-syncing your CJ catalog \u2014 this takes a few minutes\u2026");const e=await Mi.post("/admin/sync-now");Ur.success("Sync done: ".concat(e.data.total_in_cj," in CJ, ").concat(e.data.new," new, ").concat(e.data.hidden_delisted," delisted"))}catch(qy){Ur.error(_i(qy))}},className:"rounded-full border border-charcoal/20 px-6 py-3 text-xs uppercase tracking-[0.2em] transition-colors duration-300 hover:bg-charcoal hover:text-bone",children:"Re-sync catalog now"}),(null===l||void 0===l?void 0:l.last_refresh)&&(0,Pe.jsxs)("p",{"data-testid":"last-refresh",className:"mt-2 text-xs font-light text-ash",children:["Last auto-refresh: ",null===(e=l.last_refresh.ran_at)||void 0===e?void 0:e.slice(0,10)," \u2014 weekly, automatic"]})]})]}),(0,Pe.jsx)("input",{"data-testid":"hero-search",placeholder:"Search products\u2026",value:E,onChange:e=>{N(e.target.value),J(e.target.value)},className:"mb-6 w-full max-w-md rounded-md border border-charcoal/20 bg-transparent px-4 py-3 text-sm outline-none placeholder:text-ash/60 focus:border-charcoal"}),(0,Pe.jsx)("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2",children:C.map(e=>(0,Pe.jsxs)("div",{"data-testid":"hero-row-".concat(e.slug),className:"flex items-center justify-between gap-4 roun
2ded-md border border-charcoal/10 p-4",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-4",children:[(0,Pe.jsx)("img",{src:e.image,alt:"",className:"h-12 w-12 rounded-sm object-cover"}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("p",{className:"text-sm",children:e.name}),(0,Pe.jsxs)("p",{className:"text-xs text-ash",children:[e.category," \xb7 ",Cm(e.price)]})]})]}),(0,Pe.jsx)("button",{"data-testid":"hero-toggle-".concat(e.slug),onClick:()=>(async(e,t)=>{try{await Mi.patch("/admin/products/".concat(e),{featured:t}),J(E)}catch(qy){Ur.error(_i(qy))}})(e.slug,!e.featured),disabled:!$,className:"rounded-full px-4 py-2 text-xs uppercase tracking-[0.15em] transition-colors duration-300 disabled:opacity-50 ".concat(e.featured?"bg-charcoal text-bone":"border border-charcoal/20 text-ash hover:text-charcoal"),children:e.featured?"Hero \u2713":"Set hero"})]},e.slug))})]})]})]})})}const Ly=Ki("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);function Dy(){const e=Ie(pr(),1)[0].get("session_id"),n=Qr().clear,r=Ie((0,t.useState)({status:"checking",orderId:null}),2),a=r[0],o=r[1],i=(0,t.useRef)(0),s=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{if(!e)return void o({status:"missing",orderId:null});const t=async()=>{i.current+=1;try{const t=await Mi.get("/payments/status/".concat(e));if("paid"===t.data.payment_status)return o({status:"paid",orderId:t.data.order_id}),void(s.current||(s.current=!0,n()))}catch(qy){}i.current<15?setTimeout(t,2e3):o({status:"timeout",orderId:null})};t()},[e]),(0,Pe.jsxs)("main",{"data-testid":"payment-success-page",className:"flex min-h-screen flex-col items-start justify-center px-6 pt-24 sm:px-10",children:["checking"===a.status&&(0,Pe.jsxs)("div",{"data-testid":"payment-checking",className:"flex items-center gap-4",children:[(0,Pe.jsx)(Ly,{className:"animate-spin text-taupe",size:28}),(0,Pe.jsx)("p",{className:"font-serif text-3xl font-light",children:"Confirming your payment..."})]}),"paid"===a.status&&(0,Pe.jsxs)(wm.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},children:[(0,Pe.jsx)("span",{className:"mb-8 flex h-16 w-16 items-center justify-center rounded-full bg-moss text-bone",children:(0,Pe.jsx)(ry,{size:26})}),(0,Pe.jsx)("h1",{className:"font-serif text-4xl font-light tracking-tight sm:text-6xl",children:"Thank you."}),(0,Pe.jsxs)("p",{className:"mt-6 max-w-md text-base font-light leading-relaxed text-ash",children:["Your order ",(0,Pe.jsx)("span",{"data-testid":"order-id",className:"font-medium text-charcoal",children:a.orderId})," is confirmed and paid. We'll be in touch to arrange a hand-delivery time that suits you."]}),(0,Pe.jsx)(cr,{to:"/shop","data-testid":"success-continue-shopping",className:"mt-12 inline-flex rounded-full bg-charcoal px-8 py-4 text-xs uppercase tracking-[0.2em] text-bone transition-colors duration-300 hover:bg-moss",children:"Continue browsing"})]}),("timeout"===a.status||"missing"===a.status)&&(0,Pe.jsxs)("div",{"data-testid":"payment-unconfirmed",children:[(0,Pe.jsx)("h1",{className:"font-serif text-4xl font-light tracking-tight sm:text-5xl",children:"We're still checking."}),(0,Pe.jsx)("p",{className:"mt-6 max-w-md text-base font-light leading-relaxed text-ash",children:"Your payment hasn't confirmed yet \u2014 if the amount was charged, your order is safe and will appear shortly. Nothing is charged twice."}),(0,Pe.jsx)(cr,{to:"/","data-testid":"success-back-home",className:"mt-12 inline-flex rounded-full border border-charcoal/20 px-8 py-4 text-xs uppercase tracking-[0.2em] transition-colors duration-300 hover:bg-charcoal hover:text-bone",children:"Back home"})]})]})}function My(){return(0,Pe.jsx)("main",{"data-testid":"payment-cancel-page",className:"flex min-h-screen flex-col items-start justify-center px-6 pt-24 sm:px-10",children:(0,Pe.jsxs)(wm.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},children:[(0,Pe.jsx)("h1",{className:"font-serif text-4xl font-light tracking-tight sm:text-6xl",children:"No charge made."}),(0,Pe.jsx)("p",{className:"mt-6 max-w-md text-base font-light leading-relaxed text-ash",children:"You left checkout before paying \u2014 your cart is exactly as you left it, whenever you're ready."}),(0,Pe.jsx)("div",{className:"mt-12 flex flex-wrap gap-4",children:(0,Pe.jsx)(cr,{to:"/shop","data-testid":"cancel-back-to-shop",className:"rounded-full bg-charcoal px-8 py-4 text-xs uppercase tracking-[0.2em] text-bone transition-colors duration-300 hover:bg-moss",children:"Back to the shop"})})]})})}const _y=[{q:"Where do you deliver?",a:"We deliver within New York City only \u2014 all five boroughs (Manhattan, Brooklyn, Queens, The Bronx and Staten Island). Every order is packed, carried and placed in your home by our own team. If your ZIP code is outside NYC, leave your email at checkout and we'll notify you when we expand."},{q:"How much is delivery?",a:"Hand-delivery arrangements are confirmed after you order \u2014 our team reaches out to set a time that suits you. Any delivery fee is shown clearly at checkout before you pay; there are never surprise charges after."},{q:"How do I track my order?",a:"Use the Track Order page with your order number (SONY-\u2026) and the email you checked out with. Signed-in members can also see live status under My Account \u2192 My Orders."},{q:"What is member pricing?",a:"Members get $25 off every order over $199, automatically. Just create a free account and sign in before checkout \u2014 the discount appears in your cart."},{q:"Which payment methods do you accept?",a:"Visa, Mastercard, American Express, Apple Pay and Google Pay \u2014 all processed securely by Stripe. We never see or store your card details."},{q:"How do returns work?",a:"You have 30 days from delivery. Sign in, go to My Account \u2192 Returns & Refunds, pick the order and tell us what's wrong \u2014 we reply within 24 hours with return instructions. Refunds go back to your original payment method after a quick warehouse inspection. Full details on the Return Policy page."},{q:"Can I sign in with my phone number?",a:"Yes \u2014 choose Mobile OTP on the sign-in page and we'll text you a one-time code. No password to remember."},{q:"Where do your products come from?",a:"Our catalog is curated from vetted suppliers and fulfilled through CJ Dropshipping, so we can offer great prices for the quality without a warehouse markup."}];function Iy(){const e=Ie((0,t.useState)(0),2),n=e[0],r=e[1];return(0,Pe.jsx)("main",{"data-testid":"help-page",className:"min-h-screen bg-bone px-6 pb-32 pt-32 sm:px-10",children:(0,Pe.jsxs)("div",{className:"mx-auto max-w-3xl",children:[(0,Pe.jsx)(Zg,{label:"Back to store"}),(0,Pe.jsx)("p",{className:"mb-4 mt-10 text-xs uppercase tracking-[0.3em] text-ash",children:"Help @ FAQ"}),(0,Pe.jsx)("h1",{className:"font-serif text-4xl font-light leading-tight tracking-tight text-charcoal sm:text-5xl",children:"Questions, answered."}),(0,Pe.jsxs)("p",{className:"mt-6 max-w-xl text-sm font-light leading-relaxed text-ash",children:["Can't find what you need? Write to us at"," ",(0,Pe.jsx)("a",{href:"mailto:[email protected]",className:"underline underline-offset-4 hover:text-charcoal",children:"[email protected]"})," ","or use the chat bubble on any page \u2014 we reply within 48 hours."]}),(0,Pe.jsx)("div",{className:"mt-14 divide-y divide-charcoal/10 border-y border-charcoal/10","data-testid":"faq-list",children:_y.map((e,t)=>(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)("button",{"data-testid":"faq-q-".concat(t),onClick:()=>r(n===t?-1:t),className:"flex w-full items-center justify-between gap-6 py-6 text-left",children:[(0,Pe.jsx)("span",{className:"font-serif text-lg font-light text-charcoal sm:text-xl",children:e.q}),(0,Pe.jsx)(Em,{size:18,className:"shrink-0 text-ash transition-transform duration-300 ".concat(n===t?"rotate-45":"")})]}),(0,Pe.jsx)(gs,{initial:!1,children:n===t&&(0,Pe.jsx)(wm.div,{initial:{height:0,opacity:0}
2,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},className:"overflow-hidden",children:(0,Pe.jsx)("p",{"data-testid":"faq-a-".concat(t),className:"pb-6 pr-10 text-sm font-light leading-relaxed text-ash",children:e.a})})})]},t))}),(0,Pe.jsxs)("p",{className:"mt-12 text-xs font-light text-ash",children:["Looking for the fine print?"," ",(0,Pe.jsx)(cr,{to:"/return-policy",className:"underline underline-offset-4 hover:text-charcoal",children:"Returns"}),","," ",(0,Pe.jsx)(cr,{to:"/terms",className:"underline underline-offset-4 hover:text-charcoal",children:"Terms"})," and"," ",(0,Pe.jsx)(cr,{to:"/privacy",className:"underline underline-offset-4 hover:text-charcoal",children:"Privacy"}),"."]})]})})}function zy(){const e=Ie((0,t.useState)(""),2),n=e[0],r=e[1],a=Ie((0,t.useState)(!1),2),o=a[0],i=a[1],s=Ie((0,t.useState)(!1),2),l=s[0],c=s[1];return(0,Pe.jsxs)("section",{"data-testid":"privacy-optout-card",className:"rounded-2xl border border-charcoal/15 bg-charcoal/[0.03] p-8",children:[(0,Pe.jsx)("h2",{className:"font-serif text-xl font-light text-charcoal",children:"Do not sell or share my personal information"}),o?(0,Pe.jsxs)("p",{"data-testid":"privacy-optout-success",className:"mt-4 text-sm font-light leading-relaxed text-ash",children:["Recorded. Your choice has been saved against ",(0,Pe.jsx)("span",{className:"text-charcoal",children:n})," \u2014 we will not sell or share personal information associated with this email for targeted advertising. This also applies going forward."]}):(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)("p",{className:"mt-4 text-sm font-light leading-relaxed text-ash",children:"Enter the email you shop with and we will record your choice to opt out of the sale or sharing of your personal information for targeted advertising. You can also email [email protected] or call 385-380-4446."}),(0,Pe.jsxs)("div",{className:"mt-6 flex flex-col gap-3 sm:flex-row",children:[(0,Pe.jsx)("input",{"data-testid":"privacy-optout-email",type:"email",value:n,onChange:e=>r(e.target.value),placeholder:"Your email address",className:"w-full rounded-full border border-charcoal/20 bg-transparent px-5 py-3 text-sm font-light outline-none transition-colors focus:border-charcoal"}),(0,Pe.jsx)("button",{"data-testid":"privacy-optout-submit",onClick:async()=>{if(/^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(n.trim())){c(!0);try{await Mi.post("/privacy/opt-out",{email:n.trim()}),i(!0)}catch(e){Ur.error("Something went wrong \u2014 please email [email protected]")}finally{c(!1)}}else Ur.error("Please enter a valid email address")},disabled:l,className:"shrink-0 rounded-full bg-charcoal px-8 py-3 text-xs uppercase tracking-[0.2em] text-bone transition-opacity hover:opacity-80 disabled:opacity-50",children:l?"Saving...":"Opt out"})]})]})]})}const By={returns:{title:"Return & Refund Policy",testid:"return-policy-page",intro:"This Return Policy does not limit or exclude any rights under applicable consumer protection laws.",sections:[{h:"30-day return policy",p:["Eligible items may be returned within 30 days of the delivery date. Items must meet the following conditions:"],list:["Uninstalled and in resalable condition","Brand new and unused","All accessories included"],p2:"Please note that the 30-day return period is calculated from the delivery date of each individual item as recorded by the carrier, rather than the delivery date of the full order."},{h:"Non-returnable items",list:["Made-to-order items","Final sale items marked as non-returnable","Installed or clearly used items","Items not purchased from our official website"]},{h:"Packaging requirements",p:"To avoid damage during the return process, we strongly recommend using the original packaging and packing method whenever possible. If the original packaging is damaged or unavailable, please ensure the item is securely packed with sufficient protective materials to prevent damage during transit."},{h:"Return methods",p:["Small items (non-furniture): a FedEx prepaid return label can be provided. Customers are required to drop off the package at a FedEx location. If a pickup service is requested, an additional pickup fee will apply.","Large items (furniture): we will arrange a carrier pickup. It is recommended to use the original pallet or an equivalent load-bearing pallet \u2014 if no pallet is used, it may affect the carrier's ability to complete the pickup. On the scheduled pickup day, please place the packaged item at the curb in advance according to the carrier's requirements. If the pickup fails due to customer non-compliance (e.g., item not prepared), any additional costs incurred (such as a failed pickup fee) 
2will be borne by the customer."]},{h:"Return shipping fees",p:"If the item is defective, damaged, or not as described, we will cover the return shipping cost. For returns due to personal reasons (e.g., change-of-mind returns), the return shipping cost, including any pickup fees, will be borne by the customer and may be deducted from the refund (if applicable). Return shipping costs for large items may vary significantly depending on size, weight, location and logistics service used, and may in some cases represent a substantial portion of the item price."},{h:"Refund details",p:"Refundable: product price, purchased protection plans (if unused). Non-refundable: value-added services (e.g., white glove delivery, doorway drop-off, room of choice drop-off), next-day delivery fees, remote area surcharges, and installation services that have already been used."},{h:"Possible restocking fee",p:"For change-of-mind returns, a reasonable restocking fee of up to 10% of the item price may be charged under the following conditions: the item is not returned in its original packaging; the item shows signs of use or affects resale condition; or the item condition does not meet return requirements."},{h:"How to request a return",p:["Sign in and go to My Account \u2192 Returns & Refunds, pick the order and submit your request \u2014 or contact customer service via the online chat or email. After submission, we will contact you within 24 hours and provide return instructions.","Once confirmed, we will send a return instruction email (including the return address, return label, and instructions). Please do not return the item before receiving confirmation, as this may affect the refund process. Please ship the item to the address provided in the return instruction email (do not use addresses found on the website or other channels). If you do not use the return label we provide, please share the tracking number after shipment \u2014 please use a trackable shipping method, otherwise the refund process may be delayed."]},{h:"When will I receive my refund?",p:"After the returned item arrives at our warehouse, inspection will be completed within 3\u20135 business days. A refund will be processed based on the inspection result, and a notification email will be sent to you. Refunds are issued to the original payment method; for credit cards, the refund is typically received within 5\u20137 business days."},{h:"Chargeback policy",p:"We are committed to resolving any issues with your order. Before initiating a dispute with your bank or payment provider, we recommend contacting our customer service team first, as most issues can be resolved through our standard return, refund, or replacement process. Initiating a chargeback may delay the resolution process, although it does not affect your statutory rights, as the case will be handled by your financial institution."},{h:"Faulty or damaged products",p:"We recommend inspecting your items as soon as possible after delivery and contacting us promptly if any issues are found. For product quality issues, we will assist with returns, refunds, or replacements in accordance with our policy. To help us resolve your issue efficiently, please provide photos from multiple angles, and if necessary, a short video. Photos of the product, packaging, and shipping labels will help expedite the process. Please contact us before attempting any repairs \u2014 we are unable to cover costs for unauthorized repairs, and such actions may affect your eligibility for a refund."},{h:"Shipping damage",p:"If damage occurs during transit, we will assist with returns, refunds, or replacements in accordance with our policy. Please report shipping damage within 3 business days after delivery to facilitate claims with the carrier, and kindly provide photos of the damaged product and packaging."},{h:"Undeliverable or refused packages",p:"If delivery fails due to the carrier, we will arrange a free redelivery or replacement. If delivery fails due to customer-related reasons (e.g., incorrect address or refusal), the customer will be responsible for any additional costs incurred."}]},terms:{title:"Terms of Use",testid:"terms-page",intro:'Welcome to the website of Shoponlinenewyork.com. Shoponlinenewyork.com, including its owners and operators, provides its services to you subject to the notices, terms, and conditions set forth in this agreement (the "Agreement"). In addition, when you use any Shoponlinenewyork.com service (e.g., Customer Reviews), you will be subject to the rules, guidelines, policies, terms, and conditions applicable to such services, and they are incorporated into this Agreement by this reference. Shoponlinenewyork.com reserves the right to change this site and these terms and conditions at any time, and any material changes will become effective within 30 days of posting on the website. Therefore, you should review these Terms of Use regularly and in any event at least every 30 days. Accessing, browsing, or otherwise using the site indicates your agreement to all the terms and conditions in this agreement, including the Binding Arbitration section containing an Arbitration Agreement, and the separate Class Action Waiver provision. Please read this agreement carefully before proceeding. If you do not agree to these terms and conditions, then you are not authorized to use this website or any Shoponlinenewyork.com service.',sections:[{h:"Use of site",p:["You represent and warrant that you are at least 18 years old or visiting the Site under the supervision of a parent or guardian. Subject to the terms and conditions of this Agreement, Shoponlinenewyork.com hereby grants you a limited, revocable, non-transferable and non-exclusive license to access and use the Site by displaying it on your internet browser only for the purpose of shopping for personal items sold on the Site and not for any commercial use or use on behalf of any third party, except as explicitly permitted by Shoponlinenewyork.com in advance. Any breach of this Agreement shall result in the immediate revocation of the license granted in this paragraph without notice to you.","Except as permitted in the paragraph above, you may 
2not reproduce, distribute, display, sell, lease, transmit, create derivative works from, translate, modify, reverse-engineer, disassemble, decompile or otherwise exploit this Site or any portion of it unless expressly permitted by Shoponlinenewyork.com in writing. You may not make any commercial use of any of the information provided on the Site or make any use of the Site for the benefit of another business unless explicitly permitted by Shoponlinenewyork.com in advance.","Shoponlinenewyork.com reserves the right to refuse service, terminate accounts, and/or cancel orders in its discretion, including, without limitation, if Shoponlinenewyork.com believes that customer conduct violates applicable law or is harmful to Shoponlinenewyork.com's interests. You shall not upload to, distribute, or otherwise publish through this Site any content, information, or other material that (a) violates or infringes the copyrights, patents, trademarks, service marks, trade secrets, or other proprietary rights of any person; (b) is libelous, threatening, defamatory, obscene, indecent, pornographic, or could give rise to any civil or criminal liability under U.S. or international law; or (c) includes any bugs, viruses, worms, trap doors, Trojan horses or other harmful code or properties.","Shoponlinenewyork.com may assign you a password and account identification to enable you to access and use certain portions of this Site. Each time you use a password or identification, you will be deemed to be authorized to access and use the Site in a manner consistent with the terms and conditions of this Agreement, and Shoponlinenewyork.com has no obligation to investigate the authorization or source of any such access or use of the Site. You will be solely responsible for all access to and use of this site by anyone using the password and identification originally assigned to you whether or not such access to and use of this site is actually authorized by you, including without limitation, all communications and transmissions and all obligations (including, without limitation, financial obligations) incurred through such access or use. You are solely responsible for protecting the security and confidentiality of the password and identification assigned to you. You shall immediately notify Shoponlinenewyork.com of any unauthorized use of your password or identification or any other breach or threatened breach of this Site's security."]},{h:"Reviews and comments",p:['Except as otherwise provided elsewhere in this Agreement or on the site, anything that you submit or post to the site and/or provide Shoponlinenewyork.com, including, without limitation, ideas, know-how, techniques, questions, reviews, comments, and suggestions (collectively, "Submissions") is and will be treated as non-confidential and nonproprietary, and by submitting or posting, you agree to irrevocably license the entry and all IP rights related thereto (excluding the moral rights such as authorship right) to Shoponlinenewyork.com without charge and Shoponlinenewyork.com shall have the royalty-free, worldwide, perpetual, irrevocable, and transferable right to use, copy, distribute, display, publish, perform, sell, lease, transmit, adapt, create derivative works from such Submissions by any means and in any form, and to translate, modify, reverse-engineer, disassemble, or decompile such Submissions. All Submissions shall automatically become the sole and exclusive property of Shoponlinenewyork.com and shall not be returned to you and you agree not to raise any dispute in connection with any use of the entry by Shoponlinenewyork.com in the future.',"You warrant that your Submissions, in whole or in part, are clear and free of any IP right infringement, disputes or third party claims. Shoponlinenewyork.com assumes no liability for any misuse of copyright or any other rights of third parties by you.","In addition to the rights applicable to any Submission, when you post comments or reviews to the site, you also grant Shoponlinenewyork.com the right to use the name that you submit with any review, comment, or other Content, if any, in connection with such review, comment, or other content. You represent and warrant that you own or otherwise control all of the rights to the reviews, comments, and other Content that you post on this site and that use of your reviews, comments, or other Content by Shoponlinenewyork.com will not infringe upon or violate the rights of any third party. You shall not use a false e-mail address, pretend to be someone other than yourself, or otherwise mislead Shoponlinenewyork.com or third parties as to the origin of any Submissions or Content. Shoponlinenewyork.com may, but shall not be obligated to remove or edit any Submissions (including comments or reviews) for any reason."]},{h:"Copyright",p:['All text, graphics, photographs or other images, button icons, audio clips, logos, slogans, trade names or word software and other contents on the website of Shoponlinenewyork.com (collectively, "Content"), belongs exclusively to Shoponlinenewyork.com or its appropriate content suppliers. You may not use, reproduce, copy, modify, transmit, display, publish, sell, license, publicly perform, distribute or commercially exploit any of the Content or otherwise dispose of any of the Content in a way not permitted by Shoponlinenewyork.com, without Shoponlinenewyork.com\'s express prior written consent.',"The use of data mining, robots, or similar data gathering and extraction tools on Shoponlinenewyork.com as well as the use of Shoponlinenewyork.com trademarks or service marks in meta-tags is strictly prohibited. You may view and use the Content only for your personal information and for shopping and ordering on the site and for no other purpose.",'The collection, arrangement, and assembly of all content on this site (the "Compilation") belong exclusively to Shoponlinenewyork.com. You may not use Shoponlinenewyork.com\'s Content or Compilation in any manner that disparages or discredits Shoponlinenewyork.com or in any way that is likely to cause confusion or violation of any applicable laws or regulations. All software used on this Site (the "Software") is the property of Shoponlinenewyork.com and/or its Software suppliers. The Content, the Compilation and the Software are all protected under state, national and international copyright laws. All rights not expressly granted are reserved by Shoponlinenewyork.com. Violators will be prosecuted to the full extent of the law.',"Shoponlinenewyork.com recognizes and respects all copyrights and trademarks. As such, any usage of television, motion picture, music, film festival or other names or titles have no connection to Shoponlinenewyork.com and are the sole property of the copyright or trademark holders."]},{h:"Intellectual property infringement policy",p:"It is the policy of Shoponlinenewyork.com to take appropriate action where necessary to uphold and recognize all relevant State, Federal and International laws in connection with material that is claimed to be infringing any trademark, copyright, patent and all or any other Intellectual Property laws. If you are an intellectual property rights owner and you believe that Shoponlinenewyork.com sells, offers for sale, or makes available goods and/or services that infringe your intellectual property rights, then send the following information in its entirety to [email protected]:",list:["An electronic or physical signature of the person authorized to act on behalf of the owner of an exclusive that is allegedly infringed;","A description of the allegedly infringing work or material;","A description of where the allegedly infringing material is located on the site (product(s) URL);","Information reasonably sufficient to allow us to contact you, such as your address, telephone number and e-mail address;","A statement by you that you have a good faith belief that the disputed use of the material is not authorized by the copyright or other proprietary right owner, its agent, or the law;",'Identification of the intellectual property rights that you claim are infringed by the Website (e.g. "XYZ copyright", "ABC trademark, Reg. No. 123456, registered 1/1/04", etc);',"A statement by you that the above information and notification is accurate, and under penalty of perjury, that you are the copyright owner or authorized to act on behalf of the owner whose exclusive right is allegedly infringed."]},{h:"Binding arbitration \u2014 arbitration of disputes",p:["READ THIS SECTION CAREFULLY BECAUSE IT REQUIRES ARBITRATION OF DISPUTES AND LIMITS THE MANNER IN WHICH THE PARTIES CAN SEEK RELIEF.",'In the event of any dispute, claim, or controversy between you and us of any kind relating specifically to our products and purchases of our products (whether through the websites or otherwise) (each, a "Dispute"), such Dispute will be finally and exclusively resolved by binding arbitration governed under the Federal Arbitration Act ("FAA"), subject to the Process described and defined below. For avoidance of doubt, any dispute concerning or relating to arbitrability shall be resolved exclusively by a court of law unless otherwise agreed to by the parties.',"NEITHER PARTY SHALL HAVE THE RIGHT TO LITIGATE 
2SUCH DISPUTE IN COURT OR TO HAVE A JURY TRIAL, EXCEPT EITHER PARTY MAY BRING ITS DISPUTE IN ITS LOCAL SMALL CLAIMS COURT, IF PERMITTED BY THAT SMALL CLAIMS COURT RULES AND IF WITHIN SUCH COURT'S JURISDICTION. ARBITRATION IS DIFFERENT FROM COURT, AND DISCOVERY AND APPEAL RIGHTS MAY ALSO BE LIMITED IN ARBITRATION.","This provision shall apply, without limitation, to all Disputes that arose or were asserted before or after your acceptance of this Agreement and shall survive termination of this Agreement. Neither you nor we will be entitled to: join, consolidate or combine Disputes by or against others in any arbitration with the exception of applicable arbitrator rules related to mass or multiple arbitration filings and our agreement below; or include in any arbitration any Disputes as a representative or member of a class."]},{h:"Binding arbitration \u2014 commencement of disputes",p:["You and we agree to work together in an effort to resolve any Dispute between us. The party initiating a Dispute must, before filing any claim, send the other an individual written notice of the Dispute which is personally-signed (in the case of any digital signature, the digital signature shall comply with the requirements of the federal E-Sign Act) by email. If we have a Dispute with you, we will send this notice to the most recent contact information we have for you. If you have a Dispute with us, you must send this notice to [email protected]. The written notice must include the disputing party's name and residential address, phone number, the email address for your user account (as applicable), and a clear and detailed statement of the claim (including requested relief and the basis for relief).",'For a period of sixty (60) days from receipt of a completed notice (which can be extended by agreement of the parties), you and we agree to negotiate in good faith in an effort to resolve the Dispute. The party receiving the notice may request a telephone or video conference to aid in the resolution of the Dispute. If such a conference is requested, you and a company representative will personally attend the conference (with counsel, if represented). The conference will be scheduled for a mutually convenient time, which may be outside of the 60-day period. Completion of this mandatory dispute resolution process ("Process") is a condition precedent to initiating a Dispute in arbitration. If the sufficiency of a notice or compliance with this Process is at issue, such issue may be raised with and decided by a court of competent jurisdiction at either party\'s election, and any arbitration then underway shall be stayed. The court shall have the authority to enforce this condition precedent to arbitration, which includes the power to enjoin the filing or prosecution of arbitrations and the assessment or collection of arbitration fees. Nothing in this Section limits the right of a party to seek damages for non-compliance with this Process in arbitration. All applicable limitations periods (including statutes of limitations) will be tolled from the date of receipt of a completed notice through the conclusion of this Process.']},{h:"Binding arbitration \u2014 arbiter of disputes",p:'Any arbitration of a Dispute will be resolved before a neutral arbitrator selected jointly by the parties, whose decision will be final, except for a limited right of appeal under the FAA. The arbitration shall be commenced and conducted by the National Arbitration and Mediation ("NAM") pursuant to its then current rules, including, as applicable, NAM\'s Comprehensive Dispute Resolution Rules and NAM\'s Mass Filing Supplemental Dispute Resolution Rules and Procedures ("NAM Rules"), as modified by this Agreement. All applicable NAM Rules and procedures are available at the NAM website at www.namadr.com. If the NAM is unavailable or unwilling to administer the arbitration consistent with this arbitration agreement, the parties shall agree on an administrator that will do so. If the parties cannot agree, they shall petition a court of competent jurisdiction to appoint an administrator that will do so. Payment of arbitration fees will be governed by the NAM Rules and fee schedule. The award rendered by the arbitrator shall include costs of arbitration, reasonable attorneys\' fees, and reasonable costs, including costs for expert and other witnesses, to the prevailing party.'},{h:"Binding arbitration \u2014 remedies",p:"Except as otherwise provided in this Agreement, the arbitrator shall be authorized to award all remedies available in an individual lawsuit under applicable substantive law, including, without limitation, compensatory, statutory and punitive damages (which shall be governed by the constitutional standards applicable in judicial proceedings), declaratory, injunctive and other equitable relief, and attorneys' fees and costs. Judgment on the arbitrator's award may be entered in any court having jurisdiction. This clause shall not preclude the parties from seeking provisional remedies in aid of arbitration from a court of appropriate jurisdiction. The arbitration may be conducted in person, through the submission of documents, by phone, or online, provided a court in that county would have personal jurisdiction over all parties in the dispute. The parties may litigate in court to compel arbitration, to stay a proceeding pending arbitration, or to confirm, modify, vacate, or enter judgment on the award entered by the arbitrator. As set forth below, nothing in this Agreement will prevent us from seeking injunctive relief in any court of competent jurisdiction as necessary to protect our intellectual property or proprietary interests. Additionally, nothing herein shall limit your ability to seek public injunctive relief in arbitration or in a court of competent jurisdiction, as applicable."},{h:"Binding arbitration \u2014 severance",p:"If any portion of this Arbitration Agreement is found to be void, unenforceable, or unlawful, in whole or in part, then the entirety of it shall be severed and invalidated from this Agreement and any Dispute may only proceed in a court of law."},{h:"Class action waiver",p:["Except for mass or multiple arbitrations under the arbitrator's mass filing rules, and unless otherwise agreed to by the parties, you and we agree that any proceeding or lawsuit, whether brought in arbitration or in a court of law, shall be limited to dispute(s) between us and you individually and not in a class, consolidated, or representative action. We agree to waive the right to jury trial in any court proceeding.","To the fullest extent permitted by law, (i) no arbitration or proceeding shall be joined with any other, except for coordinated arbitration of twenty-five (25) or more Disputes against a party regarding the same or substantially similar issues filed by or with the assistance of the same law firm, group of law firms, or organizations; (ii) there is no right or authority for any Dispute to be arbitrated, litigated, or resolved on a class action-basis or to utilize class action procedures without the express agreement of the parties; and (iii) there is no right or authority for any Dispute to be brought in a purported representative capacity on behalf of the general public or any other persons without the express agreement of the parties.","If this class action and jury trial waiver is found to be void, unenforceable, or unlawful, in whole or in part, the void, unenforceable, or unlawful provision, in whole or in part, shall be severed. Severance of the void, unenforceable, or unlawful provision, in whole or in part, shall have no impact on the remaining provisions of this Class Action Waiver, which shall remain in full force and effect."]},{h:"Equitable relief",p:"You acknowledge and agree that in the event of a breach or threatened violation of our intellectual property rights or confidential and proprietary information by you, we will suffer irreparable harm and will therefore be entitled to injunctive relief to enforce this Agreement. We may, without waiving any other remedies under this Agreement, seek from any court having jurisdiction any interim, equitable, provisional, or injunctive relief that is necessary to protect our rights and property pending the outcome of the arbitration referenced above."},{h:"Termination and effect of termination",p:"In addition to any other legal or equitable remedies, Shoponlinenewyork.com may, without prior notice to you, immediately terminate the Agreement. In addition, Shoponlinenewyork.com may at any time cease operating the website without notice. Upon any such termination, you shall immediately cease all access to and use of the site and Shoponlinenewyork.com shall, in addition to any other legal or equitable remedies, immediately revoke all password(s), and account identification issued to you and deny your access to and use of this Site in whole or in part. Any termination of the website, services or this Agreement shall not affect the respective rights and obligations (including without limitation, payment obligations) of the parties arising before the date of termination."},{h:"Disclaimer and limitation of liability",p:['EXCEPT AS OTHERWISE PROVIDED IN THE STANDARD TERMS OF SALE THAT GOVERN THE SAME OF EACH PRODUCT ON THIS SITE, THIS SITE, THE PRODUCTS OFFERED FOR SALE ON IT AND THE TRANSACTIONS CONDUCTED THROUGH IT ARE PROVIDED BY SHOPONLINENEWYORK.COM ON AN "AS IS" BASIS. SHOPONLINENEWYORK.COM MAKES NO PRESENTATIONS OR WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, AS TO THE OPERATION OF THE SITE OR THE INFORMATION, CONTENT, MATERIALS, OR PRODUCTS INCLUDED ON THIS SITE EXCEPT AS PROVIDED HERE TO THE FULL EXT
2ENT PERMISSIBLE BY APPLICABLE LAW, SHOPONLINENEWYORK.COM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, TITLE, QUIET ENJOYMENT, DATA ACCURACY, AND SYSTEM INTEGRATION. THIS SITE MAY INCLUDE INACCURACIES, MISTAKES OR TYPOGRAPHICAL ERRORS. SHOPONLINENEWYORK.COM DOES NOT WARRANT THAT THE CONTENT WILL BE UNINTERRUPTED OR ERROR FREE.',"TO THE MAXIMUM EXTENT PERMITTED BY LAW, SHOPONLINENEWYORK.COM WILL NOT BE LIABLE FOR ANY DAMAGES OF ANY KIND ARISING FROM THE USE OF THIS SITE, INCLUDING, BUT NOT LIMITED TO, INDIRECT INCIDENTAL, PUNITIVE, EXEMPLARY, SPECIAL, OR CONSEQUENTIAL DAMAGES. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, SHOPONLINENEWYORK.COM'S TOTAL LIABILITY TO YOU FOR ANY DAMAGES (REGARDLESS OF THE FOUNDATION FOR THE ACTION) SHALL NOT EXCEED IN THE AGGREGATE THE AMOUNT OF FEES ACTUALLY PAID BY YOU TO SHOPONLINENEWYORK.COM DURING THE MONTH IMMEDIATELY PRECEDING THE ACT ALLEGEDLY GIVING RISE TO SHOPONLINENEWYORK.COM'S LIABILITY."]},{h:"Choice of law and forum selection",p:"Any disputes arising out of or related to this Agreement, or the parties' relationship created hereby, or any transaction on Shoponlinenewyork.com, shall be governed by the internal law of the State of New York. In addition, with the exception of any arbitrable claims as per this Agreement, any such dispute shall be heard only in the state or federal courts located in the State of New York, to the exclusion of all other courts and fora."},{h:"Order acceptance",p:"Please note that there may be certain orders that we are unable to accept and must cancel. Shoponlinenewyork.com reserves the right, at sole discretion, to refuse or cancel any order for any reason. Some situations that may result in your order being canceled include limitations on quantities available for purchase or shipping, inaccuracies or errors in product or pricing information, or problems identified by our credit and fraud avoidance department. We may also require additional verifications or information before accepting any order. We will contact you if all or any portion of your order is canceled or if additional information is required to accept your order. Please note that without our prior express written consent, you shall not dispose of the products and/or services purchased from us in a way competitive with or otherwise detrimental to Shoponlinenewyork.com's business, including without limitation selling them online."},{h:"Typographical errors",p:"While Shoponlinenewyork.com strives to provide accurate product and pricing information, pricing or typographical errors may occur. Shoponlinenewyork.com cannot confirm the price of an item until after you order. In the event that an item is listed at an incorrect price or with incorrect information due to an error in pricing or product information, Shoponlinenewyork.com shall have the right, at our sole discretion, to refuse or cancel any orders placed for that item. In the event that an item is mis-priced, Shoponlinenewyork.com may, at our discretion, either contact you for instructions or cancel your order and notify you of such cancellation."},{h:"Pricing & currencies",p:["We strive to bring you the lowest prices. In most instances, the strike-through or reference price indicates a product's sold price within the immediately preceding 90-120 days, but may or may not have been offered by other retailers at or above that price in the past and may not be offered for sale by us or other retailers at that price on any future date. Thus, the strike-through price may not necessarily be the prevailing market price, regular retail price, or former price of a product. In addition, products may be offered by us or other retailers at the same or lower prices during future promotional events beginning on or after the last day of any advertised promotion.","Pricing of products sold by Shoponlinenewyork.com is based upon figures calculated in U.S. Dollars (US$). Prices displayed in other currencies are converted from U.S. Dollars according to the most up to date conversion rates. Due to fluctuating currency values, prices displayed in non-U.S. denominations of currency on the Site may not be the most current. Areas of the Site where non-U.S. denominations of currency might be inaccurate include, but are not limited to, promotional banners, promotional pages, and information on product category pages."]},{h:"Links",p:"This site may contain links to other sites on the Internet that are owned and operated by third parties. You acknowledge that Shoponlinenewyork.com is not responsible for the operation of or content located on or through any such site."},{h:"Remedies",p:"You agree that Shoponlinenewyork.com's remedy at law for any actual or threatened breach of this Agreement would be inadequate and that Shoponlinenewyork.com shall be entitled to specific performance or injunctive relief, or both, in addition to any damages that Shoponlinenewyork.com may be legally entitled to recover, together with reasonable expenses of any form of dispute resolution, including, without limitation, attorneys' fees. No right or remedy of Shoponlinenewyork.com shall be exclusive of any other, whether at law or in equity, including, without limitation, damages injunctive relief, attorneys' fees and expenses. No instance of waiver by Shoponlinenewyork.com of its rights or remedies under these terms and conditions shall imply any obligation to grant any similar, future or other waiver."},{h:"Severance",p:"Unless as otherwise stated, if this Agreement is found to be void, unenforceable, or unlawful, in whole or in part, the void, unenforceable, or unlawful provision, in whole or in part, shall be severed. Severance of the void, unenforceable, or unlawful provision, in whole or in part, shall have no impact on the remaining provisions of this Agreement, which shall remain in full force and effect."}]},privacy:{title:"Privacy Policy",testid:"privacy-policy-page",updated:"September 08, 2026",intro:'This Privacy Policy describes how TONY LLC, our affiliated companies, including Studio TONY LLC ("TONY LLC," "we," "our," or "us") collect, use, and disclose personal information about you and your data privacy rights. Personal information is sometimes also referred to as personal data, personally identifiable information, or other like terms that mean any information that directly or indirectly identifies you or is reasonably capable of being associated with you or your household. This Privacy Policy applies to personal information we collect from users of our websites and other online properties, such as when we offer products for sale and process payments, shipping, and fulfillment of your orders (collectively, our "Services"), or when you otherwise interact with us, such as through our customer support channels or on social media pages. Please note that our Services and this Privacy Policy are directed only to individuals and businesses in the United States. We also describe in this Privacy Policy our handling of "sensitive" personal information or data, which are subject to additional protections under applicable data privacy laws. We may provide different or additional notices of our privacy practices with respect to other personal information collection practices not within the scope of this Privacy Policy, in which case this Privacy Policy will not apply. We may al
2so change this Privacy Policy from time to time. If we make changes, we will notify you by revising the date at the top of this Privacy Policy. We may also provide you with an additional notice (such as by sending you a notification) in connection with making material changes to this Privacy Policy. We encourage you to review this Privacy Policy regularly to stay informed about our information practices and the choices available to you.',sections:[{h:"I. Notice at collection \u2014 personal information you provide to us",p:["We collect personal information you provide directly to us. For example, we collect personal information directly from you when you contact us for customer support or other inquiries, sign up to receive communications from us, register for an account, and during the check-out process when purchasing products on our websites. The types of personal information that we may collect directly from you include:"],list:["Contact Information: we collect certain identifiers and contact information from you, such as name, email address, phone number, social media handles, date of birth, gender, and physical address.","Commercial Information: we collect payment card information, information regarding the products or Services you purchased, and purchasing or consuming histories or tendencies.","Communication Information: we collect certain information related to your customer support interactions, such as customer support emails and chat logs."],p2:"We also collect certain personal information that is considered sensitive personal information or data. This includes account login information, credit card number, debit card number, and other financial information."},{h:"Personal information we collect automatically",list:['Device and Usage Information: we collect information about how you access our Services, including data about the device and network you use, such as your hardware model, operating system version, mobile network, Internet Protocol ("IP") address, unique device identifiers, device type, browser type, time zone, and search terms. We also collect information about your activity on our Services, such as access times, pages viewed, links clicked, navigation paths, time spent on each page, mouse movements, and the page you visited before navigating to our Services.','Information Collected by Cookies and Similar Tracking Technologies: we and others that control collection of personal information use tracking technologies, such as cookies and web beacons, to collect information about you. Cookies are small data files stored on your hard drive or in device memory that help us improve our services and your experience, see which areas and features of our services are popular, and count visits. Web beacons (also known as "pixel tags" or "clear GIFs") are electronic images that we use on our Services and in our emails to help deliver cookies, count visits, and understand usage and campaign effectiveness. For more information about cookies and how to disable them, see Your Choices below.']},{h:"Personal information we collect from other sources, and information we derive",p:"We obtain personal information from other sources. For example, we may collect information from advertising networks, data analytics providers, operating systems and platforms, mailing list providers, social networks, and other advertising partners. This information includes your contact information and usage data collected through cookies and other trackers described in the Advertising and Analytics section below. We may also derive personal information or draw inferences about you based on the information we collect \u2014 for example, we may make inferences about your approximate location based on your IP address or infer that you are looking to purchase certain products based on your browsing behavior and past purchases."},{h:"Purpose and use of personal information",p:"We may use the categories of personal information identified above for the following purposes:",list:["To provide, maintain, and improve our products and Services;","To process transactions and send you related information, including confirmations, receipts, invoices, customer experience surveys, and recall notices;","To arrange for shipping;","To conduct business dealings with our partners, service providers, contractors or processors;","To personalize and improve your experience on our Services;","To send you technical notices, security alerts, and support and administrative messages;","To respond to your comments and questions and provide customer service;","To communicate with you about products and services offered by TONY LLC and others and provide news and information that we think will interest you;","To monitor and analyze trends, usage, and activities in connection with our Services;","To personalize the advertisements you see when you use our Services based on information provided by our advertising partners;","To detect, investigate, and prevent security incidents and other malicious, deceptive, fraudulent, or illegal activity and protect the rights and property of TONY LLC and others;","To screen orders for potential risk or fraud;","To debug to identify and repair errors in our Services;","To comply with our legal and financial obligations; and","To carry out any other purpose described to you at the time the information was collected."]},{h:"Disclosure of personal information",p:"We may disclose your personal information in the following circumstances or as otherwise described 
2in this Privacy Policy:",list:["Vendors. We may disclose or make available your personal information to service providers, contractors, processors, and other parties who provide services to TONY LLC, such as ecommerce software, customer relations software, cloud enterprise resource planning software, customer service software, as well as testing, optimization, personalization, email, SMS, product review, registry, loyalty, wish list, accessibility, search, returns, and subscriptions services.","Advertising and Analytics. We may make your personal information available to advertising and analytics partners, as described in the Advertising and Analytics section below.","Legal Disclosures. We may disclose personal information if we believe that disclosure is in accordance with, or required by, any applicable law or legal process, including lawful requests by public authorities to meet national security or law enforcement requirements. We may also share personal information if we believe that your actions are inconsistent with our user agreements or policies, if we believe that you have violated the law, or if we believe it is necessary to protect the rights, property, and safety of TONY LLC, our users, the public, or others.","Disclosed to Advisors and Lawyers. We may disclose personal information with our lawyers and other professional advisors where necessary to obtain advice or otherwise protect and manage our business interests.","Disclosed During Change of Ownership. We may disclose personal information in connection with, or during negotiations concerning, any merger, sale of company assets, financing, or acquisition of all or a portion of our business by another company.","Among Our Family of Companies. Personal information may be disclosed between and among TONY LLC and our current and future parents, affiliates, and subsidiaries and other companies under common control and ownership.","With Your Consent. We may disclose personal information with your consent or at your direction.","Disclosure of Non-Personal Information. We may also disclose aggregated or de-identified information that cannot reasonably be used to identify you. When doing so, we publicly commit to maintain and use the information in an aggregated or de-identified form and not attempt to re-identify the information, unless permitted or required by law."]},{h:"Retention of personal information",p:"We store personal information for as long as necessary to carry out the purposes for which we originally collected it and for other legitimate business purposes, including to meet our legal, regulatory, or other compliance obligations."},{h:"II. Advertising and analytics",p:"We may allow others to provide analytics services and serve advertisements on our behalf across the web and in mobile apps. These entities may use cookies, web beacons, device identifiers, and other technologies to collect information about your use of our Services and other websites and applications, including your IP address, web browser, mobile network information, pages viewed, links clicked, and conversion information. This information may be used by us and others to, among other things, analyze and track data, determine the popularity of certain content, deliver advertising and content targeted to your interests in our Services and other websites, and better understand your online activity. For more information about interest-based ads, or to opt out of having your web browsing information used for behavioral advertising purposes, please visit www.aboutads.info/choices. Your device may also include a feature that allows you to opt out of having certain information collected through mobile apps used for behavioral advertising purposes. We may also work with third parties to serve ads to you as part of customized campaigns on third-party platforms. As part of these ad campaigns, we or the third-party platforms may convert information about you into a unique value that can be matched with a user account on these platforms to allow us to learn about your interests and serve you advertising that is customized to your interests. Note that the third-party platforms may offer you choices about whether you see these types of customized ads."}
2,{h:"III. Transfers of information to the United States and other countries",p:"TONY LLC is headquartered in the United States, and we have operations and/or service providers in the United States and other countries. Therefore, we and our service providers may transfer your personal information to, or store or access it in, jurisdictions that may not provide levels of data protection that are equivalent to those of other countries. We will take steps to ensure that your personal information receives an adequate level of protection in the jurisdictions in which we process it."},{h:"IV. Your choices",p:["Account Information. You may update and correct certain account information at any time by logging into your account or emailing us at [email protected]. If you wish to delete your account, please email [email protected] to work with a customer experience agent, but note that we may retain certain information as required by law or for our legitimate business purposes.","Cookies. Most web browsers are set to accept cookies by default. If you prefer, you can usually adjust your browser settings to remove or reject browser cookies. Please note that removing or rejecting cookies could affect the availability and functionality of our services.","Communication. You may opt out of receiving text messages or promotional emails from TONY LLC by following the instructions in those communications. If you opt out, we may still send you non-promotional emails, such as those about your account or our ongoing business relations.","Messaging Terms and Privacy Policy. By opting into SMS communications, you agree to our Messaging Terms and Messaging Privacy Policy."]},{h:"V. Children",p:"The TONY LLC websites are not intended for or directed at children under the age of 18. In addition, we do not knowingly collect personal information from children under the age of 18. We also do not knowingly sell, share, use for targeted advertising, or disclose the personal information of children under the age of 18."},{h:"VI. Summary of prior 12 month personal information processing activities",p:"In the preceding 12 months, we have collected the categories of personal information set forth in the table below. For details about the precise data points we collect and the categories of sources of such collection, please see the Collection of Personal Information above. We collect personal information for the business and commercial purposes described in the Purpose and Use of Personal Information section above. In the preceding 12 months, we have disclosed the following categories of personal information for business purposes to the following categories of recipients, which we also describe in greater detail in the Disclosure of Personal Information section above:",table:{head:["Category of personal information we collect","Business purpose for disclosure and processing","Category of recipients"],rows:[["Identifiers, such as name, email address, phone number, physical address, IP address, unique personal identifiers, and other similar identifiers.","Providing our Services; facilitating payment and transaction processing; analytics, advertising, and marketing; and legal and other purposes described in greater detail in the Purpose and Use of Personal Information section above.","Service providers, contractors, and processors, who provide services to TONY LLC, such as ecommerce software, customer relations software, cloud enterprise resource planning software, AI-powered customer service software, as well as testing, optimization, personalization, email, SMS, product review, registry, loyalty, wish list, accessibility, search, returns, and subscriptions services; and legal and other purposes described in greater detail in the Disclosure of Personal Information section above."],["Sensitive personal information, such as account login information, credit card number, debit card number, other financial information, and sensitive government identifiers.*","Providing our Services; facilitating payment and transaction processing;
2 and legal and other purposes described in greater detail in the Purpose and Use of Personal Information section above.","Legal and other purposes described in greater detail in the Disclosure of Personal Information section above."],["Commercial information, including records of products or services purchased, obtained, or considered, or other purchasing or consuming histories or tendencies.","Providing our Services; facilitating payment and transaction processing; analytics, advertising, and marketing; and legal and other purposes described in greater detail in the Purpose and Use of Personal Information section above.","Service providers, contractors, and processors, who provide services to TONY LLC, such as ecommerce software, customer relations software, cloud enterprise resource planning software, AI-powered customer service software, as well as testing, optimization, personalization, email, SMS, product review, registry, loyalty, wish list, accessibility, search, returns, and subscriptions services; and legal and other purposes described in greater detail in the Disclosure of Personal Information section above."],["Internet or other electronic network activity information, including information regarding your interaction with an internet website or advertisement.","Providing our Services; facilitating payment and transaction processing; analytics, advertising, and marketing; and legal and other purposes described in greater detail in the Purpose and Use of Personal Information section above.","Service providers, contractors, and processors, who provide services to TONY LLC, such as ecommerce software, customer relations software, cloud enterprise resource planning software, AI-powered customer service software, as well as testing, optimization, personalization, email, SMS, product review, registry, loyalty, wish list, accessibility, search, returns, and subscriptions services; and legal and other purposes described in greater detail in the Disclosure of Personal Information section above."],["Geolocation data, such as your physical address and approximate location based on IP address.","Providing our Services; facilitating payment and transaction processing; analytics, advertising, and marketing; and legal and other purposes described in greater detail in the Purpose and Use of Personal Information section above.","Service providers, contractors, and processors, who provide services to TONY LLC, such as ecommerce software, customer relations software, cloud enterprise resource planning software, AI-powered customer service software, as well as testing, optimization, personalization, email, SMS, product review, registry, loyalty, wish list, accessibility, search, returns, and subscriptions services; and legal and other purposes described in greater detail in the Disclosure of Personal Information section above."],["Inferences from any of the information identified above to create a profile about you reflecting your preferences, characteristics, predispositions, and behavior, such as interests and purchasing habits.","Providing our Services; analytics, advertising, and marketing; and legal and other purposes described in greater detail in the Purpose and Use of Personal Information section above.","Service providers, contractors, and processors, who provide services to TONY LLC, such as ecommerce software, customer relations software, cloud enterprise resource planning software, AI-powered customer service software, as well as testing, optimization, personalization, email, SMS, product review, registry, loyalty, wish list, accessibility, search, returns, and subscriptions services; and legal and other purposes described in greater detail in the Disclosure of Personal Information section above."]]},p2:"* Please note that TONY LLC does not see or use your sensitive government identifiers, such as Social Security number, passport number, and driver's license number. However, when you use financing as a payment method, you may transmit such sensitive government identifiers to our third party financing partner."},{h:"VII. Selling or sharing of personal information",p:"Below, we describe the categories of personal information we may sell or share for targeted advertising currently and in the preceding 12 months. We also describe the third parties who received or may receive the personal information and the business or commercial purpose for the sale or sharing. We do not knowingly sell or share the personal information of children under the age of 16, and have not done so in the prior 12 months.",table:{head:["Category of personal information sold or shared","Category of third party","Business or commercial purpose for sale or sharing"],rows:[["Identifiers, such as name, email address, phone number, physical address, IP address, unique personal identifiers, and other similar identifiers.","This category of personal information may be sold or shared. We may have shared or sold such personal information with third party advertising, marketing, and cookie providers.","We may have disclosed this category of personal information to provide advertising and marketing services."],["Commercial information, including records of products or services purchased, obtained, or considered, or other purchasing or consuming histories or tendencies.","This category of personal information may be sold or shared. We may have shared or sold such personal information with third party advertising, marketing, and cookie providers.","We may have disclosed this category of personal information to provide advertising and marketing services."],["Internet or other electronic network activity information, including information regarding your interaction with an internet website or advertisement.","This category of personal information may be sold or shared. We may have shared or sold such personal information with third party advertising, marketing, and cookie providers.","We may have disclosed this category of personal information to provide advertising and marketing services."],["Geolocation data, such as your physical address and approximate location based on IP address.","This category of personal information may be sold or shared. We may have shared or sold such personal information with third party advertising, marketing, and cookie providers.","We may have disclosed this category of personal information to provide advertising and marketing services."],["Inferences from any of the information identified above to create a profile about you reflecting your preferences, characteristics, predispositions, and behavior, such as interests and purchasing habits.","This category of personal information may be sold or shared. We may have shared or sold such personal information with third party advertising, marketing, and cookie providers.","We may have disclosed this category of personal information to provide advertising and marketing services."]]}},{h:'VIII. Opt-out preference signals and "Do Not Track" requests',p:["We Honor Opt-Out Preference Signals. We honor opt-out preference signals. An opt-out preference signal is a signal that is sent by a platform, technology, or mechanism on your behalf that c
2ommunicates your choice to opt-out of the sharing for targeted advertisements or sale of your personal information. We treat opt-out preference signals as valid requests to opt-out of the sale or sharing of your personal information under privacy laws. Please note that you can also opt-out of the sale or sharing of your personal information for targeted advertising through our other methods described in the Instructions on How to Exercise Your Privacy Rights section below.",'"Do Not Track" Requests. Some browsers have incorporated "Do Not Track" features. Most of these features, when turned on, send a signal or preference to the websites you visit indicating that you do not wish to be tracked. Because there is not yet a common understanding of how to interpret the do not track signal, we currently do not respond to the browser do not track signals. However, as noted above, we do honor opt-out preference signals.']},{h:"IX. Sensitive personal information",p:'Under United States privacy laws, certain types of personal information are considered "sensitive" personal information or data and require additional data privacy rights and obligations. TONY LLC collects account login information, credit card numbers, debit card numbers, and other financial information, which may be considered sensitive personal information or data. Where required by law, we will obtain your consent before processing your sensitive personal information. We will also only use your sensitive personal information for limited purposes, such as to perform the Services or provide the goods requested; to prevent, detect, and investigate security incidents; to resist malicious, deceptive, fraudulent, or illegal actions and prosecute those responsible; and to ensure physical safety of natural persons. Because this sensitive personal information is used for limited and permitted purposes, we do not offer a "limit use and disclosure of sensitive personal information" right. If you have any questions about our handling of sensitive personal information or to withdraw your consent, please contact us at [email protected].'},{h:"X. Your privacy rights",p:"Data privacy laws afford consumers residing in certain states rights with respect to their personal information, subject to certain exceptions. If you reside in a state with such laws, this section applies to you. Subject to certain limitations, you have the following rights:",list:["Right to Delete. You have the right to request us to delete the personal information we have collected about you.","Right to Correct. You have the right to request us to correct inaccurate personal information we maintain about you.","Right to Confirm Processing, Know, and Access. You have the right to confirm whether we are processing your personal information and to know and access the personal information we have collected about you, including the categories of personal information, the categories of sources from which the personal information is collected, the business or commercial purpose for collecting, selling, or sharing personal information, the categories of third parties to whom we disclose personal information, and the specific pieces of personal information we have collected about you. You have the right to receive this information in a format, to the extent technically feasible, that is portable, usable, and allows you to transmit the personal information to a person without impediment or hindrance.","List of Specific Third Parties. You have the right, at our option, to receive a list of the specific third parties, other than natural persons, to which we have disclosed either: (1) your personal information or (2) any personal information.","Right to Opt-Out of Profiling. You have the right to opt out of the processing of your personal information for profiling in furtherance of decisions that produce legal or similarly significant effects concerning you. Please note that we do not engage in such profiling activities and therefore you do not need to take any further action.","Rights Related to Sharing for Targeted Advert
2ising or Sale. You have the right to opt out of the sharing of your personal information for targeted advertising or the sale of your personal information.",'Rights Related to Sensitive Personal Information or Data. Because we only use sensitive personal information for limited and permitted purposes, we do not offer a "limit use and disclosure of sensitive personal information" right. Please see the Sensitive Personal Information section above for more information about sensitive personal information or data.',"Right to No Discrimination. You have the right not to be discriminated against for exercising any of your privacy rights. This includes us not: (a) denying you goods or services; (b) charging you different prices or rates for goods or services, including through the use of discounts or other benefits or imposing penalties; (c) providing you a different level or quality of goods or services; (d) suggesting to you that you will receive a different price or rate for goods or services or a different level or quality of goods or services; and (e) retaliating against you for exercising your privacy rights.","Right to Appeal. If we decline to take action in response to your exercise of a privacy right, we will inform you of the reason for denying your request and provide you instructions on how to appeal the decision."],p2:['How to exercise your privacy rights. You may exercise your privacy rights by calling our toll-free phone number at 385-380-4446 or emailing us at [email protected]. You may also opt-out of the sale of your personal information or sharing of your personal information for targeted advertising by clicking on the "Do Not Sell or Share My Personal Information" link or emailing us at [email protected]. In some instances, we will need to verify your identity before honoring your privacy rights request. We will verify your identity by asking you to provide personal information related to your recent interactions with us. We will honor your privacy rights request within 45 calendar days of receipt, unless we request an extension as permitted by data privacy law. However, we will honor opt-out of sale and sharing requests within 15 business days. We do not need to verify your identity for opt-out of sale or sharing requests, but we may ask for additional information to find you on our Services.',"Appealing a denial of a privacy right request. You may appeal a denial of your privacy right requests by calling us at our toll-free phone number, 385-380-4446 or emailing us at [email protected]. Within 45 days of receipt of an appeal, we will inform you in writing of any action taken in response to the appeal, including a written explanation of the reasons for the decisions. If we deny your appeal, you may submit a complaint to the Attorney General of your state.","Authorized agents. If permitted or required by applicable law, you may exercise your privacy rights through an authorized agent (which may include a guardian or conservator). If we receive your request from an authorized agent, we may ask for evidence that you have provided such agent with a power of attorney or that the agent otherwise has valid written authority to submit requests to exercise rights on your behalf. If you are an authorized agent seeking to make a request, please contact us at [email protected].","Shine the Light disclosure for California residents. California law permits residents of California to request certain details about how their information is shared with third parties for direct marketing purposes. If you are a California resident and would like to make such a request, please contact us at [email protected]."]},{h:"XI. Contact us",p:"If you have any questions about this Privacy Policy, please contact us: TONY LLC, SONNY 147 Burhans Ave, Yonkers, New York 10701 \u2014 [email protected]."}]}};function Uy(e){let t=e.kind;const n=By[t],r=(e,t)=>(Array.isArray(e)?e:[e]).filter(Boolean).map((e,n)=>(0,Pe.jsx)("p",{className:"mt-3 text-sm font-light leading-relaxed text-ash",children:e},"".concat(t,"-").concat(n)));return(0,Pe.jsx)("main",{"data-testid":n.testid,className:"min-h-screen bg-bone px-6 pb-32 pt-32 sm:px-10",children:(0,Pe.jsxs)("div",{className:"mx-auto max-w-3xl",children:[(0,Pe.jsx)(Zg,{label:"Back to store"}),(0,Pe.jsx)("p",{className:"mb-4 mt-10 text-xs uppercase tracking-[0.3em] text-ash",children:"shoponlinenewyork.com"}),(0,Pe.jsx)("h1",{className:"font-serif text-4xl font-light leading-tight tracking-tight text-charcoal sm:text-5xl",children:n.title}),(0,Pe.jsx)("p",{className:"mt-6 text-sm font-light leading-relaxed text-ash",children:n.intro}),(0,Pe.jsxs)("p",{className:"mt-2 text-xs font-light uppercase tracking-[0.15em] text-ash/70",children:["Last updated: ",n.updated||"September 2026"]}),(0,Pe.jsxs)("div",{className:"mt-12 space-y-10",children:[n.sections.map((e,t)=>(0,Pe.jsxs)("section",{"data-testid":"policy-section-".concat(t),children:[(0,Pe.jsx)("h2",{className:"font-serif text-xl font-light text-charcoal",children:e.h}),r(e.p,"p".concat(t)),e.list&&(0,Pe.jsx)("ul",{className:"mt-3 list-disc space-y-1.5 pl-5 text-sm font-light leading-relaxed text-ash",children:e.list.map((e,t)=>(0,Pe.jsx)("li",{children:e},t))}),e.table&&(0,Pe.jsx)("div",{className:"mt-4 overflow-x-auto",children:(0,Pe.jsxs)("table",{className:"w-full border border-charcoal/10 text-left text-xs font-light leading-relaxed text-ash",children:[(0,Pe.jsx)("thead",{children:(0,Pe.jsx)("tr",{children:e.table.head.map((e,t)=>(0,Pe.jsx)("th",{className:"border-b border-charcoal/10 bg-charcoal/5 px-3 py-2 font-medium text-charcoal",children:e},t))})}),(0,Pe.jsx)("tbody",{children:e.table.rows.map((e,t)=>(0,Pe.jsx)("tr",{className:"align-top",children:e.map((e,t)=>(0,Pe.jsx)("td",{className:"border-b border-charcoal/10 px-3 py-2",children:e},t))},t))})]})}),r(e.p2,"p2-".concat(t))]},t)),"privacy"===t&&(0,Pe.jsx)(zy,{})]})]})})}const Vy=function(){return(0,t.useEffect)(()=>
2{if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;const e=new Cr({duration:1.15,smoothWheel:!0});let t;const n=r=>{e.raf(r),t=requestAnimationFrame(n)};return t=requestAnimationFrame(n),()=>{cancelAnimationFrame(t),e.destroy()}},[]),(0,Pe.jsx)(Bi,{children:(0,Pe.jsx)(Gr,{children:(0,Pe.jsxs)("div",{className:"grain min-h-screen bg-bone text-charcoal",children:[(0,Pe.jsxs)(sr,{children:[(0,Pe.jsx)(ns,{}),(0,Pe.jsx)(Om,{}),(0,Pe.jsx)(Im,{}),(0,Pe.jsxs)(jn,{children:[(0,Pe.jsx)(En,{path:"/",element:(0,Pe.jsx)(Bg,{})}),(0,Pe.jsx)(En,{path:"/shop",element:(0,Pe.jsx)(qg,{})}),(0,Pe.jsx)(En,{path:"/product/:slug",element:(0,Pe.jsx)(ty,{})}),(0,Pe.jsx)(En,{path:"/contact",element:(0,Pe.jsx)(oy,{})}),(0,Pe.jsx)(En,{path:"/track",element:(0,Pe.jsx)(uy,{})}),(0,Pe.jsx)(En,{path:"/auth",element:(0,Pe.jsx)(my,{})}),(0,Pe.jsx)(En,{path:"/reset-password",element:(0,Pe.jsx)(gy,{})}),(0,Pe.jsx)(En,{path:"/account",element:(0,Pe.jsx)(Sy,{})}),(0,Pe.jsx)(En,{path:"/admin",element:(0,Pe.jsx)(Fy,{})}),(0,Pe.jsx)(En,{path:"/payment/success",element:(0,Pe.jsx)(Dy,{})}),(0,Pe.jsx)(En,{path:"/payment/cancel",element:(0,Pe.jsx)(My,{})}),(0,Pe.jsx)(En,{path:"/help",element:(0,Pe.jsx)(Iy,{})}),(0,Pe.jsx)(En,{path:"/return-policy",element:(0,Pe.jsx)(Uy,{kind:"returns"})}),(0,Pe.jsx)(En,{path:"/terms",element:(0,Pe.jsx)(Uy,{kind:"terms"})}),(0,Pe.jsx)(En,{path:"/privacy",element:(0,Pe.jsx)(Uy,{kind:"privacy"})})]})]}),(0,Pe.jsx)(Kr,{position:"bottom-right",toastOptions:{style:{background:"#16283F",color:"#F1EBE0",border:"none"}}})]})})})},Wy=new Te({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!1}}});a.createRoot(document.getElementById("root")).render((0,Pe.jsx)(t.StrictMode,{children:(0,Pe.jsx)(Re,{client:Wy,children:(0,Pe.jsx)(Vy,{})})}))})()})();
3//# sourceMappingURL=main.222817cd.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.