PageSourceSearch

https://city1051fm.com/assets/index-E9yt3cLC.js

js city1051fm.com collected 2026-09-25 10:32:53 UTC 893,437 bytes, 322 lines download raw bytes

vendor: 5,502 bytes, line 1
1function DC(e,t){for(var r=0;r<t.length;r++){const o=t[r];if(typeof o!="string"&&!Array.isArray(o)){for(const a in o)if(a!=="default"&&!(a in e)){const l=Object.getOwnPropertyDescriptor(o,a);l&&Object.defineProperty(e,a,l.get?l:{enumerable:!0,get:()=>o[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))o(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function r(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function o(a){if(a.ep)return;a.ep=!0;const l=r(a);fetch(a.href,l)}})();function oo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gf={exports:{}},ta={},xf={exports:{}},Me={};var Ly;function IC(){if(Ly)return Me;Ly=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.iterator;function x(M){return M===null||typeof M!="object"?null:(M=g&&M[g]||M["@@iterator"],typeof M=="function"?M:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,w={};function j(M,B,Q){this.props=M,this.context=B,this.refs=w,this.updater=Q||v}j.prototype.isReactComponent={},j.prototype.setState=function(M,B){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,B,"setState")},j.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function k(){}k.prototype=j.prototype;function C(M,B,Q){this.props=M,this.context=B,this.refs=w,this.updater=Q||v}var T=C.prototype=new k;T.constructor=C,N(T,j.prototype),T.isPureReactComponent=!0;var A=Array.isArray,E=Object.prototype.hasOwnProperty,D={current:null},I={key:!0,ref:!0,__self:!0,__source:!0};function _(M,B,Q){var ne,pe={},ge=null,X=null;if(B!=null)for(ne in B.ref!==void 0&&(X=B.ref),B.key!==void 0&&(ge=""+B.key),B)E.call(B,ne)&&!I.hasOwnProperty(ne)&&(pe[ne]=B[ne]);var ue=arguments.length-2;if(ue===1)pe.children=Q;else if(1<ue){for(var we=Array(ue),be=0;be<ue;be++)we[be]=arguments[be+2];pe.children=we}if(M&&M.defaultProps)for(ne in ue=M.defaultProps,ue)pe[ne]===void 0&&(pe[ne]=ue[ne]);return{$$typeof:e,type:M,key:ge,ref:X,props:pe,_owner:D.current}}function H(M,B){return{$$typeof:e,type:M.type,key:B,ref:M.ref,props:M.props,_owner:M._owner}}function z(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function G(M){var B={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(Q){return B[Q]})}var q=/\/+/g;function le(M,B){return typeof M=="object"&&M!==null&&M.key!=null?G(""+M.key):B.toString(36)}function F(M,B,Q,ne,pe){var ge=typeof M;(ge==="undefined"||ge==="boolean")&&(M=null);var X=!1;if(M===null)X=!0;else switch(ge){case"string":case"number":X=!0;break;case"object":switch(M.$$typeof){case e:case t:X=!0}}if(X)return X=M,pe=pe(X),M=ne===""?"."+le(X,0):ne,A(pe)?(Q="",M!=null&&(Q=M.replace(q,"$&/")+"/"),F(pe,B,Q,"",function(be){return be})):pe!=null&&(z(pe)&&(pe=H(pe,Q+(!pe.key||X&&X.key===pe.key?"":(""+pe.key).replace(q,"$&/")+"/")+M)),B.push(pe)),1;if(X=0,ne=ne===""?".":ne+":",A(M))for(var ue=0;ue<M.length;ue++){ge=M[ue];var we=ne+le(ge,ue);X+=F(ge,B,Q,we,pe)}else if(we=x(M),typeof we=="function")for(M=we.call(M),ue=0;!(ge=M.next()).done;)ge=ge.value,we=ne+le(ge,ue++),X+=F(ge,B,Q,we,pe);else if(ge==="object")throw B=String(M),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.");return X}function J(M,B,Q){if(M==null)return M;var ne=[],pe=0;return F(M,ne,"","",function(ge){return B.call(Q,ge,pe++)}),ne}function Z(M){if(M._status===-1){var B=M._result;B=B(),B.then(function(Q){(M._status===0||M._status===-1)&&(M._status=1,M._result=Q)},function(Q){(M._status===0||M._status===-1)&&(M._status=2,M._result=Q)}),M._status===-1&&(M._status=0,M._result=B)}if(M._status===1)return M._result.default;throw M._result}var oe={current:null},$={transition:null},W={ReactCurrentDispatcher:oe,ReactCurrentBatchConfig:$,ReactCurrentOwner:D};function K(){throw Error("act(...) is not supported in production builds of React.")}return Me.Children={map:J,forEach:function(M,B,Q){J(M,function(){B.apply(this,arguments)},Q)},count:function(M){var B=0;return J(M,function(){B++}),B},toArray:function(M){return J(M,function(B){return B})||[]},only:function(M){if(!z(M))throw Error("React.Children.only expected to receive a single React element child.");return M}},Me.Component=j,Me.Fragment=r,Me.Profiler=a,Me.PureComponent=C,Me.StrictMode=o,Me.Suspense=f,Me.__SECRET_INT
vendor: 6,750 bytes, line 1
1ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,Me.act=K,Me.cloneElement=function(M,B,Q){if(M==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+M+".");var ne=N({},M.props),pe=M.key,ge=M.ref,X=M._owner;if(B!=null){if(B.ref!==void 0&&(ge=B.ref,X=D.current),B.key!==void 0&&(pe=""+B.key),M.type&&M.type.defaultProps)var ue=M.type.defaultProps;for(we in B)E.call(B,we)&&!I.hasOwnProperty(we)&&(ne[we]=B[we]===void 0&&ue!==void 0?ue[we]:B[we])}var we=arguments.length-2;if(we===1)ne.children=Q;else if(1<we){ue=Array(we);for(var be=0;be<we;be++)ue[be]=arguments[be+2];ne.children=ue}return{$$typeof:e,type:M.type,key:pe,ref:ge,props:ne,_owner:X}},Me.createContext=function(M){return M={$$typeof:c,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},M.Provider={$$typeof:l,_context:M},M.Consumer=M},Me.createElement=_,Me.createFactory=function(M){var B=_.bind(null,M);return B.type=M,B},Me.createRef=function(){return{current:null}},Me.forwardRef=function(M){return{$$typeof:d,render:M}},Me.isValidElement=z,Me.lazy=function(M){return{$$typeof:p,_payload:{_status:-1,_result:M},_init:Z}},Me.memo=function(M,B){return{$$typeof:h,type:M,compare:B===void 0?null:B}},Me.startTransition=function(M){var B=$.transition;$.transition={};try{M()}finally{$.transition=B}},Me.unstable_act=K,Me.useCallback=function(M,B){return oe.current.useCallback(M,B)},Me.useContext=function(M){return oe.current.useContext(M)},Me.useDebugValue=function(){},Me.useDeferredValue=function(M){return oe.current.useDeferredValue(M)},Me.useEffect=function(M,B){return oe.current.useEffect(M,B)},Me.useId=function(){return oe.current.useId()},Me.useImperativeHandle=function(M,B,Q){return oe.current.useImperativeHandle(M,B,Q)},Me.useInsertionEffect=function(M,B){return oe.current.useInsertionEffect(M,B)},Me.useLayoutEffect=function(M,B){return oe.current.useLayoutEffect(M,B)},Me.useMemo=function(M,B){return oe.current.useMemo(M,B)},Me.useReducer=function(M,B,Q){return oe.current.useReducer(M,B,Q)},Me.useRef=function(M){return oe.current.useRef(M)},Me.useState=function(M){return oe.current.useState(M)},Me.useSyncExternalStore=function(M,B,Q){return oe.current.useSyncExternalStore(M,B,Q)},Me.useTransition=function(){return oe.current.useTransition()},Me.version="18.3.1",Me}var Oy;function _m(){return Oy||(Oy=1,xf.exports=IC()),xf.exports}var Fy;function LC(){if(Fy)return ta;Fy=1;var e=_m(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(d,f,h){var p,g={},x=null,v=null;h!==void 0&&(x=""+h),f.key!==void 0&&(x=""+f.key),f.ref!==void 0&&(v=f.ref);for(p in f)o.call(f,p)&&!l.hasOwnProperty(p)&&(g[p]=f[p]);if(d&&d.defaultProps)for(p in f=d.defaultProps,f)g[p]===void 0&&(g[p]=f[p]);return{$$typeof:t,type:d,key:x,ref:v,props:g,_owner:a.current}}return ta.Fragment=r,ta.jsx=c,ta.jsxs=c,ta}var $y;function OC(){return $y||($y=1,gf.exports=LC()),gf.exports}var s=OC(),ec={},yf={exports:{}},Zt={},vf={exports:{}},bf={};var Vy;function FC(){return Vy||(Vy=1,(function(e){function t($,W){var K=$.length;$.push(W);e:for(;0<K;){var M=K-1>>>1,B=$[M];if(0<a(B,W))$[M]=W,$[K]=B,K=M;else break e}}function r($){return $.length===0?null:$[0]}function o($){if($.length===0)return null;var W=$[0],K=$.pop();if(K!==W){$[0]=K;e:for(var M=0,B=$.length,Q=B>>>1;M<Q;){var ne=2*(M+1)-1,pe=$[ne],ge=ne+1,X=$[ge];if(0>a(pe,K))ge<B&&0>a(X,pe)?($[M]=X,$[ge]=K,M=ge):($[M]=pe,$[ne]=K,M=ne);else if(ge<B&&0>a(X,K))$[M]=X,$[ge]=K,M=ge;else break e}}return W}function a($,W){var K=$.sortIndex-W.sortIndex;return K!==0?K:$.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var f=[],h=[],p=1,g=null,x=3,v=!1,N=!1,w=!1,j=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T($){for(var W=r(h);W!==null;){if(W.callback===null)o(h);else if(W.startTime<=$)o(h),W.sortIndex=W.expirationTime,t(f,W);else break;W=r(h)}}function A($){if(w=!1,T($),!N)if(r(f)!==null)N=!0,Z(E);else{var W=r(h);W!==null&&oe(A,W.startTime-$)}}function E($,W){N=!1,w&&(w=!1,k(_),_=-1),v=!0;var K=x;try{for(T(W),g=r(f);g!==null&&(!(g.expirationTime>W)||$&&!G());){var M=g.callback;if(typeof M=="function"){g.callback=null,x=g.priorityLevel;var B=M(g.expirationTime<=W);W=e.unstable_now(),typeof B=="function"?g.callback=B:g===r(f)&&o(f),T(W)}else o(f);g=r(f)}if(g!==null)var Q=!0;else{var ne=r(h);ne!==null&&oe(A,ne.startTime-W),Q=!1}return Q}finally{g=null,x=K,v=!1}}var D=!1,I=null,_=-1,H=5,z=-1;function G(){return!(e.unstable_now()-z<H)}function q(){if(I!==null){var $=e.unstable_now();z=$;var W=!0;try{W=I(!0,$)}finally{W?le():(D=!1,I=null)}}else D=!1}var le;if(typeof C=="function")le=function(){C(q)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,J=F.port2;F.port1.onmessage=q,le=function(){J.postMessage(null)}}else le=function(){j(q,0)};function Z($){I=$,D||(D=!0,le())}function oe($,W){_=j(function(){$(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function($){$.callback=null},e.unstable_continueExecution=function(){N||v||(N=!0,Z(E))},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_getFirstCallbackNode=function(){return r(f)},e.unstable_next=function($){switch(x){case 1:case 2:case 3:var W=3;break;default:W=x}var K=x;x=W;try{return $()}finally{x=K}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,W){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var K=x;x=$;try{return W()}finally{x=K}},e.unstable_scheduleCallback=function($,W,K){var M=e.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?M+K:M):K=M,$){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=K+B,$={id:p++,callback:W,priorityLevel:$,startTime:K,expirationTime:B,sortIndex:-1},K>
vendor: 4,317 bytes, line 1
1M?($.sortIndex=K,t(h,$),r(f)===null&&$===r(h)&&(w?(k(_),_=-1):w=!0,oe(A,K-M))):($.sortIndex=B,t(f,$),N||v||(N=!0,Z(E))),$},e.unstable_shouldYield=G,e.unstable_wrapCallback=function($){var W=x;return function(){var K=x;x=W;try{return $.apply(this,arguments)}finally{x=K}}}})(bf)),bf}var By;function $C(){return By||(By=1,vf.exports=FC()),vf.exports}var zy;function VC(){if(zy)return Zt;zy=1;var e=_m(),t=$C();function r(n){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+n,u=1;u<arguments.length;u++)i+="&args[]="+encodeURIComponent(arguments[u]);return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,a={};function l(n,i){c(n,i),c(n+"Capture",i)}function c(n,i){for(a[n]=i,n=0;n<i.length;n++)o.add(i[n])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,h=/^[: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]*$/,p={},g={};function x(n){return f.call(g,n)?!0:f.call(p,n)?!1:h.test(n)?g[n]=!0:(p[n]=!0,!1)}function v(n,i,u,m){if(u!==null&&u.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return m?!1:u!==null?!u.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function N(n,i,u,m){if(i===null||typeof i>"u"||v(n,i,u,m))return!0;if(m)return!1;if(u!==null)switch(u.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function w(n,i,u,m,b,S,P){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=m,this.attributeNamespace=b,this.mustUseProperty=u,this.propertyName=n,this.type=i,this.sanitizeURL=S,this.removeEmptyString=P}var j={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){j[n]=new w(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var i=n[0];j[i]=new w(i,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){j[n]=new w(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){j[n]=new w(n,2,!1,n,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(n){j[n]=new w(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){j[n]=new w(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){j[n]=new w(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){j[n]=new w(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){j[n]=new w(n,5,!1,n.toLowerCase(),null,!1,!1)});var k=/[\-:]([a-z])/g;function C(n){return n[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
1-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(n){var i=n.replace(k,C);j[i]=new w(i,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var i=n.replace(k,C);j[i]=new w(i,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var i=n.replace(k,C);j[i]=new w(i,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){j[n]=new w(n,1,!1,n.toLowerCase(),null,!1,!1)}),j.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){j[n]=new w(n,1,!1,n.toLowerCase(),null,!0,!0)});function T(n,i,u,m){var b=j.hasOwnProperty(i)?j[i]:null;(b!==null?b.type!==0:m||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(N(i,u,b,m)&&(u=null),m||b===null?x(i)&&(u===null?n.removeAttribute(i):n.setAttribute(i,""+u)):b.mustUseProperty?n[b.propertyName]=u===null?b.type===3?!1:"":u:(i=b.attributeName,m=b.attributeNamespace,u===null?n.removeAttribute(i):(b=b.type,u=b===3||b===4&&u===!0?"":""+u,m?n.setAttributeNS(m,i,u):n.setAttribute(i,u))))}var A=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),D=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),z=Symbol.for("react.provider"),G=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),le=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),oe=Symbol.for("react.offscreen"),$=Symbol.iterator;function W(n){return n===null||typeof n!="object"?null:(n=$&&n[$]||n["@@iterator"],typeof n=="function"?n:null)}var K=Object.assign,M;function B(n){if(M===void 0)try{throw Error()}catch(u){var i=u.stack.trim().match(/\n( *(at )?)/);M=i&&i[1]||""}return`
2`+M+n}var Q=!1;function ne(n,i){if(!n||Q)return"";Q=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(Y){var m=Y}Reflect.construct(n,[],i)}else{try{i.call()}catch(Y){m=Y}n.call(i.prototype)}else{try{throw Error()}catch(Y){m=Y}n()}}catch(Y){if(Y&&m&&typeof Y.stack=="string"){for(var b=Y.stack.split(`
3`),S=m.stack.split(`
4`),P=b.length-1,R=S.length-1;1<=P&&0<=R&&b[P]!==S[R];)R--;for(;1<=P&&0<=R;P--,R--)if(b[P]!==S[R]){if(P!==1||R!==1)do if(P--,R--,0>R||b[P]!==S[R]){var L=`
5`+b[P].replace(" at new "," at ");return n.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",n.displayName)),L}while(1<=P&&0<=R);break}}}finally{Q=!1,Error.prepareStackTrace=u}return(n=n?n.displayName||n.name:"")?B(n):""}function pe(n){switch(n.tag){case 5:return B(n.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return n=ne(n.type,!1),n;case 11:return n=ne(n.type.render,!1),n;case 1:return n=ne(n.type,!0),n;default:return""}}function ge(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case I:return"Fragment";case D:return"Portal";case H:return"Profiler";case _:return"StrictMode";case le:return"Suspense";case F:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case G:return(n.displayName||"Context")+".Consumer";case z:return(n._context.displayName||"Context")+".Provider";case q:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case J:return i=n.displayName||null,i!==null?i:ge(n.type)||"Memo";case Z:i=n._payload,n=n._init;try{return ge(n(i))}catch{}}return null}function X(n){var i=n.type;switch(n.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=i.render,n=n.displayName||n.name||"",i.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ge(i);case 8:return i===_?"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 i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function ue(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function we(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function be(n){var i=we(n)?"checked":"value",u=Object.getOwnPropertyDescriptor(n.constructor.prototype,i
vendor: 38,541 bytes, lines 5-6
5),m=""+n[i];if(!n.hasOwnProperty(i)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var b=u.get,S=u.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return b.call(this)},set:function(P){m=""+P,S.call(this,P)}}),Object.defineProperty(n,i,{enumerable:u.enumerable}),{getValue:function(){return m},setValue:function(P){m=""+P},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function ve(n){n._valueTracker||(n._valueTracker=be(n))}function ce(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var u=i.getValue(),m="";return n&&(m=we(n)?n.checked?"true":"false":n.value),n=m,n!==u?(i.setValue(n),!0):!1}function Te(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function Ie(n,i){var u=i.checked;return K({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:u??n._wrapperState.initialChecked})}function Qe(n,i){var u=i.defaultValue==null?"":i.defaultValue,m=i.checked!=null?i.checked:i.defaultChecked;u=ue(i.value!=null?i.value:u),n._wrapperState={initialChecked:m,initialValue:u,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function ct(n,i){i=i.checked,i!=null&&T(n,"checked",i,!1)}function ht(n,i){ct(n,i);var u=ue(i.value),m=i.type;if(u!=null)m==="number"?(u===0&&n.value===""||n.value!=u)&&(n.value=""+u):n.value!==""+u&&(n.value=""+u);else if(m==="submit"||m==="reset"){n.removeAttribute("value");return}i.hasOwnProperty("value")?Ut(n,i.type,u):i.hasOwnProperty("defaultValue")&&Ut(n,i.type,ue(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(n.defaultChecked=!!i.defaultChecked)}function zt(n,i,u){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var m=i.type;if(!(m!=="submit"&&m!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+n._wrapperState.initialValue,u||i===n.value||(n.value=i),n.defaultValue=i}u=n.name,u!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,u!==""&&(n.name=u)}function Ut(n,i,u){(i!=="number"||Te(n.ownerDocument)!==n)&&(u==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+u&&(n.defaultValue=""+u))}var Rt=Array.isArray;function xt(n,i,u,m){if(n=n.options,i){i={};for(var b=0;b<u.length;b++)i["$"+u[b]]=!0;for(u=0;u<n.length;u++)b=i.hasOwnProperty("$"+n[u].value),n[u].selected!==b&&(n[u].selected=b),b&&m&&(n[u].defaultSelected=!0)}else{for(u=""+ue(u),i=null,b=0;b<n.length;b++){if(n[b].value===u){n[b].selected=!0,m&&(n[b].defaultSelected=!0);return}i!==null||n[b].disabled||(i=n[b])}i!==null&&(i.selected=!0)}}function en(n,i){if(i.dangerouslySetInnerHTML!=null)throw Error(r(91));return K({},i,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function Wt(n,i){var u=i.value;if(u==null){if(u=i.children,i=i.defaultValue,u!=null){if(i!=null)throw Error(r(92));if(Rt(u)){if(1<u.length)throw Error(r(93));u=u[0]}i=u}i==null&&(i=""),u=i}n._wrapperState={initialValue:ue(u)}}function Ss(n,i){var u=ue(i.value),m=ue(i.defaultValue);u!=null&&(u=""+u,u!==n.value&&(n.value=u),i.defaultValue==null&&n.defaultValue!==u&&(n.defaultValue=u)),m!=null&&(n.defaultValue=""+m)}function ks(n){var i=n.textContent;i===n._wrapperState.initialValue&&i!==""&&i!==null&&(n.value=i)}function wt(n){switch(n){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function sr(n,i){return n==null||n==="http://www.w3.org/1999/xhtml"?wt(i):n==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var Dn,In=(function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,u,m,b){MSApp.execUnsafeLocalFunction(function(){return n(i,u,m,b)})}:n})(function(n,i){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=i;else{for(Dn=Dn||document.createElement("div"),Dn.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=Dn.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;i.firstChild;)n.appendChild(i.firstChild)}});function jt(n,i){if(i){var u=n.firstChild;if(u&&u===n.lastChild&&u.nodeType===3){u.nodeValue=i;return}}n.textContent=i}var Tr={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},Ln=["Webkit","ms","Moz","O"];Object.keys(Tr).forEach(function(n){Ln.forEach(function(i){i=i+n.charAt(0).toUpperCase()+n.substring(1),Tr[i]=Tr[n]})});function Er(n,i,u){return i==null||typeof i=="boolean"||i===""?"":u||typeof i!="number"||i===0||Tr.hasOwnProperty(n)&&Tr[n]?(""+i).trim():i+"px"}function Pr(n,i){n=n.style;for(var u in i)if(i.hasOwnProperty(u)){var m=u.indexOf("--")===0,b=Er(u,i[u],m);u==="float"&&(u="cssFloat"),m?n.setProperty(u,b):n[u]=b}}var lo=K({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 mr(n,i){if(i){if(lo[n]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(r(137,n));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(r(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(r(61))}if(i.style!=null&&typeof i.style!="object")throw Error(r(62))}}function Cs(n,i){if(n.indexOf("-")===-1)return typeof i.is=="string";switch(n){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 Ts=null;function bn(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var On=null,Ar=null,or=null;function Ht(n){if(n=Vi(n)){if(typeof On!="function")throw Error(r(280));var i=n.stateNode;i&&(i=pl(i),On(n.stateNode,n.type,i))}}function co(n){Ar?or?or.push(n):or=[n]:Ar=n}function ke(){if(Ar){var n=Ar,i=or;if(or=Ar=null,Ht(n),i)for(n=0;n<i.length;n++)Ht(i[n])}}function Le(n,i){return n(i)}function Ve(){}var Lt=!1;function Yt(n,i,u){if(Lt)return n(i,u);Lt=!0;try{return Le(n,i,u)}finally{Lt=!1,(Ar!==null||or!==null)&&(Ve(),ke())}}function Gt(n,i){var u=n.stateNode;if(u===null)return null;var m=pl(u);if(m===null)return null;u=m[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(n=n.type,m=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!m;break e;default:n=!1}if(n)return null;if(u&&typeof u!="function")throw Error(r(231,i,typeof u));return u}var Rr=!1;if(d)try{var Nt={};Object.defineProperty(Nt,"passive",{get:function(){Rr=!0}}),window.addEventListener("test",Nt,Nt),window.removeEventListener("test",Nt,Nt)}catch{Rr=!1}function tn(n,i,u,m,b,S,P,R,L){var Y=Array.prototype.slice.call(arguments,3);try{i.apply(u,Y)}catch(re){this.onError(re)}}var wi=!1,Ga=null,Ka=!1,Du=null,BS={onError:function(n){wi=!0,Ga=n}};function zS(n,i,u,m,b,S,P,R,L){wi=!1,Ga=null,tn.apply(BS,arguments)}function US(n,i,u,m,b,S,P,R,L){if(zS.apply(this,arguments),wi){if(wi){var Y=Ga;wi=!1,Ga=null}else throw Error(r(198));Ka||(Ka=!0,Du=Y)}}function Es(n){var i=n,u=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(u=i.return),n=i.return;while(n)}return i.tag===3?u:null}function og(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function ig(n){if(Es(n)!==n)throw Error(r(188))}function WS(n){var i=n.alternate;if(!i){if(i=Es(n),i===null)throw Error(r(188));return i!==n?null:n}for(var u=n,m=i;;){var b=u.return;if(b===null)break;var S=b.alternate;if(S===null){if(m=b.return,m!==null){u=m;continue}break}if(b.child===S.child){for(S=b.child;S;){if(S===u)return ig(b),n;if(S===m)return ig(b),i;S=S.sibling}throw Error(r(188))}if(u.return!==m.return)u=b,m=S;else{for(var P=!1,R=b.child;R;){if(R===u){P=!0,u=b,m=S;break}if(R===m){P=!0,m=b,u=S;break}R=R.sibling}if(!P){for(R=S.child;R;){if(R===u){P=!0,u=S,m=b;break}if(R===m){P=!0,m=S,u=b;break}R=R.sibling}if(!P)throw Error(r(189))}}if(u.alternate!==m)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?n:i}function ag(n){return n=WS(n),n!==null?lg(n):null}function lg(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var i=lg(n);if(i!==null)return i;n=n.sibling}return null}var cg=t.unstable_scheduleCallback,ug=t.unstable_cancelCallback,HS=t.unstable_shouldYield,YS=t.unstable_requestPaint,ot=t.unstable_now,GS=t.unstable_getCurrentPriorityLevel,Iu=t.unstable_ImmediatePriority,dg=t.unstable_UserBlockingPriority,qa=t.unstable_NormalPriority,KS=t.unstable_LowPriority,fg=t.unstable_IdlePriority,Qa=null,rn=null;function qS(n){if(rn&&typeof rn.onCommitFiberRoot=="function")try{rn.onCommitFiberRoot(Qa,n,void 0,(n.current.flags&128)===128)}catch{}}var Mr=Math.clz32?Math.clz32:JS,QS=Math.log,XS=Math.LN2;function JS(n){return n>>>=0,n===0?32:31-(QS(n)/XS|0)|0}var Xa=64,Ja=4194304;function ji(n){switch(n&-n){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 n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Za(n,i){var u=n.pendingLanes;if(u===0)return 0;var m=0,b=n.suspendedLanes,S=n.pingedLanes,P=u&268435455;if(P!==0){var R=P&~b;R!==0?m=ji(R):(S&=P,S!==0&&(m=ji(S)))}else P=u&~b,P!==0?m=ji(P):S!==0&&(m=ji(S));if(m===0)return 0;if(i!==0&&i!==m&&(i&b)===0&&(b=m&-m,S=i&-i,b>=S||b===16&&(S&4194240)!==0))return i;if((m&4)!==0&&(m|=u&16),i=n.entangledLanes,i!==0)for(n=n.entanglements,i&=m;0<i;)u=31-Mr(i),b=1<<u,m|=n[u],i&=~b;return m}function ZS(n,i){switch(n){case 1:case 2:case 4:return i+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ek(n,i){for(var u=n.suspendedLanes,m=n.pingedLanes,b=n.expirationTimes,S=n.pendingLanes;0<S;){var P=31-Mr(S),R=1<<P,L=b[P];L===-1?((R&u)===0||(R&m)!==0)&&(b[P]=ZS(R,i)):L<=i&&(n.expiredLanes|=R),S&=~R}}function Lu(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function hg(){var n=Xa;return Xa<<=1,(Xa&4194240)===0&&(Xa=64),n}function Ou(n){for(var i=[],u=0;31>u;u++)i.push(n);return i}function Ni(n,i,u){n.pendingLanes|=i,i!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,i=31-Mr(i),n[i]=u}function tk(n,i){var u=n.pendingLanes&~i;n.pendingLanes=i,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=i,n.mutableReadLanes&=i,n.entangledLanes&=i,i=n.entanglements;var m=n.eventTimes;for(n=n.expirationTimes;0<u;){var b=31-Mr(u),S=1<<b;i[b]=0,m[b]=-1,n[b]=-1,u&=~S}}function Fu(n,i){var u=n.entangledLanes|=i;for(n=n.entanglements;u;){var m=31-Mr(u),b=1<<m;b&i|n[m]&i&&(n[m]|=i),u&=~b}}var Be=0;function mg(n){return n&=-n,1<n?4<n?(n&268435455)!==0?16:536870912:4:1}var pg,$u,gg,xg,yg,Vu=!1,el=[],Fn=null,$n=null,Vn=null,Si=new Map,ki=new Map,Bn=[],rk="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function vg(n,i){switch(n){case"focusin":case"focusout":Fn=null;break;case"dragenter":case"dragleave":$n=null;break;case"mouseover":case"mouseout":Vn=null;break;case"pointerover":case"pointerout":Si.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":ki.delete(i.pointerId)}}function Ci(n,i,u,m,b,S){return n===null||n.nativeEvent!==S?(n={blockedOn:i,domEventName:u,eventSystemFlags:m,nativeEvent:S,targetContainers:[b]},i!==null&&(i=Vi(i),i!==null&&$u(i)),n):(n.eventSystemFlags|=m,i=n.targetContainers,b!==null&&i.indexOf(b)===-1&&i.push(b),n)}function nk(n,i,u,m,b){switch(i){case"focusin":return Fn=Ci(Fn,n,i,u,m,b),!0;case"dragenter":return $n=Ci($n,n,i,u,m,b),!0;case"mouseover":return Vn=Ci(Vn,n,i,u,m,b),!0;case"pointerover":var S=b.pointerId;return Si.set(S,Ci(Si.get(S)||null,n,i,u,m,b)),!0;case"gotpointercapture":return S=b.pointerId,ki.set(S,Ci(ki.get(S)||null,n,i,u,m,b)),!0}return!1}function bg(n){var i=Ps(n.target);if(i!==null){var u=Es(i);if(u!==null){if(i=u.tag,i===13){if(i=og(u),i!==null){n.blockedOn=i,yg(n.priority,function(){gg(u)});return}}else if(i===3&&u.stateNode.current.memoizedState.isDehydrated){n.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}n.blockedOn=null}function tl(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var u=zu(n.domEventName,n.eventSystemFlags,i[0],n.nativeEvent);if(u===null){u=n.nativeEvent;var m=new u.constructor(u.type,u);Ts=m,u.target.dispatchEvent(m),Ts=null}else return i=Vi(u),i!==null&&$u(i),n.blockedOn=u,!1;i.shift()}return!0}function wg(n,i,u){tl(n)&&u.delete(i)}function sk(){Vu=!1,Fn!==null&&tl(Fn)&&(Fn=null),$n!==null&&tl($n)&&($n=null),Vn!==null&&tl(Vn)&&(Vn=null),Si.forEach(wg),ki.forEach(wg)}function Ti(n,i){n.blockedOn===i&&(n.blockedOn=null,Vu||(Vu=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,sk)))}function Ei(n){function i(b){return Ti(b,n)}if(0<el.length){Ti(el[0],n);for(var u=1;u<el.length;u++){var m=el[u];m.blockedOn===n&&(m.blockedOn=null)}}for(Fn!==null&&Ti(Fn,n),$n!==null&&Ti($n,n),Vn!==null&&Ti(Vn,n),Si.forEach(i),ki.forEach(i),u=0;u<Bn.length;u++)m=Bn[u],m.blockedOn===n&&(m.blockedOn=null);for(;0<Bn.length&&(u=Bn[0],u.blockedOn===null);)bg(u),u.blockedOn===null&&Bn.shift()}var uo=A.ReactCurrentBatchConfig,rl=!0;function ok(n,i,u,m){var b=Be,S=uo.transition;uo.transition=null;try{Be=1,Bu(n,i,u,m)}finally{Be=b,uo.transition=S}}function ik(n,i,u,m){var b=Be,S=uo.transition;uo.transition=null;try{Be=4,Bu(n,i,u,m)}finally{Be=b,uo.transition=S}}function Bu(n,i,u,m){if(rl){var b=zu(n,i,u,m);if(b===null)od(n,i,m,nl,u),vg(n,m);else if(nk(b,n,i,u,m))m.stopPropagation();else if(vg(n,m),i&4&&-1<rk.indexOf(n)){for(;b!==null;){var S=Vi(b);if(S!==null&&pg(S),S=zu(n,i,u,m),S===null&&od(n,i,m,nl,u),S===b)break;b=S}b!==null&&m.stopPropagation()}else od(n,i,m,null,u)}}var nl=null;function zu(n,i,u,m){if(nl=null,n=bn(m),n=Ps(n),n!==null)if(i=Es(n),i===null)n=null;else if(u=i.tag,u===13){if(n=og(i),n!==null)return n;n=null}else if(u===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null);return nl=n,null}function jg(n){switch(n){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(GS()){case Iu:return 1;case dg:return 4;case qa:case KS:return 16;case fg:return 536870912;default:return 16}default:return 16}}var zn=null,Uu=null,sl=null;function Ng(){if(sl)return sl;var n,i=Uu,u=i.length,m,b="value"in zn?zn.value:zn.textContent,S=b.length;for(n=0;n<u&&i[n]===b[n];n++);var P=u-n;for(m=1;m<=P&&i[u-m]===b[S-m];m++);return sl=b.slice(n,1<m?1-m:void 0)}function ol(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function il(){return!0}function Sg(){return!1}function ir(n){function i(u,m,b,S,P){this._reactName=u,this._targetInst=b,this.type=m,this.nativeEvent=S,this.target=P,this.currentTarget=null;for(var R in n)n.hasOwnProperty(R)&&(u=n[R],this[R]=u?u(S):S[R]);return this.isDefaultPrevented=(S.defaultPrevented!=null?S.defaultPrevented:S.returnValue===!1)?il:Sg,this.isPropagationStopped=Sg,this}return K(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=il)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=il)},persist:function(){},isPersistent:il}),i}var fo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wu=ir(fo),Pi=K({},fo,{view:0,detail:0}),ak=ir(Pi),Hu,Yu,Ai,al=K({},Pi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ku,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Ai&&(Ai&&n.type==="mousemove"?(Hu=n.screenX-Ai.screenX,Yu=n.screenY-Ai.screenY):Yu=Hu=0,Ai=n),Hu)},movementY:function(n){return"movementY"in n?n.movementY:Yu}}),kg=ir(al),lk=K({},al,{dataTransfer:0}),ck=ir(lk),uk=K({},Pi,{relatedTarget:0}),Gu=ir(uk),dk=K({},fo,{animationName:0,elapsedTime:0,pseudoElement:0}),fk=ir(dk),hk=K({},fo,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),mk=ir(hk),pk=K({},fo,{data:0}),Cg=ir(pk),gk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xk={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},yk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vk(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=yk[n])?!!i[n]:!1}function Ku(){return vk}var bk=K({},Pi,{key:function(n){if(n.key){var i=gk[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=ol(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?xk[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ku,charCode:function(n){return n.type==="keypress"?ol(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?ol(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),wk=ir(bk),jk=K({},al,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tg=ir(jk),Nk=K({},Pi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ku}),Sk=ir(Nk),kk=K({},fo,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ck=ir(kk),Tk=K({},al,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),Ek=ir(Tk),Pk=[9,13,27,32],qu=d&&"CompositionEvent"in window,Ri=null;d&&"documentMode"in document&&(Ri=document.documentMode);var Ak=d&&"TextEvent"in window&&!Ri,Eg=d&&(!qu||Ri&&8<Ri&&11>=Ri),Pg=" ",Ag=!1;function Rg(n,i){switch(n){case"keyup":return Pk.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mg(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var ho=!1;function Rk(n,i){switch(n){case"compositionend":return Mg(i);case"keypress":return i.which!==32?null:(Ag=!0,Pg);case"textInput":return n=i.data,n===Pg&&Ag?null:n;default:return null}}function Mk(n,i){if(ho)return n==="compositionend"||!qu&&Rg(n,i)?(n=Ng(),sl=Uu=zn=null,ho=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Eg&&i.locale!=="ko"?null:i.data;default:return null}}var _k={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function _g(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!_k[n.type]:i==="textarea"}function Dg(n,i,u,m){co(m),i=fl(i,"onChange"),0<i.length&&(u=new Wu("onChange","change",null,u,m),n.push({event:u,listeners:i}))}var Mi=null,_i=null;function Dk(n){Jg(n,0)}function ll(n){var i=yo(n);if(ce(i))return n}function Ik(n,i){if(n==="change")return i}var Ig=!1;if(d){var Qu;if(d){var Xu="oninput"in document;if(!Xu){var Lg=document.createElement("div");Lg.setAttribute("oninput","return;"),Xu=typeof Lg.oninput=="function"}Qu=Xu}else Qu=!1;Ig=Qu&&(!document.documentMode||9<document.documentMode)}function Og(){Mi&&(Mi.detachEvent("onpropertychange",Fg),_i=Mi=null)}function Fg(n){if(n.propertyName==="value"&&ll(_i)){var i=[];Dg(i,_i,n,bn(n)),Yt(Dk,i)}}function Lk(n,i,u){n==="focusin"?(Og(),Mi=i,_i=u,Mi.attachEvent("onpropertychange",Fg)):n==="focusout"&&Og()}function Ok(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return ll(_i)}function Fk(n,i){if(n==="click")return ll(i)}function $k(n,i){if(n==="input"||n==="change")return ll(i)}function Vk(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var _r=typeof Object.is=="function"?Object.is:Vk;function Di(n,i){if(_r(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var u=Object.keys(n),m=Object.keys(i);if(u.length!==m.length)return!1;for(m=0;m<u.length;m++){var b=u[m];if(!f.call(i,b)||!_r(n[b],i[b]))return!1}return!0}function $g(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Vg(n,i){var u=$g(n);n=0;for(var m;u;){if(u.nodeType===3){if(m=n+u.textContent.length,n<=i&&m>=i)return{node:u,offset:i-n};n=m}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=$g(u)}}function Bg(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?Bg(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function zg(){for(var n=window,i=Te();i instanceof n.HTMLIFrameElement;){try{var u=typeof i.contentWindow.location.href=="string"}catch{u=!1}if(u)n=i.contentWindow;else break;i=Te(n.document)}return i}function Ju(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}function Bk(n){var i=zg(),u=n.focusedElem,m=n.selectionRange;if(i!==u&&u&&u.ownerDocument&&Bg(u.ownerDocument.documentElement,u)){if(m!==null&&Ju(u)){if(i=m.start,n=m.end,n===void 0&&(n=i),"selectionStart"in u)u.selectionStart=i,u.selectionEnd=Math.min(n,u.value.length);else if(n=(i=u.ownerDocument||document)&&i.defaultView||window,n.getSelection){n=n.getSelection();var b=u.textContent.length,S=Math.min(m.start,b);m=m.end===void 0?S:Math.min(m.end,b),!n.extend&&S>m&&(b=m,m=S,S=b),b=Vg(u,S);var P=Vg(u,m);b&&P&&(n.rangeCount!==1||n.anchorNode!==b.node||n.anchorOffset!==b.offset||n.focusNode!==P.node||n.focusOffset!==P.offset)&&(i=i.createRange(),i.setStart(b.node,b.offset),n.removeAllRanges(),S>m?(n.addRange(i),n.extend(P.node,P.offset)):(i.setEnd(P.node,P.offset),n.addRange(i)))}}for(i=[],n=u;n=n.parentNode;)n.nodeType===1&&i.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof u.focus=="function"&&u.focus(),u=0;u<i.length;u++)n=i[u],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var zk=d&&"documentMode"in document&&11>=document.documentMode,mo=null,Zu=null,Ii=null,ed=!1;function Ug(n,i,u){var m=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;ed||mo==null||mo!==Te(m)||(m=mo,"selectionStart"in m&&Ju(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),Ii&&Di(Ii,m)||(Ii=m,m=fl(Zu,"onSelect"),0<m.length&&(i=new Wu("onSelect","select",null,i,u),n.push({event:i,listeners:m}),i.target=mo)))}function cl(n,i){var u={};return u[n.toLowerCase()]=i.toLowerCase(),u["Webkit"+n]="webkit"+i,u["Moz"+n]="moz"+i,u}var po={animationend:cl("Animation","AnimationEnd"),animationiteration:cl("Animation","AnimationIteration"),animationstart:cl("Animation","AnimationStart"),transitionend:cl("Transition","TransitionEnd")},td={},Wg={};d&&(Wg=document.createElement("div").style,"AnimationEvent"in window||(delete po.animationend.animation,delete po.animationiteration.animation,delete po.animationstart.animation),"TransitionEvent"in window||delete po.transitionend.transition);function ul(n){if(td[n])return td[n];if(!po[n])return n;var i=po[n],u;for(u in i)if(i.hasOwnProperty(u)&&u in Wg)return td[n]=i[u];return n}var Hg=ul("animationend"),Yg=ul("animationiteration"),Gg=ul("animationstart"),Kg=ul("transitionend"),qg=new Map,Qg="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Un(n,i){qg.set(n,i),l(i,[n])}for(var rd=0;rd<Qg.length;rd++){var nd=Qg[rd],Uk=nd.toLowerCase(),Wk=nd[0].toUpperCase()+nd.slice(1);Un(Uk,"on"+Wk)}Un(Hg,"onAnimationEnd"),Un(Yg,"onAnimationIteration"),Un(Gg,"onAnimationStart"),Un("dblclick","onDoubleClick"),Un("focusin","onFocus"),Un("focusout","onBlur"),Un(Kg,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Li="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Hk=new Set("cancel close invalid load scroll toggle".split(" ").concat(Li));function Xg(n,i,u){var m=n.type||"unknown-event";n.currentTarget=u,US(m,i,void 0,n),n.currentTarget=null}function Jg(n,i){i=(i&4)!==0;for(var u=0;u<n.length;u++){var m=n[u],b=m.event;m=m.listeners;e:{var S=void 0;if(i)for(var P=m.length-1;0<=P;P--){var R=m[P],L=R.instance,Y=R.currentTarget;if(R=R.listener,L!==S&&b.isPropagationStopped())break e;Xg(b,R,Y),S=L}else for(P=0;P<m.length;P++){if(R=m[P],L=R.instance,Y=R.currentTarget,R=R.listener,L!==S&&b.isPropagationStopped())break e;Xg(b,R,Y),S=L}}}if(Ka)throw n=Du,Ka=!1,Du=null,n}function Ye(n,i){var u=i[dd];u===void 0&&(u=i[dd]=new Set);var m=n+"__bubble";u.has(m)||(Zg(i,n,2,!1),u.add(m))}function sd(n,i,u){var m=0;i&&(m|=4),Zg(u,n,m,i)}var dl="_reactListening"+Math.random().toString(36).slice(2);function Oi(n){if(!n[dl]){n[dl]=!0,o.forEach(function(u){u!=="selectionchange"&&(Hk.has(u)||sd(u,!1,n),sd(u,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[dl]||(i[dl]=!0,sd("selectionchange",!1,i))}}function Zg(n,i,u,m){switch(jg(i)){case 1:var b=ok;break;case 4:b=ik;break;default:b=Bu}u=b.bind(null,i,u,n),b=void 0,!Rr||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(b=!0),m?b!==void 0?n.addEventListener(i,u,{capture:!0,passive:b}):n.addEventListener(i,u,!0):b!==void 0?n.addEventListener(i,u,{passive:b}):n.addEventListener(i,u,!1)}function od(n,i,u,m,b){var S=m;if((i&1)===0&&(i&2)===0&&m!==null)e:for(;;){if(m===null)return;var P=m.tag;if(P===3||P===4){var R=m.stateNode.containerInfo;if(R===b||R.nodeType===8&&R.parentNode===b)break;if(P===4)for(P=m.return;P!==null;){var L=P.tag;if((L===3||L===4)&&(L=P.stateNode.containerInfo,L===b||L.nodeType===8&&L.parentNode===b))return;P=P.return}for(;R!==null;){if(P=Ps(R),P===null)return;if(L=P.tag,L===5||L===6){m=S=P;continue e}R=R.parentNode}}m=m.return}Yt(function(){var Y=S,re=bn(u),se=[];e:{var te=qg.get(n);if(te!==void 0){var de=Wu,he=n;switch(n){case"keypress":if(ol(u)===0)break e;case"keydown":case"keyup":de=wk;break;case"focusin":he="focus",de=Gu;break;case"focusout":he="blur",de=Gu;break;case"beforeblur":case"afterblur":de=Gu;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":de=kg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":de=ck;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":de=Sk;break;case Hg:case Yg:case Gg:de=fk;break;case Kg:de=Ck;break;case"scroll":de=ak;break;case"wheel":de=Ek;break;case"copy":case"cut":case"paste":de=mk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":de=Tg}var xe=(i&4)!==0,it=!xe&&n==="scroll",V=xe?te!==null?te+"Capture":null:te;xe=[];for(var O=Y,U;O!==null;){U=O;var ae=U.stateNode;if(U.tag===5&&ae!==null&&(U=ae,V!==null&&(ae=Gt(O,V),ae!=null&&xe.push(Fi(O,ae,U)))),it)break;O=O.return}0<xe.length&&(te=new de(te,he,null,u,re),se.push({event:te,listeners:xe}))}}if((i&7)===0){e:{if(te=n==="mouseover"||n==="pointerover",de=n==="mouseout"||n==="pointerout",te&&u!==Ts&&(he=u.relatedTarget||u.fromElement)&&(Ps(he)||he[wn]))break e;if((de||te)&&(te=re.window===re?re:(te=re.ownerDocument)?te.defaultView||te.parentWindow:window,de?(he=u.relatedTarget||u.toElement,de=Y,he=he?Ps(he):null,he!==null&&(it=Es(he),he!==it||he.tag!==5&&he.tag!==6)&&(he=null)):(de=null,he=Y),de!==he)){if(xe=kg,ae="onMouseLeave",V="onMouseEnter",O="mouse",(n==="pointerout"||n==="pointerover")&&(xe=Tg,ae="onPointerLeave",V="onPointerEnter",O="pointer"),it=de==null?te:yo(de),U=he==null?te:yo(he),te=new xe(ae,O+"leave",de,u,re),te.target=it,te.relatedTarget=U,ae=null,Ps(re)===Y&&(xe=new xe(V,O+"enter",he,u,re),xe.target=U,xe.relatedTarget=it,ae=xe),it=ae,de&&he)t:{for(xe=de,V=he,O=0,U=xe;U;U=go(U))O++;for(U=0,ae=V;ae;ae=go(ae))U++;for(;0<O-U;)xe=go(xe),O--;for(;0<U-O;)V=go(V),U--;for(;O--;){if(xe===V||V!==null&&xe===V.alternate)break t;xe=go(xe),V=go(V)}xe=null}else xe=null;de!==null&&ex(se,te,de,xe,!1),he!==null&&it!==null&&ex(se,it,he,xe,!0)}}e:{if(te=Y?yo(Y):window,de=te.nodeName&&te.nodeName.toLowerCase(),de==="select"||de==="input"&&te.type==="file")var ye=Ik;else if(_g(te))if(Ig)ye=$k;else{ye=Ok;var je=Lk}else(de=te.nodeName)&&de.toLowerCase()==="input"&&(te.type==="checkbox"||te.type==="radio")&&(ye=Fk);if(ye&&(ye=ye(n,Y))){Dg(se,ye,u,re);break e}je&&je(n,te,Y),n==="focusout"&&(je=te._wrapperState)&&je.controlled&&te.type==="number"&&Ut(te,"number",te.value)}switch(je=Y?yo(Y):window,n){case"focusin":(_g(je)||je.contentEditable==="true")&&(mo=je,Zu=Y,Ii=null);break;case"focusout":Ii=Zu=mo=null;break;case"mousedown":ed=!0;break;case"contextmenu":case"mouseup":case"dragend":ed=!1,Ug(se,u,re);break;case"selectionchange":if(zk)break;case"keydown":case"keyup":Ug(se,u,re)}var Ne;if(qu)e:{switch(n){case"compositionstart":var Ee="onCompositionStart";break e;case"compositionend":Ee="onCompositionEnd";break e;case"compositionupdate":Ee="onCompositionUpdate";break e}Ee=void 0}else ho?Rg(n,u)&&(Ee="onCompositionEnd"):n==="keydown"&&u.keyCode===229&&(Ee="onCompositionStart");Ee&&(Eg&&u.locale!=="ko"&&(ho||Ee!=="onCompositionStart"?Ee==="onCompositionEnd"&&ho&&(Ne=Ng()):(zn=re,Uu="value"in zn?zn.value:zn.textContent,ho=!0)),je=fl(Y,Ee),0<je.length&&(Ee=new Cg(Ee,n,null,u,re),se.push({event:Ee,listeners:je}),Ne?Ee.data=Ne:(Ne=Mg(u),Ne!==null&&(Ee.data=Ne)))),(Ne=Ak?Rk(n,u):Mk(n,u))&&(Y=fl(Y,"onBeforeInput"),0<Y.length&&(re=new Cg("onBeforeInput","beforeinput",null,u,re),se.push({event:re,listeners:Y}),re.data=Ne))}Jg(se,i)})}function Fi(n,i,u){return{instance:n,listener:i,currentTarget:u}}function fl(n,i){for(var u=i+"Capture",m=[];n!==null;){var b=n,S=b.stateNode;b.tag===5&&S!==null&&(b=S,S=Gt(n,u),S!=null&&m.unshift(Fi(n,S,b)),S=Gt(n,i),S!=null&&m.push(Fi(n,S,b))),n=n.return}return m}function go(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function ex(n,i,u,m,b){for(var S=i._reactName,P=[];u!==null&&u!==m;){var R=u,L=R.alternate,Y=R.stateNode;if(L!==null&&L===m)break;R.tag===5&&Y!==null&&(R=Y,b?(L=Gt(u,S),L!=null&&P.unshift(Fi(u,L,R))):b||(L=Gt(u,S),L!=null&&P.push(Fi(u,L,R)))),u=u.return}P.length!==0&&n.push({event:i,listeners:P})}var Yk=/\r\n?/g,Gk=/\u0000|\uFFFD/g;function tx(n){return(typeof n=="string"?n:""+n).replace(Yk,`
6`).replace(Gk,"")}function hl(n,i,u){if(i=tx(i),tx(n)!==i&&u)throw Error(r(425))}function ml(){}var id=null,ad=null;function ld(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var cd=typeof setTimeout=="function"?setTimeout:void 0,Kk=typeof clearTimeout=="function"?clearTimeout:void 0,rx=typeof Promise=="function"?Promise:void 0,qk=typeof queueMicrotask=="function"?queueMicrotask:typeof rx<"u"?function(n){return rx.resolve(null).then(n).catch(Qk)}:cd;function Qk(n){setTimeout(function(){throw n})}function ud(n,i){var u=i,m=0;do{var b=u.nextSibling;if(n.removeChild(u),b&&b.nodeType===8)if(u=b.data,u==="/$"){if(m===0){n.removeChild(b),Ei(i);return}m--}else u!=="$"&&u!=="$?"&&u!=="$!"||m++;u=b}while(u);Ei(i)}function Wn(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return n}function nx(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var u=n.data;if(u==="$"||u==="$!"||u==="$?"){if(i===0)return n;i--}else u==="/$"&&i++}n=n.previousSibling}return null}var xo=Math.random().toString(36).slice(2),nn="__reactFiber$"+xo,$i="__reactProps$"+xo,wn="__reactContainer$"+xo,dd="__reactEvents$"+xo,Xk="__reactListeners$"+xo,Jk="__reactHandles$"+xo;function Ps(n){var i=n[nn];if(i)return i;for(var u=n.parentNode;u;){if(i=u[wn]||u[nn]){if(u=i.alternate,i.child!==null||u!==null&&u.child!==null)for(n=nx(n);n!==null;){if(u=n[nn])return u;n=nx(n)}return i}n=u,u=n.parentNode}return null}function Vi(n){return n=n[nn]||n[wn],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function yo(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(r(33))}function pl(n){return n[$i]||null}var fd=[],vo=-1;function Hn(n){return{current:n}}function Ge(n){0>vo||(n.current=fd[vo],fd[vo]=null,vo--)}function He(n,i){vo++,fd[vo]=n.current,n.current=i}var Yn={},Mt=Hn(Yn),Kt=Hn(!1),As=Yn;function bo(n,i){var u=n.type.contextTypes;if(!u)return Yn;var m=n.stateNode;if(m&&m.__reactInternalMemoizedUnmaskedChildContext===i)return m.__reactInternalMemoizedMaskedChildContext;var b={},S;for(S in u)b[S]=i[S];return m&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=i,n.__reactInternalMemoizedMaskedChildContext=b),b}function qt(n){return n=n.childContextTypes,n!=null}function gl(){Ge(Kt),Ge(Mt)}function sx(n,i,u){if(Mt.current!==Yn)throw Error(r(168));He(Mt,i),He(Kt,u)}function ox(n,i,u){var m=n.stateNode;if(i=i.childContextTypes,typeof m.getChildContext!="function")return u;m=m.getChildContext();for(var b in m)if(!(b in i))throw Error(r(108,X(n)||"Unknown",b));return K({},u,m)}function xl(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||Yn,As=Mt.current,He(Mt,n),He(Kt,Kt.current),!0}function ix(n,i,u){var m=n.stateNode;if(!m)throw Error(r(169));u?(n=ox(n,i,As),m.__reactInternalMemoizedMergedChildContext=n,Ge(Kt),Ge(Mt),He(Mt,n)):Ge(Kt),He(Kt,u)}var jn=null,yl=!1,hd=!1;function ax(n){jn===null?jn=[n]:jn.push(n)}function Zk(n){yl=!0,ax(n)}
vendor: 5,495 bytes, line 6
6function Gn(){if(!hd&&jn!==null){hd=!0;var n=0,i=Be;try{var u=jn;for(Be=1;n<u.length;n++){var m=u[n];do m=m(!0);while(m!==null)}jn=null,yl=!1}catch(b){throw jn!==null&&(jn=jn.slice(n+1)),cg(Iu,Gn),b}finally{Be=i,hd=!1}}return null}var wo=[],jo=0,vl=null,bl=0,pr=[],gr=0,Rs=null,Nn=1,Sn="";function Ms(n,i){wo[jo++]=bl,wo[jo++]=vl,vl=n,bl=i}function lx(n,i,u){pr[gr++]=Nn,pr[gr++]=Sn,pr[gr++]=Rs,Rs=n;var m=Nn;n=Sn;var b=32-Mr(m)-1;m&=~(1<<b),u+=1;var S=32-Mr(i)+b;if(30<S){var P=b-b%5;S=(m&(1<<P)-1).toString(32),m>>=P,b-=P,Nn=1<<32-Mr(i)+b|u<<b|m,Sn=S+n}else Nn=1<<S|u<<b|m,Sn=n}function md(n){n.return!==null&&(Ms(n,1),lx(n,1,0))}function pd(n){for(;n===vl;)vl=wo[--jo],wo[jo]=null,bl=wo[--jo],wo[jo]=null;for(;n===Rs;)Rs=pr[--gr],pr[gr]=null,Sn=pr[--gr],pr[gr]=null,Nn=pr[--gr],pr[gr]=null}var ar=null,lr=null,Xe=!1,Dr=null;function cx(n,i){var u=br(5,null,null,0);u.elementType="DELETED",u.stateNode=i,u.return=n,i=n.deletions,i===null?(n.deletions=[u],n.flags|=16):i.push(u)}function ux(n,i){switch(n.tag){case 5:var u=n.type;return i=i.nodeType!==1||u.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(n.stateNode=i,ar=n,lr=Wn(i.firstChild),!0):!1;case 6:return i=n.pendingProps===""||i.nodeType!==3?null:i,i!==null?(n.stateNode=i,ar=n,lr=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(u=Rs!==null?{id:Nn,overflow:Sn}:null,n.memoizedState={dehydrated:i,treeContext:u,retryLane:1073741824},u=br(18,null,null,0),u.stateNode=i,u.return=n,n.child=u,ar=n,lr=null,!0):!1;default:return!1}}function gd(n){return(n.mode&1)!==0&&(n.flags&128)===0}function xd(n){if(Xe){var i=lr;if(i){var u=i;if(!ux(n,i)){if(gd(n))throw Error(r(418));i=Wn(u.nextSibling);var m=ar;i&&ux(n,i)?cx(m,u):(n.flags=n.flags&-4097|2,Xe=!1,ar=n)}}else{if(gd(n))throw Error(r(418));n.flags=n.flags&-4097|2,Xe=!1,ar=n}}}function dx(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;ar=n}function wl(n){if(n!==ar)return!1;if(!Xe)return dx(n),Xe=!0,!1;var i;if((i=n.tag!==3)&&!(i=n.tag!==5)&&(i=n.type,i=i!=="head"&&i!=="body"&&!ld(n.type,n.memoizedProps)),i&&(i=lr)){if(gd(n))throw fx(),Error(r(418));for(;i;)cx(n,i),i=Wn(i.nextSibling)}if(dx(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));e:{for(n=n.nextSibling,i=0;n;){if(n.nodeType===8){var u=n.data;if(u==="/$"){if(i===0){lr=Wn(n.nextSibling);break e}i--}else u!=="$"&&u!=="$!"&&u!=="$?"||i++}n=n.nextSibling}lr=null}}else lr=ar?Wn(n.stateNode.nextSibling):null;return!0}function fx(){for(var n=lr;n;)n=Wn(n.nextSibling)}function No(){lr=ar=null,Xe=!1}function yd(n){Dr===null?Dr=[n]:Dr.push(n)}var eC=A.ReactCurrentBatchConfig;function Bi(n,i,u){if(n=u.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(u._owner){if(u=u._owner,u){if(u.tag!==1)throw Error(r(309));var m=u.stateNode}if(!m)throw Error(r(147,n));var b=m,S=""+n;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===S?i.ref:(i=function(P){var R=b.refs;P===null?delete R[S]:R[S]=P},i._stringRef=S,i)}if(typeof n!="string")throw Error(r(284));if(!u._owner)throw Error(r(290,n))}return n}function jl(n,i){throw n=Object.prototype.toString.call(i),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n))}function hx(n){var i=n._init;return i(n._payload)}function mx(n){function i(V,O){if(n){var U=V.deletions;U===null?(V.deletions=[O],V.flags|=16):U.push(O)}}function u(V,O){if(!n)return null;for(;O!==null;)i(V,O),O=O.sibling;return null}function m(V,O){for(V=new Map;O!==null;)O.key!==null?V.set(O.key,O):V.set(O.index,O),O=O.sibling;return V}function b(V,O){return V=ts(V,O),V.index=0,V.sibling=null,V}function S(V,O,U){return V.index=U,n?(U=V.alternate,U!==null?(U=U.index,U<O?(V.flags|=2,O):U):(V.flags|=2,O)):(V.flags|=1048576,O)}function P(V){return n&&V.alternate===null&&(V.flags|=2),V}function R(V,O,U,ae){return O===null||O.tag!==6?(O=uf(U,V.mode,ae),O.return=V,O):(O=b(O,U),O.return=V,O)}function L(V,O,U,ae){var ye=U.type;return ye===I?re(V,O,U.props.children,ae,U.key):O!==null&&(O.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===Z&&hx(ye)===O.type)?(ae=b(O,U.props),ae.ref=Bi(V,O,U),ae.return=V,ae):(ae=Yl(U.type,U.key,U.props,null,V.mode,ae),ae.ref=Bi(V,O,U),ae.return=V,ae)}function Y(V,O,U,ae){return O===null||O.tag!==4||O.stateNode.containerInfo!==U.containerInfo||O.stateNode.implementation!==U.implementation?(O=df(U,V.mode,ae),O.return=V,O):(O=b(O,U.children||[]),O.return=V,O)}function re(V,O,U,ae,ye){return O===null||O.tag!==7?(O=Vs(U,V.mode,ae,ye),O.return=V,O):(O=b(O,U),O.return=V,O)}function se(V,O,U){if(typeof O=="string"&&O!==""||typeof O=="number")return O=uf(""+O,V.mode,U),O.return=V,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case E:return U=Yl(O.type,O.key,O.props,null,V.mode,U),U.ref=Bi(V,null,O),U.return=V,U;case D:return O=df(O,V.mode,U),O.return=V,O;case Z:var ae=O._init;return se(V,ae(O._payload),U)}if(Rt(O)||W(O))return O=Vs(O,V.mode,U,null),O.return=V,O;jl(V,O)}return null}function te(V,O,U,ae){var ye=O!==null?O.key:null;if(typeof U=="string"&&U!==""||typeof U=="number")return ye!==null?null:R(V,O,""+U,ae);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case E:return U.key===ye?L(V,O,U,ae):null;case D:return U.key===ye?Y(V,O,U,ae):null;case Z:return ye=U._init,te(V,O,ye(U._payload),ae)}if(Rt(U)||W(U))return ye!==null?null:re(V,O,U,ae,null);jl(V,U)}return null}function de(V,O,U,ae,ye){if(typeof ae=="string"&&ae!==""||typeof ae=="number")return V=V.get(U)||null,R(O,V,""+ae,ye);
vendor: 16,804 bytes, line 6
6if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case E:return V=V.get(ae.key===null?U:ae.key)||null,L(O,V,ae,ye);case D:return V=V.get(ae.key===null?U:ae.key)||null,Y(O,V,ae,ye);case Z:var je=ae._init;return de(V,O,U,je(ae._payload),ye)}if(Rt(ae)||W(ae))return V=V.get(U)||null,re(O,V,ae,ye,null);jl(O,ae)}return null}function he(V,O,U,ae){for(var ye=null,je=null,Ne=O,Ee=O=0,bt=null;Ne!==null&&Ee<U.length;Ee++){Ne.index>Ee?(bt=Ne,Ne=null):bt=Ne.sibling;var Fe=te(V,Ne,U[Ee],ae);if(Fe===null){Ne===null&&(Ne=bt);break}n&&Ne&&Fe.alternate===null&&i(V,Ne),O=S(Fe,O,Ee),je===null?ye=Fe:je.sibling=Fe,je=Fe,Ne=bt}if(Ee===U.length)return u(V,Ne),Xe&&Ms(V,Ee),ye;if(Ne===null){for(;Ee<U.length;Ee++)Ne=se(V,U[Ee],ae),Ne!==null&&(O=S(Ne,O,Ee),je===null?ye=Ne:je.sibling=Ne,je=Ne);return Xe&&Ms(V,Ee),ye}for(Ne=m(V,Ne);Ee<U.length;Ee++)bt=de(Ne,V,Ee,U[Ee],ae),bt!==null&&(n&&bt.alternate!==null&&Ne.delete(bt.key===null?Ee:bt.key),O=S(bt,O,Ee),je===null?ye=bt:je.sibling=bt,je=bt);return n&&Ne.forEach(function(rs){return i(V,rs)}),Xe&&Ms(V,Ee),ye}function xe(V,O,U,ae){var ye=W(U);if(typeof ye!="function")throw Error(r(150));if(U=ye.call(U),U==null)throw Error(r(151));for(var je=ye=null,Ne=O,Ee=O=0,bt=null,Fe=U.next();Ne!==null&&!Fe.done;Ee++,Fe=U.next()){Ne.index>Ee?(bt=Ne,Ne=null):bt=Ne.sibling;var rs=te(V,Ne,Fe.value,ae);if(rs===null){Ne===null&&(Ne=bt);break}n&&Ne&&rs.alternate===null&&i(V,Ne),O=S(rs,O,Ee),je===null?ye=rs:je.sibling=rs,je=rs,Ne=bt}if(Fe.done)return u(V,Ne),Xe&&Ms(V,Ee),ye;if(Ne===null){for(;!Fe.done;Ee++,Fe=U.next())Fe=se(V,Fe.value,ae),Fe!==null&&(O=S(Fe,O,Ee),je===null?ye=Fe:je.sibling=Fe,je=Fe);return Xe&&Ms(V,Ee),ye}for(Ne=m(V,Ne);!Fe.done;Ee++,Fe=U.next())Fe=de(Ne,V,Ee,Fe.value,ae),Fe!==null&&(n&&Fe.alternate!==null&&Ne.delete(Fe.key===null?Ee:Fe.key),O=S(Fe,O,Ee),je===null?ye=Fe:je.sibling=Fe,je=Fe);return n&&Ne.forEach(function(_C){return i(V,_C)}),Xe&&Ms(V,Ee),ye}function it(V,O,U,ae){if(typeof U=="object"&&U!==null&&U.type===I&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case E:e:{for(var ye=U.key,je=O;je!==null;){if(je.key===ye){if(ye=U.type,ye===I){if(je.tag===7){u(V,je.sibling),O=b(je,U.props.children),O.return=V,V=O;break e}}else if(je.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===Z&&hx(ye)===je.type){u(V,je.sibling),O=b(je,U.props),O.ref=Bi(V,je,U),O.return=V,V=O;break e}u(V,je);break}else i(V,je);je=je.sibling}U.type===I?(O=Vs(U.props.children,V.mode,ae,U.key),O.return=V,V=O):(ae=Yl(U.type,U.key,U.props,null,V.mode,ae),ae.ref=Bi(V,O,U),ae.return=V,V=ae)}return P(V);case D:e:{for(je=U.key;O!==null;){if(O.key===je)if(O.tag===4&&O.stateNode.containerInfo===U.containerInfo&&O.stateNode.implementation===U.implementation){u(V,O.sibling),O=b(O,U.children||[]),O.return=V,V=O;break e}else{u(V,O);break}else i(V,O);O=O.sibling}O=df(U,V.mode,ae),O.return=V,V=O}return P(V);case Z:return je=U._init,it(V,O,je(U._payload),ae)}if(Rt(U))return he(V,O,U,ae);if(W(U))return xe(V,O,U,ae);jl(V,U)}return typeof U=="string"&&U!==""||typeof U=="number"?(U=""+U,O!==null&&O.tag===6?(u(V,O.sibling),O=b(O,U),O.return=V,V=O):(u(V,O),O=uf(U,V.mode,ae),O.return=V,V=O),P(V)):u(V,O)}return it}var So=mx(!0),px=mx(!1),Nl=Hn(null),Sl=null,ko=null,vd=null;function bd(){vd=ko=Sl=null}function wd(n){var i=Nl.current;Ge(Nl),n._currentValue=i}function jd(n,i,u){for(;n!==null;){var m=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,m!==null&&(m.childLanes|=i)):m!==null&&(m.childLanes&i)!==i&&(m.childLanes|=i),n===u)break;n=n.return}}function Co(n,i){Sl=n,vd=ko=null,n=n.dependencies,n!==null&&n.firstContext!==null&&((n.lanes&i)!==0&&(Qt=!0),n.firstContext=null)}function xr(n){var i=n._currentValue;if(vd!==n)if(n={context:n,memoizedValue:i,next:null},ko===null){if(Sl===null)throw Error(r(308));ko=n,Sl.dependencies={lanes:0,firstContext:n}}else ko=ko.next=n;return i}var _s=null;function Nd(n){_s===null?_s=[n]:_s.push(n)}function gx(n,i,u,m){var b=i.interleaved;return b===null?(u.next=u,Nd(i)):(u.next=b.next,b.next=u),i.interleaved=u,kn(n,m)}function kn(n,i){n.lanes|=i;var u=n.alternate;for(u!==null&&(u.lanes|=i),u=n,n=n.return;n!==null;)n.childLanes|=i,u=n.alternate,u!==null&&(u.childLanes|=i),u=n,n=n.return;return u.tag===3?u.stateNode:null}var Kn=!1;function Sd(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function xx(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function Cn(n,i){return{eventTime:n,lane:i,tag:0,payload:null,callback:null,next:null}}function qn(n,i,u){var m=n.updateQueue;if(m===null)return null;if(m=m.shared,(Oe&2)!==0){var b=m.pending;return b===null?i.next=i:(i.next=b.next,b.next=i),m.pending=i,kn(n,u)}return b=m.interleaved,b===null?(i.next=i,Nd(m)):(i.next=b.next,b.next=i),m.interleaved=i,kn(n,u)}function kl(n,i,u){if(i=i.updateQueue,i!==null&&(i=i.shared,(u&4194240)!==0)){var m=i.lanes;m&=n.pendingLanes,u|=m,i.lanes=u,Fu(n,u)}}function yx(n,i){var u=n.updateQueue,m=n.alternate;if(m!==null&&(m=m.updateQueue,u===m)){var b=null,S=null;if(u=u.firstBaseUpdate,u!==null){do{var P={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};S===null?b=S=P:S=S.next=P,u=u.next}while(u!==null);S===null?b=S=i:S=S.next=i}else b=S=i;u={baseState:m.baseState,firstBaseUpdate:b,lastBaseUpdate:S,shared:m.shared,effects:m.effects},n.updateQueue=u;return}n=u.lastBaseUpdate,n===null?u.firstBaseUpdate=i:n.next=i,u.lastBaseUpdate=i}function Cl(n,i,u,m){var b=n.updateQueue;Kn=!1;var S=b.firstBaseUpdate,P=b.lastBaseUpdate,R=b.shared.pending;if(R!==null){b.shared.pending=null;var L=R,Y=L.next;L.next=null,P===null?S=Y:P.next=Y,P=L;var re=n.alternate;re!==null&&(re=re.updateQueue,R=re.lastBaseUpdate,R!==P&&(R===null?re.firstBaseUpdate=Y:R.next=Y,re.lastBaseUpdate=L))}if(S!==null){var se=b.baseState;P=0,re=Y=L=null,R=S;do{var te=R.lane,de=R.eventTime;if((m&te)===te){re!==null&&(re=re.next={eventTime:de,lane:0,tag:R.tag,payload:R.payload,callback:R.callback,next:null});e:{var he=n,xe=R;switch(te=i,de=u,xe.tag){case 1:if(he=xe.payload,typeof he=="function"){se=he.call(de,se,te);break e}se=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=xe.payload,te=typeof he=="function"?he.call(de,se,te):he,te==null)break e;se=K({},se,te);break e;case 2:Kn=!0}}R.callback!==null&&R.lane!==0&&(n.flags|=64,te=b.effects,te===null?b.effects=[R]:te.push(R))}else de={eventTime:de,lane:te,tag:R.tag,payload:R.payload,callback:R.callback,next:null},re===null?(Y=re=de,L=se):re=re.next=de,P|=te;if(R=R.next,R===null){if(R=b.shared.pending,R===null)break;te=R,R=te.next,te.next=null,b.lastBaseUpdate=te,b.shared.pending=null}}while(!0);if(re===null&&(L=se),b.baseState=L,b.firstBaseUpdate=Y,b.lastBaseUpdate=re,i=b.shared.interleaved,i!==null){b=i;do P|=b.lane,b=b.next;while(b!==i)}else S===null&&(b.shared.lanes=0);Ls|=P,n.lanes=P,n.memoizedState=se}}function vx(n,i,u){if(n=i.effects,i.effects=null,n!==null)for(i=0;i<n.length;i++){var m=n[i],b=m.callback;if(b!==null){if(m.callback=null,m=u,typeof b!="function")throw Error(r(191,b));b.call(m)}}}var zi={},sn=Hn(zi),Ui=Hn(zi),Wi=Hn(zi);function Ds(n){if(n===zi)throw Error(r(174));return n}function kd(n,i){switch(He(Wi,i),He(Ui,n),He(sn,zi),n=i.nodeType,n){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:sr(null,"");break;default:n=n===8?i.parentNode:i,i=n.namespaceURI||null,n=n.tagName,i=sr(i,n)}Ge(sn),He(sn,i)}function To(){Ge(sn),Ge(Ui),Ge(Wi)}function bx(n){Ds(Wi.current);var i=Ds(sn.current),u=sr(i,n.type);i!==u&&(He(Ui,n),He(sn,u))}function Cd(n){Ui.current===n&&(Ge(sn),Ge(Ui))}var Ze=Hn(0);function Tl(n){for(var i=n;i!==null;){if(i.tag===13){var u=i.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||u.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Td=[];function Ed(){for(var n=0;n<Td.length;n++)Td[n]._workInProgressVersionPrimary=null;Td.length=0}var El=A.ReactCurrentDispatcher,Pd=A.ReactCurrentBatchConfig,Is=0,et=null,mt=null,yt=null,Pl=!1,Hi=!1,Yi=0,tC=0;function _t(){throw Error(r(321))}function Ad(n,i){if(i===null)return!1;for(var u=0;u<i.length&&u<n.length;u++)if(!_r(n[u],i[u]))return!1;return!0}function Rd(n,i,u,m,b,S){if(Is=S,et=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,El.current=n===null||n.memoizedState===null?oC:iC,n=u(m,b),Hi){S=0;do{if(Hi=!1,Yi=0,25<=S)throw Error(r(301));S+=1,yt=mt=null,i.updateQueue=null,El.current=aC,n=u(m,b)}while(Hi)}if(El.current=Ml,i=mt!==null&&mt.next!==null,Is=0,yt=mt=et=null,Pl=!1,i)throw Error(r(300));return n}function Md(){var n=Yi!==0;return Yi=0,n}function on(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yt===null?et.memoizedState=yt=n:yt=yt.next=n,yt}function yr(){if(mt===null){var n=et.alternate;n=n!==null?n.memoizedState:null}else n=mt.next;var i=yt===null?et.memoizedState:yt.next;if(i!==null)yt=i,mt=n;else{if(n===null)throw Error(r(310));mt=n,n={memoizedState:mt.memoizedState,baseState:mt.baseState,baseQueue:mt.baseQueue,queue:mt.queue,next:null},yt===null?et.memoizedState=yt=n:yt=yt.next=n}return yt}function Gi(n,i){return typeof i=="function"?i(n):i}function _d(n){var i=yr(),u=i.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=n;var m=mt,b=m.baseQueue,S=u.pending;if(S!==null){if(b!==null){var P=b.next;b.next=S.next,S.next=P}m.baseQueue=b=S,u.pending=null}if(b!==null){S=b.next,m=m.baseState;var R=P=null,L=null,Y=S;do{var re=Y.lane;if((Is&re)===re)L!==null&&(L=L.next={lane:0,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),m=Y.hasEagerState?Y.eagerState:n(m,Y.action);else{var se={lane:re,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null};L===null?(R=L=se,P=m):L=L.next=se,et.lanes|=re,Ls|=re}Y=Y.next}while(Y!==null&&Y!==S);L===null?P=m:L.next=R,_r(m,i.memoizedState)||(Qt=!0),i.memoizedState=m,i.baseState=P,i.baseQueue=L,u.lastRenderedState=m}if(n=u.interleaved,n!==null){b=n;do S=b.lane,et.lanes|=S,Ls|=S,b=b.next;while(b!==n)}else b===null&&(u.lanes=0);return[i.memoizedState,u.dispatch]}function Dd(n){var i=yr(),u=i.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=n;var m=u.dispatch,b=u.pending,S=i.memoizedState;if(b!==null){u.pending=null;var P=b=b.next;do S=n(S,P.action),P=P.next;while(P!==b);_r(S,i.memoizedState)||(Qt=!0),i.memoizedState=S,i.baseQueue===null&&(i.baseState=S),u.lastRenderedState=S}return[S,m]}function wx(){}function jx(n,i){var u=et,m=yr(),b=i(),S=!_r(m.memoizedState,b);if(S&&(m.memoizedState=b,Qt=!0),m=m.queue,Id(kx.bind(null,u,m,n),[n]),m.getSnapshot!==i||S||yt!==null&&yt.memoizedState.tag&1){if(u.flags|=2048,Ki(9,Sx.bind(null,u,m,b,i),void 0,null),vt===null)throw Error(r(349));(Is&30)!==0||Nx(u,i,b)}return b}function Nx(n,i,u){n.flags|=16384,n={getSnapshot:i,value:u},i=et.updateQueue,i===null?(i={lastEffect:null,stores:null},et.updateQueue=i,i.stores=[n]):(u=i.stores,u===null?i.stores=[n]:u.push(n))}function Sx(n,i,u,m){i.value=u,i.getSnapshot=m,Cx(i)&&Tx(n)}function kx(n,i,u){return u(function(){Cx(i)&&Tx(n)})}function Cx(n){var i=n.getSnapshot;n=n.value;try{var u=i();return!_r(n,u)}catch{return!0}}function Tx(n){var i=kn(n,1);i!==null&&Fr(i,n,1,-1)}function Ex(n){var i=on();return typeof n=="function"&&(n=n()),i.memoizedState=i.baseState=n,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Gi,lastRenderedState:n},i.queue=n,n=n.dispatch=sC.bind(null,et,n),[i.memoizedState,n]}function Ki(n,i,u,m){return n={tag:n,create:i,destroy:u,deps:m,next:null},i=et.updateQueue,i===null?(i={lastEffect:null,stores:null},et.updateQueue=i,i.lastEffect=n.next=n):(u=i.lastEffect,u===null?i.lastEffect=n.next=n:(m=u.next,u.next=n,n.next=m,i.lastEffect=n)),n}function Px(){return yr().memoizedState}function Al(n,i,u,m){var b=on();et.flags|=n,b.memoizedState=Ki(1|i,u,void 0,m===void 0?null:m)}function Rl(n,i,u,m){var b=yr();m=m===void 0?null:m;var S=void 0;if(mt!==null){var P=mt.memoizedState;if(S=P.destroy,m!==null&&Ad(m,P.deps)){b.memoizedState=Ki(i,u,S,m);return}}et.flags|=n,b.memoizedState=Ki(1|i,u,S,m)}function Ax(n,i){return Al(8390656,8,n,i)}function Id(n,i){return Rl(2048,8,n,i)}function Rx(n,i){return Rl(4,2,n,i)}function Mx(n,i){return Rl(4,4,n,i)}function _x(n,i){if(typeof i=="function")return n=n(),i(n),function(){i(null)};if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function Dx(n,i,u){return u=u!=null?u.concat([n]):null,Rl(4,4,_x.bind(null,i,n),u)}function Ld(){}function Ix(n,i){var u=yr();i=i===void 0?null:i;var m=u.memoizedState;return m!==null&&i!==null&&Ad(i,m[1])?m[0]:(u.memoizedState=[n,i],n)}function Lx(n,i){var u=yr();i=i===void 0?null:i;var m=u.memoizedState;return m!==null&&i!==null&&Ad(i,m[1])?m[0]:(n=n(),u.memoizedState=[n,i],n)}function Ox(n,i,u){return(Is&21)===0?(n.baseState&&(n.baseState=!1,Qt=!0),n.memoizedState=u):(_r(u,i)||(u=hg(),et.lanes|=u,Ls|=u,n.baseState=!0),i)}function rC(n,i){var u=Be;Be=u!==0&&4>u?u:4,n(!0);var m=Pd.transition;Pd.transition={};try{n(!1),i()}finally{Be=u,Pd.transition=m}}function Fx(){return yr().memoizedState}function nC(n,i,u){var m=Zn(n);if(u={lane:m,action:u,hasEagerState:!1,eagerState:null,next:null},$x(n))Vx(i,u);else if(u=gx(n,i,u,m),u!==null){var b=Ft();Fr(u,n,m,b),Bx(u,i,m)}}function sC(n,i,u){var m=Zn(n),b={lane:m,action:u,hasEagerState:!1,eagerState:null,next:null};if($x(n))Vx(i,b);else{var S=n.alternate;if(n.lanes===0&&(S===null||S.lanes===0)&&(S=i.lastRenderedReducer,S!==null))try{var P=i.lastRenderedState,R=S(P,u);if(b.hasEagerState=!0,b.eagerState=R,_r(R,P)){var L=i.interleaved;L===null?(b.next=b,Nd(i)):(b.next=L.next,L.next=b),i.interleaved=b;return}}catch{}u=gx(n,i,b,m),u!==null&&(b=Ft(),Fr(u,n,m,b),Bx(u,i,m))}}function $x(n){var i=n.alternate;return n===et||i!==null&&i===et}function Vx(n,i){Hi=Pl=!0;var u=n.pending;u===null?i.next=i:(i.next=u.next,u.next=i),n.pending=i}function Bx(n,i,u){if((u&4194240)!==0){var m=i.lanes;m&=n.pendingLanes,u|=m,i.lanes=u,Fu(n,u)}}var Ml={readContext:xr,useCallback:_t,useContext:_t,useEffect:_t,useImperativeHandle:_t,useInsertionEffect:_t,useLayoutEffect:_t,useMemo:_t,useReducer:_t,useRef:_t,useState:_t,useDebugValue:_t,useDeferredValue:_t,useTransition:_t,useMutableSource:_t,useSyncExternalStore:_t,useId:_t,unstable_isNewReconciler:!1},oC={readContext:xr,useCallback:function(n,i){return on().memoizedState=[n,i===void 0?null:i],n},useContext:xr,useEffect:Ax,useImperativeHandle:function(n,i,u){return u=u!=null?u.concat([n]):null,Al(4194308,4,_x.bind(null,i,n),u)},useLayoutEffect:function(n,i){return Al(4194308,4,n,i)},useInsertionEffect:function(n,i){return Al(4,2,n,i)},useMemo:function(n,i){var u=on();return i=i===void 0?null:i,n=n(),u.memoizedState=[n,i],n},useReducer:function(n,i,u){var m=on();return i=u!==void 0?u(i):i,m.memoizedState=m.baseState=i,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:i},m.queue=n,n=n.dispatch=nC.bind(null,et,n),[m.memoizedState,n]},useRef:function(n){var i=on();return n={current:n},i.memoizedState=n},useState:Ex,useDebugValue:Ld,useDeferredValue:function(n){return on().memoizedState=n},useTransition:function(){var n=Ex(!1),i=n[0];return n=rC.bind(null,n[1]),on().memoizedState=n,[i,n]},useMutableSource:function(){},useSyncExternalStore:function(n,i,u){var m=et,b=on();if(Xe){if(u===void 0)throw Error(r(407));u=u()}else{if(u=i(),vt===null)throw Error(r(349));(Is&30)!==0||Nx(m,i,u)}b.memoizedState=u;var S={value:u,getSnapshot:i};return b.queue=S,Ax(kx.bind(null,m,S,n),[n]),m.flags|=2048,Ki(9,Sx.bind(null,m,S,u,i),void 0,null),u},useId:function(){var n=on(),i=vt.identifierPrefix;if(Xe){var u=Sn,m=Nn;u=(m&~(1<<32-Mr(m)-1)).toString(32)+u,i=":"+i+"R"+u,u=Yi++,0<u&&(i+="H"+u.toString(32)),i+=":"}else u=tC++,i=":"+i+"r"+u.toString(32)+":";return n.memoizedState=i},unstable_isNewReconciler:!1},iC={readContext:xr,useCallback:Ix,useContext:xr,useEffect:Id,useImperativeHandle:Dx,useInsertionEffect:Rx,useLayoutEffect:Mx,useMemo:Lx,useReducer:_d,useRef:Px,useState:function(){return _d(Gi)},useDebugValue:Ld,useDeferredValue:function(n){var i=yr();return Ox(i,mt.memoizedState,n)},useTransition:function(){var n=_d(Gi)[0],i=yr().memoizedState;return[n,i]},useMutableSource:wx,useSyncExternalStore:jx,useId:Fx,unstable_isNewReconciler:!1},aC={readContext:xr,useCallback:Ix,useContext:xr,useEffect:Id,useImperativeHandle:Dx,useInsertionEffect:Rx,useLayoutEffect:Mx,useMemo:Lx,useReducer:Dd,useRef
vendor: 4,084 bytes, lines 6-8
6:Px,useState:function(){return Dd(Gi)},useDebugValue:Ld,useDeferredValue:function(n){var i=yr();return mt===null?i.memoizedState=n:Ox(i,mt.memoizedState,n)},useTransition:function(){var n=Dd(Gi)[0],i=yr().memoizedState;return[n,i]},useMutableSource:wx,useSyncExternalStore:jx,useId:Fx,unstable_isNewReconciler:!1};function Ir(n,i){if(n&&n.defaultProps){i=K({},i),n=n.defaultProps;for(var u in n)i[u]===void 0&&(i[u]=n[u]);return i}return i}function Od(n,i,u,m){i=n.memoizedState,u=u(m,i),u=u==null?i:K({},i,u),n.memoizedState=u,n.lanes===0&&(n.updateQueue.baseState=u)}var _l={isMounted:function(n){return(n=n._reactInternals)?Es(n)===n:!1},enqueueSetState:function(n,i,u){n=n._reactInternals;var m=Ft(),b=Zn(n),S=Cn(m,b);S.payload=i,u!=null&&(S.callback=u),i=qn(n,S,b),i!==null&&(Fr(i,n,b,m),kl(i,n,b))},enqueueReplaceState:function(n,i,u){n=n._reactInternals;var m=Ft(),b=Zn(n),S=Cn(m,b);S.tag=1,S.payload=i,u!=null&&(S.callback=u),i=qn(n,S,b),i!==null&&(Fr(i,n,b,m),kl(i,n,b))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var u=Ft(),m=Zn(n),b=Cn(u,m);b.tag=2,i!=null&&(b.callback=i),i=qn(n,b,m),i!==null&&(Fr(i,n,m,u),kl(i,n,m))}};function zx(n,i,u,m,b,S,P){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(m,S,P):i.prototype&&i.prototype.isPureReactComponent?!Di(u,m)||!Di(b,S):!0}function Ux(n,i,u){var m=!1,b=Yn,S=i.contextType;return typeof S=="object"&&S!==null?S=xr(S):(b=qt(i)?As:Mt.current,m=i.contextTypes,S=(m=m!=null)?bo(n,b):Yn),i=new i(u,S),n.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=_l,n.stateNode=i,i._reactInternals=n,m&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=b,n.__reactInternalMemoizedMaskedChildContext=S),i}function Wx(n,i,u,m){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(u,m),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(u,m),i.state!==n&&_l.enqueueReplaceState(i,i.state,null)}function Fd(n,i,u,m){var b=n.stateNode;b.props=u,b.state=n.memoizedState,b.refs={},Sd(n);var S=i.contextType;typeof S=="object"&&S!==null?b.context=xr(S):(S=qt(i)?As:Mt.current,b.context=bo(n,S)),b.state=n.memoizedState,S=i.getDerivedStateFromProps,typeof S=="function"&&(Od(n,i,S,u),b.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(i=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),i!==b.state&&_l.enqueueReplaceState(b,b.state,null),Cl(n,u,b,m),b.state=n.memoizedState),typeof b.componentDidMount=="function"&&(n.flags|=4194308)}function Eo(n,i){try{var u="",m=i;do u+=pe(m),m=m.return;while(m);var b=u}catch(S){b=`
7Error generating stack: `+S.message+`
8`+S.stack}return{value:n,source:i,stack:b,digest:null}}function $d(n,i,u){return{value:n,source:null,stack:u??null,digest:i??null}}function Vd(n,i){try{console.error(i.value)}catch(u){setTimeout(function(){throw u})}}var lC=typeof WeakMap=="function"?WeakMap:Map;function Hx(n,i,u){u=Cn(-1,u),u.tag=3,u.payload={element:null};var m=i.value;return u.callback=function(){Vl||(Vl=!0,tf=m),Vd(n,i)},u}function Yx(n,i,u){u=Cn(-1,u),u.tag=3;var m=n.type.getDerivedStateFromError;if(typeof m=="function"){var b=i.value;u.payload=function(){return m(b)},u.callback=function(){Vd(n,i)}}var S=n.stateNode;return S!==null&&typeof S.componentDidCatch=="function"&&(u.callback=function(){Vd(n,i),typeof m!="function"&&(Xn===null?Xn=new Set([this]):Xn.add(this));var P=i.stack;this.componentDidCatch(i.value,{componentStack:P!==null?P:""})}),u}function Gx(n,i,u){var m=n.pingCache;if(m===null){m=n.pingCache=new lC;var b=new Set;m.set(i,b)}else b=m.get(i),b===void 0&&(b=new Set,m.set(i,b));b.has(u)||(b.add(u),n=jC.bind(null,n,i,u),i.then(n,n))}function Kx(n){do{var i;if((i=n.tag===13)&&(i=n.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return n;n=n.return}while(n!==null);return null}
vendor: 12,561 bytes, line 8
8function qx(n,i,u,m,b){return(n.mode&1)===0?(n===i?n.flags|=65536:(n.flags|=128,u.flags|=131072,u.flags&=-52805,u.tag===1&&(u.alternate===null?u.tag=17:(i=Cn(-1,1),i.tag=2,qn(u,i,1))),u.lanes|=1),n):(n.flags|=65536,n.lanes=b,n)}var cC=A.ReactCurrentOwner,Qt=!1;function Ot(n,i,u,m){i.child=n===null?px(i,null,u,m):So(i,n.child,u,m)}function Qx(n,i,u,m,b){u=u.render;var S=i.ref;return Co(i,b),m=Rd(n,i,u,m,S,b),u=Md(),n!==null&&!Qt?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~b,Tn(n,i,b)):(Xe&&u&&md(i),i.flags|=1,Ot(n,i,m,b),i.child)}function Xx(n,i,u,m,b){if(n===null){var S=u.type;return typeof S=="function"&&!cf(S)&&S.defaultProps===void 0&&u.compare===null&&u.defaultProps===void 0?(i.tag=15,i.type=S,Jx(n,i,S,m,b)):(n=Yl(u.type,null,m,i,i.mode,b),n.ref=i.ref,n.return=i,i.child=n)}if(S=n.child,(n.lanes&b)===0){var P=S.memoizedProps;if(u=u.compare,u=u!==null?u:Di,u(P,m)&&n.ref===i.ref)return Tn(n,i,b)}return i.flags|=1,n=ts(S,m),n.ref=i.ref,n.return=i,i.child=n}function Jx(n,i,u,m,b){if(n!==null){var S=n.memoizedProps;if(Di(S,m)&&n.ref===i.ref)if(Qt=!1,i.pendingProps=m=S,(n.lanes&b)!==0)(n.flags&131072)!==0&&(Qt=!0);else return i.lanes=n.lanes,Tn(n,i,b)}return Bd(n,i,u,m,b)}function Zx(n,i,u){var m=i.pendingProps,b=m.children,S=n!==null?n.memoizedState:null;if(m.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},He(Ao,cr),cr|=u;else{if((u&1073741824)===0)return n=S!==null?S.baseLanes|u:u,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:n,cachePool:null,transitions:null},i.updateQueue=null,He(Ao,cr),cr|=n,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},m=S!==null?S.baseLanes:u,He(Ao,cr),cr|=m}else S!==null?(m=S.baseLanes|u,i.memoizedState=null):m=u,He(Ao,cr),cr|=m;return Ot(n,i,b,u),i.child}function ey(n,i){var u=i.ref;(n===null&&u!==null||n!==null&&n.ref!==u)&&(i.flags|=512,i.flags|=2097152)}function Bd(n,i,u,m,b){var S=qt(u)?As:Mt.current;return S=bo(i,S),Co(i,b),u=Rd(n,i,u,m,S,b),m=Md(),n!==null&&!Qt?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~b,Tn(n,i,b)):(Xe&&m&&md(i),i.flags|=1,Ot(n,i,u,b),i.child)}function ty(n,i,u,m,b){if(qt(u)){var S=!0;xl(i)}else S=!1;if(Co(i,b),i.stateNode===null)Il(n,i),Ux(i,u,m),Fd(i,u,m,b),m=!0;else if(n===null){var P=i.stateNode,R=i.memoizedProps;P.props=R;var L=P.context,Y=u.contextType;typeof Y=="object"&&Y!==null?Y=xr(Y):(Y=qt(u)?As:Mt.current,Y=bo(i,Y));var re=u.getDerivedStateFromProps,se=typeof re=="function"||typeof P.getSnapshotBeforeUpdate=="function";se||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(R!==m||L!==Y)&&Wx(i,P,m,Y),Kn=!1;var te=i.memoizedState;P.state=te,Cl(i,m,P,b),L=i.memoizedState,R!==m||te!==L||Kt.current||Kn?(typeof re=="function"&&(Od(i,u,re,m),L=i.memoizedState),(R=Kn||zx(i,u,R,m,te,L,Y))?(se||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount()),typeof P.componentDidMount=="function"&&(i.flags|=4194308)):(typeof P.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=m,i.memoizedState=L),P.props=m,P.state=L,P.context=Y,m=R):(typeof P.componentDidMount=="function"&&(i.flags|=4194308),m=!1)}else{P=i.stateNode,xx(n,i),R=i.memoizedProps,Y=i.type===i.elementType?R:Ir(i.type,R),P.props=Y,se=i.pendingProps,te=P.context,L=u.contextType,typeof L=="object"&&L!==null?L=xr(L):(L=qt(u)?As:Mt.current,L=bo(i,L));var de=u.getDerivedStateFromProps;(re=typeof de=="function"||typeof P.getSnapshotBeforeUpdate=="function")||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(R!==se||te!==L)&&Wx(i,P,m,L),Kn=!1,te=i.memoizedState,P.state=te,Cl(i,m,P,b);var he=i.memoizedState;R!==se||te!==he||Kt.current||Kn?(typeof de=="function"&&(Od(i,u,de,m),he=i.memoizedState),(Y=Kn||zx(i,u,Y,m,te,he,L)||!1)?(re||typeof P.UNSAFE_componentWillUpdate!="function"&&typeof P.componentWillUpdate!="function"||(typeof P.componentWillUpdate=="function"&&P.componentWillUpdate(m,he,L),typeof P.UNSAFE_componentWillUpdate=="function"&&P.UNSAFE_componentWillUpdate(m,he,L)),typeof P.componentDidUpdate=="function"&&(i.flags|=4),typeof P.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof P.componentDidUpdate!="function"||R===n.memoizedProps&&te===n.memoizedState||(i.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||R===n.memoizedProps&&te===n.memoizedState||(i.flags|=1024),i.memoizedProps=m,i.memoizedState=he),P.props=m,P.state=he,P.context=L,m=Y):(typeof P.componentDidUpdate!="function"||R===n.memoizedProps&&te===n.memoizedState||(i.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||R===n.memoizedProps&&te===n.memoizedState||(i.flags|=1024),m=!1)}return zd(n,i,u,m,S,b)}function zd(n,i,u,m,b,S){ey(n,i);var P=(i.flags&128)!==0;if(!m&&!P)return b&&ix(i,u,!1),Tn(n,i,S);m=i.stateNode,cC.current=i;var R=P&&typeof u.getDerivedStateFromError!="function"?null:m.render();return i.flags|=1,n!==null&&P?(i.child=So(i,n.child,null,S),i.child=So(i,null,R,S)):Ot(n,i,R,S),i.memoizedState=m.state,b&&ix(i,u,!0),i.child}function ry(n){var i=n.stateNode;i.pendingContext?sx(n,i.pendingContext,i.pendingContext!==i.context):i.context&&sx(n,i.context,!1),kd(n,i.containerInfo)}function ny(n,i,u,m,b){return No(),yd(b),i.flags|=256,Ot(n,i,u,m),i.child}var Ud={dehydrated:null,treeContext:null,retryLane:0};function Wd(n){return{baseLanes:n,cachePool:null,transitions:null}}function sy(n,i,u){var m=i.pendingProps,b=Ze.current,S=!1,P=(i.flags&128)!==0,R;if((R=P)||(R=n!==null&&n.memoizedState===null?!1:(b&2)!==0),R?(S=!0,i.flags&=-129):(n===null||n.memoizedState!==null)&&(b|=1),He(Ze,b&1),n===null)return xd(i),n=i.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?((i.mode&1)===0?i.lanes=1:n.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(P=m.children,n=m.fallback,S?(m=i.mode,S=i.child,P={mode:"hidden",children:P},(m&1)===0&&S!==null?(S.childLanes=0,S.pendingProps=P):S=Gl(P,m,0,null),n=Vs(n,m,u,null),S.return=i,n.return=i,S.sibling=n,i.child=S,i.child.memoizedState=Wd(u),i.memoizedState=Ud,n):Hd(i,P));if(b=n.memoizedState,b!==null&&(R=b.dehydrated,R!==null))return uC(n,i,P,m,R,b,u);if(S){S=m.fallback,P=i.mode,b=n.child,R=b.sibling;var L={mode:"hidden",children:m.children};return(P&1)===0&&i.child!==b?(m=i.child,m.childLanes=0,m.pendingProps=L,i.deletions=null):(m=ts(b,L),m.subtreeFlags=b.subtreeFlags&14680064),R!==null?S=ts(R,S):(S=Vs(S,P,u,null),S.flags|=2),S.return=i,m.return=i,m.sibling=S,i.child=m,m=S,S=i.child,P=n.child.memoizedState,P=P===null?Wd(u):{baseLanes:P.baseLanes|u,cachePool:null,transitions:P.transitions},S.memoizedState=P,S.childLanes=n.childLanes&~u,i.memoizedState=Ud,m}return S=n.child,n=S.sibling,m=ts(S,{mode:"visible",children:m.children}),(i.mode&1)===0&&(m.lanes=u),m.return=i,m.sibling=null,n!==null&&(u=i.deletions,u===null?(i.deletions=[n],i.flags|=16):u.push(n)),i.child=m,i.memoizedState=null,m}function Hd(n,i){return i=Gl({mode:"visible",children:i},n.mode,0,null),i.return=n,n.child=i}function Dl(n,i,u,m){return m!==null&&yd(m),So(i,n.child,null,u),n=Hd(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function uC(n,i,u,m,b,S,P){if(u)return i.flags&256?(i.flags&=-257,m=$d(Error(r(422))),Dl(n,i,P,m)):i.memoizedState!==null?(i.child=n.child,i.flags|=128,null):(S=m.fallback,b=i.mode,m=Gl({mode:"visible",children:m.children},b,0,null),S=Vs(S,b,P,null),S.flags|=2,m.return=i,S.return=i,m.sibling=S,i.child=m,(i.mode&1)!==0&&So(i,n.child,null,P),i.child.memoizedState=Wd(P),i.memoizedState=Ud,S);if((i.mode&1)===0)return Dl(n,i,P,null);if(b.data==="$!"){if(m=b.nextSibling&&b.nextSibling.dataset,m)var R=m.dgst;return m=R,S=Error(r(419)),m=$d(S,m,void 0),Dl(n,i,P,m)}if(R=(P&n.childLanes)!==0,Qt||R){if(m=vt,m!==null){switch(P&-P){case 4:b=2;break;case 16:b=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:b=32;break;case 536870912:b=268435456;break;default:b=0}b=(b&(m.suspendedLanes|P))!==0?0:b,b!==0&&b!==S.retryLane&&(S.retryLane=b,kn(n,b),Fr(m,n,b,-1))}return lf(),m=$d(Error(r(421))),Dl(n,i,P,m)}return b.data==="$?"?(i.flags|=128,i.child=n.child,i=NC.bind(null,n),b._reactRetry=i,null):(n=S.treeContext,lr=Wn(b.nextSibling),ar=i,Xe=!0,Dr=null,n!==null&&(pr[gr++]=Nn,pr[gr++]=Sn,pr[gr++]=Rs,Nn=n.id,Sn=n.overflow,Rs=i),i=Hd(i,m.children),i.flags|=4096,i)}function oy(n,i,u){n.lanes|=i;var m=n.alternate;m!==null&&(m.lanes|=i),jd(n.return,i,u)}function Yd(n,i,u,m,b){var S=n.memoizedState;S===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:m,tail:u,tailMode:b}:(S.isBackwards=i,S.rendering=null,S.renderingStartTime=0,S.last=m,S.tail=u,S.tailMode=b)}function iy(n,i,u){var m=i.pendingProps,b=m.revealOrder,S=m.tail;if(Ot(n,i,m.children,u),m=Ze.current,(m&2)!==0)m=m&1|2,i.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&oy(n,u,i);else if(n.tag===19)oy(n,u,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}m&=1}if(He(Ze,m),(i.mode&1)===0)i.memoizedState=null;else switch(b){case"forwards":for(u=i.child,b=null;u!==null;)n=u.alternate,n!==null&&Tl(n)===null&&(b=u),u=u.sibling;u=b,u===null?(b=i.child,i.child=null):(b=u.sibling,u.sibling=null),Yd(i,!1,b,u,S);break;case"backwards":for(u=null,b=i.child,i.child=null;b!==null;){if(n=b.alternate,n!==null&&Tl(n)===null){i.child=b;break}n=b.sibling,b.sibling=u,u=b,b=n}Yd(i,!0,u,null,S);break;case"together":Yd(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Il(n,i){(i.mode&1)===0&&n!==null&&(n.alternate=null,i.alternate=null,i.flags|=2)}function Tn(n,i,u){if(n!==null&&(i.dependencies=n.dependencies),Ls|=i.lanes,(u&i.childLanes)===0)return null;if(n!==null&&i.child!==n.child)throw Error(r(153));if(i.child!==null){for(n=i.child,u=ts(n,n.pendingProps),i.child=u,u.return=i;n.sibling!==null;)n=n.sibling,u=u.sibling=ts(n,n.pendingProps),u.return=i;u.sibling=null}return i.child}function dC(n,i,u){switch(i.tag){case 3:ry(i),No();break;case 5:bx(i);break;case 1:qt(i.type)&&xl(i);break;case 4:kd(i,i.stateNode.containerInfo);break;case 10:var m=i.type._context,b=i.memoizedProps.value;He(Nl,m._currentValue),m._currentValue=b;break;case 13:if(m=i.memoizedState,m!==null)return m.dehydrated!==null?(He(Ze,Ze.current&1),i.flags|=128,null):(u&i.child.childLanes)!==0?sy(n,i,u):(He(Ze,Ze.current&1),n=Tn(n,i,u),n!==null?n.sibling:null);He(Ze,Ze.current&1);break;case 19:if(m=(u&i.childLanes)!==0,(n.flags&128)!==0){if(m)return iy(n,i,u);i.flags|=128}if(b=i.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),He(Ze,Ze.current),m)break;return null;case 22:case 23:return i.lanes=0,Zx(n,i,u)}return Tn(n,i,u)}var ay,Gd,ly,cy;ay=function(n,i){for(var u=i.child;u!==null;){if(u.tag===5||u.tag===6)n.appendChild(u.stateNode);else if(u.tag!==4&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===i)break;for(;u.sibling===null;){if(u.return===null||u.return===i)return;u=u.return}u.sibling.return=u.return,u=u.sibling}},Gd=function(){},ly=function(n,i,u,m){var b=n.memoizedProps;if(b!==m){n=i.stateNode,Ds(sn.current);var S=null;switch(u){case"input":b=Ie(n,b),m=Ie(n,m),S=[];break;case"select":b=K({},b,{value:void 0}),m=K({},m,{value:void 0}),S=[];break;case"textarea":b=en(n,b),m=en(n,m),S=[];break;default:typeof b.onClick!="function"&&typeof m.onClick=="function"&&(n.onclick=ml)}mr(u,m);var P;u=null;for(Y in b)if(!m.hasOwnProperty(Y)&&b.hasOwnProperty(Y)&&b[Y]!=null)if(Y==="style"){var R=b[Y];for(P in R)R.hasOwnProperty(P)&&(u||(u={}),u[P]="")}else Y!=="dangerouslySetInnerHTML"&&Y!=="children"&&Y!=="suppressContentEditableWarning"&&Y!=="suppressHydrationWarning"&&Y!=="autoFocus"&&(a.hasOwnProperty(Y)?S||(S=[]):(S=S||[]).push(Y,null));for(Y in m){var L=m[Y];if(R=b?.[Y],m.hasOwnProperty(Y)&&L!==R&&(L!=null||R!=null))if(Y==="style")if(R){for(P in R)!R.hasOwnProperty(P)||L&&L.hasOwnProperty(P)||(u||(u={}),u[P]="");for(P in L)L.hasOwnProperty(P)&&R[P]!==L[P]&&(u||(u={}),u[P]=L[P])}else u||(S||(S=[]),S.push(Y,u)),u=L;else Y==="dangerouslySetInnerHTML"?(L=L?L.__html:void 0,R=R?R.__html:void 0,L!=null&&R!==L&&(S=S||[]).push(Y,L)):Y==="children"?typeof L!="str
8ing"&&typeof L!="number"||(S=S||[]).push(Y,""+L):Y!=="suppressContentEditableWarning"&&Y!=="suppressHydrationWarning"&&(a.hasOwnProperty(Y)?(L!=null&&Y==="onScroll"&&Ye("scroll",n),S||R===L||(S=[])):(S=S||[]).push(Y,L))}u&&(S=S||[]).push("style",u);var Y=S;(i.updateQueue=Y)&&(i.flags|=4)}},cy=function(n,i,u,m){u!==m&&(i.flags|=4)};function qi(n,i){if(!Xe)switch(n.tailMode){case"hidden":i=n.tail;for(var u=null;i!==null;)i.alternate!==null&&(u=i),i=i.sibling;u===null?n.tail=null:u.sibling=null;break;case"collapsed":u=n.tail;for(var m=null;u!==null;)u.alternate!==null&&(m=u),u=u.sibling;m===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:m.sibling=null}}function Dt(n){var i=n.alternate!==null&&n.alternate.child===n.child,u=0,m=0;if(i)for(var b=n.child;b!==null;)u|=b.lanes|b.childLanes,m|=b.subtreeFlags&14680064,m|=b.flags&14680064,b.return=n,b=b.sibling;else for(b=n.child;b!==null;)u|=b.lanes|b.childLanes,m|=b.subtreeFlags,m|=b.flags,b.return=n,b=b.sibling;return n.subtreeFlags|=m,n.childLanes=u,i}function fC(n,i,u){var m=i.pendingProps;switch(pd(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dt(i),null;case 1:return qt(i.type)&&gl(),Dt(i),null;case 3:return m=i.stateNode,To(),Ge(Kt),Ge(Mt),Ed(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(n===null||n.child===null)&&(wl(i)?i.flags|=4:n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Dr!==null&&(sf(Dr),Dr=null))),Gd(n,i),Dt(i),null;case 5:Cd(i);var b=Ds(Wi.current);if(u=i.type,n!==null&&i.stateNode!=null)ly(n,i,u,m,b),n.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!m){if(i.stateNode===null)throw Error(r(166));return Dt(i),null}if(n=Ds(sn.current),wl(i)){m=i.stateNode,u=i.type;var S=i.memoizedProps;switch(m[nn]=i,m[$i]=S,n=(i.mode&1)!==0,u){case"dialog":Ye("cancel",m),Ye("close",m);break;case"iframe":case"object":case"embed":Ye("load",m);break;case"video":case"audio":for(b=0;b<Li.length;b++)Ye(Li[b],m);break;case"source":Ye("error",m);break;case"img":case"image":case"link":Ye("error",m),Ye("load",m);break;case"details":Ye("toggle",m);break;case"input":Qe(m,S),Ye("invalid",m);break;case"select":m._wrapperState={wasMultiple:!!S.multiple},Ye("invalid",m);break;case"textarea":Wt(m,S),Ye("invalid",m)}mr(u,S),b=null;for(var P in S)if(S.hasOwnProperty(P)){var R=S[P];P==="children"?typeof R=="string"?m.textContent!==R&&(S.suppressHydrationWarning!==!0&&hl(m.textContent,R,n),b=["children",R]):typeof R=="number"&&m.textContent!==""+R&&(S.suppressHydrationWarning!==!0&&hl(m.textContent,R,n),b=["children",""+R]):a.hasOwnProperty(P)&&R!=null&&P==="onScroll"&&Ye("scroll",m)}switch(u){case"input":ve(m),zt(m,S,!0);break;case"textarea":ve(m),ks(m);break;case"select":case"option":break;default:typeof S.onClick=="function"&&(m.onclick=ml)}m=b,i.updateQueue=m,m!==null&&(i.flags|=4)}else{P=b.nodeType===9?b:b.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=wt(u)),n==="http://www.w3.org/1999/xhtml"?u==="script"?(n=P.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof m.is=="string"?n=P.createElement(u,{is:m.is}):(n=P.createElement(u),u==="select"&&(P=n,m.multiple?P.multiple=!0:m.size&&(P.size=m.size))):n=P.createElementNS(n,u),n[nn]=i,n[$i]=m,ay(n,i,!1,!1),i.stateNode=n;e:{switch(P=Cs(u,m),u){case"dialog":Ye("cancel",n),Ye("close",n),b=m;break;case"iframe":case"object":case"embed":Ye("load",n),b=m;break;case"video":case"audio":for(b=0;b<Li.length;b++)Ye(Li[b],n);b=m;break;case"source":Ye("error",n),b=m;break;case"img":case"image":case"link":Ye("error",n),Ye("load",n),b=m;break;case"details":Ye("toggle",n),b=m;break;case"input":Qe(n,m),b=Ie(n,m),Ye("invalid",n);break;case"option":b=m;break;case"select":n._wrapperState={wasMultiple:!!m.multiple},b=K({},m,{value:void 0}),Ye("invalid",n);break;case"textarea":Wt(n,m),b=en(n,m),Ye("invalid",n);break;default:b=m}mr(u,b),R=b;for(S in R)if(R.hasOwnProperty(S)){var L=R[S];S==="style"?Pr(n,L):S==="dangerouslySetInnerHTML"?(L=L?L.__html:void 0,L!=null&&In(n,L)):S==="children"?typeof L=="string"?(u!=="textarea"||L!=="")&&jt(n,L):typeof L=="number"&&jt(n,""+L):S!=="suppressContentEditableWarning"&&S!=="suppressHydrationWarning"&&S!=="autoFocus"&&(a.hasOwnProperty(S)?L!=null&&S==="onScroll"&&Ye("scroll",n):L!=null&&T(n,S,L,P))}switch(u){case"input":ve(n),zt(n,m,!1);break;case"textarea":ve(n),ks(n);break;case"option":m.value!=null&&n.setAttribute("value",""+ue(m.value));break;case"select":n.multiple=!!m.multiple,S=m.value,S!=null?xt(n,!!m.multiple,S,!1):m.defaultValue!=null&&xt(n,!!m.multiple,m.defaultValue,!0);break;default:typeof b.onClick=="function"&&(n.onclick=ml)}switch(u){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}}m&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}
vendor: 32,546 bytes, line 8
8return Dt(i),null;case 6:if(n&&i.stateNode!=null)cy(n,i,n.memoizedProps,m);else{if(typeof m!="string"&&i.stateNode===null)throw Error(r(166));if(u=Ds(Wi.current),Ds(sn.current),wl(i)){if(m=i.stateNode,u=i.memoizedProps,m[nn]=i,(S=m.nodeValue!==u)&&(n=ar,n!==null))switch(n.tag){case 3:hl(m.nodeValue,u,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&hl(m.nodeValue,u,(n.mode&1)!==0)}S&&(i.flags|=4)}else m=(u.nodeType===9?u:u.ownerDocument).createTextNode(m),m[nn]=i,i.stateNode=m}return Dt(i),null;case 13:if(Ge(Ze),m=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(Xe&&lr!==null&&(i.mode&1)!==0&&(i.flags&128)===0)fx(),No(),i.flags|=98560,S=!1;else if(S=wl(i),m!==null&&m.dehydrated!==null){if(n===null){if(!S)throw Error(r(318));if(S=i.memoizedState,S=S!==null?S.dehydrated:null,!S)throw Error(r(317));S[nn]=i}else No(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Dt(i),S=!1}else Dr!==null&&(sf(Dr),Dr=null),S=!0;if(!S)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=u,i):(m=m!==null,m!==(n!==null&&n.memoizedState!==null)&&m&&(i.child.flags|=8192,(i.mode&1)!==0&&(n===null||(Ze.current&1)!==0?pt===0&&(pt=3):lf())),i.updateQueue!==null&&(i.flags|=4),Dt(i),null);case 4:return To(),Gd(n,i),n===null&&Oi(i.stateNode.containerInfo),Dt(i),null;case 10:return wd(i.type._context),Dt(i),null;case 17:return qt(i.type)&&gl(),Dt(i),null;case 19:if(Ge(Ze),S=i.memoizedState,S===null)return Dt(i),null;if(m=(i.flags&128)!==0,P=S.rendering,P===null)if(m)qi(S,!1);else{if(pt!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(P=Tl(n),P!==null){for(i.flags|=128,qi(S,!1),m=P.updateQueue,m!==null&&(i.updateQueue=m,i.flags|=4),i.subtreeFlags=0,m=u,u=i.child;u!==null;)S=u,n=m,S.flags&=14680066,P=S.alternate,P===null?(S.childLanes=0,S.lanes=n,S.child=null,S.subtreeFlags=0,S.memoizedProps=null,S.memoizedState=null,S.updateQueue=null,S.dependencies=null,S.stateNode=null):(S.childLanes=P.childLanes,S.lanes=P.lanes,S.child=P.child,S.subtreeFlags=0,S.deletions=null,S.memoizedProps=P.memoizedProps,S.memoizedState=P.memoizedState,S.updateQueue=P.updateQueue,S.type=P.type,n=P.dependencies,S.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),u=u.sibling;return He(Ze,Ze.current&1|2),i.child}n=n.sibling}S.tail!==null&&ot()>Ro&&(i.flags|=128,m=!0,qi(S,!1),i.lanes=4194304)}else{if(!m)if(n=Tl(P),n!==null){if(i.flags|=128,m=!0,u=n.updateQueue,u!==null&&(i.updateQueue=u,i.flags|=4),qi(S,!0),S.tail===null&&S.tailMode==="hidden"&&!P.alternate&&!Xe)return Dt(i),null}else 2*ot()-S.renderingStartTime>Ro&&u!==1073741824&&(i.flags|=128,m=!0,qi(S,!1),i.lanes=4194304);S.isBackwards?(P.sibling=i.child,i.child=P):(u=S.last,u!==null?u.sibling=P:i.child=P,S.last=P)}return S.tail!==null?(i=S.tail,S.rendering=i,S.tail=i.sibling,S.renderingStartTime=ot(),i.sibling=null,u=Ze.current,He(Ze,m?u&1|2:u&1),i):(Dt(i),null);case 22:case 23:return af(),m=i.memoizedState!==null,n!==null&&n.memoizedState!==null!==m&&(i.flags|=8192),m&&(i.mode&1)!==0?(cr&1073741824)!==0&&(Dt(i),i.subtreeFlags&6&&(i.flags|=8192)):Dt(i),null;case 24:return null;case 25:return null}throw Error(r(156,i.tag))}function hC(n,i){switch(pd(i),i.tag){case 1:return qt(i.type)&&gl(),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return To(),Ge(Kt),Ge(Mt),Ed(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 5:return Cd(i),null;case 13:if(Ge(Ze),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(r(340));No()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return Ge(Ze),null;case 4:return To(),null;case 10:return wd(i.type._context),null;case 22:case 23:return af(),null;case 24:return null;default:return null}}var Ll=!1,It=!1,mC=typeof WeakSet=="function"?WeakSet:Set,fe=null;function Po(n,i){var u=n.ref;if(u!==null)if(typeof u=="function")try{u(null)}catch(m){rt(n,i,m)}else u.current=null}function Kd(n,i,u){try{u()}catch(m){rt(n,i,m)}}var uy=!1;function pC(n,i){if(id=rl,n=zg(),Ju(n)){if("selectionStart"in n)var u={start:n.selectionStart,end:n.selectionEnd};else e:{u=(u=n.ownerDocument)&&u.defaultView||window;var m=u.getSelection&&u.getSelection();if(m&&m.rangeCount!==0){u=m.anchorNode;var b=m.anchorOffset,S=m.focusNode;m=m.focusOffset;try{u.nodeType,S.nodeType}catch{u=null;break e}var P=0,R=-1,L=-1,Y=0,re=0,se=n,te=null;t:for(;;){for(var de;se!==u||b!==0&&se.nodeType!==3||(R=P+b),se!==S||m!==0&&se.nodeType!==3||(L=P+m),se.nodeType===3&&(P+=se.nodeValue.length),(de=se.firstChild)!==null;)te=se,se=de;for(;;){if(se===n)break t;if(te===u&&++Y===b&&(R=P),te===S&&++re===m&&(L=P),(de=se.nextSibling)!==null)break;se=te,te=se.parentNode}se=de}u=R===-1||L===-1?null:{start:R,end:L}}else u=null}u=u||{start:0,end:0}}else u=null;for(ad={focusedElem:n,selectionRange:u},rl=!1,fe=i;fe!==null;)if(i=fe,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,fe=n;else for(;fe!==null;){i=fe;try{var he=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(he!==null){var xe=he.memoizedProps,it=he.memoizedState,V=i.stateNode,O=V.getSnapshotBeforeUpdate(i.elementType===i.type?xe:Ir(i.type,xe),it);V.__reactInternalSnapshotBeforeUpdate=O}break;case 3:var U=i.stateNode.containerInfo;U.nodeType===1?U.textContent="":U.nodeType===9&&U.documentElement&&U.removeChild(U.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(ae){rt(i,i.return,ae)}if(n=i.sibling,n!==null){n.return=i.return,fe=n;break}fe=i.return}return he=uy,uy=!1,he}function Qi(n,i,u){var m=i.updateQueue;if(m=m!==null?m.lastEffect:null,m!==null){var b=m=m.next;do{if((b.tag&n)===n){var S=b.destroy;b.destroy=void 0,S!==void 0&&Kd(i,u,S)}b=b.next}while(b!==m)}}function Ol(n,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var u=i=i.next;do{if((u.tag&n)===n){var m=u.create;u.destroy=m()}u=u.next}while(u!==i)}}function qd(n){var i=n.ref;if(i!==null){var u=n.stateNode;n.tag,n=u,typeof i=="function"?i(n):i.current=n}}function dy(n){var i=n.alternate;i!==null&&(n.alternate=null,dy(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&(delete i[nn],delete i[$i],delete i[dd],delete i[Xk],delete i[Jk])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function fy(n){return n.tag===5||n.tag===3||n.tag===4}function hy(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||fy(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Qd(n,i,u){var m=n.tag;if(m===5||m===6)n=n.stateNode,i?u.nodeType===8?u.parentNode.insertBefore(n,i):u.insertBefore(n,i):(u.nodeType===8?(i=u.parentNode,i.insertBefore(n,u)):(i=u,i.appendChild(n)),u=u._reactRootContainer,u!=null||i.onclick!==null||(i.onclick=ml));else if(m!==4&&(n=n.child,n!==null))for(Qd(n,i,u),n=n.sibling;n!==null;)Qd(n,i,u),n=n.sibling}function Xd(n,i,u){var m=n.tag;if(m===5||m===6)n=n.stateNode,i?u.insertBefore(n,i):u.appendChild(n);else if(m!==4&&(n=n.child,n!==null))for(Xd(n,i,u),n=n.sibling;n!==null;)Xd(n,i,u),n=n.sibling}var St=null,Lr=!1;function Qn(n,i,u){for(u=u.child;u!==null;)my(n,i,u),u=u.sibling}function my(n,i,u){if(rn&&typeof rn.onCommitFiberUnmount=="function")try{rn.onCommitFiberUnmount(Qa,u)}catch{}switch(u.tag){case 5:It||Po(u,i);case 6:var m=St,b=Lr;St=null,Qn(n,i,u),St=m,Lr=b,St!==null&&(Lr?(n=St,u=u.stateNode,n.nodeType===8?n.parentNode.removeChild(u):n.removeChild(u)):St.removeChild(u.stateNode));break;case 18:St!==null&&(Lr?(n=St,u=u.stateNode,n.nodeType===8?ud(n.parentNode,u):n.nodeType===1&&ud(n,u),Ei(n)):ud(St,u.stateNode));break;case 4:m=St,b=Lr,St=u.stateNode.containerInfo,Lr=!0,Qn(n,i,u),St=m,Lr=b;break;case 0:case 11:case 14:case 15:if(!It&&(m=u.updateQueue,m!==null&&(m=m.lastEffect,m!==null))){b=m=m.next;do{var S=b,P=S.destroy;S=S.tag,P!==void 0&&((S&2)!==0||(S&4)!==0)&&Kd(u,i,P),b=b.next}while(b!==m)}Qn(n,i,u);break;case 1:if(!It&&(Po(u,i),m=u.stateNode,typeof m.componentWillUnmount=="function"))try{m.props=u.memoizedProps,m.state=u.memoizedState,m.componentWillUnmount()}catch(R){rt(u,i,R)}Qn(n,i,u);break;case 21:Qn(n,i,u);break;case 22:u.mode&1?(It=(m=It)||u.memoizedState!==null,Qn(n,i,u),It=m):Qn(n,i,u);break;default:Qn(n,i,u)}}function py(n){var i=n.updateQueue;if(i!==null){n.updateQueue=null;var u=n.stateNode;u===null&&(u=n.stateNode=new mC),i.forEach(function(m){var b=SC.bind(null,n,m);u.has(m)||(u.add(m),m.then(b,b))})}}function Or(n,i){var u=i.deletions;if(u!==null)for(var m=0;m<u.length;m++){var b=u[m];try{var S=n,P=i,R=P;e:for(;R!==null;){switch(R.tag){case 5:St=R.stateNode,Lr=!1;break e;case 3:St=R.stateNode.containerInfo,Lr=!0;break e;case 4:St=R.stateNode.containerInfo,Lr=!0;break e}R=R.return}if(St===null)throw Error(r(160));my(S,P,b),St=null,Lr=!1;var L=b.alternate;L!==null&&(L.return=null),b.return=null}catch(Y){rt(b,i,Y)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)gy(i,n),i=i.sibling}function gy(n,i){var u=n.alternate,m=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(Or(i,n),an(n),m&4){try{Qi(3,n,n.return),Ol(3,n)}catch(xe){rt(n,n.return,xe)}try{Qi(5,n,n.return)}catch(xe){rt(n,n.return,xe)}}break;case 1:Or(i,n),an(n),m&512&&u!==null&&Po(u,u.return);break;case 5:if(Or(i,n),an(n),m&512&&u!==null&&Po(u,u.return),n.flags&32){var b=n.stateNode;try{jt(b,"")}catch(xe){rt(n,n.return,xe)}}if(m&4&&(b=n.stateNode,b!=null)){var S=n.memoizedProps,P=u!==null?u.memoizedProps:S,R=n.type,L=n.updateQueue;if(n.updateQueue=null,L!==null)try{R==="input"&&S.type==="radio"&&S.name!=null&&ct(b,S),Cs(R,P);var Y=Cs(R,S);for(P=0;P<L.length;P+=2){var re=L[P],se=L[P+1];re==="style"?Pr(b,se):re==="dangerouslySetInnerHTML"?In(b,se):re==="children"?jt(b,se):T(b,re,se,Y)}switch(R){case"input":ht(b,S);break;case"textarea":Ss(b,S);break;case"select":var te=b._wrapperState.wasMultiple;b._wrapperState.wasMultiple=!!S.multiple;var de=S.value;de!=null?xt(b,!!S.multiple,de,!1):te!==!!S.multiple&&(S.defaultValue!=null?xt(b,!!S.multiple,S.defaultValue,!0):xt(b,!!S.multiple,S.multiple?[]:"",!1))}b[$i]=S}catch(xe){rt(n,n.return,xe)}}break;case 6:if(Or(i,n),an(n),m&4){if(n.stateNode===null)throw Error(r(162));b=n.stateNode,S=n.memoizedProps;try{b.nodeValue=S}catch(xe){rt(n,n.return,xe)}}break;case 3:if(Or(i,n),an(n),m&4&&u!==null&&u.memoizedState.isDehydrated)try{Ei(i.containerInfo)}catch(xe){rt(n,n.return,xe)}break;case 4:Or(i,n),an(n);break;case 13:Or(i,n),an(n),b=n.child,b.flags&8192&&(S=b.memoizedState!==null,b.stateNode.isHidden=S,!S||b.alternate!==null&&b.alternate.memoizedState!==null||(ef=ot())),m&4&&py(n);break;case 22:if(re=u!==null&&u.memoizedState!==null,n.mode&1?(It=(Y=It)||re,Or(i,n),It=Y):Or(i,n),an(n),m&8192){if(Y=n.memoizedState!==null,(n.stateNode.isHidden=Y)&&!re&&(n.mode&1)!==0)for(fe=n,re=n.child;re!==null;){for(se=fe=re;fe!==null;){switch(te=fe,de=te.child,te.tag){case 0:case 11:case 14:case 15:Qi(4,te,te.return);break;case 1:Po(te,te.return);var he=te.stateNode;if(typeof he.componentWillUnmount=="function"){m=te,u=te.return;try{i=m,he.props=i.memoizedProps,he.state=i.memoizedState,he.componentWillUnmount()}catch(xe){rt(m,u,xe)}}break;case 5:Po(te,te.return);break;case 22:if(te.memoizedState!==null){vy(se);continue}}de!==null?(de.return=te,fe=de):vy(se)}re=re.sibling}e:for(re=null,se=n;;){if(se.tag===5){if(re===null){re=se;try{b=se.stateNode,Y?(S=b.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none"):(R=se.stateNode,L=se.memoizedProps.style,P=L!=null&&L.hasOwnProperty("display")?L.display:null,R.style.display=Er("display",P))}catch(xe){rt(n,n.return,xe)}}}else if(se.tag===6){if(re===null)try{se.stateNode.nodeValue=Y?"":se.memoizedProps}catch(xe){rt(n,n.return,xe)}}else if((se.tag!==22&&se.tag!==23||se.memoizedState===null||se===n)&&se.child!==null){se.child.return=se,se=se.child;continue}if(se===n)break e;for(;se.sibling===null;){if(se.return===null||se.return===n)break e;re===se&&(re=null),se=se.return}re===se&&(re=null),se.sibling.return=se.return,se=se.sibling}}break;case 19:Or(i,n),an(n),m&4&&py(n);break;case 21:break;default:Or(i,n),an(n)}}function an(n){var i=n.flags;if(i&2){try{e:{for(var u=n.return;u!==null;){if(fy(u)){var m=u;break e}u=u.return}throw Error(r(160))}switch(m.tag){case 5:var b=m.stateNode;m.flags&32&&(jt(b,""),m.flags&=-33);var S=hy(n);Xd(n,S,b);break;case 3:case 4:var P=m.stateNode.containerInfo,R=hy(n);Qd(n,R,P);break;default:throw Error(r(161))}}catch(L){rt(n,n.return,L)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function gC(n,i,u){fe=n,xy(n)}function xy(n,i,u){for(var m=(n.mode&1)!==0;fe!==null;){var b=fe,S=b.child;if(b.tag===22&&m){var P=b.memoizedState!==null||Ll;if(!P){var R=b.alternate,L=R!==null&&R.memoizedState!==null||It;R=Ll;var Y=It;if(Ll=P,(It=L)&&!Y)for(fe=b;fe!==null;)P=fe,L=P.child,P.tag===22&&P.memoizedState!==null?by(b):L!==null?(L.return=P,fe=L):by(b);for(;S!==null;)fe=S,xy(S),S=S.sibling;fe=b,Ll=R,It=Y}yy(n)}else(b.subtreeFlags&8772)!==0&&S!==null?(S.return=b,fe=S):yy(n)}}function yy(n){for(;fe!==null;){var i=fe;if((i.flags&8772)!==0){var u=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:It||Ol(5,i);break;case 1:var m=i.stateNode;if(i.flags&4&&!It)if(u===null)m.componentDidMount();else{var b=i.elementType===i.type?u.memoizedProps:Ir(i.type,u.memoizedProps);m.componentDidUpdate(b,u.memoizedState,m.__reactInternalSnapshotBeforeUpdate)}var S=i.updateQueue;S!==null&&vx(i,S,m);break;case 3:var P=i.updateQueue;if(P!==null){if(u=null,i.child!==null)switch(i.child.tag){case 5:u=i.child.stateNode;break;case 1:u=i.child.stateNode}vx(i,P,u)}break;case 5:var R=i.stateNode;if(u===null&&i.flags&4){u=R;var L=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":L.autoFocus&&u.focus();break;case"img":L.src&&(u.src=L.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var Y=i.alternate;if(Y!==null){var re=Y.memoizedState;if(re!==null){var se=re.dehydrated;se!==null&&Ei(se)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}It||i.flags&512&&qd(i)}catch(te){rt(i,i.return,te)}}if(i===n){fe=null;break}if(u=i.sibling,u!==null){u.return=i.return,fe=u;break}fe=i.return}}function vy(n){for(;fe!==null;){var i=fe;if(i===n){fe=null;break}var u=i.sibling;if(u!==null){u.return=i.return,fe=u;break}fe=i.return}}function by(n){for(;fe!==null;){var i=fe;try{switch(i.tag){case 0:case 11:case 15:var u=i.return;try{Ol(4,i)}catch(L){rt(i,u,L)}break;case 1:var m=i.stateNode;if(typeof m.componentDidMount=="function"){var b=i.return;try{m.componentDidMount()}catch(L){rt(i,b,L)}}var S=i.return;try{qd(i)}catch(L){rt(i,S,L)}break;case 5:var P=i.return;try{qd(i)}catch(L){rt(i,P,L)}}}catch(L){rt(i,i.return,L)}if(i===n){fe=null;break}var R=i.sibling;if(R!==null){R.return=i.return,fe=R;break}fe=i.return}}var xC=Math.ceil,Fl=A.ReactCurrentDispatcher,Jd=A.ReactCurrentOwner,vr=A.ReactCurrentBatchConfig,Oe=0,vt=null,ut=null,kt=0,cr=0,Ao=Hn(0),pt=0,Xi=null,Ls=0,$l=0,Zd=0,Ji=null,Xt=null,ef=0,Ro=1/0,En=null,Vl=!1,tf=null,Xn=null,Bl=!1,Jn=null,zl=0,Zi=0,rf=null,Ul=-1,Wl=0;function Ft(){return(Oe&6)!==0?ot():Ul!==-1?Ul:Ul=ot()}function Zn(n){return(n.mode&1)===0?1:(Oe&2)!==0&&kt!==0?kt&-kt:eC.transition!==null?(Wl===0&&(Wl=hg()),Wl):(n=Be,n!==0||(n=window.event,n=n===void 0?16:jg(n.type)),n)}function Fr(n,i,u,m){if(50<Zi)throw Zi=0,rf=null,Error(r(185));Ni(n,u,m),((Oe&2)===0||n!==vt)&&(n===vt&&((Oe&2)===0&&($l|=u),pt===4&&es(n,kt)),Jt(n,m),u===1&&Oe===0&&(i.mode&1)===0&&(Ro=ot()+500,yl&&Gn()))}function Jt(n,i){var u=n.callbackNode;ek(n,i);var m=Za(n,n===vt?kt:0);if(m===0)u!==null&&ug(u),n.callbackNode=null,n.callbackPriority=0;else if(i=m&-m,n.callbackPriority!==i){if(u!=null&&ug(u),i===1)n.tag===0?Zk(jy.bind(null,n)):ax(jy.bind(null,n)),qk(function(){(Oe&6)===0&&Gn()}),u=null;else{switch(mg(m)){case 1:u=Iu;break;case 4:u=dg;break;case 16:u=qa;break;case 536870912:u=fg;break;default:u=qa}u=Ay(u,wy.bind(null,n))}n.callbackPriority=i,n.callbackNode=u}}function wy(n,i){if(Ul=-1,Wl=0,(Oe&6)!==0)throw Error(r(327));var u=n.callbackNode;if(Mo()&&n.callbackNode!==u)return null;var m=Za(n,n===vt?kt:0);if(m===0)return null;if((m&30)!==0||(m&n.expiredLanes)!==0||i)i=Hl(n,m);else{i=m;var b=Oe;Oe|=2;var S=Sy();(vt!==n||kt!==i)&&(En=null,Ro=ot()+500,Fs(n,i));do try{bC();break}catch(R){Ny(n,R)}while(!0);bd(),Fl.current=S,Oe=b,ut!==null?i=0:(vt=null,kt=0,i=pt)}if(i!==0){if(i===2&&(b=Lu(n),b!==0&&(m=b,i=nf(n,b))),i===1)throw u=Xi,Fs(n,0),es(n,m),Jt(n,ot()),u;if(i===6)es(n,m);else{if(b=n.current.alternate,(m&30)===0&&!yC(b)&&(i=Hl(n,m),i===2&&(S=Lu(n),S!==0&&(m=S,i=nf(n,S))),i===1))throw u=Xi,Fs(n,0),es(n,m),Jt(n,ot()),u;switch(n.finishedWork=b,n.finishedLanes=m,i){case 0:case 1:throw Error(r(345));case 2:$s(n,Xt,En);break;case 3:if(es(n,m),(m&130023424)===m&&(i=ef+500-ot(),10<i)){if(Za(n,0)!==0)break;if(b=n.suspendedLanes,(b&m)!==m){Ft(),n.pingedLanes|=n.suspendedLanes&b;break}n.timeoutHandle=cd($s.bind(null,n,Xt,En),i);break}$s(n,Xt,En);break;case 4:if(es(n,m),(m&4194240)===m)break;for(i=n.eventTimes,b=-1;0<m;){var P=31-Mr(m);S=1<<P,P=i[P],P>b&&(b=P),m&=~S}if(m=b,m=ot()-m,m=(120>m?120:480>m?480:1080>m?1080:1920>m?1920:3e3>m?3e3:4320>m?4320:1960*xC(m/1960))-m,10<m){n.timeoutHandle=cd($s.bind(null,n,Xt,En),m);break}$s(n,Xt,En);break;case 5:$s(n,Xt,En);break;default:throw Error(r(329))}}}return Jt(n,ot()),n.callbackNode===u?wy.bind(null,n):null}function nf(n,i){var u=Ji;return n.current.memoizedState.isDehydrated&&(Fs(n,i).flags|=256),n=Hl(n,i),n!==2&&(i=Xt,Xt=u,i!==null&&sf(i)),n}function sf(n){Xt===null?Xt=n:Xt.push.apply(Xt,n)}function yC(n){for(var i=n;;){if(i.flags&16384){var u=i.updateQueue;if(u!==null&&(u=u.stores,u!==null))for(var m=0;m<u.length;m++){var b=u[m],S=b.getSnapshot;b=b.value;try{if(!_r(S(),b))return!1}catch{return!1}}}if(u=i.child,i.subtreeFlags&16384&&u!==null)u.return=i,i=u;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function es(n,i){for(i&=~Zd,i&=~$l,n.suspendedLanes|=i,n.pingedLanes&=~i,n=n.expirationTimes;0<i;){var u=31-Mr(i),m=1<<u;n[u]=-1,i&=~m}}function jy(n){if((Oe&6)!==0)throw Error(r(327));Mo();var i=Za(n,0);if((i&1)===0)return Jt(n,ot()),null;var u=Hl(n,i);if(n.tag!==0&&u===2){var m=Lu(n);m!==0&&(i=m,u=nf(n,m))}if(u===1)throw u=Xi,Fs(n,0),es(n,i),Jt(n,ot()),u;if(u===6)throw Error(r(345));return n.finishedWork=n.current.alternate,n.finishedLanes=i,$s(n,Xt,En),Jt(n,ot()),null}function of(n,i){var u=Oe;Oe|=1;try{return n(i)}finally{Oe=u,Oe===0&&(Ro=ot()+500,yl&&Gn())}}function Os(n){Jn!==null&&Jn.tag===0&&(Oe&6)===0&&Mo();var i=Oe;Oe|=1;var u=vr.transition,m=Be;try{if(vr.transition=null,Be=1,n)return n()}finally{Be=m,vr.transition=u,Oe=i,(Oe&6)===0&&Gn()}}function af(){cr=Ao.current,Ge(Ao)}function Fs(n,i){n.finishedWork=null,n.finishedLanes=0;var u=n.timeoutHandle;if(u!==-1&&(n.timeoutHandle=-1,Kk(u)),ut!==null)for(u=ut.return;u!==null;){var m=u;switch(pd(m),m.tag){case 1:m=m.type.childContextTypes,m!=null&&gl();break;case 3:To(),Ge(Kt),Ge(Mt),Ed();break;case 5:Cd(m);break;case 4:To();break;case 13:Ge(Ze);break;case 19:Ge(Ze);break;case 10:wd(m.type._context);break;case 22:case 23:af()}u=u.return}if(vt=n,ut=n=ts(n.current,null),kt=cr=i,pt=0,Xi=null,Zd=$l=Ls=0,Xt=Ji=null,_s!==null){for(i=0;i<_s.length;i++)if(u=_s[i],m=u.interleaved,m!==null){u.interleaved=null;var b=m.next,S=u.pending;if(S!==null){var P=S.next;S.next=b,m.next=P}u.pending=m}_s=null}return n}function Ny(n,i){do{var u=ut;try{if(bd(),El.current=Ml,Pl){for(var m=et.memoizedState;m!==null;){var b=m.queue;b!==null&&(b.pending=null),m=m.next}Pl=!1}if(Is=0,yt=mt=et=null,Hi=!1,Yi=0,Jd.current=null,u===null||u.return===null){pt=1,Xi=i,ut=null;break}e:{var S=n,P=u.return,R=u,L=i;if(i=kt,R.flags|=32768,L!==null&&typeof L=="object"&&typeof L.then=="function"){var Y=L,re=R,se=re.tag;if((re.mode&1)===0&&(se===0||se===11||se===15)){var te=re.alternate;te?(re.updateQueue=te.updateQueue,re.memoizedState=te.memoizedState,re.lanes=te.lanes):(re.updateQueue=null,re.memoizedState=null)}var de=Kx(P);if(de!==null){de.flags&=-257,qx(de,P,R,S,i),de.mode&1&&Gx(S,Y,i),i=de,L=Y;var he=i.updateQueue;if(he===null){var xe=new Set;xe.add(L),i.updateQueue=xe}else he.add(L);break e}else{if((i&1)===0){Gx(S,Y,i),lf();break e}L=Error(r(426))}}else if(Xe&&R.mode&1){var it=Kx(P);if(it!==null){(it.flags&65536)===0&&(it.flags|=256),qx(it,P,R,S,i),yd(Eo(L,R));break e}}S=L=Eo(L,R),pt!==4&&(pt=2),Ji===null?Ji=[S]:Ji.push(S),S=P;do{switch(S.tag){case 3:S.flags|=65536,i&=-i,S.lanes|=i;var V=Hx(S,L,i);yx(S,V);break e;case 1:R=L;var O=S.type,U=S.stateNode;if((S.flags&128)===0&&(typeof O.getDerivedStateFromError=="function"||U!==null&&typeof U.componentDidCatch=="function"&&(Xn===null||!Xn.has(U)))){S.flags|=65536,i&=-i,S.lanes|=i;var ae=Yx(S,R,i);yx(S,ae);break e}}S=S.return}while(S!==null)}Cy(u)}catch(ye){i=ye,ut===u&&u!==null&&(ut=u=u.return);continue}break}while(!0)}function Sy(){var n=Fl.current;return Fl.current=Ml,n===null?Ml:n}function lf(){(pt===0||pt===3||pt===2)&&(pt=4),vt===null||(Ls&268435455)===0&&($l&268435455)===0||es(vt,kt)}function Hl(n,i){var u=Oe;Oe|=2;var m=Sy();(vt!==n||kt!==i)&&(En=null,Fs(n,i));do try{vC();break}catch(b){Ny(n,b)}while(!0);if(bd(),Oe=u,Fl.current=m,ut!==null)throw Error(r(261));return vt=null,kt=0,pt}function vC(){for(;ut!==null;)ky(ut)}function bC(){for(;ut!==null&&!HS();)ky(ut)}function ky(n){var i=Py(n.alternate,n,cr);n.memoizedProps=n.pendingProps,i===null?Cy(n):ut=i,Jd.current=null}function Cy(n){var i=n;do{var u=i.alternate;if(n=i.return,(i.flags&32768)===0){if(u=fC(u,i,cr),u!==null){ut=u;return}}else{if(u=hC(u,i),u!==null){u.flags&=32767,ut=u;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{pt=6,ut=null;return}}if(i=i.sibling,i!==null){ut=i;return}ut=i=n}while(i!==null);pt===0&&(pt=5)}function $s(n,i,u){var m=Be,b=vr.transition;try{vr.transition=null,Be=1,wC(n,i,u,m)}finally{vr.transition=b,Be=m}return null}function wC(n,i,u,m){do Mo();while(Jn!==null);if((Oe&6)!==0)throw Error(r(327));u=n.finishedWork;var b=n.finishedLanes;if(u===null)return null;if(n.finishedWork=null,n.finishedLanes=0,u===n.current)throw Error(r(177));n.callbackNode=null,n.callbackPriority=0;var S=u.lanes|u.childLanes;if(tk(n,S),n===vt&&(ut=vt=null,kt=0),(u.subtreeFlags&2064)===0&&(u.flags&2064)===0||Bl||(Bl=!0,Ay(qa,function(){return Mo(),null})),S=(u.flags&15990)!==0,(u.subtreeFlags&15990)!==0||S){S=vr.transition,vr.transition=null;var P=Be;Be=1;var R=Oe;Oe|=4,Jd.current=null,pC(n,u),gy(u,n),Bk(ad),rl=!!id,ad=id=null,n.current=u,gC(u),YS(),Oe=R,Be=P,vr.transition=S}else n.current=u;if(Bl&&(Bl=!1,Jn=n,zl=b),S=n.pendingLanes,S===0&&(Xn=null),qS(u.stateNode),Jt(n,ot()),i!==null)for(m=n.onRecoverableError,u=0;u<i.length;u++)b=i[u],m(b.value,{componentStack:b.stack,digest:b.digest});if(Vl)throw Vl=!1,n=tf,tf=null,n;return(zl&1)!==0&&n.tag!==0&&Mo(),S=n.pendingLanes,(S&1)!==0?n===rf?Zi++:(Zi=0,rf=n):Zi=0,Gn(),null}function Mo(){if(Jn!==null){var n=mg(zl),i=vr.transition,u=Be;try{if(vr.transition=null,Be=16>n?16:n,Jn===null)var m=!1;else{if(n=Jn,Jn=null,zl=0,(Oe&6)!==0)throw Error(r(331));var b=Oe;for(Oe|=4,fe=n.current;fe!==null;){var S=fe,P=S.child;if((fe.flags&16)!==0){var R=S.deletions;if(R!==null){for(var L=0;L<R.length;L++){var Y=R[L];for(fe=Y;fe!==null;){var re=fe;switch(re.tag){case 0:case 11:case 15:Qi(8,re,S)}var se=re.child;if(se!==null)se.return=re,fe=se;else for(;fe!==null;){re=fe;var te=re.sibling,de=re.return;if(dy(re),re===Y){fe=null;break}if(te!==null){te.return=de,fe=te;break}fe=de}}}var he=S.alternate;if(he!==null){var xe=he.child;if(xe!==null){he.child=null;do{var it=xe.sibling;xe.sibling=null,xe=it}while(xe!==null)}}fe=S}}if((S.subtreeFlags&2064)!==0&&P!==null)P.return=S,fe=P;else e:for(;fe!==null;){if(S=fe,(S.flags&2048)!==0)switch(S.tag){case 0:case 11:case 15:Qi(9,S,S.return)}var V=S.sibling;if(V!==null){V.return=S.return,fe=V;break e}fe=S.return}}var O=n.current;for(fe=O;fe!==null;){P=fe;var U=P.child;if((P.subtreeFlags&2064)!==0&&U!==null)U.return=P,fe=U;else e:for(P=O;fe!==null;){if(R=fe,(R.flags&2048)!==0)try{switch(R.tag){case 0:case 11:case 15:Ol(9,R)}}catch(ye){rt(R,R.return,ye)}if(R===P){fe=null;break e}var ae=R.sibling;if(ae!==null){ae.return=R.return,fe=ae;break e}fe=R.return}}if(Oe=b,Gn(),rn&&typeof rn.onPostCommitFiberRoot=="function")try{rn.onPostCommitFiberRoot(Qa,n)}catch{}m=!0}return m}finally{Be=u,vr.transition=i}}return!1}function Ty(n,i,u){i=Eo(u,i),i=Hx(n,i,1),n=qn(n,i,1),i=Ft(),n!==null&&(Ni(n,1,i),Jt(n,i))}function rt(n,i,u){if(n.tag===3)Ty(n,n,u);else for(;i!==null;){if(i.tag===3){Ty(i,n,u);break}else if(i.tag===1){var m=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(Xn===null||!Xn.has(m))){n=Eo(u,n),n=Yx(i,n,1),i=qn(i,n,1),n=Ft(),i!==null&&(Ni(i,1,n),Jt(i,n));break}}i=i.return}}function jC(n,i,u){var m=n.pingCache;m!==null&&m.delete(i),i=Ft(),n.pingedLanes|=n.suspendedLanes&u,vt===n&&(kt&u)===u&&(pt===4||pt===3&&(kt&130023424)===kt&&500>ot()-ef?Fs(n,0):Zd|=u),Jt(n,i)}function Ey(n,i){i===0&&((n.mode&1)===0?i=1:(i=Ja,Ja<<=1,(Ja&130023424)===0&&(Ja=4194304)));var u=Ft();n=kn(n,i),n!==null&&(Ni(n,i,u),Jt(n,u))}function NC(n){var i=n.memoizedState,u=0;i!==null&&(u=i.retryLane),Ey(n,u)}function SC(n,i){var u=0;switch(n.tag){case 13:var m=n.stateNode,b=n.memoizedState;b!==null&&(u=b.retryLane);break;case 19:m=n.stateNode;break;default:throw Error(r(314))}m!==null&&m.delete(i),Ey(n,u)}var Py;Py=function(n,i,u){if(n!==null)if(n.memoizedProps!==i.pendingProps||Kt.current)Qt=!0;else{if((n.lanes&u)===0&&(i.flags&128)===0)return Qt=!1,dC(n,i,u);Qt=(n.flags&131072)!==0}else Qt=!1,Xe&&(i.flags&1048576)!==0&&lx(i,bl,i.index);switch(i.lanes=0,i.tag){case 2:var m=i.type;Il(n,i),n=i.pendingProps;var b=bo(i,Mt.current);Co(i,u),b=Rd(null,i,m,n,b,u);var S=Md();return i.flags|=1,typeof b=="object"&&b!==null&&typeof b.render=="function"&&b.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,qt(m)?(S=!0,xl(i)):S=!1,i.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,Sd(i),b.updater=_l,i.stateNode=b,b._reactInternals=i,Fd(i,m,n,u),i=zd(null,i,m,!0,S,u)):(i.tag=0,Xe&&S&&md(i),Ot(null,i,b,u),i=i.child),i;case 16:m=i.elementType;e:{switch(Il(n,i),n=i.pendingProps,b=m._init,m=b(m._payload),i.type=m,b=i.tag=CC(m),n=Ir(m,n),b){case 0:i=Bd(null,i,m,n,u);break e;case 1:i=ty(null,i,m,n,u);break e;case 11:i=Qx(null,i,m,n,u);break e;case 14:i=Xx(null,i,m,Ir(m.type,n),u);break e}throw Error(r(306,m,""))}return i;case 0:return m=i.type,b=i.pendingProps,b=i.elementType===m?b:Ir(m,b),Bd(n,i,m,b,u);case 1:return m=i.type,b=i.pendingProps,b=i.elementType===m?b:Ir(m,b),ty(n,i,m,b,u);case 3:e:{if(ry(i),n===null)throw Error(r(387));m=i.pendingProps,S=i.memoizedState,b=S.element,xx(n,i),Cl(i,m,null,u);var P=i.memoizedState;if(m=P.element,S.isDehydrated)if(S={element:m,isDehydrated:!1,cache:P.cache,pendingSuspenseBoundaries:P.pendingSuspenseBoundaries,transitions:P.transitions},i.updateQueue.baseState=S,i.memoizedState=S,i.flags&256){b=Eo(Error(r(423)),i),i=ny(n,i,m,u,b);break e}else if(m!==b){b=Eo(Error(r(424)),i),i=ny(n,i,m,u,b);break e}else for(lr=Wn(i.stateNode.containerInfo.firstChild),ar=i,Xe=!0,Dr=null,u=px(i,null,m,u),i.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(No(),m===b){i=Tn(n,i,u);break e}Ot(n,i,m,u)}i=i.child}return i;case 5:return bx(i),n===null&&xd(i),m=i.type,b=i.pendingProps,S=n!==null?n.memoizedProps:null,P=b.children,ld(m,b)?P=null:S!==null&&ld(m,S)&&(i.flags|=32),ey(n,i),Ot(n,i,P,u),i.child;case 6:return n===null&&xd(i),null;case 13:return sy(n,i,u);case 4:return kd(i,i.stateNode.containerInfo),m=i.pendingProps,n===null?i.child=So(i,null,m,u):Ot(n,i,m,u),i.child;case 11:return m=i.type,b=i.pendingProps,b=i.elementType===m?b:Ir(m,b),Qx(n,i,m,b,u);case 7:return Ot(n,i,i.pendingProps,u),i.child;case 8:return Ot(n,i,i.pendingProps.children,u),i.child;case 12:return Ot(n,i,i.pendingProps.children,u),i.child;case 10:e:{if(m=i.type._context,b=i.pendingProps,S=i.memoizedProps,P=b.value,He(Nl,m._currentValue),m._currentValue=P,S!==null)if(_r(S.value,P)){if(S.children===b.children&&!Kt.current){i=Tn(n,i,u);break e}}else for(S=i.child,S!==null&&(S.return=i);S!==null;){var R=S.dependencies;if(R!==null){P=S.child;for(var L=R.firstContext;L!==null;){if(L.context===m){if(S.tag===1){L=Cn(-1,u&-u),L.tag=2;var Y=S.updateQueue;if(Y!==null){Y=Y.shared;var re=Y.pending;re===null?L.next=L:(L.next=re.next,re.next=L),Y.pending=L}}S.lanes|=u,L=S.alternate,L!==null&&(L.lanes|=u),jd(S.return,u,i),R.lanes|=u;break}L=L.next}}else if(S.tag===10)P=S.type===i.type?null:S.child;else if(S.tag===18){if(P=S.return,P===null)throw Error(r(341));P.lanes|=u,R=P.alternate,R!==null&&(R.lanes|=u),jd(P,u,i),P=S.sibling}else P=S.child;if(P!==null)P.return=S;else for(P=S;P!==null;){if(P===i){P=null;break}if(S=P.sibling,S!==null){S.return=P.return,P=S;break}P=P.return}S=P}Ot(n,i,b.children,u),i=i.child}return i;case 9:return b=i.type,m=i.pendingProps.children,Co(i,u),b=xr(b),m=m(b),i.flags|=1,Ot(n,i,m,u),i.child;case 14:return m=i.type,b=Ir(m,i.pendingProps),b=Ir(m.type,b),Xx(n,i,m,b,u);case 15:return Jx(n,i,i.type,i.pendingProps,u);case 17:return m=i.type,b=i.pendingProps,b=i.elementType===m?b:Ir(m,b),Il(n,i),i.tag=1,qt(m)?(n=!0,xl(i)):n=!1,Co(i,u),Ux(i,m,b),Fd(i,m,b,u),zd(null,i,m,!0,n,u);case 19:return iy(n,i,u);case 22:return Zx(n,i,u)}throw Error(r(156,i.tag))};function Ay(n,i){return cg(n,i)}function kC(n,i,u,m){this.tag=n,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function br(n,i,u,m){return new kC(n,i,u,m)}function cf(n){return n=n.prototype,!(!n||!n.isReactComponent)}function CC(n){if(typeof n=="function")return cf(n)?1:0;if(n!=null){if(n=n.$$typeof,n===q)return 11;if(n===J)return 14}return 2}function ts(n,i){var u=n.alternate;return u===null?(u=br(n.tag,i,n.key,n.mode),u.elementType=n.elementType,u.type=n.type,u.stateNode=n.stateNode,u.alternate=n,n.alternate=u):(u.pendingProps=i,u.type=n.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=n.flags&14680064,u.childLanes=n.childLanes,u.lanes=n.lanes,u.child=n.child,u.memoizedProps=n.memoizedProps,u.memoizedState=n.memoizedState,u.updateQueue=n.updateQueue,i=n.dependencies,u.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},u.sibling=n.sibling,u.index=n.index,u.ref=n.ref,u}function Yl(n,i,u,m,b,S){var P=2;if(m=n,typeof n=="function")cf(n)&&(P=1);else if(typeof n=="string")P=5;else e:switch(n){case I:return Vs(u.children,b,S,i);case _:P=8,b|=8;break;case H:return n=br(12,u,i,b|2),n.elementType=H,n.lanes=S,n;case le:return n=br(13,u,i,b),n.elementType=le,n.lanes=S,n;case F:return n=br(19,u,i,b),n.elementType=F,n.lanes=S,n;case oe:return Gl(u,b,S,i);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case z:P=10;break e;case G:P=9;break e;case q:P=11;break e;case J:P=14;break e;case Z:P=16,m=null;break e}throw Error(r(130,n==null?n:typeof n,""))}return i=br(P,u,i,b),i.elementType=n,i.type=m,i.lanes=S,i}function Vs(n,i,u,m){return n=br(7,n,m,i),n.lanes=u,n}function Gl(n,i,u,m){return n=br(22,n,m,i),n.elementType=oe,n.lanes=u,n.stateNode={isHidden:!1},n}function uf(n,i,u){return n=br(6,n,null,i),n.lanes=u,n}function df(n,i,u){return i=br(4,n.children!==null?n.children:[],n.key,i),i.lanes=u,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}function TC(n,i,u,m,b){this.tag=i,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ou(0),this.expirationTimes=Ou(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ou(0),this.identifierPrefix=m,this.onRecoverableError=b,this.mutableSourceEagerHydrationData=null}function ff(n,i,u,m,b,S,P,R,L){return n=new TC(n,i,u,R,L),i===1?(i=1,S===!0&&(i|=8)):i=0,S=br(3,null,null,i),n.current=S,S.stateNode=n,S.memoizedState={element:m,isDehydrated:u,cac
vendor: 2,398 bytes, line 8
8he:null,transitions:null,pendingSuspenseBoundaries:null},Sd(S),n}function EC(n,i,u){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:D,key:m==null?null:""+m,children:n,containerInfo:i,implementation:u}}function Ry(n){if(!n)return Yn;n=n._reactInternals;e:{if(Es(n)!==n||n.tag!==1)throw Error(r(170));var i=n;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(qt(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(r(171))}if(n.tag===1){var u=n.type;if(qt(u))return ox(n,u,i)}return i}function My(n,i,u,m,b,S,P,R,L){return n=ff(u,m,!0,n,b,S,P,R,L),n.context=Ry(null),u=n.current,m=Ft(),b=Zn(u),S=Cn(m,b),S.callback=i??null,qn(u,S,b),n.current.lanes=b,Ni(n,b,m),Jt(n,m),n}function Kl(n,i,u,m){var b=i.current,S=Ft(),P=Zn(b);return u=Ry(u),i.context===null?i.context=u:i.pendingContext=u,i=Cn(S,P),i.payload={element:n},m=m===void 0?null:m,m!==null&&(i.callback=m),n=qn(b,i,P),n!==null&&(Fr(n,b,P,S),kl(n,b,P)),P}function ql(n){return n=n.current,n.child?(n.child.tag===5,n.child.stateNode):null}function _y(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var u=n.retryLane;n.retryLane=u!==0&&u<i?u:i}}function hf(n,i){_y(n,i),(n=n.alternate)&&_y(n,i)}function PC(){return null}var Dy=typeof reportError=="function"?reportError:function(n){console.error(n)};function mf(n){this._internalRoot=n}Ql.prototype.render=mf.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(r(409));Kl(n,i,null,null)},Ql.prototype.unmount=mf.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;Os(function(){Kl(null,n,null,null)}),i[wn]=null}};function Ql(n){this._internalRoot=n}Ql.prototype.unstable_scheduleHydration=function(n){if(n){var i=xg();n={blockedOn:null,target:n,priority:i};for(var u=0;u<Bn.length&&i!==0&&i<Bn[u].priority;u++);Bn.splice(u,0,n),u===0&&bg(n)}};function pf(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function Xl(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function Iy(){}function AC(n,i,u,m,b){if(b){if(typeof m=="function"){var S=m;m=function(){var Y=ql(P);S.call(Y)}}var P=My(i,m,n,0,null,!1,!1,"",Iy);return n._reactRootContainer=P,n[wn]=P.current,Oi(n.nodeType===8?n.parentNode:n),O
vendor: 4,837 bytes, line 8
8s(),P}for(;b=n.lastChild;)n.removeChild(b);if(typeof m=="function"){var R=m;m=function(){var Y=ql(L);R.call(Y)}}var L=ff(n,0,!1,null,null,!1,!1,"",Iy);return n._reactRootContainer=L,n[wn]=L.current,Oi(n.nodeType===8?n.parentNode:n),Os(function(){Kl(i,L,u,m)}),L}function Jl(n,i,u,m,b){var S=u._reactRootContainer;if(S){var P=S;if(typeof b=="function"){var R=b;b=function(){var L=ql(P);R.call(L)}}Kl(i,P,n,b)}else P=AC(u,i,n,b,m);return ql(P)}pg=function(n){switch(n.tag){case 3:var i=n.stateNode;if(i.current.memoizedState.isDehydrated){var u=ji(i.pendingLanes);u!==0&&(Fu(i,u|1),Jt(i,ot()),(Oe&6)===0&&(Ro=ot()+500,Gn()))}break;case 13:Os(function(){var m=kn(n,1);if(m!==null){var b=Ft();Fr(m,n,1,b)}}),hf(n,1)}},$u=function(n){if(n.tag===13){var i=kn(n,134217728);if(i!==null){var u=Ft();Fr(i,n,134217728,u)}hf(n,134217728)}},gg=function(n){if(n.tag===13){var i=Zn(n),u=kn(n,i);if(u!==null){var m=Ft();Fr(u,n,i,m)}hf(n,i)}},xg=function(){return Be},yg=function(n,i){var u=Be;try{return Be=n,i()}finally{Be=u}},On=function(n,i,u){switch(i){case"input":if(ht(n,u),i=u.name,u.type==="radio"&&i!=null){for(u=n;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<u.length;i++){var m=u[i];if(m!==n&&m.form===n.form){var b=pl(m);if(!b)throw Error(r(90));ce(m),ht(m,b)}}}break;case"textarea":Ss(n,u);break;case"select":i=u.value,i!=null&&xt(n,!!u.multiple,i,!1)}},Le=of,Ve=Os;var RC={usingClientEntryPoint:!1,Events:[Vi,yo,pl,co,ke,of]},ea={findFiberByHostInstance:Ps,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},MC={bundleType:ea.bundleType,version:ea.version,rendererPackageName:ea.rendererPackageName,rendererConfig:ea.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:A.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=ag(n),n===null?null:n.stateNode},findFiberByHostInstance:ea.findFiberByHostInstance||PC,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zl.isDisabled&&Zl.supportsFiber)try{Qa=Zl.inject(MC),rn=Zl}catch{}}return Zt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=RC,Zt.createPortal=function(n,i){var u=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!pf(i))throw Error(r(200));return EC(n,i,null,u)},Zt.createRoot=function(n,i){if(!pf(n))throw Error(r(299));var u=!1,m="",b=Dy;return i!=null&&(i.unstable_strictMode===!0&&(u=!0),i.identifierPrefix!==void 0&&(m=i.identifierPrefix),i.onRecoverableError!==void 0&&(b=i.onRecoverableError)),i=ff(n,1,!1,null,null,u,!1,m,b),n[wn]=i.current,Oi(n.nodeType===8?n.parentNode:n),new mf(i)},Zt.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=ag(i),n=n===null?null:n.stateNode,n},Zt.flushSync=function(n){return Os(n)},Zt.hydrate=function(n,i,u){if(!Xl(i))throw Error(r(200));return Jl(null,n,i,!0,u)},Zt.hydrateRoot=function(n,i,u){if(!pf(n))throw Error(r(405));var m=u!=null&&u.hydratedSources||null,b=!1,S="",P=Dy;if(u!=null&&(u.unstable_strictMode===!0&&(b=!0),u.identifierPrefix!==void 0&&(S=u.identifierPrefix),u.onRecoverableError!==void 0&&(P=u.onRecoverableError)),i=My(i,null,n,1,u??null,b,!1,S,P),n[wn]=i.current,Oi(n),m)for(n=0;n<m.length;n++)u=m[n],b=u._getVersion,b=b(u._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[u,b]:i.mutableSourceEagerHydrationData.push(u,b);return new Ql(i)},Zt.render=function(n,i,u){if(!Xl(i))throw Error(r(200));return Jl(null,n,i,!1,u)},Zt.unmountComponentAtNode=function(n){if(!Xl(n))throw Error(r(40));return n._reactRootContainer?(Os(function(){Jl(null,null,n,!1,function(){n._reactRootContainer=null,n[wn]=null})}),!0):!1},Zt.unstable_batchedUpdates=of,Zt.unstable_renderSubtreeIntoContainer=function(n,i,u,m){if(!Xl(u))throw Error(r(200));if(n==null||n._reactInternals===void 0)throw Error(r(38));return Jl(n,i,u,!1,m)},Zt.version="18.3.1-next-f1338f8080-20240426",Zt}var Uy;function Gb(){if(Uy)return yf.exports;Uy=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),yf.exports=VC(),yf.exports}var Wy;function BC(){if(Wy)return ec;Wy=1;var e=Gb();return ec.createRoot=e.createRoot,ec.hydrateRoot=e.hydrateRoot,ec}var zC=BC(),y=_m();
8const ee=oo(y),Dm=DC({__proto__:null,default:ee},[y]),UC=1,WC=1e6;let wf=0;function HC(){return wf=(wf+1)%Number.MAX_SAFE_INTEGER,wf.toString()}const jf=new Map,Hy=e=>{if(jf.has(e))return;const t=setTimeout(()=>{jf.delete(e),ua({type:"REMOVE_TOAST",toastId:e})},WC);jf.set(e,t)},YC=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,UC)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?Hy(r):e.toasts.forEach(o=>{Hy(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===r||r===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},gc=[];let xc={toasts:[]};function ua(e){xc=YC(xc,e),gc.forEach(t=>{t(xc)})}function GC({...e}){const t=HC(),r=a=>ua({type:"UPDATE_TOAST",toast:{...a,id:t}}),o=()=>ua({type:"DISMISS_TOAST",toastId:t});return ua({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||o()}}}),{id:t,dismiss:o,update:r}}function ys(){const[e,t]=y.useState(xc);return y.useEffect(()=>(gc.push(t),()=>{const r=gc.indexOf(t);r>-1&&gc.splice(r,1)}),[e]),{...e,toast:GC,dismiss:r=>ua({type:"DISMISS_TOAST",toastId:r})}}var si=Gb();const Kb=oo(si);function Se(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),r===!1||!a.defaultPrevented)return t?.(a)}}function Yy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function qb(...e){return t=>{let r=!1;const o=e.map(a=>{const l=Yy(a,t);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let a=0;a<o.length;a++){const l=o[a];typeof l=="function"?l():Yy(e[a],null)}}}}function ze(...e){return y.useCallback(qb(...e),e)}function KC(e,t){const r=y.createContext(t),o=l=>{const{children:c,...d}=l,f=y.useMemo(()=>d,Object.values(d));return s.jsx(r.Provider,{value:f,children:c})};o.displayName=e+"Provider";function a(l){const c=y.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[o,a]}function Mn(e,t=[]){let r=[];function o(l,c){const d=y.createContext(c),f=r.length;r=[...r,c];const h=g=>{const{scope:x,children:v,...N}=g,w=x?.[e]?.[f]||d,j=y.useMemo(()=>N,Object.values(N));return s.jsx(w.Provider,{value:j,children:v})};h.displayName=l+"Provider";function p(g,x){const v=x?.[e]?.[f]||d,N=y.useContext(v);if(N)return N;if(c!==void 0)return c;throw new Error(`\`${g}\` must be used within \`${l}\``)}return[h,p]}const a=()=>{const l=r.map(c=>y.createContext(c));return function(d){const f=d?.[e]||l;return y.useMemo(()=>({[`__scope${e}`]:{...d,[e]:f}}),[d,f])}};return a.scopeName=e,[o,qC(a,...t)]}function qC(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const o=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(l){const c=o.reduce((d,{useScope:f,scopeName:h})=>{const g=f(l)[`__scope${h}`];return{...d,...g}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return r.scopeName=t.scopeName,r}function Yo(e){const t=XC(e),r=y.forwardRef((o,a)=>{const{children:l,...c}=o,d=y.Children.toArray(l),f=d.find(ZC);if(f){const h=f.props.children,p=d.map(g=>g===f?y.Children.count(h)>1?y.Children.only(null):y.isValidElement(h)?h.props.children:null:g);return s.jsx(t,{...c,ref:a,children:y.isValidElement(h)?y.cloneElement(h,void 0,p):null})}return s.jsx(t,{...c,ref:a,children:l})});return r.displayName=`${e}.Slot`,r}var QC=Yo("Slot");function XC(e){const t=y.forwardRef((r,o)=>{const{children:a,...l}=r;if(y.isValidElement(a)){const c=tT(a),d=eT(l,a.props);return a.type!==y.Fragment&&(d.ref=o?qb(o,c):c),y.cloneElement(a,d)}return y.Children.count(a)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Qb=Symbol("radix.slottable");function JC(e){const t=({children:r})=>s.jsx(s.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Qb,t}function ZC(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qb}function eT(e,t){const r={...t};for(const o in t){const a=e[o],l=t[o];/^on[A-Z]/.test(o)?a&&l?r[o]=(...d)=>{const f=l(...d);return a(...d),f}:a&&(r[o]=a):o==="style"?r[o]={...a,...l}
8:o==="className"&&(r[o]=[a,l].filter(Boolean).join(" "))}return{...e,...r}}function tT(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Im(e){const t=e+"CollectionProvider",[r,o]=Mn(t),[a,l]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=w=>{const{scope:j,children:k}=w,C=ee.useRef(null),T=ee.useRef(new Map).current;return s.jsx(a,{scope:j,itemMap:T,collectionRef:C,children:k})};c.displayName=t;const d=e+"CollectionSlot",f=Yo(d),h=ee.forwardRef((w,j)=>{const{scope:k,children:C}=w,T=l(d,k),A=ze(j,T.collectionRef);return s.jsx(f,{ref:A,children:C})});h.displayName=d;const p=e+"CollectionItemSlot",g="data-radix-collection-item",x=Yo(p),v=ee.forwardRef((w,j)=>{const{scope:k,children:C,...T}=w,A=ee.useRef(null),E=ze(j,A),D=l(p,k);return ee.useEffect(()=>(D.itemMap.set(A,{ref:A,...T}),()=>{D.itemMap.delete(A)})),s.jsx(x,{[g]:"",ref:E,children:C})});v.displayName=p;function N(w){const j=l(e+"CollectionConsumer",w);return ee.useCallback(()=>{const C=j.collectionRef.current;if(!C)return[];const T=Array.from(C.querySelectorAll(`[${g}]`));return Array.from(j.itemMap.values()).sort((D,I)=>T.indexOf(D.ref.current)-T.indexOf(I.ref.current))},[j.collectionRef,j.itemMap])}return[{Provider:c,Slot:h,ItemSlot:v},N,o]}var rT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Re=rT.reduce((e,t)=>{const r=Yo(`Primitive.${t}`),o=y.forwardRef((a,l)=>{const{asChild:c,...d}=a,f=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(f,{...d,ref:l})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Xb(e,t){e&&si.flushSync(()=>e.dispatchEvent(t))}function Cr(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...r)=>t.current?.(...r),[])}function nT(e,t=globalThis?.document){const r=Cr(e);y.useEffect(()=>{const o=a=>{a.key==="Escape"&&r(a)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[r,t])}var sT="DismissableLayer",mh="dismissableLayer.update",oT="dismissableLayer.pointerDownOutside",iT="dismissableLayer.focusOutside",Gy,Jb=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ma=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:l,onInteractOutside:c,onDismiss:d,...f}=e,h=y.useContext(Jb),[p,g]=y.useState(null),x=p?.ownerDocument??globalThis?.document,[,v]=y.useState({}),N=ze(t,I=>g(I)),w=Array.from(h.layers),[j]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),k=w.indexOf(j),C=p?w.indexOf(p):-1,T=h.layersWithOutsidePointerEventsDisabled.size>0,A=C>=k,E=lT(I=>{const _=I.target,H=[...h.branches].some(z=>z.contains(_));!A||H||(a?.(I),c?.(I),I.defaultPrevented||d?.())},x),D=cT(I=>{const _=I.target;[...h.branches].some(z=>z.contains(_))||(l?.(I),c?.(I),I.defaultPrevented||d?.())},x);return nT(I=>{C===h.layers.size-1&&(o?.(I),!I.defaultPrevented&&d&&(I.preventDefault(),d()))},x),y.useEffect(()=>{if(p)return r&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(Gy=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(p)),h.layers.add(p),Ky(),()=>{r&&h.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=Gy)}},[p,x,r,h]),y.useEffect(()=>()=>{p&&(h.layers.delete(p),h.layersWithOutsidePointerEventsDisabled.delete(p),Ky())},[p,h]),y.useEffect(()=>{const I=()=>v({});return document.addEventListener(mh,I),()=>document.removeEventListener(mh,I)},[]),s.jsx(Re.div,{...f,ref:N,style:{pointerEvents:T?A?"auto":"none":void 0,...e.style},onFocusCapture:Se(e.onFocusCapture,D.onFocusCapture),onBlurCapture:Se(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:Se(e.onPointerDownCapture,E.onPointerDownCapture)})});Ma.displayName=sT;var aT="DismissableLayerBranch",Zb=y.forwardRef((e,t)=>{const r=y.useContext(Jb),o=y.useRef(null),a=ze(t,o);return y.useEffect(()=>{const l=o.current;if(l)return r.branches.add(l),()=>{r.branches.delete(l)}},[r.branches]),s.jsx(Re.div,{...e,ref:a})});Zb.displayName=aT;function lT(e,t=globalThis?.document){const r=Cr(e),o=y.useRef(!1),a=y.useRef(()=>{});return y.useEffect(()=>{const l=d=>
8{if(d.target&&!o.current){let f=function(){ew(oT,r,h,{discrete:!0})};const h={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=f,t.addEventListener("click",a.current,{once:!0})):f()}else t.removeEventListener("click",a.current);o.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",l),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>o.current=!0}}function cT(e,t=globalThis?.document){const r=Cr(e),o=y.useRef(!1);return y.useEffect(()=>{const a=l=>{l.target&&!o.current&&ew(iT,r,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Ky(){const e=new CustomEvent(mh);document.dispatchEvent(e)}function ew(e,t,r,{discrete:o}){const a=r.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),o?Xb(a,l):a.dispatchEvent(l)}var uT=Ma,dT=Zb,Pt=globalThis?.document?y.useLayoutEffect:()=>{},fT="Portal",su=y.forwardRef((e,t)=>{const{container:r,...o}=e,[a,l]=y.useState(!1);Pt(()=>l(!0),[]);const c=r||a&&globalThis?.document?.body;return c?Kb.createPortal(s.jsx(Re.div,{...o,ref:t}),c):null});su.displayName=fT;function hT(e,t){return y.useReducer((r,o)=>t[r][o]??r,e)}var io=e=>{const{present:t,children:r}=e,o=mT(t),a=typeof r=="function"?r({present:o.isPresent}):y.Children.only(r),l=ze(o.ref,pT(a));return typeof r=="function"||o.isPresent?y.cloneElement(a,{ref:l}):null};io.displayName="Presence";function mT(e){const[t,r]=y.useState(),o=y.useRef(null),a=y.useRef(e),l=y.useRef("none"),c=e?"mounted":"unmounted",[d,f]=hT(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const h=tc(o.current);l.current=d==="mounted"?h:"none"},[d]),Pt(()=>{const h=o.current,p=a.current;if(p!==e){const x=l.current,v=tc(h);e?f("MOUNT"):v==="none"||h?.display==="none"?f("UNMOUNT"):f(p&&x!==v?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,f]),Pt(()=>{if(t){let h;const p=t.ownerDocument.defaultView??window,g=v=>{const w=tc(o.current).includes(v.animationName);if(v.target===t&&w&&(f("ANIMATION_END"),!a.current)){const j=t.style.animationFillMode;t.style.animationFillMode="forwards",h=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=j)})}},x=v=>{v.target===t&&(l.current=tc(o.current))};return t.addEventListener("animationstart",x),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{p.clearTimeout(h),t.removeEventListener("animationstart",x),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:y.useCallback(h=>{o.current=h?getComputedStyle(h):null,r(h)},[])}}function tc(e){return e?.animationName||"none"}function pT(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var gT=Dm[" useInsertionEffect ".trim().toString()]||Pt;function Go({prop:e,defaultProp:t,onChange:r=()=>{},caller:o}){const[a,l,c]=xT({defaultProp:t,onChange:r}),d=e!==void 0,f=d?e:a;{const p=y.useRef(e!==void 0);y.useEffect(()=>{const g=p.current;g!==d&&console.warn(`${o} is changing from ${g?"controlled":"uncontrolled"} to ${d?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=d},[d,o])}const h=y.useCallback(p=>{if(d){const g=yT(p)?p(e):p;g!==e&&c.current?.(g)}else l(p)},[d,e,l,c]);return[f,h]}function xT({defaultProp:e,onChange:t}){const[r,o]=y.useState(e),a=y.useRef(r),l=y.useRef(t);return gT(()=>{l.current=t},[t]),y.useEffect(()=>{a.current!==r&&(l.current?.(r),a.current=r)},[r,a]),[r,o,l]}function yT(e){return typeof e=="function"}var tw=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),vT="VisuallyHidden",ou=y.forwardRef((e,t)=>
8s.jsx(Re.span,{...e,ref:t,style:{...tw,...e.style}}));ou.displayName=vT;var bT=ou,Lm="ToastProvider",[Om,wT,jT]=Im("Toast"),[rw]=Mn("Toast",[jT]),[NT,iu]=rw(Lm),nw=e=>{const{__scopeToast:t,label:r="Notification",duration:o=5e3,swipeDirection:a="right",swipeThreshold:l=50,children:c}=e,[d,f]=y.useState(null),[h,p]=y.useState(0),g=y.useRef(!1),x=y.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${Lm}\`. Expected non-empty \`string\`.`),s.jsx(Om.Provider,{scope:t,children:s.jsx(NT,{scope:t,label:r,duration:o,swipeDirection:a,swipeThreshold:l,toastCount:h,viewport:d,onViewportChange:f,onToastAdd:y.useCallback(()=>p(v=>v+1),[]),onToastRemove:y.useCallback(()=>p(v=>v-1),[]),isFocusedToastEscapeKeyDownRef:g,isClosePausedRef:x,children:c})})};nw.displayName=Lm;var sw="ToastViewport",ST=["F8"],ph="toast.viewportPause",gh="toast.viewportResume",ow=y.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:o=ST,label:a="Notifications ({hotkey})",...l}=e,c=iu(sw,r),d=wT(r),f=y.useRef(null),h=y.useRef(null),p=y.useRef(null),g=y.useRef(null),x=ze(t,g,c.onViewportChange),v=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),N=c.toastCount>0;y.useEffect(()=>{const j=k=>{o.length!==0&&o.every(T=>k[T]||k.code===T)&&g.current?.focus()};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},[o]),y.useEffect(()=>{const j=f.current,k=g.current;if(N&&j&&k){const C=()=>{if(!c.isClosePausedRef.current){const D=new CustomEvent(ph);k.dispatchEvent(D),c.isClosePausedRef.current=!0}},T=()=>{if(c.isClosePausedRef.current){const D=new CustomEvent(gh);k.dispatchEvent(D),c.isClosePausedRef.current=!1}},A=D=>{!j.contains(D.relatedTarget)&&T()},E=()=>{j.contains(document.activeElement)||T()};return j.addEventListener("focusin",C),j.addEventListener("focusout",A),j.addEventListener("pointermove",C),j.addEventListener("pointerleave",E),window.addEventListener("blur",C),window.addEventListener("focus",T),()=>{j.removeEventListener("focusin",C),j.removeEventListener("focusout",A),j.removeEventListener("pointermove",C),j.removeEventListener("pointerleave",E),window.removeEventListener("blur",C),window.removeEventListener("focus",T)}}},[N,c.isClosePausedRef]);const w=y.useCallback(({tabbingDirection:j})=>{const C=d().map(T=>{const A=T.ref.current,E=[A,...OT(A)];return j==="forwards"?E:E.reverse()});return(j==="forwards"?C.reverse():C).flat()},[d]);return y.useEffect(()=>{const j=g.current;if(j){const k=C=>{const T=C.altKey||C.ctrlKey||C.metaKey;if(C.key==="Tab"&&!T){const E=document.activeElement,D=C.shiftKey;if(C.target===j&&D){h.current?.focus();return}const H=w({tabbingDirection:D?"backwards":"forwards"}),z=H.findIndex(G=>G===E);Nf(H.slice(z+1))?C.preventDefault():D?h.current?.focus():p.current?.focus()}};return j.addEventListener("keydown",k),()=>j.removeEventListener("keydown",k)}},[d,w]),s.jsxs(dT,{ref:f,role:"region","aria-label":a.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:N?void 0:"none"},children:[N&&s.jsx(xh,{ref:h,onFocusFromOutsideViewport:()=>{const j=w({tabbingDirection:"forwards"});Nf(j)}}),s.jsx(Om.Slot,{scope:r,children:s.jsx(Re.ol,{tabIndex:-1,...l,ref:x})}),N&&s.jsx(xh,{ref:p,onFocusFromOutsideViewport:()=>{const j=w({tabbingDirection:"backwards"});Nf(j)}})]})});ow.displayName=sw;var iw="ToastFocusProxy",xh=y.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:o,...a}=e,l=iu(iw,r);return s.jsx(ou,{"aria-hidden":!0,tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:c=>{const d=c.relatedTarget;!l.viewport?.contains(d)&&o()}})});xh.displayName=iw;var _a="Toast",kT="toast.swipeStart",CT="toast.swipeMove",TT="toast.swipeCancel",ET="toast.swipeEnd",aw=y.forwardRef((e,t)=>{const{forceMount:r,open:o,defaultOpen:a,onOpenChange:l,...c}=e,[d,f]=Go({prop:o,defaultProp:a??!0,onChange:l,caller:_a});return s.jsx(io,{present:r||d,children:s.jsx(RT,{open:d,...c,ref:t,onClose:()=>f(!1),onPause:Cr(e.onPause),onResume:Cr(e.onResume),onSwipeStart:Se(e.onSwipeStart,h=>{h.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Se(e.onSwipeMove,h=>{const{x:p,y:g}=h.detail.delta;
8h.currentTarget.setAttribute("data-swipe","move"),h.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${p}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${g}px`)}),onSwipeCancel:Se(e.onSwipeCancel,h=>{h.currentTarget.setAttribute("data-swipe","cancel"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Se(e.onSwipeEnd,h=>{const{x:p,y:g}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","end"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${p}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${g}px`),f(!1)})})})});aw.displayName=_a;var[PT,AT]=rw(_a,{onClose(){}}),RT=y.forwardRef((e,t)=>{const{__scopeToast:r,type:o="foreground",duration:a,open:l,onClose:c,onEscapeKeyDown:d,onPause:f,onResume:h,onSwipeStart:p,onSwipeMove:g,onSwipeCancel:x,onSwipeEnd:v,...N}=e,w=iu(_a,r),[j,k]=y.useState(null),C=ze(t,F=>k(F)),T=y.useRef(null),A=y.useRef(null),E=a||w.duration,D=y.useRef(0),I=y.useRef(E),_=y.useRef(0),{onToastAdd:H,onToastRemove:z}=w,G=Cr(()=>{j?.contains(document.activeElement)&&w.viewport?.focus(),c()}),q=y.useCallback(F=>{!F||F===1/0||(window.clearTimeout(_.current),D.current=new Date().getTime(),_.current=window.setTimeout(G,F))},[G]);y.useEffect(()=>{const F=w.viewport;if(F){const J=()=>{q(I.current),h?.()},Z=()=>{const oe=new Date().getTime()-D.current;I.current=I.current-oe,window.clearTimeout(_.current),f?.()};return F.addEventListener(ph,Z),F.addEventListener(gh,J),()=>{F.removeEventListener(ph,Z),F.removeEventListener(gh,J)}}},[w.viewport,E,f,h,q]),y.useEffect(()=>{l&&!w.isClosePausedRef.current&&q(E)},[l,E,w.isClosePausedRef,q]),y.useEffect(()=>(H(),()=>z()),[H,z]);const le=y.useMemo(()=>j?mw(j):null,[j]);return w.viewport?s.jsxs(s.Fragment,{children:[le&&s.jsx(MT,{__scopeToast:r,role:"status","aria-live":o==="foreground"?"assertive":"polite","aria-atomic":!0,children:le}),s.jsx(PT,{scope:r,onClose:G,children:si.createPortal(s.jsx(Om.ItemSlot,{scope:r,children:s.jsx(uT,{asChild:!0,onEscapeKeyDown:Se(d,()=>{w.isFocusedToastEscapeKeyDownRef.current||G(),w.isFocusedToastEscapeKeyDownRef.current=!1}),children:s.jsx(Re.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":l?"open":"closed","data-swipe-direction":w.swipeDirection,...N,ref:C,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Se(e.onKeyDown,F=>{F.key==="Escape"&&(d?.(F.nativeEvent),F.nativeEvent.defaultPrevented||(w.isFocusedToastEscapeKeyDownRef.current=!0,G()))}),onPointerDown:Se(e.onPointerDown,F=>{F.button===0&&(T.current={x:F.clientX,y:F.clientY})}),onPointerMove:Se(e.onPointerMove,F=>{if(!T.current)return;const J=F.clientX-T.current.x,Z=F.clientY-T.current.y,oe=!!A.current,$=["left","right"].includes(w.swipeDirection),W=["left","up"].includes(w.swipeDirection)?Math.min:Math.max,K=$?W(0,J):0,M=$?0:W(0,Z),B=F.pointerType==="touch"?10:2,Q={x:K,y:M},ne={originalEvent:F,delta:Q};oe?(A.current=Q,rc(CT,g,ne,{discrete:!1})):qy(Q,w.swipeDirection,B)?(A.current=Q,rc(kT,p,ne,{discrete:!1}),F.target.setPointerCapture(F.pointerId)):(Math.abs(J)>B||Math.abs(Z)>B)&&(T.current=null)}),onPointerUp:Se(e.onPointerUp,F=>{const J=A.current,Z=F.target;if(Z.hasPointerCapture(F.pointerId)&&Z.releasePointerCapture(F.pointerId),A.current=null,T.current=null,J){const oe=F.currentTarget,$={originalEvent:F,delta:J};qy(J,w.swipeDirection,w.swipeThreshold)?rc(ET,v,$,{discrete:!0}):rc(TT,x,$,{discrete:!0}),oe.addEventListener("click",W=>W.preventDefault(),{once:!0})}})})})}),w.viewport)})]}):null}),MT=e=>{const{__scopeToast:t,children:r,...o}=e,a=iu(_a,t),[l,c]=y.useState(!1),[d,f]=y.useState(!1);return IT(()=>c(!0)),y.useEffect(()=>{const h=window.setTimeout(()=>f(!0),1e3);return()=>window.clearTimeout(h)},[]),d?null:s.jsx(su,{asChild:!0,children:s.jsx(ou,{...o,children:l&&s.jsxs(s.Fragment,{children:[a.label," ",r]})})})},_T="ToastTitle",lw=y.forwardRef((e,t)=>
8{const{__scopeToast:r,...o}=e;return s.jsx(Re.div,{...o,ref:t})});lw.displayName=_T;var DT="ToastDescription",cw=y.forwardRef((e,t)=>{const{__scopeToast:r,...o}=e;return s.jsx(Re.div,{...o,ref:t})});cw.displayName=DT;var uw="ToastAction",dw=y.forwardRef((e,t)=>{const{altText:r,...o}=e;return r.trim()?s.jsx(hw,{altText:r,asChild:!0,children:s.jsx(Fm,{...o,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${uw}\`. Expected non-empty \`string\`.`),null)});dw.displayName=uw;var fw="ToastClose",Fm=y.forwardRef((e,t)=>{const{__scopeToast:r,...o}=e,a=AT(fw,r);return s.jsx(hw,{asChild:!0,children:s.jsx(Re.button,{type:"button",...o,ref:t,onClick:Se(e.onClick,a.onClose)})})});Fm.displayName=fw;var hw=y.forwardRef((e,t)=>{const{__scopeToast:r,altText:o,...a}=e;return s.jsx(Re.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...a,ref:t})});function mw(e){const t=[];return Array.from(e.childNodes).forEach(o=>{if(o.nodeType===o.TEXT_NODE&&o.textContent&&t.push(o.textContent),LT(o)){const a=o.ariaHidden||o.hidden||o.style.display==="none",l=o.dataset.radixToastAnnounceExclude==="";if(!a)if(l){const c=o.dataset.radixToastAnnounceAlt;c&&t.push(c)}else t.push(...mw(o))}}),t}function rc(e,t,r,{discrete:o}){const a=r.originalEvent.currentTarget,l=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),o?Xb(a,l):a.dispatchEvent(l)}var qy=(e,t,r=0)=>{const o=Math.abs(e.x),a=Math.abs(e.y),l=o>a;return t==="left"||t==="right"?l&&o>r:!l&&a>r};function IT(e=()=>{}){const t=Cr(e);Pt(()=>{let r=0,o=0;return r=window.requestAnimationFrame(()=>o=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(o)}},[t])}function LT(e){return e.nodeType===e.ELEMENT_NODE}function OT(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Nf(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var FT=nw,pw=ow,gw=aw,xw=lw,yw=cw,vw=dw,bw=Fm;function ww(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=ww(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function jw(){for(var e,t,r=0,o="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=ww(e))&&(o&&(o+=" "),o+=t);return o}const Qy=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Xy=jw,$m=(e,t)=>r=>{var o;if(t?.variants==null)return Xy(e,r?.class,r?.className);const{variants:a,defaultVariants:l}=t,c=Object.keys(a).map(h=>{const p=r?.[h],g=l?.[h];if(p===null)return null;const x=Qy(p)||Qy(g);return a[h][x]}),d=r&&Object.entries(r).reduce((h,p)=>{let[g,x]=p;return x===void 0||(h[g]=x),h},{}),f=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((h,p)=>{let{class:g,className:x,...v}=p;return Object.entries(v).every(N=>{let[w,j]=N;return Array.isArray(j)?j.includes({...l,...d}[w]):{...l,...d}[w]===j})?[...h,g,x]:h},[]);return Xy(e,c,f,r?.class,r?.className)};const $T=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Nw=(...e)=>e.filter((t,r,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===r).join(" ").trim();var VT={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const BT=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:a="",children:l,iconNode:c,...d},f)=>y.createElement("svg",{ref:f,...VT,width:t,height:t,stroke:e,strokeWidth:o?Number(r)*24/Number(t):r,className:Nw("lucide",a),...d},[...c.map(([h,p])=>y.createElement(h,p)),...Array.isArray(l)?l:[l]]));const ie=(e,t)=>{const r=y.forwardRef(({className:o,...a},l)=>y.createElement(BT,{ref:l,iconNode:t,className:Nw(`lucide-${$T(e)}`,o),...a}));return r.displayName=`${e}`,r};const Ko=ie("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);const mn=ie("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);const zT=ie("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);const UT=ie("AudioWaveform",[["path",{d:"M2 13a2 2 0 0 0 2-2V7a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0V4a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0v-4a2 2 0 0 1 2-2",ke
8y:"57tc96"}]]);const WT=ie("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);const yh=ie("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);const Jy=ie("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);const HT=ie("Building",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]]);const Nr=ie("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);const YT=ie("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const Sw=ie("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const oi=ie("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);const qo=ie("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const GT=ie("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);const KT=ie("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);const xa=ie("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);const qT=ie("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]]);const QT=ie("CircleUser",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]]);const XT=ie("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);const JT=ie("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const vs=ie("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);const da=ie("Cookie",[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]]);const ZT=ie("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);const Qo=ie("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);const eE=ie("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);const Dc=ie("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);const Yr=ie("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);const Da=ie("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);const vh=ie("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const tE=ie("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);const Zy=ie("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);const Vm=ie("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);const bh=ie("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);const Xo=ie("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);const rE=ie("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);const wh=ie("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);const au=ie("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);const nE=ie("Languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);const sE=ie("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);
8const oE=ie("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);const iE=ie("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);const Bm=ie("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);const aE=ie("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);const Bt=ie("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);const Ic=ie("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);const ii=ie("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);const ya=ie("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);const lE=ie("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);const cE=ie("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);const uE=ie("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);const jh=ie("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);const Lc=ie("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);const kw=ie("MicVocal",[["path",{d:"m11 7.601-5.994 8.19a1 1 0 0 0 .1 1.298l.817.818a1 1 0 0 0 1.314.087L15.09 12",key:"80a601"}],["path",{d:"M16.5 21.174C15.5 20.5 14.372 20 13 20c-2.058 0-3.928 2.356-6 2-2.072-.356-2.775-3.369-1.5-4.5",key:"j0ngtp"}],["circle",{cx:"16",cy:"7",r:"5",key:"d08jfb"}]]);const dE=ie("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);const fE=ie("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);const Nh=ie("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);const yc=ie("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);const hE=ie("MoveLeft",[["path",{d:"M6 8L2 12L6 16",key:"kyvwex"}],["path",{d:"M2 12H22",key:"1m8cig"}]]);const lu=ie("Music2",[["circle",{cx:"8",cy:"18",r:"4",key:"1fc0mg"}],["path",{d:"M12 18V2l7 4",key:"g04rme"}]]);const Oc=ie("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);const vc=ie("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]);const fs=ie("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);const cu=ie("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);const dr=ie("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);const ao=ie("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);const zm=ie("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);const uu=ie("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);const Sh=ie("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);const hs=ie("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);const du=ie("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
8y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);const mE=ie("SkipBack",[["polygon",{points:"19 20 9 12 19 4 19 20",key:"o2sva"}],["line",{x1:"5",x2:"5",y1:"19",y2:"5",key:"1ocqjk"}]]);const pE=ie("SkipForward",[["polygon",{points:"5 4 15 12 5 20 5 4",key:"16p6eg"}],["line",{x1:"19",x2:"19",y1:"5",y2:"19",key:"futhcm"}]]);const ev=ie("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);const Cw=ie("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);const Tw=ie("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);const bc=ie("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);const Ew=ie("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);const Sf=ie("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);const kh=ie("Ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]);const Ch=ie("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);const tv=ie("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const fu=ie("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);const Pw=ie("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);const ai=ie("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);const Aw=ie("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);const Rw=ie("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);const Mw=ie("VolumeX",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]);const xn=ie("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
8],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);const _w=ie("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]);const gE=ie("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);const Dw=ie("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),Um="-",xE=e=>{const t=vE(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:c=>{const d=c.split(Um);return d[0]===""&&d.length!==1&&d.shift(),Iw(d,t)||yE(c)},getConflictingClassGroupIds:(c,d)=>{const f=r[c]||[];return d&&o[c]?[...f,...o[c]]:f}}},Iw=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),a=o?Iw(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;const l=e.join(Um);return t.validators.find(({validator:c}
vendor: 5,336 bytes, line 8
8)=>c(l))?.classGroupId},rv=/^\[(.+)\]$/,yE=e=>{if(rv.test(e)){const t=rv.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},vE=e=>{const{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return wE(Object.entries(e.classGroups),r).forEach(([l,c])=>{Th(c,o,l,t)}),o},Th=(e,t,r,o)=>{e.forEach(a=>{if(typeof a=="string"){const l=a===""?t:nv(t,a);l.classGroupId=r;return}if(typeof a=="function"){if(bE(a)){Th(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([l,c])=>{Th(c,nv(t,l),r,o)})})},nv=(e,t)=>{let r=e;return t.split(Um).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},bE=e=>e.isThemeGetter,wE=(e,t)=>t?e.map(([r,o])=>{const a=o.map(l=>typeof l=="string"?t+l:typeof l=="object"?Object.fromEntries(Object.entries(l).map(([c,d])=>[t+c,d])):l);return[r,a]}):e,jE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;const a=(l,c)=>{r.set(l,c),t++,t>e&&(t=0,o=r,r=new Map)};return{get(l){let c=r.get(l);if(c!==void 0)return c;if((c=o.get(l))!==void 0)return a(l,c),c},set(l,c){r.has(l)?r.set(l,c):a(l,c)}}},Lw="!",NE=e=>{const{separator:t,experimentalParseClassName:r}=e,o=t.length===1,a=t[0],l=t.length,c=d=>{const f=[];let h=0,p=0,g;for(let j=0;j<d.length;j++){let k=d[j];if(h===0){if(k===a&&(o||d.slice(j,j+l)===t)){f.push(d.slice(p,j)),p=j+l;continue}if(k==="/"){g=j;continue}}k==="["?h++:k==="]"&&h--}const x=f.length===0?d:d.substring(p),v=x.startsWith(Lw),N=v?x.substring(1):x,w=g&&g>p?g-p:void 0;return{modifiers:f,hasImportantModifier:v,baseClassName:N,maybePostfixModifierPosition:w}};return r?d=>r({className:d,parseClassName:c}):c},SE=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},kE=e=>({cache:jE(e.cacheSize),parseClassName:NE(e),...xE(e)}),CE=/\s+/,TE=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,l=[],c=e.trim().split(CE);let d="";for(let f=c.length-1;f>=0;f-=1){const h=c[f],{modifiers:p,hasImportantModifier:g,baseClassName:x,maybePostfixModifierPosition:v}=r(h);let N=!!v,w=o(N?x.substring(0,v):x);if(!w){if(!N){d=h+(d.length>0?" "+d:d);continue}if(w=o(x),!w){d=h+(d.length>0?" "+d:d);continue}N=!1}const j=SE(p).join(":"),k=g?j+Lw:j,C=k+w;if(l.includes(C))continue;l.push(C);const T=a(w,N);for(let A=0;A<T.length;++A){const E=T[A];l.push(k+E)}d=h+(d.length>0?" "+d:d)}return d};function EE(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Ow(t))&&(o&&(o+=" "),o+=r);return o}const Ow=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Ow(e[o]))&&(r&&(r+=" "),r+=t);return r};function PE(e,...t){let r,o,a,l=c;function c(f){const h=t.reduce((p,g)=>g(p),e());return r=kE(h),o=r.cache.get,a=r.cache.set,l=d,d(f)}function d(f){const h=o(f);if(h)return h;const p=TE(f,r);return a(f,p),p}return function(){return l(EE.apply(null,arguments))}}const Ke=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Fw=/^\[(?:([a-z-]+):)?(.+)\]$/i,AE=/^\d+\/\d+$/,RE=new Set(["px","full","screen"]),ME=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_E=/\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$/,DE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,IE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,LE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Pn=e=>Bo(e)||RE.has(e)||AE.test(e),ns=e=>li(e,"length",WE),Bo=e=>!!e&&!Number.isNaN(Number(e)),kf=e=>li(e,"number",Bo),ra=e=>!!e&&Number.isInteger(Number(e)),OE=e=>e.endsWith("%")&&Bo(e.slice(0,-1)),Ae=e=>Fw.test(e),ss=e=>ME.test(e),FE=new Set(["length","size","percentage"]),$E=e=>li(e,FE,$w),VE=e=>li(e,"position",$w),BE=new Set(["image","url"]),zE=e=>li(e,BE,YE),UE=e=>li(e,"",HE),na=()=>!0,li=(e,t,r)=>{const o=Fw.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},WE=e=>_E.test(e)&&!DE.test(e),$w=()=>!1,HE=e=>IE.test(e),YE=e=>LE.test(e),GE=()=>{const e=Ke("colors"),t=Ke("spacing"),r=Ke("blur"),o=Ke("brightness"),a=Ke("borderColor"),l=Ke("borderRadius"),c=Ke("borderSpacing"),d=Ke("borderWidth"),f=Ke("contrast"),h=Ke("grayscale"),p=Ke("hueRotate"),g=Ke("invert"),x=Ke("gap"),v=Ke("gradientColorStops"),N=Ke("gradientColorStopPositions"),w=Ke("inset"),j=Ke("margin"),k=Ke("opacity"),C=Ke("padding"),T=Ke("saturate"),A=Ke("scale"),E=Ke("sepia"),D=Ke("skew"),I=Ke("space"),_=Ke("translate"),H=()=>["auto","contain","none"],z=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto",Ae,t],q=()=>[Ae,t],le=()=>["",Pn,ns],F=()=>["auto",Bo,Ae],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Z=()=>["solid","dashed","dotted","double","none"],oe=()=>["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"],W=()=>["","0",Ae],K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[Bo,Ae];return{cacheSize:500,separator:":",theme:{colors:[na],spacing:[Pn,ns],blur:["none","",ss,Ae],brightness:M(),borderColor:[e],borderRadius:["n
8one","","full",ss,Ae],borderSpacing:q(),borderWidth:le(),contrast:M(),grayscale:W(),hueRotate:M(),invert:W(),gap:q(),gradientColorStops:[e],gradientColorStopPositions:[OE,ns],inset:G(),margin:G(),opacity:M(),padding:q(),saturate:M(),scale:M(),sepia:W(),skew:M(),space:q(),translate:q()},classGroups:{aspect:[{aspect:["auto","square","video",Ae]}],container:["container"],columns:[{columns:[ss]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"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:[...J(),Ae]}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],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",ra,Ae]}],basis:[{basis:G()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ae]}],grow:[{grow:W()}],shrink:[{shrink:W()}],order:[{order:["first","last","none",ra,Ae]}],"grid-cols":[{"grid-cols":[na]}],"col-start-end":[{col:["auto",{span:["full",ra,Ae]},Ae]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[na]}],"row-start-end":[{row:["auto",{span:[ra,Ae]},Ae]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ae]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ae]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"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:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[j]}],mx:[{mx:[j]}],my:[{my:[j]}],ms:[{ms:[j]}],me:[{me:[j]}],mt:[{mt:[j]}],mr:[{mr:[j]}],mb:[{mb:[j]}],ml:[{ml:[j]}],"space-x":[{"space-x":[I]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[I]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ae,t]}],"min-w":[{"min-w":[Ae,t,"min","max","fit"]}],"max-w":[{"max-w":[Ae,t,"none","full","min","max","fit","prose",{screen:[ss]},ss]}],h:[{h:[Ae,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ae,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ae,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ae,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ss,ns]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",kf]}],"font-family":[{font:[na]}],"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-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ae]}],"line-clamp":[{"line-clamp":["none",Bo,kf]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Pn,Ae]}],"list-image":[{"list-image":["none",Ae]}],"list-style-type":[{list:["none","disc","decimal",Ae]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Pn,ns]}],"underline-offset":[{"underline-offset":["auto",Pn,Ae]}],"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:q()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ae]}],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",Ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),VE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",$E]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},zE]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[N]}
vendor: 5,183 bytes, line 8
8],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[d]}],"border-w-x":[{"border-x":[d]}],"border-w-y":[{"border-y":[d]}],"border-w-s":[{"border-s":[d]}],"border-w-e":[{"border-e":[d]}],"border-w-t":[{"border-t":[d]}],"border-w-r":[{"border-r":[d]}],"border-w-b":[{"border-b":[d]}],"border-w-l":[{"border-l":[d]}],"border-opacity":[{"border-opacity":[k]}],"border-style":[{border:[...Z(),"hidden"]}],"divide-x":[{"divide-x":[d]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[d]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:Z()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...Z()]}],"outline-offset":[{"outline-offset":[Pn,Ae]}],"outline-w":[{outline:[Pn,ns]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[Pn,ns]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ss,UE]}],"shadow-color":[{shadow:[na]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...oe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":oe()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",ss,Ae]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[g]}],saturate:[{saturate:[T]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[T]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ae]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",Ae]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ae]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[ra,Ae]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[D]}],"skew-y":[{"skew-y":[D]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ae]}],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",Ae]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":q()}],"scroll-mx":[{"scroll-mx":q()}],"scroll-my":[{"scroll-my":q()}],"scroll-ms":[{"scroll-ms":q()}],"scroll-me":[{"scroll-me":q()}],"scroll-mt":[{"scroll-mt":q()}],"scroll-mr":[{"scroll-mr":q()}],"scroll-mb":[{"scroll-mb":q()}],"scroll-ml":[{"scroll-ml":q()}],"scroll-p":[{"scroll-p":q()}],"scroll-px":[{"scroll-px":q()}],"scroll-py":[{"scroll-py":q()}],"scroll-ps":[{"scroll-ps":q()}],"scroll-pe":[{"scroll-pe":q()}],"scroll-pt":[{"scroll-pt":q()}],"scroll-pr":[{"scroll-pr":q()}],"scroll-pb":[{"scroll-pb":q()}],"scroll-pl":[{"scroll-pl":q()}],"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"]}
8],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",Ae]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Pn,ns,kf]}],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"]}}},KE=PE(GE);function _e(...e){return KE(jw(e))}function Gr(e){const t=new Date,r=t.toLocaleDateString("en-US",{weekday:"long"}).toUpperCase(),o=r.substring(0,3),a=e.days.toUpperCase();let l=!1;if(a.includes("MON-FRI")||a.includes("MONDAY-FRIDAY")||a.includes("MONDAY - FRIDAY")?l=["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY"].includes(r):a.includes("SAT-SUN")||a.includes("SATURDAY-SUNDAY")?l=["SATURDAY","SUNDAY"].includes(r):l=a.includes(r)||a.includes(o),!l)return!1;const c=/(\d{1,2}):(\d{2})\s*(am|pm)\s*-\s*(\d{1,2}):(\d{2})\s*(am|pm)/i,d=e.time.match(c);if(!d)return!1;const[,f,h,p,g,x,v]=d;let N=parseInt(f,10);p.toLowerCase()==="pm"&&N<12&&(N+=12),p.toLowerCase()==="am"&&N===12&&(N=0);let w=parseInt(g,10);v.toLowerCase()==="pm"&&w<12&&(w+=12),v.toLowerCase()==="am"&&w===12&&(w=0);const j=parseInt(h,10),k=parseInt(x,10),C=N*60+j,T=w*60+k,A=t.getHours()*60+t.getMinutes();return T<C?A>=C||A<=T:A>=C&&A<T}const qE=FT,Vw=y.forwardRef(({className:e,...t},r)=>s.jsx(pw,{ref:r,className:_e("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Vw.displayName=pw.displayName;const QE=$m("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Bw=y.forwardRef(({className:e,variant:t,...r},o)=>s.jsx(gw,{ref:o,className:_e(QE({variant:t}),e),...r}));Bw.displayName=gw.displayName;const XE=y.forwardRef(({className:e,...t},r)=>s.jsx(vw,{ref:r,className:_e("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));XE.displayName=vw.displayName;const zw=y.forwardRef(({className:e,...t},r)=>s.jsx(bw,{ref:r,className:_e("absolute right-2 top-2 rounded-md p-1 text-foreground
8/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:s.jsx(xn,{className:"h-4 w-4"})}));zw.displayName=bw.displayName;const Uw=y.forwardRef(({className:e,...t},r)=>s.jsx(xw,{ref:r,className:_e("text-sm font-semibold",e),...t}));Uw.displayName=xw.displayName;const Ww=y.forwardRef(({className:e,...t},r)=>s.jsx(yw,{ref:r,className:_e("text-sm opacity-90",e),...t}));Ww.displayName=yw.displayName;function JE(){const{toasts:e}=ys();return s.jsxs(qE,{children:[e.map(function({id:t,title:r,description:o,action:a,...l}){return s.jsxs(Bw,{...l,children:[s.jsxs("div",{className:"grid gap-1",children:[r&&s.jsx(Uw,{children:r}),o&&s.jsx(Ww,{children:o})]}),a,s.jsx(zw,{})]},t)}),s.jsx(Vw,{})]})}var Fc=["light","dark"],Wm="(prefers-color-scheme: dark)",ZE=typeof window>"u",Hm=y.createContext(void 0),e5={setTheme:e=>{},themes:[]},Ym=()=>{var e;return(e=y.useContext(Hm))!=null?e:e5},t5=e=>y.useContext(Hm)?e.children:y.createElement(n5,{...e}),r5=["light","dark"],n5=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:o=!0,storageKey:a="theme",themes:l=r5,defaultTheme:c=r?"system":"light",attribute:d="data-theme",value:f,children:h,nonce:p})=>{let[g,x]=y.useState(()=>sv(a,c)),[v,N]=y.useState(()=>sv(a)),w=f?Object.values(f):l,j=y.useCallback(A=>{let E=A;if(!E)return;A==="system"&&r&&(E=ov());let D=f?f[E]:E,I=t?o5():null,_=document.documentElement;if(d==="class"?(_.classList.remove(...w),D&&_.classList.add(D)):D?_.setAttribute(d,D):_.removeAttribute(d),o){let H=Fc.includes(c)?c:null,z=Fc.includes(E)?E:H;_.style.colorScheme=z}I?.()},[]),k=y.useCallback(A=>{let E=typeof A=="function"?A(A):A;x(E);try{localStorage.setItem(a,E)}catch{}},[e]),C=y.useCallback(A=>{let E=ov(A);N(E),g==="system"&&r&&!e&&j("system")},[g,e]);y.useEffect(()=>{let A=window.matchMedia(Wm);return A.addListener(C),C(A),()=>A.removeListener(C)},[C]),y.useEffect(()=>{let A=E=>{if(E.key!==a)return;let D=E.newValue||c;k(D)};return window.addEventListener("storage",A),()=>window.removeEventListener("storage",A)},[k]),y.useEffect(()=>{j(e??g)},[e,g]);let T=y.useMemo(()=>({theme:g,setTheme:k,forcedTheme:e,resolvedTheme:g==="system"?v:g,themes:r?[...l,"system"]:l,systemTheme:r?v:void 0}),[g,k,e,v,r,l]);return y.createElement(Hm.Provider,{value:T},y.createElement(s5,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:r,enableColorScheme:o,storageKey:a,themes:l,defaultTheme:c,attribute:d,value:f,children:h,attrs:w,nonce:p}),h)},s5=y.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:o,enableColorScheme:a,defaultTheme:l,value:c,attrs:d,nonce:f})=>{let h=l==="system",p=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${d.map(N=>`'${N}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,g=a?Fc.includes(l)&&l?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${l}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",x=(N,w=!1,j=!0)=>{let k=c?c[N]:N,C=w?N+"|| ''":`'${k}'`,T="";return a&&j&&!w&&Fc.includes(N)&&(T+=`d.style.colorScheme = '${N}';`),r==="class"?w||k?T+=`c.add(${C})`:T+="null":k&&(T+=`d[s](n,${C})`),T},v=e?`!function(){${p}${x(e)}}()`:o?`!function(){try{${p}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${h})){var t='${Wm}',m=window.matchMedia(t);if(m.media!==t||m.matches){${x("dark")}}else{${x("light")}}}else if(e){${c?`var x=${JSON.stringify(c)};`:""}${x(c?"x[e]":"e",!0)}}${h?"":"else{"+x(l,!1,!1)+"}"}${g}}catch(e){}}()`:`!function(){try{${p}var e=localStorage.getItem('${t}');if(e){${c?`var x=${JSON.stringify(c)};`:""}${x(c?"x[e]":"e",!0)}}else{${x(l,!1,!1)};}${g}}catch(t){}}();`;return y.createElement("script",{nonce:f,dangerouslySetInnerHTML:{__html:v}})}),sv=(e,t)=>{if(ZE)return;let r;try{r=localStorage.getItem(e)||void 0}catch{}return r||t},o5=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},ov=e=>
8(e||(e=window.matchMedia(Wm)),e.matches?"dark":"light"),i5=e=>{switch(e){case"success":return c5;case"info":return d5;case"warning":return u5;case"error":return f5;default:return null}},a5=Array(12).fill(0),l5=({visible:e,className:t})=>ee.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},ee.createElement("div",{className:"sonner-spinner"},a5.map((r,o)=>ee.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${o}`})))),c5=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.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"})),u5=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ee.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"})),d5=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.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"})),f5=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.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"})),h5=ee.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"},ee.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ee.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),m5=()=>{let[e,t]=ee.useState(document.hidden);return ee.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},Eh=1,p5=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:r,...o}=e,a=typeof e?.id=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Eh++,l=this.toasts.find(d=>d.id===a),c=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),l?this.toasts=this.toasts.map(d=>d.id===a?(this.publish({...d,...e,id:a,title:r}),{...d,...e,id:a,dismissible:c,title:r}):d):this.addToast({title:r,...o,dismissible:c,id:a}),a},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(r=>r({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)=>
8this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let r;t.loading!==void 0&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let o=e instanceof Promise?e:e(),a=r!==void 0,l,c=o.then(async f=>{if(l=["resolve",f],ee.isValidElement(f))a=!1,this.create({id:r,type:"default",message:f});else if(x5(f)&&!f.ok){a=!1;let h=typeof t.error=="function"?await t.error(`HTTP error! status: ${f.status}`):t.error,p=typeof t.description=="function"?await t.description(`HTTP error! status: ${f.status}`):t.description;this.create({id:r,type:"error",message:h,description:p})}else if(t.success!==void 0){a=!1;let h=typeof t.success=="function"?await t.success(f):t.success,p=typeof t.description=="function"?await t.description(f):t.description;this.create({id:r,type:"success",message:h,description:p})}}).catch(async f=>{if(l=["reject",f],t.error!==void 0){a=!1;let h=typeof t.error=="function"?await t.error(f):t.error,p=typeof t.description=="function"?await t.description(f):t.description;this.create({id:r,type:"error",message:h,description:p})}}).finally(()=>{var f;a&&(this.dismiss(r),r=void 0),(f=t.finally)==null||f.call(t)}),d=()=>new Promise((f,h)=>c.then(()=>l[0]==="reject"?h(l[1]):f(l[1])).catch(h));return typeof r!="string"&&typeof r!="number"?{unwrap:d}:Object.assign(r,{unwrap:d})},this.custom=(e,t)=>{let r=t?.id||Eh++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},tr=new p5,g5=(e,t)=>{let r=t?.id||Eh++;return tr.addToast({title:e,...t,id:r}),r},x5=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",y5=g5,v5=()=>tr.toasts,b5=()=>tr.getActiveToasts(),as=Object.assign(y5,{success:tr.success,info:tr.info,warning:tr.warning,error:tr.error,custom:tr.custom,message:tr.message,promise:tr.promise,dismiss:tr.dismiss,loading:tr.loading},{getHistory:v5,getToasts:b5});function w5(e,{insertAt:t}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",t==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}w5(`: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:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-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;
8left: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:-50%;right:-50%;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}
8: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-y, 0px)) translate(var(--swipe-amount-x, 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-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-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-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 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%);
8--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[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%)}
9`);function nc(e){return e.label!==void 0}var j5=3,N5="32px",S5="16px",iv=4e3,k5=356,C5=14,T5=20,E5=200;function $r(...e){return e.filter(Boolean).join(" ")}function P5(e){let[t,r]=e.split("-"),o=[];return t&&o.push(t),r&&o.push(r),o}var A5=e=>{var t,r,o,a,l,c,d,f,h,p,g;let{invert:x,toast:v,unstyled:N,interacting:w,setHeights:j,visibleToasts:k,heights:C,index:T,toasts:A,expanded:E,removeToast:D,defaultRichColors:I,closeButton:_,style:H,cancelButtonStyle:z,actionButtonStyle:G,className:q="",descriptionClassName:le="",duration:F,position:J,gap:Z,loadingIcon:oe,expandByDefault:$,classNames:W,icons:K,closeButtonAriaLabel:M="Close toast",pauseWhenPageIsHidden:B}=e,[Q,ne]=ee.useState(null),[pe,ge]=ee.useState(null),[X,ue]=ee.useState(!1),[we,be]=ee.useState(!1),[ve,ce]=ee.useState(!1),[Te,Ie]=ee.useState(!1),[Qe,ct]=ee.useState(!1),[ht,zt]=ee.useState(0),[Ut,Rt]=ee.useState(0),xt=ee.useRef(v.duration||F||iv),en=ee.useRef(null),Wt=ee.useRef(null),Ss=T===0,ks=T+1<=k,wt=v.type,sr=v.dismissible!==!1,Dn=v.className||"",In=v.descriptionClassName||"",jt=ee.useMemo(()=>C.findIndex(ke=>ke.toastId===v.id)||0,[C,v.id]),Tr=ee.useMemo(()=>{var ke;return(ke=v.closeButton)!=null?ke:_},[v.closeButton,_]),Ln=ee.useMemo(()=>v.duration||F||iv,[v.duration,F]),Er=ee.useRef(0),Pr=ee.useRef(0),lo=ee.useRef(0),mr=ee.useRef(null),[Cs,Ts]=J.split("-"),bn=ee.useMemo(()=>C.reduce((ke,Le,Ve)=>Ve>
9=jt?ke:ke+Le.height,0),[C,jt]),On=m5(),Ar=v.invert||x,or=wt==="loading";Pr.current=ee.useMemo(()=>jt*Z+bn,[jt,bn]),ee.useEffect(()=>{xt.current=Ln},[Ln]),ee.useEffect(()=>{ue(!0)},[]),ee.useEffect(()=>{let ke=Wt.current;if(ke){let Le=ke.getBoundingClientRect().height;return Rt(Le),j(Ve=>[{toastId:v.id,height:Le,position:v.position},...Ve]),()=>j(Ve=>Ve.filter(Lt=>Lt.toastId!==v.id))}},[j,v.id]),ee.useLayoutEffect(()=>{if(!X)return;let ke=Wt.current,Le=ke.style.height;ke.style.height="auto";let Ve=ke.getBoundingClientRect().height;ke.style.height=Le,Rt(Ve),j(Lt=>Lt.find(Yt=>Yt.toastId===v.id)?Lt.map(Yt=>Yt.toastId===v.id?{...Yt,height:Ve}:Yt):[{toastId:v.id,height:Ve,position:v.position},...Lt])},[X,v.title,v.description,j,v.id]);let Ht=ee.useCallback(()=>{be(!0),zt(Pr.current),j(ke=>ke.filter(Le=>Le.toastId!==v.id)),setTimeout(()=>{D(v)},E5)},[v,D,j,Pr]);ee.useEffect(()=>{if(v.promise&&wt==="loading"||v.duration===1/0||v.type==="loading")return;let ke;return E||w||B&&On?(()=>{if(lo.current<Er.current){let Le=new Date().getTime()-Er.current;xt.current=xt.current-Le}lo.current=new Date().getTime()})():xt.current!==1/0&&(Er.current=new Date().getTime(),ke=setTimeout(()=>{var Le;(Le=v.onAutoClose)==null||Le.call(v,v),Ht()},xt.current)),()=>clearTimeout(ke)},[E,w,v,wt,B,On,Ht]),ee.useEffect(()=>{v.delete&&Ht()},[Ht,v.delete]);function co(){var ke,Le,Ve;return K!=null&&K.loading?ee.createElement("div",{className:$r(W?.loader,(ke=v?.classNames)==null?void 0:ke.loader,"sonner-loader"),"data-visible":wt==="loading"},K.loading):oe?ee.createElement("div",{className:$r(W?.loader,(Le=v?.classNames)==null?void 0:Le.loader,"sonner-loader"),"data-visible":wt==="loading"},oe):ee.createElement(l5,{className:$r(W?.loader,(Ve=v?.classNames)==null?void 0:Ve.loader),visible:wt==="loading"})}return ee.createElement("li",{tabIndex:0,ref:Wt,className:$r(q,Dn,W?.toast,(t=v?.classNames)==null?void 0:t.toast,W?.default,W?.[wt],(r=v?.classNames)==null?void 0:r[wt]),"data-sonner-toast":"","data-rich-colors":(o=v.richColors)!=null?o:I,"data-styled":!(v.jsx||v.unstyled||N),"data-mounted":X,"data-promise":!!v.promise,"data-swiped":Qe,"data-removed":we,"data-visible":ks,"data-y-position":Cs,"data-x-position":Ts,"data-index":T,"data-front":Ss,"data-swiping":ve,"data-dismissible":sr,"data-type":wt,"data-invert":Ar,"data-swipe-out":Te,"data-swipe-direction":pe,"data-expanded":!!(E||$&&X),style:{"--index":T,"--toasts-before":T,"--z-index":A.length-T,"--offset":`${we?ht:Pr.current}px`,"--initial-height":$?"auto":`${Ut}px`,...H,...v.style},onDragEnd:()=>{ce(!1),ne(null),mr.current=null},onPointerDown:ke=>{or||!sr||(en.current=new Date,zt(Pr.current),ke.target.setPointerCapture(ke.pointerId),ke.target.tagName!=="BUTTON"&&(ce(!0),mr.current={x:ke.clientX,y:ke.clientY}))},onPointerUp:()=>{var ke,Le,Ve,Lt;if(Te||!sr)return;mr.current=null;let Yt=Number(((ke=Wt.current)==null?void 0:ke.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Gt=Number(((Le=Wt.current)==null?void 0:Le.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Rr=new Date().getTime()-((Ve=en.current)==null?void 0:Ve.getTime()),Nt=Q==="x"?Yt:Gt,tn=Math.abs(Nt)/Rr;if(Math.abs(Nt)>=T5||tn>.11){zt(Pr.current),(Lt=v.onDismiss)==null||Lt.call(v,v),ge(Q==="x"?Yt>0?"right":"left":Gt>0?"down":"up"),Ht(),Ie(!0),ct(!1);return}ce(!1),ne(null)},onPointerMove:ke=>{var Le,Ve,Lt,Yt;if(!mr.current||!sr||((Le=window.getSelection())==null?void 0:Le.toString().length)>0)return;let Gt=ke.clientY-mr.current.y,Rr=ke.clientX-mr.current.x,Nt=(Ve=e.swipeDirections)!=null?Ve:P5(J);!Q&&(Math.abs(Rr)>1||Math.abs(Gt)>1)&&ne(Math.abs(Rr)>Math.abs(Gt)?"x":"y");let tn={x:0,y:0};Q==="y"?(Nt.includes("top")||Nt.includes("bottom"))&&(Nt.includes("top")&&Gt<0||Nt.includes("bottom")&&Gt>0)&&(tn.y=Gt):Q==="x"&&(Nt.includes("left")||Nt.includes("right"))&&(Nt.includes("left")&&Rr<0||Nt.includes("right")&&Rr>0)&&(tn.x=Rr),(Math.abs(tn.x)>0||Math.abs(tn.y)>0)&&ct(!0),(Lt=Wt.current)==null||Lt.style.setProperty("--swipe-amount-x",`${tn.x}px`),(Yt=Wt.current)==null||Yt.style.setProperty("--swipe-amount-y",`${tn.y}px`)}},Tr&&!v.jsx?ee.createElement("button",{"aria-label":M,"data-disabled":or,"data-close-button":!0,onClick:or||!sr?()=>{}:()=>{var ke;Ht(),(ke=v.onDismiss)==null||ke.call(v,v)},className:$r(W?.closeButton,(a=v?.classNames)==null?void 0:a.closeButton)},(l=K?.close)!=null?l:h5):null,v.jsx||y.isValidElement(v.title)?v.jsx?v.jsx:typeof v.t
9itle=="function"?v.title():v.title:ee.createElement(ee.Fragment,null,wt||v.icon||v.promise?ee.createElement("div",{"data-icon":"",className:$r(W?.icon,(c=v?.classNames)==null?void 0:c.icon)},v.promise||v.type==="loading"&&!v.icon?v.icon||co():null,v.type!=="loading"?v.icon||K?.[wt]||i5(wt):null):null,ee.createElement("div",{"data-content":"",className:$r(W?.content,(d=v?.classNames)==null?void 0:d.content)},ee.createElement("div",{"data-title":"",className:$r(W?.title,(f=v?.classNames)==null?void 0:f.title)},typeof v.title=="function"?v.title():v.title),v.description?ee.createElement("div",{"data-description":"",className:$r(le,In,W?.description,(h=v?.classNames)==null?void 0:h.description)},typeof v.description=="function"?v.description():v.description):null),y.isValidElement(v.cancel)?v.cancel:v.cancel&&nc(v.cancel)?ee.createElement("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||z,onClick:ke=>{var Le,Ve;nc(v.cancel)&&sr&&((Ve=(Le=v.cancel).onClick)==null||Ve.call(Le,ke),Ht())},className:$r(W?.cancelButton,(p=v?.classNames)==null?void 0:p.cancelButton)},v.cancel.label):null,y.isValidElement(v.action)?v.action:v.action&&nc(v.action)?ee.createElement("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||G,onClick:ke=>{var Le,Ve;nc(v.action)&&((Ve=(Le=v.action).onClick)==null||Ve.call(Le,ke),!ke.defaultPrevented&&Ht())},className:$r(W?.actionButton,(g=v?.classNames)==null?void 0:g.actionButton)},v.action.label):null))};function av(){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}function R5(e,t){let r={};return[e,t].forEach((o,a)=>{let l=a===1,c=l?"--mobile-offset":"--offset",d=l?S5:N5;function f(h){["top","right","bottom","left"].forEach(p=>{r[`${c}-${p}`]=typeof h=="number"?`${h}px`:h})}typeof o=="number"||typeof o=="string"?f(o):typeof o=="object"?["top","right","bottom","left"].forEach(h=>{o[h]===void 0?r[`${c}-${h}`]=d:r[`${c}-${h}`]=typeof o[h]=="number"?`${o[h]}px`:o[h]}):f(d)}),r}var M5=y.forwardRef(function(e,t){let{invert:r,position:o="bottom-right",hotkey:a=["altKey","KeyT"],expand:l,closeButton:c,className:d,offset:f,mobileOffset:h,theme:p="light",richColors:g,duration:x,style:v,visibleToasts:N=j5,toastOptions:w,dir:j=av(),gap:k=C5,loadingIcon:C,icons:T,containerAriaLabel:A="Notifications",pauseWhenPageIsHidden:E}=e,[D,I]=ee.useState([]),_=ee.useMemo(()=>Array.from(new Set([o].concat(D.filter(B=>B.position).map(B=>B.position)))),[D,o]),[H,z]=ee.useState([]),[G,q]=ee.useState(!1),[le,F]=ee.useState(!1),[J,Z]=ee.useState(p!=="system"?p:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),oe=ee.useRef(null),$=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),W=ee.useRef(null),K=ee.useRef(!1),M=ee.useCallback(B=>{I(Q=>{var ne;return(ne=Q.find(pe=>pe.id===B.id))!=null&&ne.delete||tr.dismiss(B.id),Q.filter(({id:pe})=>pe!==B.id)})},[]);return ee.useEffect(()=>tr.subscribe(B=>{if(B.dismiss){I(Q=>Q.map(ne=>ne.id===B.id?{...ne,delete:!0}:ne));return}setTimeout(()=>{Kb.flushSync(()=>{I(Q=>{let ne=Q.findIndex(pe=>pe.id===B.id);return ne!==-1?[...Q.slice(0,ne),{...Q[ne],...B},...Q.slice(ne+1)]:[B,...Q]})})})}),[]),ee.useEffect(()=>{if(p!=="system"){Z(p);return}if(p==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Z("dark"):Z("light")),typeof window>"u")return;let B=window.matchMedia("(prefers-color-scheme: dark)");try{B.addEventListener("change",({matches:Q})=>{Z(Q?"dark":"light")})}catch{B.addListener(({matches:ne})=>{try{Z(ne?"dark":"light")}catch(pe){console.error(pe)}})}},[p]),ee.useEffect(()=>{D.length<=1&&q(!1)},[D]),ee.useEffect(()=>{let B=Q=>{var ne,pe;a.every(ge=>Q[ge]||Q.code===ge)&&(q(!0),(ne=oe.current)==null||ne.focus()),Q.code==="Escape"&&(document.activeElement===oe.current||(pe=oe.current)!=null&&pe.contains(document.activeElement))&&q(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[a]),ee.useEffect(()=>{if(oe.current)return()=>{W.current&&(W.current.focus({preventScroll:!0}),W.current=null,K.current=!1)}},[oe.current]),ee.createElement("section",{ref:t,"aria-label":`${A} ${$}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},_.map((B,Q)=>{var ne;let[pe,ge]=B.split("-");return D.length?ee.createElement("ol",{key:B,dir:j==="auto"?av():j,tabIndex:-1,ref:oe,className:d,"data-sonner-toaster":!0,"data-theme":J,"data-y-position":pe,"data-lifted":G&&D.length>1&&!l,"data-x-position":ge,style:{"--front-toast-height":`${((ne=H[0])==null?void 0:ne.height)||0}px`,"--width":`${k5}px`,"--gap":`${k}
9px`,...v,...R5(f,h)},onBlur:X=>{K.current&&!X.currentTarget.contains(X.relatedTarget)&&(K.current=!1,W.current&&(W.current.focus({preventScroll:!0}),W.current=null))},onFocus:X=>{X.target instanceof HTMLElement&&X.target.dataset.dismissible==="false"||K.current||(K.current=!0,W.current=X.relatedTarget)},onMouseEnter:()=>q(!0),onMouseMove:()=>q(!0),onMouseLeave:()=>{le||q(!1)},onDragEnd:()=>q(!1),onPointerDown:X=>{X.target instanceof HTMLElement&&X.target.dataset.dismissible==="false"||F(!0)},onPointerUp:()=>F(!1)},D.filter(X=>!X.position&&Q===0||X.position===B).map((X,ue)=>{var we,be;return ee.createElement(A5,{key:X.id,icons:T,index:ue,toast:X,defaultRichColors:g,duration:(we=w?.duration)!=null?we:x,className:w?.className,descriptionClassName:w?.descriptionClassName,invert:r,visibleToasts:N,closeButton:(be=w?.closeButton)!=null?be:c,interacting:le,position:B,style:w?.style,unstyled:w?.unstyled,classNames:w?.classNames,cancelButtonStyle:w?.cancelButtonStyle,actionButtonStyle:w?.actionButtonStyle,removeToast:M,toasts:D.filter(ve=>ve.position==X.position),heights:H.filter(ve=>ve.position==X.position),setHeights:z,expandByDefault:l,gap:k,loadingIcon:C,expanded:G,pauseWhenPageIsHidden:E,swipeDirections:e.swipeDirections})})):null}))});const _5=({...e})=>{const{theme:t="system"}=Ym();return s.jsx(M5,{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})};var D5=Dm[" useId ".trim().toString()]||(()=>{}),I5=0;function Ys(e){const[t,r]=y.useState(D5());return Pt(()=>{r(o=>o??String(I5++))},[e]),t?`radix-${t}`:""}
9const L5=["top","right","bottom","left"],ms=Math.min,ur=Math.max,$c=Math.round,sc=Math.floor,fn=e=>({x:e,y:e}),O5={left:"right",right:"left",bottom:"top",top:"bottom"},F5={start:"end",end:"start"};function Ph(e,t,r){return ur(e,ms(t,r))}function An(e,t){return typeof e=="function"?e(t):e}function Rn(e){return e.split("-")[0]}function ci(e){return e.split("-")[1]}function Gm(e){return e==="x"?"y":"x"}function Km(e){return e==="y"?"height":"width"}const $5=new Set(["top","bottom"]);function dn(e){return $5.has(Rn(e))?"y":"x"}function qm(e){return Gm(dn(e))}function V5(e,t,r){r===void 0&&(r=!1);const o=ci(e),a=qm(e),l=Km(a);let c=a==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(c=Vc(c)),[c,Vc(c)]}function B5(e){const t=Vc(e);return[Ah(e),t,Ah(t)]}function Ah(e){return e.replace(/start|end/g,t=>F5[t])}const lv=["left","right"],cv=["right","left"],z5=["top","bottom"],U5=["bottom","top"];function W5(e,t,r){switch(e){case"top":case"bottom":return r?t?cv:lv:t?lv:cv;case"left":case"right":return t?z5:U5;default:return[]}}function H5(e,t,r,o){const a=ci(e);let l=W5(Rn(e),r==="start",o);return a&&(l=l.map(c=>c+"-"+a),t&&(l=l.concat(l.map(Ah)))),l}function Vc(e){return e.replace(/left|right|bottom|top/g,t=>O5[t])}function Y5(e){return{top:0,right:0,bottom:0,left:0,...e}}function Hw(e){return typeof e!="number"?Y5(e):{top:e,right:e,bottom:e,left:e}}function Bc(e){const{x:t,y:r,width:o,height:a}=e;return{width:o,height:a,top:r,left:t,right:t+o,bottom:r+a,x:t,y:r}}function uv(e,t,r){let{reference:o,floating:a}=e;const l=dn(t),c=qm(t),d=Km(c),f=Rn(t),h=l==="y",p=o.x+o.width/2-a.width/2,g=o.y+o.height/2-a.height/2,x=o[d]/2-a[d]/2;let v;switch(f){case"top":v={x:p,y:o.y-a.height};break;case"bottom":v={x:p,y:o.y+o.height};break;case"right":v={x:o.x+o.width,y:g};break;case"left":v={x:o.x-a.width,y:g};break;default:v={x:o.x,y:o.y}}switch(ci(t)){case"start":v[c]-=x*(r&&h?-1:1);break;case"end":v[c]+=x*(r&&h?-1:1);break}return v}const G5=async(e,t,r)=>{const{placement:o="bottom",strategy:a="absolute",middleware:l=[],platform:c}=r,d=l.filter(Boolean),f=await(c.isRTL==null?void 0:c.isRTL(t));let h=await c.getElementRects({reference:e,floating:t,strategy:a}),{x:p,y:g}=uv(h,o,f),x=o,v={},N=0;for(let w=0;w<d.length;w++){const{name:j,fn:k}=d[w],{x:C,y:T,data:A,reset:E}=await k({x:p,y:g,initialPlacement:o,placement:x,strategy:a,middlewareData:v,rects:h,platform:c,elements:{reference:e,floating:t}});p=C??p,g=T??g,v={...v,[j]:{...v[j],...A}},E&&N<=50&&(N++,typeof E=="object"&&(E.placement&&(x=E.placement),E.rects&&(h=E.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:a}):E.rects),{x:p,y:g}=uv(h,x,f)),w=-1)}return{x:p,y:g,placement:x,strategy:a,middlewareData:v}};async function va(e,t){var r;t===void 0&&(t={});const{x:o,y:a,platform:l,rects:c,elements:d,strategy:f}=e,{boundary:h="clippingAncestors",rootBoundary:p="viewport",elementContext:g="floating",altBoundary:x=!1,padding:v=0}=An(t,e),N=Hw(v),j=d[x?g==="floating"?"reference":"floating":g],k=Bc(await l.getClippingRect({element:(r=await(l.isElement==null?void 0:l.isElement(j)))==null||r?j:j.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(d.floating)),boundary:h,rootBoundary:p,strategy:f})),C=g==="floating"?{x:o,y:a,width:c.floating.width,height:c.floating.height}:c.reference,T=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d.floating)),A=await(l.isElement==null?void 0:l.isElement(T))?await(l.getScale==null?void 0:l.getScale(T))||{x:1,y:1}:{x:1,y:1},E=Bc(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:C,offsetParent:T,strategy:f}):C);return{top:(k.top-E.top+N.top)/A.y,bottom:(E.bottom-k.bottom+N.bottom)/A.y,left:(k.left-E.left+N.left)/A.x,right:(E.right-k.right+N.right)/A.x}}const K5=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:a,rects:l,platform:c,elements:d,middlewareData:f}=t,{element:h,padding:p=0}=An(e,t)||{};if(h==null)return{};const g=Hw(p),x={x:r,y:o},v=qm(a),N=Km(v),w=await c.getDimensions(h),j=v==="y",k=j?"top":"left",C=j?"bottom":"right",T=j?"clientHeight":"clientWidth",A=l.reference[N]+l.reference[v]-x[v]-l.floating[N],E=x[v]-l.reference[v],D=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h));let I=D?D[T]:0;(!I||!await(c.isElement==null?void 0:c.isElement(D)))&&(I=d.floating[T]||l.floating[N]);const _=A/2-E/2,H=I/2-w[N]/2-1,z=ms(g[k],H),G=ms(g[C],H),q=z,le=I-w[N]-G,F=I/2-w[N]/2+_,J=Ph(q,F,le),Z=!f.arrow&&ci(a)!=null&&F!==J&&l.reference[N]/2-(F<q?z:G)-w[N]/2<0,oe=Z?F<q?F-q:F-le:0;return{[v]:x[v]+oe,data:{[v]:J,centerOffset:F-J-oe,...Z&&{alignmentOffset:oe}},reset:Z}}}),q5=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:a,middlewareData:l,rects:c,initialPlacement:d,platform:f,elements:h}=t,{mainAxis:p=!0,crossAxis:g=!0,fallbackPlacements:x,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:w=!0,...j}
9=An(e,t);if((r=l.arrow)!=null&&r.alignmentOffset)return{};const k=Rn(a),C=dn(d),T=Rn(d)===d,A=await(f.isRTL==null?void 0:f.isRTL(h.floating)),E=x||(T||!w?[Vc(d)]:B5(d)),D=N!=="none";!x&&D&&E.push(...H5(d,w,N,A));const I=[d,...E],_=await va(t,j),H=[];let z=((o=l.flip)==null?void 0:o.overflows)||[];if(p&&H.push(_[k]),g){const F=V5(a,c,A);H.push(_[F[0]],_[F[1]])}if(z=[...z,{placement:a,overflows:H}],!H.every(F=>F<=0)){var G,q;const F=(((G=l.flip)==null?void 0:G.index)||0)+1,J=I[F];if(J&&(!(g==="alignment"?C!==dn(J):!1)||z.every($=>$.overflows[0]>0&&dn($.placement)===C)))return{data:{index:F,overflows:z},reset:{placement:J}};let Z=(q=z.filter(oe=>oe.overflows[0]<=0).sort((oe,$)=>oe.overflows[1]-$.overflows[1])[0])==null?void 0:q.placement;if(!Z)switch(v){case"bestFit":{var le;const oe=(le=z.filter($=>{if(D){const W=dn($.placement);return W===C||W==="y"}return!0}).map($=>[$.placement,$.overflows.filter(W=>W>0).reduce((W,K)=>W+K,0)]).sort(($,W)=>$[1]-W[1])[0])==null?void 0:le[0];oe&&(Z=oe);break}case"initialPlacement":Z=d;break}if(a!==Z)return{reset:{placement:Z}}}return{}}}};function dv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fv(e){return L5.some(t=>e[t]>=0)}const Q5=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:o="referenceHidden",...a}=An(e,t);switch(o){case"referenceHidden":{const l=await va(t,{...a,elementContext:"reference"}),c=dv(l,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:fv(c)}}}case"escaped":{const l=await va(t,{...a,altBoundary:!0}),c=dv(l,r.floating);return{data:{escapedOffsets:c,escaped:fv(c)}}}default:return{}}}}},Yw=new Set(["left","top"]);async function X5(e,t){const{placement:r,platform:o,elements:a}=e,l=await(o.isRTL==null?void 0:o.isRTL(a.floating)),c=Rn(r),d=ci(r),f=dn(r)==="y",h=Yw.has(c)?-1:1,p=l&&f?-1:1,g=An(t,e);let{mainAxis:x,crossAxis:v,alignmentAxis:N}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return d&&typeof N=="number"&&(v=d==="end"?N*-1:N),f?{x:v*p,y:x*h}:{x:x*h,y:v*p}}const J5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:a,y:l,placement:c,middlewareData:d}=t,f=await X5(t,e);return c===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:a+f.x,y:l+f.y,data:{...f,placement:c}}}}},Z5=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:a}=t,{mainAxis:l=!0,crossAxis:c=!1,limiter:d={fn:j=>{let{x:k,y:C}=j;return{x:k,y:C}}},...f}=An(e,t),h={x:r,y:o},p=await va(t,f),g=dn(Rn(a)),x=Gm(g);let v=h[x],N=h[g];if(l){const j=x==="y"?"top":"left",k=x==="y"?"bottom":"right",C=v+p[j],T=v-p[k];v=Ph(C,v,T)}if(c){const j=g==="y"?"top":"left",k=g==="y"?"bottom":"right",C=N+p[j],T=N-p[k];N=Ph(C,N,T)}const w=d.fn({...t,[x]:v,[g]:N});return{...w,data:{x:w.x-r,y:w.y-o,enabled:{[x]:l,[g]:c}}}}}},eP=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:o,placement:a,rects:l,middlewareData:c}=t,{offset:d=0,mainAxis:f=!0,crossAxis:h=!0}=An(e,t),p={x:r,y:o},g=dn(a),x=Gm(g);let v=p[x],N=p[g];const w=An(d,t),j=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(f){const T=x==="y"?"height":"width",A=l.reference[x]-l.floating[T]+j.mainAxis,E=l.reference[x]+l.reference[T]-j.mainAxis;v<A?v=A:v>E&&(v=E)}if(h){var k,C;const T=x==="y"?"width":"height",A=Yw.has(Rn(a)),E=l.reference[g]-l.floating[T]+(A&&((k=c.offset)==null?void 0:k[g])||0)+(A?0:j.crossAxis),D=l.reference[g]+l.reference[T]+(A?0:((C=c.offset)==null?void 0:C[g])||0)-(A?j.crossAxis:0);N<E?N=E:N>D&&(N=D)}return{[x]:v,[g]:N}}}},tP=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,o;const{placement:a,rects:l,platform:c,elements:d}=t,{apply:f=()=>{},...h}=An(e,t),p=await va(t,h),g=Rn(a),x=ci(a),v=dn(a)==="y",{width:N,height:w}=l.floating;let j,k;g==="top"||g==="bottom"?(j=g,k=x===(await(c.isRTL==null?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(k=g,j=x==="end"?"top":"bottom");const C=w-p.top-p.bottom,T=N-p.left-p.right,A=ms(w-p[j],C),E=ms(N-p[k],T),D=!t.middlewareData.shift;let I=A,_=E;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(_=T),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(I=C),D&&!x){const z=ur(p.left,0),G=ur(p.right,0),q=ur(p.top,0),le=ur(p.bottom,0);v?_=N-2*(z!==0||G!==0?z+G:ur(p.left,p.right)):I=w-2*(q!==0||le!==0?q+le:ur(p.top,p.bottom))}await f({...t,availableWidth:_,availableHeight:I});const H=await c.getDimensions(d.floating);return N!==H.width||w!==H.height?{reset:{rects:!0}}:{}}}};function hu(){return typeof window<"u"}function ui(e){return Gw(e)?(e.nodeName||"").toLowerCase():"#document"}function fr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function yn(e){var t;return(t=(Gw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Gw(e){return hu()?e instanceof Node||e instanceof fr(e).Node:!1}function Qr(e){return hu()?e instanceof Element||e instanceof fr(e).Element:!1}function pn(e){return hu()?e instanceof HTMLElement||e instanceof fr(e).HTMLElement:!1}function hv(e){return!hu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fr(e).ShadowRoot}const rP=new Set(["inline","contents"]);function Ia(e){const{overflow:t,overflowX:r,overflowY:o,display:a}=Xr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!rP.has(a)}const nP=new Set(["table","td","th"]);function sP(e){return nP.has(ui(e))}const oP=[":popover-open",":modal"];function mu(e){return oP.some(t=>{try{return e.matches(t)}catch{return!1}})}const iP=["transform","translate","scale","rotate","perspective"],aP=["transform","translate","scale","rotate","perspective","filter"],lP=["paint","layout","strict","content"];function Qm(e){const t=Xm(),r=Qr(e)?Xr(e):e;return iP.some(o=>r[o]?r[o]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||aP.some(o=>(r.willChange||"").includes(o))||lP.some(o=>(r.contain||"").includes(o))}function cP(e){let t=ps(e);for(;pn(t)&&!Jo(t);){if(Qm(t))return t;if(mu(t))return null;t=ps(t)}return null}function Xm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const uP=new Set(["html","body","#document"]);function Jo(e){return uP.has(ui(e))}function Xr(e){return fr(e).getComputedStyle(e)}function pu(e){return Qr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ps(e){if(ui(e)==="html")return e;const t=e.assignedSlot||e.parentNode||hv(e)&&e.host||yn(e);return hv(t)?t.host:t}function Kw(e){const t=ps(e);return Jo(t)?e.ownerDocument?e.ownerDocument.body:e.body:pn(t)&&Ia(t)?t:Kw(t)}function ba(e,t,r){var o;t===void 0&&(t=[]),r===void 0&&(r=!0);const a=Kw(e),l=a===((o=e.ownerDocument)==null?void 0:o.body),c=fr(a);if(l){const d=Rh(c);
9return t.concat(c,c.visualViewport||[],Ia(a)?a:[],d&&r?ba(d):[])}return t.concat(a,ba(a,[],r))}function Rh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qw(e){const t=Xr(e);let r=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const a=pn(e),l=a?e.offsetWidth:r,c=a?e.offsetHeight:o,d=$c(r)!==l||$c(o)!==c;return d&&(r=l,o=c),{width:r,height:o,$:d}}function Jm(e){return Qr(e)?e:e.contextElement}function zo(e){const t=Jm(e);if(!pn(t))return fn(1);const r=t.getBoundingClientRect(),{width:o,height:a,$:l}=qw(t);let c=(l?$c(r.width):r.width)/o,d=(l?$c(r.height):r.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}const dP=fn(0);function Qw(e){const t=fr(e);return!Xm()||!t.visualViewport?dP:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function fP(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==fr(e)?!1:t}function Qs(e,t,r,o){t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),l=Jm(e);let c=fn(1);t&&(o?Qr(o)&&(c=zo(o)):c=zo(e));const d=fP(l,r,o)?Qw(l):fn(0);let f=(a.left+d.x)/c.x,h=(a.top+d.y)/c.y,p=a.width/c.x,g=a.height/c.y;if(l){const x=fr(l),v=o&&Qr(o)?fr(o):o;let N=x,w=Rh(N);for(;w&&o&&v!==N;){const j=zo(w),k=w.getBoundingClientRect(),C=Xr(w),T=k.left+(w.clientLeft+parseFloat(C.paddingLeft))*j.x,A=k.top+(w.clientTop+parseFloat(C.paddingTop))*j.y;f*=j.x,h*=j.y,p*=j.x,g*=j.y,f+=T,h+=A,N=fr(w),w=Rh(N)}}return Bc({width:p,height:g,x:f,y:h})}function Zm(e,t){const r=pu(e).scrollLeft;return t?t.left+r:Qs(yn(e)).left+r}function Xw(e,t,r){r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=o.left+t.scrollLeft-(r?0:Zm(e,o)),l=o.top+t.scrollTop;return{x:a,y:l}}function hP(e){let{elements:t,rect:r,offsetParent:o,strategy:a}=e;const l=a==="fixed",c=yn(o),d=t?mu(t.floating):!1;if(o===c||d&&l)return r;let f={scrollLeft:0,scrollTop:0},h=fn(1);const p=fn(0),g=pn(o);if((g||!g&&!l)&&((ui(o)!=="body"||Ia(c))&&(f=pu(o)),pn(o))){const v=Qs(o);h=zo(o),p.x=v.x+o.clientLeft,p.y=v.y+o.clientTop}const x=c&&!g&&!l?Xw(c,f,!0):fn(0);return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-f.scrollLeft*h.x+p.x+x.x,y:r.y*h.y-f.scrollTop*h.y+p.y+x.y}}function mP(e){return Array.from(e.getClientRects())}function pP(e){const t=yn(e),r=pu(e),o=e.ownerDocument.body,a=ur(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=ur(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let c=-r.scrollLeft+Zm(e);const d=-r.scrollTop;return Xr(o).direction==="rtl"&&(c+=ur(t.clientWidth,o.clientWidth)-a),{width:a,height:l,x:c,y:d}}function gP(e,t){const r=fr(e),o=yn(e),a=r.visualViewport;let l=o.clientWidth,c=o.clientHeight,d=0,f=0;if(a){l=a.width,c=a.height;const h=Xm();(!h||h&&t==="fixed")&&(d=a.offsetLeft,f=a.offsetTop)}return{width:l,height:c,x:d,y:f}}const xP=new Set(["absolute","fixed"]);function yP(e,t){const r=Qs(e,!0,t==="fixed"),o=r.top+e.clientTop,a=r.left+e.clientLeft,l=pn(e)?zo(e):fn(1),c=e.clientWidth*l.x,d=e.clientHeight*l.y,f=a*l.x,h=o*l.y;return{width:c,height:d,x:f,y:h}}function mv(e,t,r){let o;if(t==="viewport")o=gP(e,r);else if(t==="document")o=pP(yn(e));else if(Qr(t))o=yP(t,r);else{const a=Qw(e);o={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Bc(o)}function Jw(e,t){const r=ps(e);return r===t||!Qr(r)||Jo(r)?!1:Xr(r).position==="fixed"||Jw(r,t)}function vP(e,t){const r=t.get(e);if(r)return r;let o=ba(e,[],!1).filter(d=>Qr(d)&&ui(d)!=="body"),a=null;const l=Xr(e).position==="fixed";let c=l?ps(e):e;for(;Qr(c)&&!Jo(c);){const d=Xr(c),f=Qm(c);!f&&d.position==="fixed"&&(a=null),(l?!f&&!a:!f&&d.position==="static"&&!!a&&xP.has(a.position)||Ia(c)&&!f&&Jw(e,c))?o=o.filter(p=>p!==c):a=d,c=ps(c)}return t.set(e,o),o}function bP(e){let{element:t,boundary:r,rootBoundary:o,strategy:a}=e;const c=[...r==="clippingAncestors"?mu(t)?[]:vP(t,this._c):[].concat(r),o],d=c[0],f=c.reduce((h,p)=>{const g=mv(t,p,a);return h.top=ur(g.top,h.top),h.right=ms(g.right,h.right),h.bottom=ms(g.bottom,h.bottom),h.left=ur(g.left,h.left),h},mv(t,d,a));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function wP(e){const{width:t,height:r}=qw(e);return{width:t,height:r}}function jP(e,t,r){const o=pn(t),a=yn(t),l=r==="fixed",c=Qs(e,!0,l,t);let d={scrollLeft:0,scrollTop:0};const f=fn(0);function h(){f.x=Zm(a)}if(o||!o&&!l)if((ui(t)!=="body"||Ia(a))&&(d=pu(t)),o){const v=Qs(t,!0,l,t);f.x=v.x+t.clientLeft,f.y=v.y+t.clientTop}else a&&h();l&&!o&&a&&h();const p=a&&!o&&!l?Xw(a,d):fn(0),g=c.left+d.scrollLeft-f.x-p.x,x=c.top+d.scrollTop-f.y-p.y;return{x:g,y:x,width:c.width,height:c.height}}function Cf(e){return Xr(e).position==="static"}function pv(e,t){if(!pn(e)||Xr(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return yn(e)===r&&(r=r.ownerDocument.body),r}function Zw(e,t){const r=fr(e);if(mu(e))return r;if(!pn(e)){let a=ps(e);for(;a&&!Jo(a);){if(Qr(a)&&!Cf(a))return a;a=ps(a)}return r}let o=pv(e,t);for(;o&&sP(o)&&Cf(o);)o=pv(o,t);return o&&Jo(o)&&Cf(o)&&!Qm(o)?r:o||cP(e)||r}const NP=async function(e){const t=this.getOffsetParent||Zw,r=this.getDimensions,o=await r(e.floating);return{reference:jP(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function SP(e){return Xr(e).direction==="rtl"}const kP={convertOffsetParentRelativeRectToViewportRelativeRect:hP,getDocumentElement:yn,getClippingRect:bP,getOffsetParent:Zw,getElementRects:NP,getClientRects:mP,getDimensions:wP,getScale:zo,isElement:Qr,isRTL:SP};function e1(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function CP(e,t){let r=null,o;const a=yn(e);function l(){var d;clearTimeout(o),(d=r)==null||d.disconnect(),r=null}function c(d,f){d===void 0&&(d=!1),f===void 0&&(f=1),l();const h=e.getBoundingClientRect(),{left:p,top:g,width:x,height:v}=h;if(d||t(),!x||!v)return;const N=sc(g),w=sc(a.clientWidth-(p+x)),j=sc(a.clientHeight-(g+v)),k=sc(p),T={rootMargin:-N+"px "+-w+"px "+-j+"px "+-k+"px",threshold:ur(0,ms(1,f))||1};let A=!0;function E(D){const I=D[0].intersectionRatio;if(I!==f){if(!A)return c();I?c(!1,I):o=setTimeout(()=>{c(!1,1e-7)},1e3)}I===1&&!e1(h,e.getBoundingClientRect())&&c(),A=!1}try{r=new IntersectionObserver(E,{...T,root:a.ownerDocument})}catch{r=new IntersectionObserver(E,T)}r.observe(e)}return c(!0),l}function TP(e,t,r,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:f=!1}=o,h=Jm(e),p=a||l?[...h?ba(h):[],...ba(t)]:[];p.forEach(k=>{a&&k.addEventListener("scroll",r,{passive:!0}),l&&k.addEventListener("resize",r)});const g=h&&d?CP(h,r):null;let x=-1,v=null;c&&(v=new ResizeObserver(k=>{let[C]=k;C&&C.target===h&&v&&(v.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var T;(T=v)==null||T.observe(t)})),r()}),h&&!f&&v.observe(h),v.observe(t));let N,w=f?Qs(e):null;f&&j();function j(){const k=Qs(e);w&&!e1(w,k)&&r(),w=k,N=requestAnimationFrame(j)}return r(),()=>{var k;p.forEach(C=>{a&&C.removeEventListener("scroll",r),l&&C.removeEventListener("resize",r)}),g?.(),(k=v)==null||k.disconnect(),v=null,f&&cancelAnimationFrame(N)}}const EP=J5,PP=Z5,AP=q5,RP=tP,MP=Q5,gv=K5,_P=eP,DP=(e,t,r)=>{const o=new Map,a={platform:kP,...r},l={...a.platform,_c:o};return G5(e,t,{...a,platform:l})};var IP=typeof document<"u",LP=function(){},wc=IP?y.useLayoutEffect:LP;function zc(e,t){if(e===t)return!0;
9if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,o,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(o=r;o--!==0;)if(!zc(e[o],t[o]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!{}.hasOwnProperty.call(t,a[o]))return!1;for(o=r;o--!==0;){const l=a[o];if(!(l==="_owner"&&e.$$typeof)&&!zc(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function t1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function xv(e,t){const r=t1(e);return Math.round(t*r)/r}function Tf(e){const t=y.useRef(e);return wc(()=>{t.current=e}),t}function OP(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:o=[],platform:a,elements:{reference:l,floating:c}={},transform:d=!0,whileElementsMounted:f,open:h}=e,[p,g]=y.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[x,v]=y.useState(o);zc(x,o)||v(o);const[N,w]=y.useState(null),[j,k]=y.useState(null),C=y.useCallback($=>{$!==D.current&&(D.current=$,w($))},[]),T=y.useCallback($=>{$!==I.current&&(I.current=$,k($))},[]),A=l||N,E=c||j,D=y.useRef(null),I=y.useRef(null),_=y.useRef(p),H=f!=null,z=Tf(f),G=Tf(a),q=Tf(h),le=y.useCallback(()=>{if(!D.current||!I.current)return;const $={placement:t,strategy:r,middleware:x};G.current&&($.platform=G.current),DP(D.current,I.current,$).then(W=>{const K={...W,isPositioned:q.current!==!1};F.current&&!zc(_.current,K)&&(_.current=K,si.flushSync(()=>{g(K)}))})},[x,t,r,G,q]);wc(()=>{h===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,g($=>({...$,isPositioned:!1})))},[h]);const F=y.useRef(!1);wc(()=>(F.current=!0,()=>{F.current=!1}),[]),wc(()=>{if(A&&(D.current=A),E&&(I.current=E),A&&E){if(z.current)return z.current(A,E,le);le()}},[A,E,le,z,H]);const J=y.useMemo(()=>({reference:D,floating:I,setReference:C,setFloating:T}),[C,T]),Z=y.useMemo(()=>({reference:A,floating:E}),[A,E]),oe=y.useMemo(()=>{const $={position:r,left:0,top:0};if(!Z.floating)return $;const W=xv(Z.floating,p.x),K=xv(Z.floating,p.y);return d?{...$,transform:"translate("+W+"px, "+K+"px)",...t1(Z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:W,top:K}},[r,d,Z.floating,p.x,p.y]);return y.useMemo(()=>({...p,update:le,refs:J,elements:Z,floatingStyles:oe}),[p,le,J,Z,oe])}const FP=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:o,padding:a}=typeof e=="function"?e(r):e;return o&&t(o)?o.current!=null?gv({element:o.current,padding:a}).fn(r):{}:o?gv({element:o,padding:a}).fn(r):{}}}},$P=(e,t)=>({...EP(e),options:[e,t]}),VP=(e,t)=>({...PP(e),options:[e,t]}),BP=(e,t)=>({..._P(e),options:[e,t]}),zP=(e,t)=>({...AP(e),options:[e,t]}),UP=(e,t)=>({...RP(e),options:[e,t]}),WP=(e,t)=>({...MP(e),options:[e,t]}),HP=(e,t)=>({...FP(e),options:[e,t]});var YP="Arrow",r1=y.forwardRef((e,t)=>{const{children:r,width:o=10,height:a=5,...l}=e;return s.jsx(Re.svg,{...l,ref:t,width:o,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:s.jsx("polygon",{points:"0,0 30,0 15,10"})})});r1.displayName=YP;var GP=r1;function n1(e){const[t,r]=y.useState(void 0);return Pt(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const l=a[0];let c,d;if("borderBoxSize"in l){const f=l.borderBoxSize,h=Array.isArray(f)?f[0]:f;c=h.inlineSize,d=h.blockSize}else c=e.offsetWidth,d=e.offsetHeight;r({width:c,height:d})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else r(void 0)},[e]),t}var ep="Popper",[s1,gu]=Mn(ep),[KP,o1]=s1(ep),i1=e=>{const{__scopePopper:t,children:r}=e,[o,a]=y.useState(null);return s.jsx(KP,{scope:t,anchor:o,onAnchorChange:a,children:r})};i1.displayName=ep;var a1="PopperAnchor",l1=y.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:o,...a}=e,l=o1(a1,r),c=y.useRef(null),d=ze(t,c);return y.useEffect(()=>{l.onAnchorChange(o?.current||c.current)}),o?null:s.jsx(Re.div,{...a,ref:d})});l1.displayName=a1;var tp="PopperContent",[qP,QP]=s1(tp),c1=y.forwardRef((e,t)=>
9{const{__scopePopper:r,side:o="bottom",sideOffset:a=0,align:l="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:f=!0,collisionBoundary:h=[],collisionPadding:p=0,sticky:g="partial",hideWhenDetached:x=!1,updatePositionStrategy:v="optimized",onPlaced:N,...w}=e,j=o1(tp,r),[k,C]=y.useState(null),T=ze(t,X=>C(X)),[A,E]=y.useState(null),D=n1(A),I=D?.width??0,_=D?.height??0,H=o+(l!=="center"?"-"+l:""),z=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},G=Array.isArray(h)?h:[h],q=G.length>0,le={padding:z,boundary:G.filter(JP),altBoundary:q},{refs:F,floatingStyles:J,placement:Z,isPositioned:oe,middlewareData:$}=OP({strategy:"fixed",placement:H,whileElementsMounted:(...X)=>TP(...X,{animationFrame:v==="always"}),elements:{reference:j.anchor},middleware:[$P({mainAxis:a+_,alignmentAxis:c}),f&&VP({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?BP():void 0,...le}),f&&zP({...le}),UP({...le,apply:({elements:X,rects:ue,availableWidth:we,availableHeight:be})=>{const{width:ve,height:ce}=ue.reference,Te=X.floating.style;Te.setProperty("--radix-popper-available-width",`${we}px`),Te.setProperty("--radix-popper-available-height",`${be}px`),Te.setProperty("--radix-popper-anchor-width",`${ve}px`),Te.setProperty("--radix-popper-anchor-height",`${ce}px`)}}),A&&HP({element:A,padding:d}),ZP({arrowWidth:I,arrowHeight:_}),x&&WP({strategy:"referenceHidden",...le})]}),[W,K]=f1(Z),M=Cr(N);Pt(()=>{oe&&M?.()},[oe,M]);const B=$.arrow?.x,Q=$.arrow?.y,ne=$.arrow?.centerOffset!==0,[pe,ge]=y.useState();return Pt(()=>{k&&ge(window.getComputedStyle(k).zIndex)},[k]),s.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:oe?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:pe,"--radix-popper-transform-origin":[$.transformOrigin?.x,$.transformOrigin?.y].join(" "),...$.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:s.jsx(qP,{scope:r,placedSide:W,onArrowChange:E,arrowX:B,arrowY:Q,shouldHideArrow:ne,children:s.jsx(Re.div,{"data-side":W,"data-align":K,...w,ref:T,style:{...w.style,animation:oe?void 0:"none"}})})})});c1.displayName=tp;var u1="PopperArrow",XP={top:"bottom",right:"left",bottom:"top",left:"right"},d1=y.forwardRef(function(t,r){const{__scopePopper:o,...a}=t,l=QP(u1,o),c=XP[l.placedSide];return s.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:s.jsx(GP,{...a,ref:r,style:{...a.style,display:"block"}})})});d1.displayName=u1;function JP(e){return e!==null}var ZP=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:o,middlewareData:a}=t,c=a.arrow?.centerOffset!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=f1(r),g={start:"0%",center:"50%",end:"100%"}[p],x=(a.arrow?.x??0)+d/2,v=(a.arrow?.y??0)+f/2;let N="",w="";return h==="bottom"?(N=c?g:`${x}px`,w=`${-f}px`):h==="top"?(N=c?g:`${x}px`,w=`${o.floating.height+f}px`):h==="right"?(N=`${-f}px`,w=c?g:`${v}px`):h==="left"&&(N=`${o.floating.width+f}px`,w=c?g:`${v}px`),{data:{x:N,y:w}}}});function f1(e){const[t,r="center"]=e.split("-");return[t,r]}var eA=i1,h1=l1,m1=c1,p1=d1,[xu]=Mn("Tooltip",[gu]),rp=gu(),g1="TooltipProvider",tA=700,yv="tooltip.open",[rA,x1]=xu(g1),y1=e=>{const{__scopeTooltip:t,delayDuration:r=tA,skipDelayDuration:o=300,disableHoverableContent:a=!1,children:l}=e,c=y.useRef(!0),d=y.useRef(!1),f=y.useRef(0);return y.useEffect(()=>{const h=f.current;return()=>window.clearTimeout(h)},[]),s.jsx(rA,{scope:t,isOpenDelayedRef:c,delayDuration:r,onOpen:y.useCallback(()=>{window.clearTimeout(f.current),c.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>c.current=!0,o)},[o]),isPointerInTransitRef:d,onPointerInTransitChange:y.useCallback(h=>{d.current=h},[]),disableHoverableContent:a,children:l})};y1.displayName=g1;var v1="Tooltip",[J8,yu]=xu(v1),Mh="TooltipTrigger",nA=y.forwardRef((e,t)=>
9{const{__scopeTooltip:r,...o}=e,a=yu(Mh,r),l=x1(Mh,r),c=rp(r),d=y.useRef(null),f=ze(t,d,a.onTriggerChange),h=y.useRef(!1),p=y.useRef(!1),g=y.useCallback(()=>h.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),s.jsx(h1,{asChild:!0,...c,children:s.jsx(Re.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...o,ref:f,onPointerMove:Se(e.onPointerMove,x=>{x.pointerType!=="touch"&&!p.current&&!l.isPointerInTransitRef.current&&(a.onTriggerEnter(),p.current=!0)}),onPointerLeave:Se(e.onPointerLeave,()=>{a.onTriggerLeave(),p.current=!1}),onPointerDown:Se(e.onPointerDown,()=>{a.open&&a.onClose(),h.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:Se(e.onFocus,()=>{h.current||a.onOpen()}),onBlur:Se(e.onBlur,a.onClose),onClick:Se(e.onClick,a.onClose)})})});nA.displayName=Mh;var sA="TooltipPortal",[Z8,oA]=xu(sA,{forceMount:void 0}),Zo="TooltipContent",b1=y.forwardRef((e,t)=>{const r=oA(Zo,e.__scopeTooltip),{forceMount:o=r.forceMount,side:a="top",...l}=e,c=yu(Zo,e.__scopeTooltip);return s.jsx(io,{present:o||c.open,children:c.disableHoverableContent?s.jsx(w1,{side:a,...l,ref:t}):s.jsx(iA,{side:a,...l,ref:t})})}),iA=y.forwardRef((e,t)=>{const r=yu(Zo,e.__scopeTooltip),o=x1(Zo,e.__scopeTooltip),a=y.useRef(null),l=ze(t,a),[c,d]=y.useState(null),{trigger:f,onClose:h}=r,p=a.current,{onPointerInTransitChange:g}=o,x=y.useCallback(()=>{d(null),g(!1)},[g]),v=y.useCallback((N,w)=>{const j=N.currentTarget,k={x:N.clientX,y:N.clientY},C=dA(k,j.getBoundingClientRect()),T=fA(k,C),A=hA(w.getBoundingClientRect()),E=pA([...T,...A]);d(E),g(!0)},[g]);return y.useEffect(()=>()=>x(),[x]),y.useEffect(()=>{if(f&&p){const N=j=>v(j,p),w=j=>v(j,f);return f.addEventListener("pointerleave",N),p.addEventListener("pointerleave",w),()=>{f.removeEventListener("pointerleave",N),p.removeEventListener("pointerleave",w)}}},[f,p,v,x]),y.useEffect(()=>{if(c){const N=w=>{const j=w.target,k={x:w.clientX,y:w.clientY},C=f?.contains(j)||p?.contains(j),T=!mA(k,c);C?x():T&&(x(),h())};return document.addEventListener("pointermove",N),()=>document.removeEventListener("pointermove",N)}}
9,[f,p,c,h,x]),s.jsx(w1,{...e,ref:l})}),[aA,lA]=xu(v1,{isInside:!1}),cA=JC("TooltipContent"),w1=y.forwardRef((e,t)=>{const{__scopeTooltip:r,children:o,"aria-label":a,onEscapeKeyDown:l,onPointerDownOutside:c,...d}=e,f=yu(Zo,r),h=rp(r),{onClose:p}=f;return y.useEffect(()=>(document.addEventListener(yv,p),()=>document.removeEventListener(yv,p)),[p]),y.useEffect(()=>{if(f.trigger){const g=x=>{x.target?.contains(f.trigger)&&p()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[f.trigger,p]),s.jsx(Ma,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:g=>g.preventDefault(),onDismiss:p,children:s.jsxs(m1,{"data-state":f.stateAttribute,...h,...d,ref:t,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[s.jsx(cA,{children:o}),s.jsx(aA,{scope:r,isInside:!0,children:s.jsx(bT,{id:f.contentId,role:"tooltip",children:a||o})})]})})});b1.displayName=Zo;var j1="TooltipArrow",uA=y.forwardRef((e,t)=>{const{__scopeTooltip:r,...o}=e,a=rp(r);return lA(j1,r).isInside?null:s.jsx(p1,{...a,...o,ref:t})});uA.displayName=j1;function dA(e,t){const r=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),l=Math.abs(t.left-e.x);switch(Math.min(r,o,a,l)){case l:return"left";case a:return"right";case r:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function fA(e,t,r=5){const o=[];switch(t){case"top":o.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":o.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":o.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":o.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return o}function hA(e){const{top:t,right:r,bottom:o,left:a}=e;return[{x:a,y:t},{x:r,y:t},{x:r,y:o},{x:a,y:o}]}function mA(e,t){const{x:r,y:o}=e;let a=!1;for(let l=0,c=t.length-1;l<t.length;c=l++){const d=t[l],f=t[c],h=d.x,p=d.y,g=f.x,x=f.y;p>o!=x>o&&r<(g-h)*(o-p)/(x-p)+h&&(a=!a)}return a}function pA(e){const t=e.slice();return t.sort((r,o)=>r.x<o.x?-1:r.x>o.x?1:r.y<o.y?-1:r.y>o.y?1:0),gA(t)}function gA(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const a=e[o];for(;t.length>=2;){const l=t[t.length-1],c=t[t.length-2];if((l.x-c.x)*(a.y-c.y)>=(l.y-c.y)*(a.x-c.x))t.pop();else break}t.push(a)}t.pop();const r=[];for(let o=e.length-1;o>=0;o--){const a=e[o];for(;r.length>=2;){const l=r[r.length-1],c=r[r.length-2];if((l.x-c.x)*(a.y-c.y)>=(l.y-c.y)*(a.x-c.x))r.pop();else break}r.push(a)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var xA=y1,N1=b1;const yA=xA,vA=y.forwardRef(({className:e,sideOffset:t=4,...r},o)=>s.jsx(N1,{ref:o,sideOffset:t,className:_e("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",e),...r}));vA.displayName=N1.displayName;var La=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Xs=typeof window>"u"||"Deno"in globalThis;function rr(){}function bA(e,t){return typeof e=="function"?e(t):e}function _h(e){return typeof e=="number"&&e>=0&&e!==1/0}function S1(e,t){return Math.max(e+(t||0)-Date.now(),0)}function us(e,t){return typeof e=="function"?e(t):e}function jr(e,t){return typeof e=="function"?e(t):e}function vv(e,t){const{type:r="all",exact:o,fetchStatus:a,predicate:l,queryKey:c,stale:d}=e;if(c){if(o){if(t.queryHash!==np(c,t.options))return!1}else if(!ja(t.queryKey,c))return!1}if(r!=="all"){const f=t.isActive();
9if(r==="active"&&!f||r==="inactive"&&f)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||a&&a!==t.state.fetchStatus||l&&!l(t))}function bv(e,t){const{exact:r,status:o,predicate:a,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(r){if(wa(t.options.mutationKey)!==wa(l))return!1}else if(!ja(t.options.mutationKey,l))return!1}return!(o&&t.state.status!==o||a&&!a(t))}function np(e,t){return(t?.queryKeyHashFn||wa)(e)}function wa(e){return JSON.stringify(e,(t,r)=>Ih(r)?Object.keys(r).sort().reduce((o,a)=>(o[a]=r[a],o),{}):r)}function ja(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>ja(e[r],t[r])):!1}function k1(e,t){if(e===t)return e;const r=wv(e)&&wv(t);if(r||Ih(e)&&Ih(t)){const o=r?e:Object.keys(e),a=o.length,l=r?t:Object.keys(t),c=l.length,d=r?[]:{},f=new Set(o);let h=0;for(let p=0;p<c;p++){const g=r?p:l[p];(!r&&f.has(g)||r)&&e[g]===void 0&&t[g]===void 0?(d[g]=void 0,h++):(d[g]=k1(e[g],t[g]),d[g]===e[g]&&e[g]!==void 0&&h++)}return a===c&&h===a?e:d}return t}function Dh(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function wv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ih(e){if(!jv(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!jv(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function jv(e){return Object.prototype.toString.call(e)==="[object Object]"}function wA(e){return new Promise(t=>{setTimeout(t,e)})}function Lh(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?k1(e,t):t}function jA(e,t,r=0){const o=[...e,t];return r&&o.length>r?o.slice(1):o}function NA(e,t,r=0){const o=[t,...e];return r&&o.length>r?o.slice(0,-1):o}var sp=Symbol();function C1(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===sp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function SA(e,t){return typeof e=="function"?e(...t):!!e}var kA=class extends La{#t;#e;#r;constructor(){super(),this.#r=e=>{if(!Xs&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#r=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},op=new kA,CA=class extends La{#t=!0;#e;#r;constructor(){super(),this.#r=e=>{if(!Xs&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#r=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#t}},Uc=new CA;function Oh(){let e,t;const r=new Promise((a,l)=>{e=a,t=l});r.status="pending",r.catch(()=>{});function o(a){Object.assign(r,a),delete r.resolve,delete r.reject}return r.resolve=a=>{o({status:"fulfilled",value:a}),e(a)},r.reject=a=>{o({status:"rejected",reason:a}),t(a)},r}function TA(e){return Math.min(1e3*2**e,3e4)}function T1(e){return(e??"online")==="online"?Uc.isOnline():!0}var E1=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Ef(e){return e instanceof E1}function P1(e){let t=!1,r=0,o=!1,a;const l=Oh(),c=w=>{o||(x(new E1(w)),e.abort?.())},d=()=>{t=!0},f=()=>{t=!1},h=()=>op.isFocused()&&(e.networkMode==="always"||Uc.isOnline())&&e.canRun(),p=()=>T1(e.networkMode)&&e.canRun(),g=w=>{o||(o=!0,e.onSuccess?.(w),a?.(),l.resolve(w))},x=w=>{o||(o=!0,e.onError?.(w),a?.(),l.reject(w))},v=()=>new Promise(w=>{a=j=>{(o||h())&&w(j)},e.onPause?.()}).then(()=>{a=void 0,o||e.onContinue?.()}),N=()=>
9{if(o)return;let w;const j=r===0?e.initialPromise:void 0;try{w=j??e.fn()}catch(k){w=Promise.reject(k)}Promise.resolve(w).then(g).catch(k=>{if(o)return;const C=e.retry??(Xs?0:3),T=e.retryDelay??TA,A=typeof T=="function"?T(r,k):T,E=C===!0||typeof C=="number"&&r<C||typeof C=="function"&&C(r,k);if(t||!E){x(k);return}r++,e.onFail?.(r,k),wA(A).then(()=>h()?void 0:v()).then(()=>{t?x(k):N()})})};return{promise:l,cancel:c,continue:()=>(a?.(),l),cancelRetry:d,continueRetry:f,canStart:p,start:()=>(p()?N():v().then(N),l)}}var EA=e=>setTimeout(e,0);function PA(){let e=[],t=0,r=d=>{d()},o=d=>{d()},a=EA;const l=d=>{t?e.push(d):a(()=>{r(d)})},c=()=>{const d=e;e=[],d.length&&a(()=>{o(()=>{d.forEach(f=>{r(f)})})})};return{batch:d=>{let f;t++;try{f=d()}finally{t--,t||c()}return f},batchCalls:d=>(...f)=>{l(()=>{d(...f)})},schedule:l,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{o=d},setScheduler:d=>{a=d}}}var Tt=PA(),A1=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_h(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Xs?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},AA=class extends A1{#t;#e;#r;#n;#s;#a;#i;constructor(e){super(),this.#i=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#n=e.client,this.#r=this.#n.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=RA(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#s?.promise}setOptions(e){this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const r=Lh(this.state.data,e,this.options);return this.#o({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#s?.promise;return this.#s?.cancel(e),t?t.then(rr).catch(rr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>jr(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===sp||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>us(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!S1(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#s?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#s?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#s&&(this.#i?this.#s.cancel({revert:!0}):this.#s.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}fetch(e,t){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#s)return this.#s.continueRetry(),this.#s.promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#i=!0,r.signal)})},a=()=>{const f=C1(this.options,t),p=(()=>{const g={client:this.#n,queryKey:this.queryKey,meta:this.meta};return o(g),g})();return this.#i=!1,this.options.persister?this.options.persister(f,p,this):f(p)},c=(()=>{const f={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#n,state:this.state,fetchFn:a};return o(f),f})();this.options.behavior?.onFetch(c,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#o({type:"fetch",meta:c.fetchOptions?.meta});const d=f=>{Ef(f)&&f.silent||this.#o({type:"error",error:f}),Ef(f)||(this.#r.config.onError?.(f,this),this.#r.config.onSettled?.(this.state.data,f,this)),this.scheduleGc()};return this.#s=P1({initialPromise:t?.initialPromise,fn:c.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{if(f===void 0){d(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(h){d(h);return}this.#r.config.onSuccess?.(f,this),this.#r.config.onSettled?.(f,this.state.error,this),this.scheduleGc()},onError:d,onFail:(f,h)=>{this.#o({type:"failed",failureCount:f,error:h})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}),this.#s.start()}#o(e){const t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...R1(r.data,this.options),fetchMeta:e.meta??null};case"success":return this.#e=void 0,{...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=e.error;return Ef(o)&&o.revert&&this.#e?{...this.#e,fetchStatus:"idle"}
9:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),Tt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function R1(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:T1(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function RA(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,o=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var MA=class extends La{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,r){const o=t.queryKey,a=t.queryHash??np(o,t);let l=this.get(a);return l||(l=new AA({client:e,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(o)}),this.add(l)),l}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Tt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(r=>vv(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>vv(e,r)):t}notify(e){Tt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Tt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Tt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},_A=class extends A1{#t;#e;#r;constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#t=[],this.state=e.state||DA(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#n({type:"continue"})};this.#r=P1({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(a,l)=>{this.#n({type:"failed",failureCount:a,error:l})},onPause:()=>{this.#n({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const r=this.state.status==="pending",o=!this.#r.canStart();try{if(r)t();else{this.#n({type:"pending",variables:e,isPaused:o}),await this.#e.config.onMutate?.(e,this);const l=await this.options.onMutate?.(e);l!==this.state.context&&this.#n({type:"pending",context:l,variables:e,isPaused:o})}const a=await this.#r.start();return await this.#e.config.onSuccess?.(a,e,this.state.context,this),await this.options.onSuccess?.(a,e,this.state.context),await this.#e.config.onSettled?.(a,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(a,null,e,this.state.context),this.#n({type:"success",data:a}),a}catch(a){try{throw await this.#e.config.onError?.(a,e,this.state.context,this),await this.options.onError?.(a,e,this.state.context),await this.#e.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,a,e,this.state.context),a}finally{this.#n({type:"error",error:a})}}finally{this.#e.runNext(this)}}#n(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};
9case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Tt.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function DA(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var IA=class extends La{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#r=0}#t;#e;#r;build(e,t,r){const o=new _A({mutationCache:this,mutationId:++this.#r,options:e.defaultMutationOptions(t),state:r});return this.add(o),o}add(e){this.#t.add(e);const t=oc(e);if(typeof t=="string"){const r=this.#e.get(t);r?r.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=oc(e);if(typeof t=="string"){const r=this.#e.get(t);if(r)if(r.length>1){const o=r.indexOf(e);o!==-1&&r.splice(o,1)}else r[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=oc(e);if(typeof t=="string"){const o=this.#e.get(t)?.find(a=>a.state.status==="pending");return!o||o===e}else return!0}runNext(e){const t=oc(e);return typeof t=="string"?this.#e.get(t)?.find(o=>o!==e&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Tt.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(r=>bv(t,r))}findAll(e={}){return this.getAll().filter(t=>bv(e,t))}notify(e){Tt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>
9t.state.isPaused);return Tt.batch(()=>Promise.all(e.map(t=>t.continue().catch(rr))))}};function oc(e){return e.options.scope?.id}function Nv(e){return{onFetch:(t,r)=>{const o=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,l=t.state.data?.pages||[],c=t.state.data?.pageParams||[];let d={pages:[],pageParams:[]},f=0;const h=async()=>{let p=!1;const g=N=>{Object.defineProperty(N,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},x=C1(t.options,t.fetchOptions),v=async(N,w,j)=>{if(p)return Promise.reject();if(w==null&&N.pages.length)return Promise.resolve(N);const C=(()=>{const D={client:t.client,queryKey:t.queryKey,pageParam:w,direction:j?"backward":"forward",meta:t.options.meta};return g(D),D})(),T=await x(C),{maxPages:A}=t.options,E=j?NA:jA;return{pages:E(N.pages,T,A),pageParams:E(N.pageParams,w,A)}};if(a&&l.length){const N=a==="backward",w=N?LA:Sv,j={pages:l,pageParams:c},k=w(o,j);d=await v(j,k,N)}else{const N=e??l.length;do{const w=f===0?c[0]??o.initialPageParam:Sv(o,d);if(f>0&&w==null)break;d=await v(d,w),f++}while(f<N)}return d};t.options.persister?t.fetchFn=()=>t.options.persister?.(h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=h}}}function Sv(e,{pages:t,pageParams:r}){const o=t.length-1;return t.length>0?e.getNextPageParam(t[o],t,r[o],r):void 0}function LA(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var OA=class{#t;#e;#r;#n;#s;#a;#i;#o;constructor(e={}){this.#t=e.queryCache||new MA,this.#e=e.mutationCache||new IA,this.#r=e.defaultOptions||{},this.#n=new Map,this.#s=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#i=op.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#o=Uc.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#i?.(),this.#i=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#t.build(this,t),o=r.state.data;return o===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(us(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(o))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:r})=>{const o=r.data;return[t,o]})}setQueryData(e,t,r){const o=this.defaultQueryOptions({queryKey:e}),l=this.#t.get(o.queryHash)?.state.data,c=bA(t,l);if(c!==void 0)return this.#t.build(this,o).setData(c,{...r,manual:!0})}setQueriesData(e,t,r){return Tt.batch(()=>this.#t.findAll(e).map(({queryKey:o})=>[o,this.setQueryData(o,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;Tt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=this.#t;return Tt.batch(()=>(r.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},o=Tt.batch(()=>this.#t.findAll(e).map(a=>a.cancel(r)));return Promise.all(o).then(rr).catch(rr)}invalidateQueries(e,t={}){return Tt.batch(()=>(this.#t.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},o=Tt.batch(()=>this.#t.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let l=a.fetch(void 0,r);return r.throwOnError||(l=l.catch(rr)),a.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(o).then(rr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#t.build(this,t);return r.isStaleByTime(us(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(rr).catch(rr)}
9fetchInfiniteQuery(e){return e.behavior=Nv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(rr).catch(rr)}ensureInfiniteQueryData(e){return e.behavior=Nv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Uc.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#r}setDefaultOptions(e){this.#r=e}setQueryDefaults(e,t){this.#n.set(wa(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#n.values()],r={};return t.forEach(o=>{ja(e,o.queryKey)&&Object.assign(r,o.defaultOptions)}),r}setMutationDefaults(e,t){this.#s.set(wa(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#s.values()],r={};return t.forEach(o=>{ja(e,o.mutationKey)&&Object.assign(r,o.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#r.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=np(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===sp&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#r.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},FA=class extends La{constructor(e,t){super(),this.options=t,this.#t=e,this.#o=null,this.#i=Oh(),this.options.experimental_prefetchInRender||this.#i.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#r=void 0;#n=void 0;#s;#a;#i;#o;#p;#f;#h;#c;#u;#l;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),kv(this.#e,this.options)?this.#d():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Fh(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Fh(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#w(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,r=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof jr(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#j(),this.#e.setOptions(this.options),t._defaulted&&!Dh(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const o=this.hasListeners();o&&Cv(this.#e,r,this.options,t)&&this.#d(),this.updateResult(),o&&(this.#e!==r||jr(this.options.enabled,this.#e)!==jr(t.enabled,this.#e)||us(this.options.staleTime,this.#e)!==us(t.staleTime,this.#e))&&this.#g();const a=this.#x();o&&(this.#e!==r||jr(this.options.enabled,this.#e)!==jr(t.enabled,this.#e)||a!==this.#l)&&this.#y(a)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),r=this.createResult(t,e);return VA(this,r)&&(this.#n=r,this.#a=this.options,this.#s=this.#e.state),r}getCurrentResult(){return this.#n}trackResult(e,t){return new Proxy(e,{get:(r,o)=>(this.trackProp(o),t?.(o),Reflect.get(r,o))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),r=this.#t.getQueryCache().build(this.#t,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#d(e){this.#j();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(rr)),t}#g(){this.#b();const e=us(this.options.staleTime,this.#e);if(Xs||this.#n.isStale||!_h(e))return;const r=S1(this.#n.dataUpdatedAt,e)+1;this.#c=setTimeout(()=>{this.#n.isStale||this.updateResult()},r)}#x(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(e){this.#w(),this.#l=e,!(Xs||jr(this.options.enabled,this.#e)===!1||!_h(this.#l)||this.#l===0)&&(this.#u=setInterval(()=>
9{(this.options.refetchIntervalInBackground||op.isFocused())&&this.#d()},this.#l))}#v(){this.#g(),this.#y(this.#x())}#b(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#w(){this.#u&&(clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const r=this.#e,o=this.options,a=this.#n,l=this.#s,c=this.#a,f=e!==r?e.state:this.#r,{state:h}=e;let p={...h},g=!1,x;if(t._optimisticResults){const _=this.hasListeners(),H=!_&&kv(e,t),z=_&&Cv(e,r,t,o);(H||z)&&(p={...p,...R1(h.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:v,errorUpdatedAt:N,status:w}=p;x=p.data;let j=!1;if(t.placeholderData!==void 0&&x===void 0&&w==="pending"){let _;a?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(_=a.data,j=!0):_=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,_!==void 0&&(w="success",x=Lh(a?.data,_,t),g=!0)}if(t.select&&x!==void 0&&!j)if(a&&x===l?.data&&t.select===this.#p)x=this.#f;else try{this.#p=t.select,x=t.select(x),x=Lh(a?.data,x,t),this.#f=x,this.#o=null}catch(_){this.#o=_}this.#o&&(v=this.#o,x=this.#f,N=Date.now(),w="error");const k=p.fetchStatus==="fetching",C=w==="pending",T=w==="error",A=C&&k,E=x!==void 0,I={status:w,fetchStatus:p.fetchStatus,isPending:C,isSuccess:w==="success",isError:T,isInitialLoading:A,isLoading:A,data:x,dataUpdatedAt:p.dataUpdatedAt,error:v,errorUpdatedAt:N,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>f.dataUpdateCount||p.errorUpdateCount>f.errorUpdateCount,isFetching:k,isRefetching:k&&!C,isLoadingError:T&&!E,isPaused:p.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:T&&E,isStale:ip(e,t),refetch:this.refetch,promise:this.#i,isEnabled:jr(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const _=G=>{I.status==="error"?G.reject(I.error):I.data!==void 0&&G.resolve(I.data)},H=()=>{const G=this.#i=I.promise=Oh();_(G)},z=this.#i;switch(z.status){case"pending":e.queryHash===r.queryHash&&_(z);break;case"fulfilled":(I.status==="error"||I.data!==z.value)&&H();break;case"rejected":(I.status!=="error"||I.error!==z.reason)&&H();break}}return I}updateResult(){const e=this.#n,t=this.createResult(this.#e,this.options);if(this.#s=this.#e.state,this.#a=this.options,this.#s.data!==void 0&&(this.#h=this.#e),Dh(t,e))return;this.#n=t;const r=()=>{if(!e)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!this.#m.size)return!0;const l=new Set(a??this.#m);return this.options.throwOnError&&l.add("error"),Object.keys(this.#n).some(c=>{const d=c;return this.#n[d]!==e[d]&&l.has(d)})};this.#N({listeners:r()})}#j(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#r=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#N(e){Tt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#n)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function $A(e,t){return jr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function kv(e,t){return $A(e,t)||e.state.data!==void 0&&Fh(e,t,t.refetchOnMount)}function Fh(e,t,r){if(jr(t.enabled,e)!==!1&&us(t.staleTime,e)!=="static"){const o=typeof r=="function"?r(e):r;return o==="always"||o!==!1&&ip(e,t)}return!1}function Cv(e,t,r,o){return(e!==t||jr(o.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&ip(e,r)}function ip(e,t){return jr(t.enabled,e)!==!1&&e.isStaleByTime(us(t.staleTime,e))}function VA(e,t){return!Dh(e.getCurrentResult(),t)}var M1=y.createContext(void 0),BA=e=>{const t=y.useContext(M1);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},zA=({client:e,children:t})=>(y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),s.jsx(M1.Provider,{value:e,children:t})),_1=y.createContext(!1),UA=()=>y.useContext(_1);_1.Provider;function WA(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
9var HA=y.createContext(WA()),YA=()=>y.useContext(HA),GA=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},KA=e=>{y.useEffect(()=>{e.clearReset()},[e])},qA=({result:e,errorResetBoundary:t,throwOnError:r,query:o,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&o&&(a&&e.data===void 0||SA(r,[e.error,o])),QA=e=>{if(e.suspense){const t=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>t(r(...o)):t(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},XA=(e,t)=>e.isLoading&&e.isFetching&&!t,JA=(e,t)=>e?.suspense&&t.isPending,Tv=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function ZA(e,t,r){const o=UA(),a=YA(),l=BA(),c=l.defaultQueryOptions(e);l.getDefaultOptions().queries?._experimental_beforeQuery?.(c),c._optimisticResults=o?"isRestoring":"optimistic",QA(c),GA(c,a),KA(a);const d=!l.getQueryCache().get(c.queryHash),[f]=y.useState(()=>new t(l,c)),h=f.getOptimisticResult(c),p=!o&&e.subscribed!==!1;if(y.useSyncExternalStore(y.useCallback(g=>{const x=p?f.subscribe(Tt.batchCalls(g)):rr;return f.updateResult(),x},[f,p]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),y.useEffect(()=>{f.setOptions(c)},[c,f]),JA(c,h))throw Tv(c,f,a);if(qA({result:h,errorResetBoundary:a,throwOnError:c.throwOnError,query:l.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw h.error;return l.getDefaultOptions().queries?._experimental_afterQuery?.(c,h),c.experimental_prefetchInRender&&!Xs&&XA(h,o)&&(d?Tv(c,f,a):l.getQueryCache().get(c.queryHash)?.promise)?.catch(rr).finally(()=>{f.updateResult()}),c.notifyOnChangeProps?h:f.trackResult(h)}function Wc(e,t){return ZA(e,FA)}function Na(){return Na=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Na.apply(this,arguments)}var ls;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ls||(ls={}));const Ev="popstate";function eR(e){e===void 0&&(e={});function t(o,a){let{pathname:l,search:c,hash:d}=o.location;return $h("",{pathname:l,search:c,hash:d},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(o,a){return typeof a=="string"?a:Hc(a)}return rR(t,r,null,e)}function lt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ap(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function tR(){return Math.random().toString(36).substr(2,8)}function Pv(e,t){return{usr:e.state,key:e.key,idx:t}}function $h(e,t,r,o){return r===void 0&&(r=null),Na({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?di(t):t,{state:r,key:t&&t.key||o||tR()})}function Hc(e){let{pathname:t="/",search:r="",hash:o=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),o&&o!=="#"&&(t+=o.charAt(0)==="#"?o:"#"+o),t}function di(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let o=e.indexOf("?");o>=0&&(t.search=e.substr(o),e=e.substr(0,o)),e&&(t.pathname=e)}return t}function rR(e,t,r,o){o===void 0&&(o={});let{window:a=document.defaultView,v5Compat:l=!1}=o,c=a.history,d=ls.Pop,f=null,h=p();h==null&&(h=0,c.replaceState(Na({},c.state,{idx:h}),""));function p(){return(c.state||{idx:null}).idx}function g(){d=ls.Pop;let j=p(),k=j==null?null:j-h;h=j,f&&f({action:d,location:w.location,delta:k})}function x(j,k){d=ls.Push;let C=$h(w.location,j,k);h=p()+1;let T=Pv(C,h),A=w.createHref(C);try{c.pushState(T,"",A)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;a.location.assign(A)}l&&f&&f({action:d,location:w.location,delta:1})}function v(j,k){d=ls.Replace;let C=$h(w.location,j,k);h=p();let T=Pv(C,h),A=w.createHref(C);c.replaceState(T,"",A),l&&f&&f({action:d,location:w.location,delta:0})}function N(j){let k=a.location.origin!=="null"?a.location.origin:a.location.href,C=typeof j=="string"?j:Hc(j);return C=C.replace(/ $/,"%20"),lt(k,"No window.location.(origin|href) available to create URL for href: "+C),new URL(C,k)}let w={get action(){return d},get location(){return e(a,c)},listen(j){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(Ev,g),f=j,()=>{a.removeEventListener(Ev,g),f=null}},createHref(j){return t(a,j)},createURL:N,encodeLocation(j){let k=N(j);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:x,replace:v,go(j){return c.go(j)}};return w}var Av;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Av||(Av={}));function nR(e,t,r){return r===void 0&&(r="/"),sR(e,t,r)}function sR(e,t,r,o){let a=typeof t=="string"?di(t):t,l=lp(a.pathname||"/",r);if(l==null)return null;
vendor: 8,966 bytes, line 9
9let c=D1(e);oR(c);let d=null;for(let f=0;d==null&&f<c.length;++f){let h=xR(l);d=mR(c[f],h)}return d}function D1(e,t,r,o){t===void 0&&(t=[]),r===void 0&&(r=[]),o===void 0&&(o="");let a=(l,c,d)=>{let f={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};f.relativePath.startsWith("/")&&(lt(f.relativePath.startsWith(o),'Absolute route path "'+f.relativePath+'" nested under path '+('"'+o+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),f.relativePath=f.relativePath.slice(o.length));let h=ds([o,f.relativePath]),p=r.concat(f);l.children&&l.children.length>0&&(lt(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+h+'".')),D1(l.children,t,p,h)),!(l.path==null&&!l.index)&&t.push({path:h,score:fR(h,l.index),routesMeta:p})};return e.forEach((l,c)=>{var d;if(l.path===""||!((d=l.path)!=null&&d.includes("?")))a(l,c);else for(let f of I1(l.path))a(l,c,f)}),t}function I1(e){let t=e.split("/");if(t.length===0)return[];let[r,...o]=t,a=r.endsWith("?"),l=r.replace(/\?$/,"");if(o.length===0)return a?[l,""]:[l];let c=I1(o.join("/")),d=[];return d.push(...c.map(f=>f===""?l:[l,f].join("/"))),a&&d.push(...c),d.map(f=>e.startsWith("/")&&f===""?"/":f)}function oR(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:hR(t.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}const iR=/^:[\w-]+$/,aR=3,lR=2,cR=1,uR=10,dR=-2,Rv=e=>e==="*";function fR(e,t){let r=e.split("/"),o=r.length;return r.some(Rv)&&(o+=dR),t&&(o+=lR),r.filter(a=>!Rv(a)).reduce((a,l)=>a+(iR.test(l)?aR:l===""?cR:uR),o)}function hR(e,t){return e.length===t.length&&e.slice(0,-1).every((o,a)=>o===t[a])?e[e.length-1]-t[t.length-1]:0}function mR(e,t,r){let{routesMeta:o}=e,a={},l="/",c=[];for(let d=0;d<o.length;++d){let f=o[d],h=d===o.length-1,p=l==="/"?t:t.slice(l.length)||"/",g=pR({path:f.relativePath,caseSensitive:f.caseSensitive,end:h},p),x=f.route;if(!g)return null;Object.assign(a,g.params),c.push({params:a,pathname:ds([l,g.pathname]),pathnameBase:jR(ds([l,g.pathnameBase])),route:x}),g.pathnameBase!=="/"&&(l=ds([l,g.pathnameBase]))}return c}function pR(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,o]=gR(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let l=a[0],c=l.replace(/(.)\/+$/,"$1"),d=a.slice(1);return{params:o.reduce((h,p,g)=>{let{paramName:x,isOptional:v}=p;if(x==="*"){let w=d[g]||"";c=l.slice(0,l.length-w.length).replace(/(.)\/+$/,"$1")}const N=d[g];return v&&!N?h[x]=void 0:h[x]=(N||"").replace(/%2F/g,"/"),h},{}),pathname:l,pathnameBase:c,pattern:e}}function gR(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),ap(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 o=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,f)=>(o.push({paramName:d,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(o.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),o]}function xR(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ap(!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 lp(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,o=e.charAt(r);return o&&o!=="/"?null:e.slice(r)||"/"}const yR=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vR=e=>yR.test(e);function bR(e,t){t===void 0&&(t="/");let{pathname:r,search:o="",hash:a=""}=typeof e=="string"?di(e):e,l;if(r)if(vR(r))l=r;else{if(r.includes("//")){let c=r;r=r.replace(/\/\/+/g,"/"),ap(!1,"Pathnames cannot have embedded double slashes - normalizing "+(c+" -> "+r))}r.startsWith("/")?l=Mv(r.substring(1),"/"):l=Mv(r,t)}else l=t;return{pathname:l,search:NR(o),hash:SR(a)}}function Mv(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function Pf(e,t,r,o){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(o)+"].  Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function wR(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function cp(e,t){let r=wR(e);return t?r.map((o,a)=>a===r.length-1?o.pathname:o.pathnameBase):r.map(o=>o.pathnameBase)}function up(e,t,r,o){o===void 0&&(o=!1);let a;typeof e=="string"?a=di(e):(a=Na({},e),lt(!a.pathname||!a.pathname.includes("?"),Pf("?","pathname","search",a)),lt(!a.pathname||!a.pathname.includes("#"),Pf("#","pathname","hash",a)),lt(!a.search||!a.search.includes("#"),Pf("#","search","hash",a)));let l=e===""||a.pathname==="",c=l?"/":a.pathname,d;if(c==null)d=r;else{let g=t.length-1;if(!o&&c.startsWith("..")){let x=c.split("/");for(;x[0]==="..";)x.shift(),g-=1;a.pathname=x.join("/")}d=g>=0?t[g]:"/"}let f=bR(a,d),h=c&&c!=="/"&&c.endsWith("/"),p=(l||c===".")&&r.endsWith("/");return!f.pathname.endsWith("/")&&(h||p)&&(f.pathname+="/"),f}const ds=e=>e.join("/").replace(/\/\/+/g,"/"),jR=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),NR=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,SR=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function kR(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const L1=["post","put","patch","delete"];new Set(L1);const CR=["get",...L1];new Set(CR);function Sa(){return Sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Sa.apply(this,arguments)}const dp=y.createContext(null),TR=y.createContext(null),bs=y.createContext(null),vu=y.createContext(null),_n=y.createContext({outlet:null,matches:[],isDataRoute:!1}),O1=y.createContext(null);function ER(e,t){let{relative:r}=t===void 0?{}:t;fi()||lt(!1);let{basename:o,navigator:a}=y.useContext(bs),{hash:l,pathname:c,search:d}=$1(e,{relative:r}),f=c;return o!=="/"&&(f=c==="/"?o:ds([o,c])),a.createHref({pathname:f,search:d,hash:l})}function fi(){return y.useContext(vu)!=null}function hi(){return fi()||lt(!1),y.useContext(vu).location}function F1(e){y.useContext(bs).static||y.useLayoutEffect(e)}function fp(){let{isDataRoute:e}=y.useContext(_n);return e?BR():PR()}function PR(){fi()||lt(!1);let e=y.useContext(dp),{basename:t,future:r,navigator:o}=y.useContext(bs),{matches:a}=y.useContext(_n),{pathname:l}=hi(),c=JSON.stringify(cp(a,r.v7_relativeSplatPath)),d=y.useRef(!1);return F1(()=>{d.current=!0}),y.useCallback(function(h,p){if(p===void 0&&(p={}),!d.current)return;if(typeof h=="number"){o.go(h);return}let g=up(h,JSON.parse(c),l,p.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:ds([t,g.pathname])),(p.replace?o.replace:o.push)(g,p.state,p)},[t,o,c,l,e])}function Oa(){let{matches:e}=y.useContext(_n),t=e[e.length-1];return t?t.params:{}}function $1(e,t){let{relative:r}=t===void 0?{}:t,{future:o}=y.useContext(bs),{matches:a}=y.useContext(_n),{pathname:l}=hi(),c=JSON.stringify(cp(a,o.v7_relativeSplatPath));return y.useMemo(()=>up(e,JSON.parse(c),l,r==="path"),[e,c,l,r])}function AR(e,t){return RR(e,t)}function RR(e,t,r,o){fi()||lt(!1);let{navigator:a}=y.useContext(bs),{matches:l}=y.useContext(_n),c=l[l.length-1],d=c?c.params:{};c&&c.pathname;let f=c?c.pathnameBase:"/";c&&c.route;let h=hi(),p;if(t){var g;let j=typeof t=="string"?di(t):t;f==="/"||(g=j.pathname)!=null&&g.startsWith(f)||lt(!1),p=j}else p=h;let x=p.pathname||"/",v=x;if(f!=="/"){let j=f.replace(/^\//,"").split("/");v="/"+x.replace(/^\//,"").split("/").slice(j.length).join("/")}let N=nR(e,{pathname:v}),w=LR(N&&N.map(j=>Object.assign({},j,{params:Object.assign({},d,j.params),pathname:ds([f,a.encodeLocation?a.encodeLocation(j.pathname).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?f:ds([f,a.encodeLocation?a.encodeLocation(j.pathnameBase).pathname:j.pathnameBase])})),l,r,o);return t&&w?y.createElement(vu.Provider,{value:{location:Sa({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:ls.Pop}},w):w}function MR(){let e=VR(),t=kR(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application 
9Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),r?y.createElement("pre",{style:a},r):null,null)}const _R=y.createElement(MR,null);class DR extends y.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,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?y.createElement(_n.Provider,{value:this.props.routeContext},y.createElement(O1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function IR(e){let{routeContext:t,match:r,children:o}=e,a=y.useContext(dp);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),y.createElement(_n.Provider,{value:t},o)}function LR(e,t,r,o){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),o===void 0&&(o=null),e==null){var l;if(!r)return null;if(r.errors)e=r.matches;else if((l=o)!=null&&l.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let c=e,d=(a=r)==null?void 0:a.errors;if(d!=null){let p=c.findIndex(g=>g.route.id&&d?.[g.route.id]!==void 0);p>=0||lt(!1),c=c.slice(0,Math.min(c.length,p+1))}let f=!1,h=-1;if(r&&o&&o.v7_partialHydration)for(let p=0;p<c.length;p++){let g=c[p];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(h=p),g.route.id){let{loaderData:x,errors:v}=r,N=g.route.loader&&x[g.route.id]===void 0&&(!v||v[g.route.id]===void 0);if(g.route.lazy||N){f=!0,h>=0?c=c.slice(0,h+1):c=[c[0]];break}}}return c.reduceRight((p,g,x)=>{let v,N=!1,w=null,j=null;r&&(v=d&&g.route.id?d[g.route.id]:void 0,w=g.route.errorElement||_R,f&&(h<0&&x===0?(zR("route-fallback"),N=!0,j=null):h===x&&(N=!0,j=g.route.hydrateFallbackElement||null)));let k=t.concat(c.slice(0,x+1)),C=()=>{let T;return v?T=w:N?T=j:g.route.Component?T=y.createElement(g.route.Component,null):g.route.element?T=g.route.element:T=p,y.createElement(IR,{match:g,routeContext:{outlet:p,matches:k,isDataRoute:r!=null},children:T})};return r&&(g.route.ErrorBoundary||g.route.errorElement||x===0)?y.createElement(DR,{location:r.location,revalidation:r.revalidation,component:w,error:v,children:C(),routeContext:{outlet:null,matches:k,isDataRoute:!0}}):C()},null)}var V1=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(V1||{}),B1=(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})(B1||{});function OR(e){let t=y.useContext(dp);return t||lt(!1),t}function FR(e){let t=y.useContext(TR);return t||lt(!1),t}function $R(e){let t=y.useContext(_n);return t||lt(!1),t}function z1(e){let t=$R(),r=t.matches[t.matches.length-1];return r.route.id||lt(!1),r.route.id}function VR(){var e;let t=y.useContext(O1),r=FR(),o=z1();return t!==void 0?t:(e=r.errors)==null?void 0:e[o]}function BR(){let{router:e}=OR(V1.UseNavigateStable),t=z1(B1.UseNavigateStable),r=y.useRef(!1);return F1(()=>{r.current=!0}),y.useCallback(function(a,l){l===void 0&&(l={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Sa({fromRouteId:t},l)))},[e,t])}const _v={};function zR(e,t,r){_v[e]||(_v[e]=!0)}function UR(e,t){e?.v7_startTransition,e?.v7_relativeSplatPath}function U1(e){let{to:t,replace:r,state:o,relative:a}=e;fi()||lt(!1);let{future:l,static:c}=y.useContext(bs),{matches:d}=y.useContext(_n),{pathname:f}=hi(),h=fp(),p=up(t,cp(d,l.v7_relativeSplatPath),f,a==="path"),g=JSON.stringify(p);return y.useEffect(()=>h(JSON.parse(g),{replace:r,state:o,relative:a}),[h,g,a,r,o]),null}function nt(e){lt(!1)}function WR(e){let{basename:t="/",children:r=null,location:o,navigationType:a=ls.Pop,navigator:l,static:c=!1,future:d}=e;fi()&&lt(!1);let f=t.replace(/^\/*/,"/"),h=y.useMemo(()=>({basename:f,navigator:l,static:c,future:Sa({v7_relativeSplatPath:!1},d)}),[f,d,l,c]);
9typeof o=="string"&&(o=di(o));let{pathname:p="/",search:g="",hash:x="",state:v=null,key:N="default"}=o,w=y.useMemo(()=>{let j=lp(p,f);return j==null?null:{location:{pathname:j,search:g,hash:x,state:v,key:N},navigationType:a}},[f,p,g,x,v,N,a]);return w==null?null:y.createElement(bs.Provider,{value:h},y.createElement(vu.Provider,{children:r,value:w}))}function HR(e){let{children:t,location:r}=e;return AR(Vh(t),r)}new Promise(()=>{});function Vh(e,t){t===void 0&&(t=[]);let r=[];return y.Children.forEach(e,(o,a)=>{if(!y.isValidElement(o))return;let l=[...t,a];if(o.type===y.Fragment){r.push.apply(r,Vh(o.props.children,l));return}o.type!==nt&&lt(!1),!o.props.index||!o.props.children||lt(!1);let c={id:o.props.id||l.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(c.children=Vh(o.props.children,l)),r.push(c)}),r}function Bh(){return Bh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Bh.apply(this,arguments)}function YR(e,t){if(e==null)return{};var r={},o=Object.keys(e),a,l;for(l=0;l<o.length;l++)a=o[l],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function GR(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function KR(e,t){return e.button===0&&(!t||t==="_self")&&!GR(e)}function zh(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let o=e[r];return t.concat(Array.isArray(o)?o.map(a=>[r,a]):[[r,o]])},[]))}function qR(e,t){let r=zh(e);return t&&t.forEach((o,a)=>{r.has(a)||t.getAll(a).forEach(l=>{r.append(a,l)})}),r}const QR=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],XR="6";try{window.__reactRouterVersion=XR}catch{}const JR="startTransition",Dv=Dm[JR];function ZR(e){let{basename:t,children:r,future:o,window:a}=e,l=y.useRef();l.current==null&&(l.current=eR({window:a,v5Compat:!0}));let c=l.current,[d,f]=y.useState({action:c.action,location:c.location}),{v7_startTransition:h}=o||{},p=y.useCallback(g=>{h&&Dv?Dv(()=>f(g)):f(g)},[f,h]);return y.useLayoutEffect(()=>c.listen(p),[c,p]),y.useEffect(()=>UR(o),[o]),y.createElement(WR,{basename:t,children:r,location:d.location,navigationType:d.action,navigator:c,future:o})}const eM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",tM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pe=y.forwardRef(function(t,r){let{onClick:o,relative:a,reloadDocument:l,replace:c,state:d,target:f,to:h,preventScrollReset:p,viewTransition:g}=t,x=YR(t,QR),{basename:v}=y.useContext(bs),N,w=!1;if(typeof h=="string"&&tM.test(h)&&(N=h,eM))try{let T=new URL(window.location.href),A=h.startsWith("//")?new URL(T.protocol+h):new URL(h),E=lp(A.pathname,v);A.origin===T.origin&&E!=null?h=E+A.search+A.hash:w=!0}catch{}let j=ER(h,{relative:a}),k=rM(h,{replace:c,state:d,target:f,preventScrollReset:p,relative:a,viewTransition:g});function C(T){o&&o(T),T.defaultPrevented||k(T)}return y.createElement("a",Bh({},x,{href:N||j,onClick:w||l?o:C,ref:r,target:f}))});var Iv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Iv||(Iv={}));var Lv;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Lv||(Lv={}));function rM(e,t){let{target:r,replace:o,state:a,preventScrollReset:l,relative:c,viewTransition:d}=t===void 0?{}:t,f=fp(),h=hi(),p=$1(e,{relative:c}
9);return y.useCallback(g=>{if(KR(g,r)){g.preventDefault();let x=o!==void 0?o:Hc(h)===Hc(p);f(e,{replace:x,state:a,preventScrollReset:l,relative:c,viewTransition:d})}},[h,f,p,o,a,r,e,l,c,d])}function nM(e){let t=y.useRef(zh(e)),r=y.useRef(!1),o=hi(),a=y.useMemo(()=>qR(o.search,r.current?null:t.current),[o.search]),l=fp(),c=y.useCallback((d,f)=>{const h=zh(typeof d=="function"?d(a):d);r.current=!0,l("?"+h,f)},[l,a]);return[a,c]}const sM="https://city1051fm.cloud/".replace(/\/$/,""),nr=e=>`${sM}${e}`,oM=nr("/media/shows/breakfast-in-the-city.jpg"),Ov=nr("/media/shows/sport-city.jpg"),iM=nr("/media/shows/city-cafe.jpg"),aM=nr("/media/shows/the-rundown.jpg"),lM=nr("/media/shows/super-drive-time.jpg"),cM=nr("/media/shows/lift-off.jpg"),uM=nr("/media/shows/girlish.png"),dM=nr("/media/shows/the-bar.jpg"),fM=nr("/media/shows/kilonshele.png"),hM=nr("/media/shows/city-lounge.png"),mM=nr("/media/shows/praise-in-the-city.png"),pM=nr("/media/shows/house-city.png"),gM=nr("/media/shows/soul-city.png"),xM=nr("/media/shows/city-talks.jpg"),Wr=[{id:1,slug:"breakfast-in-the-city",title:"Breakfast In The City",host:"Big P, Lagos Daddy, Ini, and Onome",time:"6:00 am - 11:00 am",days:"Monday - Friday",description:"Start your day with the best music, news, traffic updates, and engaging conversations. The most listened-to morning show in Lagos!",image:oM,featured:!0,category:"CITY SHOWS"},{id:2,slug:"sport-city",title:"Sport City",host:"Damiloju, and Mickeal",time:"8:00 am - 8:30 am",days:"Monday - Friday",description:"Daily sports news, analysis, and commentary from our award-winning sports team.",image:Ov,featured:!1,category:"CITY SHOWS"},{id:3,slug:"city-cafe",title:"City Cafe",host:"Varoni",time:"11:00 am - 2:00 pm",days:"Monday - Friday",description:"Mid-day entertainment, music, and the best chill vibes in the city.",image:iM,featured:!1,category:"CITY SHOWS"},{id:4,slug:"the-rundown",title:"The Rundown",host:"Bolanle Peps",time:"2:00 pm - 5:00 pm",days:"Monday - Friday",description:"Afternoon news and entertainment wrap-up with a dynamic set of hosts.",image:aM,featured:!1,category:"CITY SHOWS"},{id:5,slug:"super-drive-time",title:"Super Drive Time",host:"Kaycee, Reke",time:"5:00 pm - 9:00 pm",days:"Monday - Friday",description:"Lagos' finest drive-time show, getting you home with humor, information, and hits.",image:lM,featured:!0,category:"CITY SHOWS"},{id:6,slug:"lift-off",title:"Lift Off",host:"Twix",time:"9:00 pm - 11:00 pm",days:"Monday - Friday",description:"Unwind with late-night tunes and deep conversations as we lift off into the night.",image:cM,featured:!1,category:"CITY SHOWS"},{id:7,slug:"girlish",title:"Girlish",host:"Ini",time:"7:00 pm - 8:00 pm",days:"Monday",description:"Women empowerment, lifestyle, and everything girly!",image:uM,featured:!1,category:"CITY SHOWS"},{id:8,slug:"the-bar",title:"The Bar",host:"City 105.1 FM Crew",time:"8:30 pm - 9:30 pm",days:"Friday",description:"Kickstart your weekend with the hottest club vibes and industry talk.",image:dM,featured:!1,category:"CITY SHOWS"},{id:9,slug:"kilonshele",title:"Kilonshele",host:"Olajumoke Onibread",time:"8:00 am - 12:00 pm",days:"Saturday",description:"Weekend morning catch-up with the best of entertainment and local news.",image:fM,featured:!0,category:"CITY SHOWS"},{id:10,slug:"sport-city-xtra",title:"Sport City Xtra",host:"Rex Okiche, Sport City Crew",time:"2:00 pm - 6:00 pm",days:"Saturday",description:"In-depth weekend sports analysis and live match updates.",image:Ov,featured:!1,category:"CITY SHOWS"},{id:11,slug:"city-lounge",title:"City Lounge",host:"City 105.1 FM Crew",time:"6:00 pm - 10:00 pm",days:"Saturday",description:"Evening relaxation with ambient vibes and smooth music.",image:hM,featured:!1,category:"CITY SHOWS"},{id:12,slug:"praise-in-the-city",title:"Praise In The City",host:"City 105.1 FM Crew",time:"6:00 am - 12:00 pm",days:"Sunday",description:"Elevate your soul with an morning session of powerful gospel music and worship.",image:mM,featured:!1,category:"CITY SHOWS"},{id:13,slug:"house-city",title:"House City",host:"City 105.1 FM Crew",time:"12:00 pm - 4:00 pm",days:"Sunday",description:"Sunday afternoon vibes with deep house and electronic beats.",image:pM,featured:!1,category:"CITY SHOWS"},{id:14,slug:"soul-city",title:"Soul City",host:"City 105.1 FM Crew",time:"5:00 pm - 8:00 pm",days:"Sunday",description:"Soulful sounds and R&B hits to lead you into the new week.",image:gM,featured:!1,category:"CITY SHOWS"},{id:15,slug:"city-talks",title:"City Talks",host:"Reuben Abati",time:"12:00 pm - 2:00 pm",days:"Saturday",description:"In-depth conversation, interviews, and deep dives into current affairs and topics of public interest with Reuben Abati.",image:xM,featured:!0,category:"TALK SHOW"}],ft="https://city1051fm.cloud/".replace(/\/$/,"");async function Ce(e,t={}){const r=await fetch(`${ft}${e}`,{...t,headers:{"Content-Type":"application/json",...t.headers}});if(!r.ok){const o=await r.json().catch(()=>({}));let a=o.message||o.detail||o.error;if(Array.isArray(a)?a=a.join(" "):a&&typeof a=="object"&&(a=Object.values(a).flat().join(" ")),!a&&typeof o=="object"&&Object.keys(o).length>0){const l=Object.values(o)[0];Array.isArray(l)?a=l.join(" "):typeof l=="string"&&(a=l)}throw new Error(a||`API Error: ${r.status} ${r.statusText}`)}return r.json()}const Gs="https://city1051-atunwadigital.streamguys1.com/city1051",Fv=Wr.find(Gr)||Wr[0],yM={url:Gs,title:Fv?.title||"City 105.1 FM",subtext:"Live Stream",host:Fv?.host||""},W1=y.createContext(void 0),vM=({children:e})=>{const[t,r]=y.useState(!0),[o,a]=y.useState(!1),[l,c]=y.useState(1),[d,f]=y.useState(yM);y.useEffect(()=>{const p=async()=>{try{let x=null;try{const v=await Ce("/api/shows/");v&&v.length>0&&(x=v.find(N=>Gr(N)))}catch{}x||(x=Wr.find(Gr)||Wr[0]),x&&f(v=>v.url===Gs?{url:Gs,title:x.title||"City 105.1 FM",subtext:"Live Stream",host:x.host||""}:v)}catch(x){console.error("Failed to sync live show to PlayerContext:",x)}};p();const g=setInterval(p,6e4);return()=>clearInterval(g)},[]);const h=p=>{if(p.url===Gs&&!p.host){const g=Wr.find(Gr)||Wr[0];f({...p,title:g?.title||p.title,host:g?.host||""})}else f(p);r(!0)};return s.jsx(W1.Provider,{value:{isPlaying:t,setIsPlaying:r,isMuted:o,setIsMuted:a,volume:l,setVolume:c,currentTrack:d,playTrack:h},children:e})},vn=()=>{const e=y.useContext(W1);if(!e)throw new Error("usePlayer must be used within a PlayerProvider");return e},H1="/assets/logo-city-Bq9sM1wQ.png",bM="https://city1051-atunwadigital.streamguys1.com/city1051",$v=[{label:"HOME",href:"/"},{label:"NEWS",href:"/news"}
9,{label:"SHOWS",href:"/shows"},{label:"PROMOTIONS",href:"/promotions"},{label:"STAFF",href:"/staff"},{label:"CARDINAL MEDIA ACADEMY",href:"/cma"},{label:"EVENTS",href:"/events"},{label:"ABOUT US",href:"/about"}],Vv=[{icon:Da,href:"https://facebook.com/city1051",label:"Facebook"},{icon:au,href:"https://instagram.com/city1051",label:"Instagram"},{icon:fu,href:"https://twitter.com/city1051",label:"Twitter"},{icon:_w,href:"https://youtube.com/city1051",label:"Youtube"},{icon:lu,href:"https://tiktok.com/@city1051",label:"TikTok"}],hp=()=>{const[e,t]=y.useState(!1),{theme:r,setTheme:o}=Ym(),{isPlaying:a,currentTrack:l}=vn();new Date().getDay();const c=()=>{o(r==="dark"?"light":"dark")};return s.jsx("header",{className:"bg-background sticky top-0 z-50 border-b border-border",children:s.jsxs("div",{className:"container mx-auto",children:[s.jsxs("div",{className:"flex items-center justify-between py-3 px-4 md:px-0",children:[s.jsx(Pe,{to:"/",className:"flex-shrink-0",children:s.jsx("img",{src:H1,alt:"City 105.1 FM",className:"h-10 md:h-12"})}),s.jsx("nav",{className:"hidden xl:flex items-center gap-6",children:$v.map(d=>s.jsx(Pe,{to:d.href,className:"city-nav-link flex items-center gap-1",children:d.label},d.label))}),s.jsxs("div",{className:"hidden lg:flex items-center gap-3",children:[s.jsx("div",{className:"flex items-center gap-1.5 mr-2",children:Vv.map((d,f)=>s.jsx("a",{href:d.href,target:"_blank",rel:"noopener noreferrer",className:"city-social-icon w-10 h-10 hover:text-primary transition-colors",title:d.label,children:s.jsx(d.icon,{className:"w-4 h-4"})},f))}),s.jsx("button",{onClick:c,className:"city-social-icon w-10 h-10",title:r==="dark"?"Switch to light mode":"Switch to dark mode",children:r==="dark"?s.jsx(bc,{className:"w-4 h-4"}):s.jsx(yc,{className:"w-4 h-4"})}),s.jsxs(Pe,{to:"/player",className:`flex items-center gap-2 px-4 py-2 border border-primary text-primary font-semibold uppercase text-sm hover:bg-primary hover:text-primary-foreground transition-colors rounded ${a&&l.url!==bM?"animate-pulse-orange":""}`,children:[s.jsx(ao,{className:"w-4 h-4"}),"Listen Live"]})]}),s.jsxs("div",{className:"flex items-center gap-2 xl:hidden",children:[s.jsx("button",{onClick:c,className:"city-social-icon w-10 h-10 border-none",title:r==="dark"?"Switch to light mode":"Switch to dark mode",children:r==="dark"?s.jsx(bc,{className:"w-5 h-5 text-primary"}):s.jsx(yc,{className:"w-5 h-5 text-primary"})}),s.jsx("button",{className:"p-2",onClick:()=>t(!e),children:e?s.jsx(xn,{className:"w-6 h-6"}):s.jsx(uE,{className:"w-6 h-6"})})]})]}),e&&s.jsxs("nav",{className:"xl:hidden py-4 border-t border-border px-4",children:[s.jsx("div",{className:"flex flex-col gap-4",children:$v.map(d=>s.jsx(Pe,{to:d.href,className:"city-nav-link",onClick:()=>t(!1),children:d.label},d.label))}),s.jsxs("div",{className:"flex items-center justify-between mt-6 pt-4 border-t border-border",children:[s.jsx("div",{className:"flex items-center gap-2",children:Vv.map((d,f)=>s.jsx("a",{href:d.href,target:"_blank",rel:"noopener noreferrer",className:"city-social-icon w-10 h-10 border-primary/10",title:d.label,children:s.jsx(d.icon,{className:"w-4 h-4 text-foreground/80"})},f))}),s.jsx("button",{onClick:c,className:"city-social-icon w-10 h-10 border-primary/20",title:r==="dark"?"Switch to light mode":"Switch to dark mode",children:r==="dark"?s.jsx(bc,{className:"w-4 h-4 text-primary"}):s.jsx(yc,{className:"w-4 h-4 text-primary"})})]})]})]})})},wM="https://city1051fm.cloud/",jM=e=>e?e.startsWith("http")?e:`${wM}${e}`:null,Bv=e=>{if(!e)return 9999;const t=e.match(/(\d{1,2})(?::(\d{2}))?\s*(am|pm)/i);if(!t)return 9999;let r=parseInt(t[1],10);const o=t[2]?parseInt(t[2],10):0,a=t[3].toLowerCase();return a==="pm"&&r<12&&(r+=12),a==="am"&&r===12&&(r=0),r*60+o},NM=()=>{const[e,t]=y.useState(0),[r,o]=y.useState(3),[a,l]=y.useState([]),[c,d]=y.useState(!0);y.useEffect(()=>{(async()=>{try{const C=await Ce("/api/shows/");if(C&&C.length>0){const T=C.map(A=>({...A,image:jM(A.image)}));l(T)}else l(Wr)}catch(C){console.error("Failed to fetch shows, using fallback",C),l(Wr)}finally{d(!1)}})()},[]);const f=new Date().toLocaleDateString("en-US",{weekday:"long"}).toUpperCase(),h=(k,C)=>{const T=k.toUpperCase(),A=C.toUpperCase(),E=A.substring(0,3);return T.includes("MON-FRI")||T.includes("MONDAY-FRIDAY")||T.includes("MONDAY - FRIDAY")?["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY"].includes(A):T.includes("SAT-SUN")||T.includes("SATURDAY-SUNDAY")?["SATURDAY","SUNDAY"].includes(A):T.includes(A)||T.includes(E)},p=a.filter(k=>h(k.days,f)),x=[...p.length>0?p:a].sort((k,C)=>{const T=Bv(k.time)-Bv(C.time);return T!==0?T:k.id-C.id}),v=y.useRef(!1);y.useEffect(()=>{if(x.length>0&&!v.current){const k=x.findIndex(C=>Gr(C));if(k!==-1){const C=Math.floor(r/2),T=k-C,A=Math.max(0,x.length-r);t(Math.max(0,Math.min(T,A))),v.current=!0}}},[x,r]),y.useEffect(()=>{const k=()=>{let C=3;window.innerWidth<640?C=1:window.innerWidth<1024?C=2:C=3,o(C)};return k(),window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)},[]);const N=Math.max(0,x.length-r),w=()=>{t(k=>k>=N?0:k+1)},j=()=>{t(k=>k<=0?N:k-1)};return c||a.length===0?null:s.jsxs("section",{className:"relative py-8 overflow-hidden",children:[s.jsxs("div",{className:"relative px-12 md:px-16",children:[s.jsx("button",{onClick:j,className:"carousel-arrow left-0","aria-label":"Previous slide",children:s.jsx(oi,{className:"w-6 h-6"})}),s.jsx("div",{className:"overflow-hidden",children:s.jsx("div",{className:"flex transition-transform duration-500 ease-out",style:{transform:`translateX(-${e*(100/r)}%)`},children:x.map((k,C)=>{const T=Gr(k);return s.jsx("div",{className:"flex-shrink-0 px-2",style:{width:`${100/r}%`},children:s.jsxs(Pe,{to:`/shows/${k.slug}`,className:`relative block aspect-[4/3] overflow-hidden rounded group cursor-pointer border-2 transition-colors ${T?"border-red-500 ring-2 ring-red-500/50":"border-transparent hover:border-primary/50"}`,children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary via-primary to-background"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-transparent via-trans
9parent to-background/90",style:{clipPath:"polygon(30% 0, 100% 0, 100% 100%, 0 100%)"}}),s.jsx("img",{src:k.image,alt:k.title,className:"absolute right-0 top-1/2 -translate-y-1/2 h-[90%] w-auto object-contain z-10 group-hover:scale-105 transition-transform duration-300"}),s.jsxs("div",{className:"absolute inset-0 z-20 p-6 flex flex-col justify-end",children:[s.jsxs("div",{className:"flex flex-wrap gap-2 mb-2",children:[s.jsx("span",{className:"city-badge w-fit",children:k.category||"CITY SHOWS"}),T&&s.jsxs("span",{className:"bg-red-600 text-white font-bold tracking-wider px-2 py-1 text-xs border border-red-500 rounded-sm flex items-center gap-1.5 animate-pulse shadow-lg",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-white animate-ping"}),"LIVE NOW"]})]}),s.jsx("h3",{className:`text-xl md:text-2xl font-bold uppercase transition-colors ${T?"text-white drop-shadow-md":"text-foreground"}`,children:k.title}),s.jsx("p",{className:`text-sm mt-1 font-semibold ${T?"text-red-200":"text-white/90"}`,children:k.time})]})]})},`${k.id}-${C}`)})})}),s.jsx("button",{onClick:w,className:"carousel-arrow right-0","aria-label":"Next slide",children:s.jsx(qo,{className:"w-6 h-6"})})]}),s.jsx("div",{className:"flex justify-center gap-2 mt-6",children:Array.from({length:N+1}).map((k,C)=>s.jsx("button",{onClick:()=>t(C),className:`w-2.5 h-2.5 rounded-full transition-colors ${e===C?"bg-foreground":"bg-muted-foreground"}`,"aria-label":`Go to slide ${C+1}`},C))})]})},SM="https://city1051fm.cloud/",kM=e=>e?e.startsWith("http")?e:`${SM}${e}`:null,CM=[{short:"M",full:"Monday"},{short:"T",full:"Tuesday"},{short:"W",full:"Wednesday"},{short:"T",full:"Thursday"},{short:"F",full:"Friday"},{short:"S",full:"Saturday"},{short:"S",full:"Sunday"}],TM=()=>{const{isPlaying:e}=vn(),[t,r]=y.useState([]),[o,a]=y.useState(!0);y.useEffect(()=>{(async()=>{try{const g=(await Ce("/api/shows/")).map(x=>({...x,image:kM(x.image)}));r(g)}catch(p){console.error("Failed to fetch shows",p)}finally{a(!1)}})()},[]);const l=new Date().getDay(),c=l===0?6:l-1,d=t.find(h=>Gr(h)),f=d||t.find(h=>h.featured)||t[0];return o||!f?null:s.jsxs("section",{className:"relative min-h-[60vh] overflow-hidden",children:[s.jsxs("div",{className:"absolute inset-0",children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary via-primary/80 to-primary/60"}),s.jsx("div",{className:"absolute inset-0 bg-background",style:{clipPath:"polygon(40% 0, 100% 0, 100% 100%, 20% 100%)"}})]}),s.jsx("div",{className:"relative z-10 container mx-auto px-4 py-16 md:py-24",children:s.jsxs("div",{className:"grid md:grid-cols-2 gap-8 items-center",children:[s.jsxs("div",{className:"text-foreground",children:[s.jsxs("div",{className:"flex flex-wrap gap-2 mb-4",children:[s.jsx("span",{className:"city-badge",children:f.category||"CITY SHOWS"}),s.jsx("span",{className:`inline-block px-2.5 py-1 text-xs font-semibold uppercase tracking-wide transition-colors ${e&&d?"bg-green-500 text-white":d?"bg-red-500 text-white animate-pulse":"bg-primary text-primary-foreground"}`,children:d?"NOW ON AIR":"NEXT UP"})]}),s.jsx("h2",{className:"text-5xl md:text-7xl font-bold uppercase mb-4 tracking-tight",children:f.title}),s.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground mb-6",children:[s.jsx(vs,{className:"w-4 h-4"}),s.jsx("span",{className:"text-sm",children:f.time})]}),s.jsx("div",{className:"flex gap-2 mt-6",children:CM.map((h,p)=>{const g=f.days.toUpperCase(),x=h.full.toUpperCase(),v=x.substring(0,3);let N=!1;return g.includes("MON-FRI")||g.includes("MONDAY-FRIDAY")||g.includes("MONDAY - FRIDAY")?N=["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY"].includes(x):g.includes("SAT-SUN")||g.includes("SATURDAY-SUNDAY")?N=["SATURDAY","SUNDAY"].includes(x):N=g.includes(x)||g.includes(v),s.jsx("div",{className:`w-10 h-10 rounded-full flex items-center justify-center text-sm font-bold transition-all ${p===c&&N?"bg-primary text-primary-foreground ring-2 ring-primary ring-offset-2 ring-offset-background scale-110":N?"bg-primary/50 text-white":"bg-muted text-muted-foreground"}`,title:h.full,children:h.short},p)})})]}),s.jsx("div",{className:"flex justify-center md:justify-end",children:s.jsx("div",{className:"aspect-square w-72 h-72 md:w-[400px] md:h-[400px] rounded-full overflow-hidden shadow-2xl border-4 border-primary/20 hover:scale-105 transition-transform duration-500",children:s.jsx("img",{src:f.image||"",alt:f.title,className:"w-full h-full object-cover"})})})]})})]})},EM=`${ft}/media/presenters-group.png`,PM=()=>{const{isPlaying:e}=vn(),{data:t}=Wc({queryKey:["hero-banners"],queryFn:()=>Ce("/api/banners/")}),r=t?.find(d=>d.is_active),a=(d=>d?d.startsWith("http")?d:`${ft}${d.startsWith("/")?"":"/"}${d}`:EM)(r?.image),l=r?.title||"#WE RUN THIS CITY",c=r?.subtitle||"City 105.1 FM";return s.jsxs("section",{className:"relative w-full h-[65vw] min-h-[250px] md:h-[70vh] md:min-
9h-[500px] max-h-[800px] flex flex-col justify-start md:justify-center items-center overflow-hidden bg-black pt-8 sm:pt-12 md:pt-0",children:[s.jsxs("div",{className:"absolute inset-0",children:[s.jsx("img",{src:a,alt:"City 105.1 FM",className:"w-full h-full object-cover object-top md:object-center"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent"})]}),s.jsx("div",{className:"absolute top-3 sm:top-5 left-0 right-0 z-20 text-center px-4",children:s.jsx("div",{className:`inline-block border-2 px-6 sm:px-8 py-2 sm:py-2.5 shadow-xl backdrop-blur-md transition-all ${e?"border-green-500 bg-black/70 text-green-400 shadow-green-500/20":"border-white/80 bg-black/50 text-white"}`,children:s.jsx("h2",{className:"text-base sm:text-xl md:text-2xl font-bold uppercase tracking-widest",children:"NOW ON AIR"})})}),s.jsx("div",{className:"absolute top-1/2 -translate-y-1/2 left-0 right-0 z-10 text-center px-4",children:s.jsx("p",{className:"text-sm sm:text-base md:text-xl text-primary font-black uppercase tracking-widest drop-shadow-lg",children:c})}),s.jsx("div",{className:"absolute bottom-0 left-0 right-0 z-10 text-center px-4 pb-14 md:pb-20",children:s.jsx("h2",{className:"text-3xl sm:text-4xl md:text-6xl lg:text-7xl font-black uppercase text-white drop-shadow-[0_5px_15px_rgba(0,0,0,0.9)] tracking-tighter",children:l})})]})},zv=({title:e,subtitle:t,cta:r,href:o,className:a,icon:l})=>s.jsxs(Pe,{to:o,className:`p-8 md:p-10 rounded-[32px] border flex flex-col justify-between group transition-all duration-300 hover:shadow-xl hover:-translate-y-1 ${a}`,children:[s.jsxs("div",{children:[s.jsx("div",{className:"w-12 h-12 rounded-2xl bg-background border border-border/80 flex items-center justify-center mb-6 shadow-sm transform group-hover:rotate-12 transition-transform",children:l}),s.jsx("h4",{className:"text-2xl md:text-3xl font-black uppercase tracking-tighter text-foreground mb-3",children:e}),s.jsx("p",{className:"text-muted-foreground font-medium text-base mb-8 leading-relaxed",children:t})]}),s.jsxs("div",{className:"flex items-center gap-2 text-primary font-black uppercase text-xs tracking-widest group-hover:gap-3 transition-all",children:[r," ",s.jsx(Dc,{className:"w-4 h-4"})]})]}),AM=()=>s.jsx("section",{className:"py-16 bg-background relative overflow-hidden",children:s.jsx("div",{className:"container mx-auto px-4 relative z-10",children:s.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[s.jsx(zv,{title:"Advertise With Us",subtitle:"Reach over 5 million daily listeners across Lagos and beyond.",cta:"Rate Card",href:"/advertise",className:"bg-muted/40 border-primary/20 hover:border-primary/40",icon:s.jsx(Ew,{className:"w-5 h-5 text-primary"})}),s.jsx(zv,{title:"Partner with City FM",subtitle:"The perfect platform for your brand's events and activations.",cta:"Contact Sales",href:"/about",className:"bg-primary/5 border-primary/10 hover:border-primary/30",icon:s.jsx(Dc,{className:"w-5 h-5 text-primary"})})]})})}),RM=[{id:12,slug:"doja-allen",name:"Doja Allen",role:"Managing Director/CEO",image:"https://city1051fm.com/wp-content/uploads/2024/11/IMG_1332-Edit-copy.jpg",bio:`Adedoja Allen is the current Managing Director/CEO of City 105.1FM. She has a sterling academic and professionally distinguished career chronicle.
10
11She holds an MBA from Lagos Business School/IESE Business School, Navarra Barcelona, an MSc in Business and Information Technology from Aston Business School, Birmingham UK, and a Bachelor's degree in Mathematics from the University of Ibadan. For one without a journalism background, she possesses deep financial insight into business journalism, which has made her stand out in an extremely competitive industry.
12
13Her prominent accounting work at the British Broadcasting Corporation (BBC), a highly respected broadcasting institution in the UK, honed her skills and gave her a strong competitive edge before she returned to Nigeria in 2007.
14
15In 2012, she assumed the top leadership position of an urban radio station City 105.1FM as the MD/CEO at a time when the station was facing insolvency. Within three years, she steered the station back to profitability and moved it from the 24th position to the top 10 most preferred radio stations by listeners in Lagos.
16
17This feat gives credence to her reputation as a highly accomplished executive with a knack for re-engineering teams and organizations into profitability. Proved by the fact that many legacy media platforms seek to adopt her 360-degree modern approach to the business of journalism, which includes leveraging every asset and exploiting the power of digital media.
18
19Beyond business excellence, Adedoja Allen has also led City 105.1FM into impactful corporate social responsibility initiatives. A notable example is "Praise in the City," a free one-day praise event held annually in Lagos every 26th of December. The event has been successfully hosted for over 10 years, becoming a consistent platform for community upliftment and spiritual celebration.
20
21Driven by her passion for empowering women, she also created "She Leads with Adedoja Allen," a free one-day mentorship program designed to inspire and equip women with leadership and business skills. The initiative brings together women from diverse spheres of life to learn from top business trailblazers across various sectors. It was born out of her commitment to raising women who can lead boldly, using her own journey as the first female CEO of a radio station in Nigeria as a powerful example of exceptional leadership and impact.
22
23In furtherance of her vision for the future of media, Adedoja Allen is also the visionary behind Cardinal Media Academy (CMA), a subsidiary of City 105.1FM. The academy is a Physical and Virtual training institution focused on raising a new generation of media practitioners equipped for the modern media space. It caters to aspiring and developing presenters, producers, news editors, videographers, media marketers, and social media/online professionals. CMA was established to preserve the legacy of seasoned media professionals while empowering emerging talent to scale greater heights and attain milestones beyond previous generations.
24
25Adedoja Allen is one of Nigeria's eminent entrepreneurs who has shown doggedness and female brilliance in overcoming modern broadcasting challenges. She strongly believes that change is possible with the right mindset, systems, and team to drive transformation.
26
27She is happily married, family-oriented, and has remained instrumental in developing projects and platforms geared towards wholesome individuals, healthy homes, and ultimately a thriving society.`,social:{instagram:"https://www.instagram.com/dojaallen/",linkedin:"https://www.linkedin.com/in/doja-allen-2b737b1b/",x:"https://x.com/dojaallen"}},{id:13,slug:"rex-okiche",name:"Rex Okiche",role:"Head of Programmes",image:"https://city1051fm.com/wp-content/uploads/2024/11/WhatsApp-Image-2024-11-05-at-11.08.44_4a1053d7.jpg",bio:`Rex Okiche is the head of programmes and creative ideation helmsman at City 105.1 FM. With over 14 years of experience in the radio broadcasting and entertainment industries, Rex has earned a reputation as a dynamic media professional with a knack for keeping listeners entertained and audiences growing.
28
29Beyond programming, Rex brings a strong foundation in account strategy and marketing communications. He’s an audiophile who excels in audio production, on-air presentation, voiceover artistry, and social media management. Balancing creativity with a results-driven approach, Rex thrives on tackling new challenges and is always on the lookout for opportunities to innovate and grow.
30
31Before joining City FM, Rex took the reins as Station Manager at Bridge Radio, where he doubled the station’s revenue in just one year and cultivated strong relationships with media agencies, record labels, and advertisers. As Head of Programmes at Bridge Radio, he drove creative programming while adhering to NBC regulations and standards. He produced and hosted shows like Bridge Parliament, The Home Run and Branding your business. He initiated the first reality Radio Talent Contest in Delta State. His career journey also includes crafting compelling shows and producing punchy audio content at Urban Radio, where he made his mark as a versatile presenter and audio producer.
32
33Armed with a Bachelor’s degree in Computer Science from the University of Nigeria, Nsukka, and a series of professional certifications—including Strategic Leadership from GOTNI Leadership Centre, certification from the Music Business Academy and an Account Strategy Certificate from O2 Academy—Rex embraces creative solutions to content creation and programming.
34
35He currently hosts Parenting Today and the Music Gig on City 1051FM.`,social:{instagram:"https://www.instagram.com/rexokiche/",linkedin:"https://www.linkedin.com/in/rex-okiche-5b3a4a3b/",x:"https://x.com/rexokiche"}},{id:15,slug:"sessi",name:"Sessi",role:"OAP",image:"https://city1051fm.com/wp-content/uploads/2026/04/WEBSITE-INDIVIDUAL-PICTURE-sessi-770x539.jpg",bio:`A dose of Sessi a day keeps the worries away.
36
37Warm voice, vibrant energy, and just the right amount of chaos. Sessi brings charm, wit, and authenticity to every moment on air. She’s not just talking; she’s connecting. Not just reading news; she’s delivering it with clarity, confidence, and style that keeps you locked in.
38
39A certified yapper with purpose, Sessi turns everyday conversations into something you actually want to stay for. One thing is certain: when Sessi is on air, it’s never just a show… it’s an experience.`,social:{instagram:"https://www.instagram.com/sessi_oo",x:"https://x.com/sessi_o"}},{id:14,slug:"reke",name:"Reke",role:"OAP",image:"/reke.png",bio:`Reke is a natural-born communicator who followed her voice — and it led her straight to radio. After transitioning from the corporate world, she discovered that what once felt like “just talking” was actually her calling. Today, she turns conversations into connection and moments into meaning.
40
41With a solid background in voiceovers and public speaking, Reke brings warmth, clarity, and a spark of personality to the microphone. Whether she’s behind the mic, on stage, or speaking to one person in a room of many, her voice carries energy, emotion, and authenticity.
42
43On radio, Reke is relatable, lively, and real — blending insight with lightness, and depth with ease. She doesn’t just talk; she engages, she connects, and occasionally… she playfully says what everyone else is thinking.
44
45For Reke, radio isn’t just sound — it’s experience, expression, and a little bit of magic in every word.`,social:{instagram:"https://www.instagram.com/",x:"https://x.com/"}},{id:1,slug:"big-p",name:"Big P",role:"OAP",image:"https://city1051fm.com/wp-content/uploads/2021/10/PAULA-370x480.jpg",bio:`The Big P… one with a warm smile, a voice that feels like home, and an energy that makes every broadcast unforgettable. Sweet, radiant, and naturally talented, she's one to turn simple moments into magic and keeps her audience smiling, listening, and wanting more.
46
47Fun, lively, and full of charm, she blends playful banter with powerful storytelling effortlessly. Every show feels like a celebration, filled with laughter, inspiration, and a special connection only she can create.
48
49Kindness is her signature and love follows her everywhere. A truly unique and well-loved presenter, she isn't just a broadcaster — she's a vibe and more on the airwaves.`,social:{instagram:"https://www.instagram.com/bigp_official/",x:"https://x.com/bigp_radio"}},{id:2,slug:"lagos-daddy",name:"Lagos Daddy",role:"OAP",image:"https://city1051fm.com/wp-content/uploads/2026/01/lagos_daddy-370x480.png",bio:`Joshua Richard began his career as a child actor with the film Good Old Friends, starring alongside Uche Jumbo, before gaining widespread recognition for his role in the hit sitcom One Love, produced by Tajudeen Adepetu, where he starred for several years. Throughout his career, Joshua has continually redefined his craft, demonstrating his versatility in projects such as Tough Love, Ojukwu, What the Heart Sees, Ndani TV Phases, First Bank's The Heart on the Line, as well as reality TV shows like IrokoTV's "Being in Nollywood" and Showmax's "Bae Beyond Borders", among others.
50
51He also became one of the first IrokoTV brand ambassadors and was nominated for Best New Actor at the 2018 City People Awards. In addition to his acting achievements, Joshua is an accomplished producer, director, writer, and OAP. He produced and wrote the short films Crash & Burn and How Deep Is Your Love, the latter focusing on mental health awareness. Joshua also served as the assistant director for the film Hell Cat and has since become a published author with his short story "Undiluted". He also goes by the name "The Lagos Daddy" on radio.`,social:{instagram:"https://www.instagram.com/lagos_daddy/",x:"https://x.com/lagos_daddy",tiktok:"https://www.tiktok.com/@lagos_daddy"}},{id:3,slug:"bolanle-peps",name:"Bolanle Peps",role:"OAP",image:"https://city1051fm.com/wp-content/uploads/2025/12/Bolanle-370x480.jpg",show:"The Run Down (Weekdays 2–5 PM)",bio:`Meet Bolanle Peps, the voice that keeps Lagos talking. As the host of The Run Down on City FM, airing weekdays from 2–5 PM, she blends wit, curiosity, and authenticity to create shows that resonate with her audience. From trending topics to everyday stories, "Big Peps" delivers a mix of entertainment, insight, and conversation listeners can relate to and enjoy. She's more than a voice on the radio, she's a companion, a storyteller, the voice that c
51onnects people.`,social:{instagram:"https://www.instagram.com/bolanle_peps/",linkedin:"https://www.linkedin.com/in/bolanle-peps/",x:"https://x.com/bolanle_peps"}},{id:4,slug:"jumoke",name:"Jumoke",role:"OAP",image:"https://city1051fm.com/wp-content/uploads/2025/07/Jumoke-370x480.png",bio:`Olajumoke Orisaguna is an inspiring media personality who has carved her niche as a model, content creator, radio presenter, and brand influencer. Her journey is one of resilience and creativity, capturing hearts through authentic storytelling and engaging multimedia expressions.
52
53From gracing magazine covers to owning the runway, Olajumoke has worked with top brands and organizations, amplifying visibility and leaving a lasting impression. Her collaborations include leading names such as PayPorte, Stanbic IBTC, Ruutos Hair, and Shirley's Confectionery.
54
55Beyond modeling, she thrives as a YouTube creator and radio presenter, using her platforms to connect deeply with her audience while showcasing her versatility. With a flair for brand influencing, acting, and hosting, she continues to redefine what it means to be a modern media figure.
56
57She is currently furthering her education at Daystar, Olajumoke remains committed to growth while inspiring others through her remarkable journey. For her, media isn't just a career—it's a canvas for impact, creativity, and connection.`,social:{instagram:"https://www.instagram.com/jumoke_orisaguna/",facebook:"https://www.facebook.com/jumokeorisagunaofficial/",x:"https://x.com/jumoke_o"}},{id:5,slug:"varoni",name:"Varoni",role:"OAP",image:"https://city1051fm.com/wp-content/uploads/2025/07/NEW-WEBSITE-VAROI-370x480.png",bio:`Bamidele Victoria Temitope, popularly known as Varoni, is a vibrant and multi-talented media personality with a flair for creativity and connection. A proud alumna of Université Écotes in the Benin Republic, Varoni first found her voice through art. When the opportunity to host an art show came along, she embraced it—and with it, discovered a deep love for media.
58
59Since then, media has become her tool of expression, allowing her to entertain, educate, and make a lasting impact. From captivating audiences on TV to owning the airwaves on radio, Varoni's versatility makes her a standout force in the industry.
60
61She has lent her talent to brands like Expression Wine, BoatNaija, SimpleTV, and RaveTV—each collaboration showcasing her creativity, authenticity, and energy. For Varoni, media isn't just a platform—it's a passion-driven journey.`,social:{instagram:"https://www.instagram.com/varoni_official/",linkedin:"https://www.linkedin.com/in/bamidele-victoria/",facebook:"https://www.facebook.com/varonimedia/",x:"https://x.com/varoni_v",tiktok:"https://www.tiktok.com/@varoni_official"}},{id:6,slug:"ini-udofa",name:"INI",role:"OAP",image:"https://city1051fm.com/wp-content/uploads/2024/06/ini-370x480.jpg",show:"Breakfast in the City & Girlish",bio:`Ini Udofa, fondly known on-air as "Ini with the Innuendo," "The Gen Z Granny," and "Your Best Radio Pal," is a vibrant and witty radio personality who knows how to light up the airwaves. As one of the co-hosts of the lively breakfast show "Breakfast in the City," Ini brings unmatched energy, sharp humor, and her signature comical flair that keeps listeners entertained and coming back for more.
62
63She also co-hosts "Girlish," a dynamic, female-focused show where her authenticity and relatability shine through, creating a safe space for meaningful conversations and real-life stories.
64
65Behind the mic, Ini is as professional as they come — intentional about her content, meticulous with her prep, and passionate about delivering high-quality radio.`,social:{instagram:"https://www.instagram.com/iniudofa/",linkedin:"https://www.linkedin.com/in/ini-udofa/",facebook:"https://www.facebook.com/iniudofa_official/",x:"https://x.com/iniudofa",tiktok:"https://www.tiktok.com/@iniudofa"}},{id:7,slug:"kelechi-anuforo",name:"Kaycee",role:"OAP",image:"https://city1051fm.com/wp-content/uploads/2024/06/IMG-20250814-WA0035-370x480.jpg",show:"SuperDrive Time Show",bio:`Anuforo Michael Kelechi, known professionally as Kaycee, is a dynamic radio/TV broadcaster and music executive. A graduate of Obafemi Awolowo University, he represents the new wave of OAU alumni reshaping Nigeria's media and entertainment scene.
66
67His broadcasting journey began in 2016 through City 105.1 FM's Media Academy. From intern to prime-time host, he now anchors the SuperDrive Time Show, serves as Music Director and assistant head of programs at City FM Lagos.
68
69Kaycee's industry influence extends beyond radio. He has collaborated with major platforms like Warner Music, MTV Base, Universal Music, Chocolate City, and Heineken Nigeria in various A&R and media roles.
70
71An award-winning OAP, he was ranked #9 among the top 21 male OAPs of 2021 by Scream Magazine. Known for his wit, spontaneity, and insight, Kaycee continues to be a standout voice and trusted companion on air.`,social:{instagram:"https://www.instagram.com/",x:"https://x.com/"}},{id:8,slug:"twix-da-jims",name:"Twix Da Jims",role:"OAP",image:"https://city1051fm.com/wp-content/uploads/2024/06/twix-370x480.jpg",show:"Lift Off (9PM–Midnight)",bio:`TWIX DA JIMS is a Lagos-based OAP, rapper, hypeman, and creative force known for his bold personality and dynamic presence on LIFT OFF (9PM–Midnight) on CITY 105.1 FM. His journey into media began with hands-on training at Cardinal Media Academy and Music College International, recently completing a French course at Alliance Française and Music Business Academy for Africa. With a strong foundation in media, hospital
71ity, and music, Twix bridges entertainment and culture effortlessly.
72
73Starting his journey as a gospel rapper at 16 and transitioning into hyping by 19, Twix has hosted high-impact events like Urban Lifestyle Sundays at Maryland Mall, AlteFest and The Basement Gig. He is the creative mind behind PARTITUDE, SHINE LAGOS, SHEY YOU GO DANCE and HUSTLE BOY, platforms that reflect his passion for storytelling, youth empowerment, and authentic expression. Whether on-air or on stage, TWIX DA JIMS continues to shape the sound and spirit of Nigeria's urban youth culture.`,social:{instagram:"https://www.instagram.com/",x:"https://x.com/"}},{id:9,slug:"michael-mark-osagie",name:"Michael",role:"OAP",image:"https://city1051fm.com/wp-content/uploads/2024/06/mike-370x480.jpg",show:"Sports Show",bio:`Michael Mark-Osagie Ujialele is a dynamic On-Air Personality at CityFM 105.1, where he commands the airwaves as the engaging host of the station's flagship Sports Show. Known for his articulate delivery and insightful commentary, Michael brings a refreshing blend of energy, expertise, and storytelling to Nigerian sports broadcasting. His shows offer a compelling mix of local and international sports news, in-depth match analysis, and exclusive interviews, making him a favorite among sports enthusiasts across the country.
74
75With a Bachelor of Science degree in Biochemistry from Olabisi Onabanjo University, Michael combines the discipline and analytical mindset of a scientist with the flair and creativity of a seasoned broadcaster. His academic background informs his structured approach to content delivery, allowing him to break down complex sports topics with clarity and precision.
76
77Beyond the microphone, Michael is passionate about the role of sports in uniting communities and inspiring youth. He leverages his platform not just to entertain, but to educate and motivate his audience, often spotlighting rising talents and addressing key issues affecting the sports industry in Nigeria and beyond.
78
79Whether covering football, athletics, basketball, or emerging sports trends, Michael Mark-Osagie Ujialele remains a trusted and influential voice in the world of Nigerian sports media.`,social:{instagram:"https://www.instagram.com/"}},{id:10,slug:"oluwadamiloju-saliu",name:"Damiloju",role:"OAP",image:"https://city1051fm.com/wp-content/uploads/2024/06/damiloju-370x480.jpg",show:"Sports Team",bio:`Oluwadamiloju Saliu is a Sports Journalist with a knack for numbers. As a lover of words, you will catch him morphing statements and phrases into various puns. If you call him your ultimate Pundit, you won't be wrong.
80
81A huge lover of Chess (some will even go as far as calling it an obsession), you will almost always find him playing, analyzing or talking about the game. This has seen him cover every edition of the National Chess Championships since 2021 and also the African Chess Championship in 2022.
82
83He comes with a wealth of experience in Radio Broadcasting stretching over 5 years having had stints at Hope 89.1 FM and EKO 89.7 FM. He is currently a member of the Sports Team at City 105.1 FM.
84
85He has hosted TV shows including Sports Tussle and Fair Play on Lagos Television while also running commentary at Channels Kids Cup alongside multiple appearances on various TV Programmes including News Central, Plus TV amongst others.`,social:{instagram:"https://www.instagram.com/",x:"https://x.com/"}},{id:11,slug:"onome-appeal",name:"Onome",role:"OAP",image:"https://city1051fm.com/wp-content/uploads/2024/06/onome-370x480.jpg",show:"Breakfast in the City",bio:`If there were radio gods, Onome Appeal would consider himself their messenger.
86
87Onome is a seasoned broadcast journalist with over ten years of radio experience. He began his journey as a sports presenter, but his versatility has seen him successfully host and contribute to shows across a wide range of genres — from music and movies to politics and social commentary.
88
89A well-rounded broadcaster, Onome is also a news editor, newscaster, and audio imaging producer. He helps brands bring their stories to life, often lending his voice as a voice-over actor. His voice has featured in projects for both local and international brands — as a narrator in audiobooks as well as voice talent in animations and commercials.
90
91Currently, Onome is one of the hosts of Breakfast in the City, the flagship morning show on City 105.1 FM. He also serves in multiple leadership roles at the station: Assistant Head of Programmes, Head of Sports, and supervisor of the News Unit.`,social:{instagram:"https://www.instagram.com/",x:"https://x.com/"}}],MM=()=>{const{data:e}=Wc({queryKey:["hero-staff"],queryFn:()=>Ce("/api/staff/"),retry:1}),{data:t}=Wc({queryKey:["hero-shows"],queryFn:()=>Ce("/api/shows/"),retry:1}),r=(()=>{const d=e&&e.length>0;return[...d?e:RM].sort((h,p)=>p.id-h.id).filter(h=>(h.category==="Presenter"||h.role==="OAP")&&h.image).map(h=>{let p=h.image;d&&p&&!p.startsWith("http")&&(p=`${ft}${p.startsWith("/")?"":"/"}${p}`);let g="CITY SHOWS";
91if(h.show){if(typeof h.show=="string")g=h.show;else if(typeof h.show=="number"||!isNaN(Number(h.show))){const x=Number(h.show),v=t?.find(N=>N.id===x);if(v)g=v.title;else{const N=Wr?.find(w=>w.id===x);N&&(g=N.title)}}}return{id:h.id,slug:h.slug,name:h.name,role:h.role||"OAP",showTitle:g,image:p}})})(),[o,a]=y.useState(0);y.useEffect(()=>{if(r.length===0)return;const d=setInterval(()=>{a(f=>(f+1)%r.length)},5e3);return()=>clearInterval(d)},[r.length,o]);const l=()=>{r.length!==0&&a(d=>(d+1)%r.length)},c=()=>{r.length!==0&&a(d=>(d-1+r.length)%r.length)};return r.length===0?null:s.jsxs("section",{className:"relative w-full h-[120vw] min-h-[460px] md:h-[60vh] md:min-h-[450px] max-h-[700px] bg-zinc-50 dark:bg-black overflow-hidden group border-y border-zinc-200/50 dark:border-zinc-800/40",children:[r.map((d,f)=>{const h=f===o;return s.jsxs("div",{className:`absolute inset-0 w-full h-full flex flex-col md:flex-row items-center justify-between transition-all duration-1000 ease-in-out ${h?"opacity-100 z-10 translate-x-0":"opacity-0 z-0 pointer-events-none"}`,children:[s.jsxs("div",{className:"absolute inset-0 overflow-hidden select-none pointer-events-none",children:[s.jsx("img",{src:d.image,alt:"",className:"w-full h-full object-cover blur-3xl op
91acity-10 dark:opacity-20 scale-110"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-zinc-50 via-zinc-50/90 to-transparent dark:from-black dark:via-black/80 dark:to-transparent md:bg-gradient-to-r md:from-zinc-50 md:via-zinc-50/70 md:to-transparent dark:md:from-black dark:md:via-black/90 dark:md:to-black/30"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-zinc-50 via-transparent to-zinc-50/30 dark:from-black dark:via-transparent dark:to-black/30"})]}),s.jsxs("div",{className:"relative z-20 w-full md:w-1/2 h-[50%] md:h-full flex flex-col justify-center items-center md:items-start text-center md:text-left px-6 md:pl-16 lg:pl-24 pb-8 md:pb-0 order-2 md:order-1",children:[s.jsx("span",{className:"text-[10px] sm:text-xs md:text-sm text-primary font-black uppercase tracking-widest mb-1 bg-primary/10 px-2.5 py-0.5 rounded border border-primary/20 backdrop-blur-md",children:d.showTitle}),s.jsx("h2",{className:"text-2xl sm:text-3xl md:text-5xl lg:text-6xl font-black uppercase text-zinc-900 dark:text-white tracking-tighter drop-shadow-sm dark:drop-shadow-[0_4px_12px_rgba(0,0,0,0.9)] leading-none mb-1 sm:mb-2",children:d.name}),s.jsx("p",{className:"text-xs sm:text-sm md:text-base lg:text-lg text-zinc-600 dark:text-zinc-300 font-semibold mb-3 sm:mb-4 max-w-md dark:drop-shadow-[0_2px_8px_rgba(0,0,0,0.9)]",children:d.role}),s.jsxs(Pe,{to:`/staff/${d.slug}`,className:"relative inline-flex items-center gap-2 bg-primary text-primary-foreground font-black uppercase tracking-wider text-[10px] sm:text-xs md:text-sm px-4 py-2 sm:px-6 sm:py-3 rounded-full hover:bg-primary/90 transition-all hover:scale-105 shadow-[0_5px_15px_rgba(235,94,40,0.25)] dark:shadow-[0_5px_15px_rgba(235,94,40,0.4)] group/btn",children:["View Profile",s.jsx(qo,{className:"w-4 h-4 transition-transform group-hover/btn:translate-x-1"})]})]}),s.jsxs("div",{className:"relative w-full md:w-1/2 h-[50%] md:h-full flex justify-center items-center overflow-hidden order-1 md:order-2 pt-6 md:pt-0",children:[s.jsx("div",{className:"absolute w-[180px] h-[180px] md:w-[400px] md:h-[400px] bg-primary/10 dark:bg-primary/20 rounded-full blur-[40px] md:blur-[120px] select-none pointer-events-none"}),s.jsx("img",{src:d.image,alt:d.name,className:"h-[90%] md:h-[85%] max-h-[220px] md:max-h-[450px] w-auto object-contain rounded-[2rem] z-10 drop-shadow-[0_10px_20px_rgba(0,0,0,0.1)] dark:drop-shadow-[0_20px_50px_rgba(0,0,0,0.8)] filter contrast-[1.05]"})]})]},d.id)}),s.jsx("button",{onClick:c,className:"absolute left-4 top-1/2 -translate-y-1/2 z-30 p-2 sm:p-3 rounded-full bg-white/70 dark:bg-black/40 hover:bg-primary text-zinc-800 hover:text-white dark:text-white border border-zinc-200 dark:border-white/10 hover:border-primary transition-all duration-300 opacity-0 group-hover:opacity-100 backdrop-blur-md shadow-md dark:shadow-lg","aria-label":"Previous slide",children:s.jsx(oi,{className:"w-5 h-5 sm:w-6 h-6"})}),s.jsx("button",{onClick:l,className:"absolute right-4 top-1/2 -translate-y-1/2 z-30 p-2 sm:p-3 rounded-full bg-white/70 dark:bg-black/40 hover:bg-primary text-zinc-800 hover:text-white dark:text-white border border-zinc-200 dark:border-white/10 hover:border-primary transition-all duration-300 opacity-0 group-hover:opacity-100 backdrop-blur-md shadow-md dark:shadow-lg","aria-label":"Next slide",children:s.jsx(qo,{className:"w-5 h-5 sm:w-6 h-6"})}),s.jsx("div",{className:"absolute bottom-6 left-1/2 -translate-x-1/2 z-30 flex gap-2 sm:gap-3 bg-white/75 dark:bg-black/30 px-4 py-2 rounded-full backdrop-blur-md border border-zinc-200/50 dark:border-white/5",children:r.map((d,f)=>s.jsx("button",{onClick:()=>a(f),className:`w-2.5 h-2.5 sm:w-3 sm:h-3 rounded-full transition-all duration-300 ${o===f?"bg-primary scale-125 shadow-[0_0_8px_rgba(235,94,40,0.8)]":"bg-zinc-300 dark:bg-zinc-500 hover:bg-zinc-400 dark:hover:bg-zinc-300"}`,"aria-label":`Go to slide ${f+1}`},f))})]})},_M=e=>{try{const t=new Date(e),r=new Date;return t.setHours(0,0,0,0),r.setHours(0,0,0,0),t>=r}catch{return!0}},DM=()=>{const[e,t]=y.useState([]),[r,o]=y.useState(!0);return y.useEffect(()=>{(async()=>{try{o(!0);const c=(await Ce("/api/events/")).filter(f=>!f.is_deleted&&_M(f.date));c.sort((f,h)=>new Date(f.date).getTime()-new Date(h.date).getTime());const d=c.map(f=>{let h=f.image||"";if(h&&!h.startsWith("http")){const g=h.startsWith("/")?h:`/${h}`;h=`${ft}${g}`}const p=new Date(f.date);return{id:f.id,title:f.title,day:isNaN(p.getTime())?"":p.getDate().toString(),month:isNaN(p.getTime())?"":p.toLocaleStr
91ing("en-US",{month:"short"}),year:isNaN(p.getTime())?"":p.getFullYear().toString(),location:f.location||"Lagos",image:h,rawDate:f.date}});t(d)}catch(l){console.error("Failed to fetch upcoming events:",l)}finally{o(!1)}})()},[]),s.jsx("section",{className:"py-16 bg-background",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsx("h2",{className:"city-section-title text-center mb-12",children:"UPCOMING EVENTS"}),s.jsxs("div",{className:"max-w-4xl mx-auto",children:[r&&s.jsx("div",{className:"relative aspect-video rounded overflow-hidden bg-muted animate-pulse flex items-center justify-center",children:s.jsx(Ic,{className:"w-8 h-8 animate-spin text-primary"})}),!r&&e.length===0&&s.jsxs("div",{className:"relative aspect-video rounded overflow-hidden bg-muted/40 border border-border flex flex-col items-center justify-center gap-3",children:[s.jsx("p",{className:"text-muted-foreground text-lg font-medium",children:"No upcoming events at the moment."}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Check back soon — something exciting is always in the works!"})]}),!r&&e.map(a=>s.jsx("div",{className:"group cursor-pointer mb-6 last:mb-0",children:s.jsxs("div",{className:"relative aspect-video rounded overflow-hidden",children:[s.jsx("img",{src:a.image,alt:a.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background via-transparent to-transparent"}),s.jsx("div",{className:"absolute top-4 left-4 bg-card/90 backdrop-blur-sm px-4 py-2 rounded",children:s.jsxs("div",{className:"text-center",children:[s.jsx("span",{className:"block text-2xl font-bold text-primary",children:a.day}),s.jsxs("span",{className:"text-xs uppercase text-muted-foreground",children:[a.month," ",a.year]})]})}),s.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-6",children:[s.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:a.location}),s.jsx("h3",{className:"text-2xl md:text-3xl font-bold text-foreground",children:a.title}),s.jsx("a",{href:"/events",className:"inline-block mt-4 text-primary hover:text-primary/80 font-semibold text-sm uppercase tracking-wide",children:"More info →"})]})]})},a.id))]})]})})},IM="https://city1051fm.cloud/",LM=e=>e?e.startsWith("http")?e:`${IM}${e}`:null,OM=e=>{const t=new Date(e),o=Math.floor((new Date().getTime()-t.getTime())/1e3);if(o<60)return`${o}s ago`;const a=Math.floor(o/60);if(a<60)return`${a} mins ago`;const l=Math.floor(a/60);return l<24?`${l} hours ago`:t.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})},FM=()=>{const[e,t]=y.useState([]),[r,o]=y.useState(!0),[a,l]=y.useState([]),{toast:c}=ys();y.useEffect(()=>{const h=[];for(let p=0;p<localStorage.length;p++){const g=localStorage.key(p);g&&g.startsWith("liked_news_")&&h.push(Number(g.replace("liked_news_","")))}l(h)},[]);const d=async(h,p)=>{if(h.preventDefault(),h.stopPropagation(),!a.includes(p.id))try{const g=p.slug||String(p.id),x=await Ce(`/api/news/${g}/like/`,{method:"POST"});t(N=>N.map(w=>w.id===p.id?{...w,likes:x.likes}:w));const v=[...a,p.id];l(v),localStorage.setItem(`liked_news_${p.id}`,"true"),c({title:"Liked!",description:"Thank you for your response."})}catch(g){console.error("Failed to like news:",g)}},f=async(h,p)=>{h.preventDefault(),h.stopPropagation();const g=`${window.location.origin}/news/${p.slug||p.id}`;try{navigator.share?await navigator.share({title:p.title,text:p.excerpt,url:g}):(await navigator.clipboard.writeText(g),c({title:"Link Copied!",description:"Story link copied to clipboard."}));const x=p.slug||String(p.id);Ce(`/api/news/${x}/share/`,{method:"POST"}).catch(()=>{})}catch(x){console.error("Failed to share news:",x)}};return y.useEffect(()=>{(async()=>{try{const g=(await Ce("/api/news/")).slice(0,6).map(x=>({...x,image:LM(x.image)}));t(g)}catch(p){console.error("Failed to load latest news",p)}finally{o(!1)}})()},[]),s.jsx("section",{className:"py-16 bg-background",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsx("h2",{className:"city-section-title text-center mb-12",children:"LATEST NEWS"}),r?s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:Array.from({length:6}).map((h,p)=>s.jsxs("div",{className:"animate-pulse bg-card p-4 rounded-[2rem] border border-border",children:[s.jsx("div",{className:"aspect-[4/3] rounded-2xl bg-muted mb-4"}),s.jsx("div",{className:"h-4 bg-muted rounded w-3/4 mb-3"}),s.jsx("div",{className:"h-3 bg-muted rounded w-full mb-1"}),s.jsx("div",{className:"h-3 bg-muted rounded w-5/6 mb-4"}),s.jsxs("div",{className:"flex justify-between items-center mt-auto pt-4 border-t border-border",children:[s.jsx("div",{className:"h-3 bg-muted rounded w-1/3"}),s.jsx("div",{className:"w-9 h-9 rounded-full bg-muted"})]})]},p))}):e.length===0?s.jsx("div",{className:"text-center text-muted-foreground py-12",children:"No news articles available yet."}):s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map(h=>s.jsxs(Pe,{to:`/news/${h.slug||h.id}`,className:"bg-card p-4 rounded-[2rem] border border-border hover:border-primary transition-all hover:-translate-y-1.5 flex flex-col h-full shadow-lg group",children:[s.jsxs("div",{className:"relative aspect-[4/3] rounded-2xl overflow-hidden bg-muted/50 mb-5 flex items-center justify-center",children:[h.image?s.jsx("img",{src:h.image,alt:h.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}
91):s.jsx(vc,{className:"w-12 h-12 text-muted-foreground/30"}),s.jsx("div",{className:"absolute top-3 left-3 bg-black/85 backdrop-blur-sm text-white text-[10px] font-black uppercase px-3.5 py-1.5 rounded-lg tracking-widest border border-white/10 z-10",children:h.category.replace(/_/g," ")}),s.jsx("div",{className:"absolute top-3 right-3 w-8 h-8 bg-card/80 backdrop-blur-sm rounded-lg flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity",children:s.jsx(oE,{className:"w-4 h-4 text-foreground"})})]}),s.jsxs("div",{className:"flex flex-col flex-grow px-2",children:[s.jsx("h3",{className:"text-lg font-bold text-foreground mb-3 group-hover:text-primary transition-colors leading-snug line-clamp-2",children:h.title}),s.jsx("p",{className:"text-sm text-muted-foreground line-clamp-3 mb-6 flex-grow",children:h.excerpt}),s.jsxs("div",{className:"flex items-center justify-between mt-auto pt-4 border-t border-border gap-2",children:[s.jsxs("div",{className:"flex items-center gap-1.5 text-[10px] sm:text-xs font-bold text-muted-foreground uppercase tracking-widest",children:[s.jsx(Nr,{className:"w-3.5 h-3.5"}),s.jsx("span",{children:OM(h.created_at)})]}),s.jsxs("div",{className:"flex items-center gap-3 sm:gap-4 text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:[s.jsxs("span",{className:"flex items-center gap-1 text-muted-foreground/70",title:"Views",children:[s.jsx(Yr,{className:"w-3.5 h-3.5"}),s.jsx("span",{children:(h.views||0).toLocaleString()})]}),s.jsxs("button",{onClick:p=>d(p,h),className:`flex items-center gap-1 transition-colors hover:text-primary cursor-pointer ${a.includes(h.id)?"text-primary":"text-muted-foreground/70"}`,title:"Like",children:[s.jsx(Xo,{className:`w-3.5 h-3.5 ${a.includes(h.id)?"fill-primary":""}`}),s.jsx("span",{children:(h.likes||0).toLocaleString()})]}),s.jsx("button",{onClick:p=>f(p,h),className:"flex items-center gap-1 transition-colors hover:text-primary text-muted-foreground/70 cursor-pointer",title:"Share",children:s.jsx(hs,{className:"w-3.5 h-3.5"})}),s.jsx("div",{className:"w-8 h-8 rounded-full bg-primary/10 text-primary flex items-center justify-center group-hover:bg-primary group-hover:text-primary-foreground transition-colors shrink-0",children:s.jsx(mn,{className:"w-4 h-4 group-hover:translate-x-0.5 transition-transform"})})]})]})]})]},h.id))}),s.jsx("div",{className:"mt-12 text-center",children:s.jsxs(Pe,{to:"/news",className:"inline-flex items-center gap-2 bg-primary text-primary-foreground px-8 py-3.5 rounded-xl font-black hover:bg-primary/90 transition-all uppercase tracking-wider text-xs shadow-lg shadow-primary/10 hover:scale-[1.02] active:scale-95",children:["View All News ",s.jsx(mn,{className:"w-4 h-4"})]})})]})})},Uv="https://city1051fm.cloud/",$M=()=>{const[e,t]=y.useState([]),[r,o]=y.useState(!0),{playTrack:a,currentTrack:l,isPlaying:c,setIsPlaying:d}=vn();return y.useEffect(()=>{(async()=>{try{const g=(await Ce("/api/podcasts/")).sort((x,v)=>new Date(v.created_at).getTime()-new Date(x.created_at).getTime()).slice(0,3).map(x=>{const v=x.cover_image||x.cover_url;return x.cover_image&&!x.cover_image.startsWith("http")&&(x.cover_image=`${Uv}${x.cover_image}`),x.audio_file&&!x.audio_file.startsWith("http")&&(x.audio_file=`${Uv}${x.audio_file}`),x});t(g)}catch(h){console.error("Failed to fetch latest podcasts",h)}finally{o(!1)}})()},[]),r?s.jsx("section",{className:"py-16 bg-muted",children:s.jsx("div",{className:"container mx-auto px-4 text-center",children:s.jsx("div",{className:"animate-pulse text-muted-foreground font-black uppercase tracking-widest",children:"Loading Latest Episodes..."})})}):e.length===0?null:s.jsx("section",{className:"py-16 bg-muted",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsxs("div",{className:"flex flex-col items-center text-center mb-12",children:[s.jsxs("h2",{className:"text-4xl font-black text-foreground uppercase tracking-tighter mb-2",children:["LATEST ",s.jsx("span",{className:"text-primary",children:"PODCASTS"})]}),s.jsx("p",{className:"text-muted-foreground font-bold uppercase text-xs tracking-widest",children:"Stay updated with our recent digital originals"})]}),s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map(f=>{const h=l.title===f.title,p=h&&c,g=x=>{x.preventDefault(),x.stopPropagation(),f.media_type!=="video"&&(h?d(!c):a({url:f.audio_file||f.media_url,title:f.title,subtext:f.host||"City FM Podcast",image:f.cover_image||f.cover_url}))};return s.jsxs("article",{className:"group bg-card rounded-2xl overflow-hidden shadow-sm border border-border hover:shadow-xl transition-all duration-300",children:[s.jsxs(Pe,{to:`/podcasts/${f.slug}`,className:"block relative aspect-square overflow-hidden bg-muted",children:[s.jsx("img",{src:f.cover_image||f.cover_url||"https://images.unsplash.com/photo-1571235062967-3c97892e7908?q=80&w=800&auto=format&fit=crop",alt:f.title,className:"w-full h-full object-cover group-hover:scale-110 transition-transform duration-700"}),s.jsx("div",{className:"absolute inset-0 bg-black/40 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity backdrop-blur-[2px]",children:s.jsx("div",{className:"w-16 h-16 bg-primary text-primary-foreground rounded-full flex items-center justify-center hover:scale-110 active:scale-95 transition-transform shadow-xl",children:f.media_type==="video"?s.jsx(dr,{className:"w-8 h-8 fill-current ml-1"}):p?s.jsx(fs,{onClick:g,className:"w-8 h-8 fill-current"}):s.jsx(dr,{onClick:g,className:"w-8 h-8 fill-current ml-1"})})}),s.jsxs("div",{className:"absolute top-4 left-4 flex flex-col gap-2",children:[s.jsx("span",{className:"bg-primary/90 backdrop-blur-md text-primary-foreground px-3 py-1 rounded-lg text-[10px] font-black uppercase tracking-widest shadow-lg w-fit",children:f.category||"Digital"}),f.media_type==="video"&&s.jsxs("span",{className:"bg-red-600/90 backdrop-blur-md text-white px-3 py-1 rounded-lg text-[10px] font-black uppercase tracking-widest shadow-lg flex items-center gap-1 w-fit",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-white animate-pulse"}),"Video"]})]}),h&&f.media_type!=="video"&&s.jsx("span",{className:"absolute top-4 right-4 bg-white/90 backdrop-blur-md text-primary px-3 py-1 rounded-lg text-[10px] font-black uppercase tracking-widest shadow-lg",children:p?"● PLAYING":"PAUSED"})]}),s.jsxs("div",{className:"p-6",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsxs("div",{className:"flex flex-col",children:[s.jsx("span",{className:"text-[9px] font-black text-muted-foreground uppercase tracking-[0.2em] mb-1",children:"Host"}),s.jsx("span",{className:"text-primary text-xs font-black uppercase tracking-widest",children:f.host})]}),s.jsx("span",{className:"text-muted-foreground text-[10px] font-bold uppercase self-end mb-1",children:f.formatted_date})]}),s.jsx(Pe,{to:`/podcasts/${f.slug}`,children:s.jsx("h3",{className:"text-xl font-bold text-foreground leading-tight group-hover:text-primary transition-colors line-clamp-2",children:f.title})}),f.author_details&&s.jsxs("div",{className:"mt-4 pt-4 border-t border-border flex items-center gap-2 opacity-60 hover:opacity-100 transition-opacity",children:[s.jsx("div",{className:"w-5 h-5 rounded-full bg-primary/10 flex items-center justify-center text-[9px] font-black text-primary",children:f.author_details.initials}),s.jsx("span",{className:"text-[9px] font-black text-foreground
91/70 uppercase tracking-widest",children:f.author_details.name})]})]})]},f.id)})}),s.jsx("div",{className:"mt-16 flex justify-center",children:s.jsxs(Pe,{to:"/podcasts",className:"inline-flex items-center gap-3 bg-primary text-primary-foreground px-10 py-4 rounded-xl font-black text-sm uppercase tracking-[0.2em] hover:bg-primary/90 transition-all shadow-xl shadow-primary/25 group",children:["Explore Full Library ",s.jsx(mn,{className:"w-5 h-5 group-hover:translate-x-1 transition-transform"})]})})]})})},VM=e=>{if(!e)return"https://images.unsplash.com/photo-1598488035139-bdbb2231ce04?w=800&h=450&fit=crop";if(e.startsWith("http"))return e;const t=e.startsWith("/")?e:`/${e}`;return`${ft}${t}`},BM=({images:e,albumName:t,onImageClick:r})=>{const[o,a]=y.useState(0);y.useEffect(()=>{if(e.length<=1)return;const d=setInterval(()=>{a(f=>f===e.length-1?0:f+1)},4e3+Math.random()*1e3);return()=>clearInterval(d)},[e]);const l=()=>a(d=>d===0?e.length-1:d-1),c=()=>a(d=>d===e.length-1?0:d+1);return s.jsxs("div",{className:"mb-10 animate-in fade-in duration-300",children:[s.jsx("h3",{className:"text-xs font-black uppercase text-foreground/80 tracking-[0.15em] mb-3 ml-1 border-l-2 border-primary pl-2",children:t}),s.jsxs("div",{className:"relative overflow-hidden rounded-2xl shadow-xl aspect-[4/3] border border-border",children:[s.jsx("div",{className:"flex h-full transition-transform duration-500 ease-in-out",style:{transform:`translateX(-${o*100}%)`},children:e.map(d=>s.jsxs("div",{onClick:()=>r(d),className:"w-full h-full flex-shrink-0 relative cursor-pointer",children:[s.jsx("img",{src:d.src,alt:d.alt,className:"w-full h-full object-cover",loading:"lazy"}),d.caption&&s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/90 via-black/20 to-transparent flex flex-col justify-end p-4",children:s.jsx("p",{className:"text-white font-bold text-xs leading-snug line-clamp-2",children:d.caption})})]},d.id))}),e.length>1&&s.jsxs(s.Fragment,{children:[s.jsx("button",{onClick:d=>{d.stopPropagation(),l()},className:"absolute left-2.5 top-1/2 -translate-y-1/2 bg-black/60 text-white rounded-xl p-1.5 active:bg-primary transition-colors flex items-center justify-center",children:s.jsx(oi,{size:16})}),s.jsx("button",{onClick:d=>{d.stopPropagation(),c()},className:"absolute right-2.5 top-1/2 -translate-y-1/2 bg-black/60 text-white rounded-xl p-1.5 active:bg-primary transition-colors flex items-center justify-center",children:s.jsx(qo,{size:16})})]})]}),e.length>1&&s.jsx("div",{className:"flex justify-center gap-1.5 mt-3",children:e.map((d,f)=>s.jsx("button",{onClick:()=>a(f),className:`w-1.5 h-1.5 rounded-full transition-all ${f===o?"bg-primary w-3.5":"bg-muted-foreground/25"}`},f))})]})},Y1=()=>{const[e,t]=y.useState([]),[r,o]=y.useState(!0),[a,l]=y.useState("All"),[c,d]=y.useState(null),f=[{id:1,src:"https://city1051fm.com/wp-content/uploads/2021/10/17.JPG-scaled.jpeg",alt:"City 105.1 FM Gallery",album:"Radio",caption:"Live Session"},{id:2,src:"https://city1051fm.com/wp-content/uploads/2021/10/12.JPG-scaled.jpeg",alt:"City 105.1 FM Gallery",album:"Radio",caption:"Presenter in Studio"},{id:3,src:"https://city1051fm.com/wp-content/uploads/2021/10/WhatsApp-Image-2026-01-30-at-1.50.54-PM.jpeg",alt:"City 105.1 FM Event",album:"Events",caption:"Praise in the City"},{id:4,src:"https://city1051fm.com/wp-content/uploads/2021/10/WhatsApp-Image-2026-01-30-at-1.50.51-PM.jpeg",alt:"City 105.1 FM Event",album:"Events",caption:"Live activation"},{id:5,src:"https://city1051fm.com/wp-content/uploads/2021/10/WhatsApp-Image-2026-01-30-at-1.50.47-PM.jpeg",alt:"City 105.1 FM Event",album:"Events",caption:"Stage performance"},{id:6,src:"https://city1051fm.com/wp-content/uploads/2021/10/WhatsApp-Image-2026-01-30-at-1.45.56-PM.jpeg",alt:"City 105.1 FM Event",album:"Behind the Scenes",caption:"Studio setup"},{id:7,src:"https://city1051fm.com/wp-content/uploads/2021/10/WhatsApp-Image-2026-01-30-at-1.45.58-PM.jpeg",alt:"City 105.1 FM Event",album:"Behind the Scenes",caption:"Production desk"},{id:8,src:"https://city1051fm.com/wp-content/uploads/2021/10/WhatsApp-Image-2026-01-30-at-1.44.47-PM.jpeg",alt:"City 105.1 FM Event",album:"Behind the Scenes",caption:"Pre-show preparation"}];y.useEffect(()=>{(async()=>{try{o(!0);const N=await Ce("/api/gallery/");if(N&&N.length>0){const w=N.filter(j=>j.image&&!j.image.toLowerCase().endsWith(".heic")).map(j=>({id:j.id,src:VM(j.image),alt:j.caption||"City 105.1 FM Gallery",album:j.album||"General",caption:j.caption||""}));t(w.length>0?w:f)}else t(f)}catch(N){console.error("Failed to fetch gallery:",N),t(f)}finally{o(!1)}})()},[]);const h=["All",...Array.from(new Set(e.map(v=>
91v.album).filter(Boolean)))],p=Array.from(new Set(e.map(v=>v.album).filter(Boolean))),x=(()=>{if(a==="All"){const v=[];return p.forEach(N=>{const w=e.filter(j=>j.album===N).sort((j,k)=>k.id-j.id).slice(0,3);v.push(...w)}),v}return e.filter(v=>v.album===a).sort((v,N)=>N.id-v.id).slice(0,3)})();return r&&e.length===0?s.jsx("section",{className:"py-16 bg-muted",children:s.jsxs("div",{className:"container mx-auto px-4 flex flex-col items-center justify-center py-20 gap-4",children:[s.jsx(Bt,{className:"w-8 h-8 text-primary animate-spin"}),s.jsx("p",{className:"text-muted-foreground text-xs font-bold uppercase tracking-widest",children:"Loading Gallery..."})]})}):s.jsxs("section",{className:"py-16 bg-muted",children:[c&&s.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/90 backdrop-blur-md animate-in fade-in duration-200",onClick:()=>d(null),children:[s.jsx("button",{onClick:()=>d(null),className:"absolute top-5 right-5 w-12 h-12 rounded-2xl bg-white/10 hover:bg-white/20 flex items-center justify-center text-white transition-all hover:scale-105 active:scale-95",children:s.jsx(xn,{size:24})}),s.jsxs("div",{className:"relative max-w-4xl w-full mx-4 flex flex-col items-center animate-in zoom-in-95 duration-200",onClick:v=>v.stopPropagation(),children:[s.jsx("img",{src:c.src,alt:c.alt,className:"max-h-[80vh] max-w-full rounded-2xl object-contain shadow-2xl border border-white/10"}),(c.caption||c.album)&&s.jsxs("div",{className:"mt-4 text-center",children:[c.caption&&s.jsx("p",{className:"text-white font-bold text-lg",children:c.caption}),c.album&&s.jsx("p",{className:"text-primary text-xs font-black uppercase tracking-widest mt-1.5",children:c.album})]})]})]}),s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsx("h2",{className:"text-3xl font-bold text-center mb-2",children:"City Gallery"}),s.jsx("p",{className:"text-muted-foreground text-center mb-10",children:"Behind the scenes at City 105.1 FM"}),h.length>1&&s.jsx("div",{className:"hidden sm:flex flex-wrap gap-2 mb-10 justify-center",children:h.map(v=>s.jsx("button",{onClick:()=>l(v),className:`px-5 py-2.5 rounded-full text-xs font-bold uppercase tracking-widest transition-all border ${a===v?"bg-primary text-primary-foreground border-primary shadow-lg shadow-primary/20":"bg-card text-muted-foreground border-border hover:border-primary/50"}`,children:v},v))}),e.length===0&&s.jsxs("div",{className:"flex flex-col items-center justify-center py-20 gap-4 text-center",children:[s.jsx(wh,{size:48,className:"text-muted-foreground/20"}),s.jsx("p",{className:"text-muted-foreground text-xs font-bold uppercase tracking-widest",children:"No images in this album yet."})]}),e.length>0&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"block sm:hidden space-y-8",children:p.map(v=>{const N=e.filter(w=>w.album===v);return N.length===0?null:s.jsx(BM,{albumName:v,images:N,onImageClick:d},v)})}),s.jsx("div",{className:"hidden sm:grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 max-w-6xl mx-auto",children:x.map(v=>s.jsxs("div",{onClick:()=>d(v),className:"group relative aspect-[4/3] rounded-2xl overflow-hidden cursor-pointer border border-border bg-card shadow-md hover:shadow-xl transition-all duration-300",children:[s.jsx("img",{src:v.src,alt:v.alt,className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105",loading:"lazy"}),s.jsxs("div",{className:"absolute inset-0 bg-gradient-to-t from-black/90 via-black/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300 flex flex-col justify-end p-5",children:[v.album&&s.jsx("span",{className:"text-primary text-[10px] font-black uppercase tracking-widest mb-1",children:v.album}),v.caption&&s.jsx("p",{className:"text-white font-bold text-sm leading-snug mb-2 line-clamp-2",children:v.caption}),s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-white/40 text-[9px] font-bold uppercase tracking-wider",children:"Click to view"}),s.jsx("div",{className:"w-8 h-8 rounded-xl bg-primary text-primary-foreground flex items-center justify-center shadow-lg shadow-primary/20 scale-90 group-hover:scale-100 transition-transform",children:s.jsx(Dw,{size:14})})]})]})]},v.id))})]}),s.jsx("div",{className:"mt-12 text-center",children:s.jsxs(Pe,{to:"/gallery",className:"inline-flex items-center gap-2 bg-primary text-primary-foreground px-8 py-3.5 rounded-xl font-black hover:bg-primary/95 transition-all shadow-lg shadow-primary/10 hover:scale-[1.02] active:scale-95 uppercase tracking-widest text-xs",children:["View Full Gallery ",s.jsx(mn,{className:"w-4.5 h-4.5"})]})})]})]})},zM="/assets/city-fm-app-screen-K0GtVuUY.png",UM=()=>s.jsxs("section",{className:"py-24 relative overflow-hidden bg-black",children:[s.jsxs("div",{className:"absolute inset-0 z-0",children:[s.jsx("div",{className:"absolute top-0 left-1/4 w-96 h-96 bg-primary/10 rounded-full blur-[100px] animate-pulse"}),s.jsx("div",{className:"absolute bottom-0 right-1/4 w-96 h-96 bg-primary/5 rounded-full blur-[100px] animate-pulse delay-1000"})]}),s.jsx("div",{className:"container relative z-10 mx-auto px-4",children:s.jsx("div",{className:"bg-gradient-to-br from-zinc-900 to-black border border-white/10 rounded-[48px] p-8 md:p-16 overflow-hidden",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsxs("div",{className:"text-left",children:[s.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-primary/20 rounded-full text-primary text-xs font-black uppercase tracking-widest mb-6",children:[s.jsx(ev,{className:"w-4 h-4"}),"Mobile Experience"]}),s.jsxs("h2",{className:"text-4xl md:text-6xl font-black text-white uppercase tracking-tighter leading-none mb-6",children:["Listen to City 105.1 FM ",s.jsx("br",{}),s.jsx("span",{className:"text-primary italic",children:"Everywhere You Go"})]}),s.jsx("p",{className:"text-zinc-400 text-lg md:text-xl font-medium mb-10 leading-relaxed max-w-lg",children:"Stream live, catch up on podcasts, and stay updated with the latest news directly from your pocket. Download our official app today."}),s.jsxs("div",{className:"flex flex-wrap gap-4",children:[s.jsx("a",{href:"#",target:"_blank",rel:"noopener noreferrer",className:"group relative flex items-center gap-3 bg-zinc-800 hover:bg-zinc-700 text-white px-6 py-3 rounded-2xl transition-all border border-white/5 hover:border-primary/50 shadow-2xl",children:s.jsx("img",{src:"https://upload.wikimedia.org/wikipedia/commons/7/78/Google_Play_Store_badge_EN.svg",alt:"Get it on Google Play",className:"h-10"})}),s.jsx("a",{href:"https://apps.apple.com/us/app/city1051fm/id1380079565",target:"_blank",rel:"noopener noreferrer",className:"group relative flex items-center gap-3 bg-zinc-800 hover:bg-zinc-700 text-white px-6 py-3 rounded-2xl transition-all border border-white/5 hover:border-primary/50 shadow-2xl",title:"Download on the App Store",children:s.jsx("img",{src:"https://upload.wikimedia.org/wikipedia/commons/3/3c/Download_on_the_App_Store_Badge.svg",alt:"Download on the App Store",className:"h-10"})})]}),s.jsxs("div",{className:"mt-8 flex items-center gap-4 text-zinc-500",children:[s.jsx("div",{className:"flex -sp
91ace-x-2",children:[1,2,3,4].map(e=>s.jsx("div",{className:"w-8 h-8 rounded-full border-2 border-black bg-zinc-800 flex items-center justify-center text-[10px] font-bold",children:String.fromCharCode(64+e)},e))}),s.jsx("p",{className:"text-sm font-medium",children:"Joined over 10k+ active listeners"})]})]}),s.jsxs("div",{className:"relative group perspective-1000 hidden lg:block",children:[s.jsx("div",{className:"relative z-10 transform group-hover:rotate-y-6 transition-transform duration-700",children:s.jsxs("div",{className:"w-[300px] h-[610px] bg-black rounded-[3rem] border-[8px] border-zinc-800 shadow-[0_25px_60px_-15px_rgba(0,0,0,0.8)] relative overflow-hidden mx-auto",children:[s.jsxs("div",{className:"absolute top-2.5 left-1/2 -translate-x-1/2 w-24 h-4 bg-black/80 backdrop-blur-md rounded-full z-20 flex items-center justify-center pointer-events-none",children:[s.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-zinc-900 border border-zinc-700 mr-2"}),s.jsx("div",{className:"w-10 h-1 bg-zinc-800 rounded-full"})]}),s.jsx("img",{src:zM,alt:"City 105.1 FM Mobile App",className:"w-full h-full object-cover object-top"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-tr from-transparent via-white/5 to-transparent pointer-events-none"})]})}),s.jsx("div",{className:"absolute top-1/4 -left-10 w-14 h-14 bg-primary rounded-2xl flex items-center justify-center shadow-2xl animate-bounce z-20",children:s.jsx(Qo,{className:"text-white w-7 h-7"})}),s.jsx("div",{className:"absolute bottom-1/4 -right-8 w-16 h-16 bg-zinc-800/90 backdrop-blur-md rounded-3xl border border-white/10 flex items-center justify-center shadow-2xl rotate-12 z-20",children:s.jsx(ev,{className:"w-8 h-8 text-primary"})})]})]})})})]}),WM=[{icon:Da,href:"https://facebook.com/city1051",label:"Facebook"},{icon:au,href:"https://instagram.com/city1051",label:"Instagram"},{icon:fu,href:"https://twitter.com/city1051",label:"Twitter"},{icon:_w,href:"https://youtube.com/city1051",label:"Youtube"},{icon:lu,href:"https://tiktok.com/@city1051",label:"TikTok"}],mp=()=>{const{theme:e,setTheme:t}=Ym();new Date().getDay();const r=()=>{t(e==="dark"?"light":"dark")};return s.jsx("footer",{className:"bg-background border-t border-border py-8",children:s.jsx("div",{className:"container mx-auto px-4",children:s.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-6",children:[s.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6",children:[s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("img",{src:H1,alt:"City 105.1 FM",className:"h-8"}),s.jsx("p",{className:"text-sm text-muted-foreground whitespace-nowrap",children:"Copyright City 105.1 FM"})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("a",{href:"#",className:"transition-transform hover:scale-105",children:s.jsx("img",{src:"https://upload.wikimedia.org/wikipedia/commons/7/78/Google_Play_Store_badge_EN.svg",alt:"Google Play",className:"h-8"})}),s.jsx("a",{href:"https://apps.apple.com/us/app/city1051fm/id1380079565",target:"_blank",rel:"noopener noreferrer",className:"transition-transform hover:scale-105",title:"Download on the App Store",children:s.jsx("img",{src:"https://upload.wikimedia.org/wikipedia/commons/3/3c/Download_on_the_App_Store_Badge.svg",alt:"App Store",className:"h-7.5"})})]})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"flex items-center gap-1.5 mr-2",children:WM.map((o,a)=>s.jsx("a",{href:o.href,target:"_blank",rel:"noopener noreferrer",className:"city-social-icon w-9 h-9 hover:text-primary transition-colors",title:o.label,children:s.jsx(o.icon,{className:"w-4 h-4"})},a))}),s.jsx("button",{onClick:r,className:"city-social-icon w-9 h-9",title:e==="dark"?"Switch to light mode":"Switch to dark mode",children:e==="dark"?s.jsx(bc,{className:"w-4 h-4"}):s.jsx(yc,{className:"w-4 h-4"})})]})]})})})};var Af,Wv;function HM(){if(Wv)return Af;Wv=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",o=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;
91function a(l,c){if(l===c)return!0;if(l&&c&&typeof l=="object"&&typeof c=="object"){if(l.constructor!==c.constructor)return!1;var d,f,h;if(Array.isArray(l)){if(d=l.length,d!=c.length)return!1;for(f=d;f--!==0;)if(!a(l[f],c[f]))return!1;return!0}var p;if(t&&l instanceof Map&&c instanceof Map){if(l.size!==c.size)return!1;for(p=l.entries();!(f=p.next()).done;)if(!c.has(f.value[0]))return!1;for(p=l.entries();!(f=p.next()).done;)if(!a(f.value[1],c.get(f.value[0])))return!1;return!0}if(r&&l instanceof Set&&c instanceof Set){if(l.size!==c.size)return!1;for(p=l.entries();!(f=p.next()).done;)if(!c.has(f.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(l)&&ArrayBuffer.isView(c)){if(d=l.length,d!=c.length)return!1;for(f=d;f--!==0;)if(l[f]!==c[f])return!1;return!0}if(l.constructor===RegExp)return l.source===c.source&&l.flags===c.flags;if(l.valueOf!==Object.prototype.valueOf&&typeof l.valueOf=="function"&&typeof c.valueOf=="function")return l.valueOf()===c.valueOf();if(l.toString!==Object.prototype.toString&&typeof l.toString=="function"&&typeof c.toString=="function")return l.toString()===c.toString();if(h=Object.keys(l),d=h.length,d!==Object.keys(c).length)return!1;for(f=d;f--!==0;)if(!Object.prototype.hasOwnProperty.call(c,h[f]))return!1;if(e&&l instanceof Element)return!1;for(f=d;f--!==0;)if(!((h[f]==="_owner"||h[f]==="__v"||h[f]==="__o")&&l.$$typeof)&&!a(l[h[f]],c[h[f]]))return!1;return!0}return l!==l&&c!==c}return Af=function(c,d){try{return a(c,d)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},Af}var YM=HM();const GM=oo(YM);var Rf,Hv;function KM(){if(Hv)return Rf;Hv=1;var e=function(t,r,o,a,l,c,d,f){if(!t){var h;if(r===void 0)h=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[o,a,l,c,d,f],g=0;h=new Error(r.replace(/%s/g,function(){return p[g++]})),h.name="Invariant Violation"}throw h.framesToPop=1,h}};return Rf=e,Rf}var qM=KM();const Yv=oo(qM);var Mf,Gv;function QM(){return Gv||(Gv=1,Mf=function(t,r,o,a){var l=o?o.call(a,t,r):void 0;if(l!==void 0)return!!l;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var c=Object.keys(t),d=Object.keys(r);if(c.length!==d.length)return!1;for(var f=Object.prototype.hasOwnProperty.bind(r),h=0;h<c.length;h++){var p=c[h];if(!f(p))return!1;var g=t[p],x=r[p];if(l=o?o.call(a,g,x,p):void 0,l===!1||l===void 0&&g!==x)return!1}return!0}),Mf}var XM=QM();const JM=oo(XM);var G1=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(G1||{}),_f={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},Kv=Object.values(G1),bu={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},K1=Object.entries(bu).reduce((e,[t,r])=>(e[r]=t,e),{}),Hr="data-rh",Uo={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Wo=(e,t)=>{for(let r=e.length-1;r>=0;r-=1){const o=e[r];if(Object.prototype.hasOwnProperty.call(o,t))return o[t]}return null},ZM=e=>{let t=Wo(e,"title");const r=Wo(e,Uo.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,()=>t);const o=Wo(e,Uo.DEFAULT_TITLE);return t||o||void 0},e4=e=>Wo(e,Uo.ON_CHANGE_CLIENT_STATE)||(()=>{}),Df=(e,t)=>t.filter(r=>typeof r[e]<"u").map(r=>r[e]).reduce((r,o)=>({...r,...o}),{}),t4=(e,t)=>t.filter(r=>typeof r.base<"u").map(r=>r.base).reverse().reduce((r,o)=>{if(!r.length){const a=Object.keys(o);for(let l=0;l<a.length;l+=1){const d=a[l].toLowerCase();if(e.indexOf(d)!==-1&&o[d])return r.concat(o)}}return r},[]),r4=e=>console&&typeof console.warn=="function"&&console.warn(e),sa=(e,t,r)=>{const o={};return r.filter(a=>Array.isArray(a[e])?!0:(typeof a[e]<"u"&&r4(`Helmet: ${e} should be of type "Array". Instead found type "${typeof a[e]}"`),!1)).map(a=>a[e]).reverse().reduce((a,l)=>{const c={};l.filter(f=>{let h;const p=Object.keys(f);for(let x=0;x<p.length;x+=1){const v=p[x],N=v.toLowerCase();
91t.indexOf(N)!==-1&&!(h==="rel"&&f[h].toLowerCase()==="canonical")&&!(N==="rel"&&f[N].toLowerCase()==="stylesheet")&&(h=N),t.indexOf(v)!==-1&&(v==="innerHTML"||v==="cssText"||v==="itemprop")&&(h=v)}if(!h||!f[h])return!1;const g=f[h].toLowerCase();return o[h]||(o[h]={}),c[h]||(c[h]={}),o[h][g]?!1:(c[h][g]=!0,!0)}).reverse().forEach(f=>a.push(f));const d=Object.keys(c);for(let f=0;f<d.length;f+=1){const h=d[f],p={...o[h],...c[h]};o[h]=p}return a},[]).reverse()},n4=(e,t)=>{if(Array.isArray(e)&&e.length){for(let r=0;r<e.length;r+=1)if(e[r][t])return!0}return!1},s4=e=>({baseTag:t4(["href"],e),bodyAttributes:Df("bodyAttributes",e),defer:Wo(e,Uo.DEFER),encode:Wo(e,Uo.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Df("htmlAttributes",e),linkTags:sa("link",["rel","href"],e),metaTags:sa("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:sa("noscript",["innerHTML"],e),onChangeClientState:e4(e),scriptTags:sa("script",["src","innerHTML"],e),styleTags:sa("style",["cssText"],e),title:ZM(e),titleAttributes:Df("titleAttributes",e),prioritizeSeoTags:n4(e,Uo.PRIORITIZE_SEO_TAGS)}),q1=e=>Array.isArray(e)?e.join(""):e,o4=(e,t)=>{const r=Object.keys(e);for(let o=0;o<r.length;o+=1)if(t[r[o]]&&t[r[o]].includes(e[r[o]]))return!0;return!1},If=(e,t)=>Array.isArray(e)?e.reduce((r,o)=>(o4(o,t)?r.priority.push(o):r.default.push(o),r),{priority:[],default:[]}):{default:e,priority:[]},qv=(e,t)=>({...e,[t]:void 0}),i4=["noscript","script","style"],Uh=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),Q1=e=>Object.keys(e).reduce((t,r)=>{const o=typeof e[r]<"u"?`${r}="${e[r]}"`:`${r}`;return t?`${t} ${o}`:o},""),a4=(e,t,r,o)=>{const a=Q1(r),l=q1(t);return a?`<${e} ${Hr}="true" ${a}>${Uh(l,o)}</${e}>`:`<${e} ${Hr}="true">${Uh(l,o)}</${e}>`},l4=(e,t,r=!0)=>t.reduce((o,a)=>{const l=a,c=Object.keys(l).filter(h=>!(h==="innerHTML"||h==="cssText")).reduce((h,p)=>{const g=typeof l[p]>"u"?p:`${p}="${Uh(l[p],r)}"`;return h?`${h} ${g}`:g},""),d=l.innerHTML||l.cssText||"",f=i4.indexOf(e)===-1;return`${o}<${e} ${Hr}="true" ${c}${f?"/>":`>${d}</${e}>`}`},""),X1=(e,t={})=>Object.keys(e).reduce((r,o)=>{const a=bu[o];return r[a||o]=e[o],r},t),c4=(e,t,r)=>{const o={key:t,[Hr]:!0},a=X1(r,o);return[ee.createElement("title",a,t)]},jc=(e,t)=>t.map((r,o)=>{const a={key:o,[Hr]:!0};return Object.keys(r).forEach(l=>{const d=bu[l]||l;if(d==="innerHTML"||d==="cssText"){const f=r.innerHTML||r.cssText;a.dangerouslySetInnerHTML={__html:f}}else a[d]=r[l]}),ee.createElement(e,a)}),wr=(e,t,r=!0)=>{switch(e){case"title":return{toComponent:()=>c4(e,t.title,t.titleAttributes),toString:()=>a4(e,t.title,t.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>X1(t),toString:()=>Q1(t)};default:return{toComponent:()=>jc(e,t),toString:()=>l4(e,t,r)}}},u4=({metaTags:e,linkTags:t,scriptTags:r,encode:o})=>{const a=If(e,_f.meta),l=If(t,_f.link),c=If(r,_f.script);return{priorityMethods:{toComponent:()=>[...jc("meta",a.priority),...jc("link",l.priority),...jc("script",c.priority)],toString:()=>`${wr("meta",a.priority,o)} ${wr("link",l.priority,o)} ${wr("script",c.priority,o)}`},metaTags:a.default,linkTags:l.default,scriptTags:c.default}},d4=e=>{const{baseTag:t,bodyAttributes:r,encode:o=!0,htmlAttributes:a,noscriptTags:l,styleTags:c,title:d="",titleAttributes:f,prioritizeSeoTags:h}=e;let{linkTags:p,metaTags:g,scriptTags:x}=e,v={toComponent:()=>[],toString:()=>""};return h&&({priorityMethods:v,linkTags:p,metaTags:g,scriptTags:x}=u4(e)),{priority:v,base:wr("base",t,o),bodyAttributes:wr("bodyAttributes",r,o),htmlAttributes:wr("htmlAttributes",a,o),link:wr("link",p,o),meta:wr("meta",g,o),noscript:wr("noscript",l,o),script:wr("script",x,o),style:wr("style",c,o),title:wr("title",{title:d,titleAttributes:f},o)}},Wh=d4,ic=[],pp=!!(typeof window<"u"&&window.document&&window.document.createElement),Hh=class{instances=[];canUseDOM=pp;context;value={setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?ic:this.instances,add:e=>{(this.canUseDOM?ic:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?ic:this.instances).indexOf(e);(this.canUseDOM?ic:this.instances).splice(t,1)}}};constructor(e,t){this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Wh({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},f4=parseInt(ee.version.split(".")[0],10),Yh=f4>=19,h4={},J1=ee.createContext(h4),Z1=class ej extends y.Component{static canUseDOM=pp;helmetData;constructor(t){super(t),Yh?this.helmetData=null:this.helmetData=new Hh(this.props.context||{},ej.canUseDOM)}render(){return Yh?ee.createElement(ee.Fragment,null,this.props.children):ee.createElement(J1.Provider,{value:this.helmetData.value},this.props.children)}},_o=(e,t)=>{const r=document.head||document.querySelector("head"),o=r.querySelectorAll(`${e}[${Hr}]`),a=[].slice.call(o),l=[];let c;return t&&t.length&&t.forEach(d=>{const f=document.createElement(e);for(const h in d)if(Object.prototype.hasOwnProperty.call(d,h))if(h==="innerHTML")f.innerHTML=d.innerHTML;else if(h==="cssText"){const p=d.cssText;f.appendChild(document.createTextNode(p))}else{const p=h,g=typeof d[p]>"u"?"":d[p];f.setAttribute(h,g)}f.setAttribute(Hr,"true"),a.some((h,p)=>(c=p,f.isEqualNode(h)))?a.splice(c,1):l.push(f)}),a.forEach(d=>d.parentNode?.removeChild(d)),l.forEach(d=>r.appendChild(d)),{oldTags:a,newTags:l}},Gh=(e,t)=>{const r=document.getElementsByTagName(e)[0];if(!r)return;const o=r.getAttribute(Hr),a=o?o.split(","):[],l=[...a],c=Object.keys(t);
91for(const d of c){const f=t[d]||"";r.getAttribute(d)!==f&&r.setAttribute(d,f),a.indexOf(d)===-1&&a.push(d);const h=l.indexOf(d);h!==-1&&l.splice(h,1)}for(let d=l.length-1;d>=0;d-=1)r.removeAttribute(l[d]);a.length===l.length?r.removeAttribute(Hr):r.getAttribute(Hr)!==c.join(",")&&r.setAttribute(Hr,c.join(","))},m4=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=q1(e)),Gh("title",t)},Qv=(e,t)=>{const{baseTag:r,bodyAttributes:o,htmlAttributes:a,linkTags:l,metaTags:c,noscriptTags:d,onChangeClientState:f,scriptTags:h,styleTags:p,title:g,titleAttributes:x}=e;Gh("body",o),Gh("html",a),m4(g,x);const v={baseTag:_o("base",r),linkTags:_o("link",l),metaTags:_o("meta",c),noscriptTags:_o("noscript",d),scriptTags:_o("script",h),styleTags:_o("style",p)},N={},w={};Object.keys(v).forEach(j=>{const{newTags:k,oldTags:C}=v[j];k.length&&(N[j]=k),C.length&&(w[j]=v[j].oldTags)}),t&&t(),f(e,N,w)},oa=null,p4=e=>{oa&&cancelAnimationFrame(oa),e.defer?oa=requestAnimationFrame(()=>{Qv(e,()=>{oa=null})}):(Qv(e),oa=null)},g4=p4,Xv=class extends y.Component{rendered=!1;shouldComponentUpdate(e){return!JM(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:t}=this.props.context;let r=null;const o=s4(e.get().map(a=>{const{context:l,...c}=a.props;return c}));Z1.canUseDOM?g4(o):Wh&&(r=Wh(o)),t(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},Nc=[],Jv=e=>{const t={};for(const r of Object.keys(e))t[K1[r]||r]=e[r];return t},Bs=e=>{const t={};for(const r of Object.keys(e)){const o=bu[r];t[o||r]=e[r]}return t},Zv=(e,t)=>{if(!pp)return;const r=document.getElementsByTagName(e)[0];if(!r)return;const o="data-rh-managed",a=r.getAttribute(o),l=a?a.split(","):[],c=Object.keys(t);for(const d of l)c.includes(d)||r.removeAttribute(d);for(const d of c){const f=t[d];f==null||f===!1?r.removeAttribute(d):f===!0?r.setAttribute(d,""):r.setAttribute(d,String(f))}c.length>0?r.setAttribute(o,c.join(",")):r.removeAttribute(o)},Lf=()=>{const e={},t={};for(const r of Nc){const{htmlAttributes:o,bodyAttributes:a}=r.props;o&&Object.assign(e,Jv(o)),a&&Object.assign(t,Jv(a))}Zv("html",e),Zv("body",t)},x4=class extends y.Component{componentDidMount(){Nc.push(this),Lf()}componentDidUpdate(){Lf()}componentWillUnmount(){const e=Nc.indexOf(this);e!==-1&&Nc.splice(e,1),Lf()}resolveTitle(){const{title:e,titleTemplate:t,defaultTitle:r}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||r||void 0}renderTitle(){const e=this.resolveTitle();if(e===void 0)return null;const t=this.props.titleAttributes||{};return ee.createElement("title",Bs(t),e)}renderBase(){const{base:e}=this.props;return e?ee.createElement("base",Bs(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,r)=>ee.createElement("meta",{key:r,...Bs(t)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,r)=>ee.createElement("link",{key:r,...Bs(t)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,r)=>{const{innerHTML:o,...a}=t,l=Bs(a);return o&&(l.dangerouslySetInnerHTML={__html:o}),ee.createElement("script",{key:r,...l})})}renderStyle(){const{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,r)=>{const{cssText:o,...a}=t,l=Bs(a);return o&&(l.dangerouslySetInnerHTML={__html:o}),ee.createElement("style",{key:r,...l})})}renderNoscript(){const{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,r)=>{const{innerHTML:o,...a}=t,l=Bs(a);return o&&(l.dangerouslySetInnerHTML={__html:o}),ee.createElement("noscript",{key:r,...l})})}render(){return ee.createElement(ee.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},y4=class extends y.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(e){return!GM(qv(this.props,"helmetData"),qv(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,r,o){return{...t,[e.type]:[...t[e.type]||[],{...r,...this.mapNestedChildrenToProps(e,o)}]}}mapObjectTypeChildren(e,t,r,o){switch(e.type){case"title":return{...t,[e.type]:o,titleAttributes:{...r}};case"body":return{...t,bodyAttributes:{...r}};case"html":return{...t,htmlAttributes:{...r}};default:return{...t,[e.type]:{...r}}}}mapArrayTypeChildrenToProps(e,t){let r={...t};return Object.keys(e).forEach(o=>{r={...r,[o]:e[o]}}),r}
91warnOnInvalidChildren(e,t){return Yv(Kv.some(r=>e.type===r),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Kv.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Yv(!t||typeof t=="string"||Array.isArray(t)&&!t.some(r=>typeof r!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let r={};return ee.Children.forEach(e,o=>{if(!o||!o.props)return;const{children:a,...l}=o.props,c=Object.keys(l).reduce((f,h)=>(f[K1[h]||h]=l[h],f),{});let{type:d}=o;switch(typeof d=="symbol"?d=d.toString():this.warnOnInvalidChildren(o,a),d){case"Symbol(react.fragment)":t=this.mapChildrenToProps(a,t);break;case"link":case"meta":case"noscript":case"script":case"style":r=this.flattenArrayTypeChildren(o,r,c,a);break;default:t=this.mapObjectTypeChildren(o,t,c,a);break}}),this.mapArrayTypeChildrenToProps(r,t)}render(){const{children:e,...t}=this.props;let r={...t},{helmetData:o}=t;if(e&&(r=this.mapChildrenToProps(e,r)),o&&!(o instanceof Hh)){const a=o;o=new Hh(a.context,!0),delete r.helmetData}return Yh?ee.createElement(x4,{...r}):o?ee.createElement(Xv,{...r,context:o.value}):ee.createElement(J1.Consumer,null,a=>ee.createElement(Xv,{...r,context:a}))}};function At({title:e="City 105.1 FM - #WeRunThisCity",description:t="City 105.1 FM is a premier lifestyle radio station bringing you the best in entertainment, news, podcasts, and hit music.",keywords:r="city 105.1 fm, radio station, lagos, nigeria, entertainment, music, news, lifestyle radio, podcasts",ogImage:o="/favicon.png",url:a="https://city1051fm.com",type:l="website"}){return s.jsxs(y4,{children:[s.jsx("title",{children:e}),s.jsx("meta",{name:"description",content:t}),s.jsx("meta",{name:"keywords",content:r}),s.jsx("meta",{property:"og:title",content:e}),s.jsx("meta",{property:"og:description",content:t}),s.jsx("meta",{property:"og:type",content:l}),s.jsx("meta",{property:"og:url",content:a}),s.jsx("meta",{property:"og:image",content:o}),s.jsx("meta",{property:"og:site_name",content:"City 105.1 FM"}),s.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),s.jsx("meta",{name:"twitter:title",content:e}),s.jsx("meta",{name:"twitter:description",content:t}),s.jsx("meta",{name:"twitter:image",content:o})]})}const v4={id:"welcome",role:"assistant",content:"Hi! I'm City 105.1 FM AI. Ask me about our shows, presenters, schedule, podcasts, events or anything happening on the station.",timestamp:new Date},e0=["Great question! I'll have a full answer once I'm fully tuned in. In the meantime, check out our Shows page for the latest line-up.","Thanks for asking! Our team is updating my knowledge base. Try the News or Podcasts section for the freshest content.","Stay tuned — I'm still learning. For live info, hit the Player button at the top to listen in right now!"],b4=()=>{const[e,t]=y.useState(!1),[r,o]=y.useState([v4]),[a,l]=y.useState(""),[c,d]=y.useState(!1),f=y.useRef(null),h=y.useRef(null);y.useEffect(()=>{f.current&&(f.current.scrollTop=f.current.scrollHeight)},[r,c,e]),y.useEffect(()=>{e&&setTimeout(()=>h.current?.focus(),200)},[e]);const p=x=>{x.preventDefault();const v=a.trim();if(!v)return;const N={id:`u-${Date.now()}`,role:"user",content:v,timestamp:new Date};o(w=>[...w,N]),l(""),d(!0),setTimeout(()=>{const w=e0[Math.floor(Math.random()*e0.length)],j={id:`a-${Date.now()}`,role:"assistant",content:w,timestamp:new Date};o(k=>[...k,j]),d(!1)},900+Math.random()*600)},g=x=>x.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});return s.jsxs(s.Fragment,{children:[!e&&s.jsxs("button",{onClick:()=>t(!0),"aria-label":"Open Ask City 105.1 FM AI chat",className:"fixed bottom-24 right-5 z-40 flex items-center gap-2 rounded-full bg-primary px-4 py-3 text-primary-foreground shadow-2xl transition-transform hover:scale-105 sm:bottom-28",children:[s.jsx(jh,{className:"h-5 w-5"}),s.jsx("span",{className:"hidden text-sm font-semibold uppercase tracking-wide sm:inline",children:"Ask City AI"})]}),e&&s.jsxs("div",{className:"fixed bottom-24 right-3 z-50 flex h-[80vh] max-h-[640px] w-[calc(100vw-1.5rem)] max-w-[400px] flex-col overflow-hidden rounded-2xl border border-border bg-background shadow-2xl sm:right-5 sm:bottom-28 animate-in fade-in slide-in-from-bottom-4 duration-200",role:"dialog","aria-label":"Ask City 105.1 FM AI",children:[s.jsxs("div",{className:"flex items-center justify-between gap-2 border-b border-border px-4 py-3",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("button",{onClick:()=>t(!1),className:"text-muted-foreground hover:text-foreground transition-colors","aria-label":"Back",children:s.jsx(oi,{className:"h-5 w-5"})}),s.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg border-2 border-primary bg-primary/10",children:s.jsx(Cw,{className:"h-4 w-4 text-primary"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-sm font-bold text-foreground leading-tight",children:"Ask City 105.1 FM AI"}),s.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:"AI Agent · Online"})]})]}),s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("button",{className:"text-muted-foreground hover:text-foreground transition-colors p-1","aria-label":"More options",children:s.jsx(eE,{className:"h-5 w-5"})}),s.jsx("button",{onClick:()=>t(!1),className:"text-muted-foreground hover:text-foreground transition-colors p-1","aria-label":"Close chat",children:s.jsx(xn,{className:"h-5 w-5"})})]})]}),s.jsxs("div",{ref:f,className:"flex-1 overflow-y-auto px-4 py-4 space-y-4 bg-background",children:[r.map(x=>s.jsxs("div",{className:"space-y-1",children:[s.jsx("div",{className:`flex ${x.role==="user"?"justify-end":"justify-start"}`,children:s.jsx("div",{className:`max-w-[85%] rounded-2xl px-4 py-3 text-sm leading-relaxed ${x.role==="user"?"bg-primary text-primary-foreground rounded-br-md":"bg-muted text-foreground rounded-bl-md"}`,children:x.content})}),s.jsxs("div",{className:`text-[10px] text-muted-foreground px-1 ${x.role==="user"?"text-right":"text-left"}`,children:[x.role==="assistant"?"City 105.1 FM AI · ":"You · ",g(x.timestamp)]})]},x.id)),c&&s.jsx("div",{className:"flex justify-start",children:s.jsx("div",{className:"bg-muted rounded-2xl rounded-bl-md px-4 py-3",children:s.jsxs("div",{className:"flex gap-1",children:[s.jsx("span",{className:"h-2 w-2 rounded-full bg-muted-foreground
91/60 animate-bounce [animation-delay:-0.3s]"}),s.jsx("span",{className:"h-2 w-2 rounded-full bg-muted-foreground/60 animate-bounce [animation-delay:-0.15s]"}),s.jsx("span",{className:"h-2 w-2 rounded-full bg-muted-foreground/60 animate-bounce"})]})})})]}),s.jsxs("form",{onSubmit:p,className:"border-t border-border bg-background p-3",children:[s.jsxs("div",{className:"flex items-center gap-2 rounded-full border-2 border-primary/40 bg-background px-4 py-2 focus-within:border-primary transition-colors",children:[s.jsx("input",{ref:h,type:"text",value:a,onChange:x=>l(x.target.value),placeholder:"Ask a question...",className:"flex-1 bg-transparent text-sm text-foreground placeholder:text-muted-foreground focus:outline-none"}),s.jsx("button",{type:"submit",disabled:!a.trim(),"aria-label":"Send message",className:"flex h-8 w-8 items-center justify-center rounded-full bg-primary text-primary-foreground transition-opacity disabled:opacity-40 hover:opacity-90",children:s.jsx(zT,{className:"h-4 w-4"})})]}),s.jsx("p",{className:"mt-2 text-center text-[10px] text-muted-foreground",children:"Powered by City 105.1 FM"})]})]})]})},w4=()=>s.jsxs("div",{className:"min-h-screen bg-background pb-20",children:[s.jsx(At,{title:"City 105.1 FM - #WeRunThisCity"}),s.jsx(hp,{}),s.jsx(PM,{}),s.jsx(NM,{}),s.jsx(TM,{}),s.jsx(MM,{}),s.jsx(DM,{}),s.jsx(FM,{}),s.jsx($M,{}),s.jsx(Y1,{}),s.jsx(UM,{}),s.jsx(AM,{}),s.jsx(mp,{}),s.jsx(b4,{})]}),Ue=({children:e})=>s.jsxs("div",{className:"min-h-screen bg-background pb-20",children:[s.jsx(hp,{}),e,s.jsx(mp,{})]}),j4=({isOpen:e,onClose:t,type:r})=>{const[o,a]=y.useState({fullName:"",email:"",phone:"",artistName:"",songTitle:"",genre:"",topic:"",preferredDate:"",message:""}),[l,c]=y.useState(null),[d,f]=y.useState(!1),[h,p]=y.useState(!1),g=y.useRef(null);if(!e)return null;const x=async w=>{w.preventDefault(),f(!0);try{const j=new FormData;if(j.append("request_type",r),j.append("full_name",o.fullName),j.append("email",o.email),j.append("phone",o.phone),j.append("message",o.message),r==="airplay"?(j.append("artist_name",o.artistName),j.append("song_title",o.songTitle),j.append("genre",o.genre),l&&j.append("music_file",l)):(j.append("topic",o.topic),o.preferredDate&&j.append("preferred_date",o.preferredDate)),!(await fetch("https://city1051fm.cloud//api/service-requests/",{method:"POST",body:j})).ok)throw new Error("Failed to submit booking request");f(!1),p(!0)}catch(j){console.error("Submission error:",j),as.error("There was an error submitting your request. Please try again."),f(!1)}},v=w=>{w.target.files&&w.target.files[0]&&c(w.target.files[0])},N=()=>{a({fullName:"",email:"",phone:"",artistName:"",songTitle:"",genre:"",topic:"",preferredDate:"",message:""}),c(null),p(!1),t()};return s.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/60 backdrop-blur-sm",children:s.jsxs("div",{className:"bg-card border border-border rounded-xl w-full max-w-lg max-h-[90vh] overflow-y-auto",children:[s.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-border",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[r==="airplay"?s.jsx(Oc,{className:"w-6 h-6 text-primary"}):s.jsx(Lc,{className:"w-6 h-6 text-primary"}),s.jsx("h2",{className:"text-xl font-bold text-foreground",children:r==="airplay"?"Music Airplay Booking":"Interview Booking"})]}),s.jsx("button",{onClick:N,className:"p-2 text-muted-foreground hover:text-foreground transition-colors",children:s.jsx(xn,{className:"w-5 h-5"})})]}),s.jsx("div",{className:"p-6",children:h?s.jsxs("div",{className:"text-center py-8",children:[s.jsx("div",{className:"w-16 h-16 bg-primary/20 rounded-full flex items-center justify-center mx-auto mb-4",children:s.jsx(Oc,{className:"w-8 h-8 text-primary"})}),s.jsx("h3",{className:"text-xl font-bold text-foreground mb-2",children:"Request Submitted!"}),s.jsxs("p",{className:"text-muted-foreground mb-6",children:["Thank you for your ",r==="airplay"?"airplay":"interview"," booking request. Our team will review it and get back to you within 24-48 hours."]}),s.jsx("button",{onClick:N,className:"bg-primary text-primary-foreground px-6 py-2 rounded font-semibold hover:bg-primary/90 transition-colors",children:"Close"})]}):s.jsxs("form",{onSubmit:x,className:"space-y-4",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-foreground mb-1",children:"Full Name *"}),s.jsx("input",{type:"text",required:!0,value:o.fullName,onChange:w=>a({...o,fullName:w.target.value}),className:"w-full px-3 py-2 bg-background border border-border rounded focus:outline-none focus:border-primary text-foreground",placeholder:"Oluwaseun Adebayo"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-foreground mb-1",children:"Phone Number *"}),s.jsx("input",{type:"tel",required:!0,value:o.phone,onChange:w=>a({...o,phone:w.target.value}),className:"w-full px-3 py-2 bg-background border border-border rounded focus:outline-none focus:border-primary text-foreground",placeholder:"+234 xxx xxx xxxx"})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-foreground mb-1",children:"Email Address *"}),s.jsx("input",{type:"email",required:!0,value:o.email,onChange:w=>a({...o,email:w.target.value}),className:"w-full px-3 py-2 bg-background border border-border rounded focus:outline-none focus:border-primary text-foreground",placeholder:"[email protected]"})]}),r==="airplay"?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-foreground mb-1",children:"Artist Name *"}),s.jsx("input",{type:"text",required:!0,value:o.artistName,onChange:w=>a({...o,artistName:w.target.value}),className:"w-full px-3 py-2 bg-background border border-border rounded focus:outline-none focus:border-primary text-foreground",placeholder:"Artist or Band Name"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-foreground mb-1",children:"Song Title *"}),s.jsx("input",{type:"text",required:!0,value:o.songTitle,onChange:w=>a({...o,songTitle:w.target.value}),className:"w-full px-3 py-2 bg-background border border-border rounded focus:outline-none focus:border-primary text-foreground",placeholder:"Song Title"})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-foreground mb-1",children:"Genre"}),s.jsxs("select",{value:o.genre,onChange:w=>a({...o,genre:w.target.value}),className:"w-full px-3 py-2 bg-background border border-border rounded focus:outline-none focus:border-primary text-foreground",children:[s.jsx("option",{value:"",children:"Select Genre"}),s.jsx("option",{value:"afrobeats",children:"Afrobeats"}),s.jsx("option",{value:"hiphop",children:"Hip Hop"}),s.jsx("option",{value:"rnb",children:"R&B"}),s.jsx("option",{value:"gospel",children:"Gospel"}),s.jsx("option",{value:"pop",children:"Pop"}),s.jsx("option",{value:"other",children:"Other"})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-foreground mb-1",children:"Upload Music File *"}),s.jsxs("div",{onClick:()=>g.current?.click(),className:"border-2 border-dashed border-border rounded-lg p-6 text-center cursor-pointer hover:border-primary transition-colors",children:[s.jsx(Pw,{className:"w-8 h-8 text-muted-foreground mx-auto mb-2"}),l?s.jsx("p",{className:"text-primary font-medium",children:l.name}):s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"text-muted-foreground",children:"Click to upload your music file"}),s.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"MP3, WAV (Max 50MB)"})]})]}),s.jsx("input",{ref:g,type:"file",accept:".mp3,.wav",onChange:v,className:"hidden"})]})]}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-foreground mb-1",children:"Interview Topic *"}),s.jsx("input",{type:"text",required:!0,value:o.topic,onChange:w=>a({...o,topic:w.target.value}),className:"w-full px-3 py-2 bg-background border border-border rounded focus:outline-none focus:border-primary text-foreground",placeholder:"What would you like to discu
91ss?"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-foreground mb-1",children:"Preferred Date"}),s.jsx("input",{type:"date",value:o.preferredDate,onChange:w=>a({...o,preferredDate:w.target.value}),className:"w-full px-3 py-2 bg-background border border-border rounded focus:outline-none focus:border-primary text-foreground"})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-foreground mb-1",children:"Additional Message"}),s.jsx("textarea",{rows:3,value:o.message,onChange:w=>a({...o,message:w.target.value}),className:"w-full px-3 py-2 bg-background border border-border rounded focus:outline-none focus:border-primary text-foreground resize-none",placeholder:"Any additional information..."})]}),s.jsx("button",{type:"submit",disabled:d,className:"w-full bg-primary text-primary-foreground py-3 rounded font-semibold hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2",children:d?s.jsxs(s.Fragment,{children:[s.jsx(Bt,{className:"w-5 h-5 animate-spin"}),"Submitting..."]}):"Submit Booking Request"})]})})]})})};var Of="focusScope.autoFocusOnMount",Ff="focusScope.autoFocusOnUnmount",t0={bubbles:!1,cancelable:!0},N4="FocusScope",gp=y.forwardRef((e,t)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:l,...c}=e,[d,f]=y.useState(null),h=Cr(a),p=Cr(l),g=y.useRef(null),x=ze(t,w=>f(w)),v=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(o){let w=function(T){if(v.paused||!d)return;const A=T.target;d.contains(A)?g.current=A:os(g.current,{select:!0})},j=function(T){if(v.paused||!d)return;const A=T.relatedTarget;A!==null&&(d.contains(A)||os(g.current,{select:!0}))},k=function(T){if(document.activeElement===document.body)for(const E of T)E.removedNodes.length>0&&os(d)};document.addEventListener("focusin",w),document.addEventListener("focusout",j);const C=new MutationObserver(k);return d&&C.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",j),C.disconnect()}}},[o,d,v.paused]),y.useEffect(()=>{if(d){n0.add(v);const w=document.activeElement;if(!d.contains(w)){const k=new CustomEvent(Of,t0);d.addEventListener(Of,h),d.dispatchEvent(k),k.defaultPrevented||(S4(P4(tj(d)),{select:!0}),document.activeElement===w&&os(d))}return()=>{d.removeEventListener(Of,h),setTimeout(()=>{const k=new CustomEvent(Ff,t0);d.addEventListener(Ff,p),d.dispatchEvent(k),k.defaultPrevented||os(w??document.body,{select:!0}),d.removeEventListener(Ff,p),n0.remove(v)},0)}}},[d,h,p,v]);const N=y.useCallback(w=>{if(!r&&!o||v.paused)return;const j=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,k=document.activeElement;if(j&&k){const C=w.currentTarget,[T,A]=k4(C);T&&A?!w.shiftKey&&k===A?(w.preventDefault(),r&&os(T,{select:!0})):w.shiftKey&&k===T&&(w.preventDefault(),r&&os(A,{select:!0})):k===C&&w.preventDefault()}},[r,o,v.paused]);return s.jsx(Re.div,{tabIndex:-1,...c,ref:x,onKeyDown:N})});gp.displayName=N4;function S4(e,{select:t=!1}={}){const r=document.activeElement;for(const o of e)if(os(o,{select:t}),document.activeElement!==r)return}function k4(e){const t=tj(e),r=r0(t,e),o=r0(t.reverse(),e);return[r,o]}function tj(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function r0(e,t){for(const r of e)if(!C4(r,{upTo:t}))return r}function C4(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 T4(e){return e instanceof HTMLInputElement&&"select"in e}function os(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&T4(e)&&t&&e.select()}}var n0=E4();function E4(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=s0(e,t),e.unshift(t)},remove(t){e=s0(e,t),e[0]?.resume()}}}function s0(e,t){const r=[...e],o=r.indexOf(t);return o!==-1&&r.splice(o,1),r}function P4(e){return e.filter(t=>t.tagName!=="A")}var $f=0;function rj(){y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??o0()),document.body.insertAdjacentElement("beforeend",e[1]??o0()),$f++,()=>{$f===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),$f--}},[])}function o0(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
91style.position="fixed",e.style.pointerEvents="none",e}var un=function(){return un=Object.assign||function(t){for(var r,o=1,a=arguments.length;o<a;o++){r=arguments[o];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(t[l]=r[l])}return t},un.apply(this,arguments)};function nj(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(r[o[a]]=e[o[a]]);return r}function A4(e,t,r){if(r||arguments.length===2)for(var o=0,a=t.length,l;o<a;o++)(l||!(o in t))&&(l||(l=Array.prototype.slice.call(t,0,o)),l[o]=t[o]);return e.concat(l||Array.prototype.slice.call(t))}var Sc="right-scroll-bar-position",kc="width-before-scroll-bar",R4="with-scroll-bars-hidden",M4="--removed-body-scroll-bar-size";function Vf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function _4(e,t){var r=y.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(o){var a=r.value;a!==o&&(r.value=o,r.callback(o,a))}}}})[0];return r.callback=t,r.facade}var D4=typeof window<"u"?y.useLayoutEffect:y.useEffect,i0=new WeakMap;function I4(e,t){var r=_4(null,function(o){return e.forEach(function(a){return Vf(a,o)})});return D4(function(){var o=i0.get(r);if(o){var a=new Set(o),l=new Set(e),c=r.current;a.forEach(function(d){l.has(d)||Vf(d,null)}),l.forEach(function(d){a.has(d)||Vf(d,c)})}i0.set(r,e)},[e]),r}function L4(e){return e}function O4(e,t){t===void 0&&(t=L4);var r=[],o=!1,a={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(l){var c=t(l,o);return r.push(c),function(){r=r.filter(function(d){return d!==c})}},assignSyncMedium:function(l){for(o=!0;r.length;){var c=r;r=[],c.forEach(l)}r={push:function(d){return l(d)},filter:function(){return r}}},assignMedium:function(l){o=!0;var c=[];if(r.length){var d=r;r=[],d.forEach(l),c=r}var f=function(){var p=c;c=[],p.forEach(l)},h=function(){return Promise.resolve().then(f)};h(),r={push:function(p){c.push(p),h()},filter:function(p){return c=c.filter(p),r}}}};return a}function F4(e){e===void 0&&(e={});var t=O4(null);return t.options=un({async:!0,ssr:!1},e),t}var sj=function(e){var t=e.sideCar,r=nj(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return y.createElement(o,un({},r))};sj.isSideCarExport=!0;function $4(e,t){return e.useMedium(t),sj}var oj=F4(),Bf=function(){},wu=y.forwardRef(function(e,t){var r=y.useRef(null),o=y.useState({onScrollCapture:Bf,onWheelCapture:Bf,onTouchMoveCapture:Bf}),a=o[0],l=o[1],c=e.forwardProps,d=e.children,f=e.className,h=e.removeScrollBar,p=e.enabled,g=e.shards,x=e.sideCar,v=e.noRelative,N=e.noIsolation,w=e.inert,j=e.allowPinchZoom,k=e.as,C=k===void 0?"div":k,T=e.gapMode,A=nj(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=x,D=I4([r,t]),I=un(un({},A),a);return y.createElement(y.Fragment,null,p&&y.createElement(E,{sideCar:oj,removeScrollBar:h,shards:g,noRelative:v,noIsolation:N,inert:w,setCallbacks:l,allowPinchZoom:!!j,lockRef:r,gapMode:T}),c?y.cloneElement(y.Children.only(d),un(un({},I),{ref:D})):y.createElement(C,un({},I,{className:f,ref:D}),d))});wu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};wu.classNames={fullWidth:kc,zeroRight:Sc};var V4=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function B4(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=V4();return t&&e.setAttribute("nonce",t),e}function z4(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function U4(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var W4=function(){var e=0,t=null;return{add:function(r){e==0&&(t=B4())&&(z4(t,r),U4(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},H4=function(){var e=W4();return function(t,r){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ij=function(){var e=H4(),t=function(r){var o=r.styles,a=r.dynamic;return e(o,a),null};return t},Y4={left:0,top:0,right:0,gap:0},zf=function(e){return parseInt(e||"",10)||0},G4=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[zf(r),zf(o),zf(a)]},K4=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Y4;var t=G4(e),r=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-r+t[2]-t[0])}},q4=ij(),Ho="data-scroll-locked",Q4=function(e,t,r,o){var a=e.left,l=e.top,c=e.right,d=e.gap;return r===void 0&&(r="margin"),`
92  .`.concat(R4,` {
93   overflow: hidden `).concat(o,`;
94   padding-right: `).concat(d,"px ").concat(o,`;
95  }
96  body[`).concat(Ho,`] {
97    overflow: hidden `).concat(o,`;
98    overscroll-behavior: contain;
99    `).concat([t&&"position: relative ".concat(o,";"),r==="margin"&&`
100    padding-left: `.concat(a,`px;
101    padding-top: `).concat(l,`px;
102    padding-right: `).concat(c,`px;
103    margin-left:0;
104    margin-top:0;
105    margin-right: `).concat(d,"px ").concat(o,`;
106    `),r==="padding"&&"padding-right: ".concat(d,"px ").concat(o,";
106")].filter(Boolean).join(""),`
107  }
108  
109  .`).concat(Sc,` {
110    right: `).concat(d,"px ").concat(o,`;
111  }
112  
113  .`).concat(kc,` {
114    margin-right: `).concat(d,"px ").concat(o,`;
115  }
116  
117  .`).concat(Sc," .").concat(Sc,` {
118    right: 0 `).concat(o,`;
119  }
120  
121  .`).concat(kc," .").concat(kc,` {
122    margin-right: 0 `).concat(o,`;
123  }
124  
125  body[`).concat(Ho,`] {
126    `).concat(M4,": ").concat(d,`px;
127  }
128`)},a0=function(){var e=parseInt(document.body.getAttribute(Ho)||"0",10);return isFinite(e)?e:0},X4=function(){y.useEffect(function(){return document.body.setAttribute(Ho,(a0()+1).toString()),function(){var e=a0()-1;e<=0?document.body.removeAttribute(Ho):document.body.setAttribute(Ho,e.toString())}},[])},J4=function(e){var t=e.noRelative,r=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o;X4();var l=y.useMemo(function(){return K4(a)},[a]);return y.createElement(q4,{styles:Q4(l,!t,a,r?"":"!important")})},Kh=!1;if(typeof window<"u")try{var ac=Object.defineProperty({},"passive",{get:function(){return Kh=!0,!0}});window.addEventListener("test",ac,ac),window.removeEventListener("test",ac,ac)}catch{Kh=!1}var Do=Kh?{passive:!1}:!1,Z4=function(e){return e.tagName==="TEXTAREA"},aj=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Z4(e)&&r[t]==="visible")},e3=function(e){return aj(e,"overflowY")},t3=function(e){return aj(e,"overflowX")},l0=function(e,t){var r=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=lj(e,o);if(a){var l=cj(e,o),c=l[1],d=l[2];if(c>d)return!0}o=o.parentNode}while(o&&o!==r.body);return!1},r3=function(e){var t=e.scrollTop,r=e.scrollHeight,o=e.clientHeight;return[t,r,o]},n3=function(e){var t=e.scrollLeft,r=e.scrollWidth,o=e.clientWidth;return[t,r,o]},lj=function(e,t){return e==="v"?e3(t):t3(t)},cj=function(e,t){return e==="v"?r3(t):n3(t)},s3=function(e,t){return e==="h"&&t==="rtl"?-1:1},o3=function(e,t,r,o,a){var l=s3(e,window.getComputedStyle(t).direction),c=l*o,d=r.target,f=t.contains(d),h=!1,p=c>0,g=0,x=0;do{if(!d)break;var v=cj(e,d),N=v[0],w=v[1],j=v[2],k=w-j-l*N;(N||k)&&lj(e,d)&&(g+=k,x+=N);var C=d.parentNode;d=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!f&&d!==document.body||f&&(t.contains(d)||t===d));return(p&&Math.abs(g)<1||!p&&Math.abs(x)<1)&&(h=!0),h},lc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},c0=function(e){return[e.deltaX,e.deltaY]},u0=function(e){return e&&"current"in e?e.current:e},i3=function(e,t){return e[0]===t[0]&&e[1]===t[1]},a3=function(e){return`
129  .block-interactivity-`.concat(e,` {pointer-events: none;}
130  .allow-interactivity-`).concat(e,` {pointer-events: all;}
131`)},l3=0,Io=[];function c3(e){var t=y.useRef([]),r=y.useRef([0,0]),o=y.useRef(),a=y.useState(l3++)[0],l=y.useState(ij)[0],c=y.useRef(e);y.useEffect(function(){c.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var w=A4([e.lockRef.current],(e.shards||[]).map(u0),!0).filter(Boolean);return w.forEach(function(j){return j.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),w.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var d=y.useCallback(function(w,j){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!c.current.allowPinchZoom;var k=lc(w),C=r.current,T="deltaX"in w?w.deltaX:C[0]-k[0],A="deltaY"in w?w.deltaY:C[1]-k[1],E,D=w.target,I=Math.abs(T)>Math.abs(A)?"h":"v";if("touches"in w&&I==="h"&&D.type==="range")return!1;var _=l0(I,D);if(!_)return!0;if(_?E=I:(E=I==="v"?"h":"v",_=l0(I,D)),!_)return!1;if(!o.current&&"changedTouches"in w&&(T||A)&&(o.current=E),!E)return!0;var H=o.current||E;return o3(H,j,w,H==="h"?T:A)},[]),f=y.useCallback(function(w){var j=w;if(!(!Io.length||Io[Io.length-1]!==l)){var k="deltaY"in j?c0(j):lc(j),C=t.current.filter(function(E){return E.name===j.type&&(E.target===j.target||j.target===E.shadowParent)&&i3(E.delta,k)})[0];if(C&&C.should){j.cancelable&&j.preventDefault();return}
vendor: 4,330 bytes, line 131
131if(!C){var T=(c.current.shards||[]).map(u0).filter(Boolean).filter(function(E){return E.contains(j.target)}),A=T.length>0?d(j,T[0]):!c.current.noIsolation;A&&j.cancelable&&j.preventDefault()}}},[]),h=y.useCallback(function(w,j,k,C){var T={name:w,delta:j,target:k,should:C,shadowParent:u3(k)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(A){return A!==T})},1)},[]),p=y.useCallback(function(w){r.current=lc(w),o.current=void 0},[]),g=y.useCallback(function(w){h(w.type,c0(w),w.target,d(w,e.lockRef.current))},[]),x=y.useCallback(function(w){h(w.type,lc(w),w.target,d(w,e.lockRef.current))},[]);y.useEffect(function(){return Io.push(l),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:x}),document.addEventListener("wheel",f,Do),document.addEventListener("touchmove",f,Do),document.addEventListener("touchstart",p,Do),function(){Io=Io.filter(function(w){return w!==l}),document.removeEventListener("wheel",f,Do),document.removeEventListener("touchmove",f,Do),document.removeEventListener("touchstart",p,Do)}},[]);var v=e.removeScrollBar,N=e.inert;return y.createElement(y.Fragment,null,N?y.createElement(l,{styles:a3(a)}):null,v?y.createElement(J4,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function u3(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const d3=$4(oj,c3);var xp=y.forwardRef(function(e,t){return y.createElement(wu,un({},e,{ref:t,sideCar:d3}))});xp.classNames=wu.classNames;var f3=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Lo=new WeakMap,cc=new WeakMap,uc={},Uf=0,uj=function(e){return e&&(e.host||uj(e.parentNode))},h3=function(e,t){return t.map(function(r){if(e.contains(r))return r;var o=uj(r);return o&&e.contains(o)?o:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},m3=function(e,t,r,o){var a=h3(t,Array.isArray(e)?e:[e]);uc[r]||(uc[r]=new WeakMap);var l=uc[r],c=[],d=new Set,f=new Set(a),h=function(g){!g||d.has(g)||(d.add(g),h(g.parentNode))};a.forEach(h);var p=function(g){!g||f.has(g)||Array.prototype.forEach.call(g.children,function(x){if(d.has(x))p(x);else try{var v=x.getAttribute(o),N=v!==null&&v!=="false",w=(Lo.get(x)||0)+1,j=(l.get(x)||0)+1;Lo.set(x,w),l.set(x,j),c.push(x),w===1&&N&&cc.set(x,!0),j===1&&x.setAttribute(r,"true"),N||x.setAttribute(o,"true")}catch(k){console.error("aria-hidden: cannot operate on ",x,k)}})};return p(t),d.clear(),Uf++,function(){c.forEach(function(g){var x=Lo.get(g)-1,v=l.get(g)-1;Lo.set(g,x),l.set(g,v),x||(cc.has(g)||g.removeAttribute(o),cc.delete(g)),v||g.removeAttribute(r)}),Uf--,Uf||(Lo=new WeakMap,Lo=new WeakMap,cc=new WeakMap,uc={})}},dj=function(e,t,r){r===void 0&&(r="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),a=f3(e);return a?(o.push.apply(o,Array.from(a.querySelectorAll("[aria-live]"))),m3(o,a,r,"aria-hidden")):function(){return null}},ju="Dialog",[fj]=Mn(ju),[p3,Jr]=fj(ju),hj=e=>{const{__scopeDialog:t,children:r,open:o,defaultOpen:a,onOpenChange:l,modal:c=!0}=e,d=y.useRef(null),f=y.useRef(null),[h,p]=Go({prop:o,defaultProp:a??!1,onChange:l,caller:ju});return s.jsx(p3,{scope:t,triggerRef:d,contentRef:f,contentId:Ys(),titleId:Ys(),descriptionId:Ys(),open:h,onOpenChange:p,onOpenToggle:y.useCallback(()=>p(g=>!g),[p]),modal:c,children:r})};hj.displayName=ju;var mj="DialogTrigger",g3=y.forwardRef((e,t)=>{const{__scopeDialog:r,...o}=e,a=Jr(mj,r),l=ze(t,a.triggerRef);return s.jsx(Re.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":bp(a.open),...o,ref:l,onClick:Se(e.onClick,a.onOpenToggle)})});g3.displayName=mj;var yp="DialogPortal",[x3,pj]=fj(yp,{forceMount:void 0}),gj=e=>{const{__scopeDialog:t,forceMount:r,children:o,container:a}=e,l=Jr(yp,t);return s.jsx(x3,{scope:t,forceMount:r,children:y.Children.map(o,c=>s.jsx(io,{present:r||l.open,children:s.jsx(su,{asChild:!0,container:a,children:c})}))})};gj.displayName=yp;var Yc="DialogOverlay",xj=y.forwardRef((e,t)=>{const r=pj(Yc,e.__scopeDialog),{forceMount:o=r.forceMount,...a}=e,l=Jr(Yc,e.__scopeDialog);return l.modal?s.jsx(io,{present:o||l.open,children:s.jsx(v3,{...a,ref:t})}):null});xj.displayName=Yc;var y3=Yo("DialogOverlay.RemoveScroll"),v3=y.forwardRef((e,t)=>
131{const{__scopeDialog:r,...o}=e,a=Jr(Yc,r);return s.jsx(xp,{as:y3,allowPinchZoom:!0,shards:[a.contentRef],children:s.jsx(Re.div,{"data-state":bp(a.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),Js="DialogContent",yj=y.forwardRef((e,t)=>{const r=pj(Js,e.__scopeDialog),{forceMount:o=r.forceMount,...a}=e,l=Jr(Js,e.__scopeDialog);return s.jsx(io,{present:o||l.open,children:l.modal?s.jsx(b3,{...a,ref:t}):s.jsx(w3,{...a,ref:t})})});yj.displayName=Js;var b3=y.forwardRef((e,t)=>{const r=Jr(Js,e.__scopeDialog),o=y.useRef(null),a=ze(t,r.contentRef,o);return y.useEffect(()=>{const l=o.current;if(l)return dj(l)},[]),s.jsx(vj,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Se(e.onCloseAutoFocus,l=>{l.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Se(e.onPointerDownOutside,l=>{const c=l.detail.originalEvent,d=c.button===0&&c.ctrlKey===!0;(c.button===2||d)&&l.preventDefault()}),onFocusOutside:Se(e.onFocusOutside,l=>l.preventDefault())})}),w3=y.forwardRef((e,t)=>{const r=Jr(Js,e.__scopeDialog),o=y.useRef(!1),a=y.useRef(!1);return s.jsx(vj,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{e.onCloseAutoFocus?.(l),l.defaultPrevented||(o.current||r.triggerRef.current?.focus(),l.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:l=>{e.onInteractOutside?.(l),l.defaultPrevented||(o.current=!0,l.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const c=l.target;r.triggerRef.current?.contains(c)&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&a.current&&l.preventDefault()}})}),vj=y.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:l,...c}=e,d=Jr(Js,r),f=y.useRef(null),h=ze(t,f);return rj(),s.jsxs(s.Fragment,{children:[s.jsx(gp,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:l,children:s.jsx(Ma,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":bp(d.open),...c,ref:h,onDismiss:()=>d.onOpenChange(!1)})}),s.jsxs(s.Fragment,{children:[s.jsx(j3,{titleId:d.titleId}),s.jsx(S3,{contentRef:f,descriptionId:d.descriptionId})]})]})}),vp="DialogTitle",bj=y.forwardRef((e,t)=>{const{__scopeDialog:r,...o}=e,a=Jr(vp,r);return s.jsx(Re.h2,{id:a.titleId,...o,ref:t})});bj.displayName=vp;var wj="DialogDescription",jj=y.forwardRef((e,t)=>{const{__scopeDialog:r,...o}=e,a=Jr(wj,r);return s.jsx(Re.p,{id:a.descriptionId,...o,ref:t})});jj.displayName=wj;var Nj="DialogClose",Sj=y.forwardRef((e,t)=>{const{__scopeDialog:r,...o}=e,a=Jr(Nj,r);return s.jsx(Re.button,{type:"button",...o,ref:t,onClick:Se(e.onClick,()=>a.onOpenChange(!1))})});Sj.displayName=Nj;function bp(e){return e?"open":"closed"}var kj="DialogTitleWarning",[e$,Cj]=KC(kj,{contentName:Js,titleName:vp,docsSlug:"dialog"}),j3=({titleId:e})=>{const t=Cj(kj),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
132
133If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
134
135For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return y.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},N3="DialogDescriptionWarning",S3=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Cj(N3).contentName}}.`;return y.useEffect(()=>{const a=e.current?.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},k3=hj,C3=gj,Tj=xj,Ej=yj,Pj=bj,Aj=jj,T3=Sj;const Fa=k3,E3=C3,Rj=y.forwardRef(({className:e,...t},r)=>s.jsx(Tj,{ref:r,className:_e("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Rj.displayName=Tj.displayName;const mi=y.forwardRef(({className:e,children:t,...r},o)=>s.jsxs(E3,{children:[s.jsx(Rj,{}),s.jsxs(Ej,{ref:o,className:_e("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background 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%] sm:rou
135nded-lg",e),...r,children:[t,s.jsxs(T3,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[s.jsx(xn,{className:"h-4 w-4"}),s.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));mi.displayName=Ej.displayName;const $a=({className:e,...t})=>s.jsx("div",{className:_e("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});$a.displayName="DialogHeader";const wp=({className:e,...t})=>s.jsx("div",{className:_e("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});wp.displayName="DialogFooter";const pi=y.forwardRef(({className:e,...t},r)=>s.jsx(Pj,{ref:r,className:_e("text-lg font-semibold leading-none tracking-tight",e),...t}));pi.displayName=Pj.displayName;const jp=y.forwardRef(({className:e,...t},r)=>s.jsx(Aj,{ref:r,className:_e("text-sm text-muted-foreground",e),...t}));jp.displayName=Aj.displayName;const P3=$m("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 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 hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),at=y.forwardRef(({className:e,variant:t,size:r,asChild:o=!1,...a},l)=>{const c=o?QC:"button";return s.jsx(c,{className:_e(P3({variant:t,size:r,className:e})),ref:l,...a})});at.displayName="Button";const Je=y.forwardRef(({className:e,type:t,...r},o)=>s.jsx("input",{type:t,className:_e("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background 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-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:o,...r}));Je.displayName="Input";const gi=y.forwardRef(({className:e,...t},r)=>s.jsx("textarea",{className:_e("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
135ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...t}));gi.displayName="Textarea";var A3="Label",Mj=y.forwardRef((e,t)=>s.jsx(Re.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));Mj.displayName=A3;var _j=Mj;const R3=$m("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),De=y.forwardRef(({className:e,...t},r)=>s.jsx(_j,{ref:r,className:_e(R3(),e),...t}));De.displayName=_j.displayName;var Wf={exports:{}},Hf,d0;function M3(){if(d0)return Hf;d0=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Hf=e,Hf}var Yf,f0;function _3(){if(f0)return Yf;f0=1;var e=M3();function t(){}function r(){}return r.resetWarningCache=t,Yf=function(){function o(c,d,f,h,p,g){if(g!==e){var x=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 x.name="Invariant Violation",x}}o.isRequired=o;function a(){return o}var l={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:a,element:o,elementType:o,instanceOf:a,node:o,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return l.PropTypes=l,l},Yf}var h0;function D3(){return h0||(h0=1,Wf.exports=_3()()),Wf.exports}var I3=D3();const er=oo(I3);var L3=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function qh(){return qh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},qh.apply(this,arguments)}function O3(e,t){if(e==null)return{};var r={},o=Object.keys(e),a,l;for(l=0;l<o.length;l++)a=o[l],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function dc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F3(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qh(e,t)}
135function Qh(e,t){return Qh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,a){return o.__proto__=a,o},Qh(e,t)}var Nu=(function(e){F3(t,e);function t(){var o;return o=e.call(this)||this,o.handleExpired=o.handleExpired.bind(dc(o)),o.handleErrored=o.handleErrored.bind(dc(o)),o.handleChange=o.handleChange.bind(dc(o)),o.handleRecaptchaRef=o.handleRecaptchaRef.bind(dc(o)),o}var r=t.prototype;return r.getCaptchaFunction=function(a){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[a]:this.props.grecaptcha[a]:null},r.getValue=function(){var a=this.getCaptchaFunction("getResponse");return a&&this._widgetId!==void 0?a(this._widgetId):null},r.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},r.execute=function(){var a=this.getCaptchaFunction("execute");if(a&&this._widgetId!==void 0)return a(this._widgetId);this._executeRequested=!0},r.executeAsync=function(){var a=this;return new Promise(function(l,c){a.executionResolve=l,a.executionReject=c,a.execute()})},r.reset=function(){var a=this.getCaptchaFunction("reset");a&&this._widgetId!==void 0&&a(this._widgetId)},r.forceReset=function(){var a=this.getCaptchaFunction("reset");a&&a()},r.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},r.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},r.handleChange=function(a){this.props.onChange&&this.props.onChange(a),this.executionResolve&&(this.executionResolve(a),delete this.executionReject,delete this.executionResolve)},r.explicitRender=function(){var a=this.getCaptchaFunction("render");if(a&&this._widgetId===void 0){var l=document.createElement("div");this._widgetId=a(l,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(l)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},r.componentDidMount=function(){this.explicitRender()},r.componentDidUpdate=function(){this.explicitRender()},r.handleRecaptchaRef=function(a){this.captcha=a},r.render=function(){var a=this.props;a.sitekey,a.onChange,a.theme,a.type,a.tabindex,a.onExpired,a.onErrored,a.size,a.stoken,a.grecaptcha,a.badge,a.hl,a.isolated;var l=O3(a,L3);return y.createElement("div",qh({},l,{ref:this.handleRecaptchaRef}))},t})(y.Component);Nu.displayName="ReCAPTCHA";Nu.propTypes={sitekey:er.string.isRequired,onChange:er.func,grecaptcha:er.object,theme:er.oneOf(["dark","light"]),type:er.oneOf(["image","audio"]),tabindex:er.number,onExpired:er.func,onErrored:er.func,size:er.oneOf(["compact","normal","invisible"]),stoken:er.string,hl:er.string,badge:er.oneOf(["bottomright","bottomleft","inline"]),isolated:er.bool};Nu.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var Gf={exports:{}},$e={};var m0;function $3(){if(m0)return $e;m0=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,N=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,j=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function T(E){if(typeof E=="object"&&E!==null){var D=E.$$typeof;switch(D){case t:switch(E=E.type,E){case f:case h:case o:case l:case a:case g:return E;default:switch(E=E&&E.$$typeof,E){case d:case p:case N:case v:case c:return E;default:return D}}case r:return D}}}function A(E){return T(E)===h}return $e.AsyncMode=f,$e.ConcurrentMode=h,$e.ContextConsumer=d,$e.ContextProvider=c,$e.Element=t,$e.ForwardRef=p,$e.Fragment=o,$e.Lazy=N,$e.Memo=v,$e.Portal=r,$e.Profiler=l,$e.StrictMode=a,$e.Suspense=g,$e.isAsyncMode=function(E){return A(E)||T(E)===f},$e.isConcurrentMode=A,$e.isContextConsumer=function(E){return T(E)===d},$e.isContextProvider=function(E){return T(E)===c},$e.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},$e.isForwardRef=function(E){return T(E)===p},$e.isFragment=function(E){return T(E)===o},$e.isLazy=function(E){return T(E)===N},$e.isMemo=function(E){return T(E)===v},$e.isPortal=function(E){return T(E)===r},$e.isProfiler=function(E){return T(E)===l},$e.isStrictMode=function(E){return T(E)===a},$e.isSuspense=function(E){return T(E)===g},$e.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===o||E===h||E===l||E===a||E===g||E===x||typeof E=="object"&&E!==null&&(E.$$typeof===N||E.$$typeof===v||E.$$typeof===c||E.$$typeof===d||E.$$typeof===p||E.$$typeof===j||E.$$typeof===k||E.$$typeof===C||E.$$typeof===w)},$e.typeOf=T,$e}var p0;function V3(){return p0||(p0=1,Gf.exports=$3()),Gf.exports}var Kf,g0;function B3(){if(g0)return Kf;g0=1;var e=V3(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0}
135,r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};l[e.ForwardRef]=o,l[e.Memo]=a;function c(N){return e.isMemo(N)?a:l[N.$$typeof]||t}var d=Object.defineProperty,f=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,x=Object.prototype;function v(N,w,j){if(typeof w!="string"){if(x){var k=g(w);k&&k!==x&&v(N,k,j)}var C=f(w);h&&(C=C.concat(h(w)));for(var T=c(N),A=c(w),E=0;E<C.length;++E){var D=C[E];if(!r[D]&&!(j&&j[D])&&!(A&&A[D])&&!(T&&T[D])){var I=p(w,D);try{d(N,D,I)}catch{}}}}return N}return Kf=v,Kf}var z3=B3();const U3=oo(z3);function Xh(){return Xh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Xh.apply(this,arguments)}function W3(e,t){if(e==null)return{};var r={},o=Object.keys(e),a,l;for(l=0;l<o.length;l++)a=o[l],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function H3(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Vr={},Y3=0;function G3(e,t){return t=t||{},function(o){var a=o.displayName||o.name||"Component",l=(function(d){H3(f,d);function f(p,g){var x;return x=d.call(this,p,g)||this,x.state={},x.__scriptURL="",x}var h=f.prototype;return h.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+Y3++),this.__scriptLoaderID},h.setupScriptURL=function(){return this.__scriptURL=typeof e=="function"?e():e,this.__scriptURL},h.asyncScriptLoaderHandleLoad=function(g){var x=this;this.setState(g,function(){return x.props.asyncScriptOnLoad&&x.props.asyncScriptOnLoad(x.state)})},h.asyncScriptLoaderTriggerOnScriptLoaded=function(){var g=Vr[this.__scriptURL];if(!g||!g.loaded)throw new Error("Script is not loaded.");for(var x in g.observers)g.observers[x](g);delete window[t.callbackName]},h.componentDidMount=function(){var g=this,x=this.setupScriptURL(),v=this.asyncScriptLoaderGetScriptLoaderID(),N=t,w=N.globalName,j=N.callbackName,k=N.scriptId;if(w&&typeof window[w]<"u"&&(Vr[x]={loaded:!0,observers:{}}),Vr[x]){var C=Vr[x];if(C&&(C.loaded||C.errored)){this.asyncScriptLoaderHandleLoad(C);return}C.observers[v]=function(I){return g.asyncScriptLoaderHandleLoad(I)};return}var T={};T[v]=function(I){return g.asyncScriptLoaderHandleLoad(I)},Vr[x]={loaded:!1,observers:T};var A=document.createElement("script");A.src=x,A.async=!0;for(var E in t.attributes)A.setAttribute(E,t.attributes[E]);k&&(A.id=k);var D=function(_){if(Vr[x]){var H=Vr[x],z=H.observers;for(var G in z)_(z[G])&&delete z[G]}};j&&typeof window<"u"&&(window[j]=function(){return g.asyncScriptLoaderTriggerOnScriptLoaded()}),A.onload=function(){var I=Vr[x];I&&(I.loaded=!0,D(function(_){return j?!1:(_(I),!0)}))},A.onerror=function(){var I=Vr[x];I&&(I.errored=!0,D(function(_){return _(I),!0}))},document.body.appendChild(A)},h.componentWillUnmount=function(){var g=this.__scriptURL;if(t.removeOnUnmount===!0)for(var x=document.getElementsByTagName("script"),v=0;v<x.length;v+=1)x[v].src.indexOf(g)>-1&&x[v].parentNode&&x[v].parentNode.removeChild(x[v]);var N=Vr[g];N&&(delete N.observers[this.asyncScriptLoaderGetScriptLoaderID()],t.removeOnUnmount===!0&&delete Vr[g])},h.render=function(){var g=t.globalName,x=this.props;x.asyncScriptOnLoad;var v=x.forwardedRef,N=W3(x,["asyncScriptOnLoad","forwardedRef"]);return g&&typeof window<"u"&&(N[g]=typeof window[g]<"u"?window[g]:void 0),N.ref=v,y.createElement(o,N)},f})(y.Component),c=y.forwardRef(function(d,f){return y.createElement(l,Xh({},d,{forwardedRef:f}))});return c.displayName="AsyncScriptLoader("+a+")",c.propTypes={asyncScriptOnLoad:er.func},U3(c,o)}}var Jh="onloadcallback",K3="grecaptcha";function Zh(){return typeof window<"u"&&window.recaptchaOptions||{}}function q3(){var e=Zh(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+Jh+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+Jh+"&render=explicit"}const Va=G3(q3,{callbackName:Jh,globalName:K3,attributes:Zh().nonce?{nonce:Zh().nonce}:{}})(Nu),Dj=({open:e,onOpenChange:t})=>{const[r,o]=y.useState(!1),[a,l]=y.useState(!1),c=f=>{l(!!f)},d=async f=>{if(f.preventDefault(),!a){as.error("Please verify that you are not a robot.");return}o(!0);try{const h=f.currentTarget,p=new FormData(h),g={request_type:"marketing_
135kit",full_name:p.get("name"),company_name:p.get("company"),email:p.get("email"),phone:p.get("phone"),message:p.get("message")};if(!(await fetch("https://city1051fm.cloud//api/service-requests/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(g)})).ok)throw new Error("Failed to submit advertising request");o(!1),t(!1),as.success("Your request for a media kit has been sent successfully! Our team will contact you soon.")}catch(h){console.error("Submission error:",h),as.error("There was an error sending your request. Please try again."),o(!1)}};return s.jsx(Fa,{open:e,onOpenChange:t,children:s.jsxs(mi,{className:"sm:max-w-[500px] bg-card border-border",children:[s.jsxs($a,{children:[s.jsx(pi,{className:"text-2xl font-black uppercase tracking-tight text-foreground",children:"Request Media Kit"}),s.jsx(jp,{className:"text-muted-foreground text-sm",children:"Fill out the form below and we'll send our latest advertising rates and demographics information straight to your inbox."})]}),s.jsxs("form",{onSubmit:d,className:"space-y-6 py-4",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{htmlFor:"name",className:"text-xs font-bold uppercase tracking-widest opacity-70",children:"Your Name"}),s.jsxs("div",{className:"relative",children:[s.jsx(ai,{className:"absolute left-3 top-3 w-4 h-4 text-primary opacity-50"}),s.jsx(Je,{id:"name",name:"name",placeholder:"Chidi Okafor",className:"pl-10 bg-muted/50 border-border",required:!0})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{htmlFor:"company",className:"text-xs font-bold uppercase tracking-widest opacity-70",children:"Company"}),s.jsxs("div",{className:"relative",children:[s.jsx(HT,{className:"absolute left-3 top-3 w-4 h-4 text-primary opacity-50"}),s.jsx(Je,{id:"company",name:"company",placeholder:"Acme Inc.",className:"pl-10 bg-muted/50 border-border",required:!0})]})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{htmlFor:"email",className:"text-xs font-bold uppercase tracking-widest opacity-70",children:"Work Email"}),s.jsxs("div",{className:"relative",children:[s.jsx(ii,{className:"absolute left-3 top-3 w-4 h-4 text-primary opacity-50"}),s.jsx(Je,{id:"email",name:"email",type:"email",placeholder:"[email protected]",className:"pl-10 bg-muted/50 border-border",required:!0})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{htmlFor:"phone",className:"text-xs font-bold uppercase tracking-widest opacity-70",children:"Phone Number"}),s.jsxs("div",{className:"relative",children:[s.jsx(cu,{className:"absolute left-3 top-3 w-4 h-4 text-primary opacity-50"}),s.jsx(Je,{id:"phone",name:"phone",type:"tel",placeholder:"+234...",className:"pl-10 bg-muted/50 border-border",required:!0})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{htmlFor:"message",className:"text-xs font-bold uppercase tracking-widest opacity-70",children:"Brief Message (Optional)"}),s.jsx(gi,{id:"message",name:"message",placeholder:"Tell us about your advertising needs...",className:"bg-muted/50 border-border min-h-[100px]"})]}),s.jsx("div",{className:"flex justify-center py-2 bg-muted/30 rounded-xl border border-dashed border-border overflow-hidden",children:s.jsx(Va,{sitekey:"6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI",onChange:c,theme:"dark"})}),s.jsx(wp,{className:"pt-4",children:s.jsx(at,{type:"submit",disabled:r||!a,className:"w-full bg-primary text-primary-foreground font-black uppercase tracking-widest h-12 shadow-xl shadow-primary/20 hover:scale-[1.02] active:scale-95 transition-all gap-2 disabled:opacity-50 disabled:hover:scale-100",children:r?s.jsx(s.Fragment,{children:"Sending..."}):s.jsxs(s.Fragment,{children:[a?s.jsx(du,{className:"w-4 h-4"}):s.jsx(uu,{className:"w-4 h-4"}),"Send Request"]})})})]})]})})},Zr=({title:e,subtitle:t,icon:r,image:o})=>s.jsxs("section",{className:"relative h-[300px] md:h-[400px] flex items-center justify-center overflow-hidden bg-black",children:[s.jsxs("div",{className:"absolute inset-0 z-0",children:[o?s.jsx("img",{src:o,alt:e,className:"w-full h-full object-cover opacity-40 mix-blend-overlay"}):s.jsx("div",{className:"w-full h-full bg-gradient-to-br from-primary via-background to-black opacity-30"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background via-trans
135parent to-black/60"})]}),s.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[s.jsx("div",{className:"absolute -top-[10%] -left-[5%] w-[40%] h-[40%] bg-primary/10 rounded-full blur-[100px] animate-pulse"}),s.jsx("div",{className:"absolute top-[20%] -right-[10%] w-[30%] h-[30%] bg-primary/5 rounded-full blur-[80px] animate-pulse delay-1000"})]}),s.jsxs("div",{className:"container relative z-10 mx-auto px-4 text-center",children:[s.jsx("div",{className:"inline-block mb-6 relative",children:r&&s.jsxs("div",{className:"relative group",children:[s.jsx("div",{className:"absolute inset-0 bg-primary/20 blur-xl rounded-full scale-150 group-hover:scale-[2] transition-transform duration-700"}),s.jsx("div",{className:"relative w-16 h-16 md:w-20 md:h-20 bg-primary/10 backdrop-blur-md rounded-2xl border border-primary/20 flex items-center justify-center transform -rotate-6 group-hover:rotate-0 transition-all duration-500",children:s.jsx(r,{className:"w-8 h-8 md:w-10 md:h-10 text-primary group-hover:scale-110 transition-transform"})})]})}),s.jsx("h1",{className:"text-5xl md:text-7xl font-black uppercase text-white tracking-tighter mb-4 animate-in fade-in slide-in-from-bottom-8 duration-700 [text-shadow:0_4px_12px_rgba(0,0,0,0.3)]",children:e}),t&&s.jsx("p",{className:"text-lg md:text-xl text-white/80 font-medium max-w-2xl mx-auto tracking-wide leading-relaxed animate-in fade-in slide-in-from-bottom-6 duration-1000 delay-200 [text-shadow:0_2px_8px_rgba(0,0,0,0.2)]",children:t})]}),s.jsx("div",{className:"absolute bottom-0 left-0 w-full h-[1px] bg-gradient-to-r from-transparent via-primary/50 to-transparent"})]}),Q3=()=>{const[e,t]=y.useState(null),[r,o]=y.useState(!1);return s.jsxs(Ue,{children:[s.jsx(Zr,{title:"Promotions & Giveaways",subtitle:"Win amazing prizes with City 105.1 FM! Check out our current promotions and giveaways.",icon:tE}),s.jsx("section",{className:"py-16",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsx("h2",{className:"text-3xl font-bold text-center mb-4",children:"Book Our Services"}),s.jsx("p",{className:"text-muted-foreground text-center max-w-2xl mx-auto mb-12",children:"Get your music played on City 105.1 FM or book an interview slot with our presenters."}),s.jsxs("div",{className:"grid md:grid-cols-3 gap-8 max-w-6xl mx-auto",children:[s.jsxs("div",{className:"bg-card rounded-xl p-8 border border-border hover:border-primary transition-colors flex flex-col h-full",children:[s.jsx("div",{className:"w-16 h-16 bg-primary/20 rounded-full flex items-center justify-center mb-6",children:s.jsx(Oc,{className:"w-8 h-8 text-primary"})}),s.jsx("h3",{className:"text-2xl font-bold text-foreground mb-4",children:"Music Airplay Booking"}),s.jsx("p",{className:"text-muted-foreground mb-6",children:"Get your music on City 105.1 FM! Submit your tracks for airplay consideration and reach millions of listeners across Lagos."}),s.jsxs("ul",{className:"space-y-2 mb-6 text-sm text-muted-foreground flex-grow",children:[s.jsxs("li",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"w-1.5 h-1.5 bg-primary rounded-full"}),"Professional airplay scheduling"]}),s.jsxs("li",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"w-1.5 h-1.5 bg-primary rounded-full"}),"Prime time slots available"]}),s.jsxs("li",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"w-1.5 h-1.5 bg-primary rounded-full"}),"Listener feedback reports"]})]}),s.jsxs("button",{onClick:()=>t("airplay"),className:"w-full bg-primary text-primary-foreground py-3 rounded font-semibold hover:bg-primary/90 transition-colors flex items-center justify-center gap-2",children:[s.jsx(Oc,{className:"w-5 h-5"}),"Book Airplay"]})]}),s.jsxs("div",{className:"bg-card rounded-xl p-8 border border-border hover:border-primary transition-colors flex flex-col h-full",children:[s.jsx("div",{className:"w-16 h-16 bg-primary/20 rounded-full flex items-center justify-center mb-6",children:s.jsx(Lc,{className:"w-8 h-8 text-primary"})}),s.jsx("h3",{className:"text-2xl font-bold text-foreground mb-4",children:"Interview Booking"}),s.jsx("p",{className:"text-muted-foreground mb-6",children:"Share your story with Lagos! Book an interview slot with our experienced presenters and connect with our engaged audience."}),s.jsxs("ul",{className:"space-y-2 mb-6 text-sm text-muted-foreground flex-grow",children:[s.jsxs("li",{className:"flex items-center gap-3",children:[s.jsx("span",{className:"w-1.5 h-1.5 bg-primary rounded-full"}),"Professional interview setup"]}),s.jsxs("li",{className:"flex items-center gap-3",children:[s.jsx("span",{className:"w-1.5 h-1.5 bg-primary rounded-full"}),"Flexible scheduling options"]}),s.jsxs("li",{className:"flex items-center gap-3",children:[s.jsx("span",{className:"w-1.5 h-1.5 bg-primary rounded-full"}),"Recording available on request"]})]}),s.jsxs("button",{onClick:()=>t("interview"),className:"w-full bg-primary text-primary-foreground py-3 rounded font-semibold hover:bg-primary/90 transition-colors flex items-center justify-center gap-2",children:[s.jsx(Lc,{className:"w-5 h-5"}),"Book Interview"]})]}),s.jsxs("div",{className:"bg-card rounded-xl p-8 border border-border hover:border-primary transition-colors flex flex-col h-full",children:[s.jsx("div",{className:"w-16 h-16 bg-primary/20 rounded-full flex items-center justify-center mb-6",children:s.jsx(Ch,{className:"w-8 h-8 text-primary"})}),s.jsx("h3",{className:"text-2xl font-bold text-foreground mb-4",children:"Marketing & Ads"}),s.jsx("p",{className:"text-muted-foreground mb-6",children:"Promote your brand with City 105.1 FM! From radio jingles to social media campaigns, we help you reach your target audience effectively."}),s.jsxs("ul",{className:"space-y-2 mb-6 text-sm text-muted-foreground flex-grow",children:[s.jsxs("li",{className:"flex items-center gap-3",children:[s.jsx("span",{className:"w-1.5 h-1.5 bg-primary rounded-full"}),"Radio jingles & spot ads"]}),s.jsxs("li",{className:"flex items-center gap-3",children:[s.jsx("span",{className:"w-1.5 h-1.5 bg-primary rounded-full"}),"Social media promotions"]}),s.jsxs("li",{className:"flex items-center gap-3",children:[s.jsx("span",{className:"w-1.5 h-1.5 bg-primary rounded-full"}),"Brand activations & events"]})]}),s.jsxs("button",{onClick:()=>o(!0),className:"w-full bg-primary text-primary-foreground py-3 rounded font-semibold hover:bg-primary/90 transition-colors flex items-center justify-center gap-2",children:[s.jsx(Ch,{className:"w-5 h-5"}),"Contact for Ads"]})]})]})]})}),s.jsx(j4,{isOpen:e!==null,onClose:()=>t(null),type:e||"airplay"}),s.jsx(Dj,{open:r,onOpenChange:o})]})},X3=({open:e,onOpenChange:t})=>
135{const[r,o]=y.useState({fullName:"",email:"",phone:"",message:""}),[a,l]=y.useState(null),[c,d]=y.useState(!1),[f,h]=y.useState(!1),p=y.useRef(null),g=w=>{h(!!w)},x=w=>{if(w.target.files&&w.target.files[0]){const j=w.target.files[0];if(j.size>10*1024*1024){as.error("File size exceeds the 10MB limit.");return}l(j)}},v=()=>{l(null),p.current&&(p.current.value="")},N=async w=>{if(w.preventDefault(),!f){as.error("Please verify that you are not a robot.");return}d(!0);try{const j=new FormData;if(j.append("request_type","career"),j.append("full_name",r.fullName),j.append("email",r.email),j.append("phone",r.phone),j.append("message",r.message),a&&j.append("music_file",a),!(await fetch("https://city1051fm.cloud//api/service-requests/",{method:"POST",body:j})).ok)throw new Error("Failed to submit career request");d(!1),t(!1),as.success("Your submission has been received! Our team will contact you if your profile fits our needs."),o({fullName:"",email:"",phone:"",message:""}),l(null),h(!1)}catch(j){console.error("Submission error:",j),as.error("There was an error sending your request. Please try again."),d(!1)}};return s.jsx(Fa,{open:e,onOpenChange:t,children:s.jsxs(mi,{className:"sm:max-w-[500px] bg-card border-border",children:[s.jsxs($a,{children:[s.jsx(pi,{className:"text-2xl font-black uppercase tracking-tight text-foreground",children:"Careers & Feedback"}),s.jsx(jp,{className:"text-muted-foreground text-sm",children:"We want to hear from you. Send us your CV / Portfolio or share your thoughts and feedback."})]}),s.jsxs("form",{onSubmit:N,className:"space-y-5 py-2",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{htmlFor:"fullName",className:"text-xs font-bold uppercase tracking-widest opacity-70",children:"Full Name *"}),s.jsxs("div",{className:"relative",children:[s.jsx(ai,{className:"absolute left-3 top-3 w-4 h-4 text-primary opacity-50"}),s.jsx(Je,{id:"fullName",value:r.fullName,onChange:w=>o({...r,fullName:w.target.value}),placeholder:"Tunde Bakare",className:"pl-10 bg-muted/50 border-border",required:!0})]})]}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{htmlFor:"email",className:"text-xs font-bold uppercase tracking-widest opacity-70",children:"Email Address *"}),s.jsxs("div",{className:"relative",children:[s.jsx(ii,{className:"absolute left-3 top-3 w-4 h-4 text-primary opacity-50"}),s.jsx(Je,{id:"email",type:"email",value:r.email,onChange:w=>o({...r,email:w.target.value}),placeholder:"[email protected]",className:"pl-10 bg-muted/50 border-border",required:!0})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{htmlFor:"phone",className:"text-xs font-bold uppercase tracking-widest opacity-70",children:"Phone Number *"}),s.jsxs("div",{className:"relative",children:[s.jsx(cu,{className:"absolute left-3 top-3 w-4 h-4 text-primary opacity-50"}),s.jsx(Je,{id:"phone",type:"tel",value:r.phone,onChange:w=>o({...r,phone:w.target.value}),placeholder:"+234...",className:"pl-10 bg-muted/50 border-border",required:!0})]})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{className:"text-xs font-bold uppercase tracking-widest opacity-70",children:"Resume / Portfolio File (Optional)"}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs(at,{type:"button",onClick:()=>p.current?.click(),variant:"outline",className:"bg-muted/50 border-border hover:bg-muted font-bold text-xs uppercase tracking-wider gap-2 h-11",children:[s.jsx(Pw,{className:"w-4 h-4 text-primary"}),"Upload CV"]}),s.jsx("input",{type:"file",ref:p,onChange:x,accept:".pdf,.doc,.docx,.zip",className:"hidden"}),a?s.jsxs("div",{className:"flex items-center gap-2 bg-primary/10 border border-primary/20 px-3 py-1.5 rounded-xl text-xs font-semibold text-foreground",children:[s.jsx("span",{className:"truncate max-w-[150px]",children:a.name}),s.jsx("button",{type:"button",onClick:v,className:"hover:text-primary",children:s.jsx(xn,{className:"w-3.5 h-3.5"})})]}):s.jsx("span",{className:"text-xs text-muted-foreground",children:"PDF, Word or Zip (Max 10MB)"})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{htmlFor:"message",className:"text-xs font-bold uppercase tracking-widest opacity-70",children:"Message / Cover Letter / Feedback *"}),s.jsx(gi,{id:"message",value:r.message,onChange:w=>o({...r,message:w.target.value}),placeholder:"Tell us about yourself, your career aspirations, or leave your feedback...",className:"bg-muted/50 border-border min-h-[100px]",required:!0})]}),s.jsx("div",{className:"flex justify-center py-2 bg-muted/30 rounded-xl border border-dashed border-border overflow-hidden",children:s.jsx(Va,{sitekey:"6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI",onChange:g,theme:"dark"})}),s.jsx(wp,{className:"pt-2",children:s.jsx(at,{type:"submit",disabled:c||!f,className:"w-full bg-primary text-primary-foreground font-black uppercase tracking-widest h-12 shadow-xl shadow-primary/20 hover:scale-[1.02] active:scale-95 transition-all gap-2 disabled:opacity-50 disabled:hover:scale-100",children:c?s.jsxs(s.Fragment,{children:[s.jsx(Bt,{className:"w-4 h-4 animate-spin text-primary-foreground"}),"Sending..."]}):s.jsxs(s.Fragment,{children:[f?s.jsx(du,{className:"w-4 h-4"}):s.jsx(uu,{className:"w-4 h-4"}),"Submit Application"]})})})]})]})})},Ij="https://city1051fm.cloud/",J3=`${Ij.replace(/\/$/,"")}/media/presenters-group.png`,Z3=(e,t)=>{if(!t.host||!t.host.trim())return!1;const r=t.host.toLowerCase().split(",").map(l=>l.trim()).filter(l=>l.length>2);if(r.length===0)return!1;const o=e.toLowerCase(),a=o.split(" ")[0];return r.some(l=>l===o||l.includes(o)||o.length>2&&o.includes(l)||l.includes(a))},x0=({member:e,isLive:t})=>s.jsxs(Pe,{to:`/staff/${e.slug}`,className:`group bg-card rounded-3xl overflow-hidden shadow-lg border transition-all hover:-translate-y-1 ${t?"border-red-500 ring-2 ring-red-500/40":"border-border hover:border-primary"}`,children:[s.jsxs("div",{className:"relative",children:[s.jsx("img",{src:e.image,alt:e.name,className:"w-full h-72 object-cover object-top group-hover:scale-105 transition-transform duration-300"}),s.jsx("div",{className:"absolute top-3 left-3",children:t?s.jsxs("span",{className:"bg-red-600 text-white text-xs font-bold px-2.5 py-1 rounded flex items-center gap-1.5 animate-pulse shadow-lg",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-white animate-ping"}),"LIVE NOW"]}):s.jsx("span",{className:"bg-primary/80 text-primary-foreground text-xs font-bold px-3 py-1 rounded shadow-md",children:e.role})})]}),s.jsxs("div",{className:"p-4",children:[s.jsx("h3",{className:"text-xl font-bold text-foreground group-hover:text-primary transition-colors uppercase",children:e.name}),s.jsxs("div",{className:"flex gap-3 mt-3",children:[e.instagram_url&&s.jsx("a",{href:e.instagram_url,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-primary transition-colors",onClick:r=>r.stopPropagation(),children:s.jsx(au,{className:"w-5 h-5"})}),e.twitter_url&&s.jsx("a",{href:e.twitter_url,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-primary transition-colors",onClick:r=>r.stopPropagation(),children:s.jsx(fu,{className:"w-5 h-5"})}),e.facebook_url&&s.jsx("a",{href:e.facebook_url,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-primary transition-colors",onClick:r=>r.stopPropagation(),children:s.jsx(Da,{className:"w-5 h-5"})}),e.linkedin_url&&s.jsx("a",{href:e.linkedin_url,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-primary transition-colors",onClick:r=>r.stopPropagation(),children:s.jsx(Bm,{className:"w-5 h-5"})}),e.tiktok_url&&s.jsx("a",{href:e.tiktok_url,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-primary transition-colors",onClick:r=>r.stopPropagation(),children:s.jsx(lu,{className:"w-5 h-5"})})]})]})]},e.id),e_=()=>{const[e,t]=y.useState([]),[r,o]=y.useState([]),[a,l]=y.useState(!0),[c,d]=y.useState(!1);y.useEffect(()=>{(async()=>{try{const[v,N]=await Promise.all([Ce("/api/staff/"),Ce("/api/shows/")]);t(v.map(w=>({...w,image:w.image?w.image.startsWith("http")?w.image:`${Ij}${w.image}`:""}))),o(N)}catch(v){console.error("Failed to load staff members",v)}finally{l(!1)}})()},[]);const f=e.filter(x=>x.category==="Management"),h=e.filter(x=>x.category==="Presenter"),p=y.useMemo(()=>{const x=new Set;return r.filter(N=>x.has(N.title)?!1:(x.add(N.title),!0)).map(N=>({show:N,isLive:Gr(N),presenters:h.filter(w=>Z3(w.name,N))})).filter(N=>N.presenters.length>0)},[e,r]),g=y.useMemo(()=>{const x=new Set(p.flatMap(v=>v.presenters.map(N=>N.id)));return h.filter(v=>!x.has(v.id))},[h,p]);return s.jsxs(Ue,{children:[s.jsx(At,{title:"Meet the Team - City 105.1 FM",description:"Meet the voices behind the mic! The talented personalities at City 105.1 FM Lagos."}),s.jsx(Zr,{title:"Meet Our Team",subtitle:"The talented voices and personalities that make City 105.1 FM Lagos' favorite radio station.",icon:dE,image:J3}),s.jsx("section",{className:"py-16",children:s.jsx("div",{className:"container mx-auto px-4",children:a?s.jsx("div",{className:"flex justify-center py-20",children:s.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-primary"})}):s.jsxs(s.Fragment,{children:[f.length>0&&s.jsxs("div",{className:"mb-20",children:[s.jsx("h2",{className:"text-3xl font-bold mb-10 text-center uppercase tracking-widest border-b-2 border-primary w-fit mx-auto pb-2",children:"Management"}),s.jsx("div",{className:"flex flex-wrap justify-center gap-8 max-w-5xl mx-auto",children:f.map(x=>s.jsxs(Pe,{to:`/staff/${x.slug}`,className:"group bg-card rounded-3xl overflow-hidden shadow-lg border border-border hover:border-primary transition-all hover:-translate-y-1 w-full sm:w-[calc(50%-1rem)] lg:w-80",children:[s.jsxs("div",{className:"relative",children:[s.jsx("img",{src:x.image,alt:x.name,className:"w-full h-80 object-cover object-top group-hover:scale-105 transition-transform duration-300"}),s.jsx("div",{className:"absolute top-3 left-3",children:s.jsx("span",{className:"bg-primary text-primary-foreground text-xs font-bold px-3 py-1 rounded shadow-md",children:x.role})})]}),s.jsx("div",{className:"p-6 text-center",children:s.jsx("h3",{className:"text-xl font-bold text-foreground group-hover:text-primary transition-colors uppercase",children:x.name})})]},x.id))})]}),p.length>0&&s.jsxs("div",{className:"space-y-16",children:[s.jsx("h2",{className:"text-3xl font-bold text-center uppercase tracking-widest border-b-2 border-primary w-fit mx-auto pb-2",children:"On-Air Personalities"}),p.map(({show:x,isLive:v,presenters:N})=>s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[s.jsx("div",{className:"flex-1 h-px bg-border"}),s.jsxs("div",{className:"flex items-center gap-3",children:[v&&s.jsxs("span",{className:"bg-red-600 text-white text-xs font-bold px-2.5 py-1 rounded flex items-center gap-1.5 animate-pulse",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-white animate-ping"}),"LIVE NOW"]}),s.jsx("h3",{className:"text-xl md:text-2xl font-black uppercase tracking-wider text-foreground",children:x.title}),s.jsx("span",{className:"text-sm text-muted-foreground font-medium",children:x.time})]}),s.jsx("div",{className:"flex-1 h-px bg-border"})]}),N.length>0?s.jsx("div",{className:"flex gap-5 overflow-x-auto sm:overflow-visible sm:flex-wrap sm:justify-center pb-4 sm:pb-0 snap-x snap-mandatory sm:snap-none hide-scrollbar",children:N.map(w=>s.jsx("div",{className:"snap-start shrink-0 w-64 sm:w-64 lg:w-72",children:s.jsx(x0,{member:w,isLive:v})},w.id))}):s.jsx("p",{className:"text-center text-muted-foreground text-sm py-4",children:"Presenter info coming soon"})]},x.id)),g.length>0&&s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[s.jsx("div",{className:"flex-1 h-px bg-border"}),s.jsx("h3",{className:"text-xl md:text-2xl font-black uppercase tracking-wider text-foreground",children:"More Personalities"}),s.jsx("div",{className:"flex-1 h-px bg-border"})]}),s.jsx("div",{className:"flex gap-5 overflow-x-auto sm:overflow-visible sm:flex-wrap sm:justify-center pb-4 sm:pb-0 snap-x snap-mandatory sm:snap-none hide-scrollbar",children:g.map(x=>s.jsx("div",{className:"snap-start shrink-0 w-64 sm:w-64 lg:w-72",children:s.jsx(x0,{member:x,isLive:!1})},x.id))})]})]})]})})}),s.jsx("section",{className:"bg-muted py-16",children:s.jsxs("div",{className:"container mx-auto px-4 text-center",children:[s.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Want to Join Our Team?"}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto mb-8",children:"We are always looking for passionate presenters, producers, creators, and talent. Share your CV, portfolio, or feedback with us, and let's explore opportunities."}),s.jsx("button",{onClick:()=>d(!0),className:"inline-block bg-primary text-primary-foreground px-8 py-3 rounded font-semibold hover:bg-primary/90 transition-colors",children:"Apply / Send Feedback"})]})}),s.jsx(X3,{open:c,onOpenChange:d})]})},t_="https://city1051fm.cloud/",r_=()=>{const{slug:e}=Oa(),[t,r]=y.useState(null),[o,a]=y.useState([]),[l,c]=y.useState(!0);y.useEffect(()=>{(async()=>
135{if(e)try{const p=await Ce(`/api/staff/${e}/`);p.image&&!p.image.startsWith("http")&&(p.image=`${t_}${p.image}`),r(p);try{const g=await Ce("/api/shows/");a(g)}catch(g){console.error("Failed to fetch shows",g)}}catch(p){console.error("Failed to fetch presenter",p)}finally{c(!1)}})()},[e]);const d=h=>{if(!h)return null;if(typeof h=="string")return h;if(typeof h=="number"||!isNaN(Number(h))){const p=Number(h),g=o.find(v=>v.id===p);if(g)return g.title;const x=shows.find(v=>v.id===p);if(x)return x.title}return null};if(l)return s.jsx(Ue,{children:s.jsx("div",{className:"flex justify-center py-40",children:s.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-primary"})})});if(!t)return s.jsx(Ue,{children:s.jsxs("div",{className:"container mx-auto px-4 py-16 text-center",children:[s.jsx("h1",{className:"text-3xl font-bold mb-4",children:"Presenter Not Found"}),s.jsx(Pe,{to:"/staff",className:"text-primary hover:underline",children:"Back to Staff"})]})});const f=o.filter(h=>{const p=(h.host||"").toLowerCase(),g=t.name.toLowerCase(),x=g.split(" ")[0];return!!(p.includes(g)||x.length>2&&p.includes(x))});return s.jsxs(Ue,{children:[s.jsx(At,{title:`${t.name} - City 105.1 FM`,description:`${t.name} is a ${t.role} at City 105.1 FM.`,ogImage:t.image}),s.jsx("div",{className:"container mx-auto px-4 pt-8",children:s.jsxs(Pe,{to:"/staff",className:"inline-flex items-center gap-2 text-primary hover:underline",children:[s.jsx(Ko,{className:"w-4 h-4"}),"Back to Team"]})}),s.jsx("section",{className:"py-12",children:s.jsx("div",{className:"container mx-auto px-4",children:s.jsxs("div",{className:"grid lg:grid-cols-3 gap-12 items-start",children:[s.jsx("div",{className:"lg:col-span-1",children:s.jsx("img",{src:t.image,alt:t.name,className:"w-full max-w-md mx-auto rounded-xl shadow-2xl object-cover"})}),s.jsxs("div",{className:"lg:col-span-2",children:[s.jsxs("div",{className:"flex flex-wrap gap-2 mb-4",children:[s.jsx("span",{className:"bg-primary text-primary-foreground px-3 py-1 rounded text-sm font-semibold",children:t.role}),d(t.show)&&f.length===0&&s.jsx("span",{className:"bg-accent text-accent-foreground px-3 py-1 rounded text-sm font-semibold",children:d(t.show)})]}),s.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-foreground mb-4",children:t.name}),s.jsx("div",{className:"space-y-6",children:t.bio.split(`
136`).map((h,p)=>s.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:h},p))}),s.jsxs("div",{className:"flex gap-4",children:[t.instagram_url&&s.jsx("a",{href:t.instagram_url,target:"_blank",rel:"noopener noreferrer",className:"w-12 h-12 bg-card border border-border rounded-full flex items-center justify-center text-muted-foreground hover:text-primary hover:border-primary transition-colors",children:s.jsx(au,{className:"w-5 h-5"})}),t.twitter_url&&s.jsx("a",{href:t.twitter_url,target:"_blank",rel:"noopener noreferrer",className:"w-12 h-12 bg-card border border-border rounded-full flex items-center justify-center text-muted-foreground hover:text-primary hover:border-primary transition-colors",children:s.jsx("span",{className:"font-bold text-base",children:"𝕏"})}),t.facebook_url&&s.jsx("a",{href:t.facebook_url,target:"_blank",rel:"noopener noreferrer",className:"w-12 h-12 bg-card border border-border rounded-full flex items-center justify-center text-muted-foreground hover:text-primary hover:border-primary transition-colors",children:s.jsx(Da,{className:"w-5 h-5"})}),t.linkedin_url&&s.jsx("a",{href:t.linkedin_url,target:"_blank",rel:"noopener noreferrer",className:"w-12 h-12 bg-card border border-border rounded-full flex items-center justify-center text-muted-foreground hover:text-primary hover:border-primary transition-colors",children:s.jsx(Bm,{className:"w-5 h-5"})}),t.tiktok_url&&s.jsx("a",{href:t.tiktok_url,target:"_blank",rel:"noopener noreferrer",className:"w-12 h-12 bg-card border border-border rounded-full flex items-center justify-center text-muted-foreground hover:text-primary hover:border-primary transition-colors",children:s.jsx(lu,{className:"w-5 h-5"})})]}),f.length>0&&s.jsxs("div",{className:"mt-8",children:[s.jsx("h2",{className:"text-2xl font-bold mb-4 uppercase",children:"Shows Host"}),s.jsx("div",{className:"flex flex-wrap gap-4",children:f.map(h=>s.jsxs(Pe,{to:`/shows/${h.slug}`,className:"flex items-center gap-3 bg-card border border-border p-3 pr-5 rounded-full hover:bg-muted transition-colors group",children:[s.jsx("img",{src:h.image,alt:h.title,className:"w-12 h-12 rounded-full object-cover group-hover:scale-105 transition-transform"}),s.jsxs("div",{className:"flex flex-col",children:[s.jsx("span",{className:"font-bold group-hover:text-primary transition-colors",children:h.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:h.time})]})]}
136,h.id))})]})]})]})})})]})},n_="https://city1051fm.cloud/",y0=e=>e?e.startsWith("http")?e:`${n_}${e}`:null,s_=()=>{const[e,t]=y.useState([]),[r,o]=y.useState([]),[a,l]=y.useState(!0),c=["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY","SUNDAY"],d=new Date().toLocaleDateString("en-US",{weekday:"long"}).toUpperCase(),f=c.includes(d)?d:"MONDAY",[h,p]=y.useState(f);y.useEffect(()=>{(async()=>{try{const[w,j]=await Promise.all([Ce("/api/shows/"),Ce("/api/staff/")]),k=w.map(C=>({...C,image:y0(C.image)}));t(k),o(j.map(C=>({...C,image:y0(C.image)})))}catch(w){console.error("Failed to fetch shows",w)}finally{l(!1)}})()},[]);const g=N=>N?N.split(",").map(j=>j.trim().toLowerCase()).map(j=>r.find(k=>k.name.toLowerCase().includes(j)||j.includes(k.name.toLowerCase().split(" ")[0]))).filter(j=>!!j):[],x=(N,w)=>{const j=N.toUpperCase(),k=w.toUpperCase(),C=k.substring(0,3);return j.includes("MON-FRI")||j.includes("MONDAY-FRIDAY")||j.includes("MONDAY - FRIDAY")?["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY"].includes(k):j.includes("SAT-SUN")||j.includes("SATURDAY-SUNDAY")?["SATURDAY","SUNDAY"].includes(k):j.includes(k)||j.includes(C)},v=e.filter(N=>x(N.days,h));return s.jsxs(Ue,{children:[s.jsx(At,{title:"Our Shows - City 105.1 FM",description:"Listen to the best shows on City 105.1 FM from morning to night. Tune in live!"}),s.jsx(Zr,{title:"Our Shows",subtitle:"From morning to night, we've got the perfect show for every moment. Tune in to City 105.1 FM!",icon:ao}),s.jsx("section",{className:"py-16",children:s.jsx("div",{className:"container mx-auto px-4",children:a?s.jsx("div",{className:"py-20 flex justify-center",children:s.jsx("div",{className:"w-10 h-10 border-4 border-primary border-t-transparent rounded-full animate-spin"})}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex bg-card rounded-t-lg overflow-x-auto hide-scrollbar mb-8",children:c.map(N=>s.jsx("button",{onClick:()=>p(N),className:`flex-1 min-w-[120px] py-4 px-4 text-center font-bold text-sm tracking-wider transition-colors uppercase ${h===N?"bg-primary text-primary-foreground":"text-muted-foreground hover:bg-black/40 hover:text-foreground"}`,children:N},N))}),s.jsx("div",{className:"grid lg:grid-cols-3 gap-8",children:v.map(N=>{const w=Gr(N),j=g(N.host);return s.jsxs(Pe,{to:`/shows/${N.slug}`,className:`group bg-card rounded-lg overflow-hidden shadow-lg border transition-all hover:-translate-y-1 relative ${w?"border-red-500 ring-2 ring-red-500/50":"border-border hover:border-primary"}`,children:[s.jsxs("div",{className:"relative h-48",children:[s.jsx("img",{src:N.image,alt:N.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-transparent to-transparent"}),s.jsxs("div",{className:"absolute bottom-4 left-4 flex flex-wrap gap-2",children:[s.jsx("span",{className:"bg-primary/90 text-primary-foreground font-bold tracking-wider px-2 py-1 text-xs border border-primary-foreground/20 rounded-sm uppercase bg-opacity-90",children:N.category||"CITY SHOWS"}),w&&s.jsxs("span",{className:"bg-red-600 text-white font-bold tracking-wider px-2 py-1 text-xs border border-red-500 rounded-sm flex items-center gap-1.5 animate-pulse shadow-lg",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-white animate-ping"}),"LIVE NOW"]})]})]}),s.jsxs("div",{className:"p-6",children:[s.jsx("h3",{className:"text-2xl font-bold text-foreground mb-2 uppercase group-hover:text-primary transition-colors",children:N.title}),s.jsx("div",{className:"flex items-center gap-2 mb-4 text-sm font-semibold text-white/80",children:s.jsx("span",{children:N.time.toUpperCase()})}),j.length>0?s.jsx("div",{className:"flex items-center gap-3 mb-3 flex-wrap",children:j.map(k=>s.jsxs("div",{className:"flex items-center gap-2",children:[k.image?s.jsx("img",{src:k.image,alt:k.name,className:"w-8 h-8 rounded-full object-cover object-top border-2 border-primary"}):s.jsx("div",{className:"w-8 h-8 rounded-full bg-primary/20 border-2 border-primary flex items-center justify-center",children:s.jsx(ai,{className:"w-4 h-4 text-primary"})}),s.jsx("span",{className:"text-primary font-semibold text-sm",children:k.name})]},k.id))}):s.jsxs("p",{className:"text-primary font-medium text-sm mb-3",children:["Hosted by ",N.host]}),s.jsx("p",{className:"text-muted-foreground text-sm line-clamp-2",children:N.description})]})]},N.id)})}),v.length===0&&s.jsxs("div",{className:"text-center py-20 text-muted-foreground",children:["No shows scheduled for ",h,"."]})]})})}),s.jsx("section",{className:"py-16",children:s.jsxs("div",{className:"container mx-auto px-4 text-center",children:[s.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Full Schedule"}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto mb-8",children:"Download our complete weekly schedule so you never miss your favorite show."}),s.jsx("button",{className:"bg-primary text-primary-foreground px-8 py-3 rounded font-semibold hover:bg-primary/90 transition-colors",children:"Download Schedule (PDF)"})]})})]})};function v0(e,[t,r]){return Math.min(r,Math.max(t,e))}var o_=y.createContext(void 0);function Np(e){const t=y.useContext(o_);return e||t||"ltr"}function Lj(e){const t=y.useRef({value:e,previous:e});return y.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var i_=[" ","Enter","ArrowUp","ArrowDown"],a_=[" ","Enter"],Zs="Select",[Su,ku,l_]=Im(Zs),[xi]=Mn(Zs,[l_,gu]),Cu=gu(),[c_,ws]=xi(Zs),[u_,d_]=xi(Zs),Oj=e=>{const{__scopeSelect:t,children:r,open:o,defaultOpen:a,onOpenChange:l,value:c,defaultValue:d,onValueChange:f,dir:h,name:p,autoComplete:g,disabled:x,required:v,form:N}=e,w=Cu(t),[j,k]=y.useState(null),[C,T]=y.useState(null),[A,E]=y.useState(!1),D=Np(h),[I,_]=Go({prop:o,defaultProp:a??!1,onChange:l,caller:Zs}),[H,z]=Go({prop:c,defaultProp:d,onChange:f,caller:Zs}),G=y.useRef(null),q=j?N||!!j.closest("form"):!0,[le,F]=y.useState(new Set),J=Array.from(le).map(Z=>Z.props.value).join(";");return s.jsx(eA,{...w,children:s.jsxs(c_,{required:v,scope:t,trigger:j,onTriggerChange:k,valueNode:C,onValueNodeChange:T,valueNodeHasChildren:A,onValueNodeHasChildrenChange:E,contentId:Ys(),value:H,onValueChange:z,open:I,onOpenChange:_,dir:D,triggerPointerDownPosRef:G,disabled:x,children:[s.jsx(Su.Provider,{scope:t,children:s.jsx(u_,{scope:e.__scopeSelect,onNativeOptionAdd:y.useCallback(Z=>{F(oe=>new Set(oe).add(Z))},[]),onNativeOptionRemove:y.useCallback(Z=>{F(oe=>{const $=new Set(oe);return $.delete(Z),$})},[]),children:r})}),q?s.jsxs(aN,{"aria-hidden":!0,required:v,tabIndex:-1,name:p,autoComplete:g,value:H,onChange:Z=>z(Z.target.value),disabled:x,form:N,children:[H===void 0?s.jsx("option",{value:""}):null,Array.from(le)]},J):null]})})};Oj.displayName=Zs;var Fj="SelectTrigger",$j=y.forwardRef((e,t)=>
136{const{__scopeSelect:r,disabled:o=!1,...a}=e,l=Cu(r),c=ws(Fj,r),d=c.disabled||o,f=ze(t,c.onTriggerChange),h=ku(r),p=y.useRef("touch"),[g,x,v]=cN(w=>{const j=h().filter(T=>!T.disabled),k=j.find(T=>T.value===c.value),C=uN(j,w,k);C!==void 0&&c.onValueChange(C.value)}),N=w=>{d||(c.onOpenChange(!0),v()),w&&(c.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})};return s.jsx(h1,{asChild:!0,...l,children:s.jsx(Re.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:d,"data-disabled":d?"":void 0,"data-placeholder":lN(c.value)?"":void 0,...a,ref:f,onClick:Se(a.onClick,w=>{w.currentTarget.focus(),p.current!=="mouse"&&N(w)}),onPointerDown:Se(a.onPointerDown,w=>{p.current=w.pointerType;const j=w.target;j.hasPointerCapture(w.pointerId)&&j.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(N(w),w.preventDefault())}),onKeyDown:Se(a.onKeyDown,w=>{const j=g.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&x(w.key),!(j&&w.key===" ")&&i_.includes(w.key)&&(N(),w.preventDefault())})})})});$j.displayName=Fj;var Vj="SelectValue",Bj=y.forwardRef((e,t)=>{const{__scopeSelect:r,className:o,style:a,children:l,placeholder:c="",...d}=e,f=ws(Vj,r),{onValueNodeHasChildrenChange:h}=f,p=l!==void 0,g=ze(t,f.onValueNodeChange);return Pt(()=>{h(p)},[h,p]),s.jsx(Re.span,{...d,ref:g,style:{pointerEvents:"none"},children:lN(f.value)?s.jsx(s.Fragment,{children:c}):l})});Bj.displayName=Vj;var f_="SelectIcon",zj=y.forwardRef((e,t)=>{const{__scopeSelect:r,children:o,...a}=e;return s.jsx(Re.span,{"aria-hidden":!0,...a,ref:t,children:o||"▼"})});zj.displayName=f_;var h_="SelectPortal",Uj=e=>s.jsx(su,{asChild:!0,...e});Uj.displayName=h_;var eo="SelectContent",Wj=y.forwardRef((e,t)=>{const r=ws(eo,e.__scopeSelect),[o,a]=y.useState();if(Pt(()=>{a(new DocumentFragment)},[]),!r.open){const l=o;return l?si.createPortal(s.jsx(Hj,{scope:e.__scopeSelect,children:s.jsx(Su.Slot,{scope:e.__scopeSelect,children:s.jsx("div",{children:e.children})})}),l):null}return s.jsx(Yj,{...e,ref:t})});Wj.displayName=eo;var zr=10,[Hj,js]=xi(eo),m_="SelectContentImpl",p_=Yo("SelectContent.RemoveScroll"),Yj=y.forwardRef((e,t)=>{const{__scopeSelect:r,position:o="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:l,onPointerDownOutside:c,side:d,sideOffset:f,align:h,alignOffset:p,arrowPadding:g,collisionBoundary:x,collisionPadding:v,sticky:N,hideWhenDetached:w,avoidCollisions:j,...k}=e,C=ws(eo,r),[T,A]=y.useState(null),[E,D]=y.useState(null),I=ze(t,X=>A(X)),[_,H]=y.useState(null),[z,G]=y.useState(null),q=ku(r),[le,F]=y.useState(!1),J=y.useRef(!1);y.useEffect(()=>{if(T)return dj(T)},[T]),rj();const Z=y.useCallback(X=>{const[ue,...we]=q().map(ce=>ce.ref.current),[be]=we.slice(-1),ve=document.activeElement;for(const ce of X)if(ce===ve||(ce?.scrollIntoView({block:"nearest"}),ce===ue&&E&&(E.scrollTop=0),ce===be&&E&&(E.scrollTop=E.scrollHeight),ce?.focus(),document.activeElement!==ve))return},[q,E]),oe=y.useCallback(()=>Z([_,T]),[Z,_,T]);y.useEffect(()=>{le&&oe()},[le,oe]);const{onOpenChange:$,triggerPointerDownPosRef:W}=C;y.useEffect(()=>{if(T){let X={x:0,y:0};const ue=be=>{X={x:Math.abs(Math.round(be.pageX)-(W.current?.x??0)),y:Math.abs(Math.round(be.pageY)-(W.current?.y??0))}},we=be=>{X.x<=10&&X.y<=10?be.preventDefault():T.contains(be.target)||$(!1),document.removeEventListener("pointermove",ue),W.current=null};return W.current!==null&&(document.addEventListener("pointermove",ue),document.addEventListener("pointerup",we,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ue),document.removeEventListener("pointerup",we,{capture:!0})}}},[T,$,W]),y.useEffect(()=>{const X=()=>$(!1);return window.addEventListener("blur",X),window.addEventListener("resize",X),()=>{window.removeEventListener("blur",X),window.removeEventListener("resize",X)}},[$]);const[K,M]=cN(X=>{const ue=q().filter(ve=>!ve.disabled),we=ue.find(ve=>ve.ref.current===document.activeElement),be=uN(ue,X,we);be&&setTimeout(()=>be.ref.current.focus())}),B=y.useCallback((X,ue,we)=>{const be=!J.current&&!we;(C.value!==void 0&&C.value===ue||be)&&(H(X),be&&(J.current=!0))},[C.value]),Q=y.useCallback(()=>T?.focus(),[T]),ne=y.useCallback((X,ue,we)=>{const be=!J.current&&!we;(C.value!==void 0&&C.value===ue||be)&&G(X)},[C.value]),pe=o==="popper"?em:Gj,ge=pe===em?{side:d,sideOffset:f,align:h,alignOffset:p,arrowPadding:g,collisionBoundary:x,collisionPadding:v,sticky:N,hideWhenDetached:w,avoidCollisions:j}:{};return s.jsx(Hj,{scope:r,content:T,viewport:E,onViewportChange:D,itemRefCallback:B,selectedItem:_,onItemLeave:Q,itemTextRefCallback:ne,focu
136sSelectedItem:oe,selectedItemText:z,position:o,isPositioned:le,searchRef:K,children:s.jsx(xp,{as:p_,allowPinchZoom:!0,children:s.jsx(gp,{asChild:!0,trapped:C.open,onMountAutoFocus:X=>{X.preventDefault()},onUnmountAutoFocus:Se(a,X=>{C.trigger?.focus({preventScroll:!0}),X.preventDefault()}),children:s.jsx(Ma,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:X=>X.preventDefault(),onDismiss:()=>C.onOpenChange(!1),children:s.jsx(pe,{role:"listbox",id:C.contentId,"data-state":C.open?"open":"closed",dir:C.dir,onContextMenu:X=>X.preventDefault(),...k,...ge,onPlaced:()=>F(!0),ref:I,style:{display:"flex",flexDirection:"column",outline:"none",...k.style},onKeyDown:Se(k.onKeyDown,X=>{const ue=X.ctrlKey||X.altKey||X.metaKey;if(X.key==="Tab"&&X.preventDefault(),!ue&&X.key.length===1&&M(X.key),["ArrowUp","ArrowDown","Home","End"].includes(X.key)){let be=q().filter(ve=>!ve.disabled).map(ve=>ve.ref.current);if(["ArrowUp","End"].includes(X.key)&&(be=be.slice().reverse()),["ArrowUp","ArrowDown"].includes(X.key)){const ve=X.target,ce=be.indexOf(ve);be=be.slice(ce+1)}setTimeout(()=>Z(be)),X.preventDefault()}})})})})})})});Yj.displayName=m_;var g_="SelectItemAlignedPosition",Gj=y.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:o,...a}=e,l=ws(eo,r),c=js(eo,r),[d,f]=y.useState(null),[h,p]=y.useState(null),g=ze(t,I=>p(I)),x=ku(r),v=y.useRef(!1),N=y.useRef(!0),{viewport:w,selectedItem:j,selectedItemText:k,focusSelectedItem:C}=c,T=y.useCallback(()=>{if(l.trigger&&l.valueNode&&d&&h&&w&&j&&k){const I=l.trigger.getBoundingClientRect(),_=h.getBoundingClientRect(),H=l.valueNode.getBoundingClientRect(),z=k.getBoundingClientRect();if(l.dir!=="rtl"){const ve=z.left-_.left,ce=H.left-ve,Te=I.left-ce,Ie=I.width+Te,Qe=Math.max(Ie,_.width),ct=window.innerWidth-zr,ht=v0(ce,[zr,Math.max(zr,ct-Qe)]);d.style.minWidth=Ie+"px",d.style.left=ht+"px"}else{const ve=_.right-z.right,ce=window.innerWidth-H.right-ve,Te=window.innerWidth-I.right-ce,Ie=I.width+Te,Qe=Math.max(Ie,_.width),ct=window.innerWidth-zr,ht=v0(ce,[zr,Math.max(zr,ct-Qe)]);d.style.minWidth=Ie+"px",d.style.right=ht+"px"}const G=x(),q=window.innerHeight-zr*2,le=w.scrollHeight,F=window.getComputedStyle(h),J=parseInt(F.borderTopWidth,10),Z=parseInt(F.paddingTop,10),oe=parseInt(F.borderBottomWidth,10),$=parseInt(F.paddingBottom,10),W=J+Z+le+$+oe,K=Math.min(j.offsetHeight*5,W),M=window.getComputedStyle(w),B=parseInt(M.paddingTop,10),Q=parseInt(M.paddingBottom,10),ne=I.top+I.height/2-zr,pe=q-ne,ge=j.offsetHeight/2,X=j.offsetTop+ge,ue=J+Z+X,we=W-ue;if(ue<=ne){const ve=G.length>0&&j===G[G.length-1].ref.current;d.style.bottom="0px";const ce=h.clientHeight-w.offsetTop-w.offsetHeight,Te=Math.max(pe,ge+(ve?Q:0)+ce+oe),Ie=ue+Te;d.style.height=Ie+"px"}else{const ve=G.length>0&&j===G[0].ref.current;d.style.top="0px";const Te=Math.max(ne,J+w.offsetTop+(ve?B:0)+ge)+we;d.style.height=Te+"px",w.scrollTop=ue-ne+w.offsetTop}d.style.margin=`${zr}px 0`,d.style.minHeight=K+"px",d.style.maxHeight=q+"px",o?.(),requestAnimationFrame(()=>v.current=!0)}},[x,l.trigger,l.valueNode,d,h,w,j,k,l.dir,o]);Pt(()=>T(),[T]);const[A,E]=y.useState();Pt(()=>{h&&E(window.getComputedStyle(h).zIndex)},[h]);const D=y.useCallback(I=>{I&&N.current===!0&&(T(),C?.(),N.current=!1)},[T,C]);return s.jsx(y_,{scope:r,contentWrapper:d,shouldExpandOnScrollRef:v,onScrollButtonChange:D,children:s.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:A},children:s.jsx(Re.div,{...a,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});Gj.displayName=g_;var x_="SelectPopperPosition",em=y.forwardRef((e,t)=>{const{__scopeSelect:r,align:o="start",collisionPadding:a=zr,...l}=e,c=Cu(r);return s.jsx(m1,{...c,...l,ref:t,align:o,collisionPadding:a,style:{boxSizing:"border-box",...l.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)"}})});em.displayName=x_;var[y_,Sp]=xi(eo,{}),tm="SelectViewport",Kj=y.forwardRef((e,t)=>
136{const{__scopeSelect:r,nonce:o,...a}=e,l=js(tm,r),c=Sp(tm,r),d=ze(t,l.onViewportChange),f=y.useRef(0);return s.jsxs(s.Fragment,{children:[s.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:o}),s.jsx(Su.Slot,{scope:r,children:s.jsx(Re.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:Se(a.onScroll,h=>{const p=h.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:x}=c;if(x?.current&&g){const v=Math.abs(f.current-p.scrollTop);if(v>0){const N=window.innerHeight-zr*2,w=parseFloat(g.style.minHeight),j=parseFloat(g.style.height),k=Math.max(w,j);if(k<N){const C=k+v,T=Math.min(N,C),A=C-T;g.style.height=T+"px",g.style.bottom==="0px"&&(p.scrollTop=A>0?A:0,g.style.justifyContent="flex-end")}}}f.current=p.scrollTop})})})]})});Kj.displayName=tm;var qj="SelectGroup",[v_,b_]=xi(qj),w_=y.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e,a=Ys();return s.jsx(v_,{scope:r,id:a,children:s.jsx(Re.div,{role:"group","aria-labelledby":a,...o,ref:t})})});w_.displayName=qj;var Qj="SelectLabel",Xj=y.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e,a=b_(Qj,r);return s.jsx(Re.div,{id:a.id,...o,ref:t})});Xj.displayName=Qj;var Gc="SelectItem",[j_,Jj]=xi(Gc),Zj=y.forwardRef((e,t)=>{const{__scopeSelect:r,value:o,disabled:a=!1,textValue:l,...c}=e,d=ws(Gc,r),f=js(Gc,r),h=d.value===o,[p,g]=y.useState(l??""),[x,v]=y.useState(!1),N=ze(t,C=>f.itemRefCallback?.(C,o,a)),w=Ys(),j=y.useRef("touch"),k=()=>{a||(d.onValueChange(o),d.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> 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 s.jsx(j_,{scope:r,value:o,disabled:a,textId:w,isSelected:h,onItemTextChange:y.useCallback(C=>{g(T=>T||(C?.textContent??"").trim())},[]),children:s.jsx(Su.ItemSlot,{scope:r,value:o,disabled:a,textValue:p,children:s.jsx(Re.div,{role:"option","aria-labelledby":w,"data-highlighted":x?"":void 0,"aria-selected":h&&x,"data-state":h?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...c,ref:N,onFocus:Se(c.onFocus,()=>v(!0)),onBlur:Se(c.onBlur,()=>v(!1)),onClick:Se(c.onClick,()=>{j.current!=="mouse"&&k()}),onPointerUp:Se(c.onPointerUp,()=>{j.current==="mouse"&&k()}),onPointerDown:Se(c.onPointerDown,C=>{j.current=C.pointerType}),onPointerMove:Se(c.onPointerMove,C=>{j.current=C.pointerType,a?f.onItemLeave?.():j.current==="mouse"&&C.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Se(c.onPointerLeave,C=>{C.currentTarget===document.activeElement&&f.onItemLeave?.()}),onKeyDown:Se(c.onKeyDown,C=>{f.searchRef?.current!==""&&C.key===" "||(a_.includes(C.key)&&k(),C.key===" "&&C.preventDefault())})})})})});Zj.displayName=Gc;var aa="SelectItemText",eN=y.forwardRef((e,t)=>{const{__scopeSelect:r,className:o,style:a,...l}=e,c=ws(aa,r),d=js(aa,r),f=Jj(aa,r),h=d_(aa,r),[p,g]=y.useState(null),x=ze(t,k=>g(k),f.onItemTextChange,k=>d.itemTextRefCallback?.(k,f.value,f.disabled)),v=p?.textContent,N=y.useMemo(()=>s.jsx("option",{value:f.value,disabled:f.disabled,children:v},f.value),[f.disabled,f.value,v]),{onNativeOptionAdd:w,onNativeOptionRemove:j}=h;return Pt(()=>(w(N),()=>j(N)),[w,j,N]),s.jsxs(s.Fragment,{children:[s.jsx(Re.span,{id:f.textId,...l,ref:x}),f.isSelected&&c.valueNode&&!c.valueNodeHasChildren?si.createPortal(l.children,c.valueNode):null]})});eN.displayName=aa;var tN="SelectItemIndicator",rN=y.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e;return Jj(tN,r).isSelected?s.jsx(Re.span,{"aria-hidden":!0,...o,ref:t}):null});rN.displayName=tN;var rm="SelectScrollUpButton",nN=y.forwardRef((e,t)=>{const r=js(rm,e.__scopeSelect),o=Sp(rm,e.__scopeSelect),[a,l]=y.useState(!1),c=ze(t,o.onScrollButtonChange);return Pt(()=>{if(r.viewport&&r.isPositioned){let d=function(){const h=f.scrollTop>0;
136l(h)};const f=r.viewport;return d(),f.addEventListener("scroll",d),()=>f.removeEventListener("scroll",d)}},[r.viewport,r.isPositioned]),a?s.jsx(oN,{...e,ref:c,onAutoScroll:()=>{const{viewport:d,selectedItem:f}=r;d&&f&&(d.scrollTop=d.scrollTop-f.offsetHeight)}}):null});nN.displayName=rm;var nm="SelectScrollDownButton",sN=y.forwardRef((e,t)=>{const r=js(nm,e.__scopeSelect),o=Sp(nm,e.__scopeSelect),[a,l]=y.useState(!1),c=ze(t,o.onScrollButtonChange);return Pt(()=>{if(r.viewport&&r.isPositioned){let d=function(){const h=f.scrollHeight-f.clientHeight,p=Math.ceil(f.scrollTop)<h;l(p)};const f=r.viewport;return d(),f.addEventListener("scroll",d),()=>f.removeEventListener("scroll",d)}},[r.viewport,r.isPositioned]),a?s.jsx(oN,{...e,ref:c,onAutoScroll:()=>{const{viewport:d,selectedItem:f}=r;d&&f&&(d.scrollTop=d.scrollTop+f.offsetHeight)}}):null});sN.displayName=nm;var oN=y.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:o,...a}=e,l=js("SelectScrollButton",r),c=y.useRef(null),d=ku(r),f=y.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return y.useEffect(()=>()=>f(),[f]),Pt(()=>{d().find(p=>p.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[d]),s.jsx(Re.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:Se(a.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(o,50))}),onPointerMove:Se(a.onPointerMove,()=>{l.onItemLeave?.(),c.current===null&&(c.current=window.setInterval(o,50))}),onPointerLeave:Se(a.onPointerLeave,()=>{f()})})}),N_="SelectSeparator",iN=y.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e;return s.jsx(Re.div,{"aria-hidden":!0,...o,ref:t})});iN.displayName=N_;var sm="SelectArrow",S_=y.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e,a=Cu(r),l=ws(sm,r),c=js(sm,r);return l.open&&c.position==="popper"?s.jsx(p1,{...a,...o,ref:t}):null});S_.displayName=sm;var k_="SelectBubbleInput",aN=y.forwardRef(({__scopeSelect:e,value:t,...r},o)=>{const a=y.useRef(null),l=ze(o,a),c=Lj(t);return y.useEffect(()=>{const d=a.current;if(!d)return;const f=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(f,"value").set;if(c!==t&&p){const g=new Event("change",{bubbles:!0});p.call(d,t),d.dispatchEvent(g)}},[c,t]),s.jsx(Re.select,{...r,style:{...tw,...r.style},ref:l,defaultValue:t})});aN.displayName=k_;function lN(e){return e===""||e===void 0}function cN(e){const t=Cr(e),r=y.useRef(""),o=y.useRef(0),a=y.useCallback(c=>{const d=r.current+c;t(d),(function f(h){r.current=h,window.clearTimeout(o.current),h!==""&&(o.current=window.setTimeout(()=>f(""),1e3))})(d)},[t]),l=y.useCallback(()=>{r.current="",window.clearTimeout(o.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(o.current),[]),[r,a,l]}function uN(e,t,r){const a=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,l=r?e.indexOf(r):-1;let c=C_(e,Math.max(l,0));a.length===1&&(c=c.filter(h=>h!==r));const f=c.find(h=>h.textValue.toLowerCase().startsWith(a.toLowerCase()));return f!==r?f:void 0}function C_(e,t){return e.map((r,o)=>e[(t+o)%e.length])}var T_=Oj,dN=$j,E_=Bj,P_=zj,A_=Uj,fN=Wj,R_=Kj,hN=Xj,mN=Zj,M_=eN,__=rN,pN=nN,gN=sN,xN=iN;const ei=T_,ti=E_,to=y.forwardRef(({className:e,children:t,...r},o)=>s.jsxs(dN,{ref:o,className:_e("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
136ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[t,s.jsx(P_,{asChild:!0,children:s.jsx(Sw,{className:"h-4 w-4 opacity-50"})})]}));to.displayName=dN.displayName;const yN=y.forwardRef(({className:e,...t},r)=>s.jsx(pN,{ref:r,className:_e("flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(GT,{className:"h-4 w-4"})}));yN.displayName=pN.displayName;const vN=y.forwardRef(({className:e,...t},r)=>s.jsx(gN,{ref:r,className:_e("flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(Sw,{className:"h-4 w-4"})}));vN.displayName=gN.displayName;const ro=y.forwardRef(({className:e,children:t,position:r="popper",...o},a)=>s.jsx(A_,{children:s.jsxs(fN,{ref:a,className:_e("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover 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",r==="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:r,...o,children:[s.jsx(yN,{}),s.jsx(R_,{className:_e("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),s.jsx(vN,{})]})}));ro.displayName=fN.displayName;const D_=y.forwardRef(({className:e,...t},r)=>s.jsx(hN,{ref:r,className:_e("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));D_.displayName=hN.displayName;const no=y.forwardRef(({className:e,children:t,...r},o)=>s.jsxs(mN,{ref:o,className:_e("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...r,children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(__,{children:s.jsx(YT,{className:"h-4 w-4"})})}),s.jsx(M_,{children:t})]}));no.displayName=mN.displayName;const I_=y.forwardRef(({className:e,...t},r)=>s.jsx(xN,{ref:r,className:_e("-mx-1 my-1 h-px bg-muted",e),...t}));I_.displayName=xN.displayName;var qf="rovingFocusGroup.onEntryFocus",L_={bubbles:!1,cancelable:!0},Ba="RovingFocusGroup",[om,bN,O_]=Im(Ba),[F_,wN]=Mn(Ba,[O_]),[$_,V_]=F_(Ba),jN=y.forwardRef((e,t)=>s.jsx(om.Provider,{scope:e.__scopeRovingFocusGroup,children:s.jsx(om.Slot,{scope:e.__scopeRovingFocusGroup,children:s.jsx(B_,{...e,ref:t})})}));jN.displayName=Ba;var B_=y.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:a=!1,dir:l,currentTabStopId:c,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:f,onEntryFocus:h,preventScrollOnEntryFocus:p=!1,...g}=e,x=y.useRef(null),v=ze(t,x),N=Np(l),[w,j]=Go({prop:c,defaultProp:d??null,onChange:f,caller:Ba}),[k,C]=y.useState(!1),T=Cr(h),A=bN(r),E=y.useRef(!1),[D,I]=y.useState(0);return y.useEffect(()=>{const _=x.current;if(_)return _.addEventListener(qf,T),()=>_.removeEventListener(qf,T)},[T]),s.jsx($_,{scope:r,orientation:o,dir:N,loop:a,currentTabStopId:w,onItemFocus:y.useCallback(_=>j(_),[j]),onItemShiftTab:y.useCallback(()=>C(!0),[]),onFocusableItemAdd:y.useCallback(()=>I(_=>_+1),[]),onFocusableItemRemove:y.useCallback(()=>I(_=>_-1),[]),children:s.jsx(Re.div,{tabIndex:k||D===0?-1:0,"data-orientation":o,...g,ref:v,style:{outline:"none",...e.style},onMouseDown:Se(e.onMouseDown,()=>{E.current=!0}),onFocus:Se(e.onFocus,_=>{const H=!E.current;if(_.target===_.currentTarget&&H&&!k){const z=new CustomEvent(qf,L_);if(_.currentTarget.dispatchEvent(z),!z.defaultPrevented){const G=A().filter(Z=>Z.focusable),q=G.find(Z=>Z.active),le=G.find(Z=>Z.id===w),J=[q,le,...G].filter(Boolean).map(Z=>Z.ref.current);kN(J,p)}}E.current=!1}),onBlur:Se(e.onBlur,()=>C(!1))})})}),NN="RovingFocusGroupItem",SN=y.forwardRef((e,t)=>
136{const{__scopeRovingFocusGroup:r,focusable:o=!0,active:a=!1,tabStopId:l,children:c,...d}=e,f=Ys(),h=l||f,p=V_(NN,r),g=p.currentTabStopId===h,x=bN(r),{onFocusableItemAdd:v,onFocusableItemRemove:N,currentTabStopId:w}=p;return y.useEffect(()=>{if(o)return v(),()=>N()},[o,v,N]),s.jsx(om.ItemSlot,{scope:r,id:h,focusable:o,active:a,children:s.jsx(Re.span,{tabIndex:g?0:-1,"data-orientation":p.orientation,...d,ref:t,onMouseDown:Se(e.onMouseDown,j=>{o?p.onItemFocus(h):j.preventDefault()}),onFocus:Se(e.onFocus,()=>p.onItemFocus(h)),onKeyDown:Se(e.onKeyDown,j=>{if(j.key==="Tab"&&j.shiftKey){p.onItemShiftTab();return}if(j.target!==j.currentTarget)return;const k=W_(j,p.orientation,p.dir);if(k!==void 0){if(j.metaKey||j.ctrlKey||j.altKey||j.shiftKey)return;j.preventDefault();let T=x().filter(A=>A.focusable).map(A=>A.ref.current);if(k==="last")T.reverse();else if(k==="prev"||k==="next"){k==="prev"&&T.reverse();const A=T.indexOf(j.currentTarget);T=p.loop?H_(T,A+1):T.slice(A+1)}setTimeout(()=>kN(T))}}),children:typeof c=="function"?c({isCurrentTabStop:g,hasTabStop:w!=null}):c})})});SN.displayName=NN;var z_={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function U_(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function W_(e,t,r){const o=U_(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return z_[o]}function kN(e,t=!1){const r=document.activeElement;for(const o of e)if(o===r||(o.focus({preventScroll:t}),document.activeElement!==r))return}function H_(e,t){return e.map((r,o)=>e[(t+o)%e.length])}var Y_=jN,G_=SN,kp="Radio",[K_,CN]=Mn(kp),[q_,Q_]=K_(kp),TN=y.forwardRef((e,t)=>{const{__scopeRadio:r,name:o,checked:a=!1,required:l,disabled:c,value:d="on",onCheck:f,form:h,...p}=e,[g,x]=y.useState(null),v=ze(t,j=>x(j)),N=y.useRef(!1),w=g?h||!!g.closest("form"):!0;return s.jsxs(q_,{scope:r,checked:a,disabled:c,children:[s.jsx(Re.button,{type:"button",role:"radio","aria-checked":a,"data-state":RN(a),"data-disabled":c?"":void 0,disabled:c,value:d,...p,ref:v,onClick:Se(e.onClick,j=>{a||f?.(),w&&(N.current=j.isPropagationStopped(),N.current||j.stopPropagation())})}),w&&s.jsx(AN,{control:g,bubbles:!N.current,name:o,value:d,checked:a,required:l,disabled:c,form:h,style:{transform:"translateX(-100%)"}})]})});TN.displayName=kp;var EN="RadioIndicator",PN=y.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:o,...a}=e,l=Q_(EN,r);return s.jsx(io,{present:o||l.checked,children:s.jsx(Re.span,{"data-state":RN(l.checked),"data-disabled":l.disabled?"":void 0,...a,ref:t})})});PN.displayName=EN;var X_="RadioBubbleInput",AN=y.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:o=!0,...a},l)=>{const c=y.useRef(null),d=ze(c,l),f=Lj(r),h=n1(t);return y.useEffect(()=>{const p=c.current;if(!p)return;const g=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(g,"checked").set;if(f!==r&&v){const N=new Event("click",{bubbles:o});v.call(p,r),p.dispatchEvent(N)}},[f,r,o]),s.jsx(Re.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...a,tabIndex:-1,ref:d,style:{...a.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});AN.displayName=X_;function RN(e){return e?"checked":"unchecked"}var J_=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Tu="RadioGroup",[Z_]=Mn(Tu,[wN,CN]),MN=wN(),_N=CN(),[eD,tD]=Z_(Tu),DN=y.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:o,defaultValue:a,value:l,required:c=!1,disabled:d=!1,orientation:f,dir:h,loop:p=!0,onValueChange:g,...x}=e,v=MN(r),N=Np(h),[w,j]=Go({prop:l,defaultProp:a??null,onChange:g,caller:Tu});return s.jsx(eD,{scope:r,name:o,required:c,disabled:d,value:w,onValueChange:j,children:s.jsx(Y_,{asChild:!0,...v,orientation:f,dir:N,loop:p,children:s.jsx(Re.div,{role:"radiogroup","aria-required":c,"aria-orientation":f,"data-disabled":d?"":void 0,dir:N,...x,ref:t})})})});DN.displayName=Tu;var IN="RadioGroupItem",LN=y.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:o,...a}
136=e,l=tD(IN,r),c=l.disabled||o,d=MN(r),f=_N(r),h=y.useRef(null),p=ze(t,h),g=l.value===a.value,x=y.useRef(!1);return y.useEffect(()=>{const v=w=>{J_.includes(w.key)&&(x.current=!0)},N=()=>x.current=!1;return document.addEventListener("keydown",v),document.addEventListener("keyup",N),()=>{document.removeEventListener("keydown",v),document.removeEventListener("keyup",N)}},[]),s.jsx(G_,{asChild:!0,...d,focusable:!c,active:g,children:s.jsx(TN,{disabled:c,required:l.required,checked:g,...f,...a,name:l.name,ref:p,onCheck:()=>l.onValueChange(a.value),onKeyDown:Se(v=>{v.key==="Enter"&&v.preventDefault()}),onFocus:Se(a.onFocus,()=>{x.current&&h.current?.click()})})})});LN.displayName=IN;var rD="RadioGroupIndicator",ON=y.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...o}=e,a=_N(r);return s.jsx(PN,{...a,...o,ref:t})});ON.displayName=rD;var FN=DN,$N=LN,nD=ON;const VN=y.forwardRef(({className:e,...t},r)=>s.jsx(FN,{className:_e("grid gap-2",e),...t,ref:r}));VN.displayName=FN.displayName;const BN=y.forwardRef(({className:e,...t},r)=>s.jsx($N,{ref:r,className:_e("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:s.jsx(nD,{className:"flex items-center justify-center",children:s.jsx(JT,{className:"h-2.5 w-2.5 fill-current text-current"})})}));BN.displayName=$N.displayName;const sD=["Radio","X","Facebook","Instagram","Word of mouth","Handbill","Other"],oD={"Radio Presentation & Broadcasting":5e4,"Audio Production & Sound Engineering":6e4,"Music & Entertainment Journalism":45e3,"Digital Media & Podcasting":4e4},iD=Object.keys(oD),aD=({open:e,onOpenChange:t,selectedCourse:r})=>{const{toast:o}=ys(),a=y.useRef(null),[l,c]=y.useState(!1),[d,f]=y.useState(!1),[h,p]=y.useState(!1),[g,x]=y.useState(null),[v,N]=y.useState(null),[w,j]=y.useState(!0),[k,C]=y.useState({fullName:"",email:"",phone:"",address:"",occupation:"",referredSource:"",interests:"",socialHandle:"",course:r||""});y.useEffect(()=>{e&&(j(!0),Ce("/api/cma-settings/").then(F=>N(F)).catch(F=>console.error("Failed to fetch CMA settings",F)).finally(()=>j(!1)))},[e]);const T=new Date,A=v?.registration_start_date?new Date(v.registration_start_date):null,E=v?.registration_deadline?new Date(v.registration_deadline):null,D=v?.early_bird_deadline?new Date(v.early_bird_deadline)>T:!1,I=Number(D?v?.early_bird_fee||15e4:v?.standard_fee||18e4),_=v?!v.is_registration_open||A&&T<A||E&&new Date(v.registration_deadline)<T:!1,H=F=>{x(F)},z=async F=>{p(!0);try{const J=await Ce("/api/cma-enrollments/verify-payment/",{method:"POST",body:JSON.stringify({reference:F,email:k.email})});if(J.status==="success")o({title:"Enrollment Confirmed!",description:"Your payment has been verified. Check your email for confirmation."}),f(!0);else throw new Error(J.message||"Verification failed")}catch(J){o({title:"Verification Error",description:J.message||"Failed to verify payment. Please contact support.",variant:"destructive"})}finally{p(!1)}},G=F=>{const J="pk_test_71c30deef613c96d8696ff759ea57226de1ddf52";if(!window.PaystackPop){o({title:"Payment Error",description:"Payment gateway failed to load. Please refresh and try again.",variant:"destructive"});return}window.PaystackPop.setup({key:J,email:k.email,amount:I*100,ref:F,channels:["card","bank","ussd","bank_transfer"],onClose:()=>{o({title:"Payment Cancelled",description:"You closed the payment window. Please try again to complete your enrollment.",variant:"destructive"})},callback:oe=>{z(oe.reference)}}).openIframe()},q=async F=>{if(F.preventDefault(),_)return;if(!g){o({title:"Security Verification Required",description:"Please complete the ReCAPTCHA to continue.",variant:"destructive"});return}if(!k.fullName||!k.email||!k.phone||!k.course||!k.address){o({title:"Please fill in all required fields",variant:"destructive"});return}c(!0);const J=`CMA-${Date.now()}-${Math.floor(Math.random()*1e3)}`;try{await Ce("/api/cma-enrollments/",{method:"POST",body:JSON.stringify({full_name:k.fullName,email:k.email,phone:k.phone,address:k.address,occupation:k.occupation,social_handle:k.socialHandle,course:k.course,referred_source:k.referredSource,interests:k.interests,payment_reference:J,amount:I,payment_status:"pending"})}),c(!1),v?.application_link?(localStorage.setItem("cma_enrollment_email",k.email),o({title:"Enrollment Saved",description:"Redirecting you to the payment page..."}),setTimeout(()=>{window.location.href=v.application_link},1e3)):G(J)}catch(Z){c(!1),o({title:"Submission Error",description:Z.message||"Failed to submit application. Please try again.",variant:"destructive"})}},le=F=>{t(F),F||setTimeout(()=>f(!1),300)};return s.jsx(Fa,{open:e,onOpenChange:le,children:s.jsxs(mi,{className:"max-w-[440px] w-[95vw] max-h-[90vh] p-0 overflow-hidden flex flex-col rounded-3xl border-primary/20 shadow-2xl",children:[s.jsx($a,{className:"p-6 pb-2",children:s.jsx(pi,{className:"text-xl font-black uppercase text-primary tracking-tight",children:_?"Registration Closed":"Apply to Cardinal Media Academy"})}),s.jsx("div",{className:"flex-1 overflow-y-auto px-6 pb-8 border-t border-border/50 scroll-smooth",children:w?s.jsxs("div",{className:"flex flex-col items-center justify-center py-20",children:[s.jsx(Bt,{className:"w-10 h-10 text-primary animate-spin"}),s.jsx("p",{className:"mt-4 text-sm font-bold text-muted-foreground uppercase tracking-widest",children:"Checking status..."})]}):_?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center animate-in fade-in zoom-in duration-500",children:[s.jsx("div",{className:"w-20 h-20 bg-amber-500/10 rounded-full flex items-center justify-center mb-6",children:s.jsx(xa,{
136className:"w-10 h-10 text-amber-500 rotate-45"})}),s.jsx("h3",{className:"text-2xl font-black uppercase tracking-tight text-foreground mb-3",children:"Waitlist Only"}),s.jsx("p",{className:"text-muted-foreground text-sm max-w-sm mb-8",children:"The current cohort is full or registration has ended. Please join our wishlist to be notified when the next cohort opens!"}),s.jsx(at,{onClick:()=>window.location.href="/cma/wishlist",className:"w-full h-14 bg-primary text-white rounded-2xl font-black uppercase tracking-widest transition-all shadow-lg shadow-primary/20 hover:scale-[1.02] active:scale-95",children:"Join the Wishlist"})]}):d?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center animate-in fade-in zoom-in duration-500",children:[s.jsx("div",{className:"w-20 h-20 bg-green-500/10 rounded-full flex items-center justify-center mb-6",children:s.jsx(xa,{className:"w-10 h-10 text-green-500"})}),s.jsx("h3",{className:"text-2xl font-black uppercase tracking-tight text-foreground mb-3",children:"Welcome to the Academy!"}),s.jsxs("p",{className:"text-muted-foreground text-sm max-w-sm mb-8",children:["Your application and payment for ",s.jsx("strong",{children:k.course})," have been confirmed. We've sent a confirmation email with further instructions."]}),s.jsx(at,{onClick:()=>le(!1),className:"w-full h-14 bg-primary text-white rounded-2xl font-black uppercase tracking-widest transition-all shadow-lg shadow-primary/20 hover:scale-[1.02] active:scale-95",children:"Done"})]}):s.jsxs("form",{onSubmit:q,className:"space-y-6 pt-6 pb-4",children:[D&&s.jsxs("div",{className:"bg-primary/10 border border-primary/20 p-4 rounded-2xl flex items-center gap-3 animate-pulse",children:[s.jsx("div",{className:"w-10 h-10 bg-primary rounded-xl flex items-center justify-center shrink-0",children:s.jsx("span",{className:"text-white font-black text-xs",children:"EB"})}),s.jsxs("div",{children:[s.jsx("h4",{className:"text-xs font-black uppercase text-primary tracking-widest",children:"Early Bird Active!"}),s.jsxs("p",{className:"text-[10px] text-primary/70 font-bold",children:["Register now to save ₦",(Number(v.standard_fee)-Number(v.early_bird_fee)).toLocaleString(),"!"]})]})]}),s.jsxs("div",{className:"grid gap-5 grid-cols-1",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{htmlFor:"fullName",className:"text-[10px] font-black uppercase text-muted-foreground tracking-[0.2em] ml-1",children:"Full Name *"}),s.jsx(Je,{id:"fullName",value:k.fullName,onChange:F=>C(J=>({...J,fullName:F.target.value})),placeholder:"Enter your full name",required:!0,className:"rounded-xl h-12 border-border/60 focus:border-primary/50 bg-background"})]}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{htmlFor:"email",className:"text-[10px] font-black uppercase text-muted-foreground tracking-[0.2em] ml-1",children:"Email *"}),s.jsx(Je,{id:"email",type:"email",value:k.email,onChange:F=>C(J=>({...J,email:F.target.value})),placeholder:"[email protected]",required:!0,className:"rounded-xl h-12 bg-background"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{htmlFor:"phone",className:"text-[10px] font-black uppercase text-muted-foreground tracking-[0.2em] ml-1",children:"Phone *"}),s.jsx(Je,{id:"phone",type:"tel",value:k.phone,onChange:F=>C(J=>({...J,phone:F.target.value})),placeholder:"+234...",required:!0,className:"rounded-xl h-12 bg-background"})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{htmlFor:"address",className:"text-[10px] font-black uppercase text-muted-foreground tracking-[0.2em] ml-1",children:"Residential Address *"}),s.jsx(Je,{id:"address",value:k.address,onChange:F=>C(J=>({...J,address:F.target.value})),placeholder:"Enter your full home address",required:!0,className:"rounded-xl h-12 bg-background"})]})]}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{htmlFor:"occupation",className:"text-[10px] font-black uppercase text-muted-foreground tracking-[0.2em] ml-1",children:"Occupation"}),s.jsx(Je,{id:"occupation",value:k.occupation,onChange:F=>C(J=>({...J,occupation:F.target.value})),placeholder:"Current job",className:"rounded-xl h-12 bg-background"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{htmlFor:"socialHandle",className:"text-[10px] font-black uppercase text-muted-foreground tracking-[0.2em] ml-1",children:"Social Handle"}),s.jsx(Je,{id:"socialHandle",value:k.socialHandle,onChange:F=>C(J=>({...J,socialHandle:F.target.value})),placeholder:"@handle",className:"rounded-xl h-12 bg-background"})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{className:"text-[10px] font-black uppercase text-muted-foreground tracking-[0.2em] ml-1",children:"Area interested in *"}),s.jsxs(ei,{value:k.course,onValueChange:F=>C(J=>({...J,course:F})),children:[s.jsx(to,{className:"rounded-xl h-12 bg-background",children:s.jsx(ti,{placeholder:"Select area of interest"})}),s.jsx(ro,{children:iD.map(F=>s.jsx(no,{value:F,children:F},F))})]})]}),s.jsxs("div",{className:"space-y-4 bg-muted/30 p-5 rounded-2xl border border-border/50",children:[s.jsx(De,{className:"text-xs font-black uppercase text-primary tracking-widest leading-relaxed",children:"HOW DID YOU FIND OUT ABOUT THE CMA?"}),s.jsx(VN,{value:k.referredSource,onValueChange:F=>C(J=>({...J,referredSource:F})),className:"grid grid-cols-2 gap-4",children:sD.map(F=>s.jsxs("div",{className:"flex items-center space-x-2.5",children:[s.jsx(BN,{value:F,id:`ref-${F}`,className:"border-primary/50 text-primary"}
136),s.jsx("label",{htmlFor:`ref-${F}`,className:"text-sm font-bold leading-none cursor-pointer text-muted-foreground hover:text-foreground transition-colors",children:F})]},F))})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{htmlFor:"interests",className:"text-[10px] font-black uppercase text-muted-foreground tracking-[0.2em] ml-1",children:"What are you interested in learning?"}),s.jsx(gi,{id:"interests",value:k.interests,onChange:F=>C(J=>({...J,interests:F.target.value})),placeholder:"Briefly describe your goals...",rows:4,className:"rounded-2xl border-border/60 focus:border-primary/50 bg-background resize-none"})]}),s.jsx("div",{className:"flex flex-col gap-4 py-4 items-center bg-muted/10 rounded-2xl border border-dashed border-border/60",children:s.jsx(Va,{ref:a,sitekey:"6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI",onChange:H,theme:"dark"})}),s.jsx(at,{type:"submit",className:`w-full h-14 text-base font-black uppercase rounded-2xl shadow-xl transition-all ${g?"shadow-primary/20 hover:scale-[1.02] active:scale-95":"opacity-50 cursor-not-allowed grayscale"} mb-4`,disabled:l||h||!g,children:l?s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Bt,{className:"w-5 h-5 animate-spin"}),"Processing..."]}):h?s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Bt,{className:"w-5 h-5 animate-spin"}),"Verifying Payment..."]}):s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(ZT,{className:"w-5 h-5"}),v?.application_link?"Proceed to Payment":`Pay ₦${I.toLocaleString()}`]})})]})})]})})},lD=`${ft}/media/academy/broadcast-media-procourse.jpeg`,cD=({onEnroll:e})=>{const[t,r]=y.useState(null),[o,a]=y.useState(!0);if(y.useEffect(()=>{(async()=>{try{const D=await Ce("/api/cma-settings/");r(D)}catch(D){console.error("Failed to fetch CMA settings",D)}finally{a(!1)}})()},[]),o)return s.jsx("div",{className:"py-20 flex justify-center items-center",children:s.jsx(Bt,{className:"w-10 h-10 text-primary animate-spin"})});const l=new Date,c=t?.registration_start_date?new Date(t.registration_start_date):null,d=t?.registration_deadline?new Date(t.registration_deadline):null,f=c?l<c:!1,h=d?l>d:!1,p=t?.is_registration_open!==!1&&!f&&!h,g=t?.early_bird_deadline?new Date(t.early_bird_deadline)>l:!1,x=d?new Date(d.getTime()-7200*60*1e3):null,v=p&&!g&&d&&x?l>=x&&l<=d:!1,N=p&&g,w=p&&!g,j=v?"Late Registration":"Regular Registration",k=E=>E?new Date(E).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}):"",C=t?.session_hours&&!t.session_hours.toLowerCase().includes("11:59")&&!t.session_hours.includes("2pm")?t.session_hours.trim():"9am – 3pm Daily";(E=>{if(!E)return"9:00 AM";const D=E.trim().match(/^(\d{1,2}(?::\d{2})?\s*(?:am|pm))/i);if(D){let I=D[1].replace(/\s+/g,"").toLowerCase();if(I.endsWith("am")){const _=I.replace("am","");return`${_.includes(":")?_:_+":00"} AM`}if(I.endsWith("pm")){const _=I.replace("pm","");return`${_.includes(":")?_:_+":00"} PM`}return D[1]}return"9:00 AM"})(C);const A=t?.class_start_date?new Date(t.class_start_date).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}):t?.cycle_info&&!t.cycle_info.toLowerCase().includes("july")?t.cycle_info:"November 02, 2026";return s.jsx("section",{className:"relative overflow-hidden",children:s.jsxs("div",{className:"container mx-auto px-4 py-16 grid lg:grid-cols-2 gap-12 items-center",children:[s.jsxs("div",{children:[s.jsx("span",{className:"inline-block bg-[#1A110A] text-primary font-bold px-6 py-2 rounded-full text-sm mb-8 tracking-wide",children:"5-Week Intensive Programme"}),s.jsx("h1",{className:"text-3xl md:text-4xl lg:text-6xl font-black text-foreground leading-[1.1] mb-8 uppercase tracking-tight",children:t?.hero_headline?t.hero_headline.split(" ").map((E,D)=>{const I=["pro","course"].includes(E.toLowerCase());return s.jsxs("span",{className:I?"text-primary":"",children:[E," ",D===1&&s.jsx("br",{className:"hidden lg:block"})]},D)}):s.jsxs(s.Fragment,{children:["Broadcast Media ",s.jsx("span",{className:"text-primary",children:"Pro"}),s.jsx("br",{}),s.jsx("span",{className:"text-primary",children:"Course"})," 2026"]})}),s.jsx("p",{className:"text-lg text-muted-foreground mb-6 leading-relaxed",children:t?.sub_headline||"Kickstart your career in broadcast media, public speaking, voiceover and content creation in just 5 weeks!"}),p&&s.jsxs("div",{className:"flex flex-wrap gap-6 mb-8",children:[s.jsxs("div",{className:`rounded-lg p-4 text-center min-w-[140px] transition-all relative ${N?"bg-primary/5 border-2 border-primary shadow-lg shadow-primary/10":"bg-card/50 border border-border/50 grayscale opacity-60"}`,children:[N&&s.jsx("span",{className:"absolute -top-3 left-1/2 -translate-x-1/2 bg-primary text-primary-foreground text-[10px] font-black uppercase px-3 py-1 rounded-full whitespace-nowrap",children:"Active Now"}),!p&&s.jsx("span",{className:"absolute -top-3 left-1/2 -translate-x-1/2 bg-destructive text-destructive-foreground text-[10px] font-black uppercase px-3 py-1 rounded-full whitespace-nowrap",children:"Closed"}),s.jsx("p",{className:`text-sm ${g?"font-bold text-primary":"text-muted-foreground line-through"}`,children:"Early Bird"}),s.jsxs("p",{className:`text-2xl font-bold ${N?"text-foreground":"text-muted-foreground
136/80"}`,children:["₦",Number(t?.early_bird_fee||15e4).toLocaleString()]}),s.jsx("p",{className:"text-[10px] text-muted-foreground",children:g?`Until ${k(t?.early_bird_deadline)}`:`Ended ${k(t?.early_bird_deadline)}`})]}),s.jsxs("div",{className:`rounded-lg p-4 text-center min-w-[140px] transition-all relative ${w?"bg-primary/5 border-2 border-primary shadow-lg shadow-primary/10":"bg-card/50 border border-border/50 grayscale opacity-60"}`,children:[w&&s.jsx("span",{className:"absolute -top-3 left-1/2 -translate-x-1/2 bg-primary text-primary-foreground text-[10px] font-black uppercase px-3 py-1 rounded-full whitespace-nowrap",children:"Active Now"}),!p&&s.jsx("span",{className:"absolute -top-3 left-1/2 -translate-x-1/2 bg-destructive text-destructive-foreground text-[10px] font-black uppercase px-3 py-1 rounded-full whitespace-nowrap",children:"Closed"}),s.jsx("p",{className:`text-sm ${w?"font-bold text-primary":"text-muted-foreground"}`,children:j}),s.jsxs("p",{className:`text-2xl font-bold ${w?"text-foreground":"text-muted-foreground/80"}`,children:["₦",Number(t?.standard_fee||18e4).toLocaleString()]}),s.jsx("p",{className:"text-[10px] text-muted-foreground",children:w?t?.registration_deadline?`Until ${k(t.registration_deadline)}`:"Apply Now":g?t?.early_bird_deadline?`Starts ${k(t.early_bird_deadline)}`:"Standard Fee":t?.registration_deadline?`Ended ${k(t.registration_deadline)}`:j})]})]}),s.jsxs("div",{className:"flex flex-wrap gap-3 mb-6 text-sm text-muted-foreground font-medium",children:[s.jsxs("div",{className:"flex items-center gap-2 bg-card/70 border border-border/60 px-3.5 py-2 rounded-xl shadow-sm",children:[s.jsx("span",{className:"text-primary font-bold",children:"📅 Class Starts:"}),s.jsx("span",{className:"font-semibold text-foreground",children:A})]}),t?.registration_start_date&&s.jsxs("div",{className:"flex items-center gap-2 bg-card/70 border border-border/60 px-3.5 py-2 rounded-xl shadow-sm",children:[s.jsx("span",{className:"text-emerald-500 font-bold",children:"🟢 Reg. Opens:"}),s.jsx("span",{className:"font-semibold text-foreground",children:k(t.registration_start_date)})]}),t?.registration_deadline&&s.jsxs("div",{className:"flex items-center gap-2 bg-card/70 border border-border/60 px-3.5 py-2 rounded-xl shadow-sm",children:[s.jsx("span",{className:"text-rose-500 font-bold",children:"🔴 Reg. Closes:"}),s.jsx("span",{className:"font-semibold text-foreground",children:k(t.registration_deadline)})]}),s.jsxs("div",{className:"flex items-center gap-2 bg-card/70 border border-border/60 px-3.5 py-2 rounded-xl shadow-sm",children:[s.jsx("span",{className:"text-primary font-bold",children:"⏰ Class time:"}),s.jsx("span",{className:"font-semibold text-foreground",children:C})]})]}),s.jsxs("div",{className:"flex flex-wrap gap-4 items-center",children:[s.jsx("button",{onClick:e,disabled:!p,className:"bg-primary text-primary-foreground px-10 py-4 rounded-xl font-bold text-lg transition-all shadow-xl shadow-primary/20 hover:scale-[1.02] active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed disabled:grayscale disabled:hover:scale-100",children:f?`Registration Opens ${k(t?.registration_start_date)}`:p?"Apply Now & Pay Course Fee":"Registration Closed"}),!p&&s.jsx(Pe,{to:"/cma/wishlist",className:"bg-transparent border-2 border-primary text-primary hover:bg-primary/5 px-10 py-4 rounded-xl font-bold text-lg transition-all text-center shadow-lg hover:scale-[1.02] active:scale-95",children:"Join Waitlist"})]})]}),s.jsx("div",{className:"relative",children:s.jsx("img",{src:t?.hero_image||lD,alt:"Broadcast Media Pro Course 2026 - Cardinal Media Academy",className:"w-full rounded-2xl shadow-2xl"})})]})})},uD={"Radio/TV Presentation":ao,"Interview & Show Preparation":kw,"Voiceover & Audio Production":UT,"Diction & Speech Training":nE,"Social Media Management":hs,"Event Hosting & Public Speaking":cE,"Media Marketing":Ch,"Personal Branding":QT},dD=[{id:1,title:"Radio/TV Presentation",description:"Begin with the fundamentals of broadcast presentation, techniques for delivering captivating and professional shows and how to stand out as a presenter.",image:null},{id:2,title:"Interview & Show Preparation",description:"Master the art of interviewing guests for radio, TV and podcasts, and how to research, identify great topics and deliver content that meets professional standards.",image:null},{id:3,title:"Voiceover & Audio Production",description:"Discover how to craft compelling adverts, narrations and stories, build a professional voiceover studio, and confidently secure lucrative voice opportunities.",image:null},{id:4,title:"Diction & Speech Training",description:"Improve your spoken English by learning the fundamentals of diction, articulation and correct common mispronunciations with proper vowel and consonant sounds.",image:null},{id:5,title:"Social Media Management",description:"Learn to curate content and manage social media accounts for brands. Discover content and optimization tactics to grow following, engagement and monetize effectively.",image:null},{id:6,title:"Event Hosting & Public Speaking",description:"Discover how to effectively host events, engage audiences, and deliver powerful speeches that leave lasting impressions.",image:null},{id:7,title:"Media Marketing",description:"Discover how to effectively market yourself, build a professional network, and confidently secure lucrative media opportunities.",image:null},{id:8,title:"Personal Branding",description:"Learn how to effectively position yourself as a brand, build a professional network, and create a sustainable career in media.",image:null}],fD=({settings:e,onEnroll:t})=>{const[r,o]=y.useState([]),[a,l]=y.useState(!0),c=new Date,d=e?.is_registration_open!==!1&&(!e?.registration_deadline||new Date(e.registration_deadline)>=c);if(y.useEffect(()=>{(async()=>{try{const p=await Ce("/api/cma/");Array.isArray(p)&&o(p)}
136catch(p){console.error("Failed to fetch CMA modules",p)}finally{l(!1)}})()},[]),a)return s.jsx("div",{className:"py-20 flex justify-center items-center bg-muted",children:s.jsx(Bt,{className:"w-10 h-10 text-primary animate-spin"})});const f=r.length>0?r:dD;return f.length===0?null:s.jsx("section",{className:"py-16 bg-muted",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsxs("div",{className:"text-center mb-12 max-w-3xl mx-auto",children:[s.jsxs("h2",{className:"text-3xl font-bold mb-4",children:[f.length," Comprehensive Pillars"]}),s.jsxs("p",{className:"text-muted-foreground",children:["The course is structured around ",f.length," comprehensive pillars of the industry, designed to transform you from a novice into a professional broadcaster, public speaker or content creator in just 5 weeks."]})]}),s.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-6 mb-12",children:f.map(h=>{const p=uD[h.title]||Vm;return s.jsxs("div",{className:"bg-card border border-border rounded-xl p-6 hover:border-primary transition-colors group",children:[s.jsx(p,{className:"w-10 h-10 text-primary mb-4 group-hover:scale-110 transition-transform"}),s.jsx("h3",{className:"font-bold text-foreground mb-2",children:h.title}),s.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:h.description})]},h.id)})}),s.jsxs("div",{className:"text-center flex flex-wrap gap-4 justify-center items-center",children:[s.jsx("button",{onClick:t,disabled:!d,className:"bg-primary text-primary-foreground px-10 py-4 rounded-xl font-bold text-lg hover:bg-primary/90 transition-all shadow-xl shadow-primary/20 hover:scale-[1.02] active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed disabled:grayscale disabled:hover:scale-100",children:d?"Apply Now & Pay Course Fee":"Registration Closed"}),!d&&s.jsx(Pe,{to:"/cma/wishlist",className:"bg-transparent border-2 border-primary text-primary hover:bg-primary/5 px-10 py-4 rounded-xl font-bold text-lg transition-all text-center shadow-lg hover:scale-[1.02] active:scale-95",children:"Join Waitlist"})]})]})})};function hD(e){return Object.prototype.toString.call(e)==="[object Object]"}function b0(e){return hD(e)||Array.isArray(e)}function mD(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Cp(e,t){const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;const a=JSON.stringify(Object.keys(e.breakpoints||{})),l=JSON.stringify(Object.keys(t.breakpoints||{}));return a!==l?!1:r.every(c=>{const d=e[c],f=t[c];return typeof d=="function"?`${d}`==`${f}`:!b0(d)||!b0(f)?d===f:Cp(d,f)})}function w0(e){return e.concat().sort((t,r)=>t.name>r.name?1:-1).map(t=>t.options)}function pD(e,t){if(e.length!==t.length)return!1;const r=w0(e),o=w0(t);return r.every((a,l)=>{const c=o[l];return Cp(a,c)})}function Tp(e){return typeof e=="number"}function im(e){return typeof e=="string"}function Eu(e){return typeof e=="boolean"}function j0(e){return Object.prototype.toString.call(e)==="[object Object]"}function tt(e){return Math.abs(e)}function Ep(e){return Math.sign(e)}function fa(e,t){return tt(e-t)}function gD(e,t){if(e===0||t===0||tt(e)<=tt(t))return 0;const r=fa(tt(e),tt(t));return tt(r/e)}function xD(e){return Math.round(e*100)/100}function ka(e){return Ca(e).map(Number)}function Kr(e){return e[za(e)]}function za(e){return Math.max(0,e.length-1)}function Pp(e,t){return t===za(e)}function N0(e,t=0){return Array.from(Array(e),(r,o)=>t+o)}function Ca(e){return Object.keys(e)}function zN(e,t){return[e,t].reduce((r,o)=>(Ca(o).forEach(a=>{const l=r[a],c=o[a],d=j0(l)&&j0(c);r[a]=d?zN(l,c):c}),r),{})}function am(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function yD(e,t){const r={start:o,center:a,end:l};function o(){return 0}function a(f){return l(f)/2}function l(f){return t-f}function c(f,h){return im(e)?r[e](f):e(t,f,h)}return{measure:c}}function Ta(){let e=[];function t(a,l,c,d={passive:!0}){let f;if("addEventListener"in a)a.addEventListener(l,c,d),f=()=>a.removeEventListener(l,c,d);else{const h=a;h.addListener(c),f=()=>h.removeListener(c)}return e.push(f),o}
vendor: 16,329 bytes, line 136
136function r(){e=e.filter(a=>a())}const o={add:t,clear:r};return o}function vD(e,t,r,o){const a=Ta(),l=1e3/60;let c=null,d=0,f=0;function h(){a.add(e,"visibilitychange",()=>{e.hidden&&N()})}function p(){v(),a.clear()}function g(j){if(!f)return;c||(c=j,r(),r());const k=j-c;for(c=j,d+=k;d>=l;)r(),d-=l;const C=d/l;o(C),f&&(f=t.requestAnimationFrame(g))}function x(){f||(f=t.requestAnimationFrame(g))}function v(){t.cancelAnimationFrame(f),c=null,d=0,f=0}function N(){c=null,d=0}return{init:h,destroy:p,start:x,stop:v,update:r,render:o}}function bD(e,t){const r=t==="rtl",o=e==="y",a=o?"y":"x",l=o?"x":"y",c=!o&&r?-1:1,d=p(),f=g();function h(N){const{height:w,width:j}=N;return o?w:j}function p(){return o?"top":r?"right":"left"}function g(){return o?"bottom":r?"left":"right"}function x(N){return N*c}return{scroll:a,cross:l,startEdge:d,endEdge:f,measureSize:h,direction:x}}function so(e=0,t=0){const r=tt(e-t);function o(h){return h<e}function a(h){return h>t}function l(h){return o(h)||a(h)}function c(h){return l(h)?o(h)?e:t:h}function d(h){return r?h-r*Math.ceil((h-t)/r):h}return{length:r,max:t,min:e,constrain:c,reachedAny:l,reachedMax:a,reachedMin:o,removeOffset:d}}function UN(e,t,r){const{constrain:o}=so(0,e),a=e+1;let l=c(t);function c(x){return r?tt((a+x)%a):o(x)}function d(){return l}function f(x){return l=c(x),g}function h(x){return p().set(d()+x)}function p(){return UN(e,d(),r)}const g={get:d,set:f,add:h,clone:p};return g}function wD(e,t,r,o,a,l,c,d,f,h,p,g,x,v,N,w,j,k,C){const{cross:T,direction:A}=e,E=["INPUT","SELECT","TEXTAREA"],D={passive:!1},I=Ta(),_=Ta(),H=so(50,225).constrain(v.measure(20)),z={mouse:300,touch:400},G={mouse:500,touch:600},q=N?43:25;let le=!1,F=0,J=0,Z=!1,oe=!1,$=!1,W=!1;function K(ce){if(!C)return;function Te(Qe){(Eu(C)||C(ce,Qe))&&ge(Qe)}const Ie=t;I.add(Ie,"dragstart",Qe=>Qe.preventDefault(),D).add(Ie,"touchmove",()=>{},D).add(Ie,"touchend",()=>{}).add(Ie,"touchstart",Te).add(Ie,"mousedown",Te).add(Ie,"touchcancel",ue).add(Ie,"contextmenu",ue).add(Ie,"click",we,!0)}function M(){I.clear(),_.clear()}function B(){const ce=W?r:t;_.add(ce,"touchmove",X,D).add(ce,"touchend",ue).add(ce,"mousemove",X,D).add(ce,"mouseup",ue)}function Q(ce){const Te=ce.nodeName||"";return E.includes(Te)}function ne(){return(N?G:z)[W?"mouse":"touch"]}function pe(ce,Te){const Ie=g.add(Ep(ce)*-1),Qe=p.byDistance(ce,!N).distance;return N||tt(ce)<H?Qe:j&&Te?Qe*.5:p.byIndex(Ie.get(),0).distance}function ge(ce){const Te=am(ce,o);W=Te,$=N&&Te&&!ce.buttons&&le,le=fa(a.get(),c.get())>=2,!(Te&&ce.button!==0)&&(Q(ce.target)||(Z=!0,l.pointerDown(ce),h.useFriction(0).useDuration(0),a.set(c),B(),F=l.readPoint(ce),J=l.readPoint(ce,T),x.emit("pointerDown")))}function X(ce){if(!am(ce,o)&&ce.touches.length>=2)return ue(ce);const Ie=l.readPoint(ce),Qe=l.readPoint(ce,T),ct=fa(Ie,F),ht=fa(Qe,J);if(!oe&&!W&&(!ce.cancelable||(oe=ct>ht,!oe)))return ue(ce);const zt=l.pointerMove(ce);ct>w&&($=!0),h.useFriction(.3).useDuration(.75),d.start(),a.add(A(zt)),ce.preventDefault()}function ue(ce){const Ie=p.byDistance(0,!1).index!==g.get(),Qe=l.pointerUp(ce)*ne(),ct=pe(A(Qe),Ie),ht=gD(Qe,ct),zt=q-10*ht,Ut=k+ht/50;oe=!1,Z=!1,_.clear(),h.useDuration(zt).useFriction(Ut),f.distance(ct,!N),W=!1,x.emit("pointerUp")}function we(ce){$&&(ce.stopPropagation(),ce.preventDefault(),$=!1)}function be(){return Z}return{init:K,destroy:M,pointerDown:be}}function jD(e,t){let o,a;function l(g){return g.timeStamp}function c(g,x){const N=`client${(x||e.scroll)==="x"?"X":"Y"}`;return(am(g,t)?g:g.touches[0])[N]}function d(g){return o=g,a=g,c(g)}function f(g){const x=c(g)-c(a),v=l(g)-l(o)>170;return a=g,v&&(o=g),x}function h(g){if(!o||!a)return 0;const x=c(a)-c(o),v=l(g)-l(o),N=l(g)-l(a)>170,w=x/v;return v&&!N&&tt(w)>.1?w:0}return{pointerDown:d,pointerMove:f,pointerUp:h,readPoint:c}}function ND(){function e(r){const{offsetTop:o,offsetLeft:a,offsetWidth:l,offsetHeight:c}=r;return{top:o,right:a+l,bottom:o+c,left:a,width:l,height:c}}return{measure:e}}function SD(e){function t(o){return e*(o/100)}return{measure:t}}function kD(e,t,r,o,a,l,c){const d=[e].concat(o);let f,h,p=[],g=!1;function x(j){return a.measureSize(c.measure(j))}function v(j){if(!l)return;h=x(e),p=o.map(x);function k(C){for(const T of C){if(g)return;const A=T.target===e,E=o.indexOf(T.target),D=A?h:p[E],I=x(A?e:o[E]);if(tt(I-D)>=.5){j.reInit(),t.emit("resize");break}}}f=new ResizeObserver(C=>{(Eu(l)||l(j,C))&&k(C)}),r.requestAnimationFrame(()=>{d.forEach(C=>f.observe(C))})}function N(){g=!0,f&&f.disconnect()}return{init:v,destroy:N}}function CD(e,t,r,o,a,l){let c=0,d=0,f=a,h=l,p=e.get(),g=0;function x(){const D=o.get()-e.get(),I=!f;let _=0;return I?(c=0,r.set(o),e.set(o),_=D):(r.set(e),c+=D/f,c*=h,p+=c,e.add(c),_=p-g),d=Ep(_),g=p,E}function v(){const D=o.get()-t.get();return tt(D)<.001}function N(){return f}function w(){return d}function j(){return c}function k(){return T(a)}function C(){return A(l)}function T(D){return f=D,E}function A(D){return h=D,E}const E={direction:w,duration:N,velocity:j,seek:x,settled:v,useBaseFriction:C,useBaseDuration:k,useFriction:A,useDuration:T};return E}function TD(e,t,r,o,a){const l=a.measure(10),c=a.measure(50),d=so(.1,.99);let f=!1;function h(){return!(f||!e.reachedAny(r.get())||!e.reachedAny(t.get()))}function p(v){if(!h())return;const N=e.reachedMin(t.get())?"min":"max",w=tt(e[N]-t.get()),j=r.get()-t.get(),k=d.constrain(w/c);r.subtract(j*k),!v&&tt(j)<l&&(r.set(e.constrain(r.get())),o.useDuration(25).useBaseFriction())}function g(v){f=!v}return{shouldConstrain:h,constrain:p,toggleActive:g}}function ED(e,t,r,o,a){const l=so(-t+e,0),c=g(),d=p(),f=x();function h(N,w){return fa(N,w)<=1}function p(){const N=c[0],w=Kr(c),j=c.lastIndexOf(N),k=c.indexOf(w)+1;return so(j,k)}function g(){return r.map((N,w)=>{const{min:j,max:k}=l,C=l.constrain(N),T=!w,A=Pp(r,w);return T?k:A||h(j,C)?j:h(k,C)?k:C}).map(N=>parseFloat(N.toFixed(3)))}function x(){if(t<=e+a)return[l.max];if(o==="keepSnaps")return c;const{min:N,max:w}=d;return c.slice(N,w)}return{snapsContained:f,scrollContainLimit:d}}function PD(e,t,r){const o=t[0],a=r?o-e:Kr(t);return{limit:so(a,o)}}function AD(e,t,r,o){const l=t.min+.1,c=t.max+.1,{reachedMin:d,reachedMax:f}=so(l,c);function h(x){return x===1?f(r.get()):x===-1?d(r.get()):!1}function p(x){if(!h(x))return;const v=e*(x*-1);o.forEach(N=>N.add(v))}return{loop:p}}function RD(e){const{max:t,length:r}=e;function o(l){const c=l-t;return r?c/-r:0}return{get:o}}function MD(e,t,r,o,a){const{startEdge:l,endEdge:c}=e,{groupSlides:d}=a,f=g().map(t.measure),h=x(),p=v();function g(){return d(o).map(w=>Kr(w)[c]-w[0][l]).map(tt)}function x(){return o.map(w=>r[l]-w[l]).map(w=>-tt(w))}function v(){return d(h).map(w=>w[0]).map((w,j)=>w+f[j])}return{snaps:h,snapsAligned:p}}function _D(e,t,r,o,a,l){const{groupSlides:c}=a,{min:d,max:f}=o,h=p();function p(){const x=c(l),v=!e||t==="keepSnaps";return r.length===1?[l]:v?x:x.slice(d,f).map((N,w,j)=>{const k=!w,C=Pp(j,w);if(k){const T=Kr(j[0])+1;return N0(T)}if(C){const T=za(l)-Kr(j)[0]+1;return N0(T,Kr(j)[0])}return N})}return{slideRegistry:h}}function DD(e,t,r,o,a){const{reachedAny:l,removeOffset:c,constrain:d}=o;function f(N){return N.concat().sort((w,j)=>tt(w)-tt(j))[0]}function h(N){const w=e?c(N):d(N),j=t.map((C,T)=>({diff:p(C-w,0),index:T})).sort((C,T)=>tt(C.diff)-tt(T.diff)),{index:k}=j[0];return{index:k,distance:w}}function p(N,w){const j=[N,N+r,N-r];if(!e)return N;if(!w)return f(j);const k=j.filter(C=>Ep(C)===w);return k.length?f(k):Kr(j)-r}function g(N,w){const j=t[N]-a.get(),k=p(j,w);return{index:N,distance:k}}function x(N,w){const j=a.get()+N,{index:k,distance:C}=h(j),T=!e&&l(j);if(!w||T)return{index:k,distance:N};const A=t[k]-C,E=N+p(A,0);return{index:k,distance:E}}return{byDistance:x,byIndex:g,shortcut:p}}function ID(e,t,r,o,a,l,c){function d(g){const x=g.distance,v=g.index!==t.get();l.add(x),x&&(o.duration()?e.start():(e.update(),e.render(1),e.update())),v&&(r.set(t.get()),t.set(g.index),c.emit("select"))}function f(g,x){const v=a.byDistance(g,x);d(v)}function h(g,x){const v=t.clone().set(g),N=a.byIndex(v.get(),x);d(N)}return{distance:f,index:h}}function LD(e,t,r,o,a,l,c,d){const f={passive:!0,capture:!0};let h=0;function p(v){if(!d)return;function N(w){if(new Date().getTime()-h>10)return;c.emit("slideFocusStart"),e.scrollLeft=0;const C=r.findIndex(T=>T.includes(w));Tp(C)&&(a.useDuration(0),o.index(C,0),c.emit("slideFocus"))}l.add(document,"keydown",g,!1),t.forEach((w,j)=>{l.add(w,"focus",k=>{(Eu(d)||d(v,k))&&N(j)},f)})}function g(v){v.code==="Tab"&&(h=new Date().getTime())}return{init:p}}function la(e){let t=e;function r(){return t}function o(f){t=c(f)}function a(f){t+=c(f)}function l(f){t-=c(f)}function c(f){return Tp(f)?f:f.get()}return{get:r,set:o,add:a,subtract:l}}function WN(e,t){const r=e.scroll==="x"?c:d,o=t.style;let a=null,l=!1;function c(x){return`translate3d(${x}px,0px,0px)`}function d(x){return`translate3d(0px,${x}px,0px)`}function f(x){if(l)return;const v=xD(e.direction(x));v!==a&&(o.transform=r(v),a=v)}function h(x){l=!x}function p(){l||(o.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:p,to:f,toggleActive:h}}function OD(e,t,r,o,a,l,c,d,f){const p=ka(a),g=ka(a).reverse(),x=k().concat(C());function v(I,_){return I.reduce((H,z)=>H-a[z],_)}function N(I,_){return I.reduce((H,z)=>v(H,_)>0?H.concat([z]):H,[])}function w(I){return l.map((_,H)=>({start:_-o[H]+.5+I,end:_+t-.5+I}))}function j(I,_,H){const z=w(_);return I.map(G=>{const q=H?0:-r,le=H?r:0,F=H?"end":"start",J=z[G][F];return{index:G,loopPoint:J,slideLocation:la(-1),translate:WN(e,f[G]),target:()=>d.get()>J?q:le}})}function k(){const I=c[0],_=N(g,I);return j(_,r,!1)}function C(){const I=t-c[0]-1,_=N(p,I);return j(_,-r,!0)}function T(){return x.every(({index:I})=>{const _=p.filter(H=>H!==I);return v(_,t)<=.1})}function A(){x.forEach(I=>{const{target:_,translate:H,slideLocation:z}=I,G=_();G!==z.get()&&(H.to(G),z.set(G))})}function E(){x.forEach(I=>I.translate.clear())}return{canLoop:T,clear:E,loop:A,loopPoints:x}}function FD(e,t,r){let o,a=!1;function l(f){if(!r)return;function h(p){for(const g of p)if(g.type==="childList"){f.reInit(),t.emit("slidesChanged");break}}o=new MutationObserver(p=>{a||(Eu(r)||r(f,p))&&h(p)}),o.observe(e,{childList:!0})}function c(){o&&o.disconnect(),a=!0}return{init:l,destroy:c}}function $D(e,t,r,o){const a={};let l=null,c=null,d,f=!1;function h(){d=new IntersectionObserver(N=>{f||(N.forEach(w=>{const j=t.indexOf(w.target);a[j]=w}),l=null,c=null,r.emit("slidesInView"))},{root:e.parentElement,threshold:o}),t.forEach(N=>d.observe(N))}function p(){d&&d.disconnect(),f=!0}function g(N){return Ca(a).reduce((w,j)=>{const k=parseInt(j),{isIntersecting:C}=a[k];return(N&&C||!N&&!C)&&w.push(k),w},[])}function x(N=!0){if(N&&l)return l;if(!N&&c)return c;const w=g(N);return N&&(l=w),N||(c=w),w}return{init:h,destroy:p,get:x}}function VD(e,t,r,o,a,l){const{measureSize:c,startEdge:d,endEdge:f}=e,h=r[0]&&a,p=N(),g=w(),x=r.map(c),v=j();function N(){if(!h)return 0;const C=r[0];return tt(t[d]-C[d])}function w(){if(!h)return 0;const C=l.getComputedStyle(Kr(o));return parseFloat(C.getPropertyValue(`margin-${f}`))}function j(){return r.map((C,T,A)=>{const E=!T,D=Pp(A,T);return E?x[T]+p:D?x[T]+g:A[T+1][d]-C[d]}).map(tt)}return{slideSizes:x,slideSizesWithGaps:v,startGap:p,endGap:g}}function BD(e,t,r,o,a,l,c,d,f){const{startEdge:h,endEdge:p,direction:g}=e,x=Tp(r);function v(k,C){return ka(k).filter(T=>T%C===0).map(T=>k.slice(T,T+C))}function N(k){return k.length?ka(k).reduce((C,T,A)=>{const E=Kr(C)||0,D=E===0,I=T===za(k),_=a[h]-l[E][h],H=a[h]-l[T][p],z=!o&&D?g(c):0,G=!o&&I?g(d):0,q=tt(H-G-(_+z));return A&&q>t+f&&C.push(T),I&&C.push(k.length),C},[]).map((C,T,A)=>{const E=Math.max(A[T-1]||0);return k.slice(E,C)}):[]}function w(k){return x?v(k,r):N(k)}return{groupSlides:w}}function zD(e,t,r,o,a,l,c){const{align:d,axis:f,direction:h,startIndex:p,loop:g,duration:x,dragFree:v,dragThreshold:N,inViewThreshold:w,slidesToScroll:j,skipSnaps:k,containScroll:C,watchResize:T,watchSlides:A,watchDrag:E,watchFocus:D}=l,I=2,_=ND(),H=_.measure(t),z=r.map(_.measure),G=bD(f,h),q=G.measureSize(H),le=SD(q),F=yD(d,q),J=!g&&!!C,Z=g||!!C,{slideSizes:oe,slideSizesWithGaps:$,startGap:W,endGap:K}=VD(G,H,z,r,Z,a),M=BD(G,q,j,g,H,z,W,K,I),{snaps:B,snapsAligned:Q}=MD(G,F,H,z,M),ne=-Kr(B)+Kr($),{snapsContained:pe,scrollContainLimit:ge}=ED(q,ne,Q,C,I),X=J?pe:Q,{limit:ue}=PD(ne,X,g),we=UN(za(X),p,g),be=we.clone(),ve=ka(r),ce=({dragHandler:jt,scrollBody:Tr,scrollBounds:Ln,options:{loop:Er}})=>{Er||Ln.constrain(jt.pointerDown()),Tr.seek()},Te=({scrollBody:jt,translate:Tr,location:Ln,offsetLocation:Er,previousLocation:Pr,scrollLooper:lo,slideLooper:mr,dragHandler:Cs,animation:Ts,eventHandler:bn,scrollBounds:On,options:{loop:Ar}},or)=>{const Ht=jt.settled(),co=!On.shouldConstrain(),ke=Ar?Ht:Ht&&co,Le=ke&&!Cs.pointerDown();Le&&Ts.stop();const Ve=Ln.get()*or+Pr.get()*(1-or);Er.set(Ve),Ar&&(lo.loop(jt.direction()),mr.loop()),Tr.to(Er.get()),Le&&bn.emit("settle"),ke||bn.emit("scroll")},Ie=vD(o,a,()=>ce(In),jt=>Te(In,jt)),Qe=.68,ct=X[we.get()],ht=la(ct),zt=la(ct),Ut=la(ct),Rt=la(ct),xt=CD(ht,Ut,zt,Rt,x,Qe),en=DD(g,X,ne,ue,Rt),Wt=ID(Ie,we,be,xt,en,Rt,c),Ss=RD(ue),ks=Ta(),wt=$D(t,r,c,w),{slideRegistry:sr}=_D(J,C,X,ge,M,ve),Dn=LD(e,r,sr,Wt,xt,ks,c,D),In={ownerDocument:o,ownerWindow:a,eventHandler:c,containerRect:H,slideRects:z,animation:Ie,axis:G,dragHandler:wD(G,e,o,a,Rt,jD(G,a),ht,Ie,Wt,xt,en,we,c,le,v,N,k,Qe,E),eventStore:ks,percentOfView:le,index:we,indexPrevious:be,limit:ue,location:ht,offsetLocation:Ut,previousLocation:zt,options:l,resizeHandler:kD(t,c,a,r,G,T,_),scrollBody:xt,scrollBounds:TD(ue,Ut,Rt,xt,le),scrollLooper:AD(ne,ue,Ut,[ht,Ut,zt,Rt]),scrollProgress:Ss,scrollSnapList:X.map(Ss.get),scrollSnaps:X,scrollTarget:en,scrollTo:Wt,slideLooper:OD(G,q,ne,oe,$,B,X,Ut,r),slideFocus:Dn,slidesHandler:FD(t,c,A),slidesInView:wt,slideIndexes:ve,slideRegistry:sr,slidesToScroll:M,target:Rt,translate:WN(G,t)};return In}function UD(){let e={},t;function r(h){t=h}function o(h){return e[h]||[]}function a(h){return o(h).forEach(p=>p(t,h)),f}function l(h,p){return e[h]=o(h).concat([p]),f}function c(h,p){return e[h]=o(h).filter(g=>g!==p),f}function d(){e={}}const f={init:r,emit:a,off:c,on:l,clear:d};return f}const WD={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function HD(e){function t(l,c){return zN(l,c||{})}function r(l){const c=l.breakpoints||{},d=Ca(c).filter(f=>e.matchMedia(f).matches).map(f=>c[f]).reduce((f,h)=>t(f,h),{});return t(l,d)}function o(l){return l.map(c=>Ca(c.breakpoints||{})).reduce((c,d)=>c.concat(d),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:r,optionsMediaQueries:o}}function YD(e){let t=[];function r(l,c){return t=c.filter(({options:d})=>e.optionsAtMedia(d).active!==!1),t.forEach(d=>d.init(l,e)),c.reduce((d,f)=>Object.assign(d,{[f.name]:f}),{})}function o(){t=t.filter(l=>l.destroy())}return{init:r,destroy:o}}function Kc(e,t,r){const o=e.ownerDocument,a=o.defaultView,l=HD(a),c=YD(l),d=Ta(),f=UD(),{mergeOptions:h,optionsAtMedia:p,optionsMediaQueries:g}=l,{on:x,off:v,emit:N}=f,w=G;let j=!1,k,C=h(WD,Kc.globalOptions),T=h(C),A=[],E,D,I;function _(){const{container:ve,slides:ce}=T;D=(im(ve)?e.querySelector(ve):ve)||e.children[0];const Ie=im(ce)?D.querySelectorAll(ce):ce;I=[].slice.call(Ie||D.children)}function H(ve){const ce=zD(e,D,I,o,a,ve,f);if(ve.loop&&!ce.slideLooper.canLoop()){const Te=Object.assign({},ve,{loop:!1});return H(Te)}return ce}function z(ve,ce){j||(C=h(C,ve),T=p(C),A=ce||A,_(),k=H(T),g([C,...A.map(({options:Te})=>Te)]).forEach(Te=>d.add(Te,"change",G)),T.active&&(k.translate.to(k.location.get()),k.animation.init(),k.slidesInView.init(),k.slideFocus.init(be),k.eventHandler.init(be),k.resizeHandler.init(be),k.slidesHandler.init(be),k.options.loop&&k.slideLooper.loop(),D.offsetParent&&I.length&&k.dragHandler.init(be),E=c.init(be,A)))}function G(ve,ce){const Te=M();q(),z(h({startIndex:Te},ve),ce),f.emit("reInit")}function q(){k.dragHandler.destroy(),k.eventStore.clear(),k.translate.clear(),k.slideLooper.clear(),k.resizeHandler.destroy(),k.slidesHandler.destroy(),k.slidesInView.destroy(),k.animation.destroy(),c.destroy(),d.clear()}
136function le(){j||(j=!0,d.clear(),q(),f.emit("destroy"),f.clear())}function F(ve,ce,Te){!T.active||j||(k.scrollBody.useBaseFriction().useDuration(ce===!0?0:T.duration),k.scrollTo.index(ve,Te||0))}function J(ve){const ce=k.index.add(1).get();F(ce,ve,-1)}function Z(ve){const ce=k.index.add(-1).get();F(ce,ve,1)}function oe(){return k.index.add(1).get()!==M()}function $(){return k.index.add(-1).get()!==M()}function W(){return k.scrollSnapList}function K(){return k.scrollProgress.get(k.offsetLocation.get())}function M(){return k.index.get()}function B(){return k.indexPrevious.get()}function Q(){return k.slidesInView.get()}function ne(){return k.slidesInView.get(!1)}function pe(){return E}function ge(){return k}function X(){return e}function ue(){return D}function we(){return I}const be={canScrollNext:oe,canScrollPrev:$,containerNode:ue,internalEngine:ge,destroy:le,off:v,on:x,emit:N,plugins:pe,previousScrollSnap:B,reInit:w,rootNode:X,scrollNext:J,scrollPrev:Z,scrollProgress:K,scrollSnapList:W,scrollTo:F,selectedScrollSnap:M,slideNodes:we,slidesInView:Q,slidesNotInView:ne};return z(t,r),setTimeout(()=>f.emit("init"),0),be}Kc.globalOptions=void 0;function Ap(e={},t=[]){const r=y.useRef(e),o=y.useRef(t),[a,l]=y.useState(),[c,d]=y.useState(),f=y.useCallback(()=>{a&&a.reInit(r.current,o.current)},[a]);return y.useEffect(()=>{Cp(r.current,e)||(r.current=e,f())},[e,f]),y.useEffect(()=>{pD(o.current,t)||(o.current=t,f())},[t,f]),y.useEffect(()=>{if(mD()&&c){Kc.globalOptions=Ap.globalOptions;const h=Kc(c,r.current,o.current);return l(h),()=>h.destroy()}else l(void 0)},[c,l]),[d,a]}Ap.globalOptions=void 0;const HN=y.createContext(null);function Pu(){const e=y.useContext(HN);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const YN=y.forwardRef(({orientation:e="horizontal",opts:t,setApi:r,plugins:o,className:a,children:l,...c},d)=>{const[f,h]=Ap({...t,axis:e==="horizontal"?"x":"y"},o),[p,g]=y.useState(!1),[x,v]=y.useState(!1),N=y.useCallback(C=>{C&&(g(C.canScrollPrev()),v(C.canScrollNext()))},[]),w=y.useCallback(()=>{h?.scrollPrev()},[h]),j=y.useCallback(()=>{h?.scrollNext()},[h]),k=y.useCallback(C=>{C.key==="ArrowLeft"?(C.preventDefault(),w()):C.key==="ArrowRight"&&(C.preventDefault(),j())},[w,j]);return y.useEffect(()=>{!h||!r||r(h)},[h,r]),y.useEffect(()=>{if(h)return N(h),h.on("reInit",N),h.on("select",N),()=>{h?.off("select",N)}},[h,N]),s.jsx(HN.Provider,{value:{carouselRef:f,api:h,opts:t,orientation:e||(t?.axis==="y"?"vertical":"horizontal"),scrollPrev:w,scrollNext:j,canScrollPrev:p,canScrollNext:x},children:s.jsx("div",{ref:d,onKeyDownCapture:k,className:_e("relative",a),role:"region","aria-roledescription":"carousel",...c,children:l})})});YN.displayName="Carousel";const GN=y.forwardRef(({className:e,...t},r)=>{const{carouselRef:o,orientation:a}=Pu();return s.jsx("div",{ref:o,className:"overflow-hidden",children:s.jsx("div",{ref:r,className:_e("flex",a==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});GN.displayName="CarouselContent";const KN=y.forwardRef(({className:e,...t},r)=>{const{orientation:o}=Pu();return s.jsx("div",{ref:r,role:"group","aria-roledescription":"slide",className:_e("min-w-0 shrink-0 grow-0 basis-full",o==="horizontal"?"pl-4":"pt-4",e),...t})});KN.displayName="CarouselItem";const qN=y.forwardRef(({className:e,variant:t="outline",size:r="icon",...o},a)=>{const{orientation:l,scrollPrev:c,canScrollPrev:d}=Pu();return s.jsxs(at,{ref:a,variant:t,size:r,className:_e("absolute h-8 w-8 rounded-full",l==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!d,onClick:c,...o,children:[s.jsx(Ko,{className:"h-4 w-4"}),s.jsx("span",{className:"sr-only",children:"Previous slide"})]})});qN.displayName="CarouselPrevious";const QN=y.forwardRef(({className:e,variant:t="outline",size:r="icon",...o},a)=>{const{orientation:l,scrollNext:c,canScrollNext:d}=Pu();return s.jsxs(at,{ref:a,variant:t,size:r,className:_e("absolute h-8 w-8 rounded-full",l==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!d,onClick:c,...o,children:[s.jsx(mn,{className:"h-4 w-4"}),s.jsx("span",{className:"sr-only",children:"Next slide"})]})});
136QN.displayName="CarouselNext";const GD={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function KD(e,t){const r=e.scrollSnapList();return typeof t=="number"?r.map(()=>t):t(r,e)}function qD(e,t){const r=e.rootNode();return t&&t(r)||r}function Rp(e={}){let t,r,o,a,l=null,c=0,d=!1,f=!1,h=!1,p=!1;function g(F,J){r=F;const{mergeOptions:Z,optionsAtMedia:oe}=J,$=Z(GD,Rp.globalOptions),W=Z($,e);if(t=oe(W),r.scrollSnapList().length<=1)return;p=t.jump,o=!1,a=KD(r,t.delay);const{eventStore:K,ownerDocument:M}=r.internalEngine(),B=!!r.internalEngine().options.watchDrag,Q=qD(r,t.rootNode);K.add(M,"visibilitychange",k),B&&r.on("pointerDown",T),B&&!t.stopOnInteraction&&r.on("pointerUp",A),t.stopOnMouseEnter&&K.add(Q,"mouseenter",E),t.stopOnMouseEnter&&!t.stopOnInteraction&&K.add(Q,"mouseleave",D),t.stopOnFocusIn&&r.on("slideFocusStart",j),t.stopOnFocusIn&&!t.stopOnInteraction&&K.add(r.containerNode(),"focusout",w),t.playOnInit&&w()}function x(){r.off("pointerDown",T).off("pointerUp",A).off("slideFocusStart",j),j(),o=!0,d=!1}function v(){const{ownerWindow:F}=r.internalEngine();F.clearTimeout(c),c=F.setTimeout(G,a[r.selectedScrollSnap()]),l=new Date().getTime(),r.emit("autoplay:timerset")}function N(){const{ownerWindow:F}=r.internalEngine();F.clearTimeout(c),c=0,l=null,r.emit("autoplay:timerstopped")}function w(){if(!o){if(C()){h=!0;return}d||r.emit("autoplay:play"),v(),d=!0}}function j(){o||(d&&r.emit("autoplay:stop"),N(),d=!1)}function k(){if(C())return h=d,j();h&&w()}function C(){const{ownerDocument:F}=r.internalEngine();return F.visibilityState==="hidden"}function T(){f||j()}function A(){f||w()}function E(){f=!0,j()}function D(){f=!1,w()}function I(F){typeof F<"u"&&(p=F),w()}function _(){d&&j()}function H(){d&&w()}function z(){return d}function G(){const{index:F}=r.internalEngine(),J=F.clone().add(1).get(),Z=r.scrollSnapList().length-1,oe=t.stopOnLastSnap&&J===Z;if(r.canScrollNext()?r.scrollNext(p):r.scrollTo(0,p),r.emit("autoplay:select"),oe)return j();w()}function q(){if(!l)return null;const F=a[r.selectedScrollSnap()],J=new Date().getTime()-l;return F-J}return{name:"autoplay",options:e,init:g,destroy:x,play:I,stop:_,reset:H,isPlaying:z,timeUntilNext:q}}Rp.globalOptions=void 0;const QD=`${ft}/media/academy/facilitator-mazino.jpg`,XD=`${ft}/media/academy/facilitator-charlz.jpg`,JD=`${ft}/media/academy/facilitator-chukwudi.jpg`,ZD=`${ft}/media/academy/facilitator-nyamgu.jpg`,eI=`${ft}/media/academy/facilitator-oludolapo.jpg`,tI=`${ft}/media/academy/facilitator-shola.jpg`,rI=()=>{const[e,t]=y.useState([]),[r,o]=y.useState(!0);y.useEffect(()=>{(async()=>{try{const c=await Ce("/api/cma-facilitators/");Array.isArray(c)?t(c):(console.error("API did not return an array:",c),t([]))}catch(c){console.error("Failed to fetch CMA facilitators",c)}finally{o(!1)}})()},[]);const a=l=>{if(!l.image){const d=l.name.toLowerCase();return d.includes("mazino")?QD:d.includes("charlz")?XD:d.includes("chukwudi")?JD:d.includes("nyamgu")?ZD:d.includes("oludolapo")?eI:d.includes("shola")?tI:null}let c=l.image;return c.startsWith("http")||(c=`${ft}${c.startsWith("/")?"":"/"}${c}`),c.toLowerCase().endsWith(".heic")?`https://images.weserv.nl/?url=${encodeURIComponent(c)}`:c};return r?s.jsx("section",{className:"py-16",children:s.jsx("div",{className:"container mx-auto px-4 flex justify-center items-center",children:s.jsx(Bt,{className:"w-10 h-10 text-primary animate-spin"})})}):e.length===0?null:s.jsx("section",{className:"py-16",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsxs("div",{className:"text-center mb-12",children:[s.jsx("span",{className:"inline-block bg-primary/10 text-primary font-semibold px-4 py-1.5 rounded-full text-sm mb-4",children:"Meet Your Mentors"}),s.jsx("h2",{className:"text-3xl font-bold text-foreground mb-3",children:"Learn From Industry Experts"}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"Our facilitators are seasoned broadcast media professionals with years of on-air and industry experience, ready to guide your transformation."})]}),s.jsx("div",{className:"relative px-8 md:px-12",children:s.jsxs(YN,{opts:{align:"start",loop:!0},plugins:[Rp({delay:3e3})],className:"w-full max-w-5xl mx-auto",children:[s.jsx(GN,{className:"-ml-4",children:e.map(l=>{const c=a(l);return s.jsx(KN,{className:"pl-4 basis-full sm:basis-1/2 md:basis-1/3 lg:basis-1/4",children:s.jsxs("div",{className:"text-center py-4 group",children:[s.jsx("div",{className:"relative mb-4 mx-auto w-44 h-44 rounded-full overflow-hidden border-4 border-primary/20 group-hover:border-primary transition-colors flex items-center justify-center bg-primary/5",children:c?s.jsx("img",{src:c,alt:`${l.name} - ${l.role}`,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"}):s.jsx("span",{className:"text-4xl font-bold text-primary/40 uppercase",children:l.name.charAt(0)})}),s.jsx("h3",{className:"font-bold text-foreground text-base line-clamp-1",children:l.name}),s.jsx("p",{className:"text-sm text-primary line-clamp-2 min-h-[40px]",children:l.role})]})},l.id)})}),s.jsx(qN,{className:"absolute -left-4 md:-left-12 top-1/2 -translate-y-1/2"}),s.jsx(QN,{className:"absolute -right-4 md:-right-12 top-1/2 -translate-y-1/2"})]})})]})})},nI=["Certificate of Participation","Art of Radio Presentation","Interviewing Skills","Voiceover Production","Diction & Public Speaking","Social Media Management","Journalism & Newscasting"],sI=({settings:e,onEnroll:t})=>{const r=new Date,o=e?.is_registration_open!==!1&&(!e?.registration_deadline||new Date(e.registration_deadline)>=r),l=(c=>{if(!c)return"https://www.youtube.com/embed/3cKgI83Q16M?si=3yBmInkkyR23UcBd";if(c.includes("/embed/"))return c;const d=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/,f=c.match(d),h=f&&f[2].length===11?f[2]:null;return h?`https://www.youtube.com/embed/${h}`:c})(e?.video_url);return s.jsxs(s.Fragment,{children:[s.jsx("section",{className:"py-16 bg-muted",children:s.jsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[s.jsx("h2",{className:"text-3xl font-bold mb-6 text-center",children:"Consider This Opportunity"}),s.jsx("p",{className:"text-muted-foreground leading-relaxed mb-8 text-center",children:"The Broadcast Media Pro Course is an on-site program that sets itself apart from traditional training by effectively equipping you with the essential knowledge and skills needed for a realistic path to financial success in the broadcast media and public speaking industry in the shortest timeframe possible."}),s.jsx("p",{className:"text-muted-foreground leading-relaxed mb-8 text-center",children:"Offering the convenience of learning from industry experts, it guarantees your transformation from a novice into a professional broadcaster, public speaker or content creator in just 5 weeks, irrespective of your previous experience!"}),s.jsxs("div",{className:"bg-card border border-border rounded-xl p-8",children:[s.jsx("h3",{className:"text-xl font-bold mb-4",children:"What You'll Get"}),s.jsx("div",{className:"grid sm:grid-cols-2 gap-3",children:nI.map(c=>s.jsxs("div",{className:"flex items-center gap-2.5 text-muted-foreground",children:[s.jsx(KT,{className:"w-5 h-5 text-primary shrink-0"}),s.jsx("span",{children:c})]},c))})]})]})}),s.jsx("section",{className:"py-16",children:s.jsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[s.jsx("h2",{className:"text-3xl font-bold mb-6 text-center",children:"How It Works"}),s.jsxs("p",{className:"text-muted-foreground leading-relaxed mb-8 text-center text-lg",children:["Designed to be both engaging and straightforward, this course facilitates rapid learning and application. With ",s.jsx("strong",{className:"text-primary font-bold",children:"6 hour classes a day for 2 weeks"})," and ",s.jsx("strong",{className:"text-primary font-bold",children:"3 weeks internship at City FM"})," — a leading urban contemporary radio station — you can start practicing and living your dream career."]}),s.jsxs("div",{className:"aspect-video bg-black border border-border rounded-2xl overflow-hidden shadow-2xl mb-8 group relative",children:[s.jsx("iframe",{width:"100%",height:"100%",src:l,title:"Cardinal Media Academy - Introductory Video",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"w-full h-full"}),s.jsx("div",{className:"absolute inset-0 pointer-events-none border-2 border-primary/10 rounded-2xl group-hover:border-primary/20 transition-colors"})]}),s.jsxs("div",{className:"text-center mb-8",children:[s.jsx("p",{className:"text-sm font-bold text-primary uppercase tracking-[0.2em] mb-2",children:"Success Stories"}),s.jsx("p",{className:"text-muted-foreground font-medium italic",children:'"Hear from graduates thriving in the industry"'})]}),s.jsxs("div",{className:"text-center flex flex-wrap gap-4 justify-center items-center",children:[s.jsx("button",{onClick:t,disabled:!o,className:"bg-primary text-primary-foreground px-8 py-3.5 rounded-lg font-semibold text-lg hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed disabled:grayscale disabled:hover:scale-100",children:o?"Enroll Now":"Registration Closed"}),!o&&s.jsx(Pe,{to:"/cma/wishlist",className:"bg-transparent border-2 border-primary text-primary hover:bg-primary/5 px-8 py-3.5 rounded-lg font-semibold text-lg hover:text-primary transition-colors text-center shadow-lg hover:scale-[1.02] active:scale-95",children:"Join Waitlist"})]})]})}),s.jsxs("section",{className:"relative py-24 overflow-hidden group",children:[s.jsxs("div",{className:"absolute inset-0 z-0",children:[s.jsx("img",{src:"https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&q=80",alt:"Cardinal Media Academy Training Session",className:"w-full h-full object-cover group-hover:scale-105 transition-transform [transition-duration:2000ms]"}),s.jsx("div",{className:"absolute inset-0 bg-primary/95 mix-blend-multiply"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-primary via-primary/90 to-transparent"})]}),s.jsxs("div",{className:"container relative z-10 mx-auto px-4 text-center max-w-3xl",children:[s.jsx("h2",{className:"text-4xl md:text-5xl font-black text-white mb-6 uppercase tracking-tight",children:"Ready to Transform Your Career?"}),s.jsx("p",{className:"text-white text-lg md:text-xl font-medium mb-8 leading-relaxed",children:"Embark on a transformative journey with the Broadcast Media Pro Course Package, your comprehensive guide to mastering the art of broadcast & digital media content creation and public speaking."}),s.jsx("p",{className:"text-white/90 text-lg mb-10 leading-relaxed max-w-2xl mx-auto",children:"From capturing attention with your voice, to mastering audio editing techniques, this all-in-one course empowers you with the skills to become a professional voice in traditional and digital media industries."}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-6 justify-center items-center",children:[o?s.jsx("button",{onClick:t,className:"w-full sm:w-auto bg-white text-primary px-12 py-5 rounded-2xl font-black text-xl hover:bg-white/95 transform hover:-translate-y-1 transition-all shadow-2xl",children:"Apply Now & Pay Course Fee"}):s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 w-full sm:w-auto",children:[s.jsx("button",{disabled:!0,className:"w-full sm:w-auto bg-white/20 text-white/50 px-12 py-5 rounded-2xl font-black text-xl cursor-not-allowed",children:"Registration Closed"}),s.jsx(Pe,{to:"/cma/wishlist",className:"w-full sm:w-auto bg-white text-primary px-12 py-5 rounded-2xl font-black text-xl hover:bg-white/95 transform hover:-translate-y-1 transition-all shadow-2xl text-center",children:"Join Waitlist"})]}),s.jsx("a",{href:"tel:08109688638",className:"w-full sm:w-auto border-2 border-white text-white px-10 py-4 rounded-xl font-bold text-lg hover:bg-white/10 transform hover:-translate-y-1 transition-all backdrop-blur-sm",children:"Call: 0810 968 8638"})]}),s.jsxs("div",{className:"mt-12 flex flex-col items-center gap-2",children:[s.jsx("div",{className:"w-12 h-1 bg-white/30 rounded-full mb-4"}),s.jsx("p",{className:"text-white/80 font-semibold tracking-wide uppercase text-sm",children:"Cardinal Media Academy"}),s.jsx("p",{className:"text-white/60 text-xs",children:"Plot 11 Lateef Jakande Road, Agidingbi, Ikeja, Lagos"})]})]})]})]})},oI=()=>{const[e,t]=y.useState(!1),[r,o]=y.useState(null),[a,l]=y.useState(!0);y.useEffect(()=>{(async()=>{try{const f=await Ce("/api/cma-settings/");o(f)}
136catch(f){console.error("Failed to fetch CMA settings",f)}finally{l(!1)}})()},[]);const c=()=>t(!0);return a?s.jsx(Ue,{children:s.jsx("div",{className:"py-20 flex justify-center items-center",children:s.jsx(Bt,{className:"w-10 h-10 text-primary animate-spin"})})}):s.jsxs(s.Fragment,{children:[s.jsx(aD,{open:e,onOpenChange:t,selectedCourse:"Broadcast Media Pro Course"}),s.jsxs(Ue,{children:[s.jsx(At,{title:"Cardinal Media Academy - City 105.1 FM",description:"Nurturing the next generation of radio professionals and media entrepreneurs."}),s.jsx(Zr,{title:"Cardinal Media Academy",subtitle:"Nurturing the next generation of radio professionals and media entrepreneurs.",icon:Vm}),s.jsx(cD,{onEnroll:c}),s.jsx(fD,{settings:r,onEnroll:c}),s.jsx(rI,{}),s.jsx(sI,{settings:r,onEnroll:c})]})]})},iI=`${ft}/media/academy/broadcast-media-procourse.jpeg`,aI=["Broadcast Media Pro Course","Radio Presentation & Broadcasting","Audio Production & Sound Engineering","Music & Entertainment Journalism","Digital Media & Podcasting","Not sure yet – notify me of everything"],lI=[{icon:yh,label:"First to Know",desc:"Get notified the moment a new cohort opens"},{icon:Tw,label:"Early Bird Access",desc:"Priority access to early bird pricing"},{icon:vs,label:"Reserve Your Spot",desc:"Express interest before public registration"},{icon:Aw,label:"Join the Community",desc:"Connect with future CMA students"}],cI=()=>{const[e,t]=y.useState(null),[r,o]=y.useState({full_name:"",email:"",phone:"",course_interest:"",message:""}),[a,l]=y.useState(!1),[c,d]=y.useState(!1),[f,h]=y.useState(!1),[p,g]=y.useState("");y.useEffect(()=>{(async()=>{try{const w=await Ce("/api/cma-settings/");t(w)}catch(w){console.error("Failed to fetch CMA settings",w)}})()},[]);const x=(N,w)=>{o(j=>({...j,[N]:w})),g("")},v=async N=>{if(N.preventDefault(),!r.full_name||!r.email){g("Please fill in your name and email.");return}l(!0),g("");try{(await Ce("/api/cma-wishlist/",{method:"POST",body:JSON.stringify(r)}))?.status==="already_registered"?h(!0):d(!0)}catch(w){g(w.message||"Something went wrong. Please try again.")}finally{l(!1)}};return s.jsxs(Ue,{children:[s.jsx(At,{title:"Join the CMA Wishlist – Cardinal Media Academy",description:"Can't join now? Join the Cardinal Media Academy wishlist and be the first to know when the next cohort opens. Get early bird access and priority spot reservation."}),s.jsxs("section",{className:"relative overflow-hidden bg-gradient-to-br from-background via-background to-primary/5 py-20",children:[s.jsx("div",{className:"absolute inset-0 opacity-5 pointer-events-none",style:{backgroundImage:"radial-gradient(circle at 20% 50%, hsl(var(--primary)) 0%, transparent 50%), radial-gradient(circle at 80% 20%, hsl(var(--primary)) 0%, transparent 50%)"}}),s.jsxs("div",{className:"container mx-auto px-4 grid lg:grid-cols-2 gap-12 items-center relative",children:[s.jsxs("div",{children:[s.jsxs("span",{className:"inline-flex items-center gap-2 bg-[#1A110A] text-primary font-bold px-6 py-2 rounded-full text-sm mb-8 tracking-wide",children:[s.jsx(yh,{className:"w-3.5 h-3.5"})," 5-Week Intensive Programme"]}),s.jsx("h1",{className:"text-3xl md:text-4xl font-black text-foreground leading-[1.1] mb-8 uppercase tracking-tight",children:e?.hero_headline?e.hero_headline.split(" ").map((N,w)=>{const j=["pro","course"].includes(N.toLowerCase());return s.jsxs("span",{className:j?"text-primary":"",children:[N," ",w===1&&s.jsx("br",{className:"hidden lg:block"})]},w)}):s.jsxs(s.Fragment,{children:["Broadcast Media ",s.jsx("span",{className:"text-primary",children:"Pro"}),s.jsx("br",{}),s.jsx("span",{className:"text-primary",children:"Course"})," 2026"]})}),s.jsx("p",{className:"text-lg text-muted-foreground mb-8 leading-relaxed",children:e?.sub_headline||"The Cardinal Media Academy Broadcast Media Pro Course is one of Lagos' most sought-after media training programmes. Join our wishlist and get notified the moment a new cohort opens — plus exclusive early bird pricing."}),s.jsx("div",{className:"grid grid-cols-2 gap-4",children:lI.map(({icon:N,label:w,desc:j})=>s.jsxs("div",{className:"flex items-start gap-3 p-4 bg-card/50 border border-border/50 rounded-xl hover:border-primary/30 transition-colors",children:[s.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 flex items-center justify-center shrink-0 mt-0.5",children:s.jsx(N,{className:"w-4 h-4 text-primary"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-black text-foreground uppercase tracking-wide",children:w}),s.jsx("p",{className:"text-[11px] text-muted-foreground mt-0.5 leading-snug",children:j})]})]},w))})]}),s.jsxs("div",{className:"relative hidden lg:block",children:[s.jsx("div",{className:"absolute -inset-4 bg-primary/10 rounded-3xl blur-2xl"}),s.jsx("img",{src:e?.hero_image||iI,alt:"Cardinal Media Academy",className:"relative w-full rounded-2xl shadow-2xl"}),s.jsx("div",{className:"absolute bottom-4 left-4 right-4 bg-background/80 backdrop-blur-xl rounded-xl p-4 border border-border/50",children:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center",children:s.jsx(Vm,{className:"w-5 h-5 text-primary"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-black text-foreground uppercase tracking-widest",children:"Broadcast Media Pro Course"}),s.jsx("p",{className:"text-[11px] text-muted-foreground",children:"5-Week Intensive Programme · City 105.1 FM"})]})]})})]})]})]}),s.jsx("section",{className:"py-20 bg-muted/20",children:s.jsx("div",{className:"container mx-auto px-4 max-w-xl",children:c?s.jsxs("div",{className:"text-center py-16 animate-in fade-in zoom-in duration-500",children:[s.jsx("div",{className:"w-24 h-24 bg-green-500/10 border border-green-500/20 rounded-full flex items-center justify-center mx-auto mb-6",children:s.jsx(xa,{
136className:"w-12 h-12 text-green-500"})}),s.jsx("h2",{className:"text-3xl font-black text-foreground mb-3 uppercase tracking-tight",children:"You're on the List!"}),s.jsxs("p",{className:"text-muted-foreground mb-8 text-lg leading-relaxed",children:["Welcome, ",s.jsx("strong",{className:"text-foreground",children:r.full_name.split(" ")[0]}),"! We've added you to the Cardinal Media Academy wishlist. You'll be the first to know when the next cohort opens — and you'll get access to early bird pricing."]}),s.jsxs("div",{className:"bg-primary/5 border border-primary/20 rounded-2xl p-6 text-left",children:[s.jsx("p",{className:"text-xs font-black uppercase text-primary tracking-widest mb-3",children:"What Happens Next?"}),s.jsxs("ul",{className:"space-y-2 text-sm text-muted-foreground",children:[s.jsxs("li",{className:"flex items-start gap-2",children:[s.jsx("span",{className:"text-primary mt-0.5",children:"✓"})," Watch your inbox at ",s.jsx("strong",{className:"text-foreground",children:r.email})]}),s.jsxs("li",{className:"flex items-start gap-2",children:[s.jsx("span",{className:"text-primary mt-0.5",children:"✓"})," You'll get a notification when registration opens"]}),s.jsxs("li",{className:"flex items-start gap-2",children:[s.jsx("span",{className:"text-primary mt-0.5",children:"✓"})," Wishlist members get priority & early bird pricing"]})]})]}),s.jsx(at,{onClick:()=>window.location.href="/cma",className:"mt-8 px-8 h-12 rounded-xl font-bold uppercase tracking-widest",children:"Back to Academy"})]}):f?s.jsxs("div",{className:"text-center py-16 animate-in fade-in zoom-in duration-500",children:[s.jsx("div",{className:"w-24 h-24 bg-primary/10 border border-primary/20 rounded-full flex items-center justify-center mx-auto mb-6",children:s.jsx(T
136w,{className:"w-12 h-12 text-primary"})}),s.jsx("h2",{className:"text-3xl font-black text-foreground mb-3 uppercase tracking-tight",children:"Already Registered!"}),s.jsxs("p",{className:"text-muted-foreground mb-8 leading-relaxed",children:["Good news — you're already on the Cardinal Media Academy wishlist! We'll reach out to ",s.jsx("strong",{className:"text-foreground",children:r.email})," as soon as the next cohort opens."]}),s.jsx(at,{onClick:()=>window.location.href="/cma",className:"px-8 h-12 rounded-xl font-bold uppercase tracking-widest",children:"Back to Academy"})]}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"text-center mb-10",children:[s.jsx("h2",{className:"text-3xl font-black text-foreground mb-3",children:"Reserve Your Spot"}),s.jsx("p",{className:"text-muted-foreground",children:"Fill in your details below and we'll reach out when registration opens."})]}),s.jsx("div",{className:"bg-card border border-border/60 rounded-3xl p-8 shadow-xl",children:s.jsxs("form",{onSubmit:v,className:"space-y-5",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{htmlFor:"full_name",className:"text-[10px] font-black uppercase tracking-[0.2em] text-muted-foreground",children:"Full Name *"}),s.jsx(Je,{id:"full_name",value:r.full_name,onChange:N=>x("full_name",N.target.value),placeholder:"Enter your full name",required:!0,className:"h-12 rounded-xl border-border/60 focus:border-primary/50 bg-background"})]}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{htmlFor:"email",className:"text-[10px] font-black uppercase tracking-[0.2em] text-muted-foreground",children:"Email *"}),s.jsx(Je,{id:"email",type:"email",value:r.email,onChange:N=>x("email",N.target.value),placeholder:"[email protected]",required:!0,className:"h-12 rounded-xl bg-background"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{htmlFor:"phone",className:"text-[10px] font-black uppercase tracking-[0.2em] text-muted-foreground",children:"Phone"}),s.jsx(Je,{id:"phone",type:"tel",value:r.phone,onChange:N=>x("phone",N.target.value),placeholder:"+234...",className:"h-12 rounded-xl bg-background"})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{className:"text-[10px] font-black uppercase tracking-[0.2em] text-muted-foreground",children:"Interested In"}),s.jsxs(ei,{value:r.course_interest,onValueChange:N=>x("course_interest",N),children:[s.jsx(to,{className:"h-12 rounded-xl bg-background",children:s.jsx(ti,{placeholder:"Select a course (optional)"})}),s.jsx(ro,{children:aI.map(N=>s.jsx(no,{value:N,children:N},N))})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{htmlFor:"message",className:"text-[10px] font-black uppercase tracking-[0.2em] text-muted-foreground",children:"Anything you'd like us to know?"}),s.jsx(gi,{id:"message",value:r.message,onChange:N=>x("message",N.target.value),placeholder:"Your goals, questions, or special requirements...",rows:3,className:"rounded-xl bg-background resize-none border-border/60 focus:border-primary/50"})]}),p&&s.jsx("p",{className:"text-sm text-destructive font-bold bg-destructive/10 px-4 py-3 rounded-xl border border-destructive/20",children:p}),s.jsx(at,{type:"submit",disabled:a,className:"w-full h-14 text-base font-black uppercase rounded-2xl shadow-xl shadow-primary/20 hover:scale-[1.02] active:scale-95 transition-all",children:a?s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx(Bt,{className:"w-5 h-5 animate-spin"}),"Joining Wishlist..."]}):s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx(yh,{className:"w-5 h-5"}),"Join the Wishlist"]})}),s.jsx("p",{className:"text-[10px] text-center text-muted-foreground/70 leading-relaxed",children:"No spam, ever. We'll only contact you about CMA registration. You can unsubscribe anytime."})]})})]})})})]})},uI=()=>{const[e]=nM(),t=e.get("order_id"),r=e.get("email"),o=t||e.get("trxref")||e.get("reference")||"",[a,l]=y.useState(""),[c,d]=y.useState(""),[f,h]=y.useState("verifying"),[p,g]=y.useState(""),[x,v]=y.useState(!1);y.useEffect(()=>{if(r&&o){N(r,o);return}const j=localStorage.getItem("cma_enrollment_email");if(j&&o){N(j,o);return}if(o){h("needs_email");return}h("needs_email")},[]);const N=async(j,k)=>{if(!j){h("needs_email");return}v(!0),h("verifying"),g("");try{const C=await Ce("/api/cma-enrollments/confirm-selar-payment/",{method:"POST",body:JSON.stringify({email:j.trim().toLowerCase(),reference:k})});if(C.status==="success")l(j),h("success"),localStorage.removeItem("cma_enrollment_email");else throw new Error(C.message||"Payment verification failed")}catch(C){console.error("[CMA] Selar verification error:",C);const T=C.message||"Failed to verify payment with backend.";g(T),h("error")}finally{v(!1)}},w=j=>{j.preventDefault(),c.trim()&&N(c.trim(),o)};return s.jsxs(Ue,{children:[s.jsx(At,{title:"Payment Successful – Cardinal Media Academy",description:"Your Cardinal Media Academy registration payment confirmation page."}),s.jsxs("section",{className:"relative overflow-hidden min-h-[80vh] flex items-center bg-gradient-to-br from-background via-background to-primary/5 py-20",children:[s.jsx("div",{className:"absolute inset-0 opacity-5 pointer-events-none",style:{backgroundImage:"radial-gradient(circle at 50% 50%, hsl(var(--primary)) 0%, transparent 60%)"}}),s.jsx("div",{className:"container mx-auto px-4 max-w-lg relative z-10",children:s.jsxs("div",{className:"bg-card border border-border/60 rounded-3xl p-8 md:p-10 shadow-2xl text-center",children:[f==="verifying"&&s.jsxs("div",{className:"py-12 animate-in fade-in duration-500",children:[s.jsx("div",{className:"w-20 h-20 bg-primary/10 border border-primary/20 rounded-full flex items-center justify-center mx-auto mb-6",children:s.jsx(Bt,{className:"w-10 h-10 text-primary animate-spin"})}),s.jsx("h2",{className:"text-2xl font-black text-foreground uppercase tracking-tight mb-3",children:"Confirming Payment"}),s.jsx("p",{className:"text-muted-foreground text-sm max-w-sm mx-auto leading-relaxed",children:"Please wait while we verify your payment and secure your spot in the Academy…"}),o&&s.jsxs("p",{className:"text-xs text-primary font-mono mt-5 bg-primary/10 px-3 py-1.5 rounded-lg inline-block",children:["Ref
136: ",o]})]}),f==="success"&&s.jsxs("div",{className:"py-8 animate-in fade-in zoom-in duration-500",children:[s.jsx("div",{className:"w-24 h-24 bg-green-500/10 border border-green-500/20 rounded-full flex items-center justify-center mx-auto mb-6",children:s.jsx(xa,{className:"w-12 h-12 text-green-500"})}),s.jsx("h2",{className:"text-3xl font-black text-foreground mb-2 uppercase tracking-tight",children:"Payment Confirmed!"}),s.jsx("p",{className:"text-green-400 text-xs font-bold uppercase tracking-widest mb-6",children:"Welcome to Cardinal Media Academy"}),s.jsx("p",{className:"text-muted-foreground text-sm max-w-sm mx-auto leading-relaxed mb-6",children:"Your enrollment is confirmed and our team has been notified. You will receive a welcome email with onboarding details shortly."}),s.jsxs("div",{className:"bg-muted/30 border border-border/50 rounded-2xl p-5 text-left mb-8 space-y-2",children:[s.jsx("p",{className:"text-xs font-black uppercase text-primary tracking-wider mb-3",children:"Registration Summary"}),s.jsxs("div",{className:"text-xs space-y-1.5 text-muted-foreground",children:[s.jsxs("p",{children:["• Email: ",s.jsx("strong",{className:"text-foreground",children:a||r})]}),o&&s.jsxs("p",{children:["• Reference: ",s.jsx("strong",{className:"text-foreground font-mono",children:o})]}),s.jsxs("p",{children:["• Status: ",s.jsx("strong",{className:"text-green-400 uppercase",children:"Paid ✓"})]})]})]}),s.jsxs("p",{className:"text-xs text-muted-foreground mb-8 flex items-center justify-center gap-1.5",children:[s.jsx(ii,{className:"w-3.5 h-3.5"}),"Check your inbox — a confirmation email is on its way."]}),s.jsxs(at,{onClick:()=>window.location.href="/cma",className:"w-full h-14 bg-primary text-white rounded-2xl font-black uppercase tracking-widest transition-all shadow-lg shadow-primary/20 hover:scale-[1.02] active:scale-95 flex items-center justify-center gap-2",children:["Back to Academy Portal ",s.jsx(mn,{className:"w-4 h-4"})]})]}),f==="needs_email"&&s.jsxs("div",{className:"py-6 animate-in fade-in duration-500",children:[s.jsx("div",{className:"w-20 h-20 bg-amber-500/10 border border-amber-500/20 rounded-full flex items-center justify-center mx-auto mb-6",children:s.jsx(tv,{className:"w-10 h-10 text-amber-500"})}),s.jsx("h2",{className:"text-2xl font-black text-foreground mb-3 uppercase tracking-tight",children:"One More Step"}),s.jsx("p",{className:"text-muted-foreground text-sm max-w-sm mx-auto leading-relaxed mb-8",children:"We received your transaction but need to link it to your application. Please enter the email address you used when you filled the enrollment form."}),s.jsxs("form",{onSubmit:w,className:"space-y-4 text-left",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{htmlFor:"manual_email",className:"text-[10px] font-black uppercase tracking-widest text-muted-foreground",children:"Enrollment Email"}),s.jsx(Je,{id:"manual_email",type:"email",required:!0,value:c,onChange:j=>d(j.target.value),placeholder:"e.g. [email protected]",className:"h-12 rounded-xl bg-background border-border/60 focus:border-primary/50"})]}),s.jsx(at,{type:"submit",disabled:x,className:"w-full h-14 bg-primary text-white rounded-2xl font-black uppercase tracking-widest transition-all shadow-lg shadow-primary/20 hover:scale-[1.02] active:scale-95 flex items-center justify-center gap-2 mt-2",children:x?s.jsxs(s.Fragment,{children:[s.jsx(Bt,{className:"w-5 h-5 animate-spin"})," Verifying…"]}):s.jsxs(s.Fragment,{children:["Confirm My Payment ",s.jsx(mn,{className:"w-4 h-4"})]})})]}),o&&s.jsxs("p",{className:"text-[10px] text-muted-foreground mt-6 font-mono text-center",children:["Transaction Ref: ",o]})]}),f==="error"&&s.jsxs("div",{className:"py-6 animate-in fade-in duration-500",children:[s.jsx("div",{className:"w-20 h-20 bg-destructive/10 border border-destructive/20 rounded-full flex items-center justify-center mx-auto mb-6",children:s.jsx(tv,{className:"w-10 h-10 text-destructive"})}),s.jsx("h2",{className:"text-2xl font-black text-foreground mb-3 uppercase tracking-tight",children:"Verification Failed"}),s.jsx("p",{className:"text-sm text-destructive font-bold bg-destructive/5 border border-destructive/10 px-4 py-3 rounded-xl mb-6",children:p}),s.jsxs("p",{className:"text-muted-foreground text-xs max-w-sm mx-auto leading-relaxed mb-8",children:["Could not match this email to an enrollment record. Please double-check your email address or contact CMA admin support at"," ",s.jsx("a",{href:"mailto:[email protected]",className:"text-primary underline",children:"[email protected]"}),"."]}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[s.jsxs(at,{onClick:()=>h("needs_email"),variant:"outline",className:"flex-1 h-12 rounded-xl font-bold uppercase tracking-wider flex items-center justify-center gap-2",children:[s.jsx(zm,{className:"w-4 h-4"})," Try Again"]}),s.jsx(at,{onClick:()=>window.location.href="/cma",className:"flex-1 h-12 rounded-xl font-bold uppercase tracking-wider",children:"Back to Academy"})]})]})]})})]})]})},dI="https://city1051fm.cloud/",S0=e=>e?e.startsWith("http")?e:`${dI}${e}`:null,fI=()=>{const{slug:e}=Oa(),[t,r]=y.useState(null),[o,a]=y.useState([]),[l,c]=y.useState(!0),{isPlaying:d,setIsPlaying:f}=vn();if(y.useEffect(()=>{(async()=>{try{const[x,v]=await Promise.all([Ce(`/api/shows/${e}/`),Ce("/api/staff/")]);r({...x,image:S0(x.image)}),a(v.map(N=>({...N,image:S0(N.image)})))}catch(x){console.error("Failed to fetch data",x)}finally{c(!1)}})()},[e]),l)return s.jsx(Ue,{children:s.jsx("div",{className:"py-40 flex justify-center",children:s.jsx("div",{className:"w-12 h-12 border-4 border-primary border-t-transparent roun
136ded-full animate-spin"})})});if(!t)return s.jsx(Ue,{children:s.jsxs("div",{className:"container mx-auto px-4 py-20 text-center",children:[s.jsx("h1",{className:"text-4xl font-bold mb-4 uppercase",children:"Show Not Found"}),s.jsx("p",{className:"text-muted-foreground mb-8",children:"The show you are looking for does not exist."}),s.jsx(Pe,{to:"/shows",className:"bg-primary text-primary-foreground px-8 py-3 rounded-xl font-bold uppercase",children:"Back to All Shows"})]})});const h=Gr(t),p=o.filter(g=>{const x=t.host.toLowerCase(),v=g.name.toLowerCase();return!!(x.includes(v)||v==="twix da jims"&&x.includes("twix")||v==="oluwadamiloju saliu"&&x.includes("damiloju")||v==="michael mark-osagie"&&x.includes("mickeal")||v==="onome appeal"&&x.includes("onome"))});return s.jsxs(Ue,{children:[s.jsx(At,{title:`${t.title} - City 105.1 FM`,description:t.description,ogImage:t.image||void 0}),s.jsxs("section",{className:"relative h-[60vh] min-h-[400px] flex items-end",children:[s.jsxs("div",{className:"absolute inset-0",children:[s.jsx("img",{src:t.image,alt:t.title,className:"w-full h-full object-cover"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background via-background/60 to-transparent"})]}),s.jsxs("div",{className:"container mx-auto px-4 relative z-10 pb-12",children:[s.jsxs(Pe,{to:"/shows",className:"inline-flex items-center text-primary-foreground/80 hover:text-primary transition-colors mb-6 group",children:[s.jsx(oi,{className:"w-5 h-5 mr-1 group-hover:-translate-x-1 transition-transform"}),"Back to Schedule"]}),s.jsxs("div",{className:"flex flex-col md:flex-row md:items-end md:justify-between gap-6",children:[s.jsxs("div",{children:[s.jsx("span",{className:"bg-primary text-primary-foreground text-xs font-bold px-3 py-1 rounded uppercase tracking-widest mb-4 inline-block",children:t.category||"CITY SHOWS"}),s.jsx("h1",{className:"text-4xl md:text-6xl font-bold text-foreground mb-4 uppercase",children:t.title}),s.jsxs("div",{className:"flex flex-wrap gap-6 text-foreground/80",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(vs,{className:"w-5 h-5 text-primary"}),s.jsx("span",{className:"font-semibold",children:t.time})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Nr,{className:"w-5 h-5 text-primary"}),s.jsx("span",{className:"font-semibold",children:t.days})]})]})]}),s.jsxs(Pe,{to:"/player",onClick:()=>{!d&&h&&f(!0)},className:"flex items-center gap-3 bg-primary text-primary-foreground px-8 py-4 rounded-full font-bold hover:bg-primary/90 transition-all hover:scale-105 shadow-[0_10px_30px_rgba(234,30,37,0.3)]",children:[s.jsx(qT,{className:`w-8 h-8 ${d&&h?"animate-pulse":""}`}),s.jsxs("div",{className:"flex flex-col items-start leading-none uppercase",children:[s.jsx("span",{className:"text-[10px] opacity-80 tracking-widest mb-0.5",children:"Studio"}),s.jsx("span",{children:d&&h?"LISTENING NOW":"LISTEN TO CITY FM"})]})]})]})]})]}),s.jsx("section",{className:"py-16",children:s.jsx("div",{className:"container mx-auto px-4",children:s.jsxs("div",{className:"grid lg:grid-cols-3 gap-12",children:[s.jsxs("div",{className:"lg:cols-span-2 space-y-8",children:[s.jsxs("div",{children:[s.jsxs("h2",{className:"text-2xl font-bold mb-4 uppercase flex items-center gap-2",children:[s.jsx("span",{className:"w-8 h-1 bg-primary inline-block"}),"About The Show"]}),s.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:t.description})]}),s.jsxs("div",{className:"bg-card p-8 rounded-3xl border border-border",children:[s.jsxs("h2",{className:"text-xl font-bold mb-6 uppercase flex items-center gap-2",children:[s.jsx(ai,{className:"w-6 h-6 text-primary"}),"The Host(s)"]}),s.jsx("div",{className:"flex flex-wrap gap-4 mb-4",children:p.length>0?p.map(g=>s.jsxs(Pe,{to:`/staff/${g.slug}`,className:"flex items-center gap-3 bg-background hover:bg-muted p-2 pr-4 rounded-full border border-border transition-colors group",children:[s.jsx("img",{src:g.image,alt:g.name,className:"w-10 h-10 rounded-full object-cover group-hover:scale-105 transition-transform"}),s.jsx("span",{className:"font-medium group-hover:text-primary transition-colors",children:g.name})]},g.id)):s.jsx("p",{className:"text-xl text-foreground font-medium mb-2",children:t.host})}),s.jsx("p",{className:"text-muted-foreground mt-4",children:"Catch our world-class presenters bringing you the best of Lagos radio!"})]})]}),s.jsxs("div",{className:"space-y-8",children:[s.jsxs("div",{className:"bg-muted p-8 rounded-3xl",children:[s.jsx("h3",{className:"text-xl font-bold mb-4 uppercase",children:"Weekly Schedule"}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex justify-between items-center border-b border-border pb-2",children:[s.jsx("span",{className:"text-muted-foreground",children:"Days"}),s.jsx("span",{className:"font-bold",children:t.days})]}),s.jsxs("div",{className:"flex justify-between items-center",children:[s.jsx("span",{className:"text-muted-foreground",children:"Time"}),s.jsx("span",{className:"font-bold",children:t.time})]})]})]}),s.jsxs("div",{className:"relative group overflow-hidden rounded-3xl aspect-square",children:[s.jsx("img",{src:t.image,alt:t.title,className:"w-full h-full object-cover grayscale opacity-50 group-hover:grayscale-0 group-hover:opacity-100 transition-all duration-500"}),s.jsx("div",{className:"absolute inset-0 flex items-center justify-center p-8",children:s.jsx("p",{className:"text-2xl font-black text-center text-foreground uppercase tracking-tighter shadow-2xl",children:"WE RUN THIS CITY"})})]})]})]})})})]})},XN=({title:e="Never Miss an Event",subtitle:t="Subscribe to our newsletter and be the first to know about upcoming events and exclusive ticket offers.",className:r="",variant:o="default"})=>{const{toast:a}=ys(),[l,c]=y.useState(""),[d,f]=y.useState(!1),h=x=>{x.preventDefault(),l&&(f(!0),setTimeout(()=>{f(!1),a({title:"Welcome to the City!",description:"You've successfully subscribed to our newsletter."}),c("")},1e3))},p="w-full max-w-2xl mx-auto",g=o==="card"?"bg-card p-8 rounded-3xl border border-border shadow-xl text-center":"text-center";return s.jsxs("div",{className:`${p} ${g} ${r}`,children:[s.jsx("h2",{className:"text-3xl md:text-4xl font-black uppercase text-foreground mb-4 tracking-tighter",children:e}),s.jsx("p",{className:"text-muted-foreground mb-8 text-lg font-medium max-w-lg mx-auto",children:t}),s.jsxs("form",{onSubmit:h,className:"flex flex-col sm:flex-row gap-3 max-w-md mx-auto",children:[s.jsx("div",{className:"relative flex-1",children:s.jsx("input",{type:"email",value:l,onCh
136ange:x=>c(x.target.value),placeholder:"Enter your email",required:!0,className:"w-full h-14 px-6 rounded-2xl bg-muted/20 border border-border/60 text-foreground placeholder:text-muted-foreground/50 focus:border-primary/50 focus:ring-2 focus:ring-primary/10 transition-all outline-none"})}),s.jsx("button",{type:"submit",disabled:d,className:"h-14 px-8 bg-primary text-primary-foreground rounded-2xl font-black uppercase tracking-wider flex items-center justify-center gap-2 shadow-lg shadow-primary/20 hover:scale-[1.02] active:scale-95 transition-all disabled:opacity-50",children:d?s.jsx("span",{className:"w-5 h-5 border-2 border-primary-foreground/30 border-t-primary-foreground rounded-full animate-spin"}):s.jsxs(s.Fragment,{children:[s.jsx(uu,{className:"w-4 h-4"}),"Subscribe"]})})]}),s.jsx("p",{className:"mt-4 text-[10px] text-muted-foreground font-bold tracking-[0.2em] uppercase opacity-40",children:"City 105.1 FM • 100% Urban Content"})]})},hI=({open:e,onOpenChange:t,eventTitle:r,eventDate:o,eventVenue:a,eventPrice:l})=>{const{toast:c}=ys(),d=y.useRef(null),[f,h]=y.useState(!1),[p,g]=y.useState(null),[x,v]=y.useState(""),[N,w]=y.useState({name:"",email:"",phone:"",ticketQuantity:"1",ticketType:"Regular"});y.useEffect(()=>{if(e&&a){v("");let C=0;const T=setInterval(()=>{v(a.slice(0,C+1)),C++,C>=a.length&&clearInterval(T)},30);return()=>clearInterval(T)}},[e,a]);const j=l.toLowerCase().includes("free")?["General Admission"]:["Regular","VIP","VVIP","Table for 5"],k=C=>{if(C.preventDefault(),!p){c({title:"Security Verification Required",description:"Please complete the ReCAPTCHA to continue.",variant:"destructive"});return}h(!0),setTimeout(()=>{h(!1),c({title:"Registration Successful!",description:`We've sent the details for ${r} to your email.`}),w({name:"",email:"",phone:"",ticketQuantity:"1",ticketType:j[0]}),g(null),d.current?.reset(),t(!1)},1500)};return s.jsx(Fa,{open:e,onOpenChange:t,children:s.jsxs(mi,{className:"max-w-[480px] w-[95vw] p-0 overflow-hidden flex flex-col rounded-3xl border-primary/20 shadow-2xl bg-background",children:[s.jsxs("div",{className:"relative h-32 bg-primary flex items-center justify-center overflow-hidden",children:[s.jsx("div",{className:"absolute inset-0 opacity-20",children:s.jsx("div",{className:"absolute top-0 left-0 w-full h-full bg-[radial-gradient(circle_at_center,_var(--tw-gradient-stops))] from-white via-transparent to-transparent scale-150 animate-pulse"})}),s.jsxs("div",{className:"relative z-10 text-center text-primary-foreground",children:[s.jsx("div",{className:"flex justify-center mb-1",children:s.jsx(kh,{className:"w-8 h-8 opacity-50"})}),s.jsx(pi,{className:"text-xl font-black uppercase tracking-tighter",children:"Secure Your Spot"}),s.jsx("p",{className:"text-[10px] font-bold uppercase tracking-[0.3em] opacity-80 mt-1 px-4 truncate",children:r})]})]}),s.jsxs("div",{className:"p-8 overflow-y-auto max-h-[calc(90vh-128px)] scroll-smooth",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-8 bg-muted/30 p-4 rounded-2xl border border-border/50",children:[s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-[10px] font-black uppercase text-muted-foreground tracking-widest",children:"Date"}),s.jsxs("span",{className:"text-xs font-bold flex items-center gap-1.5 leading-none",children:[s.jsx(Nr,{className:"w-3.5 h-3.5 text-primary"})," ",o]})]}),s.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[s.jsx("span",{className:"text-[10px] font-black uppercase text-muted-foreground tracking-widest",children:"Venue"}),s.jsxs("span",{className:"text-xs font-bold flex items-center gap-1.5 leading-tight",children:[s.jsx(ya,{className:"w-3.5 h-3.5 text-primary flex-shrink-0"}),s.jsx("span",{className:"flex-1",children:x||a})]})]})]}),s.jsxs("form",{onSubmit:k,className:"space-y-6",children:[s.jsxs("div",{className:"space-y-5",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{htmlFor:"name",className:"text-[10px] font-black uppercase text-muted-foreground tracking-[0.2em] ml-1",children:"Full Name *"}),s.jsx(Je,{id:"name",value:N.name,onChange:C=>w(T=>({...T,name:C.target.value})),placeholder:"Enter your name",required:!0,className:"rounded-xl h-12 bg-muted/20 border-border/60 focus:border-primary/50"})]}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{htmlFor:"email",className:"text-[10px] font-black uppercase text-muted-foreground tracking-[0.2em] ml-1",children:"Email Address *"}),s.jsx(Je,{id:"email",type:"email",value:N.email,onChange:C=>w(T=>({...T,email:C.target.value})),placeholder:"[email protected]",required:!0,className:"rounded-xl h-12 bg-muted/20"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{htmlFor:"phone",className:"text-[10px] font-black uppercase text-muted-foreground tracking-[0.2em] ml-1",children:"Phone Number *"}),s.jsx(Je,{id:"phone",type:"tel",value:N.phone,onChange:C=>w(T=>({...T,phone:C.target.value})),placeholder:"+234...",required:!0,className:"rounded-xl h-12 bg-muted/20"})]})]}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{className:"text-[10px] font-black uppercase text-muted-foreground tracking-[0.2em] ml-1",children:"Ticket Type"}),s.jsxs(ei,{value:N.ticketType,onValueChange:C=>w(T=>({...T,ticketType:C})),children:[s.jsx(to,{className:"rounded-xl h-12 bg-muted/20",children:s.jsx(ti,{})}),s.jsx(ro,{children:j.map(C=>s.jsx(no,{value:C,children:C},C))})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{className:"text-[10px] font-black uppercase text-muted-foreground tracking-[0.2em] ml-1",children:"Quantity"}),s.jsxs(ei,{value:N.ticketQuantity,onValueChange:C=>w(T=>({...T,ticketQuantity:C})),children:[s.jsx(to,{className:"rounded-xl h-12 bg-muted/20",children:s.jsx(ti,{})}),s.jsx(ro,{children:[1,2,3,4,5].map(C=>s.jsx(no,{value:C.toString(),children:C},C))})]})]})]})]}),s.jsx("div",{className:"flex flex-col gap-4 py-6 items-center bg-muted/20 rounded-3xl border border-dashed border-border/60",children:s.jsx(Va,{ref:d,sitekey:"6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI",onChange:C=>g(C),theme:"dark"})}),s.jsx(at,{type:"submit",className:`w-full h-14 text-base font-black uppercase rounded-2xl shadow-xl transition-all ${p?"shadow-primary/30 hover:scale-[1.02] active:scale-95 bg-primary text-primary-foreground":"opacity-50 cursor-not-allowed grayscale"}`,disabled:f||!p,children:f?"Processing...":l.toLowerCase().includes("free")?"Register Now":"Proceed to Payment"}),s.jsx("p",{className:"text-[10px] text-muted-foreground text-center font-bold tracking-[0.2em] uppercase opacity-50",children:"Official Ticketing • City 105.1 FM"})]})]})]})})},mI=()=>{const[e,t]=y.useState(!1),[r,o]=y.useState(null),[a,l]=y.useState([]),[c,d]=y.useState(!0),f=k=>{try{const C=new Date(k);return isNaN(C.getTime())?k:C.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}catch{return k}},h=k=>{try{const C=new Date(k),T=new Date;return C.setHours(0,0,0,0),T.setHours(0,0,0,0),C>=T}catch{return!0}};y.useEffect(()=>{(async()=>{try{d(!0);const A=(await Ce("/api/events/")).filter(E=>!E.is_deleted).map(E=>{let D=E.image||"";if(D&&!D.startsWith("http")){const _=D.startsWith("/")?D:`/${D}`;D=`${ft}${_}`}let I="TBA";if(E.description){const _=E.description.match(/starting\s+at\s+(\d{1,2}:\d{2})/i);_&&(I=_[1])}return{id:E.id,title:E.title,date:f(E.date),rawDate:E.date,time:I,venue:E.location||"TBA",description:E.description||"",image:D,price:"Free Entry"}});l(A)}catch(C){console.error("Failed to fetch events:",C)}finally{d(!1)}})()},[]);const p=k=>{o(k),t(!0)},g=a.filter(k=>h(k.rawDate)),x=a.filter(k=>!h(k.rawDate)),v=[...g].sort((k,C)=>new Date(k.rawDate).getTime()-new Date(C.rawDate).getTime()),N=[...x].sort((k,C)=>new Date(C.rawDate).getTime()-new Date(k.rawDate).getTime()),w=v.slice(0,2).map(k=>({...k,featured:!0})),j=v.slice(2).map(k=>({...k,featured:!1}));return c?s.jsx(Ue,{children:s.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:s.jsx(Ic,{className:"w-8 h-8 animate-spin text-primary"})})}):s.jsxs(Ue,{children:[s.jsx(At,{title:"Events - City 105.1 FM",description:"Join us at the biggest events in Lagos! From concerts to live broadcasts, there's always something happening at City 105.1 FM."}),s.jsx(Zr,{title:"Events",subtitle:"Join us at the biggest events in Lagos! From concerts to live broadcasts, there's always something happening at City 105.1 FM.",icon:Nr}
136),s.jsx(hI,{open:e,onOpenChange:t,eventTitle:r?.title||"",eventDate:r?.date||"",eventVenue:r?.venue||"",eventPrice:r?.price||""}),w.length>0&&s.jsx("section",{className:"py-16",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsx("h2",{className:"text-3xl font-bold mb-8",children:"Upcoming Events"}),s.jsx("div",{className:"grid lg:grid-cols-2 gap-8",children:w.map(k=>s.jsxs("div",{className:"bg-card rounded-lg overflow-hidden shadow-lg border border-border hover:border-primary transition-colors flex flex-col",children:[s.jsxs("div",{className:"relative h-64",children:[s.jsx("img",{src:k.image,alt:k.title,className:"w-full h-full object-cover"}),s.jsx("div",{className:"absolute top-4 right-4",children:s.jsx("span",{className:"bg-primary text-primary-foreground px-3 py-1 rounded text-sm font-semibold shadow-lg",children:k.price})})]}),s.jsxs("div",{className:"p-8 flex flex-col flex-1",children:[s.jsx("h3",{className:"text-2xl font-black uppercase text-foreground mb-4 tracking-tighter leading-none",children:k.title}),s.jsx("p",{className:"text-muted-foreground mb-8 text-sm leading-relaxed",children:k.description}),s.jsxs("div",{className:"grid grid-cols-1 gap-4 mb-8",children:[s.jsxs("div",{className:"flex items-center gap-3 text-sm font-bold opacity-80",children:[s.jsx(Nr,{className:"w-4 h-4 text-primary"}),s.jsx("span",{className:"text-muted-foreground",children:k.date})]}),s.jsxs("div",{className:"flex items-center gap-3 text-sm font-bold opacity-80",children:[s.jsx(vs,{className:"w-4 h-4 text-primary"}),s.jsx("span",{className:"text-muted-foreground",children:k.time})]}),s.jsxs("div",{className:"flex items-center gap-3 text-sm font-bold opacity-80",children:[s.jsx(ya,{className:"w-4 h-4 text-primary"}),s.jsx("span",{className:"text-muted-foreground",children:k.venue})]})]}),s.jsxs("button",{onClick:()=>p(k),className:"w-full mt-auto bg-primary text-primary-foreground h-14 rounded-2xl font-black uppercase tracking-widest shadow-xl shadow-primary/20 hover:scale-[1.02] active:scale-95 transition-all flex items-center justify-center gap-3",children:[s.jsx(kh,{className:"w-5 h-5"}),"Get Tickets"]})]})]},k.id))})]})}),(j.length>0||w.length===0)&&s.jsx("section",{className:"bg-muted/30 py-16",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsx("h2",{className:"text-3xl font-bold mb-8",children:w.length===0?"Upcoming Events":"More Upcoming Events"}),w.length===0&&j.length===0?s.jsxs("div",{className:"text-center py-16 bg-card rounded-3xl border border-border/50 max-w-xl mx-auto p-8 shadow-lg",children:[s.jsx(Nr,{className:"w-12 h-12 text-primary mx-auto mb-4 opacity-50 animate-pulse"}),s.jsx("h3",{className:"text-xl font-black uppercase tracking-tight text-foreground mb-2",children:"No Upcoming Events Scheduled"}),s.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:"We are currently planning our next exciting line-up of events. Subscribe to our newsletter below or stay tuned to City 105.1 FM to be the first to know!"})]}):s.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:j.map(k=>s.jsxs("div",{onClick:()=>p(k),className:"bg-card rounded-3xl overflow-hidden shadow-lg border border-border/50 hover:border-primary/50 transition-all cursor-pointer group flex flex-col sm:flex-row h-auto sm:h-44",children:[s.jsx("div",{className:"w-full sm:w-44 h-48 sm:h-full relative overflow-hidden shrink-0",children:s.jsx("img",{src:k.image,alt:k.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),s.jsxs("div",{className:"p-5 sm:p-6 flex flex-col justify-between flex-1",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-black uppercase text-foreground mb-2 tracking-tight group-hover:text-primary transition-colors",children:k.title}),s.jsxs("div",{className:"space-y-1.5 text-[10px] uppercase font-bold text-muted-foreground tracking-widest opacity-60",children:[s.jsxs("p",{className:"flex items-center gap-2",children:[s.jsx(Nr,{className:"w-3.5 h-3.5 text-primary"})," ",k.date]}),s.jsxs("p",{className:"flex items-center gap-2",children:[s.jsx(ya,{className:"w-3.5 h-3.5 text-primary"})," ",k.venue]})]})]}),s.jsxs("div",{className:"flex items-center justify-between mt-4 sm:mt-2",children:[s.jsx("span",{className:"text-primary font-black text-xs uppercase tracking-widest bg-primary/10 px-3 py-1 rounded-full",children:k.price}),s.jsxs("span",{className:"text-[10px] font-black uppercase text-primary tracking-widest flex items-center gap-1 group-hover:gap-2 transition-all",children:["Book Now ",s.jsx(kh,{className:"w-3 h-3"})]})]})]})]},k.id))})]})}),N.length>0&&s.jsx("section",{className:"py-16",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsx("h2",{className:"text-3xl font-bold mb-8",children:"Past Events"}),s.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:N.map(k=>s.jsxs("div",{className:"relative rounded-lg overflow-hidden shadow-lg border border-border aspect-video group",children:[s.jsx("img",{src:k.image,alt:k.title,className:"absolute inset-0 w-full h-full object-cover grayscale group-hover:grayscale-0 group-hover:scale-105 transition-all duration-500"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent"}),s.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-4",children:[s.jsx("h3",{className:"font-bold text-white mb-1",children:k.title}),s.jsxs("p",{className:"text-sm text-white/70",children:[k.date," • ",k.venue]})]})]},k.id))})]})}),s.jsxs("section",{className:"py-20 bg-muted/30 border-y border-border/50 overflow-hidden relative",children:[s.jsx("div",{className:"absolute top-0 left-0 w-full h-full",children:s.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[800px] h-[800px] bg-primary/5 rounded-full blur-[120px] animate-pulse"})}),s.jsx("div",{className:"container px-4 relative z-10",children:s.jsx(XN,{title:"Never Miss an Event",subtitle:"Subscribe to our newsletter and be the first to know about upcoming events and exclusive ticket offers."})})]})]})},pI="/assets/station-building-CZWTTusp.png",gI="/assets/radio-studio-DXTJ2c90.jpg",xI="/assets/CITYFM%20RATE%20CARD%202026-kDkrC3FG.pdf",yI="/assets/DIGITAL%20RATE%20CARD%202026-Cr-TJsd3.pdf",lm="/assets/logo-city-round-kvbvIUlH.png",vI=e=>{if(!e)return"";if(e.startsWith("http"))return e;const t=e.startsWith("/")?e:`/${e}`;return`${ft}${t}`},bI=e=>e.toLowerCase().includes(".pdf")||e.toLowerCase().includes("raw/upload"),wI=()=>{const[e,t]=y.useState([]),[r,o]=y.useState(!0),a=()=>[{title:"Station Rate Card",icon:vh,link:xI,updatedAt:new Date().toISOString(),isPdfFile:!0},{title:"Digital Rate Card",icon:Nh,link:yI,updatedAt:new Date().toISOString(),isPdfFile:!0}];return y.useEffect(()=>{(async()=>{try{o(!0);const d=(await Ce("/api/rate-cards/?active=true")).map(f=>{const h=vI(f.file);return{title:f.title,icon:f.type==="digital"?Nh:vh,link:h,updatedAt:f.updated_at,isPdfFile:bI(h)}});t(d.length>0?d:a())}catch(c){console.error("Failed to fetch rate cards:",c),t(a())}finally{o(!1)}})()},[]),r&&e.length===0?s.jsx("div",{className:"py-20 flex justify-center",children:s.jsx("div",{className:"w-10 h-10 border-4 border-primary border-t-transparent roun
136ded-full animate-spin"})}):s.jsx("section",{className:"py-20 bg-muted/30",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsxs("div",{className:"text-center mb-12",children:[s.jsx("h2",{className:"text-3xl md:text-4xl font-black uppercase text-foreground tracking-tighter mb-4",children:"Official Rate Cards"}),s.jsx("div",{className:"w-16 h-1.5 bg-primary mx-auto rounded-full"})]}),s.jsx("div",{className:`grid gap-8 max-w-4xl mx-auto ${e.length===1?"grid-cols-1 max-w-2xl":"md:grid-cols-2"}`,children:e.map(l=>s.jsxs("div",{className:"bg-card rounded-2xl overflow-hidden shadow-xl border border-border/50 hover:border-primary/30 transition-all duration-500",children:[l.isPdfFile?s.jsx("div",{className:"w-full bg-muted/10",style:{height:"35vh",minHeight:"280px"},children:s.jsx("iframe",{src:`${l.link}#toolbar=0&navpanes=0&scrollbar=1`,title:l.title,className:"w-full h-full border-0"})}):s.jsx("div",{className:"aspect-[1/1.3] overflow-hidden bg-muted/20",children:s.jsx("img",{src:l.link||lm,alt:l.title,className:"w-full h-full object-contain p-4"})}),s.jsxs("div",{className:"p-5 bg-card border-t border-border/50",children:[s.jsx("div",{className:"flex items-center justify-between mb-3",children:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-9 h-9 bg-primary/10 rounded-xl flex items-center justify-center",children:s.jsx(l.icon,{className:"w-4 h-4 text-primary"})}),s.jsx("span",{className:"text-base font-black uppercase text-foreground tracking-tight",children:l.title})]})}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-2 mt-3",children:[s.jsxs("a",{href:l.link,target:"_blank",rel:"noopener noreferrer",className:"flex-1 inline-flex items-center justify-center gap-2 px-4 py-2.5 bg-primary text-primary-foreground rounded-xl font-bold hover:bg-primary/90 transition-all text-xs shadow-md shadow-primary/20",children:[s.jsx(Yr,{className:"w-3.5 h-3.5"}),"Open Full Screen"]}),s.jsxs("a",{href:l.link,download:!0,className:"flex-1 inline-flex items-center justify-center gap-2 px-4 py-2.5 bg-muted hover:bg-muted/80 text-foreground rounded-xl font-bold transition-all border border-border text-xs",children:[s.jsx(Qo,{className:"w-3.5 h-3.5"}),"Download"]})]}),s.jsxs("div",{className:"flex items-center gap-1.5 text-[9px] font-bold text-muted-foreground uppercase tracking-widest bg-muted/50 w-fit px-2.5 py-1 rounded-md border border-border/50 mt-3",children:[s.jsx(vs,{className:"w-2.5 h-2.5 text-primary"}),"Updated: ",new Date(l.updatedAt).toLocaleDateString()]})]})]},l.title))})]})})},Qf="/assets/2026%20Programmes%20Schedule-DwGieNJt.pdf",jI=e=>{if(!e)return"";if(e.startsWith("http"))return e;const t=e.startsWith("/")?e:`/${e}`;return`${ft}${t}`},NI=()=>{const[e,t]=y.useState(null),[r,o]=y.useState(!0);if(y.useEffect(()=>{(async()=>{try{o(!0);const d=await Ce("/api/programme-schedule/?active=true");d&&d.length>0&&t(d[0])}catch(d){console.error("Failed to fetch programme schedule:",d)}finally{o(!1)}})()},[]),r)return s.jsx("div",{className:"py-12 flex justify-center",children:s.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})});if(!e)return s.jsx("section",{className:"py-12",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsxs("div",{className:"flex items-center justify-center gap-2 mb-8",children:[s.jsx(Nr,{className:"w-6 h-6 text-primary"}),s.jsx("h2",{className:"text-2xl font-bold uppercase tracking-tight",children:"Programme Schedule"})]}),s.jsx("div",{className:"max-w-2xl mx-auto",children:s.jsxs("div",{className:"bg-card rounded-2xl overflow-hidden shadow-xl border border-border",children:[s.jsx("div",{className:"w-full bg-muted/10",style:{height:"35vh",minHeight:"280px"},children:s.jsx("iframe",{src:`${Qf}#toolbar=0&navpanes=0&scrollbar=1`,title:"Programme Schedule",className:"w-full h-full border-0"})}),s.jsxs("div",{className:"p-5 bg-muted/20 flex flex-col sm:flex-row items-center justify-center gap-3",children:[s.jsxs("a",{href:Qf,target:"_blank",rel:"noopener noreferrer",className:"w-full sm:w-auto inline-flex items-center justify-center gap-2 px-6 py-3 bg-primary text-primary-foreground rounded-xl font-bold hover:bg-primary/90 transition-all shadow-lg shadow-primary/25 text-sm",children:[s.jsx(Yr,{className:"w-4 h-4"}),s.jsx("span",{children:"Open Full Screen"})]}),s.jsxs("a",{href:Qf,download:!0,className:"w-full sm:w-auto inline-flex items-center justify-center gap-2 px-6 py-3 bg-muted hover:bg-muted/80 text-foreground rounded-xl font-bold transition-all border border-border text-sm",children:[s.jsx(Qo,{className:"w-4 h-4"}),s.jsx("span",{children:"Download PDF"})]})]})]})})]})});const a=jI(e.file),l=a.toLowerCase().endsWith(".pdf");return s.jsx("section",{className:"py-12",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsxs("div",{className:"flex items-center justify-center gap-2 mb-8",children:[s.jsx(Nr,{className:"w-6 h-6 text-primary"}),s.jsx("h2",{className:"text-2xl font-bold uppercase tracking-tight",children:"Programme Schedule"})]}),s.jsxs("div",{className:"max-w-2xl mx-auto",children:[s.jsx("div",{className:"bg-card rounded-2xl overflow-hidden shadow-xl border border-border",children:l?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"w-full bg-muted/10",style:{height:"35vh",minHeight:"280px"},children:s.jsx("iframe",{src:`${a}#toolbar=0&navpanes=0&scrollbar=1`,title:e.title,className:"w-full h-full border-0"})}),s.jsxs("div",{className:"p-5 bg-muted/20 flex flex-col sm:flex-row items-center justify-center gap-3",children:[s.jsxs("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"w-full sm:w-auto inline-flex items-center justify-center gap-2 px-6 py-3 bg-primary text-primary-foreground rounded-xl font-bold hover:bg-primary/90 transition-all shadow-lg shadow-primary/25 text-sm",children:[s.jsx(Yr,{className:"w-4 h-4"}),s.jsx("span",{children:"Open Full Screen"})]}),s.jsxs("a",{href:a,download:!0,className:"w-full sm:w-auto inline-flex items-center justify-center gap-2 px-6 py-3 bg-muted hover:bg-muted/80 text-foreground rounded-xl font-bold transition-all border border-border text-sm",children:[s.jsx(Qo,{className:"w-4 h-4"}),s.jsx("span",{children:"Download PDF"})]})]})]}):s.jsxs("div",{className:"relative group",children:[s.jsx("img",{src:a,alt:e.title,className:"w-full h-auto object-contain bg-background"}),s.jsx("div",{className:"absolute inset-0 bg-black/0 group-hover:bg-black/40 transition-all flex items-center justify-center opacity-0 group-hover:opacity-100",children:s.jsxs("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"bg-white text-black px-5 py-2.5 rounded-full font-bold flex items-center gap-2 hover:scale-105 transition-transform shadow-2xl text-sm",children:[s.jsx(Yr,{className:"w-4 h-4"}),s.jsx("span",{children:"View Full Size"})]})})]})}),s.jsx("div",{className:"text-center mt-4",children:s.jsxs("p",{className:"text-[10px] text-muted-foreground italic uppercase tracking-widest",children:["Last updated: ",new Date(e.uploaded_at).toLocaleDateString()]})})]})]})})},SI=[{year:"2010",title:"Station Launch",description:"Started operations as an urban radio station in Ikeja, Lagos, initially building its foundation in the competitive market."},{year:"2012",title:"Restructuring",description:"Adedoja Allen was appointed Managing Director to revamp the business model, navigating the station from insolvency to profitability."},{year:"2015",title:"Market Leadership",description:"Transformed into a consistent top-10 station in Lagos and a top-3 station in the urban lifestyle segment."},{year:"2018",title:"Cardinal Media Academy",description:"Established to train the next generation of media professionals, providing a direct pipeline for on-air talent."},{year:"2020",title:"10th Anniversary",description:"Celebrated a decade of operation in June 2020, solidifying its status as a significant Lagos urban station."},{year:"2025",title:"15th Anniversary",description:"Celebrating 15 years of excellence as Lagos' premier urban contemporary lifestyle station."}],kI=()=>{const[e,t]=y.useState(!1);return s.jsxs(Ue,{children:[s.jsx(At,{title:"About Us - City 105.1 FM",description:"Learn about City 105.1 FM, our mission, vision, and the #WeRunThisCity academy."}),s.jsx(Dj,{open:e,onOpenChange:t}),s.jsx(Zr,{title:"About City 105.1 FM",subtitle:"Lagos' #1 Urban Radio Station since 2010. We Run This City!",icon:Sf,image:pI}),s.jsx("section",{className:"py-16",children:s.jsx("div",{className:"container mx-auto px-4",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsxs("div",{children:[s.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Our Story"}),s.jsx("p",{className:"text-muted-foreground mb-4",children:"City 105.1 FM, launched in June 2010 in Lagos, is a premier urban contemporary lifestyle radio station targeting 18–40 year olds with music, news, and talk shows. After struggling initially, the station rebranded under Managing Director Adedoja Allen in 2012, moving from insolvency to become a top 10 station in Lagos."}),s.jsx("p",{className:"text-muted-foreground mb-4",children:'The station, known as "#WeRunThisCity," serves a B–D class demographic and has established itself as a major competitor in the Nigerian commercial radio space. Our growth is driven by a commitment to revamping the business model and maintaining a consistent presence in the urban lifestyle market.'}),s.jsx("p",{className:"text-muted-foreground",children:"Beyond broadcasting, we are dedicated to youth empowerment through the Cardinal Media Academy, which provides a pipeline for on-air talent. Our students spend three weeks in class and one week on air, gaining practical experience that shapes the future of Nigerian media."})]}),s.jsxs("div",{className:"relative",children:[s.jsx("img",{src:gI,alt:"Radio Studio",className:"rounded-lg shadow-2xl w-full object-cover"}),s.jsxs("div",{className:"absolute -bottom-6 -left-6 bg-primary text-primary-foreground p-6 rounded-lg shadow-lg",children:[s.jsx("div",{className:"text-4xl font-bold",children:"15+"}),s.jsx("div",{className:"text-sm",children:"Years on Air"})]})]})]})})}),s.jsx("section",{className:"bg-muted py-16",children:s.jsx("div",{className:"container mx-auto px-4",children:s.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[s.jsxs("div",{className:"bg-card p-8 rounded-lg shadow-lg relative overflow-hidden group border border-border",children:[s.jsx("div",{className:"absolute top-0 right-0 p-8 opacity-5 group-hover:opacity-10 transition-opacity",children:s.jsx(Sf,{className:"w-32 h-32"})}),s.jsx(Sf,{className:"w-12 h-12 text-primary mb-4 relative z-10"}),s.jsx("h3",{className:"text-2xl font-bold mb-4 relative z-10",children:"Our Mission"}),s.jsx("p",{className:"text-muted-foreground relative z-10 text-lg leading-relaxed",children:"To deliver ethical and value driven communication services across a broad range of media, firstly radio, whilst enhancing the lives of its key stakeholders - the listening public; with educational content, news material, ethics."})]}),s.jsxs("div",{className:"bg-card p-8 rounded-lg shadow-lg relative overflow-hidden group border border-border",children:[s.jsx("div",{className:"absolute top-0 right-0 p-8 opacity-5 group-hover:opacity-10 transition-opacity",children:s.jsx(Zy,{className:"w-32 h-32"})}),s.jsx(Zy,{className:"w-12 h-12 text-primary mb-4 relative z-10"}),s.jsx("h3",{className:"text-2xl font-bold mb-4 relative z-10",children:"Our Vision"}),s.jsx("p",{className:"text-muted-foreground relative z-10 text-lg leading-relaxed",children:"To be the top lifestyle influencing multimedia platform in all major cities in Nigeria."})]})]})})}),s.jsx("section",{className:"py-16",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsx("h2",{className:"text-3xl font-bold text-center mb-12 uppercase tracking-wide",children:"Core Values"}),s.jsxs("div",{className:"grid sm:grid-cols-3 lg:grid-cols-5 ga
136p-8 max-w-6xl mx-auto",children:[s.jsxs("div",{className:"text-center group",children:[s.jsx("div",{className:"w-20 h-20 bg-primary/10 rounded-full flex items-center justify-center mx-auto mb-6 group-hover:bg-primary transition-colors duration-300",children:s.jsx(WT,{className:"w-10 h-10 text-primary group-hover:text-primary-foreground transition-colors duration-300"})}),s.jsx("h3",{className:"text-xl font-bold mb-2 uppercase text-foreground",children:"Integrity"})]}),s.jsxs("div",{className:"text-center group",children:[s.jsx("div",{className:"w-20 h-20 bg-primary/10 rounded-full flex items-center justify-center mx-auto mb-6 group-hover:bg-primary transition-colors duration-300",children:s.jsx(Aw,{className:"w-10 h-10 text-primary group-hover:text-primary-foreground transition-colors duration-300"})}),s.jsx("h3",{className:"text-xl font-bold mb-2 uppercase text-foreground",children:"Teamwork"})]}),s.jsxs("div",{className:"text-center group",children:[s.jsx("div",{className:"w-20 h-20 bg-primary/10 rounded-full flex items-center justify-center mx-auto mb-6 group-hover:bg-primary transition-colors duration-300",children:s.jsx(Xo,{className:"w-10 h-10 text-primary group-hover:text-primary-foreground transition-colors duration-300"})}),s.jsx("h3",{className:"text-xl font-bold mb-2 uppercase text-foreground",children:"Responsibility"})]}),s.jsxs("div",{className:"text-center group",children:[s.jsx("div",{className:"w-20 h-20 bg-primary/10 rounded-full flex items-center justify-center mx-auto mb-6 group-hover:bg-primary transition-colors duration-300",children:s.jsx(gE,{className:"w-10 h-10 text-primary group-hover:text-primary-foreground transition-colors duration-300"})}),s.jsx("h3",{className:"text-xl font-bold mb-2 uppercase text-foreground",children:"Efficiency"})]}),s.jsxs("div",{className:"text-center group",children:[s.jsx("div",{className:"w-20 h-20 bg-primary/10 rounded-full flex items-center justify-center mx-auto mb-6 group-hover:bg-primary transition-colors duration-300",children:s.jsx(sE,{className:"w-10 h-10 text-primary group-hover:text-primary-foreground transition-colors duration-300"})}),s.jsx("h3",{className:"text-xl font-bold mb-2 uppercase text-foreground",children:"Innovation"})]})]})]})}),s.jsxs("section",{className:"py-24 bg-muted relative overflow-hidden",children:[s.jsx("div",{className:"absolute top-0 left-0 w-full h-full opacity-[0.03] select-none pointer-events-none flex items-center justify-center overflow-hidden",children:s.jsx("span",{className:"text-[20rem] font-black uppercase whitespace-nowrap -rotate-12",children:"CITY 105.1 FM"})}),s.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[s.jsxs("div",{className:"text-center mb-20",children:[s.jsx("h2",{className:"text-4xl md:text-5xl font-black uppercase text-foreground tracking-tighter mb-4",children:"Our Journey"}),s.jsx("div",{className:"w-24 h-2 bg-primary mx-auto rounded-full"})]}),s.jsxs("div",{className:"relative max-w-5xl mx-auto",children:[s.jsx("div",{className:"absolute left-[20px] md:left-1/2 md:-translate-x-1/2 top-0 bottom-0 w-0.5 bg-gradient-to-b from-primary/20 via-primary to-primary/20 shadow-[0_0_15px_rgba(234,28,44,0.3)]"}),s.jsx("div",{className:"space-y-12 md:space-y-16",children:SI.map((r,o)=>s.jsxs("div",{className:`relative flex flex-col md:flex-row items-start md:items-center ${o%2===1?"md:flex-row-reverse":""}`,children:[s.jsx("div",{className:"absolute left-[20px] md:left-1/2 md:-translate-x-1/2 w-3.5 h-3.5 bg-primary rounded-full z-20 border-[3px] border-background shadow-[0_0_8px_rgba(234,28,44,0.4)] transition-transform duration-500 hover:scale-125",children:s.jsx("div",{className:"absolute inset-0 animate-ping rounded-full bg-primary/30"})}),s.jsx("div",{className:"md:w-1/2 pl-10 md:pl-0 md:px-10",children:s.jsxs("div",{className:`p-6 bg-card rounded-xl border border-border/50 shadow-lg hover:shadow-xl hover:border-primary/20 transition-all duration-300 group ${o%2===1?"md:text-right":"md:text-left"}`,children:[s.jsx("div",{className:"inline-flex items-center justify-center w-14 h-14 bg-primary/5 rounded-full mb-4 font-black text-lg text-primary transform transition-transform group-hover:scale-105 group-hover:bg-primary group-hover:text-primary-foreground duration-500",children:r.year}),s.jsx("h3",{className:"text-xl font-black uppercase text-foreground mb-2 tracking-tight",children:r.title}),s.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed leading-snug",children:r.description})]})}),s.jsx("div",{className:"hidden md:block md:w-1/2"})]},o))})]})]})]}),s.jsx(wI,{}),s.jsx(NI,{}),s.jsx(Y1,{}),s.jsx("section",{className:"py-16",children:s.jsx("div",{className:"container mx-auto px-4",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12",children:[s.jsxs("div",{children:[s.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Contact Us"}),s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx("div",{className:"w-12 h-12 bg-primary/20 rounded-full flex items-center justify-center flex-shrink-0",children:s.jsx(ya,{className:"w-6 h-6 text-primary"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold text-foreground mb-1",children:"Address"}),s.jsx("p",{className:"text-muted-foreground",children:"Plot 11 Lateef Jakande Rd, Agidingbi, Ikeja 101233, Lagos"})]})]}),s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx("div",{className:"w-12 h-12 bg-primary/20 rounded-full flex items-center justify-center flex-shrink-0",children:s.jsx(cu,{className:"w-6 h-6 text-primary"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold text-foreground mb-1",children:"Phone"}),s.jsxs("div",{className:"space-y-1",children:[s.jsxs("p",{className:"text-muted-foreground",children:[s.jsx("span",{className:"font-bold text-foreground
136/80",children:"Marketing:"})," ",s.jsx("a",{href:"tel:07060649830",className:"hover:text-primary transition-colors",children:"07060649830"}),","," ",s.jsx("a",{href:"tel:07055027457",className:"hover:text-primary transition-colors",children:"07055027457"})]}),s.jsxs("p",{className:"text-muted-foreground",children:[s.jsx("span",{className:"font-bold text-foreground/80",children:"Studio Line:"})," ",s.jsx("a",{href:"tel:+2349090690328",className:"hover:text-primary transition-colors",children:"+234 909 069 0328"})]})]})]})]}),s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx("div",{className:"w-12 h-12 bg-primary/20 rounded-full flex items-center justify-center flex-shrink-0",children:s.jsx(ii,{className:"w-6 h-6 text-primary"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold text-foreground mb-1",children:"Email"}),s.jsx("a",{href:"mailto:[email protected]",className:"text-muted-foreground hover:text-primary transition-colors",children:"[email protected]"})]})]})]}),s.jsxs("div",{className:"mt-10 p-6 bg-card rounded-lg border border-border",children:[s.jsx("h3",{className:"text-xl font-bold mb-3",children:"Advertise With Us"}),s.jsx("p",{className:"text-muted-foreground mb-4",children:"Reach millions of affluent Lagos listeners with City 105.1 FM. Our audience includes decision-makers, professionals, and trendsetters across all demographics."}),s.jsx("button",{onClick:()=>t(!0),className:"bg-primary text-primary-foreground px-6 py-3 rounded font-semibold hover:bg-primary/90 transition-colors",children:"Request Media Kit"})]})]}),s.jsxs("div",{children:[s.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Find Us"}),s.jsx("div",{className:"rounded-xl overflow-hidden shadow-lg border border-border",children:s.jsx("iframe",{src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3963.3!2d3.3467!3d6.6145!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x103b9228e0f1b2a1%3A0x1234567890abcdef!2sPlot%2011%20Lateef%20Jakande%20Rd%2C%20Agidingbi%2C%20Ikeja%20101233%2C%20Lagos!5e0!3m2!1sen!2sng!4v1704123456789!5m2!1sen!2sng",width:"100%",height:"400",style:{border:0},allowFullScreen:!0,loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",title:"City 105.1 FM Location",className:"w-full"})}),s.jsxs("a",{href:"https://www.google.com/maps/dir//Plot+11+Lateef+Jakande+Rd,+Agidingbi,+Ikeja+101233,+Lagos",target:"_blank",rel:"noopener noreferrer",className:"mt-4 w-full bg-primary text-primary-foreground py-3 rounded font-semibold hover:bg-primary/90 transition-colors flex items-center justify-center gap-2",children:[s.jsx(ya,{className:"w-5 h-5"}),"Get Directions"]})]})]})})})]})},CI="https://city1051fm.cloud/",TI=e=>e?e.startsWith("http")?e:`${CI}${e}`:null,k0=e=>{const t=new Date(e),o=Math.floor((new Date().getTime()-t.getTime())/1e3);if(o<60)return`${o} seconds ago`;const a=Math.floor(o/60);if(a<60)return`${a} mins ago`;const l=Math.floor(a/60);return l<24?`${l} hours ago`:t.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})},EI=()=>{const[e,t]=y.useState([]),[r,o]=y.useState(["Latest"]),[a,l]=y.useState(!0),[c,d]=y.useState("Latest"),[f,h]=y.useState([]),{toast:p}=ys(),[g,x]=y.useState(1);y.useEffect(()=>{x(1)},[c]),y.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[g]),y.useEffect(()=>{const _=[];for(let H=0;H<localStorage.length;H++){const z=localStorage.key(H);z&&z.startsWith("liked_news_")&&_.push(Number(z.replace("liked_news_","")))}h(_)},[]);const v=async(_,H)=>{if(_.preventDefault(),_.stopPropagation(),!f.includes(H.id))try{const z=H.slug||String(H.id),G=await Ce(`/api/news/${z}/like/`,{method:"POST"});t(le=>le.map(F=>F.id===H.id?{...F,likes:G.likes}:F));const q=[...f,H.id];h(q),localStorage.setItem(`liked_news_${H.id}`,"true"),p({title:"Liked!",description:"Thank you for your response."})}catch(z){console.error("Failed to like news:",z)}},N=async(_,H)=>{_.preventDefault(),_.stopPropagation();const z=`${window.location.origin}/news/${H.slug||H.id}`;try{navigator.share?await navigator.share({title:H.title,text:H.excerpt,url:z}):(await navigator.clipboard.writeText(z),p({title:"Link Copied!",description:"Story link copied to clipboard."}));const G=H.slug||String(H.id);Ce(`/api/news/${G}/share/`,{method:"POST"}).catch(()=>{})}catch(G){console.error("Failed to share news:",G)}};y.useEffect(()=>{(async()=>{try{l(!0);const z=(await Ce("/api/news/")).map(le=>({...le,image:TI(le.image)}));t(z);const q=["Latest",...(await Ce("/api/news-categories/")).map(le=>le.name)];o(q)}catch(H){console.error("Failed to load news data",H)}finally{l(!1)}})()},[]);const w=c==="Latest"?e:e.filter(_=>_.category.toLowerCase().replace(/_/g," ")===c.toLowerCase().replace(/_/g," ")),j=w.length,k=c==="Latest",C=Math.max(1,k?j<=10?1:1+Math.ceil((j-10)/9):Math.ceil(j/9));let T=0,A=0;k?g===1?(T=0,A=10):(T=10+(g-2)*9,A=T+9):(T=(g-1)*9,A=T+9);const E=w.slice(T,A),D=k&&g===1&&E.length>0?E[0]:null,I=k&&g===1?E.length>1?E.slice(1):[]:E;return s.jsxs(Ue,{children:[s.jsx(At,{title:"Latest News - City 105.1 FM",description:"Stay updated with the latest in music, entertainment, sports, and more from City 105.1 FM."}),s.jsx(Zr,{title:"Latest News",subtitle:"Stay updated with the latest in music, entertainment, sports, and more from City 105.1 FM.",icon:vc}),s.jsx("section",{className:"py-8 border-b border-border",children:s.jsx("div",{className:"container mx-auto px-4",children:s.jsx("div",{className:"flex flex-wrap gap-4 justify-center",children:r.map(_=>s.jsx("button",{onClick:()=>d(_),className:`px-4 py-2 rounded-full border transition-colors ${c===_?"border-primary bg-primary text-primary-foreground":"border-border text-muted-foreground hover:border-primary hover:text-primary"}`,children:_},_))})})}),a?s.jsx("div",{className:"py-20 flex justify-center",children:s.jsx("div",{className:"w-10 h-10 border-4 border-primary border-t-transparent roun
136ded-full animate-spin"})}):w.length===0?s.jsx("div",{className:"py-20 text-center text-muted-foreground",children:"No news found for this category."}):s.jsxs(s.Fragment,{children:[D&&s.jsx("section",{className:"py-16",children:s.jsx("div",{className:"container mx-auto px-4",children:s.jsx("div",{className:"bg-card rounded-3xl overflow-hidden shadow-xl border border-border hover:border-primary transition-colors",children:s.jsxs("div",{className:"grid lg:grid-cols-2",children:[s.jsx("div",{className:"h-64 lg:h-full relative overflow-hidden bg-muted flex items-center justify-center",children:D.image?s.jsx("img",{src:D.image,alt:D.title,className:"w-full h-full object-cover hover:scale-105 transition-transform duration-700"}):s.jsx(vc,{className:"w-20 h-20 text-muted-foreground/30"})}),s.jsxs("div",{className:"p-8 lg:p-12 flex flex-col justify-center",children:[s.jsx("span",{className:"text-primary font-bold text-xs tracking-widest uppercase mb-4",children:D.category.replace(/_/g," ")}),s.jsx("h2",{className:"text-3xl lg:text-4xl font-extrabold text-foreground tracking-tight leading-tight mb-6 line-clamp-3",children:D.title}),s.jsx("p",{className:"text-muted-foreground mb-8 text-lg line-clamp-3",children:D.excerpt}),s.jsxs("div",{className:"flex flex-wrap items-center gap-6 text-sm text-muted-foreground mb-8 font-semibold uppercase tracking-wider",children:[s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx(ai,{className:"w-4 h-4"}),D.author_details?.name||D.author]}),s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx(Nr,{className:"w-4 h-4"}),k0(D.created_at)]}),s.jsxs("span",{className:"flex items-center gap-2",title:"Views",children:[s.jsx(Yr,{className:"w-4 h-4"}),(D.views||0).toLocaleString()," Views"]}),s.jsxs("button",{onClick:_=>v(_,D),className:`flex items-center gap-2 hover:text-primary transition-colors cursor-pointer ${f.includes(D.id)?"text-primary":""}`,children:[s.jsx(Xo,{className:`w-4 h-4 ${f.includes(D.id)?"fill-primary":""}`}),(D.likes||0).toLocaleString()," Likes"]}),s.jsxs("button",{onClick:_=>N(_,D),className:"flex items-center gap-2 hover:text-primary transition-colors cursor-pointer",children:[s.jsx(hs,{className:"w-4 h-4"}),"Share"]})]}),s.jsxs(Pe,{to:`/news/${D.slug||D.id}`,className:"inline-flex items-center gap-3 bg-primary text-primary-foreground font-bold px-6 py-3 rounded-xl hover:bg-primary/90 hover:gap-4 transition-all w-fit",children:["Read Story ",s.jsx(mn,{className:"w-5 h-5"})]})]})]})})})}),I.length>0&&s.jsx("section",{className:"bg-muted py-16 lg:py-24",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsxs("h2",{className:"text-3xl font-extrabold tracking-tight mb-12 flex items-center gap-3",children:[s.jsx("span",{className:"w-8 h-1 bg-primary rounded-full"}),g===1?"Recent Stories":"More Stories"]}),s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:I.map(_=>s.jsxs(Pe,{to:`/news/${_.slug||_.id}`,className:"bg-card p-4 rounded-[2rem] border border-border hover:border-primary transition-all hover:-translate-y-2 block group flex flex-col h-full shadow-lg",children:[s.jsxs("div",{className:"relative aspect-[4/3] rounded-2xl overflow-hidden bg-muted/50 mb-5 flex items-center justify-center",children:[_.image?s.jsx("img",{src:_.image,alt:_.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}):s.jsx(vc,{className:"w-12 h-12 text-muted-foreground/30"}),s.jsx("div",{className:"absolute top-3 left-3 bg-black/85 backdrop-blur-sm text-white text-[10px] font-black uppercase px-3.5 py-1.5 rounded-lg tracking-widest border border-white/10 z-10",children:_.category.replace(/_/g," ")})]}),s.jsxs("div",{className:"flex flex-col flex-grow px-2",children:[s.jsx("h3",{className:"text-xl font-bold text-foreground mb-4 line-clamp-2 group-hover:text-primary transition-colors leading-snug",children:_.title}),s.jsx("p",{className:"text-muted-foreground text-sm mb-6 line-clamp-3 flex-grow",children:_.excerpt}),s.jsxs("div",{className:"flex items-center justify-between mt-auto pt-4 border-t border-border gap-2",children:[s.jsxs("div",{className:"flex items-center gap-1.5 text-[10px] sm:text-xs font-bold text-muted-foreground uppercase tracking-widest",children:[s.jsx(Nr,{className:"w-3.5 h-3.5"}),s.jsx("span",{children:k0(_.created_at)})]}),s.jsxs("div",{className:"flex items-center gap-3 sm:gap-4 text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:[s.jsxs("span",{className:"flex items-center gap-1 text-muted-foreground
136/70",title:"Views",children:[s.jsx(Yr,{className:"w-3.5 h-3.5"}),s.jsx("span",{children:(_.views||0).toLocaleString()})]}),s.jsxs("button",{onClick:H=>v(H,_),className:`flex items-center gap-1 transition-colors hover:text-primary cursor-pointer ${f.includes(_.id)?"text-primary":"text-muted-foreground/70"}`,title:"Like",children:[s.jsx(Xo,{className:`w-3.5 h-3.5 ${f.includes(_.id)?"fill-primary":""}`}),s.jsx("span",{children:(_.likes||0).toLocaleString()})]}),s.jsx("button",{onClick:H=>N(H,_),className:"flex items-center gap-1 transition-colors hover:text-primary text-muted-foreground/70 cursor-pointer",title:"Share",children:s.jsx(hs,{className:"w-3.5 h-3.5"})}),s.jsx("div",{className:"w-8 h-8 rounded-full bg-primary/10 text-primary flex items-center justify-center group-hover:bg-primary group-hover:text-primary-foreground transition-colors shrink-0",children:s.jsx(mn,{className:"w-4 h-4 group-hover:translate-x-0.5 transition-transform"})})]})]})]})]},_.id))}),C>1&&s.jsxs("div",{className:"flex justify-center items-center gap-2 mt-12 pt-8 border-t border-border",children:[s.jsx("button",{onClick:()=>x(_=>Math.max(_-1,1)),disabled:g===1,className:"px-4 py-2 rounded-xl border border-border text-xs font-black uppercase tracking-wider bg-card text-muted-foreground hover:border-primary hover:text-primary disabled:opacity-50 disabled:hover:text-muted-foreground disabled:hover:border-border transition-colors cursor-pointer",children:"Previous"}),s.jsx("div",{className:"flex items-center gap-1.5",children:Array.from({length:C}).map((_,H)=>{const z=H+1;return s.jsx("button",{onClick:()=>x(z),className:`w-9 h-9 rounded-xl text-xs font-black transition-all border ${g===z?"bg-primary text-primary-foreground border-primary shadow-md shadow-primary/20":"bg-card text-muted-foreground border-border hover:border-primary/50"}`,children:z},z)})}),s.jsx("button",{onClick:()=>x(_=>Math.min(_+1,C)),disabled:g===C,className:"px-4 py-2 rounded-xl border border-border text-xs font-black uppercase tracking-wider bg-card text-muted-foreground hover:border-primary hover:text-primary disabled:opacity-50 disabled:hover:text-muted-foreground disabled:hover:border-border transition-colors cursor-pointer",children:"Next"})]})]})})]}),s.jsxs("section",{className:"py-20 bg-muted/50 border-t border-border/50 relative overflow-hidden",children:[s.jsxs("div",{className:"absolute inset-0",children:[s.jsx("div",{className:"absolute bottom-0 right-0 w-[500px] h-[500px] bg-primary/5 rounded-full blur-[100px] translate-x-1/2 translate-y-1/2"}),s.jsx("div",{className:"absolute top-0 left-0 w-[500px] h-[500px] bg-primary/5 rounded-full blur-[100px] -translate-x-1/2 -translate-y-1/2"})]}),s.jsx("div",{className:"container mx-auto px-4 relative z-10",children:s.jsx(XN,{variant:"card",title:"Subscribe to Our Newsletter",subtitle:"Get the latest news and updates delivered straight to your inbox every week."})})]})]})},PI=e=>e?e.startsWith("http")?e:`${ft}${e}`:null,AI=()=>{const{slug:e}=Oa(),[t,r]=y.useState(null),[o,a]=y.useState(!0),[l,c]=y.useState(null),[d,f]=y.useState(0),[h,p]=y.useState(0),[g,x]=y.useState(0),[v,N]=y.useState(!1),[w,j]=y.useState("Share");y.useEffect(()=>{e&&(async()=>{try{a(!0);const A=await Ce(`/api/news/${e}/`),E={...A,image:PI(A.image)};r(E),f(A.likes),p(A.shares),x(A.views)}catch(A){c("Failed to load news details."),console.error(A)}finally{a(!1)}})()},[e]),y.useEffect(()=>{!e||o||l||Ce(`/api/news/${e}/view/`,{method:"POST"}).then(T=>x(T.views)).catch(()=>{})},[e,o,l]);const k=async()=>{if(!(v||!e))try{const T=await Ce(`/api/news/${e}/like/`,{method:"POST"});f(T.likes),N(!0)}catch(T){console.error("Failed to like news:",T)}},C=async()=>{if(!e||!t)return;const T=window.location.href;try{navigator.share?await navigator.share({title:t.title,text:t.excerpt,url:T}):(await navigator.clipboard.writeText(T),j("Link copied!"),setTimeout(()=>j("Share"),2500));const A=await Ce(`/api/news/${e}/share/`,{method:"POST"});p(A.shares)}catch(A){console.error("Failed to share news:",A)}};return o?s.jsx(Ue,{children:s.jsx("div",{className:"container mx-auto px-4 py-20 flex justify-center items-center min-h-[50vh]",children:s.jsx("div",{className:"w-12 h-12 border-4 border-primary border-t-transparent roun
136ded-full animate-spin"})})}):l||!t?s.jsx(Ue,{children:s.jsxs("div",{className:"container mx-auto px-4 py-20 text-center min-h-[50vh] flex flex-col justify-center items-center",children:[s.jsx("h2",{className:"text-3xl font-bold mb-4",children:"News Not Found"}),s.jsx("p",{className:"text-muted-foreground mb-8",children:"The article you are looking for does not exist or an error occurred."}),s.jsxs(Pe,{to:"/news",className:"bg-primary text-primary-foreground px-6 py-3 rounded-lg font-semibold hover:bg-primary/90 transition-colors inline-flex items-center gap-2",children:[s.jsx(Ko,{className:"w-4 h-4"})," Back to News"]})]})}):s.jsxs(Ue,{children:[s.jsx(At,{title:`${t.title} - City 105.1 FM`,description:t.excerpt}),s.jsx("article",{className:"py-12 md:py-20 lg:py-24",children:s.jsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[s.jsxs(Pe,{to:"/news",className:"inline-flex items-center gap-2 text-muted-foreground hover:text-primary transition-colors mb-8 text-sm font-semibold uppercase tracking-wider",children:[s.jsx(Ko,{className:"w-4 h-4"})," Back to News"]}),s.jsxs("header",{className:"mb-10 text-center md:text-left",children:[s.jsxs("div",{className:"inline-flex items-center gap-2 bg-primary/10 text-primary px-3 py-1 rounded-full text-xs font-bold uppercase tracking-widest mb-6",children:[s.jsx(Ew,{className:"w-3 h-3"}),t.category]}),s.jsx("h1",{className:"text-3xl md:text-5xl lg:text-6xl font-extrabold text-foreground tracking-tight leading-tight mb-6",children:t.title}),s.jsxs("div",{className:"flex flex-wrap items-center justify-center md:justify-start gap-6 text-muted-foreground text-sm font-medium",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(ai,{className:"w-4 h-4"}),s.jsx("span",{className:"uppercase tracking-wider",children:t.author_details?.name||t.author})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Nr,{className:"w-4 h-4"}),s.jsx("span",{className:"uppercase tracking-wider",children:t.formatted_date})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Yr,{className:"w-4 h-4"}),s.jsxs("span",{className:"uppercase tracking-wider",children:[g.toLocaleString()," views"]})]})]})]}),t.image&&s.jsx("div",{className:"mb-12 rounded-3xl overflow-hidden shadow-2xl relative aspect-[16/9]",children:s.jsx("img",{src:t.image,alt:t.title,className:"absolute inset-0 w-full h-full object-cover hover:scale-105 transition-transform duration-700"})}),s.jsx("div",{className:"prose prose-lg dark:prose-invert max-w-none prose-headings:font-bold prose-a:text-primary hover:prose-a:text-primary/80 prose-img:rounded-xl",children:t.content.split(`
137`).map((T,A)=>T.trim()?s.jsx("p",{children:T},A):s.jsx("br",{},A))}),s.jsx("div",{className:"mt-16 pt-8 border-t border-border",children:s.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-6",children:[s.jsxs("div",{className:"flex items-center gap-6 text-sm text-muted-foreground font-semibold uppercase tracking-wider",children:[s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx(Yr,{className:"w-4 h-4"})," ",g.toLocaleString()," Views"]}),s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx(Xo,{className:`w-4 h-4 ${v?"fill-primary text-primary":""}`}),d.toLocaleString()," Likes"]}),s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx(hs,{className:"w-4 h-4"})," ",h.toLocaleString()," Shares"]})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("button",{onClick:k,disabled:v,className:`flex items-center gap-2 px-5 py-2.5 rounded-full font-bold text-sm transition-all duration-200 border ${v?"bg-primary/10 text-primary border-primary cursor-default":"border-border text-muted-foreground hover:border-primary hover:text-primary hover:bg-primary/5 active:scale-95"}`,children:[s.jsx(Xo,{className:`w-4 h-4 transition-all ${v?"fill-primary scale-110":""}`}),v?"Liked!":"Like"]}),s.jsxs("button",{onClick:C,className:"flex items-center gap-2 px-5 py-2.5 rounded-full font-bold text-sm border border-border text-muted-foreground hover:border-primary hover:text-primary hover:bg-primary/5 active:scale-95 transition-all duration-200",children:[s.jsx(hs,{className:"w-4 h-4"}),w]})]})]})})]})})]})},RI=({open:e,onOpenChange:t})=>{const{toast:r}=ys(),o=y.useRef(null),[a,l]=y.useState(!1),[c,d]=y.useState(null),[f,h]=y.useState({name:"",email:"",ph
137one:"",podcastIdea:"",experience:"None",supportNeeded:"Full Production"}),p=["Full Production","Studio Access Only","Distribution Support","Hosting & Marketing","Consultation"],g=["None (Just starting)","Beginner (Some recording)","Intermediate (Regular episodes)","Professional (Full-scale production)"],x=v=>{if(v.preventDefault(),!c){r({title:"Security Verification Required",description:"Please complete the ReCAPTCHA to continue.",variant:"destructive"});return}if(!f.name||!f.email||!f.phone||!f.podcastIdea){r({title:"Missing Information",description:"Please fill in all required fields.",variant:"destructive"});return}l(!0),setTimeout(()=>{l(!1),r({title:"Message Sent!",description:"Our podcast team will review your proposal and get back to you."}),h({name:"",email:"",phone:"",podcastIdea:"",experience:"None",supportNeeded:"Full Production"}),d(null),o.current?.reset(),t(!1)},1200)};return s.jsx(Fa,{open:e,onOpenChange:t,children:s.jsxs(mi,{className:"max-w-[460px] w-[95vw] max-h-[90vh] p-0 overflow-hidden flex flex-col rounded-3xl border-primary/20 shadow-2xl bg-background",children:[s.jsxs($a,{className:"p-8 pb-4",children:[s.jsx(pi,{className:"text-2xl font-black uppercase text-primary tracking-tighter leading-none",children:"Podcast Partnership"}),s.jsx("p",{className:"text-muted-foreground text-sm font-medium mt-2",children:"Share your vision with Lagos' premier podcast network."})]}),s.jsx("div",{className:"flex-1 overflow-y-auto px-8 pb-10 border-t border-border/50 scroll-smooth",children:s.jsxs("form",{onSubmit:x,className:"space-y-6 pt-6",children:[s.jsxs("div",{className:"grid gap-5",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{htmlFor:"name",className:"text-[10px] font-black uppercase text-muted-foreground tracking-[0.2em] ml-1",children:"Full Name / Brand *"}),s.jsx(Je,{id:"name",value:f.name,onChange:v=>h(N=>({...N,name:v.target.value})),placeholder:"Your name or company",required:!0,className:"rounded-xl h-12 bg-muted/20 border-border/60 focus:border-primary/50"})]}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{htmlFor:"email",className:"text-[10px] font-black uppercase text-muted-foreground tracking-[0.2em] ml-1",children:"Email *"}),s.jsx(Je,{id:"email",type:"email",value:f.email,onChange:v=>h(N=>({...N,email:v.target.value})),placeholder:"[email protected]",required:!0,className:"rounded-xl h-12 bg-muted/20"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{htmlFor:"phone",className:"text-[10px] font-black uppercase text-muted-foreground tracking-[0.2em] ml-1",children:"Phone *"}),s.jsx(Je,{id:"phone",type:"tel",value:f.phone,onChange:v=>h(N=>({...N,phone:v.target.value})),placeholder:"+234...",required:!0,className:"rounded-xl h-12 bg-muted/20"})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{className:"text-[10px] font-black uppercase text-muted-foreground tracking-[0.2em] ml-1",children:"Podcast Experience"}),s.jsxs(ei,{value:f.experience,onValueChange:v=>h(N=>({...N,experience:v})),children:[s.jsx(to,{className:"rounded-xl h-12 bg-muted/20",children:s.jsx(ti,{})}),s.jsx(ro,{children:g.map(v=>s.jsx(no,{value:v,children:v},v))})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{className:"text-[10px] font-black uppercase text-muted-foreground tracking-[0.2em] ml-1",children:"Requested Support"}),s.jsxs(ei,{value:f.supportNeeded,onValueChange:v=>h(N=>({...N,supportNeeded:v})),children:[s.jsx(to,{className:"rounded-xl h-12 bg-muted/20",children:s.jsx(ti,{})}),s.jsx(ro,{children:p.map(v=>s.jsx(no,{value:v,children:v},v))})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(De,{htmlFor:"idea",className:"text-[10px] font-black uppercase text-muted-foreground tracking-[0.2em] ml-1",children:"Your Podcast Idea *"}),s.jsx(gi,{id:"idea",value:f.podcastIdea,onChange:v=>h(N=>({...N,podcastIdea:v.target.value})),placeholder:"Tell us about your show concept, target audience, and goals...",rows:5,required:!0,className:"rounded-2xl bg-muted/20 border-border/60 focus:border-primary/50 resize-none p-4"})]})]}),s.jsx("div",{className:"flex flex-col gap-4 py-6 items-center bg-primary/5 rounded-3xl border border-dashed border-primary/20",children:s.jsx(Va,{ref:o,sitekey:"6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI",onChange:v=>d(v),theme:"dark"})}),s.jsx(at,{type:"submit",className:`w-full h-14 text-base font-black uppercase rounded-2xl shadow-2xl transition-all ${c?"shadow-primary/30 hover:scale-[1.02] active:scale-95 bg-primary text-primary-foreground":"opacity-50 cursor-not-allowed grayscale"} mb-2`,disabled:a||!c,children:a?"Sending Proposal...":"Partner With Us"}),s.jsx("p",{className:"text-[10px] text-muted-foreground text-center font-bold tracking-widest uppercase opacity-50",children:"City 105.1 FM • Podcast Network"})]})})]})})},C0="https://city1051fm.cloud/",MI=()=>{const[e,t]=y.useState(!1),{playTrack:r,currentTrack:o,isPlaying:a}=vn(),[l,c]=y.useState([]),[d,f]=y.useState(["All"]),[h,p]=y.useState("All"),[g,x]=y.useState(!0);y.useEffect(()=>{(async()=>{try{x(!0);const[k,C]=await Promise.all([Ce("/api/podcasts/"),Ce("/api/podcasts/categories/")]),T=k.map(E=>({...E,cover_image:E.cover_image?E.cover_image.startsWith("http")?E.cover_image:`${C0}${E.cover_image}`:E.cover_url||"",audio_file:E.audio_file?E.audio_file.startsWith("http")?E.audio_file:`${C0}${E.audio_file}`:E.media_url||""}));c(T);const A=Array.from(new Set(C.filter(E=>E&&E.toLowerCase()!=="all")));f(["All",...A])}catch(k){console.error("Failed to load podcast data",k)}finally{x(!1)}})()},[]);const v=h==="All"?l:l.filter(j=>j.category===h),N=v.slice(0,3),w=[...v].sort((j,k)=>new Date(k.created_at).getTime()-new Date(j.created_at).getTime()).slice(0,5);return s.jsxs(Ue,{children:[s.jsx(At,{title:"Podcasts - City 105.1 FM",description:"Listen to inspiring messages, thought-provoking discussions, and exclusive content from City 105.1 FM."}),s.jsx(Zr,{title:"Podcasts",subtitle:"Listen to inspiring messages, thought-provoking discussions, and exclusive content from City 105.1 FM.",icon:bh}),s.jsx(RI,{open:e,onOpenChange:t}),s.jsx("section",{className:"py-8 border-b border-border bg-card/50 backdrop-blur-sm sticky top-[72px] z-30",children:s.jsx("div",{className:"container mx-auto px-4",children:s.jsx("div",{className:"flex flex-wrap gap-3 justify-center",children:d.map(j=>s.jsx("button",{onClick:()=>p(j),className:`px-6 py-2 rounded-full border transition-all font-bold text-xs uppercase tracking-widest ${h===j?"bg-primary border-primary text-primary-foreground shadow-lg shadow-primary/20 scale-105":"border-border text-muted-foreground hover:border-primary hover:text-primary"}`,children:j},j))})})}),s.jsx("section",{className:"py-16",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsx("h2",{className:"text-3xl font-bold mb-8",children:"Featured Podcasts"}),g?s.jsx("div",{className:"flex justify-center py-10",children:s.jsx("div",{className:"animate-spin rounded-full h-10 w-10 border-t-2 border-b-2 border-primary"})}):s.jsx("div",{className:"grid lg:grid-cols-3 gap-8",children:N.map(j=>s.jsxs("div",{className:"bg-card rounded-lg overflow-hidden shadow-lg border border-border hover:border-primary transition-all hover:-translate-y-1 block group",children:[s.jsxs(Pe,{to:`/podcasts/${j.slug}`,className:"relative overflow-hidden block",children:[s.jsx("img",{src:j.cover_image||"https://images.unsplash.com/photo-1571235062967-3c97892e7908?q=80&w=800&auto=format&fit=crop",alt:j.title,className:"w-full h-64 object-cover group-hover:scale-105 transition-transform duration-500"}),s.jsx("div",{className:"absolute inset-0 bg-black/40 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity",children:s.jsx("div",{className:"w-16 h-16 bg-primary rounded-full flex items-center justify-center transform group-hover:scale-110 transition-transform shadow-xl",children:s.jsx(dr,{className:"w-8 h-8 text-primary-foreground fill-current ml-1"})})}),s.jsxs("div",{className:"absolute top-4 right-4 flex flex-col gap-2 items-end",children:[s.jsx("span",{className:"bg-primary text-primary-foreground px-3 py-1 rounded text-sm font-semibold shadow-md",children:j.category}),j.media_type==="video"&&s.jsxs("span",{className:"bg-red-600 text-white px-3 py-1 rounded text-[10px] font-black uppercase tracking-widest shadow-md flex items-center gap-1",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-white animate-pulse"}),"Video"]})]})]}),s.jsxs("div",{className:"p-6",children:[s.jsx(Pe,{to:`/podcasts/${j.slug}`,children:s.jsx("h3",{className:"text-xl font-bold text-foreground mb-2 group-hover:text-primary transition-colors uppercase",children:j.title})}),s.jsx("p",{className:"text-primary font-semibold text-sm mb-3",children:j.host}),s.jsx("p",{className:"text-muted-foreground text-sm mb-4 line-clamp-2",children:j.description}),s.jsxs("div",{className:"flex items-center justify-between border-t border-border pt-4 mt-4",children:[s.jsx("span",{className:"text-muted-foreground text-sm font-medium",children:"New Episode Available"}),s.jsxs(Pe,{to:`/podcasts/${j.slug}`,className:"text-primary font-bold text-sm flex items-center gap-1 hover:gap-2 transition-all",children:["Listen Now ",s.jsx(mn,{className:"w-3 h-3"})]})]})]})]},j.slug))})]})}),s.jsx("section",{className:"bg-muted py-16",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsx("h2",{className:"text-3xl font-bold mb-8",children:"Recent Episodes"}),s.jsx("div",{className:"space-y-4",children:w.map(j=>{const k=a&&o.title===j.title,C=new Date(j.created_at).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"});return s.jsxs("div",{className:"bg-card rounded-lg p-4 shadow-lg border border-border hover:border-primary hover:border-l-4 transition-all flex items-center gap-4 group",children:[s.jsxs(Pe,{to:`/podcasts/${j.slug}`,className:"flex items-center gap-4 flex-1 min-w-0",children:[s.jsx("img",{src:j.cover_image||"https://images.unsplash.com/photo-1571235062967-3c97892e7908?q=80&w=800&auto=format&fit=crop",alt:j.title,className:"w-16 h-16 object-cover rounded flex-shrink-0 group-hover:scale-110 transition-transform duration-500"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("h3",{className:"font-bold text-foreground truncate group-hover:text-primary transition-colors uppercase",children:j.title}),s.jsx("p",{className:"text-muted-foreground text-sm truncate",children:j.host})]})]}),s.jsxs("div",{className:"hidden sm:flex items-center gap-4 text-muted-foreground text-sm font-medium",children:[s.jsx("span",{className:"flex items-center gap-1.5 bg-muted px-2 py-0.5 rounded text-[10px] font-bold uppercase tracking-widest border border-border",children:j.media_type==="video"?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-red-500 animate-pulse"}),"Video"]}):s.jsxs(s.Fragment,{children:[s.jsx(vs,{className:"w-3 h-3"}),"Audio"]})}),s.jsx("span",{children:C})]}),s.jsx("div",{className:"flex items-center gap-2",children:j.media_type!=="video"?s.jsx("button",{onClick:()=>r({url:j.audio_file,title:j.title,subtext:j.host||"City FM Podcast",image:j.cover_image}),className:"w-10 h-10 bg-primary/20 text-primary rounded-full flex items-center justify-center hover:bg-primary hover:text-primary-foreground transition-colors shadow-sm","aria-label":k?"Pause episode":"Play episode",children:k?s.jsx(fs,{className:"w-4 h-4 fill-current"}):s.jsx(dr,{className:"w-4 h-4 fill-current ml-0.5"})}):s.jsx(Pe,{to:`/podcasts/${j.slug}`,className:"w-10 h-10 bg-muted text-muted-foreground rounded-full flex items-center justify-center hover:bg-primary hover:text-primary-foreground transition-colors shadow-sm","aria-label":"Watch video",children:s.jsx(dr,{className:"w-4 h-4 fill-current ml-0.5"})})})]},j.id)})})]})}),s.jsx("section",{className:"py-16",children:s.jsxs("div",{className:"container mx-auto px-4 text-center",children:[s.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Listen Anywhere"}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto mb-8",children:"Subscribe to our podcasts on your favorite platform and never miss an episode."}),s.jsx("div",{className:"flex flex-wrap justify-center gap-4",children:["Apple Podcasts","Spotify","Google Podcasts","YouTube","RSS Feed"].map(j=>s.jsx("button",{className:"px-6 py-3 rounded border border-border text-muted-foreground hover:border-primary hover:text-primary transition-colors",children:j},j))})]})}),s.jsx("section",{className:"bg-primary py-16",children:s.jsxs("div",{className:"container mx-auto px-4 text-center",children:[s.jsx("h2",{className:"text-3xl font-bold text-primary-foreground mb-4",children:"Want to Start Your Own Podcast?"}
137),s.jsx("p",{className:"text-primary-foreground/80 max-w-2xl mx-auto mb-8",children:"Partner with City 105.1 FM to create and distribute your podcast. We offer production support, studio access, and distribution to our network of listeners."}),s.jsx("button",{onClick:()=>t(!0),className:"bg-background text-foreground px-8 py-3 rounded font-semibold hover:bg-background/90 transition-colors",children:"Contact Our Podcast Team"})]})})]})},T0="https://city1051fm.cloud/",_I=()=>{const{slug:e}=Oa(),[t,r]=y.useState(null),[o,a]=y.useState(!0),{playTrack:l,currentTrack:c,isPlaying:d}=vn();if(y.useEffect(()=>{(async()=>{if(e)try{const x=await Ce(`/api/podcasts/${e}/`);x.cover_image&&!x.cover_image.startsWith("http")&&(x.cover_image=`${T0}${x.cover_image}`),x.audio_file&&!x.audio_file.startsWith("http")&&(x.audio_file=`${T0}${x.audio_file}`),r(x)}catch(x){console.error("Failed to fetch podcast",x)}finally{a(!1)}})()},[e]),o)return s.jsx(Ue,{children:s.jsx("div",{className:"flex justify-center py-40",children:s.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-primary"})})});if(!t)return s.jsx(U1,{to:"/podcasts",replace:!0});const f=d&&c.title===t.title,h=g=>{if(!g)return null;let x="";if(g.includes("youtube.com/watch?v="))x=g.split("v=")[1]?.split("&")[0];else if(g.includes("youtu.be/"))x=g.split("youtu.be/")[1]?.split("?")[0];else if(g.includes("vimeo.com/"))return x=g.split("vimeo.com/")[1]?.split("?")[0],`https://player.vimeo.com/video/${x}`;return x?`https://www.youtube.com/embed/${x}`:null},p=t.media_type==="video"?h(t.media_url):null;return s.jsxs(Ue,{children:[s.jsx(At,{title:`${t.title} - City 105.1 FM Podcasts`,description:t.description,ogImage:t.cover_image||t.cover_url}),s.jsx("section",{className:"bg-gradient-to-b from-muted to-background py-16",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsxs(Pe,{to:"/podcasts",className:"inline-flex items-center gap-2 text-muted-foreground hover:text-primary mb-8 transition-colors",children:[s.jsx(Ko,{className:"w-4 h-4"})," All Podcasts"]}),t.media_type==="video"&&p?s.jsx("div",{className:"mb-12",children:s.jsx("div",{className:"aspect-video w-full max-w-5xl mx-auto rounded-3xl overflow-hidden shadow-2xl border border-border bg-black",children:s.jsx("iframe",{src:p,className:"w-full h-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})}):null,s.jsxs("div",{className:"grid md:grid-cols-[300px_1fr] gap-12 items-start",children:[s.jsxs("div",{className:"relative group",children:[s.jsx("img",{src:t.cover_image||t.cover_url||"https://images.unsplash.com/photo-1571235062967-3c97892e7908?q=80&w=800&auto=format&fit=crop",alt:t.title,className:"w-full rounded-2xl shadow-2xl border border-border group-hover:scale-[1.02] transition-transform duration-500"}),t.media_type!=="video"&&s.jsx("button",{onClick:()=>l({url:t.audio_file||t.media_url,title:t.title,subtext:t.host,image:t.cover_image||t.cover_url}),className:"absolute inset-0 flex items-center justify-center bg-black/20 opacity-0 group-hover:opacity-100 transition-opacity rounded-2xl",children:s.jsx("div",{className:"w-16 h-16 bg-primary rounded-full flex items-center justify-center shadow-xl",children:f?s.jsx(fs,{className:"w-8 h-8 text-white fill-current"}):s.jsx(dr,{className:"w-8 h-8 text-white fill-current ml-1"})})})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex flex-wrap gap-3 mb-6",children:[s.jsx("span",{className:"bg-primary text-primary-foreground px-4 py-1.5 rounded-full text-xs font-bold uppercase tracking-widest shadow-lg shadow-primary/20",children:t.category}),s.jsx("span",{className:"flex items-center gap-1.5 bg-muted/50 px-3 py-1 rounded-full font-bold text-[10px] uppercase tracking-widest border border-border",children:t.media_type==="video"?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"w-2 h-2 rounded-full bg-red-500 animate-pulse"}),"Video"]}):s.jsxs(s.Fragment,{children:[s.jsx(vs,{className:"w-3 h-3"}),"Audio"]})})]}),s.jsx("h1",{className:"text-4xl md:text-6xl font-black mt-4 mb-3 text-foreground tracking-tight uppercase leading-none",children:t.title}),s.jsxs("div",{className:"flex flex-col gap-2 mb-6",children:[s.jsxs("p",{className:"text-primary font-bold text-xl",children:["Hosted by ",t.host]}),s.jsxs("div",{className:"flex items-center gap-4 text-[10px] font-black uppercase tracking-[0.2em] text-muted-foreground
137/60",children:[s.jsxs("span",{children:["Released: ",t.formatted_date]}),t.author_details&&s.jsx("span",{className:"border-l border-border pl-4",children:t.author_details.name})]})]}),s.jsxs("div",{className:"space-y-6 max-w-3xl",children:[s.jsx("p",{className:"text-xl text-muted-foreground leading-relaxed font-medium",children:t.description}),t.long_description&&s.jsx("div",{className:"prose prose-invert max-w-none",children:t.long_description.split(`
138`).map((g,x)=>s.jsx("p",{className:"text-muted-foreground/80 leading-relaxed mb-4",children:g},x))})]}),s.jsx("div",{className:"flex flex-wrap gap-4 mt-10",children:t.media_type!=="video"?s.jsxs("button",{onClick:()=>l({url:t.audio_file||t.media_url,title:t.title,subtext:t.host,image:t.cover_image||t.cover_url}),className:"px-8 h-14 bg-primary text-primary-foreground rounded-2xl font-black text-sm uppercase tracking-widest shadow-xl shadow-primary/20 hover:scale-105 active:scale-95 transition-all flex items-center gap-3",children:[f?s.jsx(fs,{className:"w-5 h-5 fill-current"}):s.jsx(dr,{className:"w-5 h-5 fill-current ml-0.5"}),f?"Now Playing":"Play Episode"]}):s.jsxs("button",{disabled:!0,className:"inline-flex items-center gap-2 bg-muted text-muted-foreground px-8 h-14 roun
138ded-2xl font-black text-sm uppercase tracking-widest border border-border opacity-70 cursor-not-allowed",children:[s.jsx(dr,{className:"w-5 h-5 fill-current opacity-30"})," Video Mode"]})}),s.jsxs("div",{className:"mt-12 pt-8 border-t border-border",children:[s.jsx("h3",{className:"text-[10px] font-black uppercase tracking-[0.2em] text-muted-foreground mb-6",children:"Listen on Platforms"}),s.jsxs("div",{className:"flex flex-wrap gap-4",children:[t.spotify_url&&s.jsx("a",{href:t.spotify_url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 bg-[#1DB954]/10 text-[#1DB954] px-5 py-2.5 rounded-xl font-bold text-sm hover:bg-[#1DB954]/20 transition-all border border-[#1DB954]/20",children:"Spotify"}),t.apple_podcast_url&&s.jsx("a",{href:t.apple_podcast_url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 bg-[#A259FF]/10 text-[#A259FF] px-5 py-2.5 rounded-xl font-bold text-sm hover:bg-[#A259FF]/20 transition-all border border-[#A259FF]/20",children:"Apple Podcasts"}),t.youtube_url&&s.jsx("a",{href:t.youtube_url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 bg-[#FF0000]/10 text-[#FF0000] px-5 py-2.5 rounded-xl font-bold text-sm hover:bg-[#FF0000]/20 transition-all border border-[#FF0000]/20",children:"YouTube"})]})]})]})]})]})})]})},E0="https://city1051fm.cloud/",DI=()=>{const{slug:e}=Oa(),[t,r]=y.useState(null),[o,a]=y.useState(!0),{playTrack:l,currentTrack:c,isPlaying:d}=vn(),{toast:f}=ys();if(y.useEffect(()=>{(async()=>{if(e)try{const j=await Ce(`/api/podcasts/${e}/`);j.cover_image&&!j.cover_image.startsWith("http")&&(j.cover_image=`${E0}${j.cover_image}`),j.audio_file&&!j.audio_file.startsWith("http")&&(j.audio_file=`${E0}${j.audio_file}`),r(j)}catch(j){console.error("Failed to fetch episode",j)}finally{a(!1)}})()},[e]),o)return s.jsx(Ue,{children:s.jsx("div",{className:"flex justify-center py-40",children:s.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-primary"})})});if(!t)return s.jsx(U1,{to:"/podcasts",replace:!0});const h=d&&c.title===t.title,p=typeof window<"u"?window.location.href:"",g=encodeURIComponent(`Listening to "${t.title}" on City 105.1 FM`),x=async()=>{try{await navigator.clipboard.writeText(p),f({title:"Link copied",description:"Episode link copied to clipboard."})}catch{f({title:"Could not copy",variant:"destructive"})}},v=w=>{if(!w)return null;let j="";if(w.includes("youtube.com/watch?v="))j=w.split("v=")[1]?.split("&")[0];else if(w.includes("youtu.be/"))j=w.split("youtu.be/")[1]?.split("?")[0];else if(w.includes("vimeo.com/"))return j=w.split("vimeo.com/")[1]?.split("?")[0],`https://player.vimeo.com/video/${j}`;return j?`https://www.youtube.com/embed/${j}`:null},N=t.media_type==="video"?v(t.media_url):null;return s.jsxs(Ue,{children:[s.jsx(At,{title:`${t.title} - City 105.1 FM`,description:t.description}),s.jsx("section",{className:"bg-gradient-to-b from-muted to-background py-12",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsxs(Pe,{to:`/podcasts/${t.slug}`,className:"inline-flex items-center gap-2 text-muted-foreground hover:text-primary mb-6 transition-colors",children:[s.jsx(Ko,{className:"w-4 h-4"})," Back to Podcast"]}),t.media_type==="video"&&N?s.jsx("div",{className:"mb-12",children:s.jsx("div",{className:"aspect-video w-full max-w-5xl mx-auto rounded-3xl overflow-hidden shadow-2xl border border-border bg-black",children:s.jsx("iframe",{src:N,className:"w-full h-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})}):null,s.jsxs("div",{className:"grid md:grid-cols-[280px_1fr] gap-8",children:[s.jsxs("div",{className:"relative group",children:[s.jsx("img",{src:t.cover_image||t.cover_url||"https://images.unsplash.com/photo-1571235062967-3c97892e7908?q=80&w=800&auto=format&fit=crop",alt:t.title,className:"w-full rounded-lg shadow-2xl border border-border"}),t.media_type!=="video"&&s.jsx("button",{onClick:()=>l({url:t.audio_file||t.media_url,title:t.title,subtext:t.host,image:t.cover_image||t.cover_url}),className:"absolute inset-0 flex items-center justify-center bg-black/20 opacity-0 group-hover:opacity-100 transition-opacity rounded-lg",children:s.jsx("div",{className:"w-16 h-16 bg-primary rounded-full flex items-center justify-center shadow-xl",children:h?s.jsx(fs,{className:"w-8 h-8 text-white fill-current"}):s.jsx(dr,{className:"w-8 h-8 text-white fill-current ml-1"})})})]}),s.jsxs("div",{children:[s.jsx(Pe,{to:`/podcasts/${t.slug}`,className:"text-primary text-sm font-semibold uppercase tracking-wider hover:underline",children:t.host}),s.jsx("h1",{className:"text-3xl md:text-4xl font-bold mt-2 mb-3 uppercase",children:t.title}),s.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-sm text-muted-foreground mb-6",children:[s.jsx("span",{className:"flex items-center gap-1.5 bg-muted/50 px-3 py-1 rounded-full font-bold text-[10px] uppercase tracking-widest border border-border",children:t.media_type==="video"?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"w-2 h-2 rounded-full bg-red-500 animate-pulse"}),"Video"]}):s.jsxs(s.Fragment,{children:[s.jsx(vs,{className:"w-3 h-3"}),"Audio"]})}),s.jsx("span",{children:t.formatted_date}),t.author_details&&s.jsx("span",{className:"font-black text-foreground
138/60 uppercase tracking-[0.2em] text-[9px] border-l border-border pl-4",children:t.author_details.name})]}),s.jsx("p",{className:"text-lg text-foreground/90 mb-6",children:t.description}),s.jsx("div",{className:"flex flex-wrap items-center gap-3",children:t.media_type!=="video"?s.jsx("button",{onClick:()=>l({url:t.audio_file||t.media_url,title:t.title,subtext:t.host,image:t.cover_image||t.cover_url}),className:"inline-flex items-center gap-2 bg-primary text-primary-foreground px-8 h-14 rounded-2xl font-black text-sm uppercase tracking-widest shadow-xl shadow-primary/20 hover:scale-105 active:scale-95 transition-all",children:h?s.jsxs(s.Fragment,{children:[s.jsx(fs,{className:"w-5 h-5 fill-current"})," Pause"]}):s.jsxs(s.Fragment,{children:[s.jsx(dr,{className:"w-5 h-5 fill-current ml-0.5"})," Play Episode"]})}):s.jsxs("button",{disabled:!0,className:"inline-flex items-center gap-2 bg-muted text-muted-foreground px-8 h-14 rounded-2xl font-black text-sm uppercase tracking-widest border border-border opacity-70 cursor-not-allowed",children:[s.jsx(dr,{className:"w-5 h-5 fill-current opacity-30"})," Video Mode"]})})]})]})]})}),s.jsx("section",{className:"py-12",children:s.jsxs("div",{className:"container mx-auto px-4 max-w-3xl",children:[s.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Description"}),s.jsx("div",{className:"prose prose-invert max-w-none text-foreground/90 whitespace-pre-line leading-relaxed",children:t.long_description}),s.jsx("div",{className:"mt-10 border-t border-border pt-6",children:s.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[s.jsxs("span",{className:"inline-flex items-center gap-2 font-semibold",children:[s.jsx(hs,{className:"w-4 h-4"})," Share this episode"]}),s.jsx("a",{href:`https://twitter.com/intent/tweet?text=${g}&url=${encodeURIComponent(p)}`,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 rounded-full bg-card border border-border flex items-center justify-center hover:border-primary hover:text-primary transition-colors","aria-label":"Share on Twitter",children:s.jsx(fu,{className:"w-4 h-4"})}),s.jsx("a",{href:`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(p)}`,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 rounded-full bg-card border border-border flex items-center justify-center hover:border-primary hover:text-primary transition-colors","aria-label":"Share on Facebook",children:s.jsx(Da,{className:"w-4 h-4"})}),s.jsx("a",{href:`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(p)}`,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 rounded-full bg-card border border-border flex items-center justify-center hover:border-primary hover:text-primary transition-colors","aria-label":"Share on LinkedIn",children:s.jsx(Bm,{className:"w-4 h-4"})}),s.jsx("button",{onClick:x,className:"w-10 h-10 rounded-full bg-card border border-border flex items-center justify-center hover:border-primary hover:text-primary transition-colors","aria-label":"Copy link",children:s.jsx(iE,{className:"w-4 h-4"})})]})})]})})]})},II=()=>{const[e,t]=y.useState([]),[r,o]=y.useState(!0),[a,l]=y.useState("All"),[c,d]=y.useState(null);y.useEffect(()=>{(async()=>{try{o(!0);const I=(await Ce("/api/gallery/")).filter(_=>_.image&&!_.image.toLowerCase().endsWith(".heic"));t(I)}catch(D){console.error("Failed to fetch gallery:",D)}finally{o(!1)}})()},[]);const f=["All",...Array.from(new Set(e.map(E=>E.album).filter(E=>E&&E.toLowerCase()!=="all")))],h=a==="All"?e:e.filter(E=>E.album===a),p=E=>{if(!E)return"";if(E.startsWith("http"))return E;const D=E.startsWith("/")?E:`/${E}`;return`${ft}${D}`},g=()=>{c!==null&&d(E=>E!==null&&E>0?E-1:h.length-1)},x=()=>{c!==null&&d(E=>E!==null&&E<h.length-1?E+1:0)};y.useEffect(()=>{const E=D=>{c!==null&&(D.key==="ArrowLeft"?g():D.key==="ArrowRight"?x():D.key==="Escape"&&d(null))};return window.addEventListener("keydown",E),()=>window.removeEventListener("keydown",E)},[c,h.length]);const[v,N]=y.useState(null),[w,j]=y.useState(null),k=50,C=E=>{j(null),N(E.targetTouches[0].clientX)},T=E=>{j(E.targetTouches[0].clientX)},A=()=>{if(!v||!w)return;const E=v-w,D=E>
138k,I=E<-k;D?x():I&&g()};return s.jsxs(Ue,{children:[s.jsx(At,{title:"Our Gallery - City 105.1 FM",description:"View behind the scenes, events, and exclusive moments from City 105.1 FM."}),s.jsx(Zr,{title:"City Gallery",subtitle:"Behind the scenes, events, and exclusive moments from your lifestyle station.",icon:wh}),c!==null&&h.length>0&&s.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/95 backdrop-blur-md select-none",onClick:()=>d(null),onTouchStart:C,onTouchMove:T,onTouchEnd:A,children:[s.jsx("button",{onClick:()=>d(null),className:"absolute top-5 right-5 z-50 w-11 h-11 rounded-full bg-white/10 flex items-center justify-center text-white hover:bg-white/20 transition-all shadow-lg hover:scale-105",children:s.jsx(xn,{size:22})}),s.jsx("button",{onClick:E=>{E.stopPropagation(),g()},className:"hidden md:flex absolute left-4 md:left-8 z-50 w-12 h-12 rounded-full bg-black/40 border border-white/10 items-center justify-center text-white hover:bg-white/20 hover:scale-110 active:scale-95 transition-all shadow-2xl",children:s.jsx(oi,{size:28})}),s.jsx("button",{onClick:E=>{E.stopPropagation(),x()},className:"hidden md:flex absolute right-4 md:right-8 z-50 w-12 h-12 rounded-full bg-black/40 border border-white/10 items-center justify-center text-white hover:bg-white/20 hover:scale-110 active:scale-95 transition-all shadow-2xl",children:s.jsx(qo,{size:28})}),s.jsx("div",{className:"w-full max-w-5xl overflow-hidden",onClick:E=>E.stopPropagation(),children:s.jsx("div",{className:"flex transition-transform duration-300 ease-out w-full",style:{transform:`translateX(-${c*100}%)`},children:h.map((E,D)=>s.jsxs("div",{className:"w-full flex-shrink-0 flex flex-col items-center justify-center px-4",children:[s.jsx("div",{className:"relative max-h-[75vh] w-full flex items-center justify-center",children:Math.abs(D-c)<=1?s.jsx("img",{src:p(E.image),alt:E.caption,className:"max-h-[75vh] max-w-full rounded-2xl object-contain shadow-2xl pointer-events-none"}):s.jsx("div",{className:"h-[50vh] w-full flex items-center justify-center",children:s.jsx(Ic,{className:"animate-spin text-primary opacity-40"})})}),(E.caption||E.album)&&s.jsxs("div",{className:"mt-4 text-center px-4 max-w-2xl",children:[E.caption&&s.jsx("p",{className:"text-white font-semibold text-base leading-relaxed",children:E.caption}),E.album&&s.jsx("p",{className:"text-primary text-xs font-bold uppercase tracking-widest mt-2",children:E.album}),s.jsxs("p",{className:"text-white/40 text-[11px] font-bold mt-2 uppercase tracking-widest",children:[D+1," of ",h.length]})]})]},E.id))})})]}),s.jsx("section",{className:"py-16 bg-background min-h-screen",children:s.jsxs("div",{className:"container mx-auto px-4",children:[f.length>1&&s.jsx("div",{className:"flex flex-wrap gap-2 mb-10 justify-center",children:f.map(E=>s.jsx("button",{onClick:()=>l(E),className:`px-5 py-2.5 rounded-full text-xs font-bold uppercase tracking-widest transition-all border ${a===E?"bg-primary text-primary-foreground border-primary shadow-lg":"bg-background text-muted-foreground border-border hover:border-primary/50"}`,children:E},E))}),r&&s.jsxs("div",{className:"flex flex-col items-center justify-center py-32 gap-4",children:[s.jsx(Ic,{size:36,className:"animate-spin text-primary opacity-60"}),s.jsx("p",{className:"text-muted-foreground text-sm font-semibold uppercase tracking-widest",children:"Loading Gallery…"})]}),!r&&h.length===0&&s.jsxs("div",{className:"flex flex-col items-center justify-center py-32 gap-4 text-center",children:[s.jsx(wh,{size:64,className:"text-muted-foreground/20"}),s.jsx("p",{className:"text-muted-foreground text-sm font-bold uppercase tracking-widest",children:"No images in this album yet."})]}),!r&&h.length>0&&s.jsx("div",{className:"columns-1 sm:columns-2 md:columns-3 lg:columns-4 gap-4 space-y-4",children:h.map((E,D)=>s.jsxs("div",{className:"break-inside-avoid rounded-2xl overflow-hidden relative group cursor-pointer border border-border",onClick:()=>d(D),children:[s.jsx("img",{src:p(E.image),alt:E.caption||"City 105.1 FM Gallery",className:"w-full h-auto block transition-transform duration-500 group-hover:scale-105",loading:"lazy"}),s.jsxs("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300 flex flex-col justify-end p-4",children:[E.album&&s.jsx("span",{className:"text-orange-400 text-[9px] font-black uppercase tracking-widest mb-1",children:E.album}),E.caption&&s.jsx("span",{className:"text-white font-bold text-sm leading-tight line-clamp-2",children:E.caption}),s.jsxs("div",{className:"flex items-center justify-between mt-3",children:[s.jsx("span",{className:"text-white/50 text-[9px] font-bold uppercase",children:new Date(E.uploaded_at).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}),s.jsx("div",{className:"w-8 h-8 rounded-xl bg-white/20 backdrop-blur-sm flex items-center justify-center text-white",children:s.jsx(Dw,{size:16})})]})]})]},E.id))})]})})]})},LI=()=>{const{isPlaying:e,setIsPlaying:t,isMuted:r,setIsMuted:o,volume:a,setVolume:l}=vn(),c=Wr.find(Gr)||Wr[0],d=p=>{const g=parseFloat(p.target.value);l(g),g>0&&r&&o(!1)},f=()=>{t(!e)},h=()=>{o(!r)};return s.jsx(Ue,{children:s.jsxs("div",{className:"min-h-[calc(100vh-80px)] bg-gradient-to-b from-background to-primary/10 flex flex-col items-center justify-center py-12 px-4 overflow-hidden relative",children:[s.jsxs("div",{className:"max-w-4xl w-full grid md:grid-cols-2 gap-12 items-center relative z-10",children:[s.jsxs("div",{className:"relative group self-start",children:[s.jsx("div",{className:"absolute -inset-4 bg-primary/20 rounded-full blur-3xl group-hover:bg-primary/30 transition-all duration-700 animate-pulse"}),s.jsxs("div",{className:`relative aspect-square rounded-3xl overflow-hidden shadow-[0_0_50px_rgba(234,30,37,0.3)] border-2 border-primary/20 transition-all duration-700 ${e?"scale-105":"scale-100"}`,children:[s.jsx("img",{src:c.image,alt:c.title,className:`w-full h-full object-cover transition-transform [transition-duration:10s] ease-linear ${e?"scale-110":"scale-100"}`}),s.jsx("div",{className:"absolute inset-0 bg-black/20 group-hover:bg-black/10 transition-colors"}),s.jsxs("div",{className:"absolute top-6 left-6 flex items-center gap-2 bg-primary text-primary-foreground px-4 py-1.5 rounded-full font-bold text-sm shadow-xl z-20",children:[s.jsx("span",{className:`w-2 h-2 rounded-full bg-white ${e?"animate-ping":""}`}),"LIVE NOW"]})]})]}),s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx("h2",{className:"text-primary font-bold tracking-[0.2em] text-sm uppercase",children:"Currently Broadcasting"}),s.jsx("h1",{className:"text-4xl md:text-6xl font-black text-foreground uppercase leading-tight drop-shadow-sm",children:c.title}),s.jsxs("div",{className:"flex items-center gap-3 text-muted-foreground mt-4",children:[s.jsx("div",{className:"w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center",children:s.jsx(kw,{className:"w-5 h-5 text-primary"})}),s.jsx("span",{className:"font-bold text-lg",children:c.host})]})]}),s.jsx("div",{className:"h-16 flex items-end gap-1.5 px-2",children:[...Array(24)].map((p,g)=>s.jsx("div",{className:`flex-1 bg-primary rounded-t-full transition-all duration-300 ${e?"hover:opacity-100":"h-2 opacity-20"}`,style:{height:e?`${20+Math.random()*80}%`:"8px"}},g))}),s.jsxs("div",{className:"flex items-center gap-8 bg-card/50 backdrop-blur-md p-6 rounded-3xl border border-border shadow-xl",children:[s.jsx("button",{onClick:f,className:"w-20 h-20 bg-primary rounded-full flex items-center justify-center shadow-[0_10px_30px_rgba(234,30,37,0.4)] hover:scale-105 active:scale-95 transition-all duration-300 flex-shrink-0",children:e?s.jsx(fs,{className:"w-8 h-8 text-primary-foreground fill-current"}):s.jsx(dr,{className:"w-8 h-8 text-primary-foreground fill-current ml-1"})}),s.jsxs("div",{className:"flex flex-col gap-3 flex-1",children:[s.jsxs("div",{className:"flex items-center justify-between text-xs font-black text-muted-foreground uppercase tracking-widest",children:[s.jsx("span",{children:"Volume Control"}),s.jsxs("span",{className:"text-primary",children:[Math.round(a*100),"%"]})]}),s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("button",{onClick:h,className:"text-muted-foreground hover:text-primary transition-colors",children:r||a===0?s.jsx(Mw,{className:"w-6 h-6"}):s.jsx(Rw,{className:"w-6 h-6"})}),s.jsx("input",{type:"range",min:"0",max:"1",step:"0.01",value:a,onChange:d,className:"flex-1 h-2 bg-muted rounded-full appearance-none cursor-pointer accent-primary"})]})]})]}),s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsxs("button",{className:"flex-1 flex items-center justify-center gap-2 py-4 rounded-2xl border border-border hover:bg-muted font-black text-sm transition-all uppercase tracking-wider",children:[s.jsx(hs,{className:"w-4 h-4"}),"Share Stream"]}),s.jsxs(Pe,{to:`/shows/${c.slug}`,className:"flex-1 flex items-center justify-center gap-2 py-4 rounded-2xl border border-primary/50 bg-primary/5 text-primary hover:bg-primary hover:text-primary-foreground font-black text-sm transition-all uppercase tracking-wider shadow-lg shadow-primary/10",children:[s.jsx(ao,{className:"w-4 h-4"}),"Show Info"]})]})]})]}),s.jsx("div",{className:"absolute top-1/2 left-0 -translate-y-1/2 -rotate-90 select-none pointer-events-none overflow-hidden opacity-[0.02] whitespace-nowrap",children:s.jsx("span",{className:"text-[20rem] font-black uppercase leading-none tracking-tighter",children:"CITY FM 105.1"})})]})})},JN=y.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,className:_e("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));
vendor: 10,918 bytes, line 138
138JN.displayName="Card";const OI=y.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,className:_e("flex flex-col space-y-1.5 p-6",e),...t}));OI.displayName="CardHeader";const FI=y.forwardRef(({className:e,...t},r)=>s.jsx("h3",{ref:r,className:_e("text-2xl font-semibold leading-none tracking-tight",e),...t}));FI.displayName="CardTitle";const $I=y.forwardRef(({className:e,...t},r)=>s.jsx("p",{ref:r,className:_e("text-sm text-muted-foreground",e),...t}));$I.displayName="CardDescription";const ZN=y.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,className:_e("p-6 pt-0",e),...t}));ZN.displayName="CardContent";const VI=y.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,className:_e("flex items-center p-6 pt-0",e),...t}));VI.displayName="CardFooter";const e2=y.createContext({});function BI(e){const t=y.useRef(null);return t.current===null&&(t.current=e()),t.current}const zI=typeof window<"u",UI=zI?y.useLayoutEffect:y.useEffect,Mp=y.createContext(null);function _p(e,t){e.indexOf(t)===-1&&e.push(t)}function qc(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const gn=(e,t,r)=>r>t?t:r<e?e:r;let Dp=()=>{};const gs={},t2=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function r2(e){return typeof e=="object"&&e!==null}const n2=e=>/^0[^.\s]+$/u.test(e);function s2(e){let t;return()=>(t===void 0&&(t=e()),t)}const kr=e=>e,WI=(e,t)=>r=>t(e(r)),Ua=(...e)=>e.reduce(WI),Ea=(e,t,r)=>{const o=t-e;return o===0?1:(r-e)/o};class Ip{constructor(){this.subscriptions=[]}add(t){return _p(this.subscriptions,t),()=>qc(this.subscriptions,t)}notify(t,r,o){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,r,o);else for(let l=0;l<a;l++){const c=this.subscriptions[l];c&&c(t,r,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const hr=e=>e*1e3,Sr=e=>e/1e3;function o2(e,t){return t?e*(1e3/t):0}const i2=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,HI=1e-7,YI=12;function GI(e,t,r,o,a){let l,c,d=0;do c=t+(r-t)/2,l=i2(c,o,a)-e,l>0?r=c:t=c;while(Math.abs(l)>HI&&++d<YI);return c}function Wa(e,t,r,o){if(e===t&&r===o)return kr;const a=l=>GI(l,0,1,e,r);return l=>l===0||l===1?l:i2(a(l),t,o)}const a2=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,l2=e=>t=>1-e(1-t),c2=Wa(.33,1.53,.69,.99),Lp=l2(c2),u2=a2(Lp),d2=e=>e>=1?1:(e*=2)<1?.5*Lp(e):.5*(2-Math.pow(2,-10*(e-1))),Op=e=>1-Math.sin(Math.acos(e)),f2=l2(Op),h2=a2(Op),KI=Wa(.42,0,1,1),qI=Wa(0,0,.58,1),m2=Wa(.42,0,.58,1),QI=e=>Array.isArray(e)&&typeof e[0]!="number",p2=e=>Array.isArray(e)&&typeof e[0]=="number",XI={linear:kr,easeIn:KI,easeInOut:m2,easeOut:qI,circIn:Op,circInOut:h2,circOut:f2,backIn:Lp,backInOut:u2,backOut:c2,anticipate:d2},JI=e=>typeof e=="string",P0=e=>{if(p2(e)){Dp(e.length===4);const[t,r,o,a]=e;return Wa(t,r,o,a)}else if(JI(e))return XI[e];return e},fc=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function ZI(e,t){let r=new Set,o=new Set,a=!1,l=!1;const c=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};function f(p){c.has(p)&&(h.schedule(p),e()),p(d)}const h={schedule:(p,g=!1,x=!1)=>{const N=x&&a?r:o;return g&&c.add(p),N.add(p),p},cancel:p=>{o.delete(p),c.delete(p)},process:p=>{if(d=p,a){l=!0;return}a=!0;const g=r;r=o,o=g,r.forEach(f),r.clear(),a=!1,l&&(l=!1,h.process(p))}};return h}const eL=40;function g2(e,t){let r=!1,o=!0;const a={delta:0,timestamp:0,isProcessing:!1},l=()=>r=!0,c=fc.reduce((T,A)=>(T[A]=ZI(l),T),{}),{setup:d,read:f,resolveKeyframes:h,preUpdate:p,update:g,preRender:x,render:v,postRender:N}=c,w=()=>{const T=gs.useManualTiming,A=T?a.timestamp:performance.now();r=!1,T||(a.delta=o?1e3/60:Math.max(Math.min(A-a.timestamp,eL),1)),a.timestamp=A,a.isProcessing=!0,d.process(a),f.process(a),h.process(a),p.process(a),g.process(a),x.process(a),v.process(a),N.process(a),a.isProcessing=!1,r&&t&&(o=!1,e(w))},j=()=>{r=!0,o=!0,a.isProcessing||e(w)};return{schedule:fc.reduce((T,A)=>{const E=c[A];return T[A]=(D,I=!1,_=!1)=>(r||j(),E.schedule(D,I,_)),T},{}),cancel:T=>{for(let A=0;A<fc.length;A++)c[fc[A]].cancel(T)},state:a,steps:c}}const{schedule:We,cancel:xs,state:Ct,steps:Xf}=g2(typeof requestAnimationFrame<"u"?requestAnimationFrame:kr,!0);let Cc;function tL(){Cc=void 0}const $t={now:()=>(Cc===void 0&&$t.set(Ct.isProcessing||gs.useManualTiming?Ct.timestamp:performance.now()),Cc),set:e=>{Cc=e,queueMicrotask(tL)}},x2=e=>t=>typeof t=="string"&&t.startsWith(e),y2=x2("--"),rL=x2("var(--"),Fp=e=>rL(e)?nL.test(e.split("/*")[0].trim()):!1,nL=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function A0(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const yi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Pa={...yi,transform:e=>gn(0,1,e)},hc={...yi,default:1},ha=e=>Math.round(e*1e5)/1e5,$p=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function sL(e){return e==null}const oL=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Vp=(e,t)=>r=>!!(typeof r=="string"&&oL.test(r)&&r.startsWith(e)||t&&!sL(r)&&Object.prototype.hasOwnProperty.call(r,t)),v2=(e,t,r)=>o=>{if(typeof o!="string")return o;const[a,l,c,d]=o.match($p);return{[e]:parseFloat(a),[t]:parseFloat(l),[r]:parseFloat(c),alpha:d!==void 0?parseFloat(d):1}},iL=e=>gn(0,255,e),Jf={...yi,transform:e=>Math.round(iL(e))},Ws={test:Vp("rgb","red"),parse:v2("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:o=1})=>"rgba("+Jf.transform(e)+", "+Jf.transform(t)+", "+Jf.transform(r)+", "+ha(Pa.transform(o))+")"};function aL(e){let t="",r="",o="",a="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),o=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),o=e.substring(3,4),a=e.substring(4,5),t+=t,r+=r,o+=o,a+=a),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(o,16),alpha:a?parseInt(a,16)/255:1}}const cm={test:Vp("#"),parse:aL,transform:Ws.transform},Ha=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),is=Ha("deg"),hn=Ha("%"),me=Ha("px"),lL=Ha("vh"),cL=Ha("vw"),R0={...hn,parse:e=>hn.parse(e)/100,transform:e=>hn.transform(e*100)},Fo={test:Vp("hsl","hue"),parse:v2("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:o=1})=>"hsla("+Math.round(e)+", "+hn.transform(ha(t))+", "+hn.transform(ha(r))+", "+ha(Pa.transform(o))+")"},dt={test:e=>Ws.test(e)||cm.test(e)||Fo.test(e),parse:e=>Ws.test(e)?Ws.parse(e):Fo.test(e)?Fo.parse(e):cm.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ws.transform(e):Fo.transform(e),getAnimatableNone:e=>{const t=dt.parse(e);return t.alpha=0,dt.transform(t)}},uL=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function dL(e){return isNaN(e)&&typeof e=="string"&&(e.match($p)?.length||0)+(e.match(uL)?.length||0)>0}const b2="number",w2="color",fL="var",hL="var(",M0="${}",mL=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ri(e){const t=e.toString(),r=[],o={color:[],number:[],var:[]},a=[];let l=0;const d=t.replace(mL,f=>(dt.test(f)?(o.color.push(l),a.push(w2),r.push(dt.parse(f))):f.startsWith(hL)?(o.var.push(l),a.push(fL),r.push(f)):(o.number.push(l),a.push(b2),r.push(parseFloat(f))),++l,M0)).split(M0);return{values:r,split:d,indexes:o,types:a}}function pL(e){return ri(e).values}function j2({split:e,types:t}){const r=e.length;return o=>{let a="";for(let l=0;l<r;l++)if(a+=e[l],o[l]!==void 0){const c=t[l];c===b2?a+=ha(o[l]):c===w2?a+=dt.transform(o[l]):a+=o[l]}return a}}function gL(e){return j2(ri(e))}const xL=e=>typeof e=="number"?0:dt.test(e)?dt.getAnimatableNone(e):e,yL=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:xL(e);function vL(e){const t=ri(e);return j2(t)(t.values.map((o,a)=>yL(o,t.split[a])))}const qr={test:dL,parse:pL,createTransformer:gL,getAnimatableNone:vL};function Zf(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function bL({hue:e,saturation:t,lightness:r,alpha:o}){e/=360,t/=100,r/=100;let a=0,l=0,c=0;if(!t)a=l=c=r;else{const d=r<.5?r*(1+t):r+t-r*t,f=2*r-d;a=Zf(f,d,e+1/3),l=Zf(f,d,e),c=Zf(f,d,e-1/3)}return{red:Math.round(a*255),green:Math.round(l*255),blue:Math.round(c*255),alpha:o}}function Qc(e,t){return r=>r>0?t:e}const qe=(e,t,r)=>e+(t-e)*r,eh=(e,t,r)=>{const o=e*e,a=r*(t*t-o)+o;return a<0?0:Math.sqrt(a)},wL=[cm,Ws,Fo],jL=e=>wL.find(t=>t.test(e));function _0(e){const t=jL(e);if(!t)return!1;let r=t.parse(e);return t===Fo&&(r=bL(r)),r}const D0=(e,t)=>{const r=_0(e),o=_0(t);if(!r||!o)return Qc(e,t);const a={...r};return l=>(a.red=eh(r.red,o.red,l),a.green=eh(r.green,o.green,l),a.blue=eh(r.blue,o.blue,l),a.alpha=qe(r.alpha,o.alpha,l),Ws.transform(a))},um=new Set(["none","hidden"]);function NL(e,t){return um.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function SL(e,t){return r=>qe(e,t,r)}function Bp(e){return typeof e=="number"?SL:typeof e=="string"?Fp(e)?Qc:dt.test(e)?D0:TL:Array.isArray(e)?N2:typeof e=="object"?dt.test(e)?D0:kL:Qc}function N2(e,t){const r=[...e],o=r.length,a=e.map((l,c)=>Bp(l)(l,t[c]));return l=>{for(let c=0;c<o;c++)r[c]=a[c](l);return r}}function kL(e,t){const r={...e,...t},o={};for(const a in r)e[a]!==void 0&&t[a]!==void 0&&(o[a]=Bp(e[a])(e[a],t[a]));return a=>{for(const l in o)r[l]=o[l](a);return r}}function CL(e,t){const r=[],o={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const l=t.types[a],c=e.indexes[l][o[l]],d=e.values[c]??0;r[a]=d,o[l]++}return r}const TL=(e,t)=>{const r=qr.createTransformer(t),o=ri(e),a=ri(t);return o.indexes.var.length===a.indexes.var.length&&o.indexes.color.length===a.indexes.color.length&&o.indexes.number.length>=a.indexes.number.length?um.has(e)&&!a.values.length||um.has(t)&&!o.values.length?NL(e,t):Ua(N2(CL(o,a),a.values),r):Qc(e,t)};function S2(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?qe(e,t,r):Bp(e)(e,t)}const EL=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>We.update(t,r),stop:()=>xs(t),now:()=>Ct.isProcessing?Ct.timestamp:$t.now()}},k2=(e,t,r=10)=>{let o="";const a=Math.max(Math.round(t/r),2);for(let l=0;l<a;l++)o+=Math.round(e(l/(a-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},Xc=2e4;function zp(e){let t=0;const r=50;let o=e.next(t);for(;!o.done&&t<Xc;)t+=r,o=e.next(t);return t>=Xc?1/0:t}function PL(e,t=100,r){const o=r({...e,keyframes:[0,t]}),a=Math.min(zp(o),Xc);return{type:"keyframes",ease:l=>o.next(a*l).value/t,duration:Sr(a)}}const st={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function dm(e,t){return e*Math.sqrt(1-t*t)}const AL=12;function RL(e,t,r){let o=r;for(let a=1;
138a<AL;a++)o=o-e(o)/t(o);return o}const th=.001;function ML({duration:e=st.duration,bounce:t=st.bounce,velocity:r=st.velocity,mass:o=st.mass}){let a,l,c=1-t;c=gn(st.minDamping,st.maxDamping,c),e=gn(st.minDuration,st.maxDuration,Sr(e)),c<1?(a=h=>{const p=h*c,g=p*e,x=p-r,v=dm(h,c),N=Math.exp(-g);return th-x/v*N},l=h=>{const g=h*c*e,x=g*r+r,v=Math.pow(c,2)*Math.pow(h,2)*e,N=Math.exp(-g),w=dm(Math.pow(h,2),c);return(-a(h)+th>0?-1:1)*((x-v)*N)/w}):(a=h=>{const p=Math.exp(-h*e),g=(h-r)*e+1;return-th+p*g},l=h=>{const p=Math.exp(-h*e),g=(r-h)*(e*e);return p*g});const d=5/e,f=RL(a,l,d);if(e=hr(e),isNaN(f))return{stiffness:st.stiffness,damping:st.damping,duration:e};{const h=Math.pow(f,2)*o;return{stiffness:h,damping:c*2*Math.sqrt(o*h),duration:e}}}const _L=["duration","bounce"],DL=["stiffness","damping","mass"];function I0(e,t){return t.some(r=>e[r]!==void 0)}function IL(e){let t={velocity:st.velocity,stiffness:st.stiffness,damping:st.damping,mass:st.mass,isResolvedFromDuration:!1,...e};if(!I0(e,DL)&&I0(e,_L))if(t.velocity=0,e.visualDuration){const r=e.visualDuration,o=2*Math.PI/(r*1.2),a=o*o,l=2*gn(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:st.mass,stiffness:a,damping:l}}else{const r=ML({...e,velocity:0});t={...t,...r,mass:st.mass},t.isResolvedFromDuration=!0}return t}function Jc(e=st.visualDuration,t=st.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:o,restDelta:a}=r;const l=r.keyframes[0],c=r.keyframes[r.keyframes.length-1],d={done:!1,value:l},{stiffness:f,damping:h,mass:p,duration:g,velocity:x,isResolvedFromDuration:v}=IL({...r,velocity:-Sr(r.velocity||0)}),N=x||0,w=h/(2*Math.sqrt(f*p)),j=c-l,k=Sr(Math.sqrt(f/p)),C=Math.abs(j)<5;o||(o=C?st.restSpeed.granular:st.restSpeed.default),a||(a=C?st.restDelta.granular:st.restDelta.default);let T,A,E,D,I,_;if(w<1)E=dm(k,w),D=(N+w*k*j)/E,T=z=>{const G=Math.exp(-w*k*z);return c-G*(D*Math.sin(E*z)+j*Math.cos(E*z))},I=w*k*D+j*E,_=w*k*j-D*E,A=z=>Math.exp(-w*k*z)*(I*Math.sin(E*z)+_*Math.cos(E*z));else if(w===1){T=G=>c-Math.exp(-k*G)*(j+(N+k*j)*G);const z=N+k*j;A=G=>Math.exp(-k*G)*(k*z*G-N)}else{const z=k*Math.sqrt(w*w-1);T=F=>{const J=Math.exp(-w*k*F),Z=Math.min(z*F,300);return c-J*((N+w*k*j)*Math.sinh(Z)+z*j*Math.cosh(Z))/z};const G=(N+w*k*j)/z,q=w*k*G-j*z,le=w*k*j-G*z;A=F=>{const J=Math.exp(-w*k*F),Z=Math.min(z*F,300);return J*(q*Math.sinh(Z)+le*Math.cosh(Z))}}const H={calculatedDuration:v&&g||null,velocity:z=>hr(A(z)),next:z=>{if(!v&&w<1){const q=Math.exp(-w*k*z),le=Math.sin(E*z),F=Math.cos(E*z),J=c-q*(D*le+j*F),Z=hr(q*(I*le+_*F));return d.done=Math.abs(Z)<=o&&Math.abs(c-J)<=a,d.value=d.done?c:J,d}const G=T(z);if(v)d.done=z>=g;else{const q=hr(A(z));d.done=Math.abs(q)<=o&&Math.abs(c-G)<=a}return d.value=d.done?c:G,d},toString:()=>{const z=Math.min(zp(H),Xc),G=k2(q=>H.next(z*q).value,z,30);return z+"ms "+G},toTransition:()=>{}};return H}Jc.applyToOptions=e=>{const t=PL(e,100,Jc);return e.ease=t.ease,e.duration=hr(t.duration),e.type="keyframes",e};const LL=5;function C2(e,t,r){const o=Math.max(t-LL,0);return o2(r-e(o),t-o)}function fm({keyframes:e,velocity:t=0,power:r=.8,timeConstant:o=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:c,min:d,max:f,restDelta:h=.5,restSpeed:p}){const g=e[0],x={done:!1,value:g},v=_=>d!==void 0&&_<d||f!==void 0&&_>f,N=_=>d===void 0?f:f===void 0||Math.abs(d-_)<Math.abs(f-_)?d:f;let w=r*t;const j=g+w,k=c===void 0?j:c(j);k!==j&&(w=k-g);const C=_=>-w*Math.exp(-_/o),T=_=>k+C(_),A=_=>{const H=C(_),z=T(_);x.done=Math.abs(H)<=h,x.value=x.done?k:z};let E,D;const I=_=>{v(x.value)&&(E=_,D=Jc({keyframes:[x.value,N(x.value)],velocity:C2(T,_,x.value),damping:a,stiffness:l,restDelta:h,restSpeed:p}))};return I(0),{calculatedDuration:null,next:_=>{let H=!1;return!D&&E===void 0&&(H=!0,A(_),I(_)),E!==void 0&&_>=E?D.next(_-E):(!H&&A(_),x)}}}function OL(e,t,r){const o=[],a=r||gs.mix||S2,l=e.length-1;for(let c=0;c<l;c++){let d=a(e[c],e[c+1]);if(t){const f=Array.isArray(t)?t[c]||kr:t;d=Ua(f,d)}o.push(d)}return o}function FL(e,t,{clamp:r=!0,ease:o,mixer:a}={}){const l=e.length;if(Dp(l===t.length),l===1)return()=>t[0];if(l===2&&t[0]===t[1])return()=>t[1];const c=e[0]===e[1];e[0]>e[l-1]&&(e=[...e].reverse(),t=[...t].reverse());const d=OL(t,o,a),f=d.length,h=p=>{if(c&&p<e[0])return t[0];let g=0;if(f>1)for(;g<e.length-2&&!(p<e[g+1]);g++);const x=Ea(e[g],e[g+1],p);return d[g](x)};return r?p=>h(gn(e[0],e[l-1],p)):h}function $L(e,t){const r=e[e.length-1];for(let o=1;o<=t;o++){const a=Ea(0,t,o);e.push(qe(r,1,a))}}function VL(e){const t=[0];return $L(t,e.length-1),t}function BL(e,t){return e.map(r=>r*t)}function zL(e,t){return e.map(()=>t||m2).splice(0,e.length-1)}function ma({duration:e=300,keyframes:t,times:r,ease:o="easeInOut"}){const a=QI(o)?o.map(P0):P0(o),l={done:!1,value:t[0]},c=BL(r&&r.length===t.length?r:VL(t),e),d=FL(c,t,{ease:Array.isArray(a)?a:zL(t,a)});return{calculatedDuration:e,next:f=>(l.value=d(f),l.done=f>=e,l)}}const UL=e=>e!==null;function Au(e,{repeat:t,repeatType:r="loop"},o,a=1){const l=e.filter(UL),d=a<0||t&&r!=="loop"&&t%2===1?0:l.length-1;return!d||o===void 0?l[d]:o}const WL={decay:fm,inertia:fm,tween:ma,keyframes:ma,spring:Jc};function T2(e){typeof e.type=="string"&&(e.type=WL[e.type])}class Up{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}}const HL=e=>e/100;class Zc extends Up{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==$t.now()&&this.tick($t.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;T2(t);const{type:r=ma,repeat:o=0,repeatDelay:a=0,repeatType:l,velocity:c=0}=t;let{keyframes:d}=t;const f=r||ma;f!==ma&&typeof d[0]!="number"&&(this.mixKeyframes=Ua(HL,S2(d[0],d[1])),d=[0,100]);const h=f({...t,keyframes:d});l==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...d].reverse(),velocity:-c})),h.calculatedDuration===null&&(h.calculatedDuration=zp(h));const{calculatedDuration:p}=h;this.calculatedDuration=p,this.resolvedDuration=p+a,this.totalDuration=this.resolvedDuration*(o+1)-a,this.generator=h}updateTime(t){const r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){const{generator:o,totalDuration:a,mixKeyframes:l,mirroredGenerator:c,resolvedDuration:d,calculatedDuration:f}=this;if(this.startTime===null)return o.next(0);const{delay:h=0,keyframes:p,repeat:g,repeatType:x,repeatDelay:v,type:N,onUpdate:w,finalKeyframe:j}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);const k=this.currentTime-h*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?k<0:k>a;this.currentTime=Math.max(k,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let T=this.currentTime,A=o;if(g){const _=Math.min(this.currentTime,a)/d;let H=Math.floor(_),z=_%1;!z&&_>=1&&(z=1),z===1&&H--,H=Math.min(H,g+1),H%2&&(x==="reverse"?(z=1-z,v&&(z-=v/d)):x==="mirror"&&(A=c)),T=gn(0,1,z)*d}let E;C?(this.delayState.value=p[0],E=this.delayState):E=A.next(T),l&&!C&&(E.value=l(E.value));let{done:D}=E;!C&&f!==null&&(D=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return I&&N!==fm&&(E.value=Au(p,this.options,j,this.speed)),w&&w(E.value),I&&this.finish(),E}then(t,r){return this.finished.then(t,r)}get duration(){return Sr(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Sr(t)}get time(){return Sr(this.currentTime)}set time(t){t=hr(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;
138if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const r=this.generator.next(t).value;return C2(o=>this.generator.next(o).value,t,r)}get speed(){return this.playbackSpeed}set speed(t){const r=this.playbackSpeed!==t;r&&this.driver&&this.updateTime($t.now()),this.playbackSpeed=t,r&&this.driver&&(this.time=Sr(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=EL,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=r??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime($t.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function YL(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Hs=e=>e*180/Math.PI,hm=e=>{const t=Hs(Math.atan2(e[1],e[0]));return mm(t)},GL={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:hm,rotateZ:hm,skewX:e=>Hs(Math.atan(e[1])),skewY:e=>Hs(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},mm=e=>(e=e%360,e<0&&(e+=360),e),L0=hm,O0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),F0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),KL={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:O0,scaleY:F0,scale:e=>(O0(e)+F0(e))/2,rotateX:e=>mm(Hs(Math.atan2(e[6],e[5]))),rotateY:e=>mm(Hs(Math.atan2(-e[2],e[0]))),rotateZ:L0,rotate:L0,skewX:e=>Hs(Math.atan(e[4])),skewY:e=>Hs(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function pm(e){return e.includes("scale")?1:0}function gm(e,t){if(!e||e==="none")return pm(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,a;if(r)o=KL,a=r;else{const d=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=GL,a=d}if(!a)return pm(t);const l=o[t],c=a[1].split(",").map(QL);return typeof l=="function"?l(c):c[l]}const qL=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return gm(r,t)};function QL(e){return parseFloat(e.trim())}const vi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],bi=new Set(vi),$0=e=>e===yi||e===me,XL=new Set(["x","y","z"]),JL=vi.filter(e=>!XL.has(e));function ZL(e){const t=[];return JL.forEach(r=>{const o=e.getValue(r);o!==void 0&&(t.push([r,o.get()]),o.set(r.startsWith("scale")?1:0))}),t}const cs={width:({x:e},{paddingLeft:t="0",paddingRight:r="0",boxSizing:o})=>{const a=e.max-e.min;return o==="border-box"?a:a-parseFloat(t)-parseFloat(r)},height:({y:e},{paddingTop:t="0",paddingBottom:r="0",boxSizing:o})=>{const a=e.max-e.min;return o==="border-box"?a:a-parseFloat(t)-parseFloat(r)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>gm(t,"x"),y:(e,{transform:t})=>gm(t,"y")};cs.translateX=cs.x;cs.translateY=cs.y;const Ks=new Set;let xm=!1,ym=!1,vm=!1;function E2(){if(ym){const e=Array.from(Ks).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),r=new Map;t.forEach(o=>{const a=ZL(o);a.length&&(r.set(o,a),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();const a=r.get(o);a&&a.forEach(([l,c])=>{o.getValue(l)?.set(c)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}
vendor: 1,412 bytes, line 138
138ym=!1,xm=!1,Ks.forEach(e=>e.complete(vm)),Ks.clear()}function P2(){Ks.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ym=!0)})}function eO(){vm=!0,P2(),E2(),vm=!1}class Wp{constructor(t,r,o,a,l,c=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=o,this.motionValue=a,this.element=l,this.isAsync=c}scheduleResolve(){this.state="scheduled",this.isAsync?(Ks.add(this),xm||(xm=!0,We.read(P2),We.resolveKeyframes(E2))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:o,motionValue:a}=this;if(t[0]===null){const l=a?.get(),c=t[t.length-1];if(l!==void 0)t[0]=l;else if(o&&r){const d=o.readValue(r,c);d!=null&&(t[0]=d)}t[0]===void 0&&(t[0]=c),a&&l===void 0&&a.set(t[0])}YL(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ks.delete(this)}cancel(){this.state==="scheduled"&&(Ks.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const tO=e=>e.startsWith("--");function A2(e,t,r){tO(t)?e.style.setProperty(t,r):e.style[t]=r}const rO={};function R2(e,t){const r=s2(e);return()=>rO[t]??r()}const nO=R2(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),M2=R2(()=>{try{document.createElement("div").animate({opacity:0}
138,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ca=([e,t,r,o])=>`cubic-bezier(${e}, ${t}, ${r}, ${o})`,V0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ca([0,.65,.55,1]),circOut:ca([.55,0,1,.45]),backIn:ca([.31,.01,.66,-.59]),backOut:ca([.33,1.53,.69,.99])};function _2(e,t){if(e)return typeof e=="function"?M2()?k2(e,t):"ease-out":p2(e)?ca(e):Array.isArray(e)?e.map(r=>_2(r,t)||V0.easeOut):V0[e]}function sO(e,t,r,{delay:o=0,duration:a=300,repeat:l=0,repeatType:c="loop",ease:d="easeOut",times:f}={},h=void 0){const p={[t]:r};f&&(p.offset=f);const g=_2(d,a);Array.isArray(g)&&(p.easing=g);const x={delay:o,duration:a,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:l+1,direction:c==="reverse"?"alternate":"normal"};return h&&(x.pseudoElement=h),e.animate(p,x)}function D2(e){return typeof e=="function"&&"applyToOptions"in e}function oO({type:e,...t}){return D2(e)&&M2()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class I2 extends Up{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:r,name:o,keyframes:a,pseudoElement:l,allowFlatten:c=!1,finalKeyframe:d,onComplete:f}=t;this.isPseudoElement=!!l,this.allowFlatten=c,this.options=t,Dp(typeof t.type!="string");const h=oO(t);this.animation=sO(r,o,a,h,l),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!l){const p=Au(a,this.options,d,this.speed);this.updateMotionValue&&this.updateMotionValue(p),A2(r,o,p),this.animation.cancel()}f?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Sr(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Sr(t)}get time(){return Sr(Number(this.animation.currentTime)||0)}set time(t){const r=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=hr(t),r&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:r,rangeEnd:o,observe:a}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&nO()?(this.animation.timeline=t,r&&(this.animation.rangeStart=r),o&&(this.animation.rangeEnd=o),kr):a(this)}}const L2={anticipate:d2,backInOut:u2,circInOut:h2};function iO(e){return e in L2}function aO(e){typeof e.ease=="string"&&iO(e.ease)&&(e.ease=L2[e.ease])}const rh=10;class lO extends I2{constructor(t){aO(t),T2(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:r,onUpdate:o,onComplete:a,element:l,...c}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}const d=new Zc({...c,autoplay:!1}),f=Math.max(rh,$t.now()-this.startTime),h=gn(0,rh,f-rh),p=d.sample(f).value,{name:g}=this.options;l&&g&&A2(l,g,p),r.setWithVelocity(d.sample(Math.max(0,f-h)).value,p,h),d.stop()}}const B0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(qr.test(e)||e==="0")&&!e.startsWith("url("));function cO(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function uO(e,t,r,o){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const l=e[e.length-1],c=B0(a,t),d=B0(l,t);return!c||!d?!1:cO(e)||(r==="spring"||D2(r))&&o}function bm(e){e.duration=0,e.type="keyframes"}const O2=new Set(["opacity","clipPath","filter","transform"]),dO=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function fO(e){for(let t=0;t<e.length;
138t++)if(typeof e[t]=="string"&&dO.test(e[t]))return!0;return!1}const hO=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),mO=s2(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function pO(e){const{motionValue:t,name:r,repeatDelay:o,repeatType:a,damping:l,type:c,keyframes:d}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:p}=t.owner.getProps();return mO()&&r&&(O2.has(r)||hO.has(r)&&fO(d))&&(r!=="transform"||!p)&&!h&&!o&&a!=="mirror"&&l!==0&&c!=="inertia"}const gO=40;class xO extends Up{constructor({autoplay:t=!0,delay:r=0,type:o="keyframes",repeat:a=0,repeatDelay:l=0,repeatType:c="loop",keyframes:d,name:f,motionValue:h,element:p,...g}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=$t.now();const x={autoplay:t,delay:r,type:o,repeat:a,repeatDelay:l,repeatType:c,name:f,motionValue:h,element:p,...g},v=p?.KeyframeResolver||Wp;this.keyframeResolver=new v(d,(N,w,j)=>this.onKeyframesResolved(N,w,x,!j),f,h,p),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,o,a){this.keyframeResolver=void 0;const{name:l,type:c,velocity:d,delay:f,isHandoff:h,onUpdate:p}=o;this.resolvedAt=$t.now();let g=!0;uO(t,l,c,d)||(g=!1,(gs.instantAnimations||!f)&&p?.(Au(t,o,r)),t[0]=t[t.length-1],bm(o),o.repeat=0);const v={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>gO?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...o,keyframes:t},N=g&&!h&&pO(v),w=v.motionValue?.owner?.current;let j;if(N)try{j=new lO({...v,element:w})}catch{j=new Zc(v)}else j=new Zc(v);j.finished.then(()=>{this.notifyFinished()}).catch(kr),this.pendingTimeline&&(this.stopTimeline=j.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=j}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eO()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function F2(e,t,r,o=0,a=1){const l=Array.from(e).sort((h,p)=>h.sortNodePosition(p)).indexOf(t),c=e.size,d=(c-1)*o;return typeof r=="function"?r(l,c):a===1?l*o:d-l*o}const yO=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function vO(e){const t=yO.exec(e);if(!t)return[,];const[,r,o,a]=t;return[`--${r??o}`,a]}function $2(e,t,r=1){const[o,a]=vO(e);if(!o)return;const l=window.getComputedStyle(t).getPropertyValue(o);if(l){const c=l.trim();return t2(c)?parseFloat(c):c}return Fp(a)?$2(a,t,r+1):a}const bO={type:"spring",stiffness:500,damping:25,restSpeed:10},wO=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),jO={type:"keyframes",duration:.8},NO={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},SO=(e,{keyframes:t})=>t.length>2?jO:bi.has(e)?e.startsWith("scale")?wO(t[1]):bO:NO;function V2(e,t){if(e?.inherit&&t){const{inherit:r,...o}=e;return{...t,...o}}return e}function Hp(e,t){const r=e?.[t]??e?.default??e;return r!==e?V2(r,e):r}const kO=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function CO(e){for(const t in e)if(!kO.has(t))return!0;return!1}const Yp=(e,t,r,o={},a,l)=>c=>{const d=Hp(o,e)||{},f=d.delay||o.delay||0;let{elapsed:h=0}=o;h=h-hr(f);const p={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-h,onUpdate:x=>{t.set(x),d.onUpdate&&d.onUpdate(x)},onComplete:()=>{c(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:l?void 0:a};CO(d)||Object.assign(p,SO(e,p)),p.duration&&(p.duration=hr(p.duration)),p.repeatDelay&&(p.repeatDelay=hr(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let g=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(bm(p),p.delay===0&&(g=!0)),(gs.instantAnimations||gs.skipAnimations||a?.shouldSkipAnimations)&&(g=!0,bm(p),p.delay=0),p.allowFlatten=!d.type&&!d.ease,g&&!l&&t.get()!==void 0){const x=Au(p.keyframes,d);if(x!==void 0){We.update(()=>{p.onUpdate(x),p.onComplete()});return}}return d.isSync?new Zc(p):new xO(p)};function z0(e){const t=[{},{}];
vendor: 9,633 bytes, line 138
138return e?.values.forEach((r,o)=>{t[0][o]=r.get(),t[1][o]=r.getVelocity()}),t}function Gp(e,t,r,o){if(typeof t=="function"){const[a,l]=z0(o);t=t(r!==void 0?r:e.custom,a,l)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,l]=z0(o);t=t(r!==void 0?r:e.custom,a,l)}return t}function qs(e,t,r){const o=e.getProps();return Gp(o,t,r!==void 0?r:o.custom,e)}const B2=new Set(["width","height","top","left","right","bottom",...vi]),U0=30,TO=e=>!isNaN(parseFloat(e));class EO{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const a=$t.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=$t.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=TO(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Ip);const o=this.events[t].add(r);return t==="change"?()=>{o(),We.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,o){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=$t.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>U0)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,U0);return o2(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ni(e,t){return new EO(e,t)}const wm=e=>Array.isArray(e);function PO(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,ni(r))}function AO(e){return wm(e)?e[e.length-1]||0:e}function RO(e,t){const r=qs(e,t);let{transitionEnd:o={},transition:a={},...l}=r||{};l={...l,...o};for(const c in l){const d=AO(l[c]);PO(e,c,d)}}const Et=e=>!!(e&&e.getVelocity);function MO(e){return!!(Et(e)&&e.add)}function jm(e,t){const r=e.getValue("willChange");if(MO(r))return r.add(t);if(!r&&gs.WillChange){const o=new gs.WillChange("auto");e.addValue("willChange",o),o.add(t)}}function Kp(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const _O="framerAppearId",z2="data-"+Kp(_O);function U2(e){return e.props[z2]}function DO({protectedKeys:e,needsAnimating:t},r){const o=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,o}function W2(e,t,{delay:r=0,transitionOverride:o,type:a}={}){let{transition:l,transitionEnd:c,...d}=t;const f=e.getDefaultTransition();l=l?V2(l,f):f;const h=l?.reduceMotion;o&&(l=o);const p=[],g=a&&e.animationState&&e.animationState.getState()[a];for(const x in d){const v=e.getValue(x,e.latestValues[x]??null),N=d[x];if(N===void 0||g&&DO(g,x))continue;const w={delay:r,...Hp(l||{},x)},j=v.get();if(j!==void 0&&!v.isAnimating()&&!Array.isArray(N)&&N===j&&!w.velocity){We.update(()=>v.set(N));continue}let k=!1;if(window.MotionHandoffAnimation){const A=U2(e);if(A){const E=window.MotionHandoffAnimation(A,x,We);E!==null&&(w.startTime=E,k=!0)}}jm(e,x);const C=h??e.shouldReduceMotion;v.start(Yp(x,v,N,C&&B2.has(x)?{type:!1}:w,e,k));const T=v.animation;T&&p.push(T)}if(c){const x=()=>We.update(()=>{c&&RO(e,c)});p.length?Promise.all(p).then(x):x()}return p}function Nm(e,t,r={}){const o=qs(e,t,r.type==="exit"?e.presenceContext?.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(a=r.transitionOverride);const l=o?()=>Promise.all(W2(e,o,r)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:h=0,staggerChildren:p,staggerDirection:g}=a;return IO(e,t,f,h,p,g,r)}:()=>Promise.resolve(),{when:d}=a;if(d){const[f,h]=d==="beforeChildren"?[l,c]:[c,l];return f().then(()=>h())}else return Promise.all([l(),c(r.delay)])}function IO(e,t,r=0,o=0,a=0,l=1,c){const d=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),d.push(Nm(f,t,{...c,delay:r+(typeof o=="function"?0:o)+F2(e.variantChildren,f,o,a,l)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(d)}function LO(e,t,r={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){const a=t.map(l=>Nm(e,l,r));o=Promise.all(a)}else if(typeof t=="string")o=Nm(e,t,r);else{const a=typeof t=="function"?qs(e,t,r.custom):t;o=Promise.all(W2(e,a,r))}return o.then(()=>{e.notify("AnimationComplete",t)})}const OO={test:e=>e==="auto",parse:e=>e},H2=e=>t=>t.test(e),Y2=[yi,me,hn,is,cL,lL,OO],W0=e=>Y2.find(H2(e));function FO(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||n2(e):!0}const $O=new Set(["brightness","contrast","saturate","opacity"]);function VO(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=r.match($p)||[];if(!o)return e;const a=r.replace(o,"");let l=$O.has(t)?1:0;return o!==r&&(l*=100),t+"("+l+a+")"}const BO=/\b([a-z-]*)\(.*?\)/gu,Sm={...qr,getAnimatableNone:e=>{const t=e.match(BO);return t?t.map(VO).join(" "):e}},km={...qr,getAnimatableNone:e=>{const t=qr.parse(e);return qr.createTransformer(e)(t.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}},H0={...yi,transform:Math.round},zO={rotate:is,rotateX:is,rotateY:is,rotateZ:is,scale:hc,scaleX:hc,scaleY:hc,scaleZ:hc,skew:is,skewX:is,skewY:is,distance:me,translateX:me,translateY:me,translateZ:me,x:me,y:me,z:me,perspective:me,transformPerspective:me,opacity:Pa,originX:R0,originY:R0,originZ:me},qp={borderWidth:me,borderTopWidth:me,borderRightWidth:me,borderBottomWidth:me,borderLeftWidth:me,borderRadius:me,borderTopLeftRadius:me,borderTopRightRadius:me,borderBottomRightRadius:me,borderBottomLeftRadius:me,width:me,maxWidth:me,height:me,maxHeight:me,top:me,right:me,bottom:me,left:me,inset:me,insetBlock:me,insetBlockStart:me,insetBlockEnd:me,insetInline:me,insetInlineStart:me,insetInlineEnd:me,padding:me,paddingTop:me,paddingRight:me,paddingBottom:me,paddingLeft:me,paddingBlock:me,paddingBlockStart:me,paddingBlockEnd:me,paddingInline:me,paddingInlineStart:me,paddingInlineEnd:me,margin:me,marginTop:me,marginRight:me,marginBottom:me,marginLeft:me,marginBlock:me,marginBlockStart:me,marginBlockEnd:me,marginInline:me,marginInlineStart:me,marginInlineEnd:me,fontSize:me,backgroundPositionX:me,backgroundPositionY:me,...zO,zIndex:H0,fillOpacity:Pa,strokeOpacity:Pa,numOctaves:H0},UO={...qp,color:dt,backgroundColor:dt,outlineColor:dt,fill:dt,stroke:dt,borderColor:dt,borderTopColor:dt,borderRightColor:dt,borderBottomColor:dt,borderLeftColor:dt,filter:Sm,WebkitFilter:Sm,mask:km,WebkitMask:km},G2=e=>UO[e],WO=new Set([Sm,km]);function K2(e,t){let r=G2(e);return WO.has(r)||(r=qr),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const HO=new Set(["auto","none","0"]);function YO(e,t,r){let o=0,a;for(;o<e.length&&!a;){const l=e[o];typeof l=="string"&&!HO.has(l)&&ri(l).values.length&&(a=e[o]),o++}if(a&&r)for(const l of t)e[l]=K2(r,a)}class GO extends Wp{constructor(t,r,o,a,l){super(t,r,o,a,l,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:o}=this;if(!r||!r.current)return;super.readKeyframes();for(let p=0;p<t.length;p++){let g=t[p];if(typeof g=="string"&&(g=g.trim(),Fp(g))){const x=$2(g,r.current);x!==void 0&&(t[p]=x),p===t.length-1&&(this.finalKeyframe=g)}}if(this.resolveNoneKeyframes(),!B2.has(o)||t.length!==2)return;const[a,l]=t,c=W0(a),d=W0(l),f=A0(a),h=A0(l);if(f!==h&&cs[o]){this.needsMeasurement=!0;return}if(c!==d)if($0(c)&&$0(d))for(let p=0;p<t.length;p++){const g=t[p];typeof g=="string"&&(t[p]=parseFloat(g))}else cs[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,o=[];for(let a=0;a<t.length;a++)(t[a]===null||FO(t[a]))&&o.push(a);o.length&&YO(t,o,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=cs[o](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const a=r[r.length-1];a!==void 0&&t.getValue(o,a).jump(a,!1)}measureEndState(){const{element:t,name:r,unresolvedKeyframes:o}=this;if(!t||!t.current)return;const a=t.getValue(r);a&&a.jump(this.measuredOrigin,!1);const l=o.length-1,c=o[l];o[l]=cs[r](t.measureViewportBox(),window.getComputedStyle(t.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),this.removedTransforms?.length&&this.removedTransforms.forEac
138h(([d,f])=>{t.getValue(d).set(f)}),this.resolveNoneKeyframes()}}function q2(e,t,r){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;const a=r?.[e]??o.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e).filter(o=>o!=null)}const Q2=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function KO(e){return r2(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Qp}=g2(queueMicrotask,!1),Ur={x:!1,y:!1};function X2(){return Ur.x||Ur.y}function qO(e){return e==="x"||e==="y"?Ur[e]?null:(Ur[e]=!0,()=>{Ur[e]=!1}):Ur.x||Ur.y?null:(Ur.x=Ur.y=!0,()=>{Ur.x=Ur.y=!1})}function J2(e,t){const r=q2(e),o=new AbortController,a={passive:!0,...t,signal:o.signal};return[r,a,()=>o.abort()]}function QO(e){return!(e.pointerType==="touch"||X2())}function XO(e,t,r={}){const[o,a,l]=J2(e,r);return o.forEach(c=>{let d=!1,f=!1,h;const p=()=>{c.removeEventListener("pointerleave",N)},g=j=>{h&&(h(j),h=void 0),p()},x=j=>{d=!1,window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",x),f&&(f=!1,g(j))},v=()=>{d=!0,window.addEventListener("pointerup",x,a),window.addEventListener("pointercancel",x,a)},N=j=>{if(j.pointerType!=="touch"){if(d){f=!0;return}g(j)}},w=j=>{if(!QO(j))return;f=!1;const k=t(c,j);typeof k=="function"&&(h=k,c.addEventListener("pointerleave",N,a))};c.addEventListener("pointerenter",w,a),c.addEventListener("pointerdown",v,a)}),l}const Z2=(e,t)=>t?e===t?!0:Z2(e,t.parentElement):!1,Xp=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,JO=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ZO(e){return JO.has(e.tagName)||e.isContentEditable===!0}const eF=new Set(["INPUT","SELECT","TEXTAREA"]);function tF(e){return eF.has(e.tagName)||e.isContentEditable===!0}const Tc=new WeakSet;function Y0(e){return t=>{t.key==="Enter"&&e(t)}}function nh(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const rF=(e,t)=>{const r=e.currentTarget;if(!r)return;const o=Y0(()=>{if(Tc.has(r))return;nh(r,"down");const a=Y0(()=>{nh(r,"up")}),l=()=>nh(r,"cancel");r.addEventListener("keyup",a,t),r.addEventListener("blur",l,t)});r.addEventListener("keydown",o,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",o),t)};function G0(e){return Xp(e)&&!X2()}const K0=new WeakSet;function nF(e,t,r={}){const[o,a,l]=J2(e,r),c=d=>{const f=d.currentTarget;if(!G0(d)||K0.has(d))return;Tc.add(f),r.stopPropagation&&K0.add(d);const h=t(f,d),p=(v,N)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",x),Tc.has(f)&&Tc.delete(f),G0(v)&&typeof h=="function"&&h(v,{success:N})},g=v=>{p(v,f===window||f===document||r.useGlobalTarget||Z2(f,v.target))},x=v=>{p(v,!1)};window.addEventListener("pointerup",g,a),window.addEventListener("pointercancel",x,a)};return o.forEach(d=>{(r.useGlobalTarget?window:d).addEventListener("pointerdown",c,a),KO(d)&&(d.addEventListener("focus",h=>rF(h,a)),!ZO(d)&&!d.hasAttribute("tabindex")&&(d.tabIndex=0))}),l}function Jp(e){return r2(e)&&"ownerSVGElement"in e}const Ec=new WeakMap;let Pc;const eS=(e,t,r)=>(o,a)=>a&&a[0]?a[0][e+"Size"]:Jp(o)&&"getBBox"in o?o.getBBox()[t]:o[r],sF=eS("inline","width","offsetWidth"),oF=eS("block","height","offsetHeight");function iF({target:e,borderBoxSize:t}){Ec.get(e)?.forEach(r=>{r(e,{get width(){return sF(e,t)},get height(){return oF(e,t)}})})}function aF(e){e.forEach(iF)}function lF(){typeof ResizeObserver>"u"||(Pc=new ResizeObserver(aF))}function cF(e,t){Pc||lF();const r=q2(e);return r.forEach(o=>{let a=Ec.get(o);a||(a=new Set,Ec.set(o,a)),a.add(t),Pc?.observe(o)}),()=>{r.forEach(o=>{const a=Ec.get(o);a?.delete(t),a?.size||Pc?.unobserve(o)})}}const Ac=new Set;let $o;function uF(){$o=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ac.forEach(t=>t(e))},window.addEventListener("resize",$o)}function dF(e){return Ac.add(e),$o||uF(),()=>{Ac.delete(e),!Ac.size&&typeof $o=="function"&&(window.removeEventListener("resize",$o),$o=void 0)}}function q0(e,t){return typeof e=="function"?dF(e):cF(e,t)}function fF(e){return Jp(e)&&e.tagName==="svg"}const hF=[...Y2,dt,qr],mF=e=>hF.find(H2(e)),Q0=()=>({translate:0,scale:1,origin:0,originPoint:0}),Vo=()=>({x:Q0(),y:Q0()}),X0=()=>({min:0,max:0}),gt=()=>({x:X0(),y:X0()}),pF=new WeakMap;function Ru(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Aa(e){return typeof e=="string"||Array.isArray(e)}const Zp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eg=["initial",...Zp];function Mu(e){return Ru(e.animate)||eg.some(t=>Aa(e[t]))}function tS(e){return!!(Mu(e)||e.variants)}function gF(e,t,r){for(const o in t){const a=t[o],l=r[o];if(Et(a))e.addValue(o,a);else if(Et(l))e.addValue(o,ni(a,{owner:e}));else if(l!==a)if(e.hasValue(o)){const c=e.getValue(o);c.liveStyle===!0?c.jump(a):c.hasAnimated||c.set(a)}else{const c=e.getStaticValue(o);e.addValue(o,ni(c!==void 0?c:a,{owner:e}))}}for(const o in r)t[o]===void 0&&e.removeValue(o);return t}const Cm={current:null},rS={current:!1},xF=typeof window<"u";function yF(){if(rS.current=!0,!!xF)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Cm.current=e.matches;e.addEventListener("change",t),t()}else Cm.current=!1}const J0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let eu={};function nS(e){eu=e}function vF(){return eu}class bF{scrapeMotionValuesFromProps(t,r,o){return{}}constructor({parent:t,props:r,presenceContext:o,reducedMotionConfig:a,skipAnimations:l,blockInitialAnimation:c,visualState:d},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Wp,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const v=$t.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,We.render(this.render,!1,!0))};const{latestValues:h,renderState:p}=d;this.latestValues=h,this.baseTarget={...h},this.initialValues=r.initial?{...h}:{},this.renderState=p,this.parent=t,this.props=r,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.skipAnimationsConfig=l,this.options=f,this.blockInitialAnimation=!!c,this.isControllingVariants=Mu(r),this.isVariantNode=tS(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:g,...x}=this.scrapeMotionValuesFromProps(r,{},this);for(const v in x){const N=x[v];h[v]!==void 0&&Et(N)&&N.set(h[v])}}mount(t){if(this.hasBeenMounted)for(const r in this.initialValues)this.values.get(r)?.jump(this.initialValues[r]),this.latestValues[r]=this.initialValues[r];this.current=t,pF.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
vendor: 19,034 bytes, line 138
138h((r,o)=>this.bindToMotionValue(o,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(rS.current||yF(),this.shouldReduceMotion=Cm.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),xs(this.notifyUpdate),xs(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),r.accelerate&&O2.has(t)&&this.current instanceof HTMLElement){const{factory:c,keyframes:d,times:f,ease:h,duration:p}=r.accelerate,g=new I2({element:this.current,name:t,keyframes:d,times:f,ease:h,duration:hr(p)}),x=c(g);this.valueSubscriptions.set(t,()=>{x(),g.cancel()});return}const o=bi.has(t);o&&this.onBindTransform&&this.onBindTransform();const a=r.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&We.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let l;typeof window<"u"&&window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{a(),l&&l(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in eu){const r=eu[t];if(!r)continue;const{isEnabled:o,Feature:a}=r;if(!this.features[t]&&a&&o(this.props)&&(this.features[t]=new a(this)),this.features[t]){const l=this.features[t];l.isMounted?l.update():(l.mount(),l.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):gt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let o=0;o<J0.length;o++){const a=J0[o];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const l="on"+a,c=t[l];c&&(this.propEventSubscriptions[a]=this.on(a,c))}this.prevMotionValues=gF(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){const o=this.values.get(t);r!==o&&(o&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let o=this.values.get(t);return o===void 0&&r!==void 0&&(o=ni(r===null?void 0:r,{owner:this}),this.addValue(t,o)),o}readValue(t,r){let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(t2(o)||n2(o))?o=parseFloat(o):!mF(o)&&qr.test(r)&&(o=K2(t,r)),this.setBaseTarget(t,Et(o)?o.get():o)),Et(o)?o.get():o}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const l=Gp(this.props,r,this.presenceContext?.custom);l&&(o=l[t])}if(r&&o!==void 0)return o;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Et(a)?a:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Ip),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){Qp.render(this.render)}}class sS extends bF{constructor(){super(...arguments),this.KeyframeResolver=GO}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){const o=t.style;return o?o[r]:void 0}removeValueFromRenderState(t,{vars:r,style:o}){delete r[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Et(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class Ns{constructor(t){this.isMounted=!1,this.node=t}update(){}}function oS({top:e,left:t,right:r,bottom:o}){return{x:{min:t,max:r},y:{min:e,max:o}}}function wF({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function jF(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:o.y,right:o.x}}function sh(e){return e===void 0||e===1}function Tm({scale:e,scaleX:t,scaleY:r}){return!sh(e)||!sh(t)||!sh(r)}function Us(e){return Tm(e)||iS(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function iS(e){return Z0(e.x)||Z0(e.y)}function Z0(e){return e&&e!=="0%"}function tu(e,t,r){const o=e-r,a=t*o;return r+a}function eb(e,t,r,o,a){return a!==void 0&&(e=tu(e,a,o)),tu(e,r,o)+t}function Em(e,t=0,r=1,o,a){e.min=eb(e.min,t,r,o,a),e.max=eb(e.max,t,r,o,a)}function aS(e,{x:t,y:r}){Em(e.x,t.translate,t.scale,t.originPoint),Em(e.y,r.translate,r.scale,r.originPoint)}const tb=.999999999999,rb=1.0000000000001;function NF(e,t,r,o=!1){const a=r.length;if(!a)return;t.x=t.y=1;let l,c;for(let d=0;d<a;d++){l=r[d],c=l.projectionDelta;const{visualElement:f}=l.options;f&&f.props.style&&f.props.style.display==="contents"||(o&&l.options.layoutScroll&&l.scroll&&l!==l.root&&(cn(e.x,-l.scroll.offset.x),cn(e.y,-l.scroll.offset.y)),c&&(t.x*=c.x.scale,t.y*=c.y.scale,aS(e,c)),o&&Us(l.latestValues)&&Rc(e,l.latestValues,l.layout?.layoutBox))}t.x<rb&&t.x>tb&&(t.x=1),t.y<rb&&t.y>tb&&(t.y=1)}function cn(e,t){e.min+=t,e.max+=t}function nb(e,t,r,o,a=.5){const l=qe(e.min,e.max,a);Em(e,t,r,l,o)}function sb(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Rc(e,t,r){const o=r??e;nb(e.x,sb(t.x,o.x),t.scaleX,t.scale,t.originX),nb(e.y,sb(t.y,o.y),t.scaleY,t.scale,t.originY)}function lS(e,t){return oS(jF(e.getBoundingClientRect(),t))}function SF(e,t,r){const o=lS(e,r),{scroll:a}=t;return a&&(cn(o.x,a.offset.x),cn(o.y,a.offset.y)),o}const kF={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},CF=vi.length;function TF(e,t,r){let o="",a=!0;for(let l=0;l<CF;l++){const c=vi[l],d=e[c];if(d===void 0)continue;let f=!0;if(typeof d=="number")f=d===(c.startsWith("scale")?1:0);else{const h=parseFloat(d);f=c.startsWith("scale")?h===1:h===0}if(!f||r){const h=Q2(d,qp[c]);if(!f){a=!1;const p=kF[c]||c;o+=`${p}(${h}) `}r&&(t[c]=h)}}return o=o.trim(),r?o=r(t,a?"":o):a&&(o="none"),o}function tg(e,t,r){const{style:o,vars:a,transformOrigin:l}=e;let c=!1,d=!1;for(const f in t){const h=t[f];if(bi.has(f)){c=!0;continue}else if(y2(f)){a[f]=h;continue}else{const p=Q2(h,qp[f]);f.startsWith("origin")?(d=!0,l[f]=p):o[f]=p}}if(t.transform||(c||r?o.transform=TF(t,e.transform,r):o.transform&&(o.transform="none")),d){const{originX:f="50%",originY:h="50%",originZ:p=0}=l;o.transformOrigin=`${f} ${h} ${p}`}}function cS(e,{style:t,vars:r},o,a){const l=e.style;let c;for(c in t)l[c]=t[c];a?.applyProjectionStyles(l,o);for(c in r)l.setProperty(c,r[c])}function ob(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ia={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(me.test(e))e=parseFloat(e);else return e;const r=ob(e,t.target.x),o=ob(e,t.target.y);return`${r}% ${o}%`}},EF={correct:(e,{treeScale:t,projectionDelta:r})=>{const o=e,a=qr.parse(e);if(a.length>5)return o;const l=qr.createTransformer(e),c=typeof a[0]!="number"?1:0,d=r.x.scale*t.x,f=r.y.scale*t.y;a[0+c]/=d,a[1+c]/=f;const h=qe(d,f,.5);return typeof a[2+c]=="number"&&(a[2+c]/=h),typeof a[3+c]=="number"&&(a[3+c]/=h),l(a)}},Pm={borderRadius:{...ia,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ia,borderTopRightRadius:ia,borderBottomLeftRadius:ia,borderBottomRightRadius:ia,boxShadow:EF};function uS(e,{layout:t,layoutId:r}){return bi.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Pm[e]||e==="opacity")}function rg(e,t,r){const o=e.style,a=t?.style,l={};if(!o)return l;for(const c in o)(Et(o[c])||a&&Et(a[c])||uS(c,e)||r?.getValue(c)?.liveStyle!==void 0)&&(l[c]=o[c]);return l}function PF(e){return window.getComputedStyle(e)}class AF extends sS{constructor(){super(...arguments),this.type="html",this.renderInstance=cS}readValueFromInstance(t,r){if(bi.has(r))return this.projection?.isProjecting?pm(r):qL(t,r);{const o=PF(t),a=(y2(r)?o.getPropertyValue(r):o[r])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:r}){return lS(t,r)}build(t,r,o){tg(t,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,r,o){return rg(t,r,o)}}const RF={offset:"stroke-dashoffset",array:"stroke-dasharray"},MF={offset:"strokeDashoffset",array:"strokeDasharray"};function _F(e,t,r=1,o=0,a=!0){e.pathLength=1;const l=a?RF:MF;e[l.offset]=`${-o}`,e[l.array]=`${t} ${r}`}const DF=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function dS(e,{attrX:t,attrY:r,attrScale:o,pathLength:a,pathSpacing:l=1,pathOffset:c=0,...d},f,h,p){if(tg(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:x}=e;g.transform&&(x.transform=g.transform,delete g.transform),(x.transform||g.transformOrigin)&&(x.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),x.transform&&(x.transformBox=p?.transformBox??"fill-box",delete g.transformBox);for(const v of DF)g[v]!==void 0&&(x[v]=g[v],delete g[v]);t!==void 0&&(g.x=t),r!==void 0&&(g.y=r),o!==void 0&&(g.scale=o),a!==void 0&&_F(g,a,l,c,!1)}const fS=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),hS=e=>typeof e=="string"&&e.toLowerCase()==="svg";function IF(e,t,r,o){cS(e,t,void 0,o);for(const a in t.attrs)e.setAttribute(fS.has(a)?a:Kp(a),t.attrs[a])}function mS(e,t,r){const o=rg(e,t,r);for(const a in e)if(Et(e[a])||Et(t[a])){const l=vi.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;o[l]=e[a]}return o}class LF extends sS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=gt}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(bi.has(r)){const o=G2(r);return o&&o.default||0}return r=fS.has(r)?r:Kp(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,o){return mS(t,r,o)}build(t,r,o){dS(t,r,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,r,o,a){IF(t,r,o,a)}mount(t){this.isSVGTag=hS(t.tagName),super.mount(t)}}const OF=eg.length;function pS(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?pS(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;r<OF;r++){const o=eg[r],a=e.props[o];(Aa(a)||a===!1)&&(t[o]=a)}return t}function gS(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let o=0;o<r;o++)if(t[o]!==e[o])return!1;return!0}const FF=[...Zp].reverse(),$F=Zp.length;function VF(e){return t=>Promise.all(t.map(({animation:r,options:o})=>LO(e,r,o)))}function BF(e){let t=VF(e),r=ib(),o=!0,a=!1;const l=h=>(p,g)=>{const x=qs(e,g,h==="exit"?e.presenceContext?.custom:void 0);if(x){const{transition:v,transitionEnd:N,...w}=x;p={...p,...w,...N}}return p};function c(h){t=h(e)}function d(h){const{props:p}=e,g=pS(e.parent)||{},x=[],v=new Set;let N={},w=1/0;for(let k=0;k<$F;k++){const C=FF[k],T=r[C],A=p[C]!==void 0?p[C]:g[C],E=Aa(A),D=C===h?T.isActive:null;D===!1&&(w=k);let I=A===g[C]&&A!==p[C]&&E;if(I&&(o||a)&&e.manuallyAnimateOnMount&&(I=!1),T.protectedKeys={...N},!T.isActive&&D===null||!A&&!T.prevProp||Ru(A)||typeof A=="boolean")continue;if(C==="exit"&&T.isActive&&D!==!0){T.prevResolvedValues&&(N={...N,...T.prevResolvedValues});continue}const _=zF(T.prevProp,A);let H=_||C===h&&T.isActive&&!I&&E||k>w&&E,z=!1;const G=Array.isArray(A)?A:[A];let q=G.reduce(l(C),{});D===!1&&(q={});const{prevResolvedValues:le={}}=T,F={...le,...q},J=$=>{H=!0,v.has($)&&(z=!0,v.delete($)),T.needsAnimating[$]=!0;const W=e.getValue($);W&&(W.liveStyle=!1)};for(const $ in F){const W=q[$],K=le[$];if(N.hasOwnProperty($))continue;let M=!1;wm(W)&&wm(K)?M=!gS(W,K):M=W!==K,M?W!=null?J($):v.add($):W!==void 0&&v.has($)?J($):T.protectedKeys[$]=!0}T.prevProp=A,T.prevResolvedValues=q,T.isActive&&(N={...N,...q}),(o||a)&&e.blockInitialAnimation&&(H=!1);const Z=I&&_;H&&(!Z||z)&&x.push(...G.map($=>{const W={type:C};if(typeof $=="string"&&(o||a)&&!Z&&e.manuallyAnimateOnMount&&e.parent){const{parent:K}=e,M=qs(K,$);if(K.enteringChildren&&M){const{delayChildren:B}=M.transition||{};W.delay=F2(K.enteringChildren,e,B)}}return{animation:$,options:W}}))}if(v.size){const k={};if(typeof p.initial!="boolean"){const C=qs(e,Array.isArray(p.initial)?p.initial[0]:p.initial);C&&C.transition&&(k.transition=C.transition)}v.forEach(C=>{const T=e.getBaseTarget(C),A=e.getValue(C);A&&(A.liveStyle=!0),k[C]=T??null}),x.push({animation:k})}let j=!!x.length;return o&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(j=!1),o=!1,a=!1,j?t(x):Promise.resolve()}function f(h,p){if(r[h].isActive===p)return Promise.resolve();e.variantChildren?.forEach(x=>x.animationState?.setActive(h,p)),r[h].isActive=p;const g=d(h);for(const x in r)r[x].protectedKeys={};return g}return{animateChanges:d,setActive:f,setAnimateFunction:c,getState:()=>r,reset:()=>{r=ib(),a=!0}}}function zF(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!gS(t,e):!1}function zs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ib(){return{animate:zs(!0),whileInView:zs(),whileHover:zs(),whileTap:zs(),whileDrag:zs(),whileFocus:zs(),exit:zs()}}function Am(e,t){e.min=t.min,e.max=t.max}function Br(e,t){Am(e.x,t.x),Am(e.y,t.y)}function ab(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const xS=1e-4,UF=1-xS,WF=1+xS,yS=.01,HF=0-yS,YF=0+yS;function Vt(e){return e.max-e.min}function GF(e,t,r){return Math.abs(e-t)<=r}function lb(e,t,r,o=.5){e.origin=o,e.originPoint=qe(t.min,t.max,e.origin),e.scale=Vt(r)/Vt(t),e.translate=qe(r.min,r.max,e.origin)-e.originPoint,(e.scale>=UF&&e.scale<=WF||isNaN(e.scale))&&(e.scale=1),(e.translate>=HF&&e.translate<=YF||isNaN(e.translate))&&(e.translate=0)}function pa(e,t,r,o){lb(e.x,t.x,r.x,o?o.originX:void 0),lb(e.y,t.y,r.y,o?o.originY:void 0)}function cb(e,t,r,o=0){const a=o?qe(r.min,r.max,o):r.min;e.min=a+t.min,e.max=e.min+Vt(t)}function KF(e,t,r,o){cb(e.x,t.x,r.x,o?.x),cb(e.y,t.y,r.y,o?.y)}function ub(e,t,r,o=0){const a=o?qe(r.min,r.max,o):r.min;e.min=t.min-a,e.max=e.min+Vt(t)}function ru(e,t,r,o){ub(e.x,t.x,r.x,o?.x),ub(e.y,t.y,r.y,o?.y)}function db(e,t,r,o,a){return e-=t,e=tu(e,1/r,o),a!==void 0&&(e=tu(e,1/a,o)),e}function qF(e,t=0,r=1,o=.5,a,l=e,c=e){if(hn.test(t)&&(t=parseFloat(t),t=qe(c.min,c.max,t/100)-c.min),typeof t!="number")return;let d=qe(l.min,l.max,o);e===l&&(d-=t),e.min=db(e.min,t,r,d,a),e.max=db(e.max,t,r,d,a)}function fb(e,t,[r,o,a],l,c){qF(e,t[r],t[o],t[a],t.scale,l,c)}const QF=["x","scaleX","originX"],XF=["y","scaleY","originY"];function hb(e,t,r,o){fb(e.x,t,QF,r?r.x:void 0,o?o.x:void 0),fb(e.y,t,XF,r?r.y:void 0,o?o.y:void 0)}function mb(e){return e.translate===0&&e.scale===1}function vS(e){return mb(e.x)&&mb(e.y)}function pb(e,t){return e.min===t.min&&e.max===t.max}function JF(e,t){return pb(e.x,t.x)&&pb(e.y,t.y)}function gb(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function bS(e,t){return gb(e.x,t.x)&&gb(e.y,t.y)}function xb(e){return Vt(e.x)/Vt(e.y)}function yb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function ln(e){return[e("x"),e("y")]}function ZF(e,t,r){let o="";const a=e.x.translate/t.x,l=e.y.translate/t.y,c=r?.z||0;if((a||l||c)&&(o=`translate3d(${a}px, ${l}px, ${c}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:h,rotate:p,rotateX:g,rotateY:x,skewX:v,skewY:N}=r;h&&(o=`perspective(${h}px) ${o}`),p&&(o+=`rotate(${p}deg) `),g&&(o+=`rotateX(${g}deg) `),x&&(o+=`rotateY(${x}deg) `),v&&(o+=`skewX(${v}deg) `),N&&(o+=`skewY(${N}deg) `)}const d=e.x.scale*t.x,f=e.y.scale*t.y;return(d!==1||f!==1)&&(o+=`scale(${d}, ${f})`),o||"none"}const wS=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],e6=wS.length,vb=e=>typeof e=="string"?parseFloat(e):e,bb=e=>typeof e=="number"||me.test(e);function t6(e,t,r,o,a,l){a?(e.opacity=qe(0,r.opacity??1,r6(o)),e.opacityExit=qe(t.opacity??1,0,n6(o))):l&&(e.opacity=qe(t.opacity??1,r.opacity??1,o));for(let c=0;c<e6;c++){const d=wS[c];let f=wb(t,d),h=wb(r,d);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||bb(f)===bb(h)?(e[d]=Math.max(qe(vb(f),vb(h),o),0),(hn.test(h)||hn.test(f))&&(e[d]+="%")):e[d]=h}(t.rotate||r.rotate)&&(e.rotate=qe(t.rotate||0,r.rotate||0,o))}function wb(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const r6=jS(0,.5,f2),n6=jS(.5,.95,kr);function jS(e,t,r){return o=>o<e?0:o>t?1:r(Ea(e,t,o))}function s6(e,t,r){const o=Et(e)?e:ni(e);return o.start(Yp("",o,t,r)),o.animation}function Ra(e,t,r,o={passive:!0}){return e.addEventListener(t,r,o),()=>e.removeEventListener(t,r)}const o6=(e,t)=>e.depth-t.depth;class i6{constructor(){this.children=[],this.isDirty=!1}add(t){_p(this.children,t),this.isDirty=!0}remove(t){qc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(o6),this.isDirty=!1,this.children.forEac
vendor: 4,185 bytes, line 138
138h(t)}}function a6(e,t){const r=$t.now(),o=({timestamp:a})=>{const l=a-r;l>=t&&(xs(o),e(l-t))};return We.setup(o,!0),()=>xs(o)}function Mc(e){return Et(e)?e.get():e}class l6{constructor(){this.members=[]}add(t){_p(this.members,t);for(let r=this.members.length-1;r>=0;r--){const o=this.members[r];if(o===t||o===this.lead||o===this.prevLead)continue;const a=o.instance;(!a||a.isConnected===!1)&&!o.snapshot&&(qc(this.members,o),o.unmount())}t.scheduleRender()}remove(t){if(qc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){for(let r=this.members.indexOf(t)-1;r>=0;r--){const o=this.members[r];if(o.isPresent!==!1&&o.instance?.isConnected!==!1)return this.promote(o),!0}return!1}promote(t,r){const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.updateSnapshot(),t.scheduleRender();const{layoutDependency:a}=o.options,{layoutDependency:l}=t.options;(a===void 0||a!==l)&&(t.resumeFrom=o,r&&(o.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const _c={hasAnimatedSinceResize:!0,hasEverUpdated:!1},oh=["","X","Y","Z"],c6=1e3;let u6=0;function ih(e,t,r,o){const{latestValues:a}=t;a[e]&&(r[e]=a[e],t.setStaticValue(e,0),o&&(o[e]=0))}function NS(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=U2(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:a,layoutId:l}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",We,!(a||l))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&NS(o)}function SS({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:o,resetTransform:a}){return class{constructor(c={},d=t?.()){this.id=u6++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(h6),this.nodes.forEach(v6),this.nodes.forEach(b6),this.nodes.forEach(m6)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new i6)}addEventListener(c,d){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new Ip),this.eventHandlers.get(c).add(d)}notifyListeners(c,...d){const f=this.eventHandlers.get(c);f&&f.notify(...d)}hasListeners(c){return this.eventHandlers.has(c)}mount(c){if(this.instance)return;this.isSVG=Jp(c)&&!fF(c),this.instance=c;const{layoutId:d,layout:f,visualElement:h}=this.options;if(h&&!h.current&&h.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||d)&&(this.isLayoutDirty=!0),e){let p,g=0;const x=()=>this.root.updateBlockedByResize=!1;We.read(()=>{g=window.innerWidth}),e(c,()=>{const v=window.innerWidth;v!==g&&(g=v,this.root.updateBlockedByResize=!0,p&&p(),p=a6(x,250),_c.hasAnimatedSinceResize&&(_c.hasAnimatedSinceResize=!1,this.nodes.forEac
vendor: 23,486 bytes, line 138
138h(Sb)))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&h&&(d||f)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:g,hasRelativeLayoutChanged:x,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const N=this.options.transition||h.getDefaultTransition()||k6,{onLayoutAnimationStart:w,onLayoutAnimationComplete:j}=h.getProps(),k=!this.targetLayout||!bS(this.targetLayout,v),C=!g&&x;if(this.options.layoutRoot||this.resumeFrom||C||g&&(k||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...Hp(N,"layout"),onPlay:w,onComplete:j};(h.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(p,C)}else g||Sb(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),xs(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(w6),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&NS(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const g=this.path[p];g.shouldResetTransform=!0,(typeof g.latestValues.x=="string"||typeof g.latestValues.y=="string")&&(g.isLayoutDirty=!0),g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:d,layout:f}=this.options;if(d===void 0&&!f)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const f=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),f&&this.nodes.forEach(g6),this.nodes.forEach(jb);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Nb);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(x6),this.nodes.forEach(y6),this.nodes.forEach(d6),this.nodes.forEach(f6)):this.nodes.forEach(Nb),this.clearAllSnapshots();const d=$t.now();Ct.delta=gn(0,1e3/60,d-Ct.timestamp),Ct.timestamp=d,Ct.isProcessing=!0,Xf.update.process(Ct),Xf.preRender.process(Ct),Xf.render.process(Ct),Ct.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Qp.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(p6),this.sharedNodes.forEach(j6)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,We.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){We.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Vt(this.snapshot.measuredBox.x)&&!Vt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=gt()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(d=!1),d&&this.instance){const f=o(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:f,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!a)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!vS(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,p=h!==this.prevTransformTemplateValue;c&&this.instance&&(d||Us(this.latestValues)||p)&&(a(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const d=this.measurePageBox();let f=this.removeElementScroll(d);return c&&(f=this.removeTransform(f)),C6(f),{animationId:this.root.animationId,measuredBox:d,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:c}=this.options;if(!c)return gt();const d=c.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(T6))){const{scroll:h}=this.root;h&&(cn(d.x,h.offset.x),cn(d.y,h.offset.y))}return d}removeElementScroll(c){const d=gt();if(Br(d,c),this.scroll?.wasRoot)return d;for(let f=0;f<this.path.length;f++){const h=this.path[f],{scroll:p,options:g}=h;h!==this.root&&p&&g.layoutScroll&&(p.wasRoot&&Br(d,c),cn(d.x,p.offset.x),cn(d.y,p.offset.y))}return d}applyTransform(c,d=!1,f){const h=f||gt();Br(h,c);for(let p=0;p<this.path.length;p++){const g=this.path[p];!d&&g.options.layoutScroll&&g.scroll&&g!==g.root&&(cn(h.x,-g.scroll.offset.x),cn(h.y,-g.scroll.offset.y)),Us(g.latestValues)&&Rc(h,g.latestValues,g.layout?.layoutBox)}return Us(this.latestValues)&&Rc(h,this.latestValues,this.layout?.layoutBox),h}removeTransform(c){const d=gt();Br(d,c);for(let f=0;f<this.path.length;f++){const h=this.path[f];if(!Us(h.latestValues))continue;let p;h.instance&&(Tm(h.latestValues)&&h.updateSnapshot(),p=gt(),Br(p,h.measurePageBox())),hb(d,h.latestValues,h.snapshot?.layoutBox,p)}return Us(this.latestValues)&&hb(d,this.latestValues),d}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ct.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==d;if(!(c||f&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:g}=this.options;if(!this.layout||!(p||g))return;this.resolvedRelativeTargetAt=Ct.timestamp;const x=this.getClosestProjectingParent();x&&this.linkedParentVersion!==x.layoutVersion&&!x.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&x&&x.layout?this.createRelativeTarget(x,this.layout.layoutBox,x.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=gt(),this.targetWithTransforms=gt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),KF(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Br(this.target,this.layout.layoutBox),aS(this.target,this.targetDelta)):Br(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&x&&!!x.resumingFrom==!!this.resumingFrom&&!x.options.layoutScroll&&x.target&&this.animationProgress!==1?this.createRelativeTarget(x,this.target,x.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Tm(this.parent.latestValues)||iS(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(c,d,f){this.relativeParent=c,this.linkedParentVersion=c.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gt(),this.relativeTargetOrigin=gt(),ru(this.relativeTargetOrigin,d,f,this.options.layoutAnchor||void 0),Br(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const c=this.getLead(),d=!!this.resumingFrom||this!==c;let f=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(f=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===Ct.timestamp&&(f=!1),f)return;const{layout:h,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||p))return;Br(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,x=this.treeScale.y;NF(this.layoutCorrected,this.treeScale,this.path,d),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=gt());const{target:v}=c;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ab(this.prevProjectionDelta.x,this.projectionDelta.x),ab(this.prevProjectionDelta.y,this.projectionDelta.y)),pa(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==x||!yb(this.projectionDelta.x,this.prevProjectionDelta.x)||!yb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){if(this.options.visualElement?.scheduleRender(),c){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Vo(),this.projectionDelta=Vo(),this.projectionDeltaWithTransform=Vo()}setAnimationOrigin(c,d=!1){const f=this.snapshot,h=f?f.latestValues:{},p={...this.latestValues},g=Vo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const x=gt(),v=f?f.source:void 0,N=this.layout?this.layout.source:void 0,w=v!==N,j=this.getStack(),k=!j||j.members.length<=1,C=!!(w&&!k&&this.options.crossfade===!0&&!this.path.some(S6));this.animationProgress=0;let T;this.mixTargetDelta=A=>{const E=A/1e3;kb(g.x,c.x,E),kb(g.y,c.y,E),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ru(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),N6(this.relativeTarget,this.relativeTargetOrigin,x,E),T&&JF(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=gt()),Br(T,this.relativeTarget)),w&&(this.animationValues=p,t6(p,h,this.latestValues,E,C,k)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(xs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=We.update(()=>{_c.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ni(0)),this.motionValue.jump(0,!1),this.currentAnimation=s6(this.motionValue,[0,1e3],{...c,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),c.onUpdate&&c.onUpdate(d)},onStop:()=>{},onComplete:()=>{c.onComplete&&c.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(c6),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:d,target:f,layout:h,latestValues:p}=c;if(!(!d||!f||!h)){if(this!==c&&this.layout&&h&&kS(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||gt();const g=Vt(this.layout.layoutBox.x);f.x.min=c.target.x.min,f.x.max=f.x.min+g;const x=Vt(this.layout.layoutBox.y);f.y.min=c.target.y.min,f.y.max=f.y.min+x}Br(d,f),Rc(d,p),pa(this.projectionDeltaWithTransform,this.layoutCorrected,d,p)}}registerSharedNode(c,d){this.sharedNodes.has(c)||this.sharedNodes.set(c,new l6),this.sharedNodes.get(c).add(d);const h=d.options.initialPromotionConfig;d.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(d):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){const{layoutId:c}=this.options;return c?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:c}=this.options;return c?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:d,preserveFollowOpacity:f}={}){const h=this.getStack();h&&h.promote(this,f),c&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let d=!1;const{latestValues:f}=c;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(d=!0),!d)return;const h={};f.z&&ih("z",c,h,this.animationValues);for(let p=0;p<oh.length;p++)ih(`rotate${oh[p]}`,c,h,this.animationValues),ih(`skew${oh[p]}`,c,h,this.animationValues);c.render();for(const p in h)c.setStaticValue(p,h[p]),this.animationValues&&(this.animationValues[p]=h[p]);c.scheduleRender()}applyProjectionStyles(c,d){if(!this.instance||this.isSVG)return;if(!this.isVisible){c.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,c.visibility="",c.opacity="",c.pointerEvents=Mc(d?.pointerEvents)||"",c.transform=f?f(this.latestValues,""):"none";return}const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){this.options.layoutId&&(c.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,c.pointerEvents=Mc(d?.pointerEvents)||""),this.hasProjected&&!Us(this.latestValues)&&(c.transform=f?f({},""):"none",this.hasProjected=!1);return}c.visibility="";const p=h.animationValues||h.latestValues;this.applyTransformsToTarget();let g=ZF(this.projectionDeltaWithTransform,this.treeScale,p);f&&(g=f(p,g)),c.transform=g;const{x,y:v}=this.projectionDelta;c.transformOrigin=`${x.origin*100}% ${v.origin*100}% 0`,h.animationValues?c.opacity=h===this?p.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:c.opacity=h===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const N in Pm){if(p[N]===void 0)continue;const{correct:w,applyTo:j,isCSSVariable:k}=Pm[N],C=g==="none"?p[N]:w(p[N],h);if(j){const T=j.length;for(let A=0;A<T;A++)c[j[A]]=C}else k?this.options.visualElement.renderState.vars[N]=C:c[N]=C}this.options.layoutId&&(c.pointerEvents=h===this?Mc(d?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>c.currentAnimation?.stop()),this.root.nodes.forEach(jb),this.root.sharedNodes.clear()}}}function d6(e){e.updateLayout()}function f6(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:a}=e.options,l=t.source!==e.layout.source;if(a==="size")ln(p=>{const g=l?t.measuredBox[p]:t.layoutBox[p],x=Vt(g);g.min=r[p].min,g.max=g.min+x});else if(a==="x"||a==="y"){const p=a==="x"?"y":"x";Am(l?t.measuredBox[p]:t.layoutBox[p],r[p])}else kS(a,t.layoutBox,r)&&ln(p=>{const g=l?t.measuredBox[p]:t.layoutBox[p],x=Vt(r[p]);g.max=g.min+x,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+x)});const c=Vo();pa(c,r,t.layoutBox);const d=Vo();l?pa(d,e.applyTransform(o,!0),t.measuredBox):pa(d,r,t.layoutBox);const f=!vS(c);let h=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:g,layout:x}=p;if(g&&x){const v=e.options.layoutAnchor||void 0,N=gt();ru(N,t.layoutBox,g.layoutBox,v);const w=gt();ru(w,r,x.layoutBox,v),bS(N,w)||(h=!0),p.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=N,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:d,layoutDelta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function h6(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function m6(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function p6(e){e.clearSnapshot()}function jb(e){e.clearMeasurements()}function g6(e){e.isLayoutDirty=!0,e.updateLayout()}function Nb(e){e.isLayoutDirty=!1}function x6(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function y6(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Sb(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function v6(e){e.resolveTargetDelta()}function b6(e){e.calcProjection()}function w6(e){e.resetSkewAndRotation()}function j6(e){e.removeLeadSnapshot()}function kb(e,t,r){e.translate=qe(t.translate,0,r),e.scale=qe(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Cb(e,t,r,o){e.min=qe(t.min,r.min,o),e.max=qe(t.max,r.max,o)}function N6(e,t,r,o){Cb(e.x,t.x,r.x,o),Cb(e.y,t.y,r.y,o)}function S6(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const k6={duration:.45,ease:[.4,0,.1,1]},Tb=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Eb=Tb("applewebkit/")&&!Tb("chrome/")?Math.round:kr;function Pb(e){e.min=Eb(e.min),e.max=Eb(e.max)}function C6(e){Pb(e.x),Pb(e.y)}function kS(e,t,r){return e==="position"||e==="preserve-aspect"&&!GF(xb(t),xb(r),.2)}function T6(e){return e!==e.root&&e.scroll?.wasRoot}const E6=SS({attachResizeListener:(e,t)=>Ra(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ah={current:void 0},CS=SS({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ah.current){const e=new E6({});e.mount(window),e.setOptions({layoutScroll:!0}),ah.current=e}return ah.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),TS=y.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function P6(e=!0){const t=y.useContext(Mp);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:o,register:a}=t,l=y.useId();y.useEffect(()=>{if(e)return a(l)},[e]);const c=y.useCallback(()=>e&&o&&o(l),[l,o,e]);return!r&&o?[!1,c]:[!0]}const ES=y.createContext({strict:!1}),Ab={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Rb=!1;function A6(){if(Rb)return;const e={};for(const t in Ab)e[t]={isEnabled:r=>Ab[t].some(o=>!!r[o])};nS(e),Rb=!0}function PS(){return A6(),vF()}function R6(e){const t=PS();for(const r in e)t[r]={...t[r],...e[r]};nS(t)}const M6=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function nu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||M6.has(e)}let AS=e=>!nu(e);function _6(e){typeof e=="function"&&(AS=t=>t.startsWith("on")?!nu(t):e(t))}try{_6(require("@emotion/is-prop-valid").default)}catch{}function D6(e,t,r){const o={};for(const a in e)a==="values"&&typeof e.values=="object"||Et(e[a])||(AS(a)||r===!0&&nu(a)||!t&&!nu(a)||e.draggable&&a.startsWith("onDrag"))&&(o[a]=e[a]);return o}const _u=y.createContext({});function I6(e,t){if(Mu(e)){const{initial:r,animate:o}=e;return{initial:r===!1||Aa(r)?r:void 0,animate:Aa(o)?o:void 0}}return e.inherit!==!1?t:{}}function L6(e){const{initial:t,animate:r}=I6(e,y.useContext(_u));return y.useMemo(()=>({initial:t,animate:r}),[Mb(t),Mb(r)])}function Mb(e){return Array.isArray(e)?e.join(" "):e}const ng=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function RS(e,t,r){for(const o in t)!Et(t[o])&&!uS(o,r)&&(e[o]=t[o])}function O6({transformTemplate:e},t){return y.useMemo(()=>{const r=ng();return tg(r,t,e),Object.assign({},r.vars,r.style)},[t])}function F6(e,t){const r=e.style||{},o={};return RS(o,r,e),Object.assign(o,O6(e,t)),o}function $6(e,t){const r={},o=F6(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}
138`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const MS=()=>({...ng(),attrs:{}});function V6(e,t,r,o){const a=y.useMemo(()=>{const l=MS();return dS(l,t,hS(o),e.transformTemplate,e.style),{...l.attrs,style:{...l.style}}},[t]);if(e.style){const l={};RS(l,e.style,e),a.style={...l,...a.style}}return a}const B6=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function sg(e){return typeof e!="string"||e.includes("-")?!1:!!(B6.indexOf(e)>-1||/[A-Z]/u.test(e))}function z6(e,t,r,{latestValues:o},a,l=!1,c){const f=(c??sg(e)?V6:$6)(t,o,a,e),h=D6(t,typeof e=="string",l),p=e!==y.Fragment?{...h,...f,ref:r}:{},{children:g}=t,x=y.useMemo(()=>Et(g)?g.get():g,[g]);return y.createElement(e,{...p,children:x})}function U6({scrapeMotionValuesFromProps:e,createRenderState:t},r,o,a){return{latestValues:W6(r,o,a,e),renderState:t()}}function W6(e,t,r,o){const a={},l=o(e,{});for(const x in l)a[x]=Mc(l[x]);let{initial:c,animate:d}=e;const f=Mu(e),h=tS(e);t&&h&&!f&&e.inherit!==!1&&(c===void 0&&(c=t.initial),d===void 0&&(d=t.animate));let p=r?r.initial===!1:!1;p=p||c===!1;const g=p?d:c;if(g&&typeof g!="boolean"&&!Ru(g)){const x=Array.isArray(g)?g:[g];for(let v=0;v<x.length;v++){const N=Gp(e,x[v]);if(N){const{transitionEnd:w,transition:j,...k}=N;for(const C in k){let T=k[C];if(Array.isArray(T)){const A=p?T.length-1:0;T=T[A]}T!==null&&(a[C]=T)}for(const C in w)a[C]=w[C]}}}return a}const _S=e=>(t,r)=>{const o=y.useContext(_u),a=y.useContext(Mp),l=()=>U6(e,t,o,a);return r?l():BI(l)},H6=_S({scrapeMotionValuesFromProps:rg,createRenderState:ng}),Y6=_S({scrapeMotionValuesFromProps:mS,createRenderState:MS}),G6=Symbol.for("motionComponentSymbol");function K6(e,t,r){const o=y.useRef(r);y.useInsertionEffect(()=>{o.current=r});const a=y.useRef(null);return y.useCallback(l=>{l&&e.onMount?.(l);const c=o.current;if(typeof c=="function")if(l){const d=c(l);typeof d=="function"&&(a.current=d)}else a.current?(a.current(),a.current=null):c(l);else c&&(c.current=l);t&&(l?t.mount(l):t.unmount())},[t])}const DS=y.createContext({});function Oo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function q6(e,t,r,o,a,l){const{visualElement:c}=y.useContext(_u),d=y.useContext(ES),f=y.useContext(Mp),h=y.useContext(TS),p=h.reducedMotion,g=h.skipAnimations,x=y.useRef(null),v=y.useRef(!1);o=o||d.renderer,!x.current&&o&&(x.current=o(e,{visualState:t,parent:c,props:r,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:p,skipAnimations:g,isSVG:l}),v.current&&x.current&&(x.current.manuallyAnimateOnMount=!0));const N=x.current,w=y.useContext(DS);N&&!N.projection&&a&&(N.type==="html"||N.type==="svg")&&Q6(x.current,r,a,w);const j=y.useRef(!1);y.useInsertionEffect(()=>{N&&j.current&&N.update(r,f)});const k=r[z2],C=y.useRef(!!k&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(k)&&window.MotionHasOptimisedAnimation?.(k));return UI(()=>{v.current=!0,N&&(j.current=!0,window.MotionIsMounted=!0,N.updateFeatures(),N.scheduleRenderMicrotask(),C.current&&N.animationState&&N.animationState.animateChanges())}),y.useEffect(()=>{N&&(!C.current&&N.animationState&&N.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(k)}),C.current=!1),N.enteringChildren=void 0)}),N}function Q6(e,t,r,o){const{layoutId:a,layout:l,drag:c,dragConstraints:d,layoutScroll:f,layoutRoot:h,layoutAnchor:p,layoutCrossfade:g}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:IS(e.parent)),e.projection.setOptions({layoutId:a,layout:l,alwaysMeasureLayout:!!c||d&&Oo(d),visualElement:e,animationType:typeof l=="string"?l:"both",initialPromotionConfig:o,crossfade:g,layoutScroll:f,layoutRoot:h,layoutAnchor:p})}function IS(e){if(e)return e.options.allowProjection!==!1?e.projection:IS(e.parent)}function lh(e,{forwardMotionProps:t=!1,type:r}={},o,a){o&&R6(o);const l=r?r==="svg":sg(e),c=l?Y6:H6;function d(h,p){let g;
138const x={...y.useContext(TS),...h,layoutId:X6(h)},{isStatic:v}=x,N=L6(h),w=c(h,v);if(!v&&typeof window<"u"){J6();const j=Z6(x);g=j.MeasureLayout,N.visualElement=q6(e,w,x,a,j.ProjectionNode,l)}return s.jsxs(_u.Provider,{value:N,children:[g&&N.visualElement?s.jsx(g,{visualElement:N.visualElement,...x}):null,z6(e,h,K6(w,N.visualElement,p),w,v,t,l)]})}d.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const f=y.forwardRef(d);return f[G6]=e,f}function X6({layoutId:e}){const t=y.useContext(e2).id;return t&&e!==void 0?t+"-"+e:e}function J6(e,t){y.useContext(ES).strict}function Z6(e){const t=PS(),{drag:r,layout:o}=t;if(!r&&!o)return{};const a={...r,...o};return{MeasureLayout:r?.isEnabled(e)||o?.isEnabled(e)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}function e8(e,t){if(typeof Proxy>"u")return lh;const r=new Map,o=(l,c)=>lh(l,c,e,t),a=(l,c)=>o(l,c);return new Proxy(a,{get:(l,c)=>c==="create"?o:(r.has(c)||r.set(c,lh(c,void 0,e,t)),r.get(c))})}const t8=(e,t)=>t.isSVG??sg(e)?new LF(t):new AF(t,{allowProjection:e!==y.Fragment});class r8 extends Ns{constructor(t){super(t),t.animationState||(t.animationState=BF(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ru(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let n8=0;class s8 extends Ns{constructor(){super(...arguments),this.id=n8++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;if(t&&o===!1){if(this.isExitComplete){const{initial:l,custom:c}=this.node.getProps();if(typeof l=="string"){const d=qs(this.node,l,c);if(d){const{transition:f,transitionEnd:h,...p}=d;for(const g in p)this.node.getValue(g)?.jump(p[g])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const a=this.node.animationState.setActive("exit",!t);r&&!t&&a.then(()=>{this.isExitComplete=!0,r(this.id)})}mount(){const{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const o8={animation:{Feature:r8},exit:{Feature:s8}};function Ya(e){return{point:{x:e.pageX,y:e.pageY}}}const i8=e=>t=>Xp(t)&&e(t,Ya(t));function ga(e,t,r,o){return Ra(e,t,i8(r),o)}const LS=({current:e})=>e?e.ownerDocument.defaultView:null,_b=(e,t)=>Math.abs(e-t);function a8(e,t){const r=_b(e.x,t.x),o=_b(e.y,t.y);return Math.sqrt(r**2+o**2)}const Db=new Set(["auto","scroll"]);class OS{constructor(t,r,{transformPagePoint:o,contextWindow:a=window,dragSnapToOrigin:l=!1,distanceThreshold:c=3,element:d}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=v=>{this.handleScroll(v.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=mc(this.lastRawMoveEventInfo,this.transformPagePoint));const v=ch(this.lastMoveEventInfo,this.history),N=this.startEvent!==null,w=a8(v.offset,{x:0,y:0})>=this.distanceThreshold;if(!N&&!w)return;const{point:j}=v,{timestamp:k}=Ct;this.history.push({...j,timestamp:k});const{onStart:C,onMove:T}=this.handlers;N||(C&&C(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,v)},this.handlePointerMove=(v,N)=>{this.lastMoveEvent=v,this.lastRawMoveEventInfo=N,this.lastMoveEventInfo=mc(N,this.transformPagePoint),We.update(this.updatePoint,!0)},this.handlePointerUp=(v,N)=>{this.end();const{onEnd:w,onSessionEnd:j,resumeAnimation:k}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&k&&k(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=ch(v.type==="pointercancel"?this.lastMoveEventInfo:mc(N,this.transformPagePoint),this.history);this.startEvent&&w&&w(v,C),j&&j(v,C)}
vendor: 12,608 bytes, line 138
138,!Xp(t))return;this.dragSnapToOrigin=l,this.handlers=r,this.transformPagePoint=o,this.distanceThreshold=c,this.contextWindow=a||window;const f=Ya(t),h=mc(f,this.transformPagePoint),{point:p}=h,{timestamp:g}=Ct;this.history=[{...p,timestamp:g}];const{onSessionStart:x}=r;x&&x(t,ch(h,this.history)),this.removeListeners=Ua(ga(this.contextWindow,"pointermove",this.handlePointerMove),ga(this.contextWindow,"pointerup",this.handlePointerUp),ga(this.contextWindow,"pointercancel",this.handlePointerUp)),d&&this.startScrollTracking(d)}startScrollTracking(t){let r=t.parentElement;for(;r;){const o=getComputedStyle(r);(Db.has(o.overflowX)||Db.has(o.overflowY))&&this.scrollPositions.set(r,{x:r.scrollLeft,y:r.scrollTop}),r=r.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const r=this.scrollPositions.get(t);if(!r)return;const o=t===window,a=o?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},l={x:a.x-r.x,y:a.y-r.y};l.x===0&&l.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=l.x,this.lastMoveEventInfo.point.y+=l.y):this.history.length>0&&(this.history[0].x-=l.x,this.history[0].y-=l.y),this.scrollPositions.set(t,a),We.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),xs(this.updatePoint)}}function mc(e,t){return t?{point:t(e.point)}:e}function Ib(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ch({point:e},t){return{point:e,delta:Ib(e,FS(t)),offset:Ib(e,l8(t)),velocity:c8(t,.1)}}function l8(e){return e[0]}function FS(e){return e[e.length-1]}function c8(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,o=null;const a=FS(e);for(;r>=0&&(o=e[r],!(a.timestamp-o.timestamp>hr(t)));)r--;if(!o)return{x:0,y:0};o===e[0]&&e.length>2&&a.timestamp-o.timestamp>hr(t)*2&&(o=e[1]);const l=Sr(a.timestamp-o.timestamp);if(l===0)return{x:0,y:0};const c={x:(a.x-o.x)/l,y:(a.y-o.y)/l};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}function u8(e,{min:t,max:r},o){return t!==void 0&&e<t?e=o?qe(t,e,o.min):Math.max(e,t):r!==void 0&&e>r&&(e=o?qe(r,e,o.max):Math.min(e,r)),e}function Lb(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function d8(e,{top:t,left:r,bottom:o,right:a}){return{x:Lb(e.x,r,a),y:Lb(e.y,t,o)}}function Ob(e,t){let r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,o]=[o,r]),{min:r,max:o}}function f8(e,t){return{x:Ob(e.x,t.x),y:Ob(e.y,t.y)}}function h8(e,t){let r=.5;const o=Vt(e),a=Vt(t);return a>o?r=Ea(t.min,t.max-o,e.min):o>a&&(r=Ea(e.min,e.max-a,t.min)),gn(0,1,r)}function m8(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const Rm=.35;function p8(e=Rm){return e===!1?e=0:e===!0&&(e=Rm),{x:Fb(e,"left","right"),y:Fb(e,"top","bottom")}}function Fb(e,t,r){return{min:$b(e,t),max:$b(e,r)}}function $b(e,t){return typeof e=="number"?e:e[t]||0}const g8=new WeakMap;class x8{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=gt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:r=!1,distanceThreshold:o}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const l=g=>{r&&this.snapToCursor(Ya(g).point),this.stopAnimation()},c=(g,x)=>{const{drag:v,dragPropagation:N,onDragStart:w}=this.getProps();if(v&&!N&&(this.openDragLock&&this.openDragLock(),this.openDragLock=qO(v),!this.openDragLock))return;this.latestPointerEvent=g,this.latestPanInfo=x,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ln(k=>{let C=this.getAxisMotionValue(k).get()||0;if(hn.test(C)){const{projection:T}=this.visualElement;if(T&&T.layout){const A=T.layout.layoutBox[k];A&&(C=Vt(A)*(parseFloat(C)/100))}}this.originPoint[k]=C}),w&&We.update(()=>w(g,x),!1,!0),jm(this.visualElement,"transform");const{animationState:j}=this.visualElement;j&&j.setActive("whileDrag",!0)},d=(g,x)=>{this.latestPointerEvent=g,this.latestPanInfo=x;const{dragPropagation:v,dragDirectionLock:N,onDirectionLock:w,onDrag:j}=this.getProps();if(!v&&!this.openDragLock)return;const{offset:k}=x;if(N&&this.currentDirection===null){this.currentDirection=v8(k),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",x.point,k),this.updateAxis("y",x.point,k),this.visualElement.render(),j&&We.update(()=>j(g,x),!1,!0)},f=(g,x)=>{this.latestPointerEvent=g,this.latestPanInfo=x,this.stop(g,x),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>{const{dragSnapToOrigin:g}=this.getProps();(g||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:p}=this.getProps();this.panSession=new OS(t,{onSessionStart:l,onStart:c,onMove:d,onSessionEnd:f,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:o,contextWindow:LS(this.visualElement),element:this.visualElement.current})}stop(t,r){const o=t||this.latestPointerEvent,a=r||this.latestPanInfo,l=this.isDragging;if(this.cancel(),!l||!a||!o)return;const{velocity:c}=a;this.startAnimation(c);const{onDragEnd:d}=this.getProps();d&&We.postRender(()=>d(o,a))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,r,o){const{drag:a}=this.getProps();if(!o||!pc(t,a,this.currentDirection))return;const l=this.getAxisMotionValue(t);let c=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(c=u8(c,this.constraints[t],this.elastic[t])),l.set(c)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,a=this.constraints;t&&Oo(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&o?this.constraints=d8(o.layoutBox,t):this.constraints=!1,this.elastic=p8(r),a!==this.constraints&&!Oo(t)&&o&&this.constraints&&!this.hasMutatedConstraints&&ln(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=m8(o.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Oo(t))return!1;const o=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const l=SF(o,a.root,this.visualElement.getTransformPagePoint());let c=f8(a.layout.layoutBox,l);if(r){const d=r(wF(c));this.hasMutatedConstraints=!!d,d&&(c=oS(d))}return c}startAnimation(t){const{drag:r,dragMomentum:o,dragElastic:a,dragTransition:l,dragSnapToOrigin:c,onDragTransitionEnd:d}=this.getProps(),f=this.constraints||{},h=ln(p=>{if(!pc(p,r,this.currentDirection))return;let g=f&&f[p]||{};(c===!0||c===p)&&(g={min:0,max:0});const x=a?200:1e6,v=a?40:1e7,N={type:"inertia",velocity:o?t[p]:0,bounceStiffness:x,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...l,...g};return this.startAxisValueAnimation(p,N)});return Promise.all(h).then(d)}startAxisValueAnimation(t,r){const o=this.getAxisMotionValue(t);return jm(this.visualElement,t),o.start(Yp(t,o,0,r,this.visualElement,!1))}stopAnimation(){ln(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,o=this.visualElement.getProps(),a=o[r];return a||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){ln(r=>{const{drag:o}=this.getProps();if(!pc(r,o,this.currentDirection))return;const{projection:a}=this.visualElement,l=this.getAxisMotionValue(r);if(a&&a.layout){const{min:c,max:d}=a.layout.layoutBox[r],f=l.get()||0;l.set(t[r]-qe(c,d,.5)+f)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:o}=this.visualElement;if(!Oo(r)||!o||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};ln(c=>{const d=this.getAxisMotionValue(c);if(d&&this.constraints!==!1){const f=d.get();a[c]=h8({min:f,max:f},this.constraints[c])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),ln(c=>{if(!pc(c,t,null))return;const d=this.getAxisMotionValue(c),{min:f,max:h}=this.constraints[c];d.set(qe(f,h,a[c]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;g8.set(this.visualElement,this);const t=this.visualElement.current,r=ga(t,"pointerdown",h=>{const{drag:p,dragListener:g=!0}=this.getProps(),x=h.target,v=x!==t&&tF(x);p&&g&&!v&&this.start(h)});let o;const a=()=>{const{dragConstraints:h}=this.getProps();Oo(h)&&h.current&&(this.constraints=this.resolveRefConstraints(),o||(o=y8(t,h.current,()=>this.scalePositionWithinConstraints())))},{projection:l}=this.visualElement,c=l.addEventListener("measure",a);l&&!l.layout&&(l.root&&l.root.updateScroll(),l.updateLayout()),We.read(a);const d=Ra(window,"resize",()=>this.scalePositionWithinConstraints()),f=l.addEventListener("didUpdate",(({delta:h,hasLayoutChanged:p})=>{this.isDragging&&p&&(ln(g=>{const x=this.getAxisMotionValue(g);x&&(this.originPoint[g]+=h[g].translate,x.set(x.get()+h[g].translate))}),this.visualElement.render())}));return()=>{d(),r(),c(),f&&f(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:o=!1,dragPropagation:a=!1,dragConstraints:l=!1,dragElastic:c=Rm,dragMomentum:d=!0}=t;return{...t,drag:r,dragDirectionLock:o,dragPropagation:a,dragConstraints:l,dragElastic:c,dragMomentum:d}}}function Vb(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function y8(e,t,r){const o=q0(e,Vb(r)),a=q0(t,Vb(r));return()=>{o(),a()}}function pc(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function v8(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class b8 extends Ns{constructor(t){super(t),this.removeGroupControls=kr,this.removeListeners=kr,this.controls=new x8(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||kr}update(){const{dragControls:t}=this.node.getProps(),{dragControls:r}=this.node.prevProps||{};t!==r&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const uh=e=>(t,r)=>{e&&We.update(()=>e(t,r),!1,!0)};class w8 extends Ns{constructor(){super(...arguments),this.removePointerDownListener=kr}onPointerDown(t){this.session=new OS(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:LS(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:o,onPanEnd:a}=this.node.getProps();return{onSessionStart:uh(t),onStart:uh(r),onMove:uh(o),onEnd:(l,c)=>{delete this.session,a&&We.postRender(()=>a(l,c))}}}mount(){this.removePointerDownListener=ga(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let dh=!1;class j8 extends y.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:o,layoutId:a}=this.props,{projection:l}=t;l&&(r.group&&r.group.add(l),o&&o.register&&a&&o.register(l),dh&&l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),_c.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:o,drag:a,isPresent:l}=this.props,{projection:c}=o;return c&&(c.isPresent=l,t.layoutDependency!==r&&c.setOptions({...c.options,layoutDependency:r}
138),dh=!0,a||t.layoutDependency!==r||r===void 0||t.isPresent!==l?c.willUpdate():this.safeToRemove(),t.isPresent!==l&&(l?c.promote():c.relegate()||We.postRender(()=>{const d=c.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:r}=this.props,{projection:o}=t;o&&(o.options.layoutAnchor=r,o.root.didUpdate(),Qp.postRender(()=>{!o.currentAnimation&&o.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:o}=this.props,{projection:a}=t;dh=!0,a&&(a.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(a),o&&o.deregister&&o.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function $S(e){const[t,r]=P6(),o=y.useContext(e2);return s.jsx(j8,{...e,layoutGroup:o,switchLayoutGroup:y.useContext(DS),isPresent:t,safeToRemove:r})}const N8={pan:{Feature:w8},drag:{Feature:b8,ProjectionNode:CS,MeasureLayout:$S}};function Bb(e,t,r){const{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",r==="Start");const a="onHover"+r,l=o[a];l&&We.postRender(()=>l(t,Ya(t)))}class S8 extends Ns{mount(){const{current:t}=this.node;t&&(this.unmount=XO(t,(r,o)=>(Bb(this.node,o,"Start"),a=>Bb(this.node,a,"End"))))}unmount(){}}class k8 extends Ns{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ua(Ra(this.node.current,"focus",()=>this.onFocus()),Ra(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function zb(e,t,r){const{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",r==="Start");const a="onTap"+(r==="End"?"":r),l=o[a];l&&We.postRender(()=>l(t,Ya(t)))}class C8 extends Ns{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:r,propagate:o}=this.node.props;this.unmount=nF(t,(a,l)=>(zb(this.node,l,"Start"),(c,{success:d})=>zb(this.node,c,d?"End":"Cancel")),{useGlobalTarget:r,stopPropagation:o?.tap===!1})}unmount(){}}const Mm=new WeakMap,fh=new WeakMap,T8=e=>{const t=Mm.get(e.target);t&&t(e)},E8=e=>{e.forEach(T8)};function P8({root:e,...t}){const r=e||document;fh.has(r)||fh.set(r,{});const o=fh.get(r),a=JSON.stringify(t);return o[a]||(o[a]=new IntersectionObserver(E8,{root:e,...t})),o[a]}function A8(e,t,r){const o=P8(t);return Mm.set(e,r),o.observe(e),()=>{Mm.delete(e),o.unobserve(e)}}const R8={some:0,all:1};class M8 extends Ns{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:t={}}=this.node.getProps(),{root:r,margin:o,amount:a="some",once:l}=t,c={root:r?r.current:void 0,rootMargin:o,threshold:typeof a=="number"?a:R8[a]},d=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,l&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:p,onViewportLeave:g}=this.node.getProps(),x=h?p:g;x&&x(f)};this.stopObserver=A8(this.node.current,c,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(_8(t,r))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function _8({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const D8={inView:{Feature:M8},tap:{Feature:C8},focus:{Feature:k8},hover:{Feature:S8}},I8={layout:{ProjectionNode:CS,MeasureLayout:$S}},L8={...o8,...D8,...N8,...I8},O8=e8(L8,t8),F8="https://city1051fm.cloud/",$8=e=>{if(!e)return"";if(e.startsWith("http"))return e;const t=e.startsWith("/")?e:`/${e}`;return`${F8}${t}`},V8=()=>{const{data:e,isLoading:t}=Wc({queryKey:["rate-cards-page"],queryFn:async()=>Ce("/api/rate-cards/?active=true")}),r=e?.filter(a=>a.type==="standard")||[],o=e?.filter(a=>a.type==="digital")||[];return s.jsxs("div",{className:"min-h-screen bg-black text-white",children:[s.jsx(hp,{}),s.jsx(Zr,{title:"Advertise With Us",subtitle:"Connect your brand with the pulse of Lagos. View our latest advertising rates for On-Air and Digital platforms.",image:"https://images.unsplash.com/photo-1598488035139-bdbb2231ce04?auto=format&fit=crop&q=80"}),s.jsx("main",{className:"container mx-auto px-4 py-16",children:s.jsxs("div",{className:"max-w-6xl mx-auto 
138space-y-20",children:[s.jsxs("section",{children:[s.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[s.jsx("div",{className:"w-12 h-12 bg-primary-500/10 rounded-2xl flex items-center justify-center",children:s.jsx(ao,{className:"text-primary-500"})}),s.jsxs("div",{children:[s.jsx("h2",{className:"text-3xl font-black uppercase tracking-tight",children:"Rate Card"}),s.jsx("p",{className:"text-gray-400 font-medium",children:"Standard On-Air Radio Advertising Rates"})]})]}),t?s.jsx("div",{className:"flex items-center justify-center py-20",children:s.jsx(Bt,{className:"animate-spin text-primary-500 w-8 h-8"})}):r.length>0?s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:r.map((a,l)=>s.jsx(Ub,{card:a,index:l},a.id))}):s.jsx(Wb,{message:"Standard rate cards are currently being updated."})]}),s.jsxs("section",{children:[s.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[s.jsx("div",{className:"w-12 h-12 bg-blue-500/10 rounded-2xl flex items-center justify-center",children:s.jsx(Nh,{className:"text-blue-500"})}),s.jsxs("div",{children:[s.jsx("h2",{className:"text-3xl font-black uppercase tracking-tight",children:"Digital Rate Card"}),s.jsx("p",{className:"text-gray-400 font-medium",children:"Social Media, Web, and Digital Campaign Rates"})]})]}),t?s.jsx("div",{className:"flex items-center justify-center py-20",children:s.jsx(Bt,{className:"animate-spin text-primary-500 w-8 h-8"})}):o.length>0?s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:o.map((a,l)=>s.jsx(Ub,{card:a,index:l},a.id))}):s.jsx(Wb,{message:"Digital rate cards are currently being updated."})]}),s.jsxs("section",{className:"bg-gradient-to-br from-primary-500/10 to-blue-500/10 rounded-[40px] p-8 md:p-16 border border-white/5 text-center relative overflow-hidden",children:[s.jsxs("div",{className:"relative z-10",children:[s.jsx("h3",{className:"text-3xl md:text-4xl font-black mb-4",children:"Ready to Run the City?"}),s.jsx("p",{className:"text-gray-300 max-w-2xl mx-auto mb-10 text-lg",children:"Our team is ready to help you craft the perfect campaign for your brand. Get in touch for custom packages and sponsorship opportunities."}),s.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[s.jsx(at,{size:"lg",className:"bg-primary-500 hover:bg-primary-600 text-white font-black px-10 h-14 rounded-2xl",children:"Contact Sales Team"}),s.jsx("a",{href:"mailto:[email protected]",className:"text-gray-300 hover:text-white font-bold transition-colors",children:"[email protected]"})]})]}),s.jsx("div",{className:"absolute top-0 left-0 w-full h-full opacity-30 pointer-events-none bg-[url('https://www.transparenttextures.com/patterns/carbon-fibre.png')]"})]})]})}),s.jsx(mp,{})]})},Ub=({card:e,index:t})=>{const r=$8(e.file),o=r.toLowerCase().endsWith(".pdf");return s.jsx(O8.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:t*.1},children:s.jsx(JN,{className:"bg-zinc-900/50 border-zinc-800 hover:border-primary-500/50 transition-all group overflow-hidden rounded-3xl",children:s.jsxs(ZN,{className:"p-6",children:[s.jsxs("div",{className:"flex items-center justify-between mb-6",children:[s.jsx("div",{className:"p-3 rounded-2xl bg-zinc-800 text-primary-500 group-hover:bg-primary-500 group-hover:text-white transition-colors",children:s.jsx(vh,{size:24})}),s.jsx("span",{className:"text-[10px] font-black uppercase tracking-widest text-zinc-500",children:o?"PDF":r.split(".").pop()?.toUpperCase()||"FILE"})]}),s.jsx("h3",{className:"text-xl font-bold mb-6 line-clamp-2 leading-tight group-hover:text-primary-500 transition-colors",children:e.title}),s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx(at,{asChild:!0,variant:"outline",className:"w-full justify-between h-12 rounded-xl border-zinc-800 hover:bg-white hover:text-black font-bold group/btn transition-all",children:s.jsxs("a",{href:r,target:"_blank",rel:"noopener noreferrer",children:[s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx(Yr,{size:18}),"View Online"]}),s.jsx(qo,{size:18,className:"transition-transform group-hover/btn:translate-x-1"})]})}),s.jsx(at,{asChild:!0,className:"w-full justify-between h-12 rounded-xl bg-primary-500 hover:bg-primary-600 text-white font-bold",children:s.jsxs("a",{href:r,download:!0,children:[s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx(Qo,{size:18}),"Download Card"]}),s.jsx(Qo,{size:18})]})})]})]})})})},Wb=({message:e})=>s.jsx("div",{className:"py-12 px-6 rounded-3xl border border-dashed border-zinc-800 text-center",children:s.jsx("p",{className:"text-gray-500 font-medium italic",children:e})}),hh=[{id:"what-are-cookies",icon:da,title:"What Are Cookies?",content:`Cookies are small text files placed on your device (computer, tablet, or mobile) when you visit a website. 
139They are widely used to make websites work, or work more efficiently, as well as to provide information to the website's owners. 
140Cookies help us remember your preferences, keep you logged in, and understand how you use our site so we can improve your experience.`}
140,{id:"how-we-use-cookies",icon:Yr,title:"How We Use Cookies",content:`City 105.1 FM uses cookies to:
141• Remember your preferences (such as dark/light mode and audio player state)
142• Analyse site traffic and usage patterns to improve our content
143• Deliver personalised content and relevant advertisements
144• Enable social media sharing features
145• Track listenership and engagement metrics for our radio streams`},{id:"types-of-cookies",icon:Sh,title:"Types of Cookies We Use",content:null,categories:[{name:"Necessary Cookies",badge:"Always Active",badgeColor:"bg-green-500/10 text-green-500 border-green-500/20",description:"These cookies are essential for the website to function properly. They enable core functionality such as page navigation, audio player state, and access to secure areas. The website cannot function properly without these cookies.",examples:["Session management","Security tokens","Player state persistence"]},{name:"Analytics Cookies",badge:"Optional",badgeColor:"bg-blue-500/10 text-blue-500 border-blue-500/20",description:"These cookies help us understand how visitors interact with our website by collecting and reporting information anonymously. They allow us to improve the site based on real usage data.",examples:["Page view tracking","Session duration","Traffic source analysis"]},{name:"Marketing Cookies",badge:"Optional",badgeColor:"bg-orange-500/10 text-orange-500 border-orange-500/20",description:"These cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third-party advertisers.",examples:["Ad targeting","Personalised content","Social media integration"]}]},{id:"third-party-cookies",icon:du,title:"Third-Party Cookies",content:`We may use third-party services that set the
145ir own cookies on your device. These include:
146
147• **Google Analytics** — for website traffic and usage analysis
148• **Cloudinary** — for media content delivery (images, audio, video)
149• **Firebase** — for push notification services
150• **Social Media Platforms** — for embedded share buttons (Facebook, Twitter/X, Instagram)
151
152We do not control the cookies set by these third parties. Please refer to their respective privacy policies for more information.`},{id:"managing-cookies",icon:Sh,title:"Managing Your Cookie Preferences",content:`You have full control over your cookie preferences. You can:
153
154• Use our **Cookie Consent Banner** (shown on your first visit) to accept, reject, or customise your preferences
155• Click the cookie icon in the footer at any time to change your settings
156• Configure your browser to block or delete cookies
157
158Most web browsers allow you to control cookies through their settings. Common browser links:
159• **Chrome**: Settings → Privacy & Security → Cookies
160• **Firefox**: Options → Privacy & Security → Cookies
161• **Safari**: Preferences → Privacy → Manage Website Data
162• **Edge**: Settings → Privacy, Search, and Services
163
164Note that disabling certain cookies may affect the functionality of our website, such as the audio player and your saved preferences.`},{id:"updates",icon:zm,title:"Updates to This Policy",content:`We may update this Cookie Policy from time to time to reflect changes in our practices or for other operational, legal, or regulatory reasons. 
165We will notify you of any significant changes by displaying a prominent notice on our website or by resetting your cookie consent preferences so you can review and re-accept.
166
167This policy was last updated on **May 2026**.`},{id:"contact",icon:ii,title:"Contact Us",content:`If you have any questions about our use of cookies or this Cookie Policy, please contact us:
168
169**City 105.1 FM**
170Plot 11 Lateef Jakande Rd, Agidingbi, Ikeja, Lagos
171📧 [email protected]
172📞 +234 909 069 0328`}],B8=()=>s.jsxs(Ue,{children:[s.jsx(At,{title:"Cookie Policy - City 105.1 FM",description:"Learn how City 105.1 FM uses cookies to enhance your browsing experience and how you can manage your cookie preferences."}),s.jsx(Zr,{title:"Cookie Policy",subtitle:"Transparency about how we use cookies on city1051fm.com",icon:da}),s.jsx("section",{className:"py-16 bg-background",children:s.jsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[s.jsxs("div",{className:"bg-primary/5 border border-primary/20 rounded-2xl p-6 mb-12 flex gap-4",children:[s.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded-xl flex items-center justify-center flex-shrink-0 mt-0.5",children:s.jsx(da,{className:"w-5 h-5 text-primary"})}),s.jsxs("div",{children:[s.jsx("h2",{className:"text-base font-black text-foreground mb-1 uppercase tracking-wide",children:"Our Commitment to Transparency"}),s.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"At City 105.1 FM, we believe in being open about how we collect and use data. This Cookie Policy explains what cookies are, what types of cookies we place on your device, and how you can control them. By using our website, you agree to our use of cookies as described in this policy."})]})]}),s.jsxs("div",{className:"bg-card border border-border rounded-2xl p-6 mb-12",children:[s.jsx("h2",{className:"text-sm font-black uppercase tracking-widest text-muted-foreground mb-4",children:"Contents"}),s.jsx("ol",{className:"space-y-2",children:hh.map((e,t)=>s.jsx("li",{children:s.jsxs("a",{href:`#${e.id}`,className:"flex items-center gap-3 text-sm text-muted-foreground hover:text-primary transition-colors group",children:[s.jsx("span",{className:"w-6 h-6 rounded-full bg-primary/10 text-primary text-[10px] font-black flex items-center justify-center flex-shrink-0 group-hover:bg-primary group-hover:text-primary-foreground transition-all",children:t+1}),e.title]})},e.id))})]}),s.jsx("div",{className:"space-y-12",children:hh.map((e,t)=>s.jsxs("div",{id:e.id,className:"scroll-mt-24",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[s.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded-xl flex items-center justify-center flex-shrink-0",children:s.jsx(e.icon,{className:"w-5 h-5 text-primary"})}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("span",{className:"text-[10px] font-black text-primary/60 uppercase tracking-widest",children:String(t+1).padStart(2,"0")}),s.jsx("h2",{className:"text-xl font-black text-foreground uppercase tracking-tight",children:e.title})]})]}),e.content&&s.jsx("div",{className:"bg-card border border-border rounded-xl p-6",children:s.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none",children:e.content.split(`
173`).map((r,o)=>{if(!r.trim())return s.jsx("br",{},o);const a=r.replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>");return s.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed mb-2",dangerouslySetInnerHTML:{__html:a}},o)})})}),e.categories&&s.jsx("div",{className:"space-y-4",children:e.categories.map(r=>s.jsxs("div",{className:"bg-card border border-border rounded-xl p-5",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("h3",{className:"text-sm font-black text-foreground uppercase tracking-tight",children:r.name}),s.jsx("span",{className:`text-[10px] font-bold px-2.5 py-1 rounded-full border ${r.badgeColor}`,children:r.badge})]}),s.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed mb-3",children:r.description}),s.jsx("div",{className:"flex flex-wrap gap-2",children:r.examples.map(o=>s.jsx("span",{className:"text-[10px] font-bold px-2.5 py-1 bg-muted rounded-full text-muted-foreground border border-border",children:o},o))})]},r.name))}),t<hh.length-1&&s.jsx("div",{className:"mt-12 h-px bg-border/50"})]},e.id))}),s.jsxs("div",{className:"mt-16 text-center bg-primary/5 border border-primary/20 rounded-2xl p-8",children:[s.jsx(da,{className:"w-10 h-10 text-primary mx-auto mb-3"}),s.jsx("h3",{className:"text-lg font-black text-foreground uppercase tracking-tight mb-2",children:"Manage Your Preferences"}),s.jsx("p",{className:"text-sm text-muted-foreground mb-5 max-w-sm mx-auto",children:"You can update your cookie preferences at any time by clearing your stored consent."}),s.jsxs("button",{onClick:()=>{localStorage.removeItem("city1051fm_cookie_consent"),window.location.reload()},className:"inline-flex items-center gap-2 px-6 py-3 bg-primary text-primary-foreground rounded-xl font-bold text-sm hover:bg-primary/90 transition-all shadow-lg shadow-primary/25",children:[s.jsx(zm,{className:"w-4 h-4"}),"Reset Cookie Preferences"]})]})]})})]}),z8=()=>s.jsxs("div",{className:"min-h-screen bg-black flex items-center justify-center p-4 relative overflow-hidden",children:[s.jsxs("div",{className:"absolute top-0 left-0 w-full h-full",children:[s.jsx("div",{className:"absolute top-1/4 left-1/4 w-96 h-96 bg-primary/20 rounded-full blur-[120px] animate-pulse"}),s.jsx("div",{className:"absolute bottom-1/4 right-1/4 w-96 h-96 bg-primary/10 rounded-full blur-[100px] animate-pulse delay-1000"})]}),s.jsxs("div",{className:"relative z-10 text-center max-w-xl",children:[s.jsx("div",{className:"mb-8 inl
173ine-flex items-center justify-center",children:s.jsxs("div",{className:"relative",children:[s.jsx("div",{className:"absolute inset-0 bg-primary/20 blur-xl rounded-full scale-150"}),s.jsx("div",{className:"relative w-24 h-24 bg-primary/10 backdrop-blur-md rounded-3xl border border-primary/20 flex items-center justify-center transform -rotate-12",children:s.jsx(ao,{className:"w-12 h-12 text-primary"})})]})}),s.jsx("h1",{className:"text-8xl md:text-9xl font-black text-foreground tracking-tighter mb-4 select-none",children:"404"}),s.jsx("h2",{className:"text-4xl md:text-5xl font-black text-white uppercase tracking-tighter mb-4 italic",children:"Signal Lost"}),s.jsx("p",{className:"text-white/60 text-lg md:text-xl mb-10 leading-relaxed font-medium",children:"The content you're looking for seems to be offline. Don't worry, we're still streaming at the main page."}),s.jsxs(Pe,{to:"/",className:"inline-flex items-center gap-3 bg-primary text-primary-foreground px-10 py-5 rounded-[24px] font-black uppercase tracking-widest hover:bg-white hover:text-black hover:scale-105 active:scale-95 transition-all shadow-[0_20px_50px_rgba(255,107,0,0.3)]",children:[s.jsx(hE,{className:"w-5 h-5"}),"Main Page"]})]}),s.jsx("div",{className:"absolute bottom-10 left-10 opacity-5 font-black text-[20vw] rotate-90 select-none pointer-events-none text-white whitespace-nowrap",children:"STATIC"})]}),U8=()=>{const{isPlaying:e,setIsPlaying:t,isMuted:r,setIsMuted:o,volume:a,setVolume:l,currentTrack:c}=vn(),[d,f]=y.useState(!1),h=y.useRef(null);y.useEffect(()=>{h.current&&(h.current.volume=a)},[a]),y.useEffect(()=>{let x=!0;h.current?(h.current.src=c.url,h.current.load()):(h.current=new Audio(c.url),h.current.preload="auto");const v=h.current,N=()=>{x&&v.paused&&e&&v.play().then(()=>{t(!0),w()}).catch(E=>console.warn("Autoplay interaction failed:",E))},w=()=>{window.removeEventListener("click",N),window.removeEventListener("touchend",N),window.removeEventListener("keydown",N),window.removeEventListener("scroll",N)};e&&v.play().then(()=>{f(!1)}).catch(E=>{console.warn("Initial autoplay blocked, waiting for interaction:",E),window.addEventListener("click",N),window.addEventListener("touchend",N),window.addEventListener("keydown",N),window.addEventListener("scroll",N)});const j=()=>{x&&f(!1)},k=()=>{x&&f(!0)},C=()=>{x&&(f(!1),t(!0))},T=()=>{x&&t(!1)},A=E=>{x&&(f(!1),t(!1),console.error("Audio error:",E))};return v.addEventListener("canplay",j),v.addEventListener("waiting",k),v.addEventListener("playing",C),v.addEventListener("pause",T),v.addEventListener("error",A),()=>{x=!1,w(),v.removeEventListener("canplay",j),v.removeEventListener("waiting",k),v.removeEventListener("playing",C),v.removeEventListener("pause",T),v.removeEventListener("error",A)}},[c.url]),y.useEffect(()=>{h.current&&(e?h.current.paused&&h.current.play().catch(x=>{console.warn("Playback blocked or error:",x)}):h.current.paused||h.current.pause())},[e]);const p=()=>{t(!e)},g=()=>{h.current&&(h.current.muted=!r,o(!r))};return s.jsx("div",{className:"city-player-bar",children:s.jsx("div",{className:"container mx-auto px-4",children:s.jsxs("div",{className:"flex items-center justify-between py-3 gap-4",children:[s.jsxs("div",{className:"flex items-center gap-4 flex-1",children:[s.jsx("button",{onClick:p,disabled:d,className:`w-12 h-12 bg-muted rounded-full flex items-center justify-center hover:bg-primary transition-colors group disabled:opacity-50 ${e&&c.url!==Gs?"animate-pulse-orange shadow-[0_0_0_rgba(255,102,0,0.4)]":""}`,children:d?s.jsx("div",{className:"w-5 h-5 border-2 border-foreground border-t-transparent rounded-full animate-spin"}):e?s.jsx(fs,{className:"w-5 h-5 text-foreground group-hover:text-primary-foreground fill-current"}):s.jsx(dr,{className:"w-5 h-5 text-foreground group-hover:text-primary-foreground fill-current ml-0.5"})}),s.jsx("img",{src:c.url===Gs?lm:c.image||lm,alt:c.title,className:"w-10 h-10 sm:w-12 sm:h-12 rounded-full object-cover border border-border/60 shadow-sm flex-shrink-0"}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("p",{className:"font-bold text-foreground text-sm truncate max-w-[140px] sm:max-w-[220px] md:max-w-[300px]",title:c.title,children:c.title}),c.url===Gs&&s.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] font-black uppercase text-red-500 bg-red-500/10 border border-red-500/30 px-1.5 py-0.5 rounded flex-shrink-0 animate-pulse",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-red-500"}),"LIVE"]})]}),s.jsx("p",{className:"text-xs text-muted-foreground truncate max-w-[150px] sm:max-w-[240px] md:max-w-[320px]",title:c.host?`Host: ${c.host}`:c.subtext,children:c.host?c.host.toLowerCase().startsWith("with")?c.host:`with ${c.host}`:c.subtext==="Live Stream"?"City 105.1 FM":c.subtext})]})]}),s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("button",{className:"p-2 hover:text-primary transition-colors",children:s.jsx(mE,{className:"w-5 h-5"})}),s.jsx("button",{className:"p-2 hover:text-primary transition-colors",children:s.jsx(pE,{className:"w-5 h-5"})}),s.jsx("span",{className:"text-xs text-muted-foreground hidden md:block",children:c.subtext==="Live Stream"?"LIVE":"00:00"})]}),s.jsxs("div",{className:"flex items-center gap-4 flex-1 justify-end",children:[s.jsx("button",{className:"p-2 hover:text-primary transition-colors hidden md:block",children:s.jsx(aE,{className:"w-5 h-5"})}),s.jsxs("div",{className:"flex items-center gap-2 group relative",children:[s.jsx("button",{onClick:g,className:"p-2 hover:text-primary transition-colors",children:r?s.jsx(Mw,{className:"w-5 h-5"}):s.jsx(Rw,{className:"w-5 h-5"})}),s.jsx("div",{className:"hidden md:flex items-center w-24",children:s.jsx("input",{type:"range",min:"0",max:"1",step:"0.01",value:a,onChange:x=>l(parseFloat(x.target.value)),className:"w-full h-1.5 bg-muted rounded-lg appearance-none cursor-pointer accent-primary"})})]})]})]})})})}
173,VS="__GENERIC_FALLBACK__";function W8(e,t,r,o,a,l){const c=e.toLowerCase();if(t.length>0){const f=t.find(h=>c.includes(h.title.toLowerCase())||h.slug&&c.includes(h.slug.replace(/-/g," ")));if(f&&!c.includes("schedule")&&!c.includes("today")&&!c.includes("what show")){const h=f.days||"check schedule",p=f.host?`Hosted by **${f.host}**. `:"",g=f.description?`
174
175${f.description}`:"";return`**${f.title}** 🎙️
176
177${p}Airs ${h} from **${f.time}**.${g}
178
179Visit our **Shows** page for more details!`}}if(c.includes("show")||c.includes("programme")||c.includes("schedule")){const f=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];let h="";for(const j of f)if(c.includes(j.toLowerCase())){h=j;break}if(!h)try{h=new Intl.DateTimeFormat("en-US",{weekday:"long",timeZone:"Africa/Lagos"}).format(new Date)}catch{h=f[new Date().getDay()]}const p=j=>{const C=j.split("-")[0].trim().toLowerCase().match(/(\d+):(\d+)\s*(am|pm)/);if(!C)return 0;let T=parseInt(C[1]);const A=parseInt(C[2]),E=C[3];return E==="pm"&&T<12&&(T+=12),E==="am"&&T===12&&(T=0),T*60+A};if(t.length===0)return"Loading the latest show schedule… please try again in a moment, or visit our **Shows** page for the full lineup! 🎙️";const x={Sunday:"SUN",Monday:"MON",Tuesday:"TUE",Wednesday:"WED",Thursday:"THU",Friday:"FRI",Saturday:"SAT"}[h]||h.slice(0,3).toUpperCase(),v=h!=="Saturday"&&h!=="Sunday",N=t.filter(j=>{const k=j.days.toUpperCase();return k.includes(x)?!0:k.toLowerCase().includes("monday - friday")?v:!!k.toLowerCase().includes(h.toLowerCase())}).sort((j,k)=>p(j.time)-p(k.time));if(N.length===0)return`There are no shows scheduled for ${h}. Visit our Shows page for the full schedule!`;const w=N.map(j=>`• **${j.title}** (${j.time}) — hosted by ${j.host}. ${j.description}`).join(`
180`);return`Here is the show lineup for ${h} on City 105.1 FM! 🎙️
181
182${w}
183
184Visit our Shows page for the full schedule and presenter profiles!`}const d=c.match(/(?:who is|tell me about|about|info on|describe)\s+([a-z\s]+)/i);if(d||c.includes("who")&&r.some(f=>c.includes(f.name.toLowerCase()))){const f=(d?d[1]:c).toLowerCase().trim(),h=r.find(p=>p.name.toLowerCase()===f||p.name.toLowerCase().includes(f)||f.includes(p.name.toLowerCase()));if(h){const p=h.bio?h.bio.split(`
185`)[0]:`${h.name} is a ${h.role} at City 105.1 FM.`,g=t.filter(v=>(v.host||"").toLowerCase().includes(h.name.split(" ")[0].toLowerCase()));let x=`**${h.name}** — ${h.role} 🎙️
186
187${p}`;return g.length>0&&(x+=`
188
189**Shows:**
190${g.map(v=>`• ${v.title} (${v.time})`).join(`
191`)}`),x+=`
192
193Visit the **Staff** page to see ${h.name}'s full profile!`,x}}if(c.includes("advertise")||c.includes("sponsor")||c.includes("advert")||c.includes("partner"))return`We'd love to partner with you! 🚀
194
195City 105.1 FM is Lagos' #1 urban station reaching millions of listeners daily. We offer:
196
197• On-air spots & sponsorships
198• Digital & social media packages
199• Live event activations
200• Branded content
201
202Contact our marketing team at **[email protected]** or call us to get a tailored package for your brand.`;if(c.includes("stream")||c.includes("listen")||c.includes("live")||c.includes("online")||c.includes("app")||c.includes("ios")||c.includes("download"))return`You can listen to City 105.1 FM live right here on our website or on our mobile app! 📻
203
204• [**Download on the Apple App Store (iOS)**](https://apps.apple.com/us/app/city1051fm/id1380079565) 📲
205• Stream live right on our [**Live Player**](/player)
206• TuneIn Radio & web player at city1051fm.com
207
208Hit the **Play** button at the bottom of the screen to listen live now!`;if(c.includes("academy")||c.includes("cma")||c.includes("course")||c.includes("training")||c.includes("enrol")||c.includes("register")||c.includes("broadcast")){if(l){const f=l.is_registration_open?"✅ **Registration is OPEN!**":"❌ Registration is currently **CLOSED**",h=l.standard_fee?`
209• **Standard Fee:** ₦${parseFloat(l.standard_fee).toLocaleString()}`:"",p=l.early_bird_fee?`
210• **Early Bird Fee:** ₦${parseFloat(l.early_bird_fee).toLocaleString()}`:"",g=l.registration_start_date?`
211• **Registration Opens:** ${new Date(l.registration_start_date).toLocaleDateString("en-NG",{day:"numeric",month:"long",year:"numeric"})}`:"",x=l.registration_deadline?`
212• **Registration Closes:** ${new Date(l.registration_deadline).toLocaleDateString("en-NG",{day:"numeric",month:"long",year:"numeric"})}`:"",v=l.class_start_date?`
213• **Class Starts:** ${new Date(l.class_start_date).toLocaleDateString("en-NG",{day:"numeric",month:"long",year:"numeric"})}`:l.cycle_info?`
214• **Class Starts:** ${l.cycle_info}`:"",N=l.session_hours?`
215• **Class Time:** ${l.session_hours}`:"",w=l.application_link?`
216
217🔗 [**Apply Here** →](${l.application_link})`:"";return`🎓 **${l.hero_headline||"Broadcast Media Pro Course"}**
218
219${f}${h}${p}${g}${x}${v}${N}${w}
220
221Visit our **Cardinal Media Academy** page for the full course details and to enrol!`}return`Cardinal Media Academy (CMA) is our world-class broadcasting and media training institute! 🎓
222
223We offer courses in:
224• Radio Presenting & Broadcasting
225• Audio Production & Engineering
226• Podcast Creation
227• Social Media & Digital Content
228• Journalism & Storytelling
229
230Visit our **Cardinal Media Academy** page to enrol or learn more!`}if(c.includes("about")||c.includes("history")||c.includes("city fm")||c.includes("who are"))return`City 105.1 FM is Lagos' premier urban radio station — **#WeRunThisCity**! 🏙️
231
232We're the heartbeat of Lagos, bringing you the best in:
233• Music (Afrobeats, R&B, Hip-Hop & more)
234• News & current affairs
235• Entertainment & lifestyle
236• Live events & activations
237
238Broadcasting on **105.1 FM** in Lagos, we reach millions of listeners across Nigeria and globally via our live stream.`;if(c.includes("contact")||c.includes("address")||c.includes("phone")||c.includes("email")||c.includes("reach"))return`You can reach City 105.1 FM here:
239
240📍 **Location:** Lagos, Nigeria
241📧 **Email:** [email protected]
242📞 **Studio Line:** +234 909 069 0328
243
244**Social Media:**
245• Instagram: @city1051
246• Twitter/X: @city1051
247• Facebook: City 105.1 FM
248• YouTube: City 105.1 FM
249
250Don't hesitate to slide into our DMs — we love hearing from our listeners! 🎉`;if(c.includes("podcast")||c.includes("episode"))return`City 105.1 FM has a growing library of amazing podcasts! 🎧
251
252From faith and inspiration to lifestyle, entertainment, and leadership — our podcasts let you catch up on your favourite shows anytime, anywhere.
253
254Head over to the **Podcasts** page to browse all shows, subscribe to your favourites, and never miss an episode!`;if(c.includes("news")||c.includes("latest")||c.includes("breaking")||c.includes("headline"))return o.length>0?`Here are the latest headlines from City 105.1 FM! 📰
255
256${o.slice(0,5).map((p,g)=>`${g+1}. ${p.title}`).join(`
257`)}
258
259Visit our **News** page for the full stories and more updates!`:`Stay up to date with the latest news from City 105.1 FM! 📰
260
261Our news team covers Nigerian & Lagos news, entertainment, sports, business, and lifestyle.
262
263Visit the **News** section on our website or tune in to our hourly bulletins on 105.1 FM!`;if(c.includes("frequency")||c.includes("fm")||c.includes("signal")||c.includes("where"))return`City FM broadcasts on **105.1 FM** across Lagos and its environs. 📡
264
265Can't get a signal? No worries — stream us live on our website or mobile app from anywhere in the world! The City vibe travels with you. 🌍`;if(c.includes("hello")||c.includes("hi")||c.includes("hey")||c.includes("good morning")||c.includes("good afternoon")||c.includes("good evening"))return`Hey there! 👋 Welcome to City 105.1 FM — **#WeRunThisCity**!
266
267I'm your City FM AI assistant. I can help you with:
268• Show schedules & presenters
269• Live streaming & the app
270• Advertising opportunities
271• Cardinal Media Academy
272• News & events
273• And much more!
274
275What would you like to know?`;if(c.includes("event")||c.includes("concert")||c.includes("party")||c.includes("upcoming"))return a.length>0?`Here are City 105.1 FM's upcoming events! 🎉
276
277${a.slice(0,5).map(h=>{let p=`• **${h.title}**`;return h.date&&(p+=` — ${h.date}`),h.venue&&(p+=` @ ${h.venue}`),p}).join(`
278`)}
279
280Check our **Events** page for full details and how to attend!`:`City 105.1 FM is always at the centre of the action! 🎉
281
282We host and partner on some of Lagos' biggest events — concerts, listening parties, brand activations, and more.
283
284Check our **Events** page for upcoming events and how to get involved!`;if(c.includes("presenter")||c.includes("dj")||c.includes("host")||c.includes("staff")||c.includes("team")||c.includes("oap")||c.includes("meet the")){if(r.length===0)return"Loading staff data… please try again in a moment, or visit our **Staff** page to meet the full team! 🌟";const f=r.filter(g=>g.category==="Presenter"),h=r.filter(g=>g.category==="Management");let p=`City 105.1 FM has the most talented team in Lagos radio! 🌟
285
286`;return f.length>0&&(p+=`**Our On-Air Presenters:**
287${f.map(g=>
287`• ${g.name}`).join(`
288`)}
289
290`),h.length>0&&(p+=`**Management:**
291${h.map(g=>`• ${g.name} — ${g.role}`).join(`
292`)}
293
294`),p+='Ask me **"Who is [name]"** to learn more about any presenter, or visit the **Staff** page!',p}return VS}const H8=()=>{const[e,t]=y.useState(!1),[r,o]=y.useState(!1),[a,l]=y.useState([]),[c,d]=y.useState([]),[f,h]=y.useState([]),[p,g]=y.useState([]),[x,v]=y.useState(null),[N,w]=y.useState("home"),[j,k]=y.useState([{id:"0",role:"assistant",text:`Hey! 👋 I'm the **City 105.1 FM AI Assistant**.
295
296I can help you with show schedules, live streaming, advertising, the Cardinal Media Academy, and anything else about Lagos' #1 urban radio station.
297
298**#WeRunThisCity** — what can I help you with today?`,timestamp:new Date}]),[C,T]=y.useState(""),[A,E]=y.useState(!1),[D,I]=y.useState(!0),[_,H]=y.useState(0),[z,G]=y.useState(!1),[q,le]=y.useState(!1),F=y.useRef(null),J=y.useRef(null);y.useEffect(()=>{const M="https://city1051fm.cloud/".replace(/\/$/,""),B=Q=>fetch(Q).then(ne=>ne.json()).catch(()=>null);B(`${M}/api/shows/`).then(Q=>{Array.isArray(Q)&&l(Q)}),B(`${M}/api/staff/`).then(Q=>{Array.isArray(Q)&&d(Q)}),B(`${M}/api/news/`).then(Q=>{const ne=Array.isArray(Q)?Q:Q?.results;Array.isArray(ne)&&h(ne)}),B(`${M}/api/events/`).then(Q=>{const ne=Array.isArray(Q)?Q:Q?.results;Array.isArray(ne)&&g(ne)}),B(`${M}/api/cma-settings/`).then(Q=>{Q&&typeof Q=="object"&&!Array.isArray(Q)&&v(Q)})},[]),y.useEffect(()=>{e&&!r&&F.current?.scrollIntoView({behavior:"smooth"})},[j,e,r]),y.useEffect(()=>{e&&!r&&(setTimeout(()=>J.current?.focus(),100),H(0))},[e,r]);const Z=()=>{t(!0),o(!1),H(0)},oe=async M=>{if(!M.trim())return;const B={id:Date.now().toString(),role:"user",text:M.trim(),timestamp:new Date};k(ge=>[...ge,B]),T(""),I(!1),E(!0);let Q;const ne=W8(M,a,c,f,p,x);if(ne!==VS)await new Promise(ge=>setTimeout(ge,400+Math.random()*400)),Q=ne;else try{const X=await(await fetch("https://city1051fm.cloud//api/chat/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:M.trim()})})).json();X.reply&&!X.fallback?Q=X.reply:Q=`Great question! 🎙️ I'm the City 105.1 FM AI assistant — here to help with everything about Lagos' #1 urban radio station.
299
300You can ask me about our shows, how to listen live, advertising opportunities, the Cardinal Media Academy, news, events, and more!
301
302What else would you like to know?`}catch{Q=`Great question! 🎙️ I'm the City 105.1 FM AI assistant — here to help with everything about Lagos' #1 urban radio station.
303
304You can ask me about our shows, how to listen live, advertising opportunities, the Cardinal Media Academy, news, events, and more!`}const pe={id:(Date.now()+1).toString(),role:"assistant",text:Q,timestamp:new Date};E(!1),k(ge=>[...ge,pe]),G(!0),le(!1),(!e||r)&&H(ge=>ge+1)},$=M=>{M.key==="Enter"&&!M.shiftKey&&(M.preventDefault(),oe(C))},W=M=>M.split(/\*\*(.*?)\*\*/g).map((Q,ne)=>ne%2===1?s.jsx("strong",{className:"font-bold text-orange-400",children:Q},ne):s.jsx("span",{children:Q},ne)),K=M=>M.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});return s.jsxs(s.Fragment,{children:[!e&&s.jsx("button",{onClick:Z,id:"ai-chat-trigger","aria-label":"Open City FM AI Chat",className:"fixed bottom-24 right-5 z-50 group",style:{filter:"drop-shadow(0 8px 24px rgba(255,128,0,0.4))"},children:s.jsxs("div",{className:"relative flex items-center justify-center bg-[#FF8000] text-white w-14 h-14 rounded-full transition-all duration-300 group-hover:scale-110 group-hover:shadow-[0_8px_30px_rgb(255,128,0,0.5)] shadow-xl",children:[s.jsxs("span",{className:"absolute -top-1 -right-1 flex h-4 w-4",children:[s.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-orange-400 opacity-75"}),s.jsx("span",{className:"relative inline-flex rounded-full h-4 w-4 bg-orange-200"})]}),s.jsx(jh,{className:"w-7 h-7 text-white"}),_>0&&s.jsx("span",{className:"absolute -top-1 -left-1 bg-red-500 text-white text-[10px] rounded-full w-5 h-5 flex items-center justify-center font-bold border-2 border-[#1a1a1a]",children:_})]})}),e&&s.jsxs("div",{id:"ai-chat-window",className:"fixed bottom-24 right-4 z-50 flex flex-col rounded-2xl overflow-hidden animate-in fade-in slide-in-from-bottom-4 duration-300",style:{width:"380px",maxWidth:"calc(100vw - 32px)",height:r?"auto":"600px",maxHeight:"calc(100vh - 160px)",boxShadow:"0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,128,0,0.2)",background:"#121212"},children:[s.jsxs("div",{className:"flex items-center justify-between px-4 py-4 flex-shrink-0",style:{background:N==="home"?"linear-gradient(180deg, rgba(255,128,0,0.15) 0%, transparent 100%)":"transparent",borderBottom:N==="messages"?"1px solid hsl(0 0% 18%)":"none"},children:[N==="home"?s.jsx("div",{className:"flex-1"}):s.jsx("p",{className:"text-white font-bold text-sm",children:"Messages"}),s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("button",{onClick:()=>o(!r),className:"w-8 h-8 rounded-full flex items-center justify-center text-white/40 hover:text-white hover:bg-white/10 transition-colors",children:r?s.jsx(lE,{className:"w-4 h-4"}):s.jsx(fE,{className:"w-4 h-4"})}),s.jsx("button",{onClick:()=>t(!1),className:"w-8 h-8 rounded-full flex items-center justify-center text-white/40 hover:text-white hover:bg-white/10 transition-colors",children:s.jsx(xn,{className:"w-4 h-4"})})]})]}),!r&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex-1 overflow-y-auto relative flex flex-col scrollbar-hide",children:N==="home"?s.jsxs("div",{className:"px-5 py-2 space-y-6 animate-in fade-in slide-in-from-bottom-2 duration-500",children:[s.jsxs("div",{className:"space-y-2 py-4",children:[s.jsxs("h2",{className:"text-2xl font-bold text-white leading-tight",children:["Hey! ",s.jsx("span",{className:"animate-bounce-slow inline-block",children:"👋"})]}),s.jsx("p",{className:"text-xl font-semibold text-white/90",children:"I'm the City 105.1 FM AI Assistant."})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs("button",{onClick:()=>{w("messages"),setTimeout(()=>J.current?.focus(),100)},className:"w-full group text-left px-4 py-4 rounded-2xl border border-white/10 bg-white/5 hover:bg-white/10 hover:border-orange-500/30 transition-all duration-300",children:[s.jsxs("div",{className:"flex items-center justify-between mb-1",children:[s.jsx("p",{className:"text-sm font-semibold text-white/90",children:"Ask a question"}),s.jsx("div",{className:"w-8 h-8 rounded-lg bg-orange-500/20 flex items-center justify-center text-orange-500 group-hover:scale-110 transition-transform",children:s.jsx(Cw,{className:"w-4 h-4"})})]}),s.jsx("p",{className:"text-xs text-white/40",children:"Get instant answers from our AI assistant"})]}),s.jsxs("div",{className:"rounded-2xl border border-white/10 bg-white/5 overflow-hidden",children:[s.jsxs("button",{onClick:()=>w("messages"),className:"w-full flex items-center justify-between px-4 py-3.5 hover:bg-white/5 transition-colors group text-left",children:[s.jsx("span",{className:"text-xs font-medium text-white/70",children:"Submit Support Request"}),s.jsx(Dc,{className:"w-3.5 h-3.5 text-white/20 group-hover:text-white/50"})]}),s.jsx("div",{className:"h-[1px] bg-white/5 mx-4"}),s.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center justify-between px-4 py-3.5 hover:bg-white/5 transition-colors group",children:[s.jsx("span",{className:"text-xs font-medium text-white/70",children:"Email Support"}),s.jsx(Dc,{className:"w-3.5 h-3.5 text-white/20 group-hover:text-white/50"})]})]}),s.jsxs("div",{className:"flex items-center gap-3 px-4 py-4 rounded-2xl border border-white/10 bg-white/5",children:[s.jsx("div",{className:"w-8 h-8 rounded-full bg-green-500/20 flex items-center justify-center text-green-500",children:s.jsx(xa,{
304className:"w-5 h-5"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-semibold text-white/90",children:"Status: All Systems Operational"}),s.jsxs("p",{className:"text-[10px] text-white/30",children:["Updated ",new Date().toLocaleDateString("en-US",{month:"short",day:"numeric"}),", ",new Date().toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"})," WAT"]})]})]})]})]}):s.jsxs("div",{className:"flex-1 flex flex-col min-h-0 animate-in fade-in duration-300",children:[s.jsxs("div",{className:"flex-1 overflow-y-auto px-4 py-4 space-y-4 scrollbar-hide",children:[j.map(M=>s.jsxs("div",{className:`flex gap-2.5 ${M.role==="user"?"flex-row-reverse":"flex-row"} animate-in fade-in slide-in-from-bottom-1`,children:[M.role==="assistant"&&s.jsx("div",{className:"w-7 h-7 rounded-full flex-shrink-0 mt-1 bg-orange-500/10 border border-orange-500/20 flex items-center justify-center",children:s.jsx(Jy,{className:"w-3.5 h-3.5 text-orange-400"})}),M.role==="user"&&s.jsx("div",{className:"w-7 h-7 rounded-full flex-shrink-0 mt-1 bg-orange-500/20 border border-orange-500/30 flex items-center justify-center",children:s.jsx(ao,{className:"w-3.5 h-3.5 text-orange-400"})}),s.jsxs("div",{className:`flex flex-col gap-1 max-w-[78%] ${M.role==="user"?"items-end":"items-start"}`,children:[s.jsx("div",{className:"px-3.5 py-2.5 rounded-2xl text-sm leading-relaxed whitespace-pre-line",style:M.role==="assistant"?{background:"hsl(0 0% 15%)",color:"hsl(0 0% 88%)",borderRadius:"4px 16px 16px 16px",border:"1px solid hsl(0 0% 20%)"}:{background:"linear-gradient(135deg, #FF8000, #cc6400)",color:"white",borderRadius:"16px 4px 16px 16px"},children:W(M.text)}),s.jsx("span",{className:"text-[10px] text-white/30",children:K(M.timestamp)})]})]},M.id)),z&&!A&&s.jsx("div",{className:"flex flex-col gap-2 pl-9 animate-fade-in",children:q?s.jsxs("div",{className:"rounded-xl overflow-hidden bg-white/5 border border-white/10",children:[s.jsxs("div",{className:"px-3.5 py-2.5 bg-gradient-to-r from-orange-500 to-orange-600 flex items-center gap-2",children:[s.jsx(bh,{className:"w-3.5 h-3.5 text-white"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-white font-bold text-[11px] leading-tight",children:"Connect with us"}),s.jsx("p",{className:"text-orange-100 text-[9px]",children:"We're usually online"})]})]}),s.jsxs("div",{className:"p-2 space-y-1",children:[s.jsxs("a",{href:"https://wa.me/2347060649830",target:"_blank",rel:"noopener",className:"flex items-center gap-2 p-2 rounded-lg hover:bg-white/5 transition-colors group",children:[s.jsx("div",{className:"w-6 h-6 rounded-full bg-[#25D366] flex items-center justify-center text-white",children:s.jsx(jh,{className:"w-3 h-3"})}),s.jsx("span",{className:"text-xs text-white/70 group-hover:text-white transition-colors",children:"WhatsApp Marketing"})]}),s.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-2 p-2 rounded-lg hover:bg-white/5 transition-colors group",children:[s.jsx("div",{className:"w-6 h-6 rounded-full bg-orange-500 flex items-center justify-center text-white",children:s.jsx(ii,{className:"w-3 h-3"})}),s.jsx("span",{className:"text-xs text-white/70 group-hover:text-white transition-colors",children:"Marketing Email"})]}),s.jsxs("a",{href:"tel:+2349090690328",className:"flex items-center gap-2 p-2 rounded-lg hover:bg-white/5 transition-colors group",children:[s.jsx("div",{className:"w-6 h-6 rounded-full bg-blue-500 flex items-center justify-center text-white",children:s.jsx(cu,{className:"w-3 h-3"})}),s.jsx("span",{className:"text-xs text-white/70 group-hover:text-white transition-colors",children:"Call Studio Line"})]})]})]}):s.jsxs("button",{onClick:()=>le(!0),className:"self-start flex items-center gap-1.5 text-xs px-3 py-1.5 rounded-full border border-white/10 text-white/40 hover:text-orange-500 hover:border-orange-500/50 bg-white/5 transition-all duration-200",children:[s.jsx(bh,{className:"w-3 h-3"}),"Talk to a human agent"]})}),A&&s.jsxs("div",{className:"flex gap-2.5 items-center animate-fade-in pl-1",children:[s.jsx("div",{className:"w-7 h-7 rounded-full flex-shrink-0 mt-1 bg-orange-500/10 border border-orange-500/20 flex items-center justify-center",children:s.jsx(Jy,{
304className:"w-3.5 h-3.5 text-orange-400"})}),s.jsxs("div",{className:"px-4 py-3 rounded-2xl flex items-center gap-1 bg-white/5 border border-white/10 rounded-tl-sm",children:[s.jsx("span",{className:"w-1.5 h-1.5 bg-orange-400 rounded-full animate-bounce",style:{animationDelay:"0ms"}}),s.jsx("span",{className:"w-1.5 h-1.5 bg-orange-400 rounded-full animate-bounce",style:{animationDelay:"150ms"}}),s.jsx("span",{className:"w-1.5 h-1.5 bg-orange-400 rounded-full animate-bounce",style:{animationDelay:"300ms"}})]})]}),s.jsx("div",{ref:F})]}),s.jsx("div",{className:"p-4 pt-0",children:s.jsxs("div",{className:"flex items-center gap-2 px-3 py-2.5 rounded-xl bg-white/5 border border-white/10 focus-within:border-orange-500/50 transition-colors",children:[s.jsx("input",{ref:J,type:"text",value:C,onChange:M=>T(M.target.value),onKeyDown:$,placeholder:"Ask a question...",disabled:A,className:"flex-1 bg-transparent text-sm text-white placeholder:text-white/30 outline-none"}),s.jsx("button",{onClick:()=>oe(C),disabled:!C.trim()||A,className:"w-8 h-8 rounded-lg flex items-center justify-center bg-orange-500 text-white disabled:opacity-30 hover:bg-orange-600 transition-colors",children:s.jsx(uu,{className:"w-3.5 h-3.5"})})]})})]})}),s.jsxs("div",{className:"flex items-center border-t border-white/10 px-6 py-2.5 bg-[#121212] flex-shrink-0",children:[s.jsxs("button",{onClick:()=>w("home"),className:`flex-1 flex flex-col items-center gap-1 transition-all duration-300 ${N==="home"?"text-orange-500 scale-105":"text-white/30 hover:text-white/50"}`,children:[s.jsx(rE,{className:`w-5 h-5 ${N==="home"?"fill-orange-500/10":""}`}),s.jsx("span",{className:"text-[10px] font-medium",children:"Home"})]}),s.jsxs("button",{onClick:()=>w("messages"),className:`flex-1 flex flex-col items-center gap-1 transition-all duration-300 ${N==="messages"?"text-orange-500 scale-105":"text-white/30 hover:text-white/50"}`,children:[s.jsxs("div",{className:"relative",children:[s.jsx(Lc,{className:`w-5 h-5 ${N==="messages"?"fill-orange-500/10":""}`}),_>0&&s.jsx("span",{className:"absolute -top-1 -right-1 w-2.5 h-2.5 bg-red-500 rounded-full border-2 border-[#121212]"})]}),s.jsx("span",{className:"text-[10px] font-medium",children:"Messages"})]})]})]})]}),s.jsx("style",{children:`
305        @keyframes fade-in {
306          from { opacity: 0; }
307          to { opacity: 1; }
308        }
309        @keyframes slide-in-bottom {
310          from { transform: translateY(10px); opacity: 0; }
311          to { transform: translateY(0); opacity: 1; }
312        }
313        @keyframes bounce-slow {
314          0%, 100% { transform: translateY(0); }
315          50% { transform: translateY(-10px); }
316        }
317        .animate-fade-in { animation: fade-in 0.3s ease-out forwards; }
318        .animate-slide-in-bottom { animation: slide-in-bottom 0.4s ease-out forwards; }
319        .animate-bounce-slow { animation: bounce-slow 2s infinite ease-in-out; }
320        .scrollbar-hide::-webkit-scrollbar { display: none; }
321        .scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
322      `})]})},Hb="city1051fm_cookie_consent",Yb="city1051fm_session_id",Y8={necessary:!0,analytics:!1,marketing:!1},G8=()=>{let e=localStorage.getItem(Yb);return e||(e=`${Date.now()}-${Math.random().toString(36).slice(2,10)}`,localStorage.setItem(Yb,e)),e},K8=async(e,t)=>{try{await Ce("/api/cookie-consent/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:G8(),choice:e,necessary:t.necessary,analytics:t.analytics,marketing:t.marketing,page_url:window.location.href})})}catch{}},q8=()=>{const[e,t]=y.useState(!1),[r,o]=y.useState(!1),[a,l]=y.useState(Y8);y.useEffect(()=>{if(!localStorage.getItem(Hb)){const g=setTimeout(()=>t(!0),800);return()=>clearTimeout(g)}},[]);const c=(p,g)=>{const x=g||a;localStorage.setItem(Hb,JSON.stringify({choice:p,prefs:x,timestamp:Date.now()})),t(!1),o(!1),K8(p,x)},d=()=>c("accepted",{necessary:!0,analytics:!0,marketing:!0}),f=()=>c("rejected",{necessary:!0,analytics:!1,marketing:!1}),h=()=>c("customised",a);return e?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"fixed inset-0 z-[998] bg-black/30 backdrop-blur-sm md:hidden"}),s.jsx("div",{className:"fixed bottom-4 left-1/2 -translate-x-1/2 z-[999] w-[calc(100%-2rem)] max-w-xl animate-in slide-in-from-bottom-8 duration-500",role:"dialog","aria-label":"Cookie consent",children:s.jsxs("div",{className:"relative bg-card border border-border rounded-2xl shadow-2xl overflow-hidden",children:[s.jsx("div",{className:"h-1 w-full bg-gradient-to-r from-primary via-orange-400 to-primary"}),r?s.jsxs("div",{className:"p-5 sm:p-6",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsx("h3",{className:"text-base font-black text-foreground",children:"Cookie Preferences"}),s.jsx("button",{onClick:()=>o(!1),className:"w-7 h-7 rounded-full bg-muted flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors",children:s.jsx(xn,{className:"w-3.5 h-3.5"})})]}),s.jsxs("div",{className:"space-y-3 mb-5",children:[s.jsxs("div",{className:"flex items-center justify-between p-3 rounded-xl bg-muted/50 border border-border",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-bold text-foreground",children:"Necessary"}),s.jsx("p",{className:"text-[10px] text-muted-foreground mt-0.5",children:"Required for the website to function. Cannot be disabled."})]}),s.jsx("div",{className:"w-10 h-5 bg-primary rounded-full flex items-center justify-end px-0.5 cursor-not-allowed opacity-70",children:s.jsx("div",{className:"w-4 h-4 bg-white rounded-full shadow"})})]}),s.jsxs("div",{className:"flex items-center justify-between p-3 rounded-xl bg-muted/50 border border-border",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-bold text-foreground",children:"Analytics"}),s.jsx("p",{className:"text-[10px] text-muted-foreground mt-0.5",children:"Help us understand how visitors use our site."})]}),s.jsx("button",{onClick:()=>l(p=>({...p,analytics:!p.analytics})),className:`w-10 h-5 rounded-full transition-all flex items-center px-0.5 ${a.analytics?"bg-primary justify-end":"bg-muted-foreground
322/30 justify-start"}`,children:s.jsx("div",{className:"w-4 h-4 bg-white rounded-full shadow transition-all"})})]}),s.jsxs("div",{className:"flex items-center justify-between p-3 rounded-xl bg-muted/50 border border-border",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-bold text-foreground",children:"Marketing"}),s.jsx("p",{className:"text-[10px] text-muted-foreground mt-0.5",children:"Used to personalise ads and content for you."})]}),s.jsx("button",{onClick:()=>l(p=>({...p,marketing:!p.marketing})),className:`w-10 h-5 rounded-full transition-all flex items-center px-0.5 ${a.marketing?"bg-primary justify-end":"bg-muted-foreground/30 justify-start"}`,children:s.jsx("div",{className:"w-4 h-4 bg-white rounded-full shadow transition-all"})})]})]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("button",{onClick:f,className:"flex-1 px-4 py-2.5 rounded-xl border border-border bg-muted hover:bg-muted/80 text-foreground font-bold text-xs transition-all",children:"Reject All"}),s.jsx("button",{onClick:h,className:"flex-1 px-4 py-2.5 rounded-xl bg-primary text-primary-foreground font-bold text-xs hover:bg-primary/90 transition-all shadow-lg shadow-primary/25",children:"Save Preferences"})]})]}):s.jsxs("div",{className:"p-5 sm:p-6",children:[s.jsxs("div",{className:"flex items-start gap-3 mb-3",children:[s.jsx("div",{className:"w-9 h-9 bg-primary/10 rounded-xl flex items-center justify-center flex-shrink-0 mt-0.5",children:s.jsx(da,{className:"w-5 h-5 text-primary"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-base font-black text-foreground mb-1",children:"We value your privacy"}),s.jsxs("p",{className:"text-xs text-muted-foreground leading-relaxed",children:['We use cookies to enhance your browsing experience, serve personalised ads or content, and analyse our traffic. By clicking "Accept All", you consent to our use of cookies.'," ",s.jsx(Pe,{to:"/cookie-policy",onClick:()=>t(!1),className:"text-primary underline underline-offset-2 hover:text-primary/80 transition-colors",children:"Cookie Policy"})]})]})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-2 mt-4",children:[s.jsxs("button",{onClick:()=>o(!0),className:"flex-1 inline-flex items-center justify-center gap-1.5 px-4 py-2.5 rounded-xl border border-border bg-muted hover:bg-muted/80 text-foreground font-bold text-xs transition-all",children:[s.jsx(Sh,{className:"w-3.5 h-3.5"}),"Customise"]}),s.jsxs("button",{onClick:f,className:"flex-1 inline-flex items-center justify-center gap-1.5 px-4 py-2.5 rounded-xl border border-border bg-muted hover:bg-muted/80 text-foreground font-bold text-xs transition-all",children:[s.jsx(XT,{className:"w-3.5 h-3.5"}),"Reject All"]}),s.jsxs("button",{onClick:d,className:"flex-1 inline-flex items-center justify-center gap-1.5 px-4 py-2.5 rounded-xl bg-primary text-primary-foreground font-bold text-xs hover:bg-primary/90 transition-all shadow-lg shadow-primary/25",children:[s.jsx(du,{className:"w-3.5 h-3.5"}),"Accept All"]})]})]})]})})]}):null},Q8=new OA,X8=()=>s.jsx(Z1,{children:s.jsx(zA,{client:Q8,children:s.jsx(t5,{attribute:"class",defaultTheme:"light",enableSystem:!1,children:s.jsx(vM,{children:s.jsxs(yA,{children:[s.jsx(JE,{}),s.jsx(_5,{}),s.jsxs(ZR,{children:[s.jsxs(HR,{children:[s.jsx(nt,{path:"/",element:s.jsx(w4,{})}),s.jsx(nt,{path:"/promotions",element:s.jsx(Q3,{})}),s.jsx(nt,{path:"/staff",element:s.jsx(e_,{})}),s.jsx(nt,{path:"/staff/:slug",element:s.jsx(r_,{})}),s.jsx(nt,{path:"/shows",element:s.jsx(s_,{})}),s.jsx(nt,{path:"/shows/:slug",element:s.jsx(fI,{})}),s.jsx(nt,{path:"/cma",element:s.jsx(oI,{})}),s.jsx(nt,{path:"/cma/wishlist",element:s.jsx(cI,{})}),s.jsx(nt,{path:"/cma/payment-success",element:s.jsx(uI,{})}),s.jsx(nt,{path:"/events",element:s.jsx(mI,{})}),s.jsx(nt,{path:"/about",element:s.jsx(kI,{})}),s.jsx(nt,{path:"/news",element:s.jsx(EI,{})}),s.jsx(nt,{path:"/news/:slug",element:s.jsx(AI,{})}),s.jsx(nt,{path:"/podcasts",element:s.jsx(MI,{})}),s.jsx(nt,{path:"/podcasts/:slug",element:s.jsx(_I,{})}),s.jsx(nt,{path:"/podcasts/:slug/:episodeId",element:s.jsx(DI,{})}),s.jsx(nt,{path:"/gallery",element:s.jsx(II,{})}),s.jsx(nt,{path:"/advertise",element:s.jsx(V8,{})}),s.jsx(nt,{path:"/player",element:s.jsx(LI,{})}),s.jsx(nt,{path:"/cookie-policy",element:s.jsx(B8,{})}),s.jsx(nt,{path:"*",element:s.jsx(z8,{})})]}),s.jsx(U8,{}),s.jsx(H8,{}),s.jsx(q8,{})]})]})})})})});zC.createRoot(document.getElementById("root")).render(s.jsx(X8,{}));

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