From 055f32667c4f097daf3ab0a8a32b381997ce16f9 Mon Sep 17 00:00:00 2001 From: Ranjan kashyap Date: Fri, 20 Dec 2024 19:17:17 +0530 Subject: [PATCH] Updates --- .../{index-DtdzEPRr.js => index-CuEYwF-1.js} | 62 +++++++++---------- assets/index-DtZaLx9H.css | 1 - assets/index-jGE6rml3.css | 1 + index.html | 4 +- 4 files changed, 34 insertions(+), 34 deletions(-) rename assets/{index-DtdzEPRr.js => index-CuEYwF-1.js} (50%) delete mode 100644 assets/index-DtZaLx9H.css create mode 100644 assets/index-jGE6rml3.css diff --git a/assets/index-DtdzEPRr.js b/assets/index-CuEYwF-1.js similarity index 50% rename from assets/index-DtdzEPRr.js rename to assets/index-CuEYwF-1.js index ef13b29..81f66f5 100644 --- a/assets/index-DtdzEPRr.js +++ b/assets/index-CuEYwF-1.js @@ -1,4 +1,4 @@ -function vy(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function Jp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var em={exports:{}},ka={},tm={exports:{}},he={};/** +function yy(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function Jp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var em={exports:{}},ka={},tm={exports:{}},me={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function vy(e,t){for(var n=0;n>>1,Q=_[Z];if(0>>1;Zo(te,U))aeo(q,te)?(_[Z]=q,_[ae]=U,Z=ae):(_[Z]=te,_[ee]=U,Z=ee);else if(aeo(q,U))_[Z]=q,_[ae]=U,Z=ae;else break e}}return I}function o(_,I){var U=_.sortIndex-I.sortIndex;return U!==0?U:_.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var c=[],u=[],d=1,f=null,h=3,m=!1,x=!1,w=!1,S=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(_){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=_)r(u),I.sortIndex=I.expirationTime,t(c,I);else break;I=n(u)}}function E(_){if(w=!1,v(_),!x)if(n(c)!==null)x=!0,W(C);else{var I=n(u);I!==null&&K(E,I.startTime-_)}}function C(_,I){x=!1,w&&(w=!1,g(k),k=-1),m=!0;var U=h;try{for(v(I),f=n(c);f!==null&&(!(f.expirationTime>I)||_&&!$());){var Z=f.callback;if(typeof Z=="function"){f.callback=null,h=f.priorityLevel;var Q=Z(f.expirationTime<=I);I=e.unstable_now(),typeof Q=="function"?f.callback=Q:f===n(c)&&r(c),v(I)}else r(c);f=n(c)}if(f!==null)var J=!0;else{var ee=n(u);ee!==null&&K(E,ee.startTime-I),J=!1}return J}finally{f=null,h=U,m=!1}}var P=!1,T=null,k=-1,O=5,j=-1;function $(){return!(e.unstable_now()-j_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(_){switch(h){case 1:case 2:case 3:var I=3;break;default:I=h}var U=h;h=I;try{return _()}finally{h=U}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,I){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var U=h;h=_;try{return I()}finally{h=U}},e.unstable_scheduleCallback=function(_,I,U){var Z=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0Z?(_.sortIndex=U,t(u,_),n(c)===null&&_===n(u)&&(w?(g(k),k=-1):w=!0,K(E,U-Z))):(_.sortIndex=Q,t(c,_),x||m||(x=!0,W(C))),_},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(_){var I=h;return function(){var U=h;h=I;try{return _.apply(this,arguments)}finally{h=U}}}})(mm);pm.exports=mm;var $y=pm.exports;/** + */(function(e){function t(L,I){var W=L.length;L.push(I);e:for(;0>>1,Q=L[Z];if(0>>1;Zo(ue,W))veo(Y,ue)?(L[Z]=Y,L[ve]=W,Z=ve):(L[Z]=ue,L[ee]=W,Z=ee);else if(veo(Y,W))L[Z]=Y,L[ve]=W,Z=ve;else break e}}return I}function o(L,I){var W=L.sortIndex-I.sortIndex;return W!==0?W:L.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var c=[],u=[],d=1,f=null,h=3,m=!1,x=!1,w=!1,S=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(L){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=L)r(u),I.sortIndex=I.expirationTime,t(c,I);else break;I=n(u)}}function E(L){if(w=!1,y(L),!x)if(n(c)!==null)x=!0,U(C);else{var I=n(u);I!==null&&X(E,I.startTime-L)}}function C(L,I){x=!1,w&&(w=!1,g(P),P=-1),m=!0;var W=h;try{for(y(I),f=n(c);f!==null&&(!(f.expirationTime>I)||L&&!z());){var Z=f.callback;if(typeof Z=="function"){f.callback=null,h=f.priorityLevel;var Q=Z(f.expirationTime<=I);I=e.unstable_now(),typeof Q=="function"?f.callback=Q:f===n(c)&&r(c),y(I)}else r(c);f=n(c)}if(f!==null)var J=!0;else{var ee=n(u);ee!==null&&X(E,ee.startTime-I),J=!1}return J}finally{f=null,h=W,m=!1}}var k=!1,T=null,P=-1,O=5,R=-1;function z(){return!(e.unstable_now()-RL||125Z?(L.sortIndex=W,t(u,L),n(c)===null&&L===n(u)&&(w?(g(P),P=-1):w=!0,X(E,W-Z))):(L.sortIndex=Q,t(c,L),x||m||(x=!0,U(C))),L},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(L){var I=h;return function(){var W=h;h=I;try{return L.apply(this,arguments)}finally{h=W}}}})(mm);pm.exports=mm;var By=pm.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function vy(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jl=Object.prototype.hasOwnProperty,Fy=/^[: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]*$/,Zd={},Jd={};function Vy(e){return Jl.call(Jd,e)?!0:Jl.call(Zd,e)?!1:Fy.test(e)?Jd[e]=!0:(Zd[e]=!0,!1)}function Hy(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Wy(e,t,n,r){if(t===null||typeof t>"u"||Hy(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ht(e,t,n,r,o,s,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=a}var tt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){tt[e]=new ht(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];tt[t]=new ht(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){tt[e]=new ht(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){tt[e]=new ht(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){tt[e]=new ht(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){tt[e]=new ht(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){tt[e]=new ht(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){tt[e]=new ht(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){tt[e]=new ht(e,5,!1,e.toLowerCase(),null,!1,!1)});var wu=/[\-:]([a-z])/g;function xu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(wu,xu);tt[t]=new ht(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(wu,xu);tt[t]=new ht(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(wu,xu);tt[t]=new ht(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){tt[e]=new ht(e,1,!1,e.toLowerCase(),null,!1,!1)});tt.xlinkHref=new ht("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){tt[e]=new ht(e,1,!1,e.toLowerCase(),null,!0,!0)});function bu(e,t,n,r){var o=tt.hasOwnProperty(t)?tt[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jl=Object.prototype.hasOwnProperty,Vy=/^[: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]*$/,Zd={},Jd={};function Hy(e){return Jl.call(Jd,e)?!0:Jl.call(Zd,e)?!1:Vy.test(e)?Jd[e]=!0:(Zd[e]=!0,!1)}function Wy(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Uy(e,t,n,r){if(t===null||typeof t>"u"||Wy(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function vt(e,t,n,r,o,s,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=a}var tt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){tt[e]=new vt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];tt[t]=new vt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){tt[e]=new vt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){tt[e]=new vt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){tt[e]=new vt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){tt[e]=new vt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){tt[e]=new vt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){tt[e]=new vt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){tt[e]=new vt(e,5,!1,e.toLowerCase(),null,!1,!1)});var wu=/[\-:]([a-z])/g;function xu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(wu,xu);tt[t]=new vt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(wu,xu);tt[t]=new vt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(wu,xu);tt[t]=new vt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){tt[e]=new vt(e,1,!1,e.toLowerCase(),null,!1,!1)});tt.xlinkHref=new vt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){tt[e]=new vt(e,1,!1,e.toLowerCase(),null,!0,!0)});function bu(e,t,n,r){var o=tt.hasOwnProperty(t)?tt[t]:null;(o!==null?o.type!==0:r||!(2l||o[a]!==s[l]){var c=` -`+o[a].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=a&&0<=l);break}}}finally{rl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Zo(e):""}function Uy(e){switch(e.tag){case 5:return Zo(e.type);case 16:return Zo("Lazy");case 13:return Zo("Suspense");case 19:return Zo("SuspenseList");case 0:case 2:case 15:return e=ol(e.type,!1),e;case 11:return e=ol(e.type.render,!1),e;case 1:return e=ol(e.type,!0),e;default:return""}}function rc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Yr:return"Fragment";case Gr:return"Portal";case ec:return"Profiler";case Su:return"StrictMode";case tc:return"Suspense";case nc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case vm:return(e.displayName||"Context")+".Consumer";case gm:return(e._context.displayName||"Context")+".Provider";case Eu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Cu:return t=e.displayName||null,t!==null?t:rc(e.type)||"Memo";case zn:t=e._payload,e=e._init;try{return rc(e(t))}catch{}}return null}function Gy(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return rc(t);case 8:return t===Su?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function tr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Yy(e){var t=wm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,s.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Yi(e){e._valueTracker||(e._valueTracker=Yy(e))}function xm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=wm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function oc(e,t){var n=t.checked;return De({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function tf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=tr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function bm(e,t){t=t.checked,t!=null&&bu(e,"checked",t,!1)}function ic(e,t){bm(e,t);var n=tr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?sc(e,t.type,n):t.hasOwnProperty("defaultValue")&&sc(e,t.type,tr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function nf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function sc(e,t,n){(t!=="number"||zs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Jo=Array.isArray;function oo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ki.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function mi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ri={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ky=["Webkit","ms","Moz","O"];Object.keys(ri).forEach(function(e){Ky.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ri[t]=ri[e]})});function Tm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ri.hasOwnProperty(e)&&ri[e]?(""+t).trim():t+"px"}function Pm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Tm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Xy=De({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function cc(e,t){if(t){if(Xy[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(X(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(X(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(X(61))}if(t.style!=null&&typeof t.style!="object")throw Error(X(62))}}function uc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var dc=null;function Tu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fc=null,io=null,so=null;function sf(e){if(e=zi(e)){if(typeof fc!="function")throw Error(X(280));var t=e.stateNode;t&&(t=Ra(t),fc(e.stateNode,e.type,t))}}function km(e){io?so?so.push(e):so=[e]:io=e}function Nm(){if(io){var e=io,t=so;if(so=io=null,sf(e),t)for(e=0;e>>=0,e===0?32:31-(s1(e)/a1|0)|0}var Xi=64,qi=4194304;function ei(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Vs(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?r=ei(l):(s&=a,s!==0&&(r=ei(s)))}else a=n&~o,a!==0?r=ei(a):s!==0&&(r=ei(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Di(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Gt(t),e[t]=n}function d1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ii),hf=" ",gf=!1;function Km(e,t){switch(e){case"keyup":return $1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Kr=!1;function F1(e,t){switch(e){case"compositionend":return Xm(t);case"keypress":return t.which!==32?null:(gf=!0,hf);case"textInput":return e=t.data,e===hf&&gf?null:e;default:return null}}function V1(e,t){if(Kr)return e==="compositionend"||!_u&&Km(e,t)?(e=Gm(),Es=ju=Vn=null,Kr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=xf(n)}}function Jm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Jm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function eh(){for(var e=window,t=zs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zs(e.document)}return t}function Lu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Q1(e){var t=eh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Jm(n.ownerDocument.documentElement,n)){if(r!==null&&Lu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=bf(n,s);var a=bf(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Xr=null,yc=null,ai=null,wc=!1;function Sf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;wc||Xr==null||Xr!==zs(r)||(r=Xr,"selectionStart"in r&&Lu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ai&&xi(ai,r)||(ai=r,r=Us(yc,"onSelect"),0Zr||(e.current=Tc[Zr],Tc[Zr]=null,Zr--)}function Pe(e,t){Zr++,Tc[Zr]=e.current,e.current=t}var nr={},at=ar(nr),yt=ar(!1),Tr=nr;function vo(e,t){var n=e.type.contextTypes;if(!n)return nr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function wt(e){return e=e.childContextTypes,e!=null}function Ys(){je(yt),je(at)}function Of(e,t,n){if(at.current!==nr)throw Error(X(168));Pe(at,t),Pe(yt,n)}function ch(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(X(108,Gy(e)||"Unknown",o));return De({},n,r)}function Ks(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nr,Tr=at.current,Pe(at,e),Pe(yt,yt.current),!0}function jf(e,t,n){var r=e.stateNode;if(!r)throw Error(X(169));n?(e=ch(e,t,Tr),r.__reactInternalMemoizedMergedChildContext=e,je(yt),je(at),Pe(at,e)):je(yt),Pe(yt,n)}var gn=null,_a=!1,yl=!1;function uh(e){gn===null?gn=[e]:gn.push(e)}function cw(e){_a=!0,uh(e)}function lr(){if(!yl&&gn!==null){yl=!0;var e=0,t=Se;try{var n=gn;for(Se=1;e>=a,o-=a,vn=1<<32-Gt(t)+o|n<k?(O=T,T=null):O=T.sibling;var j=h(g,T,v[k],E);if(j===null){T===null&&(T=O);break}e&&T&&j.alternate===null&&t(g,T),p=s(j,p,k),P===null?C=j:P.sibling=j,P=j,T=O}if(k===v.length)return n(g,T),Re&&vr(g,k),C;if(T===null){for(;kk?(O=T,T=null):O=T.sibling;var $=h(g,T,j.value,E);if($===null){T===null&&(T=O);break}e&&T&&$.alternate===null&&t(g,T),p=s($,p,k),P===null?C=$:P.sibling=$,P=$,T=O}if(j.done)return n(g,T),Re&&vr(g,k),C;if(T===null){for(;!j.done;k++,j=v.next())j=f(g,j.value,E),j!==null&&(p=s(j,p,k),P===null?C=j:P.sibling=j,P=j);return Re&&vr(g,k),C}for(T=r(g,T);!j.done;k++,j=v.next())j=m(T,g,k,j.value,E),j!==null&&(e&&j.alternate!==null&&T.delete(j.key===null?k:j.key),p=s(j,p,k),P===null?C=j:P.sibling=j,P=j);return e&&T.forEach(function(M){return t(g,M)}),Re&&vr(g,k),C}function S(g,p,v,E){if(typeof v=="object"&&v!==null&&v.type===Yr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Gi:e:{for(var C=v.key,P=p;P!==null;){if(P.key===C){if(C=v.type,C===Yr){if(P.tag===7){n(g,P.sibling),p=o(P,v.props.children),p.return=g,g=p;break e}}else if(P.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===zn&&_f(C)===P.type){n(g,P.sibling),p=o(P,v.props),p.ref=Uo(g,P,v),p.return=g,g=p;break e}n(g,P);break}else t(g,P);P=P.sibling}v.type===Yr?(p=Er(v.props.children,g.mode,E,v.key),p.return=g,g=p):(E=Ms(v.type,v.key,v.props,null,g.mode,E),E.ref=Uo(g,p,v),E.return=g,g=E)}return a(g);case Gr:e:{for(P=v.key;p!==null;){if(p.key===P)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(g,p.sibling),p=o(p,v.children||[]),p.return=g,g=p;break e}else{n(g,p);break}else t(g,p);p=p.sibling}p=Pl(v,g.mode,E),p.return=g,g=p}return a(g);case zn:return P=v._init,S(g,p,P(v._payload),E)}if(Jo(v))return x(g,p,v,E);if(Bo(v))return w(g,p,v,E);rs(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(g,p.sibling),p=o(p,v),p.return=g,g=p):(n(g,p),p=Tl(v,g.mode,E),p.return=g,g=p),a(g)):n(g,p)}return S}var wo=mh(!0),hh=mh(!1),Qs=ar(null),Zs=null,to=null,zu=null;function $u(){zu=to=Zs=null}function Bu(e){var t=Qs.current;je(Qs),e._currentValue=t}function Nc(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function lo(e,t){Zs=e,zu=to=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(vt=!0),e.firstContext=null)}function Dt(e){var t=e._currentValue;if(zu!==e)if(e={context:e,memoizedValue:t,next:null},to===null){if(Zs===null)throw Error(X(308));to=e,Zs.dependencies={lanes:0,firstContext:e}}else to=to.next=e;return t}var xr=null;function Fu(e){xr===null?xr=[e]:xr.push(e)}function gh(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Fu(t)):(n.next=o.next,o.next=n),t.interleaved=n,Sn(e,r)}function Sn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var $n=!1;function Vu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function vh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function wn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function qn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,we&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Sn(e,n)}return o=r.interleaved,o===null?(t.next=t,Fu(r)):(t.next=o.next,o.next=t),r.interleaved=t,Sn(e,n)}function Ts(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ku(e,n)}}function Lf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=a:s=s.next=a,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Js(e,t,n,r){var o=e.updateQueue;$n=!1;var s=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var c=l,u=c.next;c.next=null,a===null?s=u:a.next=u,a=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(s!==null){var f=o.baseState;a=0,d=u=c=null,l=s;do{var h=l.lane,m=l.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:m,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,w=l;switch(h=t,m=n,w.tag){case 1:if(x=w.payload,typeof x=="function"){f=x.call(m,f,h);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=w.payload,h=typeof x=="function"?x.call(m,f,h):x,h==null)break e;f=De({},f,h);break e;case 2:$n=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[l]:h.push(l))}else m={eventTime:m,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=m,c=f):d=d.next=m,a|=h;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;h=l,l=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(d===null&&(c=f),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Nr|=a,e.lanes=a,e.memoizedState=f}}function If(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=xl.transition;xl.transition={};try{e(!1),t()}finally{Se=n,xl.transition=r}}function Lh(){return At().memoizedState}function pw(e,t,n){var r=Zn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ih(e))Dh(t,n);else if(n=gh(e,t,n,r),n!==null){var o=ft();Yt(n,e,r,o),Ah(n,t,r)}}function mw(e,t,n){var r=Zn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ih(e))Dh(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var a=t.lastRenderedState,l=s(a,n);if(o.hasEagerState=!0,o.eagerState=l,Xt(l,a)){var c=t.interleaved;c===null?(o.next=o,Fu(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=gh(e,t,o,r),n!==null&&(o=ft(),Yt(n,e,r,o),Ah(n,t,r))}}function Ih(e){var t=e.alternate;return e===Ie||t!==null&&t===Ie}function Dh(e,t){li=ta=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ah(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ku(e,n)}}var na={readContext:Dt,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useInsertionEffect:rt,useLayoutEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useMutableSource:rt,useSyncExternalStore:rt,useId:rt,unstable_isNewReconciler:!1},hw={readContext:Dt,useCallback:function(e,t){return nn().memoizedState=[e,t===void 0?null:t],e},useContext:Dt,useEffect:Af,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ks(4194308,4,Oh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ks(4194308,4,e,t)},useInsertionEffect:function(e,t){return ks(4,2,e,t)},useMemo:function(e,t){var n=nn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=nn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=pw.bind(null,Ie,e),[r.memoizedState,e]},useRef:function(e){var t=nn();return e={current:e},t.memoizedState=e},useState:Df,useDebugValue:qu,useDeferredValue:function(e){return nn().memoizedState=e},useTransition:function(){var e=Df(!1),t=e[0];return e=fw.bind(null,e[1]),nn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ie,o=nn();if(Re){if(n===void 0)throw Error(X(407));n=n()}else{if(n=t(),Qe===null)throw Error(X(349));kr&30||bh(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Af(Eh.bind(null,r,s,e),[e]),r.flags|=2048,Ni(9,Sh.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=nn(),t=Qe.identifierPrefix;if(Re){var n=yn,r=vn;n=(r&~(1<<32-Gt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Pi++,0")&&(c=c.replace("",e.displayName)),c}while(1<=a&&0<=l);break}}}finally{rl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Zo(e):""}function Gy(e){switch(e.tag){case 5:return Zo(e.type);case 16:return Zo("Lazy");case 13:return Zo("Suspense");case 19:return Zo("SuspenseList");case 0:case 2:case 15:return e=ol(e.type,!1),e;case 11:return e=ol(e.type.render,!1),e;case 1:return e=ol(e.type,!0),e;default:return""}}function rc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Yr:return"Fragment";case Gr:return"Portal";case ec:return"Profiler";case Su:return"StrictMode";case tc:return"Suspense";case nc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case vm:return(e.displayName||"Context")+".Consumer";case gm:return(e._context.displayName||"Context")+".Provider";case Eu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Cu:return t=e.displayName||null,t!==null?t:rc(e.type)||"Memo";case $n:t=e._payload,e=e._init;try{return rc(e(t))}catch{}}return null}function Yy(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return rc(t);case 8:return t===Su?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function nr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ky(e){var t=wm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,s.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Yi(e){e._valueTracker||(e._valueTracker=Ky(e))}function xm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=wm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function oc(e,t){var n=t.checked;return De({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function tf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=nr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function bm(e,t){t=t.checked,t!=null&&bu(e,"checked",t,!1)}function ic(e,t){bm(e,t);var n=nr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?sc(e,t.type,n):t.hasOwnProperty("defaultValue")&&sc(e,t.type,nr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function nf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function sc(e,t,n){(t!=="number"||zs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Jo=Array.isArray;function oo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ki.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function mi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ri={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Xy=["Webkit","ms","Moz","O"];Object.keys(ri).forEach(function(e){Xy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ri[t]=ri[e]})});function Tm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ri.hasOwnProperty(e)&&ri[e]?(""+t).trim():t+"px"}function Pm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Tm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var qy=De({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function cc(e,t){if(t){if(qy[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(q(62))}}function uc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var dc=null;function Tu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fc=null,io=null,so=null;function sf(e){if(e=zi(e)){if(typeof fc!="function")throw Error(q(280));var t=e.stateNode;t&&(t=Ma(t),fc(e.stateNode,e.type,t))}}function km(e){io?so?so.push(e):so=[e]:io=e}function Nm(){if(io){var e=io,t=so;if(so=io=null,sf(e),t)for(e=0;e>>=0,e===0?32:31-(a1(e)/l1|0)|0}var Xi=64,qi=4194304;function ei(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Vs(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?r=ei(l):(s&=a,s!==0&&(r=ei(s)))}else a=n&~o,a!==0?r=ei(a):s!==0&&(r=ei(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Di(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Xt(t),e[t]=n}function f1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ii),hf=" ",gf=!1;function Km(e,t){switch(e){case"keyup":return B1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Kr=!1;function V1(e,t){switch(e){case"compositionend":return Xm(t);case"keypress":return t.which!==32?null:(gf=!0,hf);case"textInput":return e=t.data,e===hf&&gf?null:e;default:return null}}function H1(e,t){if(Kr)return e==="compositionend"||!_u&&Km(e,t)?(e=Gm(),Es=ju=Hn=null,Kr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=xf(n)}}function Jm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Jm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function eh(){for(var e=window,t=zs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zs(e.document)}return t}function Lu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Z1(e){var t=eh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Jm(n.ownerDocument.documentElement,n)){if(r!==null&&Lu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=bf(n,s);var a=bf(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Xr=null,yc=null,ai=null,wc=!1;function Sf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;wc||Xr==null||Xr!==zs(r)||(r=Xr,"selectionStart"in r&&Lu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ai&&xi(ai,r)||(ai=r,r=Us(yc,"onSelect"),0Zr||(e.current=Tc[Zr],Tc[Zr]=null,Zr--)}function Pe(e,t){Zr++,Tc[Zr]=e.current,e.current=t}var rr={},ut=lr(rr),xt=lr(!1),Tr=rr;function vo(e,t){var n=e.type.contextTypes;if(!n)return rr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function bt(e){return e=e.childContextTypes,e!=null}function Ys(){je(xt),je(ut)}function Of(e,t,n){if(ut.current!==rr)throw Error(q(168));Pe(ut,t),Pe(xt,n)}function ch(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(q(108,Yy(e)||"Unknown",o));return De({},n,r)}function Ks(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rr,Tr=ut.current,Pe(ut,e),Pe(xt,xt.current),!0}function jf(e,t,n){var r=e.stateNode;if(!r)throw Error(q(169));n?(e=ch(e,t,Tr),r.__reactInternalMemoizedMergedChildContext=e,je(xt),je(ut),Pe(ut,e)):je(xt),Pe(xt,n)}var yn=null,_a=!1,yl=!1;function uh(e){yn===null?yn=[e]:yn.push(e)}function uw(e){_a=!0,uh(e)}function cr(){if(!yl&&yn!==null){yl=!0;var e=0,t=be;try{var n=yn;for(be=1;e>=a,o-=a,wn=1<<32-Xt(t)+o|n<P?(O=T,T=null):O=T.sibling;var R=h(g,T,y[P],E);if(R===null){T===null&&(T=O);break}e&&T&&R.alternate===null&&t(g,T),p=s(R,p,P),k===null?C=R:k.sibling=R,k=R,T=O}if(P===y.length)return n(g,T),Me&&vr(g,P),C;if(T===null){for(;PP?(O=T,T=null):O=T.sibling;var z=h(g,T,R.value,E);if(z===null){T===null&&(T=O);break}e&&T&&z.alternate===null&&t(g,T),p=s(z,p,P),k===null?C=z:k.sibling=z,k=z,T=O}if(R.done)return n(g,T),Me&&vr(g,P),C;if(T===null){for(;!R.done;P++,R=y.next())R=f(g,R.value,E),R!==null&&(p=s(R,p,P),k===null?C=R:k.sibling=R,k=R);return Me&&vr(g,P),C}for(T=r(g,T);!R.done;P++,R=y.next())R=m(T,g,P,R.value,E),R!==null&&(e&&R.alternate!==null&&T.delete(R.key===null?P:R.key),p=s(R,p,P),k===null?C=R:k.sibling=R,k=R);return e&&T.forEach(function(j){return t(g,j)}),Me&&vr(g,P),C}function S(g,p,y,E){if(typeof y=="object"&&y!==null&&y.type===Yr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Gi:e:{for(var C=y.key,k=p;k!==null;){if(k.key===C){if(C=y.type,C===Yr){if(k.tag===7){n(g,k.sibling),p=o(k,y.props.children),p.return=g,g=p;break e}}else if(k.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===$n&&_f(C)===k.type){n(g,k.sibling),p=o(k,y.props),p.ref=Uo(g,k,y),p.return=g,g=p;break e}n(g,k);break}else t(g,k);k=k.sibling}y.type===Yr?(p=Er(y.props.children,g.mode,E,y.key),p.return=g,g=p):(E=Rs(y.type,y.key,y.props,null,g.mode,E),E.ref=Uo(g,p,y),E.return=g,g=E)}return a(g);case Gr:e:{for(k=y.key;p!==null;){if(p.key===k)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){n(g,p.sibling),p=o(p,y.children||[]),p.return=g,g=p;break e}else{n(g,p);break}else t(g,p);p=p.sibling}p=Pl(y,g.mode,E),p.return=g,g=p}return a(g);case $n:return k=y._init,S(g,p,k(y._payload),E)}if(Jo(y))return x(g,p,y,E);if(Bo(y))return w(g,p,y,E);rs(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(n(g,p.sibling),p=o(p,y),p.return=g,g=p):(n(g,p),p=Tl(y,g.mode,E),p.return=g,g=p),a(g)):n(g,p)}return S}var wo=mh(!0),hh=mh(!1),Qs=lr(null),Zs=null,to=null,zu=null;function $u(){zu=to=Zs=null}function Bu(e){var t=Qs.current;je(Qs),e._currentValue=t}function Nc(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function lo(e,t){Zs=e,zu=to=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(wt=!0),e.firstContext=null)}function Bt(e){var t=e._currentValue;if(zu!==e)if(e={context:e,memoizedValue:t,next:null},to===null){if(Zs===null)throw Error(q(308));to=e,Zs.dependencies={lanes:0,firstContext:e}}else to=to.next=e;return t}var xr=null;function Fu(e){xr===null?xr=[e]:xr.push(e)}function gh(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Fu(t)):(n.next=o.next,o.next=n),t.interleaved=n,Cn(e,r)}function Cn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Bn=!1;function Vu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function vh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function bn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Qn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,we&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Cn(e,n)}return o=r.interleaved,o===null?(t.next=t,Fu(r)):(t.next=o.next,o.next=t),r.interleaved=t,Cn(e,n)}function Ts(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ku(e,n)}}function Lf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=a:s=s.next=a,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Js(e,t,n,r){var o=e.updateQueue;Bn=!1;var s=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var c=l,u=c.next;c.next=null,a===null?s=u:a.next=u,a=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(s!==null){var f=o.baseState;a=0,d=u=c=null,l=s;do{var h=l.lane,m=l.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:m,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,w=l;switch(h=t,m=n,w.tag){case 1:if(x=w.payload,typeof x=="function"){f=x.call(m,f,h);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=w.payload,h=typeof x=="function"?x.call(m,f,h):x,h==null)break e;f=De({},f,h);break e;case 2:Bn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[l]:h.push(l))}else m={eventTime:m,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=m,c=f):d=d.next=m,a|=h;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;h=l,l=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(d===null&&(c=f),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Nr|=a,e.lanes=a,e.memoizedState=f}}function If(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=xl.transition;xl.transition={};try{e(!1),t()}finally{be=n,xl.transition=r}}function Lh(){return Ft().memoizedState}function mw(e,t,n){var r=Jn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ih(e))Dh(t,n);else if(n=gh(e,t,n,r),n!==null){var o=mt();qt(n,e,r,o),Ah(n,t,r)}}function hw(e,t,n){var r=Jn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ih(e))Dh(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var a=t.lastRenderedState,l=s(a,n);if(o.hasEagerState=!0,o.eagerState=l,Zt(l,a)){var c=t.interleaved;c===null?(o.next=o,Fu(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=gh(e,t,o,r),n!==null&&(o=mt(),qt(n,e,r,o),Ah(n,t,r))}}function Ih(e){var t=e.alternate;return e===Ie||t!==null&&t===Ie}function Dh(e,t){li=ta=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ah(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ku(e,n)}}var na={readContext:Bt,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useInsertionEffect:st,useLayoutEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useMutableSource:st,useSyncExternalStore:st,useId:st,unstable_isNewReconciler:!1},gw={readContext:Bt,useCallback:function(e,t){return on().memoizedState=[e,t===void 0?null:t],e},useContext:Bt,useEffect:Af,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ks(4194308,4,Oh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ks(4194308,4,e,t)},useInsertionEffect:function(e,t){return ks(4,2,e,t)},useMemo:function(e,t){var n=on();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=on();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=mw.bind(null,Ie,e),[r.memoizedState,e]},useRef:function(e){var t=on();return e={current:e},t.memoizedState=e},useState:Df,useDebugValue:qu,useDeferredValue:function(e){return on().memoizedState=e},useTransition:function(){var e=Df(!1),t=e[0];return e=pw.bind(null,e[1]),on().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ie,o=on();if(Me){if(n===void 0)throw Error(q(407));n=n()}else{if(n=t(),Qe===null)throw Error(q(349));kr&30||bh(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Af(Eh.bind(null,r,s,e),[e]),r.flags|=2048,Ni(9,Sh.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=on(),t=Qe.identifierPrefix;if(Me){var n=xn,r=wn;n=(r&~(1<<32-Xt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Pi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[rn]=t,e[Ei]=r,Yh(e,t,!1,!1),t.stateNode=e;e:{switch(a=uc(n,r),n){case"dialog":Ne("cancel",e),Ne("close",e),o=r;break;case"iframe":case"object":case"embed":Ne("load",e),o=r;break;case"video":case"audio":for(o=0;oSo&&(t.flags|=128,r=!0,Go(s,!1),t.lanes=4194304)}else{if(!r)if(e=ea(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Go(s,!0),s.tail===null&&s.tailMode==="hidden"&&!a.alternate&&!Re)return ot(t),null}else 2*Be()-s.renderingStartTime>So&&n!==1073741824&&(t.flags|=128,r=!0,Go(s,!1),t.lanes=4194304);s.isBackwards?(a.sibling=t.child,t.child=a):(n=s.last,n!==null?n.sibling=a:t.child=a,s.last=a)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Be(),t.sibling=null,n=Le.current,Pe(Le,r?n&1|2:n&1),t):(ot(t),null);case 22:case 23:return nd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Et&1073741824&&(ot(t),t.subtreeFlags&6&&(t.flags|=8192)):ot(t),null;case 24:return null;case 25:return null}throw Error(X(156,t.tag))}function Ew(e,t){switch(Du(t),t.tag){case 1:return wt(t.type)&&Ys(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xo(),je(yt),je(at),Uu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Wu(t),null;case 13:if(je(Le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(X(340));yo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return je(Le),null;case 4:return xo(),null;case 10:return Bu(t.type._context),null;case 22:case 23:return nd(),null;case 24:return null;default:return null}}var is=!1,st=!1,Cw=typeof WeakSet=="function"?WeakSet:Set,ne=null;function no(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ze(e,t,r)}else n.current=null}function Ac(e,t,n){try{n()}catch(r){ze(e,t,r)}}var Kf=!1;function Tw(e,t){if(xc=Hs,e=eh(),Lu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var a=0,l=-1,c=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var m;f!==n||o!==0&&f.nodeType!==3||(l=a+o),f!==s||r!==0&&f.nodeType!==3||(c=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(m=f.firstChild)!==null;)h=f,f=m;for(;;){if(f===e)break t;if(h===n&&++u===o&&(l=a),h===s&&++d===r&&(c=a),(m=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=m}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(bc={focusedElem:e,selectionRange:n},Hs=!1,ne=t;ne!==null;)if(t=ne,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ne=e;else for(;ne!==null;){t=ne;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var w=x.memoizedProps,S=x.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?w:Ht(t.type,w),S);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(X(163))}}catch(E){ze(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,ne=e;break}ne=t.return}return x=Kf,Kf=!1,x}function ci(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&Ac(t,n,s)}o=o.next}while(o!==r)}}function Da(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function zc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function qh(e){var t=e.alternate;t!==null&&(e.alternate=null,qh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[rn],delete t[Ei],delete t[Cc],delete t[aw],delete t[lw])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Qh(e){return e.tag===5||e.tag===3||e.tag===4}function Xf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $c(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Gs));else if(r!==4&&(e=e.child,e!==null))for($c(e,t,n),e=e.sibling;e!==null;)$c(e,t,n),e=e.sibling}function Bc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Bc(e,t,n),e=e.sibling;e!==null;)Bc(e,t,n),e=e.sibling}var Je=null,Wt=!1;function Rn(e,t,n){for(n=n.child;n!==null;)Zh(e,t,n),n=n.sibling}function Zh(e,t,n){if(an&&typeof an.onCommitFiberUnmount=="function")try{an.onCommitFiberUnmount(Na,n)}catch{}switch(n.tag){case 5:st||no(n,t);case 6:var r=Je,o=Wt;Je=null,Rn(e,t,n),Je=r,Wt=o,Je!==null&&(Wt?(e=Je,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Je.removeChild(n.stateNode));break;case 18:Je!==null&&(Wt?(e=Je,n=n.stateNode,e.nodeType===8?vl(e.parentNode,n):e.nodeType===1&&vl(e,n),yi(e)):vl(Je,n.stateNode));break;case 4:r=Je,o=Wt,Je=n.stateNode.containerInfo,Wt=!0,Rn(e,t,n),Je=r,Wt=o;break;case 0:case 11:case 14:case 15:if(!st&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,a=s.destroy;s=s.tag,a!==void 0&&(s&2||s&4)&&Ac(n,t,a),o=o.next}while(o!==r)}Rn(e,t,n);break;case 1:if(!st&&(no(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ze(n,t,l)}Rn(e,t,n);break;case 21:Rn(e,t,n);break;case 22:n.mode&1?(st=(r=st)||n.memoizedState!==null,Rn(e,t,n),st=r):Rn(e,t,n);break;default:Rn(e,t,n)}}function qf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Cw),t.forEach(function(r){var o=Lw.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ft(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~s}if(r=o,r=Be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*kw(r/1960))-r,10e?16:e,Hn===null)var r=!1;else{if(e=Hn,Hn=null,ia=0,we&6)throw Error(X(331));var o=we;for(we|=4,ne=e.current;ne!==null;){var s=ne,a=s.child;if(ne.flags&16){var l=s.deletions;if(l!==null){for(var c=0;cBe()-ed?Sr(e,0):Ju|=n),xt(e,t)}function sg(e,t){t===0&&(e.mode&1?(t=qi,qi<<=1,!(qi&130023424)&&(qi=4194304)):t=1);var n=ft();e=Sn(e,t),e!==null&&(Di(e,t,n),xt(e,n))}function _w(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),sg(e,n)}function Lw(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(X(314))}r!==null&&r.delete(t),sg(e,n)}var ag;ag=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||yt.current)vt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return vt=!1,bw(e,t,n);vt=!!(e.flags&131072)}else vt=!1,Re&&t.flags&1048576&&dh(t,qs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ns(e,t),e=t.pendingProps;var o=vo(t,at.current);lo(t,n),o=Yu(null,t,r,e,o,n);var s=Ku();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,wt(r)?(s=!0,Ks(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Vu(t),o.updater=Ia,t.stateNode=o,o._reactInternals=t,jc(t,r,e,n),t=_c(null,t,r,!0,s,n)):(t.tag=0,Re&&s&&Iu(t),dt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ns(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Dw(r),e=Ht(r,e),o){case 0:t=Rc(null,t,r,e,n);break e;case 1:t=Uf(null,t,r,e,n);break e;case 11:t=Hf(null,t,r,e,n);break e;case 14:t=Wf(null,t,r,Ht(r.type,e),n);break e}throw Error(X(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ht(r,o),Rc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ht(r,o),Uf(e,t,r,o,n);case 3:e:{if(Wh(t),e===null)throw Error(X(387));r=t.pendingProps,s=t.memoizedState,o=s.element,vh(e,t),Js(t,r,null,n);var a=t.memoizedState;if(r=a.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=bo(Error(X(423)),t),t=Gf(e,t,r,n,o);break e}else if(r!==o){o=bo(Error(X(424)),t),t=Gf(e,t,r,n,o);break e}else for(Pt=Xn(t.stateNode.containerInfo.firstChild),kt=t,Re=!0,Ut=null,n=hh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(yo(),r===o){t=En(e,t,n);break e}dt(e,t,r,n)}t=t.child}return t;case 5:return yh(t),e===null&&kc(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,a=o.children,Sc(r,o)?a=null:s!==null&&Sc(r,s)&&(t.flags|=32),Hh(e,t),dt(e,t,a,n),t.child;case 6:return e===null&&kc(t),null;case 13:return Uh(e,t,n);case 4:return Hu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=wo(t,null,r,n):dt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ht(r,o),Hf(e,t,r,o,n);case 7:return dt(e,t,t.pendingProps,n),t.child;case 8:return dt(e,t,t.pendingProps.children,n),t.child;case 12:return dt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,a=o.value,Pe(Qs,r._currentValue),r._currentValue=a,s!==null)if(Xt(s.value,a)){if(s.children===o.children&&!yt.current){t=En(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){a=s.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(s.tag===1){c=wn(-1,n&-n),c.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),Nc(s.return,n,t),l.lanes|=n;break}c=c.next}}else if(s.tag===10)a=s.type===t.type?null:s.child;else if(s.tag===18){if(a=s.return,a===null)throw Error(X(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Nc(a,n,t),a=s.sibling}else a=s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===t){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}dt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,lo(t,n),o=Dt(o),r=r(o),t.flags|=1,dt(e,t,r,n),t.child;case 14:return r=t.type,o=Ht(r,t.pendingProps),o=Ht(r.type,o),Wf(e,t,r,o,n);case 15:return Fh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ht(r,o),Ns(e,t),t.tag=1,wt(r)?(e=!0,Ks(t)):e=!1,lo(t,n),zh(t,r,o),jc(t,r,o,n),_c(null,t,r,!0,e,n);case 19:return Gh(e,t,n);case 22:return Vh(e,t,n)}throw Error(X(156,t.tag))};function lg(e,t){return Im(e,t)}function Iw(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lt(e,t,n,r){return new Iw(e,t,n,r)}function od(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Dw(e){if(typeof e=="function")return od(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Eu)return 11;if(e===Cu)return 14}return 2}function Jn(e,t){var n=e.alternate;return n===null?(n=Lt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ms(e,t,n,r,o,s){var a=2;if(r=e,typeof e=="function")od(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Yr:return Er(n.children,o,s,t);case Su:a=8,o|=8;break;case ec:return e=Lt(12,n,t,o|2),e.elementType=ec,e.lanes=s,e;case tc:return e=Lt(13,n,t,o),e.elementType=tc,e.lanes=s,e;case nc:return e=Lt(19,n,t,o),e.elementType=nc,e.lanes=s,e;case ym:return za(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case gm:a=10;break e;case vm:a=9;break e;case Eu:a=11;break e;case Cu:a=14;break e;case zn:a=16,r=null;break e}throw Error(X(130,e==null?e:typeof e,""))}return t=Lt(a,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function Er(e,t,n,r){return e=Lt(7,e,r,t),e.lanes=n,e}function za(e,t,n,r){return e=Lt(22,e,r,t),e.elementType=ym,e.lanes=n,e.stateNode={isHidden:!1},e}function Tl(e,t,n){return e=Lt(6,e,null,t),e.lanes=n,e}function Pl(e,t,n){return t=Lt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Aw(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=sl(0),this.expirationTimes=sl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function id(e,t,n,r,o,s,a,l,c){return e=new Aw(e,t,n,l,c),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Lt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vu(s),e}function zw(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(fg)}catch(e){console.error(e)}}fg(),fm.exports=jt;var No=fm.exports;const pg=Jp(No);var mg,op=No;mg=op.createRoot,op.hydrateRoot;/** +`+s.stack}return{value:e,source:t,stack:o,digest:null}}function El(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Rc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ww=typeof WeakMap=="function"?WeakMap:Map;function $h(e,t,n){n=bn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){oa||(oa=!0,Fc=r),Rc(e,t)},n}function Bh(e,t,n){n=bn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Rc(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Rc(e,t),typeof r!="function"&&(Zn===null?Zn=new Set([this]):Zn.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Bf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ww;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=_w.bind(null,e,t,n),t.then(e,e))}function Ff(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Vf(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=bn(-1,1),t.tag=2,Qn(n,t,1))),n.lanes|=1),e)}var xw=On.ReactCurrentOwner,wt=!1;function pt(e,t,n,r){t.child=e===null?hh(t,null,n,r):wo(t,e.child,n,r)}function Hf(e,t,n,r,o){n=n.render;var s=t.ref;return lo(t,o),r=Yu(e,t,n,r,s,o),n=Ku(),e!==null&&!wt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Tn(e,t,o)):(Me&&n&&Iu(t),t.flags|=1,pt(e,t,r,o),t.child)}function Wf(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!od(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Fh(e,t,s,r,o)):(e=Rs(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var a=s.memoizedProps;if(n=n.compare,n=n!==null?n:xi,n(a,r)&&e.ref===t.ref)return Tn(e,t,o)}return t.flags|=1,e=er(s,r),e.ref=t.ref,e.return=t,t.child=e}function Fh(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(xi(s,r)&&e.ref===t.ref)if(wt=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(wt=!0);else return t.lanes=e.lanes,Tn(e,t,o)}return Mc(e,t,n,r,o)}function Vh(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Pe(ro,Pt),Pt|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Pe(ro,Pt),Pt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,Pe(ro,Pt),Pt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,Pe(ro,Pt),Pt|=r;return pt(e,t,o,n),t.child}function Hh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Mc(e,t,n,r,o){var s=bt(n)?Tr:ut.current;return s=vo(t,s),lo(t,o),n=Yu(e,t,n,r,s,o),r=Ku(),e!==null&&!wt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Tn(e,t,o)):(Me&&r&&Iu(t),t.flags|=1,pt(e,t,n,o),t.child)}function Uf(e,t,n,r,o){if(bt(n)){var s=!0;Ks(t)}else s=!1;if(lo(t,o),t.stateNode===null)Ns(e,t),zh(t,n,r),jc(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var c=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Bt(u):(u=bt(n)?Tr:ut.current,u=vo(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||c!==u)&&$f(t,a,r,u),Bn=!1;var h=t.memoizedState;a.state=h,Js(t,r,a,o),c=t.memoizedState,l!==r||h!==c||xt.current||Bn?(typeof d=="function"&&(Oc(t,n,d,r),c=t.memoizedState),(l=Bn||zf(t,n,l,r,h,c,u))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=u,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,vh(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Gt(t.type,l),a.props=u,f=t.pendingProps,h=a.context,c=n.contextType,typeof c=="object"&&c!==null?c=Bt(c):(c=bt(n)?Tr:ut.current,c=vo(t,c));var m=n.getDerivedStateFromProps;(d=typeof m=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==f||h!==c)&&$f(t,a,r,c),Bn=!1,h=t.memoizedState,a.state=h,Js(t,r,a,o);var x=t.memoizedState;l!==f||h!==x||xt.current||Bn?(typeof m=="function"&&(Oc(t,n,m,r),x=t.memoizedState),(u=Bn||zf(t,n,u,r,h,x,c)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,x,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,x,c)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),a.props=r,a.state=x,a.context=c,r=u):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return _c(e,t,n,r,s,o)}function _c(e,t,n,r,o,s){Hh(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&jf(t,n,!1),Tn(e,t,s);r=t.stateNode,xw.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=wo(t,e.child,null,s),t.child=wo(t,null,l,s)):pt(e,t,l,s),t.memoizedState=r.state,o&&jf(t,n,!0),t.child}function Wh(e){var t=e.stateNode;t.pendingContext?Of(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Of(e,t.context,!1),Hu(e,t.containerInfo)}function Gf(e,t,n,r,o){return yo(),Au(o),t.flags|=256,pt(e,t,n,r),t.child}var Lc={dehydrated:null,treeContext:null,retryLane:0};function Ic(e){return{baseLanes:e,cachePool:null,transitions:null}}function Uh(e,t,n){var r=t.pendingProps,o=Le.current,s=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Pe(Le,o&1),e===null)return kc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,s?(r=t.mode,s=t.child,a={mode:"hidden",children:a},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=a):s=za(a,r,0,null),e=Er(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ic(n),t.memoizedState=Lc,e):Qu(t,a));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return bw(e,t,a,r,l,o,n);if(s){s=r.fallback,a=t.mode,o=e.child,l=o.sibling;var c={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=er(o,c),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?s=er(l,s):(s=Er(s,a,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,a=e.child.memoizedState,a=a===null?Ic(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},s.memoizedState=a,s.childLanes=e.childLanes&~n,t.memoizedState=Lc,r}return s=e.child,e=s.sibling,r=er(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Qu(e,t){return t=za({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function os(e,t,n,r){return r!==null&&Au(r),wo(t,e.child,null,n),e=Qu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bw(e,t,n,r,o,s,a){if(n)return t.flags&256?(t.flags&=-257,r=El(Error(q(422))),os(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=za({mode:"visible",children:r.children},o,0,null),s=Er(s,o,a,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&wo(t,e.child,null,a),t.child.memoizedState=Ic(a),t.memoizedState=Lc,s);if(!(t.mode&1))return os(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(q(419)),r=El(s,r,void 0),os(e,t,a,r)}if(l=(a&e.childLanes)!==0,wt||l){if(r=Qe,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,Cn(e,o),qt(r,e,o,-1))}return rd(),r=El(Error(q(421))),os(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Lw.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,Ot=qn(o.nextSibling),jt=t,Me=!0,Kt=null,e!==null&&(It[Dt++]=wn,It[Dt++]=xn,It[Dt++]=Pr,wn=e.id,xn=e.overflow,Pr=t),t=Qu(t,r.children),t.flags|=4096,t)}function Yf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Nc(e.return,t,n)}function Cl(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function Gh(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(pt(e,t,r.children,n),r=Le.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Yf(e,n,t);else if(e.tag===19)Yf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Pe(Le,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&ea(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Cl(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&ea(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Cl(t,!0,n,null,s);break;case"together":Cl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ns(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Tn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Nr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(q(153));if(t.child!==null){for(e=t.child,n=er(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=er(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Sw(e,t,n){switch(t.tag){case 3:Wh(t),yo();break;case 5:yh(t);break;case 1:bt(t.type)&&Ks(t);break;case 4:Hu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Pe(Qs,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Pe(Le,Le.current&1),t.flags|=128,null):n&t.child.childLanes?Uh(e,t,n):(Pe(Le,Le.current&1),e=Tn(e,t,n),e!==null?e.sibling:null);Pe(Le,Le.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Gh(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Pe(Le,Le.current),r)break;return null;case 22:case 23:return t.lanes=0,Vh(e,t,n)}return Tn(e,t,n)}var Yh,Dc,Kh,Xh;Yh=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Dc=function(){};Kh=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,br(un.current);var s=null;switch(n){case"input":o=oc(e,o),r=oc(e,r),s=[];break;case"select":o=De({},o,{value:void 0}),r=De({},r,{value:void 0}),s=[];break;case"textarea":o=ac(e,o),r=ac(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Gs)}cc(n,r);var a;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(pi.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var c=r[u];if(l=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(s||(s=[]),s.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(s=s||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(s=s||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(pi.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&Ne("scroll",e),s||l===c||(s=[])):(s=s||[]).push(u,c))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};Xh=function(e,t,n,r){n!==r&&(t.flags|=4)};function Go(e,t){if(!Me)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function at(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ew(e,t,n){var r=t.pendingProps;switch(Du(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return at(t),null;case 1:return bt(t.type)&&Ys(),at(t),null;case 3:return r=t.stateNode,xo(),je(xt),je(ut),Uu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ns(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Kt!==null&&(Wc(Kt),Kt=null))),Dc(e,t),at(t),null;case 5:Wu(t);var o=br(Ti.current);if(n=t.type,e!==null&&t.stateNode!=null)Kh(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(q(166));return at(t),null}if(e=br(un.current),ns(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[sn]=t,r[Ei]=s,e=(t.mode&1)!==0,n){case"dialog":Ne("cancel",r),Ne("close",r);break;case"iframe":case"object":case"embed":Ne("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[sn]=t,e[Ei]=r,Yh(e,t,!1,!1),t.stateNode=e;e:{switch(a=uc(n,r),n){case"dialog":Ne("cancel",e),Ne("close",e),o=r;break;case"iframe":case"object":case"embed":Ne("load",e),o=r;break;case"video":case"audio":for(o=0;oSo&&(t.flags|=128,r=!0,Go(s,!1),t.lanes=4194304)}else{if(!r)if(e=ea(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Go(s,!0),s.tail===null&&s.tailMode==="hidden"&&!a.alternate&&!Me)return at(t),null}else 2*Fe()-s.renderingStartTime>So&&n!==1073741824&&(t.flags|=128,r=!0,Go(s,!1),t.lanes=4194304);s.isBackwards?(a.sibling=t.child,t.child=a):(n=s.last,n!==null?n.sibling=a:t.child=a,s.last=a)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Fe(),t.sibling=null,n=Le.current,Pe(Le,r?n&1|2:n&1),t):(at(t),null);case 22:case 23:return nd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Pt&1073741824&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),null;case 24:return null;case 25:return null}throw Error(q(156,t.tag))}function Cw(e,t){switch(Du(t),t.tag){case 1:return bt(t.type)&&Ys(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xo(),je(xt),je(ut),Uu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Wu(t),null;case 13:if(je(Le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));yo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return je(Le),null;case 4:return xo(),null;case 10:return Bu(t.type._context),null;case 22:case 23:return nd(),null;case 24:return null;default:return null}}var is=!1,ct=!1,Tw=typeof WeakSet=="function"?WeakSet:Set,te=null;function no(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ze(e,t,r)}else n.current=null}function Ac(e,t,n){try{n()}catch(r){ze(e,t,r)}}var Kf=!1;function Pw(e,t){if(xc=Hs,e=eh(),Lu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var a=0,l=-1,c=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var m;f!==n||o!==0&&f.nodeType!==3||(l=a+o),f!==s||r!==0&&f.nodeType!==3||(c=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(m=f.firstChild)!==null;)h=f,f=m;for(;;){if(f===e)break t;if(h===n&&++u===o&&(l=a),h===s&&++d===r&&(c=a),(m=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=m}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(bc={focusedElem:e,selectionRange:n},Hs=!1,te=t;te!==null;)if(t=te,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,te=e;else for(;te!==null;){t=te;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var w=x.memoizedProps,S=x.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?w:Gt(t.type,w),S);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(q(163))}}catch(E){ze(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,te=e;break}te=t.return}return x=Kf,Kf=!1,x}function ci(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&Ac(t,n,s)}o=o.next}while(o!==r)}}function Da(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function zc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function qh(e){var t=e.alternate;t!==null&&(e.alternate=null,qh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[sn],delete t[Ei],delete t[Cc],delete t[lw],delete t[cw])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Qh(e){return e.tag===5||e.tag===3||e.tag===4}function Xf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $c(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Gs));else if(r!==4&&(e=e.child,e!==null))for($c(e,t,n),e=e.sibling;e!==null;)$c(e,t,n),e=e.sibling}function Bc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Bc(e,t,n),e=e.sibling;e!==null;)Bc(e,t,n),e=e.sibling}var Je=null,Yt=!1;function Ln(e,t,n){for(n=n.child;n!==null;)Zh(e,t,n),n=n.sibling}function Zh(e,t,n){if(cn&&typeof cn.onCommitFiberUnmount=="function")try{cn.onCommitFiberUnmount(Na,n)}catch{}switch(n.tag){case 5:ct||no(n,t);case 6:var r=Je,o=Yt;Je=null,Ln(e,t,n),Je=r,Yt=o,Je!==null&&(Yt?(e=Je,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Je.removeChild(n.stateNode));break;case 18:Je!==null&&(Yt?(e=Je,n=n.stateNode,e.nodeType===8?vl(e.parentNode,n):e.nodeType===1&&vl(e,n),yi(e)):vl(Je,n.stateNode));break;case 4:r=Je,o=Yt,Je=n.stateNode.containerInfo,Yt=!0,Ln(e,t,n),Je=r,Yt=o;break;case 0:case 11:case 14:case 15:if(!ct&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,a=s.destroy;s=s.tag,a!==void 0&&(s&2||s&4)&&Ac(n,t,a),o=o.next}while(o!==r)}Ln(e,t,n);break;case 1:if(!ct&&(no(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ze(n,t,l)}Ln(e,t,n);break;case 21:Ln(e,t,n);break;case 22:n.mode&1?(ct=(r=ct)||n.memoizedState!==null,Ln(e,t,n),ct=r):Ln(e,t,n);break;default:Ln(e,t,n)}}function qf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Tw),t.forEach(function(r){var o=Iw.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Wt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~s}if(r=o,r=Fe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Nw(r/1960))-r,10e?16:e,Wn===null)var r=!1;else{if(e=Wn,Wn=null,ia=0,we&6)throw Error(q(331));var o=we;for(we|=4,te=e.current;te!==null;){var s=te,a=s.child;if(te.flags&16){var l=s.deletions;if(l!==null){for(var c=0;cFe()-ed?Sr(e,0):Ju|=n),St(e,t)}function sg(e,t){t===0&&(e.mode&1?(t=qi,qi<<=1,!(qi&130023424)&&(qi=4194304)):t=1);var n=mt();e=Cn(e,t),e!==null&&(Di(e,t,n),St(e,n))}function Lw(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),sg(e,n)}function Iw(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(q(314))}r!==null&&r.delete(t),sg(e,n)}var ag;ag=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||xt.current)wt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return wt=!1,Sw(e,t,n);wt=!!(e.flags&131072)}else wt=!1,Me&&t.flags&1048576&&dh(t,qs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ns(e,t),e=t.pendingProps;var o=vo(t,ut.current);lo(t,n),o=Yu(null,t,r,e,o,n);var s=Ku();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,bt(r)?(s=!0,Ks(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Vu(t),o.updater=Ia,t.stateNode=o,o._reactInternals=t,jc(t,r,e,n),t=_c(null,t,r,!0,s,n)):(t.tag=0,Me&&s&&Iu(t),pt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ns(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Aw(r),e=Gt(r,e),o){case 0:t=Mc(null,t,r,e,n);break e;case 1:t=Uf(null,t,r,e,n);break e;case 11:t=Hf(null,t,r,e,n);break e;case 14:t=Wf(null,t,r,Gt(r.type,e),n);break e}throw Error(q(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Gt(r,o),Mc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Gt(r,o),Uf(e,t,r,o,n);case 3:e:{if(Wh(t),e===null)throw Error(q(387));r=t.pendingProps,s=t.memoizedState,o=s.element,vh(e,t),Js(t,r,null,n);var a=t.memoizedState;if(r=a.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=bo(Error(q(423)),t),t=Gf(e,t,r,n,o);break e}else if(r!==o){o=bo(Error(q(424)),t),t=Gf(e,t,r,n,o);break e}else for(Ot=qn(t.stateNode.containerInfo.firstChild),jt=t,Me=!0,Kt=null,n=hh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(yo(),r===o){t=Tn(e,t,n);break e}pt(e,t,r,n)}t=t.child}return t;case 5:return yh(t),e===null&&kc(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,a=o.children,Sc(r,o)?a=null:s!==null&&Sc(r,s)&&(t.flags|=32),Hh(e,t),pt(e,t,a,n),t.child;case 6:return e===null&&kc(t),null;case 13:return Uh(e,t,n);case 4:return Hu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=wo(t,null,r,n):pt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Gt(r,o),Hf(e,t,r,o,n);case 7:return pt(e,t,t.pendingProps,n),t.child;case 8:return pt(e,t,t.pendingProps.children,n),t.child;case 12:return pt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,a=o.value,Pe(Qs,r._currentValue),r._currentValue=a,s!==null)if(Zt(s.value,a)){if(s.children===o.children&&!xt.current){t=Tn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){a=s.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(s.tag===1){c=bn(-1,n&-n),c.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),Nc(s.return,n,t),l.lanes|=n;break}c=c.next}}else if(s.tag===10)a=s.type===t.type?null:s.child;else if(s.tag===18){if(a=s.return,a===null)throw Error(q(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Nc(a,n,t),a=s.sibling}else a=s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===t){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}pt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,lo(t,n),o=Bt(o),r=r(o),t.flags|=1,pt(e,t,r,n),t.child;case 14:return r=t.type,o=Gt(r,t.pendingProps),o=Gt(r.type,o),Wf(e,t,r,o,n);case 15:return Fh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Gt(r,o),Ns(e,t),t.tag=1,bt(r)?(e=!0,Ks(t)):e=!1,lo(t,n),zh(t,r,o),jc(t,r,o,n),_c(null,t,r,!0,e,n);case 19:return Gh(e,t,n);case 22:return Vh(e,t,n)}throw Error(q(156,t.tag))};function lg(e,t){return Im(e,t)}function Dw(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,n,r){return new Dw(e,t,n,r)}function od(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Aw(e){if(typeof e=="function")return od(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Eu)return 11;if(e===Cu)return 14}return 2}function er(e,t){var n=e.alternate;return n===null?(n=At(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Rs(e,t,n,r,o,s){var a=2;if(r=e,typeof e=="function")od(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Yr:return Er(n.children,o,s,t);case Su:a=8,o|=8;break;case ec:return e=At(12,n,t,o|2),e.elementType=ec,e.lanes=s,e;case tc:return e=At(13,n,t,o),e.elementType=tc,e.lanes=s,e;case nc:return e=At(19,n,t,o),e.elementType=nc,e.lanes=s,e;case ym:return za(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case gm:a=10;break e;case vm:a=9;break e;case Eu:a=11;break e;case Cu:a=14;break e;case $n:a=16,r=null;break e}throw Error(q(130,e==null?e:typeof e,""))}return t=At(a,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function Er(e,t,n,r){return e=At(7,e,r,t),e.lanes=n,e}function za(e,t,n,r){return e=At(22,e,r,t),e.elementType=ym,e.lanes=n,e.stateNode={isHidden:!1},e}function Tl(e,t,n){return e=At(6,e,null,t),e.lanes=n,e}function Pl(e,t,n){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zw(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=sl(0),this.expirationTimes=sl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function id(e,t,n,r,o,s,a,l,c){return e=new zw(e,t,n,l,c),t===1?(t=1,s===!0&&(t|=8)):t=0,s=At(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vu(s),e}function $w(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(fg)}catch(e){console.error(e)}}fg(),fm.exports=_t;var No=fm.exports;const pg=Jp(No);var mg,op=No;mg=op.createRoot,op.hydrateRoot;/** * @remix-run/router v1.21.0 * * Copyright (c) Remix Software Inc. @@ -46,7 +46,7 @@ Error generating stack: `+s.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ji(){return ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function cd(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ww(){return Math.random().toString(36).substr(2,8)}function sp(e,t){return{usr:e.state,key:e.key,idx:t}}function Uc(e,t,n,r){return n===void 0&&(n=null),ji({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ar(t):t,{state:n,key:t&&t.key||r||Ww()})}function la(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ar(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Uw(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,a=o.history,l=Wn.Pop,c=null,u=d();u==null&&(u=0,a.replaceState(ji({},a.state,{idx:u}),""));function d(){return(a.state||{idx:null}).idx}function f(){l=Wn.Pop;let S=d(),g=S==null?null:S-u;u=S,c&&c({action:l,location:w.location,delta:g})}function h(S,g){l=Wn.Push;let p=Uc(w.location,S,g);n&&n(p,S),u=d()+1;let v=sp(p,u),E=w.createHref(p);try{a.pushState(v,"",E)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(E)}s&&c&&c({action:l,location:w.location,delta:1})}function m(S,g){l=Wn.Replace;let p=Uc(w.location,S,g);n&&n(p,S),u=d();let v=sp(p,u),E=w.createHref(p);a.replaceState(v,"",E),s&&c&&c({action:l,location:w.location,delta:0})}function x(S){let g=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof S=="string"?S:la(S);return p=p.replace(/ $/,"%20"),$e(g,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,g)}let w={get action(){return l},get location(){return e(o,a)},listen(S){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(ip,f),c=S,()=>{o.removeEventListener(ip,f),c=null}},createHref(S){return t(o,S)},createURL:x,encodeLocation(S){let g=x(S);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:m,go(S){return a.go(S)}};return w}var ap;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ap||(ap={}));function Gw(e,t,n){return n===void 0&&(n="/"),Yw(e,t,n,!1)}function Yw(e,t,n,r){let o=typeof t=="string"?Ar(t):t,s=Eo(o.pathname||"/",n);if(s==null)return null;let a=hg(e);Kw(a);let l=null;for(let c=0;l==null&&c{let c={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};c.relativePath.startsWith("/")&&($e(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=er([r,c.relativePath]),d=n.concat(c);s.children&&s.children.length>0&&($e(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),hg(s.children,t,d,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:tx(u,s.index),routesMeta:d})};return e.forEach((s,a)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))o(s,a);else for(let c of gg(s.path))o(s,a,c)}),t}function gg(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let a=gg(r.join("/")),l=[];return l.push(...a.map(c=>c===""?s:[s,c].join("/"))),o&&l.push(...a),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function Kw(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:nx(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Xw=/^:[\w-]+$/,qw=3,Qw=2,Zw=1,Jw=10,ex=-2,lp=e=>e==="*";function tx(e,t){let n=e.split("/"),r=n.length;return n.some(lp)&&(r+=ex),t&&(r+=Qw),n.filter(o=>!lp(o)).reduce((o,s)=>o+(Xw.test(s)?qw:s===""?Zw:Jw),r)}function nx(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function rx(e,t,n){let{routesMeta:r}=e,o={},s="/",a=[];for(let l=0;l{let{paramName:h,isOptional:m}=d;if(h==="*"){let w=l[f]||"";a=s.slice(0,s.length-w.length).replace(/(.)\/+$/,"$1")}const x=l[f];return m&&!x?u[h]=void 0:u[h]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:a,pattern:e}}function ox(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),cd(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function ix(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return cd(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Eo(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)||"/"}function sx(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ar(e):e;return{pathname:n?n.startsWith("/")?n:ax(n,t):t,search:ux(r),hash:dx(o)}}function ax(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function kl(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function lx(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function vg(e,t){let n=lx(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function yg(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ar(e):(o=ji({},e),$e(!o.pathname||!o.pathname.includes("?"),kl("?","pathname","search",o)),$e(!o.pathname||!o.pathname.includes("#"),kl("#","pathname","hash",o)),$e(!o.search||!o.search.includes("#"),kl("#","search","hash",o)));let s=e===""||o.pathname==="",a=s?"/":o.pathname,l;if(a==null)l=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),f-=1;o.pathname=h.join("/")}l=f>=0?t[f]:"/"}let c=sx(o,l),u=a&&a!=="/"&&a.endsWith("/"),d=(s||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const er=e=>e.join("/").replace(/\/\/+/g,"/"),cx=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ux=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,dx=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function fx(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const wg=["post","put","patch","delete"];new Set(wg);const px=["get",...wg];new Set(px);/** + */function ji(){return ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function cd(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Uw(){return Math.random().toString(36).substr(2,8)}function sp(e,t){return{usr:e.state,key:e.key,idx:t}}function Uc(e,t,n,r){return n===void 0&&(n=null),ji({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ar(t):t,{state:n,key:t&&t.key||r||Uw()})}function la(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ar(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Gw(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,a=o.history,l=Un.Pop,c=null,u=d();u==null&&(u=0,a.replaceState(ji({},a.state,{idx:u}),""));function d(){return(a.state||{idx:null}).idx}function f(){l=Un.Pop;let S=d(),g=S==null?null:S-u;u=S,c&&c({action:l,location:w.location,delta:g})}function h(S,g){l=Un.Push;let p=Uc(w.location,S,g);n&&n(p,S),u=d()+1;let y=sp(p,u),E=w.createHref(p);try{a.pushState(y,"",E)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(E)}s&&c&&c({action:l,location:w.location,delta:1})}function m(S,g){l=Un.Replace;let p=Uc(w.location,S,g);n&&n(p,S),u=d();let y=sp(p,u),E=w.createHref(p);a.replaceState(y,"",E),s&&c&&c({action:l,location:w.location,delta:0})}function x(S){let g=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof S=="string"?S:la(S);return p=p.replace(/ $/,"%20"),$e(g,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,g)}let w={get action(){return l},get location(){return e(o,a)},listen(S){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(ip,f),c=S,()=>{o.removeEventListener(ip,f),c=null}},createHref(S){return t(o,S)},createURL:x,encodeLocation(S){let g=x(S);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:m,go(S){return a.go(S)}};return w}var ap;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ap||(ap={}));function Yw(e,t,n){return n===void 0&&(n="/"),Kw(e,t,n,!1)}function Kw(e,t,n,r){let o=typeof t=="string"?Ar(t):t,s=Eo(o.pathname||"/",n);if(s==null)return null;let a=hg(e);Xw(a);let l=null;for(let c=0;l==null&&c{let c={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};c.relativePath.startsWith("/")&&($e(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=tr([r,c.relativePath]),d=n.concat(c);s.children&&s.children.length>0&&($e(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),hg(s.children,t,d,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:nx(u,s.index),routesMeta:d})};return e.forEach((s,a)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))o(s,a);else for(let c of gg(s.path))o(s,a,c)}),t}function gg(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let a=gg(r.join("/")),l=[];return l.push(...a.map(c=>c===""?s:[s,c].join("/"))),o&&l.push(...a),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function Xw(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:rx(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const qw=/^:[\w-]+$/,Qw=3,Zw=2,Jw=1,ex=10,tx=-2,lp=e=>e==="*";function nx(e,t){let n=e.split("/"),r=n.length;return n.some(lp)&&(r+=tx),t&&(r+=Zw),n.filter(o=>!lp(o)).reduce((o,s)=>o+(qw.test(s)?Qw:s===""?Jw:ex),r)}function rx(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function ox(e,t,n){let{routesMeta:r}=e,o={},s="/",a=[];for(let l=0;l{let{paramName:h,isOptional:m}=d;if(h==="*"){let w=l[f]||"";a=s.slice(0,s.length-w.length).replace(/(.)\/+$/,"$1")}const x=l[f];return m&&!x?u[h]=void 0:u[h]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:a,pattern:e}}function ix(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),cd(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function sx(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return cd(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Eo(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)||"/"}function ax(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ar(e):e;return{pathname:n?n.startsWith("/")?n:lx(n,t):t,search:dx(r),hash:fx(o)}}function lx(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function kl(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function cx(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function vg(e,t){let n=cx(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function yg(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ar(e):(o=ji({},e),$e(!o.pathname||!o.pathname.includes("?"),kl("?","pathname","search",o)),$e(!o.pathname||!o.pathname.includes("#"),kl("#","pathname","hash",o)),$e(!o.search||!o.search.includes("#"),kl("#","search","hash",o)));let s=e===""||o.pathname==="",a=s?"/":o.pathname,l;if(a==null)l=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),f-=1;o.pathname=h.join("/")}l=f>=0?t[f]:"/"}let c=ax(o,l),u=a&&a!=="/"&&a.endsWith("/"),d=(s||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const tr=e=>e.join("/").replace(/\/\/+/g,"/"),ux=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),dx=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,fx=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function px(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const wg=["post","put","patch","delete"];new Set(wg);const mx=["get",...wg];new Set(mx);/** * React Router v6.28.0 * * Copyright (c) Remix Software Inc. @@ -55,7 +55,7 @@ Error generating stack: `+s.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Mi(){return Mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),b.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let f=yg(u,JSON.parse(a),s,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:er([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,a,s,e])}const gx=b.createContext(null);function vx(e){let t=b.useContext(Nn).outlet;return t&&b.createElement(gx.Provider,{value:e},t)}function ud(){let{matches:e}=b.useContext(Nn),t=e[e.length-1];return t?t.params:{}}function Ua(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=b.useContext(cr),{matches:o}=b.useContext(Nn),{pathname:s}=Oo(),a=JSON.stringify(vg(o,r.v7_relativeSplatPath));return b.useMemo(()=>yg(e,JSON.parse(a),s,n==="path"),[e,a,s,n])}function yx(e,t){return wx(e,t)}function wx(e,t,n,r){Bi()||$e(!1);let{navigator:o}=b.useContext(cr),{matches:s}=b.useContext(Nn),a=s[s.length-1],l=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let u=Oo(),d;if(t){var f;let S=typeof t=="string"?Ar(t):t;c==="/"||(f=S.pathname)!=null&&f.startsWith(c)||$e(!1),d=S}else d=u;let h=d.pathname||"/",m=h;if(c!=="/"){let S=c.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(S.length).join("/")}let x=Gw(e,{pathname:m}),w=Cx(x&&x.map(S=>Object.assign({},S,{params:Object.assign({},l,S.params),pathname:er([c,o.encodeLocation?o.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?c:er([c,o.encodeLocation?o.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),s,n,r);return t&&w?b.createElement(Wa.Provider,{value:{location:Mi({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Wn.Pop}},w):w}function xx(){let e=Nx(),t=fx(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:o},n):null,null)}const bx=b.createElement(xx,null);class Sx extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?b.createElement(Nn.Provider,{value:this.props.routeContext},b.createElement(bg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ex(e){let{routeContext:t,match:n,children:r}=e,o=b.useContext(Ha);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(Nn.Provider,{value:t},r)}function Cx(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let d=a.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);d>=0||$e(!1),a=a.slice(0,Math.min(a.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((d,f,h)=>{let m,x=!1,w=null,S=null;n&&(m=l&&f.route.id?l[f.route.id]:void 0,w=f.route.errorElement||bx,c&&(u<0&&h===0?(x=!0,S=null):u===h&&(x=!0,S=f.route.hydrateFallbackElement||null)));let g=t.concat(a.slice(0,h+1)),p=()=>{let v;return m?v=w:x?v=S:f.route.Component?v=b.createElement(f.route.Component,null):f.route.element?v=f.route.element:v=d,b.createElement(Ex,{match:f,routeContext:{outlet:d,matches:g,isDataRoute:n!=null},children:v})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?b.createElement(Sx,{location:n.location,revalidation:n.revalidation,component:w,error:m,children:p(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):p()},null)}var Eg=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Eg||{}),ua=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ua||{});function Tx(e){let t=b.useContext(Ha);return t||$e(!1),t}function Px(e){let t=b.useContext(xg);return t||$e(!1),t}function kx(e){let t=b.useContext(Nn);return t||$e(!1),t}function Cg(e){let t=kx(),n=t.matches[t.matches.length-1];return n.route.id||$e(!1),n.route.id}function Nx(){var e;let t=b.useContext(bg),n=Px(ua.UseRouteError),r=Cg(ua.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Ox(){let{router:e}=Tx(Eg.UseNavigateStable),t=Cg(ua.UseNavigateStable),n=b.useRef(!1);return Sg(()=>{n.current=!0}),b.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Mi({fromRouteId:t},s)))},[e,t])}const cp={};function jx(e,t){cp[t]||(cp[t]=!0,console.warn(t))}const up=(e,t,n)=>jx(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function Mx(e,t){e!=null&&e.v7_startTransition||up("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&!t&&up("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function Rx(e){return vx(e.context)}function In(e){$e(!1)}function _x(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Wn.Pop,navigator:s,static:a=!1,future:l}=e;Bi()&&$e(!1);let c=t.replace(/^\/*/,"/"),u=b.useMemo(()=>({basename:c,navigator:s,static:a,future:Mi({v7_relativeSplatPath:!1},l)}),[c,l,s,a]);typeof r=="string"&&(r=Ar(r));let{pathname:d="/",search:f="",hash:h="",state:m=null,key:x="default"}=r,w=b.useMemo(()=>{let S=Eo(d,c);return S==null?null:{location:{pathname:S,search:f,hash:h,state:m,key:x},navigationType:o}},[c,d,f,h,m,x,o]);return w==null?null:b.createElement(cr.Provider,{value:u},b.createElement(Wa.Provider,{children:n,value:w}))}function Lx(e){let{children:t,location:n}=e;return yx(Gc(t),n)}new Promise(()=>{});function Gc(e,t){t===void 0&&(t=[]);let n=[];return b.Children.forEach(e,(r,o)=>{if(!b.isValidElement(r))return;let s=[...t,o];if(r.type===b.Fragment){n.push.apply(n,Gc(r.props.children,s));return}r.type!==In&&$e(!1),!r.props.index||!r.props.children||$e(!1);let a={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=Gc(r.props.children,s)),n.push(a)}),n}/** + */function Ri(){return Ri=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),b.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let f=yg(u,JSON.parse(a),s,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:tr([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,a,s,e])}const vx=b.createContext(null);function yx(e){let t=b.useContext(jn).outlet;return t&&b.createElement(vx.Provider,{value:e},t)}function ud(){let{matches:e}=b.useContext(jn),t=e[e.length-1];return t?t.params:{}}function Ua(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=b.useContext(ur),{matches:o}=b.useContext(jn),{pathname:s}=Oo(),a=JSON.stringify(vg(o,r.v7_relativeSplatPath));return b.useMemo(()=>yg(e,JSON.parse(a),s,n==="path"),[e,a,s,n])}function wx(e,t){return xx(e,t)}function xx(e,t,n,r){Bi()||$e(!1);let{navigator:o}=b.useContext(ur),{matches:s}=b.useContext(jn),a=s[s.length-1],l=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let u=Oo(),d;if(t){var f;let S=typeof t=="string"?Ar(t):t;c==="/"||(f=S.pathname)!=null&&f.startsWith(c)||$e(!1),d=S}else d=u;let h=d.pathname||"/",m=h;if(c!=="/"){let S=c.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(S.length).join("/")}let x=Yw(e,{pathname:m}),w=Tx(x&&x.map(S=>Object.assign({},S,{params:Object.assign({},l,S.params),pathname:tr([c,o.encodeLocation?o.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?c:tr([c,o.encodeLocation?o.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),s,n,r);return t&&w?b.createElement(Wa.Provider,{value:{location:Ri({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Un.Pop}},w):w}function bx(){let e=Ox(),t=px(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:o},n):null,null)}const Sx=b.createElement(bx,null);class Ex extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?b.createElement(jn.Provider,{value:this.props.routeContext},b.createElement(bg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Cx(e){let{routeContext:t,match:n,children:r}=e,o=b.useContext(Ha);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(jn.Provider,{value:t},r)}function Tx(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let d=a.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);d>=0||$e(!1),a=a.slice(0,Math.min(a.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((d,f,h)=>{let m,x=!1,w=null,S=null;n&&(m=l&&f.route.id?l[f.route.id]:void 0,w=f.route.errorElement||Sx,c&&(u<0&&h===0?(x=!0,S=null):u===h&&(x=!0,S=f.route.hydrateFallbackElement||null)));let g=t.concat(a.slice(0,h+1)),p=()=>{let y;return m?y=w:x?y=S:f.route.Component?y=b.createElement(f.route.Component,null):f.route.element?y=f.route.element:y=d,b.createElement(Cx,{match:f,routeContext:{outlet:d,matches:g,isDataRoute:n!=null},children:y})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?b.createElement(Ex,{location:n.location,revalidation:n.revalidation,component:w,error:m,children:p(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):p()},null)}var Eg=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Eg||{}),ua=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ua||{});function Px(e){let t=b.useContext(Ha);return t||$e(!1),t}function kx(e){let t=b.useContext(xg);return t||$e(!1),t}function Nx(e){let t=b.useContext(jn);return t||$e(!1),t}function Cg(e){let t=Nx(),n=t.matches[t.matches.length-1];return n.route.id||$e(!1),n.route.id}function Ox(){var e;let t=b.useContext(bg),n=kx(ua.UseRouteError),r=Cg(ua.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function jx(){let{router:e}=Px(Eg.UseNavigateStable),t=Cg(ua.UseNavigateStable),n=b.useRef(!1);return Sg(()=>{n.current=!0}),b.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ri({fromRouteId:t},s)))},[e,t])}const cp={};function Rx(e,t){cp[t]||(cp[t]=!0,console.warn(t))}const up=(e,t,n)=>Rx(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function Mx(e,t){e!=null&&e.v7_startTransition||up("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&!t&&up("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function _x(e){return yx(e.context)}function hn(e){$e(!1)}function Lx(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Un.Pop,navigator:s,static:a=!1,future:l}=e;Bi()&&$e(!1);let c=t.replace(/^\/*/,"/"),u=b.useMemo(()=>({basename:c,navigator:s,static:a,future:Ri({v7_relativeSplatPath:!1},l)}),[c,l,s,a]);typeof r=="string"&&(r=Ar(r));let{pathname:d="/",search:f="",hash:h="",state:m=null,key:x="default"}=r,w=b.useMemo(()=>{let S=Eo(d,c);return S==null?null:{location:{pathname:S,search:f,hash:h,state:m,key:x},navigationType:o}},[c,d,f,h,m,x,o]);return w==null?null:b.createElement(ur.Provider,{value:u},b.createElement(Wa.Provider,{children:n,value:w}))}function Ix(e){let{children:t,location:n}=e;return wx(Gc(t),n)}new Promise(()=>{});function Gc(e,t){t===void 0&&(t=[]);let n=[];return b.Children.forEach(e,(r,o)=>{if(!b.isValidElement(r))return;let s=[...t,o];if(r.type===b.Fragment){n.push.apply(n,Gc(r.props.children,s));return}r.type!==hn&&$e(!1),!r.props.index||!r.props.children||$e(!1);let a={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=Gc(r.props.children,s)),n.push(a)}),n}/** * React Router DOM v6.28.0 * * Copyright (c) Remix Software Inc. @@ -64,8 +64,8 @@ Error generating stack: `+s.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function da(){return da=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function Ix(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Dx(e,t){return e.button===0&&(!t||t==="_self")&&!Ix(e)}function Yc(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||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(o=>[n,o]):[[n,r]])},[]))}function Ax(e,t){let n=Yc(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(s=>{n.append(o,s)})}),n}const zx=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],$x=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],Bx="6";try{window.__reactRouterVersion=Bx}catch{}const Fx=b.createContext({isTransitioning:!1}),Vx="startTransition",dp=um[Vx];function Hx(e){let{basename:t,children:n,future:r,window:o}=e,s=b.useRef();s.current==null&&(s.current=Hw({window:o,v5Compat:!0}));let a=s.current,[l,c]=b.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},d=b.useCallback(f=>{u&&dp?dp(()=>c(f)):c(f)},[c,u]);return b.useLayoutEffect(()=>a.listen(d),[a,d]),b.useEffect(()=>Mx(r),[r]),b.createElement(_x,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const Wx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ux=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Gx=b.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:s,replace:a,state:l,target:c,to:u,preventScrollReset:d,viewTransition:f}=t,h=Tg(t,zx),{basename:m}=b.useContext(cr),x,w=!1;if(typeof u=="string"&&Ux.test(u)&&(x=u,Wx))try{let v=new URL(window.location.href),E=u.startsWith("//")?new URL(v.protocol+u):new URL(u),C=Eo(E.pathname,m);E.origin===v.origin&&C!=null?u=C+E.search+E.hash:w=!0}catch{}let S=mx(u,{relative:o}),g=Kx(u,{replace:a,state:l,target:c,preventScrollReset:d,relative:o,viewTransition:f});function p(v){r&&r(v),v.defaultPrevented||g(v)}return b.createElement("a",da({},h,{href:x||S,onClick:w||s?r:p,ref:n,target:c}))}),un=b.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:s="",end:a=!1,style:l,to:c,viewTransition:u,children:d}=t,f=Tg(t,$x),h=Ua(c,{relative:f.relative}),m=Oo(),x=b.useContext(xg),{navigator:w,basename:S}=b.useContext(cr),g=x!=null&&qx(h)&&u===!0,p=w.encodeLocation?w.encodeLocation(h).pathname:h.pathname,v=m.pathname,E=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;o||(v=v.toLowerCase(),E=E?E.toLowerCase():null,p=p.toLowerCase()),E&&S&&(E=Eo(E,S)||E);const C=p!=="/"&&p.endsWith("/")?p.length-1:p.length;let P=v===p||!a&&v.startsWith(p)&&v.charAt(C)==="/",T=E!=null&&(E===p||!a&&E.startsWith(p)&&E.charAt(p.length)==="/"),k={isActive:P,isPending:T,isTransitioning:g},O=P?r:void 0,j;typeof s=="function"?j=s(k):j=[s,P?"active":null,T?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let $=typeof l=="function"?l(k):l;return b.createElement(Gx,da({},f,{"aria-current":O,className:j,ref:n,style:$,to:c,viewTransition:u}),typeof d=="function"?d(k):d)});var Kc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Kc||(Kc={}));var fp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(fp||(fp={}));function Yx(e){let t=b.useContext(Ha);return t||$e(!1),t}function Kx(e,t){let{target:n,replace:r,state:o,preventScrollReset:s,relative:a,viewTransition:l}=t===void 0?{}:t,c=jo(),u=Oo(),d=Ua(e,{relative:a});return b.useCallback(f=>{if(Dx(f,n)){f.preventDefault();let h=r!==void 0?r:la(u)===la(d);c(e,{replace:h,state:o,preventScrollReset:s,relative:a,viewTransition:l})}},[u,c,d,r,o,n,e,s,a,l])}function Xx(e){let t=b.useRef(Yc(e)),n=b.useRef(!1),r=Oo(),o=b.useMemo(()=>Ax(r.search,n.current?null:t.current),[r.search]),s=jo(),a=b.useCallback((l,c)=>{const u=Yc(typeof l=="function"?l(o):l);n.current=!0,s("?"+u,c)},[s,o]);return[o,a]}function qx(e,t){t===void 0&&(t={});let n=b.useContext(Fx);n==null&&$e(!1);let{basename:r}=Yx(Kc.useViewTransitionState),o=Ua(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=Eo(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Eo(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ca(o.pathname,a)!=null||ca(o.pathname,s)!=null}function pp(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function dd(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:pp(t[n])&&pp(e[n])&&Object.keys(t[n]).length>0&&dd(e[n],t[n])})}const Pg={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Kt(){const e=typeof document<"u"?document:{};return dd(e,Pg),e}const Qx={document:Pg,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function bt(){const e=typeof window<"u"?window:{};return dd(e,Qx),e}function Dn(e){return e===void 0&&(e=""),e.trim().split(" ").filter(t=>!!t.trim())}function Zx(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function fa(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function pa(){return Date.now()}function Jx(e){const t=bt();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function e2(e,t){t===void 0&&(t="x");const n=bt();let r,o,s;const a=Jx(e);return n.WebKitCSSMatrix?(o=a.transform||a.webkitTransform,o.split(",").length>6&&(o=o.split(", ").map(l=>l.replace(",",".")).join(", ")),s=new n.WebKitCSSMatrix(o==="none"?"":o)):(s=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=s.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?o=s.m41:r.length===16?o=parseFloat(r[12]):o=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?o=s.m42:r.length===16?o=parseFloat(r[13]):o=parseFloat(r[5])),o||0}function ls(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function t2(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Ct(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;nt.indexOf(s)<0);for(let s=0,a=o.length;ss?"next":"prev",d=(h,m)=>u==="next"&&h>=m||u==="prev"&&h<=m,f=()=>{l=new Date().getTime(),a===null&&(a=l);const h=Math.max(Math.min((l-a)/c,1),0),m=.5-Math.cos(h*Math.PI)/2;let x=s+m*(n-s);if(d(x,n)&&(x=n),t.wrapperEl.scrollTo({[r]:x}),d(x,n)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:x})}),o.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=o.requestAnimationFrame(f)};f()}function Ng(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function sn(e,t){t===void 0&&(t="");const n=[...e.children];return e instanceof HTMLSlotElement&&n.push(...e.assignedElements()),t?n.filter(r=>r.matches(t)):n}function n2(e,t){const n=t.contains(e);return!n&&t instanceof HTMLSlotElement?[...t.assignedElements()].includes(e):n}function ma(e){try{console.warn(e);return}catch{}}function Ri(e,t){t===void 0&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:Dn(t)),n}function r2(e){const t=bt(),n=Kt(),r=e.getBoundingClientRect(),o=n.body,s=e.clientTop||o.clientTop||0,a=e.clientLeft||o.clientLeft||0,l=e===t?t.scrollY:e.scrollTop,c=e===t?t.scrollX:e.scrollLeft;return{top:r.top+l-s,left:r.left+c-a}}function o2(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function i2(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function Un(e,t){return bt().getComputedStyle(e,null).getPropertyValue(t)}function ha(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function Og(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function s2(e,t){function n(r){r.target===e&&(t.call(e,r),e.removeEventListener("transitionend",n))}t&&e.addEventListener("transitionend",n)}function Xc(e,t,n){const r=bt();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}function Ye(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}let Nl;function a2(){const e=bt(),t=Kt();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function jg(){return Nl||(Nl=a2()),Nl}let Ol;function l2(e){let{userAgent:t}=e===void 0?{}:e;const n=jg(),r=bt(),o=r.navigator.platform,s=t||r.navigator.userAgent,a={ios:!1,android:!1},l=r.screen.width,c=r.screen.height,u=s.match(/(Android);?[\s\/]+([\d.]+)?/);let d=s.match(/(iPad).*OS\s([\d_]+)/);const f=s.match(/(iPod)(.*OS\s([\d_]+))?/),h=!d&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=o==="Win32";let x=o==="MacIntel";const w=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&x&&n.touch&&w.indexOf(`${l}x${c}`)>=0&&(d=s.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),x=!1),u&&!m&&(a.os="android",a.android=!0),(d||h||f)&&(a.os="ios",a.ios=!0),a}function Mg(e){return e===void 0&&(e={}),Ol||(Ol=l2(e)),Ol}let jl;function c2(){const e=bt(),t=Mg();let n=!1;function r(){const l=e.navigator.userAgent.toLowerCase();return l.indexOf("safari")>=0&&l.indexOf("chrome")<0&&l.indexOf("android")<0}if(r()){const l=String(e.navigator.userAgent);if(l.includes("Version/")){const[c,u]=l.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));n=c<16||c===16&&u<2}}const o=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),s=r(),a=s||o&&t.ios;return{isSafari:n||s,needPerspectiveFix:n,need3dFix:a,isWebView:o}}function u2(){return jl||(jl=c2()),jl}function d2(e){let{swiper:t,on:n,emit:r}=e;const o=bt();let s=null,a=null;const l=()=>{!t||t.destroyed||!t.initialized||(r("beforeResize"),r("resize"))},c=()=>{!t||t.destroyed||!t.initialized||(s=new ResizeObserver(f=>{a=o.requestAnimationFrame(()=>{const{width:h,height:m}=t;let x=h,w=m;f.forEach(S=>{let{contentBoxSize:g,contentRect:p,target:v}=S;v&&v!==t.el||(x=p?p.width:(g[0]||g).inlineSize,w=p?p.height:(g[0]||g).blockSize)}),(x!==h||w!==m)&&l()})}),s.observe(t.el))},u=()=>{a&&o.cancelAnimationFrame(a),s&&s.unobserve&&t.el&&(s.unobserve(t.el),s=null)},d=()=>{!t||t.destroyed||!t.initialized||r("orientationchange")};n("init",()=>{if(t.params.resizeObserver&&typeof o.ResizeObserver<"u"){c();return}o.addEventListener("resize",l),o.addEventListener("orientationchange",d)}),n("destroy",()=>{u(),o.removeEventListener("resize",l),o.removeEventListener("orientationchange",d)})}function f2(e){let{swiper:t,extendParams:n,on:r,emit:o}=e;const s=[],a=bt(),l=function(d,f){f===void 0&&(f={});const h=a.MutationObserver||a.WebkitMutationObserver,m=new h(x=>{if(t.__preventObserver__)return;if(x.length===1){o("observerUpdate",x[0]);return}const w=function(){o("observerUpdate",x[0])};a.requestAnimationFrame?a.requestAnimationFrame(w):a.setTimeout(w,0)});m.observe(d,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:t.isElement||(typeof f.childList>"u"?!0:f).childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),s.push(m)},c=()=>{if(t.params.observer){if(t.params.observeParents){const d=Og(t.hostEl);for(let f=0;f{s.forEach(d=>{d.disconnect()}),s.splice(0,s.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",c),r("destroy",u)}var p2={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const o=n?"unshift":"push";return e.split(" ").forEach(s=>{r.eventsListeners[s]||(r.eventsListeners[s]=[]),r.eventsListeners[s][o](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function o(){r.off(e,o),o.__emitterProxy&&delete o.__emitterProxy;for(var s=arguments.length,a=new Array(s),l=0;l=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((o,s)=>{(o===t||o.__emitterProxy&&o.__emitterProxy===t)&&n.eventsListeners[r].splice(s,1)})}),n},emit(){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,n,r;for(var o=arguments.length,s=new Array(o),a=0;a{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(u=>{u.apply(r,[c,...n])}),e.eventsListeners&&e.eventsListeners[c]&&e.eventsListeners[c].forEach(u=>{u.apply(r,n)})}),e}};function m2(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(Un(r,"padding-left")||0,10)-parseInt(Un(r,"padding-right")||0,10),n=n-parseInt(Un(r,"padding-top")||0,10)-parseInt(Un(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function h2(){const e=this;function t(j,$){return parseFloat(j.getPropertyValue(e.getDirectionLabel($))||0)}const n=e.params,{wrapperEl:r,slidesEl:o,size:s,rtlTranslate:a,wrongRTL:l}=e,c=e.virtual&&n.virtual.enabled,u=c?e.virtual.slides.length:e.slides.length,d=sn(o,`.${e.params.slideClass}, swiper-slide`),f=c?e.virtual.slides.length:d.length;let h=[];const m=[],x=[];let w=n.slidesOffsetBefore;typeof w=="function"&&(w=n.slidesOffsetBefore.call(e));let S=n.slidesOffsetAfter;typeof S=="function"&&(S=n.slidesOffsetAfter.call(e));const g=e.snapGrid.length,p=e.slidesGrid.length;let v=n.spaceBetween,E=-w,C=0,P=0;if(typeof s>"u")return;typeof v=="string"&&v.indexOf("%")>=0?v=parseFloat(v.replace("%",""))/100*s:typeof v=="string"&&(v=parseFloat(v)),e.virtualSize=-v,d.forEach(j=>{a?j.style.marginLeft="":j.style.marginRight="",j.style.marginBottom="",j.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(cs(r,"--swiper-centered-offset-before",""),cs(r,"--swiper-centered-offset-after",""));const T=n.grid&&n.grid.rows>1&&e.grid;T?e.grid.initSlides(d):e.grid&&e.grid.unsetSlides();let k;const O=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(j=>typeof n.breakpoints[j].slidesPerView<"u").length>0;for(let j=0;j1&&h.push(e.virtualSize-s)}if(c&&n.loop){const j=x[0]+v;if(n.slidesPerGroup>1){const $=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),M=j*n.slidesPerGroup;for(let N=0;N<$;N+=1)h.push(h[h.length-1]+M)}for(let $=0;$!n.cssMode||n.loop?!0:M!==d.length-1).forEach($=>{$.style[j]=`${v}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let j=0;x.forEach(M=>{j+=M+(v||0)}),j-=v;const $=j>s?j-s:0;h=h.map(M=>M<=0?-w:M>$?$+S:M)}if(n.centerInsufficientSlides){let j=0;x.forEach(M=>{j+=M+(v||0)}),j-=v;const $=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(j+${h[z]=N-M}),m.forEach((N,z)=>{m[z]=N+M})}}if(Object.assign(e,{slides:d,snapGrid:h,slidesGrid:m,slidesSizesGrid:x}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){cs(r,"--swiper-centered-offset-before",`${-h[0]}px`),cs(r,"--swiper-centered-offset-after",`${e.size/2-x[x.length-1]/2}px`);const j=-e.snapGrid[0],$=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(M=>M+j),e.slidesGrid=e.slidesGrid.map(M=>M+$)}if(f!==u&&e.emit("slidesLengthChange"),h.length!==g&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),m.length!==p&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!c&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const j=`${n.containerModifierClass}backface-hidden`,$=e.el.classList.contains(j);f<=n.maxBackfaceHiddenSlides?$||e.el.classList.add(j):$&&e.el.classList.remove(j)}}function g2(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let o=0,s;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const a=l=>r?t.slides[t.getSlideIndexByData(l)]:t.slides[l];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(l=>{n.push(l)});else for(s=0;st.slides.length&&!r)break;n.push(a(l))}else n.push(a(t.activeIndex));for(s=0;so?l:o}(o||o===0)&&(t.wrapperEl.style.height=`${o}px`)}function v2(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function y2(e){e===void 0&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:r,rtlTranslate:o,snapGrid:s}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let a=-e;o&&(a=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let l=n.spaceBetween;typeof l=="string"&&l.indexOf("%")>=0?l=parseFloat(l.replace("%",""))/100*t.size:typeof l=="string"&&(l=parseFloat(l));for(let c=0;c=0&&m<=t.size-t.slidesSizesGrid[c],S=m>=0&&m1&&x<=t.size||m<=0&&x>=t.size;S&&(t.visibleSlides.push(u),t.visibleSlidesIndexes.push(c)),mp(u,S,n.slideVisibleClass),mp(u,w,n.slideFullyVisibleClass),u.progress=o?-f:f,u.originalProgress=o?-h:h}}function w2(e){const t=this;if(typeof e>"u"){const d=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*d||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:o,isBeginning:s,isEnd:a,progressLoop:l}=t;const c=s,u=a;if(r===0)o=0,s=!0,a=!0;else{o=(e-t.minTranslate())/r;const d=Math.abs(e-t.minTranslate())<1,f=Math.abs(e-t.maxTranslate())<1;s=d||o<=0,a=f||o>=1,d&&(o=0),f&&(o=1)}if(n.loop){const d=t.getSlideIndexByData(0),f=t.getSlideIndexByData(t.slides.length-1),h=t.slidesGrid[d],m=t.slidesGrid[f],x=t.slidesGrid[t.slidesGrid.length-1],w=Math.abs(e);w>=h?l=(w-h)/x:l=(w+x-m)/x,l>1&&(l-=1)}Object.assign(t,{progress:o,progressLoop:l,isBeginning:s,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),s&&!c&&t.emit("reachBeginning toEdge"),a&&!u&&t.emit("reachEnd toEdge"),(c&&!s||u&&!a)&&t.emit("fromEdge"),t.emit("progress",o)}const Ml=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function x2(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:o}=e,s=e.virtual&&n.virtual.enabled,a=e.grid&&n.grid&&n.grid.rows>1,l=f=>sn(r,`.${n.slideClass}${f}, swiper-slide${f}`)[0];let c,u,d;if(s)if(n.loop){let f=o-e.virtual.slidesBefore;f<0&&(f=e.virtual.slides.length+f),f>=e.virtual.slides.length&&(f-=e.virtual.slides.length),c=l(`[data-swiper-slide-index="${f}"]`)}else c=l(`[data-swiper-slide-index="${o}"]`);else a?(c=t.filter(f=>f.column===o)[0],d=t.filter(f=>f.column===o+1)[0],u=t.filter(f=>f.column===o-1)[0]):c=t[o];c&&(a||(d=i2(c,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!d&&(d=t[0]),u=o2(c,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u===0&&(u=t[t.length-1]))),t.forEach(f=>{Ml(f,f===c,n.slideActiveClass),Ml(f,f===d,n.slideNextClass),Ml(f,f===u,n.slidePrevClass)}),e.emitSlidesClasses()}const Rs=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){let o=r.querySelector(`.${e.params.lazyPreloaderClass}`);!o&&e.isElement&&(r.shadowRoot?o=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{r.shadowRoot&&(o=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),o&&o.remove())})),o&&o.remove()}},Rl=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},qc=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),o=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const a=o,l=[a-t];l.push(...Array.from({length:t}).map((c,u)=>a+r+u)),e.slides.forEach((c,u)=>{l.includes(c.column)&&Rl(e,u)});return}const s=o+r-1;if(e.params.rewind||e.params.loop)for(let a=o-t;a<=s+t;a+=1){const l=(a%n+n)%n;(ls)&&Rl(e,l)}else for(let a=Math.max(o-t,0);a<=Math.min(s+t,n-1);a+=1)a!==o&&(a>s||a=t[s]&&r=t[s]&&r=t[s]&&(o=s);return n.normalizeSlideIndex&&(o<0||typeof o>"u")&&(o=0),o}function S2(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:o,activeIndex:s,realIndex:a,snapIndex:l}=t;let c=e,u;const d=m=>{let x=m-t.virtual.slidesBefore;return x<0&&(x=t.virtual.slides.length+x),x>=t.virtual.slides.length&&(x-=t.virtual.slides.length),x};if(typeof c>"u"&&(c=b2(t)),r.indexOf(n)>=0)u=r.indexOf(n);else{const m=Math.min(o.slidesPerGroupSkip,c);u=m+Math.floor((c-m)/o.slidesPerGroup)}if(u>=r.length&&(u=r.length-1),c===s&&!t.params.loop){u!==l&&(t.snapIndex=u,t.emit("snapIndexChange"));return}if(c===s&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=d(c);return}const f=t.grid&&o.grid&&o.grid.rows>1;let h;if(t.virtual&&o.virtual.enabled&&o.loop)h=d(c);else if(f){const m=t.slides.filter(w=>w.column===c)[0];let x=parseInt(m.getAttribute("data-swiper-slide-index"),10);Number.isNaN(x)&&(x=Math.max(t.slides.indexOf(m),0)),h=Math.floor(x/o.grid.rows)}else if(t.slides[c]){const m=t.slides[c].getAttribute("data-swiper-slide-index");m?h=parseInt(m,10):h=c}else h=c;Object.assign(t,{previousSnapIndex:l,snapIndex:u,previousRealIndex:a,realIndex:h,previousIndex:s,activeIndex:c}),t.initialized&&qc(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(a!==h&&t.emit("realIndexChange"),t.emit("slideChange"))}function E2(e,t){const n=this,r=n.params;let o=e.closest(`.${r.slideClass}, swiper-slide`);!o&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(l=>{!o&&l.matches&&l.matches(`.${r.slideClass}, swiper-slide`)&&(o=l)});let s=!1,a;if(o){for(let l=0;lc?d=c:r&&ea?l="next":s"u"&&(t=s.params.speed);const w=Math.min(s.params.slidesPerGroupSkip,a);let S=w+Math.floor((a-w)/s.params.slidesPerGroup);S>=c.length&&(S=c.length-1);const g=-c[S];if(l.normalizeSlideIndex)for(let C=0;C=T&&P=T&&P=T&&(a=C)}if(s.initialized&&a!==f&&(!s.allowSlideNext&&(h?g>s.translate&&g>s.minTranslate():gs.translate&&g>s.maxTranslate()&&(f||0)!==a))return!1;a!==(d||0)&&n&&s.emit("beforeSlideChangeStart"),s.updateProgress(g);let p;a>f?p="next":a0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[C?"scrollLeft":"scrollTop"]=P})):m[C?"scrollLeft":"scrollTop"]=P,v&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1});else{if(!s.support.smoothScroll)return kg({swiper:s,targetPosition:P,side:C?"left":"top"}),!0;m.scrollTo({[C?"left":"top"]:P,behavior:"smooth"})}return!0}return s.setTransition(t),s.setTranslate(g),s.updateActiveIndex(a),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,r),s.transitionStart(n,p),t===0?s.transitionEnd(n,p):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(P){!s||s.destroyed||P.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(n,p))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function D2(e,t,n,r){e===void 0&&(e=0),n===void 0&&(n=!0),typeof e=="string"&&(e=parseInt(e,10));const o=this;if(o.destroyed)return;typeof t>"u"&&(t=o.params.speed);const s=o.grid&&o.params.grid&&o.params.grid.rows>1;let a=e;if(o.params.loop)if(o.virtual&&o.params.virtual.enabled)a=a+o.virtual.slidesBefore;else{let l;if(s){const h=a*o.params.grid.rows;l=o.slides.filter(m=>m.getAttribute("data-swiper-slide-index")*1===h)[0].column}else l=o.getSlideIndexByData(a);const c=s?Math.ceil(o.slides.length/o.params.grid.rows):o.slides.length,{centeredSlides:u}=o.params;let d=o.params.slidesPerView;d==="auto"?d=o.slidesPerViewDynamic():(d=Math.ceil(parseFloat(o.params.slidesPerView,10)),u&&d%2===0&&(d=d+1));let f=c-lm.getAttribute("data-swiper-slide-index")*1===h)[0].column}else a=o.getSlideIndexByData(a)}return requestAnimationFrame(()=>{o.slideTo(a,t,n,r)}),o}function A2(e,t,n){t===void 0&&(t=!0);const r=this,{enabled:o,params:s,animating:a}=r;if(!o||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);let l=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(l=Math.max(r.slidesPerViewDynamic("current",!0),1));const c=r.activeIndex{r.slideTo(r.activeIndex+c,e,t,n)}),!0}return s.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+c,e,t,n)}function z2(e,t,n){t===void 0&&(t=!0);const r=this,{params:o,snapGrid:s,slidesGrid:a,rtlTranslate:l,enabled:c,animating:u}=r;if(!c||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);const d=r.virtual&&o.virtual.enabled;if(o.loop){if(u&&!d&&o.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const f=l?r.translate:-r.translate;function h(g){return g<0?-Math.floor(Math.abs(g)):Math.floor(g)}const m=h(f),x=s.map(g=>h(g));let w=s[x.indexOf(m)-1];if(typeof w>"u"&&o.cssMode){let g;s.forEach((p,v)=>{m>=p&&(g=v)}),typeof g<"u"&&(w=s[g>0?g-1:g])}let S=0;if(typeof w<"u"&&(S=a.indexOf(w),S<0&&(S=r.activeIndex-1),o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(S=S-r.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),o.rewind&&r.isBeginning){const g=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(g,e,t,n)}else if(o.loop&&r.activeIndex===0&&o.cssMode)return requestAnimationFrame(()=>{r.slideTo(S,e,t,n)}),!0;return r.slideTo(S,e,t,n)}function $2(e,t,n){t===void 0&&(t=!0);const r=this;if(!r.destroyed)return typeof e>"u"&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)}function B2(e,t,n,r){t===void 0&&(t=!0),r===void 0&&(r=.5);const o=this;if(o.destroyed)return;typeof e>"u"&&(e=o.params.speed);let s=o.activeIndex;const a=Math.min(o.params.slidesPerGroupSkip,s),l=a+Math.floor((s-a)/o.params.slidesPerGroup),c=o.rtlTranslate?o.translate:-o.translate;if(c>=o.snapGrid[l]){const u=o.snapGrid[l],d=o.snapGrid[l+1];c-u>(d-u)*r&&(s+=o.params.slidesPerGroup)}else{const u=o.snapGrid[l-1],d=o.snapGrid[l];c-u<=(d-u)*r&&(s-=o.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,o.slidesGrid.length-1),o.slideTo(s,e,t,n)}function F2(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let o=e.clickedIndex,s;const a=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;s=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?oe.slides.length-e.loopedSlides+r/2?(e.loopFix(),o=e.getSlideIndex(sn(n,`${a}[data-swiper-slide-index="${s}"]`)[0]),fa(()=>{e.slideTo(o)})):e.slideTo(o):o>e.slides.length-r?(e.loopFix(),o=e.getSlideIndex(sn(n,`${a}[data-swiper-slide-index="${s}"]`)[0]),fa(()=>{e.slideTo(o)})):e.slideTo(o)}else e.slideTo(o)}var V2={slideTo:I2,slideToLoop:D2,slideNext:A2,slidePrev:z2,slideReset:$2,slideToClosest:B2,slideToClickedSlide:F2};function H2(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;const o=()=>{sn(r,`.${n.slideClass}, swiper-slide`).forEach((f,h)=>{f.setAttribute("data-swiper-slide-index",h)})},s=t.grid&&n.grid&&n.grid.rows>1,a=n.slidesPerGroup*(s?n.grid.rows:1),l=t.slides.length%a!==0,c=s&&t.slides.length%n.grid.rows!==0,u=d=>{for(let f=0;f1;u.length"u"?s=c.getSlideIndex(u.filter(N=>N.classList.contains(m.slideActiveClass))[0]):C=s;const P=r==="next"||!r,T=r==="prev"||!r;let k=0,O=0;const j=p?Math.ceil(u.length/m.grid.rows):u.length,M=(p?u[s].column:s)+(x&&typeof o>"u"?-w/2+.5:0);if(M=0;W-=1)u[W].column===H&&v.push(W)}else v.push(j-z-1)}}else if(M+w>j-g){O=Math.max(M-(j-g*2),S);for(let N=0;N{H.column===z&&E.push(W)}):E.push(z)}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1}),T&&v.forEach(N=>{u[N].swiperLoopMoveDOM=!0,h.prepend(u[N]),u[N].swiperLoopMoveDOM=!1}),P&&E.forEach(N=>{u[N].swiperLoopMoveDOM=!0,h.append(u[N]),u[N].swiperLoopMoveDOM=!1}),c.recalcSlides(),m.slidesPerView==="auto"?c.updateSlides():p&&(v.length>0&&T||E.length>0&&P)&&c.slides.forEach((N,z)=>{c.grid.updateSlide(z,N,c.slides)}),m.watchSlidesProgress&&c.updateSlidesOffset(),n){if(v.length>0&&T){if(typeof t>"u"){const N=c.slidesGrid[C],H=c.slidesGrid[C+k]-N;l?c.setTranslate(c.translate-H):(c.slideTo(C+Math.ceil(k),0,!1,!0),o&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-H,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-H))}else if(o){const N=p?v.length/m.grid.rows:v.length;c.slideTo(c.activeIndex+N,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(E.length>0&&P)if(typeof t>"u"){const N=c.slidesGrid[C],H=c.slidesGrid[C-O]-N;l?c.setTranslate(c.translate-H):(c.slideTo(C-O,0,!1,!0),o&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-H,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-H))}else{const N=p?E.length/m.grid.rows:E.length;c.slideTo(c.activeIndex-N,0,!1,!0)}}if(c.allowSlidePrev=d,c.allowSlideNext=f,c.controller&&c.controller.control&&!a){const N={slideRealIndex:t,direction:r,setTranslate:o,activeSlideIndex:s,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(z=>{!z.destroyed&&z.params.loop&&z.loopFix({...N,slideTo:z.params.slidesPerView===m.slidesPerView?n:!1})}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...N,slideTo:c.controller.control.params.slidesPerView===m.slidesPerView?n:!1})}c.emit("loopFix")}function U2(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(o=>{const s=typeof o.swiperSlideIndex>"u"?o.getAttribute("data-swiper-slide-index")*1:o.swiperSlideIndex;r[s]=o}),e.slides.forEach(o=>{o.removeAttribute("data-swiper-slide-index")}),r.forEach(o=>{n.append(o)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var G2={loopCreate:H2,loopFix:W2,loopDestroy:U2};function Y2(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function K2(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var X2={setGrabCursor:Y2,unsetGrabCursor:K2};function q2(e,t){t===void 0&&(t=this);function n(r){if(!r||r===Kt()||r===bt())return null;r.assignedSlot&&(r=r.assignedSlot);const o=r.closest(e);return!o&&!r.getRootNode?null:o||n(r.getRootNode().host)}return n(t)}function hp(e,t,n){const r=bt(),{params:o}=e,s=o.edgeSwipeDetection,a=o.edgeSwipeThreshold;return s&&(n<=a||n>=r.innerWidth-a)?s==="prevent"?(t.preventDefault(),!0):!1:!0}function Q2(e){const t=this,n=Kt();let r=e;r.originalEvent&&(r=r.originalEvent);const o=t.touchEventsData;if(r.type==="pointerdown"){if(o.pointerId!==null&&o.pointerId!==r.pointerId)return;o.pointerId=r.pointerId}else r.type==="touchstart"&&r.targetTouches.length===1&&(o.touchId=r.targetTouches[0].identifier);if(r.type==="touchstart"){hp(t,r,r.targetTouches[0].pageX);return}const{params:s,touches:a,enabled:l}=t;if(!l||!s.simulateTouch&&r.pointerType==="mouse"||t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let c=r.target;if(s.touchEventsTarget==="wrapper"&&!n2(c,t.wrapperEl)||"which"in r&&r.which===3||"button"in r&&r.button>0||o.isTouched&&o.isMoved)return;const u=!!s.noSwipingClass&&s.noSwipingClass!=="",d=r.composedPath?r.composedPath():r.path;u&&r.target&&r.target.shadowRoot&&d&&(c=d[0]);const f=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,h=!!(r.target&&r.target.shadowRoot);if(s.noSwiping&&(h?q2(f,c):c.closest(f))){t.allowClick=!0;return}if(s.swipeHandler&&!c.closest(s.swipeHandler))return;a.currentX=r.pageX,a.currentY=r.pageY;const m=a.currentX,x=a.currentY;if(!hp(t,r,m))return;Object.assign(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=m,a.startY=x,o.touchStartTime=pa(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(o.allowThresholdMove=!1);let w=!0;c.matches(o.focusableElements)&&(w=!1,c.nodeName==="SELECT"&&(o.isTouched=!1)),n.activeElement&&n.activeElement.matches(o.focusableElements)&&n.activeElement!==c&&(r.pointerType==="mouse"||r.pointerType!=="mouse"&&!c.matches(o.focusableElements))&&n.activeElement.blur();const S=w&&t.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||S)&&!c.isContentEditable&&r.preventDefault(),s.freeMode&&s.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function Z2(e){const t=Kt(),n=this,r=n.touchEventsData,{params:o,touches:s,rtlTranslate:a,enabled:l}=n;if(!l||!o.simulateTouch&&e.pointerType==="mouse")return;let c=e;if(c.originalEvent&&(c=c.originalEvent),c.type==="pointermove"&&(r.touchId!==null||c.pointerId!==r.pointerId))return;let u;if(c.type==="touchmove"){if(u=[...c.changedTouches].filter(P=>P.identifier===r.touchId)[0],!u||u.identifier!==r.touchId)return}else u=c;if(!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",c);return}const d=u.pageX,f=u.pageY;if(c.preventedByNestedSwiper){s.startX=d,s.startY=f;return}if(!n.allowTouchMove){c.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(s,{startX:d,startY:f,currentX:d,currentY:f}),r.touchStartTime=pa());return}if(o.touchReleaseOnEdges&&!o.loop){if(n.isVertical()){if(fs.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(ds.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==c.target&&c.pointerType!=="mouse"&&t.activeElement.blur(),t.activeElement&&c.target===t.activeElement&&c.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}r.allowTouchCallbacks&&n.emit("touchMove",c),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=d,s.currentY=f;const h=s.currentX-s.startX,m=s.currentY-s.startY;if(n.params.threshold&&Math.sqrt(h**2+m**2)"u"){let P;n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?r.isScrolling=!1:h*h+m*m>=25&&(P=Math.atan2(Math.abs(m),Math.abs(h))*180/Math.PI,r.isScrolling=n.isHorizontal()?P>o.touchAngle:90-P>o.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",c),typeof r.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(r.startMoving=!0),r.isScrolling||c.type==="touchmove"&&r.preventTouchMoveFromPointerMove){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!o.cssMode&&c.cancelable&&c.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&c.stopPropagation();let x=n.isHorizontal()?h:m,w=n.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;o.oneWayMovement&&(x=Math.abs(x)*(a?1:-1),w=Math.abs(w)*(a?1:-1)),s.diff=x,x*=o.touchRatio,a&&(x=-x,w=-w);const S=n.touchesDirection;n.swipeDirection=x>0?"prev":"next",n.touchesDirection=w>0?"prev":"next";const g=n.params.loop&&!o.cssMode,p=n.touchesDirection==="next"&&n.allowSlideNext||n.touchesDirection==="prev"&&n.allowSlidePrev;if(!r.isMoved){if(g&&p&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const P=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(P)}r.allowMomentumBounce=!1,o.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",c)}let v;if(new Date().getTime(),r.isMoved&&r.allowThresholdMove&&S!==n.touchesDirection&&g&&p&&Math.abs(x)>=1){Object.assign(s,{startX:d,startY:f,currentX:d,currentY:f,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}n.emit("sliderMove",c),r.isMoved=!0,r.currentTranslate=x+r.startTranslate;let E=!0,C=o.resistanceRatio;if(o.touchReleaseOnEdges&&(C=0),x>0?(g&&p&&!v&&r.allowThresholdMove&&r.currentTranslate>(o.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-(o.slidesPerView!=="auto"&&n.slides.length-o.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(E=!1,o.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+x)**C))):x<0&&(g&&p&&!v&&r.allowThresholdMove&&r.currentTranslate<(o.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+(o.slidesPerView!=="auto"&&n.slides.length-o.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(o.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(o.slidesPerView,10)))}),r.currentTranslater.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),o.threshold>0)if(Math.abs(x)>o.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,r.currentTranslate=r.startTranslate,s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{r.currentTranslate=r.startTranslate;return}!o.followFinger||o.cssMode||((o.freeMode&&o.freeMode.enabled&&n.freeMode||o.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),o.freeMode&&o.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function J2(e){const t=this,n=t.touchEventsData;let r=e;r.originalEvent&&(r=r.originalEvent);let o;if(r.type==="touchend"||r.type==="touchcancel"){if(o=[...r.changedTouches].filter(C=>C.identifier===n.touchId)[0],!o||o.identifier!==n.touchId)return}else{if(n.touchId!==null||r.pointerId!==n.pointerId)return;o=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&!(["pointercancel","contextmenu"].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:a,touches:l,rtlTranslate:c,slidesGrid:u,enabled:d}=t;if(!d||!a.simulateTouch&&r.pointerType==="mouse")return;if(n.allowTouchCallbacks&&t.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&a.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}a.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const f=pa(),h=f-n.touchStartTime;if(t.allowClick){const C=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(C&&C[0]||r.target,C),t.emit("tap click",r),h<300&&f-n.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(n.lastClickTime=pa(),fa(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||l.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let m;if(a.followFinger?m=c?t.translate:-t.translate:m=-n.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:m});return}const x=m>=-t.maxTranslate()&&!t.params.loop;let w=0,S=t.slidesSizesGrid[0];for(let C=0;C=u[C]&&m=u[C])&&(w=C,S=u[u.length-1]-u[u.length-2])}let g=null,p=null;a.rewind&&(t.isBeginning?p=a.virtual&&a.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const v=(m-u[w])/S,E=wa.longSwipesMs){if(!a.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(v>=a.longSwipesRatio?t.slideTo(a.rewind&&t.isEnd?g:w+E):t.slideTo(w)),t.swipeDirection==="prev"&&(v>1-a.longSwipesRatio?t.slideTo(w+E):p!==null&&v<0&&Math.abs(v)>a.longSwipesRatio?t.slideTo(p):t.slideTo(w))}else{if(!a.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(w+E):t.slideTo(w):(t.swipeDirection==="next"&&t.slideTo(g!==null?g:w+E),t.swipeDirection==="prev"&&t.slideTo(p!==null?p:w))}}function gp(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:o,snapGrid:s}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const l=a&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!l?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=o,e.allowSlideNext=r,e.params.watchOverflow&&s!==e.snapGrid&&e.checkOverflow()}function eb(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function tb(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let o;const s=e.maxTranslate()-e.minTranslate();s===0?o=0:o=(e.translate-e.minTranslate())/s,o!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function nb(e){const t=this;Rs(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function rb(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const _g=(e,t)=>{const n=Kt(),{params:r,el:o,wrapperEl:s,device:a}=e,l=!!r.nested,c=t==="on"?"addEventListener":"removeEventListener",u=t;!o||typeof o=="string"||(n[c]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:l}),o[c]("touchstart",e.onTouchStart,{passive:!1}),o[c]("pointerdown",e.onTouchStart,{passive:!1}),n[c]("touchmove",e.onTouchMove,{passive:!1,capture:l}),n[c]("pointermove",e.onTouchMove,{passive:!1,capture:l}),n[c]("touchend",e.onTouchEnd,{passive:!0}),n[c]("pointerup",e.onTouchEnd,{passive:!0}),n[c]("pointercancel",e.onTouchEnd,{passive:!0}),n[c]("touchcancel",e.onTouchEnd,{passive:!0}),n[c]("pointerout",e.onTouchEnd,{passive:!0}),n[c]("pointerleave",e.onTouchEnd,{passive:!0}),n[c]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&o[c]("click",e.onClick,!0),r.cssMode&&s[c]("scroll",e.onScroll),r.updateOnWindowResize?e[u](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",gp,!0):e[u]("observerUpdate",gp,!0),o[c]("load",e.onLoad,{capture:!0}))};function ob(){const e=this,{params:t}=e;e.onTouchStart=Q2.bind(e),e.onTouchMove=Z2.bind(e),e.onTouchEnd=J2.bind(e),e.onDocumentTouchStart=rb.bind(e),t.cssMode&&(e.onScroll=tb.bind(e)),e.onClick=eb.bind(e),e.onLoad=nb.bind(e),_g(e,"on")}function ib(){_g(this,"off")}var sb={attachEvents:ob,detachEvents:ib};const vp=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function ab(){const e=this,{realIndex:t,initialized:n,params:r,el:o}=e,s=r.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const a=e.getBreakpoint(s,e.params.breakpointsBase,e.el);if(!a||e.currentBreakpoint===a)return;const c=(a in s?s[a]:void 0)||e.originalParams,u=vp(e,r),d=vp(e,c),f=e.params.grabCursor,h=c.grabCursor,m=r.enabled;u&&!d?(o.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!u&&d&&(o.classList.add(`${r.containerModifierClass}grid`),(c.grid.fill&&c.grid.fill==="column"||!c.grid.fill&&r.grid.fill==="column")&&o.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),f&&!h?e.unsetGrabCursor():!f&&h&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(v=>{if(typeof c[v]>"u")return;const E=r[v]&&r[v].enabled,C=c[v]&&c[v].enabled;E&&!C&&e[v].disable(),!E&&C&&e[v].enable()});const x=c.direction&&c.direction!==r.direction,w=r.loop&&(c.slidesPerView!==r.slidesPerView||x),S=r.loop;x&&n&&e.changeDirection(),Ct(e.params,c);const g=e.params.enabled,p=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),m&&!g?e.disable():!m&&g&&e.enable(),e.currentBreakpoint=a,e.emit("_beforeBreakpoint",c),n&&(w?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!S&&p?(e.loopCreate(t),e.updateSlides()):S&&!p&&e.loopDestroy()),e.emit("breakpoint",c)}function lb(e,t,n){if(t===void 0&&(t="window"),!e||t==="container"&&!n)return;let r=!1;const o=bt(),s=t==="window"?o.innerHeight:n.clientHeight,a=Object.keys(e).map(l=>{if(typeof l=="string"&&l.indexOf("@")===0){const c=parseFloat(l.substr(1));return{value:s*c,point:l}}return{value:l,point:l}});a.sort((l,c)=>parseInt(l.value,10)-parseInt(c.value,10));for(let l=0;l{typeof r=="object"?Object.keys(r).forEach(o=>{r[o]&&n.push(t+o)}):typeof r=="string"&&n.push(t+r)}),n}function db(){const e=this,{classNames:t,params:n,rtl:r,el:o,device:s}=e,a=ub(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...a),o.classList.add(...t),e.emitContainerClasses()}function fb(){const e=this,{el:t,classNames:n}=e;!t||typeof t=="string"||(t.classList.remove(...n),e.emitContainerClasses())}var pb={addClasses:db,removeClasses:fb};function mb(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const o=e.slides.length-1,s=e.slidesGrid[o]+e.slidesSizesGrid[o]+r*2;e.isLocked=e.size>s}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var hb={checkOverflow:mb},Qc={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function gb(e,t){return function(r){r===void 0&&(r={});const o=Object.keys(r)[0],s=r[o];if(typeof s!="object"||s===null){Ct(t,r);return}if(e[o]===!0&&(e[o]={enabled:!0}),o==="navigation"&&e[o]&&e[o].enabled&&!e[o].prevEl&&!e[o].nextEl&&(e[o].auto=!0),["pagination","scrollbar"].indexOf(o)>=0&&e[o]&&e[o].enabled&&!e[o].el&&(e[o].auto=!0),!(o in e&&"enabled"in s)){Ct(t,r);return}typeof e[o]=="object"&&!("enabled"in e[o])&&(e[o].enabled=!0),e[o]||(e[o]={enabled:!1}),Ct(t,r)}}const _l={eventsEmitter:p2,update:C2,translate:j2,transition:L2,slide:V2,loop:G2,grabCursor:X2,events:sb,breakpoints:cb,checkOverflow:hb,classes:pb},Ll={};let fd=class mn{constructor(){let t,n;for(var r=arguments.length,o=new Array(r),s=0;s1){const d=[];return a.querySelectorAll(n.el).forEach(f=>{const h=Ct({},n,{el:f});d.push(new mn(h))}),d}const l=this;l.__swiper__=!0,l.support=jg(),l.device=Mg({userAgent:n.userAgent}),l.browser=u2(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],n.modules&&Array.isArray(n.modules)&&l.modules.push(...n.modules);const c={};l.modules.forEach(d=>{d({params:n,swiper:l,extendParams:gb(n,c),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})});const u=Ct({},Qc,c);return l.params=Ct({},u,Ll,n),l.originalParams=Ct({},l.params),l.passedParams=Ct({},n),l.params&&l.params.on&&Object.keys(l.params.on).forEach(d=>{l.on(d,l.params.on[d])}),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return l.params.direction==="horizontal"},isVertical(){return l.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:n,params:r}=this,o=sn(n,`.${r.slideClass}, swiper-slide`),s=ha(o[0]);return ha(t)-s}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=sn(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const o=r.minTranslate(),a=(r.maxTranslate()-o)*t+o;r.translateTo(a,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const o=t.getSlideClasses(r);n.push({slideEl:r,classNames:o}),t.emit("_slideClass",r,o)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t,n){t===void 0&&(t="current"),n===void 0&&(n=!1);const r=this,{params:o,slides:s,slidesGrid:a,slidesSizesGrid:l,size:c,activeIndex:u}=r;let d=1;if(typeof o.slidesPerView=="number")return o.slidesPerView;if(o.centeredSlides){let f=s[u]?Math.ceil(s[u].swiperSlideSize):0,h;for(let m=u+1;mc&&(h=!0));for(let m=u-1;m>=0;m-=1)s[m]&&!h&&(f+=s[m].swiperSlideSize,d+=1,f>c&&(h=!0))}else if(t==="current")for(let f=u+1;f=0;f-=1)a[u]-a[f]{a.complete&&Rs(t,a)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function o(){const a=t.rtlTranslate?t.translate*-1:t.translate,l=Math.min(Math.max(a,t.maxTranslate()),t.minTranslate());t.setTranslate(l),t.updateActiveIndex(),t.updateSlidesClasses()}let s;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)o(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const a=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;s=t.slideTo(a.length-1,0,!1,!0)}else s=t.slideTo(t.activeIndex,0,!1,!0);s||o()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n){n===void 0&&(n=!0);const r=this,o=r.params.direction;return t||(t=o==="horizontal"?"vertical":"horizontal"),t===o||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${o}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(s=>{t==="vertical"?s.style.width="":s.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.parentNode&&r.parentNode.host&&r.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const o=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(o()):sn(r,o())[0];return!a&&n.params.createElements&&(a=Ri("div",n.params.wrapperClass),r.append(a),sn(r,`.${n.params.slideClass}`).forEach(l=>{a.append(l)})),Object.assign(n,{el:r,wrapperEl:a,slidesEl:n.isElement&&!r.parentNode.host.slideSlots?r.parentNode.host:a,hostEl:n.isElement?r.parentNode.host:r,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||Un(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||Un(r,"direction")==="rtl"),wrongRTL:Un(a,"display")==="-webkit-box"}),!0}init(t){const n=this;if(n.initialized||n.mount(t)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents();const o=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&o.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),o.forEach(s=>{s.complete?Rs(n,s):s.addEventListener("load",a=>{Rs(n,a.target)})}),qc(n),n.initialized=!0,qc(n),n.emit("init"),n.emit("afterInit"),n}destroy(t,n){t===void 0&&(t=!0),n===void 0&&(n=!0);const r=this,{params:o,el:s,wrapperEl:a,slides:l}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),o.loop&&r.loopDestroy(),n&&(r.removeClasses(),s&&typeof s!="string"&&s.removeAttribute("style"),a&&a.removeAttribute("style"),l&&l.length&&l.forEach(c=>{c.classList.remove(o.slideVisibleClass,o.slideFullyVisibleClass,o.slideActiveClass,o.slideNextClass,o.slidePrevClass),c.removeAttribute("style"),c.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(c=>{r.off(c)}),t!==!1&&(r.el&&typeof r.el!="string"&&(r.el.swiper=null),Zx(r)),r.destroyed=!0),null}static extendDefaults(t){Ct(Ll,t)}static get extendedDefaults(){return Ll}static get defaults(){return Qc}static installModule(t){mn.prototype.__modules__||(mn.prototype.__modules__=[]);const n=mn.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>mn.installModule(n)),mn):(mn.installModule(t),mn)}};Object.keys(_l).forEach(e=>{Object.keys(_l[e]).forEach(t=>{fd.prototype[t]=_l[e][t]})});fd.use([d2,f2]);const Lg=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function jr(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function uo(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:jr(t[r])&&jr(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:uo(e[r],t[r]):e[r]=t[r]})}function Ig(e){return e===void 0&&(e={}),e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function Dg(e){return e===void 0&&(e={}),e.pagination&&typeof e.pagination.el>"u"}function Ag(e){return e===void 0&&(e={}),e.scrollbar&&typeof e.scrollbar.el>"u"}function zg(e){e===void 0&&(e="");const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function vb(e){return e===void 0&&(e=""),e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function yb(e){let{swiper:t,slides:n,passedParams:r,changedParams:o,nextEl:s,prevEl:a,scrollbarEl:l,paginationEl:c}=e;const u=o.filter(O=>O!=="children"&&O!=="direction"&&O!=="wrapperClass"),{params:d,pagination:f,navigation:h,scrollbar:m,virtual:x,thumbs:w}=t;let S,g,p,v,E,C,P,T;o.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(S=!0),o.includes("controller")&&r.controller&&r.controller.control&&d.controller&&!d.controller.control&&(g=!0),o.includes("pagination")&&r.pagination&&(r.pagination.el||c)&&(d.pagination||d.pagination===!1)&&f&&!f.el&&(p=!0),o.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||l)&&(d.scrollbar||d.scrollbar===!1)&&m&&!m.el&&(v=!0),o.includes("navigation")&&r.navigation&&(r.navigation.prevEl||a)&&(r.navigation.nextEl||s)&&(d.navigation||d.navigation===!1)&&h&&!h.prevEl&&!h.nextEl&&(E=!0);const k=O=>{t[O]&&(t[O].destroy(),O==="navigation"?(t.isElement&&(t[O].prevEl.remove(),t[O].nextEl.remove()),d[O].prevEl=void 0,d[O].nextEl=void 0,t[O].prevEl=void 0,t[O].nextEl=void 0):(t.isElement&&t[O].el.remove(),d[O].el=void 0,t[O].el=void 0))};o.includes("loop")&&t.isElement&&(d.loop&&!r.loop?C=!0:!d.loop&&r.loop?P=!0:T=!0),u.forEach(O=>{if(jr(d[O])&&jr(r[O]))Object.assign(d[O],r[O]),(O==="navigation"||O==="pagination"||O==="scrollbar")&&"enabled"in r[O]&&!r[O].enabled&&k(O);else{const j=r[O];(j===!0||j===!1)&&(O==="navigation"||O==="pagination"||O==="scrollbar")?j===!1&&k(O):d[O]=r[O]}}),u.includes("controller")&&!g&&t.controller&&t.controller.control&&d.controller&&d.controller.control&&(t.controller.control=d.controller.control),o.includes("children")&&n&&x&&d.virtual.enabled?(x.slides=n,x.update(!0)):o.includes("virtual")&&x&&d.virtual.enabled&&(n&&(x.slides=n),x.update(!0)),o.includes("children")&&n&&d.loop&&(T=!0),S&&w.init()&&w.update(!0),g&&(t.controller.control=d.controller.control),p&&(t.isElement&&(!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-pagination"),c.part.add("pagination"),t.el.appendChild(c)),c&&(d.pagination.el=c),f.init(),f.render(),f.update()),v&&(t.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-scrollbar"),l.part.add("scrollbar"),t.el.appendChild(l)),l&&(d.scrollbar.el=l),m.init(),m.updateSize(),m.setTranslate()),E&&(t.isElement&&((!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-next"),s.innerHTML=t.hostEl.constructor.nextButtonSvg,s.part.add("button-next"),t.el.appendChild(s)),(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=t.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),t.el.appendChild(a))),s&&(d.navigation.nextEl=s),a&&(d.navigation.prevEl=a),h.init(),h.update()),o.includes("allowSlideNext")&&(t.allowSlideNext=r.allowSlideNext),o.includes("allowSlidePrev")&&(t.allowSlidePrev=r.allowSlidePrev),o.includes("direction")&&t.changeDirection(r.direction,!1),(C||T)&&t.loopDestroy(),(P||T)&&t.loopCreate(),t.update()}function wb(e,t){e===void 0&&(e={}),t===void 0&&(t=!0);const n={on:{}},r={},o={};uo(n,Qc),n._emitClasses=!0,n.init=!1;const s={},a=Lg.map(c=>c.replace(/_/,"")),l=Object.assign({},e);return Object.keys(l).forEach(c=>{typeof e[c]>"u"||(a.indexOf(c)>=0?jr(e[c])?(n[c]={},o[c]={},uo(n[c],e[c]),uo(o[c],e[c])):(n[c]=e[c],o[c]=e[c]):c.search(/on[A-Z]/)===0&&typeof e[c]=="function"?t?r[`${c[2].toLowerCase()}${c.substr(3)}`]=e[c]:n.on[`${c[2].toLowerCase()}${c.substr(3)}`]=e[c]:s[c]=e[c])}),["navigation","pagination","scrollbar"].forEach(c=>{n[c]===!0&&(n[c]={}),n[c]===!1&&delete n[c]}),{params:n,passedParams:o,rest:s,events:r}}function xb(e,t){let{el:n,nextEl:r,prevEl:o,paginationEl:s,scrollbarEl:a,swiper:l}=e;Ig(t)&&r&&o&&(l.params.navigation.nextEl=r,l.originalParams.navigation.nextEl=r,l.params.navigation.prevEl=o,l.originalParams.navigation.prevEl=o),Dg(t)&&s&&(l.params.pagination.el=s,l.originalParams.pagination.el=s),Ag(t)&&a&&(l.params.scrollbar.el=a,l.originalParams.scrollbar.el=a),l.init(n)}function bb(e,t,n,r,o){const s=[];if(!t)return s;const a=c=>{s.indexOf(c)<0&&s.push(c)};if(n&&r){const c=r.map(o),u=n.map(o);c.join("")!==u.join("")&&a("children"),r.length!==n.length&&a("children")}return Lg.filter(c=>c[0]==="_").map(c=>c.replace(/_/,"")).forEach(c=>{if(c in e&&c in t)if(jr(e[c])&&jr(t[c])){const u=Object.keys(e[c]),d=Object.keys(t[c]);u.length!==d.length?a(c):(u.forEach(f=>{e[c][f]!==t[c][f]&&a(c)}),d.forEach(f=>{e[c][f]!==t[c][f]&&a(c)}))}else e[c]!==t[c]&&a(c)}),s}const Sb=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function ga(){return ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t{$g(n)?t.push(n):n.props&&n.props.children&&Bg(n.props.children).forEach(r=>t.push(r))}),t}function Eb(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return D.Children.toArray(e).forEach(r=>{if($g(r))t.push(r);else if(r.props&&r.props.slot&&n[r.props.slot])n[r.props.slot].push(r);else if(r.props&&r.props.children){const o=Bg(r.props.children);o.length>0?o.forEach(s=>t.push(s)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:t,slots:n}}function Cb(e,t,n){if(!n)return null;const r=d=>{let f=d;return d<0?f=t.length+d:f>=t.length&&(f=f-t.length),f},o=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:s,to:a}=n,l=e.params.loop?-t.length:0,c=e.params.loop?t.length*2:t.length,u=[];for(let d=l;d=s&&d<=a&&u.push(t[r(d)]);return u.map((d,f)=>D.cloneElement(d,{swiper:e,style:o,key:d.props.virtualIndex||d.key||`slide-${f}`}))}function fi(e,t){return typeof window>"u"?b.useEffect(e,t):b.useLayoutEffect(e,t)}const yp=b.createContext(null),Tb=b.createContext(null),Mo=b.forwardRef(function(e,t){let{className:n,tag:r="div",wrapperTag:o="div",children:s,onSwiper:a,...l}=e===void 0?{}:e,c=!1;const[u,d]=b.useState("swiper"),[f,h]=b.useState(null),[m,x]=b.useState(!1),w=b.useRef(!1),S=b.useRef(null),g=b.useRef(null),p=b.useRef(null),v=b.useRef(null),E=b.useRef(null),C=b.useRef(null),P=b.useRef(null),T=b.useRef(null),{params:k,passedParams:O,rest:j,events:$}=wb(l),{slides:M,slots:N}=Eb(s),z=()=>{x(!m)};Object.assign(k.on,{_containerClasses(I,U){d(U)}});const H=()=>{Object.assign(k.on,$),c=!0;const I={...k};if(delete I.wrapperClass,g.current=new fd(I),g.current.virtual&&g.current.params.virtual.enabled){g.current.virtual.slides=M;const U={cache:!1,slides:M,renderExternal:h,renderExternalUpdate:!1};uo(g.current.params.virtual,U),uo(g.current.originalParams.virtual,U)}};S.current||H(),g.current&&g.current.on("_beforeBreakpoint",z);const W=()=>{c||!$||!g.current||Object.keys($).forEach(I=>{g.current.on(I,$[I])})},K=()=>{!$||!g.current||Object.keys($).forEach(I=>{g.current.off(I,$[I])})};b.useEffect(()=>()=>{g.current&&g.current.off("_beforeBreakpoint",z)}),b.useEffect(()=>{!w.current&&g.current&&(g.current.emitSlidesClasses(),w.current=!0)}),fi(()=>{if(t&&(t.current=S.current),!!S.current)return g.current.destroyed&&H(),xb({el:S.current,nextEl:E.current,prevEl:C.current,paginationEl:P.current,scrollbarEl:T.current,swiper:g.current},k),a&&!g.current.destroyed&&a(g.current),()=>{g.current&&!g.current.destroyed&&g.current.destroy(!0,!1)}},[]),fi(()=>{W();const I=bb(O,p.current,M,v.current,U=>U.key);return p.current=O,v.current=M,I.length&&g.current&&!g.current.destroyed&&yb({swiper:g.current,slides:M,passedParams:O,changedParams:I,nextEl:E.current,prevEl:C.current,scrollbarEl:T.current,paginationEl:P.current}),()=>{K()}}),fi(()=>{Sb(g.current)},[f]);function _(){return k.virtual?Cb(g.current,M,f):M.map((I,U)=>D.cloneElement(I,{swiper:g.current,swiperSlideIndex:U}))}return D.createElement(r,ga({ref:S,className:zg(`${u}${n?` ${n}`:""}`)},j),D.createElement(Tb.Provider,{value:g.current},N["container-start"],D.createElement(o,{className:vb(k.wrapperClass)},N["wrapper-start"],_(),N["wrapper-end"]),Ig(k)&&D.createElement(D.Fragment,null,D.createElement("div",{ref:C,className:"swiper-button-prev"}),D.createElement("div",{ref:E,className:"swiper-button-next"})),Ag(k)&&D.createElement("div",{ref:T,className:"swiper-scrollbar"}),Dg(k)&&D.createElement("div",{ref:P,className:"swiper-pagination"}),N["container-end"]))});Mo.displayName="Swiper";const Ro=b.forwardRef(function(e,t){let{tag:n="div",children:r,className:o="",swiper:s,zoom:a,lazy:l,virtualIndex:c,swiperSlideIndex:u,...d}=e===void 0?{}:e;const f=b.useRef(null),[h,m]=b.useState("swiper-slide"),[x,w]=b.useState(!1);function S(E,C,P){C===f.current&&m(P)}fi(()=>{if(typeof u<"u"&&(f.current.swiperSlideIndex=u),t&&(t.current=f.current),!(!f.current||!s)){if(s.destroyed){h!=="swiper-slide"&&m("swiper-slide");return}return s.on("_slideClass",S),()=>{s&&s.off("_slideClass",S)}}}),fi(()=>{s&&f.current&&!s.destroyed&&m(s.getSlideClasses(f.current))},[s]);const g={isActive:h.indexOf("swiper-slide-active")>=0,isVisible:h.indexOf("swiper-slide-visible")>=0,isPrev:h.indexOf("swiper-slide-prev")>=0,isNext:h.indexOf("swiper-slide-next")>=0},p=()=>typeof r=="function"?r(g):r,v=()=>{w(!0)};return D.createElement(n,ga({ref:f,className:zg(`${h}${o?` ${o}`:""}`),"data-swiper-slide-index":c,onLoad:v},d),a&&D.createElement(yp.Provider,{value:g},D.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof a=="number"?a:void 0},p(),l&&!x&&D.createElement("div",{className:"swiper-lazy-preloader"}))),!a&&D.createElement(yp.Provider,{value:g},p(),l&&!x&&D.createElement("div",{className:"swiper-lazy-preloader"})))});Ro.displayName="SwiperSlide";var Fg={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},wp=D.createContext&&D.createContext(Fg),Pb=["attr","size","title"];function kb(e,t){if(e==null)return{};var n=Nb(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Nb(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function va(){return va=Object.assign?Object.assign.bind():function(e){for(var t=1;tD.createElement(t.tag,ya({key:n},t.attr),Vg(t.child)))}function lt(e){return t=>D.createElement(Rb,va({attr:ya({},e.attr)},t),Vg(e.child))}function Rb(e){var t=n=>{var{attr:r,size:o,title:s}=e,a=kb(e,Pb),l=o||n.size||"1em",c;return n.className&&(c=n.className),e.className&&(c=(c?c+" ":"")+e.className),D.createElement("svg",va({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:c,style:ya(ya({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),s&&D.createElement("title",null,s),e.children)};return wp!==void 0?D.createElement(wp.Consumer,null,n=>t(n)):t(Fg)}function _b(e){return lt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M4.75 17.25a.75.75 0 0 1 .75.75v2.25c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V18a.75.75 0 0 1 1.5 0v2.25A1.75 1.75 0 0 1 18.25 22H5.75A1.75 1.75 0 0 1 4 20.25V18a.75.75 0 0 1 .75-.75Z"},child:[]},{tag:"path",attr:{d:"M5.22 9.97a.749.749 0 0 1 1.06 0l4.97 4.969V2.75a.75.75 0 0 1 1.5 0v12.189l4.97-4.969a.749.749 0 1 1 1.06 1.06l-6.25 6.25a.749.749 0 0 1-1.06 0l-6.25-6.25a.749.749 0 0 1 0-1.06Z"},child:[]}]})(e)}function pd(e){return lt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m12 20.703.343.667a.748.748 0 0 1-.686 0l-.003-.002-.007-.003-.025-.013a31.138 31.138 0 0 1-5.233-3.576C3.8 15.573 1 12.332 1 8.514v-.001C1 5.053 3.829 2.5 6.736 2.5 9.03 2.5 10.881 3.726 12 5.605 13.12 3.726 14.97 2.5 17.264 2.5 20.17 2.5 23 5.052 23 8.514c0 3.818-2.801 7.06-5.389 9.262a31.148 31.148 0 0 1-5.233 3.576l-.025.013-.007.003-.002.001ZM6.736 4C4.657 4 2.5 5.88 2.5 8.514c0 3.107 2.324 5.96 4.861 8.12a29.655 29.655 0 0 0 4.566 3.175l.073.041.073-.04c.271-.153.661-.38 1.13-.674.94-.588 2.19-1.441 3.436-2.502 2.537-2.16 4.861-5.013 4.861-8.12C21.5 5.88 19.343 4 17.264 4c-2.106 0-3.801 1.389-4.553 3.643a.751.751 0 0 1-1.422 0C10.537 5.389 8.841 4 6.736 4Z"},child:[]}]})(e)}function Lb(e){return lt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M14 20.408c-.492.308-.903.546-1.192.709-.153.086-.308.17-.463.252h-.002a.75.75 0 0 1-.686 0 16.709 16.709 0 0 1-.465-.252 31.147 31.147 0 0 1-4.803-3.34C3.8 15.572 1 12.331 1 8.513 1 5.052 3.829 2.5 6.736 2.5 9.03 2.5 10.881 3.726 12 5.605 13.12 3.726 14.97 2.5 17.264 2.5 20.17 2.5 23 5.052 23 8.514c0 3.818-2.801 7.06-5.389 9.262A31.146 31.146 0 0 1 14 20.408Z"},child:[]}]})(e)}function Ib(e){return lt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.03 2.59a1.501 1.501 0 0 1 1.94 0l7.5 6.363a1.5 1.5 0 0 1 .53 1.144V19.5a1.5 1.5 0 0 1-1.5 1.5h-5.75a.75.75 0 0 1-.75-.75V14h-2v6.25a.75.75 0 0 1-.75.75H4.5A1.5 1.5 0 0 1 3 19.5v-9.403c0-.44.194-.859.53-1.144ZM12 3.734l-7.5 6.363V19.5h5v-6.25a.75.75 0 0 1 .75-.75h3.5a.75.75 0 0 1 .75.75v6.25h5v-9.403Z"},child:[]}]})(e)}function Hg(e){return lt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M9.5 15.584V8.416a.5.5 0 0 1 .77-.42l5.576 3.583a.5.5 0 0 1 0 .842l-5.576 3.584a.5.5 0 0 1-.77-.42Z"},child:[]},{tag:"path",attr:{d:"M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm11-9.5A9.5 9.5 0 0 0 2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5Z"},child:[]}]})(e)}function Db(e){return lt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10.25 2a8.25 8.25 0 0 1 6.34 13.53l5.69 5.69a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-5.69-5.69A8.25 8.25 0 1 1 10.25 2ZM3.5 10.25a6.75 6.75 0 1 0 13.5 0 6.75 6.75 0 0 0-13.5 0Z"},child:[]}]})(e)}function Ab(e){return lt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M5.5 9.75v10.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V9.75a.25.25 0 0 0-.25-.25h-2.5a.75.75 0 0 1 0-1.5h2.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 18.25 22H5.75A1.75 1.75 0 0 1 4 20.25V9.75C4 8.784 4.784 8 5.75 8h2.5a.75.75 0 0 1 0 1.5h-2.5a.25.25 0 0 0-.25.25Zm7.03-8.53 3.25 3.25a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-1.97-1.97v10.69a.75.75 0 0 1-1.5 0V3.56L9.28 5.53a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.25-3.25a.75.75 0 0 1 1.06 0Z"},child:[]}]})(e)}function zb(e){return lt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M9.036 7.976a.75.75 0 0 0-1.06 1.06L10.939 12l-2.963 2.963a.75.75 0 1 0 1.06 1.06L12 13.06l2.963 2.964a.75.75 0 0 0 1.061-1.06L13.061 12l2.963-2.964a.75.75 0 1 0-1.06-1.06L12 10.939 9.036 7.976Z"},child:[]},{tag:"path",attr:{d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"},child:[]}]})(e)}function Oe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function $b(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Wg(...e){return t=>e.forEach(n=>$b(n,t))}function Fe(...e){return b.useCallback(Wg(...e),e)}function Bb(e,t){const n=b.createContext(t),r=s=>{const{children:a,...l}=s,c=b.useMemo(()=>l,Object.values(l));return y.jsx(n.Provider,{value:c,children:a})};r.displayName=e+"Provider";function o(s){const a=b.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Ug(e,t=[]){let n=[];function r(s,a){const l=b.createContext(a),c=n.length;n=[...n,a];const u=f=>{var g;const{scope:h,children:m,...x}=f,w=((g=h==null?void 0:h[e])==null?void 0:g[c])||l,S=b.useMemo(()=>x,Object.values(x));return y.jsx(w.Provider,{value:S,children:m})};u.displayName=s+"Provider";function d(f,h){var w;const m=((w=h==null?void 0:h[e])==null?void 0:w[c])||l,x=b.useContext(m);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,d]}const o=()=>{const s=n.map(a=>b.createContext(a));return function(l){const c=(l==null?void 0:l[e])||s;return b.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,Fb(o,...t)]}function Fb(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((l,{useScope:c,scopeName:u})=>{const f=c(s)[`__scope${u}`];return{...l,...f}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var pt=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},Vb=um.useId||(()=>{}),Hb=0;function fo(e){const[t,n]=b.useState(Vb());return pt(()=>{n(r=>r??String(Hb++))},[e]),t?`radix-${t}`:""}function Cn(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Zc({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Wb({defaultProp:t,onChange:n}),s=e!==void 0,a=s?e:r,l=Cn(n),c=b.useCallback(u=>{if(s){const f=typeof u=="function"?u(e):u;f!==e&&l(f)}else o(u)},[s,e,o,l]);return[a,c]}function Wb({defaultProp:e,onChange:t}){const n=b.useState(e),[r]=n,o=b.useRef(r),s=Cn(t);return b.useEffect(()=>{o.current!==r&&(s(r),o.current=r)},[r,o,s]),n}var Mr=b.forwardRef((e,t)=>{const{children:n,...r}=e,o=b.Children.toArray(n),s=o.find(Gb);if(s){const a=s.props.children,l=o.map(c=>c===s?b.Children.count(a)>1?b.Children.only(null):b.isValidElement(a)?a.props.children:null:c);return y.jsx(Jc,{...r,ref:t,children:b.isValidElement(a)?b.cloneElement(a,void 0,l):null})}return y.jsx(Jc,{...r,ref:t,children:n})});Mr.displayName="Slot";var Jc=b.forwardRef((e,t)=>{const{children:n,...r}=e;if(b.isValidElement(n)){const o=Kb(n);return b.cloneElement(n,{...Yb(r,n.props),ref:t?Wg(t,o):o})}return b.Children.count(n)>1?b.Children.only(null):null});Jc.displayName="SlotClone";var Ub=({children:e})=>y.jsx(y.Fragment,{children:e});function Gb(e){return b.isValidElement(e)&&e.type===Ub}function Yb(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...l)=>{s(...l),o(...l)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Kb(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Xb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Me=Xb.reduce((e,t)=>{const n=b.forwardRef((r,o)=>{const{asChild:s,...a}=r,l=s?Mr:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(l,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function qb(e,t){e&&No.flushSync(()=>e.dispatchEvent(t))}function Qb(e,t=globalThis==null?void 0:globalThis.document){const n=Cn(e);b.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Zb="DismissableLayer",eu="dismissableLayer.update",Jb="dismissableLayer.pointerDownOutside",eS="dismissableLayer.focusOutside",bp,Gg=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),md=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:l,...c}=e,u=b.useContext(Gg),[d,f]=b.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=b.useState({}),x=Fe(t,T=>f(T)),w=Array.from(u.layers),[S]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=w.indexOf(S),p=d?w.indexOf(d):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,E=p>=g,C=rS(T=>{const k=T.target,O=[...u.branches].some(j=>j.contains(k));!E||O||(o==null||o(T),a==null||a(T),T.defaultPrevented||l==null||l())},h),P=oS(T=>{const k=T.target;[...u.branches].some(j=>j.contains(k))||(s==null||s(T),a==null||a(T),T.defaultPrevented||l==null||l())},h);return Qb(T=>{p===u.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&l&&(T.preventDefault(),l()))},h),b.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(bp=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Sp(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=bp)}},[d,h,n,u]),b.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Sp())},[d,u]),b.useEffect(()=>{const T=()=>m({});return document.addEventListener(eu,T),()=>document.removeEventListener(eu,T)},[]),y.jsx(Me.div,{...c,ref:x,style:{pointerEvents:v?E?"auto":"none":void 0,...e.style},onFocusCapture:Oe(e.onFocusCapture,P.onFocusCapture),onBlurCapture:Oe(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:Oe(e.onPointerDownCapture,C.onPointerDownCapture)})});md.displayName=Zb;var tS="DismissableLayerBranch",nS=b.forwardRef((e,t)=>{const n=b.useContext(Gg),r=b.useRef(null),o=Fe(t,r);return b.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),y.jsx(Me.div,{...e,ref:o})});nS.displayName=tS;function rS(e,t=globalThis==null?void 0:globalThis.document){const n=Cn(e),r=b.useRef(!1),o=b.useRef(()=>{});return b.useEffect(()=>{const s=l=>{if(l.target&&!r.current){let c=function(){Yg(Jb,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function oS(e,t=globalThis==null?void 0:globalThis.document){const n=Cn(e),r=b.useRef(!1);return b.useEffect(()=>{const o=s=>{s.target&&!r.current&&Yg(eS,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Sp(){const e=new CustomEvent(eu);document.dispatchEvent(e)}function Yg(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?qb(o,s):o.dispatchEvent(s)}var Il="focusScope.autoFocusOnMount",Dl="focusScope.autoFocusOnUnmount",Ep={bubbles:!1,cancelable:!0},iS="FocusScope",hd=b.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[l,c]=b.useState(null),u=Cn(o),d=Cn(s),f=b.useRef(null),h=Fe(t,w=>c(w)),m=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(r){let w=function(v){if(m.paused||!l)return;const E=v.target;l.contains(E)?f.current=E:An(f.current,{select:!0})},S=function(v){if(m.paused||!l)return;const E=v.relatedTarget;E!==null&&(l.contains(E)||An(f.current,{select:!0}))},g=function(v){if(document.activeElement===document.body)for(const C of v)C.removedNodes.length>0&&An(l)};document.addEventListener("focusin",w),document.addEventListener("focusout",S);const p=new MutationObserver(g);return l&&p.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",S),p.disconnect()}}},[r,l,m.paused]),b.useEffect(()=>{if(l){Tp.add(m);const w=document.activeElement;if(!l.contains(w)){const g=new CustomEvent(Il,Ep);l.addEventListener(Il,u),l.dispatchEvent(g),g.defaultPrevented||(sS(dS(Kg(l)),{select:!0}),document.activeElement===w&&An(l))}return()=>{l.removeEventListener(Il,u),setTimeout(()=>{const g=new CustomEvent(Dl,Ep);l.addEventListener(Dl,d),l.dispatchEvent(g),g.defaultPrevented||An(w??document.body,{select:!0}),l.removeEventListener(Dl,d),Tp.remove(m)},0)}}},[l,u,d,m]);const x=b.useCallback(w=>{if(!n&&!r||m.paused)return;const S=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,g=document.activeElement;if(S&&g){const p=w.currentTarget,[v,E]=aS(p);v&&E?!w.shiftKey&&g===E?(w.preventDefault(),n&&An(v,{select:!0})):w.shiftKey&&g===v&&(w.preventDefault(),n&&An(E,{select:!0})):g===p&&w.preventDefault()}},[n,r,m.paused]);return y.jsx(Me.div,{tabIndex:-1,...a,ref:h,onKeyDown:x})});hd.displayName=iS;function sS(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(An(r,{select:t}),document.activeElement!==n)return}function aS(e){const t=Kg(e),n=Cp(t,e),r=Cp(t.reverse(),e);return[n,r]}function Kg(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Cp(e,t){for(const n of e)if(!lS(n,{upTo:t}))return n}function lS(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function cS(e){return e instanceof HTMLInputElement&&"select"in e}function An(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&cS(e)&&t&&e.select()}}var Tp=uS();function uS(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Pp(e,t),e.unshift(t)},remove(t){var n;e=Pp(e,t),(n=e[0])==null||n.resume()}}}function Pp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function dS(e){return e.filter(t=>t.tagName!=="A")}var fS="Portal",gd=b.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,s]=b.useState(!1);pt(()=>s(!0),[]);const a=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?pg.createPortal(y.jsx(Me.div,{...r,ref:t}),a):null});gd.displayName=fS;function pS(e,t){return b.useReducer((n,r)=>t[n][r]??n,e)}var Ga=e=>{const{present:t,children:n}=e,r=mS(t),o=typeof n=="function"?n({present:r.isPresent}):b.Children.only(n),s=Fe(r.ref,hS(o));return typeof n=="function"||r.isPresent?b.cloneElement(o,{ref:s}):null};Ga.displayName="Presence";function mS(e){const[t,n]=b.useState(),r=b.useRef({}),o=b.useRef(e),s=b.useRef("none"),a=e?"mounted":"unmounted",[l,c]=pS(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const u=us(r.current);s.current=l==="mounted"?u:"none"},[l]),pt(()=>{const u=r.current,d=o.current;if(d!==e){const h=s.current,m=us(u);e?c("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&h!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),pt(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=m=>{const w=us(r.current).includes(m.animationName);if(m.target===t&&w&&(c("ANIMATION_END"),!o.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},h=m=>{m.target===t&&(s.current=us(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:b.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function us(e){return(e==null?void 0:e.animationName)||"none"}function hS(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Al=0;function Xg(){b.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??kp()),document.body.insertAdjacentElement("beforeend",e[1]??kp()),Al++,()=>{Al===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Al--}},[])}function kp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var on=function(){return on=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return RS;var t=_S(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},IS=Jg(),po="data-scroll-locked",DS=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,l=e.gap;return n===void 0&&(n="margin"),` - .`.concat(vS,` { + */function da(){return da=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function Dx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Ax(e,t){return e.button===0&&(!t||t==="_self")&&!Dx(e)}function Yc(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||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(o=>[n,o]):[[n,r]])},[]))}function zx(e,t){let n=Yc(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(s=>{n.append(o,s)})}),n}const $x=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Bx=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],Fx="6";try{window.__reactRouterVersion=Fx}catch{}const Vx=b.createContext({isTransitioning:!1}),Hx="startTransition",dp=um[Hx];function Wx(e){let{basename:t,children:n,future:r,window:o}=e,s=b.useRef();s.current==null&&(s.current=Ww({window:o,v5Compat:!0}));let a=s.current,[l,c]=b.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},d=b.useCallback(f=>{u&&dp?dp(()=>c(f)):c(f)},[c,u]);return b.useLayoutEffect(()=>a.listen(d),[a,d]),b.useEffect(()=>Mx(r),[r]),b.createElement(Lx,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const Ux=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Gx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Yx=b.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:s,replace:a,state:l,target:c,to:u,preventScrollReset:d,viewTransition:f}=t,h=Tg(t,$x),{basename:m}=b.useContext(ur),x,w=!1;if(typeof u=="string"&&Gx.test(u)&&(x=u,Ux))try{let y=new URL(window.location.href),E=u.startsWith("//")?new URL(y.protocol+u):new URL(u),C=Eo(E.pathname,m);E.origin===y.origin&&C!=null?u=C+E.search+E.hash:w=!0}catch{}let S=hx(u,{relative:o}),g=Xx(u,{replace:a,state:l,target:c,preventScrollReset:d,relative:o,viewTransition:f});function p(y){r&&r(y),y.defaultPrevented||g(y)}return b.createElement("a",da({},h,{href:x||S,onClick:w||s?r:p,ref:n,target:c}))}),$t=b.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:s="",end:a=!1,style:l,to:c,viewTransition:u,children:d}=t,f=Tg(t,Bx),h=Ua(c,{relative:f.relative}),m=Oo(),x=b.useContext(xg),{navigator:w,basename:S}=b.useContext(ur),g=x!=null&&Qx(h)&&u===!0,p=w.encodeLocation?w.encodeLocation(h).pathname:h.pathname,y=m.pathname,E=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;o||(y=y.toLowerCase(),E=E?E.toLowerCase():null,p=p.toLowerCase()),E&&S&&(E=Eo(E,S)||E);const C=p!=="/"&&p.endsWith("/")?p.length-1:p.length;let k=y===p||!a&&y.startsWith(p)&&y.charAt(C)==="/",T=E!=null&&(E===p||!a&&E.startsWith(p)&&E.charAt(p.length)==="/"),P={isActive:k,isPending:T,isTransitioning:g},O=k?r:void 0,R;typeof s=="function"?R=s(P):R=[s,k?"active":null,T?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let z=typeof l=="function"?l(P):l;return b.createElement(Yx,da({},f,{"aria-current":O,className:R,ref:n,style:z,to:c,viewTransition:u}),typeof d=="function"?d(P):d)});var Kc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Kc||(Kc={}));var fp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(fp||(fp={}));function Kx(e){let t=b.useContext(Ha);return t||$e(!1),t}function Xx(e,t){let{target:n,replace:r,state:o,preventScrollReset:s,relative:a,viewTransition:l}=t===void 0?{}:t,c=jo(),u=Oo(),d=Ua(e,{relative:a});return b.useCallback(f=>{if(Ax(f,n)){f.preventDefault();let h=r!==void 0?r:la(u)===la(d);c(e,{replace:h,state:o,preventScrollReset:s,relative:a,viewTransition:l})}},[u,c,d,r,o,n,e,s,a,l])}function qx(e){let t=b.useRef(Yc(e)),n=b.useRef(!1),r=Oo(),o=b.useMemo(()=>zx(r.search,n.current?null:t.current),[r.search]),s=jo(),a=b.useCallback((l,c)=>{const u=Yc(typeof l=="function"?l(o):l);n.current=!0,s("?"+u,c)},[s,o]);return[o,a]}function Qx(e,t){t===void 0&&(t={});let n=b.useContext(Vx);n==null&&$e(!1);let{basename:r}=Kx(Kc.useViewTransitionState),o=Ua(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=Eo(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Eo(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ca(o.pathname,a)!=null||ca(o.pathname,s)!=null}function pp(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function dd(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:pp(t[n])&&pp(e[n])&&Object.keys(t[n]).length>0&&dd(e[n],t[n])})}const Pg={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Qt(){const e=typeof document<"u"?document:{};return dd(e,Pg),e}const Zx={document:Pg,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Et(){const e=typeof window<"u"?window:{};return dd(e,Zx),e}function An(e){return e===void 0&&(e=""),e.trim().split(" ").filter(t=>!!t.trim())}function Jx(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function fa(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function pa(){return Date.now()}function e2(e){const t=Et();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function t2(e,t){t===void 0&&(t="x");const n=Et();let r,o,s;const a=e2(e);return n.WebKitCSSMatrix?(o=a.transform||a.webkitTransform,o.split(",").length>6&&(o=o.split(", ").map(l=>l.replace(",",".")).join(", ")),s=new n.WebKitCSSMatrix(o==="none"?"":o)):(s=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=s.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?o=s.m41:r.length===16?o=parseFloat(r[12]):o=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?o=s.m42:r.length===16?o=parseFloat(r[13]):o=parseFloat(r[5])),o||0}function ls(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function n2(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function kt(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;nt.indexOf(s)<0);for(let s=0,a=o.length;ss?"next":"prev",d=(h,m)=>u==="next"&&h>=m||u==="prev"&&h<=m,f=()=>{l=new Date().getTime(),a===null&&(a=l);const h=Math.max(Math.min((l-a)/c,1),0),m=.5-Math.cos(h*Math.PI)/2;let x=s+m*(n-s);if(d(x,n)&&(x=n),t.wrapperEl.scrollTo({[r]:x}),d(x,n)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:x})}),o.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=o.requestAnimationFrame(f)};f()}function Ng(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function ln(e,t){t===void 0&&(t="");const n=[...e.children];return e instanceof HTMLSlotElement&&n.push(...e.assignedElements()),t?n.filter(r=>r.matches(t)):n}function r2(e,t){const n=t.contains(e);return!n&&t instanceof HTMLSlotElement?[...t.assignedElements()].includes(e):n}function ma(e){try{console.warn(e);return}catch{}}function Mi(e,t){t===void 0&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:An(t)),n}function o2(e){const t=Et(),n=Qt(),r=e.getBoundingClientRect(),o=n.body,s=e.clientTop||o.clientTop||0,a=e.clientLeft||o.clientLeft||0,l=e===t?t.scrollY:e.scrollTop,c=e===t?t.scrollX:e.scrollLeft;return{top:r.top+l-s,left:r.left+c-a}}function i2(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function s2(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function Gn(e,t){return Et().getComputedStyle(e,null).getPropertyValue(t)}function ha(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function Og(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function a2(e,t){function n(r){r.target===e&&(t.call(e,r),e.removeEventListener("transitionend",n))}t&&e.addEventListener("transitionend",n)}function Xc(e,t,n){const r=Et();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}function Ye(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}let Nl;function l2(){const e=Et(),t=Qt();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function jg(){return Nl||(Nl=l2()),Nl}let Ol;function c2(e){let{userAgent:t}=e===void 0?{}:e;const n=jg(),r=Et(),o=r.navigator.platform,s=t||r.navigator.userAgent,a={ios:!1,android:!1},l=r.screen.width,c=r.screen.height,u=s.match(/(Android);?[\s\/]+([\d.]+)?/);let d=s.match(/(iPad).*OS\s([\d_]+)/);const f=s.match(/(iPod)(.*OS\s([\d_]+))?/),h=!d&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=o==="Win32";let x=o==="MacIntel";const w=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&x&&n.touch&&w.indexOf(`${l}x${c}`)>=0&&(d=s.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),x=!1),u&&!m&&(a.os="android",a.android=!0),(d||h||f)&&(a.os="ios",a.ios=!0),a}function Rg(e){return e===void 0&&(e={}),Ol||(Ol=c2(e)),Ol}let jl;function u2(){const e=Et(),t=Rg();let n=!1;function r(){const l=e.navigator.userAgent.toLowerCase();return l.indexOf("safari")>=0&&l.indexOf("chrome")<0&&l.indexOf("android")<0}if(r()){const l=String(e.navigator.userAgent);if(l.includes("Version/")){const[c,u]=l.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));n=c<16||c===16&&u<2}}const o=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),s=r(),a=s||o&&t.ios;return{isSafari:n||s,needPerspectiveFix:n,need3dFix:a,isWebView:o}}function d2(){return jl||(jl=u2()),jl}function f2(e){let{swiper:t,on:n,emit:r}=e;const o=Et();let s=null,a=null;const l=()=>{!t||t.destroyed||!t.initialized||(r("beforeResize"),r("resize"))},c=()=>{!t||t.destroyed||!t.initialized||(s=new ResizeObserver(f=>{a=o.requestAnimationFrame(()=>{const{width:h,height:m}=t;let x=h,w=m;f.forEach(S=>{let{contentBoxSize:g,contentRect:p,target:y}=S;y&&y!==t.el||(x=p?p.width:(g[0]||g).inlineSize,w=p?p.height:(g[0]||g).blockSize)}),(x!==h||w!==m)&&l()})}),s.observe(t.el))},u=()=>{a&&o.cancelAnimationFrame(a),s&&s.unobserve&&t.el&&(s.unobserve(t.el),s=null)},d=()=>{!t||t.destroyed||!t.initialized||r("orientationchange")};n("init",()=>{if(t.params.resizeObserver&&typeof o.ResizeObserver<"u"){c();return}o.addEventListener("resize",l),o.addEventListener("orientationchange",d)}),n("destroy",()=>{u(),o.removeEventListener("resize",l),o.removeEventListener("orientationchange",d)})}function p2(e){let{swiper:t,extendParams:n,on:r,emit:o}=e;const s=[],a=Et(),l=function(d,f){f===void 0&&(f={});const h=a.MutationObserver||a.WebkitMutationObserver,m=new h(x=>{if(t.__preventObserver__)return;if(x.length===1){o("observerUpdate",x[0]);return}const w=function(){o("observerUpdate",x[0])};a.requestAnimationFrame?a.requestAnimationFrame(w):a.setTimeout(w,0)});m.observe(d,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:t.isElement||(typeof f.childList>"u"?!0:f).childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),s.push(m)},c=()=>{if(t.params.observer){if(t.params.observeParents){const d=Og(t.hostEl);for(let f=0;f{s.forEach(d=>{d.disconnect()}),s.splice(0,s.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",c),r("destroy",u)}var m2={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const o=n?"unshift":"push";return e.split(" ").forEach(s=>{r.eventsListeners[s]||(r.eventsListeners[s]=[]),r.eventsListeners[s][o](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function o(){r.off(e,o),o.__emitterProxy&&delete o.__emitterProxy;for(var s=arguments.length,a=new Array(s),l=0;l=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((o,s)=>{(o===t||o.__emitterProxy&&o.__emitterProxy===t)&&n.eventsListeners[r].splice(s,1)})}),n},emit(){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,n,r;for(var o=arguments.length,s=new Array(o),a=0;a{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(u=>{u.apply(r,[c,...n])}),e.eventsListeners&&e.eventsListeners[c]&&e.eventsListeners[c].forEach(u=>{u.apply(r,n)})}),e}};function h2(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(Gn(r,"padding-left")||0,10)-parseInt(Gn(r,"padding-right")||0,10),n=n-parseInt(Gn(r,"padding-top")||0,10)-parseInt(Gn(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function g2(){const e=this;function t(R,z){return parseFloat(R.getPropertyValue(e.getDirectionLabel(z))||0)}const n=e.params,{wrapperEl:r,slidesEl:o,size:s,rtlTranslate:a,wrongRTL:l}=e,c=e.virtual&&n.virtual.enabled,u=c?e.virtual.slides.length:e.slides.length,d=ln(o,`.${e.params.slideClass}, swiper-slide`),f=c?e.virtual.slides.length:d.length;let h=[];const m=[],x=[];let w=n.slidesOffsetBefore;typeof w=="function"&&(w=n.slidesOffsetBefore.call(e));let S=n.slidesOffsetAfter;typeof S=="function"&&(S=n.slidesOffsetAfter.call(e));const g=e.snapGrid.length,p=e.slidesGrid.length;let y=n.spaceBetween,E=-w,C=0,k=0;if(typeof s>"u")return;typeof y=="string"&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*s:typeof y=="string"&&(y=parseFloat(y)),e.virtualSize=-y,d.forEach(R=>{a?R.style.marginLeft="":R.style.marginRight="",R.style.marginBottom="",R.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(cs(r,"--swiper-centered-offset-before",""),cs(r,"--swiper-centered-offset-after",""));const T=n.grid&&n.grid.rows>1&&e.grid;T?e.grid.initSlides(d):e.grid&&e.grid.unsetSlides();let P;const O=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(R=>typeof n.breakpoints[R].slidesPerView<"u").length>0;for(let R=0;R1&&h.push(e.virtualSize-s)}if(c&&n.loop){const R=x[0]+y;if(n.slidesPerGroup>1){const z=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),j=R*n.slidesPerGroup;for(let N=0;N!n.cssMode||n.loop?!0:j!==d.length-1).forEach(z=>{z.style[R]=`${y}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let R=0;x.forEach(j=>{R+=j+(y||0)}),R-=y;const z=R>s?R-s:0;h=h.map(j=>j<=0?-w:j>z?z+S:j)}if(n.centerInsufficientSlides){let R=0;x.forEach(j=>{R+=j+(y||0)}),R-=y;const z=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(R+z{h[$]=N-j}),m.forEach((N,$)=>{m[$]=N+j})}}if(Object.assign(e,{slides:d,snapGrid:h,slidesGrid:m,slidesSizesGrid:x}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){cs(r,"--swiper-centered-offset-before",`${-h[0]}px`),cs(r,"--swiper-centered-offset-after",`${e.size/2-x[x.length-1]/2}px`);const R=-e.snapGrid[0],z=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(j=>j+R),e.slidesGrid=e.slidesGrid.map(j=>j+z)}if(f!==u&&e.emit("slidesLengthChange"),h.length!==g&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),m.length!==p&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!c&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const R=`${n.containerModifierClass}backface-hidden`,z=e.el.classList.contains(R);f<=n.maxBackfaceHiddenSlides?z||e.el.classList.add(R):z&&e.el.classList.remove(R)}}function v2(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let o=0,s;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const a=l=>r?t.slides[t.getSlideIndexByData(l)]:t.slides[l];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(l=>{n.push(l)});else for(s=0;st.slides.length&&!r)break;n.push(a(l))}else n.push(a(t.activeIndex));for(s=0;so?l:o}(o||o===0)&&(t.wrapperEl.style.height=`${o}px`)}function y2(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function w2(e){e===void 0&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:r,rtlTranslate:o,snapGrid:s}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let a=-e;o&&(a=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let l=n.spaceBetween;typeof l=="string"&&l.indexOf("%")>=0?l=parseFloat(l.replace("%",""))/100*t.size:typeof l=="string"&&(l=parseFloat(l));for(let c=0;c=0&&m<=t.size-t.slidesSizesGrid[c],S=m>=0&&m1&&x<=t.size||m<=0&&x>=t.size;S&&(t.visibleSlides.push(u),t.visibleSlidesIndexes.push(c)),mp(u,S,n.slideVisibleClass),mp(u,w,n.slideFullyVisibleClass),u.progress=o?-f:f,u.originalProgress=o?-h:h}}function x2(e){const t=this;if(typeof e>"u"){const d=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*d||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:o,isBeginning:s,isEnd:a,progressLoop:l}=t;const c=s,u=a;if(r===0)o=0,s=!0,a=!0;else{o=(e-t.minTranslate())/r;const d=Math.abs(e-t.minTranslate())<1,f=Math.abs(e-t.maxTranslate())<1;s=d||o<=0,a=f||o>=1,d&&(o=0),f&&(o=1)}if(n.loop){const d=t.getSlideIndexByData(0),f=t.getSlideIndexByData(t.slides.length-1),h=t.slidesGrid[d],m=t.slidesGrid[f],x=t.slidesGrid[t.slidesGrid.length-1],w=Math.abs(e);w>=h?l=(w-h)/x:l=(w+x-m)/x,l>1&&(l-=1)}Object.assign(t,{progress:o,progressLoop:l,isBeginning:s,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),s&&!c&&t.emit("reachBeginning toEdge"),a&&!u&&t.emit("reachEnd toEdge"),(c&&!s||u&&!a)&&t.emit("fromEdge"),t.emit("progress",o)}const Rl=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function b2(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:o}=e,s=e.virtual&&n.virtual.enabled,a=e.grid&&n.grid&&n.grid.rows>1,l=f=>ln(r,`.${n.slideClass}${f}, swiper-slide${f}`)[0];let c,u,d;if(s)if(n.loop){let f=o-e.virtual.slidesBefore;f<0&&(f=e.virtual.slides.length+f),f>=e.virtual.slides.length&&(f-=e.virtual.slides.length),c=l(`[data-swiper-slide-index="${f}"]`)}else c=l(`[data-swiper-slide-index="${o}"]`);else a?(c=t.filter(f=>f.column===o)[0],d=t.filter(f=>f.column===o+1)[0],u=t.filter(f=>f.column===o-1)[0]):c=t[o];c&&(a||(d=s2(c,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!d&&(d=t[0]),u=i2(c,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u===0&&(u=t[t.length-1]))),t.forEach(f=>{Rl(f,f===c,n.slideActiveClass),Rl(f,f===d,n.slideNextClass),Rl(f,f===u,n.slidePrevClass)}),e.emitSlidesClasses()}const Ms=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){let o=r.querySelector(`.${e.params.lazyPreloaderClass}`);!o&&e.isElement&&(r.shadowRoot?o=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{r.shadowRoot&&(o=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),o&&o.remove())})),o&&o.remove()}},Ml=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},qc=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),o=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const a=o,l=[a-t];l.push(...Array.from({length:t}).map((c,u)=>a+r+u)),e.slides.forEach((c,u)=>{l.includes(c.column)&&Ml(e,u)});return}const s=o+r-1;if(e.params.rewind||e.params.loop)for(let a=o-t;a<=s+t;a+=1){const l=(a%n+n)%n;(ls)&&Ml(e,l)}else for(let a=Math.max(o-t,0);a<=Math.min(s+t,n-1);a+=1)a!==o&&(a>s||a=t[s]&&r=t[s]&&r=t[s]&&(o=s);return n.normalizeSlideIndex&&(o<0||typeof o>"u")&&(o=0),o}function E2(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:o,activeIndex:s,realIndex:a,snapIndex:l}=t;let c=e,u;const d=m=>{let x=m-t.virtual.slidesBefore;return x<0&&(x=t.virtual.slides.length+x),x>=t.virtual.slides.length&&(x-=t.virtual.slides.length),x};if(typeof c>"u"&&(c=S2(t)),r.indexOf(n)>=0)u=r.indexOf(n);else{const m=Math.min(o.slidesPerGroupSkip,c);u=m+Math.floor((c-m)/o.slidesPerGroup)}if(u>=r.length&&(u=r.length-1),c===s&&!t.params.loop){u!==l&&(t.snapIndex=u,t.emit("snapIndexChange"));return}if(c===s&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=d(c);return}const f=t.grid&&o.grid&&o.grid.rows>1;let h;if(t.virtual&&o.virtual.enabled&&o.loop)h=d(c);else if(f){const m=t.slides.filter(w=>w.column===c)[0];let x=parseInt(m.getAttribute("data-swiper-slide-index"),10);Number.isNaN(x)&&(x=Math.max(t.slides.indexOf(m),0)),h=Math.floor(x/o.grid.rows)}else if(t.slides[c]){const m=t.slides[c].getAttribute("data-swiper-slide-index");m?h=parseInt(m,10):h=c}else h=c;Object.assign(t,{previousSnapIndex:l,snapIndex:u,previousRealIndex:a,realIndex:h,previousIndex:s,activeIndex:c}),t.initialized&&qc(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(a!==h&&t.emit("realIndexChange"),t.emit("slideChange"))}function C2(e,t){const n=this,r=n.params;let o=e.closest(`.${r.slideClass}, swiper-slide`);!o&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(l=>{!o&&l.matches&&l.matches(`.${r.slideClass}, swiper-slide`)&&(o=l)});let s=!1,a;if(o){for(let l=0;lc?d=c:r&&ea?l="next":s"u"&&(t=s.params.speed);const w=Math.min(s.params.slidesPerGroupSkip,a);let S=w+Math.floor((a-w)/s.params.slidesPerGroup);S>=c.length&&(S=c.length-1);const g=-c[S];if(l.normalizeSlideIndex)for(let C=0;C=T&&k=T&&k=T&&(a=C)}if(s.initialized&&a!==f&&(!s.allowSlideNext&&(h?g>s.translate&&g>s.minTranslate():gs.translate&&g>s.maxTranslate()&&(f||0)!==a))return!1;a!==(d||0)&&n&&s.emit("beforeSlideChangeStart"),s.updateProgress(g);let p;a>f?p="next":a0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[C?"scrollLeft":"scrollTop"]=k})):m[C?"scrollLeft":"scrollTop"]=k,y&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1});else{if(!s.support.smoothScroll)return kg({swiper:s,targetPosition:k,side:C?"left":"top"}),!0;m.scrollTo({[C?"left":"top"]:k,behavior:"smooth"})}return!0}return s.setTransition(t),s.setTranslate(g),s.updateActiveIndex(a),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,r),s.transitionStart(n,p),t===0?s.transitionEnd(n,p):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(k){!s||s.destroyed||k.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(n,p))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function A2(e,t,n,r){e===void 0&&(e=0),n===void 0&&(n=!0),typeof e=="string"&&(e=parseInt(e,10));const o=this;if(o.destroyed)return;typeof t>"u"&&(t=o.params.speed);const s=o.grid&&o.params.grid&&o.params.grid.rows>1;let a=e;if(o.params.loop)if(o.virtual&&o.params.virtual.enabled)a=a+o.virtual.slidesBefore;else{let l;if(s){const h=a*o.params.grid.rows;l=o.slides.filter(m=>m.getAttribute("data-swiper-slide-index")*1===h)[0].column}else l=o.getSlideIndexByData(a);const c=s?Math.ceil(o.slides.length/o.params.grid.rows):o.slides.length,{centeredSlides:u}=o.params;let d=o.params.slidesPerView;d==="auto"?d=o.slidesPerViewDynamic():(d=Math.ceil(parseFloat(o.params.slidesPerView,10)),u&&d%2===0&&(d=d+1));let f=c-lm.getAttribute("data-swiper-slide-index")*1===h)[0].column}else a=o.getSlideIndexByData(a)}return requestAnimationFrame(()=>{o.slideTo(a,t,n,r)}),o}function z2(e,t,n){t===void 0&&(t=!0);const r=this,{enabled:o,params:s,animating:a}=r;if(!o||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);let l=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(l=Math.max(r.slidesPerViewDynamic("current",!0),1));const c=r.activeIndex{r.slideTo(r.activeIndex+c,e,t,n)}),!0}return s.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+c,e,t,n)}function $2(e,t,n){t===void 0&&(t=!0);const r=this,{params:o,snapGrid:s,slidesGrid:a,rtlTranslate:l,enabled:c,animating:u}=r;if(!c||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);const d=r.virtual&&o.virtual.enabled;if(o.loop){if(u&&!d&&o.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const f=l?r.translate:-r.translate;function h(g){return g<0?-Math.floor(Math.abs(g)):Math.floor(g)}const m=h(f),x=s.map(g=>h(g));let w=s[x.indexOf(m)-1];if(typeof w>"u"&&o.cssMode){let g;s.forEach((p,y)=>{m>=p&&(g=y)}),typeof g<"u"&&(w=s[g>0?g-1:g])}let S=0;if(typeof w<"u"&&(S=a.indexOf(w),S<0&&(S=r.activeIndex-1),o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(S=S-r.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),o.rewind&&r.isBeginning){const g=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(g,e,t,n)}else if(o.loop&&r.activeIndex===0&&o.cssMode)return requestAnimationFrame(()=>{r.slideTo(S,e,t,n)}),!0;return r.slideTo(S,e,t,n)}function B2(e,t,n){t===void 0&&(t=!0);const r=this;if(!r.destroyed)return typeof e>"u"&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)}function F2(e,t,n,r){t===void 0&&(t=!0),r===void 0&&(r=.5);const o=this;if(o.destroyed)return;typeof e>"u"&&(e=o.params.speed);let s=o.activeIndex;const a=Math.min(o.params.slidesPerGroupSkip,s),l=a+Math.floor((s-a)/o.params.slidesPerGroup),c=o.rtlTranslate?o.translate:-o.translate;if(c>=o.snapGrid[l]){const u=o.snapGrid[l],d=o.snapGrid[l+1];c-u>(d-u)*r&&(s+=o.params.slidesPerGroup)}else{const u=o.snapGrid[l-1],d=o.snapGrid[l];c-u<=(d-u)*r&&(s-=o.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,o.slidesGrid.length-1),o.slideTo(s,e,t,n)}function V2(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let o=e.clickedIndex,s;const a=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;s=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?oe.slides.length-e.loopedSlides+r/2?(e.loopFix(),o=e.getSlideIndex(ln(n,`${a}[data-swiper-slide-index="${s}"]`)[0]),fa(()=>{e.slideTo(o)})):e.slideTo(o):o>e.slides.length-r?(e.loopFix(),o=e.getSlideIndex(ln(n,`${a}[data-swiper-slide-index="${s}"]`)[0]),fa(()=>{e.slideTo(o)})):e.slideTo(o)}else e.slideTo(o)}var H2={slideTo:D2,slideToLoop:A2,slideNext:z2,slidePrev:$2,slideReset:B2,slideToClosest:F2,slideToClickedSlide:V2};function W2(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;const o=()=>{ln(r,`.${n.slideClass}, swiper-slide`).forEach((f,h)=>{f.setAttribute("data-swiper-slide-index",h)})},s=t.grid&&n.grid&&n.grid.rows>1,a=n.slidesPerGroup*(s?n.grid.rows:1),l=t.slides.length%a!==0,c=s&&t.slides.length%n.grid.rows!==0,u=d=>{for(let f=0;f1;u.length"u"?s=c.getSlideIndex(u.filter(N=>N.classList.contains(m.slideActiveClass))[0]):C=s;const k=r==="next"||!r,T=r==="prev"||!r;let P=0,O=0;const R=p?Math.ceil(u.length/m.grid.rows):u.length,j=(p?u[s].column:s)+(x&&typeof o>"u"?-w/2+.5:0);if(j=0;U-=1)u[U].column===V&&y.push(U)}else y.push(R-$-1)}}else if(j+w>R-g){O=Math.max(j-(R-g*2),S);for(let N=0;N{V.column===$&&E.push(U)}):E.push($)}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1}),T&&y.forEach(N=>{u[N].swiperLoopMoveDOM=!0,h.prepend(u[N]),u[N].swiperLoopMoveDOM=!1}),k&&E.forEach(N=>{u[N].swiperLoopMoveDOM=!0,h.append(u[N]),u[N].swiperLoopMoveDOM=!1}),c.recalcSlides(),m.slidesPerView==="auto"?c.updateSlides():p&&(y.length>0&&T||E.length>0&&k)&&c.slides.forEach((N,$)=>{c.grid.updateSlide($,N,c.slides)}),m.watchSlidesProgress&&c.updateSlidesOffset(),n){if(y.length>0&&T){if(typeof t>"u"){const N=c.slidesGrid[C],V=c.slidesGrid[C+P]-N;l?c.setTranslate(c.translate-V):(c.slideTo(C+Math.ceil(P),0,!1,!0),o&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-V,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-V))}else if(o){const N=p?y.length/m.grid.rows:y.length;c.slideTo(c.activeIndex+N,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(E.length>0&&k)if(typeof t>"u"){const N=c.slidesGrid[C],V=c.slidesGrid[C-O]-N;l?c.setTranslate(c.translate-V):(c.slideTo(C-O,0,!1,!0),o&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-V,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-V))}else{const N=p?E.length/m.grid.rows:E.length;c.slideTo(c.activeIndex-N,0,!1,!0)}}if(c.allowSlidePrev=d,c.allowSlideNext=f,c.controller&&c.controller.control&&!a){const N={slideRealIndex:t,direction:r,setTranslate:o,activeSlideIndex:s,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach($=>{!$.destroyed&&$.params.loop&&$.loopFix({...N,slideTo:$.params.slidesPerView===m.slidesPerView?n:!1})}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...N,slideTo:c.controller.control.params.slidesPerView===m.slidesPerView?n:!1})}c.emit("loopFix")}function G2(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(o=>{const s=typeof o.swiperSlideIndex>"u"?o.getAttribute("data-swiper-slide-index")*1:o.swiperSlideIndex;r[s]=o}),e.slides.forEach(o=>{o.removeAttribute("data-swiper-slide-index")}),r.forEach(o=>{n.append(o)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var Y2={loopCreate:W2,loopFix:U2,loopDestroy:G2};function K2(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function X2(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var q2={setGrabCursor:K2,unsetGrabCursor:X2};function Q2(e,t){t===void 0&&(t=this);function n(r){if(!r||r===Qt()||r===Et())return null;r.assignedSlot&&(r=r.assignedSlot);const o=r.closest(e);return!o&&!r.getRootNode?null:o||n(r.getRootNode().host)}return n(t)}function hp(e,t,n){const r=Et(),{params:o}=e,s=o.edgeSwipeDetection,a=o.edgeSwipeThreshold;return s&&(n<=a||n>=r.innerWidth-a)?s==="prevent"?(t.preventDefault(),!0):!1:!0}function Z2(e){const t=this,n=Qt();let r=e;r.originalEvent&&(r=r.originalEvent);const o=t.touchEventsData;if(r.type==="pointerdown"){if(o.pointerId!==null&&o.pointerId!==r.pointerId)return;o.pointerId=r.pointerId}else r.type==="touchstart"&&r.targetTouches.length===1&&(o.touchId=r.targetTouches[0].identifier);if(r.type==="touchstart"){hp(t,r,r.targetTouches[0].pageX);return}const{params:s,touches:a,enabled:l}=t;if(!l||!s.simulateTouch&&r.pointerType==="mouse"||t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let c=r.target;if(s.touchEventsTarget==="wrapper"&&!r2(c,t.wrapperEl)||"which"in r&&r.which===3||"button"in r&&r.button>0||o.isTouched&&o.isMoved)return;const u=!!s.noSwipingClass&&s.noSwipingClass!=="",d=r.composedPath?r.composedPath():r.path;u&&r.target&&r.target.shadowRoot&&d&&(c=d[0]);const f=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,h=!!(r.target&&r.target.shadowRoot);if(s.noSwiping&&(h?Q2(f,c):c.closest(f))){t.allowClick=!0;return}if(s.swipeHandler&&!c.closest(s.swipeHandler))return;a.currentX=r.pageX,a.currentY=r.pageY;const m=a.currentX,x=a.currentY;if(!hp(t,r,m))return;Object.assign(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=m,a.startY=x,o.touchStartTime=pa(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(o.allowThresholdMove=!1);let w=!0;c.matches(o.focusableElements)&&(w=!1,c.nodeName==="SELECT"&&(o.isTouched=!1)),n.activeElement&&n.activeElement.matches(o.focusableElements)&&n.activeElement!==c&&(r.pointerType==="mouse"||r.pointerType!=="mouse"&&!c.matches(o.focusableElements))&&n.activeElement.blur();const S=w&&t.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||S)&&!c.isContentEditable&&r.preventDefault(),s.freeMode&&s.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function J2(e){const t=Qt(),n=this,r=n.touchEventsData,{params:o,touches:s,rtlTranslate:a,enabled:l}=n;if(!l||!o.simulateTouch&&e.pointerType==="mouse")return;let c=e;if(c.originalEvent&&(c=c.originalEvent),c.type==="pointermove"&&(r.touchId!==null||c.pointerId!==r.pointerId))return;let u;if(c.type==="touchmove"){if(u=[...c.changedTouches].filter(k=>k.identifier===r.touchId)[0],!u||u.identifier!==r.touchId)return}else u=c;if(!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",c);return}const d=u.pageX,f=u.pageY;if(c.preventedByNestedSwiper){s.startX=d,s.startY=f;return}if(!n.allowTouchMove){c.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(s,{startX:d,startY:f,currentX:d,currentY:f}),r.touchStartTime=pa());return}if(o.touchReleaseOnEdges&&!o.loop){if(n.isVertical()){if(fs.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(ds.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==c.target&&c.pointerType!=="mouse"&&t.activeElement.blur(),t.activeElement&&c.target===t.activeElement&&c.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}r.allowTouchCallbacks&&n.emit("touchMove",c),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=d,s.currentY=f;const h=s.currentX-s.startX,m=s.currentY-s.startY;if(n.params.threshold&&Math.sqrt(h**2+m**2)"u"){let k;n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?r.isScrolling=!1:h*h+m*m>=25&&(k=Math.atan2(Math.abs(m),Math.abs(h))*180/Math.PI,r.isScrolling=n.isHorizontal()?k>o.touchAngle:90-k>o.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",c),typeof r.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(r.startMoving=!0),r.isScrolling||c.type==="touchmove"&&r.preventTouchMoveFromPointerMove){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!o.cssMode&&c.cancelable&&c.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&c.stopPropagation();let x=n.isHorizontal()?h:m,w=n.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;o.oneWayMovement&&(x=Math.abs(x)*(a?1:-1),w=Math.abs(w)*(a?1:-1)),s.diff=x,x*=o.touchRatio,a&&(x=-x,w=-w);const S=n.touchesDirection;n.swipeDirection=x>0?"prev":"next",n.touchesDirection=w>0?"prev":"next";const g=n.params.loop&&!o.cssMode,p=n.touchesDirection==="next"&&n.allowSlideNext||n.touchesDirection==="prev"&&n.allowSlidePrev;if(!r.isMoved){if(g&&p&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const k=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(k)}r.allowMomentumBounce=!1,o.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",c)}let y;if(new Date().getTime(),r.isMoved&&r.allowThresholdMove&&S!==n.touchesDirection&&g&&p&&Math.abs(x)>=1){Object.assign(s,{startX:d,startY:f,currentX:d,currentY:f,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}n.emit("sliderMove",c),r.isMoved=!0,r.currentTranslate=x+r.startTranslate;let E=!0,C=o.resistanceRatio;if(o.touchReleaseOnEdges&&(C=0),x>0?(g&&p&&!y&&r.allowThresholdMove&&r.currentTranslate>(o.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-(o.slidesPerView!=="auto"&&n.slides.length-o.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(E=!1,o.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+x)**C))):x<0&&(g&&p&&!y&&r.allowThresholdMove&&r.currentTranslate<(o.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+(o.slidesPerView!=="auto"&&n.slides.length-o.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(o.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(o.slidesPerView,10)))}),r.currentTranslater.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),o.threshold>0)if(Math.abs(x)>o.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,r.currentTranslate=r.startTranslate,s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{r.currentTranslate=r.startTranslate;return}!o.followFinger||o.cssMode||((o.freeMode&&o.freeMode.enabled&&n.freeMode||o.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),o.freeMode&&o.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function eb(e){const t=this,n=t.touchEventsData;let r=e;r.originalEvent&&(r=r.originalEvent);let o;if(r.type==="touchend"||r.type==="touchcancel"){if(o=[...r.changedTouches].filter(C=>C.identifier===n.touchId)[0],!o||o.identifier!==n.touchId)return}else{if(n.touchId!==null||r.pointerId!==n.pointerId)return;o=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&!(["pointercancel","contextmenu"].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:a,touches:l,rtlTranslate:c,slidesGrid:u,enabled:d}=t;if(!d||!a.simulateTouch&&r.pointerType==="mouse")return;if(n.allowTouchCallbacks&&t.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&a.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}a.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const f=pa(),h=f-n.touchStartTime;if(t.allowClick){const C=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(C&&C[0]||r.target,C),t.emit("tap click",r),h<300&&f-n.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(n.lastClickTime=pa(),fa(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||l.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let m;if(a.followFinger?m=c?t.translate:-t.translate:m=-n.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:m});return}const x=m>=-t.maxTranslate()&&!t.params.loop;let w=0,S=t.slidesSizesGrid[0];for(let C=0;C=u[C]&&m=u[C])&&(w=C,S=u[u.length-1]-u[u.length-2])}let g=null,p=null;a.rewind&&(t.isBeginning?p=a.virtual&&a.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const y=(m-u[w])/S,E=wa.longSwipesMs){if(!a.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(y>=a.longSwipesRatio?t.slideTo(a.rewind&&t.isEnd?g:w+E):t.slideTo(w)),t.swipeDirection==="prev"&&(y>1-a.longSwipesRatio?t.slideTo(w+E):p!==null&&y<0&&Math.abs(y)>a.longSwipesRatio?t.slideTo(p):t.slideTo(w))}else{if(!a.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(w+E):t.slideTo(w):(t.swipeDirection==="next"&&t.slideTo(g!==null?g:w+E),t.swipeDirection==="prev"&&t.slideTo(p!==null?p:w))}}function gp(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:o,snapGrid:s}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const l=a&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!l?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=o,e.allowSlideNext=r,e.params.watchOverflow&&s!==e.snapGrid&&e.checkOverflow()}function tb(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function nb(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let o;const s=e.maxTranslate()-e.minTranslate();s===0?o=0:o=(e.translate-e.minTranslate())/s,o!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function rb(e){const t=this;Ms(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function ob(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const _g=(e,t)=>{const n=Qt(),{params:r,el:o,wrapperEl:s,device:a}=e,l=!!r.nested,c=t==="on"?"addEventListener":"removeEventListener",u=t;!o||typeof o=="string"||(n[c]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:l}),o[c]("touchstart",e.onTouchStart,{passive:!1}),o[c]("pointerdown",e.onTouchStart,{passive:!1}),n[c]("touchmove",e.onTouchMove,{passive:!1,capture:l}),n[c]("pointermove",e.onTouchMove,{passive:!1,capture:l}),n[c]("touchend",e.onTouchEnd,{passive:!0}),n[c]("pointerup",e.onTouchEnd,{passive:!0}),n[c]("pointercancel",e.onTouchEnd,{passive:!0}),n[c]("touchcancel",e.onTouchEnd,{passive:!0}),n[c]("pointerout",e.onTouchEnd,{passive:!0}),n[c]("pointerleave",e.onTouchEnd,{passive:!0}),n[c]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&o[c]("click",e.onClick,!0),r.cssMode&&s[c]("scroll",e.onScroll),r.updateOnWindowResize?e[u](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",gp,!0):e[u]("observerUpdate",gp,!0),o[c]("load",e.onLoad,{capture:!0}))};function ib(){const e=this,{params:t}=e;e.onTouchStart=Z2.bind(e),e.onTouchMove=J2.bind(e),e.onTouchEnd=eb.bind(e),e.onDocumentTouchStart=ob.bind(e),t.cssMode&&(e.onScroll=nb.bind(e)),e.onClick=tb.bind(e),e.onLoad=rb.bind(e),_g(e,"on")}function sb(){_g(this,"off")}var ab={attachEvents:ib,detachEvents:sb};const vp=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function lb(){const e=this,{realIndex:t,initialized:n,params:r,el:o}=e,s=r.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const a=e.getBreakpoint(s,e.params.breakpointsBase,e.el);if(!a||e.currentBreakpoint===a)return;const c=(a in s?s[a]:void 0)||e.originalParams,u=vp(e,r),d=vp(e,c),f=e.params.grabCursor,h=c.grabCursor,m=r.enabled;u&&!d?(o.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!u&&d&&(o.classList.add(`${r.containerModifierClass}grid`),(c.grid.fill&&c.grid.fill==="column"||!c.grid.fill&&r.grid.fill==="column")&&o.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),f&&!h?e.unsetGrabCursor():!f&&h&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(y=>{if(typeof c[y]>"u")return;const E=r[y]&&r[y].enabled,C=c[y]&&c[y].enabled;E&&!C&&e[y].disable(),!E&&C&&e[y].enable()});const x=c.direction&&c.direction!==r.direction,w=r.loop&&(c.slidesPerView!==r.slidesPerView||x),S=r.loop;x&&n&&e.changeDirection(),kt(e.params,c);const g=e.params.enabled,p=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),m&&!g?e.disable():!m&&g&&e.enable(),e.currentBreakpoint=a,e.emit("_beforeBreakpoint",c),n&&(w?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!S&&p?(e.loopCreate(t),e.updateSlides()):S&&!p&&e.loopDestroy()),e.emit("breakpoint",c)}function cb(e,t,n){if(t===void 0&&(t="window"),!e||t==="container"&&!n)return;let r=!1;const o=Et(),s=t==="window"?o.innerHeight:n.clientHeight,a=Object.keys(e).map(l=>{if(typeof l=="string"&&l.indexOf("@")===0){const c=parseFloat(l.substr(1));return{value:s*c,point:l}}return{value:l,point:l}});a.sort((l,c)=>parseInt(l.value,10)-parseInt(c.value,10));for(let l=0;l{typeof r=="object"?Object.keys(r).forEach(o=>{r[o]&&n.push(t+o)}):typeof r=="string"&&n.push(t+r)}),n}function fb(){const e=this,{classNames:t,params:n,rtl:r,el:o,device:s}=e,a=db(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...a),o.classList.add(...t),e.emitContainerClasses()}function pb(){const e=this,{el:t,classNames:n}=e;!t||typeof t=="string"||(t.classList.remove(...n),e.emitContainerClasses())}var mb={addClasses:fb,removeClasses:pb};function hb(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const o=e.slides.length-1,s=e.slidesGrid[o]+e.slidesSizesGrid[o]+r*2;e.isLocked=e.size>s}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var gb={checkOverflow:hb},Qc={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function vb(e,t){return function(r){r===void 0&&(r={});const o=Object.keys(r)[0],s=r[o];if(typeof s!="object"||s===null){kt(t,r);return}if(e[o]===!0&&(e[o]={enabled:!0}),o==="navigation"&&e[o]&&e[o].enabled&&!e[o].prevEl&&!e[o].nextEl&&(e[o].auto=!0),["pagination","scrollbar"].indexOf(o)>=0&&e[o]&&e[o].enabled&&!e[o].el&&(e[o].auto=!0),!(o in e&&"enabled"in s)){kt(t,r);return}typeof e[o]=="object"&&!("enabled"in e[o])&&(e[o].enabled=!0),e[o]||(e[o]={enabled:!1}),kt(t,r)}}const _l={eventsEmitter:m2,update:T2,translate:R2,transition:I2,slide:H2,loop:Y2,grabCursor:q2,events:ab,breakpoints:ub,checkOverflow:gb,classes:mb},Ll={};let fd=class gn{constructor(){let t,n;for(var r=arguments.length,o=new Array(r),s=0;s1){const d=[];return a.querySelectorAll(n.el).forEach(f=>{const h=kt({},n,{el:f});d.push(new gn(h))}),d}const l=this;l.__swiper__=!0,l.support=jg(),l.device=Rg({userAgent:n.userAgent}),l.browser=d2(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],n.modules&&Array.isArray(n.modules)&&l.modules.push(...n.modules);const c={};l.modules.forEach(d=>{d({params:n,swiper:l,extendParams:vb(n,c),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})});const u=kt({},Qc,c);return l.params=kt({},u,Ll,n),l.originalParams=kt({},l.params),l.passedParams=kt({},n),l.params&&l.params.on&&Object.keys(l.params.on).forEach(d=>{l.on(d,l.params.on[d])}),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return l.params.direction==="horizontal"},isVertical(){return l.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:n,params:r}=this,o=ln(n,`.${r.slideClass}, swiper-slide`),s=ha(o[0]);return ha(t)-s}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=ln(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const o=r.minTranslate(),a=(r.maxTranslate()-o)*t+o;r.translateTo(a,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const o=t.getSlideClasses(r);n.push({slideEl:r,classNames:o}),t.emit("_slideClass",r,o)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t,n){t===void 0&&(t="current"),n===void 0&&(n=!1);const r=this,{params:o,slides:s,slidesGrid:a,slidesSizesGrid:l,size:c,activeIndex:u}=r;let d=1;if(typeof o.slidesPerView=="number")return o.slidesPerView;if(o.centeredSlides){let f=s[u]?Math.ceil(s[u].swiperSlideSize):0,h;for(let m=u+1;mc&&(h=!0));for(let m=u-1;m>=0;m-=1)s[m]&&!h&&(f+=s[m].swiperSlideSize,d+=1,f>c&&(h=!0))}else if(t==="current")for(let f=u+1;f=0;f-=1)a[u]-a[f]{a.complete&&Ms(t,a)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function o(){const a=t.rtlTranslate?t.translate*-1:t.translate,l=Math.min(Math.max(a,t.maxTranslate()),t.minTranslate());t.setTranslate(l),t.updateActiveIndex(),t.updateSlidesClasses()}let s;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)o(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const a=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;s=t.slideTo(a.length-1,0,!1,!0)}else s=t.slideTo(t.activeIndex,0,!1,!0);s||o()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n){n===void 0&&(n=!0);const r=this,o=r.params.direction;return t||(t=o==="horizontal"?"vertical":"horizontal"),t===o||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${o}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(s=>{t==="vertical"?s.style.width="":s.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.parentNode&&r.parentNode.host&&r.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const o=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(o()):ln(r,o())[0];return!a&&n.params.createElements&&(a=Mi("div",n.params.wrapperClass),r.append(a),ln(r,`.${n.params.slideClass}`).forEach(l=>{a.append(l)})),Object.assign(n,{el:r,wrapperEl:a,slidesEl:n.isElement&&!r.parentNode.host.slideSlots?r.parentNode.host:a,hostEl:n.isElement?r.parentNode.host:r,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||Gn(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||Gn(r,"direction")==="rtl"),wrongRTL:Gn(a,"display")==="-webkit-box"}),!0}init(t){const n=this;if(n.initialized||n.mount(t)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents();const o=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&o.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),o.forEach(s=>{s.complete?Ms(n,s):s.addEventListener("load",a=>{Ms(n,a.target)})}),qc(n),n.initialized=!0,qc(n),n.emit("init"),n.emit("afterInit"),n}destroy(t,n){t===void 0&&(t=!0),n===void 0&&(n=!0);const r=this,{params:o,el:s,wrapperEl:a,slides:l}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),o.loop&&r.loopDestroy(),n&&(r.removeClasses(),s&&typeof s!="string"&&s.removeAttribute("style"),a&&a.removeAttribute("style"),l&&l.length&&l.forEach(c=>{c.classList.remove(o.slideVisibleClass,o.slideFullyVisibleClass,o.slideActiveClass,o.slideNextClass,o.slidePrevClass),c.removeAttribute("style"),c.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(c=>{r.off(c)}),t!==!1&&(r.el&&typeof r.el!="string"&&(r.el.swiper=null),Jx(r)),r.destroyed=!0),null}static extendDefaults(t){kt(Ll,t)}static get extendedDefaults(){return Ll}static get defaults(){return Qc}static installModule(t){gn.prototype.__modules__||(gn.prototype.__modules__=[]);const n=gn.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>gn.installModule(n)),gn):(gn.installModule(t),gn)}};Object.keys(_l).forEach(e=>{Object.keys(_l[e]).forEach(t=>{fd.prototype[t]=_l[e][t]})});fd.use([f2,p2]);const Lg=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function jr(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function uo(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:jr(t[r])&&jr(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:uo(e[r],t[r]):e[r]=t[r]})}function Ig(e){return e===void 0&&(e={}),e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function Dg(e){return e===void 0&&(e={}),e.pagination&&typeof e.pagination.el>"u"}function Ag(e){return e===void 0&&(e={}),e.scrollbar&&typeof e.scrollbar.el>"u"}function zg(e){e===void 0&&(e="");const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function yb(e){return e===void 0&&(e=""),e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function wb(e){let{swiper:t,slides:n,passedParams:r,changedParams:o,nextEl:s,prevEl:a,scrollbarEl:l,paginationEl:c}=e;const u=o.filter(O=>O!=="children"&&O!=="direction"&&O!=="wrapperClass"),{params:d,pagination:f,navigation:h,scrollbar:m,virtual:x,thumbs:w}=t;let S,g,p,y,E,C,k,T;o.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(S=!0),o.includes("controller")&&r.controller&&r.controller.control&&d.controller&&!d.controller.control&&(g=!0),o.includes("pagination")&&r.pagination&&(r.pagination.el||c)&&(d.pagination||d.pagination===!1)&&f&&!f.el&&(p=!0),o.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||l)&&(d.scrollbar||d.scrollbar===!1)&&m&&!m.el&&(y=!0),o.includes("navigation")&&r.navigation&&(r.navigation.prevEl||a)&&(r.navigation.nextEl||s)&&(d.navigation||d.navigation===!1)&&h&&!h.prevEl&&!h.nextEl&&(E=!0);const P=O=>{t[O]&&(t[O].destroy(),O==="navigation"?(t.isElement&&(t[O].prevEl.remove(),t[O].nextEl.remove()),d[O].prevEl=void 0,d[O].nextEl=void 0,t[O].prevEl=void 0,t[O].nextEl=void 0):(t.isElement&&t[O].el.remove(),d[O].el=void 0,t[O].el=void 0))};o.includes("loop")&&t.isElement&&(d.loop&&!r.loop?C=!0:!d.loop&&r.loop?k=!0:T=!0),u.forEach(O=>{if(jr(d[O])&&jr(r[O]))Object.assign(d[O],r[O]),(O==="navigation"||O==="pagination"||O==="scrollbar")&&"enabled"in r[O]&&!r[O].enabled&&P(O);else{const R=r[O];(R===!0||R===!1)&&(O==="navigation"||O==="pagination"||O==="scrollbar")?R===!1&&P(O):d[O]=r[O]}}),u.includes("controller")&&!g&&t.controller&&t.controller.control&&d.controller&&d.controller.control&&(t.controller.control=d.controller.control),o.includes("children")&&n&&x&&d.virtual.enabled?(x.slides=n,x.update(!0)):o.includes("virtual")&&x&&d.virtual.enabled&&(n&&(x.slides=n),x.update(!0)),o.includes("children")&&n&&d.loop&&(T=!0),S&&w.init()&&w.update(!0),g&&(t.controller.control=d.controller.control),p&&(t.isElement&&(!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-pagination"),c.part.add("pagination"),t.el.appendChild(c)),c&&(d.pagination.el=c),f.init(),f.render(),f.update()),y&&(t.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-scrollbar"),l.part.add("scrollbar"),t.el.appendChild(l)),l&&(d.scrollbar.el=l),m.init(),m.updateSize(),m.setTranslate()),E&&(t.isElement&&((!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-next"),s.innerHTML=t.hostEl.constructor.nextButtonSvg,s.part.add("button-next"),t.el.appendChild(s)),(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=t.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),t.el.appendChild(a))),s&&(d.navigation.nextEl=s),a&&(d.navigation.prevEl=a),h.init(),h.update()),o.includes("allowSlideNext")&&(t.allowSlideNext=r.allowSlideNext),o.includes("allowSlidePrev")&&(t.allowSlidePrev=r.allowSlidePrev),o.includes("direction")&&t.changeDirection(r.direction,!1),(C||T)&&t.loopDestroy(),(k||T)&&t.loopCreate(),t.update()}function xb(e,t){e===void 0&&(e={}),t===void 0&&(t=!0);const n={on:{}},r={},o={};uo(n,Qc),n._emitClasses=!0,n.init=!1;const s={},a=Lg.map(c=>c.replace(/_/,"")),l=Object.assign({},e);return Object.keys(l).forEach(c=>{typeof e[c]>"u"||(a.indexOf(c)>=0?jr(e[c])?(n[c]={},o[c]={},uo(n[c],e[c]),uo(o[c],e[c])):(n[c]=e[c],o[c]=e[c]):c.search(/on[A-Z]/)===0&&typeof e[c]=="function"?t?r[`${c[2].toLowerCase()}${c.substr(3)}`]=e[c]:n.on[`${c[2].toLowerCase()}${c.substr(3)}`]=e[c]:s[c]=e[c])}),["navigation","pagination","scrollbar"].forEach(c=>{n[c]===!0&&(n[c]={}),n[c]===!1&&delete n[c]}),{params:n,passedParams:o,rest:s,events:r}}function bb(e,t){let{el:n,nextEl:r,prevEl:o,paginationEl:s,scrollbarEl:a,swiper:l}=e;Ig(t)&&r&&o&&(l.params.navigation.nextEl=r,l.originalParams.navigation.nextEl=r,l.params.navigation.prevEl=o,l.originalParams.navigation.prevEl=o),Dg(t)&&s&&(l.params.pagination.el=s,l.originalParams.pagination.el=s),Ag(t)&&a&&(l.params.scrollbar.el=a,l.originalParams.scrollbar.el=a),l.init(n)}function Sb(e,t,n,r,o){const s=[];if(!t)return s;const a=c=>{s.indexOf(c)<0&&s.push(c)};if(n&&r){const c=r.map(o),u=n.map(o);c.join("")!==u.join("")&&a("children"),r.length!==n.length&&a("children")}return Lg.filter(c=>c[0]==="_").map(c=>c.replace(/_/,"")).forEach(c=>{if(c in e&&c in t)if(jr(e[c])&&jr(t[c])){const u=Object.keys(e[c]),d=Object.keys(t[c]);u.length!==d.length?a(c):(u.forEach(f=>{e[c][f]!==t[c][f]&&a(c)}),d.forEach(f=>{e[c][f]!==t[c][f]&&a(c)}))}else e[c]!==t[c]&&a(c)}),s}const Eb=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function ga(){return ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t{$g(n)?t.push(n):n.props&&n.props.children&&Bg(n.props.children).forEach(r=>t.push(r))}),t}function Cb(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return D.Children.toArray(e).forEach(r=>{if($g(r))t.push(r);else if(r.props&&r.props.slot&&n[r.props.slot])n[r.props.slot].push(r);else if(r.props&&r.props.children){const o=Bg(r.props.children);o.length>0?o.forEach(s=>t.push(s)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:t,slots:n}}function Tb(e,t,n){if(!n)return null;const r=d=>{let f=d;return d<0?f=t.length+d:f>=t.length&&(f=f-t.length),f},o=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:s,to:a}=n,l=e.params.loop?-t.length:0,c=e.params.loop?t.length*2:t.length,u=[];for(let d=l;d=s&&d<=a&&u.push(t[r(d)]);return u.map((d,f)=>D.cloneElement(d,{swiper:e,style:o,key:d.props.virtualIndex||d.key||`slide-${f}`}))}function fi(e,t){return typeof window>"u"?b.useEffect(e,t):b.useLayoutEffect(e,t)}const yp=b.createContext(null),Pb=b.createContext(null),Ro=b.forwardRef(function(e,t){let{className:n,tag:r="div",wrapperTag:o="div",children:s,onSwiper:a,...l}=e===void 0?{}:e,c=!1;const[u,d]=b.useState("swiper"),[f,h]=b.useState(null),[m,x]=b.useState(!1),w=b.useRef(!1),S=b.useRef(null),g=b.useRef(null),p=b.useRef(null),y=b.useRef(null),E=b.useRef(null),C=b.useRef(null),k=b.useRef(null),T=b.useRef(null),{params:P,passedParams:O,rest:R,events:z}=xb(l),{slides:j,slots:N}=Cb(s),$=()=>{x(!m)};Object.assign(P.on,{_containerClasses(I,W){d(W)}});const V=()=>{Object.assign(P.on,z),c=!0;const I={...P};if(delete I.wrapperClass,g.current=new fd(I),g.current.virtual&&g.current.params.virtual.enabled){g.current.virtual.slides=j;const W={cache:!1,slides:j,renderExternal:h,renderExternalUpdate:!1};uo(g.current.params.virtual,W),uo(g.current.originalParams.virtual,W)}};S.current||V(),g.current&&g.current.on("_beforeBreakpoint",$);const U=()=>{c||!z||!g.current||Object.keys(z).forEach(I=>{g.current.on(I,z[I])})},X=()=>{!z||!g.current||Object.keys(z).forEach(I=>{g.current.off(I,z[I])})};b.useEffect(()=>()=>{g.current&&g.current.off("_beforeBreakpoint",$)}),b.useEffect(()=>{!w.current&&g.current&&(g.current.emitSlidesClasses(),w.current=!0)}),fi(()=>{if(t&&(t.current=S.current),!!S.current)return g.current.destroyed&&V(),bb({el:S.current,nextEl:E.current,prevEl:C.current,paginationEl:k.current,scrollbarEl:T.current,swiper:g.current},P),a&&!g.current.destroyed&&a(g.current),()=>{g.current&&!g.current.destroyed&&g.current.destroy(!0,!1)}},[]),fi(()=>{U();const I=Sb(O,p.current,j,y.current,W=>W.key);return p.current=O,y.current=j,I.length&&g.current&&!g.current.destroyed&&wb({swiper:g.current,slides:j,passedParams:O,changedParams:I,nextEl:E.current,prevEl:C.current,scrollbarEl:T.current,paginationEl:k.current}),()=>{X()}}),fi(()=>{Eb(g.current)},[f]);function L(){return P.virtual?Tb(g.current,j,f):j.map((I,W)=>D.cloneElement(I,{swiper:g.current,swiperSlideIndex:W}))}return D.createElement(r,ga({ref:S,className:zg(`${u}${n?` ${n}`:""}`)},R),D.createElement(Pb.Provider,{value:g.current},N["container-start"],D.createElement(o,{className:yb(P.wrapperClass)},N["wrapper-start"],L(),N["wrapper-end"]),Ig(P)&&D.createElement(D.Fragment,null,D.createElement("div",{ref:C,className:"swiper-button-prev"}),D.createElement("div",{ref:E,className:"swiper-button-next"})),Ag(P)&&D.createElement("div",{ref:T,className:"swiper-scrollbar"}),Dg(P)&&D.createElement("div",{ref:k,className:"swiper-pagination"}),N["container-end"]))});Ro.displayName="Swiper";const Mo=b.forwardRef(function(e,t){let{tag:n="div",children:r,className:o="",swiper:s,zoom:a,lazy:l,virtualIndex:c,swiperSlideIndex:u,...d}=e===void 0?{}:e;const f=b.useRef(null),[h,m]=b.useState("swiper-slide"),[x,w]=b.useState(!1);function S(E,C,k){C===f.current&&m(k)}fi(()=>{if(typeof u<"u"&&(f.current.swiperSlideIndex=u),t&&(t.current=f.current),!(!f.current||!s)){if(s.destroyed){h!=="swiper-slide"&&m("swiper-slide");return}return s.on("_slideClass",S),()=>{s&&s.off("_slideClass",S)}}}),fi(()=>{s&&f.current&&!s.destroyed&&m(s.getSlideClasses(f.current))},[s]);const g={isActive:h.indexOf("swiper-slide-active")>=0,isVisible:h.indexOf("swiper-slide-visible")>=0,isPrev:h.indexOf("swiper-slide-prev")>=0,isNext:h.indexOf("swiper-slide-next")>=0},p=()=>typeof r=="function"?r(g):r,y=()=>{w(!0)};return D.createElement(n,ga({ref:f,className:zg(`${h}${o?` ${o}`:""}`),"data-swiper-slide-index":c,onLoad:y},d),a&&D.createElement(yp.Provider,{value:g},D.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof a=="number"?a:void 0},p(),l&&!x&&D.createElement("div",{className:"swiper-lazy-preloader"}))),!a&&D.createElement(yp.Provider,{value:g},p(),l&&!x&&D.createElement("div",{className:"swiper-lazy-preloader"})))});Mo.displayName="SwiperSlide";var Fg={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},wp=D.createContext&&D.createContext(Fg),kb=["attr","size","title"];function Nb(e,t){if(e==null)return{};var n=Ob(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ob(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function va(){return va=Object.assign?Object.assign.bind():function(e){for(var t=1;tD.createElement(t.tag,ya({key:n},t.attr),Vg(t.child)))}function nt(e){return t=>D.createElement(_b,va({attr:ya({},e.attr)},t),Vg(e.child))}function _b(e){var t=n=>{var{attr:r,size:o,title:s}=e,a=Nb(e,kb),l=o||n.size||"1em",c;return n.className&&(c=n.className),e.className&&(c=(c?c+" ":"")+e.className),D.createElement("svg",va({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:c,style:ya(ya({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),s&&D.createElement("title",null,s),e.children)};return wp!==void 0?D.createElement(wp.Consumer,null,n=>t(n)):t(Fg)}function Lb(e){return nt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M4.75 17.25a.75.75 0 0 1 .75.75v2.25c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V18a.75.75 0 0 1 1.5 0v2.25A1.75 1.75 0 0 1 18.25 22H5.75A1.75 1.75 0 0 1 4 20.25V18a.75.75 0 0 1 .75-.75Z"},child:[]},{tag:"path",attr:{d:"M5.22 9.97a.749.749 0 0 1 1.06 0l4.97 4.969V2.75a.75.75 0 0 1 1.5 0v12.189l4.97-4.969a.749.749 0 1 1 1.06 1.06l-6.25 6.25a.749.749 0 0 1-1.06 0l-6.25-6.25a.749.749 0 0 1 0-1.06Z"},child:[]}]})(e)}function pd(e){return nt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m12 20.703.343.667a.748.748 0 0 1-.686 0l-.003-.002-.007-.003-.025-.013a31.138 31.138 0 0 1-5.233-3.576C3.8 15.573 1 12.332 1 8.514v-.001C1 5.053 3.829 2.5 6.736 2.5 9.03 2.5 10.881 3.726 12 5.605 13.12 3.726 14.97 2.5 17.264 2.5 20.17 2.5 23 5.052 23 8.514c0 3.818-2.801 7.06-5.389 9.262a31.148 31.148 0 0 1-5.233 3.576l-.025.013-.007.003-.002.001ZM6.736 4C4.657 4 2.5 5.88 2.5 8.514c0 3.107 2.324 5.96 4.861 8.12a29.655 29.655 0 0 0 4.566 3.175l.073.041.073-.04c.271-.153.661-.38 1.13-.674.94-.588 2.19-1.441 3.436-2.502 2.537-2.16 4.861-5.013 4.861-8.12C21.5 5.88 19.343 4 17.264 4c-2.106 0-3.801 1.389-4.553 3.643a.751.751 0 0 1-1.422 0C10.537 5.389 8.841 4 6.736 4Z"},child:[]}]})(e)}function Ib(e){return nt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M14 20.408c-.492.308-.903.546-1.192.709-.153.086-.308.17-.463.252h-.002a.75.75 0 0 1-.686 0 16.709 16.709 0 0 1-.465-.252 31.147 31.147 0 0 1-4.803-3.34C3.8 15.572 1 12.331 1 8.513 1 5.052 3.829 2.5 6.736 2.5 9.03 2.5 10.881 3.726 12 5.605 13.12 3.726 14.97 2.5 17.264 2.5 20.17 2.5 23 5.052 23 8.514c0 3.818-2.801 7.06-5.389 9.262A31.146 31.146 0 0 1 14 20.408Z"},child:[]}]})(e)}function Db(e){return nt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.03 2.59a1.501 1.501 0 0 1 1.94 0l7.5 6.363a1.5 1.5 0 0 1 .53 1.144V19.5a1.5 1.5 0 0 1-1.5 1.5h-5.75a.75.75 0 0 1-.75-.75V14h-2v6.25a.75.75 0 0 1-.75.75H4.5A1.5 1.5 0 0 1 3 19.5v-9.403c0-.44.194-.859.53-1.144ZM12 3.734l-7.5 6.363V19.5h5v-6.25a.75.75 0 0 1 .75-.75h3.5a.75.75 0 0 1 .75.75v6.25h5v-9.403Z"},child:[]}]})(e)}function Hg(e){return nt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M9.5 15.584V8.416a.5.5 0 0 1 .77-.42l5.576 3.583a.5.5 0 0 1 0 .842l-5.576 3.584a.5.5 0 0 1-.77-.42Z"},child:[]},{tag:"path",attr:{d:"M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm11-9.5A9.5 9.5 0 0 0 2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5Z"},child:[]}]})(e)}function Ab(e){return nt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10.25 2a8.25 8.25 0 0 1 6.34 13.53l5.69 5.69a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-5.69-5.69A8.25 8.25 0 1 1 10.25 2ZM3.5 10.25a6.75 6.75 0 1 0 13.5 0 6.75 6.75 0 0 0-13.5 0Z"},child:[]}]})(e)}function zb(e){return nt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M5.5 9.75v10.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V9.75a.25.25 0 0 0-.25-.25h-2.5a.75.75 0 0 1 0-1.5h2.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 18.25 22H5.75A1.75 1.75 0 0 1 4 20.25V9.75C4 8.784 4.784 8 5.75 8h2.5a.75.75 0 0 1 0 1.5h-2.5a.25.25 0 0 0-.25.25Zm7.03-8.53 3.25 3.25a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-1.97-1.97v10.69a.75.75 0 0 1-1.5 0V3.56L9.28 5.53a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.25-3.25a.75.75 0 0 1 1.06 0Z"},child:[]}]})(e)}function Wg(e){return nt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.063 1.456a1.749 1.749 0 0 1 1.874 0l8.383 5.316a1.751 1.751 0 0 1 0 2.956l-8.383 5.316a1.749 1.749 0 0 1-1.874 0L2.68 9.728a1.751 1.751 0 0 1 0-2.956Zm1.071 1.267a.25.25 0 0 0-.268 0L3.483 8.039a.25.25 0 0 0 0 .422l8.383 5.316a.25.25 0 0 0 .268 0l8.383-5.316a.25.25 0 0 0 0-.422Z"},child:[]},{tag:"path",attr:{d:"M1.867 12.324a.75.75 0 0 1 1.035-.232l8.964 5.685a.25.25 0 0 0 .268 0l8.964-5.685a.75.75 0 0 1 .804 1.267l-8.965 5.685a1.749 1.749 0 0 1-1.874 0l-8.965-5.685a.75.75 0 0 1-.231-1.035Z"},child:[]},{tag:"path",attr:{d:"M1.867 16.324a.75.75 0 0 1 1.035-.232l8.964 5.685a.25.25 0 0 0 .268 0l8.964-5.685a.75.75 0 0 1 .804 1.267l-8.965 5.685a1.749 1.749 0 0 1-1.874 0l-8.965-5.685a.75.75 0 0 1-.231-1.035Z"},child:[]}]})(e)}function $b(e){return nt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M9.036 7.976a.75.75 0 0 0-1.06 1.06L10.939 12l-2.963 2.963a.75.75 0 1 0 1.06 1.06L12 13.06l2.963 2.964a.75.75 0 0 0 1.061-1.06L13.061 12l2.963-2.964a.75.75 0 1 0-1.06-1.06L12 10.939 9.036 7.976Z"},child:[]},{tag:"path",attr:{d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"},child:[]}]})(e)}function Oe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Bb(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ug(...e){return t=>e.forEach(n=>Bb(n,t))}function Ve(...e){return b.useCallback(Ug(...e),e)}function Fb(e,t){const n=b.createContext(t),r=s=>{const{children:a,...l}=s,c=b.useMemo(()=>l,Object.values(l));return v.jsx(n.Provider,{value:c,children:a})};r.displayName=e+"Provider";function o(s){const a=b.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Gg(e,t=[]){let n=[];function r(s,a){const l=b.createContext(a),c=n.length;n=[...n,a];const u=f=>{var g;const{scope:h,children:m,...x}=f,w=((g=h==null?void 0:h[e])==null?void 0:g[c])||l,S=b.useMemo(()=>x,Object.values(x));return v.jsx(w.Provider,{value:S,children:m})};u.displayName=s+"Provider";function d(f,h){var w;const m=((w=h==null?void 0:h[e])==null?void 0:w[c])||l,x=b.useContext(m);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,d]}const o=()=>{const s=n.map(a=>b.createContext(a));return function(l){const c=(l==null?void 0:l[e])||s;return b.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,Vb(o,...t)]}function Vb(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((l,{useScope:c,scopeName:u})=>{const f=c(s)[`__scope${u}`];return{...l,...f}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var ht=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},Hb=um.useId||(()=>{}),Wb=0;function fo(e){const[t,n]=b.useState(Hb());return ht(()=>{n(r=>r??String(Wb++))},[e]),t?`radix-${t}`:""}function Pn(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Zc({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Ub({defaultProp:t,onChange:n}),s=e!==void 0,a=s?e:r,l=Pn(n),c=b.useCallback(u=>{if(s){const f=typeof u=="function"?u(e):u;f!==e&&l(f)}else o(u)},[s,e,o,l]);return[a,c]}function Ub({defaultProp:e,onChange:t}){const n=b.useState(e),[r]=n,o=b.useRef(r),s=Pn(t);return b.useEffect(()=>{o.current!==r&&(s(r),o.current=r)},[r,o,s]),n}var Rr=b.forwardRef((e,t)=>{const{children:n,...r}=e,o=b.Children.toArray(n),s=o.find(Yb);if(s){const a=s.props.children,l=o.map(c=>c===s?b.Children.count(a)>1?b.Children.only(null):b.isValidElement(a)?a.props.children:null:c);return v.jsx(Jc,{...r,ref:t,children:b.isValidElement(a)?b.cloneElement(a,void 0,l):null})}return v.jsx(Jc,{...r,ref:t,children:n})});Rr.displayName="Slot";var Jc=b.forwardRef((e,t)=>{const{children:n,...r}=e;if(b.isValidElement(n)){const o=Xb(n);return b.cloneElement(n,{...Kb(r,n.props),ref:t?Ug(t,o):o})}return b.Children.count(n)>1?b.Children.only(null):null});Jc.displayName="SlotClone";var Gb=({children:e})=>v.jsx(v.Fragment,{children:e});function Yb(e){return b.isValidElement(e)&&e.type===Gb}function Kb(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...l)=>{s(...l),o(...l)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Xb(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var qb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Re=qb.reduce((e,t)=>{const n=b.forwardRef((r,o)=>{const{asChild:s,...a}=r,l=s?Rr:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(l,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Qb(e,t){e&&No.flushSync(()=>e.dispatchEvent(t))}function Zb(e,t=globalThis==null?void 0:globalThis.document){const n=Pn(e);b.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Jb="DismissableLayer",eu="dismissableLayer.update",eS="dismissableLayer.pointerDownOutside",tS="dismissableLayer.focusOutside",bp,Yg=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),md=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:l,...c}=e,u=b.useContext(Yg),[d,f]=b.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=b.useState({}),x=Ve(t,T=>f(T)),w=Array.from(u.layers),[S]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=w.indexOf(S),p=d?w.indexOf(d):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,E=p>=g,C=oS(T=>{const P=T.target,O=[...u.branches].some(R=>R.contains(P));!E||O||(o==null||o(T),a==null||a(T),T.defaultPrevented||l==null||l())},h),k=iS(T=>{const P=T.target;[...u.branches].some(R=>R.contains(P))||(s==null||s(T),a==null||a(T),T.defaultPrevented||l==null||l())},h);return Zb(T=>{p===u.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&l&&(T.preventDefault(),l()))},h),b.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(bp=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Sp(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=bp)}},[d,h,n,u]),b.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Sp())},[d,u]),b.useEffect(()=>{const T=()=>m({});return document.addEventListener(eu,T),()=>document.removeEventListener(eu,T)},[]),v.jsx(Re.div,{...c,ref:x,style:{pointerEvents:y?E?"auto":"none":void 0,...e.style},onFocusCapture:Oe(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Oe(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Oe(e.onPointerDownCapture,C.onPointerDownCapture)})});md.displayName=Jb;var nS="DismissableLayerBranch",rS=b.forwardRef((e,t)=>{const n=b.useContext(Yg),r=b.useRef(null),o=Ve(t,r);return b.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),v.jsx(Re.div,{...e,ref:o})});rS.displayName=nS;function oS(e,t=globalThis==null?void 0:globalThis.document){const n=Pn(e),r=b.useRef(!1),o=b.useRef(()=>{});return b.useEffect(()=>{const s=l=>{if(l.target&&!r.current){let c=function(){Kg(eS,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function iS(e,t=globalThis==null?void 0:globalThis.document){const n=Pn(e),r=b.useRef(!1);return b.useEffect(()=>{const o=s=>{s.target&&!r.current&&Kg(tS,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Sp(){const e=new CustomEvent(eu);document.dispatchEvent(e)}function Kg(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Qb(o,s):o.dispatchEvent(s)}var Il="focusScope.autoFocusOnMount",Dl="focusScope.autoFocusOnUnmount",Ep={bubbles:!1,cancelable:!0},sS="FocusScope",hd=b.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[l,c]=b.useState(null),u=Pn(o),d=Pn(s),f=b.useRef(null),h=Ve(t,w=>c(w)),m=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(r){let w=function(y){if(m.paused||!l)return;const E=y.target;l.contains(E)?f.current=E:zn(f.current,{select:!0})},S=function(y){if(m.paused||!l)return;const E=y.relatedTarget;E!==null&&(l.contains(E)||zn(f.current,{select:!0}))},g=function(y){if(document.activeElement===document.body)for(const C of y)C.removedNodes.length>0&&zn(l)};document.addEventListener("focusin",w),document.addEventListener("focusout",S);const p=new MutationObserver(g);return l&&p.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",S),p.disconnect()}}},[r,l,m.paused]),b.useEffect(()=>{if(l){Tp.add(m);const w=document.activeElement;if(!l.contains(w)){const g=new CustomEvent(Il,Ep);l.addEventListener(Il,u),l.dispatchEvent(g),g.defaultPrevented||(aS(fS(Xg(l)),{select:!0}),document.activeElement===w&&zn(l))}return()=>{l.removeEventListener(Il,u),setTimeout(()=>{const g=new CustomEvent(Dl,Ep);l.addEventListener(Dl,d),l.dispatchEvent(g),g.defaultPrevented||zn(w??document.body,{select:!0}),l.removeEventListener(Dl,d),Tp.remove(m)},0)}}},[l,u,d,m]);const x=b.useCallback(w=>{if(!n&&!r||m.paused)return;const S=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,g=document.activeElement;if(S&&g){const p=w.currentTarget,[y,E]=lS(p);y&&E?!w.shiftKey&&g===E?(w.preventDefault(),n&&zn(y,{select:!0})):w.shiftKey&&g===y&&(w.preventDefault(),n&&zn(E,{select:!0})):g===p&&w.preventDefault()}},[n,r,m.paused]);return v.jsx(Re.div,{tabIndex:-1,...a,ref:h,onKeyDown:x})});hd.displayName=sS;function aS(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(zn(r,{select:t}),document.activeElement!==n)return}function lS(e){const t=Xg(e),n=Cp(t,e),r=Cp(t.reverse(),e);return[n,r]}function Xg(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Cp(e,t){for(const n of e)if(!cS(n,{upTo:t}))return n}function cS(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function uS(e){return e instanceof HTMLInputElement&&"select"in e}function zn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&uS(e)&&t&&e.select()}}var Tp=dS();function dS(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Pp(e,t),e.unshift(t)},remove(t){var n;e=Pp(e,t),(n=e[0])==null||n.resume()}}}function Pp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function fS(e){return e.filter(t=>t.tagName!=="A")}var pS="Portal",gd=b.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,s]=b.useState(!1);ht(()=>s(!0),[]);const a=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?pg.createPortal(v.jsx(Re.div,{...r,ref:t}),a):null});gd.displayName=pS;function mS(e,t){return b.useReducer((n,r)=>t[n][r]??n,e)}var Ga=e=>{const{present:t,children:n}=e,r=hS(t),o=typeof n=="function"?n({present:r.isPresent}):b.Children.only(n),s=Ve(r.ref,gS(o));return typeof n=="function"||r.isPresent?b.cloneElement(o,{ref:s}):null};Ga.displayName="Presence";function hS(e){const[t,n]=b.useState(),r=b.useRef({}),o=b.useRef(e),s=b.useRef("none"),a=e?"mounted":"unmounted",[l,c]=mS(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const u=us(r.current);s.current=l==="mounted"?u:"none"},[l]),ht(()=>{const u=r.current,d=o.current;if(d!==e){const h=s.current,m=us(u);e?c("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&h!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ht(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=m=>{const w=us(r.current).includes(m.animationName);if(m.target===t&&w&&(c("ANIMATION_END"),!o.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},h=m=>{m.target===t&&(s.current=us(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:b.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function us(e){return(e==null?void 0:e.animationName)||"none"}function gS(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Al=0;function qg(){b.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??kp()),document.body.insertAdjacentElement("beforeend",e[1]??kp()),Al++,()=>{Al===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Al--}},[])}function kp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var an=function(){return an=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return _S;var t=LS(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},DS=ev(),po="data-scroll-locked",AS=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,l=e.gap;return n===void 0&&(n="margin"),` + .`.concat(yS,` { overflow: hidden `).concat(r,`; padding-right: `).concat(l,"px ").concat(r,`; } @@ -99,76 +99,76 @@ Error generating stack: `+s.message+` } body[`).concat(po,`] { - `).concat(yS,": ").concat(l,`px; + `).concat(wS,": ").concat(l,`px; } -`)},Op=function(){var e=parseInt(document.body.getAttribute(po)||"0",10);return isFinite(e)?e:0},AS=function(){b.useEffect(function(){return document.body.setAttribute(po,(Op()+1).toString()),function(){var e=Op()-1;e<=0?document.body.removeAttribute(po):document.body.setAttribute(po,e.toString())}},[])},zS=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;AS();var s=b.useMemo(function(){return LS(o)},[o]);return b.createElement(IS,{styles:DS(s,!t,o,n?"":"!important")})},tu=!1;if(typeof window<"u")try{var ds=Object.defineProperty({},"passive",{get:function(){return tu=!0,!0}});window.addEventListener("test",ds,ds),window.removeEventListener("test",ds,ds)}catch{tu=!1}var Fr=tu?{passive:!1}:!1,$S=function(e){return e.tagName==="TEXTAREA"},ev=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!$S(e)&&n[t]==="visible")},BS=function(e){return ev(e,"overflowY")},FS=function(e){return ev(e,"overflowX")},jp=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=tv(e,r);if(o){var s=nv(e,r),a=s[1],l=s[2];if(a>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},VS=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},HS=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},tv=function(e,t){return e==="v"?BS(t):FS(t)},nv=function(e,t){return e==="v"?VS(t):HS(t)},WS=function(e,t){return e==="h"&&t==="rtl"?-1:1},US=function(e,t,n,r,o){var s=WS(e,window.getComputedStyle(t).direction),a=s*r,l=n.target,c=t.contains(l),u=!1,d=a>0,f=0,h=0;do{var m=nv(e,l),x=m[0],w=m[1],S=m[2],g=w-S-s*x;(x||g)&&tv(e,l)&&(f+=g,h+=x),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(d&&(Math.abs(f)<1||!o)||!d&&(Math.abs(h)<1||!o))&&(u=!0),u},fs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Mp=function(e){return[e.deltaX,e.deltaY]},Rp=function(e){return e&&"current"in e?e.current:e},GS=function(e,t){return e[0]===t[0]&&e[1]===t[1]},YS=function(e){return` +`)},Op=function(){var e=parseInt(document.body.getAttribute(po)||"0",10);return isFinite(e)?e:0},zS=function(){b.useEffect(function(){return document.body.setAttribute(po,(Op()+1).toString()),function(){var e=Op()-1;e<=0?document.body.removeAttribute(po):document.body.setAttribute(po,e.toString())}},[])},$S=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;zS();var s=b.useMemo(function(){return IS(o)},[o]);return b.createElement(DS,{styles:AS(s,!t,o,n?"":"!important")})},tu=!1;if(typeof window<"u")try{var ds=Object.defineProperty({},"passive",{get:function(){return tu=!0,!0}});window.addEventListener("test",ds,ds),window.removeEventListener("test",ds,ds)}catch{tu=!1}var Fr=tu?{passive:!1}:!1,BS=function(e){return e.tagName==="TEXTAREA"},tv=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!BS(e)&&n[t]==="visible")},FS=function(e){return tv(e,"overflowY")},VS=function(e){return tv(e,"overflowX")},jp=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=nv(e,r);if(o){var s=rv(e,r),a=s[1],l=s[2];if(a>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},HS=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},WS=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},nv=function(e,t){return e==="v"?FS(t):VS(t)},rv=function(e,t){return e==="v"?HS(t):WS(t)},US=function(e,t){return e==="h"&&t==="rtl"?-1:1},GS=function(e,t,n,r,o){var s=US(e,window.getComputedStyle(t).direction),a=s*r,l=n.target,c=t.contains(l),u=!1,d=a>0,f=0,h=0;do{var m=rv(e,l),x=m[0],w=m[1],S=m[2],g=w-S-s*x;(x||g)&&nv(e,l)&&(f+=g,h+=x),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(d&&(Math.abs(f)<1||!o)||!d&&(Math.abs(h)<1||!o))&&(u=!0),u},fs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Rp=function(e){return[e.deltaX,e.deltaY]},Mp=function(e){return e&&"current"in e?e.current:e},YS=function(e,t){return e[0]===t[0]&&e[1]===t[1]},KS=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},KS=0,Vr=[];function XS(e){var t=b.useRef([]),n=b.useRef([0,0]),r=b.useRef(),o=b.useState(KS++)[0],s=b.useState(Jg)[0],a=b.useRef(e);b.useEffect(function(){a.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var w=gS([e.lockRef.current],(e.shards||[]).map(Rp),!0).filter(Boolean);return w.forEach(function(S){return S.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),w.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=b.useCallback(function(w,S){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!a.current.allowPinchZoom;var g=fs(w),p=n.current,v="deltaX"in w?w.deltaX:p[0]-g[0],E="deltaY"in w?w.deltaY:p[1]-g[1],C,P=w.target,T=Math.abs(v)>Math.abs(E)?"h":"v";if("touches"in w&&T==="h"&&P.type==="range")return!1;var k=jp(T,P);if(!k)return!0;if(k?C=T:(C=T==="v"?"h":"v",k=jp(T,P)),!k)return!1;if(!r.current&&"changedTouches"in w&&(v||E)&&(r.current=C),!C)return!0;var O=r.current||C;return US(O,S,w,O==="h"?v:E,!0)},[]),c=b.useCallback(function(w){var S=w;if(!(!Vr.length||Vr[Vr.length-1]!==s)){var g="deltaY"in S?Mp(S):fs(S),p=t.current.filter(function(C){return C.name===S.type&&(C.target===S.target||S.target===C.shadowParent)&&GS(C.delta,g)})[0];if(p&&p.should){S.cancelable&&S.preventDefault();return}if(!p){var v=(a.current.shards||[]).map(Rp).filter(Boolean).filter(function(C){return C.contains(S.target)}),E=v.length>0?l(S,v[0]):!a.current.noIsolation;E&&S.cancelable&&S.preventDefault()}}},[]),u=b.useCallback(function(w,S,g,p){var v={name:w,delta:S,target:g,should:p,shadowParent:qS(g)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(E){return E!==v})},1)},[]),d=b.useCallback(function(w){n.current=fs(w),r.current=void 0},[]),f=b.useCallback(function(w){u(w.type,Mp(w),w.target,l(w,e.lockRef.current))},[]),h=b.useCallback(function(w){u(w.type,fs(w),w.target,l(w,e.lockRef.current))},[]);b.useEffect(function(){return Vr.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",c,Fr),document.addEventListener("touchmove",c,Fr),document.addEventListener("touchstart",d,Fr),function(){Vr=Vr.filter(function(w){return w!==s}),document.removeEventListener("wheel",c,Fr),document.removeEventListener("touchmove",c,Fr),document.removeEventListener("touchstart",d,Fr)}},[]);var m=e.removeScrollBar,x=e.inert;return b.createElement(b.Fragment,null,x?b.createElement(s,{styles:YS(o)}):null,m?b.createElement(zS,{gapMode:e.gapMode}):null)}function qS(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const QS=TS(Zg,XS);var vd=b.forwardRef(function(e,t){return b.createElement(Ya,on({},e,{ref:t,sideCar:QS}))});vd.classNames=Ya.classNames;var ZS=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Hr=new WeakMap,ps=new WeakMap,ms={},Fl=0,rv=function(e){return e&&(e.host||rv(e.parentNode))},JS=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=rv(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},eE=function(e,t,n,r){var o=JS(t,Array.isArray(e)?e:[e]);ms[n]||(ms[n]=new WeakMap);var s=ms[n],a=[],l=new Set,c=new Set(o),u=function(f){!f||l.has(f)||(l.add(f),u(f.parentNode))};o.forEach(u);var d=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(h){if(l.has(h))d(h);else try{var m=h.getAttribute(r),x=m!==null&&m!=="false",w=(Hr.get(h)||0)+1,S=(s.get(h)||0)+1;Hr.set(h,w),s.set(h,S),a.push(h),w===1&&x&&ps.set(h,!0),S===1&&h.setAttribute(n,"true"),x||h.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",h,g)}})};return d(t),l.clear(),Fl++,function(){a.forEach(function(f){var h=Hr.get(f)-1,m=s.get(f)-1;Hr.set(f,h),s.set(f,m),h||(ps.has(f)||f.removeAttribute(r),ps.delete(f)),m||f.removeAttribute(n)}),Fl--,Fl||(Hr=new WeakMap,Hr=new WeakMap,ps=new WeakMap,ms={})}},ov=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=ZS(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),eE(r,o,n,"aria-hidden")):function(){return null}},yd="Dialog",[iv,F5]=Ug(yd),[tE,Zt]=iv(yd),sv=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,l=b.useRef(null),c=b.useRef(null),[u=!1,d]=Zc({prop:r,defaultProp:o,onChange:s});return y.jsx(tE,{scope:t,triggerRef:l,contentRef:c,contentId:fo(),titleId:fo(),descriptionId:fo(),open:u,onOpenChange:d,onOpenToggle:b.useCallback(()=>d(f=>!f),[d]),modal:a,children:n})};sv.displayName=yd;var av="DialogTrigger",lv=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Zt(av,n),s=Fe(t,o.triggerRef);return y.jsx(Me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":bd(o.open),...r,ref:s,onClick:Oe(e.onClick,o.onOpenToggle)})});lv.displayName=av;var wd="DialogPortal",[nE,cv]=iv(wd,{forceMount:void 0}),uv=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Zt(wd,t);return y.jsx(nE,{scope:t,forceMount:n,children:b.Children.map(r,a=>y.jsx(Ga,{present:n||s.open,children:y.jsx(gd,{asChild:!0,container:o,children:a})}))})};uv.displayName=wd;var wa="DialogOverlay",dv=b.forwardRef((e,t)=>{const n=cv(wa,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Zt(wa,e.__scopeDialog);return s.modal?y.jsx(Ga,{present:r||s.open,children:y.jsx(rE,{...o,ref:t})}):null});dv.displayName=wa;var rE=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Zt(wa,n);return y.jsx(vd,{as:Mr,allowPinchZoom:!0,shards:[o.contentRef],children:y.jsx(Me.div,{"data-state":bd(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Rr="DialogContent",fv=b.forwardRef((e,t)=>{const n=cv(Rr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Zt(Rr,e.__scopeDialog);return y.jsx(Ga,{present:r||s.open,children:s.modal?y.jsx(oE,{...o,ref:t}):y.jsx(iE,{...o,ref:t})})});fv.displayName=Rr;var oE=b.forwardRef((e,t)=>{const n=Zt(Rr,e.__scopeDialog),r=b.useRef(null),o=Fe(t,n.contentRef,r);return b.useEffect(()=>{const s=r.current;if(s)return ov(s)},[]),y.jsx(pv,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Oe(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Oe(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&s.preventDefault()}),onFocusOutside:Oe(e.onFocusOutside,s=>s.preventDefault())})}),iE=b.forwardRef((e,t)=>{const n=Zt(Rr,e.__scopeDialog),r=b.useRef(!1),o=b.useRef(!1);return y.jsx(pv,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,l;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),pv=b.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,l=Zt(Rr,n),c=b.useRef(null),u=Fe(t,c);return Xg(),y.jsxs(y.Fragment,{children:[y.jsx(hd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:y.jsx(md,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":bd(l.open),...a,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(sE,{titleId:l.titleId}),y.jsx(lE,{contentRef:c,descriptionId:l.descriptionId})]})]})}),xd="DialogTitle",mv=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Zt(xd,n);return y.jsx(Me.h2,{id:o.titleId,...r,ref:t})});mv.displayName=xd;var hv="DialogDescription",gv=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Zt(hv,n);return y.jsx(Me.p,{id:o.descriptionId,...r,ref:t})});gv.displayName=hv;var vv="DialogClose",yv=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Zt(vv,n);return y.jsx(Me.button,{type:"button",...r,ref:t,onClick:Oe(e.onClick,()=>o.onOpenChange(!1))})});yv.displayName=vv;function bd(e){return e?"open":"closed"}var wv="DialogTitleWarning",[V5,xv]=Bb(wv,{contentName:Rr,titleName:xd,docsSlug:"dialog"}),sE=({titleId:e})=>{const t=xv(wv),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. +`)},XS=0,Vr=[];function qS(e){var t=b.useRef([]),n=b.useRef([0,0]),r=b.useRef(),o=b.useState(XS++)[0],s=b.useState(ev)[0],a=b.useRef(e);b.useEffect(function(){a.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var w=vS([e.lockRef.current],(e.shards||[]).map(Mp),!0).filter(Boolean);return w.forEach(function(S){return S.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),w.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=b.useCallback(function(w,S){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!a.current.allowPinchZoom;var g=fs(w),p=n.current,y="deltaX"in w?w.deltaX:p[0]-g[0],E="deltaY"in w?w.deltaY:p[1]-g[1],C,k=w.target,T=Math.abs(y)>Math.abs(E)?"h":"v";if("touches"in w&&T==="h"&&k.type==="range")return!1;var P=jp(T,k);if(!P)return!0;if(P?C=T:(C=T==="v"?"h":"v",P=jp(T,k)),!P)return!1;if(!r.current&&"changedTouches"in w&&(y||E)&&(r.current=C),!C)return!0;var O=r.current||C;return GS(O,S,w,O==="h"?y:E,!0)},[]),c=b.useCallback(function(w){var S=w;if(!(!Vr.length||Vr[Vr.length-1]!==s)){var g="deltaY"in S?Rp(S):fs(S),p=t.current.filter(function(C){return C.name===S.type&&(C.target===S.target||S.target===C.shadowParent)&&YS(C.delta,g)})[0];if(p&&p.should){S.cancelable&&S.preventDefault();return}if(!p){var y=(a.current.shards||[]).map(Mp).filter(Boolean).filter(function(C){return C.contains(S.target)}),E=y.length>0?l(S,y[0]):!a.current.noIsolation;E&&S.cancelable&&S.preventDefault()}}},[]),u=b.useCallback(function(w,S,g,p){var y={name:w,delta:S,target:g,should:p,shadowParent:QS(g)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(E){return E!==y})},1)},[]),d=b.useCallback(function(w){n.current=fs(w),r.current=void 0},[]),f=b.useCallback(function(w){u(w.type,Rp(w),w.target,l(w,e.lockRef.current))},[]),h=b.useCallback(function(w){u(w.type,fs(w),w.target,l(w,e.lockRef.current))},[]);b.useEffect(function(){return Vr.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",c,Fr),document.addEventListener("touchmove",c,Fr),document.addEventListener("touchstart",d,Fr),function(){Vr=Vr.filter(function(w){return w!==s}),document.removeEventListener("wheel",c,Fr),document.removeEventListener("touchmove",c,Fr),document.removeEventListener("touchstart",d,Fr)}},[]);var m=e.removeScrollBar,x=e.inert;return b.createElement(b.Fragment,null,x?b.createElement(s,{styles:KS(o)}):null,m?b.createElement($S,{gapMode:e.gapMode}):null)}function QS(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ZS=PS(Jg,qS);var vd=b.forwardRef(function(e,t){return b.createElement(Ya,an({},e,{ref:t,sideCar:ZS}))});vd.classNames=Ya.classNames;var JS=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Hr=new WeakMap,ps=new WeakMap,ms={},Fl=0,ov=function(e){return e&&(e.host||ov(e.parentNode))},eE=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ov(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},tE=function(e,t,n,r){var o=eE(t,Array.isArray(e)?e:[e]);ms[n]||(ms[n]=new WeakMap);var s=ms[n],a=[],l=new Set,c=new Set(o),u=function(f){!f||l.has(f)||(l.add(f),u(f.parentNode))};o.forEach(u);var d=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(h){if(l.has(h))d(h);else try{var m=h.getAttribute(r),x=m!==null&&m!=="false",w=(Hr.get(h)||0)+1,S=(s.get(h)||0)+1;Hr.set(h,w),s.set(h,S),a.push(h),w===1&&x&&ps.set(h,!0),S===1&&h.setAttribute(n,"true"),x||h.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",h,g)}})};return d(t),l.clear(),Fl++,function(){a.forEach(function(f){var h=Hr.get(f)-1,m=s.get(f)-1;Hr.set(f,h),s.set(f,m),h||(ps.has(f)||f.removeAttribute(r),ps.delete(f)),m||f.removeAttribute(n)}),Fl--,Fl||(Hr=new WeakMap,Hr=new WeakMap,ps=new WeakMap,ms={})}},iv=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=JS(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),tE(r,o,n,"aria-hidden")):function(){return null}},yd="Dialog",[sv,VT]=Gg(yd),[nE,tn]=sv(yd),av=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,l=b.useRef(null),c=b.useRef(null),[u=!1,d]=Zc({prop:r,defaultProp:o,onChange:s});return v.jsx(nE,{scope:t,triggerRef:l,contentRef:c,contentId:fo(),titleId:fo(),descriptionId:fo(),open:u,onOpenChange:d,onOpenToggle:b.useCallback(()=>d(f=>!f),[d]),modal:a,children:n})};av.displayName=yd;var lv="DialogTrigger",cv=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tn(lv,n),s=Ve(t,o.triggerRef);return v.jsx(Re.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":bd(o.open),...r,ref:s,onClick:Oe(e.onClick,o.onOpenToggle)})});cv.displayName=lv;var wd="DialogPortal",[rE,uv]=sv(wd,{forceMount:void 0}),dv=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=tn(wd,t);return v.jsx(rE,{scope:t,forceMount:n,children:b.Children.map(r,a=>v.jsx(Ga,{present:n||s.open,children:v.jsx(gd,{asChild:!0,container:o,children:a})}))})};dv.displayName=wd;var wa="DialogOverlay",fv=b.forwardRef((e,t)=>{const n=uv(wa,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=tn(wa,e.__scopeDialog);return s.modal?v.jsx(Ga,{present:r||s.open,children:v.jsx(oE,{...o,ref:t})}):null});fv.displayName=wa;var oE=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tn(wa,n);return v.jsx(vd,{as:Rr,allowPinchZoom:!0,shards:[o.contentRef],children:v.jsx(Re.div,{"data-state":bd(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Mr="DialogContent",pv=b.forwardRef((e,t)=>{const n=uv(Mr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=tn(Mr,e.__scopeDialog);return v.jsx(Ga,{present:r||s.open,children:s.modal?v.jsx(iE,{...o,ref:t}):v.jsx(sE,{...o,ref:t})})});pv.displayName=Mr;var iE=b.forwardRef((e,t)=>{const n=tn(Mr,e.__scopeDialog),r=b.useRef(null),o=Ve(t,n.contentRef,r);return b.useEffect(()=>{const s=r.current;if(s)return iv(s)},[]),v.jsx(mv,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Oe(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Oe(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&s.preventDefault()}),onFocusOutside:Oe(e.onFocusOutside,s=>s.preventDefault())})}),sE=b.forwardRef((e,t)=>{const n=tn(Mr,e.__scopeDialog),r=b.useRef(!1),o=b.useRef(!1);return v.jsx(mv,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,l;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),mv=b.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,l=tn(Mr,n),c=b.useRef(null),u=Ve(t,c);return qg(),v.jsxs(v.Fragment,{children:[v.jsx(hd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:v.jsx(md,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":bd(l.open),...a,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),v.jsxs(v.Fragment,{children:[v.jsx(aE,{titleId:l.titleId}),v.jsx(cE,{contentRef:c,descriptionId:l.descriptionId})]})]})}),xd="DialogTitle",hv=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tn(xd,n);return v.jsx(Re.h2,{id:o.titleId,...r,ref:t})});hv.displayName=xd;var gv="DialogDescription",vv=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tn(gv,n);return v.jsx(Re.p,{id:o.descriptionId,...r,ref:t})});vv.displayName=gv;var yv="DialogClose",wv=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tn(yv,n);return v.jsx(Re.button,{type:"button",...r,ref:t,onClick:Oe(e.onClick,()=>o.onOpenChange(!1))})});wv.displayName=yv;function bd(e){return e?"open":"closed"}var xv="DialogTitleWarning",[HT,bv]=Fb(xv,{contentName:Mr,titleName:xd,docsSlug:"dialog"}),aE=({titleId:e})=>{const t=bv(xv),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. -For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return b.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},aE="DialogDescriptionWarning",lE=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${xv(aE).contentName}}.`;return b.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},bv=sv,Sv=lv,Ev=uv,Sd=dv,Ed=fv,Cd=mv,Td=gv,Cv=yv;function cE(e){if(typeof document>"u")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))}const Tv=D.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),_o=()=>{const e=D.useContext(Tv);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};cE(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not( +For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return b.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},lE="DialogDescriptionWarning",cE=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${bv(lE).contentName}}.`;return b.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Sv=av,Ev=cv,Cv=dv,Sd=fv,Ed=pv,Cd=hv,Td=vv,Tv=wv;function uE(e){if(typeof document>"u")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))}const Pv=D.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),_o=()=>{const e=D.useContext(Pv);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};uE(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not( [data-state=closed] -){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function uE(){const e=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function dE(){return Pd(/^Mac/)}function fE(){return Pd(/^iPhone/)}function _p(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function pE(){return Pd(/^iPad/)||dE()&&navigator.maxTouchPoints>1}function Pv(){return fE()||pE()}function Pd(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const mE=24,hE=typeof window<"u"?b.useLayoutEffect:b.useEffect;function Lp(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Vl=typeof document<"u"&&window.visualViewport;function Ip(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function kv(e){for(Ip(e)&&(e=e.parentElement);e&&!Ip(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const gE=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let hs=0,Hl;function vE(e={}){let{isDisabled:t}=e;hE(()=>{if(!t)return hs++,hs===1&&Pv()&&(Hl=yE()),()=>{hs--,hs===0&&(Hl==null||Hl())}},[t])}function yE(){let e,t=0,n=f=>{e=kv(f.target),!(e===document.documentElement&&e===document.body)&&(t=f.changedTouches[0].pageY)},r=f=>{if(!e||e===document.documentElement||e===document.body){f.preventDefault();return}let h=f.changedTouches[0].pageY,m=e.scrollTop,x=e.scrollHeight-e.clientHeight;x!==0&&((m<=0&&h>t||m>=x&&h{let h=f.target;nu(h)&&h!==document.activeElement&&(f.preventDefault(),h.style.transform="translateY(-2000px)",h.focus(),requestAnimationFrame(()=>{h.style.transform=""}))},s=f=>{let h=f.target;nu(h)&&(h.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{h.style.transform="",Vl&&(Vl.height{Dp(h)}):Vl.addEventListener("resize",()=>Dp(h),{once:!0}))}))},a=()=>{window.scrollTo(0,0)},l=window.pageXOffset,c=window.pageYOffset,u=Lp(wE(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let d=Lp(Ko(document,"touchstart",n,{passive:!1,capture:!0}),Ko(document,"touchmove",r,{passive:!1,capture:!0}),Ko(document,"touchend",o,{passive:!1,capture:!0}),Ko(document,"focus",s,!0),Ko(window,"scroll",a));return()=>{u(),d(),window.scrollTo(l,c)}}function wE(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Ko(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Dp(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=kv(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,s=e.getBoundingClientRect().bottom;const a=n.getBoundingClientRect().bottom+mE;s>a&&(n.scrollTop+=o-r)}e=n.parentElement}}function nu(e){return e instanceof HTMLInputElement&&!gE.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function xE(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function bE(...e){return t=>e.forEach(n=>xE(n,t))}function Nv(...e){return b.useCallback(bE(...e),e)}const Ov=new WeakMap;function Ge(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([o,s])=>{if(o.startsWith("--")){e.style.setProperty(o,s);return}r[o]=e.style[o],e.style[o]=s}),!n&&Ov.set(e,r)}function SE(e,t){if(!e||!(e instanceof HTMLElement))return;let n=Ov.get(e);n&&(e.style[t]=n[t])}const We=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function gs(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[We(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[We(t)?5:4]):null)}function EE(e){return 8*(Math.log(e+1)-2)}function Wl(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function CE(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}const _e={DURATION:.5,EASE:[.32,.72,0,1]},jv=.4,TE=.25,PE=100,Mv=8,gr=16,ru=26,Ul="vaul-dragging";function Rv(e){const t=D.useRef(e);return D.useEffect(()=>{t.current=e}),D.useMemo(()=>(...n)=>t.current==null?void 0:t.current.call(t,...n),[])}function kE({defaultProp:e,onChange:t}){const n=D.useState(e),[r]=n,o=D.useRef(r),s=Rv(t);return D.useEffect(()=>{o.current!==r&&(s(r),o.current=r)},[r,o,s]),n}function _v({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=kE({defaultProp:t,onChange:n}),s=e!==void 0,a=s?e:r,l=Rv(n),c=D.useCallback(u=>{if(s){const f=typeof u=="function"?u(e):u;f!==e&&l(f)}else o(u)},[s,e,o,l]);return[a,c]}function NE({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:s,onSnapPointChange:a,direction:l="bottom",container:c,snapToSequentialPoint:u}){const[d,f]=_v({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),[h,m]=D.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);D.useEffect(()=>{function T(){m({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",T),()=>window.removeEventListener("resize",T)},[]);const x=D.useMemo(()=>d===(n==null?void 0:n[n.length-1])||null,[n,d]),w=D.useMemo(()=>{var T;return(T=n==null?void 0:n.findIndex(k=>k===d))!=null?T:null},[n,d]),S=n&&n.length>0&&(s||s===0)&&!Number.isNaN(s)&&n[s]===d||!n,g=D.useMemo(()=>{const T=c?{width:c.getBoundingClientRect().width,height:c.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var k;return(k=n==null?void 0:n.map(O=>{const j=typeof O=="string";let $=0;if(j&&($=parseInt(O,10)),We(l)){const N=j?$:h?O*T.height:0;return h?l==="bottom"?T.height-N:-T.height+N:N}const M=j?$:h?O*T.width:0;return h?l==="right"?T.width-M:-T.width+M:M}))!=null?k:[]},[n,h,c]),p=D.useMemo(()=>w!==null?g==null?void 0:g[w]:null,[g,w]),v=D.useCallback(T=>{var k;const O=(k=g==null?void 0:g.findIndex(j=>j===T))!=null?k:null;a(O),Ge(r.current,{transition:`transform ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,transform:We(l)?`translate3d(0, ${T}px, 0)`:`translate3d(${T}px, 0, 0)`}),g&&O!==g.length-1&&s!==void 0&&O!==s&&O{if(d||e){var T;const k=(T=n==null?void 0:n.findIndex(O=>O===e||O===d))!=null?T:-1;g&&k!==-1&&typeof g[k]=="number"&&v(g[k])}},[d,e,n,g,v]);function E({draggedDistance:T,closeDrawer:k,velocity:O,dismissible:j}){if(s===void 0)return;const $=l==="bottom"||l==="right"?(p??0)-T:(p??0)+T,M=w===s-1,N=w===0,z=T>0;if(M&&Ge(o.current,{transition:`opacity ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`}),!u&&O>2&&!z){j?k():v(g[0]);return}if(!u&&O>2&&z&&g&&n){v(g[n.length-1]);return}const H=g==null?void 0:g.reduce((K,_)=>typeof K!="number"||typeof _!="number"?K:Math.abs(_-$)jv&&Math.abs(T)0&&x&&n){v(g[n.length-1]);return}if(N&&K<0&&j&&k(),w===null)return;v(g[w+K]);return}v(H)}function C({draggedDistance:T}){if(p===null)return;const k=l==="bottom"||l==="right"?p-T:p+T;(l==="bottom"||l==="right")&&kg[g.length-1]||Ge(r.current,{transform:We(l)?`translate3d(0, ${k}px, 0)`:`translate3d(${k}px, 0, 0)`})}function P(T,k){if(!n||typeof w!="number"||!g||s===void 0)return null;const O=w===s-1;if(w>=s&&k)return 0;if(O&&!k)return 1;if(!S&&!O)return null;const $=O?w+1:w-1,M=O?g[$]-g[$-1]:g[$+1]-g[$],N=T/Math.abs(M);return O?1-N:N}return{isLastSnapPoint:x,activeSnapPoint:d,shouldFade:S,getPercentageDragged:P,setActiveSnapPoint:f,activeSnapPointIndex:w,onRelease:E,onDrag:C,snapPointsOffset:g}}const OE=()=>()=>{};function jE(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:o}=_o(),s=D.useRef(null),a=b.useMemo(()=>document.body.style.backgroundColor,[]);function l(){return(window.innerWidth-ru)/window.innerWidth}D.useEffect(()=>{if(t&&n){s.current&&clearTimeout(s.current);const c=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!c)return;CE(r&&!o?Wl(document.body,{background:"black"}):OE,Wl(c,{transformOrigin:We(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${_e.DURATION}s`,transitionTimingFunction:`cubic-bezier(${_e.EASE.join(",")})`}));const u=Wl(c,{borderRadius:`${Mv}px`,overflow:"hidden",...We(e)?{transform:`scale(${l()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${l()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{u(),s.current=window.setTimeout(()=>{a?document.body.style.background=a:document.body.style.removeProperty("background")},_e.DURATION*1e3)}}},[t,n,a])}let Xo=null;function ME({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:s}){const[a,l]=D.useState(()=>typeof window<"u"?window.location.href:""),c=D.useRef(0),u=D.useCallback(()=>{if(_p()&&Xo===null&&e&&!s){Xo={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:f,innerHeight:h}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-c.current}px`,left:`${-f}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const m=h-window.innerHeight;m&&c.current>=h&&(document.body.style.top=`${-(c.current+m)}px`)}),300)}},[e]),d=D.useCallback(()=>{if(_p()&&Xo!==null&&!s){const f=-parseInt(document.body.style.top,10),h=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Xo),window.requestAnimationFrame(()=>{if(o&&a!==window.location.href){l(window.location.href);return}window.scrollTo(h,f)}),Xo=null}},[a]);return D.useEffect(()=>{function f(){c.current=window.scrollY}return f(),window.addEventListener("scroll",f),()=>{window.removeEventListener("scroll",f)}},[]),D.useEffect(()=>{if(t)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||d()}},[t,d]),D.useEffect(()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&u(),t||window.setTimeout(()=>{d()},500)):d())},[e,r,a,t,n,u,d]),{restorePositionSetting:d}}function Lv({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:o,snapPoints:s,shouldScaleBackground:a=!1,setBackgroundColorOnScale:l=!0,closeThreshold:c=TE,scrollLockTimeout:u=PE,dismissible:d=!0,handleOnly:f=!1,fadeFromIndex:h=s&&s.length-1,activeSnapPoint:m,setActiveSnapPoint:x,fixed:w,modal:S=!0,onClose:g,nested:p,noBodyStyles:v=!1,direction:E="bottom",defaultOpen:C=!1,disablePreventScroll:P=!0,snapToSequentialPoint:T=!1,preventScrollRestoration:k=!1,repositionInputs:O=!0,onAnimationEnd:j,container:$,autoFocus:M=!1}){var N,z;const[H=!1,W]=_v({defaultProp:C,prop:e,onChange:B=>{t==null||t(B),!B&&!p&&$t(),setTimeout(()=>{j==null||j(B)},_e.DURATION*1e3),B&&!S&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),B||(document.body.style.pointerEvents="auto")}}),[K,_]=D.useState(!1),[I,U]=D.useState(!1),[Z,Q]=D.useState(!1),J=D.useRef(null),ee=D.useRef(null),te=D.useRef(null),ae=D.useRef(null),q=D.useRef(null),de=D.useRef(!1),pe=D.useRef(null),ue=D.useRef(0),oe=D.useRef(!1),ce=D.useRef(!C),ve=D.useRef(0),ie=D.useRef(null),nt=D.useRef(((N=ie.current)==null?void 0:N.getBoundingClientRect().height)||0),ct=D.useRef(((z=ie.current)==null?void 0:z.getBoundingClientRect().width)||0),xe=D.useRef(0),Ze=D.useCallback(B=>{s&&B===He.length-1&&(ee.current=new Date)},[]),{activeSnapPoint:Ve,activeSnapPointIndex:Ce,setActiveSnapPoint:fr,onRelease:en,snapPointsOffset:He,onDrag:zt,shouldFade:pr,getPercentageDragged:$o}=NE({snapPoints:s,activeSnapPointProp:m,setActiveSnapPointProp:x,drawerRef:ie,fadeFromIndex:h,overlayRef:J,onSnapPointChange:Ze,direction:E,container:$,snapToSequentialPoint:T});vE({isDisabled:!H||I||!S||Z||!K||!O||!P});const{restorePositionSetting:$t}=ME({isOpen:H,modal:S,nested:p??!1,hasBeenOpened:K,preventScrollRestoration:k,noBodyStyles:v});function On(){return(window.innerWidth-ru)/window.innerWidth}function jn(B){var A,L;!d&&!s||ie.current&&!ie.current.contains(B.target)||(nt.current=((A=ie.current)==null?void 0:A.getBoundingClientRect().height)||0,ct.current=((L=ie.current)==null?void 0:L.getBoundingClientRect().width)||0,U(!0),te.current=new Date,Pv()&&window.addEventListener("touchend",()=>de.current=!1,{once:!0}),B.target.setPointerCapture(B.pointerId),ue.current=We(E)?B.pageY:B.pageX)}function Bt(B,A){var L;let G=B;const Y=(L=window.getSelection())==null?void 0:L.toString(),re=ie.current?gs(ie.current,E):null,se=new Date;if(G.tagName==="SELECT"||G.hasAttribute("data-vaul-no-drag")||G.closest("[data-vaul-no-drag]"))return!1;if(E==="right"||E==="left")return!0;if(ee.current&&se.getTime()-ee.current.getTime()<500)return!1;if(re!==null&&(E==="bottom"?re>0:re<0))return!0;if(Y&&Y.length>0)return!1;if(q.current&&se.getTime()-q.current.getTime()G.clientHeight){if(G.scrollTop!==0)return q.current=new Date,!1;if(G.getAttribute("role")==="dialog")return!0}G=G.parentNode}return!0}function mr(B){if(ie.current&&I){const A=E==="bottom"||E==="right"?1:-1,L=(ue.current-(We(E)?B.pageY:B.pageX))*A,G=L>0,Y=s&&!d&&!G;if(Y&&Ce===0)return;const re=Math.abs(L),se=document.querySelector("[data-vaul-drawer-wrapper]"),ge=E==="bottom"||E==="top"?nt.current:ct.current;let me=re/ge;const ye=$o(re,G);if(ye!==null&&(me=ye),Y&&me>=1||!de.current&&!Bt(B.target,G))return;if(ie.current.classList.add(Ul),de.current=!0,Ge(ie.current,{transition:"none"}),Ge(J.current,{transition:"none"}),s&&zt({draggedDistance:L}),G&&!s){const be=EE(L),Ae=Math.min(be*-1,0)*A;Ge(ie.current,{transform:We(E)?`translate3d(0, ${Ae}px, 0)`:`translate3d(${Ae}px, 0, 0)`});return}const Te=1-me;if((pr||h&&Ce===h-1)&&(r==null||r(B,me),Ge(J.current,{opacity:`${Te}`,transition:"none"},!0)),se&&J.current&&a){const be=Math.min(On()+me*(1-On()),1),Ae=8-me*8,$r=Math.max(0,14-me*14);Ge(se,{borderRadius:`${Ae}px`,transform:We(E)?`scale(${be}) translate3d(0, ${$r}px, 0)`:`scale(${be}) translate3d(${$r}px, 0, 0)`,transition:"none"},!0)}if(!s){const be=re*A;Ge(ie.current,{transform:We(E)?`translate3d(0, ${be}px, 0)`:`translate3d(${be}px, 0, 0)`})}}}D.useEffect(()=>{window.requestAnimationFrame(()=>{ce.current=!0})},[]),D.useEffect(()=>{var B;function A(){if(!ie.current||!O)return;const L=document.activeElement;if(nu(L)||oe.current){var G;const Y=((G=window.visualViewport)==null?void 0:G.height)||0,re=window.innerHeight;let se=re-Y;const ge=ie.current.getBoundingClientRect().height||0,me=ge>re*.8;xe.current||(xe.current=ge);const ye=ie.current.getBoundingClientRect().top;if(Math.abs(ve.current-se)>60&&(oe.current=!oe.current),s&&s.length>0&&He&&Ce){const Te=He[Ce]||0;se+=Te}if(ve.current=se,ge>Y||oe.current){const Te=ie.current.getBoundingClientRect().height;let be=Te;Te>Y&&(be=Y-(me?ye:ru)),w?ie.current.style.height=`${Te-Math.max(se,0)}px`:ie.current.style.height=`${Math.max(be,Y-ye)}px`}else uE()||(ie.current.style.height=`${xe.current}px`);s&&s.length>0&&!oe.current?ie.current.style.bottom="0px":ie.current.style.bottom=`${Math.max(se,0)}px`}}return(B=window.visualViewport)==null||B.addEventListener("resize",A),()=>{var L;return(L=window.visualViewport)==null?void 0:L.removeEventListener("resize",A)}},[Ce,s,He]);function ut(B){hr(),g==null||g(),B||W(!1),setTimeout(()=>{s&&fr(s[0])},_e.DURATION*1e3)}function Mn(){if(!ie.current)return;const B=document.querySelector("[data-vaul-drawer-wrapper]"),A=gs(ie.current,E);Ge(ie.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`}),Ge(J.current,{transition:`opacity ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,opacity:"1"}),a&&A&&A>0&&H&&Ge(B,{borderRadius:`${Mv}px`,overflow:"hidden",...We(E)?{transform:`scale(${On()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${On()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${_e.DURATION}s`,transitionTimingFunction:`cubic-bezier(${_e.EASE.join(",")})`},!0)}function hr(){!I||!ie.current||(ie.current.classList.remove(Ul),de.current=!1,U(!1),ae.current=new Date)}function zr(B){if(!I||!ie.current)return;ie.current.classList.remove(Ul),de.current=!1,U(!1),ae.current=new Date;const A=gs(ie.current,E);if(!B||!Bt(B.target,!1)||!A||Number.isNaN(A)||te.current===null)return;const L=ae.current.getTime()-te.current.getTime(),G=ue.current-(We(E)?B.pageY:B.pageX),Y=Math.abs(G)/L;if(Y>.05&&(Q(!0),setTimeout(()=>{Q(!1)},200)),s){en({draggedDistance:G*(E==="bottom"||E==="right"?1:-1),closeDrawer:ut,velocity:Y,dismissible:d}),o==null||o(B,!0);return}if(E==="bottom"||E==="right"?G>0:G<0){Mn(),o==null||o(B,!0);return}if(Y>jv){ut(),o==null||o(B,!1);return}var re;const se=Math.min((re=ie.current.getBoundingClientRect().height)!=null?re:0,window.innerHeight);var ge;const me=Math.min((ge=ie.current.getBoundingClientRect().width)!=null?ge:0,window.innerWidth),ye=E==="left"||E==="right";if(Math.abs(A)>=(ye?me:se)*c){ut(),o==null||o(B,!1);return}o==null||o(B,!0),Mn()}D.useEffect(()=>(H&&(Ge(document.documentElement,{scrollBehavior:"auto"}),ee.current=new Date),()=>{SE(document.documentElement,"scrollBehavior")}),[H]);function V(B){const A=B?(window.innerWidth-gr)/window.innerWidth:1,L=B?-gr:0;pe.current&&window.clearTimeout(pe.current),Ge(ie.current,{transition:`transform ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,transform:We(E)?`scale(${A}) translate3d(0, ${L}px, 0)`:`scale(${A}) translate3d(${L}, 0, 0)`}),!B&&ie.current&&(pe.current=setTimeout(()=>{const G=gs(ie.current,E);Ge(ie.current,{transition:"none",transform:We(E)?`translate3d(0, ${G}px, 0)`:`translate3d(${G}px, 0, 0)`})},500))}function R(B,A){if(A<0)return;const L=(window.innerWidth-gr)/window.innerWidth,G=L+A*(1-L),Y=-gr+A*gr;Ge(ie.current,{transform:We(E)?`scale(${G}) translate3d(0, ${Y}px, 0)`:`scale(${G}) translate3d(${Y}px, 0, 0)`,transition:"none"})}function F(B,A){const L=We(E)?window.innerHeight:window.innerWidth,G=A?(L-gr)/L:1,Y=A?-gr:0;A&&Ge(ie.current,{transition:`transform ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,transform:We(E)?`scale(${G}) translate3d(0, ${Y}px, 0)`:`scale(${G}) translate3d(${Y}px, 0, 0)`})}return D.useEffect(()=>{S||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[S]),D.createElement(bv,{defaultOpen:C,onOpenChange:B=>{!d&&!B||(B?_(!0):ut(!0),W(B))},open:H},D.createElement(Tv.Provider,{value:{activeSnapPoint:Ve,snapPoints:s,setActiveSnapPoint:fr,drawerRef:ie,overlayRef:J,onOpenChange:t,onPress:jn,onRelease:zr,onDrag:mr,dismissible:d,shouldAnimate:ce,handleOnly:f,isOpen:H,isDragging:I,shouldFade:pr,closeDrawer:ut,onNestedDrag:R,onNestedOpenChange:V,onNestedRelease:F,keyboardIsOpen:oe,modal:S,snapPointsOffset:He,activeSnapPointIndex:Ce,direction:E,shouldScaleBackground:a,setBackgroundColorOnScale:l,noBodyStyles:v,container:$,autoFocus:M}},n))}const Iv=D.forwardRef(function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:o,shouldFade:s,isOpen:a,modal:l,shouldAnimate:c}=_o(),u=Nv(t,n),d=r&&r.length>0;if(!l)return null;const f=D.useCallback(h=>o(h),[o]);return D.createElement(Sd,{onMouseUp:f,ref:u,"data-vaul-overlay":"","data-vaul-snap-points":a&&d?"true":"false","data-vaul-snap-points-overlay":a&&s?"true":"false","data-vaul-animate":c!=null&&c.current?"true":"false",...e})});Iv.displayName="Drawer.Overlay";const Dv=D.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},o){const{drawerRef:s,onPress:a,onRelease:l,onDrag:c,keyboardIsOpen:u,snapPointsOffset:d,activeSnapPointIndex:f,modal:h,isOpen:m,direction:x,snapPoints:w,container:S,handleOnly:g,shouldAnimate:p,autoFocus:v}=_o(),[E,C]=D.useState(!1),P=Nv(o,s),T=D.useRef(null),k=D.useRef(null),O=D.useRef(!1),j=w&&w.length>0;jE();const $=(N,z,H=0)=>{if(O.current)return!0;const W=Math.abs(N.y),K=Math.abs(N.x),_=K>W,I=["bottom","right"].includes(z)?1:-1;if(z==="left"||z==="right"){if(!(N.x*I<0)&&K>=0&&K<=H)return _}else if(!(N.y*I<0)&&W>=0&&W<=H)return!_;return O.current=!0,!0};D.useEffect(()=>{j&&window.requestAnimationFrame(()=>{C(!0)})},[]);function M(N){T.current=null,O.current=!1,l(N)}return D.createElement(Ed,{"data-vaul-drawer-direction":x,"data-vaul-drawer":"","data-vaul-delayed-snap-points":E?"true":"false","data-vaul-snap-points":m&&j?"true":"false","data-vaul-custom-container":S?"true":"false","data-vaul-animate":p!=null&&p.current?"true":"false",...r,ref:P,style:d&&d.length>0?{"--snap-point-height":`${d[f??0]}px`,...t}:t,onPointerDown:N=>{g||(r.onPointerDown==null||r.onPointerDown.call(r,N),T.current={x:N.pageX,y:N.pageY},a(N))},onOpenAutoFocus:N=>{n==null||n(N),v||N.preventDefault()},onPointerDownOutside:N=>{if(e==null||e(N),!h||N.defaultPrevented){N.preventDefault();return}u.current&&(u.current=!1)},onFocusOutside:N=>{if(!h){N.preventDefault();return}},onPointerMove:N=>{if(k.current=N,g||(r.onPointerMove==null||r.onPointerMove.call(r,N),!T.current))return;const z=N.pageY-T.current.y,H=N.pageX-T.current.x,W=N.pointerType==="touch"?10:2;$({x:H,y:z},x,W)?c(N):(Math.abs(H)>W||Math.abs(z)>W)&&(T.current=null)},onPointerUp:N=>{r.onPointerUp==null||r.onPointerUp.call(r,N),T.current=null,O.current=!1,l(N)},onPointerOut:N=>{r.onPointerOut==null||r.onPointerOut.call(r,N),M(k.current)},onContextMenu:N=>{r.onContextMenu==null||r.onContextMenu.call(r,N),k.current&&M(k.current)}})});Dv.displayName="Drawer.Content";const RE=250,_E=120,Av=D.forwardRef(function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:o,isDragging:s,snapPoints:a,activeSnapPoint:l,setActiveSnapPoint:c,dismissible:u,handleOnly:d,isOpen:f,onPress:h,onDrag:m}=_o(),x=D.useRef(null),w=D.useRef(!1);function S(){if(w.current){v();return}window.setTimeout(()=>{g()},_E)}function g(){if(s||e||w.current){v();return}if(v(),!a||a.length===0){u||o();return}if(l===a[a.length-1]&&u){o();return}const C=a.findIndex(T=>T===l);if(C===-1)return;const P=a[C+1];c(P)}function p(){x.current=window.setTimeout(()=>{w.current=!0},RE)}function v(){x.current&&window.clearTimeout(x.current),w.current=!1}return D.createElement("div",{onClick:S,onPointerCancel:v,onPointerDown:E=>{d&&h(E),p()},onPointerMove:E=>{d&&m(E)},ref:r,"data-vaul-drawer-visible":f?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},D.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});Av.displayName="Drawer.Handle";function LE({onDrag:e,onOpenChange:t,...n}){const{onNestedDrag:r,onNestedOpenChange:o,onNestedRelease:s}=_o();if(!r)throw new Error("Drawer.NestedRoot must be placed in another drawer");return D.createElement(Lv,{nested:!0,onClose:()=>{o(!1)},onDrag:(a,l)=>{r(a,l),e==null||e(a,l)},onOpenChange:a=>{a&&o(a)},onRelease:s,...n})}function IE(e){const t=_o(),{container:n=t.container,...r}=e;return D.createElement(Ev,{container:n,...r})}const Jt={Root:Lv,NestedRoot:LE,Content:Dv,Overlay:Iv,Trigger:Sv,Portal:IE,Handle:Av,Close:Cv,Title:Cd,Description:Td};function zv(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{const t=$E(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const l=a.split(kd);return l[0]===""&&l.length!==1&&l.shift(),$v(l,t)||zE(a)},getConflictingClassGroupIds:(a,l)=>{const c=n[a]||[];return l&&r[a]?[...c,...r[a]]:c}}},$v=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?$v(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(kd);return(a=t.validators.find(({validator:l})=>l(s)))==null?void 0:a.classGroupId},Ap=/^\[(.+)\]$/,zE=e=>{if(Ap.test(e)){const t=Ap.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},$E=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return FE(Object.entries(e.classGroups),n).forEach(([s,a])=>{ou(a,r,s,t)}),r},ou=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:zp(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(BE(o)){ou(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,a])=>{ou(a,zp(t,s),n,r)})})},zp=(e,t)=>{let n=e;return t.split(kd).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},BE=e=>e.isThemeGetter,FE=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,l])=>[t+a,l])):s);return[n,o]}):e,VE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,a)=>{n.set(s,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set(s,a){n.has(s)?n.set(s,a):o(s,a)}}},Bv="!",HE=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,a=l=>{const c=[];let u=0,d=0,f;for(let S=0;Sd?f-d:void 0;return{modifiers:c,hasImportantModifier:m,baseClassName:x,maybePostfixModifierPosition:w}};return n?l=>n({className:l,parseClassName:a}):a},WE=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},UE=e=>({cache:VE(e.cacheSize),parseClassName:HE(e),...AE(e)}),GE=/\s+/,YE=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],a=e.trim().split(GE);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{modifiers:d,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:m}=n(u);let x=!!m,w=r(x?h.substring(0,m):h);if(!w){if(!x){l=u+(l.length>0?" "+l:l);continue}if(w=r(h),!w){l=u+(l.length>0?" "+l:l);continue}x=!1}const S=WE(d).join(":"),g=f?S+Bv:S,p=g+w;if(s.includes(p))continue;s.push(p);const v=o(w,x);for(let E=0;E0?" "+l:l)}return l};function KE(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rf(d),e());return n=UE(u),r=n.cache.get,o=n.cache.set,s=l,l(c)}function l(c){const u=r(c);if(u)return u;const d=YE(c,n);return o(c,d),d}return function(){return s(KE.apply(null,arguments))}}const ke=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Vv=/^\[(?:([a-z-]+):)?(.+)\]$/i,qE=/^\d+\/\d+$/,QE=new Set(["px","full","screen"]),ZE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,JE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,eC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,tC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pn=e=>mo(e)||QE.has(e)||qE.test(e),_n=e=>Lo(e,"length",uC),mo=e=>!!e&&!Number.isNaN(Number(e)),Gl=e=>Lo(e,"number",mo),qo=e=>!!e&&Number.isInteger(Number(e)),rC=e=>e.endsWith("%")&&mo(e.slice(0,-1)),fe=e=>Vv.test(e),Ln=e=>ZE.test(e),oC=new Set(["length","size","percentage"]),iC=e=>Lo(e,oC,Hv),sC=e=>Lo(e,"position",Hv),aC=new Set(["image","url"]),lC=e=>Lo(e,aC,fC),cC=e=>Lo(e,"",dC),Qo=()=>!0,Lo=(e,t,n)=>{const r=Vv.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},uC=e=>JE.test(e)&&!eC.test(e),Hv=()=>!1,dC=e=>tC.test(e),fC=e=>nC.test(e),pC=()=>{const e=ke("colors"),t=ke("spacing"),n=ke("blur"),r=ke("brightness"),o=ke("borderColor"),s=ke("borderRadius"),a=ke("borderSpacing"),l=ke("borderWidth"),c=ke("contrast"),u=ke("grayscale"),d=ke("hueRotate"),f=ke("invert"),h=ke("gap"),m=ke("gradientColorStops"),x=ke("gradientColorStopPositions"),w=ke("inset"),S=ke("margin"),g=ke("opacity"),p=ke("padding"),v=ke("saturate"),E=ke("scale"),C=ke("sepia"),P=ke("skew"),T=ke("space"),k=ke("translate"),O=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",fe,t],M=()=>[fe,t],N=()=>["",pn,_n],z=()=>["auto",mo,fe],H=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["solid","dashed","dotted","double","none"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_=()=>["start","end","center","between","around","evenly","stretch"],I=()=>["","0",fe],U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>[mo,fe];return{cacheSize:500,separator:":",theme:{colors:[Qo],spacing:[pn,_n],blur:["none","",Ln,fe],brightness:Z(),borderColor:[e],borderRadius:["none","","full",Ln,fe],borderSpacing:M(),borderWidth:N(),contrast:Z(),grayscale:I(),hueRotate:Z(),invert:I(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[rC,_n],inset:$(),margin:$(),opacity:Z(),padding:M(),saturate:Z(),scale:Z(),sepia:I(),skew:Z(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",fe]}],container:["container"],columns:[{columns:[Ln]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...H(),fe]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",qo,fe]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",fe]}],grow:[{grow:I()}],shrink:[{shrink:I()}],order:[{order:["first","last","none",qo,fe]}],"grid-cols":[{"grid-cols":[Qo]}],"col-start-end":[{col:["auto",{span:["full",qo,fe]},fe]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[Qo]}],"row-start-end":[{row:["auto",{span:[qo,fe]},fe]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",fe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",fe]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",..._()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",..._(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[..._(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[S]}],mx:[{mx:[S]}],my:[{my:[S]}],ms:[{ms:[S]}],me:[{me:[S]}],mt:[{mt:[S]}],mr:[{mr:[S]}],mb:[{mb:[S]}],ml:[{ml:[S]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",fe,t]}],"min-w":[{"min-w":[fe,t,"min","max","fit"]}],"max-w":[{"max-w":[fe,t,"none","full","min","max","fit","prose",{screen:[Ln]},Ln]}],h:[{h:[fe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[fe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[fe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[fe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ln,_n]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Gl]}],"font-family":[{font:[Qo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",fe]}],"line-clamp":[{"line-clamp":["none",mo,Gl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",pn,fe]}],"list-image":[{"list-image":["none",fe]}],"list-style-type":[{list:["none","disc","decimal",fe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",pn,_n]}],"underline-offset":[{"underline-offset":["auto",pn,fe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",fe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...H(),sC]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",iC]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},lC]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...W(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:W()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...W()]}],"outline-offset":[{"outline-offset":[pn,fe]}],"outline-w":[{outline:[pn,_n]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[pn,_n]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ln,cC]}],"shadow-color":[{shadow:[Qo]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...K(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Ln,fe]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[v]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",fe]}],duration:[{duration:Z()}],ease:[{ease:["linear","in","out","in-out",fe]}],delay:[{delay:Z()}],animate:[{animate:["none","spin","ping","pulse","bounce",fe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[qo,fe]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",fe]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",fe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",fe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[pn,_n,Gl]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},mC=XE(pC);function Ee(...e){return mC(DE(e))}const Nd=({shouldScaleBackground:e=!0,...t})=>y.jsx(Jt.Root,{shouldScaleBackground:e,...t});Nd.displayName="Drawer";const Wv=Jt.Trigger,hC=Jt.Portal,Uv=Jt.Close,Gv=b.forwardRef(({className:e,...t},n)=>y.jsx(Jt.Overlay,{ref:n,className:Ee("fixed inset-0 z-50 bg-black/80",e),...t}));Gv.displayName=Jt.Overlay.displayName;const Od=b.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(hC,{children:[y.jsx(Gv,{}),y.jsxs(Jt.Content,{ref:r,className:Ee("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border backdrop-blur-lg bg-black/50",e),...n,children:[y.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));Od.displayName="DrawerContent";const jd=({className:e,...t})=>y.jsx("div",{className:Ee("grid gap-1.5 p-4 text-center sm:text-left",e),...t});jd.displayName="DrawerHeader";const Yv=({className:e,...t})=>y.jsx("div",{className:Ee("mt-auto flex flex-col gap-2 p-4",e),...t});Yv.displayName="DrawerFooter";const Md=b.forwardRef(({className:e,...t},n)=>y.jsx(Jt.Title,{ref:n,className:Ee("text-lg font-semibold leading-none tracking-tight",e),...t}));Md.displayName=Jt.Title.displayName;const Rd=b.forwardRef(({className:e,...t},n)=>y.jsx(Jt.Description,{ref:n,className:Ee("text-sm text-muted-foreground",e),...t}));Rd.displayName=Jt.Description.displayName;function _d(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(o=>{if(!n[o]&&n.auto===!0){let s=sn(e.el,`.${r[o]}`)[0];s||(s=Ri("div",r[o]),s.className=r[o],e.el.append(s)),n[o]=s,t[o]=s}}),n}function Kv(e){let{swiper:t,extendParams:n,on:r,emit:o}=e;n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null};function s(x){let w;return x&&typeof x=="string"&&t.isElement&&(w=t.el.querySelector(x)||t.hostEl.querySelector(x),w)?w:(x&&(typeof x=="string"&&(w=[...document.querySelectorAll(x)]),t.params.uniqueNavElements&&typeof x=="string"&&w&&w.length>1&&t.el.querySelectorAll(x).length===1?w=t.el.querySelector(x):w&&w.length===1&&(w=w[0])),x&&!w?x:w)}function a(x,w){const S=t.params.navigation;x=Ye(x),x.forEach(g=>{g&&(g.classList[w?"add":"remove"](...S.disabledClass.split(" ")),g.tagName==="BUTTON"&&(g.disabled=w),t.params.watchOverflow&&t.enabled&&g.classList[t.isLocked?"add":"remove"](S.lockClass))})}function l(){const{nextEl:x,prevEl:w}=t.navigation;if(t.params.loop){a(w,!1),a(x,!1);return}a(w,t.isBeginning&&!t.params.rewind),a(x,t.isEnd&&!t.params.rewind)}function c(x){x.preventDefault(),!(t.isBeginning&&!t.params.loop&&!t.params.rewind)&&(t.slidePrev(),o("navigationPrev"))}function u(x){x.preventDefault(),!(t.isEnd&&!t.params.loop&&!t.params.rewind)&&(t.slideNext(),o("navigationNext"))}function d(){const x=t.params.navigation;if(t.params.navigation=_d(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(x.nextEl||x.prevEl))return;let w=s(x.nextEl),S=s(x.prevEl);Object.assign(t.navigation,{nextEl:w,prevEl:S}),w=Ye(w),S=Ye(S);const g=(p,v)=>{p&&p.addEventListener("click",v==="next"?u:c),!t.enabled&&p&&p.classList.add(...x.lockClass.split(" "))};w.forEach(p=>g(p,"next")),S.forEach(p=>g(p,"prev"))}function f(){let{nextEl:x,prevEl:w}=t.navigation;x=Ye(x),w=Ye(w);const S=(g,p)=>{g.removeEventListener("click",p==="next"?u:c),g.classList.remove(...t.params.navigation.disabledClass.split(" "))};x.forEach(g=>S(g,"next")),w.forEach(g=>S(g,"prev"))}r("init",()=>{t.params.navigation.enabled===!1?m():(d(),l())}),r("toEdge fromEdge lock unlock",()=>{l()}),r("destroy",()=>{f()}),r("enable disable",()=>{let{nextEl:x,prevEl:w}=t.navigation;if(x=Ye(x),w=Ye(w),t.enabled){l();return}[...x,...w].filter(S=>!!S).forEach(S=>S.classList.add(t.params.navigation.lockClass))}),r("click",(x,w)=>{let{nextEl:S,prevEl:g}=t.navigation;S=Ye(S),g=Ye(g);const p=w.target;let v=g.includes(p)||S.includes(p);if(t.isElement&&!v){const E=w.path||w.composedPath&&w.composedPath();E&&(v=E.find(C=>S.includes(C)||g.includes(C)))}if(t.params.navigation.hideOnClick&&!v){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===p||t.pagination.el.contains(p)))return;let E;S.length?E=S[0].classList.contains(t.params.navigation.hiddenClass):g.length&&(E=g[0].classList.contains(t.params.navigation.hiddenClass)),o(E===!0?"navigationShow":"navigationHide"),[...S,...g].filter(C=>!!C).forEach(C=>C.classList.toggle(t.params.navigation.hiddenClass))}});const h=()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),d(),l()},m=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),f()};Object.assign(t.navigation,{enable:h,disable:m,update:l,init:d,destroy:f})}function Wr(e){return e===void 0&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Xv(e){let{swiper:t,extendParams:n,on:r,emit:o}=e;const s="swiper-pagination";n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:p=>p,formatFractionTotal:p=>p,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),t.pagination={el:null,bullets:[]};let a,l=0;function c(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function u(p,v){const{bulletActiveClass:E}=t.params.pagination;p&&(p=p[`${v==="prev"?"previous":"next"}ElementSibling`],p&&(p.classList.add(`${E}-${v}`),p=p[`${v==="prev"?"previous":"next"}ElementSibling`],p&&p.classList.add(`${E}-${v}-${v}`)))}function d(p,v,E){if(p=p%E,v=v%E,v===p+1)return"next";if(v===p-1)return"previous"}function f(p){const v=p.target.closest(Wr(t.params.pagination.bulletClass));if(!v)return;p.preventDefault();const E=ha(v)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===E)return;const C=d(t.realIndex,E,t.slides.length);C==="next"?t.slideNext():C==="previous"?t.slidePrev():t.slideToLoop(E)}else t.slideTo(E)}function h(){const p=t.rtl,v=t.params.pagination;if(c())return;let E=t.pagination.el;E=Ye(E);let C,P;const T=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,k=t.params.loop?Math.ceil(T/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(P=t.previousRealIndex||0,C=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):typeof t.snapIndex<"u"?(C=t.snapIndex,P=t.previousSnapIndex):(P=t.previousIndex||0,C=t.activeIndex||0),v.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){const O=t.pagination.bullets;let j,$,M;if(v.dynamicBullets&&(a=Xc(O[0],t.isHorizontal()?"width":"height"),E.forEach(N=>{N.style[t.isHorizontal()?"width":"height"]=`${a*(v.dynamicMainBullets+4)}px`}),v.dynamicMainBullets>1&&P!==void 0&&(l+=C-(P||0),l>v.dynamicMainBullets-1?l=v.dynamicMainBullets-1:l<0&&(l=0)),j=Math.max(C-l,0),$=j+(Math.min(O.length,v.dynamicMainBullets)-1),M=($+j)/2),O.forEach(N=>{const z=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(H=>`${v.bulletActiveClass}${H}`)].map(H=>typeof H=="string"&&H.includes(" ")?H.split(" "):H).flat();N.classList.remove(...z)}),E.length>1)O.forEach(N=>{const z=ha(N);z===C?N.classList.add(...v.bulletActiveClass.split(" ")):t.isElement&&N.setAttribute("part","bullet"),v.dynamicBullets&&(z>=j&&z<=$&&N.classList.add(...`${v.bulletActiveClass}-main`.split(" ")),z===j&&u(N,"prev"),z===$&&u(N,"next"))});else{const N=O[C];if(N&&N.classList.add(...v.bulletActiveClass.split(" ")),t.isElement&&O.forEach((z,H)=>{z.setAttribute("part",H===C?"bullet-active":"bullet")}),v.dynamicBullets){const z=O[j],H=O[$];for(let W=j;W<=$;W+=1)O[W]&&O[W].classList.add(...`${v.bulletActiveClass}-main`.split(" "));u(z,"prev"),u(H,"next")}}if(v.dynamicBullets){const N=Math.min(O.length,v.dynamicMainBullets+4),z=(a*N-a)/2-M*a,H=p?"right":"left";O.forEach(W=>{W.style[t.isHorizontal()?H:"top"]=`${z}px`})}}E.forEach((O,j)=>{if(v.type==="fraction"&&(O.querySelectorAll(Wr(v.currentClass)).forEach($=>{$.textContent=v.formatFractionCurrent(C+1)}),O.querySelectorAll(Wr(v.totalClass)).forEach($=>{$.textContent=v.formatFractionTotal(k)})),v.type==="progressbar"){let $;v.progressbarOpposite?$=t.isHorizontal()?"vertical":"horizontal":$=t.isHorizontal()?"horizontal":"vertical";const M=(C+1)/k;let N=1,z=1;$==="horizontal"?N=M:z=M,O.querySelectorAll(Wr(v.progressbarFillClass)).forEach(H=>{H.style.transform=`translate3d(0,0,0) scaleX(${N}) scaleY(${z})`,H.style.transitionDuration=`${t.params.speed}ms`})}v.type==="custom"&&v.renderCustom?(O.innerHTML=v.renderCustom(t,C+1,k),j===0&&o("paginationRender",O)):(j===0&&o("paginationRender",O),o("paginationUpdate",O)),t.params.watchOverflow&&t.enabled&&O.classList[t.isLocked?"add":"remove"](v.lockClass)})}function m(){const p=t.params.pagination;if(c())return;const v=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let E=t.pagination.el;E=Ye(E);let C="";if(p.type==="bullets"){let P=t.params.loop?Math.ceil(v/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&P>v&&(P=v);for(let T=0;T`}p.type==="fraction"&&(p.renderFraction?C=p.renderFraction.call(t,p.currentClass,p.totalClass):C=` / `),p.type==="progressbar"&&(p.renderProgressbar?C=p.renderProgressbar.call(t,p.progressbarFillClass):C=``),t.pagination.bullets=[],E.forEach(P=>{p.type!=="custom"&&(P.innerHTML=C||""),p.type==="bullets"&&t.pagination.bullets.push(...P.querySelectorAll(Wr(p.bulletClass)))}),p.type!=="custom"&&o("paginationRender",E[0])}function x(){t.params.pagination=_d(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const p=t.params.pagination;if(!p.el)return;let v;typeof p.el=="string"&&t.isElement&&(v=t.el.querySelector(p.el)),!v&&typeof p.el=="string"&&(v=[...document.querySelectorAll(p.el)]),v||(v=p.el),!(!v||v.length===0)&&(t.params.uniqueNavElements&&typeof p.el=="string"&&Array.isArray(v)&&v.length>1&&(v=[...t.el.querySelectorAll(p.el)],v.length>1&&(v=v.filter(E=>Og(E,".swiper")[0]===t.el)[0])),Array.isArray(v)&&v.length===1&&(v=v[0]),Object.assign(t.pagination,{el:v}),v=Ye(v),v.forEach(E=>{p.type==="bullets"&&p.clickable&&E.classList.add(...(p.clickableClass||"").split(" ")),E.classList.add(p.modifierClass+p.type),E.classList.add(t.isHorizontal()?p.horizontalClass:p.verticalClass),p.type==="bullets"&&p.dynamicBullets&&(E.classList.add(`${p.modifierClass}${p.type}-dynamic`),l=0,p.dynamicMainBullets<1&&(p.dynamicMainBullets=1)),p.type==="progressbar"&&p.progressbarOpposite&&E.classList.add(p.progressbarOppositeClass),p.clickable&&E.addEventListener("click",f),t.enabled||E.classList.add(p.lockClass)}))}function w(){const p=t.params.pagination;if(c())return;let v=t.pagination.el;v&&(v=Ye(v),v.forEach(E=>{E.classList.remove(p.hiddenClass),E.classList.remove(p.modifierClass+p.type),E.classList.remove(t.isHorizontal()?p.horizontalClass:p.verticalClass),p.clickable&&(E.classList.remove(...(p.clickableClass||"").split(" ")),E.removeEventListener("click",f))})),t.pagination.bullets&&t.pagination.bullets.forEach(E=>E.classList.remove(...p.bulletActiveClass.split(" ")))}r("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const p=t.params.pagination;let{el:v}=t.pagination;v=Ye(v),v.forEach(E=>{E.classList.remove(p.horizontalClass,p.verticalClass),E.classList.add(t.isHorizontal()?p.horizontalClass:p.verticalClass)})}),r("init",()=>{t.params.pagination.enabled===!1?g():(x(),m(),h())}),r("activeIndexChange",()=>{typeof t.snapIndex>"u"&&h()}),r("snapIndexChange",()=>{h()}),r("snapGridLengthChange",()=>{m(),h()}),r("destroy",()=>{w()}),r("enable disable",()=>{let{el:p}=t.pagination;p&&(p=Ye(p),p.forEach(v=>v.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),r("lock unlock",()=>{h()}),r("click",(p,v)=>{const E=v.target,C=Ye(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&C&&C.length>0&&!E.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&E===t.navigation.nextEl||t.navigation.prevEl&&E===t.navigation.prevEl))return;const P=C[0].classList.contains(t.params.pagination.hiddenClass);o(P===!0?"paginationShow":"paginationHide"),C.forEach(T=>T.classList.toggle(t.params.pagination.hiddenClass))}});const S=()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:p}=t.pagination;p&&(p=Ye(p),p.forEach(v=>v.classList.remove(t.params.pagination.paginationDisabledClass))),x(),m(),h()},g=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:p}=t.pagination;p&&(p=Ye(p),p.forEach(v=>v.classList.add(t.params.pagination.paginationDisabledClass))),w()};Object.assign(t.pagination,{enable:S,disable:g,render:m,update:h,init:x,destroy:w})}function gC(e){let{swiper:t,extendParams:n,on:r,emit:o}=e;const s=Kt();let a=!1,l=null,c=null,u,d,f,h;n({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null};function m(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:M,rtlTranslate:N}=t,{dragEl:z,el:H}=M,W=t.params.scrollbar,K=t.params.loop?t.progressLoop:t.progress;let _=d,I=(f-d)*K;N?(I=-I,I>0?(_=d-I,I=0):-I+d>f&&(_=f+I)):I<0?(_=d+I,I=0):I+d>f&&(_=f-I),t.isHorizontal()?(z.style.transform=`translate3d(${I}px, 0, 0)`,z.style.width=`${_}px`):(z.style.transform=`translate3d(0px, ${I}px, 0)`,z.style.height=`${_}px`),W.hide&&(clearTimeout(l),H.style.opacity=1,l=setTimeout(()=>{H.style.opacity=0,H.style.transitionDuration="400ms"},1e3))}function x(M){!t.params.scrollbar.el||!t.scrollbar.el||(t.scrollbar.dragEl.style.transitionDuration=`${M}ms`)}function w(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:M}=t,{dragEl:N,el:z}=M;N.style.width="",N.style.height="",f=t.isHorizontal()?z.offsetWidth:z.offsetHeight,h=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),t.params.scrollbar.dragSize==="auto"?d=f*h:d=parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?N.style.width=`${d}px`:N.style.height=`${d}px`,h>=1?z.style.display="none":z.style.display="",t.params.scrollbar.hide&&(z.style.opacity=0),t.params.watchOverflow&&t.enabled&&M.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}function S(M){return t.isHorizontal()?M.clientX:M.clientY}function g(M){const{scrollbar:N,rtlTranslate:z}=t,{el:H}=N;let W;W=(S(M)-r2(H)[t.isHorizontal()?"left":"top"]-(u!==null?u:d/2))/(f-d),W=Math.max(Math.min(W,1),0),z&&(W=1-W);const K=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*W;t.updateProgress(K),t.setTranslate(K),t.updateActiveIndex(),t.updateSlidesClasses()}function p(M){const N=t.params.scrollbar,{scrollbar:z,wrapperEl:H}=t,{el:W,dragEl:K}=z;a=!0,u=M.target===K?S(M)-M.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,M.preventDefault(),M.stopPropagation(),H.style.transitionDuration="100ms",K.style.transitionDuration="100ms",g(M),clearTimeout(c),W.style.transitionDuration="0ms",N.hide&&(W.style.opacity=1),t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="none"),o("scrollbarDragStart",M)}function v(M){const{scrollbar:N,wrapperEl:z}=t,{el:H,dragEl:W}=N;a&&(M.preventDefault&&M.cancelable?M.preventDefault():M.returnValue=!1,g(M),z.style.transitionDuration="0ms",H.style.transitionDuration="0ms",W.style.transitionDuration="0ms",o("scrollbarDragMove",M))}function E(M){const N=t.params.scrollbar,{scrollbar:z,wrapperEl:H}=t,{el:W}=z;a&&(a=!1,t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="",H.style.transitionDuration=""),N.hide&&(clearTimeout(c),c=fa(()=>{W.style.opacity=0,W.style.transitionDuration="400ms"},1e3)),o("scrollbarDragEnd",M),N.snapOnRelease&&t.slideToClosest())}function C(M){const{scrollbar:N,params:z}=t,H=N.el;if(!H)return;const W=H,K=z.passiveListeners?{passive:!1,capture:!1}:!1,_=z.passiveListeners?{passive:!0,capture:!1}:!1;if(!W)return;const I=M==="on"?"addEventListener":"removeEventListener";W[I]("pointerdown",p,K),s[I]("pointermove",v,K),s[I]("pointerup",E,_)}function P(){!t.params.scrollbar.el||!t.scrollbar.el||C("on")}function T(){!t.params.scrollbar.el||!t.scrollbar.el||C("off")}function k(){const{scrollbar:M,el:N}=t;t.params.scrollbar=_d(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const z=t.params.scrollbar;if(!z.el)return;let H;if(typeof z.el=="string"&&t.isElement&&(H=t.el.querySelector(z.el)),!H&&typeof z.el=="string"){if(H=s.querySelectorAll(z.el),!H.length)return}else H||(H=z.el);t.params.uniqueNavElements&&typeof z.el=="string"&&H.length>1&&N.querySelectorAll(z.el).length===1&&(H=N.querySelector(z.el)),H.length>0&&(H=H[0]),H.classList.add(t.isHorizontal()?z.horizontalClass:z.verticalClass);let W;H&&(W=H.querySelector(Wr(t.params.scrollbar.dragClass)),W||(W=Ri("div",t.params.scrollbar.dragClass),H.append(W))),Object.assign(M,{el:H,dragEl:W}),z.draggable&&P(),H&&H.classList[t.enabled?"remove":"add"](...Dn(t.params.scrollbar.lockClass))}function O(){const M=t.params.scrollbar,N=t.scrollbar.el;N&&N.classList.remove(...Dn(t.isHorizontal()?M.horizontalClass:M.verticalClass)),T()}r("changeDirection",()=>{if(!t.scrollbar||!t.scrollbar.el)return;const M=t.params.scrollbar;let{el:N}=t.scrollbar;N=Ye(N),N.forEach(z=>{z.classList.remove(M.horizontalClass,M.verticalClass),z.classList.add(t.isHorizontal()?M.horizontalClass:M.verticalClass)})}),r("init",()=>{t.params.scrollbar.enabled===!1?$():(k(),w(),m())}),r("update resize observerUpdate lock unlock changeDirection",()=>{w()}),r("setTranslate",()=>{m()}),r("setTransition",(M,N)=>{x(N)}),r("enable disable",()=>{const{el:M}=t.scrollbar;M&&M.classList[t.enabled?"remove":"add"](...Dn(t.params.scrollbar.lockClass))}),r("destroy",()=>{O()});const j=()=>{t.el.classList.remove(...Dn(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.remove(...Dn(t.params.scrollbar.scrollbarDisabledClass)),k(),w(),m()},$=()=>{t.el.classList.add(...Dn(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.add(...Dn(t.params.scrollbar.scrollbarDisabledClass)),O()};Object.assign(t.scrollbar,{enable:j,disable:$,updateSize:w,setTranslate:m,init:k,destroy:O})}function qv(e){let{swiper:t,extendParams:n,on:r,emit:o,params:s}=e;t.autoplay={running:!1,paused:!1,timeLeft:0},n({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,l,c=s&&s.autoplay?s.autoplay.delay:3e3,u=s&&s.autoplay?s.autoplay.delay:3e3,d,f=new Date().getTime(),h,m,x,w,S,g,p;function v(_){!t||t.destroyed||!t.wrapperEl||_.target===t.wrapperEl&&(t.wrapperEl.removeEventListener("transitionend",v),!(p||_.detail&&_.detail.bySwiperTouchMove)&&j())}const E=()=>{if(t.destroyed||!t.autoplay.running)return;t.autoplay.paused?h=!0:h&&(u=d,h=!1);const _=t.autoplay.paused?d:f+u-new Date().getTime();t.autoplay.timeLeft=_,o("autoplayTimeLeft",_,_/c),l=requestAnimationFrame(()=>{E()})},C=()=>{let _;return t.virtual&&t.params.virtual.enabled?_=t.slides.filter(U=>U.classList.contains("swiper-slide-active"))[0]:_=t.slides[t.activeIndex],_?parseInt(_.getAttribute("data-swiper-autoplay"),10):void 0},P=_=>{if(t.destroyed||!t.autoplay.running)return;cancelAnimationFrame(l),E();let I=typeof _>"u"?t.params.autoplay.delay:_;c=t.params.autoplay.delay,u=t.params.autoplay.delay;const U=C();!Number.isNaN(U)&&U>0&&typeof _>"u"&&(I=U,c=U,u=U),d=I;const Z=t.params.speed,Q=()=>{!t||t.destroyed||(t.params.autoplay.reverseDirection?!t.isBeginning||t.params.loop||t.params.rewind?(t.slidePrev(Z,!0,!0),o("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(t.slides.length-1,Z,!0,!0),o("autoplay")):!t.isEnd||t.params.loop||t.params.rewind?(t.slideNext(Z,!0,!0),o("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(0,Z,!0,!0),o("autoplay")),t.params.cssMode&&(f=new Date().getTime(),requestAnimationFrame(()=>{P()})))};return I>0?(clearTimeout(a),a=setTimeout(()=>{Q()},I)):requestAnimationFrame(()=>{Q()}),I},T=()=>{f=new Date().getTime(),t.autoplay.running=!0,P(),o("autoplayStart")},k=()=>{t.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(l),o("autoplayStop")},O=(_,I)=>{if(t.destroyed||!t.autoplay.running)return;clearTimeout(a),_||(g=!0);const U=()=>{o("autoplayPause"),t.params.autoplay.waitForTransition?t.wrapperEl.addEventListener("transitionend",v):j()};if(t.autoplay.paused=!0,I){S&&(d=t.params.autoplay.delay),S=!1,U();return}d=(d||t.params.autoplay.delay)-(new Date().getTime()-f),!(t.isEnd&&d<0&&!t.params.loop)&&(d<0&&(d=0),U())},j=()=>{t.isEnd&&d<0&&!t.params.loop||t.destroyed||!t.autoplay.running||(f=new Date().getTime(),g?(g=!1,P(d)):P(),t.autoplay.paused=!1,o("autoplayResume"))},$=()=>{if(t.destroyed||!t.autoplay.running)return;const _=Kt();_.visibilityState==="hidden"&&(g=!0,O(!0)),_.visibilityState==="visible"&&j()},M=_=>{_.pointerType==="mouse"&&(g=!0,p=!0,!(t.animating||t.autoplay.paused)&&O(!0))},N=_=>{_.pointerType==="mouse"&&(p=!1,t.autoplay.paused&&j())},z=()=>{t.params.autoplay.pauseOnMouseEnter&&(t.el.addEventListener("pointerenter",M),t.el.addEventListener("pointerleave",N))},H=()=>{t.el&&typeof t.el!="string"&&(t.el.removeEventListener("pointerenter",M),t.el.removeEventListener("pointerleave",N))},W=()=>{Kt().addEventListener("visibilitychange",$)},K=()=>{Kt().removeEventListener("visibilitychange",$)};r("init",()=>{t.params.autoplay.enabled&&(z(),W(),T())}),r("destroy",()=>{H(),K(),t.autoplay.running&&k()}),r("_freeModeStaticRelease",()=>{(x||g)&&j()}),r("_freeModeNoMomentumRelease",()=>{t.params.autoplay.disableOnInteraction?k():O(!0,!0)}),r("beforeTransitionStart",(_,I,U)=>{t.destroyed||!t.autoplay.running||(U||!t.params.autoplay.disableOnInteraction?O(!0,!0):k())}),r("sliderFirstMove",()=>{if(!(t.destroyed||!t.autoplay.running)){if(t.params.autoplay.disableOnInteraction){k();return}m=!0,x=!1,g=!1,w=setTimeout(()=>{g=!0,x=!0,O(!0)},200)}}),r("touchEnd",()=>{if(!(t.destroyed||!t.autoplay.running||!m)){if(clearTimeout(w),clearTimeout(a),t.params.autoplay.disableOnInteraction){x=!1,m=!1;return}x&&t.params.cssMode&&j(),x=!1,m=!1}}),r("slideChange",()=>{t.destroyed||!t.autoplay.running||(S=!0)}),Object.assign(t.autoplay,{start:T,stop:k,pause:O,resume:j})}function vC(e){const{effect:t,swiper:n,on:r,setTranslate:o,setTransition:s,overwriteParams:a,perspective:l,recreateShadows:c,getEffectParams:u}=e;r("beforeInit",()=>{if(n.params.effect!==t)return;n.classNames.push(`${n.params.containerModifierClass}${t}`),l&&l()&&n.classNames.push(`${n.params.containerModifierClass}3d`);const f=a?a():{};Object.assign(n.params,f),Object.assign(n.originalParams,f)}),r("setTranslate",()=>{n.params.effect===t&&o()}),r("setTransition",(f,h)=>{n.params.effect===t&&s(h)}),r("transitionEnd",()=>{if(n.params.effect===t&&c){if(!u||!u().slideShadows)return;n.slides.forEach(f=>{f.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(h=>h.remove())}),c()}});let d;r("virtualUpdate",()=>{n.params.effect===t&&(n.slides.length||(d=!0),requestAnimationFrame(()=>{d&&n.slides&&n.slides.length&&(o(),d=!1)}))})}function yC(e,t){const n=Ng(t);return n!==t&&(n.style.backfaceVisibility="hidden",n.style["-webkit-backface-visibility"]="hidden"),n}function wC(e){let{swiper:t,duration:n,transformElements:r,allSlides:o}=e;const{activeIndex:s}=t,a=l=>l.parentElement?l.parentElement:t.slides.filter(u=>u.shadowRoot&&u.shadowRoot===l.parentNode)[0];if(t.params.virtualTranslate&&n!==0){let l=!1,c;o?c=r:c=r.filter(u=>{const d=u.classList.contains("swiper-slide-transform")?a(u):u;return t.getSlideIndex(d)===s}),c.forEach(u=>{s2(u,()=>{if(l||!t||t.destroyed)return;l=!0,t.animating=!1;const d=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(d)})})}}function xC(e){let{swiper:t,extendParams:n,on:r}=e;n({fadeEffect:{crossFade:!1}}),vC({effect:"fade",swiper:t,on:r,setTranslate:()=>{const{slides:a}=t,l=t.params.fadeEffect;for(let c=0;c{const l=t.slides.map(c=>Ng(c));l.forEach(c=>{c.style.transitionDuration=`${a}ms`}),wC({swiper:t,duration:a,transformElements:l,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})}var bC=e=>{switch(e){case"success":return CC;case"info":return PC;case"warning":return TC;case"error":return kC;default:return null}},SC=Array(12).fill(0),EC=({visible:e,className:t})=>D.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},D.createElement("div",{className:"sonner-spinner"},SC.map((n,r)=>D.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),CC=D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},D.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"})),TC=D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},D.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"})),PC=D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},D.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"})),kC=D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},D.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"})),NC=D.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"},D.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),D.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),OC=()=>{let[e,t]=D.useState(document.hidden);return D.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},iu=1,jC=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let 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;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:iu++,s=this.toasts.find(l=>l.id===o),a=e.dismissible===void 0?!0:e.dismissible;return s?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...e,id:o,title:n}),{...l,...e,id:o,dismissible:a,title:n}):l):this.addToast({title:n,...r,dismissible:a,id:o}),o},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,s,a=r.then(async c=>{if(s=["resolve",c],D.isValidElement(c))o=!1,this.create({id:n,type:"default",message:c});else if(RC(c)&&!c.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${c.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${c.status}`):t.description;this.create({id:n,type:"error",message:u,description:d})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(c):t.success,d=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async c=>{if(s=["reject",c],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(c):t.error,d=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var c;o&&(this.dismiss(n),n=void 0),(c=t.finally)==null||c.call(t)}),l=()=>new Promise((c,u)=>a.then(()=>s[0]==="reject"?u(s[1]):c(s[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||iu++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},St=new jC,MC=(e,t)=>{let n=(t==null?void 0:t.id)||iu++;return St.addToast({title:e,...t,id:n}),n},RC=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",_C=MC,LC=()=>St.toasts,it=Object.assign(_C,{success:St.success,info:St.info,warning:St.warning,error:St.error,custom:St.custom,message:St.message,promise:St.promise,dismiss:St.dismiss,loading:St.loading},{getHistory:LC});function IC(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}IC(`:where(html[dir="ltr"]),:where([data-sonner-toaster][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%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][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%)}:where([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:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([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);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([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 #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([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)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([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;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([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);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-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([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}:where([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}:where([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, 0px));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:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--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-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-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--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, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--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-rich-colors=true][data-sonner-toast][data-type=success],[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],[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],[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],[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:nth-child(1){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)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{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 vs(e){return e.label!==void 0}var DC=3,AC="32px",$p=4e3,zC=356,$C=14,BC=20,FC=200;function VC(...e){return e.filter(Boolean).join(" ")}var HC=e=>{var t,n,r,o,s,a,l,c,u,d,f;let{invert:h,toast:m,unstyled:x,interacting:w,setHeights:S,visibleToasts:g,heights:p,index:v,toasts:E,expanded:C,removeToast:P,defaultRichColors:T,closeButton:k,style:O,cancelButtonStyle:j,actionButtonStyle:$,className:M="",descriptionClassName:N="",duration:z,position:H,gap:W,loadingIcon:K,expandByDefault:_,classNames:I,icons:U,closeButtonAriaLabel:Z="Close toast",pauseWhenPageIsHidden:Q,cn:J}=e,[ee,te]=D.useState(!1),[ae,q]=D.useState(!1),[de,pe]=D.useState(!1),[ue,oe]=D.useState(!1),[ce,ve]=D.useState(!1),[ie,nt]=D.useState(0),[ct,xe]=D.useState(0),Ze=D.useRef(m.duration||z||$p),Ve=D.useRef(null),Ce=D.useRef(null),fr=v===0,en=v+1<=g,He=m.type,zt=m.dismissible!==!1,pr=m.className||"",$o=m.descriptionClassName||"",$t=D.useMemo(()=>p.findIndex(L=>L.toastId===m.id)||0,[p,m.id]),On=D.useMemo(()=>{var L;return(L=m.closeButton)!=null?L:k},[m.closeButton,k]);D.useMemo(()=>m.duration||z||$p,[m.duration,z]);let jn=D.useRef(0),Bt=D.useRef(0),mr=D.useRef(0),ut=D.useRef(null),[Mn,hr]=H.split("-"),zr=D.useMemo(()=>p.reduce((L,G,Y)=>Y>=$t?L:L+G.height,0),[p,$t]),V=OC(),R=m.invert||h,F=He==="loading";Bt.current=D.useMemo(()=>$t*W+zr,[$t,zr]),D.useEffect(()=>{te(!0)},[]),D.useEffect(()=>{let L=Ce.current;if(L){let G=L.getBoundingClientRect().height;return xe(G),S(Y=>[{toastId:m.id,height:G,position:m.position},...Y]),()=>S(Y=>Y.filter(re=>re.toastId!==m.id))}},[S,m.id]),D.useLayoutEffect(()=>{if(!ee)return;let L=Ce.current,G=L.style.height;L.style.height="auto";let Y=L.getBoundingClientRect().height;L.style.height=G,xe(Y),S(re=>re.find(se=>se.toastId===m.id)?re.map(se=>se.toastId===m.id?{...se,height:Y}:se):[{toastId:m.id,height:Y,position:m.position},...re])},[ee,m.title,m.description,S,m.id]);let B=D.useCallback(()=>{q(!0),nt(Bt.current),S(L=>L.filter(G=>G.toastId!==m.id)),setTimeout(()=>{P(m)},FC)},[m,P,S,Bt]);D.useEffect(()=>{if(m.promise&&He==="loading"||m.duration===1/0||m.type==="loading")return;let L;return C||w||Q&&V?(()=>{if(mr.current{var G;(G=m.onAutoClose)==null||G.call(m,m),B()},Ze.current)),()=>clearTimeout(L)},[C,w,m,He,Q,V,B]),D.useEffect(()=>{m.delete&&B()},[B,m.delete]);function A(){var L,G,Y;return U!=null&&U.loading?D.createElement("div",{className:J(I==null?void 0:I.loader,(L=m==null?void 0:m.classNames)==null?void 0:L.loader,"sonner-loader"),"data-visible":He==="loading"},U.loading):K?D.createElement("div",{className:J(I==null?void 0:I.loader,(G=m==null?void 0:m.classNames)==null?void 0:G.loader,"sonner-loader"),"data-visible":He==="loading"},K):D.createElement(EC,{className:J(I==null?void 0:I.loader,(Y=m==null?void 0:m.classNames)==null?void 0:Y.loader),visible:He==="loading"})}return D.createElement("li",{tabIndex:0,ref:Ce,className:J(M,pr,I==null?void 0:I.toast,(t=m==null?void 0:m.classNames)==null?void 0:t.toast,I==null?void 0:I.default,I==null?void 0:I[He],(n=m==null?void 0:m.classNames)==null?void 0:n[He]),"data-sonner-toast":"","data-rich-colors":(r=m.richColors)!=null?r:T,"data-styled":!(m.jsx||m.unstyled||x),"data-mounted":ee,"data-promise":!!m.promise,"data-swiped":ce,"data-removed":ae,"data-visible":en,"data-y-position":Mn,"data-x-position":hr,"data-index":v,"data-front":fr,"data-swiping":de,"data-dismissible":zt,"data-type":He,"data-invert":R,"data-swipe-out":ue,"data-expanded":!!(C||_&&ee),style:{"--index":v,"--toasts-before":v,"--z-index":E.length-v,"--offset":`${ae?ie:Bt.current}px`,"--initial-height":_?"auto":`${ct}px`,...O,...m.style},onPointerDown:L=>{F||!zt||(Ve.current=new Date,nt(Bt.current),L.target.setPointerCapture(L.pointerId),L.target.tagName!=="BUTTON"&&(pe(!0),ut.current={x:L.clientX,y:L.clientY}))},onPointerUp:()=>{var L,G,Y,re;if(ue||!zt)return;ut.current=null;let se=Number(((L=Ce.current)==null?void 0:L.style.getPropertyValue("--swipe-amount").replace("px",""))||0),ge=new Date().getTime()-((G=Ve.current)==null?void 0:G.getTime()),me=Math.abs(se)/ge;if(Math.abs(se)>=BC||me>.11){nt(Bt.current),(Y=m.onDismiss)==null||Y.call(m,m),B(),oe(!0),ve(!1);return}(re=Ce.current)==null||re.style.setProperty("--swipe-amount","0px"),pe(!1)},onPointerMove:L=>{var G,Y,re;if(!ut.current||!zt)return;let se=L.clientY-ut.current.y,ge=((G=window.getSelection())==null?void 0:G.toString().length)>0;Number(((Y=Ce.current)==null?void 0:Y.style.getPropertyValue("--swipe-amount").replace("px",""))||0)>0&&ve(!0),!ge&&((re=Ce.current)==null||re.style.setProperty("--swipe-amount",`${Math.max(0,se)}px`))}},On&&!m.jsx?D.createElement("button",{"aria-label":Z,"data-disabled":F,"data-close-button":!0,onClick:F||!zt?()=>{}:()=>{var L;B(),(L=m.onDismiss)==null||L.call(m,m)},className:J(I==null?void 0:I.closeButton,(o=m==null?void 0:m.classNames)==null?void 0:o.closeButton)},(s=U==null?void 0:U.close)!=null?s:NC):null,m.jsx||D.isValidElement(m.title)?m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title:D.createElement(D.Fragment,null,He||m.icon||m.promise?D.createElement("div",{"data-icon":"",className:J(I==null?void 0:I.icon,(a=m==null?void 0:m.classNames)==null?void 0:a.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||A():null,m.type!=="loading"?m.icon||(U==null?void 0:U[He])||bC(He):null):null,D.createElement("div",{"data-content":"",className:J(I==null?void 0:I.content,(l=m==null?void 0:m.classNames)==null?void 0:l.content)},D.createElement("div",{"data-title":"",className:J(I==null?void 0:I.title,(c=m==null?void 0:m.classNames)==null?void 0:c.title)},typeof m.title=="function"?m.title():m.title),m.description?D.createElement("div",{"data-description":"",className:J(N,$o,I==null?void 0:I.description,(u=m==null?void 0:m.classNames)==null?void 0:u.description)},typeof m.description=="function"?m.description():m.description):null),D.isValidElement(m.cancel)?m.cancel:m.cancel&&vs(m.cancel)?D.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||j,onClick:L=>{var G,Y;vs(m.cancel)&&zt&&((Y=(G=m.cancel).onClick)==null||Y.call(G,L),B())},className:J(I==null?void 0:I.cancelButton,(d=m==null?void 0:m.classNames)==null?void 0:d.cancelButton)},m.cancel.label):null,D.isValidElement(m.action)?m.action:m.action&&vs(m.action)?D.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||$,onClick:L=>{var G,Y;vs(m.action)&&((Y=(G=m.action).onClick)==null||Y.call(G,L),!L.defaultPrevented&&B())},className:J(I==null?void 0:I.actionButton,(f=m==null?void 0:m.classNames)==null?void 0:f.actionButton)},m.action.label):null))};function Bp(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var WC=b.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:a,className:l,offset:c,theme:u="light",richColors:d,duration:f,style:h,visibleToasts:m=DC,toastOptions:x,dir:w=Bp(),gap:S=$C,loadingIcon:g,icons:p,containerAriaLabel:v="Notifications",pauseWhenPageIsHidden:E,cn:C=VC}=e,[P,T]=D.useState([]),k=D.useMemo(()=>Array.from(new Set([r].concat(P.filter(Q=>Q.position).map(Q=>Q.position)))),[P,r]),[O,j]=D.useState([]),[$,M]=D.useState(!1),[N,z]=D.useState(!1),[H,W]=D.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),K=D.useRef(null),_=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),I=D.useRef(null),U=D.useRef(!1),Z=D.useCallback(Q=>{T(J=>{var ee;return(ee=J.find(te=>te.id===Q.id))!=null&&ee.delete||St.dismiss(Q.id),J.filter(({id:te})=>te!==Q.id)})},[]);return D.useEffect(()=>St.subscribe(Q=>{if(Q.dismiss){T(J=>J.map(ee=>ee.id===Q.id?{...ee,delete:!0}:ee));return}setTimeout(()=>{pg.flushSync(()=>{T(J=>{let ee=J.findIndex(te=>te.id===Q.id);return ee!==-1?[...J.slice(0,ee),{...J[ee],...Q},...J.slice(ee+1)]:[Q,...J]})})})}),[]),D.useEffect(()=>{if(u!=="system"){W(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?W("dark"):W("light")),typeof window>"u")return;let Q=window.matchMedia("(prefers-color-scheme: dark)");try{Q.addEventListener("change",({matches:J})=>{W(J?"dark":"light")})}catch{Q.addListener(({matches:ee})=>{try{W(ee?"dark":"light")}catch(te){console.error(te)}})}},[u]),D.useEffect(()=>{P.length<=1&&M(!1)},[P]),D.useEffect(()=>{let Q=J=>{var ee,te;o.every(ae=>J[ae]||J.code===ae)&&(M(!0),(ee=K.current)==null||ee.focus()),J.code==="Escape"&&(document.activeElement===K.current||(te=K.current)!=null&&te.contains(document.activeElement))&&M(!1)};return document.addEventListener("keydown",Q),()=>document.removeEventListener("keydown",Q)},[o]),D.useEffect(()=>{if(K.current)return()=>{I.current&&(I.current.focus({preventScroll:!0}),I.current=null,U.current=!1)}},[K.current]),D.createElement("section",{"aria-label":`${v} ${_}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false"},k.map((Q,J)=>{var ee;let[te,ae]=Q.split("-");return P.length?D.createElement("ol",{key:Q,dir:w==="auto"?Bp():w,tabIndex:-1,ref:K,className:l,"data-sonner-toaster":!0,"data-theme":H,"data-y-position":te,"data-lifted":$&&P.length>1&&!s,"data-x-position":ae,style:{"--front-toast-height":`${((ee=O[0])==null?void 0:ee.height)||0}px`,"--offset":typeof c=="number"?`${c}px`:c||AC,"--width":`${zC}px`,"--gap":`${S}px`,...h},onBlur:q=>{U.current&&!q.currentTarget.contains(q.relatedTarget)&&(U.current=!1,I.current&&(I.current.focus({preventScroll:!0}),I.current=null))},onFocus:q=>{q.target instanceof HTMLElement&&q.target.dataset.dismissible==="false"||U.current||(U.current=!0,I.current=q.relatedTarget)},onMouseEnter:()=>M(!0),onMouseMove:()=>M(!0),onMouseLeave:()=>{N||M(!1)},onPointerDown:q=>{q.target instanceof HTMLElement&&q.target.dataset.dismissible==="false"||z(!0)},onPointerUp:()=>z(!1)},P.filter(q=>!q.position&&J===0||q.position===Q).map((q,de)=>{var pe,ue;return D.createElement(HC,{key:q.id,icons:p,index:de,toast:q,defaultRichColors:d,duration:(pe=x==null?void 0:x.duration)!=null?pe:f,className:x==null?void 0:x.className,descriptionClassName:x==null?void 0:x.descriptionClassName,invert:n,visibleToasts:m,closeButton:(ue=x==null?void 0:x.closeButton)!=null?ue:a,interacting:N,position:Q,style:x==null?void 0:x.style,unstyled:x==null?void 0:x.unstyled,classNames:x==null?void 0:x.classNames,cancelButtonStyle:x==null?void 0:x.cancelButtonStyle,actionButtonStyle:x==null?void 0:x.actionButtonStyle,removeToast:Z,toasts:P.filter(oe=>oe.position==q.position),heights:O.filter(oe=>oe.position==q.position),setHeights:j,expandByDefault:s,gap:S,loadingIcon:g,expanded:$,pauseWhenPageIsHidden:E,cn:C})})):null}))});const UC=()=>{const[e,t]=b.useState([]),[n,r]=b.useState(null),[o,s]=b.useState(!1),a="4c1eef5a8d388386187a3426bc2345be",l=`https://api.themoviedb.org/3/movie/now_playing?api_key=${a}&language=en-US&page=1®ion=IN`,c=jo(),u=f=>{c(`/movie/${f}`)};b.useEffect(()=>{(async()=>{try{const m=await(await fetch(l)).json();t(m.results)}catch(h){console.error("Error fetching movie data:",h)}})()},[l]);const d=async f=>{try{const x=(await(await fetch(`https://api.themoviedb.org/3/movie/${f}/videos?api_key=${a}`)).json()).results.find(w=>w.type==="Trailer");x?(r(x.key),s(!0)):it("Trailer Not found",{type:"warning"})}catch(h){console.error("Error fetching trailer:",h)}};return y.jsxs("section",{className:"relative ",children:[y.jsx(Mo,{pagination:{dynamicBullets:!0,clickable:!0,renderBullet:function(f,h){return``}},autoplay:{delay:5e3,disableOnInteraction:!0},slidesPerView:1,className:"mySwiper",effect:"fade",modules:[Xv,xC,qv],children:e.map((f,h)=>f.backdrop_path?y.jsx(Ro,{className:"relative",children:y.jsxs("div",{className:"relative w-full h-[50vh] sm:h-[70vh] md:h-[80vh] lg:h-[90vh] rounded-b-lg overflow-hidden",children:[y.jsx("div",{className:"absolute inset-0 gr"}),y.jsx("img",{className:"w-full h-full object-cover ",src:`https://image.tmdb.org/t/p/original/${f.backdrop_path}`,alt:f.title}),y.jsxs("div",{className:"absolute z-50 top-3/4 left-4 sm:left-6 md:left-8 lg:left-12 transform -translate-y-1/2 ",children:[y.jsxs("div",{children:[y.jsxs("p",{className:"text-xs",children:[f.original_language.toUpperCase()," |"," ",f.release_date.split("-")[0]," |"," ",f.original_title]}),y.jsx("h1",{className:"title text-3xl text-white lg:text-6xl font-bold",children:f.title}),y.jsx("p",{className:"w-full text-sm text-gray-400 mt-1 sm:mt-2 lg:w-1/2 truncate-lines",children:f.overview})]}),y.jsxs("div",{className:"mt-4 sm:mt-6 md:mt-5 flex gap-2 ",children:[y.jsxs("button",{onClick:()=>d(f.id),className:"bg-gradient-to-r from-cyan-500 to-blue-500 flex items-center gap-1 px-3 py-2 rounded-sm",children:[y.jsx(Hg,{})," ",y.jsx("span",{className:"hidden sm:inline",children:"Watch Trailer"})]}),y.jsx("button",{onClick:()=>u(f.id),className:"backdrop-blur-lg bg-black/10 flex items-center gap-1 border border-white px-3 py-2 rounded-sm hover:bg-white hover:text-black transition",children:y.jsx("span",{className:"",children:"More"})})]})]})]})},h):null)}),y.jsxs(Nd,{open:o,onOpenChange:s,children:[y.jsx(Wv,{}),y.jsxs(Od,{children:[y.jsxs(jd,{children:[y.jsx(Md,{children:"Trailer"}),y.jsx(Uv,{})]}),y.jsx(Rd,{children:n&&y.jsx("iframe",{width:"100%",height:"315",src:`https://www.youtube.com/embed/${n}?autoplay=1`,title:"YouTube video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})]})]})]})};function GC({className:e,...t}){return y.jsx("div",{className:Ee("animate-pulse rounded-md bg-primary/10",e),...t})}function YC({numbers:e}){return y.jsx(Mo,{spaceBetween:10,slidesPerView:5,breakpoints:{320:{slidesPerView:3},640:{slidesPerView:4},768:{slidesPerView:5},1024:{slidesPerView:6}},children:Array.from({length:6}).map((t,n)=>y.jsx(Ro,{children:y.jsx(GC,{style:{aspectRatio:"9/16"},className:" rounded-md p-2 max-w-xs sm:max-w-sm md:max-w-md lg:max-w-lg "})},n))})}var Qv={exports:{}};(()=>{var e={181:(o,s,a)=>{var l=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,d=/^0o[0-7]+$/i,f=parseInt,h=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,m=typeof self=="object"&&self&&self.Object===Object&&self,x=h||m||Function("return this")(),w=Object.prototype.toString,S=Math.max,g=Math.min,p=function(){return x.Date.now()};function v(C){var P=typeof C;return!!C&&(P=="object"||P=="function")}function E(C){if(typeof C=="number")return C;if(function(k){return typeof k=="symbol"||function(O){return!!O&&typeof O=="object"}(k)&&w.call(k)=="[object Symbol]"}(C))return NaN;if(v(C)){var P=typeof C.valueOf=="function"?C.valueOf():C;C=v(P)?P+"":P}if(typeof C!="string")return C===0?C:+C;C=C.replace(l,"");var T=u.test(C);return T||d.test(C)?f(C.slice(2),T?2:8):c.test(C)?NaN:+C}o.exports=function(C,P,T){var k,O,j,$,M,N,z=0,H=!1,W=!1,K=!0;if(typeof C!="function")throw new TypeError("Expected a function");function _(J){var ee=k,te=O;return k=O=void 0,z=J,$=C.apply(te,ee)}function I(J){var ee=J-N;return N===void 0||ee>=P||ee<0||W&&J-z>=j}function U(){var J=p();if(I(J))return Z(J);M=setTimeout(U,function(ee){var te=P-(ee-N);return W?g(te,j-(ee-z)):te}(J))}function Z(J){return M=void 0,K&&k?_(J):(k=O=void 0,$)}function Q(){var J=p(),ee=I(J);if(k=arguments,O=this,N=J,ee){if(M===void 0)return function(te){return z=te,M=setTimeout(U,P),H?_(te):$}(N);if(W)return M=setTimeout(U,P),_(N)}return M===void 0&&(M=setTimeout(U,P)),$}return P=E(P)||0,v(T)&&(H=!!T.leading,j=(W="maxWait"in T)?S(E(T.maxWait)||0,P):j,K="trailing"in T?!!T.trailing:K),Q.cancel=function(){M!==void 0&&clearTimeout(M),z=0,k=N=O=M=void 0},Q.flush=function(){return M===void 0?$:Z(p())},Q}},858:(o,s,a)=>{var l="Expected a function",c=NaN,u="[object Symbol]",d=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,m=/^0o[0-7]+$/i,x=parseInt,w=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,S=typeof self=="object"&&self&&self.Object===Object&&self,g=w||S||Function("return this")(),p=Object.prototype.toString,v=Math.max,E=Math.min,C=function(){return g.Date.now()};function P(k){var O=typeof k;return!!k&&(O=="object"||O=="function")}function T(k){if(typeof k=="number")return k;if(function($){return typeof $=="symbol"||function(M){return!!M&&typeof M=="object"}($)&&p.call($)==u}(k))return c;if(P(k)){var O=typeof k.valueOf=="function"?k.valueOf():k;k=P(O)?O+"":O}if(typeof k!="string")return k===0?k:+k;k=k.replace(d,"");var j=h.test(k);return j||m.test(k)?x(k.slice(2),j?2:8):f.test(k)?c:+k}o.exports=function(k,O,j){var $=!0,M=!0;if(typeof k!="function")throw new TypeError(l);return P(j)&&($="leading"in j?!!j.leading:$,M="trailing"in j?!!j.trailing:M),function(N,z,H){var W,K,_,I,U,Z,Q=0,J=!1,ee=!1,te=!0;if(typeof N!="function")throw new TypeError(l);function ae(oe){var ce=W,ve=K;return W=K=void 0,Q=oe,I=N.apply(ve,ce)}function q(oe){var ce=oe-Z;return Z===void 0||ce>=z||ce<0||ee&&oe-Q>=_}function de(){var oe=C();if(q(oe))return pe(oe);U=setTimeout(de,function(ce){var ve=z-(ce-Z);return ee?E(ve,_-(ce-Q)):ve}(oe))}function pe(oe){return U=void 0,te&&W?ae(oe):(W=K=void 0,I)}function ue(){var oe=C(),ce=q(oe);if(W=arguments,K=this,Z=oe,ce){if(U===void 0)return function(ve){return Q=ve,U=setTimeout(de,z),J?ae(ve):I}(Z);if(ee)return U=setTimeout(de,z),ae(Z)}return U===void 0&&(U=setTimeout(de,z)),I}return z=T(z)||0,P(H)&&(J=!!H.leading,_=(ee="maxWait"in H)?v(T(H.maxWait)||0,z):_,te="trailing"in H?!!H.trailing:te),ue.cancel=function(){U!==void 0&&clearTimeout(U),Q=0,W=Z=K=U=void 0},ue.flush=function(){return U===void 0?I:pe(C())},ue}(k,O,{leading:$,maxWait:O,trailing:M})}},694:(o,s,a)=>{var l=a(925);function c(){}function u(){}u.resetWarningCache=c,o.exports=function(){function d(m,x,w,S,g,p){if(p!==l){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}function f(){return d}d.isRequired=d;var h={array:d,bigint:d,bool:d,func:d,number:d,object:d,string:d,symbol:d,any:d,arrayOf:f,element:d,elementType:d,instanceOf:f,node:d,objectOf:f,oneOf:f,oneOfType:f,shape:f,exact:f,checkPropTypes:u,resetWarningCache:c};return h.PropTypes=h,h}},556:(o,s,a)=>{o.exports=a(694)()},925:o=>{o.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function n(o){var s=t[o];if(s!==void 0)return s.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,n),a.exports}n.n=o=>{var s=o&&o.__esModule?()=>o.default:()=>o;return n.d(s,{a:s}),s},n.d=(o,s)=>{for(var a in s)n.o(s,a)&&!n.o(o,a)&&Object.defineProperty(o,a,{enumerable:!0,get:s[a]})},n.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),n.o=(o,s)=>Object.prototype.hasOwnProperty.call(o,s),n.r=o=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var r={};(()=>{n.r(r),n.d(r,{LazyLoadComponent:()=>fr,LazyLoadImage:()=>zr,trackWindowScroll:()=>J});const o=b;var s=n.n(o),a=n(556);function l(){return typeof window<"u"&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function c(V){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},c(V)}function u(V,R){var F=Object.keys(V);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(V);R&&(B=B.filter(function(A){return Object.getOwnPropertyDescriptor(V,A).enumerable})),F.push.apply(F,B)}return F}function d(V,R,F){return(R=h(R))in V?Object.defineProperty(V,R,{value:F,enumerable:!0,configurable:!0,writable:!0}):V[R]=F,V}function f(V,R){for(var F=0;F0&&arguments[0]!==void 0?arguments[0]:this.props.scrollPosition,L=this.placeholder.getBoundingClientRect(),G=this.placeholder.style,Y=parseInt(G.getPropertyValue("margin-left"),10)||0,re=parseInt(G.getPropertyValue("margin-top"),10)||0;return{bottom:A.y+L.bottom+re,left:A.x+L.left+Y,right:A.x+L.right+Y,top:A.y+L.top+re}}},{key:"isPlaceholderInViewport",value:function(){if(typeof window>"u"||!this.placeholder)return!1;var A=this.props,L=A.scrollPosition,G=A.threshold,Y=this.getPlaceholderBoundingBox(L),re=L.y+window.innerHeight,se=L.x,ge=L.x+window.innerWidth,me=L.y;return me-G<=Y.bottom&&re+G>=Y.top&&se-G<=Y.right&&ge+G>=Y.left}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var A=this,L=this.props,G=L.className,Y=L.height,re=L.placeholder,se=L.style,ge=L.width;if(re&&typeof re.type!="function")return s().cloneElement(re,{ref:function(ye){return A.placeholder=ye}});var me=function(ye){for(var Te=1;Te"u"?0:window.scrollX||window.pageXOffset},Q=function(){return typeof window>"u"?0:window.scrollY||window.pageYOffset};const J=function(V){var R=function(F){function B(G){var Y;if(function(se,ge){if(!(se instanceof ge))throw new TypeError("Cannot call a class as a function")}(this,B),(Y=W(this,B,[G])).useIntersectionObserver=G.useIntersectionObserver&&l(),Y.useIntersectionObserver)return K(Y);var re=Y.onChangeScroll.bind(Y);return G.delayMethod==="debounce"?Y.delayedScroll=P()(re,G.delayTime):G.delayMethod==="throttle"&&(Y.delayedScroll=k()(re,G.delayTime)),Y.state={scrollPosition:{x:Z(),y:Q()}},Y.baseComponentRef=s().createRef(),Y}return function(G,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Super expression must either be null or a function");G.prototype=Object.create(Y&&Y.prototype,{constructor:{value:G,writable:!0,configurable:!0}}),Object.defineProperty(G,"prototype",{writable:!1}),Y&&U(G,Y)}(B,F),A=B,L=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){typeof window>"u"||this.useIntersectionObserver||j(this.baseComponentRef.current)!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement=j(this.baseComponentRef.current),this.scrollElement.addEventListener("scroll",this.delayedScroll,{passive:!0}),window.addEventListener("resize",this.delayedScroll,{passive:!0}),this.scrollElement!==window&&window.addEventListener("scroll",this.delayedScroll,{passive:!0}))}},{key:"removeListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement.removeEventListener("scroll",this.delayedScroll),window.removeEventListener("resize",this.delayedScroll),this.scrollElement!==window&&window.removeEventListener("scroll",this.delayedScroll))}},{key:"onChangeScroll",value:function(){this.useIntersectionObserver||this.setState({scrollPosition:{x:Z(),y:Q()}})}},{key:"render",value:function(){var G=this.props,Y=(G.delayMethod,G.delayTime,function(se,ge){if(se==null)return{};var me,ye,Te=function(Ae,$r){if(Ae==null)return{};var Kd={};for(var Wi in Ae)if({}.hasOwnProperty.call(Ae,Wi)){if($r.indexOf(Wi)>=0)continue;Kd[Wi]=Ae[Wi]}return Kd}(se,ge);if(Object.getOwnPropertySymbols){var be=Object.getOwnPropertySymbols(se);for(ye=0;ye=0||{}.propertyIsEnumerable.call(se,me)&&(Te[me]=se[me])}return Te}(G,M)),re=this.useIntersectionObserver?null:this.state.scrollPosition;return s().createElement(V,N({forwardRef:this.baseComponentRef,scrollPosition:re},Y))}}],L&&z(A.prototype,L),Object.defineProperty(A,"prototype",{writable:!1}),A;var A,L}(s().Component);return R.propTypes={delayMethod:a.PropTypes.oneOf(["debounce","throttle"]),delayTime:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool},R.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},R};function ee(V){return ee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},ee(V)}function te(V,R){for(var F=0;F=0&&Number.isFinite(re.y)&&re.y>=0),L}return function(A,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(L&&L.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),L&&Ve(A,L)}(R,V),F=R,(B=[{key:"componentDidUpdate",value:function(A,L){L.visible!==this.state.visible&&this.props.afterLoad()}},{key:"onVisible",value:function(){this.props.beforeLoad(),this.setState({visible:!0})}},{key:"render",value:function(){if(this.state.visible)return this.props.children;var A=this.props,L=A.className,G=A.delayMethod,Y=A.delayTime,re=A.height,se=A.placeholder,ge=A.scrollPosition,me=A.style,ye=A.threshold,Te=A.useIntersectionObserver,be=A.width;return this.isScrollTracked||Te&&l()?s().createElement(E,{className:L,height:re,onVisible:this.onVisible,placeholder:se,scrollPosition:ge,style:me,threshold:ye,useIntersectionObserver:Te,width:be}):s().createElement(ce,{className:L,delayMethod:G,delayTime:Y,height:re,onVisible:this.onVisible,placeholder:se,style:me,threshold:ye,width:be})}}])&&ie(F.prototype,B),Object.defineProperty(F,"prototype",{writable:!1}),F;var F,B}(s().Component);Ce.propTypes={afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool},Ce.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};const fr=Ce;function en(V){return en=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},en(V)}var He=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function zt(V,R){var F=Object.keys(V);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(V);R&&(B=B.filter(function(A){return Object.getOwnPropertyDescriptor(V,A).enumerable})),F.push.apply(F,B)}return F}function pr(V){for(var R=1;R=0)continue;be[Ae]=ye[Ae]}return be}(G,Y);if(Object.getOwnPropertySymbols){var me=Object.getOwnPropertySymbols(G);for(se=0;se=0||{}.propertyIsEnumerable.call(G,re)&&(ge[re]=G[re])}return ge}(A,He));return s().createElement("img",$t({},L,{onLoad:this.onImageLoad()}))}},{key:"getLazyLoadImage",value:function(){var A=this.props,L=A.beforeLoad,G=A.className,Y=A.delayMethod,re=A.delayTime,se=A.height,ge=A.placeholder,me=A.scrollPosition,ye=A.style,Te=A.threshold,be=A.useIntersectionObserver,Ae=A.visibleByDefault,$r=A.width;return s().createElement(fr,{beforeLoad:L,className:G,delayMethod:Y,delayTime:re,height:se,placeholder:ge,scrollPosition:me,style:ye,threshold:Te,useIntersectionObserver:be,visibleByDefault:Ae,width:$r},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(A){var L=this.props,G=L.effect,Y=L.height,re=L.placeholderSrc,se=L.width,ge=L.wrapperClassName,me=L.wrapperProps,ye=this.state.loaded,Te=ye?" lazy-load-image-loaded":"",be=ye||!re?{}:{backgroundImage:"url(".concat(re,")"),backgroundSize:"100% 100%"};return s().createElement("span",$t({className:ge+" lazy-load-image-background "+G+Te,style:pr(pr({},be),{},{color:"transparent",display:"inline-block",height:Y,width:se})},me),A)}},{key:"render",value:function(){var A=this.props,L=A.effect,G=A.placeholderSrc,Y=A.visibleByDefault,re=A.wrapperClassName,se=A.wrapperProps,ge=this.getLazyLoadImage();return(L||G)&&!Y||re||se?this.getWrappedLazyLoadImage(ge):ge}}],B&&On(F.prototype,B),Object.defineProperty(F,"prototype",{writable:!1}),F;var F,B}(s().Component);hr.propTypes={onLoad:a.PropTypes.func,afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,delayMethod:a.PropTypes.string,delayTime:a.PropTypes.number,effect:a.PropTypes.string,placeholderSrc:a.PropTypes.string,threshold:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool,wrapperClassName:a.PropTypes.string,wrapperProps:a.PropTypes.object},hr.defaultProps={onLoad:function(){},afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};const zr=hr})(),Qv.exports=r})();var xa=Qv.exports;const Fi=({movie:e,onRemoveFromWatchlist:t,cancel:n})=>{if(!e||!e.poster_path)return null;const{title:r="No Title",poster_path:o,release_date:s="N/A",vote_average:a=2,id:l,name:c="No Name"}=e;return y.jsx("div",{className:" rounded-xl max-w-xs sm:max-w-sm md:max-w-md lg:max-w-lg",children:y.jsxs("div",{className:"relative",children:[n==!0?y.jsx("button",{onClick:()=>t(l),className:" absolute top-2 right-2 bg-zinc-900/50 p-2 rounded-full text-white hover:bg-zinc-950 z-20 ",children:y.jsx(zb,{})}):"",y.jsx(un,{to:`/movie/${l}`,children:y.jsx(xa.LazyLoadImage,{className:"h-auto w-full rounded-lg cursor-pointer",src:`https://image.tmdb.org/t/p/w500/${o}`,alt:r,effect:"blur"})})]})})};function Zv({movies:e}){return y.jsx(Mo,{spaceBetween:7,slidesPerView:5,className:"mySwiper",watchSlidesProgress:!0,breakpoints:{320:{slidesPerView:2.5},640:{slidesPerView:4.5},768:{slidesPerView:5.5},1024:{slidesPerView:6.5}},children:e.map((t,n)=>y.jsx(Ro,{children:y.jsx(Fi,{movie:t})},n))})}function KC(e){return lt({tag:"svg",attr:{viewBox:"0 0 32 32"},child:[{tag:"path",attr:{d:"M 12.96875 4.28125 L 11.53125 5.71875 L 21.8125 16 L 11.53125 26.28125 L 12.96875 27.71875 L 23.96875 16.71875 L 24.65625 16 L 23.96875 15.28125 Z"},child:[]}]})(e)}const Cr=({title:e,linkTo:t})=>y.jsxs("div",{className:"flex items-center justify-between mt-3",children:[y.jsx("h2",{className:" text-md lg:text-xl text-white my-2 ",children:e}),t?y.jsx(un,{to:t,children:y.jsxs("button",{className:"py-1 rounded-full text-md lg:text-lg flex items-center text-blue-400",children:["View all",y.jsx(KC,{size:15})]})}):""]});function Fp(e,[t,n]){return Math.min(n,Math.max(t,e))}function XC(e,t=[]){let n=[];function r(s,a){const l=b.createContext(a),c=n.length;n=[...n,a];function u(f){const{scope:h,children:m,...x}=f,w=(h==null?void 0:h[e][c])||l,S=b.useMemo(()=>x,Object.values(x));return y.jsx(w.Provider,{value:S,children:m})}function d(f,h){const m=(h==null?void 0:h[e][c])||l,x=b.useContext(m);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${s}\``)}return u.displayName=s+"Provider",[u,d]}const o=()=>{const s=n.map(a=>b.createContext(a));return function(l){const c=(l==null?void 0:l[e])||s;return b.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,qC(o,...t)]}function qC(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((l,{useScope:c,scopeName:u})=>{const f=c(s)[`__scope${u}`];return{...l,...f}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function QC(e){const t=e+"CollectionProvider",[n,r]=XC(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=m=>{const{scope:x,children:w}=m,S=D.useRef(null),g=D.useRef(new Map).current;return y.jsx(o,{scope:x,itemMap:g,collectionRef:S,children:w})};a.displayName=t;const l=e+"CollectionSlot",c=D.forwardRef((m,x)=>{const{scope:w,children:S}=m,g=s(l,w),p=Fe(x,g.collectionRef);return y.jsx(Mr,{ref:p,children:S})});c.displayName=l;const u=e+"CollectionItemSlot",d="data-radix-collection-item",f=D.forwardRef((m,x)=>{const{scope:w,children:S,...g}=m,p=D.useRef(null),v=Fe(x,p),E=s(u,w);return D.useEffect(()=>(E.itemMap.set(p,{ref:p,...g}),()=>void E.itemMap.delete(p))),y.jsx(Mr,{[d]:"",ref:v,children:S})});f.displayName=u;function h(m){const x=s(e+"CollectionConsumer",m);return D.useCallback(()=>{const S=x.collectionRef.current;if(!S)return[];const g=Array.from(S.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((E,C)=>g.indexOf(E.ref.current)-g.indexOf(C.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:a,Slot:c,ItemSlot:f},h,r]}var ZC=b.createContext(void 0);function JC(e){const t=b.useContext(ZC);return e||t||"ltr"}const eT=["top","right","bottom","left"],rr=Math.min,Tt=Math.max,ba=Math.round,ys=Math.floor,cn=e=>({x:e,y:e}),tT={left:"right",right:"left",bottom:"top",top:"bottom"},nT={start:"end",end:"start"};function su(e,t,n){return Tt(e,rr(t,n))}function Tn(e,t){return typeof e=="function"?e(t):e}function Pn(e){return e.split("-")[0]}function Io(e){return e.split("-")[1]}function Ld(e){return e==="x"?"y":"x"}function Id(e){return e==="y"?"height":"width"}function or(e){return["top","bottom"].includes(Pn(e))?"y":"x"}function Dd(e){return Ld(or(e))}function rT(e,t,n){n===void 0&&(n=!1);const r=Io(e),o=Dd(e),s=Id(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Sa(a)),[a,Sa(a)]}function oT(e){const t=Sa(e);return[au(e),t,au(t)]}function au(e){return e.replace(/start|end/g,t=>nT[t])}function iT(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:a;default:return[]}}function sT(e,t,n,r){const o=Io(e);let s=iT(Pn(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(au)))),s}function Sa(e){return e.replace(/left|right|bottom|top/g,t=>tT[t])}function aT(e){return{top:0,right:0,bottom:0,left:0,...e}}function Jv(e){return typeof e!="number"?aT(e):{top:e,right:e,bottom:e,left:e}}function Ea(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Vp(e,t,n){let{reference:r,floating:o}=e;const s=or(t),a=Dd(t),l=Id(a),c=Pn(t),u=s==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,h=r[l]/2-o[l]/2;let m;switch(c){case"top":m={x:d,y:r.y-o.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-o.width,y:f};break;default:m={x:r.x,y:r.y}}switch(Io(t)){case"start":m[a]-=h*(n&&u?-1:1);break;case"end":m[a]+=h*(n&&u?-1:1);break}return m}const lT=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,l=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Vp(u,r,c),h=r,m={},x=0;for(let w=0;w({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:l,middlewareData:c}=t,{element:u,padding:d=0}=Tn(e,t)||{};if(u==null)return{};const f=Jv(d),h={x:n,y:r},m=Dd(o),x=Id(m),w=await a.getDimensions(u),S=m==="y",g=S?"top":"left",p=S?"bottom":"right",v=S?"clientHeight":"clientWidth",E=s.reference[x]+s.reference[m]-h[m]-s.floating[x],C=h[m]-s.reference[m],P=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let T=P?P[v]:0;(!T||!await(a.isElement==null?void 0:a.isElement(P)))&&(T=l.floating[v]||s.floating[x]);const k=E/2-C/2,O=T/2-w[x]/2-1,j=rr(f[g],O),$=rr(f[p],O),M=j,N=T-w[x]-$,z=T/2-w[x]/2+k,H=su(M,z,N),W=!c.arrow&&Io(o)!=null&&z!==H&&s.reference[x]/2-(zz<=0)){var $,M;const z=((($=s.flip)==null?void 0:$.index)||0)+1,H=T[z];if(H)return{data:{index:z,overflows:j},reset:{placement:H}};let W=(M=j.filter(K=>K.overflows[0]<=0).sort((K,_)=>K.overflows[1]-_.overflows[1])[0])==null?void 0:M.placement;if(!W)switch(m){case"bestFit":{var N;const K=(N=j.filter(_=>{if(P){const I=or(_.placement);return I===p||I==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(I=>I>0).reduce((I,U)=>I+U,0)]).sort((_,I)=>_[1]-I[1])[0])==null?void 0:N[0];K&&(W=K);break}case"initialPlacement":W=l;break}if(o!==W)return{reset:{placement:W}}}return{}}}};function Hp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Wp(e){return eT.some(t=>e[t]>=0)}const dT=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Tn(e,t);switch(r){case"referenceHidden":{const s=await _i(t,{...o,elementContext:"reference"}),a=Hp(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Wp(a)}}}case"escaped":{const s=await _i(t,{...o,altBoundary:!0}),a=Hp(s,n.floating);return{data:{escapedOffsets:a,escaped:Wp(a)}}}default:return{}}}}};async function fT(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Pn(n),l=Io(n),c=or(n)==="y",u=["left","top"].includes(a)?-1:1,d=s&&c?-1:1,f=Tn(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:x}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof x=="number"&&(m=l==="end"?x*-1:x),c?{x:m*d,y:h*u}:{x:h*u,y:m*d}}const pT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:l}=t,c=await fT(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:a}}}}},mT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:S=>{let{x:g,y:p}=S;return{x:g,y:p}}},...c}=Tn(e,t),u={x:n,y:r},d=await _i(t,c),f=or(Pn(o)),h=Ld(f);let m=u[h],x=u[f];if(s){const S=h==="y"?"top":"left",g=h==="y"?"bottom":"right",p=m+d[S],v=m-d[g];m=su(p,m,v)}if(a){const S=f==="y"?"top":"left",g=f==="y"?"bottom":"right",p=x+d[S],v=x-d[g];x=su(p,x,v)}const w=l.fn({...t,[h]:m,[f]:x});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[h]:s,[f]:a}}}}}},hT=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=Tn(e,t),d={x:n,y:r},f=or(o),h=Ld(f);let m=d[h],x=d[f];const w=Tn(l,t),S=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(c){const v=h==="y"?"height":"width",E=s.reference[h]-s.floating[v]+S.mainAxis,C=s.reference[h]+s.reference[v]-S.mainAxis;mC&&(m=C)}if(u){var g,p;const v=h==="y"?"width":"height",E=["top","left"].includes(Pn(o)),C=s.reference[f]-s.floating[v]+(E&&((g=a.offset)==null?void 0:g[f])||0)+(E?0:S.crossAxis),P=s.reference[f]+s.reference[v]+(E?0:((p=a.offset)==null?void 0:p[f])||0)-(E?S.crossAxis:0);xP&&(x=P)}return{[h]:m,[f]:x}}}},gT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:l}=t,{apply:c=()=>{},...u}=Tn(e,t),d=await _i(t,u),f=Pn(o),h=Io(o),m=or(o)==="y",{width:x,height:w}=s.floating;let S,g;f==="top"||f==="bottom"?(S=f,g=h===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(g=f,S=h==="end"?"top":"bottom");const p=w-d.top-d.bottom,v=x-d.left-d.right,E=rr(w-d[S],p),C=rr(x-d[g],v),P=!t.middlewareData.shift;let T=E,k=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=p),P&&!h){const j=Tt(d.left,0),$=Tt(d.right,0),M=Tt(d.top,0),N=Tt(d.bottom,0);m?k=x-2*(j!==0||$!==0?j+$:Tt(d.left,d.right)):T=w-2*(M!==0||N!==0?M+N:Tt(d.top,d.bottom))}await c({...t,availableWidth:k,availableHeight:T});const O=await a.getDimensions(l.floating);return x!==O.width||w!==O.height?{reset:{rects:!0}}:{}}}};function Ka(){return typeof window<"u"}function Do(e){return e0(e)?(e.nodeName||"").toLowerCase():"#document"}function Nt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fn(e){var t;return(t=(e0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function e0(e){return Ka()?e instanceof Node||e instanceof Nt(e).Node:!1}function qt(e){return Ka()?e instanceof Element||e instanceof Nt(e).Element:!1}function dn(e){return Ka()?e instanceof HTMLElement||e instanceof Nt(e).HTMLElement:!1}function Up(e){return!Ka()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Nt(e).ShadowRoot}function Vi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Qt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function vT(e){return["table","td","th"].includes(Do(e))}function Xa(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ad(e){const t=zd(),n=qt(e)?Qt(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function yT(e){let t=ir(e);for(;dn(t)&&!Co(t);){if(Ad(t))return t;if(Xa(t))return null;t=ir(t)}return null}function zd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Co(e){return["html","body","#document"].includes(Do(e))}function Qt(e){return Nt(e).getComputedStyle(e)}function qa(e){return qt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ir(e){if(Do(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Up(e)&&e.host||fn(e);return Up(t)?t.host:t}function t0(e){const t=ir(e);return Co(t)?e.ownerDocument?e.ownerDocument.body:e.body:dn(t)&&Vi(t)?t:t0(t)}function Li(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=t0(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=Nt(o);if(s){const l=lu(a);return t.concat(a,a.visualViewport||[],Vi(o)?o:[],l&&n?Li(l):[])}return t.concat(o,Li(o,[],n))}function lu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function n0(e){const t=Qt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=dn(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=ba(n)!==s||ba(r)!==a;return l&&(n=s,r=a),{width:n,height:r,$:l}}function $d(e){return qt(e)?e:e.contextElement}function ho(e){const t=$d(e);if(!dn(t))return cn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=n0(t);let a=(s?ba(n.width):n.width)/r,l=(s?ba(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const wT=cn(0);function r0(e){const t=Nt(e);return!zd()||!t.visualViewport?wT:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xT(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Nt(e)?!1:t}function _r(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=$d(e);let a=cn(1);t&&(r?qt(r)&&(a=ho(r)):a=ho(e));const l=xT(s,n,r)?r0(s):cn(0);let c=(o.left+l.x)/a.x,u=(o.top+l.y)/a.y,d=o.width/a.x,f=o.height/a.y;if(s){const h=Nt(s),m=r&&qt(r)?Nt(r):r;let x=h,w=lu(x);for(;w&&r&&m!==x;){const S=ho(w),g=w.getBoundingClientRect(),p=Qt(w),v=g.left+(w.clientLeft+parseFloat(p.paddingLeft))*S.x,E=g.top+(w.clientTop+parseFloat(p.paddingTop))*S.y;c*=S.x,u*=S.y,d*=S.x,f*=S.y,c+=v,u+=E,x=Nt(w),w=lu(x)}}return Ea({width:d,height:f,x:c,y:u})}function Bd(e,t){const n=qa(e).scrollLeft;return t?t.left+n:_r(fn(e)).left+n}function o0(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Bd(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function bT(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=fn(r),l=t?Xa(t.floating):!1;if(r===a||l&&s)return n;let c={scrollLeft:0,scrollTop:0},u=cn(1);const d=cn(0),f=dn(r);if((f||!f&&!s)&&((Do(r)!=="body"||Vi(a))&&(c=qa(r)),dn(r))){const m=_r(r);u=ho(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const h=a&&!f&&!s?o0(a,c,!0):cn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+h.x,y:n.y*u.y-c.scrollTop*u.y+d.y+h.y}}function ST(e){return Array.from(e.getClientRects())}function ET(e){const t=fn(e),n=qa(e),r=e.ownerDocument.body,o=Tt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Tt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Bd(e);const l=-n.scrollTop;return Qt(r).direction==="rtl"&&(a+=Tt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:l}}function CT(e,t){const n=Nt(e),r=fn(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,l=0,c=0;if(o){s=o.width,a=o.height;const u=zd();(!u||u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:s,height:a,x:l,y:c}}function TT(e,t){const n=_r(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=dn(e)?ho(e):cn(1),a=e.clientWidth*s.x,l=e.clientHeight*s.y,c=o*s.x,u=r*s.y;return{width:a,height:l,x:c,y:u}}function Gp(e,t,n){let r;if(t==="viewport")r=CT(e,n);else if(t==="document")r=ET(fn(e));else if(qt(t))r=TT(t,n);else{const o=r0(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ea(r)}function i0(e,t){const n=ir(e);return n===t||!qt(n)||Co(n)?!1:Qt(n).position==="fixed"||i0(n,t)}function PT(e,t){const n=t.get(e);if(n)return n;let r=Li(e,[],!1).filter(l=>qt(l)&&Do(l)!=="body"),o=null;const s=Qt(e).position==="fixed";let a=s?ir(e):e;for(;qt(a)&&!Co(a);){const l=Qt(a),c=Ad(a);!c&&l.position==="fixed"&&(o=null),(s?!c&&!o:!c&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Vi(a)&&!c&&i0(e,a))?r=r.filter(d=>d!==a):o=l,a=ir(a)}return t.set(e,r),r}function kT(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Xa(t)?[]:PT(t,this._c):[].concat(n),r],l=a[0],c=a.reduce((u,d)=>{const f=Gp(t,d,o);return u.top=Tt(f.top,u.top),u.right=rr(f.right,u.right),u.bottom=rr(f.bottom,u.bottom),u.left=Tt(f.left,u.left),u},Gp(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function NT(e){const{width:t,height:n}=n0(e);return{width:t,height:n}}function OT(e,t,n){const r=dn(t),o=fn(t),s=n==="fixed",a=_r(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const c=cn(0);if(r||!r&&!s)if((Do(t)!=="body"||Vi(o))&&(l=qa(t)),r){const h=_r(t,!0,s,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&(c.x=Bd(o));const u=o&&!r&&!s?o0(o,l):cn(0),d=a.left+l.scrollLeft-c.x-u.x,f=a.top+l.scrollTop-c.y-u.y;return{x:d,y:f,width:a.width,height:a.height}}function Yl(e){return Qt(e).position==="static"}function Yp(e,t){if(!dn(e)||Qt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return fn(e)===n&&(n=n.ownerDocument.body),n}function s0(e,t){const n=Nt(e);if(Xa(e))return n;if(!dn(e)){let o=ir(e);for(;o&&!Co(o);){if(qt(o)&&!Yl(o))return o;o=ir(o)}return n}let r=Yp(e,t);for(;r&&vT(r)&&Yl(r);)r=Yp(r,t);return r&&Co(r)&&Yl(r)&&!Ad(r)?n:r||yT(e)||n}const jT=async function(e){const t=this.getOffsetParent||s0,n=this.getDimensions,r=await n(e.floating);return{reference:OT(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function MT(e){return Qt(e).direction==="rtl"}const RT={convertOffsetParentRelativeRectToViewportRelativeRect:bT,getDocumentElement:fn,getClippingRect:kT,getOffsetParent:s0,getElementRects:jT,getClientRects:ST,getDimensions:NT,getScale:ho,isElement:qt,isRTL:MT};function _T(e,t){let n=null,r;const o=fn(e);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const{left:u,top:d,width:f,height:h}=e.getBoundingClientRect();if(l||t(),!f||!h)return;const m=ys(d),x=ys(o.clientWidth-(u+f)),w=ys(o.clientHeight-(d+h)),S=ys(u),p={rootMargin:-m+"px "+-x+"px "+-w+"px "+-S+"px",threshold:Tt(0,rr(1,c))||1};let v=!0;function E(C){const P=C[0].intersectionRatio;if(P!==c){if(!v)return a();P?a(!1,P):r=setTimeout(()=>{a(!1,1e-7)},1e3)}v=!1}try{n=new IntersectionObserver(E,{...p,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,p)}n.observe(e)}return a(!0),s}function LT(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=$d(e),d=o||s?[...u?Li(u):[],...Li(t)]:[];d.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),s&&g.addEventListener("resize",n)});const f=u&&l?_T(u,n):null;let h=-1,m=null;a&&(m=new ResizeObserver(g=>{let[p]=g;p&&p.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var v;(v=m)==null||v.observe(t)})),n()}),u&&!c&&m.observe(u),m.observe(t));let x,w=c?_r(e):null;c&&S();function S(){const g=_r(e);w&&(g.x!==w.x||g.y!==w.y||g.width!==w.width||g.height!==w.height)&&n(),w=g,x=requestAnimationFrame(S)}return n(),()=>{var g;d.forEach(p=>{o&&p.removeEventListener("scroll",n),s&&p.removeEventListener("resize",n)}),f==null||f(),(g=m)==null||g.disconnect(),m=null,c&&cancelAnimationFrame(x)}}const IT=pT,DT=mT,AT=uT,zT=gT,$T=dT,Kp=cT,BT=hT,FT=(e,t,n)=>{const r=new Map,o={platform:RT,...n},s={...o.platform,_c:r};return lT(e,t,{...o,platform:s})};var Is=typeof document<"u"?b.useLayoutEffect:b.useEffect;function Ca(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ca(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Ca(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function a0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xp(e,t){const n=a0(e);return Math.round(t*n)/n}function Kl(e){const t=b.useRef(e);return Is(()=>{t.current=e}),t}function VT(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,f]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=b.useState(r);Ca(h,r)||m(r);const[x,w]=b.useState(null),[S,g]=b.useState(null),p=b.useCallback(_=>{_!==P.current&&(P.current=_,w(_))},[]),v=b.useCallback(_=>{_!==T.current&&(T.current=_,g(_))},[]),E=s||x,C=a||S,P=b.useRef(null),T=b.useRef(null),k=b.useRef(d),O=c!=null,j=Kl(c),$=Kl(o),M=Kl(u),N=b.useCallback(()=>{if(!P.current||!T.current)return;const _={placement:t,strategy:n,middleware:h};$.current&&(_.platform=$.current),FT(P.current,T.current,_).then(I=>{const U={...I,isPositioned:M.current!==!1};z.current&&!Ca(k.current,U)&&(k.current=U,No.flushSync(()=>{f(U)}))})},[h,t,n,$,M]);Is(()=>{u===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,f(_=>({..._,isPositioned:!1})))},[u]);const z=b.useRef(!1);Is(()=>(z.current=!0,()=>{z.current=!1}),[]),Is(()=>{if(E&&(P.current=E),C&&(T.current=C),E&&C){if(j.current)return j.current(E,C,N);N()}},[E,C,N,j,O]);const H=b.useMemo(()=>({reference:P,floating:T,setReference:p,setFloating:v}),[p,v]),W=b.useMemo(()=>({reference:E,floating:C}),[E,C]),K=b.useMemo(()=>{const _={position:n,left:0,top:0};if(!W.floating)return _;const I=Xp(W.floating,d.x),U=Xp(W.floating,d.y);return l?{..._,transform:"translate("+I+"px, "+U+"px)",...a0(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:I,top:U}},[n,l,W.floating,d.x,d.y]);return b.useMemo(()=>({...d,update:N,refs:H,elements:W,floatingStyles:K}),[d,N,H,W,K])}const HT=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Kp({element:r.current,padding:o}).fn(n):{}:r?Kp({element:r,padding:o}).fn(n):{}}}},WT=(e,t)=>({...IT(e),options:[e,t]}),UT=(e,t)=>({...DT(e),options:[e,t]}),GT=(e,t)=>({...BT(e),options:[e,t]}),YT=(e,t)=>({...AT(e),options:[e,t]}),KT=(e,t)=>({...zT(e),options:[e,t]}),XT=(e,t)=>({...$T(e),options:[e,t]}),qT=(e,t)=>({...HT(e),options:[e,t]});var QT="Arrow",l0=b.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return y.jsx(Me.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});l0.displayName=QT;var ZT=l0;function JT(e,t=[]){let n=[];function r(s,a){const l=b.createContext(a),c=n.length;n=[...n,a];function u(f){const{scope:h,children:m,...x}=f,w=(h==null?void 0:h[e][c])||l,S=b.useMemo(()=>x,Object.values(x));return y.jsx(w.Provider,{value:S,children:m})}function d(f,h){const m=(h==null?void 0:h[e][c])||l,x=b.useContext(m);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${s}\``)}return u.displayName=s+"Provider",[u,d]}const o=()=>{const s=n.map(a=>b.createContext(a));return function(l){const c=(l==null?void 0:l[e])||s;return b.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,eP(o,...t)]}function eP(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((l,{useScope:c,scopeName:u})=>{const f=c(s)[`__scope${u}`];return{...l,...f}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function tP(e){const[t,n]=b.useState(void 0);return pt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,l;if("borderBoxSize"in s){const c=s.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,l=u.blockSize}else a=e.offsetWidth,l=e.offsetHeight;n({width:a,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Fd="Popper",[c0,u0]=JT(Fd),[nP,d0]=c0(Fd),f0=e=>{const{__scopePopper:t,children:n}=e,[r,o]=b.useState(null);return y.jsx(nP,{scope:t,anchor:r,onAnchorChange:o,children:n})};f0.displayName=Fd;var p0="PopperAnchor",m0=b.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=d0(p0,n),a=b.useRef(null),l=Fe(t,a);return b.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:y.jsx(Me.div,{...o,ref:l})});m0.displayName=p0;var Vd="PopperContent",[rP,oP]=c0(Vd),h0=b.forwardRef((e,t)=>{var q,de,pe,ue,oe,ce;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:x,...w}=e,S=d0(Vd,n),[g,p]=b.useState(null),v=Fe(t,ve=>p(ve)),[E,C]=b.useState(null),P=tP(E),T=(P==null?void 0:P.width)??0,k=(P==null?void 0:P.height)??0,O=r+(s!=="center"?"-"+s:""),j=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},$=Array.isArray(u)?u:[u],M=$.length>0,N={padding:j,boundary:$.filter(sP),altBoundary:M},{refs:z,floatingStyles:H,placement:W,isPositioned:K,middlewareData:_}=VT({strategy:"fixed",placement:O,whileElementsMounted:(...ve)=>LT(...ve,{animationFrame:m==="always"}),elements:{reference:S.anchor},middleware:[WT({mainAxis:o+k,alignmentAxis:a}),c&&UT({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?GT():void 0,...N}),c&&YT({...N}),KT({...N,apply:({elements:ve,rects:ie,availableWidth:nt,availableHeight:ct})=>{const{width:xe,height:Ze}=ie.reference,Ve=ve.floating.style;Ve.setProperty("--radix-popper-available-width",`${nt}px`),Ve.setProperty("--radix-popper-available-height",`${ct}px`),Ve.setProperty("--radix-popper-anchor-width",`${xe}px`),Ve.setProperty("--radix-popper-anchor-height",`${Ze}px`)}}),E&&qT({element:E,padding:l}),aP({arrowWidth:T,arrowHeight:k}),h&&XT({strategy:"referenceHidden",...N})]}),[I,U]=y0(W),Z=Cn(x);pt(()=>{K&&(Z==null||Z())},[K,Z]);const Q=(q=_.arrow)==null?void 0:q.x,J=(de=_.arrow)==null?void 0:de.y,ee=((pe=_.arrow)==null?void 0:pe.centerOffset)!==0,[te,ae]=b.useState();return pt(()=>{g&&ae(window.getComputedStyle(g).zIndex)},[g]),y.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:K?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[(ue=_.transformOrigin)==null?void 0:ue.x,(oe=_.transformOrigin)==null?void 0:oe.y].join(" "),...((ce=_.hide)==null?void 0:ce.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(rP,{scope:n,placedSide:I,onArrowChange:C,arrowX:Q,arrowY:J,shouldHideArrow:ee,children:y.jsx(Me.div,{"data-side":I,"data-align":U,...w,ref:v,style:{...w.style,animation:K?void 0:"none"}})})})});h0.displayName=Vd;var g0="PopperArrow",iP={top:"bottom",right:"left",bottom:"top",left:"right"},v0=b.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=oP(g0,r),a=iP[s.placedSide];return y.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:y.jsx(ZT,{...o,ref:n,style:{...o.style,display:"block"}})})});v0.displayName=g0;function sP(e){return e!==null}var aP=e=>({name:"transformOrigin",options:e,fn(t){var S,g,p;const{placement:n,rects:r,middlewareData:o}=t,a=((S=o.arrow)==null?void 0:S.centerOffset)!==0,l=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[u,d]=y0(n),f={start:"0%",center:"50%",end:"100%"}[d],h=(((g=o.arrow)==null?void 0:g.x)??0)+l/2,m=(((p=o.arrow)==null?void 0:p.y)??0)+c/2;let x="",w="";return u==="bottom"?(x=a?f:`${h}px`,w=`${-c}px`):u==="top"?(x=a?f:`${h}px`,w=`${r.floating.height+c}px`):u==="right"?(x=`${-c}px`,w=a?f:`${m}px`):u==="left"&&(x=`${r.floating.width+c}px`,w=a?f:`${m}px`),{data:{x,y:w}}}});function y0(e){const[t,n="center"]=e.split("-");return[t,n]}var lP=f0,cP=m0,uP=h0,dP=v0;function fP(e){const t=b.useRef({value:e,previous:e});return b.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var pP="VisuallyHidden",w0=b.forwardRef((e,t)=>y.jsx(Me.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));w0.displayName=pP;var mP=[" ","Enter","ArrowUp","ArrowDown"],hP=[" ","Enter"],Hi="Select",[Qa,Za,gP]=QC(Hi),[Ao,H5]=Ug(Hi,[gP,u0]),Ja=u0(),[vP,ur]=Ao(Hi),[yP,wP]=Ao(Hi),x0=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:a,defaultValue:l,onValueChange:c,dir:u,name:d,autoComplete:f,disabled:h,required:m,form:x}=e,w=Ja(t),[S,g]=b.useState(null),[p,v]=b.useState(null),[E,C]=b.useState(!1),P=JC(u),[T=!1,k]=Zc({prop:r,defaultProp:o,onChange:s}),[O,j]=Zc({prop:a,defaultProp:l,onChange:c}),$=b.useRef(null),M=S?x||!!S.closest("form"):!0,[N,z]=b.useState(new Set),H=Array.from(N).map(W=>W.props.value).join(";");return y.jsx(lP,{...w,children:y.jsxs(vP,{required:m,scope:t,trigger:S,onTriggerChange:g,valueNode:p,onValueNodeChange:v,valueNodeHasChildren:E,onValueNodeHasChildrenChange:C,contentId:fo(),value:O,onValueChange:j,open:T,onOpenChange:k,dir:P,triggerPointerDownPosRef:$,disabled:h,children:[y.jsx(Qa.Provider,{scope:t,children:y.jsx(yP,{scope:e.__scopeSelect,onNativeOptionAdd:b.useCallback(W=>{z(K=>new Set(K).add(W))},[]),onNativeOptionRemove:b.useCallback(W=>{z(K=>{const _=new Set(K);return _.delete(W),_})},[]),children:n})}),M?y.jsxs(U0,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:f,value:O,onChange:W=>j(W.target.value),disabled:h,form:x,children:[O===void 0?y.jsx("option",{value:""}):null,Array.from(N)]},H):null]})})};x0.displayName=Hi;var b0="SelectTrigger",S0=b.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=Ja(n),a=ur(b0,n),l=a.disabled||r,c=Fe(t,a.onTriggerChange),u=Za(n),d=b.useRef("touch"),[f,h,m]=G0(w=>{const S=u().filter(v=>!v.disabled),g=S.find(v=>v.value===a.value),p=Y0(S,w,g);p!==void 0&&a.onValueChange(p.value)}),x=w=>{l||(a.onOpenChange(!0),m()),w&&(a.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})};return y.jsx(cP,{asChild:!0,...s,children:y.jsx(Me.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":W0(a.value)?"":void 0,...o,ref:c,onClick:Oe(o.onClick,w=>{w.currentTarget.focus(),d.current!=="mouse"&&x(w)}),onPointerDown:Oe(o.onPointerDown,w=>{d.current=w.pointerType;const S=w.target;S.hasPointerCapture(w.pointerId)&&S.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(x(w),w.preventDefault())}),onKeyDown:Oe(o.onKeyDown,w=>{const S=f.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&h(w.key),!(S&&w.key===" ")&&mP.includes(w.key)&&(x(),w.preventDefault())})})})});S0.displayName=b0;var E0="SelectValue",C0=b.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:a="",...l}=e,c=ur(E0,n),{onValueNodeHasChildrenChange:u}=c,d=s!==void 0,f=Fe(t,c.onValueNodeChange);return pt(()=>{u(d)},[u,d]),y.jsx(Me.span,{...l,ref:f,style:{pointerEvents:"none"},children:W0(c.value)?y.jsx(y.Fragment,{children:a}):s})});C0.displayName=E0;var xP="SelectIcon",T0=b.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return y.jsx(Me.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});T0.displayName=xP;var bP="SelectPortal",P0=e=>y.jsx(gd,{asChild:!0,...e});P0.displayName=bP;var Lr="SelectContent",k0=b.forwardRef((e,t)=>{const n=ur(Lr,e.__scopeSelect),[r,o]=b.useState();if(pt(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?No.createPortal(y.jsx(N0,{scope:e.__scopeSelect,children:y.jsx(Qa.Slot,{scope:e.__scopeSelect,children:y.jsx("div",{children:e.children})})}),s):null}return y.jsx(O0,{...e,ref:t})});k0.displayName=Lr;var Vt=10,[N0,dr]=Ao(Lr),SP="SelectContentImpl",O0=b.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:a,side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:m,sticky:x,hideWhenDetached:w,avoidCollisions:S,...g}=e,p=ur(Lr,n),[v,E]=b.useState(null),[C,P]=b.useState(null),T=Fe(t,q=>E(q)),[k,O]=b.useState(null),[j,$]=b.useState(null),M=Za(n),[N,z]=b.useState(!1),H=b.useRef(!1);b.useEffect(()=>{if(v)return ov(v)},[v]),Xg();const W=b.useCallback(q=>{const[de,...pe]=M().map(ce=>ce.ref.current),[ue]=pe.slice(-1),oe=document.activeElement;for(const ce of q)if(ce===oe||(ce==null||ce.scrollIntoView({block:"nearest"}),ce===de&&C&&(C.scrollTop=0),ce===ue&&C&&(C.scrollTop=C.scrollHeight),ce==null||ce.focus(),document.activeElement!==oe))return},[M,C]),K=b.useCallback(()=>W([k,v]),[W,k,v]);b.useEffect(()=>{N&&K()},[N,K]);const{onOpenChange:_,triggerPointerDownPosRef:I}=p;b.useEffect(()=>{if(v){let q={x:0,y:0};const de=ue=>{var oe,ce;q={x:Math.abs(Math.round(ue.pageX)-(((oe=I.current)==null?void 0:oe.x)??0)),y:Math.abs(Math.round(ue.pageY)-(((ce=I.current)==null?void 0:ce.y)??0))}},pe=ue=>{q.x<=10&&q.y<=10?ue.preventDefault():v.contains(ue.target)||_(!1),document.removeEventListener("pointermove",de),I.current=null};return I.current!==null&&(document.addEventListener("pointermove",de),document.addEventListener("pointerup",pe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",de),document.removeEventListener("pointerup",pe,{capture:!0})}}},[v,_,I]),b.useEffect(()=>{const q=()=>_(!1);return window.addEventListener("blur",q),window.addEventListener("resize",q),()=>{window.removeEventListener("blur",q),window.removeEventListener("resize",q)}},[_]);const[U,Z]=G0(q=>{const de=M().filter(oe=>!oe.disabled),pe=de.find(oe=>oe.ref.current===document.activeElement),ue=Y0(de,q,pe);ue&&setTimeout(()=>ue.ref.current.focus())}),Q=b.useCallback((q,de,pe)=>{const ue=!H.current&&!pe;(p.value!==void 0&&p.value===de||ue)&&(O(q),ue&&(H.current=!0))},[p.value]),J=b.useCallback(()=>v==null?void 0:v.focus(),[v]),ee=b.useCallback((q,de,pe)=>{const ue=!H.current&&!pe;(p.value!==void 0&&p.value===de||ue)&&$(q)},[p.value]),te=r==="popper"?cu:j0,ae=te===cu?{side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:m,sticky:x,hideWhenDetached:w,avoidCollisions:S}:{};return y.jsx(N0,{scope:n,content:v,viewport:C,onViewportChange:P,itemRefCallback:Q,selectedItem:k,onItemLeave:J,itemTextRefCallback:ee,focusSelectedItem:K,selectedItemText:j,position:r,isPositioned:N,searchRef:U,children:y.jsx(vd,{as:Mr,allowPinchZoom:!0,children:y.jsx(hd,{asChild:!0,trapped:p.open,onMountAutoFocus:q=>{q.preventDefault()},onUnmountAutoFocus:Oe(o,q=>{var de;(de=p.trigger)==null||de.focus({preventScroll:!0}),q.preventDefault()}),children:y.jsx(md,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:q=>q.preventDefault(),onDismiss:()=>p.onOpenChange(!1),children:y.jsx(te,{role:"listbox",id:p.contentId,"data-state":p.open?"open":"closed",dir:p.dir,onContextMenu:q=>q.preventDefault(),...g,...ae,onPlaced:()=>z(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:Oe(g.onKeyDown,q=>{const de=q.ctrlKey||q.altKey||q.metaKey;if(q.key==="Tab"&&q.preventDefault(),!de&&q.key.length===1&&Z(q.key),["ArrowUp","ArrowDown","Home","End"].includes(q.key)){let ue=M().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);if(["ArrowUp","End"].includes(q.key)&&(ue=ue.slice().reverse()),["ArrowUp","ArrowDown"].includes(q.key)){const oe=q.target,ce=ue.indexOf(oe);ue=ue.slice(ce+1)}setTimeout(()=>W(ue)),q.preventDefault()}})})})})})})});O0.displayName=SP;var EP="SelectItemAlignedPosition",j0=b.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=ur(Lr,n),a=dr(Lr,n),[l,c]=b.useState(null),[u,d]=b.useState(null),f=Fe(t,T=>d(T)),h=Za(n),m=b.useRef(!1),x=b.useRef(!0),{viewport:w,selectedItem:S,selectedItemText:g,focusSelectedItem:p}=a,v=b.useCallback(()=>{if(s.trigger&&s.valueNode&&l&&u&&w&&S&&g){const T=s.trigger.getBoundingClientRect(),k=u.getBoundingClientRect(),O=s.valueNode.getBoundingClientRect(),j=g.getBoundingClientRect();if(s.dir!=="rtl"){const oe=j.left-k.left,ce=O.left-oe,ve=T.left-ce,ie=T.width+ve,nt=Math.max(ie,k.width),ct=window.innerWidth-Vt,xe=Fp(ce,[Vt,Math.max(Vt,ct-nt)]);l.style.minWidth=ie+"px",l.style.left=xe+"px"}else{const oe=k.right-j.right,ce=window.innerWidth-O.right-oe,ve=window.innerWidth-T.right-ce,ie=T.width+ve,nt=Math.max(ie,k.width),ct=window.innerWidth-Vt,xe=Fp(ce,[Vt,Math.max(Vt,ct-nt)]);l.style.minWidth=ie+"px",l.style.right=xe+"px"}const $=h(),M=window.innerHeight-Vt*2,N=w.scrollHeight,z=window.getComputedStyle(u),H=parseInt(z.borderTopWidth,10),W=parseInt(z.paddingTop,10),K=parseInt(z.borderBottomWidth,10),_=parseInt(z.paddingBottom,10),I=H+W+N+_+K,U=Math.min(S.offsetHeight*5,I),Z=window.getComputedStyle(w),Q=parseInt(Z.paddingTop,10),J=parseInt(Z.paddingBottom,10),ee=T.top+T.height/2-Vt,te=M-ee,ae=S.offsetHeight/2,q=S.offsetTop+ae,de=H+W+q,pe=I-de;if(de<=ee){const oe=$.length>0&&S===$[$.length-1].ref.current;l.style.bottom="0px";const ce=u.clientHeight-w.offsetTop-w.offsetHeight,ve=Math.max(te,ae+(oe?J:0)+ce+K),ie=de+ve;l.style.height=ie+"px"}else{const oe=$.length>0&&S===$[0].ref.current;l.style.top="0px";const ve=Math.max(ee,H+w.offsetTop+(oe?Q:0)+ae)+pe;l.style.height=ve+"px",w.scrollTop=de-ee+w.offsetTop}l.style.margin=`${Vt}px 0`,l.style.minHeight=U+"px",l.style.maxHeight=M+"px",r==null||r(),requestAnimationFrame(()=>m.current=!0)}},[h,s.trigger,s.valueNode,l,u,w,S,g,s.dir,r]);pt(()=>v(),[v]);const[E,C]=b.useState();pt(()=>{u&&C(window.getComputedStyle(u).zIndex)},[u]);const P=b.useCallback(T=>{T&&x.current===!0&&(v(),p==null||p(),x.current=!1)},[v,p]);return y.jsx(TP,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:m,onScrollButtonChange:P,children:y.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:y.jsx(Me.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});j0.displayName=EP;var CP="SelectPopperPosition",cu=b.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Vt,...s}=e,a=Ja(n);return y.jsx(uP,{...a,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});cu.displayName=CP;var[TP,Hd]=Ao(Lr,{}),uu="SelectViewport",M0=b.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=dr(uu,n),a=Hd(uu,n),l=Fe(t,s.onViewportChange),c=b.useRef(0);return y.jsxs(y.Fragment,{children:[y.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),y.jsx(Qa.Slot,{scope:n,children:y.jsx(Me.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Oe(o.onScroll,u=>{const d=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:h}=a;if(h!=null&&h.current&&f){const m=Math.abs(c.current-d.scrollTop);if(m>0){const x=window.innerHeight-Vt*2,w=parseFloat(f.style.minHeight),S=parseFloat(f.style.height),g=Math.max(w,S);if(g0?E:0,f.style.justifyContent="flex-end")}}}c.current=d.scrollTop})})})]})});M0.displayName=uu;var R0="SelectGroup",[PP,kP]=Ao(R0),NP=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=fo();return y.jsx(PP,{scope:n,id:o,children:y.jsx(Me.div,{role:"group","aria-labelledby":o,...r,ref:t})})});NP.displayName=R0;var _0="SelectLabel",L0=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=kP(_0,n);return y.jsx(Me.div,{id:o.id,...r,ref:t})});L0.displayName=_0;var Ta="SelectItem",[OP,I0]=Ao(Ta),D0=b.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...a}=e,l=ur(Ta,n),c=dr(Ta,n),u=l.value===r,[d,f]=b.useState(s??""),[h,m]=b.useState(!1),x=Fe(t,p=>{var v;return(v=c.itemRefCallback)==null?void 0:v.call(c,p,r,o)}),w=fo(),S=b.useRef("touch"),g=()=>{o||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return y.jsx(OP,{scope:n,value:r,disabled:o,textId:w,isSelected:u,onItemTextChange:b.useCallback(p=>{f(v=>v||((p==null?void 0:p.textContent)??"").trim())},[]),children:y.jsx(Qa.ItemSlot,{scope:n,value:r,disabled:o,textValue:d,children:y.jsx(Me.div,{role:"option","aria-labelledby":w,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:x,onFocus:Oe(a.onFocus,()=>m(!0)),onBlur:Oe(a.onBlur,()=>m(!1)),onClick:Oe(a.onClick,()=>{S.current!=="mouse"&&g()}),onPointerUp:Oe(a.onPointerUp,()=>{S.current==="mouse"&&g()}),onPointerDown:Oe(a.onPointerDown,p=>{S.current=p.pointerType}),onPointerMove:Oe(a.onPointerMove,p=>{var v;S.current=p.pointerType,o?(v=c.onItemLeave)==null||v.call(c):S.current==="mouse"&&p.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Oe(a.onPointerLeave,p=>{var v;p.currentTarget===document.activeElement&&((v=c.onItemLeave)==null||v.call(c))}),onKeyDown:Oe(a.onKeyDown,p=>{var E;((E=c.searchRef)==null?void 0:E.current)!==""&&p.key===" "||(hP.includes(p.key)&&g(),p.key===" "&&p.preventDefault())})})})})});D0.displayName=Ta;var ni="SelectItemText",A0=b.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,a=ur(ni,n),l=dr(ni,n),c=I0(ni,n),u=wP(ni,n),[d,f]=b.useState(null),h=Fe(t,g=>f(g),c.onItemTextChange,g=>{var p;return(p=l.itemTextRefCallback)==null?void 0:p.call(l,g,c.value,c.disabled)}),m=d==null?void 0:d.textContent,x=b.useMemo(()=>y.jsx("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:w,onNativeOptionRemove:S}=u;return pt(()=>(w(x),()=>S(x)),[w,S,x]),y.jsxs(y.Fragment,{children:[y.jsx(Me.span,{id:c.textId,...s,ref:h}),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren?No.createPortal(s.children,a.valueNode):null]})});A0.displayName=ni;var z0="SelectItemIndicator",$0=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return I0(z0,n).isSelected?y.jsx(Me.span,{"aria-hidden":!0,...r,ref:t}):null});$0.displayName=z0;var du="SelectScrollUpButton",B0=b.forwardRef((e,t)=>{const n=dr(du,e.__scopeSelect),r=Hd(du,e.__scopeSelect),[o,s]=b.useState(!1),a=Fe(t,r.onScrollButtonChange);return pt(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=c.scrollTop>0;s(u)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?y.jsx(V0,{...e,ref:a,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});B0.displayName=du;var fu="SelectScrollDownButton",F0=b.forwardRef((e,t)=>{const n=dr(fu,e.__scopeSelect),r=Hd(fu,e.__scopeSelect),[o,s]=b.useState(!1),a=Fe(t,r.onScrollButtonChange);return pt(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?y.jsx(V0,{...e,ref:a,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});F0.displayName=fu;var V0=b.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=dr("SelectScrollButton",n),a=b.useRef(null),l=Za(n),c=b.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return b.useEffect(()=>()=>c(),[c]),pt(()=>{var d;const u=l().find(f=>f.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[l]),y.jsx(Me.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Oe(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:Oe(o.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:Oe(o.onPointerLeave,()=>{c()})})}),jP="SelectSeparator",H0=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return y.jsx(Me.div,{"aria-hidden":!0,...r,ref:t})});H0.displayName=jP;var pu="SelectArrow",MP=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ja(n),s=ur(pu,n),a=dr(pu,n);return s.open&&a.position==="popper"?y.jsx(dP,{...o,...r,ref:t}):null});MP.displayName=pu;function W0(e){return e===""||e===void 0}var U0=b.forwardRef((e,t)=>{const{value:n,...r}=e,o=b.useRef(null),s=Fe(t,o),a=fP(n);return b.useEffect(()=>{const l=o.current,c=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(a!==n&&d){const f=new Event("change",{bubbles:!0});d.call(l,n),l.dispatchEvent(f)}},[a,n]),y.jsx(w0,{asChild:!0,children:y.jsx("select",{...r,ref:s,defaultValue:n})})});U0.displayName="BubbleSelect";function G0(e){const t=Cn(e),n=b.useRef(""),r=b.useRef(0),o=b.useCallback(a=>{const l=n.current+a;t(l),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(l)},[t]),s=b.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return b.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function Y0(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=RP(e,Math.max(s,0));o.length===1&&(a=a.filter(u=>u!==n));const c=a.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function RP(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var _P=x0,K0=S0,LP=C0,IP=T0,DP=P0,X0=k0,AP=M0,q0=L0,Q0=D0,zP=A0,$P=$0,Z0=B0,J0=F0,ey=H0;/** +){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function dE(){const e=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function fE(){return Pd(/^Mac/)}function pE(){return Pd(/^iPhone/)}function _p(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function mE(){return Pd(/^iPad/)||fE()&&navigator.maxTouchPoints>1}function kv(){return pE()||mE()}function Pd(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const hE=24,gE=typeof window<"u"?b.useLayoutEffect:b.useEffect;function Lp(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Vl=typeof document<"u"&&window.visualViewport;function Ip(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Nv(e){for(Ip(e)&&(e=e.parentElement);e&&!Ip(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const vE=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let hs=0,Hl;function yE(e={}){let{isDisabled:t}=e;gE(()=>{if(!t)return hs++,hs===1&&kv()&&(Hl=wE()),()=>{hs--,hs===0&&(Hl==null||Hl())}},[t])}function wE(){let e,t=0,n=f=>{e=Nv(f.target),!(e===document.documentElement&&e===document.body)&&(t=f.changedTouches[0].pageY)},r=f=>{if(!e||e===document.documentElement||e===document.body){f.preventDefault();return}let h=f.changedTouches[0].pageY,m=e.scrollTop,x=e.scrollHeight-e.clientHeight;x!==0&&((m<=0&&h>t||m>=x&&h{let h=f.target;nu(h)&&h!==document.activeElement&&(f.preventDefault(),h.style.transform="translateY(-2000px)",h.focus(),requestAnimationFrame(()=>{h.style.transform=""}))},s=f=>{let h=f.target;nu(h)&&(h.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{h.style.transform="",Vl&&(Vl.height{Dp(h)}):Vl.addEventListener("resize",()=>Dp(h),{once:!0}))}))},a=()=>{window.scrollTo(0,0)},l=window.pageXOffset,c=window.pageYOffset,u=Lp(xE(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let d=Lp(Ko(document,"touchstart",n,{passive:!1,capture:!0}),Ko(document,"touchmove",r,{passive:!1,capture:!0}),Ko(document,"touchend",o,{passive:!1,capture:!0}),Ko(document,"focus",s,!0),Ko(window,"scroll",a));return()=>{u(),d(),window.scrollTo(l,c)}}function xE(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Ko(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Dp(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=Nv(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,s=e.getBoundingClientRect().bottom;const a=n.getBoundingClientRect().bottom+hE;s>a&&(n.scrollTop+=o-r)}e=n.parentElement}}function nu(e){return e instanceof HTMLInputElement&&!vE.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function bE(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function SE(...e){return t=>e.forEach(n=>bE(n,t))}function Ov(...e){return b.useCallback(SE(...e),e)}const jv=new WeakMap;function Ge(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([o,s])=>{if(o.startsWith("--")){e.style.setProperty(o,s);return}r[o]=e.style[o],e.style[o]=s}),!n&&jv.set(e,r)}function EE(e,t){if(!e||!(e instanceof HTMLElement))return;let n=jv.get(e);n&&(e.style[t]=n[t])}const He=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function gs(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[He(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[He(t)?5:4]):null)}function CE(e){return 8*(Math.log(e+1)-2)}function Wl(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function TE(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}const _e={DURATION:.5,EASE:[.32,.72,0,1]},Rv=.4,PE=.25,kE=100,Mv=8,gr=16,ru=26,Ul="vaul-dragging";function _v(e){const t=D.useRef(e);return D.useEffect(()=>{t.current=e}),D.useMemo(()=>(...n)=>t.current==null?void 0:t.current.call(t,...n),[])}function NE({defaultProp:e,onChange:t}){const n=D.useState(e),[r]=n,o=D.useRef(r),s=_v(t);return D.useEffect(()=>{o.current!==r&&(s(r),o.current=r)},[r,o,s]),n}function Lv({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=NE({defaultProp:t,onChange:n}),s=e!==void 0,a=s?e:r,l=_v(n),c=D.useCallback(u=>{if(s){const f=typeof u=="function"?u(e):u;f!==e&&l(f)}else o(u)},[s,e,o,l]);return[a,c]}function OE({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:s,onSnapPointChange:a,direction:l="bottom",container:c,snapToSequentialPoint:u}){const[d,f]=Lv({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),[h,m]=D.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);D.useEffect(()=>{function T(){m({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",T),()=>window.removeEventListener("resize",T)},[]);const x=D.useMemo(()=>d===(n==null?void 0:n[n.length-1])||null,[n,d]),w=D.useMemo(()=>{var T;return(T=n==null?void 0:n.findIndex(P=>P===d))!=null?T:null},[n,d]),S=n&&n.length>0&&(s||s===0)&&!Number.isNaN(s)&&n[s]===d||!n,g=D.useMemo(()=>{const T=c?{width:c.getBoundingClientRect().width,height:c.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var P;return(P=n==null?void 0:n.map(O=>{const R=typeof O=="string";let z=0;if(R&&(z=parseInt(O,10)),He(l)){const N=R?z:h?O*T.height:0;return h?l==="bottom"?T.height-N:-T.height+N:N}const j=R?z:h?O*T.width:0;return h?l==="right"?T.width-j:-T.width+j:j}))!=null?P:[]},[n,h,c]),p=D.useMemo(()=>w!==null?g==null?void 0:g[w]:null,[g,w]),y=D.useCallback(T=>{var P;const O=(P=g==null?void 0:g.findIndex(R=>R===T))!=null?P:null;a(O),Ge(r.current,{transition:`transform ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,transform:He(l)?`translate3d(0, ${T}px, 0)`:`translate3d(${T}px, 0, 0)`}),g&&O!==g.length-1&&s!==void 0&&O!==s&&O{if(d||e){var T;const P=(T=n==null?void 0:n.findIndex(O=>O===e||O===d))!=null?T:-1;g&&P!==-1&&typeof g[P]=="number"&&y(g[P])}},[d,e,n,g,y]);function E({draggedDistance:T,closeDrawer:P,velocity:O,dismissible:R}){if(s===void 0)return;const z=l==="bottom"||l==="right"?(p??0)-T:(p??0)+T,j=w===s-1,N=w===0,$=T>0;if(j&&Ge(o.current,{transition:`opacity ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`}),!u&&O>2&&!$){R?P():y(g[0]);return}if(!u&&O>2&&$&&g&&n){y(g[n.length-1]);return}const V=g==null?void 0:g.reduce((X,L)=>typeof X!="number"||typeof L!="number"?X:Math.abs(L-z)Rv&&Math.abs(T)0&&x&&n){y(g[n.length-1]);return}if(N&&X<0&&R&&P(),w===null)return;y(g[w+X]);return}y(V)}function C({draggedDistance:T}){if(p===null)return;const P=l==="bottom"||l==="right"?p-T:p+T;(l==="bottom"||l==="right")&&Pg[g.length-1]||Ge(r.current,{transform:He(l)?`translate3d(0, ${P}px, 0)`:`translate3d(${P}px, 0, 0)`})}function k(T,P){if(!n||typeof w!="number"||!g||s===void 0)return null;const O=w===s-1;if(w>=s&&P)return 0;if(O&&!P)return 1;if(!S&&!O)return null;const z=O?w+1:w-1,j=O?g[z]-g[z-1]:g[z+1]-g[z],N=T/Math.abs(j);return O?1-N:N}return{isLastSnapPoint:x,activeSnapPoint:d,shouldFade:S,getPercentageDragged:k,setActiveSnapPoint:f,activeSnapPointIndex:w,onRelease:E,onDrag:C,snapPointsOffset:g}}const jE=()=>()=>{};function RE(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:o}=_o(),s=D.useRef(null),a=b.useMemo(()=>document.body.style.backgroundColor,[]);function l(){return(window.innerWidth-ru)/window.innerWidth}D.useEffect(()=>{if(t&&n){s.current&&clearTimeout(s.current);const c=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!c)return;TE(r&&!o?Wl(document.body,{background:"black"}):jE,Wl(c,{transformOrigin:He(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${_e.DURATION}s`,transitionTimingFunction:`cubic-bezier(${_e.EASE.join(",")})`}));const u=Wl(c,{borderRadius:`${Mv}px`,overflow:"hidden",...He(e)?{transform:`scale(${l()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${l()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{u(),s.current=window.setTimeout(()=>{a?document.body.style.background=a:document.body.style.removeProperty("background")},_e.DURATION*1e3)}}},[t,n,a])}let Xo=null;function ME({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:s}){const[a,l]=D.useState(()=>typeof window<"u"?window.location.href:""),c=D.useRef(0),u=D.useCallback(()=>{if(_p()&&Xo===null&&e&&!s){Xo={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:f,innerHeight:h}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-c.current}px`,left:`${-f}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const m=h-window.innerHeight;m&&c.current>=h&&(document.body.style.top=`${-(c.current+m)}px`)}),300)}},[e]),d=D.useCallback(()=>{if(_p()&&Xo!==null&&!s){const f=-parseInt(document.body.style.top,10),h=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Xo),window.requestAnimationFrame(()=>{if(o&&a!==window.location.href){l(window.location.href);return}window.scrollTo(h,f)}),Xo=null}},[a]);return D.useEffect(()=>{function f(){c.current=window.scrollY}return f(),window.addEventListener("scroll",f),()=>{window.removeEventListener("scroll",f)}},[]),D.useEffect(()=>{if(t)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||d()}},[t,d]),D.useEffect(()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&u(),t||window.setTimeout(()=>{d()},500)):d())},[e,r,a,t,n,u,d]),{restorePositionSetting:d}}function Iv({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:o,snapPoints:s,shouldScaleBackground:a=!1,setBackgroundColorOnScale:l=!0,closeThreshold:c=PE,scrollLockTimeout:u=kE,dismissible:d=!0,handleOnly:f=!1,fadeFromIndex:h=s&&s.length-1,activeSnapPoint:m,setActiveSnapPoint:x,fixed:w,modal:S=!0,onClose:g,nested:p,noBodyStyles:y=!1,direction:E="bottom",defaultOpen:C=!1,disablePreventScroll:k=!0,snapToSequentialPoint:T=!1,preventScrollRestoration:P=!1,repositionInputs:O=!0,onAnimationEnd:R,container:z,autoFocus:j=!1}){var N,$;const[V=!1,U]=Lv({defaultProp:C,prop:e,onChange:B=>{t==null||t(B),!B&&!p&&Vt(),setTimeout(()=>{R==null||R(B)},_e.DURATION*1e3),B&&!S&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),B||(document.body.style.pointerEvents="auto")}}),[X,L]=D.useState(!1),[I,W]=D.useState(!1),[Z,Q]=D.useState(!1),J=D.useRef(null),ee=D.useRef(null),ue=D.useRef(null),ve=D.useRef(null),Y=D.useRef(null),re=D.useRef(!1),de=D.useRef(null),ce=D.useRef(0),oe=D.useRef(!1),le=D.useRef(!C),he=D.useRef(0),ie=D.useRef(null),rt=D.useRef(((N=ie.current)==null?void 0:N.getBoundingClientRect().height)||0),Ct=D.useRef((($=ie.current)==null?void 0:$.getBoundingClientRect().width)||0),Ze=D.useRef(0),ot=D.useCallback(B=>{s&&B===Ce.length-1&&(ee.current=new Date)},[]),{activeSnapPoint:dt,activeSnapPointIndex:Be,setActiveSnapPoint:Ee,onRelease:it,snapPointsOffset:Ce,onDrag:Ue,shouldFade:pr,getPercentageDragged:$o}=OE({snapPoints:s,activeSnapPointProp:m,setActiveSnapPointProp:x,drawerRef:ie,fadeFromIndex:h,overlayRef:J,onSnapPointChange:ot,direction:E,container:z,snapToSequentialPoint:T});yE({isDisabled:!V||I||!S||Z||!X||!O||!k});const{restorePositionSetting:Vt}=ME({isOpen:V,modal:S,nested:p??!1,hasBeenOpened:X,preventScrollRestoration:P,noBodyStyles:y});function Rn(){return(window.innerWidth-ru)/window.innerWidth}function Mn(B){var A,_;!d&&!s||ie.current&&!ie.current.contains(B.target)||(rt.current=((A=ie.current)==null?void 0:A.getBoundingClientRect().height)||0,Ct.current=((_=ie.current)==null?void 0:_.getBoundingClientRect().width)||0,W(!0),ue.current=new Date,kv()&&window.addEventListener("touchend",()=>re.current=!1,{once:!0}),B.target.setPointerCapture(B.pointerId),ce.current=He(E)?B.pageY:B.pageX)}function Ht(B,A){var _;let G=B;const K=(_=window.getSelection())==null?void 0:_.toString(),ne=ie.current?gs(ie.current,E):null,se=new Date;if(G.tagName==="SELECT"||G.hasAttribute("data-vaul-no-drag")||G.closest("[data-vaul-no-drag]"))return!1;if(E==="right"||E==="left")return!0;if(ee.current&&se.getTime()-ee.current.getTime()<500)return!1;if(ne!==null&&(E==="bottom"?ne>0:ne<0))return!0;if(K&&K.length>0)return!1;if(Y.current&&se.getTime()-Y.current.getTime()G.clientHeight){if(G.scrollTop!==0)return Y.current=new Date,!1;if(G.getAttribute("role")==="dialog")return!0}G=G.parentNode}return!0}function mr(B){if(ie.current&&I){const A=E==="bottom"||E==="right"?1:-1,_=(ce.current-(He(E)?B.pageY:B.pageX))*A,G=_>0,K=s&&!d&&!G;if(K&&Be===0)return;const ne=Math.abs(_),se=document.querySelector("[data-vaul-drawer-wrapper]"),ge=E==="bottom"||E==="top"?rt.current:Ct.current;let pe=ne/ge;const ye=$o(ne,G);if(ye!==null&&(pe=ye),K&&pe>=1||!re.current&&!Ht(B.target,G))return;if(ie.current.classList.add(Ul),re.current=!0,Ge(ie.current,{transition:"none"}),Ge(J.current,{transition:"none"}),s&&Ue({draggedDistance:_}),G&&!s){const xe=CE(_),Ae=Math.min(xe*-1,0)*A;Ge(ie.current,{transform:He(E)?`translate3d(0, ${Ae}px, 0)`:`translate3d(${Ae}px, 0, 0)`});return}const Te=1-pe;if((pr||h&&Be===h-1)&&(r==null||r(B,pe),Ge(J.current,{opacity:`${Te}`,transition:"none"},!0)),se&&J.current&&a){const xe=Math.min(Rn()+pe*(1-Rn()),1),Ae=8-pe*8,$r=Math.max(0,14-pe*14);Ge(se,{borderRadius:`${Ae}px`,transform:He(E)?`scale(${xe}) translate3d(0, ${$r}px, 0)`:`scale(${xe}) translate3d(${$r}px, 0, 0)`,transition:"none"},!0)}if(!s){const xe=ne*A;Ge(ie.current,{transform:He(E)?`translate3d(0, ${xe}px, 0)`:`translate3d(${xe}px, 0, 0)`})}}}D.useEffect(()=>{window.requestAnimationFrame(()=>{le.current=!0})},[]),D.useEffect(()=>{var B;function A(){if(!ie.current||!O)return;const _=document.activeElement;if(nu(_)||oe.current){var G;const K=((G=window.visualViewport)==null?void 0:G.height)||0,ne=window.innerHeight;let se=ne-K;const ge=ie.current.getBoundingClientRect().height||0,pe=ge>ne*.8;Ze.current||(Ze.current=ge);const ye=ie.current.getBoundingClientRect().top;if(Math.abs(he.current-se)>60&&(oe.current=!oe.current),s&&s.length>0&&Ce&&Be){const Te=Ce[Be]||0;se+=Te}if(he.current=se,ge>K||oe.current){const Te=ie.current.getBoundingClientRect().height;let xe=Te;Te>K&&(xe=K-(pe?ye:ru)),w?ie.current.style.height=`${Te-Math.max(se,0)}px`:ie.current.style.height=`${Math.max(xe,K-ye)}px`}else dE()||(ie.current.style.height=`${Ze.current}px`);s&&s.length>0&&!oe.current?ie.current.style.bottom="0px":ie.current.style.bottom=`${Math.max(se,0)}px`}}return(B=window.visualViewport)==null||B.addEventListener("resize",A),()=>{var _;return(_=window.visualViewport)==null?void 0:_.removeEventListener("resize",A)}},[Be,s,Ce]);function ft(B){hr(),g==null||g(),B||U(!1),setTimeout(()=>{s&&Ee(s[0])},_e.DURATION*1e3)}function _n(){if(!ie.current)return;const B=document.querySelector("[data-vaul-drawer-wrapper]"),A=gs(ie.current,E);Ge(ie.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`}),Ge(J.current,{transition:`opacity ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,opacity:"1"}),a&&A&&A>0&&V&&Ge(B,{borderRadius:`${Mv}px`,overflow:"hidden",...He(E)?{transform:`scale(${Rn()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${Rn()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${_e.DURATION}s`,transitionTimingFunction:`cubic-bezier(${_e.EASE.join(",")})`},!0)}function hr(){!I||!ie.current||(ie.current.classList.remove(Ul),re.current=!1,W(!1),ve.current=new Date)}function zr(B){if(!I||!ie.current)return;ie.current.classList.remove(Ul),re.current=!1,W(!1),ve.current=new Date;const A=gs(ie.current,E);if(!B||!Ht(B.target,!1)||!A||Number.isNaN(A)||ue.current===null)return;const _=ve.current.getTime()-ue.current.getTime(),G=ce.current-(He(E)?B.pageY:B.pageX),K=Math.abs(G)/_;if(K>.05&&(Q(!0),setTimeout(()=>{Q(!1)},200)),s){it({draggedDistance:G*(E==="bottom"||E==="right"?1:-1),closeDrawer:ft,velocity:K,dismissible:d}),o==null||o(B,!0);return}if(E==="bottom"||E==="right"?G>0:G<0){_n(),o==null||o(B,!0);return}if(K>Rv){ft(),o==null||o(B,!1);return}var ne;const se=Math.min((ne=ie.current.getBoundingClientRect().height)!=null?ne:0,window.innerHeight);var ge;const pe=Math.min((ge=ie.current.getBoundingClientRect().width)!=null?ge:0,window.innerWidth),ye=E==="left"||E==="right";if(Math.abs(A)>=(ye?pe:se)*c){ft(),o==null||o(B,!1);return}o==null||o(B,!0),_n()}D.useEffect(()=>(V&&(Ge(document.documentElement,{scrollBehavior:"auto"}),ee.current=new Date),()=>{EE(document.documentElement,"scrollBehavior")}),[V]);function H(B){const A=B?(window.innerWidth-gr)/window.innerWidth:1,_=B?-gr:0;de.current&&window.clearTimeout(de.current),Ge(ie.current,{transition:`transform ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,transform:He(E)?`scale(${A}) translate3d(0, ${_}px, 0)`:`scale(${A}) translate3d(${_}, 0, 0)`}),!B&&ie.current&&(de.current=setTimeout(()=>{const G=gs(ie.current,E);Ge(ie.current,{transition:"none",transform:He(E)?`translate3d(0, ${G}px, 0)`:`translate3d(${G}px, 0, 0)`})},500))}function M(B,A){if(A<0)return;const _=(window.innerWidth-gr)/window.innerWidth,G=_+A*(1-_),K=-gr+A*gr;Ge(ie.current,{transform:He(E)?`scale(${G}) translate3d(0, ${K}px, 0)`:`scale(${G}) translate3d(${K}px, 0, 0)`,transition:"none"})}function F(B,A){const _=He(E)?window.innerHeight:window.innerWidth,G=A?(_-gr)/_:1,K=A?-gr:0;A&&Ge(ie.current,{transition:`transform ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,transform:He(E)?`scale(${G}) translate3d(0, ${K}px, 0)`:`scale(${G}) translate3d(${K}px, 0, 0)`})}return D.useEffect(()=>{S||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[S]),D.createElement(Sv,{defaultOpen:C,onOpenChange:B=>{!d&&!B||(B?L(!0):ft(!0),U(B))},open:V},D.createElement(Pv.Provider,{value:{activeSnapPoint:dt,snapPoints:s,setActiveSnapPoint:Ee,drawerRef:ie,overlayRef:J,onOpenChange:t,onPress:Mn,onRelease:zr,onDrag:mr,dismissible:d,shouldAnimate:le,handleOnly:f,isOpen:V,isDragging:I,shouldFade:pr,closeDrawer:ft,onNestedDrag:M,onNestedOpenChange:H,onNestedRelease:F,keyboardIsOpen:oe,modal:S,snapPointsOffset:Ce,activeSnapPointIndex:Be,direction:E,shouldScaleBackground:a,setBackgroundColorOnScale:l,noBodyStyles:y,container:z,autoFocus:j}},n))}const Dv=D.forwardRef(function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:o,shouldFade:s,isOpen:a,modal:l,shouldAnimate:c}=_o(),u=Ov(t,n),d=r&&r.length>0;if(!l)return null;const f=D.useCallback(h=>o(h),[o]);return D.createElement(Sd,{onMouseUp:f,ref:u,"data-vaul-overlay":"","data-vaul-snap-points":a&&d?"true":"false","data-vaul-snap-points-overlay":a&&s?"true":"false","data-vaul-animate":c!=null&&c.current?"true":"false",...e})});Dv.displayName="Drawer.Overlay";const Av=D.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},o){const{drawerRef:s,onPress:a,onRelease:l,onDrag:c,keyboardIsOpen:u,snapPointsOffset:d,activeSnapPointIndex:f,modal:h,isOpen:m,direction:x,snapPoints:w,container:S,handleOnly:g,shouldAnimate:p,autoFocus:y}=_o(),[E,C]=D.useState(!1),k=Ov(o,s),T=D.useRef(null),P=D.useRef(null),O=D.useRef(!1),R=w&&w.length>0;RE();const z=(N,$,V=0)=>{if(O.current)return!0;const U=Math.abs(N.y),X=Math.abs(N.x),L=X>U,I=["bottom","right"].includes($)?1:-1;if($==="left"||$==="right"){if(!(N.x*I<0)&&X>=0&&X<=V)return L}else if(!(N.y*I<0)&&U>=0&&U<=V)return!L;return O.current=!0,!0};D.useEffect(()=>{R&&window.requestAnimationFrame(()=>{C(!0)})},[]);function j(N){T.current=null,O.current=!1,l(N)}return D.createElement(Ed,{"data-vaul-drawer-direction":x,"data-vaul-drawer":"","data-vaul-delayed-snap-points":E?"true":"false","data-vaul-snap-points":m&&R?"true":"false","data-vaul-custom-container":S?"true":"false","data-vaul-animate":p!=null&&p.current?"true":"false",...r,ref:k,style:d&&d.length>0?{"--snap-point-height":`${d[f??0]}px`,...t}:t,onPointerDown:N=>{g||(r.onPointerDown==null||r.onPointerDown.call(r,N),T.current={x:N.pageX,y:N.pageY},a(N))},onOpenAutoFocus:N=>{n==null||n(N),y||N.preventDefault()},onPointerDownOutside:N=>{if(e==null||e(N),!h||N.defaultPrevented){N.preventDefault();return}u.current&&(u.current=!1)},onFocusOutside:N=>{if(!h){N.preventDefault();return}},onPointerMove:N=>{if(P.current=N,g||(r.onPointerMove==null||r.onPointerMove.call(r,N),!T.current))return;const $=N.pageY-T.current.y,V=N.pageX-T.current.x,U=N.pointerType==="touch"?10:2;z({x:V,y:$},x,U)?c(N):(Math.abs(V)>U||Math.abs($)>U)&&(T.current=null)},onPointerUp:N=>{r.onPointerUp==null||r.onPointerUp.call(r,N),T.current=null,O.current=!1,l(N)},onPointerOut:N=>{r.onPointerOut==null||r.onPointerOut.call(r,N),j(P.current)},onContextMenu:N=>{r.onContextMenu==null||r.onContextMenu.call(r,N),P.current&&j(P.current)}})});Av.displayName="Drawer.Content";const _E=250,LE=120,zv=D.forwardRef(function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:o,isDragging:s,snapPoints:a,activeSnapPoint:l,setActiveSnapPoint:c,dismissible:u,handleOnly:d,isOpen:f,onPress:h,onDrag:m}=_o(),x=D.useRef(null),w=D.useRef(!1);function S(){if(w.current){y();return}window.setTimeout(()=>{g()},LE)}function g(){if(s||e||w.current){y();return}if(y(),!a||a.length===0){u||o();return}if(l===a[a.length-1]&&u){o();return}const C=a.findIndex(T=>T===l);if(C===-1)return;const k=a[C+1];c(k)}function p(){x.current=window.setTimeout(()=>{w.current=!0},_E)}function y(){x.current&&window.clearTimeout(x.current),w.current=!1}return D.createElement("div",{onClick:S,onPointerCancel:y,onPointerDown:E=>{d&&h(E),p()},onPointerMove:E=>{d&&m(E)},ref:r,"data-vaul-drawer-visible":f?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},D.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});zv.displayName="Drawer.Handle";function IE({onDrag:e,onOpenChange:t,...n}){const{onNestedDrag:r,onNestedOpenChange:o,onNestedRelease:s}=_o();if(!r)throw new Error("Drawer.NestedRoot must be placed in another drawer");return D.createElement(Iv,{nested:!0,onClose:()=>{o(!1)},onDrag:(a,l)=>{r(a,l),e==null||e(a,l)},onOpenChange:a=>{a&&o(a)},onRelease:s,...n})}function DE(e){const t=_o(),{container:n=t.container,...r}=e;return D.createElement(Cv,{container:n,...r})}const nn={Root:Iv,NestedRoot:IE,Content:Av,Overlay:Dv,Trigger:Ev,Portal:DE,Handle:zv,Close:Tv,Title:Cd,Description:Td};function $v(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{const t=BE(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const l=a.split(kd);return l[0]===""&&l.length!==1&&l.shift(),Bv(l,t)||$E(a)},getConflictingClassGroupIds:(a,l)=>{const c=n[a]||[];return l&&r[a]?[...c,...r[a]]:c}}},Bv=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Bv(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(kd);return(a=t.validators.find(({validator:l})=>l(s)))==null?void 0:a.classGroupId},Ap=/^\[(.+)\]$/,$E=e=>{if(Ap.test(e)){const t=Ap.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},BE=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return VE(Object.entries(e.classGroups),n).forEach(([s,a])=>{ou(a,r,s,t)}),r},ou=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:zp(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(FE(o)){ou(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,a])=>{ou(a,zp(t,s),n,r)})})},zp=(e,t)=>{let n=e;return t.split(kd).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},FE=e=>e.isThemeGetter,VE=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,l])=>[t+a,l])):s);return[n,o]}):e,HE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,a)=>{n.set(s,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set(s,a){n.has(s)?n.set(s,a):o(s,a)}}},Fv="!",WE=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,a=l=>{const c=[];let u=0,d=0,f;for(let S=0;Sd?f-d:void 0;return{modifiers:c,hasImportantModifier:m,baseClassName:x,maybePostfixModifierPosition:w}};return n?l=>n({className:l,parseClassName:a}):a},UE=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},GE=e=>({cache:HE(e.cacheSize),parseClassName:WE(e),...zE(e)}),YE=/\s+/,KE=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],a=e.trim().split(YE);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{modifiers:d,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:m}=n(u);let x=!!m,w=r(x?h.substring(0,m):h);if(!w){if(!x){l=u+(l.length>0?" "+l:l);continue}if(w=r(h),!w){l=u+(l.length>0?" "+l:l);continue}x=!1}const S=UE(d).join(":"),g=f?S+Fv:S,p=g+w;if(s.includes(p))continue;s.push(p);const y=o(w,x);for(let E=0;E0?" "+l:l)}return l};function XE(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rf(d),e());return n=GE(u),r=n.cache.get,o=n.cache.set,s=l,l(c)}function l(c){const u=r(c);if(u)return u;const d=KE(c,n);return o(c,d),d}return function(){return s(XE.apply(null,arguments))}}const ke=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Hv=/^\[(?:([a-z-]+):)?(.+)\]$/i,QE=/^\d+\/\d+$/,ZE=new Set(["px","full","screen"]),JE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,eC=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,tC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,nC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,mn=e=>mo(e)||ZE.has(e)||QE.test(e),In=e=>Lo(e,"length",dC),mo=e=>!!e&&!Number.isNaN(Number(e)),Gl=e=>Lo(e,"number",mo),qo=e=>!!e&&Number.isInteger(Number(e)),oC=e=>e.endsWith("%")&&mo(e.slice(0,-1)),fe=e=>Hv.test(e),Dn=e=>JE.test(e),iC=new Set(["length","size","percentage"]),sC=e=>Lo(e,iC,Wv),aC=e=>Lo(e,"position",Wv),lC=new Set(["image","url"]),cC=e=>Lo(e,lC,pC),uC=e=>Lo(e,"",fC),Qo=()=>!0,Lo=(e,t,n)=>{const r=Hv.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},dC=e=>eC.test(e)&&!tC.test(e),Wv=()=>!1,fC=e=>nC.test(e),pC=e=>rC.test(e),mC=()=>{const e=ke("colors"),t=ke("spacing"),n=ke("blur"),r=ke("brightness"),o=ke("borderColor"),s=ke("borderRadius"),a=ke("borderSpacing"),l=ke("borderWidth"),c=ke("contrast"),u=ke("grayscale"),d=ke("hueRotate"),f=ke("invert"),h=ke("gap"),m=ke("gradientColorStops"),x=ke("gradientColorStopPositions"),w=ke("inset"),S=ke("margin"),g=ke("opacity"),p=ke("padding"),y=ke("saturate"),E=ke("scale"),C=ke("sepia"),k=ke("skew"),T=ke("space"),P=ke("translate"),O=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",fe,t],j=()=>[fe,t],N=()=>["",mn,In],$=()=>["auto",mo,fe],V=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],L=()=>["start","end","center","between","around","evenly","stretch"],I=()=>["","0",fe],W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>[mo,fe];return{cacheSize:500,separator:":",theme:{colors:[Qo],spacing:[mn,In],blur:["none","",Dn,fe],brightness:Z(),borderColor:[e],borderRadius:["none","","full",Dn,fe],borderSpacing:j(),borderWidth:N(),contrast:Z(),grayscale:I(),hueRotate:Z(),invert:I(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[oC,In],inset:z(),margin:z(),opacity:Z(),padding:j(),saturate:Z(),scale:Z(),sepia:I(),skew:Z(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",fe]}],container:["container"],columns:[{columns:[Dn]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...V(),fe]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",qo,fe]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",fe]}],grow:[{grow:I()}],shrink:[{shrink:I()}],order:[{order:["first","last","none",qo,fe]}],"grid-cols":[{"grid-cols":[Qo]}],"col-start-end":[{col:["auto",{span:["full",qo,fe]},fe]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[Qo]}],"row-start-end":[{row:["auto",{span:[qo,fe]},fe]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",fe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",fe]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...L()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...L(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...L(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[S]}],mx:[{mx:[S]}],my:[{my:[S]}],ms:[{ms:[S]}],me:[{me:[S]}],mt:[{mt:[S]}],mr:[{mr:[S]}],mb:[{mb:[S]}],ml:[{ml:[S]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",fe,t]}],"min-w":[{"min-w":[fe,t,"min","max","fit"]}],"max-w":[{"max-w":[fe,t,"none","full","min","max","fit","prose",{screen:[Dn]},Dn]}],h:[{h:[fe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[fe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[fe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[fe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Dn,In]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Gl]}],"font-family":[{font:[Qo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",fe]}],"line-clamp":[{"line-clamp":["none",mo,Gl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",mn,fe]}],"list-image":[{"list-image":["none",fe]}],"list-style-type":[{list:["none","disc","decimal",fe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",mn,In]}],"underline-offset":[{"underline-offset":["auto",mn,fe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",fe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...V(),aC]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",sC]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},cC]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:U()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[mn,fe]}],"outline-w":[{outline:[mn,In]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[mn,In]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Dn,uC]}],"shadow-color":[{shadow:[Qo]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Dn,fe]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[y]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",fe]}],duration:[{duration:Z()}],ease:[{ease:["linear","in","out","in-out",fe]}],delay:[{delay:Z()}],animate:[{animate:["none","spin","ping","pulse","bounce",fe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[qo,fe]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",fe]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",fe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",fe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[mn,In,Gl]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},hC=qE(mC);function Se(...e){return hC(AE(e))}const Nd=({shouldScaleBackground:e=!0,...t})=>v.jsx(nn.Root,{shouldScaleBackground:e,...t});Nd.displayName="Drawer";const Uv=nn.Trigger,gC=nn.Portal,Gv=nn.Close,Yv=b.forwardRef(({className:e,...t},n)=>v.jsx(nn.Overlay,{ref:n,className:Se("fixed inset-0 z-50 bg-black/80",e),...t}));Yv.displayName=nn.Overlay.displayName;const Od=b.forwardRef(({className:e,children:t,...n},r)=>v.jsxs(gC,{children:[v.jsx(Yv,{}),v.jsxs(nn.Content,{ref:r,className:Se("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border backdrop-blur-lg bg-black/50",e),...n,children:[v.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));Od.displayName="DrawerContent";const jd=({className:e,...t})=>v.jsx("div",{className:Se("grid gap-1.5 p-4 text-center sm:text-left",e),...t});jd.displayName="DrawerHeader";const Kv=({className:e,...t})=>v.jsx("div",{className:Se("mt-auto flex flex-col gap-2 p-4",e),...t});Kv.displayName="DrawerFooter";const Rd=b.forwardRef(({className:e,...t},n)=>v.jsx(nn.Title,{ref:n,className:Se("text-lg font-semibold leading-none tracking-tight",e),...t}));Rd.displayName=nn.Title.displayName;const Md=b.forwardRef(({className:e,...t},n)=>v.jsx(nn.Description,{ref:n,className:Se("text-sm text-muted-foreground",e),...t}));Md.displayName=nn.Description.displayName;function _d(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(o=>{if(!n[o]&&n.auto===!0){let s=ln(e.el,`.${r[o]}`)[0];s||(s=Mi("div",r[o]),s.className=r[o],e.el.append(s)),n[o]=s,t[o]=s}}),n}function Xv(e){let{swiper:t,extendParams:n,on:r,emit:o}=e;n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null};function s(x){let w;return x&&typeof x=="string"&&t.isElement&&(w=t.el.querySelector(x)||t.hostEl.querySelector(x),w)?w:(x&&(typeof x=="string"&&(w=[...document.querySelectorAll(x)]),t.params.uniqueNavElements&&typeof x=="string"&&w&&w.length>1&&t.el.querySelectorAll(x).length===1?w=t.el.querySelector(x):w&&w.length===1&&(w=w[0])),x&&!w?x:w)}function a(x,w){const S=t.params.navigation;x=Ye(x),x.forEach(g=>{g&&(g.classList[w?"add":"remove"](...S.disabledClass.split(" ")),g.tagName==="BUTTON"&&(g.disabled=w),t.params.watchOverflow&&t.enabled&&g.classList[t.isLocked?"add":"remove"](S.lockClass))})}function l(){const{nextEl:x,prevEl:w}=t.navigation;if(t.params.loop){a(w,!1),a(x,!1);return}a(w,t.isBeginning&&!t.params.rewind),a(x,t.isEnd&&!t.params.rewind)}function c(x){x.preventDefault(),!(t.isBeginning&&!t.params.loop&&!t.params.rewind)&&(t.slidePrev(),o("navigationPrev"))}function u(x){x.preventDefault(),!(t.isEnd&&!t.params.loop&&!t.params.rewind)&&(t.slideNext(),o("navigationNext"))}function d(){const x=t.params.navigation;if(t.params.navigation=_d(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(x.nextEl||x.prevEl))return;let w=s(x.nextEl),S=s(x.prevEl);Object.assign(t.navigation,{nextEl:w,prevEl:S}),w=Ye(w),S=Ye(S);const g=(p,y)=>{p&&p.addEventListener("click",y==="next"?u:c),!t.enabled&&p&&p.classList.add(...x.lockClass.split(" "))};w.forEach(p=>g(p,"next")),S.forEach(p=>g(p,"prev"))}function f(){let{nextEl:x,prevEl:w}=t.navigation;x=Ye(x),w=Ye(w);const S=(g,p)=>{g.removeEventListener("click",p==="next"?u:c),g.classList.remove(...t.params.navigation.disabledClass.split(" "))};x.forEach(g=>S(g,"next")),w.forEach(g=>S(g,"prev"))}r("init",()=>{t.params.navigation.enabled===!1?m():(d(),l())}),r("toEdge fromEdge lock unlock",()=>{l()}),r("destroy",()=>{f()}),r("enable disable",()=>{let{nextEl:x,prevEl:w}=t.navigation;if(x=Ye(x),w=Ye(w),t.enabled){l();return}[...x,...w].filter(S=>!!S).forEach(S=>S.classList.add(t.params.navigation.lockClass))}),r("click",(x,w)=>{let{nextEl:S,prevEl:g}=t.navigation;S=Ye(S),g=Ye(g);const p=w.target;let y=g.includes(p)||S.includes(p);if(t.isElement&&!y){const E=w.path||w.composedPath&&w.composedPath();E&&(y=E.find(C=>S.includes(C)||g.includes(C)))}if(t.params.navigation.hideOnClick&&!y){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===p||t.pagination.el.contains(p)))return;let E;S.length?E=S[0].classList.contains(t.params.navigation.hiddenClass):g.length&&(E=g[0].classList.contains(t.params.navigation.hiddenClass)),o(E===!0?"navigationShow":"navigationHide"),[...S,...g].filter(C=>!!C).forEach(C=>C.classList.toggle(t.params.navigation.hiddenClass))}});const h=()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),d(),l()},m=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),f()};Object.assign(t.navigation,{enable:h,disable:m,update:l,init:d,destroy:f})}function Wr(e){return e===void 0&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function qv(e){let{swiper:t,extendParams:n,on:r,emit:o}=e;const s="swiper-pagination";n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:p=>p,formatFractionTotal:p=>p,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),t.pagination={el:null,bullets:[]};let a,l=0;function c(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function u(p,y){const{bulletActiveClass:E}=t.params.pagination;p&&(p=p[`${y==="prev"?"previous":"next"}ElementSibling`],p&&(p.classList.add(`${E}-${y}`),p=p[`${y==="prev"?"previous":"next"}ElementSibling`],p&&p.classList.add(`${E}-${y}-${y}`)))}function d(p,y,E){if(p=p%E,y=y%E,y===p+1)return"next";if(y===p-1)return"previous"}function f(p){const y=p.target.closest(Wr(t.params.pagination.bulletClass));if(!y)return;p.preventDefault();const E=ha(y)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===E)return;const C=d(t.realIndex,E,t.slides.length);C==="next"?t.slideNext():C==="previous"?t.slidePrev():t.slideToLoop(E)}else t.slideTo(E)}function h(){const p=t.rtl,y=t.params.pagination;if(c())return;let E=t.pagination.el;E=Ye(E);let C,k;const T=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,P=t.params.loop?Math.ceil(T/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(k=t.previousRealIndex||0,C=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):typeof t.snapIndex<"u"?(C=t.snapIndex,k=t.previousSnapIndex):(k=t.previousIndex||0,C=t.activeIndex||0),y.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){const O=t.pagination.bullets;let R,z,j;if(y.dynamicBullets&&(a=Xc(O[0],t.isHorizontal()?"width":"height"),E.forEach(N=>{N.style[t.isHorizontal()?"width":"height"]=`${a*(y.dynamicMainBullets+4)}px`}),y.dynamicMainBullets>1&&k!==void 0&&(l+=C-(k||0),l>y.dynamicMainBullets-1?l=y.dynamicMainBullets-1:l<0&&(l=0)),R=Math.max(C-l,0),z=R+(Math.min(O.length,y.dynamicMainBullets)-1),j=(z+R)/2),O.forEach(N=>{const $=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(V=>`${y.bulletActiveClass}${V}`)].map(V=>typeof V=="string"&&V.includes(" ")?V.split(" "):V).flat();N.classList.remove(...$)}),E.length>1)O.forEach(N=>{const $=ha(N);$===C?N.classList.add(...y.bulletActiveClass.split(" ")):t.isElement&&N.setAttribute("part","bullet"),y.dynamicBullets&&($>=R&&$<=z&&N.classList.add(...`${y.bulletActiveClass}-main`.split(" ")),$===R&&u(N,"prev"),$===z&&u(N,"next"))});else{const N=O[C];if(N&&N.classList.add(...y.bulletActiveClass.split(" ")),t.isElement&&O.forEach(($,V)=>{$.setAttribute("part",V===C?"bullet-active":"bullet")}),y.dynamicBullets){const $=O[R],V=O[z];for(let U=R;U<=z;U+=1)O[U]&&O[U].classList.add(...`${y.bulletActiveClass}-main`.split(" "));u($,"prev"),u(V,"next")}}if(y.dynamicBullets){const N=Math.min(O.length,y.dynamicMainBullets+4),$=(a*N-a)/2-j*a,V=p?"right":"left";O.forEach(U=>{U.style[t.isHorizontal()?V:"top"]=`${$}px`})}}E.forEach((O,R)=>{if(y.type==="fraction"&&(O.querySelectorAll(Wr(y.currentClass)).forEach(z=>{z.textContent=y.formatFractionCurrent(C+1)}),O.querySelectorAll(Wr(y.totalClass)).forEach(z=>{z.textContent=y.formatFractionTotal(P)})),y.type==="progressbar"){let z;y.progressbarOpposite?z=t.isHorizontal()?"vertical":"horizontal":z=t.isHorizontal()?"horizontal":"vertical";const j=(C+1)/P;let N=1,$=1;z==="horizontal"?N=j:$=j,O.querySelectorAll(Wr(y.progressbarFillClass)).forEach(V=>{V.style.transform=`translate3d(0,0,0) scaleX(${N}) scaleY(${$})`,V.style.transitionDuration=`${t.params.speed}ms`})}y.type==="custom"&&y.renderCustom?(O.innerHTML=y.renderCustom(t,C+1,P),R===0&&o("paginationRender",O)):(R===0&&o("paginationRender",O),o("paginationUpdate",O)),t.params.watchOverflow&&t.enabled&&O.classList[t.isLocked?"add":"remove"](y.lockClass)})}function m(){const p=t.params.pagination;if(c())return;const y=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let E=t.pagination.el;E=Ye(E);let C="";if(p.type==="bullets"){let k=t.params.loop?Math.ceil(y/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&k>y&&(k=y);for(let T=0;T`}p.type==="fraction"&&(p.renderFraction?C=p.renderFraction.call(t,p.currentClass,p.totalClass):C=` / `),p.type==="progressbar"&&(p.renderProgressbar?C=p.renderProgressbar.call(t,p.progressbarFillClass):C=``),t.pagination.bullets=[],E.forEach(k=>{p.type!=="custom"&&(k.innerHTML=C||""),p.type==="bullets"&&t.pagination.bullets.push(...k.querySelectorAll(Wr(p.bulletClass)))}),p.type!=="custom"&&o("paginationRender",E[0])}function x(){t.params.pagination=_d(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const p=t.params.pagination;if(!p.el)return;let y;typeof p.el=="string"&&t.isElement&&(y=t.el.querySelector(p.el)),!y&&typeof p.el=="string"&&(y=[...document.querySelectorAll(p.el)]),y||(y=p.el),!(!y||y.length===0)&&(t.params.uniqueNavElements&&typeof p.el=="string"&&Array.isArray(y)&&y.length>1&&(y=[...t.el.querySelectorAll(p.el)],y.length>1&&(y=y.filter(E=>Og(E,".swiper")[0]===t.el)[0])),Array.isArray(y)&&y.length===1&&(y=y[0]),Object.assign(t.pagination,{el:y}),y=Ye(y),y.forEach(E=>{p.type==="bullets"&&p.clickable&&E.classList.add(...(p.clickableClass||"").split(" ")),E.classList.add(p.modifierClass+p.type),E.classList.add(t.isHorizontal()?p.horizontalClass:p.verticalClass),p.type==="bullets"&&p.dynamicBullets&&(E.classList.add(`${p.modifierClass}${p.type}-dynamic`),l=0,p.dynamicMainBullets<1&&(p.dynamicMainBullets=1)),p.type==="progressbar"&&p.progressbarOpposite&&E.classList.add(p.progressbarOppositeClass),p.clickable&&E.addEventListener("click",f),t.enabled||E.classList.add(p.lockClass)}))}function w(){const p=t.params.pagination;if(c())return;let y=t.pagination.el;y&&(y=Ye(y),y.forEach(E=>{E.classList.remove(p.hiddenClass),E.classList.remove(p.modifierClass+p.type),E.classList.remove(t.isHorizontal()?p.horizontalClass:p.verticalClass),p.clickable&&(E.classList.remove(...(p.clickableClass||"").split(" ")),E.removeEventListener("click",f))})),t.pagination.bullets&&t.pagination.bullets.forEach(E=>E.classList.remove(...p.bulletActiveClass.split(" ")))}r("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const p=t.params.pagination;let{el:y}=t.pagination;y=Ye(y),y.forEach(E=>{E.classList.remove(p.horizontalClass,p.verticalClass),E.classList.add(t.isHorizontal()?p.horizontalClass:p.verticalClass)})}),r("init",()=>{t.params.pagination.enabled===!1?g():(x(),m(),h())}),r("activeIndexChange",()=>{typeof t.snapIndex>"u"&&h()}),r("snapIndexChange",()=>{h()}),r("snapGridLengthChange",()=>{m(),h()}),r("destroy",()=>{w()}),r("enable disable",()=>{let{el:p}=t.pagination;p&&(p=Ye(p),p.forEach(y=>y.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),r("lock unlock",()=>{h()}),r("click",(p,y)=>{const E=y.target,C=Ye(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&C&&C.length>0&&!E.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&E===t.navigation.nextEl||t.navigation.prevEl&&E===t.navigation.prevEl))return;const k=C[0].classList.contains(t.params.pagination.hiddenClass);o(k===!0?"paginationShow":"paginationHide"),C.forEach(T=>T.classList.toggle(t.params.pagination.hiddenClass))}});const S=()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:p}=t.pagination;p&&(p=Ye(p),p.forEach(y=>y.classList.remove(t.params.pagination.paginationDisabledClass))),x(),m(),h()},g=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:p}=t.pagination;p&&(p=Ye(p),p.forEach(y=>y.classList.add(t.params.pagination.paginationDisabledClass))),w()};Object.assign(t.pagination,{enable:S,disable:g,render:m,update:h,init:x,destroy:w})}function vC(e){let{swiper:t,extendParams:n,on:r,emit:o}=e;const s=Qt();let a=!1,l=null,c=null,u,d,f,h;n({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null};function m(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:j,rtlTranslate:N}=t,{dragEl:$,el:V}=j,U=t.params.scrollbar,X=t.params.loop?t.progressLoop:t.progress;let L=d,I=(f-d)*X;N?(I=-I,I>0?(L=d-I,I=0):-I+d>f&&(L=f+I)):I<0?(L=d+I,I=0):I+d>f&&(L=f-I),t.isHorizontal()?($.style.transform=`translate3d(${I}px, 0, 0)`,$.style.width=`${L}px`):($.style.transform=`translate3d(0px, ${I}px, 0)`,$.style.height=`${L}px`),U.hide&&(clearTimeout(l),V.style.opacity=1,l=setTimeout(()=>{V.style.opacity=0,V.style.transitionDuration="400ms"},1e3))}function x(j){!t.params.scrollbar.el||!t.scrollbar.el||(t.scrollbar.dragEl.style.transitionDuration=`${j}ms`)}function w(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:j}=t,{dragEl:N,el:$}=j;N.style.width="",N.style.height="",f=t.isHorizontal()?$.offsetWidth:$.offsetHeight,h=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),t.params.scrollbar.dragSize==="auto"?d=f*h:d=parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?N.style.width=`${d}px`:N.style.height=`${d}px`,h>=1?$.style.display="none":$.style.display="",t.params.scrollbar.hide&&($.style.opacity=0),t.params.watchOverflow&&t.enabled&&j.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}function S(j){return t.isHorizontal()?j.clientX:j.clientY}function g(j){const{scrollbar:N,rtlTranslate:$}=t,{el:V}=N;let U;U=(S(j)-o2(V)[t.isHorizontal()?"left":"top"]-(u!==null?u:d/2))/(f-d),U=Math.max(Math.min(U,1),0),$&&(U=1-U);const X=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*U;t.updateProgress(X),t.setTranslate(X),t.updateActiveIndex(),t.updateSlidesClasses()}function p(j){const N=t.params.scrollbar,{scrollbar:$,wrapperEl:V}=t,{el:U,dragEl:X}=$;a=!0,u=j.target===X?S(j)-j.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,j.preventDefault(),j.stopPropagation(),V.style.transitionDuration="100ms",X.style.transitionDuration="100ms",g(j),clearTimeout(c),U.style.transitionDuration="0ms",N.hide&&(U.style.opacity=1),t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="none"),o("scrollbarDragStart",j)}function y(j){const{scrollbar:N,wrapperEl:$}=t,{el:V,dragEl:U}=N;a&&(j.preventDefault&&j.cancelable?j.preventDefault():j.returnValue=!1,g(j),$.style.transitionDuration="0ms",V.style.transitionDuration="0ms",U.style.transitionDuration="0ms",o("scrollbarDragMove",j))}function E(j){const N=t.params.scrollbar,{scrollbar:$,wrapperEl:V}=t,{el:U}=$;a&&(a=!1,t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="",V.style.transitionDuration=""),N.hide&&(clearTimeout(c),c=fa(()=>{U.style.opacity=0,U.style.transitionDuration="400ms"},1e3)),o("scrollbarDragEnd",j),N.snapOnRelease&&t.slideToClosest())}function C(j){const{scrollbar:N,params:$}=t,V=N.el;if(!V)return;const U=V,X=$.passiveListeners?{passive:!1,capture:!1}:!1,L=$.passiveListeners?{passive:!0,capture:!1}:!1;if(!U)return;const I=j==="on"?"addEventListener":"removeEventListener";U[I]("pointerdown",p,X),s[I]("pointermove",y,X),s[I]("pointerup",E,L)}function k(){!t.params.scrollbar.el||!t.scrollbar.el||C("on")}function T(){!t.params.scrollbar.el||!t.scrollbar.el||C("off")}function P(){const{scrollbar:j,el:N}=t;t.params.scrollbar=_d(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const $=t.params.scrollbar;if(!$.el)return;let V;if(typeof $.el=="string"&&t.isElement&&(V=t.el.querySelector($.el)),!V&&typeof $.el=="string"){if(V=s.querySelectorAll($.el),!V.length)return}else V||(V=$.el);t.params.uniqueNavElements&&typeof $.el=="string"&&V.length>1&&N.querySelectorAll($.el).length===1&&(V=N.querySelector($.el)),V.length>0&&(V=V[0]),V.classList.add(t.isHorizontal()?$.horizontalClass:$.verticalClass);let U;V&&(U=V.querySelector(Wr(t.params.scrollbar.dragClass)),U||(U=Mi("div",t.params.scrollbar.dragClass),V.append(U))),Object.assign(j,{el:V,dragEl:U}),$.draggable&&k(),V&&V.classList[t.enabled?"remove":"add"](...An(t.params.scrollbar.lockClass))}function O(){const j=t.params.scrollbar,N=t.scrollbar.el;N&&N.classList.remove(...An(t.isHorizontal()?j.horizontalClass:j.verticalClass)),T()}r("changeDirection",()=>{if(!t.scrollbar||!t.scrollbar.el)return;const j=t.params.scrollbar;let{el:N}=t.scrollbar;N=Ye(N),N.forEach($=>{$.classList.remove(j.horizontalClass,j.verticalClass),$.classList.add(t.isHorizontal()?j.horizontalClass:j.verticalClass)})}),r("init",()=>{t.params.scrollbar.enabled===!1?z():(P(),w(),m())}),r("update resize observerUpdate lock unlock changeDirection",()=>{w()}),r("setTranslate",()=>{m()}),r("setTransition",(j,N)=>{x(N)}),r("enable disable",()=>{const{el:j}=t.scrollbar;j&&j.classList[t.enabled?"remove":"add"](...An(t.params.scrollbar.lockClass))}),r("destroy",()=>{O()});const R=()=>{t.el.classList.remove(...An(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.remove(...An(t.params.scrollbar.scrollbarDisabledClass)),P(),w(),m()},z=()=>{t.el.classList.add(...An(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.add(...An(t.params.scrollbar.scrollbarDisabledClass)),O()};Object.assign(t.scrollbar,{enable:R,disable:z,updateSize:w,setTranslate:m,init:P,destroy:O})}function Qv(e){let{swiper:t,extendParams:n,on:r,emit:o,params:s}=e;t.autoplay={running:!1,paused:!1,timeLeft:0},n({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,l,c=s&&s.autoplay?s.autoplay.delay:3e3,u=s&&s.autoplay?s.autoplay.delay:3e3,d,f=new Date().getTime(),h,m,x,w,S,g,p;function y(L){!t||t.destroyed||!t.wrapperEl||L.target===t.wrapperEl&&(t.wrapperEl.removeEventListener("transitionend",y),!(p||L.detail&&L.detail.bySwiperTouchMove)&&R())}const E=()=>{if(t.destroyed||!t.autoplay.running)return;t.autoplay.paused?h=!0:h&&(u=d,h=!1);const L=t.autoplay.paused?d:f+u-new Date().getTime();t.autoplay.timeLeft=L,o("autoplayTimeLeft",L,L/c),l=requestAnimationFrame(()=>{E()})},C=()=>{let L;return t.virtual&&t.params.virtual.enabled?L=t.slides.filter(W=>W.classList.contains("swiper-slide-active"))[0]:L=t.slides[t.activeIndex],L?parseInt(L.getAttribute("data-swiper-autoplay"),10):void 0},k=L=>{if(t.destroyed||!t.autoplay.running)return;cancelAnimationFrame(l),E();let I=typeof L>"u"?t.params.autoplay.delay:L;c=t.params.autoplay.delay,u=t.params.autoplay.delay;const W=C();!Number.isNaN(W)&&W>0&&typeof L>"u"&&(I=W,c=W,u=W),d=I;const Z=t.params.speed,Q=()=>{!t||t.destroyed||(t.params.autoplay.reverseDirection?!t.isBeginning||t.params.loop||t.params.rewind?(t.slidePrev(Z,!0,!0),o("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(t.slides.length-1,Z,!0,!0),o("autoplay")):!t.isEnd||t.params.loop||t.params.rewind?(t.slideNext(Z,!0,!0),o("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(0,Z,!0,!0),o("autoplay")),t.params.cssMode&&(f=new Date().getTime(),requestAnimationFrame(()=>{k()})))};return I>0?(clearTimeout(a),a=setTimeout(()=>{Q()},I)):requestAnimationFrame(()=>{Q()}),I},T=()=>{f=new Date().getTime(),t.autoplay.running=!0,k(),o("autoplayStart")},P=()=>{t.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(l),o("autoplayStop")},O=(L,I)=>{if(t.destroyed||!t.autoplay.running)return;clearTimeout(a),L||(g=!0);const W=()=>{o("autoplayPause"),t.params.autoplay.waitForTransition?t.wrapperEl.addEventListener("transitionend",y):R()};if(t.autoplay.paused=!0,I){S&&(d=t.params.autoplay.delay),S=!1,W();return}d=(d||t.params.autoplay.delay)-(new Date().getTime()-f),!(t.isEnd&&d<0&&!t.params.loop)&&(d<0&&(d=0),W())},R=()=>{t.isEnd&&d<0&&!t.params.loop||t.destroyed||!t.autoplay.running||(f=new Date().getTime(),g?(g=!1,k(d)):k(),t.autoplay.paused=!1,o("autoplayResume"))},z=()=>{if(t.destroyed||!t.autoplay.running)return;const L=Qt();L.visibilityState==="hidden"&&(g=!0,O(!0)),L.visibilityState==="visible"&&R()},j=L=>{L.pointerType==="mouse"&&(g=!0,p=!0,!(t.animating||t.autoplay.paused)&&O(!0))},N=L=>{L.pointerType==="mouse"&&(p=!1,t.autoplay.paused&&R())},$=()=>{t.params.autoplay.pauseOnMouseEnter&&(t.el.addEventListener("pointerenter",j),t.el.addEventListener("pointerleave",N))},V=()=>{t.el&&typeof t.el!="string"&&(t.el.removeEventListener("pointerenter",j),t.el.removeEventListener("pointerleave",N))},U=()=>{Qt().addEventListener("visibilitychange",z)},X=()=>{Qt().removeEventListener("visibilitychange",z)};r("init",()=>{t.params.autoplay.enabled&&($(),U(),T())}),r("destroy",()=>{V(),X(),t.autoplay.running&&P()}),r("_freeModeStaticRelease",()=>{(x||g)&&R()}),r("_freeModeNoMomentumRelease",()=>{t.params.autoplay.disableOnInteraction?P():O(!0,!0)}),r("beforeTransitionStart",(L,I,W)=>{t.destroyed||!t.autoplay.running||(W||!t.params.autoplay.disableOnInteraction?O(!0,!0):P())}),r("sliderFirstMove",()=>{if(!(t.destroyed||!t.autoplay.running)){if(t.params.autoplay.disableOnInteraction){P();return}m=!0,x=!1,g=!1,w=setTimeout(()=>{g=!0,x=!0,O(!0)},200)}}),r("touchEnd",()=>{if(!(t.destroyed||!t.autoplay.running||!m)){if(clearTimeout(w),clearTimeout(a),t.params.autoplay.disableOnInteraction){x=!1,m=!1;return}x&&t.params.cssMode&&R(),x=!1,m=!1}}),r("slideChange",()=>{t.destroyed||!t.autoplay.running||(S=!0)}),Object.assign(t.autoplay,{start:T,stop:P,pause:O,resume:R})}function yC(e){const{effect:t,swiper:n,on:r,setTranslate:o,setTransition:s,overwriteParams:a,perspective:l,recreateShadows:c,getEffectParams:u}=e;r("beforeInit",()=>{if(n.params.effect!==t)return;n.classNames.push(`${n.params.containerModifierClass}${t}`),l&&l()&&n.classNames.push(`${n.params.containerModifierClass}3d`);const f=a?a():{};Object.assign(n.params,f),Object.assign(n.originalParams,f)}),r("setTranslate",()=>{n.params.effect===t&&o()}),r("setTransition",(f,h)=>{n.params.effect===t&&s(h)}),r("transitionEnd",()=>{if(n.params.effect===t&&c){if(!u||!u().slideShadows)return;n.slides.forEach(f=>{f.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(h=>h.remove())}),c()}});let d;r("virtualUpdate",()=>{n.params.effect===t&&(n.slides.length||(d=!0),requestAnimationFrame(()=>{d&&n.slides&&n.slides.length&&(o(),d=!1)}))})}function wC(e,t){const n=Ng(t);return n!==t&&(n.style.backfaceVisibility="hidden",n.style["-webkit-backface-visibility"]="hidden"),n}function xC(e){let{swiper:t,duration:n,transformElements:r,allSlides:o}=e;const{activeIndex:s}=t,a=l=>l.parentElement?l.parentElement:t.slides.filter(u=>u.shadowRoot&&u.shadowRoot===l.parentNode)[0];if(t.params.virtualTranslate&&n!==0){let l=!1,c;o?c=r:c=r.filter(u=>{const d=u.classList.contains("swiper-slide-transform")?a(u):u;return t.getSlideIndex(d)===s}),c.forEach(u=>{a2(u,()=>{if(l||!t||t.destroyed)return;l=!0,t.animating=!1;const d=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(d)})})}}function bC(e){let{swiper:t,extendParams:n,on:r}=e;n({fadeEffect:{crossFade:!1}}),yC({effect:"fade",swiper:t,on:r,setTranslate:()=>{const{slides:a}=t,l=t.params.fadeEffect;for(let c=0;c{const l=t.slides.map(c=>Ng(c));l.forEach(c=>{c.style.transitionDuration=`${a}ms`}),xC({swiper:t,duration:a,transformElements:l,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})}var SC=e=>{switch(e){case"success":return TC;case"info":return kC;case"warning":return PC;case"error":return NC;default:return null}},EC=Array(12).fill(0),CC=({visible:e,className:t})=>D.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},D.createElement("div",{className:"sonner-spinner"},EC.map((n,r)=>D.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),TC=D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},D.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"})),PC=D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},D.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"})),kC=D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},D.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"})),NC=D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},D.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"})),OC=D.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"},D.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),D.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),jC=()=>{let[e,t]=D.useState(document.hidden);return D.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},iu=1,RC=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let 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;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:iu++,s=this.toasts.find(l=>l.id===o),a=e.dismissible===void 0?!0:e.dismissible;return s?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...e,id:o,title:n}),{...l,...e,id:o,dismissible:a,title:n}):l):this.addToast({title:n,...r,dismissible:a,id:o}),o},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,s,a=r.then(async c=>{if(s=["resolve",c],D.isValidElement(c))o=!1,this.create({id:n,type:"default",message:c});else if(_C(c)&&!c.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${c.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${c.status}`):t.description;this.create({id:n,type:"error",message:u,description:d})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(c):t.success,d=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async c=>{if(s=["reject",c],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(c):t.error,d=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var c;o&&(this.dismiss(n),n=void 0),(c=t.finally)==null||c.call(t)}),l=()=>new Promise((c,u)=>a.then(()=>s[0]==="reject"?u(s[1]):c(s[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||iu++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},Tt=new RC,MC=(e,t)=>{let n=(t==null?void 0:t.id)||iu++;return Tt.addToast({title:e,...t,id:n}),n},_C=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",LC=MC,IC=()=>Tt.toasts,lt=Object.assign(LC,{success:Tt.success,info:Tt.info,warning:Tt.warning,error:Tt.error,custom:Tt.custom,message:Tt.message,promise:Tt.promise,dismiss:Tt.dismiss,loading:Tt.loading},{getHistory:IC});function DC(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}DC(`:where(html[dir="ltr"]),:where([data-sonner-toaster][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%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][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%)}:where([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:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([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);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([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 #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([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)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([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;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([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);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-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([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}:where([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}:where([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, 0px));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:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--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-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-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--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, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--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-rich-colors=true][data-sonner-toast][data-type=success],[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],[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],[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],[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:nth-child(1){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)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{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 vs(e){return e.label!==void 0}var AC=3,zC="32px",$p=4e3,$C=356,BC=14,FC=20,VC=200;function HC(...e){return e.filter(Boolean).join(" ")}var WC=e=>{var t,n,r,o,s,a,l,c,u,d,f;let{invert:h,toast:m,unstyled:x,interacting:w,setHeights:S,visibleToasts:g,heights:p,index:y,toasts:E,expanded:C,removeToast:k,defaultRichColors:T,closeButton:P,style:O,cancelButtonStyle:R,actionButtonStyle:z,className:j="",descriptionClassName:N="",duration:$,position:V,gap:U,loadingIcon:X,expandByDefault:L,classNames:I,icons:W,closeButtonAriaLabel:Z="Close toast",pauseWhenPageIsHidden:Q,cn:J}=e,[ee,ue]=D.useState(!1),[ve,Y]=D.useState(!1),[re,de]=D.useState(!1),[ce,oe]=D.useState(!1),[le,he]=D.useState(!1),[ie,rt]=D.useState(0),[Ct,Ze]=D.useState(0),ot=D.useRef(m.duration||$||$p),dt=D.useRef(null),Be=D.useRef(null),Ee=y===0,it=y+1<=g,Ce=m.type,Ue=m.dismissible!==!1,pr=m.className||"",$o=m.descriptionClassName||"",Vt=D.useMemo(()=>p.findIndex(_=>_.toastId===m.id)||0,[p,m.id]),Rn=D.useMemo(()=>{var _;return(_=m.closeButton)!=null?_:P},[m.closeButton,P]);D.useMemo(()=>m.duration||$||$p,[m.duration,$]);let Mn=D.useRef(0),Ht=D.useRef(0),mr=D.useRef(0),ft=D.useRef(null),[_n,hr]=V.split("-"),zr=D.useMemo(()=>p.reduce((_,G,K)=>K>=Vt?_:_+G.height,0),[p,Vt]),H=jC(),M=m.invert||h,F=Ce==="loading";Ht.current=D.useMemo(()=>Vt*U+zr,[Vt,zr]),D.useEffect(()=>{ue(!0)},[]),D.useEffect(()=>{let _=Be.current;if(_){let G=_.getBoundingClientRect().height;return Ze(G),S(K=>[{toastId:m.id,height:G,position:m.position},...K]),()=>S(K=>K.filter(ne=>ne.toastId!==m.id))}},[S,m.id]),D.useLayoutEffect(()=>{if(!ee)return;let _=Be.current,G=_.style.height;_.style.height="auto";let K=_.getBoundingClientRect().height;_.style.height=G,Ze(K),S(ne=>ne.find(se=>se.toastId===m.id)?ne.map(se=>se.toastId===m.id?{...se,height:K}:se):[{toastId:m.id,height:K,position:m.position},...ne])},[ee,m.title,m.description,S,m.id]);let B=D.useCallback(()=>{Y(!0),rt(Ht.current),S(_=>_.filter(G=>G.toastId!==m.id)),setTimeout(()=>{k(m)},VC)},[m,k,S,Ht]);D.useEffect(()=>{if(m.promise&&Ce==="loading"||m.duration===1/0||m.type==="loading")return;let _;return C||w||Q&&H?(()=>{if(mr.current{var G;(G=m.onAutoClose)==null||G.call(m,m),B()},ot.current)),()=>clearTimeout(_)},[C,w,m,Ce,Q,H,B]),D.useEffect(()=>{m.delete&&B()},[B,m.delete]);function A(){var _,G,K;return W!=null&&W.loading?D.createElement("div",{className:J(I==null?void 0:I.loader,(_=m==null?void 0:m.classNames)==null?void 0:_.loader,"sonner-loader"),"data-visible":Ce==="loading"},W.loading):X?D.createElement("div",{className:J(I==null?void 0:I.loader,(G=m==null?void 0:m.classNames)==null?void 0:G.loader,"sonner-loader"),"data-visible":Ce==="loading"},X):D.createElement(CC,{className:J(I==null?void 0:I.loader,(K=m==null?void 0:m.classNames)==null?void 0:K.loader),visible:Ce==="loading"})}return D.createElement("li",{tabIndex:0,ref:Be,className:J(j,pr,I==null?void 0:I.toast,(t=m==null?void 0:m.classNames)==null?void 0:t.toast,I==null?void 0:I.default,I==null?void 0:I[Ce],(n=m==null?void 0:m.classNames)==null?void 0:n[Ce]),"data-sonner-toast":"","data-rich-colors":(r=m.richColors)!=null?r:T,"data-styled":!(m.jsx||m.unstyled||x),"data-mounted":ee,"data-promise":!!m.promise,"data-swiped":le,"data-removed":ve,"data-visible":it,"data-y-position":_n,"data-x-position":hr,"data-index":y,"data-front":Ee,"data-swiping":re,"data-dismissible":Ue,"data-type":Ce,"data-invert":M,"data-swipe-out":ce,"data-expanded":!!(C||L&&ee),style:{"--index":y,"--toasts-before":y,"--z-index":E.length-y,"--offset":`${ve?ie:Ht.current}px`,"--initial-height":L?"auto":`${Ct}px`,...O,...m.style},onPointerDown:_=>{F||!Ue||(dt.current=new Date,rt(Ht.current),_.target.setPointerCapture(_.pointerId),_.target.tagName!=="BUTTON"&&(de(!0),ft.current={x:_.clientX,y:_.clientY}))},onPointerUp:()=>{var _,G,K,ne;if(ce||!Ue)return;ft.current=null;let se=Number(((_=Be.current)==null?void 0:_.style.getPropertyValue("--swipe-amount").replace("px",""))||0),ge=new Date().getTime()-((G=dt.current)==null?void 0:G.getTime()),pe=Math.abs(se)/ge;if(Math.abs(se)>=FC||pe>.11){rt(Ht.current),(K=m.onDismiss)==null||K.call(m,m),B(),oe(!0),he(!1);return}(ne=Be.current)==null||ne.style.setProperty("--swipe-amount","0px"),de(!1)},onPointerMove:_=>{var G,K,ne;if(!ft.current||!Ue)return;let se=_.clientY-ft.current.y,ge=((G=window.getSelection())==null?void 0:G.toString().length)>0;Number(((K=Be.current)==null?void 0:K.style.getPropertyValue("--swipe-amount").replace("px",""))||0)>0&&he(!0),!ge&&((ne=Be.current)==null||ne.style.setProperty("--swipe-amount",`${Math.max(0,se)}px`))}},Rn&&!m.jsx?D.createElement("button",{"aria-label":Z,"data-disabled":F,"data-close-button":!0,onClick:F||!Ue?()=>{}:()=>{var _;B(),(_=m.onDismiss)==null||_.call(m,m)},className:J(I==null?void 0:I.closeButton,(o=m==null?void 0:m.classNames)==null?void 0:o.closeButton)},(s=W==null?void 0:W.close)!=null?s:OC):null,m.jsx||D.isValidElement(m.title)?m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title:D.createElement(D.Fragment,null,Ce||m.icon||m.promise?D.createElement("div",{"data-icon":"",className:J(I==null?void 0:I.icon,(a=m==null?void 0:m.classNames)==null?void 0:a.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||A():null,m.type!=="loading"?m.icon||(W==null?void 0:W[Ce])||SC(Ce):null):null,D.createElement("div",{"data-content":"",className:J(I==null?void 0:I.content,(l=m==null?void 0:m.classNames)==null?void 0:l.content)},D.createElement("div",{"data-title":"",className:J(I==null?void 0:I.title,(c=m==null?void 0:m.classNames)==null?void 0:c.title)},typeof m.title=="function"?m.title():m.title),m.description?D.createElement("div",{"data-description":"",className:J(N,$o,I==null?void 0:I.description,(u=m==null?void 0:m.classNames)==null?void 0:u.description)},typeof m.description=="function"?m.description():m.description):null),D.isValidElement(m.cancel)?m.cancel:m.cancel&&vs(m.cancel)?D.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||R,onClick:_=>{var G,K;vs(m.cancel)&&Ue&&((K=(G=m.cancel).onClick)==null||K.call(G,_),B())},className:J(I==null?void 0:I.cancelButton,(d=m==null?void 0:m.classNames)==null?void 0:d.cancelButton)},m.cancel.label):null,D.isValidElement(m.action)?m.action:m.action&&vs(m.action)?D.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||z,onClick:_=>{var G,K;vs(m.action)&&((K=(G=m.action).onClick)==null||K.call(G,_),!_.defaultPrevented&&B())},className:J(I==null?void 0:I.actionButton,(f=m==null?void 0:m.classNames)==null?void 0:f.actionButton)},m.action.label):null))};function Bp(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var UC=b.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:a,className:l,offset:c,theme:u="light",richColors:d,duration:f,style:h,visibleToasts:m=AC,toastOptions:x,dir:w=Bp(),gap:S=BC,loadingIcon:g,icons:p,containerAriaLabel:y="Notifications",pauseWhenPageIsHidden:E,cn:C=HC}=e,[k,T]=D.useState([]),P=D.useMemo(()=>Array.from(new Set([r].concat(k.filter(Q=>Q.position).map(Q=>Q.position)))),[k,r]),[O,R]=D.useState([]),[z,j]=D.useState(!1),[N,$]=D.useState(!1),[V,U]=D.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),X=D.useRef(null),L=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),I=D.useRef(null),W=D.useRef(!1),Z=D.useCallback(Q=>{T(J=>{var ee;return(ee=J.find(ue=>ue.id===Q.id))!=null&&ee.delete||Tt.dismiss(Q.id),J.filter(({id:ue})=>ue!==Q.id)})},[]);return D.useEffect(()=>Tt.subscribe(Q=>{if(Q.dismiss){T(J=>J.map(ee=>ee.id===Q.id?{...ee,delete:!0}:ee));return}setTimeout(()=>{pg.flushSync(()=>{T(J=>{let ee=J.findIndex(ue=>ue.id===Q.id);return ee!==-1?[...J.slice(0,ee),{...J[ee],...Q},...J.slice(ee+1)]:[Q,...J]})})})}),[]),D.useEffect(()=>{if(u!=="system"){U(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?U("dark"):U("light")),typeof window>"u")return;let Q=window.matchMedia("(prefers-color-scheme: dark)");try{Q.addEventListener("change",({matches:J})=>{U(J?"dark":"light")})}catch{Q.addListener(({matches:ee})=>{try{U(ee?"dark":"light")}catch(ue){console.error(ue)}})}},[u]),D.useEffect(()=>{k.length<=1&&j(!1)},[k]),D.useEffect(()=>{let Q=J=>{var ee,ue;o.every(ve=>J[ve]||J.code===ve)&&(j(!0),(ee=X.current)==null||ee.focus()),J.code==="Escape"&&(document.activeElement===X.current||(ue=X.current)!=null&&ue.contains(document.activeElement))&&j(!1)};return document.addEventListener("keydown",Q),()=>document.removeEventListener("keydown",Q)},[o]),D.useEffect(()=>{if(X.current)return()=>{I.current&&(I.current.focus({preventScroll:!0}),I.current=null,W.current=!1)}},[X.current]),D.createElement("section",{"aria-label":`${y} ${L}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false"},P.map((Q,J)=>{var ee;let[ue,ve]=Q.split("-");return k.length?D.createElement("ol",{key:Q,dir:w==="auto"?Bp():w,tabIndex:-1,ref:X,className:l,"data-sonner-toaster":!0,"data-theme":V,"data-y-position":ue,"data-lifted":z&&k.length>1&&!s,"data-x-position":ve,style:{"--front-toast-height":`${((ee=O[0])==null?void 0:ee.height)||0}px`,"--offset":typeof c=="number"?`${c}px`:c||zC,"--width":`${$C}px`,"--gap":`${S}px`,...h},onBlur:Y=>{W.current&&!Y.currentTarget.contains(Y.relatedTarget)&&(W.current=!1,I.current&&(I.current.focus({preventScroll:!0}),I.current=null))},onFocus:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||W.current||(W.current=!0,I.current=Y.relatedTarget)},onMouseEnter:()=>j(!0),onMouseMove:()=>j(!0),onMouseLeave:()=>{N||j(!1)},onPointerDown:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||$(!0)},onPointerUp:()=>$(!1)},k.filter(Y=>!Y.position&&J===0||Y.position===Q).map((Y,re)=>{var de,ce;return D.createElement(WC,{key:Y.id,icons:p,index:re,toast:Y,defaultRichColors:d,duration:(de=x==null?void 0:x.duration)!=null?de:f,className:x==null?void 0:x.className,descriptionClassName:x==null?void 0:x.descriptionClassName,invert:n,visibleToasts:m,closeButton:(ce=x==null?void 0:x.closeButton)!=null?ce:a,interacting:N,position:Q,style:x==null?void 0:x.style,unstyled:x==null?void 0:x.unstyled,classNames:x==null?void 0:x.classNames,cancelButtonStyle:x==null?void 0:x.cancelButtonStyle,actionButtonStyle:x==null?void 0:x.actionButtonStyle,removeToast:Z,toasts:k.filter(oe=>oe.position==Y.position),heights:O.filter(oe=>oe.position==Y.position),setHeights:R,expandByDefault:s,gap:S,loadingIcon:g,expanded:z,pauseWhenPageIsHidden:E,cn:C})})):null}))});const GC=()=>{const[e,t]=b.useState([]),[n,r]=b.useState(null),[o,s]=b.useState(!1),a="4c1eef5a8d388386187a3426bc2345be",l=`https://api.themoviedb.org/3/movie/now_playing?api_key=${a}&language=en-US&page=1®ion=IN`,c=jo(),u=f=>{c(`/movie/${f}`)};b.useEffect(()=>{(async()=>{try{const m=await(await fetch(l)).json();t(m.results)}catch(h){console.error("Error fetching movie data:",h)}})()},[l]);const d=async f=>{try{const x=(await(await fetch(`https://api.themoviedb.org/3/movie/${f}/videos?api_key=${a}`)).json()).results.find(w=>w.type==="Trailer");x?(r(x.key),s(!0)):lt("Trailer Not found",{type:"warning"})}catch(h){console.error("Error fetching trailer:",h)}};return v.jsxs("section",{className:"relative ",children:[v.jsx(Ro,{pagination:{dynamicBullets:!0,clickable:!0,renderBullet:function(f,h){return``}},autoplay:{delay:5e3,disableOnInteraction:!0},slidesPerView:1,className:"mySwiper",effect:"fade",modules:[qv,bC,Qv],children:e.map((f,h)=>f.backdrop_path?v.jsx(Mo,{className:"relative",children:v.jsxs("div",{className:"relative w-full h-[50vh] sm:h-[70vh] md:h-[80vh] lg:h-[90vh] rounded-b-lg overflow-hidden",children:[v.jsx("div",{className:"absolute inset-0 gr"}),v.jsx("img",{className:"w-full h-full object-cover ",src:`https://image.tmdb.org/t/p/original/${f.backdrop_path}`,alt:f.title}),v.jsxs("div",{className:"absolute z-50 top-3/4 left-4 sm:left-6 md:left-8 lg:left-12 transform -translate-y-1/2 ",children:[v.jsxs("div",{children:[v.jsxs("p",{className:"text-xs",children:[f.original_language.toUpperCase()," |"," ",f.release_date.split("-")[0]," |"," ",f.original_title]}),v.jsx("h1",{className:"title text-3xl text-white lg:text-6xl font-bold",children:f.title}),v.jsx("p",{className:"w-full text-sm text-gray-400 mt-1 sm:mt-2 lg:w-1/2 truncate-lines",children:f.overview})]}),v.jsxs("div",{className:"mt-4 sm:mt-6 md:mt-5 flex gap-2 ",children:[v.jsxs("button",{onClick:()=>d(f.id),className:"bg-gradient-to-r from-cyan-500 to-blue-500 flex items-center gap-1 px-3 py-2 rounded-sm",children:[v.jsx(Hg,{})," ",v.jsx("span",{className:"hidden sm:inline",children:"Watch Trailer"})]}),v.jsx("button",{onClick:()=>u(f.id),className:"backdrop-blur-lg bg-black/10 flex items-center gap-1 border border-white px-3 py-2 rounded-sm hover:bg-white hover:text-black transition",children:v.jsx("span",{className:"",children:"More"})})]})]})]})},h):null)}),v.jsxs(Nd,{open:o,onOpenChange:s,children:[v.jsx(Uv,{}),v.jsxs(Od,{children:[v.jsxs(jd,{children:[v.jsx(Rd,{children:"Trailer"}),v.jsx(Gv,{})]}),v.jsx(Md,{children:n&&v.jsx("iframe",{width:"100%",height:"315",src:`https://www.youtube.com/embed/${n}?autoplay=1`,title:"YouTube video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})]})]})]})};function YC({className:e,...t}){return v.jsx("div",{className:Se("animate-pulse rounded-md bg-primary/10",e),...t})}function KC({numbers:e}){return v.jsx(Ro,{spaceBetween:10,slidesPerView:5,breakpoints:{320:{slidesPerView:3},640:{slidesPerView:4},768:{slidesPerView:5},1024:{slidesPerView:6}},children:Array.from({length:6}).map((t,n)=>v.jsx(Mo,{children:v.jsx(YC,{style:{aspectRatio:"9/16"},className:" rounded-md p-2 max-w-xs sm:max-w-sm md:max-w-md lg:max-w-lg "})},n))})}var Zv={exports:{}};(()=>{var e={181:(o,s,a)=>{var l=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,d=/^0o[0-7]+$/i,f=parseInt,h=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,m=typeof self=="object"&&self&&self.Object===Object&&self,x=h||m||Function("return this")(),w=Object.prototype.toString,S=Math.max,g=Math.min,p=function(){return x.Date.now()};function y(C){var k=typeof C;return!!C&&(k=="object"||k=="function")}function E(C){if(typeof C=="number")return C;if(function(P){return typeof P=="symbol"||function(O){return!!O&&typeof O=="object"}(P)&&w.call(P)=="[object Symbol]"}(C))return NaN;if(y(C)){var k=typeof C.valueOf=="function"?C.valueOf():C;C=y(k)?k+"":k}if(typeof C!="string")return C===0?C:+C;C=C.replace(l,"");var T=u.test(C);return T||d.test(C)?f(C.slice(2),T?2:8):c.test(C)?NaN:+C}o.exports=function(C,k,T){var P,O,R,z,j,N,$=0,V=!1,U=!1,X=!0;if(typeof C!="function")throw new TypeError("Expected a function");function L(J){var ee=P,ue=O;return P=O=void 0,$=J,z=C.apply(ue,ee)}function I(J){var ee=J-N;return N===void 0||ee>=k||ee<0||U&&J-$>=R}function W(){var J=p();if(I(J))return Z(J);j=setTimeout(W,function(ee){var ue=k-(ee-N);return U?g(ue,R-(ee-$)):ue}(J))}function Z(J){return j=void 0,X&&P?L(J):(P=O=void 0,z)}function Q(){var J=p(),ee=I(J);if(P=arguments,O=this,N=J,ee){if(j===void 0)return function(ue){return $=ue,j=setTimeout(W,k),V?L(ue):z}(N);if(U)return j=setTimeout(W,k),L(N)}return j===void 0&&(j=setTimeout(W,k)),z}return k=E(k)||0,y(T)&&(V=!!T.leading,R=(U="maxWait"in T)?S(E(T.maxWait)||0,k):R,X="trailing"in T?!!T.trailing:X),Q.cancel=function(){j!==void 0&&clearTimeout(j),$=0,P=N=O=j=void 0},Q.flush=function(){return j===void 0?z:Z(p())},Q}},858:(o,s,a)=>{var l="Expected a function",c=NaN,u="[object Symbol]",d=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,m=/^0o[0-7]+$/i,x=parseInt,w=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,S=typeof self=="object"&&self&&self.Object===Object&&self,g=w||S||Function("return this")(),p=Object.prototype.toString,y=Math.max,E=Math.min,C=function(){return g.Date.now()};function k(P){var O=typeof P;return!!P&&(O=="object"||O=="function")}function T(P){if(typeof P=="number")return P;if(function(z){return typeof z=="symbol"||function(j){return!!j&&typeof j=="object"}(z)&&p.call(z)==u}(P))return c;if(k(P)){var O=typeof P.valueOf=="function"?P.valueOf():P;P=k(O)?O+"":O}if(typeof P!="string")return P===0?P:+P;P=P.replace(d,"");var R=h.test(P);return R||m.test(P)?x(P.slice(2),R?2:8):f.test(P)?c:+P}o.exports=function(P,O,R){var z=!0,j=!0;if(typeof P!="function")throw new TypeError(l);return k(R)&&(z="leading"in R?!!R.leading:z,j="trailing"in R?!!R.trailing:j),function(N,$,V){var U,X,L,I,W,Z,Q=0,J=!1,ee=!1,ue=!0;if(typeof N!="function")throw new TypeError(l);function ve(oe){var le=U,he=X;return U=X=void 0,Q=oe,I=N.apply(he,le)}function Y(oe){var le=oe-Z;return Z===void 0||le>=$||le<0||ee&&oe-Q>=L}function re(){var oe=C();if(Y(oe))return de(oe);W=setTimeout(re,function(le){var he=$-(le-Z);return ee?E(he,L-(le-Q)):he}(oe))}function de(oe){return W=void 0,ue&&U?ve(oe):(U=X=void 0,I)}function ce(){var oe=C(),le=Y(oe);if(U=arguments,X=this,Z=oe,le){if(W===void 0)return function(he){return Q=he,W=setTimeout(re,$),J?ve(he):I}(Z);if(ee)return W=setTimeout(re,$),ve(Z)}return W===void 0&&(W=setTimeout(re,$)),I}return $=T($)||0,k(V)&&(J=!!V.leading,L=(ee="maxWait"in V)?y(T(V.maxWait)||0,$):L,ue="trailing"in V?!!V.trailing:ue),ce.cancel=function(){W!==void 0&&clearTimeout(W),Q=0,U=Z=X=W=void 0},ce.flush=function(){return W===void 0?I:de(C())},ce}(P,O,{leading:z,maxWait:O,trailing:j})}},694:(o,s,a)=>{var l=a(925);function c(){}function u(){}u.resetWarningCache=c,o.exports=function(){function d(m,x,w,S,g,p){if(p!==l){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}function f(){return d}d.isRequired=d;var h={array:d,bigint:d,bool:d,func:d,number:d,object:d,string:d,symbol:d,any:d,arrayOf:f,element:d,elementType:d,instanceOf:f,node:d,objectOf:f,oneOf:f,oneOfType:f,shape:f,exact:f,checkPropTypes:u,resetWarningCache:c};return h.PropTypes=h,h}},556:(o,s,a)=>{o.exports=a(694)()},925:o=>{o.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function n(o){var s=t[o];if(s!==void 0)return s.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,n),a.exports}n.n=o=>{var s=o&&o.__esModule?()=>o.default:()=>o;return n.d(s,{a:s}),s},n.d=(o,s)=>{for(var a in s)n.o(s,a)&&!n.o(o,a)&&Object.defineProperty(o,a,{enumerable:!0,get:s[a]})},n.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),n.o=(o,s)=>Object.prototype.hasOwnProperty.call(o,s),n.r=o=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var r={};(()=>{n.r(r),n.d(r,{LazyLoadComponent:()=>Ee,LazyLoadImage:()=>zr,trackWindowScroll:()=>J});const o=b;var s=n.n(o),a=n(556);function l(){return typeof window<"u"&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function c(H){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},c(H)}function u(H,M){var F=Object.keys(H);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(H);M&&(B=B.filter(function(A){return Object.getOwnPropertyDescriptor(H,A).enumerable})),F.push.apply(F,B)}return F}function d(H,M,F){return(M=h(M))in H?Object.defineProperty(H,M,{value:F,enumerable:!0,configurable:!0,writable:!0}):H[M]=F,H}function f(H,M){for(var F=0;F0&&arguments[0]!==void 0?arguments[0]:this.props.scrollPosition,_=this.placeholder.getBoundingClientRect(),G=this.placeholder.style,K=parseInt(G.getPropertyValue("margin-left"),10)||0,ne=parseInt(G.getPropertyValue("margin-top"),10)||0;return{bottom:A.y+_.bottom+ne,left:A.x+_.left+K,right:A.x+_.right+K,top:A.y+_.top+ne}}},{key:"isPlaceholderInViewport",value:function(){if(typeof window>"u"||!this.placeholder)return!1;var A=this.props,_=A.scrollPosition,G=A.threshold,K=this.getPlaceholderBoundingBox(_),ne=_.y+window.innerHeight,se=_.x,ge=_.x+window.innerWidth,pe=_.y;return pe-G<=K.bottom&&ne+G>=K.top&&se-G<=K.right&&ge+G>=K.left}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var A=this,_=this.props,G=_.className,K=_.height,ne=_.placeholder,se=_.style,ge=_.width;if(ne&&typeof ne.type!="function")return s().cloneElement(ne,{ref:function(ye){return A.placeholder=ye}});var pe=function(ye){for(var Te=1;Te"u"?0:window.scrollX||window.pageXOffset},Q=function(){return typeof window>"u"?0:window.scrollY||window.pageYOffset};const J=function(H){var M=function(F){function B(G){var K;if(function(se,ge){if(!(se instanceof ge))throw new TypeError("Cannot call a class as a function")}(this,B),(K=U(this,B,[G])).useIntersectionObserver=G.useIntersectionObserver&&l(),K.useIntersectionObserver)return X(K);var ne=K.onChangeScroll.bind(K);return G.delayMethod==="debounce"?K.delayedScroll=k()(ne,G.delayTime):G.delayMethod==="throttle"&&(K.delayedScroll=P()(ne,G.delayTime)),K.state={scrollPosition:{x:Z(),y:Q()}},K.baseComponentRef=s().createRef(),K}return function(G,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function");G.prototype=Object.create(K&&K.prototype,{constructor:{value:G,writable:!0,configurable:!0}}),Object.defineProperty(G,"prototype",{writable:!1}),K&&W(G,K)}(B,F),A=B,_=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){typeof window>"u"||this.useIntersectionObserver||R(this.baseComponentRef.current)!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement=R(this.baseComponentRef.current),this.scrollElement.addEventListener("scroll",this.delayedScroll,{passive:!0}),window.addEventListener("resize",this.delayedScroll,{passive:!0}),this.scrollElement!==window&&window.addEventListener("scroll",this.delayedScroll,{passive:!0}))}},{key:"removeListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement.removeEventListener("scroll",this.delayedScroll),window.removeEventListener("resize",this.delayedScroll),this.scrollElement!==window&&window.removeEventListener("scroll",this.delayedScroll))}},{key:"onChangeScroll",value:function(){this.useIntersectionObserver||this.setState({scrollPosition:{x:Z(),y:Q()}})}},{key:"render",value:function(){var G=this.props,K=(G.delayMethod,G.delayTime,function(se,ge){if(se==null)return{};var pe,ye,Te=function(Ae,$r){if(Ae==null)return{};var Kd={};for(var Wi in Ae)if({}.hasOwnProperty.call(Ae,Wi)){if($r.indexOf(Wi)>=0)continue;Kd[Wi]=Ae[Wi]}return Kd}(se,ge);if(Object.getOwnPropertySymbols){var xe=Object.getOwnPropertySymbols(se);for(ye=0;ye=0||{}.propertyIsEnumerable.call(se,pe)&&(Te[pe]=se[pe])}return Te}(G,j)),ne=this.useIntersectionObserver?null:this.state.scrollPosition;return s().createElement(H,N({forwardRef:this.baseComponentRef,scrollPosition:ne},K))}}],_&&$(A.prototype,_),Object.defineProperty(A,"prototype",{writable:!1}),A;var A,_}(s().Component);return M.propTypes={delayMethod:a.PropTypes.oneOf(["debounce","throttle"]),delayTime:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool},M.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},M};function ee(H){return ee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},ee(H)}function ue(H,M){for(var F=0;F=0&&Number.isFinite(ne.y)&&ne.y>=0),_}return function(A,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(_&&_.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),_&&dt(A,_)}(M,H),F=M,(B=[{key:"componentDidUpdate",value:function(A,_){_.visible!==this.state.visible&&this.props.afterLoad()}},{key:"onVisible",value:function(){this.props.beforeLoad(),this.setState({visible:!0})}},{key:"render",value:function(){if(this.state.visible)return this.props.children;var A=this.props,_=A.className,G=A.delayMethod,K=A.delayTime,ne=A.height,se=A.placeholder,ge=A.scrollPosition,pe=A.style,ye=A.threshold,Te=A.useIntersectionObserver,xe=A.width;return this.isScrollTracked||Te&&l()?s().createElement(E,{className:_,height:ne,onVisible:this.onVisible,placeholder:se,scrollPosition:ge,style:pe,threshold:ye,useIntersectionObserver:Te,width:xe}):s().createElement(le,{className:_,delayMethod:G,delayTime:K,height:ne,onVisible:this.onVisible,placeholder:se,style:pe,threshold:ye,width:xe})}}])&&ie(F.prototype,B),Object.defineProperty(F,"prototype",{writable:!1}),F;var F,B}(s().Component);Be.propTypes={afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool},Be.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};const Ee=Be;function it(H){return it=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},it(H)}var Ce=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function Ue(H,M){var F=Object.keys(H);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(H);M&&(B=B.filter(function(A){return Object.getOwnPropertyDescriptor(H,A).enumerable})),F.push.apply(F,B)}return F}function pr(H){for(var M=1;M=0)continue;xe[Ae]=ye[Ae]}return xe}(G,K);if(Object.getOwnPropertySymbols){var pe=Object.getOwnPropertySymbols(G);for(se=0;se=0||{}.propertyIsEnumerable.call(G,ne)&&(ge[ne]=G[ne])}return ge}(A,Ce));return s().createElement("img",Vt({},_,{onLoad:this.onImageLoad()}))}},{key:"getLazyLoadImage",value:function(){var A=this.props,_=A.beforeLoad,G=A.className,K=A.delayMethod,ne=A.delayTime,se=A.height,ge=A.placeholder,pe=A.scrollPosition,ye=A.style,Te=A.threshold,xe=A.useIntersectionObserver,Ae=A.visibleByDefault,$r=A.width;return s().createElement(Ee,{beforeLoad:_,className:G,delayMethod:K,delayTime:ne,height:se,placeholder:ge,scrollPosition:pe,style:ye,threshold:Te,useIntersectionObserver:xe,visibleByDefault:Ae,width:$r},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(A){var _=this.props,G=_.effect,K=_.height,ne=_.placeholderSrc,se=_.width,ge=_.wrapperClassName,pe=_.wrapperProps,ye=this.state.loaded,Te=ye?" lazy-load-image-loaded":"",xe=ye||!ne?{}:{backgroundImage:"url(".concat(ne,")"),backgroundSize:"100% 100%"};return s().createElement("span",Vt({className:ge+" lazy-load-image-background "+G+Te,style:pr(pr({},xe),{},{color:"transparent",display:"inline-block",height:K,width:se})},pe),A)}},{key:"render",value:function(){var A=this.props,_=A.effect,G=A.placeholderSrc,K=A.visibleByDefault,ne=A.wrapperClassName,se=A.wrapperProps,ge=this.getLazyLoadImage();return(_||G)&&!K||ne||se?this.getWrappedLazyLoadImage(ge):ge}}],B&&Rn(F.prototype,B),Object.defineProperty(F,"prototype",{writable:!1}),F;var F,B}(s().Component);hr.propTypes={onLoad:a.PropTypes.func,afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,delayMethod:a.PropTypes.string,delayTime:a.PropTypes.number,effect:a.PropTypes.string,placeholderSrc:a.PropTypes.string,threshold:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool,wrapperClassName:a.PropTypes.string,wrapperProps:a.PropTypes.object},hr.defaultProps={onLoad:function(){},afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};const zr=hr})(),Zv.exports=r})();var xa=Zv.exports;const Fi=({movie:e,onRemoveFromWatchlist:t,cancel:n})=>{if(!e||!e.poster_path)return null;const{title:r="No Title",poster_path:o,release_date:s="N/A",vote_average:a=2,id:l,name:c="No Name"}=e;return v.jsx("div",{className:" rounded-xl max-w-xs sm:max-w-sm md:max-w-md lg:max-w-lg ",children:v.jsxs("div",{className:"relative",children:[n==!0?v.jsx("button",{onClick:()=>t(l),className:" absolute top-2 right-2 bg-zinc-900/50 p-2 rounded-full text-white hover:bg-zinc-950 z-20 ",children:v.jsx($b,{})}):"",v.jsx($t,{to:`/movie/${l}`,children:v.jsx(xa.LazyLoadImage,{className:"h-auto w-full rounded-lg cursor-pointer border shadow-md",src:`https://image.tmdb.org/t/p/w500/${o}`,alt:r,effect:"blur"})})]})})};function Jv({movies:e}){return v.jsx(Ro,{spaceBetween:7,slidesPerView:5,className:"mySwiper",watchSlidesProgress:!0,breakpoints:{320:{slidesPerView:2.5},640:{slidesPerView:4.5},768:{slidesPerView:5.5},1024:{slidesPerView:6.5}},children:e.map((t,n)=>v.jsx(Mo,{children:v.jsx(Fi,{movie:t})},n))})}function XC(e){return nt({tag:"svg",attr:{viewBox:"0 0 32 32"},child:[{tag:"path",attr:{d:"M 12.96875 4.28125 L 11.53125 5.71875 L 21.8125 16 L 11.53125 26.28125 L 12.96875 27.71875 L 23.96875 16.71875 L 24.65625 16 L 23.96875 15.28125 Z"},child:[]}]})(e)}const Cr=({title:e,linkTo:t})=>v.jsxs("div",{className:"flex items-center justify-between mt-3",children:[v.jsx("h2",{className:" text-md lg:text-xl text-white my-2 ",children:e}),t?v.jsx($t,{to:t,children:v.jsxs("button",{className:"py-1 rounded-full text-md lg:text-lg flex items-center text-blue-400",children:["View all",v.jsx(XC,{size:15})]})}):""]}),qC=async(e,t={},n=25e3)=>Promise.race([fetch(e,t),new Promise((r,o)=>setTimeout(()=>o(new Error("Request timed out")),n))]);function QC(){const[e,t]=b.useState({popular:[],topRated:[],upcoming:[],nowPlaying:[],discover:[],trending:[]});b.useState(new Date().getFullYear());const[n,r]=b.useState(!0),[o,s]=b.useState(null),a=async()=>{const l="4c1eef5a8d388386187a3426bc2345be",c=[{key:"Sci-Fi Movies",url:`/discover/movie?api_key=${l}&sort_by=revenue.desc&with_genres=878`},{key:"Tamil Action Movies",url:`/discover/movie?api_key=${l}&sort_by=revenue.desc&with_original_language=te&with_genres=28}`},{key:"Popular Hindi Movies",url:`/discover/movie?api_key=${l}&sort_by=popularity.desc&with_original_language=hi®ion=IN`},{key:"Trending Movies Today",url:"/trending/movie/day"},{key:"Most Popular Movies",url:"/movie/popular"},{key:"Top Rated Movies Globally",url:"/movie/top_rated"},{key:"Upcoming Movie Releases",url:"/movie/upcoming"}];try{const u=c.map(async({key:h,url:m})=>{try{const x=await qC(`https://api.themoviedb.org/3${m}?api_key=${l}`,{},1e4);if(!x.ok){const S=`Failed to fetch ${h} movies: ${x.statusText}`;throw console.error(S),lt("Network Error",{description:`Error fetching ${h} movies`,type:"error"}),new Error(S)}const w=await x.json();return{key:h,data:w.results||[]}}catch(x){return console.error(`Error fetching ${h} movies:`,x),lt(`Error fetching ${h} movies.`,{description:x.message,type:"error"}),{key:h,data:[]}}}),f=(await Promise.all(u)).reduce((h,{key:m,data:x})=>(h[m]=x,h),{});t(f)}catch(u){const d="Error fetching movie data. Please try again.";console.error(d,u),lt(d,{description:"Somthing went wrong with network",type:"error"}),s(d)}finally{r(!1)}};return b.useEffect(()=>{a()},[]),v.jsx("div",{children:n?v.jsx("div",{className:"px-4 mb-8 py-1",children:v.jsx(KC,{})}):o?v.jsx("div",{className:"container mx-auto px-4 py-1",children:v.jsx("p",{className:"text-red-500 text-center",children:o})}):v.jsx("div",{className:"container mx-auto px-4 ",children:Object.entries(e).map(([l,c])=>v.jsxs("div",{className:"pb-4 ",children:[v.jsx(Cr,{title:l.replace(/^\w/,u=>u.toUpperCase()),linkTo:`/movies/${l}`}),c.length>0?v.jsx(Jv,{movies:c}):v.jsxs("p",{children:["No ",l," movies available."]})]},l))})})}const ZC=()=>v.jsxs(v.Fragment,{children:[v.jsx(GC,{}),v.jsx(QC,{})]});/** * @license lucide-react v0.456.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const BP=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ty=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** + */const JC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),e0=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** * @license lucide-react v0.456.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */var FP={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"};/** + */var e5={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"};/** * @license lucide-react v0.456.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const VP=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:a,...l},c)=>b.createElement("svg",{ref:c,...FP,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ty("lucide",o),...l},[...a.map(([u,d])=>b.createElement(u,d)),...Array.isArray(s)?s:[s]]));/** + */const t5=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:a,...l},c)=>b.createElement("svg",{ref:c,...e5,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:e0("lucide",o),...l},[...a.map(([u,d])=>b.createElement(u,d)),...Array.isArray(s)?s:[s]]));/** * @license lucide-react v0.456.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const zo=(e,t)=>{const n=b.forwardRef(({className:r,...o},s)=>b.createElement(VP,{ref:s,iconNode:t,className:ty(`lucide-${BP(e)}`,r),...o}));return n.displayName=`${e}`,n};/** + */const Io=(e,t)=>{const n=b.forwardRef(({className:r,...o},s)=>b.createElement(t5,{ref:s,iconNode:t,className:e0(`lucide-${JC(e)}`,r),...o}));return n.displayName=`${e}`,n};/** * @license lucide-react v0.456.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const HP=zo("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** + */const n5=Io("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** * @license lucide-react v0.456.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const ny=zo("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** + */const t0=Io("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** * @license lucide-react v0.456.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const WP=zo("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** + */const r5=Io("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** * @license lucide-react v0.456.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const UP=zo("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** + */const o5=Io("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** * @license lucide-react v0.456.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const GP=zo("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** + */const i5=Io("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** * @license lucide-react v0.456.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const YP=zo("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Xl=_P,ql=LP,Ds=b.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(K0,{ref:r,className:Ee("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,y.jsx(IP,{asChild:!0,children:y.jsx(ny,{className:"h-4 w-4 opacity-50"})})]}));Ds.displayName=K0.displayName;const ry=b.forwardRef(({className:e,...t},n)=>y.jsx(Z0,{ref:n,className:Ee("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx(GP,{className:"h-4 w-4"})}));ry.displayName=Z0.displayName;const oy=b.forwardRef(({className:e,...t},n)=>y.jsx(J0,{ref:n,className:Ee("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx(ny,{className:"h-4 w-4"})}));oy.displayName=J0.displayName;const As=b.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>y.jsx(DP,{children:y.jsxs(X0,{ref:o,className:Ee("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 bg-black/80 backdrop-blur-lg",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[y.jsx(ry,{}),y.jsx(AP,{className:Ee("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),y.jsx(oy,{})]})}));As.displayName=X0.displayName;const KP=b.forwardRef(({className:e,...t},n)=>y.jsx(q0,{ref:n,className:Ee("px-2 py-1.5 text-sm font-semibold",e),...t}));KP.displayName=q0.displayName;const le=b.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(Q0,{ref:r,className:Ee("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[y.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx($P,{children:y.jsx(HP,{className:"h-4 w-4"})})}),y.jsx(zP,{children:t})]}));le.displayName=Q0.displayName;const XP=b.forwardRef(({className:e,...t},n)=>y.jsx(ey,{ref:n,className:Ee("-mx-1 my-1 h-px bg-muted",e),...t}));XP.displayName=ey.displayName;const qP=()=>{const[e,t]=b.useState([]),[n,r]=b.useState(1),[o,s]=b.useState(!0),[a,l]=b.useState(!1),[c,u]=b.useState({sort_by:"popularity.desc",with_original_language:"en",with_genres:"28"}),d=async m=>{if(a)return;l(!0);const x="https://api.themoviedb.org/3/discover/movie",w="4c1eef5a8d388386187a3426bc2345be",S=new URLSearchParams({api_key:w,page:m,...c}).toString(),g=`${x}?${S}`;try{const v=await(await fetch(g)).json();t(E=>[...E,...v.results]),s(m{t([]),r(1),s(!0),d(1)},[c]);const f=(m,x)=>{u(w=>({...w,[m]:x}))},h=()=>{const m=n+1;r(m),d(m)};return y.jsxs("div",{className:"p-4 bg-gradient-to-r from-cyan-900/20 to-purple-900/20 rounded-t-lg",children:[y.jsx("div",{className:"p-5 rounded-lg text-center",children:y.jsx("h1",{className:"text-3xl md:text-5xl font-bold text-white mb-4",children:"Discover Movies"})}),y.jsxs("div",{className:"flex gap-2 my-3 ",children:[y.jsx("div",{children:y.jsxs(Xl,{onValueChange:m=>f("sort_by",m),children:[y.jsx(Ds,{children:y.jsx(ql,{placeholder:"Sort By"})}),y.jsxs(As,{children:[y.jsx(le,{value:"popularity.desc",children:"Most Popular"}),y.jsx(le,{value:"popularity.asc",children:"Least Popular"}),y.jsx(le,{value:"release_date.desc",children:"Newest Releases"}),y.jsx(le,{value:"release_date.asc",children:"Oldest Releases"}),y.jsx(le,{value:"original_title.asc",children:"Title (A-Z)"}),y.jsx(le,{value:"original_title.desc",children:"Title (Z-A)"}),y.jsx(le,{value:"vote_count.desc",children:"Highest Rated"}),y.jsx(le,{value:"vote_count.asc",children:"Lowest Rated"}),y.jsx(le,{value:"revenue.desc",children:"Highest Revenue"}),y.jsx(le,{value:"revenue.asc",children:"Lowest Revenue"})]})]})}),y.jsx("div",{children:y.jsxs(Xl,{onValueChange:m=>f("with_original_language",m),children:[y.jsx(Ds,{children:y.jsx(ql,{placeholder:"Language"})}),y.jsxs(As,{children:[y.jsx(le,{value:"en",children:"English"}),y.jsx(le,{value:"hi",children:"Hindi"}),y.jsx(le,{value:"te",children:"Telugu"}),y.jsx(le,{value:"ta",children:"Tamil"}),y.jsx(le,{value:"es",children:"Spanish"}),y.jsx(le,{value:"fr",children:"French"}),y.jsx(le,{value:"de",children:"German"}),y.jsx(le,{value:"it",children:"Italian"}),y.jsx(le,{value:"pt",children:"Portuguese"}),y.jsx(le,{value:"ru",children:"Russian"}),y.jsx(le,{value:"ja",children:"Japanese"}),y.jsx(le,{value:"ko",children:"Korean"}),y.jsx(le,{value:"zh",children:"Chinese"}),y.jsx(le,{value:"ar",children:"Arabic"}),y.jsx(le,{value:"pl",children:"Polish"}),y.jsx(le,{value:"tr",children:"Turkish"}),y.jsx(le,{value:"id",children:"Indonesian"}),y.jsx(le,{value:"nl",children:"Dutch"}),y.jsx(le,{value:"sv",children:"Swedish"}),y.jsx(le,{value:"th",children:"Thai"})]})]})}),y.jsx("div",{children:y.jsxs(Xl,{onValueChange:m=>f("with_genres",m),children:[y.jsx(Ds,{children:y.jsx(ql,{placeholder:"Genres"})}),y.jsxs(As,{children:[y.jsx(le,{value:"28",children:"Action"}),y.jsx(le,{value:"12",children:"Adventure"}),y.jsx(le,{value:"16",children:"Animation"}),y.jsx(le,{value:"35",children:"Comedy"}),y.jsx(le,{value:"80",children:"Crime"}),y.jsx(le,{value:"99",children:"Documentary"}),y.jsx(le,{value:"18",children:"Drama"}),y.jsx(le,{value:"10751",children:"Family"}),y.jsx(le,{value:"14",children:"Fantasy"}),y.jsx(le,{value:"36",children:"History"}),y.jsx(le,{value:"27",children:"Horror"}),y.jsx(le,{value:"10402",children:"Music"}),y.jsx(le,{value:"9648",children:"Mystery"}),y.jsx(le,{value:"10749",children:"Romance"}),y.jsx(le,{value:"878",children:"Science Fiction"}),y.jsx(le,{value:"10770",children:"TV Movie"}),y.jsx(le,{value:"53",children:"Thriller"}),y.jsx(le,{value:"10752",children:"War"}),y.jsx(le,{value:"37",children:"Western"})]})]})})]}),y.jsx("div",{className:"grid grid-cols-4 lg:grid-cols-10 gap-2",children:e.map((m,x)=>y.jsx(Fi,{movie:m},x))}),o&&y.jsx("div",{className:"text-center mt-4",children:y.jsx("button",{className:"px-4 py-2 bg-white text-black rounded disabled:opacity-50",onClick:h,disabled:a,children:a?"Loading...":"Load More"})}),!o&&y.jsx("p",{className:"text-center text-white mt-4",children:"No more movies to display."})]})},QP=async(e,t={},n=25e3)=>Promise.race([fetch(e,t),new Promise((r,o)=>setTimeout(()=>o(new Error("Request timed out")),n))]);function ZP(){const[e,t]=b.useState({popular:[],topRated:[],upcoming:[],nowPlaying:[],discover:[],trending:[]});b.useState(new Date().getFullYear());const[n,r]=b.useState(!0),[o,s]=b.useState(null),a=async()=>{const l="4c1eef5a8d388386187a3426bc2345be",c=[{key:"Sci-Fi Movies",url:`/discover/movie?api_key=${l}&sort_by=revenue.desc&with_genres=878`},{key:"Tamil Action Movies",url:`/discover/movie?api_key=${l}&sort_by=revenue.desc&with_original_language=te&with_genres=28}`},{key:"Popular Hindi Movies",url:`/discover/movie?api_key=${l}&sort_by=popularity.desc&with_original_language=hi®ion=IN`},{key:"Trending Movies Today",url:"/trending/movie/day"},{key:"Most Popular Movies",url:"/movie/popular"},{key:"Top Rated Movies Globally",url:"/movie/top_rated"},{key:"Upcoming Movie Releases",url:"/movie/upcoming"}];try{const u=c.map(async({key:h,url:m})=>{try{const x=await QP(`https://api.themoviedb.org/3${m}?api_key=${l}`,{},1e4);if(!x.ok){const S=`Failed to fetch ${h} movies: ${x.statusText}`;throw console.error(S),it("Network Error",{description:`Error fetching ${h} movies`,type:"error"}),new Error(S)}const w=await x.json();return{key:h,data:w.results||[]}}catch(x){return console.error(`Error fetching ${h} movies:`,x),it(`Error fetching ${h} movies.`,{description:x.message,type:"error"}),{key:h,data:[]}}}),f=(await Promise.all(u)).reduce((h,{key:m,data:x})=>(h[m]=x,h),{});t(f)}catch(u){const d="Error fetching movie data. Please try again.";console.error(d,u),it(d,{description:"Somthing went wrong with network",type:"error"}),s(d)}finally{r(!1)}};return b.useEffect(()=>{a()},[]),y.jsxs("div",{children:[n?y.jsx("div",{className:"px-4 mb-8 py-1",children:y.jsx(YC,{})}):o?y.jsx("div",{className:"container mx-auto px-4 py-1",children:y.jsx("p",{className:"text-red-500 text-center",children:o})}):y.jsx("div",{className:"container mx-auto px-4 ",children:Object.entries(e).map(([l,c])=>y.jsxs("div",{className:"pb-4 ",children:[y.jsx(Cr,{title:l.replace(/^\w/,u=>u.toUpperCase()),linkTo:`/movies/${l}`}),c.length>0?y.jsx(Zv,{movies:c}):y.jsxs("p",{children:["No ",l," movies available."]})]},l))}),y.jsx(qP,{})]})}const JP=()=>y.jsxs(y.Fragment,{children:[y.jsx(UC,{}),y.jsx(ZP,{})]}),iy=bv,e5=Sv,t5=Ev,sy=b.forwardRef(({className:e,...t},n)=>y.jsx(Sd,{ref:n,className:Ee("fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));sy.displayName=Sd.displayName;const Wd=b.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(t5,{children:[y.jsx(sy,{}),y.jsxs(Ed,{ref:r,className:Ee("fixed left-[50%] top-[50%] z-50 grid w-[90%] max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border backdrop-blur-lg bg-black/80 p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",e),...n,children:[t,y.jsxs(Cv,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[y.jsx(YP,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Wd.displayName=Ed.displayName;const Ud=({className:e,...t})=>y.jsx("div",{className:Ee("flex flex-col space-y-1.5 sm:text-left",e),...t});Ud.displayName="DialogHeader";const Gd=b.forwardRef(({className:e,...t},n)=>y.jsx(Cd,{ref:n,className:Ee("text-lg font-semibold leading-none tracking-tight",e),...t}));Gd.displayName=Cd.displayName;const ay=b.forwardRef(({className:e,...t},n)=>y.jsx(Td,{ref:n,className:Ee("text-sm text-muted-foreground",e),...t}));ay.displayName=Td.displayName;const ly=b.forwardRef(({className:e,type:t,...n},r)=>y.jsx("input",{type:t,className:Ee("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));ly.displayName="Input";function cy({size:e}){const[t,n]=b.useState(!1),[r,o]=b.useState([]),[s,a]=b.useState(!1),[l,c]=b.useState(""),[u,d]=b.useState(-1),f="4c1eef5a8d388386187a3426bc2345be",h=jo(),m=async S=>{if(!S){o([]);return}a(!0);try{const g=await fetch(`https://api.themoviedb.org/3/search/movie?api_key=${f}&query=${encodeURIComponent(S)}`);if(!g.ok){it("Something went wrong",{type:"error"});return}const v=((await g.json()).results||[]).filter(E=>E.poster_path);o(v)}catch(g){it("Failed to fetch",{type:"error",description:g.message}),console.error("Error fetching movies:",g),o([])}finally{a(!1)}},x=S=>{const g=S.target.value;c(g),m(g)},w=S=>{if(r.length!==0){if(S.key==="ArrowDown")S.preventDefault(),d(g=>Math.min(g+1,r.length-1));else if(S.key==="ArrowUp")S.preventDefault(),d(g=>Math.max(g-1,0));else if(S.key==="Enter"&&u>=0){S.preventDefault();const g=r[u];g&&(console.log("Selected movie:",g.title),h(`/movie/${g.id}`),n(!1))}}};return b.useEffect(()=>{const S=g=>{g.key==="j"&&(g.metaKey||g.ctrlKey)&&(g.preventDefault(),n(p=>!p))};return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[]),y.jsx(y.Fragment,{children:y.jsxs(iy,{open:t,onOpenChange:n,children:[y.jsx(e5,{asChild:!0,children:y.jsx("div",{className:"cursor-pointer",onClick:()=>n(!0),children:y.jsx(Db,{size:e})})}),y.jsxs(Wd,{children:[y.jsx(Ud,{children:y.jsx(Gd,{children:"Movie Search"})}),y.jsx(ly,{type:"text",placeholder:"Type a movie name...",value:l,onChange:x,onKeyDown:w,className:"w-full mt-2 mb-2"}),r.length===0?y.jsx("p",{className:"text-center text-gray-500",children:"No results found."}):y.jsx("div",{className:"mt-2 max-h-64 overflow-y-auto",children:r.map((S,g)=>{const p=`https://image.tmdb.org/t/p/w92${S.poster_path}`,v=S.release_date?new Date(S.release_date).getFullYear():"N/A",E=g===u;return y.jsxs(un,{to:`/movie/${S.id}`,className:`p-1 mt-1 flex items-center rounded-md ${E?"bg-zinc-800":"hover:bg-zinc-800"}`,onClick:()=>{console.log("Selected movie:",S.title),n(!1)},children:[y.jsx("img",{src:p,alt:S.title,className:"w-12 h-18 object-cover rounded-md mr-2"}),y.jsxs("div",{children:[y.jsx("p",{className:"text-sm",children:S.title}),y.jsx("p",{className:"text-xs text-gray-500",children:v})]})]},S.id)})})]})]})})}const n5="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='224'%20zoomAndPan='magnify'%20viewBox='0%200%20168%20121.500001'%20height='162'%20preserveAspectRatio='xMidYMid%20meet'%20version='1.0'%3e%3cdefs%3e%3cclipPath%20id='875865d4e3'%3e%3cpath%20d='M%200.34375%200%20L%20132%200%20L%20132%20120.253906%20L%200.34375%20120.253906%20Z%20M%200.34375%200%20'%20clip-rule='nonzero'/%3e%3c/clipPath%3e%3cclipPath%20id='76a3263465'%3e%3cpath%20d='M%2033%2034%20L%20136.285156%2034%20L%20136.285156%20120.253906%20L%2033%20120.253906%20Z%20M%2033%2034%20'%20clip-rule='nonzero'/%3e%3c/clipPath%3e%3cclipPath%20id='aa2c867008'%3e%3cpath%20d='M%20132.601562%2085.375%20L%20167.65625%2085.375%20L%20167.65625%20120.480469%20L%20132.601562%20120.480469%20Z%20M%20132.601562%2085.375%20'%20clip-rule='nonzero'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23875865d4e3)'%3e%3cpath%20fill='%23ffffff'%20d='M%2021.648438%20120.289062%20L%2021.648438%20103.386719%20L%2021.5625%20103.386719%20L%2021.5625%2022.984375%20C%2022.046875%2022.824219%2022.261719%2022.695312%2022.46875%2022.695312%20C%2042.335938%2022.679688%2062.210938%2022.382812%2082.070312%2022.773438%20C%2093.59375%2023%20102.09375%2029.015625%20106.59375%2039.628906%20C%20111.035156%2050.121094%20109.117188%2059.96875%20101.777344%2068.722656%20C%20101.140625%2069.480469%20100.554688%2070.277344%20100.261719%2070.65625%20C%20105.554688%2075.882812%20110.617188%2080.886719%20115.773438%2085.976562%20C%20115.574219%2086.085938%20115.800781%2086.007812%20115.964844%2085.863281%20C%20116.386719%2085.484375%20116.8125%2085.09375%20117.191406%2084.671875%20C%20131.199219%2068.992188%20135.121094%2050.992188%20127.195312%2031.597656%20C%20119.164062%2011.949219%20103.574219%201.183594%2082.3125%200.652344%20C%2055.613281%20-0.0078125%2028.878906%200.472656%202.160156%200.472656%20C%201.59375%200.472656%201.027344%200.515625%200.402344%200.570312%20L%200.402344%20120.289062%20Z%20M%2021.648438%20120.289062%20'%20fill-opacity='1'%20fill-rule='nonzero'/%3e%3c/g%3e%3cg%20clip-path='url(%2376a3263465)'%3e%3cpath%20fill='%23ffffff'%20d='M%2053.488281%20120.289062%20L%2053.488281%2072.085938%20C%2059.453125%2077.992188%2065.449219%2083.929688%2071.429688%2089.851562%20C%2076.003906%2094.371094%2080.566406%2098.890625%2085.109375%20103.382812%20L%2084.828125%20103.382812%20L%20101.5625%20120.289062%20L%20136.226562%20120.289062%20C%20114.300781%2098.464844%2092.363281%2076.640625%2070.335938%2054.722656%20L%2089.777344%2054.722656%20L%2089.777344%2034.167969%20L%2033.582031%2034.167969%20L%2033.582031%20120.289062%20Z%20M%2053.488281%20120.289062%20'%20fill-opacity='1'%20fill-rule='nonzero'/%3e%3c/g%3e%3cpath%20fill='%23ffffff'%20d='M%2053.628906%2071.863281%20C%2068.707031%2086.9375%2083.78125%20102.699219%2099.269531%20117.972656%20'%20fill-opacity='1'%20fill-rule='nonzero'/%3e%3cg%20clip-path='url(%23aa2c867008)'%3e%3cpath%20fill='%23ffffff'%20d='M%20150.0625%2085.375%20C%20159.703125%2085.375%20167.523438%2093.191406%20167.523438%20102.832031%20C%20167.523438%20112.476562%20159.703125%20120.292969%20150.0625%20120.292969%20C%20140.417969%20120.292969%20132.601562%20112.476562%20132.601562%20102.832031%20C%20132.601562%2093.191406%20140.417969%2085.375%20150.0625%2085.375%20Z%20M%20150.0625%2085.375%20'%20fill-opacity='1'%20fill-rule='evenodd'/%3e%3c/g%3e%3c/svg%3e",r5=()=>y.jsxs("div",{className:" justify-normal lg:justify-between gap-4 fixed z-50 top-0 left-0 w-full bg-zinc-950/40 backdrop-blur-lg px-5 py-1 flex items-center h-[50px]",children:[y.jsx(un,{to:"/",children:y.jsx("div",{children:y.jsx("img",{className:"h-8 py-1",src:n5,alt:"Rflix"})})}),y.jsxs("div",{className:"flex items-center gap-4 justify-end w-full",children:[y.jsx(cy,{size:20}),y.jsx(un,{to:"/watchlist",children:y.jsx("div",{className:"text-white transition-colors px-5 py-1 border border-zinc-500 rounded-full hover:bg-gradient-to-r from-cyan-500 to-blue-500 hover:border-none ",children:y.jsx(pd,{size:20})})})]})]});function o5(e){return lt({tag:"svg",attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"},child:[]}]})(e)}function i5(e){return lt({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"},child:[]}]})(e)}function s5(e){return lt({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"},child:[]}]})(e)}function a5(e){return lt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"},child:[]}]})(e)}function l5(e){return lt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20.216 6.415l-.132-.666c-.119-.598-.388-1.163-1.001-1.379-.197-.069-.42-.098-.57-.241-.152-.143-.196-.366-.231-.572-.065-.378-.125-.756-.192-1.133-.057-.325-.102-.69-.25-.987-.195-.4-.597-.634-.996-.788a5.723 5.723 0 00-.626-.194c-1-.263-2.05-.36-3.077-.416a25.834 25.834 0 00-3.7.062c-.915.083-1.88.184-2.75.5-.318.116-.646.256-.888.501-.297.302-.393.77-.177 1.146.154.267.415.456.692.58.36.162.737.284 1.123.366 1.075.238 2.189.331 3.287.37 1.218.05 2.437.01 3.65-.118.299-.033.598-.073.896-.119.352-.054.578-.513.474-.834-.124-.383-.457-.531-.834-.473-.466.074-.96.108-1.382.146-1.177.08-2.358.082-3.536.006a22.228 22.228 0 01-1.157-.107c-.086-.01-.18-.025-.258-.036-.243-.036-.484-.08-.724-.13-.111-.027-.111-.185 0-.212h.005c.277-.06.557-.108.838-.147h.002c.131-.009.263-.032.394-.048a25.076 25.076 0 013.426-.12c.674.019 1.347.067 2.017.144l.228.031c.267.04.533.088.798.145.392.085.895.113 1.07.542.055.137.08.288.111.431l.319 1.484a.237.237 0 01-.199.284h-.003c-.037.006-.075.01-.112.015a36.704 36.704 0 01-4.743.295 37.059 37.059 0 01-4.699-.304c-.14-.017-.293-.042-.417-.06-.326-.048-.649-.108-.973-.161-.393-.065-.768-.032-1.123.161-.29.16-.527.404-.675.701-.154.316-.199.66-.267 1-.069.34-.176.707-.135 1.056.087.753.613 1.365 1.37 1.502a39.69 39.69 0 0011.343.376.483.483 0 01.535.53l-.071.697-1.018 9.907c-.041.41-.047.832-.125 1.237-.122.637-.553 1.028-1.182 1.171-.577.131-1.165.2-1.756.205-.656.004-1.31-.025-1.966-.022-.699.004-1.556-.06-2.095-.58-.475-.458-.54-1.174-.605-1.793l-.731-7.013-.322-3.094c-.037-.351-.286-.695-.678-.678-.336.015-.718.3-.678.679l.228 2.185.949 9.112c.147 1.344 1.174 2.068 2.446 2.272.742.12 1.503.144 2.257.156.966.016 1.942.053 2.892-.122 1.408-.258 2.465-1.198 2.616-2.657.34-3.332.683-6.663 1.024-9.995l.215-2.087a.484.484 0 01.39-.426c.402-.078.787-.212 1.074-.518.455-.488.546-1.124.385-1.766zm-1.478.772c-.145.137-.363.201-.578.233-2.416.359-4.866.54-7.308.46-1.748-.06-3.477-.254-5.207-.498-.17-.024-.353-.055-.47-.18-.22-.236-.111-.71-.054-.995.052-.26.152-.609.463-.646.484-.057 1.046.148 1.526.22.577.088 1.156.159 1.737.212 2.48.226 5.002.19 7.472-.14.45-.06.899-.13 1.345-.21.399-.072.84-.206 1.08.206.166.281.188.657.162.974a.544.544 0 01-.169.364zm-6.159 3.9c-.862.37-1.84.788-3.109.788a5.884 5.884 0 01-1.569-.217l.877 9.004c.065.78.717 1.38 1.5 1.38 0 0 1.243.065 1.658.065.447 0 1.786-.065 1.786-.065.783 0 1.434-.6 1.499-1.38l.94-9.95a3.996 3.996 0 00-1.322-.238c-.826 0-1.491.284-2.26.613z"},child:[]}]})(e)}const c5=()=>y.jsx("footer",{className:"bg-zinc-950",children:y.jsxs("div",{className:"w-full max-w-screen-xl mx-auto p-5 md:py-8",children:[y.jsxs("div",{className:"sm:flex sm:items-center sm:justify-between",children:[y.jsxs("a",{href:"https://linktr.ee/ranjankashyap",className:"flex items-center mb-4 sm:mb-0 space-x-3 rtl:space-x-reverse",children:[y.jsx("img",{src:"https://i.ibb.co/Z2M7rLd/profile-pic-2.png",className:"h-8",alt:"Rflix Logo"}),y.jsx("span",{className:"self-center text-2xl font-semibold whitespace-nowrap dark:text-white",children:"Ranjan"})]}),y.jsxs("div",{className:"flex space-x-5",children:[y.jsx("a",{href:"https://buymeacoffee.com/ranjankashyap",target:"_blank",rel:"noopener noreferrer",className:"text-zinc-400 hover:text-white transition-transform transform hover:scale-110",children:y.jsx(l5,{size:20})}),y.jsx("a",{href:"https://github.com/RanjanWorks",target:"_blank",rel:"noopener noreferrer",className:"text-zinc-400 hover:text-white transition-transform transform hover:scale-110",children:y.jsx(o5,{size:20})}),y.jsx("a",{href:"mailto:kashyapranjan9977@gmail.com",className:"text-zinc-400 hover:text-white transition-transform transform hover:scale-110",children:y.jsx(a5,{size:20})}),y.jsx("a",{href:"https://wa.me/+916266245085",target:"_blank",rel:"noopener noreferrer",className:"text-zinc-400 hover:text-white transition-transform transform hover:scale-110",children:y.jsx(s5,{size:20})}),y.jsx("a",{href:"https://www.linkedin.com/in/ishere-ranjan/",target:"_blank",rel:"noopener noreferrer",className:"text-zinc-400 hover:text-white transition-transform transform hover:scale-110",children:y.jsx(i5,{size:20})})]})]}),y.jsx("hr",{className:"my-6 border-zinc-200 sm:mx-auto dark:border-zinc-700 lg:my-8"}),y.jsxs("span",{className:"block text-sm text-zinc-500 sm:text-center dark:text-zinc-400",children:["© ",new Date().getFullYear()," ",y.jsx("a",{href:"https://flowbite.com/",className:"hover:underline",children:"Ranjan"}),". All Rights Reserved."]})]})}),u5=()=>y.jsx("div",{className:"fixed z-50 w-full h-16 max-w-lg -translate-x-1/2 rounded-t-lg border border-inherit bottom-0 left-1/2 bg-black/60 backdrop-blur-lg overflow-hidden transition-transform duration-300",children:y.jsxs("div",{className:"grid grid-cols-3 items-center w-full h-full justify-center",children:[y.jsx(un,{to:"/",className:"inline h-full",children:y.jsxs("div",{className:"flex items-center justify-center gap-1 flex-col lg:hover:bg-zinc-700/50 h-full cursor-pointer",children:[y.jsx(Ib,{size:25}),y.jsx("span",{className:"text-xs text-slate-400",children:"Home"})]})}),y.jsxs("div",{className:"flex items-center justify-center gap-1 flex-col lg:hover:bg-zinc-700/50 h-full cursor-pointer",children:[y.jsx(cy,{size:25}),y.jsx("span",{className:"text-xs text-slate-400",children:"Search"})]}),y.jsx(un,{to:"/watchlist",className:"inline h-full",children:y.jsxs("div",{className:"flex items-center justify-center gap-1 flex-col lg:hover:bg-zinc-700/50 h-full cursor-pointer",children:[y.jsx(pd,{size:25}),y.jsx("span",{className:"text-xs text-slate-400",children:"Favorite"})]})})]})}),d5=()=>y.jsxs("div",{className:"layout-container",children:[y.jsx(r5,{}),y.jsx("div",{className:"content mt-[50px]",children:y.jsx(Rx,{})}),y.jsx("div",{className:"lg:hidden",children:y.jsx(u5,{})}),y.jsx(c5,{})]});function uy(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,Qp=f5,p5=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Qp(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],f=s==null?void 0:s[u];if(d===null)return null;const h=qp(d)||qp(f);return o[u][h]}),l=n&&Object.entries(n).reduce((u,d)=>{let[f,h]=d;return h===void 0||(u[f]=h),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:f,className:h,...m}=d;return Object.entries(m).every(x=>{let[w,S]=x;return Array.isArray(S)?S.includes({...s,...l}[w]):{...s,...l}[w]===S})?[...u,f,h]:u},[]);return Qp(e,a,c,n==null?void 0:n.class,n==null?void 0:n.className)},dy=p5("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),mu=b.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const a=r?Mr:"button";return y.jsx(a,{className:Ee(dy({variant:t,size:n,className:e})),ref:s,...o})});mu.displayName="Button";var ws=function(e,t){return et?1:0},Zp=function(e){return e.reduce(function(t,n){return t+n},0)},m5=function(){function e(n){this.colors=n}var t=e.prototype;return t.palette=function(){return this.colors},t.map=function(n){return n},e}(),h5=function(){function e(s,a,l){return(s<<10)+(a<<5)+l}function t(s){var a=[],l=!1;function c(){a.sort(s),l=!0}return{push:function(u){a.push(u),l=!1},peek:function(u){return l||c(),u===void 0&&(u=a.length-1),a[u]},pop:function(){return l||c(),a.pop()},size:function(){return a.length},map:function(u){return a.map(u)},debug:function(){return l||c(),a}}}function n(s,a,l,c,u,d,f){var h=this;h.r1=s,h.r2=a,h.g1=l,h.g2=c,h.b1=u,h.b2=d,h.histo=f}function r(){this.vboxes=new t(function(s,a){return ws(s.vbox.count()*s.vbox.volume(),a.vbox.count()*a.vbox.volume())})}function o(s,a){if(a.count()){var l=a.r2-a.r1+1,c=a.g2-a.g1+1,u=Math.max.apply(null,[l,c,a.b2-a.b1+1]);if(a.count()==1)return[a.copy()];var d,f,h,m,x=0,w=[],S=[];if(u==l)for(d=a.r1;d<=a.r2;d++){for(m=0,f=a.g1;f<=a.g2;f++)for(h=a.b1;h<=a.b2;h++)m+=s[e(d,f,h)]||0;w[d]=x+=m}else if(u==c)for(d=a.g1;d<=a.g2;d++){for(m=0,f=a.r1;f<=a.r2;f++)for(h=a.b1;h<=a.b2;h++)m+=s[e(f,d,h)]||0;w[d]=x+=m}else for(d=a.b1;d<=a.b2;d++){for(m=0,f=a.r1;f<=a.r2;f++)for(h=a.g1;h<=a.g2;h++)m+=s[e(f,h,d)]||0;w[d]=x+=m}return w.forEach(function(g,p){S[p]=x-g}),function(g){var p,v,E,C,P,T=g+"1",k=g+"2",O=0;for(d=a[T];d<=a[k];d++)if(w[d]>x/2){for(E=a.copy(),C=a.copy(),P=(p=d-a[T])<=(v=a[k]-d)?Math.min(a[k]-1,~~(d+v/2)):Math.max(a[T],~~(d-1-p/2));!w[P];)P++;for(O=S[P];!O&&w[P-1];)O=S[--P];return E[k]=P,C[T]=E[k]+1,[E,C]}}(u==l?"r":u==c?"g":"b")}}return n.prototype={volume:function(s){var a=this;return a._volume&&!s||(a._volume=(a.r2-a.r1+1)*(a.g2-a.g1+1)*(a.b2-a.b1+1)),a._volume},count:function(s){var a=this,l=a.histo;if(!a._count_set||s){var c,u,d,f=0;for(c=a.r1;c<=a.r2;c++)for(u=a.g1;u<=a.g2;u++)for(d=a.b1;d<=a.b2;d++)f+=l[e(c,u,d)]||0;a._count=f,a._count_set=!0}return a._count},copy:function(){var s=this;return new n(s.r1,s.r2,s.g1,s.g2,s.b1,s.b2,s.histo)},avg:function(s){var a=this,l=a.histo;if(!a._avg||s){var c,u,d,f,h=0,m=0,x=0,w=0;if(a.r1===a.r2&&a.g1===a.g2&&a.b1===a.b2)a._avg=[a.r1<<3,a.g1<<3,a.b1<<3];else{for(u=a.r1;u<=a.r2;u++)for(d=a.g1;d<=a.g2;d++)for(f=a.b1;f<=a.b2;f++)h+=c=l[e(u,d,f)]||0,m+=c*(u+.5)*8,x+=c*(d+.5)*8,w+=c*(f+.5)*8;a._avg=h?[~~(m/h),~~(x/h),~~(w/h)]:[~~(8*(a.r1+a.r2+1)/2),~~(8*(a.g1+a.g2+1)/2),~~(8*(a.b1+a.b2+1)/2)]}}return a._avg},contains:function(s){var a=this,l=s[0]>>3;return gval=s[1]>>3,bval=s[2]>>3,l>=a.r1&&l<=a.r2&&gval>=a.g1&&gval<=a.g2&&bval>=a.b1&&bval<=a.b2}},r.prototype={push:function(s){this.vboxes.push({vbox:s,color:s.avg()})},palette:function(){return this.vboxes.map(function(s){return s.color})},size:function(){return this.vboxes.size()},map:function(s){for(var a=this.vboxes,l=0;l251&&c[1]>251&&c[2]>251&&(s[l].color=[255,255,255])}},{quantize:function(s,a){if(!Number.isInteger(a)||a<1||a>256)throw new Error("Invalid maximum color count. It must be an integer between 1 and 256.");if(!s.length||a<2||a>256||!s.length||a<2||a>256)return!1;for(var l=[],c=new Set,u=0;u>3,C[1]>>3,C[2]>>3),E[v]=(E[v]||0)+1}),E}(s);h.forEach(function(){});var m=function(p,v){var E,C,P,T=1e6,k=0,O=1e6,j=0,$=1e6,M=0;return p.forEach(function(N){(E=N[0]>>3)k&&(k=E),(C=N[1]>>3)j&&(j=C),(P=N[2]>>3)<$?$=P:P>M&&(M=P)}),new n(T,k,O,j,$,M,v)}(s,h),x=new t(function(p,v){return ws(p.count(),v.count())});function w(p,v){for(var E,C=p.size(),P=0;P<1e3;){if(C>=v||P++>1e3)return;if((E=p.pop()).count()){var T=o(h,E),k=T[0],O=T[1];if(!k)return;p.push(k),O&&(p.push(O),C++)}else p.push(E),P++}}x.push(m),w(x,.75*a);for(var S=new t(function(p,v){return ws(p.count()*p.volume(),v.count()*v.volume())});x.size();)S.push(x.pop());w(S,a);for(var g=new r;S.size();)g.push(S.pop());return g}}}().quantize,fy=function(e){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.width=this.canvas.width=e.naturalWidth,this.height=this.canvas.height=e.naturalHeight,this.context.drawImage(e,0,0,this.width,this.height)};fy.prototype.getImageData=function(){return this.context.getImageData(0,0,this.width,this.height)};var Ur=function(){};Ur.prototype.getColor=function(e,t){return t===void 0&&(t=10),this.getPalette(e,5,t)[0]},Ur.prototype.getPalette=function(e,t,n){var r=function(l){var c=l.colorCount,u=l.quality;if(c!==void 0&&Number.isInteger(c)){if(c===1)throw new Error("colorCount should be between 2 and 20. To get one color, call getColor() instead of getPalette()");c=Math.max(c,2),c=Math.min(c,20)}else c=10;return(u===void 0||!Number.isInteger(u)||u<1)&&(u=10),{colorCount:c,quality:u}}({colorCount:t,quality:n}),o=new fy(e),s=function(l,c,u){for(var d,f,h,m,x,w=l,S=[],g=0;g=125)&&(f>250&&h>250&&m>250||S.push([f,h,m]));return S}(o.getImageData().data,o.width*o.height,r.quality),a=h5(s,r.colorCount);return a?a.palette():null},Ur.prototype.getColorFromUrl=function(e,t,n){var r=this,o=document.createElement("img");o.addEventListener("load",function(){var s=r.getPalette(o,5,n);t(s[0],e)}),o.src=e},Ur.prototype.getImageData=function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=function(){if(this.status==200){var r=new Uint8Array(this.response);i=r.length;for(var o=new Array(i),s=0;snew Promise((t,n)=>{const r=new Ur,o=new Image;o.crossOrigin="anonymous",o.src=e,o.onload=()=>{try{const s=r.getColor(o);t(s)}catch{n("Failed to extract dominant color")}},o.onerror=()=>n("Image failed to load")}),v5=e=>((r,o,s)=>{const a=[r,o,s].map(l=>(l/=255,l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)));return a[0]*.2126+a[1]*.7152+a[2]*.0722})(e[0],e[1],e[2])>.5?"black":"white";function y5({persons:e}){return y.jsx(Mo,{spaceBetween:5,slidesPerView:5,navigation:!0,modules:[Kv],className:"mySwiper",watchSlidesProgress:!0,breakpoints:{320:{slidesPerView:3.5},640:{slidesPerView:4.5},768:{slidesPerView:5.5},1024:{slidesPerView:6.5}},children:e.map(t=>y.jsx(Ro,{children:y.jsxs("div",{className:" rounded-md p-1 max-w-xs sm:max-w-sm md:max-w-md lg:max-w-lg bg-gradient-to-l from-sky-900/20 to-voilet-900/20 rounded-t-x ",children:[y.jsx(un,{to:`/person/${t.id}`,children:t.profile_path===null?y.jsx(xa.LazyLoadImage,{className:"rounded-md",src:"https://picsum.photos/200/300/?blur=2",alt:t.name,effect:"blur"}):y.jsx(xa.LazyLoadImage,{className:"rounded-md",src:`https://image.tmdb.org/t/p/w500/${t.profile_path}`,alt:t.name,effect:"blur"})}),y.jsxs("div",{className:"my-2",children:[y.jsx("h1",{className:"text-teal-50 text-sm lg:text-xl overflow-hidden text-ellipsis whitespace-nowrap",children:t.name}),y.jsx("h2",{className:"text-xs overflow-hidden text-ellipsis whitespace-nowrap text-zinc-500",children:t.character})]})]})},t.id))})}function w5({backdrops:e}){return y.jsx(Mo,{spaceBetween:0,pagination:{type:"fraction"},autoplay:{delay:3e3,disableOnInteraction:!0},slidesPerView:3,navigation:!0,modules:[Kv,gC,Xv,qv],className:"mySwiper",breakpoints:{320:{slidesPerView:1},640:{slidesPerView:1},768:{slidesPerView:2},1024:{slidesPerView:3}},children:e.backdrops.map((t,n)=>y.jsx(Ro,{children:y.jsx(xa.LazyLoadImage,{className:"aspect-video w-full",src:`https://image.tmdb.org/t/p/w500/${t.file_path}`,alt:t.id,effect:"blur"})},n))})}function Ql(e){return lt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},child:[]},{tag:"polyline",attr:{points:"15 3 21 3 21 9"},child:[]},{tag:"line",attr:{x1:"10",y1:"14",x2:"21",y2:"3"},child:[]}]})(e)}const x5=({movie:e,Bg:t,textColor1:n,movieKeywords:r})=>{function o(){const c=`https://www.jalshamoviez.er.in/mobile/search?find=${e.title.replace(/ /g,"+")}&per_page=1`;window.open(c,"_blank")}function s(){const c=`https://www.filmyfly.durban/site-1.html?to-search=${e.title.replace(/ /g,"+")}`;window.open(c,"_blank")}function a(){const c=`${e.title} site:filmyzilla.com.by`,u=`https://www.google.com/search?q=${encodeURIComponent(c)}`;window.open(u,"_blank")}return y.jsxs("div",{style:{background:`${t}`,color:`${n}`},className:"p-5 flex items-start gap-3 flex-col mt-10",children:[y.jsxs("div",{className:"flex flex-col",children:[y.jsx("h1",{className:"text-3xl lg:text-5xl font-bold text",children:e.title===e.original_title?e.title:`${e.title} (${e.original_title})`}),y.jsx("p",{className:"text-xs",children:e.release_date})]}),y.jsxs("div",{children:[y.jsx("p",{className:"font-semibold text-md",children:"Production Country"}),e.production_countries.map(l=>y.jsx("p",{className:"text-xs",children:l.name},l.iso_3166_1))]}),y.jsxs("div",{children:[y.jsx("p",{className:"font-semibold text-md",children:"Origin Country"}),y.jsx("p",{className:"text-xs",children:e.origin_country})]}),y.jsxs("div",{children:[y.jsx("p",{className:"font-semibold text-md",children:"Status"}),y.jsx("p",{className:"text-xs",children:e.status})]}),e.budget?y.jsxs("div",{children:[y.jsx("p",{className:"font-semibold text-md",children:"Budget"}),y.jsx("p",{className:"text-xs",children:new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR"}).format(e.budget)})]}):"",e.revenue?y.jsxs("div",{children:[y.jsx("p",{className:"font-semibold text-md",children:"Revenue"}),y.jsx("p",{className:"text-xs",children:new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR"}).format(e.revenue)})]}):"",y.jsxs("div",{children:[y.jsx("p",{className:"font-semibold text-md",children:"Download"}),y.jsxs("div",{className:"flex mt-2",children:[y.jsxs("button",{onClick:o,className:"bg-black bg-opacity-10 px-2 py-1 rounded-l-md text-xs flex items-center gap-2",children:["Jalshamoviez ",y.jsx(Ql,{})]}),y.jsxs("button",{onClick:s,className:"bg-black bg-opacity-10 px-2 py-1 text-xs flex items-center gap-2",children:["Filmyfly ",y.jsx(Ql,{})]}),y.jsxs("button",{onClick:a,className:"bg-black bg-opacity-10 px-2 py-1 rounded-r-md text-xs flex items-center gap-2",children:["FilmyZilla ",y.jsx(Ql,{})]})]})]}),r.length>0?y.jsxs("div",{className:"flex flex-col",children:[y.jsx("p",{className:"font-semibold text-md mb-2",children:"Keywords"}),y.jsx("div",{className:"flex items-start gap-1 flex-wrap",children:r.map(l=>y.jsx("p",{className:" bg-black bg-opacity-10 px-2 py-1 text-xs rounded-sm",children:l.name},l.id))})]}):""]})};var b5={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function S5(e){if(typeof e=="number")return{value:e,unit:"px"};var t,n=(e.match(/^[0-9.]*/)||"").toString();n.includes(".")?t=parseFloat(n):t=parseInt(n,10);var r=(e.match(/[^0-9]*$/)||"").toString();return b5[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}function Zl(e){var t=S5(e);return"".concat(t.value).concat(t.unit)}var E5=function(e,t,n){var r="react-spinners-".concat(e,"-").concat(n);if(typeof window>"u"||!window.document)return r;var o=document.createElement("style");document.head.appendChild(o);var s=o.sheet,a=` + */const s5=Io("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),n0=Sv,a5=Ev,l5=Cv,r0=b.forwardRef(({className:e,...t},n)=>v.jsx(Sd,{ref:n,className:Se("fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));r0.displayName=Sd.displayName;const Ld=b.forwardRef(({className:e,children:t,...n},r)=>v.jsxs(l5,{children:[v.jsx(r0,{}),v.jsxs(Ed,{ref:r,className:Se("fixed left-[50%] top-[50%] z-50 grid w-[90%] max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border backdrop-blur-lg bg-black/80 p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",e),...n,children:[t,v.jsxs(Tv,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[v.jsx(s5,{className:"h-4 w-4"}),v.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ld.displayName=Ed.displayName;const Id=({className:e,...t})=>v.jsx("div",{className:Se("flex flex-col space-y-1.5 sm:text-left",e),...t});Id.displayName="DialogHeader";const Dd=b.forwardRef(({className:e,...t},n)=>v.jsx(Cd,{ref:n,className:Se("text-lg font-semibold leading-none tracking-tight",e),...t}));Dd.displayName=Cd.displayName;const o0=b.forwardRef(({className:e,...t},n)=>v.jsx(Td,{ref:n,className:Se("text-sm text-muted-foreground",e),...t}));o0.displayName=Td.displayName;const i0=b.forwardRef(({className:e,type:t,...n},r)=>v.jsx("input",{type:t,className:Se("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));i0.displayName="Input";function s0({size:e}){const[t,n]=b.useState(!1),[r,o]=b.useState([]),[s,a]=b.useState(!1),[l,c]=b.useState(""),[u,d]=b.useState(-1),f="4c1eef5a8d388386187a3426bc2345be",h=jo(),m=async S=>{if(!S){o([]);return}a(!0);try{const g=await fetch(`https://api.themoviedb.org/3/search/movie?api_key=${f}&query=${encodeURIComponent(S)}`);if(!g.ok){lt("Something went wrong",{type:"error"});return}const y=((await g.json()).results||[]).filter(E=>E.poster_path);o(y)}catch(g){lt("Failed to fetch",{type:"error",description:g.message}),console.error("Error fetching movies:",g),o([])}finally{a(!1)}},x=S=>{const g=S.target.value;c(g),m(g)},w=S=>{if(r.length!==0){if(S.key==="ArrowDown")S.preventDefault(),d(g=>Math.min(g+1,r.length-1));else if(S.key==="ArrowUp")S.preventDefault(),d(g=>Math.max(g-1,0));else if(S.key==="Enter"&&u>=0){S.preventDefault();const g=r[u];g&&(console.log("Selected movie:",g.title),h(`/movie/${g.id}`),n(!1))}}};return b.useEffect(()=>{const S=g=>{g.key==="j"&&(g.metaKey||g.ctrlKey)&&(g.preventDefault(),n(p=>!p))};return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[]),v.jsx(v.Fragment,{children:v.jsxs(n0,{open:t,onOpenChange:n,children:[v.jsx(a5,{asChild:!0,children:v.jsx("div",{className:"cursor-pointer",onClick:()=>n(!0),children:v.jsx(Ab,{size:e})})}),v.jsxs(Ld,{children:[v.jsx(Id,{children:v.jsx(Dd,{children:"Movie Search"})}),v.jsx(i0,{type:"text",placeholder:"Type a movie name...",value:l,onChange:x,onKeyDown:w,className:"w-full mt-2 mb-2"}),r.length===0?v.jsx("p",{className:"text-center text-gray-500",children:"No results found."}):v.jsx("div",{className:"mt-2 max-h-64 overflow-y-auto",children:r.map((S,g)=>{const p=`https://image.tmdb.org/t/p/w92${S.poster_path}`,y=S.release_date?new Date(S.release_date).getFullYear():"N/A",E=g===u;return v.jsxs($t,{to:`/movie/${S.id}`,className:`p-1 mt-1 flex items-center rounded-md ${E?"bg-zinc-800":"hover:bg-zinc-800"}`,onClick:()=>{console.log("Selected movie:",S.title),n(!1)},children:[v.jsx("img",{src:p,alt:S.title,className:"w-12 h-18 object-cover rounded-md mr-2"}),v.jsxs("div",{children:[v.jsx("p",{className:"text-sm",children:S.title}),v.jsx("p",{className:"text-xs text-gray-500",children:y})]})]},S.id)})})]})]})})}const c5="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='224'%20zoomAndPan='magnify'%20viewBox='0%200%20168%20121.500001'%20height='162'%20preserveAspectRatio='xMidYMid%20meet'%20version='1.0'%3e%3cdefs%3e%3cclipPath%20id='875865d4e3'%3e%3cpath%20d='M%200.34375%200%20L%20132%200%20L%20132%20120.253906%20L%200.34375%20120.253906%20Z%20M%200.34375%200%20'%20clip-rule='nonzero'/%3e%3c/clipPath%3e%3cclipPath%20id='76a3263465'%3e%3cpath%20d='M%2033%2034%20L%20136.285156%2034%20L%20136.285156%20120.253906%20L%2033%20120.253906%20Z%20M%2033%2034%20'%20clip-rule='nonzero'/%3e%3c/clipPath%3e%3cclipPath%20id='aa2c867008'%3e%3cpath%20d='M%20132.601562%2085.375%20L%20167.65625%2085.375%20L%20167.65625%20120.480469%20L%20132.601562%20120.480469%20Z%20M%20132.601562%2085.375%20'%20clip-rule='nonzero'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23875865d4e3)'%3e%3cpath%20fill='%23ffffff'%20d='M%2021.648438%20120.289062%20L%2021.648438%20103.386719%20L%2021.5625%20103.386719%20L%2021.5625%2022.984375%20C%2022.046875%2022.824219%2022.261719%2022.695312%2022.46875%2022.695312%20C%2042.335938%2022.679688%2062.210938%2022.382812%2082.070312%2022.773438%20C%2093.59375%2023%20102.09375%2029.015625%20106.59375%2039.628906%20C%20111.035156%2050.121094%20109.117188%2059.96875%20101.777344%2068.722656%20C%20101.140625%2069.480469%20100.554688%2070.277344%20100.261719%2070.65625%20C%20105.554688%2075.882812%20110.617188%2080.886719%20115.773438%2085.976562%20C%20115.574219%2086.085938%20115.800781%2086.007812%20115.964844%2085.863281%20C%20116.386719%2085.484375%20116.8125%2085.09375%20117.191406%2084.671875%20C%20131.199219%2068.992188%20135.121094%2050.992188%20127.195312%2031.597656%20C%20119.164062%2011.949219%20103.574219%201.183594%2082.3125%200.652344%20C%2055.613281%20-0.0078125%2028.878906%200.472656%202.160156%200.472656%20C%201.59375%200.472656%201.027344%200.515625%200.402344%200.570312%20L%200.402344%20120.289062%20Z%20M%2021.648438%20120.289062%20'%20fill-opacity='1'%20fill-rule='nonzero'/%3e%3c/g%3e%3cg%20clip-path='url(%2376a3263465)'%3e%3cpath%20fill='%23ffffff'%20d='M%2053.488281%20120.289062%20L%2053.488281%2072.085938%20C%2059.453125%2077.992188%2065.449219%2083.929688%2071.429688%2089.851562%20C%2076.003906%2094.371094%2080.566406%2098.890625%2085.109375%20103.382812%20L%2084.828125%20103.382812%20L%20101.5625%20120.289062%20L%20136.226562%20120.289062%20C%20114.300781%2098.464844%2092.363281%2076.640625%2070.335938%2054.722656%20L%2089.777344%2054.722656%20L%2089.777344%2034.167969%20L%2033.582031%2034.167969%20L%2033.582031%20120.289062%20Z%20M%2053.488281%20120.289062%20'%20fill-opacity='1'%20fill-rule='nonzero'/%3e%3c/g%3e%3cpath%20fill='%23ffffff'%20d='M%2053.628906%2071.863281%20C%2068.707031%2086.9375%2083.78125%20102.699219%2099.269531%20117.972656%20'%20fill-opacity='1'%20fill-rule='nonzero'/%3e%3cg%20clip-path='url(%23aa2c867008)'%3e%3cpath%20fill='%23ffffff'%20d='M%20150.0625%2085.375%20C%20159.703125%2085.375%20167.523438%2093.191406%20167.523438%20102.832031%20C%20167.523438%20112.476562%20159.703125%20120.292969%20150.0625%20120.292969%20C%20140.417969%20120.292969%20132.601562%20112.476562%20132.601562%20102.832031%20C%20132.601562%2093.191406%20140.417969%2085.375%20150.0625%2085.375%20Z%20M%20150.0625%2085.375%20'%20fill-opacity='1'%20fill-rule='evenodd'/%3e%3c/g%3e%3c/svg%3e",u5=()=>v.jsxs("div",{className:"border-b justify-normal lg:justify-between gap-4 fixed z-50 top-0 left-0 w-full bg-zinc-950/40 backdrop-blur-lg px-5 py-1 flex items-center h-[50px]",children:[v.jsx($t,{to:"/",children:v.jsx("div",{children:v.jsx("img",{className:"h-8 py-1",src:c5,alt:"Rflix"})})}),v.jsxs("div",{className:"flex items-center gap-4 justify-end w-full",children:[v.jsx($t,{to:"/discover",children:v.jsx("div",{className:"hidden lg:block",children:v.jsx(Wg,{size:20})})}),v.jsx(s0,{size:20}),v.jsx($t,{to:"/watchlist",children:v.jsx("div",{className:"text-white transition-colors px-5 py-1 border border-zinc-500 rounded-full hover:bg-gradient-to-r from-cyan-500 to-blue-500 hover:border-none ",children:v.jsx(pd,{size:20})})})]})]});function d5(e){return nt({tag:"svg",attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"},child:[]}]})(e)}function f5(e){return nt({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"},child:[]}]})(e)}function p5(e){return nt({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"},child:[]}]})(e)}function m5(e){return nt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"},child:[]}]})(e)}function h5(e){return nt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20.216 6.415l-.132-.666c-.119-.598-.388-1.163-1.001-1.379-.197-.069-.42-.098-.57-.241-.152-.143-.196-.366-.231-.572-.065-.378-.125-.756-.192-1.133-.057-.325-.102-.69-.25-.987-.195-.4-.597-.634-.996-.788a5.723 5.723 0 00-.626-.194c-1-.263-2.05-.36-3.077-.416a25.834 25.834 0 00-3.7.062c-.915.083-1.88.184-2.75.5-.318.116-.646.256-.888.501-.297.302-.393.77-.177 1.146.154.267.415.456.692.58.36.162.737.284 1.123.366 1.075.238 2.189.331 3.287.37 1.218.05 2.437.01 3.65-.118.299-.033.598-.073.896-.119.352-.054.578-.513.474-.834-.124-.383-.457-.531-.834-.473-.466.074-.96.108-1.382.146-1.177.08-2.358.082-3.536.006a22.228 22.228 0 01-1.157-.107c-.086-.01-.18-.025-.258-.036-.243-.036-.484-.08-.724-.13-.111-.027-.111-.185 0-.212h.005c.277-.06.557-.108.838-.147h.002c.131-.009.263-.032.394-.048a25.076 25.076 0 013.426-.12c.674.019 1.347.067 2.017.144l.228.031c.267.04.533.088.798.145.392.085.895.113 1.07.542.055.137.08.288.111.431l.319 1.484a.237.237 0 01-.199.284h-.003c-.037.006-.075.01-.112.015a36.704 36.704 0 01-4.743.295 37.059 37.059 0 01-4.699-.304c-.14-.017-.293-.042-.417-.06-.326-.048-.649-.108-.973-.161-.393-.065-.768-.032-1.123.161-.29.16-.527.404-.675.701-.154.316-.199.66-.267 1-.069.34-.176.707-.135 1.056.087.753.613 1.365 1.37 1.502a39.69 39.69 0 0011.343.376.483.483 0 01.535.53l-.071.697-1.018 9.907c-.041.41-.047.832-.125 1.237-.122.637-.553 1.028-1.182 1.171-.577.131-1.165.2-1.756.205-.656.004-1.31-.025-1.966-.022-.699.004-1.556-.06-2.095-.58-.475-.458-.54-1.174-.605-1.793l-.731-7.013-.322-3.094c-.037-.351-.286-.695-.678-.678-.336.015-.718.3-.678.679l.228 2.185.949 9.112c.147 1.344 1.174 2.068 2.446 2.272.742.12 1.503.144 2.257.156.966.016 1.942.053 2.892-.122 1.408-.258 2.465-1.198 2.616-2.657.34-3.332.683-6.663 1.024-9.995l.215-2.087a.484.484 0 01.39-.426c.402-.078.787-.212 1.074-.518.455-.488.546-1.124.385-1.766zm-1.478.772c-.145.137-.363.201-.578.233-2.416.359-4.866.54-7.308.46-1.748-.06-3.477-.254-5.207-.498-.17-.024-.353-.055-.47-.18-.22-.236-.111-.71-.054-.995.052-.26.152-.609.463-.646.484-.057 1.046.148 1.526.22.577.088 1.156.159 1.737.212 2.48.226 5.002.19 7.472-.14.45-.06.899-.13 1.345-.21.399-.072.84-.206 1.08.206.166.281.188.657.162.974a.544.544 0 01-.169.364zm-6.159 3.9c-.862.37-1.84.788-3.109.788a5.884 5.884 0 01-1.569-.217l.877 9.004c.065.78.717 1.38 1.5 1.38 0 0 1.243.065 1.658.065.447 0 1.786-.065 1.786-.065.783 0 1.434-.6 1.499-1.38l.94-9.95a3.996 3.996 0 00-1.322-.238c-.826 0-1.491.284-2.26.613z"},child:[]}]})(e)}const g5=()=>v.jsx("footer",{className:"bg-zinc-950",children:v.jsxs("div",{className:"w-full max-w-screen-xl mx-auto p-5 md:py-8",children:[v.jsxs("div",{className:"sm:flex sm:items-center sm:justify-between",children:[v.jsxs("a",{href:"https://linktr.ee/ranjankashyap",className:"flex items-center mb-4 sm:mb-0 space-x-3 rtl:space-x-reverse",children:[v.jsx("img",{src:"https://i.ibb.co/Z2M7rLd/profile-pic-2.png",className:"h-8",alt:"Rflix Logo"}),v.jsx("span",{className:"self-center text-2xl font-semibold whitespace-nowrap dark:text-white",children:"Ranjan"})]}),v.jsxs("div",{className:"flex space-x-5",children:[v.jsx("a",{href:"https://buymeacoffee.com/ranjankashyap",target:"_blank",rel:"noopener noreferrer",className:"text-zinc-400 hover:text-white transition-transform transform hover:scale-110",children:v.jsx(h5,{size:20})}),v.jsx("a",{href:"https://github.com/RanjanWorks",target:"_blank",rel:"noopener noreferrer",className:"text-zinc-400 hover:text-white transition-transform transform hover:scale-110",children:v.jsx(d5,{size:20})}),v.jsx("a",{href:"mailto:kashyapranjan9977@gmail.com",className:"text-zinc-400 hover:text-white transition-transform transform hover:scale-110",children:v.jsx(m5,{size:20})}),v.jsx("a",{href:"https://wa.me/+916266245085",target:"_blank",rel:"noopener noreferrer",className:"text-zinc-400 hover:text-white transition-transform transform hover:scale-110",children:v.jsx(p5,{size:20})}),v.jsx("a",{href:"https://www.linkedin.com/in/ishere-ranjan/",target:"_blank",rel:"noopener noreferrer",className:"text-zinc-400 hover:text-white transition-transform transform hover:scale-110",children:v.jsx(f5,{size:20})})]})]}),v.jsx("hr",{className:"my-6 border-zinc-200 sm:mx-auto dark:border-zinc-700 lg:my-8"}),v.jsxs("span",{className:"block text-sm text-zinc-500 sm:text-center dark:text-zinc-400",children:["© ",new Date().getFullYear()," ",v.jsx("a",{href:"https://flowbite.com/",className:"hover:underline",children:"Ranjan"}),". All Rights Reserved."]})]})}),v5=()=>v.jsx("div",{className:"fixed z-50 w-full h-16 max-w-lg -translate-x-1/2 rounded-t-lg border border-inherit bottom-0 left-1/2 bg-black/60 backdrop-blur-lg overflow-hidden transition-transform duration-300",children:v.jsxs("div",{className:"grid grid-cols-4 items-center w-full h-full justify-center",children:[v.jsx($t,{to:"/",className:"inline h-full",children:v.jsxs("div",{className:"flex items-center justify-center gap-1 flex-col lg:hover:bg-zinc-700/50 h-full cursor-pointer",children:[v.jsx(Db,{size:25}),v.jsx("span",{className:"text-xs text-slate-400",children:"Home"})]})}),v.jsxs("div",{className:"flex items-center justify-center gap-1 flex-col lg:hover:bg-zinc-700/50 h-full cursor-pointer",children:[v.jsx(s0,{size:25}),v.jsx("span",{className:"text-xs text-slate-400",children:"Search"})]}),v.jsx($t,{to:"/discover",className:"inline h-full",children:v.jsxs("div",{className:"flex items-center justify-center gap-1 flex-col lg:hover:bg-zinc-700/50 h-full cursor-pointer",children:[v.jsx(Wg,{size:25}),v.jsx("span",{className:"text-xs text-slate-400",children:"Discover"})]})}),v.jsx($t,{to:"/watchlist",className:"inline h-full",children:v.jsxs("div",{className:"flex items-center justify-center gap-1 flex-col lg:hover:bg-zinc-700/50 h-full cursor-pointer",children:[v.jsx(pd,{size:25}),v.jsx("span",{className:"text-xs text-slate-400",children:"Favorite"})]})})]})}),y5=()=>v.jsxs("div",{className:"layout-container",children:[v.jsx(u5,{}),v.jsx("div",{className:"content mt-[50px]",children:v.jsx(_x,{})}),v.jsx("div",{className:"lg:hidden",children:v.jsx(v5,{})}),v.jsx(g5,{})]});function a0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,Vp=w5,x5=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Vp(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],f=s==null?void 0:s[u];if(d===null)return null;const h=Fp(d)||Fp(f);return o[u][h]}),l=n&&Object.entries(n).reduce((u,d)=>{let[f,h]=d;return h===void 0||(u[f]=h),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:f,className:h,...m}=d;return Object.entries(m).every(x=>{let[w,S]=x;return Array.isArray(S)?S.includes({...s,...l}[w]):{...s,...l}[w]===S})?[...u,f,h]:u},[]);return Vp(e,a,c,n==null?void 0:n.class,n==null?void 0:n.className)},l0=x5("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),su=b.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const a=r?Rr:"button";return v.jsx(a,{className:Se(l0({variant:t,size:n,className:e})),ref:s,...o})});su.displayName="Button";var ys=function(e,t){return et?1:0},Hp=function(e){return e.reduce(function(t,n){return t+n},0)},b5=function(){function e(n){this.colors=n}var t=e.prototype;return t.palette=function(){return this.colors},t.map=function(n){return n},e}(),S5=function(){function e(s,a,l){return(s<<10)+(a<<5)+l}function t(s){var a=[],l=!1;function c(){a.sort(s),l=!0}return{push:function(u){a.push(u),l=!1},peek:function(u){return l||c(),u===void 0&&(u=a.length-1),a[u]},pop:function(){return l||c(),a.pop()},size:function(){return a.length},map:function(u){return a.map(u)},debug:function(){return l||c(),a}}}function n(s,a,l,c,u,d,f){var h=this;h.r1=s,h.r2=a,h.g1=l,h.g2=c,h.b1=u,h.b2=d,h.histo=f}function r(){this.vboxes=new t(function(s,a){return ys(s.vbox.count()*s.vbox.volume(),a.vbox.count()*a.vbox.volume())})}function o(s,a){if(a.count()){var l=a.r2-a.r1+1,c=a.g2-a.g1+1,u=Math.max.apply(null,[l,c,a.b2-a.b1+1]);if(a.count()==1)return[a.copy()];var d,f,h,m,x=0,w=[],S=[];if(u==l)for(d=a.r1;d<=a.r2;d++){for(m=0,f=a.g1;f<=a.g2;f++)for(h=a.b1;h<=a.b2;h++)m+=s[e(d,f,h)]||0;w[d]=x+=m}else if(u==c)for(d=a.g1;d<=a.g2;d++){for(m=0,f=a.r1;f<=a.r2;f++)for(h=a.b1;h<=a.b2;h++)m+=s[e(f,d,h)]||0;w[d]=x+=m}else for(d=a.b1;d<=a.b2;d++){for(m=0,f=a.r1;f<=a.r2;f++)for(h=a.g1;h<=a.g2;h++)m+=s[e(f,h,d)]||0;w[d]=x+=m}return w.forEach(function(g,p){S[p]=x-g}),function(g){var p,y,E,C,k,T=g+"1",P=g+"2",O=0;for(d=a[T];d<=a[P];d++)if(w[d]>x/2){for(E=a.copy(),C=a.copy(),k=(p=d-a[T])<=(y=a[P]-d)?Math.min(a[P]-1,~~(d+y/2)):Math.max(a[T],~~(d-1-p/2));!w[k];)k++;for(O=S[k];!O&&w[k-1];)O=S[--k];return E[P]=k,C[T]=E[P]+1,[E,C]}}(u==l?"r":u==c?"g":"b")}}return n.prototype={volume:function(s){var a=this;return a._volume&&!s||(a._volume=(a.r2-a.r1+1)*(a.g2-a.g1+1)*(a.b2-a.b1+1)),a._volume},count:function(s){var a=this,l=a.histo;if(!a._count_set||s){var c,u,d,f=0;for(c=a.r1;c<=a.r2;c++)for(u=a.g1;u<=a.g2;u++)for(d=a.b1;d<=a.b2;d++)f+=l[e(c,u,d)]||0;a._count=f,a._count_set=!0}return a._count},copy:function(){var s=this;return new n(s.r1,s.r2,s.g1,s.g2,s.b1,s.b2,s.histo)},avg:function(s){var a=this,l=a.histo;if(!a._avg||s){var c,u,d,f,h=0,m=0,x=0,w=0;if(a.r1===a.r2&&a.g1===a.g2&&a.b1===a.b2)a._avg=[a.r1<<3,a.g1<<3,a.b1<<3];else{for(u=a.r1;u<=a.r2;u++)for(d=a.g1;d<=a.g2;d++)for(f=a.b1;f<=a.b2;f++)h+=c=l[e(u,d,f)]||0,m+=c*(u+.5)*8,x+=c*(d+.5)*8,w+=c*(f+.5)*8;a._avg=h?[~~(m/h),~~(x/h),~~(w/h)]:[~~(8*(a.r1+a.r2+1)/2),~~(8*(a.g1+a.g2+1)/2),~~(8*(a.b1+a.b2+1)/2)]}}return a._avg},contains:function(s){var a=this,l=s[0]>>3;return gval=s[1]>>3,bval=s[2]>>3,l>=a.r1&&l<=a.r2&&gval>=a.g1&&gval<=a.g2&&bval>=a.b1&&bval<=a.b2}},r.prototype={push:function(s){this.vboxes.push({vbox:s,color:s.avg()})},palette:function(){return this.vboxes.map(function(s){return s.color})},size:function(){return this.vboxes.size()},map:function(s){for(var a=this.vboxes,l=0;l251&&c[1]>251&&c[2]>251&&(s[l].color=[255,255,255])}},{quantize:function(s,a){if(!Number.isInteger(a)||a<1||a>256)throw new Error("Invalid maximum color count. It must be an integer between 1 and 256.");if(!s.length||a<2||a>256||!s.length||a<2||a>256)return!1;for(var l=[],c=new Set,u=0;u>3,C[1]>>3,C[2]>>3),E[y]=(E[y]||0)+1}),E}(s);h.forEach(function(){});var m=function(p,y){var E,C,k,T=1e6,P=0,O=1e6,R=0,z=1e6,j=0;return p.forEach(function(N){(E=N[0]>>3)P&&(P=E),(C=N[1]>>3)R&&(R=C),(k=N[2]>>3)j&&(j=k)}),new n(T,P,O,R,z,j,y)}(s,h),x=new t(function(p,y){return ys(p.count(),y.count())});function w(p,y){for(var E,C=p.size(),k=0;k<1e3;){if(C>=y||k++>1e3)return;if((E=p.pop()).count()){var T=o(h,E),P=T[0],O=T[1];if(!P)return;p.push(P),O&&(p.push(O),C++)}else p.push(E),k++}}x.push(m),w(x,.75*a);for(var S=new t(function(p,y){return ys(p.count()*p.volume(),y.count()*y.volume())});x.size();)S.push(x.pop());w(S,a);for(var g=new r;S.size();)g.push(S.pop());return g}}}().quantize,c0=function(e){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.width=this.canvas.width=e.naturalWidth,this.height=this.canvas.height=e.naturalHeight,this.context.drawImage(e,0,0,this.width,this.height)};c0.prototype.getImageData=function(){return this.context.getImageData(0,0,this.width,this.height)};var Ur=function(){};Ur.prototype.getColor=function(e,t){return t===void 0&&(t=10),this.getPalette(e,5,t)[0]},Ur.prototype.getPalette=function(e,t,n){var r=function(l){var c=l.colorCount,u=l.quality;if(c!==void 0&&Number.isInteger(c)){if(c===1)throw new Error("colorCount should be between 2 and 20. To get one color, call getColor() instead of getPalette()");c=Math.max(c,2),c=Math.min(c,20)}else c=10;return(u===void 0||!Number.isInteger(u)||u<1)&&(u=10),{colorCount:c,quality:u}}({colorCount:t,quality:n}),o=new c0(e),s=function(l,c,u){for(var d,f,h,m,x,w=l,S=[],g=0;g=125)&&(f>250&&h>250&&m>250||S.push([f,h,m]));return S}(o.getImageData().data,o.width*o.height,r.quality),a=S5(s,r.colorCount);return a?a.palette():null},Ur.prototype.getColorFromUrl=function(e,t,n){var r=this,o=document.createElement("img");o.addEventListener("load",function(){var s=r.getPalette(o,5,n);t(s[0],e)}),o.src=e},Ur.prototype.getImageData=function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=function(){if(this.status==200){var r=new Uint8Array(this.response);i=r.length;for(var o=new Array(i),s=0;snew Promise((t,n)=>{const r=new Ur,o=new Image;o.crossOrigin="anonymous",o.src=e,o.onload=()=>{try{const s=r.getColor(o);t(s)}catch{n("Failed to extract dominant color")}},o.onerror=()=>n("Image failed to load")}),C5=e=>((r,o,s)=>{const a=[r,o,s].map(l=>(l/=255,l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)));return a[0]*.2126+a[1]*.7152+a[2]*.0722})(e[0],e[1],e[2])>.5?"black":"white";function T5({persons:e}){return v.jsx(Ro,{spaceBetween:5,slidesPerView:5,navigation:!0,modules:[Xv],className:"mySwiper",watchSlidesProgress:!0,breakpoints:{320:{slidesPerView:3.5},640:{slidesPerView:4.5},768:{slidesPerView:5.5},1024:{slidesPerView:6.5}},children:e.map(t=>v.jsx(Mo,{children:v.jsxs("div",{className:" rounded-md p-1 max-w-xs sm:max-w-sm md:max-w-md lg:max-w-lg bg-gradient-to-l from-sky-900/20 to-voilet-900/20 rounded-t-x ",children:[v.jsx($t,{to:`/person/${t.id}`,children:t.profile_path===null?v.jsx(xa.LazyLoadImage,{className:"rounded-md",src:"https://picsum.photos/200/300/?blur=2",alt:t.name,effect:"blur"}):v.jsx(xa.LazyLoadImage,{className:"rounded-md",src:`https://image.tmdb.org/t/p/w500/${t.profile_path}`,alt:t.name,effect:"blur"})}),v.jsxs("div",{className:"my-2",children:[v.jsx("h1",{className:"text-teal-50 text-sm lg:text-xl overflow-hidden text-ellipsis whitespace-nowrap",children:t.name}),v.jsx("h2",{className:"text-xs overflow-hidden text-ellipsis whitespace-nowrap text-zinc-500",children:t.character})]})]})},t.id))})}function P5({backdrops:e}){return v.jsx(Ro,{spaceBetween:0,pagination:{type:"fraction"},autoplay:{delay:3e3,disableOnInteraction:!0},slidesPerView:3,navigation:!0,modules:[Xv,vC,qv,Qv],className:"mySwiper",breakpoints:{320:{slidesPerView:1},640:{slidesPerView:1},768:{slidesPerView:2},1024:{slidesPerView:3}},children:e.backdrops.map((t,n)=>v.jsx(Mo,{children:v.jsx(xa.LazyLoadImage,{className:"aspect-video w-full",src:`https://image.tmdb.org/t/p/w500/${t.file_path}`,alt:t.id,effect:"blur"})},n))})}function Yl(e){return nt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},child:[]},{tag:"polyline",attr:{points:"15 3 21 3 21 9"},child:[]},{tag:"line",attr:{x1:"10",y1:"14",x2:"21",y2:"3"},child:[]}]})(e)}const k5=({movie:e,Bg:t,textColor1:n,movieKeywords:r})=>{function o(){const c=`https://www.jalshamoviez.er.in/mobile/search?find=${e.title.replace(/ /g,"+")}&per_page=1`;window.open(c,"_blank")}function s(){const c=`https://www.filmyfly.durban/site-1.html?to-search=${e.title.replace(/ /g,"+")}`;window.open(c,"_blank")}function a(){const c=`${e.title} site:filmyzilla.com.by`,u=`https://www.google.com/search?q=${encodeURIComponent(c)}`;window.open(u,"_blank")}return v.jsxs("div",{style:{background:`${t}`,color:`${n}`},className:"p-5 flex items-start gap-3 flex-col mt-10",children:[v.jsxs("div",{className:"flex flex-col",children:[v.jsx("h1",{className:"text-3xl lg:text-5xl font-bold text",children:e.title===e.original_title?e.title:`${e.title} (${e.original_title})`}),v.jsx("p",{className:"text-xs",children:e.release_date})]}),v.jsxs("div",{children:[v.jsx("p",{className:"font-semibold text-md",children:"Production Country"}),e.production_countries.map(l=>v.jsx("p",{className:"text-xs",children:l.name},l.iso_3166_1))]}),v.jsxs("div",{children:[v.jsx("p",{className:"font-semibold text-md",children:"Origin Country"}),v.jsx("p",{className:"text-xs",children:e.origin_country})]}),v.jsxs("div",{children:[v.jsx("p",{className:"font-semibold text-md",children:"Status"}),v.jsx("p",{className:"text-xs",children:e.status})]}),e.budget?v.jsxs("div",{children:[v.jsx("p",{className:"font-semibold text-md",children:"Budget"}),v.jsx("p",{className:"text-xs",children:new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR"}).format(e.budget)})]}):"",e.revenue?v.jsxs("div",{children:[v.jsx("p",{className:"font-semibold text-md",children:"Revenue"}),v.jsx("p",{className:"text-xs",children:new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR"}).format(e.revenue)})]}):"",v.jsxs("div",{children:[v.jsx("p",{className:"font-semibold text-md",children:"Download"}),v.jsxs("div",{className:"flex mt-2",children:[v.jsxs("button",{onClick:o,className:"bg-black bg-opacity-10 px-2 py-1 rounded-l-md text-xs flex items-center gap-2",children:["Jalshamoviez ",v.jsx(Yl,{})]}),v.jsxs("button",{onClick:s,className:"bg-black bg-opacity-10 px-2 py-1 text-xs flex items-center gap-2",children:["Filmyfly ",v.jsx(Yl,{})]}),v.jsxs("button",{onClick:a,className:"bg-black bg-opacity-10 px-2 py-1 rounded-r-md text-xs flex items-center gap-2",children:["FilmyZilla ",v.jsx(Yl,{})]})]})]}),r.length>0?v.jsxs("div",{className:"flex flex-col",children:[v.jsx("p",{className:"font-semibold text-md mb-2",children:"Keywords"}),v.jsx("div",{className:"flex items-start gap-1 flex-wrap",children:r.map(l=>v.jsx("p",{className:" bg-black bg-opacity-10 px-2 py-1 text-xs rounded-sm",children:l.name},l.id))})]}):""]})};var N5={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function O5(e){if(typeof e=="number")return{value:e,unit:"px"};var t,n=(e.match(/^[0-9.]*/)||"").toString();n.includes(".")?t=parseFloat(n):t=parseInt(n,10);var r=(e.match(/[^0-9]*$/)||"").toString();return N5[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}function Kl(e){var t=O5(e);return"".concat(t.value).concat(t.unit)}var j5=function(e,t,n){var r="react-spinners-".concat(e,"-").concat(n);if(typeof window>"u"||!window.document)return r;var o=document.createElement("style");document.head.appendChild(o);var s=o.sheet,a=` @keyframes `.concat(r,` { `).concat(t,` } - `);return s&&s.insertRule(a,0),r},Pa=function(){return Pa=Object.assign||function(e){for(var t,n=1,r=arguments.length;ny.jsx("div",{style:k5.container,children:y.jsx(P5,{color:t,loading:e,size:n})}),k5={container:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"}};function N5(){const{id:e}=ud(),t=jo(),[n,r]=b.useState(null),[o,s]=b.useState([]),[a,l]=b.useState([]),[c,u]=b.useState([]),[d,f]=b.useState([]),[h,m]=b.useState([]),[x,w]=b.useState(null),[S,g]=b.useState(!0),[p,v]=b.useState(!1),[E,C]=b.useState(!1),[P,T]=b.useState(""),[k,O]=b.useState(""),[j,$]=b.useState("white"),[M,N]=b.useState(!1),[z,H]=b.useState(null),[W,K]=b.useState(100),_="4c1eef5a8d388386187a3426bc2345be";b.useEffect(()=>{window.scrollTo(0,0)},[e]),b.useEffect(()=>{const te=JSON.parse(localStorage.getItem("playlist"))||[];N(te.includes(Number(e)))},[e]),b.useEffect(()=>{const te=()=>{window.innerWidth>=1024?K(30):K(100)};return te(),window.addEventListener("resize",te),()=>{window.removeEventListener("resize",te)}},[]),b.useEffect(()=>{(async()=>{try{g(!0);const ae=[`https://api.themoviedb.org/3/movie/${e}?api_key=${_}`,`https://api.themoviedb.org/3/movie/${e}/recommendations?api_key=${_}`,`https://api.themoviedb.org/3/movie/${e}/credits?api_key=${_}`,`https://api.themoviedb.org/3/movie/${e}/videos?api_key=${_}`,`https://api.themoviedb.org/3/movie/${e}/images?api_key=${_}`,`https://api.themoviedb.org/3/movie/${e}/keywords?api_key=${_}`],[q,de,pe,ue,oe,ce]=await Promise.all(ae.map(I));if(q.status_code===34)throw new Error("Movie not found");const ie=(xe=>{const Ze=["Director","Screenplay","Producer","Writer","Editor","Story"];return xe.reduce((Ve,Ce)=>(Ze.includes(Ce.job)&&(Ve[Ce.id]?Ve[Ce.id].jobs.push(Ce.job):Ve[Ce.id]={name:Ce.name,jobs:[Ce.job]}),Ve),{})})(pe.crew);u(ie),r(q),s(de.results||[]),l(pe.cast||[]),f(oe||[]),m(ce.keywords||[]);const nt=`https://image.tmdb.org/t/p/w500/${q.poster_path}?not-from-cache-please`;try{const xe=await g5(nt),Ze=`rgb(${xe[0]}, ${xe[1]}, ${xe[2]})`,Ve=`rgba(${xe[0]}, ${xe[1]}, ${xe[2]}, 0.7)`;T(Ze),O(Ve),$(v5(xe))}catch(xe){console.error("Error fetching dominant color:",xe)}const ct=ue.results.filter(xe=>xe.type==="Trailer"&&xe.site==="YouTube");ct.length>0&&w(`https://www.youtube.com/embed/${ct[0].key}`),g(!1)}catch(ae){console.error("Error fetching movie data:",ae),it.error(ae.message||"An error occurred while fetching data"),H(ae.message),g(!1)}})()},[e,_]);const I=async te=>{const ae=await fetch(te);if(!ae.ok)throw new Error(`HTTP error: ${ae.status}`);return await ae.json()},U=()=>{n!=null&&n.title&&(C(!1),window.open(`https://bollyflix.meme/search/${n.title.replace(/ /g,"+")}`,"_blank"))},Z=()=>{C(!1)},Q=async()=>{if(!n){it.warn("No movie data available to share.");return}try{if(navigator.share)await navigator.share({title:n.title,text:`${n.title} (${n.release_date}): ${n.overview} -By Ranjan`,url:window.location.href}),it.success("Movie shared successfully!");else{const te=`${n.title} (${n.release_date}): ${n.overview} + `);return s&&s.insertRule(a,0),r},ba=function(){return ba=Object.assign||function(e){for(var t,n=1,r=arguments.length;nv.jsx("div",{style:L5.container,children:v.jsx(_5,{color:t,loading:e,size:n})}),L5={container:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"}};function I5(){const{id:e}=ud(),t=jo(),[n,r]=b.useState(null),[o,s]=b.useState([]),[a,l]=b.useState([]),[c,u]=b.useState([]),[d,f]=b.useState([]),[h,m]=b.useState([]),[x,w]=b.useState(null),[S,g]=b.useState(null),[p,y]=b.useState(!0),[E,C]=b.useState(!1),[k,T]=b.useState(!1),[P,O]=b.useState(""),[R,z]=b.useState(""),[j,N]=b.useState("white"),[$,V]=b.useState(!1),[U,X]=b.useState(null),[L,I]=b.useState(100),W="4c1eef5a8d388386187a3426bc2345be";b.useEffect(()=>{window.scrollTo(0,0)},[e]),b.useEffect(()=>{const Y=JSON.parse(localStorage.getItem("playlist"))||[];V(Y.includes(Number(e)))},[e]),b.useEffect(()=>{const Y=()=>{window.innerWidth>=1024?I(30):I(100)};return Y(),window.addEventListener("resize",Y),()=>{window.removeEventListener("resize",Y)}},[]),b.useEffect(()=>{(async()=>{try{y(!0);const re=[`https://api.themoviedb.org/3/movie/${e}?api_key=${W}`,`https://api.themoviedb.org/3/movie/${e}/recommendations?api_key=${W}`,`https://api.themoviedb.org/3/movie/${e}/credits?api_key=${W}`,`https://api.themoviedb.org/3/movie/${e}/videos?api_key=${W}`,`https://api.themoviedb.org/3/movie/${e}/images?api_key=${W}`,`https://api.themoviedb.org/3/movie/${e}/keywords?api_key=${W}`,`https://api.themoviedb.org/3/movie/${e}/release_dates?api_key=${W}`],[de,ce,oe,le,he,ie,rt]=await Promise.all(re.map(Z));if(de.status_code===34)throw new Error("Movie not found");const Ze=(Ee=>{const it=["Director","Screenplay","Producer","Writer","Editor","Story"];return Ee.reduce((Ce,Ue)=>(it.includes(Ue.job)&&(Ce[Ue.id]?Ce[Ue.id].jobs.push(Ue.job):Ce[Ue.id]={name:Ue.name,jobs:[Ue.job]}),Ce),{})})(oe.crew);u(Ze),r(de),s(ce.results||[]),l(oe.cast||[]),f(he||[]),m(ie.keywords||[]);const ot=rt.results.find(Ee=>Ee.iso_3166_1===de.origin_country[0]);if(ot){const Ee=ot.release_dates.find(it=>it.certification);w(Ee?Ee.certification:"NR")}else w("NR");const dt=`https://image.tmdb.org/t/p/w500/${de.poster_path}?not-from-cache-please`;try{const Ee=await E5(dt),it=`rgb(${Ee[0]}, ${Ee[1]}, ${Ee[2]})`,Ce=`rgba(${Ee[0]}, ${Ee[1]}, ${Ee[2]}, 0.7)`;O(it),z(Ce),N(C5(Ee))}catch(Ee){console.error("Error fetching dominant color:",Ee)}const Be=le.results.filter(Ee=>Ee.type==="Trailer"&&Ee.site==="YouTube");Be.length>0&&g(`https://www.youtube.com/embed/${Be[0].key}`),y(!1)}catch(re){console.error("Error fetching movie data:",re),lt.error(re.message||"An error occurred while fetching data"),X(re.message),y(!1)}})()},[e,W]);const Z=async Y=>{const re=await fetch(Y);if(!re.ok)throw new Error(`HTTP error: ${re.status}`);return await re.json()},Q=()=>{n!=null&&n.title&&(T(!1),window.open(`https://bollyflix.meme/search/${n.title.replace(/ /g,"+")}`,"_blank"))},J=()=>{T(!1)},ee=async()=>{if(!n){lt.warn("No movie data available to share.");return}try{if(navigator.share)await navigator.share({title:n.title,text:`${n.title} (${n.release_date}): ${n.overview} +By Ranjan`,url:window.location.href}),lt.success("Movie shared successfully!");else{const Y=`${n.title} (${n.release_date}): ${n.overview} URL: ${window.location.href} -By Ranjan`;await navigator.clipboard.writeText(te),it.info("Details copied to clipboard!")}}catch(te){it.error(`Failed to share: ${te.message}`)}},J=te=>{const ae=JSON.parse(localStorage.getItem("playlist"))||[];if(ae.includes(te)){it("Movie already in favorite.",{type:"warning",action:{label:"View",onClick:()=>t("/watchlist")}});return}ae.push(te),localStorage.setItem("playlist",JSON.stringify(ae)),it.success(`${n.title} added to favorite!`,{action:{label:"View",onClick:()=>t("/watchlist")}}),N(!0)},ee=te=>{const ae=Math.floor(te/60),q=te%60;return`${ae>0?`${ae}h`:""} ${q>0?`${q}m`:""}`.trim()};return S?y.jsx(el,{color:P||"gray",loading:!0,size:20}):z?y.jsxs("div",{className:"flex items-center justify-center h-screen text-2xl text-orange-500",children:[" ",z," "]}):y.jsxs(y.Fragment,{children:[y.jsxs("div",{style:{backgroundImage:`url(https://image.tmdb.org/t/p/original/${n.backdrop_path})`,backgroundSize:"cover",backgroundPosition:"center",color:`${j}`},className:"relative flex items-center justify-start w-full p-4 aspect-video z-20 lg:hidden",children:[y.jsx("div",{className:"absolute inset-0 z-10",style:{background:`linear-gradient(to right, ${P} 30%, transparent)`}}),y.jsx("img",{className:"w-1/3 z-20 relative rounded-md",src:`https://image.tmdb.org/t/p/w500/${n.poster_path}`,alt:n.title})]}),y.jsxs("div",{style:{backgroundImage:`url(https://image.tmdb.org/t/p/original/${n.backdrop_path})`,backgroundSize:"cover",color:`${j}`},className:"relative grid grid-cols-1 lg:grid-cols-[300px_auto] gap-5 p-5 lg:py-8 ",children:[y.jsx("div",{className:" relative flex justify-start items-start rounded-lg bg-cover bg-center shadow-md ",children:y.jsx("img",{className:" hidden lg:block relative z-10 lg:w-full h-auto w-full md:max-w-md lg:max-w-lg rounded-lg",src:`https://image.tmdb.org/t/p/w500/${n.poster_path}`,alt:n.title})}),y.jsxs("div",{className:"relative z-10 flex flex-col gap-3",children:[y.jsxs("div",{className:"flex flex-col",children:[y.jsxs("h1",{className:"text-2xl sm:text-3xl lg:text-4xl font-semibold",children:[n.title," (",n.release_date.split("-")[0],")"]}),y.jsxs("p",{className:"text-sm lg:text-base",children:[n.original_language.toUpperCase()," |"," ",n.genres.map(te=>te.name).join(", ")," |"," ",ee(n.runtime)]})]}),y.jsxs("div",{className:"my-1 flex items-center gap-2",children:[y.jsxs("div",{children:[y.jsx("div",{style:{background:j,color:P},className:"w-10 h-10 rounded-full flex items-center justify-center cursor-pointer",onClick:()=>C(!0),children:y.jsx(_b,{})}),y.jsx(iy,{open:E,onOpenChange:C,children:y.jsx(Wd,{children:y.jsxs(Ud,{children:[y.jsx(Gd,{children:"Confirm Redirect"}),y.jsxs(ay,{children:["You are about to leave this website and be redirected to a different site. Do you wish to proceed?",y.jsx("br",{}),y.jsxs("div",{className:"flex items-center justify-end mt-5 gap-2",children:[y.jsx(mu,{onClick:Z,variant:"outline",children:"Cancel"}),y.jsx(mu,{onClick:U,children:"Confirm"})]})]})]})})})]}),y.jsx("div",{onClick:()=>{J(n.id)},style:{background:j,color:P},className:"w-10 h-10 rounded-full flex items-center justify-center cursor-pointer",children:M?y.jsx(Lb,{}):y.jsx(pd,{})}),y.jsx("div",{style:{background:j,color:P},onClick:Q,className:"w-10 h-10 rounded-full flex items-center justify-center cursor-pointer",children:y.jsx(Ab,{})}),y.jsx("div",{style:{background:j,color:P},className:" h-10 px-4 gap-2 rounded-full flex items-center justify-center cursor-pointer",children:y.jsxs(Nd,{children:[y.jsxs(Wv,{className:"flex items-center gap-2",onClick:()=>v(!0),children:[" ",y.jsx(Hg,{}),"Play Trailer"]}),y.jsxs(Od,{children:[y.jsxs(jd,{children:[y.jsx(Md,{children:"Watch Trailer"}),y.jsxs(Rd,{children:["Watch the trailer for ",n.title]}),p&&x?y.jsx("iframe",{width:"100%",height:"315",src:`${x}?autoplay=1`,title:"Movie Trailer",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}):y.jsx("p",{children:"Trailer not available."})]}),y.jsx(Yv,{children:y.jsx(Uv,{onClick:()=>v(!1)})})]})]})})]}),y.jsxs("div",{children:[y.jsx("p",{className:"text-sm lg:text-base italic",children:n.tagline}),y.jsx("p",{className:"font-semibold text-xl",children:"Overview"}),y.jsx("p",{className:"text-base lg:text-lg leading-relaxed",children:n.overview})]}),y.jsx("div",{children:y.jsxs("span",{style:{background:j,color:P},className:"py-2 px-5 rounded-r-full text-sm",children:["Score | ",Math.round(n.vote_average*10),"%"]})}),y.jsx("div",{className:"flex flex-wrap items-start gap-y-1 py-4 px-2 mt-2 rounded-lg backdrop-blur-lg bg-black bg-opacity-5",children:Object.entries(c).map(([te,{name:ae,jobs:q}])=>y.jsxs("div",{className:"flex flex-col items-start text-start w-1/2 lg:w-1/3 xl:w-1/4",children:[y.jsxs(un,{to:`/person/${te}`,children:[" ",y.jsx("span",{className:"text-md font-semibold",children:ae})]}),y.jsx("span",{className:"text-xs",children:q.join(", ")})]},te))})]}),y.jsx("div",{style:{background:`linear-gradient(to right, ${P} ${W}%, ${k})`},className:"bgOpacity absolute inset-0 w-full h-full -z-5"})]}),y.jsxs("div",{className:"px-5 ",children:[y.jsx(Cr,{title:"Backdrops"}),y.jsx(w5,{backdrops:d})]}),y.jsxs("div",{className:"px-5",children:[a.length>0&&y.jsx(Cr,{title:"Top Billed Cast"}),y.jsx(y5,{persons:a})]}),y.jsxs("div",{className:"px-5 ",children:[o.length>0&&y.jsx(Cr,{title:"Recommendations"}),y.jsx("div",{className:"grid grid-cols-3 lg:grid-cols-5 gap-2 text-white ",children:o.map(te=>y.jsx(Fi,{movie:te},te.id))})]}),y.jsx(x5,{movie:n,Bg:P,textColor1:j,movieKeywords:h})]})}const O5=()=>{const[e,t]=b.useState([]),[n,r]=b.useState(!0);b.useEffect(()=>{(async()=>{const a=JSON.parse(localStorage.getItem("playlist"))||[];try{const l=a.map(u=>fetch(`https://api.themoviedb.org/3/movie/${u}?api_key=4c1eef5a8d388386187a3426bc2345be`).then(d=>d.json())),c=await Promise.all(l);t(c),r(!1)}catch(l){console.error("Error fetching movie data:",l),it(l,{type:"error"}),r(!1)}})()},[]);const o=s=>{const l=(JSON.parse(localStorage.getItem("playlist"))||[]).filter(c=>c!==s);localStorage.setItem("playlist",JSON.stringify(l)),t(e.filter(c=>c.id!==s)),it("Removed from watchlist",{type:"success"})};return n?y.jsx(el,{color:"gray",loading:!0,size:20}):y.jsx("div",{className:"p-5",children:e.length>0?y.jsxs(y.Fragment,{children:[y.jsx(Cr,{title:"Your Watchlist"}),y.jsx("div",{className:"grid grid-cols-3 lg:grid-cols-6 gap-2 text-white",children:e.slice().reverse().map(s=>y.jsx(Fi,{cancel:!0,movie:s,onRemoveFromWatchlist:o},s.id))})]}):y.jsx("div",{className:"text-center text-xl text-gray-400",children:"No movies found in your watchlist."})})};function j5(e){return lt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"},child:[]}]})(e)}const M5=()=>{const{id:e}=ud(),[t,n]=b.useState(null),[r,o]=b.useState([]),[s,a]=b.useState(null),[l,c]=b.useState(!0),u=jo(),d=()=>{u(-1)},f="4c1eef5a8d388386187a3426bc2345be",h=m=>{const x=new Date(m),w=new Date;let S=w.getFullYear()-x.getFullYear();const g=w.getMonth()-x.getMonth();return(g<0||g===0&&w.getDate(){(async()=>{try{c(!0);const[x,w]=await Promise.all([fetch(`https://api.themoviedb.org/3/person/${e}?api_key=${f}`),fetch(`https://api.themoviedb.org/3/person/${e}/combined_credits?api_key=${f}`)]),S=await x.json(),g=await w.json();console.log(S),n(S),o(g.cast),c(!1)}catch(x){console.error(x),toast.error(`Error: ${x.message}`),c(!1)}})()},[e,f]),l?y.jsx(el,{color:"gray",loading:!0,size:20}):s?y.jsxs("div",{children:["Error: ",s]}):t?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[300px_auto] gap-5 p-5 lg:py-8 bg-gradient-to-l from-zinc-900 to-black ",children:[y.jsx("div",{children:y.jsx("img",{src:`https://image.tmdb.org/t/p/original/${t.profile_path}`,alt:t.name,className:"w-full rounded"})}),y.jsxs("div",{className:"flex flex-col gap-2 items-start",children:[y.jsxs("div",{onClick:d,className:"flex items-center gap-2 cursor-pointer ",children:[y.jsx(j5,{}),"Back To Main"]}),y.jsx("h1",{className:"text-2xl font-bold",children:t.name}),y.jsx("p",{className:"text-base lg:text-lg leading-relaxed overflow-auto max-h-80",children:t.biography}),y.jsxs("p",{children:[y.jsx("strong",{children:"Born:"})," ",t.birthday," (",h(t.birthday)," Years)",t.place_of_birth&&` in ${t.place_of_birth} `]})]})]}),y.jsxs("div",{className:"container mx-auto px-4",children:[y.jsx(Cr,{title:"Known For"}),y.jsx(Zv,{movies:r.length?r:[]})]})]}):y.jsx("div",{children:"No person data available."})},py=({className:e,...t})=>y.jsx("nav",{role:"navigation","aria-label":"pagination",className:Ee("mx-auto flex w-full justify-center",e),...t});py.displayName="Pagination";const my=b.forwardRef(({className:e,...t},n)=>y.jsx("ul",{ref:n,className:Ee("flex flex-row items-center gap-1",e),...t}));my.displayName="PaginationContent";const R5=b.forwardRef(({className:e,...t},n)=>y.jsx("li",{ref:n,className:Ee("",e),...t}));R5.displayName="PaginationItem";const Yd=({className:e,isActive:t,size:n="icon",...r})=>y.jsx("a",{"aria-current":t?"page":void 0,className:Ee(dy({variant:t?"outline":"ghost",size:n}),e),...r});Yd.displayName="PaginationLink";const hy=({className:e,...t})=>y.jsxs(Yd,{"aria-label":"Go to previous page",size:"default",className:Ee("gap-1 pl-2.5",e),...t,children:[y.jsx(WP,{className:"h-4 w-4"}),y.jsx("span",{children:"Previous"})]});hy.displayName="PaginationPrevious";const gy=({className:e,...t})=>y.jsxs(Yd,{"aria-label":"Go to next page",size:"default",className:Ee("gap-1 pr-2.5",e),...t,children:[y.jsx("span",{children:"Next"}),y.jsx(UP,{className:"h-4 w-4"})]});gy.displayName="PaginationNext";const _5=()=>{const[e,t]=Xx(),{url:n}=ud(),[r,o]=b.useState([]),[s,a]=b.useState(Number(e.get("page"))||1),[l,c]=b.useState(1),[u,d]=b.useState(!1),[f,h]=b.useState(null),[m,x]=b.useState(null),[w,S]=b.useState(new Date().getFullYear()),g="4c1eef5a8d388386187a3426bc2345be";function p(){const T=new Date,k=T.getFullYear(),O=String(T.getMonth()+1).padStart(2,"0"),j=String(T.getDate()).padStart(2,"0");return`${k}-${O}-${j}`}const v=[{key:"Movies Near You",url:`/discover/movie?api_key=${g}&sort_by=release_date.desc&with_original_language=hi®ion=IN&release_date.lte=${p()}`},{key:"Tamil Action Movies",url:`/discover/movie?api_key=${g}&sort_by=revenue.desc&with_original_language=te&with_genres=28}`},{key:"Popular Hindi Movies",url:`/discover/movie?api_key=${g}&sort_by=popularity.desc&with_original_language=hi®ion=IN`},{key:"Sci-Fi Movies",url:`/discover/movie?api_key=${g}&sort_by=revenue.desc&with_genres=878`},{key:"Trending Movies Today",url:`/trending/movie/day?api_key=${g}`},{key:"Most Popular Movies",url:`/movie/popular?api_key=${g}`},{key:"Top Rated Movies Globally",url:`/movie/top_rated?api_key=${g}`},{key:"Upcoming Movie Releases",url:`/movie/upcoming?api_key=${g}`}],E=()=>{const T=v.find(k=>k.key===n);return T?T.url:`/movies/${n.toLowerCase().replace(/\s+/g,"-")}`},C=async()=>{d(!0),h(null);try{const T=await fetch(`https://api.themoviedb.org/3${m}&page=${s}`);if(!T.ok)throw new Error("Failed to fetch movies");const k=await T.json();o(k.results||[]),c(k.total_pages||1)}catch(T){h(T.message),it(T.message,{type:"error"})}finally{d(!1)}};b.useEffect(()=>{const T=E();T&&x(T)},[n,w]),b.useEffect(()=>{m&&C()},[m,s]);const P=T=>{T>0&&T<=l&&(a(T),e.set("page",T),t(e))};return y.jsxs("div",{className:"p-4",children:[u&&y.jsx(el,{color:"gray",loading:!0,size:20}),f&&y.jsx("p",{style:{color:"red"},children:f}),y.jsx(Cr,{title:n}),y.jsx("div",{className:"grid grid-cols-3 lg:grid-cols-5 gap-2 text-white",children:r.length>0?r.map(T=>y.jsx(Fi,{movie:T},T.id)):!u&&y.jsx("p",{children:"No movies found."})}),y.jsx("div",{style:{marginTop:"20px"},children:y.jsxs(py,{children:[y.jsx(hy,{onClick:()=>P(s-1),disabled:s===1||u,style:{cursor:"pointer"},children:"Previous"}),y.jsxs(my,{children:[s," /"," ",y.jsx("div",{onClick:()=>P(l),style:{cursor:"pointer"},title:"Go to the last page",children:l})]}),y.jsx(gy,{onClick:()=>P(s+1),disabled:s===l||u,style:{cursor:"pointer"},children:"Next"})]})})]})},L5=()=>y.jsx("div",{className:"flex items-center justify-center min-h-screen bg-zinc-950",children:y.jsxs("div",{className:"text-center",children:[y.jsx("h1",{className:"text-6xl font-bold text-orange-400",children:"404"}),y.jsx("p",{className:"mt-4 text-lg text-gray-200",children:"Oops! The resource you are looking for doesn’t exist."}),y.jsx(un,{to:"/",className:"mt-6 inline-block px-6 py-3 text-black bg-white hover:bg-zinc-200 rounded-md",children:"Go Back Home"})]})});function I5(){return y.jsx(Hx,{children:y.jsx(Lx,{children:y.jsxs(In,{path:"/",element:y.jsx(d5,{}),children:[y.jsx(In,{index:!0,element:y.jsx(JP,{})}),y.jsx(In,{path:"/movie/:id",element:y.jsx(N5,{})}),y.jsx(In,{path:"/person/:id",element:y.jsx(M5,{})}),y.jsx(In,{path:"/movies/:url",element:y.jsx(_5,{})}),y.jsx(In,{path:"/watchlist",element:y.jsx(O5,{})}),y.jsx(In,{path:"*",element:y.jsx(L5,{})})]})})})}var D5=(e,t,n,r,o,s,a,l)=>{let c=document.documentElement,u=["light","dark"];function d(m){(Array.isArray(e)?e:[e]).forEach(x=>{let w=x==="class",S=w&&s?o.map(g=>s[g]||g):o;w?(c.classList.remove(...S),c.classList.add(m)):c.setAttribute(x,m)}),f(m)}function f(m){l&&u.includes(m)&&(c.style.colorScheme=m)}function h(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)d(r);else try{let m=localStorage.getItem(t)||n,x=a&&m==="system"?h():m;d(x)}catch{}},A5=b.createContext(void 0),z5={setTheme:e=>{},themes:[]},$5=()=>{var e;return(e=b.useContext(A5))!=null?e:z5};b.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:a,themes:l,nonce:c,scriptProps:u})=>{let d=JSON.stringify([n,t,s,e,l,a,r,o]).slice(1,-1);return b.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?c:"",dangerouslySetInnerHTML:{__html:`(${D5.toString()})(${d})`}})});const B5=({...e})=>{const{theme:t="system"}=$5();return y.jsx(WC,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};mg(document.getElementById("root")).render(y.jsxs(y.Fragment,{children:[y.jsx(I5,{}),y.jsx(B5,{})]}));"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("./serviceworker.js").then(e=>{console.log(` +By Ranjan`;await navigator.clipboard.writeText(Y),lt.info("Details copied to clipboard!")}}catch(Y){lt.error(`Failed to share: ${Y.message}`)}},ue=Y=>{const re=JSON.parse(localStorage.getItem("playlist"))||[];if(re.includes(Y)){lt("Movie already in favorite.",{type:"warning",action:{label:"View",onClick:()=>t("/watchlist")}});return}re.push(Y),localStorage.setItem("playlist",JSON.stringify(re)),lt.success(`${n.title} added to favorite!`,{action:{label:"View",onClick:()=>t("/watchlist")}}),V(!0)},ve=Y=>{const re=Math.floor(Y/60),de=Y%60;return`${re>0?`${re}h`:""} ${de>0?`${de}m`:""}`.trim()};return p?v.jsx(Ka,{color:P||"gray",loading:!0,size:20}):U?v.jsxs("div",{className:"flex items-center justify-center h-screen text-2xl text-orange-500",children:[" ",U," "]}):v.jsxs(v.Fragment,{children:[v.jsxs("div",{style:{backgroundImage:`url(https://image.tmdb.org/t/p/original/${n.backdrop_path})`,backgroundSize:"cover",backgroundPosition:"center",color:`${j}`},className:"relative flex items-center justify-start w-full p-4 aspect-video z-20 lg:hidden",children:[v.jsx("div",{className:"absolute inset-0 z-10",style:{background:`linear-gradient(to right, ${P} 30%, transparent)`}}),v.jsx("img",{className:"w-1/3 z-20 relative rounded-md",src:`https://image.tmdb.org/t/p/w500/${n.poster_path}`,alt:n.title})]}),v.jsxs("div",{style:{backgroundImage:`url(https://image.tmdb.org/t/p/original/${n.backdrop_path})`,backgroundSize:"cover",color:`${j}`},className:"relative grid grid-cols-1 lg:grid-cols-[300px_auto] gap-5 p-5 lg:py-8 ",children:[v.jsx("div",{className:" relative flex justify-start items-start rounded-lg bg-cover bg-center shadow-md ",children:v.jsx("img",{className:" hidden lg:block relative z-10 lg:w-full h-auto w-full md:max-w-md lg:max-w-lg rounded-lg",src:`https://image.tmdb.org/t/p/w500/${n.poster_path}`,alt:n.title})}),v.jsxs("div",{className:"relative z-10 flex flex-col gap-3",children:[v.jsxs("div",{className:"flex flex-col",children:[v.jsxs("h1",{className:"text-2xl sm:text-3xl lg:text-4xl font-semibold",children:[n.title," (",n.release_date.split("-")[0],")"]}),v.jsxs("p",{className:"text-sm lg:text-base",children:[v.jsx("span",{className:"px-1 border-inherit border border-opacity-5 bg-black bg-opacity-5 mr-1",children:x}),n.original_language.toUpperCase()," |"," ",n.genres.map(Y=>Y.name).join(", ")," |"," ",ve(n.runtime)]})]}),v.jsxs("div",{className:"my-1 flex items-center gap-2",children:[v.jsxs("div",{children:[v.jsx("div",{style:{background:j,color:P},className:"w-10 h-10 rounded-full flex items-center justify-center cursor-pointer",onClick:()=>T(!0),children:v.jsx(Lb,{})}),v.jsx(n0,{open:k,onOpenChange:T,children:v.jsx(Ld,{children:v.jsxs(Id,{children:[v.jsx(Dd,{children:"Confirm Redirect"}),v.jsxs(o0,{children:["You are about to leave this website and be redirected to a different site. Do you wish to proceed?",v.jsx("br",{}),v.jsxs("div",{className:"flex items-center justify-end mt-5 gap-2",children:[v.jsx(su,{onClick:J,variant:"outline",children:"Cancel"}),v.jsx(su,{onClick:Q,children:"Confirm"})]})]})]})})})]}),v.jsx("div",{onClick:()=>{ue(n.id)},style:{background:j,color:P},className:"w-10 h-10 rounded-full flex items-center justify-center cursor-pointer",children:$?v.jsx(Ib,{}):v.jsx(pd,{})}),v.jsx("div",{style:{background:j,color:P},onClick:ee,className:"w-10 h-10 rounded-full flex items-center justify-center cursor-pointer",children:v.jsx(zb,{})}),v.jsx("div",{style:{background:j,color:P},className:" h-10 px-4 gap-2 rounded-full flex items-center justify-center cursor-pointer",children:v.jsxs(Nd,{children:[v.jsxs(Uv,{className:"flex items-center gap-2",onClick:()=>C(!0),children:[" ",v.jsx(Hg,{}),"Play Trailer"]}),v.jsxs(Od,{children:[v.jsxs(jd,{children:[v.jsx(Rd,{children:"Watch Trailer"}),v.jsxs(Md,{children:["Watch the trailer for ",n.title]}),E&&S?v.jsx("iframe",{width:"100%",height:"315",src:`${S}?autoplay=1`,title:"Movie Trailer",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}):v.jsx("p",{children:"Trailer not available."})]}),v.jsx(Kv,{children:v.jsx(Gv,{onClick:()=>C(!1)})})]})]})})]}),v.jsxs("div",{children:[v.jsx("p",{className:"text-sm lg:text-base italic",children:n.tagline}),v.jsx("p",{className:"font-semibold text-xl",children:"Overview"}),v.jsx("p",{className:"text-base lg:text-lg leading-relaxed",children:n.overview})]}),v.jsx("div",{children:v.jsxs("span",{style:{background:j,color:P},className:"py-2 px-5 rounded-r-full text-sm",children:["Score | ",Math.round(n.vote_average*10),"%"]})}),v.jsx("div",{className:"flex flex-wrap items-start gap-y-1 py-4 px-2 mt-2 rounded-lg backdrop-blur-lg bg-black bg-opacity-5",children:Object.entries(c).map(([Y,{name:re,jobs:de}])=>v.jsxs("div",{className:"flex flex-col items-start text-start w-1/2 lg:w-1/3 xl:w-1/4",children:[v.jsxs($t,{to:`/person/${Y}`,children:[" ",v.jsx("span",{className:"text-md font-semibold",children:re})]}),v.jsx("span",{className:"text-xs",children:de.join(", ")})]},Y))})]}),v.jsx("div",{style:{background:`linear-gradient(to right, ${P} ${L}%, ${R})`},className:"bgOpacity absolute inset-0 w-full h-full -z-5"})]}),v.jsxs("div",{className:"px-5 ",children:[v.jsx(Cr,{title:"Backdrops"}),v.jsx(P5,{backdrops:d})]}),v.jsxs("div",{className:"px-5",children:[a.length>0&&v.jsx(Cr,{title:"Top Billed Cast"}),v.jsx(T5,{persons:a})]}),v.jsxs("div",{className:"px-5 ",children:[o.length>0&&v.jsx(Cr,{title:"Recommendations"}),v.jsx("div",{className:"grid grid-cols-3 lg:grid-cols-5 gap-2 text-white ",children:o.map(Y=>v.jsx(Fi,{movie:Y},Y.id))})]}),v.jsx(k5,{movie:n,Bg:P,textColor1:j,movieKeywords:h})]})}const D5=()=>{const[e,t]=b.useState([]),[n,r]=b.useState(!0);b.useEffect(()=>{(async()=>{const a=JSON.parse(localStorage.getItem("playlist"))||[];try{const l=a.map(u=>fetch(`https://api.themoviedb.org/3/movie/${u}?api_key=4c1eef5a8d388386187a3426bc2345be`).then(d=>d.json())),c=await Promise.all(l);t(c),r(!1)}catch(l){console.error("Error fetching movie data:",l),lt(l,{type:"error"}),r(!1)}})()},[]);const o=s=>{const l=(JSON.parse(localStorage.getItem("playlist"))||[]).filter(c=>c!==s);localStorage.setItem("playlist",JSON.stringify(l)),t(e.filter(c=>c.id!==s)),lt("Removed from watchlist",{type:"success"})};return n?v.jsx(Ka,{color:"gray",loading:!0,size:20}):v.jsx("div",{className:"p-5",children:e.length>0?v.jsxs(v.Fragment,{children:[v.jsx(Cr,{title:"Your Watchlist"}),v.jsx("div",{className:"grid grid-cols-3 lg:grid-cols-6 gap-2 text-white",children:e.slice().reverse().map(s=>v.jsx(Fi,{cancel:!0,movie:s,onRemoveFromWatchlist:o},s.id))})]}):v.jsx("div",{className:"text-center text-xl text-gray-400",children:"No movies found in your watchlist."})})};function A5(e){return nt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"},child:[]}]})(e)}const z5=()=>{const{id:e}=ud(),[t,n]=b.useState(null),[r,o]=b.useState([]),[s,a]=b.useState(null),[l,c]=b.useState(!0),u=jo(),d=()=>{u(-1)},f="4c1eef5a8d388386187a3426bc2345be",h=m=>{const x=new Date(m),w=new Date;let S=w.getFullYear()-x.getFullYear();const g=w.getMonth()-x.getMonth();return(g<0||g===0&&w.getDate(){(async()=>{try{c(!0);const[x,w]=await Promise.all([fetch(`https://api.themoviedb.org/3/person/${e}?api_key=${f}`),fetch(`https://api.themoviedb.org/3/person/${e}/combined_credits?api_key=${f}`)]),S=await x.json(),g=await w.json();console.log(S),n(S),o(g.cast),c(!1)}catch(x){console.error(x),toast.error(`Error: ${x.message}`),c(!1)}})()},[e,f]),l?v.jsx(Ka,{color:"gray",loading:!0,size:20}):s?v.jsxs("div",{children:["Error: ",s]}):t?v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[300px_auto] gap-5 p-5 lg:py-8 bg-gradient-to-l from-zinc-900 to-black ",children:[v.jsx("div",{children:v.jsx("img",{src:`https://image.tmdb.org/t/p/original/${t.profile_path}`,alt:t.name,className:"w-full rounded"})}),v.jsxs("div",{className:"flex flex-col gap-2 items-start",children:[v.jsxs("div",{onClick:d,className:"flex items-center gap-2 cursor-pointer ",children:[v.jsx(A5,{}),"Back To Main"]}),v.jsx("h1",{className:"text-2xl font-bold",children:t.name}),v.jsx("p",{className:"text-base lg:text-lg leading-relaxed overflow-auto max-h-80",children:t.biography}),v.jsxs("p",{children:[v.jsx("strong",{children:"Born:"})," ",t.birthday," (",h(t.birthday)," Years)",t.place_of_birth&&` in ${t.place_of_birth} `]})]})]}),v.jsxs("div",{className:"container mx-auto px-4",children:[v.jsx(Cr,{title:"Known For"}),v.jsx(Jv,{movies:r.length?r:[]})]})]}):v.jsx("div",{children:"No person data available."})},u0=({className:e,...t})=>v.jsx("nav",{role:"navigation","aria-label":"pagination",className:Se("mx-auto flex w-full justify-center",e),...t});u0.displayName="Pagination";const d0=b.forwardRef(({className:e,...t},n)=>v.jsx("ul",{ref:n,className:Se("flex flex-row items-center gap-1",e),...t}));d0.displayName="PaginationContent";const $5=b.forwardRef(({className:e,...t},n)=>v.jsx("li",{ref:n,className:Se("",e),...t}));$5.displayName="PaginationItem";const Ad=({className:e,isActive:t,size:n="icon",...r})=>v.jsx("a",{"aria-current":t?"page":void 0,className:Se(l0({variant:t?"outline":"ghost",size:n}),e),...r});Ad.displayName="PaginationLink";const f0=({className:e,...t})=>v.jsxs(Ad,{"aria-label":"Go to previous page",size:"default",className:Se("gap-1 pl-2.5",e),...t,children:[v.jsx(r5,{className:"h-4 w-4"}),v.jsx("span",{children:"Previous"})]});f0.displayName="PaginationPrevious";const p0=({className:e,...t})=>v.jsxs(Ad,{"aria-label":"Go to next page",size:"default",className:Se("gap-1 pr-2.5",e),...t,children:[v.jsx("span",{children:"Next"}),v.jsx(o5,{className:"h-4 w-4"})]});p0.displayName="PaginationNext";const B5=()=>{const[e,t]=qx(),{url:n}=ud(),[r,o]=b.useState([]),[s,a]=b.useState(Number(e.get("page"))||1),[l,c]=b.useState(1),[u,d]=b.useState(!1),[f,h]=b.useState(null),[m,x]=b.useState(null),[w,S]=b.useState(new Date().getFullYear()),g="4c1eef5a8d388386187a3426bc2345be";function p(){const T=new Date,P=T.getFullYear(),O=String(T.getMonth()+1).padStart(2,"0"),R=String(T.getDate()).padStart(2,"0");return`${P}-${O}-${R}`}const y=[{key:"Movies Near You",url:`/discover/movie?api_key=${g}&sort_by=release_date.desc&with_original_language=hi®ion=IN&release_date.lte=${p()}`},{key:"Tamil Action Movies",url:`/discover/movie?api_key=${g}&sort_by=revenue.desc&with_original_language=te&with_genres=28}`},{key:"Popular Hindi Movies",url:`/discover/movie?api_key=${g}&sort_by=popularity.desc&with_original_language=hi®ion=IN`},{key:"Sci-Fi Movies",url:`/discover/movie?api_key=${g}&sort_by=revenue.desc&with_genres=878`},{key:"Trending Movies Today",url:`/trending/movie/day?api_key=${g}`},{key:"Most Popular Movies",url:`/movie/popular?api_key=${g}`},{key:"Top Rated Movies Globally",url:`/movie/top_rated?api_key=${g}`},{key:"Upcoming Movie Releases",url:`/movie/upcoming?api_key=${g}`}],E=()=>{const T=y.find(P=>P.key===n);return T?T.url:`/movies/${n.toLowerCase().replace(/\s+/g,"-")}`},C=async()=>{d(!0),h(null);try{const T=await fetch(`https://api.themoviedb.org/3${m}&page=${s}`);if(!T.ok)throw new Error("Failed to fetch movies");const P=await T.json();o(P.results||[]),c(P.total_pages||1)}catch(T){h(T.message),lt(T.message,{type:"error"})}finally{d(!1)}};b.useEffect(()=>{const T=E();T&&x(T)},[n,w]),b.useEffect(()=>{m&&C()},[m,s]);const k=T=>{T>0&&T<=l&&(a(T),e.set("page",T),t(e))};return v.jsxs("div",{className:"p-4",children:[u&&v.jsx(Ka,{color:"gray",loading:!0,size:20}),f&&v.jsx("p",{style:{color:"red"},children:f}),v.jsx(Cr,{title:n}),v.jsx("div",{className:"grid grid-cols-3 lg:grid-cols-5 gap-2 text-white",children:r.length>0?r.map(T=>v.jsx(Fi,{movie:T},T.id)):!u&&v.jsx("p",{children:"No movies found."})}),v.jsx("div",{style:{marginTop:"20px"},children:v.jsxs(u0,{children:[v.jsx(f0,{onClick:()=>k(s-1),disabled:s===1||u,style:{cursor:"pointer"},children:"Previous"}),v.jsxs(d0,{children:[s," /"," ",v.jsx("div",{onClick:()=>k(l),style:{cursor:"pointer"},title:"Go to the last page",children:l})]}),v.jsx(p0,{onClick:()=>k(s+1),disabled:s===l||u,style:{cursor:"pointer"},children:"Next"})]})})]})},F5=()=>v.jsx("div",{className:"flex items-center justify-center min-h-screen bg-zinc-950",children:v.jsxs("div",{className:"text-center",children:[v.jsx("h1",{className:"text-6xl font-bold text-orange-400",children:"404"}),v.jsx("p",{className:"mt-4 text-lg text-gray-200",children:"Oops! The resource you are looking for doesn’t exist."}),v.jsx($t,{to:"/",className:"mt-6 inline-block px-6 py-3 text-black bg-white hover:bg-zinc-200 rounded-md",children:"Go Back Home"})]})});function Wp(e,[t,n]){return Math.min(n,Math.max(t,e))}function V5(e,t=[]){let n=[];function r(s,a){const l=b.createContext(a),c=n.length;n=[...n,a];function u(f){const{scope:h,children:m,...x}=f,w=(h==null?void 0:h[e][c])||l,S=b.useMemo(()=>x,Object.values(x));return v.jsx(w.Provider,{value:S,children:m})}function d(f,h){const m=(h==null?void 0:h[e][c])||l,x=b.useContext(m);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${s}\``)}return u.displayName=s+"Provider",[u,d]}const o=()=>{const s=n.map(a=>b.createContext(a));return function(l){const c=(l==null?void 0:l[e])||s;return b.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,H5(o,...t)]}function H5(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((l,{useScope:c,scopeName:u})=>{const f=c(s)[`__scope${u}`];return{...l,...f}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function W5(e){const t=e+"CollectionProvider",[n,r]=V5(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=m=>{const{scope:x,children:w}=m,S=D.useRef(null),g=D.useRef(new Map).current;return v.jsx(o,{scope:x,itemMap:g,collectionRef:S,children:w})};a.displayName=t;const l=e+"CollectionSlot",c=D.forwardRef((m,x)=>{const{scope:w,children:S}=m,g=s(l,w),p=Ve(x,g.collectionRef);return v.jsx(Rr,{ref:p,children:S})});c.displayName=l;const u=e+"CollectionItemSlot",d="data-radix-collection-item",f=D.forwardRef((m,x)=>{const{scope:w,children:S,...g}=m,p=D.useRef(null),y=Ve(x,p),E=s(u,w);return D.useEffect(()=>(E.itemMap.set(p,{ref:p,...g}),()=>void E.itemMap.delete(p))),v.jsx(Rr,{[d]:"",ref:y,children:S})});f.displayName=u;function h(m){const x=s(e+"CollectionConsumer",m);return D.useCallback(()=>{const S=x.collectionRef.current;if(!S)return[];const g=Array.from(S.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((E,C)=>g.indexOf(E.ref.current)-g.indexOf(C.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:a,Slot:c,ItemSlot:f},h,r]}var U5=b.createContext(void 0);function G5(e){const t=b.useContext(U5);return e||t||"ltr"}const Y5=["top","right","bottom","left"],or=Math.min,Nt=Math.max,Sa=Math.round,ws=Math.floor,dn=e=>({x:e,y:e}),K5={left:"right",right:"left",bottom:"top",top:"bottom"},X5={start:"end",end:"start"};function au(e,t,n){return Nt(e,or(t,n))}function kn(e,t){return typeof e=="function"?e(t):e}function Nn(e){return e.split("-")[0]}function Do(e){return e.split("-")[1]}function zd(e){return e==="x"?"y":"x"}function $d(e){return e==="y"?"height":"width"}function ir(e){return["top","bottom"].includes(Nn(e))?"y":"x"}function Bd(e){return zd(ir(e))}function q5(e,t,n){n===void 0&&(n=!1);const r=Do(e),o=Bd(e),s=$d(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Ea(a)),[a,Ea(a)]}function Q5(e){const t=Ea(e);return[lu(e),t,lu(t)]}function lu(e){return e.replace(/start|end/g,t=>X5[t])}function Z5(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:a;default:return[]}}function J5(e,t,n,r){const o=Do(e);let s=Z5(Nn(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(lu)))),s}function Ea(e){return e.replace(/left|right|bottom|top/g,t=>K5[t])}function e3(e){return{top:0,right:0,bottom:0,left:0,...e}}function m0(e){return typeof e!="number"?e3(e):{top:e,right:e,bottom:e,left:e}}function Ca(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Up(e,t,n){let{reference:r,floating:o}=e;const s=ir(t),a=Bd(t),l=$d(a),c=Nn(t),u=s==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,h=r[l]/2-o[l]/2;let m;switch(c){case"top":m={x:d,y:r.y-o.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-o.width,y:f};break;default:m={x:r.x,y:r.y}}switch(Do(t)){case"start":m[a]-=h*(n&&u?-1:1);break;case"end":m[a]+=h*(n&&u?-1:1);break}return m}const t3=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,l=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Up(u,r,c),h=r,m={},x=0;for(let w=0;w({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:l,middlewareData:c}=t,{element:u,padding:d=0}=kn(e,t)||{};if(u==null)return{};const f=m0(d),h={x:n,y:r},m=Bd(o),x=$d(m),w=await a.getDimensions(u),S=m==="y",g=S?"top":"left",p=S?"bottom":"right",y=S?"clientHeight":"clientWidth",E=s.reference[x]+s.reference[m]-h[m]-s.floating[x],C=h[m]-s.reference[m],k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let T=k?k[y]:0;(!T||!await(a.isElement==null?void 0:a.isElement(k)))&&(T=l.floating[y]||s.floating[x]);const P=E/2-C/2,O=T/2-w[x]/2-1,R=or(f[g],O),z=or(f[p],O),j=R,N=T-w[x]-z,$=T/2-w[x]/2+P,V=au(j,$,N),U=!c.arrow&&Do(o)!=null&&$!==V&&s.reference[x]/2-($$<=0)){var z,j;const $=(((z=s.flip)==null?void 0:z.index)||0)+1,V=T[$];if(V)return{data:{index:$,overflows:R},reset:{placement:V}};let U=(j=R.filter(X=>X.overflows[0]<=0).sort((X,L)=>X.overflows[1]-L.overflows[1])[0])==null?void 0:j.placement;if(!U)switch(m){case"bestFit":{var N;const X=(N=R.filter(L=>{if(k){const I=ir(L.placement);return I===p||I==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(I=>I>0).reduce((I,W)=>I+W,0)]).sort((L,I)=>L[1]-I[1])[0])==null?void 0:N[0];X&&(U=X);break}case"initialPlacement":U=l;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function Gp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Yp(e){return Y5.some(t=>e[t]>=0)}const o3=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=kn(e,t);switch(r){case"referenceHidden":{const s=await _i(t,{...o,elementContext:"reference"}),a=Gp(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Yp(a)}}}case"escaped":{const s=await _i(t,{...o,altBoundary:!0}),a=Gp(s,n.floating);return{data:{escapedOffsets:a,escaped:Yp(a)}}}default:return{}}}}};async function i3(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Nn(n),l=Do(n),c=ir(n)==="y",u=["left","top"].includes(a)?-1:1,d=s&&c?-1:1,f=kn(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:x}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof x=="number"&&(m=l==="end"?x*-1:x),c?{x:m*d,y:h*u}:{x:h*u,y:m*d}}const s3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:l}=t,c=await i3(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:a}}}}},a3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:S=>{let{x:g,y:p}=S;return{x:g,y:p}}},...c}=kn(e,t),u={x:n,y:r},d=await _i(t,c),f=ir(Nn(o)),h=zd(f);let m=u[h],x=u[f];if(s){const S=h==="y"?"top":"left",g=h==="y"?"bottom":"right",p=m+d[S],y=m-d[g];m=au(p,m,y)}if(a){const S=f==="y"?"top":"left",g=f==="y"?"bottom":"right",p=x+d[S],y=x-d[g];x=au(p,x,y)}const w=l.fn({...t,[h]:m,[f]:x});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[h]:s,[f]:a}}}}}},l3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=kn(e,t),d={x:n,y:r},f=ir(o),h=zd(f);let m=d[h],x=d[f];const w=kn(l,t),S=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(c){const y=h==="y"?"height":"width",E=s.reference[h]-s.floating[y]+S.mainAxis,C=s.reference[h]+s.reference[y]-S.mainAxis;mC&&(m=C)}if(u){var g,p;const y=h==="y"?"width":"height",E=["top","left"].includes(Nn(o)),C=s.reference[f]-s.floating[y]+(E&&((g=a.offset)==null?void 0:g[f])||0)+(E?0:S.crossAxis),k=s.reference[f]+s.reference[y]+(E?0:((p=a.offset)==null?void 0:p[f])||0)-(E?S.crossAxis:0);xk&&(x=k)}return{[h]:m,[f]:x}}}},c3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:l}=t,{apply:c=()=>{},...u}=kn(e,t),d=await _i(t,u),f=Nn(o),h=Do(o),m=ir(o)==="y",{width:x,height:w}=s.floating;let S,g;f==="top"||f==="bottom"?(S=f,g=h===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(g=f,S=h==="end"?"top":"bottom");const p=w-d.top-d.bottom,y=x-d.left-d.right,E=or(w-d[S],p),C=or(x-d[g],y),k=!t.middlewareData.shift;let T=E,P=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=p),k&&!h){const R=Nt(d.left,0),z=Nt(d.right,0),j=Nt(d.top,0),N=Nt(d.bottom,0);m?P=x-2*(R!==0||z!==0?R+z:Nt(d.left,d.right)):T=w-2*(j!==0||N!==0?j+N:Nt(d.top,d.bottom))}await c({...t,availableWidth:P,availableHeight:T});const O=await a.getDimensions(l.floating);return x!==O.width||w!==O.height?{reset:{rects:!0}}:{}}}};function Xa(){return typeof window<"u"}function Ao(e){return h0(e)?(e.nodeName||"").toLowerCase():"#document"}function Rt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function pn(e){var t;return(t=(h0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function h0(e){return Xa()?e instanceof Node||e instanceof Rt(e).Node:!1}function Jt(e){return Xa()?e instanceof Element||e instanceof Rt(e).Element:!1}function fn(e){return Xa()?e instanceof HTMLElement||e instanceof Rt(e).HTMLElement:!1}function Kp(e){return!Xa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Rt(e).ShadowRoot}function Vi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=en(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function u3(e){return["table","td","th"].includes(Ao(e))}function qa(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Fd(e){const t=Vd(),n=Jt(e)?en(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function d3(e){let t=sr(e);for(;fn(t)&&!Co(t);){if(Fd(t))return t;if(qa(t))return null;t=sr(t)}return null}function Vd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Co(e){return["html","body","#document"].includes(Ao(e))}function en(e){return Rt(e).getComputedStyle(e)}function Qa(e){return Jt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function sr(e){if(Ao(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Kp(e)&&e.host||pn(e);return Kp(t)?t.host:t}function g0(e){const t=sr(e);return Co(t)?e.ownerDocument?e.ownerDocument.body:e.body:fn(t)&&Vi(t)?t:g0(t)}function Li(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=g0(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=Rt(o);if(s){const l=cu(a);return t.concat(a,a.visualViewport||[],Vi(o)?o:[],l&&n?Li(l):[])}return t.concat(o,Li(o,[],n))}function cu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function v0(e){const t=en(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=fn(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=Sa(n)!==s||Sa(r)!==a;return l&&(n=s,r=a),{width:n,height:r,$:l}}function Hd(e){return Jt(e)?e:e.contextElement}function ho(e){const t=Hd(e);if(!fn(t))return dn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=v0(t);let a=(s?Sa(n.width):n.width)/r,l=(s?Sa(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const f3=dn(0);function y0(e){const t=Rt(e);return!Vd()||!t.visualViewport?f3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function p3(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Rt(e)?!1:t}function _r(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Hd(e);let a=dn(1);t&&(r?Jt(r)&&(a=ho(r)):a=ho(e));const l=p3(s,n,r)?y0(s):dn(0);let c=(o.left+l.x)/a.x,u=(o.top+l.y)/a.y,d=o.width/a.x,f=o.height/a.y;if(s){const h=Rt(s),m=r&&Jt(r)?Rt(r):r;let x=h,w=cu(x);for(;w&&r&&m!==x;){const S=ho(w),g=w.getBoundingClientRect(),p=en(w),y=g.left+(w.clientLeft+parseFloat(p.paddingLeft))*S.x,E=g.top+(w.clientTop+parseFloat(p.paddingTop))*S.y;c*=S.x,u*=S.y,d*=S.x,f*=S.y,c+=y,u+=E,x=Rt(w),w=cu(x)}}return Ca({width:d,height:f,x:c,y:u})}function Wd(e,t){const n=Qa(e).scrollLeft;return t?t.left+n:_r(pn(e)).left+n}function w0(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Wd(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function m3(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=pn(r),l=t?qa(t.floating):!1;if(r===a||l&&s)return n;let c={scrollLeft:0,scrollTop:0},u=dn(1);const d=dn(0),f=fn(r);if((f||!f&&!s)&&((Ao(r)!=="body"||Vi(a))&&(c=Qa(r)),fn(r))){const m=_r(r);u=ho(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const h=a&&!f&&!s?w0(a,c,!0):dn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+h.x,y:n.y*u.y-c.scrollTop*u.y+d.y+h.y}}function h3(e){return Array.from(e.getClientRects())}function g3(e){const t=pn(e),n=Qa(e),r=e.ownerDocument.body,o=Nt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Nt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Wd(e);const l=-n.scrollTop;return en(r).direction==="rtl"&&(a+=Nt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:l}}function v3(e,t){const n=Rt(e),r=pn(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,l=0,c=0;if(o){s=o.width,a=o.height;const u=Vd();(!u||u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:s,height:a,x:l,y:c}}function y3(e,t){const n=_r(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=fn(e)?ho(e):dn(1),a=e.clientWidth*s.x,l=e.clientHeight*s.y,c=o*s.x,u=r*s.y;return{width:a,height:l,x:c,y:u}}function Xp(e,t,n){let r;if(t==="viewport")r=v3(e,n);else if(t==="document")r=g3(pn(e));else if(Jt(t))r=y3(t,n);else{const o=y0(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ca(r)}function x0(e,t){const n=sr(e);return n===t||!Jt(n)||Co(n)?!1:en(n).position==="fixed"||x0(n,t)}function w3(e,t){const n=t.get(e);if(n)return n;let r=Li(e,[],!1).filter(l=>Jt(l)&&Ao(l)!=="body"),o=null;const s=en(e).position==="fixed";let a=s?sr(e):e;for(;Jt(a)&&!Co(a);){const l=en(a),c=Fd(a);!c&&l.position==="fixed"&&(o=null),(s?!c&&!o:!c&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Vi(a)&&!c&&x0(e,a))?r=r.filter(d=>d!==a):o=l,a=sr(a)}return t.set(e,r),r}function x3(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?qa(t)?[]:w3(t,this._c):[].concat(n),r],l=a[0],c=a.reduce((u,d)=>{const f=Xp(t,d,o);return u.top=Nt(f.top,u.top),u.right=or(f.right,u.right),u.bottom=or(f.bottom,u.bottom),u.left=Nt(f.left,u.left),u},Xp(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function b3(e){const{width:t,height:n}=v0(e);return{width:t,height:n}}function S3(e,t,n){const r=fn(t),o=pn(t),s=n==="fixed",a=_r(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const c=dn(0);if(r||!r&&!s)if((Ao(t)!=="body"||Vi(o))&&(l=Qa(t)),r){const h=_r(t,!0,s,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&(c.x=Wd(o));const u=o&&!r&&!s?w0(o,l):dn(0),d=a.left+l.scrollLeft-c.x-u.x,f=a.top+l.scrollTop-c.y-u.y;return{x:d,y:f,width:a.width,height:a.height}}function Xl(e){return en(e).position==="static"}function qp(e,t){if(!fn(e)||en(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return pn(e)===n&&(n=n.ownerDocument.body),n}function b0(e,t){const n=Rt(e);if(qa(e))return n;if(!fn(e)){let o=sr(e);for(;o&&!Co(o);){if(Jt(o)&&!Xl(o))return o;o=sr(o)}return n}let r=qp(e,t);for(;r&&u3(r)&&Xl(r);)r=qp(r,t);return r&&Co(r)&&Xl(r)&&!Fd(r)?n:r||d3(e)||n}const E3=async function(e){const t=this.getOffsetParent||b0,n=this.getDimensions,r=await n(e.floating);return{reference:S3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function C3(e){return en(e).direction==="rtl"}const T3={convertOffsetParentRelativeRectToViewportRelativeRect:m3,getDocumentElement:pn,getClippingRect:x3,getOffsetParent:b0,getElementRects:E3,getClientRects:h3,getDimensions:b3,getScale:ho,isElement:Jt,isRTL:C3};function P3(e,t){let n=null,r;const o=pn(e);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const{left:u,top:d,width:f,height:h}=e.getBoundingClientRect();if(l||t(),!f||!h)return;const m=ws(d),x=ws(o.clientWidth-(u+f)),w=ws(o.clientHeight-(d+h)),S=ws(u),p={rootMargin:-m+"px "+-x+"px "+-w+"px "+-S+"px",threshold:Nt(0,or(1,c))||1};let y=!0;function E(C){const k=C[0].intersectionRatio;if(k!==c){if(!y)return a();k?a(!1,k):r=setTimeout(()=>{a(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(E,{...p,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,p)}n.observe(e)}return a(!0),s}function k3(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Hd(e),d=o||s?[...u?Li(u):[],...Li(t)]:[];d.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),s&&g.addEventListener("resize",n)});const f=u&&l?P3(u,n):null;let h=-1,m=null;a&&(m=new ResizeObserver(g=>{let[p]=g;p&&p.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=m)==null||y.observe(t)})),n()}),u&&!c&&m.observe(u),m.observe(t));let x,w=c?_r(e):null;c&&S();function S(){const g=_r(e);w&&(g.x!==w.x||g.y!==w.y||g.width!==w.width||g.height!==w.height)&&n(),w=g,x=requestAnimationFrame(S)}return n(),()=>{var g;d.forEach(p=>{o&&p.removeEventListener("scroll",n),s&&p.removeEventListener("resize",n)}),f==null||f(),(g=m)==null||g.disconnect(),m=null,c&&cancelAnimationFrame(x)}}const N3=s3,O3=a3,j3=r3,R3=c3,M3=o3,Qp=n3,_3=l3,L3=(e,t,n)=>{const r=new Map,o={platform:T3,...n},s={...o.platform,_c:r};return t3(e,t,{...o,platform:s})};var Is=typeof document<"u"?b.useLayoutEffect:b.useEffect;function Ta(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ta(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Ta(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function S0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Zp(e,t){const n=S0(e);return Math.round(t*n)/n}function ql(e){const t=b.useRef(e);return Is(()=>{t.current=e}),t}function I3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,f]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=b.useState(r);Ta(h,r)||m(r);const[x,w]=b.useState(null),[S,g]=b.useState(null),p=b.useCallback(L=>{L!==k.current&&(k.current=L,w(L))},[]),y=b.useCallback(L=>{L!==T.current&&(T.current=L,g(L))},[]),E=s||x,C=a||S,k=b.useRef(null),T=b.useRef(null),P=b.useRef(d),O=c!=null,R=ql(c),z=ql(o),j=ql(u),N=b.useCallback(()=>{if(!k.current||!T.current)return;const L={placement:t,strategy:n,middleware:h};z.current&&(L.platform=z.current),L3(k.current,T.current,L).then(I=>{const W={...I,isPositioned:j.current!==!1};$.current&&!Ta(P.current,W)&&(P.current=W,No.flushSync(()=>{f(W)}))})},[h,t,n,z,j]);Is(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(L=>({...L,isPositioned:!1})))},[u]);const $=b.useRef(!1);Is(()=>($.current=!0,()=>{$.current=!1}),[]),Is(()=>{if(E&&(k.current=E),C&&(T.current=C),E&&C){if(R.current)return R.current(E,C,N);N()}},[E,C,N,R,O]);const V=b.useMemo(()=>({reference:k,floating:T,setReference:p,setFloating:y}),[p,y]),U=b.useMemo(()=>({reference:E,floating:C}),[E,C]),X=b.useMemo(()=>{const L={position:n,left:0,top:0};if(!U.floating)return L;const I=Zp(U.floating,d.x),W=Zp(U.floating,d.y);return l?{...L,transform:"translate("+I+"px, "+W+"px)",...S0(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:I,top:W}},[n,l,U.floating,d.x,d.y]);return b.useMemo(()=>({...d,update:N,refs:V,elements:U,floatingStyles:X}),[d,N,V,U,X])}const D3=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Qp({element:r.current,padding:o}).fn(n):{}:r?Qp({element:r,padding:o}).fn(n):{}}}},A3=(e,t)=>({...N3(e),options:[e,t]}),z3=(e,t)=>({...O3(e),options:[e,t]}),$3=(e,t)=>({..._3(e),options:[e,t]}),B3=(e,t)=>({...j3(e),options:[e,t]}),F3=(e,t)=>({...R3(e),options:[e,t]}),V3=(e,t)=>({...M3(e),options:[e,t]}),H3=(e,t)=>({...D3(e),options:[e,t]});var W3="Arrow",E0=b.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return v.jsx(Re.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});E0.displayName=W3;var U3=E0;function G3(e,t=[]){let n=[];function r(s,a){const l=b.createContext(a),c=n.length;n=[...n,a];function u(f){const{scope:h,children:m,...x}=f,w=(h==null?void 0:h[e][c])||l,S=b.useMemo(()=>x,Object.values(x));return v.jsx(w.Provider,{value:S,children:m})}function d(f,h){const m=(h==null?void 0:h[e][c])||l,x=b.useContext(m);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${s}\``)}return u.displayName=s+"Provider",[u,d]}const o=()=>{const s=n.map(a=>b.createContext(a));return function(l){const c=(l==null?void 0:l[e])||s;return b.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,Y3(o,...t)]}function Y3(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((l,{useScope:c,scopeName:u})=>{const f=c(s)[`__scope${u}`];return{...l,...f}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function K3(e){const[t,n]=b.useState(void 0);return ht(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,l;if("borderBoxSize"in s){const c=s.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,l=u.blockSize}else a=e.offsetWidth,l=e.offsetHeight;n({width:a,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ud="Popper",[C0,T0]=G3(Ud),[X3,P0]=C0(Ud),k0=e=>{const{__scopePopper:t,children:n}=e,[r,o]=b.useState(null);return v.jsx(X3,{scope:t,anchor:r,onAnchorChange:o,children:n})};k0.displayName=Ud;var N0="PopperAnchor",O0=b.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=P0(N0,n),a=b.useRef(null),l=Ve(t,a);return b.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:v.jsx(Re.div,{...o,ref:l})});O0.displayName=N0;var Gd="PopperContent",[q3,Q3]=C0(Gd),j0=b.forwardRef((e,t)=>{var Y,re,de,ce,oe,le;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:x,...w}=e,S=P0(Gd,n),[g,p]=b.useState(null),y=Ve(t,he=>p(he)),[E,C]=b.useState(null),k=K3(E),T=(k==null?void 0:k.width)??0,P=(k==null?void 0:k.height)??0,O=r+(s!=="center"?"-"+s:""),R=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},z=Array.isArray(u)?u:[u],j=z.length>0,N={padding:R,boundary:z.filter(J3),altBoundary:j},{refs:$,floatingStyles:V,placement:U,isPositioned:X,middlewareData:L}=I3({strategy:"fixed",placement:O,whileElementsMounted:(...he)=>k3(...he,{animationFrame:m==="always"}),elements:{reference:S.anchor},middleware:[A3({mainAxis:o+P,alignmentAxis:a}),c&&z3({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?$3():void 0,...N}),c&&B3({...N}),F3({...N,apply:({elements:he,rects:ie,availableWidth:rt,availableHeight:Ct})=>{const{width:Ze,height:ot}=ie.reference,dt=he.floating.style;dt.setProperty("--radix-popper-available-width",`${rt}px`),dt.setProperty("--radix-popper-available-height",`${Ct}px`),dt.setProperty("--radix-popper-anchor-width",`${Ze}px`),dt.setProperty("--radix-popper-anchor-height",`${ot}px`)}}),E&&H3({element:E,padding:l}),eT({arrowWidth:T,arrowHeight:P}),h&&V3({strategy:"referenceHidden",...N})]}),[I,W]=_0(U),Z=Pn(x);ht(()=>{X&&(Z==null||Z())},[X,Z]);const Q=(Y=L.arrow)==null?void 0:Y.x,J=(re=L.arrow)==null?void 0:re.y,ee=((de=L.arrow)==null?void 0:de.centerOffset)!==0,[ue,ve]=b.useState();return ht(()=>{g&&ve(window.getComputedStyle(g).zIndex)},[g]),v.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:X?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ue,"--radix-popper-transform-origin":[(ce=L.transformOrigin)==null?void 0:ce.x,(oe=L.transformOrigin)==null?void 0:oe.y].join(" "),...((le=L.hide)==null?void 0:le.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(q3,{scope:n,placedSide:I,onArrowChange:C,arrowX:Q,arrowY:J,shouldHideArrow:ee,children:v.jsx(Re.div,{"data-side":I,"data-align":W,...w,ref:y,style:{...w.style,animation:X?void 0:"none"}})})})});j0.displayName=Gd;var R0="PopperArrow",Z3={top:"bottom",right:"left",bottom:"top",left:"right"},M0=b.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Q3(R0,r),a=Z3[s.placedSide];return v.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:v.jsx(U3,{...o,ref:n,style:{...o.style,display:"block"}})})});M0.displayName=R0;function J3(e){return e!==null}var eT=e=>({name:"transformOrigin",options:e,fn(t){var S,g,p;const{placement:n,rects:r,middlewareData:o}=t,a=((S=o.arrow)==null?void 0:S.centerOffset)!==0,l=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[u,d]=_0(n),f={start:"0%",center:"50%",end:"100%"}[d],h=(((g=o.arrow)==null?void 0:g.x)??0)+l/2,m=(((p=o.arrow)==null?void 0:p.y)??0)+c/2;let x="",w="";return u==="bottom"?(x=a?f:`${h}px`,w=`${-c}px`):u==="top"?(x=a?f:`${h}px`,w=`${r.floating.height+c}px`):u==="right"?(x=`${-c}px`,w=a?f:`${m}px`):u==="left"&&(x=`${r.floating.width+c}px`,w=a?f:`${m}px`),{data:{x,y:w}}}});function _0(e){const[t,n="center"]=e.split("-");return[t,n]}var tT=k0,nT=O0,rT=j0,oT=M0;function iT(e){const t=b.useRef({value:e,previous:e});return b.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var sT="VisuallyHidden",L0=b.forwardRef((e,t)=>v.jsx(Re.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));L0.displayName=sT;var aT=[" ","Enter","ArrowUp","ArrowDown"],lT=[" ","Enter"],Hi="Select",[Za,Ja,cT]=W5(Hi),[zo,WT]=Gg(Hi,[cT,T0]),el=T0(),[uT,dr]=zo(Hi),[dT,fT]=zo(Hi),I0=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:a,defaultValue:l,onValueChange:c,dir:u,name:d,autoComplete:f,disabled:h,required:m,form:x}=e,w=el(t),[S,g]=b.useState(null),[p,y]=b.useState(null),[E,C]=b.useState(!1),k=G5(u),[T=!1,P]=Zc({prop:r,defaultProp:o,onChange:s}),[O,R]=Zc({prop:a,defaultProp:l,onChange:c}),z=b.useRef(null),j=S?x||!!S.closest("form"):!0,[N,$]=b.useState(new Set),V=Array.from(N).map(U=>U.props.value).join(";");return v.jsx(tT,{...w,children:v.jsxs(uT,{required:m,scope:t,trigger:S,onTriggerChange:g,valueNode:p,onValueNodeChange:y,valueNodeHasChildren:E,onValueNodeHasChildrenChange:C,contentId:fo(),value:O,onValueChange:R,open:T,onOpenChange:P,dir:k,triggerPointerDownPosRef:z,disabled:h,children:[v.jsx(Za.Provider,{scope:t,children:v.jsx(dT,{scope:e.__scopeSelect,onNativeOptionAdd:b.useCallback(U=>{$(X=>new Set(X).add(U))},[]),onNativeOptionRemove:b.useCallback(U=>{$(X=>{const L=new Set(X);return L.delete(U),L})},[]),children:n})}),j?v.jsxs(sy,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:f,value:O,onChange:U=>R(U.target.value),disabled:h,form:x,children:[O===void 0?v.jsx("option",{value:""}):null,Array.from(N)]},V):null]})})};I0.displayName=Hi;var D0="SelectTrigger",A0=b.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=el(n),a=dr(D0,n),l=a.disabled||r,c=Ve(t,a.onTriggerChange),u=Ja(n),d=b.useRef("touch"),[f,h,m]=ay(w=>{const S=u().filter(y=>!y.disabled),g=S.find(y=>y.value===a.value),p=ly(S,w,g);p!==void 0&&a.onValueChange(p.value)}),x=w=>{l||(a.onOpenChange(!0),m()),w&&(a.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})};return v.jsx(nT,{asChild:!0,...s,children:v.jsx(Re.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":iy(a.value)?"":void 0,...o,ref:c,onClick:Oe(o.onClick,w=>{w.currentTarget.focus(),d.current!=="mouse"&&x(w)}),onPointerDown:Oe(o.onPointerDown,w=>{d.current=w.pointerType;const S=w.target;S.hasPointerCapture(w.pointerId)&&S.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(x(w),w.preventDefault())}),onKeyDown:Oe(o.onKeyDown,w=>{const S=f.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&h(w.key),!(S&&w.key===" ")&&aT.includes(w.key)&&(x(),w.preventDefault())})})})});A0.displayName=D0;var z0="SelectValue",$0=b.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:a="",...l}=e,c=dr(z0,n),{onValueNodeHasChildrenChange:u}=c,d=s!==void 0,f=Ve(t,c.onValueNodeChange);return ht(()=>{u(d)},[u,d]),v.jsx(Re.span,{...l,ref:f,style:{pointerEvents:"none"},children:iy(c.value)?v.jsx(v.Fragment,{children:a}):s})});$0.displayName=z0;var pT="SelectIcon",B0=b.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return v.jsx(Re.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});B0.displayName=pT;var mT="SelectPortal",F0=e=>v.jsx(gd,{asChild:!0,...e});F0.displayName=mT;var Lr="SelectContent",V0=b.forwardRef((e,t)=>{const n=dr(Lr,e.__scopeSelect),[r,o]=b.useState();if(ht(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?No.createPortal(v.jsx(H0,{scope:e.__scopeSelect,children:v.jsx(Za.Slot,{scope:e.__scopeSelect,children:v.jsx("div",{children:e.children})})}),s):null}return v.jsx(W0,{...e,ref:t})});V0.displayName=Lr;var Ut=10,[H0,fr]=zo(Lr),hT="SelectContentImpl",W0=b.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:a,side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:m,sticky:x,hideWhenDetached:w,avoidCollisions:S,...g}=e,p=dr(Lr,n),[y,E]=b.useState(null),[C,k]=b.useState(null),T=Ve(t,Y=>E(Y)),[P,O]=b.useState(null),[R,z]=b.useState(null),j=Ja(n),[N,$]=b.useState(!1),V=b.useRef(!1);b.useEffect(()=>{if(y)return iv(y)},[y]),qg();const U=b.useCallback(Y=>{const[re,...de]=j().map(le=>le.ref.current),[ce]=de.slice(-1),oe=document.activeElement;for(const le of Y)if(le===oe||(le==null||le.scrollIntoView({block:"nearest"}),le===re&&C&&(C.scrollTop=0),le===ce&&C&&(C.scrollTop=C.scrollHeight),le==null||le.focus(),document.activeElement!==oe))return},[j,C]),X=b.useCallback(()=>U([P,y]),[U,P,y]);b.useEffect(()=>{N&&X()},[N,X]);const{onOpenChange:L,triggerPointerDownPosRef:I}=p;b.useEffect(()=>{if(y){let Y={x:0,y:0};const re=ce=>{var oe,le;Y={x:Math.abs(Math.round(ce.pageX)-(((oe=I.current)==null?void 0:oe.x)??0)),y:Math.abs(Math.round(ce.pageY)-(((le=I.current)==null?void 0:le.y)??0))}},de=ce=>{Y.x<=10&&Y.y<=10?ce.preventDefault():y.contains(ce.target)||L(!1),document.removeEventListener("pointermove",re),I.current=null};return I.current!==null&&(document.addEventListener("pointermove",re),document.addEventListener("pointerup",de,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",re),document.removeEventListener("pointerup",de,{capture:!0})}}},[y,L,I]),b.useEffect(()=>{const Y=()=>L(!1);return window.addEventListener("blur",Y),window.addEventListener("resize",Y),()=>{window.removeEventListener("blur",Y),window.removeEventListener("resize",Y)}},[L]);const[W,Z]=ay(Y=>{const re=j().filter(oe=>!oe.disabled),de=re.find(oe=>oe.ref.current===document.activeElement),ce=ly(re,Y,de);ce&&setTimeout(()=>ce.ref.current.focus())}),Q=b.useCallback((Y,re,de)=>{const ce=!V.current&&!de;(p.value!==void 0&&p.value===re||ce)&&(O(Y),ce&&(V.current=!0))},[p.value]),J=b.useCallback(()=>y==null?void 0:y.focus(),[y]),ee=b.useCallback((Y,re,de)=>{const ce=!V.current&&!de;(p.value!==void 0&&p.value===re||ce)&&z(Y)},[p.value]),ue=r==="popper"?uu:U0,ve=ue===uu?{side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:m,sticky:x,hideWhenDetached:w,avoidCollisions:S}:{};return v.jsx(H0,{scope:n,content:y,viewport:C,onViewportChange:k,itemRefCallback:Q,selectedItem:P,onItemLeave:J,itemTextRefCallback:ee,focusSelectedItem:X,selectedItemText:R,position:r,isPositioned:N,searchRef:W,children:v.jsx(vd,{as:Rr,allowPinchZoom:!0,children:v.jsx(hd,{asChild:!0,trapped:p.open,onMountAutoFocus:Y=>{Y.preventDefault()},onUnmountAutoFocus:Oe(o,Y=>{var re;(re=p.trigger)==null||re.focus({preventScroll:!0}),Y.preventDefault()}),children:v.jsx(md,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:Y=>Y.preventDefault(),onDismiss:()=>p.onOpenChange(!1),children:v.jsx(ue,{role:"listbox",id:p.contentId,"data-state":p.open?"open":"closed",dir:p.dir,onContextMenu:Y=>Y.preventDefault(),...g,...ve,onPlaced:()=>$(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:Oe(g.onKeyDown,Y=>{const re=Y.ctrlKey||Y.altKey||Y.metaKey;if(Y.key==="Tab"&&Y.preventDefault(),!re&&Y.key.length===1&&Z(Y.key),["ArrowUp","ArrowDown","Home","End"].includes(Y.key)){let ce=j().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);if(["ArrowUp","End"].includes(Y.key)&&(ce=ce.slice().reverse()),["ArrowUp","ArrowDown"].includes(Y.key)){const oe=Y.target,le=ce.indexOf(oe);ce=ce.slice(le+1)}setTimeout(()=>U(ce)),Y.preventDefault()}})})})})})})});W0.displayName=hT;var gT="SelectItemAlignedPosition",U0=b.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=dr(Lr,n),a=fr(Lr,n),[l,c]=b.useState(null),[u,d]=b.useState(null),f=Ve(t,T=>d(T)),h=Ja(n),m=b.useRef(!1),x=b.useRef(!0),{viewport:w,selectedItem:S,selectedItemText:g,focusSelectedItem:p}=a,y=b.useCallback(()=>{if(s.trigger&&s.valueNode&&l&&u&&w&&S&&g){const T=s.trigger.getBoundingClientRect(),P=u.getBoundingClientRect(),O=s.valueNode.getBoundingClientRect(),R=g.getBoundingClientRect();if(s.dir!=="rtl"){const oe=R.left-P.left,le=O.left-oe,he=T.left-le,ie=T.width+he,rt=Math.max(ie,P.width),Ct=window.innerWidth-Ut,Ze=Wp(le,[Ut,Math.max(Ut,Ct-rt)]);l.style.minWidth=ie+"px",l.style.left=Ze+"px"}else{const oe=P.right-R.right,le=window.innerWidth-O.right-oe,he=window.innerWidth-T.right-le,ie=T.width+he,rt=Math.max(ie,P.width),Ct=window.innerWidth-Ut,Ze=Wp(le,[Ut,Math.max(Ut,Ct-rt)]);l.style.minWidth=ie+"px",l.style.right=Ze+"px"}const z=h(),j=window.innerHeight-Ut*2,N=w.scrollHeight,$=window.getComputedStyle(u),V=parseInt($.borderTopWidth,10),U=parseInt($.paddingTop,10),X=parseInt($.borderBottomWidth,10),L=parseInt($.paddingBottom,10),I=V+U+N+L+X,W=Math.min(S.offsetHeight*5,I),Z=window.getComputedStyle(w),Q=parseInt(Z.paddingTop,10),J=parseInt(Z.paddingBottom,10),ee=T.top+T.height/2-Ut,ue=j-ee,ve=S.offsetHeight/2,Y=S.offsetTop+ve,re=V+U+Y,de=I-re;if(re<=ee){const oe=z.length>0&&S===z[z.length-1].ref.current;l.style.bottom="0px";const le=u.clientHeight-w.offsetTop-w.offsetHeight,he=Math.max(ue,ve+(oe?J:0)+le+X),ie=re+he;l.style.height=ie+"px"}else{const oe=z.length>0&&S===z[0].ref.current;l.style.top="0px";const he=Math.max(ee,V+w.offsetTop+(oe?Q:0)+ve)+de;l.style.height=he+"px",w.scrollTop=re-ee+w.offsetTop}l.style.margin=`${Ut}px 0`,l.style.minHeight=W+"px",l.style.maxHeight=j+"px",r==null||r(),requestAnimationFrame(()=>m.current=!0)}},[h,s.trigger,s.valueNode,l,u,w,S,g,s.dir,r]);ht(()=>y(),[y]);const[E,C]=b.useState();ht(()=>{u&&C(window.getComputedStyle(u).zIndex)},[u]);const k=b.useCallback(T=>{T&&x.current===!0&&(y(),p==null||p(),x.current=!1)},[y,p]);return v.jsx(yT,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:m,onScrollButtonChange:k,children:v.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:v.jsx(Re.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});U0.displayName=gT;var vT="SelectPopperPosition",uu=b.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ut,...s}=e,a=el(n);return v.jsx(rT,{...a,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});uu.displayName=vT;var[yT,Yd]=zo(Lr,{}),du="SelectViewport",G0=b.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=fr(du,n),a=Yd(du,n),l=Ve(t,s.onViewportChange),c=b.useRef(0);return v.jsxs(v.Fragment,{children:[v.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),v.jsx(Za.Slot,{scope:n,children:v.jsx(Re.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Oe(o.onScroll,u=>{const d=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:h}=a;if(h!=null&&h.current&&f){const m=Math.abs(c.current-d.scrollTop);if(m>0){const x=window.innerHeight-Ut*2,w=parseFloat(f.style.minHeight),S=parseFloat(f.style.height),g=Math.max(w,S);if(g0?E:0,f.style.justifyContent="flex-end")}}}c.current=d.scrollTop})})})]})});G0.displayName=du;var Y0="SelectGroup",[wT,xT]=zo(Y0),bT=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=fo();return v.jsx(wT,{scope:n,id:o,children:v.jsx(Re.div,{role:"group","aria-labelledby":o,...r,ref:t})})});bT.displayName=Y0;var K0="SelectLabel",X0=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=xT(K0,n);return v.jsx(Re.div,{id:o.id,...r,ref:t})});X0.displayName=K0;var Pa="SelectItem",[ST,q0]=zo(Pa),Q0=b.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...a}=e,l=dr(Pa,n),c=fr(Pa,n),u=l.value===r,[d,f]=b.useState(s??""),[h,m]=b.useState(!1),x=Ve(t,p=>{var y;return(y=c.itemRefCallback)==null?void 0:y.call(c,p,r,o)}),w=fo(),S=b.useRef("touch"),g=()=>{o||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return v.jsx(ST,{scope:n,value:r,disabled:o,textId:w,isSelected:u,onItemTextChange:b.useCallback(p=>{f(y=>y||((p==null?void 0:p.textContent)??"").trim())},[]),children:v.jsx(Za.ItemSlot,{scope:n,value:r,disabled:o,textValue:d,children:v.jsx(Re.div,{role:"option","aria-labelledby":w,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:x,onFocus:Oe(a.onFocus,()=>m(!0)),onBlur:Oe(a.onBlur,()=>m(!1)),onClick:Oe(a.onClick,()=>{S.current!=="mouse"&&g()}),onPointerUp:Oe(a.onPointerUp,()=>{S.current==="mouse"&&g()}),onPointerDown:Oe(a.onPointerDown,p=>{S.current=p.pointerType}),onPointerMove:Oe(a.onPointerMove,p=>{var y;S.current=p.pointerType,o?(y=c.onItemLeave)==null||y.call(c):S.current==="mouse"&&p.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Oe(a.onPointerLeave,p=>{var y;p.currentTarget===document.activeElement&&((y=c.onItemLeave)==null||y.call(c))}),onKeyDown:Oe(a.onKeyDown,p=>{var E;((E=c.searchRef)==null?void 0:E.current)!==""&&p.key===" "||(lT.includes(p.key)&&g(),p.key===" "&&p.preventDefault())})})})})});Q0.displayName=Pa;var ni="SelectItemText",Z0=b.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,a=dr(ni,n),l=fr(ni,n),c=q0(ni,n),u=fT(ni,n),[d,f]=b.useState(null),h=Ve(t,g=>f(g),c.onItemTextChange,g=>{var p;return(p=l.itemTextRefCallback)==null?void 0:p.call(l,g,c.value,c.disabled)}),m=d==null?void 0:d.textContent,x=b.useMemo(()=>v.jsx("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:w,onNativeOptionRemove:S}=u;return ht(()=>(w(x),()=>S(x)),[w,S,x]),v.jsxs(v.Fragment,{children:[v.jsx(Re.span,{id:c.textId,...s,ref:h}),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren?No.createPortal(s.children,a.valueNode):null]})});Z0.displayName=ni;var J0="SelectItemIndicator",ey=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return q0(J0,n).isSelected?v.jsx(Re.span,{"aria-hidden":!0,...r,ref:t}):null});ey.displayName=J0;var fu="SelectScrollUpButton",ty=b.forwardRef((e,t)=>{const n=fr(fu,e.__scopeSelect),r=Yd(fu,e.__scopeSelect),[o,s]=b.useState(!1),a=Ve(t,r.onScrollButtonChange);return ht(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=c.scrollTop>0;s(u)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?v.jsx(ry,{...e,ref:a,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});ty.displayName=fu;var pu="SelectScrollDownButton",ny=b.forwardRef((e,t)=>{const n=fr(pu,e.__scopeSelect),r=Yd(pu,e.__scopeSelect),[o,s]=b.useState(!1),a=Ve(t,r.onScrollButtonChange);return ht(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?v.jsx(ry,{...e,ref:a,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});ny.displayName=pu;var ry=b.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=fr("SelectScrollButton",n),a=b.useRef(null),l=Ja(n),c=b.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return b.useEffect(()=>()=>c(),[c]),ht(()=>{var d;const u=l().find(f=>f.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[l]),v.jsx(Re.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Oe(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:Oe(o.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:Oe(o.onPointerLeave,()=>{c()})})}),ET="SelectSeparator",oy=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return v.jsx(Re.div,{"aria-hidden":!0,...r,ref:t})});oy.displayName=ET;var mu="SelectArrow",CT=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=el(n),s=dr(mu,n),a=fr(mu,n);return s.open&&a.position==="popper"?v.jsx(oT,{...o,...r,ref:t}):null});CT.displayName=mu;function iy(e){return e===""||e===void 0}var sy=b.forwardRef((e,t)=>{const{value:n,...r}=e,o=b.useRef(null),s=Ve(t,o),a=iT(n);return b.useEffect(()=>{const l=o.current,c=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(a!==n&&d){const f=new Event("change",{bubbles:!0});d.call(l,n),l.dispatchEvent(f)}},[a,n]),v.jsx(L0,{asChild:!0,children:v.jsx("select",{...r,ref:s,defaultValue:n})})});sy.displayName="BubbleSelect";function ay(e){const t=Pn(e),n=b.useRef(""),r=b.useRef(0),o=b.useCallback(a=>{const l=n.current+a;t(l),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(l)},[t]),s=b.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return b.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function ly(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=TT(e,Math.max(s,0));o.length===1&&(a=a.filter(u=>u!==n));const c=a.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function TT(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var PT=I0,cy=A0,kT=$0,NT=B0,OT=F0,uy=V0,jT=G0,dy=X0,fy=Q0,RT=Z0,MT=ey,py=ty,my=ny,hy=oy;const Ql=PT,Zl=kT,Ds=b.forwardRef(({className:e,children:t,...n},r)=>v.jsxs(cy,{ref:r,className:Se("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,v.jsx(NT,{asChild:!0,children:v.jsx(t0,{className:"h-4 w-4 opacity-50"})})]}));Ds.displayName=cy.displayName;const gy=b.forwardRef(({className:e,...t},n)=>v.jsx(py,{ref:n,className:Se("flex cursor-default items-center justify-center py-1",e),...t,children:v.jsx(i5,{className:"h-4 w-4"})}));gy.displayName=py.displayName;const vy=b.forwardRef(({className:e,...t},n)=>v.jsx(my,{ref:n,className:Se("flex cursor-default items-center justify-center py-1",e),...t,children:v.jsx(t0,{className:"h-4 w-4"})}));vy.displayName=my.displayName;const As=b.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>v.jsx(OT,{children:v.jsxs(uy,{ref:o,className:Se("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 bg-black/80 backdrop-blur-lg",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[v.jsx(gy,{}),v.jsx(jT,{className:Se("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),v.jsx(vy,{})]})}));As.displayName=uy.displayName;const _T=b.forwardRef(({className:e,...t},n)=>v.jsx(dy,{ref:n,className:Se("px-2 py-1.5 text-sm font-semibold",e),...t}));_T.displayName=dy.displayName;const ae=b.forwardRef(({className:e,children:t,...n},r)=>v.jsxs(fy,{ref:r,className:Se("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[v.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:v.jsx(MT,{children:v.jsx(n5,{className:"h-4 w-4"})})}),v.jsx(RT,{children:t})]}));ae.displayName=fy.displayName;const LT=b.forwardRef(({className:e,...t},n)=>v.jsx(hy,{ref:n,className:Se("-mx-1 my-1 h-px bg-muted",e),...t}));LT.displayName=hy.displayName;const IT=()=>{const[e,t]=b.useState([]),[n,r]=b.useState(1),[o,s]=b.useState(!0),[a,l]=b.useState(!1),[c,u]=b.useState({sort_by:"popularity.desc",with_original_language:"en",with_genres:"28"}),d=b.useRef(null),f=async m=>{if(a)return;l(!0);const x="https://api.themoviedb.org/3/discover/movie",w="4c1eef5a8d388386187a3426bc2345be",S=new URLSearchParams({api_key:w,page:m,...c}).toString(),g=`${x}?${S}`;try{const y=await(await fetch(g)).json();t(E=>[...E,...y.results]),s(m{t([]),r(1),s(!0),f(1)},[c]),b.useEffect(()=>{const m=new IntersectionObserver(x=>{x[0].isIntersecting&&o&&!a&&r(w=>{const S=w+1;return f(S),S})},{threshold:1});return d.current&&m.observe(d.current),()=>{d.current&&m.unobserve(d.current)}},[o,a]);const h=(m,x)=>{u(w=>({...w,[m]:x}))};return v.jsxs("div",{className:"p-4 b overflow-x-hidden",children:[v.jsxs("div",{className:"relative h-full w-full bg-slate-950",children:[v.jsx("div",{className:"absolute bottom-0 left-[-20%] right-0 top-[-10%] h-[500px] w-[500px] rounded-full bg-[radial-gradient(circle_farthest-side,rgba(255,0,182,.15),rgba(255,255,255,0))]"}),v.jsx("div",{className:"absolute bottom-0 right-[-20%] top-[-10%] h-[500px] w-[500px] rounded-full bg-[radial-gradient(circle_farthest-side,rgba(255,0,182,.15),rgba(255,255,255,0))]"})]}),v.jsx("div",{className:"p-5 rounded-lg text-center",children:v.jsx("h1",{className:"text-3xl md:text-5xl font-bold text-white mb-4",children:"Discover Movies"})}),v.jsxs("div",{className:"flex gap-2 my-3 overflow-x-auto no-scroll",children:[v.jsxs(Ql,{onValueChange:m=>h("sort_by",m),children:[v.jsx(Ds,{children:v.jsx(Zl,{placeholder:"Sort By"})}),v.jsxs(As,{children:[v.jsx(ae,{value:"popularity.desc",children:"Most Popular"}),v.jsx(ae,{value:"popularity.asc",children:"Least Popular"}),v.jsx(ae,{value:"release_date.desc",children:"Newest Releases"}),v.jsx(ae,{value:"release_date.asc",children:"Oldest Releases"}),v.jsx(ae,{value:"original_title.asc",children:"Title (A-Z)"}),v.jsx(ae,{value:"original_title.desc",children:"Title (Z-A)"}),v.jsx(ae,{value:"vote_count.desc",children:"Highest Rated"}),v.jsx(ae,{value:"vote_count.asc",children:"Lowest Rated"}),v.jsx(ae,{value:"revenue.desc",children:"Highest Revenue"}),v.jsx(ae,{value:"revenue.asc",children:"Lowest Revenue"})]})]}),v.jsxs(Ql,{onValueChange:m=>h("with_original_language",m),children:[v.jsx(Ds,{children:v.jsx(Zl,{placeholder:"Language"})}),v.jsxs(As,{children:[v.jsx(ae,{value:"en",children:"English"}),v.jsx(ae,{value:"hi",children:"Hindi"}),v.jsx(ae,{value:"te",children:"Telugu"}),v.jsx(ae,{value:"ta",children:"Tamil"}),v.jsx(ae,{value:"es",children:"Spanish"}),v.jsx(ae,{value:"fr",children:"French"}),v.jsx(ae,{value:"de",children:"German"}),v.jsx(ae,{value:"it",children:"Italian"}),v.jsx(ae,{value:"pt",children:"Portuguese"}),v.jsx(ae,{value:"ru",children:"Russian"}),v.jsx(ae,{value:"ja",children:"Japanese"}),v.jsx(ae,{value:"ko",children:"Korean"}),v.jsx(ae,{value:"zh",children:"Chinese"}),v.jsx(ae,{value:"ar",children:"Arabic"}),v.jsx(ae,{value:"pl",children:"Polish"}),v.jsx(ae,{value:"tr",children:"Turkish"}),v.jsx(ae,{value:"id",children:"Indonesian"}),v.jsx(ae,{value:"nl",children:"Dutch"}),v.jsx(ae,{value:"sv",children:"Swedish"}),v.jsx(ae,{value:"th",children:"Thai"})]})]}),v.jsxs(Ql,{onValueChange:m=>h("with_genres",m),children:[v.jsx(Ds,{children:v.jsx(Zl,{placeholder:"Genres"})}),v.jsxs(As,{children:[v.jsx(ae,{value:"28",children:"Action"}),v.jsx(ae,{value:"12",children:"Adventure"}),v.jsx(ae,{value:"16",children:"Animation"}),v.jsx(ae,{value:"35",children:"Comedy"}),v.jsx(ae,{value:"80",children:"Crime"}),v.jsx(ae,{value:"99",children:"Documentary"}),v.jsx(ae,{value:"18",children:"Drama"}),v.jsx(ae,{value:"10751",children:"Family"}),v.jsx(ae,{value:"14",children:"Fantasy"}),v.jsx(ae,{value:"36",children:"History"}),v.jsx(ae,{value:"27",children:"Horror"}),v.jsx(ae,{value:"10402",children:"Music"}),v.jsx(ae,{value:"9648",children:"Mystery"}),v.jsx(ae,{value:"10749",children:"Romance"}),v.jsx(ae,{value:"878",children:"Science Fiction"}),v.jsx(ae,{value:"10770",children:"TV Movie"}),v.jsx(ae,{value:"53",children:"Thriller"}),v.jsx(ae,{value:"10752",children:"War"}),v.jsx(ae,{value:"37",children:"Western"})]})]})]}),v.jsx("div",{className:"grid grid-cols-3 lg:grid-cols-6 gap-2",children:e.map((m,x)=>v.jsx(Fi,{movie:m},x))}),o&&v.jsx("div",{ref:d,className:"h-4"}),!o&&v.jsx("p",{className:"text-center text-white mt-4",children:"No more movies to display."})]})};function DT(){return v.jsx(Wx,{children:v.jsx(Ix,{children:v.jsxs(hn,{path:"/",element:v.jsx(y5,{}),children:[v.jsx(hn,{index:!0,element:v.jsx(ZC,{})}),v.jsx(hn,{path:"/movie/:id",element:v.jsx(I5,{})}),v.jsx(hn,{path:"/person/:id",element:v.jsx(z5,{})}),v.jsx(hn,{path:"/movies/:url",element:v.jsx(B5,{})}),v.jsx(hn,{path:"/watchlist",element:v.jsx(D5,{})}),v.jsx(hn,{path:"/discover",element:v.jsx(IT,{})}),v.jsx(hn,{path:"*",element:v.jsx(F5,{})})]})})})}var AT=(e,t,n,r,o,s,a,l)=>{let c=document.documentElement,u=["light","dark"];function d(m){(Array.isArray(e)?e:[e]).forEach(x=>{let w=x==="class",S=w&&s?o.map(g=>s[g]||g):o;w?(c.classList.remove(...S),c.classList.add(m)):c.setAttribute(x,m)}),f(m)}function f(m){l&&u.includes(m)&&(c.style.colorScheme=m)}function h(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)d(r);else try{let m=localStorage.getItem(t)||n,x=a&&m==="system"?h():m;d(x)}catch{}},zT=b.createContext(void 0),$T={setTheme:e=>{},themes:[]},BT=()=>{var e;return(e=b.useContext(zT))!=null?e:$T};b.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:a,themes:l,nonce:c,scriptProps:u})=>{let d=JSON.stringify([n,t,s,e,l,a,r,o]).slice(1,-1);return b.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?c:"",dangerouslySetInnerHTML:{__html:`(${AT.toString()})(${d})`}})});const FT=({...e})=>{const{theme:t="system"}=BT();return v.jsx(UC,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};mg(document.getElementById("root")).render(v.jsxs(v.Fragment,{children:[v.jsx(DT,{}),v.jsx(FT,{})]}));"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("./serviceworker.js").then(e=>{console.log(` RRRRR R R RRRRR diff --git a/assets/index-DtZaLx9H.css b/assets/index-DtZaLx9H.css deleted file mode 100644 index 8870349..0000000 --- a/assets/index-DtZaLx9H.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--background: 0 0% 100%;--foreground: 240 10% 3.9%;--card: 0 0% 100%;--card-foreground: 240 10% 3.9%;--popover: 0 0% 100%;--popover-foreground: 240 10% 3.9%;--primary: 240 5.9% 10%;--primary-foreground: 0 0% 98%;--secondary: 240 4.8% 95.9%;--secondary-foreground: 240 5.9% 10%;--muted: 240 4.8% 95.9%;--muted-foreground: 240 3.8% 46.1%;--accent: 240 4.8% 95.9%;--accent-foreground: 240 5.9% 10%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 240 5.9% 90%;--input: 240 5.9% 90%;--ring: 240 10% 3.9%;--chart-1: 12 76% 61%;--chart-2: 173 58% 39%;--chart-3: 197 37% 24%;--chart-4: 43 74% 66%;--chart-5: 27 87% 67%;--radius: .5rem}.dark{--background: 240 10% 3.9%;--foreground: 0 0% 98%;--card: 240 10% 3.9%;--card-foreground: 0 0% 98%;--popover: 240 10% 3.9%;--popover-foreground: 0 0% 98%;--primary: 0 0% 98%;--primary-foreground: 240 5.9% 10%;--secondary: 240 3.7% 15.9%;--secondary-foreground: 0 0% 98%;--muted: 240 3.7% 15.9%;--muted-foreground: 240 5% 64.9%;--accent: 240 3.7% 15.9%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 0 0% 98%;--border: 240 3.7% 15.9%;--input: 240 3.7% 15.9%;--ring: 240 4.9% 83.9%;--chart-1: 220 70% 50%;--chart-2: 160 60% 45%;--chart-3: 30 80% 55%;--chart-4: 280 65% 60%;--chart-5: 340 75% 55%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.bottom-0{bottom:0}.left-0{left:0}.left-1\/2{left:50%}.left-4{left:1rem}.left-\[50\%\]{left:50%}.right-2{right:.5rem}.right-4{right:1rem}.top-0{top:0}.top-2{top:.5rem}.top-3\/4{top:75%}.top-4{top:1rem}.top-\[50\%\]{top:50%}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-\[50px\]{margin-top:50px}.mt-auto{margin-top:auto}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-video{aspect-ratio:16 / 9}.h-10{height:2.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[50px\]{height:50px}.h-\[50vh\]{height:50vh}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-64{max-height:16rem}.max-h-80{max-height:20rem}.max-h-96{max-height:24rem}.min-h-screen{min-height:100vh}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-10{width:2.5rem}.w-12{width:3rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-9{width:2.25rem}.w-\[100px\]{width:100px}.w-\[90\%\]{width:90%}.w-full{width:100%}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-lg{max-width:32rem}.max-w-screen-xl{max-width:1280px}.max-w-xs{max-width:20rem}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\[-50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-normal{justify-content:normal}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-y-1{row-gap:.25rem}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.self-center{align-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.rounded-b-lg{border-bottom-right-radius:var(--radius);border-bottom-left-radius:var(--radius)}.rounded-l-md{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.rounded-r-full{border-top-right-radius:9999px;border-bottom-right-radius:9999px}.rounded-r-md{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-t-lg{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius)}.border{border-width:1px}.border-inherit{border-color:inherit}.border-input{border-color:hsl(var(--input))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-zinc-200{--tw-border-opacity: 1;border-color:rgb(228 228 231 / var(--tw-border-opacity))}.border-zinc-500{--tw-border-opacity: 1;border-color:rgb(113 113 122 / var(--tw-border-opacity))}.bg-background{background-color:hsl(var(--background))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-black\/10{background-color:#0000001a}.bg-black\/50{background-color:#00000080}.bg-black\/60{background-color:#0009}.bg-black\/80{background-color:#000c}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/10{background-color:hsl(var(--primary) / .1)}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-zinc-800{--tw-bg-opacity: 1;background-color:rgb(39 39 42 / var(--tw-bg-opacity))}.bg-zinc-900\/50{background-color:#18181b80}.bg-zinc-950{--tw-bg-opacity: 1;background-color:rgb(9 9 11 / var(--tw-bg-opacity))}.bg-zinc-950\/40{background-color:#09090b66}.bg-opacity-10{--tw-bg-opacity: .1}.bg-opacity-5{--tw-bg-opacity: .05}.bg-gradient-to-l{background-image:linear-gradient(to left,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-cyan-900\/20{--tw-gradient-from: rgb(22 78 99 / .2) var(--tw-gradient-from-position);--tw-gradient-to: rgb(22 78 99 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-sky-900\/20{--tw-gradient-from: rgb(12 74 110 / .2) var(--tw-gradient-from-position);--tw-gradient-to: rgb(12 74 110 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-zinc-900{--tw-gradient-from: #18181b var(--tw-gradient-from-position);--tw-gradient-to: rgb(24 24 27 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-black{--tw-gradient-to: #000 var(--tw-gradient-to-position)}.to-blue-500{--tw-gradient-to: #3b82f6 var(--tw-gradient-to-position)}.to-purple-900\/20{--tw-gradient-to: rgb(88 28 135 / .2) var(--tw-gradient-to-position)}.bg-cover{background-size:cover}.bg-center{background-position:center}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pl-2\.5{padding-left:.625rem}.pr-2\.5{padding-right:.625rem}.pr-8{padding-right:2rem}.text-center{text-align:center}.text-start{text-align:start}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-6xl{font-size:3.75rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-orange-400{--tw-text-opacity: 1;color:rgb(251 146 60 / var(--tw-text-opacity))}.text-orange-500{--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}.text-teal-50{--tw-text-opacity: 1;color:rgb(240 253 250 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-zinc-400{--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity))}.text-zinc-50{--tw-text-opacity: 1;color:rgb(250 250 250 / var(--tw-text-opacity))}.text-zinc-500{--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity))}.underline-offset-4{text-underline-offset:4px}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-lg{--tw-backdrop-blur: blur(16px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}body{min-height:100vh}::-webkit-scrollbar{width:5px}::-webkit-scrollbar-thumb{background-color:#003640;border-radius:5px}::-webkit-scrollbar-track{background-color:transparent}.truncate-lines{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.swiper-button-prev:after,.swiper-button-next:after{color:#000;font-size:20px!important;background-color:#ffffffd2;width:50px!important;height:50px!important;border-radius:100px;display:flex;align-items:center;justify-content:center}.layout-container{display:flex;flex-direction:column;min-height:100vh}.content{flex:1}.gr{background:linear-gradient(200deg,transparent 50%,#000000 100%),linear-gradient(200deg,transparent 30%,#000000 100%),linear-gradient(180deg,transparent 10%,#000000 100%)}.custom-bullet{height:3rem;width:3rem;border-radius:9999px;border:2px solid white;cursor:pointer;transition:background-color .2s,transform .2s}.custom-bullet.swiper-pagination-bullet-active{background-color:#fff;transform:scale(1.2)}.filterscroll::-webkit-scrollbar{display:none}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\:scale-110:hover{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-none:hover{border-style:none}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:bg-white:hover{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.hover\:bg-zinc-200:hover{--tw-bg-opacity: 1;background-color:rgb(228 228 231 / var(--tw-bg-opacity))}.hover\:bg-zinc-800:hover{--tw-bg-opacity: 1;background-color:rgb(39 39 42 / var(--tw-bg-opacity))}.hover\:bg-zinc-950:hover{--tw-bg-opacity: 1;background-color:rgb(9 9 11 / var(--tw-bg-opacity))}.hover\:bg-gradient-to-r:hover{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-black:hover{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group.toaster .group-\[\.toaster\]\:border-border{border-color:hsl(var(--border))}.group.toast .group-\[\.toast\]\:bg-muted{background-color:hsl(var(--muted))}.group.toast .group-\[\.toast\]\:bg-primary{background-color:hsl(var(--primary))}.group.toaster .group-\[\.toaster\]\:bg-background{background-color:hsl(var(--background))}.group.toast .group-\[\.toast\]\:text-muted-foreground{color:hsl(var(--muted-foreground))}.group.toast .group-\[\.toast\]\:text-primary-foreground{color:hsl(var(--primary-foreground))}.group.toaster .group-\[\.toaster\]\:text-foreground{color:hsl(var(--foreground))}.group.toaster .group-\[\.toaster\]\:shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}.dark\:border-zinc-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(63 63 70 / var(--tw-border-opacity))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:text-zinc-400:is(.dark *){--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\:left-6{left:1.5rem}.sm\:mx-auto{margin-left:auto;margin-right:auto}.sm\:mb-0{margin-bottom:0}.sm\:mt-2{margin-top:.5rem}.sm\:mt-6{margin-top:1.5rem}.sm\:inline{display:inline}.sm\:flex{display:flex}.sm\:h-\[70vh\]{height:70vh}.sm\:max-w-sm{max-width:24rem}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:justify-end{justify-content:flex-end}.sm\:justify-between{justify-content:space-between}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:text-left{text-align:left}.sm\:text-center{text-align:center}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}}@media (min-width: 768px){.md\:left-8{left:2rem}.md\:mt-5{margin-top:1.25rem}.md\:h-\[80vh\]{height:80vh}.md\:max-w-md{max-width:28rem}.md\:py-8{padding-top:2rem;padding-bottom:2rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 1024px){.lg\:left-12{left:3rem}.lg\:my-8{margin-top:2rem;margin-bottom:2rem}.lg\:block{display:block}.lg\:hidden{display:none}.lg\:h-\[90vh\]{height:90vh}.lg\:w-1\/2{width:50%}.lg\:w-1\/3{width:33.333333%}.lg\:w-full{width:100%}.lg\:max-w-lg{max-width:32rem}.lg\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.lg\:grid-cols-\[300px_auto\]{grid-template-columns:300px auto}.lg\:justify-between{justify-content:space-between}.lg\:py-8{padding-top:2rem;padding-bottom:2rem}.lg\:text-4xl{font-size:2.25rem;line-height:2.5rem}.lg\:text-5xl{font-size:3rem;line-height:1}.lg\:text-6xl{font-size:3.75rem;line-height:1}.lg\:text-base{font-size:1rem;line-height:1.5rem}.lg\:text-lg{font-size:1.125rem;line-height:1.75rem}.lg\:text-xl{font-size:1.25rem;line-height:1.75rem}.lg\:hover\:bg-zinc-700\/50:hover{background-color:#3f3f4680}}@media (min-width: 1280px){.xl\:w-1\/4{width:25%}}.rtl\:space-x-reverse:where([dir=rtl],[dir=rtl] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 1}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}@font-face{font-family:swiper-icons;src:url(data:application/font-woff;charset=utf-8;base64,\ d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA);font-weight:400;font-style:normal}:root{--swiper-theme-color: #007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,#00000080,#0000)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color: #fff}.swiper-lazy-preloader-black{--swiper-preloader-color: #000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translateZ(0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;transform:translate3d(0,-50%,0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translate(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, .25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-fade.swiper-free-mode .swiper-slide{transition-timing-function:ease-out}.swiper-fade .swiper-slide{pointer-events:none;transition-property:opacity}.swiper-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-fade .swiper-slide-active,.swiper-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.lazy-load-image-background.blur{filter:blur(15px)}.lazy-load-image-background.blur.lazy-load-image-loaded{filter:blur(0);transition:filter .3s}.lazy-load-image-background.blur>img{opacity:0}.lazy-load-image-background.blur.lazy-load-image-loaded>img{opacity:1;transition:opacity .3s}:root{--swiper-navigation-size: 44px}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size) / 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none!important}.swiper-button-prev svg,.swiper-button-next svg{width:100%;height:100%;-o-object-fit:contain;object-fit:contain;transform-origin:center}.swiper-rtl .swiper-button-prev svg,.swiper-rtl .swiper-button-next svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-lock{display:none}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none!important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, .1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, .5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none} diff --git a/assets/index-jGE6rml3.css b/assets/index-jGE6rml3.css new file mode 100644 index 0000000..215d424 --- /dev/null +++ b/assets/index-jGE6rml3.css @@ -0,0 +1 @@ +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--background: 0 0% 100%;--foreground: 240 10% 3.9%;--card: 0 0% 100%;--card-foreground: 240 10% 3.9%;--popover: 0 0% 100%;--popover-foreground: 240 10% 3.9%;--primary: 240 5.9% 10%;--primary-foreground: 0 0% 98%;--secondary: 240 4.8% 95.9%;--secondary-foreground: 240 5.9% 10%;--muted: 240 4.8% 95.9%;--muted-foreground: 240 3.8% 46.1%;--accent: 240 4.8% 95.9%;--accent-foreground: 240 5.9% 10%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 240 5.9% 90%;--input: 240 5.9% 90%;--ring: 240 10% 3.9%;--chart-1: 12 76% 61%;--chart-2: 173 58% 39%;--chart-3: 197 37% 24%;--chart-4: 43 74% 66%;--chart-5: 27 87% 67%;--radius: .5rem}.dark{--background: 240 10% 3.9%;--foreground: 0 0% 98%;--card: 240 10% 3.9%;--card-foreground: 0 0% 98%;--popover: 240 10% 3.9%;--popover-foreground: 0 0% 98%;--primary: 0 0% 98%;--primary-foreground: 240 5.9% 10%;--secondary: 240 3.7% 15.9%;--secondary-foreground: 0 0% 98%;--muted: 240 3.7% 15.9%;--muted-foreground: 240 5% 64.9%;--accent: 240 3.7% 15.9%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 0 0% 98%;--border: 240 3.7% 15.9%;--input: 240 3.7% 15.9%;--ring: 240 4.9% 83.9%;--chart-1: 220 70% 50%;--chart-2: 160 60% 45%;--chart-3: 30 80% 55%;--chart-4: 280 65% 60%;--chart-5: 340 75% 55%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.bottom-0{bottom:0}.left-0{left:0}.left-1\/2{left:50%}.left-4{left:1rem}.left-\[-20\%\]{left:-20%}.left-\[50\%\]{left:50%}.right-0{right:0}.right-2{right:.5rem}.right-4{right:1rem}.right-\[-20\%\]{right:-20%}.top-0{top:0}.top-2{top:.5rem}.top-3\/4{top:75%}.top-4{top:1rem}.top-\[-10\%\]{top:-10%}.top-\[50\%\]{top:50%}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-\[50px\]{margin-top:50px}.mt-auto{margin-top:auto}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-video{aspect-ratio:16 / 9}.h-10{height:2.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[500px\]{height:500px}.h-\[50px\]{height:50px}.h-\[50vh\]{height:50vh}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-64{max-height:16rem}.max-h-80{max-height:20rem}.max-h-96{max-height:24rem}.min-h-screen{min-height:100vh}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-10{width:2.5rem}.w-12{width:3rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-9{width:2.25rem}.w-\[100px\]{width:100px}.w-\[500px\]{width:500px}.w-\[90\%\]{width:90%}.w-full{width:100%}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-lg{max-width:32rem}.max-w-screen-xl{max-width:1280px}.max-w-xs{max-width:20rem}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\[-50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-normal{justify-content:normal}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-y-1{row-gap:.25rem}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.self-center{align-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.rounded-b-lg{border-bottom-right-radius:var(--radius);border-bottom-left-radius:var(--radius)}.rounded-l-md{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.rounded-r-full{border-top-right-radius:9999px;border-bottom-right-radius:9999px}.rounded-r-md{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-t-lg{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius)}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-inherit{border-color:inherit}.border-input{border-color:hsl(var(--input))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-zinc-200{--tw-border-opacity: 1;border-color:rgb(228 228 231 / var(--tw-border-opacity))}.border-zinc-500{--tw-border-opacity: 1;border-color:rgb(113 113 122 / var(--tw-border-opacity))}.border-opacity-5{--tw-border-opacity: .05}.bg-background{background-color:hsl(var(--background))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-black\/10{background-color:#0000001a}.bg-black\/50{background-color:#00000080}.bg-black\/60{background-color:#0009}.bg-black\/80{background-color:#000c}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/10{background-color:hsl(var(--primary) / .1)}.bg-secondary{background-color:hsl(var(--secondary))}.bg-slate-950{--tw-bg-opacity: 1;background-color:rgb(2 6 23 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-zinc-800{--tw-bg-opacity: 1;background-color:rgb(39 39 42 / var(--tw-bg-opacity))}.bg-zinc-900\/50{background-color:#18181b80}.bg-zinc-950{--tw-bg-opacity: 1;background-color:rgb(9 9 11 / var(--tw-bg-opacity))}.bg-zinc-950\/40{background-color:#09090b66}.bg-opacity-10{--tw-bg-opacity: .1}.bg-opacity-5{--tw-bg-opacity: .05}.bg-\[radial-gradient\(circle_farthest-side\,rgba\(255\,0\,182\,\.15\)\,rgba\(255\,255\,255\,0\)\)\]{background-image:radial-gradient(circle farthest-side,#ff00b626,#fff0)}.bg-gradient-to-l{background-image:linear-gradient(to left,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-sky-900\/20{--tw-gradient-from: rgb(12 74 110 / .2) var(--tw-gradient-from-position);--tw-gradient-to: rgb(12 74 110 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-zinc-900{--tw-gradient-from: #18181b var(--tw-gradient-from-position);--tw-gradient-to: rgb(24 24 27 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-black{--tw-gradient-to: #000 var(--tw-gradient-to-position)}.to-blue-500{--tw-gradient-to: #3b82f6 var(--tw-gradient-to-position)}.bg-cover{background-size:cover}.bg-center{background-position:center}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pl-2\.5{padding-left:.625rem}.pr-2\.5{padding-right:.625rem}.pr-8{padding-right:2rem}.text-center{text-align:center}.text-start{text-align:start}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-6xl{font-size:3.75rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-orange-400{--tw-text-opacity: 1;color:rgb(251 146 60 / var(--tw-text-opacity))}.text-orange-500{--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}.text-teal-50{--tw-text-opacity: 1;color:rgb(240 253 250 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-zinc-400{--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity))}.text-zinc-50{--tw-text-opacity: 1;color:rgb(250 250 250 / var(--tw-text-opacity))}.text-zinc-500{--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity))}.underline-offset-4{text-underline-offset:4px}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-lg{--tw-backdrop-blur: blur(16px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}body{min-height:100vh}::-webkit-scrollbar{width:5px}::-webkit-scrollbar-thumb{background-color:#003640;border-radius:5px}::-webkit-scrollbar-track{background-color:transparent}.truncate-lines{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.swiper-button-prev:after,.swiper-button-next:after{color:#000;font-size:20px!important;background-color:#ffffffd2;width:50px!important;height:50px!important;border-radius:100px;display:flex;align-items:center;justify-content:center}.layout-container{display:flex;flex-direction:column;min-height:100vh}.content{flex:1}.gr{background:linear-gradient(200deg,transparent 50%,#000000 100%),linear-gradient(200deg,transparent 30%,#000000 100%),linear-gradient(180deg,transparent 10%,#000000 100%)}.no-scroll::-webkit-scrollbar{display:none}.custom-bullet{height:3rem;width:3rem;border-radius:9999px;border:2px solid white;cursor:pointer;transition:background-color .2s,transform .2s}.custom-bullet.swiper-pagination-bullet-active{background-color:#fff;transform:scale(1.2)}.filterscroll::-webkit-scrollbar{display:none}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\:scale-110:hover{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-none:hover{border-style:none}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:bg-white:hover{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.hover\:bg-zinc-200:hover{--tw-bg-opacity: 1;background-color:rgb(228 228 231 / var(--tw-bg-opacity))}.hover\:bg-zinc-800:hover{--tw-bg-opacity: 1;background-color:rgb(39 39 42 / var(--tw-bg-opacity))}.hover\:bg-zinc-950:hover{--tw-bg-opacity: 1;background-color:rgb(9 9 11 / var(--tw-bg-opacity))}.hover\:bg-gradient-to-r:hover{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-black:hover{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group.toaster .group-\[\.toaster\]\:border-border{border-color:hsl(var(--border))}.group.toast .group-\[\.toast\]\:bg-muted{background-color:hsl(var(--muted))}.group.toast .group-\[\.toast\]\:bg-primary{background-color:hsl(var(--primary))}.group.toaster .group-\[\.toaster\]\:bg-background{background-color:hsl(var(--background))}.group.toast .group-\[\.toast\]\:text-muted-foreground{color:hsl(var(--muted-foreground))}.group.toast .group-\[\.toast\]\:text-primary-foreground{color:hsl(var(--primary-foreground))}.group.toaster .group-\[\.toaster\]\:text-foreground{color:hsl(var(--foreground))}.group.toaster .group-\[\.toaster\]\:shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}.dark\:border-zinc-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(63 63 70 / var(--tw-border-opacity))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:text-zinc-400:is(.dark *){--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\:left-6{left:1.5rem}.sm\:mx-auto{margin-left:auto;margin-right:auto}.sm\:mb-0{margin-bottom:0}.sm\:mt-2{margin-top:.5rem}.sm\:mt-6{margin-top:1.5rem}.sm\:inline{display:inline}.sm\:flex{display:flex}.sm\:h-\[70vh\]{height:70vh}.sm\:max-w-sm{max-width:24rem}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:justify-end{justify-content:flex-end}.sm\:justify-between{justify-content:space-between}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:text-left{text-align:left}.sm\:text-center{text-align:center}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}}@media (min-width: 768px){.md\:left-8{left:2rem}.md\:mt-5{margin-top:1.25rem}.md\:h-\[80vh\]{height:80vh}.md\:max-w-md{max-width:28rem}.md\:py-8{padding-top:2rem;padding-bottom:2rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 1024px){.lg\:left-12{left:3rem}.lg\:my-8{margin-top:2rem;margin-bottom:2rem}.lg\:block{display:block}.lg\:hidden{display:none}.lg\:h-\[90vh\]{height:90vh}.lg\:w-1\/2{width:50%}.lg\:w-1\/3{width:33.333333%}.lg\:w-full{width:100%}.lg\:max-w-lg{max-width:32rem}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.lg\:grid-cols-\[300px_auto\]{grid-template-columns:300px auto}.lg\:justify-between{justify-content:space-between}.lg\:py-8{padding-top:2rem;padding-bottom:2rem}.lg\:text-4xl{font-size:2.25rem;line-height:2.5rem}.lg\:text-5xl{font-size:3rem;line-height:1}.lg\:text-6xl{font-size:3.75rem;line-height:1}.lg\:text-base{font-size:1rem;line-height:1.5rem}.lg\:text-lg{font-size:1.125rem;line-height:1.75rem}.lg\:text-xl{font-size:1.25rem;line-height:1.75rem}.lg\:hover\:bg-zinc-700\/50:hover{background-color:#3f3f4680}}@media (min-width: 1280px){.xl\:w-1\/4{width:25%}}.rtl\:space-x-reverse:where([dir=rtl],[dir=rtl] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 1}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}@font-face{font-family:swiper-icons;src:url(data:application/font-woff;charset=utf-8;base64,\ d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA);font-weight:400;font-style:normal}:root{--swiper-theme-color: #007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,#00000080,#0000)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color: #fff}.swiper-lazy-preloader-black{--swiper-preloader-color: #000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translateZ(0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;transform:translate3d(0,-50%,0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translate(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, .25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-fade.swiper-free-mode .swiper-slide{transition-timing-function:ease-out}.swiper-fade .swiper-slide{pointer-events:none;transition-property:opacity}.swiper-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-fade .swiper-slide-active,.swiper-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.lazy-load-image-background.blur{filter:blur(15px)}.lazy-load-image-background.blur.lazy-load-image-loaded{filter:blur(0);transition:filter .3s}.lazy-load-image-background.blur>img{opacity:0}.lazy-load-image-background.blur.lazy-load-image-loaded>img{opacity:1;transition:opacity .3s}:root{--swiper-navigation-size: 44px}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size) / 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none!important}.swiper-button-prev svg,.swiper-button-next svg{width:100%;height:100%;-o-object-fit:contain;object-fit:contain;transform-origin:center}.swiper-rtl .swiper-button-prev svg,.swiper-rtl .swiper-button-next svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-lock{display:none}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none!important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, .1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, .5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none} diff --git a/index.html b/index.html index 334e784..1351412 100644 --- a/index.html +++ b/index.html @@ -47,8 +47,8 @@ content="https://opengraph.b-cdn.net/production/images/7c6ce8aa-5046-4500-9570-38751586a02d.png?token=LhDNCahdnKHj6I98kQ892TIwOWIMiureEjWxkFXDpEE&height=630&width=1200&expires=33267305174" /> - - + +