PageSourceSearch

https://vace-2627.vercel.app/assets/index-BQ-XQIeA.js

js vace-2627.vercel.app collected 2026-10-03 07:58:43 UTC 867,866 bytes, 454 lines download raw bytes

vendor: 4,222 bytes, lines 1-17
1(function(){const f=document.createElement("link").relList;if(f&&f.supports&&f.supports("modulepreload"))return;for(const k of document.querySelectorAll('link[rel="modulepreload"]'))b(k);new MutationObserver(k=>{for(const p of k)if(p.type==="childList")for(const g of p.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&b(g)}).observe(document,{childList:!0,subtree:!0});function c(k){const p={};return k.integrity&&(p.integrity=k.integrity),k.referrerPolicy&&(p.referrerPolicy=k.referrerPolicy),k.crossOrigin==="use-credentials"?p.credentials="include":k.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function b(k){if(k.ep)return;k.ep=!0;const p=c(k);fetch(k.href,p)}})();var Ao=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qx(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var uu={exports:{}},Xn={};/**
2 * @license React
3 * react-jsx-runtime.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var ex;function Zf(){if(ex)return Xn;ex=1;var o=Symbol.for("react.transitional.element"),f=Symbol.for("react.fragment");function c(b,k,p){var g=null;if(p!==void 0&&(g=""+p),k.key!==void 0&&(g=""+k.key),"key"in k){p={};for(var y in k)y!=="key"&&(p[y]=k[y])}else p=k;return k=p.ref,{$$typeof:o,type:b,key:g,ref:k!==void 0?k:null,props:p}}return Xn.Fragment=f,Xn.jsx=c,Xn.jsxs=c,Xn}var tx;function Yf(){return tx||(tx=1,uu.exports=Zf()),uu.exports}var t=Yf(),mu={exports:{}},Ge={};/**
10 * @license React
11 * react.production.js
12 *
13 * Copyright (c) Meta Platforms, Inc. and affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var ax;function Jf(){if(ax)return Ge;ax=1;var o=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),p=Symbol.for("react.consumer"),g=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),C=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),T=Symbol.iterator;function w(d){return d===null||typeof d!="object"?null:(d=T&&d[T]||d["@@iterator"],typeof d=="function"?d:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,E={};function A(d,U,re){this.props=d,this.context=U,this.refs=E,this.updater=re||S}A.prototype.isReactComponent={},A.prototype.setState=function(d,U){if(typeof d!="object"&&typeof d!="function"&&d!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,d,U,"setState")},A.prototype.forceUpdate=function(d){this.updater.enqueueForceUpdate(this,d,"forceUpdate")};function O(){}O.prototype=A.prototype;function F(d,U,re){this.props=d,this.context=U,this.refs=E,this.updater=re||S}var $=F.prototype=new O;$.constructor=F,j($,A.prototype),$.isPureReactComponent=!0;var Y=Array.isArray;function G(){}var V={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function te(d,U,re){var ne=re.ref;return{$$typeof:o,type:d,key:U,ref:ne!==void 0?ne:null,props:re}}function J(d,U){return te(d.type,U,d.props)}function I(d){return typeof d=="object"&&d!==null&&d.$$typeof===o}function L(d){var U={"=":"=0",":":"=2"};return"$"+d.replace(/[=:]/g,function(re){return U[re]})}var H=/\/+/g;function h(d,U){return typeof d=="object"&&d!==null&&d.key!=null?L(""+d.key):U.toString(36)}function ie(d){switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:switch(typeof d.status=="string"?d.then(G,G):(d.status="pending",d.then(function(U){d.status==="pending"&&(d.status="fulfilled",d.value=U)},function(U){d.status==="pending"&&(d.status="rejected",d.reason=U)})),d.status){case"fulfilled":return d.value;case"rejected":throw d.reason}}throw d}function ee(d,U,re,ne,ae){var _e=typeof d;
vendor: 17,430 bytes, lines 17-41
17(_e==="undefined"||_e==="boolean")&&(d=null);var Ce=!1;if(d===null)Ce=!0;else switch(_e){case"bigint":case"string":case"number":Ce=!0;break;case"object":switch(d.$$typeof){case o:case f:Ce=!0;break;case v:return Ce=d._init,ee(Ce(d._payload),U,re,ne,ae)}}if(Ce)return ae=ae(d),Ce=ne===""?"."+h(d,0):ne,Y(ae)?(re="",Ce!=null&&(re=Ce.replace(H,"$&/")+"/"),ee(ae,U,re,"",function(Fe){return Fe})):ae!=null&&(I(ae)&&(ae=J(ae,re+(ae.key==null||d&&d.key===ae.key?"":(""+ae.key).replace(H,"$&/")+"/")+Ce)),U.push(ae)),1;Ce=0;var Ae=ne===""?".":ne+":";if(Y(d))for(var Me=0;Me<d.length;Me++)ne=d[Me],_e=Ae+h(ne,Me),Ce+=ee(ne,U,re,_e,ae);else if(Me=w(d),typeof Me=="function")for(d=Me.call(d),Me=0;!(ne=d.next()).done;)ne=ne.value,_e=Ae+h(ne,Me++),Ce+=ee(ne,U,re,_e,ae);else if(_e==="object"){if(typeof d.then=="function")return ee(ie(d),U,re,ne,ae);throw U=String(d),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return Ce}function X(d,U,re){if(d==null)return d;var ne=[],ae=0;return ee(d,ne,"","",function(_e){return U.call(re,_e,ae++)}),ne}function le(d){if(d._status===-1){var U=d._result;U=U(),U.then(function(re){(d._status===0||d._status===-1)&&(d._status=1,d._result=re)},function(re){(d._status===0||d._status===-1)&&(d._status=2,d._result=re)}),d._status===-1&&(d._status=0,d._result=U)}if(d._status===1)return d._result.default;throw d._result}var xe=typeof reportError=="function"?reportError:function(d){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d),error:d});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",d);return}console.error(d)},B={map:X,forEach:function(d,U,re){X(d,function(){U.apply(this,arguments)},re)},count:function(d){var U=0;return X(d,function(){U++}),U},toArray:function(d){return X(d,function(U){return U})||[]},only:function(d){if(!I(d))throw Error("React.Children.only expected to receive a single React element child.");return d}};return Ge.Activity=m,Ge.Children=B,Ge.Component=A,Ge.Fragment=c,Ge.Profiler=k,Ge.PureComponent=F,Ge.StrictMode=b,Ge.Suspense=N,Ge.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,Ge.__COMPILER_RUNTIME={__proto__:null,c:function(d){return V.H.useMemoCache(d)}},Ge.cache=function(d){return function(){return d.apply(null,arguments)}},Ge.cacheSignal=function(){return null},Ge.cloneElement=function(d,U,re){if(d==null)throw Error("The argument must be a React element, but you passed "+d+".");var ne=j({},d.props),ae=d.key;if(U!=null)for(_e in U.key!==void 0&&(ae=""+U.key),U)!K.call(U,_e)||_e==="key"||_e==="__self"||_e==="__source"||_e==="ref"&&U.ref===void 0||(ne[_e]=U[_e]);var _e=arguments.length-2;if(_e===1)ne.children=re;else if(1<_e){for(var Ce=Array(_e),Ae=0;Ae<_e;Ae++)Ce[Ae]=arguments[Ae+2];ne.children=Ce}return te(d.type,ae,ne)},Ge.createContext=function(d){return d={$$typeof:g,_currentValue:d,_currentValue2:d,_threadCount:0,Provider:null,Consumer:null},d.Provider=d,d.Consumer={$$typeof:p,_context:d},d},Ge.createElement=function(d,U,re){var ne,ae={},_e=null;if(U!=null)for(ne in U.key!==void 0&&(_e=""+U.key),U)K.call(U,ne)&&ne!=="key"&&ne!=="__self"&&ne!=="__source"&&(ae[ne]=U[ne]);var Ce=arguments.length-2;if(Ce===1)ae.children=re;else if(1<Ce){for(var Ae=Array(Ce),Me=0;Me<Ce;Me++)Ae[Me]=arguments[Me+2];ae.children=Ae}if(d&&d.defaultProps)for(ne in Ce=d.defaultProps,Ce)ae[ne]===void 0&&(ae[ne]=Ce[ne]);return te(d,_e,ae)},Ge.createRef=function(){return{current:null}},Ge.forwardRef=function(d){return{$$typeof:y,render:d}},Ge.isValidElement=I,Ge.lazy=function(d){return{$$typeof:v,_payload:{_status:-1,_result:d},_init:le}},Ge.memo=function(d,U){return{$$typeof:C,type:d,compare:U===void 0?null:U}},Ge.startTransition=function(d){var U=V.T,re={};V.T=re;try{var ne=d(),ae=V.S;ae!==null&&ae(re,ne),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"&&ne.then(G,xe)}catch(_e){xe(_e)}finally{U!==null&&re.types!==null&&(U.types=re.types),V.T=U}},Ge.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},Ge.use=function(d){return V.H.use(d)},Ge.useActionState=function(d,U,re){return V.H.useActionState(d,U,re)},Ge.useCallback=function(d,U){return V.H.useCallback(d,U)},Ge.useContext=function(d){return V.H.useContext(d)},Ge.useDebugValue=function(){},Ge.useDeferredValue=function(d,U){return V.H.useDeferredValue(d,U)},Ge.useEffect=function(d,U){return V.H.useEffect(d,U)},Ge.useEffectEvent=function(d){return V.H.useEffectEvent(d)},Ge.useId=function(){return V.H.useId()},Ge.useImperativeHandle=function(d,U,re){return V.H.useImperativeHandle(d,U,re)},Ge.useInsertionEffect=function(d,U){return V.H.useInsertionEffect(d,U)},Ge.useLayoutEffect=function(d,U){return V.H.useLayoutEffect(d,U)},Ge.useMemo=function(d,U){return V.H.useMemo(d,U)},Ge.useOptimistic=function(d,U){return V.H.useOptimistic(d,U)},Ge.useReducer=function(d,U,re){return V.H.useReducer(d,U,re)},Ge.useRef=function(d){return V.H.useRef(d)},Ge.useState=function(d){return V.H.useState(d)},Ge.useSyncExternalStore=function(d,U,re){return V.H.useSyncExternalStore(d,U,re)},Ge.useTransition=function(){return V.H.useTransition()},Ge.version="19.2.8",Ge}var sx;function Uu(){return sx||(sx=1,mu.exports=Jf()),mu.exports}var Z=Uu();const Xf=Qx(Z);var pu={exports:{}},Qn={},xu={exports:{}},hu={};/**
18 * @license React
19 * scheduler.production.js
20 *
21 * Copyright (c) Meta Platforms, Inc. and affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var lx;function Qf(){return lx||(lx=1,(function(o){function f(ee,X){var le=ee.length;ee.push(X);e:for(;0<le;){var xe=le-1>>>1,B=ee[xe];if(0<k(B,X))ee[xe]=X,ee[le]=B,le=xe;else break e}}function c(ee){return ee.length===0?null:ee[0]}function b(ee){if(ee.length===0)return null;var X=ee[0],le=ee.pop();if(le!==X){ee[0]=le;e:for(var xe=0,B=ee.length,d=B>>>1;xe<d;){var U=2*(xe+1)-1,re=ee[U],ne=U+1,ae=ee[ne];if(0>k(re,le))ne<B&&0>k(ae,re)?(ee[xe]=ae,ee[ne]=le,xe=ne):(ee[xe]=re,ee[U]=le,xe=U);else if(ne<B&&0>k(ae,le))ee[xe]=ae,ee[ne]=le,xe=ne;else break e}}return X}function k(ee,X){var le=ee.sortIndex-X.sortIndex;return le!==0?le:ee.id-X.id}if(o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var p=performance;o.unstable_now=function(){return p.now()}}else{var g=Date,y=g.now();o.unstable_now=function(){return g.now()-y}}var N=[],C=[],v=1,m=null,T=3,w=!1,S=!1,j=!1,E=!1,A=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function $(ee){for(var X=c(C);X!==null;){if(X.callback===null)b(C);else if(X.startTime<=ee)b(C),X.sortIndex=X.expirationTime,f(N,X);else break;X=c(C)}}function Y(ee){if(j=!1,$(ee),!S)if(c(N)!==null)S=!0,G||(G=!0,L());else{var X=c(C);X!==null&&ie(Y,X.startTime-ee)}}var G=!1,V=-1,K=5,te=-1;function J(){return E?!0:!(o.unstable_now()-te<K)}function I(){if(E=!1,G){var ee=o.unstable_now();te=ee;var X=!0;try{e:{S=!1,j&&(j=!1,O(V),V=-1),w=!0;var le=T;try{t:{for($(ee),m=c(N);m!==null&&!(m.expirationTime>ee&&J());){var xe=m.callback;if(typeof xe=="function"){m.callback=null,T=m.priorityLevel;var B=xe(m.expirationTime<=ee);if(ee=o.unstable_now(),typeof B=="function"){m.callback=B,$(ee),X=!0;break t}m===c(N)&&b(N),$(ee)}else b(N);m=c(N)}if(m!==null)X=!0;else{var d=c(C);d!==null&&ie(Y,d.startTime-ee),X=!1}}break e}finally{m=null,T=le,w=!1}X=void 0}}finally{X?L():G=!1}}}var L;if(typeof F=="function")L=function(){F(I)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,h=H.port2;H.port1.onmessage=I,L=function(){h.postMessage(null)}}else L=function(){A(I,0)};function ie(ee,X){V=A(function(){ee(o.unstable_now())},X)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(ee){ee.callback=null},o.unstable_forceFrameRate=function(ee){0>ee||125<ee?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<ee?Math.floor(1e3/ee):5},o.unstable_getCurrentPriorityLevel=function(){return T},o.unstable_next=function(ee){switch(T){case 1:case 2:case 3:var X=3;break;default:X=T}var le=T;T=X;try{return ee()}finally{T=le}},o.unstable_requestPaint=function(){E=!0},o.unstable_runWithPriority=function(ee,X){switch(ee){case 1:case 2:case 3:case 4:case 5:break;default:ee=3}var le=T;T=ee;try{return X()}finally{T=le}},o.unstable_scheduleCallback=function(ee,X,le){var xe=o.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?xe+le:xe):le=xe,ee){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=le+B,ee={id:v++,callback:X,priorityLevel:ee,startTime:le,expirationTime:B,sortIndex:-1},le>xe?(ee.sortIndex=le,f(C,ee),c(N)===null&&ee===c(C)&&(j?(O(V),V=-1):j=!0,ie(Y,le-xe))):(ee.sortIndex=B,f(N,ee),S||w||(S=!0,G||(G=!0,L()))),ee},o.unstable_shouldYield=J,o.unstable_wrapCallback=function(ee){var X=T;return function(){var le=T;T=X;try{return ee.apply(this,arguments)}finally{T=le}}}})(hu)),hu}var rx;function Kf(){return rx||(rx=1,xu.exports=Qf()),xu.exports}var fu={exports:{}},Qt={};/**
26 * @license React
27 * react-dom.production.js
28 *
29 * Copyright (c) Meta Platforms, Inc. and affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var nx;function Wf(){if(nx)return Qt;nx=1;var o=Uu();function f(N){var C="https://react.dev/errors/"+N;if(1<arguments.length){C+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)C+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+N+"; visit "+C+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var b={d:{f:c,r:function(){throw Error(f(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},k=Symbol.for("react.portal");function p(N,C,v){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:k,key:m==null?null:""+m,children:N,containerInfo:C,implementation:v}}var g=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(N,C){if(N==="font")return"";if(typeof C=="string")return C==="use-credentials"?C:""}return Qt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,Qt.createPortal=function(N,C){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!C||C.nodeType!==1&&C.nodeType!==9&&C.nodeType!==11)throw Error(f(299));return p(N,C,null,v)},Qt.flushSync=function(N){var C=g.T,v=b.p;try{if(g.T=null,b.p=2,N)return N()}finally{g.T=C,b.p=v,b.d.f()}},Qt.preconnect=function(N,C){typeof N=="string"&&(C?(C=C.crossOrigin,C=typeof C=="string"?C==="use-credentials"?C:"":void 0):C=null,b.d.C(N,C))},Qt.prefetchDNS=function(N){typeof N=="string"&&b.d.D(N)},Qt.preinit=function(N,C){if(typeof N=="string"&&C&&typeof C.as=="string"){var v=C.as,m=y(v,C.crossOrigin),T=typeof C.integrity=="string"?C.integrity:void 0,w=typeof C.fetchPriority=="string"?C.fetchPriority:void 0;v==="style"?b.d.S(N,typeof C.precedence=="string"?C.precedence:void 0,{crossOrigin:m,integrity:T,fetchPriority:w}):v==="script"&&b.d.X(N,{crossOrigin:m,integrity:T,fetchPriority:w,nonce:typeof C.nonce=="string"?C.nonce:void 0})}},Qt.preinitModule=function(N,C){if(typeof N=="string")if(typeof C=="object"&&C!==null){if(C.as==null||C.as==="script"){var v=y(C.as,C.crossOrigin);b.d.M(N,{crossOrigin:v,integrity:typeof C.integrity=="string"?C.integrity:void 0,nonce:typeof C.nonce=="string"?C.nonce:void 0})}}else C==null&&b.d.M(N)},Qt.preload=function(N,C){if(typeof N=="string"&&typeof C=="object"&&C!==null&&typeof C.as=="string"){var v=C.as,m=y(v,C.crossOrigin);b.d.L(N,v,{crossOrigin:m,integrity:typeof C.integrity=="string"?C.integrity:void 0,nonce:typeof C.nonce=="string"?C.nonce:void 0,type:typeof C.type=="string"?C.type:void 0,fetchPriority:typeof C.fetchPriority=="string"?C.fetchPriority:void 0,referrerPolicy:typeof C.referrerPolicy=="string"?C.referrerPolicy:void 0,imageSrcSet:typeof C.imageSrcSet=="string"?C.imageSrcSet:void 0,imageSizes:typeof C.imageSizes=="string"?C.imageSizes:void 0,media:typeof C.media=="string"?C.media:void 0})}},Qt.preloadModule=function(N,C){if(typeof N=="string")if(C){var v=y(C.as,C.crossOrigin);b.d.m(N,{as:typeof C.as=="string"&&C.as!=="script"?C.as:void 0,crossOrigin:v,integrity:typeof C.integrity=="string"?C.integrity:void 0})}else b.d.m(N)},Qt.requestFormReset=function(N){b.d.r(N)},Qt.unstable_batchedUpdates=function(N,C){return N(C)},Qt.useFormState=function(N,C,v){return g.H.useFormState(N,C,v)},Qt.useFormStatus=function(){return g.H.useHostTransitionStatus()},Qt.version="19.2.8",Qt}var ix;function eb(){if(ix)return fu.exports;ix=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(f){console.error(f)}}return o(),fu.exports=Wf(),fu.exports}/**
34 * @license React
35 * react-dom-client.production.js
36 *
37 * Copyright (c) Meta Platforms, Inc. and affiliates.
38 *
39 * This source code is licensed under the MIT license found in the
40 * LICENSE file in the root directory of this source tree.
41 */var ox;function tb(){if(ox)return Qn;ox=1;var o=Kf(),f=Uu(),c=eb();function b(e){var a="https://react.dev/errors/"+e;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)a+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+e+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function k(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function p(e){var a=e,s=e;if(e.alternate)for(;a.return;)a=a.return;else{e=a;do a=e,(a.flags&4098)!==0&&(s=a.return),e=a.return;while(e)}return a.tag===3?s:null}function g(e){if(e.tag===13){var a=e.memoizedState;if(a===null&&(e=e.alternate,e!==null&&(a=e.memoizedState)),a!==null)return a.dehydrated}return null}function y(e){if(e.tag===31){var a=e.memoizedState;if(a===null&&(e=e.alternate,e!==null&&(a=e.memoizedState)),a!==null)return a.dehydrated}return null}function N(e){if(p(e)!==e)throw Error(b(188))}function C(e){var a=e.alternate;if(!a){if(a=p(e),a===null)throw Error(b(188));return a!==e?null:e}for(var s=e,l=a;;){var r=s.return;if(r===null)break;var i=r.alternate;if(i===null){if(l=r.return,l!==null){s=l;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===s)return N(r),e;if(i===l)return N(r),a;i=i.sibling}throw Error(b(188))}if(s.return!==l.return)s=r,l=i;else{for(var u=!1,M=r.child;M;){if(M===s){u=!0,s=r,l=i;break}if(M===l){u=!0,l=r,s=i;break}M=M.sibling}if(!u){for(M=i.child;M;){if(M===s){u=!0,s=i,l=r;break}if(M===l){u=!0,l=i,s=r;break}M=M.sibling}if(!u)throw Error(b(189))}}if(s.alternate!==l)throw Error(b(190))}if(s.tag!==3)throw Error(b(188));return s.stateNode.current===s?e:a}function v(e){var a=e.tag;if(a===5||a===26||a===27||a===6)return e;for(e=e.child;e!==null;){if(a=v(e),a!==null)return a;e=e.sibling}return null}var m=Object.assign,T=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),F=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),J=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function L(e){return e===null||typeof e!="object"?null:(e=I&&e[I]||e["@@iterator"],typeof e=="function"?e:null)}var H=Symbol.for("react.client.reference");function h(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===H?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j:return"Fragment";case A:return"Profiler";case E:return"StrictMode";case Y:return"Suspense";case G:return"SuspenseList";case te:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case S:return"Portal";case F:return e.displayName||"Context";case O:return(e._context.displayName||"Context")+".Consumer";case $:var a=e.render;return e=e.displayName,e||(e=a.displayName||a.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return a=e.displayName||null,a!==null?a:h(e.type)||"Memo";case K:a=e._payload,e=e._init;try{return h(e(a))}catch{}}return null}var ie=Array.isArray,ee=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},xe=[],B=-1;function d(e){return{current:e}}function U(e){0>B||(e.current=xe[B],xe[B]=null,B--)}function re(e,a){B++,xe[B]=e.current,e.current=a}var ne=d(null),ae=d(null),_e=d(null),Ce=d(null);function Ae(e,a){switch(re(_e,a),re(ae,e),re(ne,null),a.nodeType){case 9:case 11:e=(e
vendor: 10,056 bytes, lines 41-48
41=a.documentElement)&&(e=e.namespaceURI)?wp(e):0;break;default:if(e=a.tagName,a=a.namespaceURI)a=wp(a),e=Sp(a,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(ne),re(ne,e)}function Me(){U(ne),U(ae),U(_e)}function Fe(e){e.memoizedState!==null&&re(Ce,e);var a=ne.current,s=Sp(a,e.type);a!==s&&(re(ae,e),re(ne,s))}function Te(e){ae.current===e&&(U(ne),U(ae)),Ce.current===e&&(U(Ce),In._currentValue=le)}var He,Ie;function x(e){if(He===void 0)try{throw Error()}catch(s){var a=s.stack.trim().match(/\n( *(at )?)/);He=a&&a[1]||"",Ie=-1<s.stack.indexOf(`
42    at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
43`+He+e+Ie}var pe=!1;function ue(e,a){if(!e||pe)return"";pe=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(a){var Se=function(){throw Error()};if(Object.defineProperty(Se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Se,[])}catch(he){var me=he}Reflect.construct(e,[],Se)}else{try{Se.call()}catch(he){me=he}e.call(Se.prototype)}}else{try{throw Error()}catch(he){me=he}(Se=e())&&typeof Se.catch=="function"&&Se.catch(function(){})}}catch(he){if(he&&me&&typeof he.stack=="string")return[he.stack,me.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=l.DetermineComponentFrameRoot(),u=i[0],M=i[1];if(u&&M){var P=u.split(`
44`),de=M.split(`
45`);for(r=l=0;l<P.length&&!P[l].includes("DetermineComponentFrameRoot");)l++;for(;r<de.length&&!de[r].includes("DetermineComponentFrameRoot");)r++;if(l===P.length||r===de.length)for(l=P.length-1,r=de.length-1;1<=l&&0<=r&&P[l]!==de[r];)r--;for(;1<=l&&0<=r;l--,r--)if(P[l]!==de[r]){if(l!==1||r!==1)do if(l--,r--,0>r||P[l]!==de[r]){var ge=`
46`+P[l].replace(" at new "," at ");return e.displayName&&ge.includes("<anonymous>")&&(ge=ge.replace("<anonymous>",e.displayName)),ge}while(1<=l&&0<=r);break}}}finally{pe=!1,Error.prepareStackTrace=s}return(s=e?e.displayName||e.name:"")?x(s):""}function D(e,a){switch(e.tag){case 26:case 27:case 5:return x(e.type);case 16:return x("Lazy");case 13:return e.child!==a&&a!==null?x("Suspense Fallback"):x("Suspense");case 19:return x("SuspenseList");case 0:case 15:return ue(e.type,!1);case 11:return ue(e.type.render,!1);case 1:return ue(e.type,!0);case 31:return x("Activity");default:return""}}function R(e){try{var a="",s=null;do a+=D(e,s),s=e,e=e.return;while(e);return a}catch(l){return`
47Error generating stack: `+l.message+`
48`+l.stack}}var W=Object.prototype.hasOwnProperty,ye=o.unstable_scheduleCallback,we=o.unstable_cancelCallback,oe=o.unstable_shouldYield,ve=o.unstable_requestPaint,Ee=o.unstable_now,ke=o.unstable_getCurrentPriorityLevel,ze=o.unstable_ImmediatePriority,Ze=o.unstable_UserBlockingPriority,Ve=o.unstable_NormalPriority,Ye=o.unstable_LowPriority,la=o.unstable_IdlePriority,zt=o.log,_a=o.unstable_setDisableYieldValue,lt=null,Nt=null;function ra(e){if(typeof zt=="function"&&_a(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(lt,e)}catch{}}var xt=Math.clz32?Math.clz32:tr,Wl=Math.log,er=Math.LN2;function tr(e){return e>>>=0,e===0?32:31-(Wl(e)/er|0)|0}var Ps=256,Wa=262144,ka=4194304;function ea(e){var a=e&42;if(a!==0)return a;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ar(e,a,s){var l=e.pendingLanes;if(l===0)return 0;var r=0,i=e.suspendedLanes,u=e.pingedLanes;e=e.warmLanes;var M=l&134217727;return M!==0?(l=M&~i,l!==0?r=ea(l):(u&=M,u!==0?r=ea(u):s||(s=M&~e,s!==0&&(r=ea(s))))):(M=l&~i,M!==0?r=ea(M):u!==0?r=ea(u):s||(s=l&~e,s!==0&&(r=ea(s)))),r===0?0:a!==0&&a!==r&&(a&i)===0&&(i=r&-r,s=a&-a,i>=s||i===32&&(s&4194048)!==0)?a:r}function $s(e,a){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&a)===0}function Ko(e,a){switch(e){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Wo(){var e=ka;return ka<<=1,(ka&62914560)===0&&(ka=4194304),e}function ci(e){for(var a=[],s=0;31>s;s++)a.push(e);return a}function Ga(e,a){e.pendingLanes|=a,a!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function sr(e,a,s,l,r,i){var u=e.pendingLanes;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=s,e.entangledLanes&=s,e.errorRecoveryDisabledLanes&=s,e.shellSuspendCounter=0;var M=e.entanglements,P=e.expirationTimes,de=e.hiddenUpdates;for(s=u&~s;0<s;){var ge=31-xt(s),Se=1<<ge;M[ge]=0,P[ge]=-1;var me=de[ge];if(me!==null)for(de[ge]=null,ge=0;ge<me.length;ge++){var he=me[ge];he!==null&&(he.lane&=-536870913)}s&=~Se}l!==0&&Qr(e,l,0),i!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=i&~(u&~a))}function Qr(e,a,s){e.pendingLanes|=a,e.suspendedLanes&=~a;var l=31-xt(a);e.entangledLanes|=a,e.entanglements[l]=e.entanglements[l]|1073741824|s&261930}function Is(e,a){var s=e.entangledLanes|=a;for(e=e.entanglements;s;){var l=31-xt(s),r=1<<l;r&a|e[l]&a&&(e[l]|=a),s&=~r}}function Ha(e,a){var s=a&-a;return s=(s&42)!==0?1:lr(s),(s&(e.suspendedLanes|a))!==0?0:s}function lr(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Kr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Wr(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:Zp(e.type))}function di(e,a){var s=X.p;try{return X.p=e,a()}finally{X.p=s}}var Ea=Math.random().toString(36).slice(2),vt="__reactFiber$"+Ea,It="__reactProps$"+Ea,Aa="__reactContainer$"+Ea,Pa="__reactEvents$"+Ea,en="__reactListeners$"+Ea,fs="__reactHandles$"+Ea,tn="__reactResources$"+Ea,bs="__reactMarker$"+Ea;function xa(e){delete e[vt],delete e[It],delete e[Pa],delete e[en],delete e[fs]}function $a(e){var a=e[vt];if(a)return a;for(var s=e.parentNode;s;){if(a=s[Aa]||s[vt]){if(s=a.alternate,a.child!==null||s!==null&&s.child!==null)for(e=Tp(e);e!==null;){if(s=e[vt])return s;e=Tp(e)}return a}e=s,s=e.parentNode}return null}function Zt(e){if(e=e[vt]||e[Aa]){var a=e.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return e}return null}function Sl(e){var a=e.tag;if(a===5||a===26||a===27||a===6)return e.stateNode;throw Error(b(33))}function es(e){var a=e[tn];return a||(a=e[tn]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function it(e){e[bs]=!0}var rr=new Set,nr={};function gs(e,a){ts(e,a),ts(e+"Capture",a)}function ts(e,a){for(nr[e]=a,e=0;e<a.length;e++)rr.add(a[e])}var an=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Rt={},Yt={};function as(e){return W.call(Yt,e)?!0:W.call(Rt,e)?!1:an.test(e)?Yt[e]=!0:(Rt[e]=!0,!1)}function vs(e,a,s){if(as(a))if(s===null)e.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":e.removeAttribute(a);return;case"boolean":var l=a.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(a);return}}e.setAttribute(a,""+s)}}function qt(e,a,s){if(s===null)e.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttribute(a,""+s)}}function Ma(e,a,s,l){if(l===null)e.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(s);return}e.setAttributeNS(a,s,""+l)}}function na(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ta(e){var a=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function ec(e,a,s){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,a);if(!e.hasOwnProperty(a)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var r=l.get,i=l.set;return Object.defineProperty(e,a,{configurable:!0,get:function(){return r.call(this)},set:function(u){s=""+u,i.call(this,u)}}),Object.defineProperty(e,a,{enumerable:l.enumerable}),{getValue:function(){return s},setValue:function(u){s=""+u},stopTracking:function(){e._valueTracker=null,delete e[a]}}}}function sn(e){if(!e._valueTracker){var a=ta(e)?"checked":"value";e._valueTracker=ec(e,a,""+e[a])}}function ui(e){if(!e)return!1;var a=e._valueTracker;if(!a)return!0;var s=a.getValue(),l="";return e&&(l=ta(e)?e.checked?"true":"false":e.value),e=l,e!==s?(a.setValue(e),!0):!1}function ir(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Zs=/[\n"\\]/g;function Lt(e){return e.replace(Zs,function(a){return"\\"+a.charCo
vendor: 4,418 bytes, line 48
48deAt(0).toString(16)+" "})}function ss(e,a,s,l,r,i,u,M){e.name="",u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"?e.type=u:e.removeAttribute("type"),a!=null?u==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+na(a)):e.value!==""+na(a)&&(e.value=""+na(a)):u!=="submit"&&u!=="reset"||e.removeAttribute("value"),a!=null?Ia(e,u,na(a)):s!=null?Ia(e,u,na(s)):l!=null&&e.removeAttribute("value"),r==null&&i!=null&&(e.defaultChecked=!!i),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?e.name=""+na(M):e.removeAttribute("name")}function ys(e,a,s,l,r,i,u,M){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),a!=null||s!=null){if(!(i!=="submit"&&i!=="reset"||a!=null)){sn(e);return}s=s!=null?""+na(s):"",a=a!=null?""+na(a):s,M||a===e.value||(e.value=a),e.defaultValue=a}l=l??r,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=M?e.checked:!!l,e.defaultChecked=!!l,u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.name=u),sn(e)}function Ia(e,a,s){a==="number"&&ir(e.ownerDocument)===e||e.defaultValue===""+s||(e.defaultValue=""+s)}function Jt(e,a,s,l){if(e=e.options,a){a={};for(var r=0;r<s.length;r++)a["$"+s[r]]=!0;for(s=0;s<e.length;s++)r=a.hasOwnProperty("$"+e[s].value),e[s].selected!==r&&(e[s].selected=r),r&&l&&(e[s].defaultSelected=!0)}else{for(s=""+na(s),a=null,r=0;r<e.length;r++){if(e[r].value===s){e[r].selected=!0,l&&(e[r].defaultSelected=!0);return}a!==null||e[r].disabled||(a=e[r])}a!==null&&(a.selected=!0)}}function js(e,a,s){if(a!=null&&(a=""+na(a),a!==e.value&&(e.value=a),s==null)){e.defaultValue!==a&&(e.defaultValue=a);return}e.defaultValue=s!=null?""+na(s):""}function mi(e,a,s,l){if(a==null){if(l!=null){if(s!=null)throw Error(b(92));if(ie(l)){if(1<l.length)throw Error(b(93));l=l[0]}s=l}s==null&&(s=""),a=s}s=na(a),e.defaultValue=s,l=e.textContent,l===s&&l!==""&&l!==null&&(e.value=l),sn(e)}function Ns(e,a){if(a){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=a;return}}e.textContent=a}var pi=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function rt(e,a,s){var l=a.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?l?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="":l?e.setProperty(a,s):typeof s!="number"||s===0||pi.has(a)?a==="float"?e.cssFloat=s:e[a]=(""+s).trim():e[a]=s+"px"}function ia(e,a,s){if(a!=null&&typeof a!="object")throw Error(b(62));if(e=e.style,s!=null){for(var l in s)!s.hasOwnProperty(l)||a!=null&&a.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var r in a)l=a[r],a.hasOwnProperty(r)&&s[r]!==l&&rt(e,r,l)}else for(var i in a)a.hasOwnProperty(i)&&rt(e,i,a[i])}function Vt(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Cl=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
48dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),_l=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function or(e){return _l.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Za(){}var wt=null;function kl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ys=null,ws=null;function xi(e){var a=Zt(e);if(a&&(e=a.stateNode)){var s=e[It]||null;e:switch(e=a.stateNode,a.type){case"input":if(ss(e,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),a=s.name,s.type==="radio"&&a!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+Lt(""+a)+'"][type="radio"]'),a=0;a<s.length;a++){var l=s[a];if(l!==e&&l.form===e.form){var r=l[It]||null;if(!r)throw Error(b(90));ss(l,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(a=0;a<s.length;a++)l=s[a],l.form===e.form&&ui(l)}break e;case"textarea":js(e,s.value,s.defaultValue);break e;case"select":a=s.value,a!=null&&Jt(e,!!s.multiple,a,!1)}}}var ln=!1;function hi(e,a,s){if(ln)return e(a,s);ln=!0;try{var l=e(a);return l}finally{if(ln=!1,(Ys!==null||ws!==null)&&(no(),Ys&&(a=Ys,e=ws,ws=Ys=null,xi(a),e)))for(a=0;a<e.length;a++)xi(e[a])}}function El(e,a){var s=e.stateNode;if(s===null)return null;var l=s[It]||null;if(l===null)return null;s=l[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(s&&typeof s!="function")throw Error(b(231,a,typeof s));return s}var Ya=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cr=!1;if(Ya)try{var Al={};Object.defineProperty(Al,"passive",{get:function(){cr=!0}}),window.addEventListener("test",Al,Al),window.removeEventListener("test",Al,Al)}catch{cr=!1}var ls=null,rn=null,Ml=null;function fi(){if(Ml)return Ml;var e,a=rn,s=a.length,l,r="value"in ls?ls.value:ls.textContent,i=r.length;for(e=0;e<s&&a[e]===r[e];e++);var u=s-e;for(l=1;l<=u&&a[s-l]===r[i-l];l++);
vendor: 6,421 bytes, line 48
48return Ml=r.slice(e,1<l?1-l:void 0)}function dr(e){var a=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&a===13&&(e=13)):e=a,e===10&&(e=13),32<=e||e===13?e:0}function ur(){return!0}function bi(){return!1}function Xt(e){function a(s,l,r,i,u){this._reactName=s,this._targetInst=r,this.type=l,this.nativeEvent=i,this.target=u,this.currentTarget=null;for(var M in e)e.hasOwnProperty(M)&&(s=e[M],this[M]=s?s(i):i[M]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ur:bi,this.isPropagationStopped=bi,this}return m(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=ur)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=ur)},persist:function(){},isPersistent:ur}),a}var rs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tl=Xt(rs),Ll=m({},rs,{view:0,detail:0}),gi=Xt(Ll),Ol,mr,ha,pr=m({},Ll,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ha&&(ha&&e.type==="mousemove"?(Ol=e.screenX-ha.screenX,mr=e.screenY-ha.screenY):mr=Ol=0,ha=e),Ol)},movementY:function(e){return"movementY"in e?e.movementY:mr}}),ns=Xt(pr),vi=m({},pr,{dataTransfer:0}),tc=Xt(vi),ac=m({},Ll,{relatedTarget:0}),is=Xt(ac),sc=m({},rs,{animationName:0,elapsedTime:0,pseudoElement:0}),lc=Xt(sc),rc=m({},rs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Js=Xt(rc),nc=m({},rs,{data:0}),os=Xt(nc),ic={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oc={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"},cc={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dc(e){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(e):(e=cc[e])?!!a[e]:!1}function nn(){return dc}var uc=m({},Ll,{key:function(e){if(e.key){var a=ic[e.key]||e.key;if(a!=="Unidentified")return a}return e.type==="keypress"?(e=dr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?oc[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nn,charCode:function(e){return e.type==="keypress"?dr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?dr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),on=Xt(uc),Ul=m({},pr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xs=Xt(Ul),mc=m({},Ll,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nn}),pc=Xt(mc),xc=m({},rs,{propertyName:0,elapsedTime:0,pseudoElement:0}),hc=Xt(xc),fc=m({},pr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),bc=Xt(fc),gc=m({},rs,{newState:0,oldState:0}),vc=Xt(gc),cn=[9,13,27,32],dn=Ya&&"CompositionEvent"in window,Qs=null;Ya&&"documentMode"in document&&(Qs=document.documentMode);var yi=Ya&&"TextEvent"in window&&!Qs,n=Ya&&(!dn||Qs&&8<Qs&&11>=Qs),_=" ",z=!1;function q(e,a){switch(e){case"keyup":return cn.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function be(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fe=!1;function Ne(e,a){switch(e){case"compositionend":return be(a);case"keypress":return a.which!==32?null:(z=!0,_);case"textInput":return e=a.data,e===_&&z?null:e;default:return null}}function St(e,a){if(fe)return e==="compositionend"||!dn&&q(e,a)?(e=fi(),Ml=rn=ls=null,fe=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return n&&a.locale!=="ko"?null:a.data;default:return null}}var cs={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 Ss(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a==="input"?!!cs[e.type]:a==="textarea"}function Ct(e,a,s,l){Ys?ws?ws.push(l):ws=[l]:Ys=l,a=xo(a,"onChange"),0<a.length&&(s=new Tl("onChange","change",null,s,l),e.push({event:s,listeners:a}))}var ds=null,Ks=null;function ji(e){bp(e,0)}function zl(e){var a=Sl(e);if(ui(a))return e}function un(e,a){if(e==="change")return a}var mn=!1;if(Ya){var xr;if(Ya){var hr="oninput"in document;if(!hr){var pn=document.createElement("div");pn.setAttribute("oninput","return;"),hr=typeof pn.oninput=="function"}xr=hr}else xr=!1;mn=xr&&(!document.documentMode||9<document.documentMode)}function xn(){ds&&(ds.detachEvent("onpropertychange",hn),Ks=ds=null)}function hn(e){if(e.propertyName==="value"&&zl(Ks)){var a=[];Ct(a,Ks,e,kl(e)),hi(ji,a)}}function Ni(e,a,s){e==="focusin"?(xn(),ds=a,Ks=s,ds.attachEvent("onpropertychange",hn)):e==="focusout"&&xn()}function wi(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return zl(Ks)}function Si(e,a){if(e==="click")return zl(a)}function Ci(e,a){if(e==="input"||e==="change")return zl(a)}function Le(e,a){return e===a&&(e!==0||1/e===1/a)||e!==e&&a!==a}var aa=typeof Object.is=="function"?Object.is:Le;function fn(e,a){if(aa(e,a))return!0;
vendor: 23,681 bytes, line 48
48if(typeof e!="object"||e===null||typeof a!="object"||a===null)return!1;var s=Object.keys(e),l=Object.keys(a);if(s.length!==l.length)return!1;for(l=0;l<s.length;l++){var r=s[l];if(!W.call(a,r)||!aa(e[r],a[r]))return!1}return!0}function Vu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gu(e,a){var s=Vu(e);e=0;for(var l;s;){if(s.nodeType===3){if(l=e+s.textContent.length,e<=a&&l>=a)return{node:s,offset:a-e};e=l}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Vu(s)}}function Hu(e,a){return e&&a?e===a?!0:e&&e.nodeType===3?!1:a&&a.nodeType===3?Hu(e,a.parentNode):"contains"in e?e.contains(a):e.compareDocumentPosition?!!(e.compareDocumentPosition(a)&16):!1:!1}function Pu(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var a=ir(e.document);a instanceof e.HTMLIFrameElement;){try{var s=typeof a.contentWindow.location.href=="string"}catch{s=!1}if(s)e=a.contentWindow;else break;a=ir(e.document)}return a}function yc(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a&&(a==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||a==="textarea"||e.contentEditable==="true")}var Ch=Ya&&"documentMode"in document&&11>=document.documentMode,fr=null,jc=null,bn=null,Nc=!1;function $u(e,a,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Nc||fr==null||fr!==ir(l)||(l=fr,"selectionStart"in l&&yc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),bn&&fn(bn,l)||(bn=l,l=xo(jc,"onSelect"),0<l.length&&(a=new Tl("onSelect","select",null,a,s),e.push({event:a,listeners:l}),a.target=fr)))}function Rl(e,a){var s={};return s[e.toLowerCase()]=a.toLowerCase(),s["Webkit"+e]="webkit"+a,s["Moz"+e]="moz"+a,s}var br={animationend:Rl("Animation","AnimationEnd"),animationiteration:Rl("Animation","AnimationIteration"),animationstart:Rl("Animation","AnimationStart"),transitionrun:Rl("Transition","TransitionRun"),transitionstart:Rl("Transition","TransitionStart"),transitioncancel:Rl("Transition","TransitionCancel"),transitionend:Rl("Transition","TransitionEnd")},wc={},Iu={};Ya&&(Iu=document.createElement("div").style,"AnimationEvent"in window||(delete br.animationend.animation,delete br.animationiteration.animation,delete br.animationstart.animation),"TransitionEvent"in window||delete br.transitionend.transition);function Dl(e){if(wc[e])return wc[e];if(!br[e])return e;var a=br[e],s;for(s in a)if(a.hasOwnProperty(s)&&s in Iu)return wc[e]=a[s];return e}var Zu=Dl("animationend"),Yu=Dl("animationiteration"),Ju=Dl("animationstart"),_h=Dl("transitionrun"),kh=Dl("transitionstart"),Eh=Dl("transitioncancel"),Xu=Dl("transitionend"),Qu=new Map,Sc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Sc.push("scrollEnd");function Ja(e,a){Qu.set(e,a),gs(a,[e])}var _i=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ta=[],gr=0,Cc=0;function ki(){for(var e=gr,a=Cc=gr=0;a<e;){var s=Ta[a];Ta[a++]=null;var l=Ta[a];Ta[a++]=null;var r=Ta[a];Ta[a++]=null;var i=Ta[a];if(Ta[a++]=null,l!==null&&r!==null){var u=l.pending;u===null?r.next=r:(r.next=u.next,u.next=r),l.pending=r}i!==0&&Ku(s,r,i)}}function Ei(e,a,s,l){Ta[gr++]=e,Ta[gr++]=a,Ta[gr++]=s,Ta[gr++]=l,Cc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function _c(e,a,s,l){return Ei(e,a,s,l),Ai(e)}function Fl(e,a){return Ei(e,null,null,a),Ai(e)}function Ku(e,a,s){e.lanes|=s;var l=e.alternate;l!==null&&(l.lanes|=s);for(var r=!1,i=e.return;i!==null;)i.childLanes|=s,l=i.alternate,l!==null&&(l.childLanes|=s),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(r=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,r&&a!==null&&(r=31-xt(s),e=i.hiddenUpdates,l=e[r],l===null?e[r]=[a]:l.push(a),a.lane=s|536870912),i):null}function Ai(e){if(50<Bn)throw Bn=0,zd=null,Error(b(185));for(var a=e.return;a!==null;)e=a,a=e.return;return e.tag===3?e.stateNode:null}var vr={};function Ah(e,a,s,l){this.tag=e,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fa(e,a,s,l){return new Ah(e,a,s,l)}function kc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Cs(e,a){var s=e.alternate;return s===null?(s=fa(e.tag,a,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=a,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&65011712,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,a=e.dependencies,s.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s.refCleanup=e.refCleanup,s}function Wu(e,a){e.flags&=65011714;var s=e.alternate;return s===null?(e.childLanes=0,e.lanes=a,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=s.childLanes,e.lanes=s.lanes,e.child=s.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=s.memoizedProps,e.memoizedState=s.memoizedState,e.updateQueue=s.updateQueue,e.type=s.type,a=s.dependencies,e.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),e}function Mi(e,a,s,l,r,i){var u=0;if(l=e,typeof e=="function")kc(e)&&(u=1);else if(typeof e=="string")u=zf(e,s,ne.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case te:return e=fa(31,s,a,r),e.elementType=te,e.lanes=i,e;case j:return Bl(s.children,r,i,a);case E:u=8,r|=24;break;case A:return e=fa(12,s,a,r|2),e.elementType=A,e.lanes=i,e;case Y:return e=fa(13,s,a,r),e.elementType=Y,e.lanes=i,e;case G:return e=fa(19,s,a,r),e.elementType=G,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case F:u=10;break e;case O:u=9;break e;case $:u=11;break e;case V:u=14;break e;case K:u=16,l=null;break e}u=29,s=Error(b(130,e===null?"null":typeof e,"")),l=null}return a=fa(u,s,a,r),a.elementType=e,a.type=l,a.lanes=i,a}function Bl(e,a,s,l){return e=fa(7,e,l,a),e.lanes=s,e}function Ec(e,a,s){return e=fa(6,e,null,a),e.lanes=s,e}function e0(e){var a=fa(18,null,null,0);return a.stateNode=e,a}function Ac(e,a,s){return a=fa(4,e.children!==null?e.children:[],e.key,a),a.lanes=s,a.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},a}var t0=new WeakMap;function La(e,a){if(typeof e=="object"&&e!==null){var s=t0.get(e);return s!==void 0?s:(a={value:e,source:a,stack:R(a)},t0.set(e,a),a)}return{value:e,source:a,stack:R(a)}}var yr=[],jr=0,Ti=null,gn=0,Oa=[],Ua=0,Ws=null,us=1,ms="";function _s(e,a){yr[jr++]=gn,yr[jr++]=Ti,Ti=e,gn=a}function a0(e,a,s){Oa[Ua++]=us,Oa[Ua++]=ms,Oa[Ua++]=Ws,Ws=e;var l=us;e=ms;var r=32-xt(l)-1;l&=~(1<<r),s+=1;var i=32-xt(a)+r;if(30<i){var u=r-r%5;i=(l&(1<<u)-1).toString(32),l>>=u,r-=u,us=1<<32-xt(a)+r|s<<r|l,ms=i+e}else us=1<<i|s<<r|l,ms=e}function Mc(e){e.return!==null&&(_s(e,1),a0(e,1,0))}function Tc(e){for(;e===Ti;)Ti=yr[--jr],yr[jr]=null,gn=yr[--jr],yr[jr]=null;for(;e===Ws;)Ws=Oa[--Ua],Oa[Ua]=null,ms=Oa[--Ua],Oa[Ua]=null,us=Oa[--Ua],Oa[Ua]=null}function s0(e,a){Oa[Ua++]=us,Oa[Ua++]=ms,Oa[Ua++]=Ws,us=a.id,ms=a.overflow,Ws=e}var Gt=null,ht=null,et=!1,el=null,za=!1,Lc=Error(b(519));function tl(e){var a=Error(b(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vn(La(a,e)),Lc}function l0(e){var a=e.stateNode,s=e.type,l=e.memoizedProps;switch(a[vt]=e,a[It]=l,s){case"dialog":Xe("cancel",a),Xe("close",a);break;case"iframe":case"object":case"embed":Xe("load",a);break;case"video":case"audio":for(s=0;s<Vn.length;s++)Xe(Vn[s],a);break;case"source":Xe("error",a);break;case"img":case"image":case"link":Xe("error",a),Xe("load",a);break;case"details":Xe("toggle",a);break;case"input":Xe("invalid",a),ys(a,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Xe("invalid",a);break;case"textarea":Xe("invalid",a),mi(a,l.value,l.defaultValue,l.children)}s=l.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||a.textContent===""+s||l.suppressHydrationWarning===!0||jp(a.textContent,s)?(l.popover!=null&&(Xe("beforetoggle",a),Xe("toggle",a)),l.onScroll!=null&&Xe("scroll",a),l.onScrollEnd!=null&&Xe("scrollend",a),l.onClick!=null&&(a.onclick=Za),a=!0):a=!1,a||tl(e,!0)}function r0(e){for(Gt=e.return;Gt;)switch(Gt.tag){case 5:case 31:case 13:za=!1;return;case 27:case 3:za=!0;return;default:Gt=Gt.return}}function Nr(e){if(e!==Gt)return!1;if(!et)return r0(e),et=!0,!1;var a=e.tag,s;if((s=a!==3&&a!==27)&&((s=a===5)&&(s=e.type,s=!(s!=="form"&&s!=="button")||Xd(e.type,e.memoizedProps)),s=!s),s&&ht&&tl(e),r0(e),a===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(b(317));ht=Mp(e)}else if(a===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(b(317));ht=Mp(e)}else a===27?(a=ht,hl(e.type)?(e=tu,tu=null,ht=e):ht=a):ht=Gt?Da(e.stateNode.nextSibling):null;return!0}function ql(){ht=Gt=null,et=!1}function Oc(){var e=el;return e!==null&&(ua===null?ua=e:ua.push.apply(ua,e),el=null),e}function vn(e){el===null?el=[e]:el.push(e)}var Uc=d(null),Vl=null,ks=null;function al(e,a,s){re(Uc,a._currentValue),a._currentValue=s}function Es(e){e._currentValue=Uc.current,U(Uc)}function zc(e,a,s){for(;e!==null;){var l=e.alternate;if((e.childLanes&a)!==a?(e.childLanes|=a,l!==null&&(l.childLanes|=a)):l!==null&&(l.childLanes&a)!==a&&(l.childLanes|=a),e===s)break;e=e.return}}function Rc(e,a,s,l){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var i=r.dependencies;if(i!==null){var u=r.child;i=i.firstContext;e:for(;i!==null;){var M=i;i=r;for(var P=0;P<a.length;P++)if(M.context===a[P]){i.lanes|=s,M=i.alternate,M!==null&&(M.lanes|=s),zc(i.return,s,e),l||(u=null);break e}i=M.next}}else if(r.tag===18){if(u=r.return,u===null)throw Error(b(341));u.lanes|=s,i=u.alternate,i!==null&&(i.lanes|=s),zc(u,s,e),u=null}else u=r.child;if(u!==null)u.return=r;else for(u=r;u!==null;){if(u===e){u=null;break}if(r=u.sibling,r!==null){r.return=u.return,u=r;break}u=u.return}r=u}}function wr(e,a,s,l){e=null;for(var r=a,i=!1;r!==null;){if(!i){if((r.flags&524288)!==0)i=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var u=r.alternate;if(u===null)throw Error(b(387));if(u=u.memoizedProps,u!==null){var M=r.type;aa(r.pendingProps.value,u.value)||(e!==null?e.push(M):e=[M])}}else if(r===Ce.current){if(u=r.alternate,u===null)throw Error(b(387));u.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(In):e=[In])}r=r.return}e!==null&&Rc(a,e,s,l),a.flags|=262144}function Li(e){for(e=e.firstContext;e!==null;){if(!aa(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Gl(e){Vl=e,ks=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ht(e){return n0(Vl,e)}function Oi(e,a){return Vl===null&&Gl(e),n0(e,a)}function n0(e,a){var s=a._currentValue;if(a={context:a,memoizedValue:s,next:null},ks===null){if(e===null)throw Error(b(308));ks=a,e.dependencies={lanes:0,firstContext:a},e.flags|=524288}else ks=ks.next=a;return s}var Mh=typeof AbortController<"u"?AbortController:function(){var e=[],a=this.signal={aborted:!1,addEventListener:function(s,l){e.push(l)}};this.abort=function(){a.aborted=!0,e.forEach(function(s){return s()})}},Th=o.unstable_scheduleCallback,Lh=o.unstable_NormalPriority,Et={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Dc(){return{controller:new Mh,data:new Map,refCount:0}}function yn(e){e.refCount--,e.refCount===0&&Th(Lh,function(){e.controller.abort()})}var jn=null,Fc=0,Sr=0,Cr=null;function Oh(e,a){if(jn===null){var s=jn=[];Fc=0,Sr=Vd(),Cr={status:"pending",value:void 0,then:function(l){s.push(l)}}}return Fc++,a.then(i0,i0),a}function i0(){if(--Fc===0&&jn!==null){Cr!==null&&(Cr.status="fulfilled");var e=jn;jn=null,Sr=0,Cr=null;for(var a=0;a<e.length;a++)(0,e[a])()}}function Uh(e,a){var s=[],l={status:"pending",value:null,reason:null,then:function(r){s.push(r)}};return e.then(function(){l.status="fulfilled",l.value=a;for(var r=0;r<s.length;r++)(0,s[r])(a)},function(r){for(l.status="rejected",l.reason=r,r=0;r<s.length;r++)(0,s[r])(void 0)}),l}var o0=ee.S;ee.S=function(e,a){$m=Ee(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&Oh(e,a),o0!==null&&o0(e,a)};var Hl=d(null);function Bc(){var e=Hl.current;return e!==null?e:pt.pooledCache}function Ui(e,a){a===null?re(Hl,Hl.current):re(Hl,a.pool)}function c0(){var e=Bc();return e===null?null:{parent:Et._currentValue,pool:e}}var _r=Error(b(460)),qc=Error(b(474)),zi=Error(b(542)),Ri={then:function(){}};function d0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function u0(e,a,s){switch(s=e[s],s===void 0?e.push(a):s!==a&&(a.then(Za,Za),a=s),a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,p0(e),e;default:if(typeof a.status=="string")a.then(Za,Za);else{if(e=pt,e!==null&&100<e.shellSuspendCounter)throw Error(b(482));e=a,e.status="pending",e.then(function(l){if(a.status==="pending"){var r=a;r.status="fulfilled",r.value=l}},function(l){if(a.status==="pending"){var r=a;r.status="rejected",r.reason=l}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,p0(e),e}throw $l=a,_r}}function Pl(e){try{var a=e._init;return a(e._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?($l=s,_r):s}}var $l=null;function m0(){if($l===null)throw Error(b(459));var e=$l;return $l=null,e}function p0(e){if(e===_r||e===zi)throw Error(b(483))}var kr=null,Nn=0;function Di(e){var a=Nn;return Nn+=1,kr===null&&(kr=[]),u0(kr,e,a)}function wn(e,a){a=a.props.ref,e.ref=a!==void 0?a:null}function Fi(e,a){throw a.$$typeof===T?Error(b(525)):(e=Object.prototype.toString.call(a),Error(b(31,e==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":e)))}function x0(e){function a(se,Q){if(e){var ce=se.deletions;ce===null?(se.deletions=[Q],se.flags|=16):ce.push(Q)}}function s(se,Q){if(!e)return null;for(;Q!==null;)a(se,Q),Q=Q.sibling;return null}function l(se){for(var Q=new Map;se!==null;)se.key!==null?Q.set(se.key,se):Q.set(se.index,se),se=se.sibling;return Q}function r(se,Q){return se=Cs(se,Q),se.index=0,se.sibling=null,se}function i(se,Q,ce){return se.index=ce,e?(ce=se.alternate,ce!==null?(ce=ce.index,ce<Q?(se.flags|=67108866,Q):ce):(se.flags|=67108866,Q)):(se.flags|=1048576,Q)}function u(se){return e&&se.alternate===null&&(se.flags|=67108866),se}function M(se,Q,ce,je){return Q===null||Q.tag!==6?(Q=Ec(ce,se.mode,je),Q.return=se,Q):(Q=r(Q,ce),Q.return=se,Q)}function P(se,Q,ce,je){var De=ce.type;return De===j?ge(se,Q,ce.props.children,je,ce.key):Q!==null&&(Q.elementType===De||typeof De=="object"&&De!==null&&De.$$typeof===K&&Pl(De)===Q.type)?(Q=r(Q,ce.props),wn(Q,ce),Q.return=se,Q):(Q=Mi(ce.type,ce.key,ce.props,null,se.mode,je),wn(Q,ce),Q.return=se,Q)}function de(se,Q,ce,je){return Q===null||Q.tag!==4||Q.stateNode.containerInfo!==ce.containerInfo||Q.stateNode.implementation!==ce.implementation?(Q=Ac(ce,se.mode,je),Q.return=se,Q):(Q=r(Q,ce.children||[]),Q.return=se,Q)}function ge(se,Q,ce,je,De){return Q===null||Q.tag!==7?(Q=Bl(ce,se.mode,je,De),Q.return=se,Q):(Q=r(Q,ce),Q.return=se,Q)}function Se(se,Q,ce){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return Q=Ec(""+Q,se.mode,ce),Q.return=se,Q;if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case w:return ce=Mi(Q.type,Q.key,Q.props,null,se.mode,ce),wn(ce,Q),ce.return=se,ce;case S:return Q=Ac(Q,se.mode,ce),Q.return=se,Q;case K:return Q=Pl(Q),Se(se,Q,ce)}if(ie(Q)||L(Q))return Q=Bl(Q,se.mode,ce,null),Q.return=se,Q;if(typeof Q.then=="function")return Se(se,Di(Q),ce);if(Q.$$typeof===F)return Se(se,Oi(se,Q),ce);Fi(se,Q)}return null}function me(se,Q,ce,je){var De=Q!==null?Q.key:null;if(typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint")return De!==null?null:M(se,Q,""+ce,je);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case w:return ce.key===De?P(se,Q,ce,je):null;case S:return ce.key===De?de(se,Q,ce,je):null;case K:return ce=Pl(ce),me(se,Q,ce,je)}if(ie(ce)||L(ce))return De!==null?null:ge(se,Q,ce,je,null);if(typeof ce.then=="function")return me(se,Q,Di(ce),je);if(ce.$$typeof===F)return me(se,Q,Oi(se,ce),je);Fi(se,ce)}return null}function he(se,Q,ce,je,De){if(typeof je=="string"&&je!==""||typeof je=="number"||typeof je=="bigint")return se=se.get(ce)||null,M(Q,se,""+je,De);if(typeof je=="object"&&je!==null){switch(je.$$typeof){case w:return se=se.get(je.key===null?ce:je.key)||null,P(Q,se,je,De);case S:return se=se.get(je.key===null?ce:je.key)||null,de(Q,se,je,De);case K:return je=Pl(je),he(se,Q,ce,je,De)}if(ie(je)||L(je))return se=se.get(ce)||null,ge(Q,se,je,De,null);if(typeof je.then=="function")return he(se,Q,ce,Di(je),De);if(je.$$typeof===F)return he(se,Q,ce,Oi(Q,je),De);Fi(Q,je)}return null}function Ue(se,Q,ce,je){for(var De=null,at=null,Re=Q,$e=Q=0,Ke=null;Re!==null&&$e<ce.length;$e++){Re.index>$e?(Ke=Re,Re=null):Ke=Re.sibling;var st=me(se,Re,ce[$e],je);if(st===null){Re===null&&(Re=Ke);break}e&&Re&&st.alternate===null&&a(se,Re),Q=i(st,Q,$e),at===null?De=st:at.sibling=st,at=st,Re=Ke}if($e===ce.length)return s(se,Re),et&&_s(se,$e),De;if(Re===null){for(;$e<ce.length;$e++)Re=Se(se,ce[$e],je),Re!==null&&(Q=i(Re,Q,$e),at===null?De=Re:at.sibling=Re,at=Re);return et&&_s(se,$e),De}for(Re=l(Re);$e<ce.length;$e++)Ke=he(Re,se,$e,ce[$e],je),Ke!==null&&(e&&Ke.alternate!==null&&Re.delete(Ke.key===null?$e:Ke.key),Q=i(Ke,Q,$e),at===null?De=Ke:at.sibling=Ke,at=Ke);return e&&Re.forEach(function(yl){return a(se,yl)}),et&&_s(se,$e),De}function Be(se,Q,ce,je){if(ce==null)throw Error(b(151));for(var De=null,at=null,Re=Q,$e=Q=0,Ke=null,st=ce.next();Re!==null&&!st.done;$e++,st=ce.next()){Re.index>$e?(Ke=Re,Re=null):Ke=Re.sibling;var yl=me(se,Re,st.value,je);if(yl===null){Re===null&&(Re=Ke);break}e&&Re&&yl.alternate===null&&a(se,Re),Q=i(yl,Q,$e),at===null?De=yl:at.sibling=yl,at=yl,Re=Ke}if(st.done)return s(se,Re),et&&_s(se,$e),De;if(Re===null){for(;!st.done;$e++,st=ce.next())st=Se(se,st.value,je),st!==null&&(Q=i(st,Q,$e),at===null?De=st:at.sibling=st,at=st);return et&&_s(se,$e),De}for(Re=l(Re);!st.done;$e++,st=ce.next())st=he(Re,se,$e,st.value,je),st!==null&&(e&&st.alternate!==null&&Re.delete(st.key===null?$e:st.key),Q=i(st,Q,$e),at===null?De=st:at.sibling=st,at=st);return e&&Re.forEach(function(If){return a(se,If)}),et&&_s(se,$e),De}function mt(se,Q,ce,je){if(typeof ce=="object"&&ce!==null&&ce.type===j&&ce.key===null&&(ce=ce.props.children),typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case w:e:{for(var De=ce.key;Q!==null;){if(Q.key===De){if(De=ce.type,De===j){if(Q.tag===7){s(se,Q.sibling),je=r(Q,ce.props.children),je.return=se,se=je;break e}}else if(Q.elementType===De||typeof De=="object"&&De!==null&&De.$$typeof===K&&Pl(De)===Q.type){s(se,Q.sibling),je=r(Q,ce.props),wn(je,ce),je.return=se,se=je;break e}s(se,Q);break}else a(se,Q);Q=Q.sibling}ce.type===j?(je=Bl(ce.props.children,se.mode,je,ce.key),je.return=se,se=je):(je=Mi(ce.type,ce.key,ce.props,null,se.mode,je),wn(je,ce),je.return=se,se=je)}return u(se);case S:e:{for(De=ce.key;Q!==null;){if(Q.key===De)if(Q.tag===4&&Q.stateNode.containerInfo===ce.containerInfo&&Q.stateNode.implementation===ce.implementation){s(se,Q.sibling),je=r(Q,ce.children||[]),je.return=se,se=je;break e}else{s(se,Q);break}else a(se,Q);Q=Q.sibling}je=Ac(ce,se.mode,je),je.return=se,se=je}return u(se);case K:return ce=Pl(ce),mt(se,Q,ce,je)}if(ie(ce))return Ue(se,Q,ce,je);if(L(ce)){if(De=L(ce),typeof De!="function")throw Error(b(150));return ce=De.call(ce),Be(se,Q,ce,je)}if(typeof ce.then=="function")return mt(se,Q,Di(ce),je);if(ce.$$typeof===F)return mt(se,Q,Oi(se,ce),je);Fi(se,ce)}return typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint"?(ce=""+ce,Q!==null&&Q.tag===6?(s(se,Q.sibling),je=r(Q,ce),je.return=se,se=je):(s(se,Q),je=Ec(ce,se.mode,je),je.return=se,se=je),u(se)):s(se,Q)}return function(se,Q,ce,je){try{Nn=0;var De=mt(se,Q,ce,je);return kr=null,De}catch(Re){if(Re===_r||Re===zi)throw Re;var at=fa(29,Re,null,se.mode);return at.lanes=je,at.return=se,at}finally{}}}var Il=x0(!0),h0=x0(!1),sl=!1;function Vc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Gc(e,a){e=e.updateQueue,a.updateQueue===e&&(a.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ll(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function rl(e,a,s){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(nt&2)!==0){var r=l.pending;return r===null?a.next=a:(a.next=r.next,r.next=a),l.pending=a,a=Ai(e),Ku(e,null,s),a}return Ei(e,l,a,s),Ai(e)}function Sn(e,a,s){if(a=a.updateQueue,a!==null&&(a=a.shared,(s&4194048)!==0)){var l=a.lanes;l&=e.pendingLanes,s|=l,a.lanes=s,Is(e,s)}}function Hc(e,a){var s=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,s===l)){var r=null,i=null;if(s=s.firstBaseUpdate,s!==null){do{var u={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};i===null?r=i=u:i=i.next=u,s=s.next}while(s!==null);i===null?r=i=a:i=i.next=a}else r=i=a;s={baseState:l.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:l.shared,callbacks:l.callbacks},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=a:e.next=a,s.lastBaseUpdate=a}var Pc=!1;function Cn(){if(Pc){var e=Cr;if(e!==null)throw e}}function _n(e,a,s,l){Pc=!1;var r=e.updateQueue;sl=!1;var i=r.firstBaseUpdate,u=r.lastBaseUpdate,M=r.shared.pending;if(M!==null){r.shared.pending=null;var P=M,de=P.next;P.next=null,u===null?i=de:u.next=de,u=P;var ge=e.alternate;ge!==null&&(ge=ge.updateQueue,M=ge.lastBaseUpdate,M!==u&&(M===null?ge.firstBaseUpdate=de:M.next=de,ge.lastBaseUpdate=P))}if(i!==null){var Se=r.baseState;u=0,ge=de=P=null,M=i;do{var me=M.lane&-536870913,he=me!==M.lane;if(he?(Qe&me)===me:(l&me)===me){me!==0&&me===Sr&&(Pc=!0),ge!==null&&(ge=ge.next={lane:0,tag:M.tag,payload:M.payload,callback:null,next:null});e:{var Ue=e,Be=M;me=a;var mt=s;switch(Be.tag){case 1:if(Ue=Be.payload,typeof Ue=="function"){Se=Ue.call(mt,Se,me);break e}Se=Ue;break e;case 3:Ue.flags=Ue.flags&-65537|128;case 0:if(Ue=Be.payload,me=typeof Ue=="function"?Ue.call(mt,Se,me):Ue,me==null)break e;Se=m({},Se,me);break e;case 2:sl=!0}}
vendor: 4,821 bytes, line 48
48me=M.callback,me!==null&&(e.flags|=64,he&&(e.flags|=8192),he=r.callbacks,he===null?r.callbacks=[me]:he.push(me))}else he={lane:me,tag:M.tag,payload:M.payload,callback:M.callback,next:null},ge===null?(de=ge=he,P=Se):ge=ge.next=he,u|=me;if(M=M.next,M===null){if(M=r.shared.pending,M===null)break;he=M,M=he.next,he.next=null,r.lastBaseUpdate=he,r.shared.pending=null}}while(!0);ge===null&&(P=Se),r.baseState=P,r.firstBaseUpdate=de,r.lastBaseUpdate=ge,i===null&&(r.shared.lanes=0),dl|=u,e.lanes=u,e.memoizedState=Se}}function f0(e,a){if(typeof e!="function")throw Error(b(191,e));e.call(a)}function b0(e,a){var s=e.callbacks;if(s!==null)for(e.callbacks=null,e=0;e<s.length;e++)f0(s[e],a)}var Er=d(null),Bi=d(0);function g0(e,a){e=Ds,re(Bi,e),re(Er,a),Ds=e|a.baseLanes}function $c(){re(Bi,Ds),re(Er,Er.current)}function Ic(){Ds=Bi.current,U(Er),U(Bi)}var ba=d(null),Ra=null;function nl(e){var a=e.alternate;re(_t,_t.current&1),re(ba,e),Ra===null&&(a===null||Er.current!==null||a.memoizedState!==null)&&(Ra=e)}function Zc(e){re(_t,_t.current),re(ba,e),Ra===null&&(Ra=e)}function v0(e){e.tag===22?(re(_t,_t.current),re(ba,e),Ra===null&&(Ra=e)):il()}function il(){re(_t,_t.current),re(ba,ba.current)}function ga(e){U(ba),Ra===e&&(Ra=null),U(_t)}var _t=d(0);function qi(e){for(var a=e;a!==null;){if(a.tag===13){var s=a.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||Wd(s)||eu(s)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var As=0,Pe=null,dt=null,At=null,Vi=!1,Ar=!1,Zl=!1,Gi=0,kn=0,Mr=null,zh=0;function yt(){throw Error(b(321))}function Yc(e,a){if(a===null)return!1;for(var s=0;s<a.length&&s<e.length;s++)if(!aa(e[s],a[s]))return!1;return!0}function Jc(e,a,s,l,r,i){return As=i,Pe=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,ee.H=e===null||e.memoizedState===null?am:dd,Zl=!1,i=s(l,r),Zl=!1,Ar&&(i=j0(a,s,l,r)),y0(e),i}function y0(e){ee.H=Mn;var a=dt!==null&&dt.next!==null;if(As=0,At=dt=Pe=null,Vi=!1,kn=0,Mr=null,a)throw Error(b(300));e===null||Mt||(e=e.dependencies,e!==null&&Li(e)&&(Mt=!0))}function j0(e,a,s,l){Pe=e;var r=0;do{if(Ar&&(Mr=null),kn=0,Ar=!1,25<=r)throw Error(b(301));if(r+=1,At=dt=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}ee.H=sm,i=a(s,l)}while(Ar);return i}function Rh(){var e=ee.H,a=e.useState()[0];return a=typeof a.then=="function"?En(a):a,e=e.useState()[0],(dt!==null?dt.memoizedState:null)!==e&&(Pe.flags|=1024),a}function Xc(){var e=Gi!==0;return Gi=0,e}function Qc(e,a,s){a.updateQueue=e.updateQueue,a.flags&=-2053,e.lanes&=~s}function Kc(e){if(Vi){for(e=e.memoizedState;e!==null;){var a=e.queue;a!==null&&(a.pending=null),e=e.next}Vi=!1}As=0,At=dt=Pe=null,Ar=!1,kn=Gi=0,Mr=null}function sa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return At===null?Pe.memoizedState=At=e:At=At.next=e,At}function kt(){if(dt===null){var e=Pe.alternate;e=e!==null?e.memoizedState:null}else e=dt.next;var a=At===null?Pe.memoizedState:At.next;if(a!==null)At=a,dt=e;else{if(e===null)throw Pe.alternate===null?Error(b(467)):Error(b(310));dt=e,e={memoizedState:dt.memoizedState,baseState:dt.baseState,baseQueue:dt.baseQueue,queue:dt.queue,next:null},At===null?Pe.memoizedState=At=e:At=At.next=e}return At}function Hi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function En(e){var a=kn;return kn+=1,Mr===null&&(Mr=[]),e=u0(Mr,e,a),a=Pe,(At===null?a.memoizedState:At.next)===null&&(a=a.alternate,ee.H=a===null||a.memoizedState===null?am:dd),e}function Pi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return En(e);if(e.$$typeof===F)return Ht(e)}throw Error(b(438,String(e)))}function Wc(e){var a=null,s=Pe.updateQueue;if(s!==null&&(a=s.memoCache),a==null){var l=Pe.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(a={data:l.data.map(function(r){return r.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),s===null&&(s=Hi(),Pe.updateQueue=s),s.memoCache=a,s=a.data[a.index],s===void 0)for(s=a.data[a.index]=Array(e),l=0;l<e;l++)s[l]=J;return a.index++,s}function Ms(e,a){return typeof a=="function"?a(e):a}function $i(e){var a=kt();return ed(a,dt,e)}function ed(e,a,s){var l=e.queue;if(l===null)throw Error(b(311));l.lastRenderedReducer=s;var r=e.baseQueue,i=l.pending;if(i!==null){if(r!==null){var u=r.next;r.next=i.next,i.next=u}a.baseQueue=r=i,l.pending=null}if(i=e.baseState,r===null)e.memoizedState=i;
vendor: 16,938 bytes, line 48
48else{a=r.next;var M=u=null,P=null,de=a,ge=!1;do{var Se=de.lane&-536870913;if(Se!==de.lane?(Qe&Se)===Se:(As&Se)===Se){var me=de.revertLane;if(me===0)P!==null&&(P=P.next={lane:0,revertLane:0,gesture:null,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null}),Se===Sr&&(ge=!0);else if((As&me)===me){de=de.next,me===Sr&&(ge=!0);continue}else Se={lane:0,revertLane:de.revertLane,gesture:null,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},P===null?(M=P=Se,u=i):P=P.next=Se,Pe.lanes|=me,dl|=me;Se=de.action,Zl&&s(i,Se),i=de.hasEagerState?de.eagerState:s(i,Se)}else me={lane:Se,revertLane:de.revertLane,gesture:de.gesture,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},P===null?(M=P=me,u=i):P=P.next=me,Pe.lanes|=Se,dl|=Se;de=de.next}while(de!==null&&de!==a);if(P===null?u=i:P.next=M,!aa(i,e.memoizedState)&&(Mt=!0,ge&&(s=Cr,s!==null)))throw s;e.memoizedState=i,e.baseState=u,e.baseQueue=P,l.lastRenderedState=i}return r===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function td(e){var a=kt(),s=a.queue;if(s===null)throw Error(b(311));s.lastRenderedReducer=e;var l=s.dispatch,r=s.pending,i=a.memoizedState;if(r!==null){s.pending=null;var u=r=r.next;do i=e(i,u.action),u=u.next;while(u!==r);aa(i,a.memoizedState)||(Mt=!0),a.memoizedState=i,a.baseQueue===null&&(a.baseState=i),s.lastRenderedState=i}return[i,l]}function N0(e,a,s){var l=Pe,r=kt(),i=et;if(i){if(s===void 0)throw Error(b(407));s=s()}else s=a();var u=!aa((dt||r).memoizedState,s);if(u&&(r.memoizedState=s,Mt=!0),r=r.queue,ld(C0.bind(null,l,r,e),[e]),r.getSnapshot!==a||u||At!==null&&At.memoizedState.tag&1){if(l.flags|=2048,Tr(9,{destroy:void 0},S0.bind(null,l,r,s,a),null),pt===null)throw Error(b(349));i||(As&127)!==0||w0(l,a,s)}return s}function w0(e,a,s){e.flags|=16384,e={getSnapshot:a,value:s},a=Pe.updateQueue,a===null?(a=Hi(),Pe.updateQueue=a,a.stores=[e]):(s=a.stores,s===null?a.stores=[e]:s.push(e))}function S0(e,a,s,l){a.value=s,a.getSnapshot=l,_0(a)&&k0(e)}function C0(e,a,s){return s(function(){_0(a)&&k0(e)})}function _0(e){var a=e.getSnapshot;e=e.value;try{var s=a();return!aa(e,s)}catch{return!0}}function k0(e){var a=Fl(e,2);a!==null&&ma(a,e,2)}function ad(e){var a=sa();if(typeof e=="function"){var s=e;if(e=s(),Zl){ra(!0);try{s()}finally{ra(!1)}}}return a.memoizedState=a.baseState=e,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ms,lastRenderedState:e},a}function E0(e,a,s,l){return e.baseState=s,ed(e,dt,typeof l=="function"?l:Ms)}function Dh(e,a,s,l,r){if(Yi(e))throw Error(b(485));if(e=a.action,e!==null){var i={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(u){i.listeners.push(u)}};ee.T!==null?s(!0):i.isTransition=!1,l(i),s=a.pending,s===null?(i.next=a.pending=i,A0(a,i)):(i.next=s.next,a.pending=s.next=i)}}function A0(e,a){var s=a.action,l=a.payload,r=e.state;if(a.isTransition){var i=ee.T,u={};ee.T=u;try{var M=s(r,l),P=ee.S;P!==null&&P(u,M),M0(e,a,M)}catch(de){sd(e,a,de)}finally{i!==null&&u.types!==null&&(i.types=u.types),ee.T=i}}else try{i=s(r,l),M0(e,a,i)}catch(de){sd(e,a,de)}}function M0(e,a,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(l){T0(e,a,l)},function(l){return sd(e,a,l)}):T0(e,a,s)}function T0(e,a,s){a.status="fulfilled",a.value=s,L0(a),e.state=s,a=e.pending,a!==null&&(s=a.next,s===a?e.pending=null:(s=s.next,a.next=s,A0(e,s)))}function sd(e,a,s){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do a.status="rejected",a.reason=s,L0(a),a=a.next;while(a!==l)}e.action=null}function L0(e){e=e.listeners;for(var a=0;a<e.length;a++)(0,e[a])()}function O0(e,a){return a}function U0(e,a){if(et){var s=pt.formState;if(s!==null){e:{var l=Pe;if(et){if(ht){t:{for(var r=ht,i=za;r.nodeType!==8;){if(!i){r=null;break t}if(r=Da(r.nextSibling),r===null){r=null;break t}}i=r.data,r=i==="F!"||i==="F"?r:null}if(r){ht=Da(r.nextSibling),l=r.data==="F!";break e}}tl(l)}l=!1}l&&(a=s[0])}}return s=sa(),s.memoizedState=s.baseState=a,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:O0,lastRenderedState:a},s.queue=l,s=W0.bind(null,Pe,l),l.dispatch=s,l=ad(!1),i=cd.bind(null,Pe,!1,l.queue),l=sa(),r={state:a,dispatch:null,action:e,pending:null},l.queue=r,s=Dh.bind(null,Pe,r,i,s),r.dispatch=s,l.memoizedState=e,[a,s,!1]}function z0(e){var a=kt();return R0(a,dt,e)}function R0(e,a,s){if(a=ed(e,a,O0)[0],e=$i(Ms)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var l=En(a)}catch(u){throw u===_r?zi:u}else l=a;a=kt();var r=a.queue,i=r.dispatch;return s!==a.memoizedState&&(Pe.flags|=2048,Tr(9,{destroy:void 0},Fh.bind(null,r,s),null)),[l,i,e]}function Fh(e,a){e.action=a}function D0(e){var a=kt(),s=dt;if(s!==null)return R0(a,s,e);kt(),a=a.memoizedState,s=kt();var l=s.queue.dispatch;return s.memoizedState=e,[a,l,!1]}function Tr(e,a,s,l){return e={tag:e,create:s,deps:l,inst:a,next:null},a=Pe.updateQueue,a===null&&(a=Hi(),Pe.updateQueue=a),s=a.lastEffect,s===null?a.lastEffect=e.next=e:(l=s.next,s.next=e,e.next=l,a.lastEffect=e),e}function F0(){return kt().memoizedState}function Ii(e,a,s,l){var r=sa();Pe.flags|=e,r.memoizedState=Tr(1|a,{destroy:void 0},s,l===void 0?null:l)}function Zi(e,a,s,l){var r=kt();l=l===void 0?null:l;var i=r.memoizedState.inst;dt!==null&&l!==null&&Yc(l,dt.memoizedState.deps)?r.memoizedState=Tr(a,i,s,l):(Pe.flags|=e,r.memoizedState=Tr(1|a,i,s,l))}function B0(e,a){Ii(8390656,8,e,a)}function ld(e,a){Zi(2048,8,e,a)}function Bh(e){Pe.flags|=4;var a=Pe.updateQueue;if(a===null)a=Hi(),Pe.updateQueue=a,a.events=[e];else{var s=a.events;s===null?a.events=[e]:s.push(e)}}function q0(e){var a=kt().memoizedState;return Bh({ref:a,nextImpl:e}),function(){if((nt&2)!==0)throw Error(b(440));return a.impl.apply(void 0,arguments)}}function V0(e,a){return Zi(4,2,e,a)}function G0(e,a){return Zi(4,4,e,a)}function H0(e,a){if(typeof a=="function"){e=e();var s=a(e);return function(){typeof s=="function"?s():a(null)}}if(a!=null)return e=e(),a.current=e,function(){a.current=null}}function P0(e,a,s){s=s!=null?s.concat([e]):null,Zi(4,4,H0.bind(null,a,e),s)}function rd(){}function $0(e,a){var s=kt();a=a===void 0?null:a;var l=s.memoizedState;return a!==null&&Yc(a,l[1])?l[0]:(s.memoizedState=[e,a],e)}function I0(e,a){var s=kt();a=a===void 0?null:a;var l=s.memoizedState;if(a!==null&&Yc(a,l[1]))return l[0];if(l=e(),Zl){ra(!0);try{e()}finally{ra(!1)}}return s.memoizedState=[l,a],l}function nd(e,a,s){return s===void 0||(As&1073741824)!==0&&(Qe&261930)===0?e.memoizedState=a:(e.memoizedState=s,e=Zm(),Pe.lanes|=e,dl|=e,s)}function Z0(e,a,s,l){return aa(s,a)?s:Er.current!==null?(e=nd(e,s,l),aa(e,a)||(Mt=!0),e):(As&42)===0||(As&1073741824)!==0&&(Qe&261930)===0?(Mt=!0,e.memoizedState=s):(e=Zm(),Pe.lanes|=e,dl|=e,a)}function Y0(e,a,s,l,r){var i=X.p;X.p=i!==0&&8>i?i:8;var u=ee.T,M={};ee.T=M,cd(e,!1,a,s);try{var P=r(),de=ee.S;if(de!==null&&de(M,P),P!==null&&typeof P=="object"&&typeof P.then=="function"){var ge=Uh(P,l);An(e,a,ge,ja(e))}else An(e,a,l,ja(e))}catch(Se){An(e,a,{then:function(){},status:"rejected",reason:Se},ja())}finally{X.p=i,u!==null&&M.types!==null&&(u.types=M.types),ee.T=u}}function qh(){}function id(e,a,s,l){if(e.tag!==5)throw Error(b(476));var r=J0(e).queue;Y0(e,r,a,le,s===null?qh:function(){return X0(e),s(l)})}function J0(e){var a=e.memoizedState;if(a!==null)return a;a={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ms,lastRenderedState:le},next:null};var s={};return a.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ms,lastRenderedState:s},next:null},e.memoizedState=a,e=e.alternate,e!==null&&(e.memoizedState=a),a}function X0(e){var a=J0(e);a.next===null&&(a=e.alternate.memoizedState),An(e,a.next.queue,{},ja())}function od(){return Ht(In)}function Q0(){return kt().memoizedState}function K0(){return kt().memoizedState}function Vh(e){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var s=ja();e=ll(s);var l=rl(a,e,s);l!==null&&(ma(l,a,s),Sn(l,a,s)),a={cache:Dc()},e.payload=a;return}a=a.return}}function Gh(e,a,s){var l=ja();s={lane:l,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Yi(e)?em(a,s):(s=_c(e,a,s,l),s!==null&&(ma(s,e,l),tm(s,a,l)))}function W0(e,a,s){var l=ja();An(e,a,s,l)}function An(e,a,s,l){var r={lane:l,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(Yi(e))em(a,r);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=a.lastRenderedReducer,i!==null))try{var u=a.lastRenderedState,M=i(u,s);if(r.hasEagerState=!0,r.eagerState=M,aa(M,u))return Ei(e,a,r,0),pt===null&&ki(),!1}catch{}finally{}if(s=_c(e,a,r,l),s!==null)return ma(s,e,l),tm(s,a,l),!0}return!1}function cd(e,a,s,l){if(l={lane:2,revertLane:Vd(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Yi(e)){if(a)throw Error(b(479))}else a=_c(e,s,l,2),a!==null&&ma(a,e,2)}function Yi(e){var a=e.alternate;return e===Pe||a!==null&&a===Pe}function em(e,a){Ar=Vi=!0;var s=e.pending;s===null?a.next=a:(a.next=s.next,s.next=a),e.pending=a}function tm(e,a,s){if((s&4194048)!==0){var l=a.lanes;l&=e.pendingLanes,s|=l,a.lanes=s,Is(e,s)}}var Mn={readContext:Ht,use:Pi,useCallback:yt,useContext:yt,useEffect:yt,useImperativeHandle:yt,useLayoutEffect:yt,useInsertionEffect:yt,useMemo:yt,useReducer:yt,useRef:yt,useState:yt,useDebugValue:yt,useDeferredValue:yt,useTransition:yt,useSyncExternalStore:yt,useId:yt,useHostTransitionStatus:yt,useFormState:yt,useActionState:yt,useOptimistic:yt,useMemoCache:yt,useCacheRefresh:yt};Mn.useEffectEvent=yt;var am={readContext:Ht,use:Pi,useCallback:function(e,a){return sa().memoizedState=[e,a===void 0?null:a],e},useContext:Ht,useEffect:B0,useImperativeHandle:function(e,a,s){s=s!=null?s.concat([e]):null,Ii(4194308,4,H0.bind(null,a,e),s)},useLayoutEffect:function(e,a){return Ii(4194308,4,e,a)},useInsertionEffect:function(e,a){Ii(4,2,e,a)},useMemo:function(e,a){var s=sa();a=a===void 0?null:a;var l=e();if(Zl){ra(!0);try{e()}finally{ra(!1)}}return s.memoizedState=[l,a],l},useReducer:function(e,a,s){var l=sa();if(s!==void 0){var r=s(a);if(Zl){ra(!0);try{s(a)}finally{ra(!1)}}}else r=a;return l.memoizedState=l.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},l.queue=e,e=e.dispatch=Gh.bind(null,Pe,e),[l.memoizedState,e]},useRef:function(e){var a=sa();return e={current:e},a.memoizedState=e},useState:function(e){e=ad(e);var a=e.queue,s=W0.bind(null,Pe,a);return a.dispatch=s,[e.memoizedState,s]},useDebugValue:rd,useDeferredValue:function(e,a){var s=sa();return nd(s,e,a)},useTransition:function(){var e=ad(!1);return e=Y0.bind(null,Pe,e.queue,!0,!1),sa().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,a,s){var l=Pe,r=sa();if(et){if(s===void 0)throw Error(b(407));s=s()}else{if(s=a(),pt===null)throw Error(b(349));(Qe&127)!==0||w0(l,a,s)}r.memoizedState=s;var i={value:s,getSnapshot:a};return r.queue=i,B0(C0.bind(null,l,i,e),[e]),l.flags|=2048,Tr(9,{destroy:void 0},S0.bind(null,l,i,s,a),null),s},useId:function(){var e=sa(),a=pt.identifierPrefix;if(et){var s=ms,l=us;s=(l&~(1<<32-xt(l)-1)).toString(32)+s,a="_"+a+"R_"+s,s=Gi++,0<s&&(a+="H"+s.toString(32)),a+="_"}else s=zh++,a="_"+a+"r_"+s.toString(32)+"_";return e.memoizedState=a},useHostTransitionStatus:od,useFormState:U0,useActionState:U0,useOptimistic:function(e){var a=sa();a.memoizedState=a.baseState=e;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=s,a=cd.bind(null,Pe,!0,s),s.dispatch=a,[e,a]},useMemoCache:Wc,useCacheRefresh:function(){return sa().memoizedState=Vh.bind(null,Pe)},useEffectEvent:function(e){var a=sa(),s={impl:e};return a.memoizedState=s,function(){if((nt&2)!==0)throw Error(b(440));return s.impl.apply(void 0,arguments)}}},dd={readContext:Ht,use:Pi,useCallback:$0,useContext:Ht,useEffect:ld,useImperativeHandle:P0,useInsertionEffect:V0,useLayoutEffect:G0,useMemo:I0,useReducer:$i,useRef:F0,useState:function(){return $i(Ms)},useDebugValue:rd,useDeferredValue:function(e,a){var s=kt();return Z0(s,dt.memoizedState,e,a)},useTransition:function(){var e=$i(Ms)[0],a=kt().memoizedState;return[typeof e=="boolean"?e:En(e),a]},useSyncExternalStore:N0,useId:Q0,useHostTransitionStatus:od,useFormState:z0,useActionState:z0,useOptimistic:function(e,a){var s=kt();return E0(s,dt,e,a)},useMemoCache:Wc,useCacheRefresh:K0};dd.useEffectEvent=q0;var sm={readContext:Ht,use:Pi,useCallback:$0,useContext:Ht,useEffect:ld,useImperativeHandle:P0,useInsertionEffect:V0,useLayoutEffect:G0,useMemo:I0,useReducer:td,useRef:F0,useState:function(){return td(Ms)},useDebugValue:rd,useDeferredValue:function(e,a){var s=kt();return dt===null?nd(s,e,a):Z0(s,dt.memoizedState,e,a)},useTransition:function(){var e=td(Ms)[0],a=kt().memoizedState;return[typeof e=="boolean"?e:En(e),a]},useSyncExternalStore:N0,useId:Q0,useHostTransitionStatus:od,useFormState:D0,useActionState:D0,useOptimistic:function(e,a){var s=kt();return dt!==null?E0(s,dt,e,a):(s.baseState=e,[e,s.queue.dispatch])},useMemoCache:Wc,useCacheRefresh:K0};sm.useEffectEvent=q0;function ud(e,a,s,l){a=e.memoizedState,s=s(l,a),s=s==null?a:m({},a,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var md={enqueueSetState:function(e,a,s){e=e._reactInternals;var l=ja(),r=ll(l);r.payload=a,s!=null&&(r.callback=s),a=rl(e,r,l),a!==null&&(ma(a,e,l),Sn(a,e,l))},enqueueReplaceState:function(e,a,s){e=e._reactInternals;var l=ja(),r=ll(l);r.tag=1,r.payload=a,s!=null&&(r.callback=s),a=rl(e,r,l),a!==null&&(ma(a,e,l),Sn(a,e,l))},enqueueForceUpdate:function(e,a){e=e._reactInternals;var s=ja(),l=ll(s);l.tag=2,a!=null&&(l.callback=a),a=rl(e,l,s),a!==null&&(ma(a,e,s),Sn(a,e,s))}};function lm(e,a,s,l,r,i,u){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,i,u):a.prototype&&a.prototype.isPureReactComponent?!fn(s,l)||!fn(r,i):!0}function rm(e,a,s,l){e=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(s,l),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(s,l),a.state!==e&&md.enqueueReplaceState(a,a.state,null)}function Yl(e,a){var s=a;if("ref"in a){s={};for(var l in a)l!=="ref"&&(s[l]=a[l])}if(e=e.defaultProps){s===a&&(s=m({},s));for(var r in e)s[r]===void 0&&(s[r]=e[r])}return s}function nm(e){_i(e)}function im(e){console.error(e)}function om(e){_i(e)}function Ji(e,a){try{var s=e.onUncaughtError;s(a.value,{componentStack:a.stack})}catch(l){setTimeout(function(){throw l})}}function cm(e,a,s){try{var l=e.onCaughtError;l(s.value,{componentStack:s.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function pd(e,a,s){return s=ll(s),s.tag=3,s.payload={element:null},s.callback=function(){Ji(e,a)},s}function dm(e){return e=ll(e),e.tag=3,e}function um(e,a,s,l){var r=s.type.getDerivedStateFromError;if(typeof r=="function"){var i=l.value;e.payload=function(){return r(i)},e.callback=function(){cm(a,s,l)}}var u=s.stateNode;u!==null&&typeof u.componentDidCatch=="function"&&(e.callback=function(){cm(a,s,l),typeof r!="function"&&(ul===null?ul=new Set([this]):ul.add(this));var M=l.stack;this.componentDidCatch(l.value,{componentStack:M!==null?M:""})})}function Hh(e,a,s,l,r){if(s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(a=s.alternate,a!==null&&wr(a,s,r,!0),s=ba.current,s!==null){switch(s.tag){case 31:case 13:return Ra===null?io():s.alternate===null&&jt===0&&(jt=3),s.flags&=-257,s.flags|=65536,s.lanes=r,l===Ri?s.flags|=16384:(a=s.updateQueue,a===null?s.updateQueue=new Set([l]):a.add(l),Fd(e,l,r)),!1;case 22:return s.flags|=65536,l===Ri?s.flags|=16384:(a=s.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([l])},s.updateQueue=a):(s=a.retryQueue,s===null?a.retryQueue=new Set([l]):s.add(l)),Fd(e,l,r)),!1}throw Error(b(435,s.tag))}return Fd(e,l,r),io(),!1}if(et)return a=ba.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=r,l!==Lc&&(e=Error(b(422),{cause:l}),vn(La(e,s)))):(l!==Lc&&(a=Error(b(423),{cause:l}),vn(La(a,s))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,l=La(l,s),r=pd(e.stateNode,l,r),Hc(e,r),jt!==4&&(jt=2)),!1;var i=Error(b(520),{cause:l});if(i=La(i,s),Fn===null?Fn=[i]:Fn.push(i),jt!==4&&(jt=2),a===null)return!0;l=La(l,s),s=a;do{switch(s.tag){case 3:return s.flags|=65536,e=r&-r,s.lanes|=e,e=pd(s.stateNode,l,e),Hc(s,e),!1;case 1:if(a=s.type,i=s.stateNode,(s.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(ul===null||!ul.has(i))))return s.flags|=65536,r&=-r,s.lanes|=r,r=dm(r),um(r,e,s,l),Hc(s,r),!1}s=s.return}while(s!==null);return!1}var xd=Error(b(461)),Mt=!1;function Pt(e,a,s,l){a.child=e===null?h0(a,null,s,l):Il(a,e.child,s,l)}function mm(e,a,s,l,r){s=s.render;var i=a.ref;if("ref"in l){var u={};for(var M in l)M!=="ref"&&(u[M]=l[M])}else u=l;
vendor: 9,832 bytes, line 48
48return Gl(a),l=Jc(e,a,s,u,i,r),M=Xc(),e!==null&&!Mt?(Qc(e,a,r),Ts(e,a,r)):(et&&M&&Mc(a),a.flags|=1,Pt(e,a,l,r),a.child)}function pm(e,a,s,l,r){if(e===null){var i=s.type;return typeof i=="function"&&!kc(i)&&i.defaultProps===void 0&&s.compare===null?(a.tag=15,a.type=i,xm(e,a,i,l,r)):(e=Mi(s.type,null,l,a,a.mode,r),e.ref=a.ref,e.return=a,a.child=e)}if(i=e.child,!Nd(e,r)){var u=i.memoizedProps;if(s=s.compare,s=s!==null?s:fn,s(u,l)&&e.ref===a.ref)return Ts(e,a,r)}return a.flags|=1,e=Cs(i,l),e.ref=a.ref,e.return=a,a.child=e}function xm(e,a,s,l,r){if(e!==null){var i=e.memoizedProps;if(fn(i,l)&&e.ref===a.ref)if(Mt=!1,a.pendingProps=l=i,Nd(e,r))(e.flags&131072)!==0&&(Mt=!0);else return a.lanes=e.lanes,Ts(e,a,r)}return hd(e,a,s,l,r)}function hm(e,a,s,l){var r=l.children,i=e!==null?e.memoizedState:null;if(e===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((a.flags&128)!==0){if(i=i!==null?i.baseLanes|s:s,e!==null){for(l=a.child=e.child,r=0;l!==null;)r=r|l.lanes|l.childLanes,l=l.sibling;l=r&~i}else l=0,a.child=null;return fm(e,a,i,s,l)}if((s&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ui(a,i!==null?i.cachePool:null),i!==null?g0(a,i):$c(),v0(a);else return l=a.lanes=536870912,fm(e,a,i!==null?i.baseLanes|s:s,s,l)}else i!==null?(Ui(a,i.cachePool),g0(a,i),il(),a.memoizedState=null):(e!==null&&Ui(a,null),$c(),il());return Pt(e,a,r,s),a.child}function Tn(e,a){return e!==null&&e.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function fm(e,a,s,l,r){var i=Bc();return i=i===null?null:{parent:Et._currentValue,pool:i},a.memoizedState={baseLanes:s,cachePool:i},e!==null&&Ui(a,null),$c(),v0(a),e!==null&&wr(e,a,l,!0),a.childLanes=r,null}function Xi(e,a){return a=Ki({mode:a.mode,children:a.children},e.mode),a.ref=e.ref,e.child=a,a.return=e,a}function bm(e,a,s){return Il(a,e.child,null,s),e=Xi(a,a.pendingProps),e.flags|=2,ga(a),a.memoizedState=null,e}function Ph(e,a,s){var l=a.pendingProps,r=(a.flags&128)!==0;if(a.flags&=-129,e===null){if(et){if(l.mode==="hidden")return e=Xi(a,l),a.lanes=536870912,Tn(null,e);if(Zc(a),(e=ht)?(e=Ap(e,za),e=e!==null&&e.data==="&"?e:null,e!==null&&(a.memoizedState={dehydrated:e,treeContext:Ws!==null?{id:us,overflow:ms}:null,retryLane:536870912,hydrationErrors:null},s=e0(e),s.return=a,a.child=s,Gt=a,ht=null)):e=null,e===null)throw tl(a);return a.lanes=536870912,null}return Xi(a,l)}var i=e.memoizedState;if(i!==null){var u=i.dehydrated;if(Zc(a),r)if(a.flags&256)a.flags&=-257,a=bm(e,a,s);else if(a.memoizedState!==null)a.child=e.child,a.flags|=128,a=null;else throw Error(b(558));else if(Mt||wr(e,a,s,!1),r=(s&e.childLanes)!==0,Mt||r){if(l=pt,l!==null&&(u=Ha(l,s),u!==0&&u!==i.retryLane))throw i.retryLane=u,Fl(e,u),ma(l,e,u),xd;io(),a=bm(e,a,s)}else e=i.treeContext,ht=Da(u.nextSibling),Gt=a,et=!0,el=null,za=!1,e!==null&&s0(a,e),a=Xi(a,l),a.flags|=4096;return a}return e=Cs(e.child,{mode:l.mode,children:l.children}),e.ref=a.ref,a.child=e,e.return=a,e}function Qi(e,a){var s=a.ref;if(s===null)e!==null&&e.ref!==null&&(a.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(b(284));(e===null||e.ref!==s)&&(a.flags|=4194816)}}function hd(e,a,s,l,r){return Gl(a),s=Jc(e,a,s,l,void 0,r),l=Xc(),e!==null&&!Mt?(Qc(e,a,r),Ts(e,a,r)):(et&&l&&Mc(a),a.flags|=1,Pt(e,a,s,r),a.child)}function gm(e,a,s,l,r,i){return Gl(a),a.updateQueue=null,s=j0(a,l,s,r),y0(e),l=Xc(),e!==null&&!Mt?(Qc(e,a,i),Ts(e,a,i)):(et&&l&&Mc(a),a.flags|=1,Pt(e,a,s,i),a.child)}function vm(e,a,s,l,r){if(Gl(a),a.stateNode===null){var i=vr,u=s.contextType;typeof u=="object"&&u!==null&&(i=Ht(u)),i=new s(l,i),a.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=md,a.stateNode=i,i._reactInternals=a,i=a.stateNode,i.props=l,i.state=a.memoizedState,i.refs={},Vc(a),u=s.contextType,i.context=typeof u=="object"&&u!==null?Ht(u):vr,i.state=a.memoizedState,u=s.getDerivedStateFromProps,typeof u=="function"&&(ud(a,s,u,l),i.state=a.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(u=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),u!==i.state&&md.enqueueReplaceState(i,i.state,null),_n(a,l,i,r),Cn(),i.state=a.memoizedState),typeof i.componentDidMount=="function"&&(a.flags|=4194308),l=!0}else if(e===null){i=a.stateNode;var M=a.memoizedProps,P=Yl(s,M);i.props=P;var de=i.context,ge=s.contextType;u=vr,typeof ge=="object"&&ge!==null&&(u=Ht(ge));var Se=s.getDerivedStateFromProps;ge=typeof Se=="function"||typeof i.getSnapshotBeforeUpdate=="function",M=a.pendingProps!==M,ge||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(M||de!==u)&&rm(a,i,l,u),sl=!1;var me=a.memoizedState;i.state=me,_n(a,l,i,r),Cn(),de=a.memoizedState,M||me!==de||sl?(typeof Se=="function"&&(ud(a,s,Se,l),de=a.memoizedState),(P=sl||lm(a,s,P,l,me,de,u))?(ge||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(a.flags|=4194308)):(typeof i.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=l,a.memoizedState=de),i.props=l,i.state=de,i.context=u,l=P):(typeof i.componentDidMount=="function"&&(a.flags|=4194308),l=!1)}else{i=a.stateNode,Gc(e,a),u=a.memoizedProps,ge=Yl(s,u),i.props=ge,Se=a.pendingProps,me=i.context,de=s.contextType,P=vr,typeof de=="object"&&de!==null&&(P=Ht(de)),M=s.getDerivedStateFromProps,(de=typeof M=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==Se||me!==P)&&rm(a,i,l,P),sl=!1,me=a.memoizedState,i.state=me,_n(a,l,i,r),Cn();var he=a.memoizedState;u!==Se||me!==he||sl||e!==null&&e.dependencies!==null&&Li(e.dependencies)?(typeof M=="function"&&(ud(a,s,M,l),he=a.memoizedState),(ge=sl||lm(a,s,ge,l,me,he,P)||e!==null&&e.dependencies!==null&&Li(e.dependencies))?(de||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(l,he,P),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(l,he,P)),typeof i.componentDidUpdate=="function"&&(a.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&me===e.memoizedState||(a.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&me===e.memoizedState||(a.flags|=1024),a.memoizedProps=l,a.memoizedState=he),i.props=l,i.state=he,i.context=P,l=ge):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&me===e.memoizedState||(a.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&me===e.memoizedState||(a.flags|=1024),l=!1)}return i=l,Qi(e,a),l=(a.flags&128)!==0,i||l?(i=a.stateNode,s=l&&typeof s.getDerivedStateFromError!="function"?null:i.render(),a.flags|=1,e!==null&&l?(a.child=Il(a,e.child,null,r),a.child=Il(a,null,s,r)):Pt(e,a,s,r),a.memoizedState=i.state,e=a.child):e=Ts(e,a,r),e}function ym(e,a,s,l){return ql(),a.flags|=256,Pt(e,a,s,l),a.child}var fd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function bd(e){return{baseLanes:e,cachePool:c0()}}function gd(e,a,s){return e=e!==null?e.childLanes&~s:0,a&&(e|=ya),e}function jm(e,a,s){var l=a.pendingProps,r=!1,i=(a.flags&128)!==0,u;if((u=i)||(u=e!==null&&e.memoizedState===null?!1:(_t.current&2)!==0),u&&(r=!0,a.flags&=-129),u=(a.flags&32)!==0,a.flags&=-33,e===null){if(et){if(r?nl(a):il(),(e=ht)?(e=Ap(e,za),e=e!==null&&e.data!=="&"?e:null,e!==null&&(a.memoizedState={dehydrated:e,treeContext:Ws!==null?{id:us,overflow:ms}:null,retryLane:536870912,hydrationErrors:null},s=e0(e),s.return=a,a.child=s,Gt=a,ht=null)):e=null,e===null)throw tl(a);return eu(e)?a.lanes=32:a.lanes=536870912,null}var M=l.children;return l=l.fallback,r?(il(),r=a.mode,M=Ki({mode:"hidden",children:M},r),l=Bl(l,r,s,null),M.return=a,l.return=a,M.sibling=l,a.child=M,l=a.child,l.memoizedState=bd(s),l.childLanes=gd(e,u,s),a.memoizedState=fd,Tn(null,l)):(nl(a),vd(a,M))}var P=e.memoizedState;if(P!==null&&(M=P.dehydrated,M!==null)){if(i)a.flags&256?(nl(a),a.flags&=-257,a=yd(e,a,s)):a.memoizedState!==null?(il(),a.child=e.child,a.flags|=128,a=null):(il(),M=l.fallback,r=a.mode,l=Ki({mode:"visible",children:l.children},r),M=Bl(M,r,s,null),M.flags|=2,l.return=a,M.return=a,l.sibling=M,a.child=l,Il(a,e.child,null,s),l=a.child,l.memoizedState=bd(s),l.childLanes=gd(e,u,s),a.memoizedState=fd,a=Tn(null,l));else if(nl(a),eu(M)){if(u=M.nextSibling&&M.nextSibling.dataset,u)var de=u.dgst;u=de,l=Error(b(419)),l.stack="",l.digest=u,vn({value:l,source:null,stack:null}),a=yd(e,a,s)}else if(Mt||wr(e,a,s,!1),u=(s&e.childLanes)!==0,Mt||u){if(u=pt,u!==null&&(l=Ha(u,s),l!==0&&l!==P.retryLane))throw P.retryLane=l,Fl(e,l),ma(u,e,l),xd;Wd(M)||io(),a=yd(e,a,s)}else Wd(M)?(a.flags|=192,a.child=e.child,a=null):(e=P.treeContext,ht=Da(M.nextSibling),Gt=a,et=!0,el=null,za=!1,e!==null&&s0(a,e),a=vd(a,l.children),a.flags|=4096);return a}return r?(il(),M=l.fallback,r=a.mode,P=e.child,de=P.sibling,l=Cs(P,{mode:"hidden",children:l.children}),l.subtreeFlags=P.subtreeFlags&65011712,de!==null?M=Cs(de,M):(M=Bl(M,r,s,null),M.flags|=2),M.return=a,l.return=a,l.sibling=M,a.child=l,Tn(null,l),l=a.child,M=e.child.memoizedState,M===null?M=bd(s):(r=M.cachePool,r!==null?(P=Et._currentValue,r=r.parent!==P?{parent:P,pool:P}
vendor: 5,391 bytes, line 48
48:r):r=c0(),M={baseLanes:M.baseLanes|s,cachePool:r}),l.memoizedState=M,l.childLanes=gd(e,u,s),a.memoizedState=fd,Tn(e.child,l)):(nl(a),s=e.child,e=s.sibling,s=Cs(s,{mode:"visible",children:l.children}),s.return=a,s.sibling=null,e!==null&&(u=a.deletions,u===null?(a.deletions=[e],a.flags|=16):u.push(e)),a.child=s,a.memoizedState=null,s)}function vd(e,a){return a=Ki({mode:"visible",children:a},e.mode),a.return=e,e.child=a}function Ki(e,a){return e=fa(22,e,null,a),e.lanes=0,e}function yd(e,a,s){return Il(a,e.child,null,s),e=vd(a,a.pendingProps.children),e.flags|=2,a.memoizedState=null,e}function Nm(e,a,s){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a),zc(e.return,a,s)}function jd(e,a,s,l,r,i){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:l,tail:s,tailMode:r,treeForkCount:i}:(u.isBackwards=a,u.rendering=null,u.renderingStartTime=0,u.last=l,u.tail=s,u.tailMode=r,u.treeForkCount=i)}function wm(e,a,s){var l=a.pendingProps,r=l.revealOrder,i=l.tail;l=l.children;var u=_t.current,M=(u&2)!==0;if(M?(u=u&1|2,a.flags|=128):u&=1,re(_t,u),Pt(e,a,l,s),l=et?gn:0,!M&&e!==null&&(e.flags&128)!==0)e:for(e=a.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Nm(e,s,a);else if(e.tag===19)Nm(e,s,a);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===a)break e;for(;e.sibling===null;){if(e.return===null||e.return===a)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(s=a.child,r=null;s!==null;)e=s.alternate,e!==null&&qi(e)===null&&(r=s),s=s.sibling;s=r,s===null?(r=a.child,a.child=null):(r=s.sibling,s.sibling=null),jd(a,!1,r,s,i,l);break;case"backwards":case"unstable_legacy-backwards":for(s=null,r=a.child,a.child=null;r!==null;){if(e=r.alternate,e!==null&&qi(e)===null){a.child=r;break}e=r.sibling,r.sibling=s,s=r,r=e}jd(a,!0,s,null,i,l);break;case"together":jd(a,!1,null,null,void 0,l);break;default:a.memoizedState=null}return a.child}function Ts(e,a,s){if(e!==null&&(a.dependencies=e.dependencies),dl|=a.lanes,(s&a.childLanes)===0)if(e!==null){if(wr(e,a,s,!1),(s&a.childLanes)===0)return null}else return null;if(e!==null&&a.child!==e.child)throw Error(b(153));if(a.child!==null){for(e=a.child,s=Cs(e,e.pendingProps),a.child=s,s.return=a;e.sibling!==null;)e=e.sibling,s=s.sibling=Cs(e,e.pendingProps),s.return=a;s.sibling=null}return a.child}function Nd(e,a){return(e.lanes&a)!==0?!0:(e=e.dependencies,!!(e!==null&&Li(e)))}function $h(e,a,s){switch(a.tag){case 3:Ae(a,a.stateNode.containerInfo),al(a,Et,e.memoizedState.cache),ql();break;case 27:case 5:Fe(a);break;case 4:Ae(a,a.stateNode.containerInfo);break;case 10:al(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Zc(a),null;break;case 13:var l=a.memoizedState;if(l!==null)return l.dehydrated!==null?(nl(a),a.flags|=128,null):(s&a.child.childLanes)!==0?jm(e,a,s):(nl(a),e=Ts(e,a,s),e!==null?e.sibling:null);nl(a);break;case 19:var r=(e.flags&128)!==0;if(l=(s&a.childLanes)!==0,l||(wr(e,a,s,!1),l=(s&a.childLanes)!==0),r){if(l)return wm(e,a,s);a.flags|=128}if(r=a.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),re(_t,_t.current),l)break;return null;case 22:return a.lanes=0,hm(e,a,s,a.pendingProps);case 24:al(a,Et,e.memoizedState.cache)}return Ts(e,a,s)}function Sm(e,a,s){if(e!==null)if(e.memoizedProps!==a.pendingProps)Mt=!0;else{if(!Nd(e,s)&&(a.flags&128)===0)return Mt=!1,$h(e,a,s);Mt=(e.flags&131072)!==0}else Mt=!1,et&&(a.flags&1048576)!==0&&a0(a,gn,a.index);switch(a.lanes=0,a.tag){case 16:e:{var l=a.pendingProps;if(e=Pl(a.elementType),a.type=e,typeof e=="function")kc(e)?(l=Yl(e,l),a.tag=1,a=vm(null,a,e,l,s)):(a.tag=0,a=hd(null,a,e,l,s));else{if(e!=null){var r=e.$$typeof;if(r===$){a.tag=11,a=mm(null,a,e,l,s);break e}else if(r===V){a.tag=14,a=pm(null,a,e,l,s);break e}}throw a=h(e)||e,Error(b(306,a,""))}}return a;case 0:return hd(e,a,a.type,a.pendingProps,s);case 1:return l=a.type,r=Yl(l,a.pendingProps),vm(e,a,l,r,s);case 3:e:{if(Ae(a,a.stateNode.containerInfo),e===null)throw Error(b(387));l=a.pendingProps;var i=a.memoizedState;r=i.element,Gc(e,a),_n(a,l,null,s);var u=a.memoizedState;if(l=u.cache,al(a,Et,l),l!==i.cache&&Rc(a,[Et],s,!0),Cn(),l=u.element,i.isDehydrated)if(i={element:l,isDehydrated:!1,cache:u.cache},a.updateQueue.baseState=i,a.memoizedState=i,a.flags&256){a=ym(e,a,l,s);break e}else if(l!==r){r=La(Error(b(424)),a),vn(r),a=ym(e,a,l,s);break e}else{switch(e=a.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ht=Da(e.firstChild),Gt=a,et=!0,el=null,za=!0,s=h0(a,null,l,s),a.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(ql(),l===r){a=Ts(e,a,s);break e}Pt(e,a,l,s)}a=a.child}return a;case 26:return Qi(e,a),e===null?(s=zp(a.type,null,a.pendingProps,null))?a.memoizedState=s:et||(s=a.type,e=a.pendingProps,l=ho(_e.current).createElement(s),l[vt]=a,l[It]=e,$t(l,s,e),it(l),a.stateNode=l):a.memoizedState=zp(a.type,e.memoizedProps,a.pendingProps,e.memoizedState),null;case 27:return Fe(a),e===null&&et&&(l=a.stateNode=Lp(a.type,a.pendingProps,_e.current),Gt=a,za=!0,r=ht,hl(a.type)?(tu=r,ht=Da(l.firstChild)):ht=r),Pt(e,a,a.pendingProps.children,s),Qi(e,a),e===null&&(a.flags|=4194304),a.child;case 5:return e===null&&et&&((r=l=ht)&&(l=Nf(l,a.type,a.pendingProps,za),l!==null?(a.stateNode=l,Gt=a,ht=Da(l.firstChild),za=!1,r=!0):r=!1),r||tl(a)),Fe(a
vendor: 4,407 bytes, line 48
48),r=a.type,i=a.pendingProps,u=e!==null?e.memoizedProps:null,l=i.children,Xd(r,i)?l=null:u!==null&&Xd(r,u)&&(a.flags|=32),a.memoizedState!==null&&(r=Jc(e,a,Rh,null,null,s),In._currentValue=r),Qi(e,a),Pt(e,a,l,s),a.child;case 6:return e===null&&et&&((e=s=ht)&&(s=wf(s,a.pendingProps,za),s!==null?(a.stateNode=s,Gt=a,ht=null,e=!0):e=!1),e||tl(a)),null;case 13:return jm(e,a,s);case 4:return Ae(a,a.stateNode.containerInfo),l=a.pendingProps,e===null?a.child=Il(a,null,l,s):Pt(e,a,l,s),a.child;case 11:return mm(e,a,a.type,a.pendingProps,s);case 7:return Pt(e,a,a.pendingProps,s),a.child;case 8:return Pt(e,a,a.pendingProps.children,s),a.child;case 12:return Pt(e,a,a.pendingProps.children,s),a.child;case 10:return l=a.pendingProps,al(a,a.type,l.value),Pt(e,a,l.children,s),a.child;case 9:return r=a.type._context,l=a.pendingProps.children,Gl(a),r=Ht(r),l=l(r),a.flags|=1,Pt(e,a,l,s),a.child;case 14:return pm(e,a,a.type,a.pendingProps,s);case 15:return xm(e,a,a.type,a.pendingProps,s);case 19:return wm(e,a,s);case 31:return Ph(e,a,s);case 22:return hm(e,a,s,a.pendingProps);case 24:return Gl(a),l=Ht(Et),e===null?(r=Bc(),r===null&&(r=pt,i=Dc(),r.pooledCache=i,i.refCount++,i!==null&&(r.pooledCacheLanes|=s),r=i),a.memoizedState={parent:l,cache:r},Vc(a),al(a,Et,r)):((e.lanes&s)!==0&&(Gc(e,a),_n(a,null,null,s),Cn()),r=e.memoizedState,i=a.memoizedState,r.parent!==l?(r={parent:l,cache:l},a.memoizedState=r,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=r),al(a,Et,l)):(l=i.cache,al(a,Et,l),l!==r.cache&&Rc(a,[Et],s,!0))),Pt(e,a,a.pendingProps.children,s),a.child;case 29:throw a.pendingProps}throw Error(b(156,a.tag))}function Ls(e){e.flags|=4}function wd(e,a,s,l,r){if((a=(e.mode&32)!==0)&&(a=!1),a){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(Qm())e.flags|=8192;else throw $l=Ri,qc}else e.flags&=-16777217}function Cm(e,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!qp(a))if(Qm())e.flags|=8192;else throw $l=Ri,qc}function Wi(e,a){a!==null&&(e.flags|=4),e.flags&16384&&(a=e.tag!==22?Wo():536870912,e.lanes|=a,zr|=a)}function Ln(e,a){if(!et)switch(e.tailMode){case"hidden":a=e.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?a||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function ft(e){var a=e.alternate!==null&&e.alternate.child===e.child,s=0,l=0;if(a)for(var r=e.child;r!==null;)s|=r.lanes|r.childLanes,l|=r.subtreeFlags&65011712,l|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)s|=r.lanes|r.childLanes,l|=r.subtreeFlags,l|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=l,e.childLanes=s,a}function Ih(e,a,s){var l=a.pendingProps;switch(Tc(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(a),null;case 1:return ft(a),null;case 3:return s=a.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),Es(Et),Me(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Nr(a)?Ls(a):e===null||e.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Oc())),ft(a),null;case 26:var r=a.type,i=a.memoizedState;return e===null?(Ls(a),i!==null?(ft(a),Cm(a,i)):(ft(a),wd(a,r,null,l,s))):i?i!==e.memoizedState?(Ls(a),ft(a),Cm(a,i)):(ft(a),a.flags&=-16777217):(e=e.memoizedProps,e!==l&&Ls(a),ft(a),wd(a,r,e,l,s)),null;case 27:if(Te(a),s=_e.current,r=a.type,e!==null&&a.stateNode!=null)e.memoizedProps!==l&&Ls(a);else{if(!l){if(a.stateNode===null)throw Error(b(166));return ft(a),null}e=ne.current,Nr(a)?l0(a):(e=Lp(r,l,s),a.stateNode=e,Ls(a))}return ft(a),null;case 5:if(Te(a),r=a.type,e!==null&&a.stateNode!=null)e.memoizedProps!==l&&Ls(a);else{if(!l){if(a.stateNode===null)throw Error(b(166));return ft(a),null}if(i=ne.current,Nr(a))l0(a);else{var u=ho(_e.current);switch(i){case 1:i=u.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:i=u.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":i=u.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":i=u.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":i=u.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;
vendor: 24,598 bytes, line 48
48case"select":i=typeof l.is=="string"?u.createElement("select",{is:l.is}):u.createElement("select"),l.multiple?i.multiple=!0:l.size&&(i.size=l.size);break;default:i=typeof l.is=="string"?u.createElement(r,{is:l.is}):u.createElement(r)}}i[vt]=a,i[It]=l;e:for(u=a.child;u!==null;){if(u.tag===5||u.tag===6)i.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===a)break e;for(;u.sibling===null;){if(u.return===null||u.return===a)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}a.stateNode=i;e:switch($t(i,r,l),r){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Ls(a)}}return ft(a),wd(a,a.type,e===null?null:e.memoizedProps,a.pendingProps,s),null;case 6:if(e&&a.stateNode!=null)e.memoizedProps!==l&&Ls(a);else{if(typeof l!="string"&&a.stateNode===null)throw Error(b(166));if(e=_e.current,Nr(a)){if(e=a.stateNode,s=a.memoizedProps,l=null,r=Gt,r!==null)switch(r.tag){case 27:case 5:l=r.memoizedProps}e[vt]=a,e=!!(e.nodeValue===s||l!==null&&l.suppressHydrationWarning===!0||jp(e.nodeValue,s)),e||tl(a,!0)}else e=ho(e).createTextNode(l),e[vt]=a,a.stateNode=e}return ft(a),null;case 31:if(s=a.memoizedState,e===null||e.memoizedState!==null){if(l=Nr(a),s!==null){if(e===null){if(!l)throw Error(b(318));if(e=a.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(b(557));e[vt]=a}else ql(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;ft(a),e=!1}else s=Oc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),e=!0;if(!e)return a.flags&256?(ga(a),a):(ga(a),null);if((a.flags&128)!==0)throw Error(b(558))}return ft(a),null;case 13:if(l=a.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Nr(a),l!==null&&l.dehydrated!==null){if(e===null){if(!r)throw Error(b(318));if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(b(317));r[vt]=a}else ql(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;ft(a),r=!1}else r=Oc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return a.flags&256?(ga(a),a):(ga(a),null)}return ga(a),(a.flags&128)!==0?(a.lanes=s,a):(s=l!==null,e=e!==null&&e.memoizedState!==null,s&&(l=a.child,r=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(r=l.alternate.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==r&&(l.flags|=2048)),s!==e&&s&&(a.child.flags|=8192),Wi(a,a.updateQueue),ft(a),null);case 4:return Me(),e===null&&$d(a.stateNode.containerInfo),ft(a),null;case 10:return Es(a.type),ft(a),null;case 19:if(U(_t),l=a.memoizedState,l===null)return ft(a),null;if(r=(a.flags&128)!==0,i=l.rendering,i===null)if(r)Ln(l,!1);else{if(jt!==0||e!==null&&(e.flags&128)!==0)for(e=a.child;e!==null;){if(i=qi(e),i!==null){for(a.flags|=128,Ln(l,!1),e=i.updateQueue,a.updateQueue=e,Wi(a,e),a.subtreeFlags=0,e=s,s=a.child;s!==null;)Wu(s,e),s=s.sibling;return re(_t,_t.current&1|2),et&&_s(a,l.treeForkCount),a.child}e=e.sibling}l.tail!==null&&Ee()>lo&&(a.flags|=128,r=!0,Ln(l,!1),a.lanes=4194304)}else{if(!r)if(e=qi(i),e!==null){if(a.flags|=128,r=!0,e=e.updateQueue,a.updateQueue=e,Wi(a,e),Ln(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!et)return ft(a),null}else 2*Ee()-l.renderingStartTime>lo&&s!==536870912&&(a.flags|=128,r=!0,Ln(l,!1),a.lanes=4194304);l.isBackwards?(i.sibling=a.child,a.child=i):(e=l.last,e!==null?e.sibling=i:a.child=i,l.last=i)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Ee(),e.sibling=null,s=_t.current,re(_t,r?s&1|2:s&1),et&&_s(a,l.treeForkCount),e):(ft(a),null);case 22:case 23:return ga(a),Ic(),l=a.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(a.flags|=8192):l&&(a.flags|=8192),l?(s&536870912)!==0&&(a.flags&128)===0&&(ft(a),a.subtreeFlags&6&&(a.flags|=8192)):ft(a),s=a.updateQueue,s!==null&&Wi(a,s.retryQueue),s=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),l=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),l!==s&&(a.flags|=2048),e!==null&&U(Hl),null;case 24:return s=null,e!==null&&(s=e.memoizedState.cache),a.memoizedState.cache!==s&&(a.flags|=2048),Es(Et),ft(a),null;case 25:return null;case 30:return null}throw Error(b(156,a.tag))}function Zh(e,a){switch(Tc(a),a.tag){case 1:return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 3:return Es(Et),Me(),e=a.flags,(e&65536)!==0&&(e&128)===0?(a.flags=e&-65537|128,a):null;case 26:case 27:case 5:return Te(a),null;case 31:if(a.memoizedState!==null){if(ga(a),a.alternate===null)throw Error(b(340));ql()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 13:if(ga(a),e=a.memoizedState,e!==null&&e.dehydrated!==null){if(a.alternate===null)throw Error(b(340));ql()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 19:return U(_t),null;case 4:return Me(),null;case 10:return Es(a.type),null;case 22:case 23:return ga(a),Ic(),e!==null&&U(Hl),e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 24:return Es(Et),null;case 25:return null;default:return null}}function _m(e,a){switch(Tc(a),a.tag){case 3:Es(Et),Me();break;case 26:case 27:case 5:Te(a);break;case 4:Me();break;case 31:a.memoizedState!==null&&ga(a);break;case 13:ga(a);break;case 19:U(_t);break;case 10:Es(a.type);break;case 22:case 23:ga(a),Ic(),e!==null&&U(Hl);break;case 24:Es(Et)}}function On(e,a){try{var s=a.updateQueue,l=s!==null?s.lastEffect:null;if(l!==null){var r=l.next;s=r;do{if((s.tag&e)===e){l=void 0;var i=s.create,u=s.inst;l=i(),u.destroy=l}s=s.next}while(s!==r)}}catch(M){ct(a,a.return,M)}}function ol(e,a,s){try{var l=a.updateQueue,r=l!==null?l.lastEffect:null;if(r!==null){var i=r.next;l=i;do{if((l.tag&e)===e){var u=l.inst,M=u.destroy;if(M!==void 0){u.destroy=void 0,r=a;var P=s,de=M;try{de()}catch(ge){ct(r,P,ge)}}}l=l.next}while(l!==i)}}catch(ge){ct(a,a.return,ge)}}function km(e){var a=e.updateQueue;if(a!==null){var s=e.stateNode;try{b0(a,s)}catch(l){ct(e,e.return,l)}}}function Em(e,a,s){s.props=Yl(e.type,e.memoizedProps),s.state=e.memoizedState;try{s.componentWillUnmount()}catch(l){ct(e,a,l)}}function Un(e,a){try{var s=e.ref;if(s!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof s=="function"?e.refCleanup=s(l):s.current=l}}catch(r){ct(e,a,r)}}function ps(e,a){var s=e.ref,l=e.refCleanup;if(s!==null)if(typeof l=="function")try{l()}catch(r){ct(e,a,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(r){ct(e,a,r)}else s.current=null}function Am(e){var a=e.type,s=e.memoizedProps,l=e.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":s.autoFocus&&l.focus();break e;case"img":s.src?l.src=s.src:s.srcSet&&(l.srcset=s.srcSet)}}catch(r){ct(e,e.return,r)}}function Sd(e,a,s){try{var l=e.stateNode;ff(l,e.type,s,a),l[It]=a}catch(r){ct(e,e.return,r)}}function Mm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&hl(e.type)||e.tag===4}function Cd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Mm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&hl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function _d(e,a,s){var l=e.tag;if(l===5||l===6)e=e.stateNode,a?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(e,a):(a=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,a.appendChild(e),s=s._reactRootContainer,s!=null||a.onclick!==null||(a.onclick=Za));else if(l!==4&&(l===27&&hl(e.type)&&(s=e.stateNode,a=null),e=e.child,e!==null))for(_d(e,a,s),e=e.sibling;e!==null;)_d(e,a,s),e=e.sibling}function eo(e,a,s){var l=e.tag;if(l===5||l===6)e=e.stateNode,a?s.insertBefore(e,a):s.appendChild(e);else if(l!==4&&(l===27&&hl(e.type)&&(s=e.stateNode),e=e.child,e!==null))for(eo(e,a,s),e=e.sibling;e!==null;)eo(e,a,s),e=e.sibling}function Tm(e){var a=e.stateNode,s=e.memoizedProps;try{for(var l=e.type,r=a.attributes;r.length;)a.removeAttributeNode(r[0]);$t(a,l,s),a[vt]=e,a[It]=s}catch(i){ct(e,e.return,i)}}var Os=!1,Tt=!1,kd=!1,Lm=typeof WeakSet=="function"?WeakSet:Set,Dt=null;function Yh(e,a){if(e=e.containerInfo,Yd=No,e=Pu(e),yc(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var l=s.getSelection&&s.getSelection();if(l&&l.rangeCount!==0){s=l.anchorNode;var r=l.anchorOffset,i=l.focusNode;l=l.focusOffset;try{s.nodeType,i.nodeType}catch{s=null;break e}var u=0,M=-1,P=-1,de=0,ge=0,Se=e,me=null;t:for(;;){for(var he;Se!==s||r!==0&&Se.nodeType!==3||(M=u+r),Se!==i||l!==0&&Se.nodeType!==3||(P=u+l),Se.nodeType===3&&(u+=Se.nodeValue.length),(he=Se.firstChild)!==null;)me=Se,Se=he;for(;;){if(Se===e)break t;if(me===s&&++de===r&&(M=u),me===i&&++ge===l&&(P=u),(he=Se.nextSibling)!==null)break;Se=me,me=Se.parentNode}Se=he}s=M===-1||P===-1?null:{start:M,end:P}}else s=null}s=s||{start:0,end:0}}else s=null;for(Jd={focusedElem:e,selectionRange:s},No=!1,Dt=a;Dt!==null;)if(a=Dt,e=a.child,(a.subtreeFlags&1028)!==0&&e!==null)e.return=a,Dt=e;else for(;Dt!==null;){switch(a=Dt,i=a.alternate,e=a.flags,a.tag){case 0:if((e&4)!==0&&(e=a.updateQueue,e=e!==null?e.events:null,e!==null))for(s=0;s<e.length;s++)r=e[s],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,s=a,r=i.memoizedProps,i=i.memoizedState,l=s.stateNode;try{var Ue=Yl(s.type,r);e=l.getSnapshotBeforeUpdate(Ue,i),l.__reactInternalSnapshotBeforeUpdate=e}catch(Be){ct(s,s.return,Be)}}break;case 3:if((e&1024)!==0){if(e=a.stateNode.containerInfo,s=e.nodeType,s===9)Kd(e);else if(s===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Kd(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(b(163))}if(e=a.sibling,e!==null){e.return=a.return,Dt=e;break}Dt=a.return}}function Om(e,a,s){var l=s.flags;switch(s.tag){case 0:case 11:case 15:zs(e,s),l&4&&On(5,s);break;case 1:if(zs(e,s),l&4)if(e=s.stateNode,a===null)try{e.componentDidMount()}catch(u){ct(s,s.return,u)}else{var r=Yl(s.type,a.memoizedProps);a=a.memoizedState;try{e.componentDidUpdate(r,a,e.__reactInternalSnapshotBeforeUpdate)}catch(u){ct(s,s.return,u)}}l&64&&km(s),l&512&&Un(s,s.return);break;case 3:if(zs(e,s),l&64&&(e=s.updateQueue,e!==null)){if(a=null,s.child!==null)switch(s.child.tag){case 27:case 5:a=s.child.stateNode;break;case 1:a=s.child.stateNode}try{b0(e,a)}catch(u){ct(s,s.return,u)}}break;case 27:a===null&&l&4&&Tm(s);case 26:case 5:zs(e,s),a===null&&l&4&&Am(s),l&512&&Un(s,s.return);break;case 12:zs(e,s);break;case 31:zs(e,s),l&4&&Rm(e,s);break;case 13:zs(e,s),l&4&&Dm(e,s),l&64&&(e=s.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=sf.bind(null,s),Sf(e,s))));break;case 22:if(l=s.memoizedState!==null||Os,!l){a=a!==null&&a.memoizedState!==null||Tt,r=Os;var i=Tt;Os=l,(Tt=a)&&!i?Rs(e,s,(s.subtreeFlags&8772)!==0):zs(e,s),Os=r,Tt=i}break;case 30:break;default:zs(e,s)}}function Um(e){var a=e.alternate;a!==null&&(e.alternate=null,Um(a)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(a=e.stateNode,a!==null&&xa(a)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var bt=null,oa=!1;function Us(e,a,s){for(s=s.child;s!==null;)zm(e,a,s),s=s.sibling}function zm(e,a,s){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(lt,s)}catch{}switch(s.tag){case 26:Tt||ps(s,a),Us(e,a,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:Tt||ps(s,a);var l=bt,r=oa;hl(s.type)&&(bt=s.stateNode,oa=!1),Us(e,a,s),Hn(s.stateNode),bt=l,oa=r;break;case 5:Tt||ps(s,a);case 6:if(l=bt,r=oa,bt=null,Us(e,a,s),bt=l,oa=r,bt!==null)if(oa)try{(bt.nodeType===9?bt.body:bt.nodeName==="HTML"?bt.ownerDocument.body:bt).removeChild(s.stateNode)}catch(i){ct(s,a,i)}else try{bt.removeChild(s.stateNode)}catch(i){ct(s,a,i)}break;case 18:bt!==null&&(oa?(e=bt,kp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,s.stateNode),Hr(e)):kp(bt,s.stateNode));break;case 4:l=bt,r=oa,bt=s.stateNode.containerInfo,oa=!0,Us(e,a,s),bt=l,oa=r;break;case 0:case 11:case 14:case 15:ol(2,s,a),Tt||ol(4,s,a),Us(e,a,s);break;case 1:Tt||(ps(s,a),l=s.stateNode,typeof l.componentWillUnmount=="function"&&Em(s,a,l)),Us(e,a,s);break;case 21:Us(e,a,s);break;case 22:Tt=(l=Tt)||s.memoizedState!==null,Us(e,a,s),Tt=l;break;default:Us(e,a,s)}}function Rm(e,a){if(a.memoizedState===null&&(e=a.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Hr(e)}catch(s){ct(a,a.return,s)}}}function Dm(e,a){if(a.memoizedState===null&&(e=a.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Hr(e)}catch(s){ct(a,a.return,s)}}function Jh(e){switch(e.tag){case 31:case 13:case 19:var a=e.stateNode;return a===null&&(a=e.stateNode=new Lm),a;case 22:return e=e.stateNode,a=e._retryCache,a===null&&(a=e._retryCache=new Lm),a;default:throw Error(b(435,e.tag))}}function to(e,a){var s=Jh(e);a.forEach(function(l){if(!s.has(l)){s.add(l);var r=lf.bind(null,e,l);l.then(r,r)}})}function ca(e,a){var s=a.deletions;if(s!==null)for(var l=0;l<s.length;l++){var r=s[l],i=e,u=a,M=u;e:for(;M!==null;){switch(M.tag){case 27:if(hl(M.type)){bt=M.stateNode,oa=!1;break e}break;case 5:bt=M.stateNode,oa=!1;break e;case 3:case 4:bt=M.stateNode.containerInfo,oa=!0;break e}M=M.return}if(bt===null)throw Error(b(160));zm(i,u,r),bt=null,oa=!1,i=r.alternate,i!==null&&(i.return=null),r.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)Fm(a,e),a=a.sibling}var Xa=null;function Fm(e,a){var s=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ca(a,e),da(e),l&4&&(ol(3,e,e.return),On(3,e),ol(5,e,e.return));break;case 1:ca(a,e),da(e),l&512&&(Tt||s===null||ps(s,s.return)),l&64&&Os&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(s=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=s===null?l:s.concat(l))));break;case 26:var r=Xa;if(ca(a,e),da(e),l&512&&(Tt||s===null||ps(s,s.return)),l&4){var i=s!==null?s.memoizedState:null;if(l=e.memoizedState,s===null)if(l===null)if(e.stateNode===null){e:{l=e.type,s=e.memoizedProps,r=r.ownerDocument||r;t:switch(l){case"title":i=r.getElementsByTagName("title")[0],(!i||i[bs]||i[vt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=r.createElement(l),r.head.insertBefore(i,r.querySelector("head > title"))),$t(i,l,s),i[vt]=e,it(i),l=i;break e;case"link":var u=Fp("link","href",r).get(l+(s.href||""));if(u){for(var M=0;M<u.length;M++)if(i=u[M],i.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&i.getAttribute("rel")===(s.rel==null?null:s.rel)&&i.getAttribute("title")===(s.title==null?null:s.title)&&i.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){u.splice(M,1);break t}}i=r.createElement(l),$t(i,l,s),r.head.appendChild(i);break;case"meta":if(u=Fp("meta","content",r).get(l+(s.content||""))){for(M=0;M<u.length;M++)if(i=u[M],i.getAttribute("content")===(s.content==null?null:""+s.content)&&i.getAttribute("name")===(s.name==null?null:s.name)&&i.getAttribute("property")===(s.property==null?null:s.property)&&i.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&i.getAttribute("charset")===(s.charSet==null?null:s.charSet)){u.splice(M,1);break t}}i=r.createElement(l),$t(i,l,s),r.head.appendChild(i);break;default:throw Error(b(468,l))}i[vt]=e,it(i),l=i}e.stateNode=l}else Bp(r,e.type,e.stateNode);else e.stateNode=Dp(r,l,e.memoizedProps);else i!==l?(i===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):i.count--,l===null?Bp(r,e.type,e.stateNode):Dp(r,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Sd(e,e.memoizedProps,s.memoizedProps)}break;case 27:ca(a,e),da(e),l&512&&(Tt||s===null||ps(s,s.return)),s!==null&&l&4&&Sd(e,e.memoizedProps,s.memoizedProps);break;case 5:if(ca(a,e),da(e),l&512&&(Tt||s===null||ps(s,s.return)),e.flags&32){r=e.stateNode;try{Ns(r,"")}catch(Ue){ct(e,e.return,Ue)}}l&4&&e.stateNode!=null&&(r=e.memoizedProps,Sd(e,r,s!==null?s.memoizedProps:r)),l&1024&&(kd=!0);break;case 6:if(ca(a,e),da(e),l&4){if(e.stateNode===null)throw Error(b(162));l=e.memoizedProps,s=e.stateNode;try{s.nodeValue=l}catch(Ue){ct(e,e.return,Ue)}}break;case 3:if(go=null,r=Xa,Xa=fo(a.containerInfo),ca(a,e),Xa=r,da(e),l&4&&s!==null&&s.memoizedState.isDehydrated)try{Hr(a.containerInfo)}catch(Ue){ct(e,e.return,Ue)}kd&&(kd=!1,Bm(e));break;case 4:l=Xa,Xa=fo(e.stateNode.containerInfo),ca(a,e),da(e),Xa=l;break;case 12:ca(a,e),da(e);break;case 31:ca(a,e),da(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,to(e,l)));break;case 13:ca(a,e),da(e),e.child.flags&8192&&e.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(so=Ee()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,to(e,l)));break;case 22:r=e.memoizedState!==null;var P=s!==null&&s.memoizedState!==null,de=Os,ge=Tt;if(Os=de||r,Tt=ge||P,ca(a,e),Tt=ge,Os=de,da(e),l&8192)e:for(a=e.stateNode,a._visibility=r?a._visibility&-2:a._visibility|1,r&&(s===null||P||Os||Tt||Jl(e)),s=null,a=e;;){if(a.tag===5||a.tag===26){if(s===null){P=s=a;try{if(i=P.stateNode,r)u=i.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none";else{M=P.stateNode;var Se=P.memoizedProps.style,me=Se!=null&&Se.hasOwnProperty("display")?Se.display:null;M.style.display=me==null||typeof me=="boolean"?"":(""+me).trim()}}catch(Ue){ct(P,P.return,Ue)}}}else if(a.tag===6){if(s===null){P=a;try{P.stateNode.nodeValue=r?"":P.memoizedProps}catch(Ue){ct(P,P.return,Ue)}}}else if(a.tag===18){if(s===null){P=a;try{var he=P.stateNode;r?Ep(he,!0):Ep(P.stateNode,!1)}catch(Ue){ct(P,P.return,Ue)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===e)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break e;for(;a.sibling===null;){if(a.return===null||a.return===e)break e;s===a&&(s=null),a=a.return}s===a&&(s=null),a.sibling.return=a.return,a=a.sibling}l&4&&(l=e.updateQueue,l!==null&&(s=l.retryQueue,s!==null&&(l.retryQueue=null,to(e,s))));break;case 19:ca(a,e),da(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,to(e,l)));break;case 30:break;case 21:break;default:ca(a,e),da(e)}}function da(e){var a=e.flags;if(a&2){try{for(var s,l=e.return;l!==null;){if(Mm(l)){s=l;break}l=l.return}if(s==null)throw Error(b(160));switch(s.tag){case 27:var r=s.stateNode,i=Cd(e);eo(e,i,r);break;case 5:var u=s.stateNode;s.flags&32&&(Ns(u,""),s.flags&=-33);var M=Cd(e);eo(e,M,u);break;case 3:case 4:var P=s.stateNode.containerInfo,de=Cd(e);_d(e,de,P);break;default:throw Error(b(161))}}catch(ge){ct(e,e.return,ge)}e.flags&=-3}a&4096&&(e.flags&=-4097)}function Bm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var a=e;Bm(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),e=e.sibling}}function zs(e,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)Om(e,a.alternate,a),a=a.sibling}function Jl(e){for(e=e.child;e!==null;){var a=e;switch(a.tag){case 0:case 11:case 14:case 15:ol(4,a,a.return),Jl(a);break;case 1:ps(a,a.return);var s=a.stateNode;typeof s.componentWillUnmount=="function"&&Em(a,a.return,s),Jl(a);break;case 27:Hn(a.stateNode);case 26:case 5:ps(a,a.return),Jl(a);break;case 22:a.memoizedState===null&&Jl(a);break;case 30:Jl(a);break;default:Jl(a)}e=e.sibling}}function Rs(e,a,s){for(s=s&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var l=a.alternate,r=e,i=a,u=i.flags;switch(i.tag){case 0:case 11:case 15:Rs(r,i,s),On(4,i);break;case 1:if(Rs(r,i,s),l=i,r=l.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(de){ct(l,l.return,de)}if(l=i,r=l.updateQueue,r!==null){var M=l.stateNode;try{var P=r.shared.hiddenCallbacks;if(P!==null)for(r.shared.hiddenCallbacks=null,r=0;r<P.length;r++)f0(P[r],M)}catch(de){ct(l,l.return,de)}}s&&u&64&&km(i),Un(i,i.return);break;case 27:Tm(i);case 26:case 5:Rs(r,i,s),s&&l===null&&u&4&&Am(i),Un(i,i.return);break;case 12:Rs(r,i,s);break;case 31:Rs(r,i,s),s&&u&4&&Rm(r,i);break;case 13:Rs(r,i,s),s&&u&4&&Dm(r,i);break;case 22:i.memoizedState===null&&Rs(r,i,s),Un(i,i.return);break;case 30:break;default:Rs(r,i,s)}a=a.sibling}}function Ed(e,a){var s=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),e=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(e=a.memoizedState.cachePool.pool),e!==s&&(e!=null&&e.refCount++,s!=null&&yn(s))}function Ad(e,a){e=null,a.alternate!==null&&(e=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==e&&(a.refCount++,e!=null&&yn(e))}function Qa(e,a,s,l){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)qm(e,a,s,l),a=a.sibling}function qm(e,a,s,l){var r=a.flags;switch(a.tag){case 0:case 11:case 15:Qa(e,a,s,l),r&2048&&On(9,a);break;case 1:Qa(e,a,s,l);break;case 3:Qa(e,a,s,l),r&2048&&(e=null,a.alternate!==null&&(e=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==e&&(a.refCount++,e!=null&&yn(e)));break;case 12:if(r&2048){Qa(e,a,s,l),e=a.stateNode;try{var i=a.memoizedProps,u=i.id,M=i.onPostCommit;typeof M=="function"&&M(u,a.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(P){ct(a,a.return,P)}}else Qa(e,a,s,l);break;case 31:Qa(e,a,s,l);break;case 13:Qa(e,a,s,l);break;case 23:break;case 22:i=a.stateNode,u=a.alternate,a.memoizedState!==null?i._visibility&2?Qa(e,a,s,l):zn(e,a):i._visibility&2?Qa(e,a,s,l):(i._visibility|=2,Lr(e,a,s,l,(a.subtreeFlags&10256)!==0||!1)),r&2048&&Ed(u,a);break;case 24:Qa(e,a,s,l),r&2048&&Ad(a.alternate,a);break;default:Qa(e,a,s,l)}}function Lr(e,a,s,l,r){for(r=r&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var i=e,u=a,M=s,P=l,de=u.flags;switch(u.tag){case 0:case 11:case 15:Lr(i,u,M,P,r),On(8,u);break;case 23:break;case 22:var ge=u.stateNode;u.memoizedState!==null?ge._visibility&2?Lr(i,u,M,P,r):zn(i,u):(ge._visibility|=2,Lr(i,u,M,P,r)),r&&de&2048&&Ed(u.alternate,u);break;case 24:Lr(i,u,M,P,r),r&&de&2048&&Ad(u.alternate,u);break;default:Lr(i,u,M,P,r)}a=a.sibling}}function zn(e,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var s=e,l=a,r=l.flags;switch(l.tag){case 22:zn(s,l),r&2048&&Ed(l.alternate,l);break;case 24:zn(s,l),r&2048&&Ad(l.alternate,l);break;default:zn(s,l)}a=a.sibling}}var Rn=8192;function Or(e,a,s){if(e.subtreeFlags&Rn)for(e=e.child;e!==null;)Vm(e,a,s),e=e.sibling}function Vm(e,a,s){switch(e.tag){case 26:Or(e,a,s),e.flags&Rn&&e.memoizedState!==null&&Rf(s,Xa,e.memoizedState,e.memoizedProps);break;case 5:Or(e,a,s);break;case 3:case 4:var l=Xa;Xa=fo(e.stateNode.containerInfo),Or(e,a,s),Xa=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Rn,Rn=16777216,Or(e,a,s),Rn=l):Or(e,a,s));break;default:Or(e,a,s)}}function Gm(e){var a=e.alternate;if(a!==null&&(e=a.child,e!==null)){a.child=null;do a=e.sibling,e.sibling=null,e=a;while(e!==null)}}function Dn(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var s=0;s<a.length;s++){var l=a[s];Dt=l,Pm(l,e)}Gm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Hm(e),e=e.sibling}function Hm(e){switch(e.tag){case 0:case 11:case 15:Dn(e),e.flags&2048&&ol(9,e,e.return);break;case 3:Dn(e);break;case 12:Dn(e);break;case 22:var a=e.stateNode;e.memoizedState!==null&&a._visibility&2&&(e.return===null||e.return.tag!==13)?(a._visibility&=-3,ao(e)):Dn(e);break;default:Dn(e)}}function ao(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var s=0;s<a.length;s++){var l=a[s];Dt=l,Pm(l,e)}Gm(e)}for(e=e.child;e!==null;){switch(a=e,a.tag){case 0:case 11:case 15:ol(8,a,a.return),ao(a);break;case 22:s=a.stateNode,s._visibility&2&&(s._visibility&=-3,ao(a));break;default:ao(a)}e=e.sibling}}function Pm(e,a){for(;Dt!==null;){var s=Dt;switch(s.tag){case 0:case 11:case 15:ol(8,s,a);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var l=s.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:yn(s.memoizedState.cache)}if(l=s.child,l!==null)l.return=s,Dt=l;else e:for(s=e;Dt!==null;){l=Dt;var r=l.sibling,i=l.return;if(Um(l),l===s){Dt=null;break e}if(r!==null){r.return=i,Dt=r;break e}Dt=i}}}var Xh={getCacheForType:function(e){var a=Ht(Et),s=a.data.get(e);return s===void 0&&(s=e(),a.data.set(e,s)),s},cacheSignal:function(){return Ht(Et).controller.signal}},Qh=typeof WeakMap=="function"?WeakMap:Map,nt=0,pt=null,Je=null,Qe=0,ot=0,va=null,cl=!1,Ur=!1,Md=!1,Ds=0,jt=0,dl=0,Xl=0,Td=0,ya=0,zr=0,Fn=null,ua=null,
vendor: 20,073 bytes, line 48
48Ld=!1,so=0,$m=0,lo=1/0,ro=null,ul=null,Ot=0,ml=null,Rr=null,Fs=0,Od=0,Ud=null,Im=null,Bn=0,zd=null;function ja(){return(nt&2)!==0&&Qe!==0?Qe&-Qe:ee.T!==null?Vd():Wr()}function Zm(){if(ya===0)if((Qe&536870912)===0||et){var e=Wa;Wa<<=1,(Wa&3932160)===0&&(Wa=262144),ya=e}else ya=536870912;return e=ba.current,e!==null&&(e.flags|=32),ya}function ma(e,a,s){(e===pt&&(ot===2||ot===9)||e.cancelPendingCommit!==null)&&(Dr(e,0),pl(e,Qe,ya,!1)),Ga(e,s),((nt&2)===0||e!==pt)&&(e===pt&&((nt&2)===0&&(Xl|=s),jt===4&&pl(e,Qe,ya,!1)),xs(e))}function Ym(e,a,s){if((nt&6)!==0)throw Error(b(327));var l=!s&&(a&127)===0&&(a&e.expiredLanes)===0||$s(e,a),r=l?ef(e,a):Dd(e,a,!0),i=l;do{if(r===0){Ur&&!l&&pl(e,a,0,!1);break}else{if(s=e.current.alternate,i&&!Kh(s)){r=Dd(e,a,!1),i=!1;continue}if(r===2){if(i=a,e.errorRecoveryDisabledLanes&i)var u=0;else u=e.pendingLanes&-536870913,u=u!==0?u:u&536870912?536870912:0;if(u!==0){a=u;e:{var M=e;r=Fn;var P=M.current.memoizedState.isDehydrated;if(P&&(Dr(M,u).flags|=256),u=Dd(M,u,!1),u!==2){if(Md&&!P){M.errorRecoveryDisabledLanes|=i,Xl|=i,r=4;break e}i=ua,ua=r,i!==null&&(ua===null?ua=i:ua.push.apply(ua,i))}r=u}if(i=!1,r!==2)continue}}if(r===1){Dr(e,0),pl(e,a,0,!0);break}e:{switch(l=e,i=r,i){case 0:case 1:throw Error(b(345));case 4:if((a&4194048)!==a)break;case 6:pl(l,a,ya,!cl);break e;case 2:ua=null;break;case 3:case 5:break;default:throw Error(b(329))}if((a&62914560)===a&&(r=so+300-Ee(),10<r)){if(pl(l,a,ya,!cl),ar(l,0,!0)!==0)break e;Fs=a,l.timeoutHandle=Cp(Jm.bind(null,l,s,ua,ro,Ld,a,ya,Xl,zr,cl,i,"Throttled",-0,0),r);break e}Jm(l,s,ua,ro,Ld,a,ya,Xl,zr,cl,i,null,-0,0)}}break}while(!0);xs(e)}function Jm(e,a,s,l,r,i,u,M,P,de,ge,Se,me,he){if(e.timeoutHandle=-1,Se=a.subtreeFlags,Se&8192||(Se&16785408)===16785408){Se={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Za},Vm(a,i,Se);var Ue=(i&62914560)===i?so-Ee():(i&4194048)===i?$m-Ee():0;if(Ue=Df(Se,Ue),Ue!==null){Fs=i,e.cancelPendingCommit=Ue(sp.bind(null,e,a,i,s,l,r,u,M,P,ge,Se,null,me,he)),pl(e,i,u,!de);return}}sp(e,a,i,s,l,r,u,M,P)}function Kh(e){for(var a=e;;){var s=a.tag;if((s===0||s===11||s===15)&&a.flags&16384&&(s=a.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var l=0;l<s.length;l++){var r=s[l],i=r.getSnapshot;r=r.value;try{if(!aa(i(),r))return!1}catch{return!1}}if(s=a.child,a.subtreeFlags&16384&&s!==null)s.return=a,a=s;else{if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function pl(e,a,s,l){a&=~Td,a&=~Xl,e.suspendedLanes|=a,e.pingedLanes&=~a,l&&(e.warmLanes|=a),l=e.expirationTimes;for(var r=a;0<r;){var i=31-xt(r),u=1<<i;l[i]=-1,r&=~u}s!==0&&Qr(e,s,a)}function no(){return(nt&6)===0?(qn(0),!1):!0}function Rd(){if(Je!==null){if(ot===0)var e=Je.return;else e=Je,ks=Vl=null,Kc(e),kr=null,Nn=0,e=Je;for(;e!==null;)_m(e.alternate,e),e=e.return;Je=null}}function Dr(e,a){var s=e.timeoutHandle;s!==-1&&(e.timeoutHandle=-1,vf(s)),s=e.cancelPendingCommit,s!==null&&(e.cancelPendingCommit=null,s()),Fs=0,Rd(),pt=e,Je=s=Cs(e.current,null),Qe=a,ot=0,va=null,cl=!1,Ur=$s(e,a),Md=!1,zr=ya=Td=Xl=dl=jt=0,ua=Fn=null,Ld=!1,(a&8)!==0&&(a|=a&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=a;0<l;){var r=31-xt(l),i=1<<r;a|=e[r],l&=~i}return Ds=a,ki(),s}function Xm(e,a){Pe=null,ee.H=Mn,a===_r||a===zi?(a=m0(),ot=3):a===qc?(a=m0(),ot=4):ot=a===xd?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,va=a,Je===null&&(jt=1,Ji(e,La(a,e.current)))}function Qm(){var e=ba.current;return e===null?!0:(Qe&4194048)===Qe?Ra===null:(Qe&62914560)===Qe||(Qe&536870912)!==0?e===Ra:!1}function Km(){var e=ee.H;return ee.H=Mn,e===null?Mn:e}function Wm(){var e=ee.A;return ee.A=Xh,e}function io(){jt=4,cl||(Qe&4194048)!==Qe&&ba.current!==null||(Ur=!0),(dl&134217727)===0&&(Xl&134217727)===0||pt===null||pl(pt,Qe,ya,!1)}function Dd(e,a,s){var l=nt;nt|=2;var r=Km(),i=Wm();(pt!==e||Qe!==a)&&(ro=null,Dr(e,a)),a=!1;var u=jt;e:do try{if(ot!==0&&Je!==null){var M=Je,P=va;switch(ot){case 8:Rd(),u=6;break e;case 3:case 2:case 9:case 6:ba.current===null&&(a=!0);var de=ot;if(ot=0,va=null,Fr(e,M,P,de),s&&Ur){u=0;break e}break;default:de=ot,ot=0,va=null,Fr(e,M,P,de)}}Wh(),u=jt;break}catch(ge){Xm(e,ge)}while(!0);return a&&e.shellSuspendCounter++,ks=Vl=null,nt=l,ee.H=r,ee.A=i,Je===null&&(pt=null,Qe=0,ki()),u}function Wh(){for(;Je!==null;)ep(Je)}function ef(e,a){var s=nt;nt|=2;var l=Km(),r=Wm();pt!==e||Qe!==a?(ro=null,lo=Ee()+500,Dr(e,a)):Ur=$s(e,a);e:do try{if(ot!==0&&Je!==null){a=Je;var i=va;t:switch(ot){case 1:ot=0,va=null,Fr(e,a,i,1);break;case 2:case 9:if(d0(i)){ot=0,va=null,tp(a);break}a=function(){ot!==2&&ot!==9||pt!==e||(ot=7),xs(e)},i.then(a,a);break e;case 3:ot=7;break e;case 4:ot=5;break e;case 7:d0(i)?(ot=0,va=null,tp(a)):(ot=0,va=null,Fr(e,a,i,7));break;case 5:var u=null;switch(Je.tag){case 26:u=Je.memoizedState;case 5:case 27:var M=Je;if(u?qp(u):M.stateNode.complete){ot=0,va=null;var P=M.sibling;if(P!==null)Je=P;else{var de=M.return;de!==null?(Je=de,oo(de)):Je=null}break t}}ot=0,va=null,Fr(e,a,i,5);break;case 6:ot=0,va=null,Fr(e,a,i,6);break;case 8:Rd(),jt=6;break e;default:throw Error(b(462))}}tf();break}catch(ge){Xm(e,ge)}while(!0);return ks=Vl=null,ee.H=l,ee.A=r,nt=s,Je!==null?0:(pt=null,Qe=0,ki(),jt)}function tf(){for(;Je!==null&&!oe();)ep(Je)}function ep(e){var a=Sm(e.alternate,e,Ds);e.memoizedProps=e.pendingProps,a===null?oo(e):Je=a}function tp(e){var a=e,s=a.alternate;switch(a.tag){case 15:case 0:a=gm(s,a,a.pendingProps,a.type,void 0,Qe);break;case 11:a=gm(s,a,a.pendingProps,a.type.render,a.ref,Qe);break;case 5:Kc(a);default:_m(s,a),a=Je=Wu(a,Ds),a=Sm(s,a,Ds)}e.memoizedProps=e.pendingProps,a===null?oo(e):Je=a}function Fr(e,a,s,l){ks=Vl=null,Kc(a),kr=null,Nn=0;var r=a.return;try{if(Hh(e,r,a,s,Qe)){jt=1,Ji(e,La(s,e.current)),Je=null;return}}catch(i){if(r!==null)throw Je=r,i;jt=1,Ji(e,La(s,e.current)),Je=null;return}a.flags&32768?(et||l===1?e=!0:Ur||(Qe&536870912)!==0?e=!1:(cl=e=!0,(l===2||l===9||l===3||l===6)&&(l=ba.current,l!==null&&l.tag===13&&(l.flags|=16384))),ap(a,e)):oo(a)}function oo(e){var a=e;do{if((a.flags&32768)!==0){ap(a,cl);return}e=a.return;var s=Ih(a.alternate,a,Ds);if(s!==null){Je=s;return}if(a=a.sibling,a!==null){Je=a;return}Je=a=e}while(a!==null);jt===0&&(jt=5)}function ap(e,a){do{var s=Zh(e.alternate,e);if(s!==null){s.flags&=32767,Je=s;return}if(s=e.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!a&&(e=e.sibling,e!==null)){Je=e;return}Je=e=s}while(e!==null);jt=6,Je=null}function sp(e,a,s,l,r,i,u,M,P){e.cancelPendingCommit=null;do co();while(Ot!==0);if((nt&6)!==0)throw Error(b(327));if(a!==null){if(a===e.current)throw Error(b(177));if(i=a.lanes|a.childLanes,i|=Cc,sr(e,s,i,u,M,P),e===pt&&(Je=pt=null,Qe=0),Rr=a,ml=e,Fs=s,Od=i,Ud=r,Im=l,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,rf(Ve,function(){return op(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||l){l=ee.T,ee.T=null,r=X.p,X.p=2,u=nt,nt|=4;try{Yh(e,a,s)}finally{nt=u,X.p=r,ee.T=l}}Ot=1,lp(),rp(),np()}}function lp(){if(Ot===1){Ot=0;var e=ml,a=Rr,s=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||s){s=ee.T,ee.T=null;var l=X.p;X.p=2;var r=nt;nt|=4;try{Fm(a,e);var i=Jd,u=Pu(e.containerInfo),M=i.focusedElem,P=i.selectionRange;if(u!==M&&M&&M.ownerDocument&&Hu(M.ownerDocument.documentElement,M)){if(P!==null&&yc(M)){var de=P.start,ge=P.end;if(ge===void 0&&(ge=de),"selectionStart"in M)M.selectionStart=de,M.selectionEnd=Math.min(ge,M.value.length);else{var Se=M.ownerDocument||document,me=Se&&Se.defaultView||window;if(me.getSelection){var he=me.getSelection(),Ue=M.textContent.length,Be=Math.min(P.start,Ue),mt=P.end===void 0?Be:Math.min(P.end,Ue);!he.extend&&Be>mt&&(u=mt,mt=Be,Be=u);var se=Gu(M,Be),Q=Gu(M,mt);if(se&&Q&&(he.rangeCount!==1||he.anchorNode!==se.node||he.anchorOffset!==se.offset||he.focusNode!==Q.node||he.focusOffset!==Q.offset)){var ce=Se.createRange();ce.setStart(se.node,se.offset),he.removeAllRanges(),Be>mt?(he.addRange(ce),he.extend(Q.node,Q.offset)):(ce.setEnd(Q.node,Q.offset),he.addRange(ce))}}}}for(Se=[],he=M;he=he.parentNode;)he.nodeType===1&&Se.push({element:he,left:he.scrollLeft,top:he.scrollTop});for(typeof M.focus=="function"&&M.focus(),M=0;M<Se.length;M++){var je=Se[M];je.element.scrollLeft=je.left,je.element.scrollTop=je.top}}No=!!Yd,Jd=Yd=null}finally{nt=r,X.p=l,ee.T=s}}e.current=a,Ot=2}}function rp(){if(Ot===2){Ot=0;var e=ml,a=Rr,s=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||s){s=ee.T,ee.T=null;var l=X.p;X.p=2;var r=nt;nt|=4;try{Om(e,a.alternate,a)}finally{nt=r,X.p=l,ee.T=s}}Ot=3}}function np(){if(Ot===4||Ot===3){Ot=0,ve();var e=ml,a=Rr,s=Fs,l=Im;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Ot=5:(Ot=0,Rr=ml=null,ip(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(ul=null),Kr(s),a=a.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(lt,a,void 0,(a.current.flags&128)===128)}catch{}if(l!==null){a=ee.T,r=X.p,X.p=2,ee.T=null;try{for(var i=e.onRecoverableError,u=0;u<l.length;u++){var M=l[u];i(M.value,{componentStack:M.stack})}}finally{ee.T=a,X.p=r}}(Fs&3)!==0&&co(),xs(e),r=e.pendingLanes,(s&261930)!==0&&(r&42)!==0?e===zd?Bn++:(Bn=0,zd=e):Bn=0,qn(0)}}function ip(e,a){(e.pooledCacheLanes&=a)===0&&(a=e.pooledCache,a!=null&&(e.pooledCache=null,yn(a)))}function co(){return lp(),rp(),np(),op()}function op(){if(Ot!==5)return!1;var e=ml,a=Od;Od=0;var s=Kr(Fs),l=ee.T,r=X.p;try{X.p=32>s?32:s,ee.T=null,s=Ud,Ud=null;var i=ml,u=Fs;if(Ot=0,Rr=ml=null,Fs=0,(nt&6)!==0)throw Error(b(331));var M=nt;if(nt|=4,Hm(i.current),qm(i,i.current,u,s),nt=M,qn(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(lt,i)}catch{}return!0}finally{X.p=r,ee.T=l,ip(e,a)}}function cp(e,a,s){a=La(s,a),a=pd(e.stateNode,a,2),e=rl(e,a,2),e!==null&&(Ga(e,2),xs(e))}function ct(e,a,s){if(e.tag===3)cp(e,e,s);else for(;a!==null;){if(a.tag===3){cp(a,e,s);break}else if(a.tag===1){var l=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ul===null||!ul.has(l))){e=La(s,e),s=dm(2),l=rl(a,s,2),l!==null&&(um(s,l,a,e),Ga(l,2),xs(l));break}}a=a.return}}function Fd(e,a,s){var l=e.pingCache;if(l===null){l=e.pingCache=new Qh;var r=new Set;l.set(a,r)}else r=l.get(a),r===void 0&&(r=new Set,l.set(a,r));r.has(s)||(Md=!0,r.add(s),e=af.bind(null,e,a,s),a.then(e,e))}function af(e,a,s){var l=e.pingCache;l!==null&&l.delete(a),e.pingedLanes|=e.suspendedLanes&s,e.warmLanes&=~s,pt===e&&(Qe&s)===s&&(jt===4||jt===3&&(Qe&62914560)===Qe&&300>Ee()-so?(nt&2)===0&&Dr(e,0):Td|=s,zr===Qe&&(zr=0)),xs(e)}function dp(e,a){a===0&&(a=Wo()),e=Fl(e,a),e!==null&&(Ga(e,a),xs(e))}function sf(e){var a=e.memoizedState,s=0;a!==null&&(s=a.retryLane),dp(e,s)}function lf(e,a){var s=0;switch(e.tag){case 31:case 13:var l=e.stateNode,r=e.memoizedState;r!==null&&(s=r.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(b(314))}l!==null&&l.delete(a),dp(e,s)}function rf(e,a){return ye(e,a)}var uo=null,Br=null,Bd=!1,mo=!1,qd=!1,xl=0;function xs(e){e!==Br&&e.next===null&&(Br===null?uo=Br=e:Br=Br.next=e),mo=!0,Bd||(Bd=!0,of())}function qn(e,a){if(!qd&&mo){qd=!0;do for(var s=!1,l=uo;l!==null;){if(e!==0){var r=l.pendingLanes;if(r===0)var i=0;else{var u=l.suspendedLanes,M=l.pingedLanes;i=(1<<31-xt(42|e)+1)-1,i&=r&~(u&~M),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(s=!0,xp(l,i))}else i=Qe,i=ar(l,l===pt?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(i&3)===0||$s(l,i)||(s=!0,xp(l,i));l=l.next}while(s);qd=!1}}function nf(){up()}function up(){mo=Bd=!1;var e=0;xl!==0&&gf()&&(e=xl);for(var a=Ee(),s=null,l=uo;l!==null;){var r=l.next,i=mp(l,a);i===0?(l.next=null,s===null?uo=r:s.next=r,r===null&&(Br=s)):(s=l,(e!==0||(i&3)!==0)&&(mo=!0)),l=r}Ot!==0&&Ot!==5||qn(e),xl!==0&&(xl=0)}function mp(e,a){for(var s=e.suspendedLanes,l=e.pingedLanes,r=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var u=31-xt(i),M=1<<u,P=r[u];P===-1?((M&s)===0||(M&l)!==0)&&(r[u]=Ko(M,a)):P<=a&&(e.expiredLanes|=M),i&=~M}if(a=pt,s=Qe,s=ar(e,e===a?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,s===0||e===a&&(ot===2||ot===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&we(l),e.callbackNode=null,e.callbackPriority=0;if((s&3)===0||$s(e,s)){if(a=s&-s,a===e.callbackPriority)return a;switch(l!==null&&we(l),Kr(s)){case 2:case 8:s=Ze;break;case 32:s=Ve;break;case 268435456:s=la;break;default:s=Ve}return l=pp.bind(null,e),s=ye(s,l),e.callbackPriority=a,e.callbackNode=s,a}return l!==null&&l!==null&&we(l),e.callbackPriority=2,e.callbackNode=null,2}function pp(e,a){if(Ot!==0&&Ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var s=e.callbackNode;if(co()&&e.callbackNode!==s)return null;var l=Qe;return l=ar(e,e===pt?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Ym(e,l,a),mp(e,Ee()),e.callbackNode!=null&&e.callbackNode===s?pp.bind(null,e):null)}function xp(e,a){if(co())return null;Ym(e,a,!0)}function of(){yf(function(){(nt&6)!==0?ye(ze,nf):up()})}function Vd(){if(xl===0){var e=Sr;e===0&&(e=Ps,Ps<<=1,(Ps&261888)===0&&(Ps=256)),xl=e}return xl}function hp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:or(""+e)}function fp(e,a){var s=a.ownerDocument.createElement("input");return s.name=a.name,s.value=a.value,e.id&&s.setAttribute("form",e.id),a.parentNode.insertBefore(s,a),e=new FormData(e),s.parentNode.removeChild(s),e}function cf(e,a,s,l,r){if(a==="submit"&&s&&s.stateNode===r){var i=hp((r[It]||null).action),u=l.submitter;u&&(a=(a=u[It]||null)?hp(a.formAction):u.getAttribute("formAction"),a!==null&&(i=a,u=null));var M=new Tl("action","action",null,l,r);e.push({event:M,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(xl!==0){var P=u?fp(r,u):new FormData(r);id(s,{pending:!0,data:P,method:r.method,action:i},null,P)}}else typeof i=="function"&&(M.preventDefault(),P=u?fp(r,u):new FormData(r),id(s,{pending:!0,data:P,method:r.method,action:i},i,P))},currentTarget:r}]})}}for(var Gd=0;Gd<Sc.length;Gd++){var Hd=Sc[Gd],df=Hd.toLowerCase(),uf=Hd[0].toUpperCase()+Hd.slice(1);Ja(df,"on"+uf)}Ja(Zu,"onAnimationEnd"),Ja(Yu,"onAnimationIteration"),Ja(Ju,"onAnimationStart"),Ja("dblclick","onDoubleClick"),Ja("focusin","onFocus"),Ja("focusout","onBlur"),Ja(_h,"onTransitionRun"),Ja(kh,"onTransitionStart"),Ja(Eh,"onTransitionCancel"),Ja(Xu,"onTransitionEnd"),ts("onMouseEnter",["mouseout","mouseover"]),ts("onMouseLeave",["mouseout","mouseover"]),ts("onPointerEnter",["pointerout","pointerover"]),ts("onPointerLeave",["pointerout","pointerover"]),gs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),gs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),gs("onBeforeInput",["compositionend","keypress","textInput","paste"]),gs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),gs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),gs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vn="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(" "),mf=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vn));function bp(e,a){a=(a&4)!==0;for(var s=0;s<e.length;s++){var l=e[s],r=l.event;l=l.listeners;e:{var i=void 0;if(a)for(var u=l.length-1;0<=u;u--){var M=l[u],P=M.instance,de=M.currentTarget;if(M=M.listener,P!==i&&r.isPropagationStopped())break e;i=M,r.currentTarget=de;try{i(r)}catch(ge){_i(ge)}r.currentTarget=null,i=P}else for(u=0;u<l.length;u++){if(M=l[u],P=M.instance,de=M.currentTarget,M=M.listener,P!==i&&r.isPropagationStopped())break e;i=M,r.currentTarget=de;try{i(r)}catch(ge){_i(ge)}r.currentTarget=null,i=P}}}}function Xe(e,a){var s=a[Pa];s===void 0&&(s=a[Pa]=new Set);var l=e+"__bubble";s.has(l)||(gp(a,e,2,!1),s.add(l))}function Pd(e,a,s){var l=0;a&&(l|=4),gp(s,e,l,a)}var po="_reactListening"+Math.random().toString(36).slice(2);function $d(e){if(!e[po]){e[po]=!0,rr.forEach(function(s){s!=="selectionchange"&&(mf.has(s)||Pd(s,!1,e),Pd(s,!0,e))});var a=e.nodeType===9?e:e.ownerDocument;a===null||a[po]||(a[po]=!0,Pd("selectionchange",!1,a))}}function gp(e,a,s,l){switch(Zp(a)){case 2:var r=qf;break;case 8:r=Vf;break;default:r=nu}s=r.bind(null,a,s,e),r=void 0,!cr||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(r=!0),l?r!==void 0?e.addEventListener(a,s,{capture:!0,passive:r}):e.addEventListener(a,s,!0):r!==void 0?e.addEventListener(a,s,{passive:r}):e.addEventListener(a,s,!1)}function Id(e,a,s,l,r){var i=l;if((a&1)===0&&(a&2)===0&&l!==null)e:for(;;){if(l===null)return;var u=l.tag;if(u===3||u===4){var M=l.stateNode.containerInfo;if(M===r)break;if(u===4)for(u=l.return;u!==null;){var P=u.tag;if((P===3||P===4)&&u.stateNode.containerInfo===r)return;u=u.return}for(;M!==null;){if(u=$a(M),u===null)return;if(P=u.tag,P===5||P===6||P===26||P===27){l=i=u;continue e}M=M.parentNode}}l=l.return}hi(function(){var de=i,ge=kl(s),Se=[];e:{var me=Qu.get(e);if(me!==void 0){var he=Tl,Ue=e;switch(e){case"keypress":if(dr(s)===0)break e;case"keydown":case"keyup":he=on;break;case"focusin":Ue="focus",he=is;break;case"focusout":Ue="blur",he=is;break;case"beforeblur":case"afterblur":he=is;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":he=ns;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":he=tc;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":he=pc;break;case Zu:case Yu:case Ju:he=lc;break;case Xu:he=hc;break;case"scroll":case"scrollend":he=gi;break;case"wheel":he=bc;break;case"copy":case"cut":case"paste":he=Js;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":he=Xs;break;case"toggle":case"beforetoggle":he=vc}var Be=(a&4)!==0,mt=!Be&&(e==="scroll"||e==="scrollend"),se=Be?me!==null?me+"Capture":null:me;Be=[];for(var Q=de,ce;Q!==null;){var je=Q;if(ce=je.stateNode,je=je.tag,je!==5&&je!==26&&je!==27||ce===null||se===null||(je=El(Q,se),je!=null&&Be.push(Gn(Q,je,ce))),mt)break;Q=Q.return}0<Be.length&&(me=new he(me,Ue,null,s,ge),Se.push({event:me,listeners:Be}))}}if((a&7)===0){e:{if(me=e==="mouseover"||e==="pointerover",he=e==="mouseout"||e==="pointerout",me&&s!==wt&&(Ue=s.relatedTarget||s.fromElement)&&($a(Ue)||Ue[Aa]))break e;if((he||me)&&(me=ge.window===ge?ge:(me=ge.ownerDocument)?me.defaultView||me.parentWindow:window,he?(Ue=s.relatedTarget||s.toElement,he=de,Ue=Ue?$a(Ue):null,Ue!==null&&(mt=p(Ue),Be=Ue.tag,Ue!==mt||Be!==5&&Be!==27&&Be!==6)&&(Ue=null)):(he=null,Ue=de),he!==Ue)){if(Be=ns,je="onMouseLeave",se="onMouseEnter",Q="mouse",(e==="pointerout"||e==="pointerover")&&(Be=Xs,je="onPointerLeave",se="onPointerEnter",Q="pointer"),mt=he==null?me:Sl(he),ce=Ue==null?me:Sl(Ue),me=new Be(je,Q+"leave",he,s,ge),me.target=mt,me.relatedTarget=ce,je=null,$a(ge)===de&&(Be=new Be(se,Q+"enter",Ue,s,ge),Be.target=ce,Be.relatedTarget=mt,je=Be),mt=je,he&&Ue)t:{for(Be=pf,se=he,Q=Ue,ce=0,je=se;je;je=Be(je))ce++;je=0;for(var De=Q;De;De=Be(De))je++;for(;0<ce-je;)se=Be(se),ce--;for(;0<je-ce;)Q=Be(Q),je--;for(;ce--;){if(se===Q||Q!==null&&se===Q.alternate){Be=se;break t}se=Be(se),Q=Be(Q)}Be=null}else Be=null;he!==null&&vp(Se,me,he,Be,!1),Ue!==null&&mt!==null&&vp(Se,mt,Ue,Be,!0)}}e:{if(me=de?Sl(de):window,he=me.nodeName&&me.nodeName.toLowerCase(),he==="select"||he==="input"&&me.type==="file")var at=un;else if(Ss(me))if(mn)at=Ci;else{at=wi;var Re=Ni}else he=me.nodeName,!he||he.toLowerCase()!=="input"||me.type!=="checkbox"&&me.type!=="radio"?de&&Vt(de.elementType)&&(at=un):at=Si;
vendor: 4,939 bytes, lines 48-49
48if(at&&(at=at(e,de))){Ct(Se,at,s,ge);break e}Re&&Re(e,me,de),e==="focusout"&&de&&me.type==="number"&&de.memoizedProps.value!=null&&Ia(me,"number",me.value)}switch(Re=de?Sl(de):window,e){case"focusin":(Ss(Re)||Re.contentEditable==="true")&&(fr=Re,jc=de,bn=null);break;case"focusout":bn=jc=fr=null;break;case"mousedown":Nc=!0;break;case"contextmenu":case"mouseup":case"dragend":Nc=!1,$u(Se,s,ge);break;case"selectionchange":if(Ch)break;case"keydown":case"keyup":$u(Se,s,ge)}var $e;if(dn)e:{switch(e){case"compositionstart":var Ke="onCompositionStart";break e;case"compositionend":Ke="onCompositionEnd";break e;case"compositionupdate":Ke="onCompositionUpdate";break e}Ke=void 0}else fe?q(e,s)&&(Ke="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(Ke="onCompositionStart");Ke&&(n&&s.locale!=="ko"&&(fe||Ke!=="onCompositionStart"?Ke==="onCompositionEnd"&&fe&&($e=fi()):(ls=ge,rn="value"in ls?ls.value:ls.textContent,fe=!0)),Re=xo(de,Ke),0<Re.length&&(Ke=new os(Ke,e,null,s,ge),Se.push({event:Ke,listeners:Re}),$e?Ke.data=$e:($e=be(s),$e!==null&&(Ke.data=$e)))),($e=yi?Ne(e,s):St(e,s))&&(Ke=xo(de,"onBeforeInput"),0<Ke.length&&(Re=new os("onBeforeInput","beforeinput",null,s,ge),Se.push({event:Re,listeners:Ke}),Re.data=$e)),cf(Se,e,de,s,ge)}bp(Se,a)})}function Gn(e,a,s){return{instance:e,listener:a,currentTarget:s}}function xo(e,a){for(var s=a+"Capture",l=[];e!==null;){var r=e,i=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||i===null||(r=El(e,s),r!=null&&l.unshift(Gn(e,r,i)),r=El(e,a),r!=null&&l.push(Gn(e,r,i))),e.tag===3)return l;e=e.return}return[]}function pf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function vp(e,a,s,l,r){for(var i=a._reactName,u=[];s!==null&&s!==l;){var M=s,P=M.alternate,de=M.stateNode;if(M=M.tag,P!==null&&P===l)break;M!==5&&M!==26&&M!==27||de===null||(P=de,r?(de=El(s,i),de!=null&&u.unshift(Gn(s,de,P))):r||(de=El(s,i),de!=null&&u.push(Gn(s,de,P)))),s=s.return}u.length!==0&&e.push({event:a,listeners:u})}var xf=/\r\n?/g,hf=/\u0000|\uFFFD/g;function yp(e){return(typeof e=="string"?e:""+e).replace(xf,`
49`).replace(hf,"")}function jp(e,a){return a=yp(a),yp(e)===a}function ut(e,a,s,l,r,i){switch(s){case"children":typeof l=="string"?a==="body"||a==="textarea"&&l===""||Ns(e,l):(typeof l=="number"||typeof l=="bigint")&&a!=="body"&&Ns(e,""+l);break;case"className":qt(e,"class",l);break;case"tabIndex":qt(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":qt(e,s,l);break;case"style":ia(e,l,i);break;case"data":if(a!=="object"){qt(e,"data",l);break}case"src":case"href":if(l===""&&(a!=="a"||s!=="href")){e.removeAttribute(s);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(s);break}l=or(""+l),e.setAttribute(s,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(s==="formAction"?(a!=="input"&&ut(e,a,"name",r.name,r,null),ut(e,a,"formEncType",r.formEncType,r,null),ut(e,a,"formMethod",r.formMethod,r,null),ut(e,a,"formTarget",r.formTarget,r,null)):(ut(e,a,"encType",r.encType,r,null),ut(e,a,"method",r.method,r,null),ut(e,a,"target",r.target,r,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(s);break}l=or(""+l),e.setAttribute(s,l);break;case"onClick":l!=null&&(e.onclick=Za);break;case"onScroll":l!=null&&Xe("scroll",e);break;case"onScrollEnd":l!=null&&Xe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(b(61));if(s=l.__html,s!=null){if(r.children!=null)throw Error(b(60));e.innerHTML=s}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}s=or(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(s,""+l):e.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
49ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(s,""):e.removeAttribute(s);break;case"capture":case"download":l===!0?e.setAttribute(s,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(s,l):e.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(s,l):e.removeAttribute(s);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(s):e.setAttribute(s,l);break;case"popover":Xe("beforetoggle",e),Xe("toggle",e),vs(e,"popover",l);break;case"xlinkActuate":Ma(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Ma(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Ma(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Ma(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Ma(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Ma(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Ma(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Ma(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Ma(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":vs(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=Cl.get(s)||s,vs(e,s,l))}}function Zd(e,a,s,l,r,i){switch(s){case"style":ia(e,l,i);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(b(61));if(s=l.__html,s!=null){if(r.children!=null)throw Error(b(60));e.innerHTML=s}}break;case"children":typeof l=="string"?Ns(e,l):(typeof l=="number"||typeof l=="bigint")&&Ns(e,""+l);break;case"onScroll":l!=null&&Xe("scroll",e);break;case"onScrollEnd":l!=null&&Xe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Za);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!nr.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(r=s.endsWith("Capture"),a=s.slice(2,r?s.length-7:void 0),i=e[It]||null,i=i!=null?i[s]:null,typeof i=="function"&&e.removeEventListener(a,i,r),typeof l=="function")){typeof i!="function"&&i!==null&&(s in e?e[s]=null:e.hasAttribute(s)&&e.removeAttribute(s)),e.addEventListener(a,l,r);break e}s in e?e[s]=l:l===!0?e.setAttribute(s,""):vs(e,s,l)}}}function $t(e,a,s){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Xe("error",e),Xe("load",e);var l=!1,r=!1,i;for(i in s)if(s.hasOwnProperty(i)){var u=s[i];if(u!=null)switch(i){case"src":l=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(b(137,a));default:ut(e,a,i,u,s,null)}}r&&ut(e,a,"srcSet",s.srcSet,s,null),l&&ut(e,a,"src",s.src,s,null);return;case"input":Xe("invalid",e);var M=i=u=r=null,P=null,de=null;for(l in s)if(s.hasOwnProperty(l)){var ge=s[l];if(ge!=null)switch(l){case"name":r=ge;break;case"type":u=ge;break;case"checked":P=ge;break;case"defaultChecked":de=ge;break;case"value":i=ge;break;case"defaultValue":M=ge;break;case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(b(137,a));break;default:ut(e,a,l,ge,s,null)}}ys(e,i,M,P,de,u,r,!1);return;case"select":Xe("invalid",e),l=u=i=null;for(r in s)if(s.hasOwnProperty(r)&&(M=s[r],M!=null))switch(r){case"value":i=M;break;case"defaultValue":u=M;break;case"multiple":l=M;default:ut(e,a,r,M,s,null)}a=i,s=u,e.multiple=!!l,a!=null?Jt(e,!!l,a,!1):s!=null&&Jt(e,!!l,s,!0);return;case"textarea":Xe("invalid",e),i=r=l=null;for(u in s)if(s.hasOwnProperty(u)&&(M=s[u],M!=null))switch(u){case"value":l=M;break;case"defaultValue":r=M;break;case"children":i=M;break;case"dangerouslySetInnerHTML":if(M!=null)throw Error(b(91));break;default:ut(e,a,u,M,s,null)}mi(e,l,r,i);return;case"option":for(P in s)if(s.hasOwnProperty(P)&&(l=s[P],l!=null))switch(P){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:ut(e,a,P,l,s,null)}return;case"dialog":Xe("beforetoggle",e),Xe("toggle",e),Xe("cancel",e),Xe("close",e);break;case"iframe":case"object":Xe("load",e);break;case"video":case"audio":for(l=0;l<Vn.length;l++)Xe(Vn[l],e);break;case"image":Xe("error",e),Xe("load",e);break;case"details":Xe("toggle",e);break;case"embed":case"source":case"link":Xe("error",e),Xe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(de in s)if(s.hasOwnProperty(de)&&(l=s[de],l!=null))switch(de){case"children":case"dangerouslySetInnerHTML":throw Error(b(137,a));default:ut(e,a,de,l,s,null)}return;default:if(Vt(a)){for(ge in s)s.hasOwnProperty(ge)&&(l=s[ge],l!==void 0&&Zd(e,a,ge,l,s,void 0));return}}for(M in s)s.hasOwnProperty(M)&&(l=s[M],l!=null&&ut(e,a,M,l,s,null))}function ff(e,a,s,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,i=null,u=null,M=null,P=null,de=null,ge=null;for(he in s){var Se=s[he];if(s.hasOwnProperty(he)&&Se!=null)switch(he){case"checked":break;case"value":break;case"defaultValue":P=Se;default:l.hasOwnProperty(he)||ut(e,a,he,null,l,Se)}}for(var me in l){var he=l[me];if(Se=s[me],l.hasOwnProperty(me)&&(he!=null||Se!=null))switch(me){case"type":i=he;break;case"name":r=he;break;case"checked":de=he;break;case"defaultChecked":ge=he;break;case"value":u=he;break;case"defaultValue":M=he;break;case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(b(137,a));break;default:he!==Se&&ut(e,a,me,he,l,Se)}}ss(e,u,M,P,de,ge,i,r);return;case"select":he=u=M=me=null;for(i in s)if(P=s[i],s.hasOwnProperty(i)&&P!=null)switch(i){case"value":break;case"multiple":he=P;default:l.hasOwnProperty(i)||ut(e,a,i,null,l,P)}for(r in l)if(i=l[r],P=s[r],l.hasOwnProperty(r)&&(i!=null||P!=null))switch(r){case"value":me=i;break;case"defaultValue":M=i;break;case"multiple":u=i;default:i!==P&&ut(e,a,r,i,l,P)}a=M,s=u,l=he,me!=null?Jt(e,!!s,me,!1):!!l!=!!s&&(a!=null?Jt(e,!!s,a,!0):Jt(e,!!s,s?[]:"",!1));return;case"textarea":he=me=null;for(M in s)if(r=s[M],s.hasOwnProperty(M)&&r!=null&&!l.hasOwnProperty(M))switch(M){case"value":break;case"children":break;default:ut(e,a,M,null,l,r)}for(u in l)if(r=l[u],i=s[u],l.hasOwnProperty(u)&&(r!=null||i!=null))switch(u){case"value":me=r;break;case"defaultValue":he=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(b(91));break;default:r!==i&&ut(e,a,u,r,l,i)}js(e,me,he);return;case"option":for(var Ue in s)if(me=s[Ue],s.hasOwnProperty(Ue)&&me!=null&&!l.hasOwnProperty(Ue))switch(Ue){case"selected":e.selected=!1;break;default:ut(e,a,Ue,null,l,me)}for(P in l)if(me=l[P],he=s[P],l.hasOwnProperty(P)&&me!==he&&(me!=null||he!=null))switch(P){case"selected":e.selected=me&&typeof me!="function"&&typeof me!="symbol";break;default:ut(e,a,P,me,l,he)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Be in s)me=s[Be],s.hasOwnProperty(Be)&&me!=null&&!l.hasOwnProperty(Be)&&ut(e,a,Be,null,l,me);for(de in l)if(me=l[de],he=s[de],l.hasOwnProperty(de)&&me!==he&&(me!=null||he!=null))switch(de){case"children":case"dangerouslySetInnerHTML":if(me!=null)throw Error(b(137,a));break;default:ut(e,a,de,me,l,he)}return;default:if(Vt(a)){for(var mt in s)me=s[mt],s.hasOwnProperty(mt)&&me!==void 0&&!l.hasOwnProperty(mt)&&Zd(e,a,mt,void 0,l,me);for(ge in l)me=l[ge],he=s[ge],!l.hasOwnProperty(ge)||me===he||me===void 0&&he===void 0||Zd(e,a,ge,me,l,he);return}}for(var se in s)me=s[se],s.hasOwnProperty(se)&&me!=null&&!l.hasOwnProperty(se)&&ut(e,a,se,null,l,me);for(Se in l)me=l[Se],he=s[Se],!l.hasOwnProperty(Se)||me===he||me==null&&he==null||ut(e,a,Se,me,l,he)}function Np(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function bf(){if(typeof performance.getEntriesByType=="function"){for(var e=0,a=0,s=performance.getEntriesByType("resource"),l=0;l<s.length;l++){var r=s[l],i=r.transferSize,u=r.initiatorType,M=r.duration;if(i&&M&&Np(u)){for(u=0,M=r.responseEnd,l+=1;l<s.length;l++){var P=s[l],de=P.startTime;if(de>M)break;var ge=P.transferSize,Se=P.initiatorType;ge&&Np(Se)&&(P=P.responseEnd,u+=ge*(P<M?1:(M-de)/(P-de)))}if(--l,a+=8*(i+u)/(r.duration/1e3),e++,10<e)break}}if(0<e)return a/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Yd=null,Jd=null;
vendor: 14,018 bytes, line 49
49function ho(e){return e.nodeType===9?e:e.ownerDocument}function wp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Sp(e,a){if(e===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&a==="foreignObject"?0:e}function Xd(e,a){return e==="textarea"||e==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Qd=null;function gf(){var e=window.event;return e&&e.type==="popstate"?e===Qd?!1:(Qd=e,!0):(Qd=null,!1)}var Cp=typeof setTimeout=="function"?setTimeout:void 0,vf=typeof clearTimeout=="function"?clearTimeout:void 0,_p=typeof Promise=="function"?Promise:void 0,yf=typeof queueMicrotask=="function"?queueMicrotask:typeof _p<"u"?function(e){return _p.resolve(null).then(e).catch(jf)}:Cp;function jf(e){setTimeout(function(){throw e})}function hl(e){return e==="head"}function kp(e,a){var s=a,l=0;do{var r=s.nextSibling;if(e.removeChild(s),r&&r.nodeType===8)if(s=r.data,s==="/$"||s==="/&"){if(l===0){e.removeChild(r),Hr(a);return}l--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")l++;else if(s==="html")Hn(e.ownerDocument.documentElement);else if(s==="head"){s=e.ownerDocument.head,Hn(s);for(var i=s.firstChild;i;){var u=i.nextSibling,M=i.nodeName;i[bs]||M==="SCRIPT"||M==="STYLE"||M==="LINK"&&i.rel.toLowerCase()==="stylesheet"||s.removeChild(i),i=u}}else s==="body"&&Hn(e.ownerDocument.body);s=r}while(s);Hr(a)}function Ep(e,a){var s=e;e=0;do{var l=s.nextSibling;if(s.nodeType===1?a?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(a?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),l&&l.nodeType===8)if(s=l.data,s==="/$"){if(e===0)break;e--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||e++;s=l}while(s)}function Kd(e){var a=e.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var s=a;switch(a=a.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":Kd(s),xa(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}e.removeChild(s)}}function Nf(e,a,s,l){for(;e.nodeType===1;){var r=s;if(e.nodeName.toLowerCase()!==a.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[bs])switch(a){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(a==="input"&&e.type==="hidden"){var i=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Da(e.nextSibling),e===null)break}return null}function wf(e,a,s){if(a==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!s||(e=Da(e.nextSibling),e===null))return null;return e}function Ap(e,a){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Da(e.nextSibling),e===null))return null;return e}function Wd(e){return e.data==="$?"||e.data==="$~"}function eu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Sf(e,a){var s=e.ownerDocument;if(e.data==="$~")e._reactRetry=a;else if(e.data!=="$?"||s.readyState!=="loading")a();else{var l=function(){a(),s.removeEventListener("DOMContentLoaded",l)};s.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Da(e){for(;e!=null;e=e.nextSibling){var a=e.nodeType;if(a===1||a===3)break;if(a===8){if(a=e.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return e}var tu=null;function Mp(e){e=e.nextSibling;for(var a=0;e;){if(e.nodeType===8){var s=e.data;if(s==="/$"||s==="/&"){if(a===0)return Da(e.nextSibling);a--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||a++}e=e.nextSibling}return null}function Tp(e){e=e.previousSibling;for(var a=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(a===0)return e;a--}else s!=="/$"&&s!=="/&"||a++}e=e.previousSibling}return null}function Lp(e,a,s){switch(a=ho(s),e){case"html":if(e=a.documentElement,!e)throw Error(b(452));return e;case"head":if(e=a.head,!e)throw Error(b(453));return e;case"body":if(e=a.body,!e)throw Error(b(454));return e;default:throw Error(b(451))}}function Hn(e){for(var a=e.attributes;a.length;)e.removeAttributeNode(a[0]);xa(e)}var Fa=new Map,Op=new Set;function fo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Bs=X.d;X.d={f:Cf,r:_f,D:kf,C:Ef,L:Af,m:Mf,X:Lf,S:Tf,M:Of};function Cf(){var e=Bs.f(),a=no();return e||a}function _f(e){var a=Zt(e);a!==null&&a.tag===5&&a.type==="form"?X0(a):Bs.r(e)}var qr=typeof document>"u"?null:document;function Up(e,a,s){var l=qr;if(l&&typeof a=="string"&&a){var r=Lt(a);r='link[rel="'+e+'"][href="'+r+'"]',typeof s=="string"&&(r+='[crossorigin="'+s+'"]'),Op.has(r)||(Op.add(r),e={rel:e,crossOrigin:s,href:a},l.querySelector(r)===null&&(a=l.createElement("link"),$t(a,"link",e),it(a),l.head.appendChild(a)))}}function kf(e){Bs.D(e),Up("dns-prefetch",e,null)}function Ef(e,a){Bs.C(e,a),Up("preconnect",e,a)}function Af(e,a,s){Bs.L(e,a,s);var l=qr;if(l&&e&&a){var r='link[rel="preload"][as="'+Lt(a)+'"]';a==="image"&&s&&s.imageSrcSet?(r+='[imagesrcset="'+Lt(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(r+='[imagesizes="'+Lt(s.imageSizes)+'"]')):r+='[href="'+Lt(e)+'"]';var i=r;switch(a){case"style":i=Vr(e);break;case"script":i=Gr(e)}Fa.has(i)||(e=m({rel:"preload",href:a==="image"&&s&&s.imageSrcSet?void 0:e,as:a},s),Fa.set(i,e),l.querySelector(r)!==null||a==="style"&&l.querySelector(Pn(i))||a==="script"&&l.querySelector($n(i))||(a=l.createElement("link"),$t(a,"link",e),it(a),l.head.appendChild(a)))}}function Mf(e,a){Bs.m(e,a);var s=qr;if(s&&e){var l=a&&typeof a.as=="string"?a.as:"script",r='link[rel="modulepreload"][as="'+Lt(l)+'"][href="'+Lt(e)+'"]',i=r;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Gr(e)}if(!Fa.has(i)&&(e=m({rel:"modulepreload",href:e},a),Fa.set(i,e),s.querySelector(r)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector($n(i)))return}l=s.createElement("link"),$t(l,"link",e),it(l),s.head.appendChild(l)}}}function Tf(e,a,s){Bs.S(e,a,s);var l=qr;if(l&&e){var r=es(l).hoistableStyles,i=Vr(e);a=a||"default";var u=r.get(i);if(!u){var M={loading:0,preload:null};if(u=l.querySelector(Pn(i)))M.loading=5;else{e=m({rel:"stylesheet",href:e,"data-precedence":a},s),(s=Fa.get(i))&&au(e,s);var P=u=l.createElement("link");it(P),$t(P,"link",e),P._p=new Promise(function(de,ge){P.onload=de,P.onerror=ge}),P.addEventListener("load",function(){M.loading|=1}),P.addEventListener("error",function(){M.loading|=2}),M.loading|=4,bo(u,a,l)}u={type:"stylesheet",instance:u,count:1,state:M},r.set(i,u)}}}function Lf(e,a){Bs.X(e,a);var s=qr;if(s&&e){var l=es(s).hoistableScripts,r=Gr(e),i=l.get(r);i||(i=s.querySelector($n(r)),i||(e=m({src:e,async:!0},a),(a=Fa.get(r))&&su(e,a),i=s.createElement("script"),it(i),$t(i,"link",e),s.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(r,i))}}function Of(e,a){Bs.M(e,a);var s=qr;if(s&&e){var l=es(s).hoistableScripts,r=Gr(e),i=l.get(r);i||(i=s.querySelector($n(r)),i||(e=m({src:e,async:!0,type:"module"},a),(a=Fa.get(r))&&su(e,a),i=s.createElement("script"),it(i),$t(i,"link",e),s.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(r,i))}}function zp(e,a,s,l){var r=(r=_e.current)?fo(r):null;if(!r)throw Error(b(446));switch(e){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(a=Vr(s.href),s=es(r).hoistableStyles,l=s.get(a),l||(l={type:"style",instance:null,count:0,state:null},s.set(a,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){e=Vr(s.href);var i=es(r).hoistableStyles,u=i.get(e);if(u||(r=r.ownerDocument||r,u={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,u),(i=r.querySelector(Pn(e)))&&!i._p&&(u.instance=i,u.state.loading=5),Fa.has(e)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Fa.set(e,s),i||Uf(r,e,s,u.state))),a&&l===null)throw Error(b(528,""));return u}if(a&&l!==null)throw Error(b(529,""));return null;case"script":return a=s.async,s=s.src,typeof s=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Gr(s),s=es(r).hoistableScripts,l=s.get(a),l||(l={type:"script",instance:null,count:0,state:null},s.set(a,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(b(444,e))}}function Vr(e){return'href="'+Lt(e)+'"'}function Pn(e){return'link[rel="stylesheet"]['+e+"]"}function Rp(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function Uf(e,a,s,l){e.querySelector('link[rel="preload"][as="style"]['+a+"]")?l.loading=1:(a=e.createElement("link"),l.preload=a,a.addEventListener("load",function(){return l.loading|=1}),a.addEventListener("error",function(){return l.loading|=2}),$t(a,"link",s),it(a),e.head.appendChild(a))}function Gr(e){return'[src="'+Lt(e)+'"]'}function $n(e){return"script[async]"+e}function Dp(e,a,s){if(a.count++,a.instance===null)switch(a.type){case"style":var l=e.querySelector('style[data-href~="'+Lt(s.href)+'"]');if(l)return a.instance=l,it(l),l;var r=m({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),it(l),$t(l,"style",r),bo(l,s.precedence,e),a.instance=l;case"stylesheet":r=Vr(s.href);var i=e.querySelector(Pn(r));if(i)return a.state.loading|=4,a.instance=i,it(i),i;l=Rp(s),(r=Fa.get(r))&&au(l,r),i=(e.ownerDocument||e).createElement("link"),it(i);var u=i;return u._p=new Promise(function(M,P){u.onload=M,u.onerror=P}),$t(i,"link",l),a.state.loading|=4,bo(i,s.precedence,e),a.instance=i;case"script":return i=Gr(s.src),(r=e.querySelector($n(i)))?(a.instance=r,it(r),r):(l=s,(r=Fa.get(i))&&(l=m({},s),su(l,r)),e=e.ownerDocument||e,r=e.createElement("script"),it(r),$t(r,"link",l),e.head.appendChild(r),a.instance=r);case"void":return null;default:throw Error(b(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(l=a.instance,a.state.loading|=4,bo(l,s.precedence,e));return a.instance}function bo(e,a,s){for(var l=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=l.length?l[l.length-1]:null,i=r,u=0;u<l.length;u++){var M=l[u];if(M.dataset.precedence===a)i=M;else if(i!==r)break}i?i.parentNode.insertBefore(e,i.nextSibling):(a=s.nodeType===9?s.head:s,a.insertBefore(e,a.firstChild))}function au(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.title==null&&(e.title=a.title)}function su(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.integrity==null&&(e.integrity=a.integrity)}var go=null;function Fp(e,a,s){if(go===null){var l=new Map,r=go=new Map;r.set(s,l)}else r=go,l=r.get(s),l||(l=new Map,r.set(s,l));if(l.has(e))return l;for(l.set(e,null),s=s.getElementsByTagName(e),r=0;r<s.length;r++){var i=s[r];if(!(i[bs]||i[vt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var u=i.getAttribute(a)||"";u=e+u;var M=l.get(u);M?M.push(i):l.set(u,[i])}}return l}function Bp(e,a,s){e=e.ownerDocument||e,e.head.insertBefore(s,a==="title"?e.querySelector("head > title"):null)}function zf(e,a,s){if(s===1||a.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return e=a.disabled,typeof a.precedence=="string"&&e==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function qp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Rf(e,a,s,l){if(s.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var r=Vr(l.href),i=a.querySelector(Pn(r));if(i){a=i._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(e.count++,e=vo.bind(e),a.then(e,e)),s.state.loading|=4,s.instance=i,it(i);return}i=a.ownerDocument||a,l=Rp(l),(r=Fa.get(r))&&au(l,r),i=i.createElement("link"),it(i);var u=i;u._p=new Promise(function(M,P){u.onload=M,u.onerror=P}),$t(i,"link",l),s.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(s,a),(a=s.state.preload)&&(s.state.loading&3)===0&&(e.count++,s=vo.bind(e),a.addEventListener("load",s),a.addEventListener("error",s))}}var lu=0;function Df(e,a){return e.stylesheets&&e.count===0&&jo(e,e.stylesheets),0<e.count||0<e.imgCount?function(s){var l=setTimeout(function(){if(e.stylesheets&&jo(e,e.stylesheets),e.unsu
vendor: 10,539 bytes, line 49
49spend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+a);0<e.imgBytes&&lu===0&&(lu=62500*bf());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&jo(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>lu?50:800)+a);return e.unsuspend=s,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(r)}}:null}function vo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)jo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var yo=null;function jo(e,a){e.stylesheets=null,e.unsuspend!==null&&(e.count++,yo=new Map,a.forEach(Ff,e),yo=null,vo.call(e))}function Ff(e,a){if(!(a.state.loading&4)){var s=yo.get(e);if(s)var l=s.get(null);else{s=new Map,yo.set(e,s);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<r.length;i++){var u=r[i];(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")&&(s.set(u.dataset.precedence,u),l=u)}l&&s.set(null,l)}r=a.instance,u=r.getAttribute("data-precedence"),i=s.get(u)||l,i===l&&s.set(null,r),s.set(u,r),this.count++,l=vo.bind(this),r.addEventListener("load",l),r.addEventListener("error",l),i?i.parentNode.insertBefore(r,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),a.state.loading|=4}}var In={$$typeof:F,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function Bf(e,a,s,l,r,i,u,M,P){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ci(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ci(0),this.hiddenUpdates=ci(null),this.identifierPrefix=l,this.onUncaughtError=r,this.onCaughtError=i,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=P,this.incompleteTransitions=new Map}function Vp(e,a,s,l,r,i,u,M,P,de,ge,Se){return e=new Bf(e,a,s,u,P,de,ge,Se,M),a=1,i===!0&&(a|=24),i=fa(3,null,null,a),e.current=i,i.stateNode=e,a=Dc(),a.refCount++,e.pooledCache=a,a.refCount++,i.memoizedState={element:l,isDehydrated:s,cache:a},Vc(i),e}function Gp(e){return e?(e=vr,e):vr}function Hp(e,a,s,l,r,i){r=Gp(r),l.context===null?l.context=r:l.pendingContext=r,l=ll(a),l.payload={element:s},i=i===void 0?null:i,i!==null&&(l.callback=i),s=rl(e,l,a),s!==null&&(ma(s,e,a),Sn(s,e,a))}function Pp(e,a){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<a?s:a}}function ru(e,a){Pp(e,a),(e=e.alternate)&&Pp(e,a)}function $p(e){if(e.tag===13||e.tag===31){var a=Fl(e,67108864);a!==null&&ma(a,e,67108864),ru(e,67108864)}}function Ip(e){if(e.tag===13||e.tag===31){var a=ja();a=lr(a);var s=Fl(e,a);s!==null&&ma(s,e,a),ru(e,a)}}var No=!0;function qf(e,a,s,l){var r=ee.T;ee.T=null;var i=X.p;try{X.p=2,nu(e,a,s,l)}finally{X.p=i,ee.T=r}}function Vf(e,a,s,l){var r=ee.T;ee.T=null;var i=X.p;try{X.p=8,nu(e,a,s,l)}finally{X.p=i,ee.T=r}}function nu(e,a,s,l){if(No){var r=iu(l);if(r===null)Id(e,a,l,wo,s),Yp(e,l);else if(Hf(r,e,a,s,l))l.stopPropagation();else if(Yp(e,l),a&4&&-1<Gf.indexOf(e)){for(;r!==null;){var i=Zt(r);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var u=ea(i.pendingLanes);if(u!==0){var M=i;for(M.pendingLanes|=2,M.entangledLanes|=2;u;){var P=1<<31-xt(u);M.entanglements[1]|=P,u&=~P}xs(i),(nt&6)===0&&(lo=Ee()+500,qn(0))}}break;case 31:case 13:M=Fl(i,2),M!==null&&ma(M,i,2),no(),ru(i,2)}if(i=iu(l),i===null&&Id(e,a,l,wo,s),i===r)break;r=i}r!==null&&l.stopPropagation()}else Id(e,a,l,null,s)}}function iu(e){return e=kl(e),ou(e)}var wo=null;function ou(e){if(wo=null,e=$a(e),e!==null){var a=p(e);if(a===null)e=null;else{var s=a.tag;if(s===13){if(e=g(a),e!==null)return e;e=null}else if(s===31){if(e=y(a),e!==null)return e;e=null}else if(s===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;e=null}else a!==e&&(e=null)}}return wo=e,null}function Zp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ke()){case ze:return 2;case Ze:return 8;case Ve:case Ye:return 32;case la:return 268435456;default:return 32}default:return 32}}var cu=!1,fl=null,bl=null,gl=null,Zn=new Map,Yn=new Map,vl=[],Gf="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Yp(e,a){switch(e){case"focusin":case"focusout":fl=null;break;case"dragenter":case"dragleave":bl=null;break;case"mouseover":case"mouseout":gl=null;break;case"pointerover":case"pointerout":Zn.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yn.delete(a.pointerId)}}function Jn(e,a,s,l,r,i){return e===null||e.nativeEvent!==i?(e={blockedOn:a,domEventName:s,eventSystemFlags:l,nativeEvent:i,targetContainers:[r]},a!==null&&(a=Zt(a),a!==null&&$p(a)),e):(e.eventSystemFlags|=l,a=e.targetContainers,r!==null&&a.indexOf(r)===-1&&a.push(r),e)}function Hf(e,a,s,l,r){switch(a){case"focusin":return fl=Jn(fl,e,a,s,l,r),!0;case"dragenter":return bl=Jn(bl,e,a,s,l,r),!0;case"mouseover":return gl=Jn(gl,e,a,s,l,r),!0;case"pointerover":var i=r.pointerId;return Zn.set(i,Jn(Zn.get(i)||null,e,a,s,l,r)),!0;case"gotpointercapture":return i=r.pointerId,Yn.set(i,Jn(Yn.get(i)||null,e,a,s,l,r)),!0}return!1}function Jp(e){var a=$a(e.target);if(a!==null){var s=p(a);if(s!==null){if(a=s.tag,a===13){if(a=g(s),a!==null){e.blockedOn=a,di(e.priority,function(){Ip(s)});return}}else if(a===31){if(a=y(s),a!==null){e.blockedOn=a,di(e.priority,function(){Ip(s)});return}}else if(a===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}e.blockedOn=null}function So(e){if(e.blockedOn!==null)return!1;for(var a=e.targetContainers;0<a.length;){var s=iu(e.nativeEvent);if(s===null){s=e.nativeEvent;var l=new s.constructor(s.type,s);wt=l,s.target.dispatchEvent(l),wt=null}else return a=Zt(s),a!==null&&$p(a),e.blockedOn=s,!1;a.shift()}return!0}function Xp(e,a,s){So(e)&&s.delete(a)}function Pf(){cu=!1,fl!==null&&So(fl)&&(fl=null),bl!==null&&So(bl)&&(bl=null),gl!==null&&So(gl)&&(gl=null),Zn.forEach(Xp),Yn.forEach(Xp)}function Co(e,a){e.blockedOn===a&&(e.blockedOn=null,cu||(cu=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Pf)))}var _o=null;function Qp(e){_o!==e&&(_o=e,o.unstable_scheduleCallback(o.unstable_NormalPriority,function(){_o===e&&(_o=null);for(var a=0;a<e.length;a+=3){var s=e[a],l=e[a+1],r=e[a+2];if(typeof l!="function"){if(ou(l||s)===null)continue;break}var i=Zt(s);i!==null&&(e.splice(a,3),a-=3,id(i,{pending:!0,data:r,method:s.method,action:l},l,r))}}))}function Hr(e){function a(P){return Co(P,e)}fl!==null&&Co(fl,e),bl!==null&&Co(bl,e),gl!==null&&Co(gl,e),Zn.forEach(a),Yn.forEach(a);for(var s=0;s<vl.length;s++){var l=vl[s];l.blockedOn===e&&(l.blockedOn=null)}for(;0<vl.length&&(s=vl[0],s.blockedOn===null);)Jp(s),s.blockedOn===null&&vl.shift();if(s=(e.ownerDocument||e).$$reactFormReplay,s!=null)for(l=0;l<s.length;l+=3){var r=s[l],i=s[l+1],u=r[It]||null;if(typeof i=="function")u||Qp(s);else if(u){var M=null;if(i&&i.hasAttribute("formAction")){if(r=i,u=i[It]||null)M=u.formAction;else if(ou(r)!==null)continue}else M=u.action;typeof M=="function"?s[l+1]=M:(s.splice(l,3),l-=3),Qp(s)}}}function Kp(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(u){return r=u})},focusReset:"manual",scroll:"manual"})}function a(){r!==null&&(r(),r=null),l||setTimeout(s,20)}function s(){if(!l&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(s,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),r!==null&&(r(),r=null)}}}function du(e){this._internalRoot=e}ko.prototype.render=du.prototype.render=function(e){var a=this._internalRoot;if(a===null)throw Error(b(409));var s=a.current,l=ja();Hp(s,l,e,a,null,null)},ko.prototype.unmount=du.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var a=e.containerInfo;Hp(e.current,2,null,e,null,null),no(),a[Aa]=null}};function ko(e){this._internalRoot=e}ko.prototype.unstable_scheduleHydration=function(e){if(e){var a=Wr();e={blockedOn:null,target:e,priority:a};for(var s=0;s<vl.length&&a!==0&&a<vl[s].priority;s++);vl.splice(s,0,e),s===0&&Jp(e)}};var Wp=f.version;if(Wp!=="19.2.8")throw Error(b(527,Wp,"19.2.8"));X.findDOMNode=function(e){var a=e._reactInternals;if(a===void 0)throw typeof e.render=="function"?Error(b(188)):(e=Object.keys(e).join(","),Error(b(268,e)));return e=C(a),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var $f={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:ee,reconcilerVersion:"19.2.8"};
vendor: 8,756 bytes, line 49
49if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Eo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Eo.isDisabled&&Eo.supportsFiber)try{lt=Eo.inject($f),Nt=Eo}catch{}}return Qn.createRoot=function(e,a){if(!k(e))throw Error(b(299));var s=!1,l="",r=nm,i=im,u=om;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(i=a.onCaughtError),a.onRecoverableError!==void 0&&(u=a.onRecoverableError)),a=Vp(e,1,!1,null,null,s,l,null,r,i,u,Kp),e[Aa]=a.current,$d(e),new du(a)},Qn.hydrateRoot=function(e,a,s){if(!k(e))throw Error(b(299));var l=!1,r="",i=nm,u=im,M=om,P=null;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(r=s.identifierPrefix),s.onUncaughtError!==void 0&&(i=s.onUncaughtError),s.onCaughtError!==void 0&&(u=s.onCaughtError),s.onRecoverableError!==void 0&&(M=s.onRecoverableError),s.formState!==void 0&&(P=s.formState)),a=Vp(e,1,!0,a,s??null,l,r,P,i,u,M,Kp),a.context=Gp(null),s=a.current,l=ja(),l=lr(l),r=ll(l),r.callback=null,rl(s,r,l),s=l,a.current.lanes=s,Ga(a,s),xs(a),e[Aa]=a.current,$d(e),new ko(a)},Qn.version="19.2.8",Qn}var cx;function ab(){if(cx)return pu.exports;cx=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(f){console.error(f)}}return o(),pu.exports=tb(),pu.exports}var sb=ab();const lb="modulepreload",rb=function(o){return"/"+o},dx={},$o=function(f,c,b){let k=Promise.resolve();if(c&&c.length>0){let g=function(C){return Promise.all(C.map(v=>Promise.resolve(v).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const y=document.querySelector("meta[property=csp-nonce]"),N=(y==null?void 0:y.nonce)||(y==null?void 0:y.getAttribute("nonce"));k=g(c.map(C=>{if(C=rb(C),C in dx)return;dx[C]=!0;const v=C.endsWith(".css"),m=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${C}"]${m}`))return;const T=document.createElement("link");if(T.rel=v?"stylesheet":lb,v||(T.as="script"),T.crossOrigin="",T.href=C,N&&T.setAttribute("nonce",N),document.head.appendChild(T),v)return new Promise((w,S)=>{T.addEventListener("load",w),T.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${C}`)))})}))}function p(g){const y=new Event("vite:preloadError",{cancelable:!0});if(y.payload=g,window.dispatchEvent(y),!y.defaultPrevented)throw g}return k.then(g=>{for(const y of g||[])y.status==="rejected"&&p(y.reason);return f().catch(p)})},qe={name:"Valence ACE Volley-Ball",shortName:"Valence ACE",tagline:"Le club de volley-ball familial, chaleureux et formateur à Valence",city:"Valence (26000), Drôme",addressMain:"Gymnase Alain Zammit, 12 rue Brunet, 26000 Valence",addressSecondary:"Gymnase Denis Maurin, Rue Denis Maurin, 26000 Valence",email:"[email protected]",phonePrimary:"06 45 57 18 25",phoneSecondary:"06 62 50 82 46",president:"Madeline Arnal",sportsLead:"Guillaume Pommereau",foundingYear:2006,affiliations:["Fédération Française de Volley-Ball (FFVB)","UFOLEP 26","Office des Sports Valentinois (OSV)"],logoUrl:"/uploads/logos/clubs/valence-ace.png",heroImage:"/uploads/hero.main-1787176834917.webp"},Ir=[{id:"m9",name:"M9 (Moins de 9 ans)",category:"jeunes",ageRange:"6 - 8 ans",gender:"Mixte",level:"Initiation motricité, réflexes, découverte ludique & plateaux 1x1 / 2x2",coach:"Mathilde",description:"Collectif d’entraînement dédié aux jeunes filles et garçons de 6 à 8 ans. Apprentissage des trajectoires, coordination motrice, plaisir du ballon et premiers échanges ludiques.",trainingSlots:["Mercredi 16h00 - 17h15 (Terrain 1)","Vendredi 17h30 - 18h45 (Maintien Zammit)"],gymnasium:"Gymnase Alain Zammit",badgeColor:"bg-amber-100 text-amber-900 border-amber-300",imageUrl:"/uploads/teams.m9-1787178391915.webp",photoCaption:"Collectif M9 Mixte : motricité et premiers pas volley au Gymnase Alain Zammit"},{id:"m11",name:"M11 (Moins de 11 ans)",category:"jeunes",ageRange:"9 - 10 ans",gender:"Mixte",level:"Perfectionnement gestuel, jeu 2x2 et 3x3, plateaux départementaux mixtes",coach:"Céline",description:"Collectif d’entraînement distinct dédié aux filles et garçons de 9 et 10 ans. Travail de la passe haute, manchette, service bas, déplacements et dynamique d’équipe.",trainingSlots:["Mercredi 16h00 - 17h15 (Terrain 2)","Vendredi 17h30 - 18h45 (Maintien Zammit)"],gymnasium:"Gymnase Alain Zammit",badgeColor:"bg-orange-100 text-orange-900 border-orange-300",imageUrl:"/uploads/teams.m11-1787178399891.webp",photoCaption:"Collectif M11 Mixte : jeu en passes et déplacements au Gymnase Alain Zammit"},{id:"m13",name:"M13 Garçons",category:"jeunes",ageRange:"11 - 12 ans",gender:"Masculin",level:"Perfectionnement technique, jeu 3x3 et 4x4, compétitions jeunes garçons",coach:"Loris",description:"Apprentissage des fondamentaux pour les jeunes garçons : passe, manchette, service et début des tactiques collectives dans une super dynamique.",trainingSlots:["Lundi 18h00 - 20h00 (Terrain 1)","Mercredi 17h00 - 19h00 (Terrain 3)","Jeudi 18h00 - 20h00 (Terrain 3)"],gymnasium:"Gymnase Alain Zammit (+ JFLamour)",badgeColor:"bg-emerald-100 text-emerald-900 border-emerald-300",imageUrl:"/uploads/teams.m13-1787178404433.webp",photoCaption:"Apprentissage technique et jeu collectif en M13 Garçons"},{id:"m15-m18",name:"M15 / M18 Garçons",category:"jeunes",ageRange:"13 - 17 ans",gender:"Masculin",level:"Jeu 6x6, Championnats Départementaux, Régionaux & Coupe de France Masculine",coach:"Guillaume Pommereau",description:"Le pôle jeunes ados masculins en pleine progression ! Entraînements dynamiques, travail au poste, systèmes offensifs et cohésion.",trainingSlots:["Lundi 18h00 - 20h00 (Terrains 2 & 3)","Mercredi 18h00 - 20h00 (Terrains 1 & 2)","Jeudi 18h00 - 20h00 (Terrain 3)"],gymnasium:"Gymnase Alain Zammit",badgeColor:"bg-blue-100 text-blue-900 border-blue-300",imageUrl:"/uploads/teams.m15-m18-1787178407898.webp",photoCaption:"Organisation tactique et attaques au filet en M15/M18 Garçons"},{id:"seniors-prenat",name:"Séniors Prénationale (Équipe Fanion)",category:"seniors",ageRange:"18 ans et +",gender:"Masculin",level:"Championnat Prénational FFVB Masculin",coach:"Guikatch",description:"Le haut niveau masculin du club avec un collectif expérimenté et ambitieux. 3 séances hebdomadaires et matchs le samedi.",trainingSlots:["Mardi 20h00 - 22h00 (Terrains 1 & 2)","Jeudi 20h00 - 22h00 (Terrains 1 & 2)","Vendredi 20h00 - 22h00 (Terrain 3)"],gymnasium:"Gymnase Alain Zammit",badgeColor:"bg-blue-900 text-amber-300 border-blue-700",imageUrl:"/uploads/teams.seniors-prenat-1787178412398.webp",photoCaption:"Attaque smashée en Prénationale au Gymnase Zammit"},{id:"seniors-prereg",name:"Séniors Pré-Régionale (Pré-Rég)",category:"seniors",ageRange:"18 ans et +",gender:"Masculin",level:"Championnat Pré-Régional FFVB Masculin",coach:"Nico + Hugo",description:"Un groupe masculin solide et compétiteur qui prépare la montée de division dans une excellente atmosphère de camaraderie.",trainingSlots:["Mardi 18h00 - 20h00 (Terrains 1 & 2)","Jeudi 18h00 - 20h00 (Terrains 1 & 2)"],gymnasium:"Gymnase Alain Zammit",badgeColor:"bg-indigo-100 text-indigo-900 border-indigo-300",imageUrl:"/uploads/teams.seniors-prereg-1787178422103.webp",photoCaption:"Intensité et esprit d’équipe en Pré-Régionale"},{id:"seniors-dep",name:"Séniors Départementale Masculine",category:"seniors",ageRange:"18 ans et +",gender:"Masculin",level:"Championnat Départemental Drôme-Ardèche Masculin",coach:"Shivam",description:"Championnat départemental masculin. Idéal pour concilier compétition officielle, progression technique et plaisir de jouer sans pression excessive.",trainingSlots:["Mardi 20h00 - 22h00 (Terrain 3)","Vendredi 20h00 - 22h00 (Terrains 1 & 2)"],gymnasium:"Gymnase Alain Zammit",badgeColor:"bg-sky-100 text-sky-900 border-sky-300",imageUrl:"/uploads/teams.seniors-dep.webp",photoCaption:"Réception et solidarité sur le terrain en Départementale"},{id:"ufolep-1-6",name:"Championnat Loisirs UFOLEP (Équipes 1 à 6 - Mixte)",category:"loisirs",ageRange:"Adultes (Femmes & Hommes)",gender:"Mixte",level:"Championnat UFOLEP 26 Mixte - 6 équipes engagées",coach:"Responsables d’équipes UFOLEP",description:"La section loisir du club accueillant les féminines et les hommes dans un esprit très convivial ! 6 équipes réparties sur 3 terrains les lundis et mercredis soirs avec le traditionnel verre de fin de séance.",trainingSlots:["Lundi 20h00 - 22h00 (Terrains 1, 2, 3)","Mercredi 20h00 - 22h00 (Terrains 1, 2, 3)"],gymnasium:"Gymnase Alain Zammit",badgeColor:"bg-
49amber-50 text-amber-950 border-amber-400",imageUrl:"/uploads/teams.ufolep-1-6-1787178427923.webp",photoCaption:"Convivialité et match amical pour la section mixte UFOLEP"},{id:"loisirs-ffv",name:"Volley Loisirs FFVolley Mixte",category:"loisirs",ageRange:"Adultes Masculin",gender:"Masculin",level:"Loisir FFVolley / Compét’lib 6x6",coach:"Service civique & Référents loisir",description:"Pour ceux qui souhaitent taper le ballon, apprendre les gestes ou disputer des rencontres loisir en semaine.",trainingSlots:["Mardi 18h00 - 20h00 (Terrain 3)","Vendredi 18h00 - 20h00 (Terrains 1, 2, 3)"],gymnasium:"Gymnase Alain Zammit",badgeColor:"bg-orange-100 text-orange-950 border-orange-300",imageUrl:"/uploads/teams.loisirs-ffv.webp",photoCaption:"Pratique conviviale et détendue lors du créneau loisir"}],Vs=[{id:"zammit",name:"Gymnase Alain Zammit",type:"Complexe Principal • 3 Terrains d’Entraînement & Compétition",address:"12 rue Brunet, 26000 Valence",mapsUrl:"https://maps.google.com/?q=Gymnase+Alain+Zammit+Valence",imageUrl:"/uploads/images.webp",features:["3 Terrains","Vestiaires avec douches","Buvette officielle du club les soirs de match","Accès PMR","Parking à proximité"],access:"Bus Citéa Lignes C1 / 20 (Arrêt Pont du Gat)",primary:!0,badge:"Siège Officiel & 3 Terrains",photoCaption:"La grande salle multisports du Gymnase Alain Zammit"},{id:"maurin",name:"Gymnase Denis Maurin",type:"Gymnase Compétitions du Samedi • 3 Terrains",address:"Rue Denis Maurin, 26000 Valence",mapsUrl:"https://maps.google.com/?q=Gymnase+Denis+Maurin+Valence",imageUrl:"/uploads/gyms.maurin.webp",features:["3 Terrains réservés pour matchs & plateaux le samedi (08h-23h)","Grand volume d’accueil supporters","Vestiaires sportifs équipés","Accès rapide rocade et centre-ville"],access:"Bus Citéa Lignes C2 / 10",primary:!1,badge:"Samedis Compétitions",photoCaption:"Gymnase Denis Maurin réservé pour les journées de championnat"},{id:"lamour",name:"Gymnase Jean-François Lamour (JFLamour)",type:"Salle Créneaux Spécifiques Jeunes & Stages",address:"Avenue Maurice Faure, 26000 Valence",mapsUrl:"https://maps.google.com/?q=Gymnase+Jean+Francois+Lamour+Valence",imageUrl:"/uploads/gyms.lamour.webp",features:["Créneaux complémentaires Mercredi, Jeudi, Vendredi & Samedi matin","Stages vacances scolaires et perfectionnement","Matériel pédagogique jeunesse"],access:"Proximité centre sportif et bus Citéa",primary:!1,badge:"Pôle Entraînement & Stages",photoCaption:"Créneaux jeunes et stages au Gymnase JF Lamour"},{id:"ind",name:"Gymnase IND & Salles Annexes (INSPE / Omnisport)",type:"Volley Santé, Jeudi des Parents & Universitaire",address:"Valence (26000)",mapsUrl:"https://maps.google.com/?q=Valence+26000",imageUrl:"/uploads/gyms.ind.webp",features:["Gymnase IND : Jeudi des parents (18h-21h) & Volley Santé/Fit","Salle INSPE : Lundi (18h-21h) & Mardi (18h-19h30)","Annexe Omnisport : Lundi (20h-22h) 2GVB"],access:"Accès facile aux campus et lycées valentinois",primary:!1,badge:"Sport Santé & Loisirs",photoCaption:"Séances bien-être et volley santé"}],nb=[{id:"s-mon-1",day:"Lundi",time:"17h30 - 20h00",category:"M13 Garçons",teamId:"m13",gymnasium:"Gymnase Alain Zammit",terrains:"Terrain 1",coach:"Loris",level:"Jeunes Garçons (11-12 ans)",badge:"Jeunes M13 Garçons",note:"Travail technique et motricité"},{id:"s-mon-2",day:"Lundi",time:"18h00 - 20h00",category:"M15 / M18 Garçons",teamId:"m15-m18",gymnasium:"Gymnase Alain Zammit",terrains:"Terrains 2 & 3",coach:"Guillaume Pommereau",level:"Adolescents Masculin (13-17 ans)",badge:"Jeunes M15/M18 Garçons",note:"Systèmes de jeu 6x6 et attaques"},{id:"s-mon-3",day:"Lundi",time:"20h00 - 22h00",category:"UFOLEP 1, 2, 3, 4, 5 & 6 (Mixte)",teamId:"ufolep-1-6",gymnasium:"Gymnase Alain Zammit",terrains:"Terrains 1, 2 & 3 (3 terrains complets)",coach:"Capitaines d’équipes UFOLEP",level:"Championnat Loisir Mixte (Femmes & Hommes)",badge:"UFOLEP 1 à 6 (Mixte)",note:"Toutes les équipes UFOLEP réunies sur les 3 terrains"},{id:"s-mon-4",day:"Lundi",time:"18h00 - 21h00",category:"INSPE Volley",teamId:"loisirs-ffv",gymnasium:"Salle INSPE (Valence)",terrains:"Terrain Unique",coach:"Référent Universitaire",level:"Créneau Étudiants & Adultes",badge:"INSPE",note:"Créneau partenaire INSPE"},{id:"s-mon-5",day:"Lundi",time:"20h00 - 22h00",category:"2GVB (Annexe Omnisport)",teamId:"loisirs-ffv",gymnasium:"Annexe Omnisport (Valence)",terrains:"Terrain Unique",coach:"Référent 2GVB",level:"Entraînement Loisir / Club",badge:"2GVB",note:"Annexe Omnisport"},{id:"s-tue-1",day:"Mardi",time:"18h00 - 20h00",category:"Séniors Pré-Régionale (Pré-Rég)",teamId:"seniors-prereg",gymnasium:"Gymnase Alain Zammit",terrains:"Terrains 1 & 2",coach:"Nico + Hugo",level:"Championnat Pré-Régional FFVB Masculin",badge:"Pré-Régionale",note:"Entraînement intensif tactique"},{id:"s-tue-2",day:"Mardi",time:"18h00 - 20h00",category:"Volley Loisirs FFVolley Mixte",teamId:"loisirs-ffv",gymnasium:"Gymnase Alain Zammit",terrains:"Terrain 3",coach:"Service civique & Animation",level:"Loisir Masculin",badge:"Loisirs FFV",note:"Plaisir du jeu et détente"},{id:"s-tue-3",day:"Mardi",time:"20h00 - 22h00",category:"Séniors Prénationale (Prénat)",teamId:"seniors-prenat",gymnasium:"Gymnase Alain Zammit",terrains:"Terrains 1 & 2",coach:"Guikatch",level:"Compétition Élite Régionale FFVB Masculine",badge:"Prénationale",note:"Préparation physique et schémas tactiques"},{id:"s-tue-4",day:"Mardi",time:"20h00 - 22h00",category:"Équipe Départementale Masculine",teamId:"seniors-dep",gymnasium:"Gymnase Alain Zammit",terrains:"Terrain 3",coach:"Shivam",level:"Championnat Départemental 26/07 Masculin",badge:"Équipe Dép (Shivam)",note:"Jeu collectif et matchs amicaux"},{id:"s-tue-5",day:"Mardi",time:"18h00 - 19h30",category:"INSPE Volley",teamId:"loisirs-ffv",gymnasium:"Salle INSPE (Valence)",terrains:"Terrain Unique",coach:"Référent INSPE",level:"Créneau Partenaire Étudiant",badge:"INSPE",note:"Salle INSPE"}
49,{id:"s-wed-1a",day:"Mercredi",time:"16h00 - 17h15",category:"M9 Mixtes (Moins de 9 ans)",teamId:"m9",gymnasium:"Gymnase Alain Zammit",terrains:"Terrain 1",coach:"Mathilde",level:"Initiation & Motricité Mixte Filles & Garçons (6-8 ans)",badge:"M9 Mixte (T1)",note:"Collectif M9 : jeux de motricité et premiers échanges ludiques"},{id:"s-wed-1b",day:"Mercredi",time:"16h00 - 17h15",category:"M11 Mixtes (Moins de 11 ans)",teamId:"m11",gymnasium:"Gymnase Alain Zammit",terrains:"Terrain 2",coach:"Céline",level:"Perfectionnement Mixte Filles & Garçons (9-10 ans)",badge:"M11 Mixte (T2)",note:"Collectif M11 : passes, manchettes, services et jeu 2x2/3x3"},{id:"s-wed-2",day:"Mercredi",time:"17h00 - 19h00",category:"M13 Garçons",teamId:"m13",gymnasium:"Gymnase Alain Zammit",terrains:"Terrain 3",coach:"Loris",level:"Jeunes Garçons (11-12 ans)",badge:"M13 Garçons",note:"Apprentissage technique du 3x3 et 4x4"},{id:"s-wed-3",day:"Mercredi",time:"18h00 - 20h00",category:"M15 / M18 Garçons",teamId:"m15-m18",gymnasium:"Gymnase Alain Zammit",terrains:"Terrains 1 & 2",coach:"Guillaume Pommereau",level:"Adolescents Masculin (13-17 ans)",badge:"M15/M18 Garçons",note:"Travail physique, services et blocs"},{id:"s-wed-4",day:"Mercredi",time:"20h00 - 22h00",category:"UFOLEP 1, 2, 3, 4, 5 & 6 (Mixte)",teamId:"ufolep-1-6",gymnasium:"Gymnase Alain Zammit",terrains:"Terrains 1, 2 & 3 (3 terrains complets)",coach:"Capitaines d’équipes UFOLEP",level:"Championnat Loisir Mixte (Femmes & Hommes)",badge:"UFOLEP 1 à 6 (Mixte)",note:"Séance matchs & championnat corpo mixte"},{id:"s-wed-5",day:"Mercredi",time:"15h00 - 17h00",category:"M13 Garçons 2GVB",teamId:"m13",gymnasium:"Gymnase Jean-François Lamour (JFLAMOUR)",terrains:"Terrain Salle Lamour",coach:"Éducateur Club",level:"Jeunes M13 Garçons",badge:"JFLAMOUR",note:"Gymnase Jean-François Lamour"},{id:"s-wed-6",day:"Mercredi",time:"20h00 - 22h00",category:"Jeu Libre & Entraînement Annexe",teamId:"loisirs-ffv",gymnasium:"Gymnase Jean-François Lamour (JFLAMOUR)",terrains:"Terrain Salle Lamour",coach:"Bénévoles Club",level:"Loisirs",badge:"JFLAMOUR",note:"Gymnase Jean-François Lamour"},{id:"s-thu-1",day:"Jeudi",time:"18h00 - 20h00",category:"Séniors Pré-Régionale (Pré-Rég)",teamId:"seniors-prereg",gymnasium:"Gymnase Alain Zammit",terrains:"Terrains 1 & 2",coach:"Nico + Hugo",level:"Championnat Pré-Régional FFVB Masculin",badge:"Pré-Régionale",note:"Schémas tactiques et confrontations"},{id:"s-thu-2",day:"Jeudi",time:"18h00 - 20h00",category:"M15 / M13 Garçons (Perfectionnement)",teamId:"m15-m18",gymnasium:"Gymnase Alain Zammit",terrains:"Terrain 3",coach:"Éducateurs Club",level:"Jeunes Garçons (11-15 ans)",badge:"M15 / M13 Garçons",note:"Séance technique transversale"},{id:"s-thu-3",day:"Jeudi",time:"20h00 - 22h00",category:"Séniors Prénationale (Prénat)",teamId:"seniors-prenat",gymnasium:"Gymnase Alain Zammit",terrains:"Terrains 1 & 2",coach:"Guikatch",level:"Compétition Élite Régionale FFVB Masculine",badge:"Prénationale",note:"Mise en place tactique pour les matchs du week-end"},{id:"s-thu-4",day:"Jeudi",time:"20h00 - 22h00",category:"Spé Dép OU FFVolley Compét’lib 6/6 Masculin",teamId:"loisirs-ffv",gymnasium:"Gymnase Alain Zammit",terrains:"Terrain 3",coach:"Capitaines Compét’lib",level:"Compétition Loisirs 6x6 Masculin",badge:"Compét’Lib 6x6",note:"Matchs en autonomie et perfectionnement"},{id:"s-thu-5",day:"Jeudi",time:"16h00 - 17h00",category:"Séance Jeunes JFLamour",teamId:"m9",gymnasium:"Gymnase Jean-François Lamour (JFLAMOUR)",terrains:"Terrain Salle Lamour",coach:"Éducateur Club",level:"Jeunes",badge:"JFLAMOUR",note:"Gymnase Jean-François Lamour"},{id:"s-fri-1",day:"Vendredi",time:"17h30 - 18h45",category:"Maintien M9 & M11 Mixtes",teamId:"m9",gymnasium:"Gymnase Alain Zammit",terrains:"Terrain 1",coach:"Mathilde & Céline",level:"Perfectionnement M9 & M11 Mixtes (6-10 ans)",badge:"Maintien M9/M11",note:"Séance d’appoint pour les collectifs M9 et M11 mixtes"},{id:"s-fri-2",day:"Vendredi",time:"18h00 - 20h00",category:"À la demande OU Compét’Lib",teamId:"loisirs-ffv",gymnasium:"Gymnase Alain Zammit",terrains:"Terrains 1 & 2",coach:"Capitaines Compét’lib",level:"Compétition Loisirs & Jeu Libre",badge:"Compét’Lib",note:"Terrains 1 & 2 à disposition"},{id:"s-fri-3",day:"Vendredi",time:"18h00 - 20h00",category:"FFVolley Loisirs (15js)",teamId:"loisirs-ffv",gymnasium:"Gymnase Alain Zammit",terrains:"Terrain 3",coach:"Animation Loisir Club",level:"Loisir FFVolley Masculin",badge:"FFV 
49Loisirs",note:"Séance détendue avant le week-end"},{id:"s-fri-4",day:"Vendredi",time:"20h00 - 22h00",category:"Équipe Départementale Masculine",teamId:"seniors-dep",gymnasium:"Gymnase Alain Zammit",terrains:"Terrains 1 & 2",coach:"Shivam",level:"Championnat Départemental Masculin",badge:"Équipe Dép (Shivam)",note:"Entraînement principal avec Shivam"},{id:"s-fri-5",day:"Vendredi",time:"20h00 - 22h00",category:"Séniors Prénationale (Prénat)",teamId:"seniors-prenat",gymnasium:"Gymnase Alain Zammit",terrains:"Terrain 3",coach:"Guikatch",level:"Compétition Prénationale FFVB Masculine",badge:"Prénationale",note:"Réglages d’avant-match"},{id:"s-fri-6",day:"Vendredi",time:"16h30 - 20h30",category:"Créneaux Spécifiques / Stages JFLamour",teamId:"m15-m18",gymnasium:"Gymnase Jean-François Lamour (JFLAMOUR)",terrains:"Terrain Salle Lamour",coach:"Éducateurs Club",level:"Perfectionnement & Stages Garçons",badge:"JFLAMOUR",note:"Gymnase Jean-François Lamour"},{id:"s-sat-1",day:"Samedi",time:"08h00 - 23h00 (aux dates réservées)",category:"Matchs Officiels FFVB, Compétitions & Plateaux Jeunes",teamId:"seniors-prenat",gymnasium:"Gymnase Alain Zammit",terrains:"Terrains 1, 2 & 3 (3 terrains homologués)",coach:"Tous les entraîneurs & arbitres officiels",level:"Championnats Régionaux, Départementaux, Coupe de France & Tournois",badge:"Zammit Samedis",note:"Journées de compétitions officielles, buvette et ambiance club"},{id:"s-sat-2",day:"Samedi",time:"08h00 - 23h00 (aux dates réservées)",category:"Matchs de Championnat & Compétitions Officielles",teamId:"seniors-prereg",gymnasium:"Gymnase Denis Maurin",terrains:"Terrains 1, 2 & 3 (3 terrains homologués)",coach:"Arbitres & Capitaines",level:"Championnats FFVB & Plateaux Jeunes",badge:"Denis Maurin Samedis",note:"Gymnase Denis Maurin aux dates de réservation officielles"},{id:"s-sat-3",day:"Samedi",time:"08h30 - 10h00",category:"Séance Découverte Jeunes Garçons JFLamour",teamId:"m9-m11",gymnasium:"Gymnase Jean-François Lamour (JFLAMOUR)",terrains:"Terrain Salle Lamour",coach:"Éducateur Club",level:"Initiation Jeunesse Garçons",badge:"JFLAMOUR",note:"Gymnase Jean-François Lamour"}],Kx="/uploads/logos",ib=`${Kx}/clubs`,ob=`${Kx}/opponents`,cb=o=>`${ib}/${o}.png`,Na=o=>`${ob}/${o}.png`,wa=cb("valence-ace"),Nl=[{id:"prenat",label:"Pré-Nat"},{id:"prereg",label:"Pré-Reg"},{id:"m18",label:"M18 Masculin"},{id:"m15",label:"M15 Masculin"},{id:"m13",label:"M13 Masculin"},{id:"m11",label:"M11 Mixte"},{id:"m9",label:"M9 Mixte"},{id:"ufolep-1",label:"UFOLEP 1"},{id:"ufolep-2",label:"UFOLEP 2"},{id:"ufolep-3",label:"UFOLEP 3"},{id:"ufolep-4",label:"UFOLEP 4"},{id:"ufolep-5",label:"UFOLEP 5"},{id:"ufolep-6",label:"UFOLEP 6"}],Ro=[{id:"m-1",squadId:"prenat",team:"Pré-Nat",category:"Séniors Masculin",opponent:"Grenoble V.B.",clubLogoUrl:wa,opponentLogoUrl:Na("grenoble-vb"),date:"Samedi 12 Septembre",time:"20h30",location:"Gymnase Zammit (Valence)",isHome:!0,status:"upcoming",competition:"Championnat Régional FFVB"},{id:"m-3",squadId:"m18",team:"M18 Masculin",category:"M18 Coupe de France",opponent:"Montpellier Castelnau",clubLogoUrl:wa,opponentLogoUrl:Na("montpellier-castelnau"),date:"Samedi 19 Septembre",time:"16h00",location:"Palais des Sports Montpellier",isHome:!1,status:"upcoming",competition:"1er Tour Coupe de France"},{id:"m-4",squadId:"prereg",team:"Pré-Reg",category:"Séniors Masculin",opponent:"VBC Romans",clubLogoUrl:wa,opponentLogoUrl:Na("vbc-romans"),date:"Jeudi 10 Septembre",time:"20h30",location:"Gymnase Alain Zammit (Valence)",isHome:!0,score:"3 - 1 (25-21, 22-25, 25-18, 25-20)",status:"finished",competition:"Championnat Pré-Régional FFVB"},{id:"m-5",squadId:"m15",team:"M15 Masculin",category:"Jeunes M15",opponent:"Montélimar Volley",clubLogoUrl:wa,opponentLogoUrl:Na("montelimar-volley"),date:"Samedi 5 Septembre",time:"14h30",location:"Gymnase Zammit (Valence)",isHome:!0,score:"3 - 0 (25-14, 25-19, 25-16)",status:"finished",competition:"Tournoi de reprise Jeunes"},{id:"m-6",squadId:"m13",team:"M13 Masculin",category:"Jeunes M13",opponent:"Crest Volley",clubLogoUrl:wa,opponentLogoUrl:Na("crest-volley"),date:"Samedi 12 Septembre",time:"13h30",location:"Gymnase Denis Maurin",isHome:!0,status:"upcoming",competition:"Plateau M13 Drôme-Ardèche"},{id:"m-7",squadId:"m11",team:"M11 Mixte",category:"Jeunes M11",opponent:"Romans & Bourg-lès-Valence",clubLogoUrl:wa,opponentLogoUrl:Na("vbc-romans"),date:"Samedi 26 Septembre",time:"10h00",location:"Gymnase Jean-François Lamour",isHome:!0,status:"upcoming",competition:"Plateau M11 découverte"},{id:"m-8",squadId:"m9",team:"M9 Mixte",category:"Jeunes M9",opponent:"Mini-plateau 26/07",clubLogoUrl:wa,opponentLogoUrl:Na("grenoble-vb"),date:"Samedi 3 Octobre",time:"09h30",location:"Gymnase Lamour",isHome:!1,status:"upcoming",competition:"Plateau M9 initiation"}
49,{id:"m-9",squadId:"ufolep-1",team:"Loisirs UFOLEP 1",category:"Loisir",opponent:"Volley Portes-lès-Valence",clubLogoUrl:wa,opponentLogoUrl:Na("portes-les-valence"),date:"Mardi 15 Septembre",time:"20h45",location:"Gymnase Alain Zammit",isHome:!0,status:"upcoming",competition:"Championnat UFOLEP Drôme"},{id:"m-10",squadId:"ufolep-2",team:"Loisirs UFOLEP 2",category:"Loisir",opponent:"UFOLEP Guilherand",clubLogoUrl:wa,opponentLogoUrl:Na("guilherand"),date:"Mercredi 16 Septembre",time:"20h30",location:"Guilherand-Granges",isHome:!1,status:"upcoming",competition:"Championnat UFOLEP Drôme"},{id:"m-11",squadId:"ufolep-3",team:"Loisirs UFOLEP 3",category:"Loisir",opponent:"Crest Loisirs",clubLogoUrl:wa,opponentLogoUrl:Na("crest-volley"),date:"Jeudi 17 Septembre",time:"20h30",location:"Gymnase Alain Zammit",isHome:!0,status:"upcoming",competition:"Championnat UFOLEP Drôme"},{id:"m-12",squadId:"ufolep-4",team:"Loisirs UFOLEP 4",category:"Loisir",opponent:"Tain-Tournon Loisirs",clubLogoUrl:wa,opponentLogoUrl:Na("tain-tournon"),date:"Lundi 21 Septembre",time:"20h45",location:"Tain-l’Hermitage",isHome:!1,status:"upcoming",competition:"Championnat UFOLEP Drôme"},{id:"m-13",squadId:"ufolep-5",team:"Loisirs UFOLEP 5",category:"Loisir",opponent:"Volley Bourg-de-Péage",clubLogoUrl:wa,opponentLogoUrl:Na("bourg-de-peage"),date:"Mardi 22 Septembre",time:"20h30",location:"Gymnase Alain Zammit",isHome:!0,status:"upcoming",competition:"Championnat UFOLEP Drôme"},{id:"m-14",squadId:"ufolep-6",team:"Loisirs UFOLEP 6",category:"Loisir",opponent:"Saint-Péray Mixte",clubLogoUrl:wa,opponentLogoUrl:Na("saint-peray"),date:"Jeudi 24 Septembre",time:"20h45",location:"Saint-Péray",isHome:!1,status:"upcoming",competition:"Championnat UFOLEP Drôme"}],Io=[{squadId:"prenat",squadLabel:"Pré-Nat",championship:"Championnat Régional FFVB - Pré-National",rank:3,totalTeams:12,note:"À 2 points du podium complet, prochain match clé à domicile.",rows:[{team:"ASUL Lyon Volley",played:5,won:5,lost:0,points:15},{team:"Grenoble V.B.",played:5,won:4,lost:1,points:12},{team:"Valence ACE 1",played:5,won:4,lost:1,points:10},{team:"Romans Volley",played:5,won:3,lost:2,points:9}]},{squadId:"prereg",squadLabel:"Pré-Reg",championship:"Championnat Pré-Régional FFVB",rank:2,totalTeams:10,note:"Très bon début de saison, meilleure différence de sets du top 4.",rows:[{team:"VBC Romans",played:4,won:4,lost:0,points:12},{team:"Valence ACE 2",played:4,won:3,lost:1,points:10},{team:"Montélimar Volley 2",played:4,won:3,lost:1,points:9},{team:"USC Portes-lès-Valence",played:4,won:2,lost:2,points:6}]},{squadId:"m18",squadLabel:"M18 Masculin",championship:"Championnat M18 AURA",rank:5,totalTeams:8,note:"Collectif en construction, bon potentiel sur la phase aller.",rows:[{team:"Montpellier Castelnau",played:4,won:4,lost:0,points:12},{team:"AS Cannes",played:4,won:3,lost:1,points:9},{team:"Valence ACE M18",played:4,won:2,lost:2,points:6},{team:"Grenoble M18",played:4,won:1,lost:3,points:4}]},{squadId:"m15",squadLabel:"M15 Masculin",championship:"Championnat M15 Drôme-Ardèche",rank:2,totalTeams:7,note:"Groupe très prometteur, capable de jouer la première place.",rows:[{team:"Montélimar Volley",played:3,won:3,lost:0,points:9},{team:"Valence ACE M15",played:3,won:2,lost:1,points:6},{team:"Romans M15",played:3,won:2,lost:1,points:6},{team:"Crest M15",played:3,won:1,lost:2,points:3}]},{squadId:"m13",squadLabel:"M13 Masculin",championship:"Championnat M13 Drôme-Ardèche",rank:4,totalTeams:8,note:"Premier cycle compétitif du groupe, l’objectif reste la progression.",rows:[{team:"Romans M13",played:3,won:3,lost:0,points:9},{team:"Crest M13",played:3,won:2,lost:1,points:6},{team:"Montélimar M13",played:3,won:2,lost:1,points:6},{team:"Valence ACE M13",played:3,won:1,lost:2,points:4}]},{squadId:"ufolep-1",squadLabel:"UFOLEP 1",championship:"Championnat UFOLEP Drôme",rank:4,totalTeams:9,note:"Classement provisoire basé sur les premières rencontres de la poule.",rows:[{team:"UFOLEP Crest",played:3,won:3,lost:0,points:9},{team:"Volley Portes-lès-Valence",played:3,won:2,lost:1,points:6},{team:"UFOLEP Guilherand",played:3,won:2,lost:1,points:6},{team:"Valence ACE UFOLEP 1",played:3,won:1,lost:2,points:4}]},{squadId:"ufolep-2",squadLabel:"UFOLEP 2",championship:"Championnat UFOLEP Drôme",rank:6,totalTeams:9,note:"Phase de lancement de l’équipe, beaucoup de nouveaux repères collectifs.",rows:[{team:"UFOLEP Crest",played:3,won:3,lost:0,points:9},{team:"UFOLEP Guilherand",played:3,won:2,lost:1,points:6},{team:"Valence ACE UFOLEP 2",played:3,won:1,lost:2,points:4},{team:"Saint-Péray Mixte",played:3,won:0,lost:3,points:1}]},{squadId:"ufolep-3",squadLabel:"UFOLEP 3",championship:"Championnat UFOLEP Drôme",rank:5,totalTeams:9,note:"Milieu de tableau mocké en attendant les données officielles.",rows:[{team:"Volley Portes-lès-Valence",played:3,won:3,lost:0,points:9},{team:"Valence ACE UFOLEP 3",played:3,won:1,lost:2,points:4},{team:"Crest Loisirs",played:3,won:1,lost:2,points:3},{team:"Tain-Tournon Loisirs",played:3,won:1,lost:2,points:3}]},{squadId:"ufolep-4",squadLabel:"UFOLEP 4",championship:"Championnat UFOLEP Drôme",rank:7,totalTeams:9,note:"Groupe loisir orienté progression et convivialité.",rows:[{team:"UFOLEP Guilherand",played:3,won:3,lost:0,points:9},{team:"Saint-Péray Mixte",played:3,won:2,lost:1,points:6},{team:"Valence ACE UFOLEP 4",played:3,won:0,lost:3,points:2},{team:"Bourg-de-Péage Loisirs",played:3,won:0,lost:3,points:1}]},{squadId:"ufolep-5",squadLabel:"UFOLEP 5",championship:"Championnat UFOLEP Drôme",rank:3,totalTeams:9,note:"Collectif loisir compétitif avec une bonne dynamique de début de saison.",rows:[{team:"Crest Loisirs",played:3,won:3,lost:0,points:9},{team:"Bourg-de-Péage Loisirs",played:3,won:2,lost:1,points:6},{team:"Valence ACE UFOLEP 5",played:3,won:2,lost:1,points:6},{team:"Volley Portes-lès-Valence",played:3,won:1,lost:2,points:4}]},{squadId:"ufolep-6",squadLabel:"UFOLEP 6",championship:"Championnat UFOLEP Drôme",rank:8,totalTeams:9,note:"Dernière équipe engagée, beaucoup de rotation et d’apprentissage.",rows:[{team:"Saint-Péray Mixte",played:3,won:3,lost:0,points:9},{team:"Tain-Tournon Loisirs",played:3,won:2,lost:1,points:6},{team:"Valence ACE UFOLEP 6",played:3,won:0,lost:3,points:2},{team:"UFOLEP Crest",played:3,won:0,lost:3,points:1}]}],Zo=[{id:"evt-1",title:"Tournoi Esti'Voll - Le Grand Rendez-Vous de l'Été",category:"Tournoi",date:"Juin / Juillet 2026",location:"Valence & Berges du Rhône",description:"Le rendez-vous chaleureux et festif du club ! Tournoi en plein air sur herbe et sable, barbecue géant, buvette des bénévoles, tombola et animations pour les enfants.",badge:"Fête du Club",dis
49playOrder:1,highlight:!0,registrationMode:"internal",registrationStatus:"open",registrationForm:{ctaLabel:"Informations & Inscription",intro:"Pré-inscription ouverte pour les équipes, familles et participants du tournoi estival.",priceLabel:"Entrée libre / participation selon format communiqué par le club",pricingMode:"free",capacityLabel:"Capacité ajustée selon les créneaux et terrains disponibles",successMessage:"Votre demande pour Esti'Voll a bien été transmise au club. Elle est visible dans la console admin.",capacityLimit:120,autoCloseWhenFull:!1},imageUrl:"/uploads/events.evt-1-1787176936154.webp",structuredData:{offers:{url:"/#evenements",price:0,priceCurrency:"EUR",availability:"https://schema.org/InStock",category:"Inscription et renseignements"}}},{id:"evt-2",title:"Tournoi du Cœur avec Les Cardinals pour la Ligue contre le Cancer",category:"Solidaire",date:"Samedi 12 Septembre 2026",location:"Gymnase Zammit, Valence",description:"Une journée de sport et de générosité organisée avec nos amis Les Cardinals au profit de la lutte contre le cancer. Bonne humeur, solidarité et sourires garantis.",badge:"Grand Cœur",displayOrder:2,highlight:!0,registrationMode:"internal",registrationStatus:"open",registrationForm:{ctaLabel:"Informations & Inscription",intro:"Inscrivez votre présence pour la journée solidaire et laissez vos coordonnées pour le suivi logistique.",priceLabel:"Participation libre au profit de la Ligue contre le Cancer",pricingMode:"free",capacityLabel:"Accueil sur créneaux et animations solidaires",successMessage:"Votre demande de participation à l'événement solidaire a bien été enregistrée.",capacityLimit:80,autoCloseWhenFull:!1},imageUrl:"/uploads/cardinals.webp",structuredData:{offers:{url:"/#evenements",price:0,priceCurrency:"EUR",availability:"https://schema.org/InStock",category:"Participation sur contact"}}},{id:"evt-3",title:"Stages Vacances Scolaires pour les Jeunes (Toussaint, Février, Pâques)",category:"Stage",date:"Pendant chaque vacances scolaires",location:"Gymnase Zammit",description:"Des journées 100% volley et rigolade pour les M11, M13, M15 et M18 encadrées par Guillaume. Ateliers ludiques, matchs à thème et goûters partagés.",badge:"Jeunesse",displayOrder:3,registrationMode:"internal",registrationStatus:"coming_soon",registrationForm:{ctaLabel:"Pré-inscription stage",intro:"Réservez une place pour les stages vacances jeunes et laissez au club les informations utiles pour le rappel.",priceLabel:"Tarif communiqué selon la période de vacances",pricingMode:"paid",paymentAmount:65,paymentUrl:"/inscription#paiement",paymentButtonLabel:"Règlement du stage",stripePaymentUrl:"/inscription#paiement",stripePaymentButtonLabel:"Payer en ligne avec Stripe",bankTransferUrl:"/#contact",bankTransferButtonLabel:"Recevoir le RIB pour virement",capacityLabel:"Places limitées par catégorie d'âge",successMessage:"Votre pré-inscription au stage vacances a bien été transmise.",capacityLimit:36,autoCloseWhenFull:!1},imageUrl:"/uploads/events.evt-3.webp",structuredData:{offers:{url:"/#evenements",availability:"https://schema.org/PreOrder",category:"Pré-inscription stage jeunes"}}},{id:"evt-4",title:"La Nuit Festive du Volley-Ball",category:"Vie du club",date:"Vendredi soir en décembre",location:"Gymnase Zammit",description:"Tournoi nocturne amical ouvert à toutes les familles et amis du club. Équipes déguisées, crêpes chaudes, musique et ambiance garantie jusqu’à minuit.",badge:"Convivial",displayOrder:4,registrationMode:"internal",registrationStatus:"open",registrationForm:{ctaLabel:"Réserver ma place",intro:"Indiquez vos coordonnées pour que le club puisse organiser les équipes et l'accueil de la soirée.",priceLabel:"Animation club conviviale",pricingMode:"free",capacityLabel:"Organisation selon le nombre de participants",successMessage:"Votre demande pour la Nuit Festive du Volley-Ball a bien été enregistrée.",capacityLimit:60,autoCloseWhenFull:!1},structuredData:{offers:{url:"/#evenements",price:0,priceCurrency:"EUR",availability:"https://schema.org/InStock",category:"Réservation conviviale"}}},{id:"evt-5",title:"20 ans de Valence ACE Volley-Ball !",category:"Vie du club",date:"2006 - 2026",location:"Valence",description:"Deux décennies de rires, d’amitié et de passion partagée entre générations. Un grand merci à tous les bénévoles et parents qui font battre le cœur du club !",badge:"20 Ans d’Histoire",displayOrder:5}],Cu=[{name:"Madeline ARNAL",role:"Présidente de Valence ACE",badge:"Bureau • Présidence",description:"Cœur battant du club depuis 2018, notre Présidente assure l’équilibre du club. Elle veille au projet associatif, aux relations institutionnelles (Mairie, OSV, FFVB) et à l’accueil bienveillant de chaque famille.",contact:"06 45 57 18 25",imageUrl:"/uploads/staff.madeline-arnal-1787338863166.webp"},{name:"Guillaume Katchikian",role:"Vice-Président de Valence ACE",badge:"Bureau • Vice-Présidence",description:"Appuie la présidence sur les dossiers structurants, la coordination opérationnelle du club et la continuité des décisions du bureau."},{name:"Jonathan Kessler",role:"Trésorier de Valence ACE",badge:"Bureau • Trésorerie",description:"Assure le suivi budgétaire, les cotisations, les dépenses et l’équilibre financier nécessaire au bon déroulement de la saison."},{name:"Nicolas Naze",role:"Secrétaire de Valence ACE",badge:"Bureau • Secrétariat",description:"Gère le suivi administratif, les licences, les échanges internes et la circulation des informations avec les familles et licenciés."},{name:"Guillaume POMMEREAU",role:"Responsable Sportif & Éducateur Diplômé",badge:"Pôle Technique & Jeunes",description:"Cheville ouvrière de la formation valentinoise. Il pilote la coordination pédagogique des collectifs jeunes (M9 à M18), les stages vacances scolaires et les interventions en milieu scolaire.",contact:"[email protected] • 06 62 50 82 46",imageUrl:"/uploads/staff.guillaume-pommereau-1787338867428.webp"},{name:"Mathilde",role:"Éducatrices Collectif M9 Mixte (6-8 ans)",badge:"Éveil & Motricité",description:"Une approche 100% ludique et bienveillante le mercredi au Gymnase Alain Zammit pour apprendre à aimer le ballon, courir, sauter et coopérer dans la joie.",imageUrl:"/uploads/staff.mathilde-1787338964373.webp"},{name:"Céline",role:"Éducatrices Collectif M11 Mixte (9-10 ans)",badge:"Apprentissage Fondamentaux",description:"Apprentissage technique des gestes clés (passe haute, manchette, engagement au service) et premiers matchs en 2x2 et 3x3 avec passion et rigueur positive."},{name:"Loris",role:"Entraîneur Collectif M13 Garçons",badge:"Formation Compétition",description:"Accompagne la transition vers le jeu sur grand terrain et la construction collective du point pour les 11-12 ans au gymnase Zammit.",imageUrl:"/uploads/staff.Loris-1787338844936.webp"},{name:"Guillaume Katchikian + Boris Morand",role:"Coachs Séniors Prénationale",badge:"Pôle Compétition FFVB",description:"Pilotent le collectif prénational avec exigence tactique, intensité et culture de la performance pour porter haut les couleurs du club.",imageUrl:"/uploads/staff.guikatch-shivam-1787338850546.webp"},{name:"Nicolas Naze + Hugo Revol",role:"Coachs Séniors Pré-Régionale",badge:"Pré-Régionale FFVB",description:"Encadrent le groupe pré-régional avec un travail axé sur la cohésion, la régularité de jeu et la progression collective."},{name:"Shivam",role:"Coach Séniors Départementale",badge:"Départementale FFVB",description:"Accompagne l’équipe départementale sur la dynamique de groupe, la montée en intensité et le plaisir de jouer juste."},{name:"Référent UFOLEP 1",role:"Responsable Équipe Loisirs UFOLEP 1",badge:"UFOLEP Équipe 1",description:"Coordonne l’équipe UFOLEP 1, l’organisation des rencontres et le lien avec les joueurs du collectif.",contact:"[email protected]"},{name:"Référent UFOLEP 2",role:"Responsable Équipe Loisirs UFOLEP 2",badge:"UFOLEP Équipe 2",description:"Anime le collectif UFOLEP 2, facilite la logistique des matchs et veille à la cohésion de l’équipe.",contact:"[email protected]"},{name:"Référent UFOLEP 3",role:"Responsable Équipe Loisirs UFOLEP 3",badge:"UFOLEP Équipe 3",description:"Suit l’organisation sportive de l’équipe UFOLEP 3 et assure la bonne circulation des informations du groupe.",contact:"[email protected]"},{name:"Référent UFOLEP 4",role:"Responsable Équipe Loisirs UFOLEP 4",badge:"UFOLEP Équipe 4",description:"Accompagne l’équipe UFOLEP 4 sur les rencontres, les convocations et l’esprit convivial de la section loisirs.",contact:"[email protected]"},{name:"Référent UFOLEP 5",role:"Responsable Équipe Loisirs UFOLEP 5",badge:"UFOLEP Équipe 5",description:"Structure la vie de l’équipe UFOLEP 5 et facilite l’organisation des temps de jeu et des échanges de groupe.",contact:"[email protected]"},{name:"Référent UFOLEP 6",role:"Responsable Équipe Loisirs UFOLEP 6",badge:"UFOLEP Équipe 6",description:"Veille à l’accueil, à la coordination et à la dynamique collective de l’équipe UFOLEP 6 tout au long de la saison.",contact:"[email protected]"},{name:"Bénévoles, Table de Marque & Supporters",role:"L’Âme & les Piliers de l’Association",badge:"Cœur Bénévole",description:"Tenue de la buvette, gâteaux maison, arbitrage, tables de marque et ferveur dans les tribunes du gymnase Alain Zammit. Merci à toutes nos bénévoles investis !",contact:"[email protected]",imageUrl:"/uploads/staff.b-n-voles-table-de-marque-supporters-1787338856776.webp"}],$r=[{id:"m7",category:"M7",birthYear:"2020 - 2021",newPrice:150,renewalPrice:130,description:"Baby Volley & éveil motricité pour les 6-7 ans",features:["Séance ludique adaptée","Licence & assurance FFVB incluses","Goûters partagés","2 séances d’essai à la demande"],popular:!1},{id:"m9",category:"M9 (Mixte)",birthYear:"2018 - 2019",newPrice:150,renewalPrice:130,description:"Collectif M9 Mixte (6-8 ans) : éveil moteur, maniement du ballon et jeu ludique",features:["Mercredi & Vendredi à Zammit","Mixte (Filles & Garçons)","Plateaux jeunes conviviaux","2 séances d’essai à la demande"],popular:!1},{id:"m11",category:"M11 (Mixte)",birthYear:"2016 - 2017",newPrice:150,renewalPrice:130,description:"Collectif M11 Mixte (9-10 ans) : passes, manchettes, services et matchs 2x2 / 3x3",features:["Mercredi & Vendredi à Zammit","Mixte (Filles & Garçons)","Plateaux départementaux FFVB","2 séances d’essai à la demande"],popular:!1},{id:"m13",category:"M13",birthYear:"2014 - 2015",newPrice:180,renewalPrice:160,description:"Benjamins - Jeu 4x4, service et perfectionnement",features:["Jusqu’à 3 entraînements / semaine","Championnat régional FFVB","Encadrement par Loris","2 séances d’essai à la demande"],popular:!0},{id:"m15",category:"M15",birthYear:"2012 - 2013",newPrice:200,renewalPrice:180,description:"Minimes - Jeu 6x6, systèmes offensifs et collectifs",features:["Entraînements lundis, mercredis & jeudis","Championnat Régional / Dép.","Encadrement par Guillaume Pommereau","2 séances d’essai à la demande"],popular:!0},{id:"m18",category:"M18",birthYear:"2009 – 2010 - 2011",newPrice:220,renewalPrice:2
4900,description:"Cadets / Juniors - Pôle compétition & Coupe de France",features:["Séances intensives à Zammit","Compétitions officielles FFVB","Aventure Coupe de France","Maillot officiel de match"],popular:!1},{id:"senior-prereg-dep",category:"Senior PreReg / Dep",birthYear:"Majeur",newPrice:220,renewalPrice:200,description:"Séniors Championnats Pré-Régionale & Départementale",features:["2 entraînements / semaine à Zammit","Championnats officiels FFVB","Entraîneurs dédiés (Shivam, Nico, Hugo)","Essais recrutements possibles"],popular:!1},{id:"senior-prenat",category:"Senior Prenat",birthYear:"Majeur",newPrice:250,renewalPrice:230,description:"Séniors Prénationale - Équipe Fanion Masculine",features:["3 entraînements / semaine","Championnat Prénational FFVB","Coach Guikatch","Suivi physique & matchs le samedi"],popular:!1},{id:"senior-loisirs-ufolep",category:"Séniors Loisirs UFOLEP",birthYear:"Majeur",newPrice:140,renewalPrice:140,description:"Section loisirs adulte mixte avec rencontres UFOLEP et pratique conviviale",features:["Créneaux loisirs adultes en semaine","6 équipes UFOLEP mixtes","Ambiance conviviale et accessible","Matchs et rencontres affinitaires"],popular:!1}],db=[{question:"Puis-je venir essayer avec mon enfant sans m'engager ?",answer:"Oui, avec grand plaisir ! Valence ACE offre 2 séances d'essai et sans engagement. Venez simplement avec une tenue de sport, des baskets propres pour la salle et une gourde.",category:"inscriptions"},{question:"Quelle est l'ambiance du club au quotidien ?",answer:"C'est un club à l'esprit 100% familial et associatif ! Parents, enfants, jeunes et seniors se croisent et s'encouragent chaque semaine. Après l'effort, on partage volontiers des goûters pour les jeunes ou un verre de l'amitié entre adultes.",category:"inscriptions"},{question:"Avez-vous des équipes féminines ou accueillez-vous des joueuses ?",answer:"Oui ! Les collectifs d’entraînement jeunes M9 (6-8 ans) et M11 (9-10 ans) sont Mixtes et accueillent filles et garçons avec grand plaisir. De même, nos 6 équipes du Championnat Loisirs UFOLEP sont 100% Mixtes (adultes femmes et hommes). En revanche, les catégories jeunes M13, M15/M18 et séniors FFVB sont actuellement exclusivement masculines.",category:"competition"},{question:"Le club accepte-t-il le Pass'Sport et les aides financières ?",answer:"Oui ! Nous acceptons le Pass'Sport de l'État (déduction immédiate de 50€ sur la cotisation pour les jeunes éligibles), les chèques vacances ANCV, la carte collégien / Pass'Région et proposons un paiement échelonné en 3 fois sans frais par chèque pour faciliter le budget des familles.",category:"tarifs"},{question:"Où se déroulent les séances ?",answer:"Principalement au Gymnase Alain Zammit (12 rue Brunet, 3 terrains), ainsi que dans nos salles partenaires de Valence (Gymnase Denis Maurin, JF Lamour, IND, INSPE).",category:"entrainements"},{question:"Comment contacter directement le club ?",answer:"Vous pouvez joindre Madeline Arnal (Présidente) au 06 45 57 18 25 ou Guillaume Pommereau (Responsable jeunes) par email à [email protected] ou au 06 62 50 82 46.",category:"inscriptions"}],Wx=[{id:"valence",name:"Ville de Valence",role:"Mairie & Mise à disposition des gymnases",url:"https://www.valence.fr",logoUrl:"https://www.valence.fr/app/uploads/2023/04/logo.svg"},{id:"osv",name:"Office des Sports Valentinois",role:"Accompagnement & Développement du sport local",url:"https://www.osv-valence.fr",logoUrl:"https://www.osv-valence.fr/assets/images/logo.png"},{id:"ffvb",name:"FFVolley",role:"Fédération Française de Volley-Ball (Agrément Compétition)",url:"https://www.ffvb.org",logoUrl:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQJN_giehu5yZE-ji4XPyGSYFUc8L6C0Tt8HLO4fIj3SynEgGVwNfh2LQJr&s=10"},{id:"cd2607",name:"Comité Drôme-Ardèche Volley",role:"Organisation des championnats et plateaux jeunes 26/07",url:"https://www.volley-drome-ardeche.fr",logoUrl:"https://www.rhonalpcom.fr/wp-content/uploads/sites/121/2020/04/logo_FFVolley2607_1400px.jpg"},{id:"drome",name:"Département de la Drôme",role:"Conseil Départemental (Aide aux associations sportives)",url:"https://www.ladrome.fr",logoUrl:"https://www.ladrome.fr/wp-content/uploads/2024/04/logo-26-drome.png"},{id:"aura",name:"Région Auvergne-Rhône-Alpes",role:"Soutien aux équipements & Ligues régionales",url:"https://www.auvergnerhonealpes.fr",logoUrl:"https://www.vnf.fr/vnf/app/uploads/2019/08/logo-AURA-internet-1.jpg"},{id:"optique2000",name:"Optique 2000",role:"Sponsor",url:"https://opticien.optic2000.com/auvergne-rhone-alpes/drome/valence/c03350-opticien-valence-optic-2000-959",logoUrl:"https://www.achetezenpaysdesaintomer.com/img/optic-2000-logo-1575453460100.jpg"},{id:"metallodrome",name:"MetalloDrôme",role:"Sponsor",url:"https://www.instagram.com/vermetpro/",logoUrl:"https://encrypted-tbn0.gstatic.
49com/images?q=tbn:ANd9GcTg-isj7s_xXPS-E83nzdgVFiZL8bmrqXn63i4W59qB5g&s"},{id:"pass_sport",name:"Pass’Sport & État",role:"Ministère des Sports (Déduction -50€ pour les jeunes)",url:"https://www.pass.sports.gouv.fr",logoUrl:"https://www.pass.sports.gouv.fr/_next/static/media/pass-sport-logo.9aaba55f.svg"},{id:"ufolep",name:"UFOLEP Drôme (26)",role:"Fédération Sportive Affinitaire (Championnat Loisirs)",url:"https://www.ufolep.org",logoUrl:"https://ufolep26.fr/IMG/siteon0.jpg"},{id:"steelplast",name:"Steelplast",role:"Emballage reutilisable",url:"https://www.steelplastevolufil.com/",logoUrl:"https://www.steelplastevolufil.com/wp-content/uploads/2021/06/logo-valide-STEELPLAST.png"},{id:"creditmutuel",name:"Crédit Mutuel de Valence",role:"Banque partenaire",url:"https://www.creditmutuel.fr/fr/caisse/auvergne-rhone-alpes/drome/10278-08903-00",logoUrl:"https://cdnsi.e-i.com/INGR/sd/cm_2023/10.128.7/fr/images/css/env/logo.svg"}],Do=[{id:"gal-1",title:"Smash décisif en Championnat Régional",category:"matchs",imageUrl:"/uploads/teams.seniors-prenat-1787178412398.webp",caption:"Attaque pleine puissance au Gymnase Zammit sous les vivats des supporters valentinois.",date:"Saison 2025/2026",location:"Gymnase Zammit, Valence",tag:"Séniors Régionale"},{id:"gal-2",title:"Tournoi d’Été Esti’Voll au bord du Rhône",category:"tournois",imageUrl:"/uploads/gallery.gal-2-1787176958271.webp",caption:"Matchs sur herbe et sable sous le soleil avec barbecue et sourires.",date:"Juin 2025",location:"Berges du Rhône, Valence",tag:"Esti’Voll"},{id:"gal-3",title:"Les Pitchouns de l’École de Volley",category:"jeunes",imageUrl:"/uploads/gallery.gal-3-1787176969533.webp",caption:"Découverte des réflexes et joie du jeu collectif pour les M9 / M11 du mercredi après-midi.",date:"Mercredi 14h",location:"Gymnase Zammit",tag:"Baby & M9"},{id:"gal-4",title:"Cercle de motivation avant le match",category:"vie_du_club",imageUrl:"/uploads/teams.m11-1787178399891.webp",caption:'Le cri de ralliement "1, 2, 3... VALENCE !" qui résonne dans le gymnase.',date:"Samedi après-midi",location:"Gymnase Zammit",tag:"Esprit d’Équipe"},{id:"gal-5",title:"Défense acrobatique au filet",category:"matchs",imageUrl:"/uploads/teams.seniors-dep.webp",caption:"Superbe plongeon et sauvetage de balle lors du derby contre Romans.",date:"Février 2026",location:"Gymnase Alain Zammit",tag:"Départementale"},{id:"gal-6",title:"Soirée Loisirs & Apéro des Familles",category:"vie_du_club",imageUrl:"/uploads/teams.ufolep-1-6-1787178427923.webp",caption:"Détente du vendredi soir entre adhérents et partage du verre de l’amitié.",date:"Vendredi soir",location:"Gymnase Alain Zammit",tag:"Loisirs UFOLEP"},{id:"gal-7",title:"Aventure Coupe de France Jeunes M18",category:"jeunes",imageUrl:"/uploads/gallery.gal-7-1787231141986.webp",caption:"Les M18 en déplacement national : fierté du maillot et souvenirs inoubliables.",date:"Automne 2025",location:"Montpellier",tag:"M18 Coupe de France"},{id:"gal-8",title:"Tournoi Solidaire du Cœur pour la Ligue",category:"tournois",imageUrl:"/uploads/cardinals.webp",caption:"Sport et générosité réunis aux côtés des Cardinals pour soutenir la lutte contre le cancer.",date:"Septembre 2025",location:"Gymnase Zammit",tag:"Solidaire"},{id:"gal-9",title:"Stage Vacances Scolaires & Perfectionnement",category:"jeunes",imageUrl:"/uploads/events.evt-3.webp",caption:"Ateliers passes, manchettes et tournois festifs pendant les vacances de Toussaint.",date:"Vacances Scolaires",location:"Gymnase Zammit",tag:"Stages Jeunes"},{id:"gal-10",title:"La Nuit Festive du Volley Déguisée",category:"vie_du_club",imageUrl:"/uploads/events.evt-1-1787176936154.webp",caption:"Costumes originaux, musique, crêpes et volley nocturne jusqu’à minuit.",date:"Décembre 2025",location:"Gymnase Zammit",tag:"Festif"},{id:"gal-11",title:"Gymnase Alain Zammit - Match Day",category:"matchs",imageUrl:"/uploads/gallery.gal-11-1787231130134.webp",caption:"Parquet homologué, filet tendu et gradins prêts pour le coup d’envoi.",date:"Jour de match",location:"12 rue Brunet",tag:"Gymnase Zammit"},{id:"gal-12",title:"20 Ans de Passion & Bénévolat",category:"vie_du_club",imageUrl:"/uploads/staff.b-n-voles-table-de-marque-supporters-1787338856776.webp",caption:"Célébration des 20 années d’existence du club Valence ACE entouré de toutes les générations.",date:"2006 - 2026",location:"Valence (26000)",tag:"20 Ans de Club"},{id:"gal-matchs-slot",title:"Emplacement vedette à compléter",category:"matchs",imageUrl:"",caption:"Slot réservé pour une future photo signature de match ou un gros plan d’action.",date:"Slot libre",location:"Rubrique Matchs & Compétitions",tag:"À alimenter"},{id:"gal-matchs-slot-2",title:"Deuxième papier match à compléter",category:"matchs",imageUrl:"",caption:"Slot réservé pour un second angle de match: détail, banc, supporters ou geste décisif.",date:"Slot libre",location:"Rubrique Matchs & Compétitions",tag:"À alimenter"},{id:"gal-matchs-slot-3",title:"Troisième papier match à compléter",category:"matchs",imageUrl:"",caption:"Slot réservé pour un contrechamp, une célébration ou un portrait de collectif.",date:"Slot libre",location:"Rubrique Matchs & Compétitions",tag:"À alimenter"},{id:"gal-jeunes-slot",title:"Emplacement jeunes à compléter",category:"jeunes",imageUrl:"",caption:"Slot réservé pour un visuel d’école de volley, de plateau ou de stage jeunes.",date:"Slot libre",location:"Rubrique École de Volley & Jeunes",tag:"À alimenter"},{id:"gal-jeunes-slot-2",title:"Deuxième papier jeunes à compléter",category:"jeunes",imageUrl:"",caption:"Slot réservé pour les progrès, les s
49ourires ou les consignes d’entraînement.",date:"Slot libre",location:"Rubrique École de Volley & Jeunes",tag:"À alimenter"},{id:"gal-jeunes-slot-3",title:"Troisième papier jeunes à compléter",category:"jeunes",imageUrl:"",caption:"Slot réservé pour une image d’équipe, de stage ou de plateau jeune.",date:"Slot libre",location:"Rubrique École de Volley & Jeunes",tag:"À alimenter"},{id:"gal-tournois-slot",title:"Emplacement tournoi à compléter",category:"tournois",imageUrl:"",caption:"Slot réservé pour une photo d’Esti’Voll, d’un tournoi d’été ou d’une journée spéciale.",date:"Slot libre",location:"Rubrique Tournois & Esti’Voll",tag:"À alimenter"},{id:"gal-tournois-slot-2",title:"Deuxième papier tournoi à compléter",category:"tournois",imageUrl:"",caption:"Slot réservé pour une ambiance de tournoi, un barbecue ou une finale estivale.",date:"Slot libre",location:"Rubrique Tournois & Esti’Voll",tag:"À alimenter"},{id:"gal-tournois-slot-3",title:"Troisième papier tournoi à compléter",category:"tournois",imageUrl:"",caption:"Slot réservé pour un contrechamp des participants ou une scène de jeu atypique.",date:"Slot libre",location:"Rubrique Tournois & Esti’Voll",tag:"À alimenter"},{id:"gal-vie-slot",title:"Emplacement vie du club à compléter",category:"vie_du_club",imageUrl:"",caption:"Slot réservé pour une image de convivialité, d’événement interne ou de fête du club.",date:"Slot libre",location:"Rubrique Convivialité & Festivités",tag:"À alimenter"},{id:"gal-vie-slot-2",title:"Deuxième papier vie du club à compléter",category:"vie_du_club",imageUrl:"",caption:"Slot réservé pour la vie associative, les bénévoles ou un moment partagé.",date:"Slot libre",location:"Rubrique Convivialité & Festivités",tag:"À alimenter"},{id:"gal-vie-slot-3",title:"Troisième papier vie du club à compléter",category:"vie_du_club",imageUrl:"",caption:"Slot réservé pour une fête de club, un anniversaire ou une photo de groupe.",date:"Slot libre",location:"Rubrique Convivialité & Festivités",tag:"À alimenter"}],eh=[{id:"news-prenat-match",type:"match",team:"Séniors Prénat",title:"Match au Sommet Prénationale FFVB",headline:"Valence ACE ⚔️ Grenoble VHB",opponent:"Grenoble VHB",date:"Samedi 28 Mars",time:"20h30",location:"Gymnase Alain Zammit • Terrain 1",isHome:!0,status:"highlight",badge:"Prénationale FFVB",badgeColor:"bg-amber-500/20 text-amber-300 border-amber-400/40",details:"Choc de haut de tableau à domicile ! Entrée libre, buvette des supporters & ambiance volcanique au gymnase Zammit.",ctaText:"Infos Match & Accès",ctaAction:"zammit"},{id:"news-prereg-match",type:"match",team:"Séniors Pré-Régionale",title:"Derby Pré-Régionale Drôme-Ardèche",headline:"Valence ACE ⚔️ Romans Volley",opponent:"Romans Volley VBC",date:"Samedi 28 Mars",time:"18h00",location:"Gymnase Denis Maurin • 3 Terrains",isHome:!0,status:"upcoming",badge:"Pré-Régionale",badgeColor:"bg-blue-500/20 text-blue-300 border-blue-400/40",details:"Nos Pré-Régionaux en quête de victoire pour conforter le podium et la course à la montée.",ctaText:"Voir le Gymnase",ctaAction:"maurin"},{id:"news-m18-cdf",type:"match",team:"M18 Garçons",title:"2ème Tour Coupe de France Jeunes FFVB",headline:"Valence ACE ⚔️ Montpellier VUC",opponent:"Montpellier VUC",date:"Dimanche 29 Mars",time:"14h00",location:"Gymnase Alain Zammit",isHome:!0,status:"highlight",badge:"Coupe de France M18",badgeColor:"bg-emerald-500/20 text-emerald-300 border-emerald-400/40",details:"Aventure nationale pour nos jeunes pépites masculines encadrées par Guillaume Pommereau !",ctaText:"Collectif M18",ctaAction:"m15-m18"},{id:"news-dep-match",type:"match",team:"Séniors Départementale",title:"Championnat Départemental 26/07",headline:"Valence ACE ⚔️ Guilherand-Granges",opponent:"Guilherand-Granges",date:"Vendredi 27 Mars",time:"20h30",location:"Gymnase Alain Zammit • Terrains 1 & 2",isHome:!0,status:"upcoming",badge:"Départementale",badgeColor:"bg-sky-500/20 text-sky-300 border-sky-400/40",details:"Match à domicile sous le coaching de Shivam : intensité et solidarité pour les 3 points !",ctaText:"Détails Équipe",ctaAction:"seniors-dep"},{id:"news-ufolep-night",type:"event",team:"Loisirs UFOLEP",title:"Soirée Tournoi & Apéro UFOLEP 26",headline:"Valence ACE 1 à 6 • Grand Rassemblement",date:"Lundi 30 Mars",time:"20h00",location:"Gymnase Alain Zammit • 3 Terrains",isHome:!0,status:"upcoming",badge:"UFOLEP Mixte (6 Équipes)",badgeColor:"bg-orange-500/20 text-orange-300 border-orange-400/40",details:"Les 6 équipes loisirs mixtes réunies pour des matchs amicaux suivis du traditionnel buffet partagé.",ctaText:"Section Loisirs",ctaAction:"ufolep-1-6"},{id:"news-jeunes-plateau",type:"event",team:"M9 & M11 Mixtes",title:"Plateau Départemental Découverte Jeunes",headline:"M9 & M11 Mixtes en Action",date:"Samedi 4 Avril",time:"09h30 - 12h00",location:"Gymnase Denis Maurin",isHome:!0,status:"upcoming",badge:"Collectifs M9 & M11 Mixtes",badgeColor:"bg-yellow-500/20 text-yellow-300 border-yellow-400/40",details:"Jeux 1
49x1, 2x2 et 3x3 pour nos plus jeunes joueuses et joueurs avec médailles et goûter offert.",ctaText:"Collectifs Jeunes",ctaAction:"m9"},{id:"news-last-result",type:"result",team:"Séniors Prénat",title:"Dernier Résultat • Victoire Extérieure",headline:"ASUL Lyon Volley 1 - 3 Valence ACE",date:"Week-end dernier",time:"Score : 21-25, 25-22, 19-25, 18-25",location:"Lyon (Gymnase Petit)",isHome:!1,score:"1 - 3",status:"finished",badge:"Victoire Prénat 🔥",badgeColor:"bg-emerald-500/25 text-emerald-300 border-emerald-400/50",details:"Superbe démonstration de solidité au bloc et en attaque. 3 points cruciaux glanés hors de nos bases !",ctaText:"Classement & Équipe",ctaAction:"seniors-prenat"},{id:"news-trial-reminder",type:"news",title:"Inscriptions & Portes Ouvertes 2026/2027",headline:"2 Séances d’Essai Gratuites Sans Engagement",date:"Toute la saison",location:"Gymnases Alain Zammit & Denis Maurin",status:"highlight",badge:"Offre d’Essai 🏐",badgeColor:"bg-amber-400 text-slate-950 font-black border-amber-300",details:"Venez taper le ballon avec nous !",ctaText:"Réserver 2 Essais",ctaAction:"trial"}],zu=({size:o="md",variant:f="full",className:c=""})=>{const b="/phenixvacebicol.webp",k={sm:"w-[46px] h-[46px]",md:"w-[55px] h-[55px]",lg:"w-[78px] h-[78px]",xl:"w-[110px] h-[110px]",hero:"w-[136px] h-[136px] sm:w-[159px] sm:h-[159px]"},p=({imageClass:g="w-full h-full object-contain"})=>t.jsx("img",{src:b,alt:"Logo Valence ACE Volley-Ball",className:g,loading:"eager",decoding:"async"});return f==="icon"?t.jsx("div",{className:`relative inline-flex items-center justify-center shrink-0 ${k[o]} ${c}`,children:t.jsx(p,{})}):f==="badge"?t.jsxs("div",{className:`relative inline-flex items-center gap-2.5 p-2.5 rounded-2xl bg-slate-900/90 border border-amber-500/40 shadow-xl shadow-amber-500/10 ${c}`,children:[t.jsx("div",{className:`shrink-0 ${k[o]}`,children:t.jsx(p,{})}),t.jsxs("div",{className:"flex flex-col text-left pr-1",children:[t.jsxs("span",{className:"text-base sm:text-lg font-black tracking-tight text-white font-display leading-tight",children:["VALENCE ",t.jsx("span",{className:"text-amber-400",children:"ACE"})]}),t.jsx("span",{className:"text-[10px] font-extrabold uppercase tracking-widest text-slate-300",children:"Volley-Ball"})]})]}):f==="horizontal"?t.jsxs("div",{className:`inline-flex items-center gap-2.5 group ${c}`,children:[t.jsx("div",{className:`shrink-0 transition-transform group-hover:scale-105 ${k[o]}`,children:t.jsx(p,{})}),t.jsxs("div",{className:"flex flex-col text-left",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx("span",{className:"text-lg font-black tracking-tight text-white group-hover:text-amber-400 transition-colors font-display",children:"VALENCE ACE"}),t.jsx("span",{className:"text-[9px] font-black uppercase tracking-wider bg-amber-400/20 text-amber-300 px-1.5 py-0.5 rounded border border-amber-400/30",children:"Club Officiel"})]}),t.jsx("span",{className:"text-[11px] text-slate-400 font-medium",children:"Le Phénix • Volley-Ball Valence (26)"})]})]}):t.jsxs("div",{className:`flex items-center gap-2.5 group ${c}`,children:[t.jsx("div",{className:`shrink-0 transition-transform duration-300 group-hover:scale-105 ${k[o]}`,children:t.jsx(p,{})}),t.jsxs("div",{className:"flex flex-col text-left",children:[t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsxs("span",{className:"text-[1.1rem] font-black tracking-tighter text-white group-hover:text-amber-400 transition-colors font-display leading-none",children:["VALENCE ",t.jsx("span",{className:"text-amber-400",children:"ACE"})]})}),t.jsxs("div",{className:"flex items-center gap-1 mt-0.5",children:[t.jsx("span",{className:"text-[9px] font-extrabold uppercase tracking-[0.22em] text-slate-300 bg-slate-800/80 px-1.5 py-0.5 rounded-full border border-slate-700",children:"VOLLEY-BALL"}),t.jsx("span",{className:"text-[9px] text-amber-400 font-semibold hidden sm:inline",children:"• Depuis 2006"})]})]})]})};/**
50 * @license lucide-react v0.546.0 - ISC
51 *
52 * This source code is licensed under the ISC license.
53 * See the LICENSE file in the root directory of this source tree.
54 */const ub=o=>o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mb=o=>o.replace(/^([A-Z])|[\s-_]+(\w)/g,(f,c,b)=>b?b.toUpperCase():c.toLowerCase()),ux=o=>{const f=mb(o);return f.charAt(0).toUpperCase()+f.slice(1)},th=(...o)=>o.filter((f,c,b)=>!!f&&f.trim()!==""&&b.indexOf(f)===c).join(" ").trim(),pb=o=>
vendor: 8,140 bytes, lines 54-164
54{for(const f in o)if(f.startsWith("aria-")||f==="role"||f==="title")return!0};/**
55 * @license lucide-react v0.546.0 - ISC
56 *
57 * This source code is licensed under the ISC license.
58 * See the LICENSE file in the root directory of this source tree.
59 */var xb={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"};/**
60 * @license lucide-react v0.546.0 - ISC
61 *
62 * This source code is licensed under the ISC license.
63 * See the LICENSE file in the root directory of this source tree.
64 */const hb=Z.forwardRef(({color:o="currentColor",size:f=24,strokeWidth:c=2,absoluteStrokeWidth:b,className:k="",children:p,iconNode:g,...y},N)=>Z.createElement("svg",{ref:N,...xb,width:f,height:f,stroke:o,strokeWidth:b?Number(c)*24/Number(f):c,className:th("lucide",k),...!p&&!pb(y)&&{"aria-hidden":"true"},...y},[...g.map(([C,v])=>Z.createElement(C,v)),...Array.isArray(p)?p:[p]]));/**
65 * @license lucide-react v0.546.0 - ISC
66 *
67 * This source code is licensed under the ISC license.
68 * See the LICENSE file in the root directory of this source tree.
69 */const Oe=(o,f)=>{const c=Z.forwardRef(({className:b,...k},p)=>Z.createElement(hb,{ref:p,iconNode:f,className:th(`lucide-${ub(ux(o))}`,`lucide-${o}`,b),...k}));return c.displayName=ux(o),c};/**
70 * @license lucide-react v0.546.0 - ISC
71 *
72 * This source code is licensed under the ISC license.
73 * See the LICENSE file in the root directory of this source tree.
74 */const fb=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],mx=Oe("archive",fb);/**
75 * @license lucide-react v0.546.0 - ISC
76 *
77 * This source code is licensed under the ISC license.
78 * See the LICENSE file in the root directory of this source tree.
79 */const bb=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],zo=Oe("arrow-left",bb);/**
80 * @license lucide-react v0.546.0 - ISC
81 *
82 * This source code is licensed under the ISC license.
83 * See the LICENSE file in the root directory of this source tree.
84 */const gb=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],ai=Oe("arrow-right",gb);/**
85 * @license lucide-react v0.546.0 - ISC
86 *
87 * This source code is licensed under the ISC license.
88 * See the LICENSE file in the root directory of this source tree.
89 */const vb=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],yb=Oe("arrow-up-right",vb);/**
90 * @license lucide-react v0.546.0 - ISC
91 *
92 * This source code is licensed under the ISC license.
93 * See the LICENSE file in the root directory of this source tree.
94 */const jb=[["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3",key:"cabbwy"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]],_u=Oe("building",jb);/**
95 * @license lucide-react v0.546.0 - ISC
96 *
97 * This source code is licensed under the ISC license.
98 * See the LICENSE file in the root directory of this source tree.
99 */const Nb=[["path",{d:"M8 6v6",key:"18i7km"}],["path",{d:"M15 6v6",key:"1sg6z9"}],["path",{d:"M2 12h19.6",key:"de5uta"}],["path",{d:"M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3",key:"1wwztk"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}],["path",{d:"M9 18h5",key:"lrx6i"}],["circle",{cx:"16",cy:"18",r:"2",key:"1v4tcr"}]],wb=Oe("bus",Nb);/**
100 * @license lucide-react v0.546.0 - ISC
101 *
102 * This source code is licensed under the ISC license.
103 * See the LICENSE file in the root directory of this source tree.
104 */const Sb=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]],Cb=Oe("calculator",Sb);/**
105 * @license lucide-react v0.546.0 - ISC
106 *
107 * This source code is licensed under the ISC license.
108 * See the LICENSE file in the root directory of this source tree.
109 */const _b=[["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"}]],Ft=Oe("calendar",_b);/**
110 * @license lucide-react v0.546.0 - ISC
111 *
112 * This source code is licensed under the ISC license.
113 * See the LICENSE file in the root directory of this source tree.
114 */const kb=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],si=Oe("camera",kb);/**
115 * @license lucide-react v0.546.0 - ISC
116 *
117 * This source code is licensed under the ISC license.
118 * See the LICENSE file in the root directory of this source tree.
119 */const Eb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Yr=Oe("check",Eb);/**
120 * @license lucide-react v0.546.0 - ISC
121 *
122 * This source code is licensed under the ISC license.
123 * See the LICENSE file in the root directory of this source tree.
124 */const Ab=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ut=Oe("chevron-down",Ab);/**
125 * @license lucide-react v0.546.0 - ISC
126 *
127 * This source code is licensed under the ISC license.
128 * See the LICENSE file in the root directory of this source tree.
129 */const Mb=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ah=Oe("chevron-left",Mb);/**
130 * @license lucide-react v0.546.0 - ISC
131 *
132 * This source code is licensed under the ISC license.
133 * See the LICENSE file in the root directory of this source tree.
134 */const Tb=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],li=Oe("chevron-right",Tb);/**
135 * @license lucide-react v0.546.0 - ISC
136 *
137 * This source code is licensed under the ISC license.
138 * See the LICENSE file in the root directory of this source tree.
139 */const Lb=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],ku=Oe("chevron-up",Lb);/**
140 * @license lucide-react v0.546.0 - ISC
141 *
142 * This source code is licensed under the ISC license.
143 * See the LICENSE file in the root directory of this source tree.
144 */const Ob=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Ub=Oe("circle-alert",Ob);/**
145 * @license lucide-react v0.546.0 - ISC
146 *
147 * This source code is licensed under the ISC license.
148 * See the LICENSE file in the root directory of this source tree.
149 */const zb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Ca=Oe("circle-check",zb);/**
150 * @license lucide-react v0.546.0 - ISC
151 *
152 * This source code is licensed under the ISC license.
153 * See the LICENSE file in the root directory of this source tree.
154 */const Rb=[["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"}]],Db=Oe("circle-x",Rb);/**
155 * @license lucide-react v0.546.0 - ISC
156 *
157 * This source code is licensed under the ISC license.
158 * See the LICENSE file in the root directory of this source tree.
159 */const Fb=[["path",{d:"M12 6v6h4",key:"135r8i"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],sh=Oe("clock-3",Fb);/**
160 * @license lucide-react v0.546.0 - ISC
161 *
162 * This source code is licensed under the ISC license.
163 * See the LICENSE file in the root directory of this source tree.
164 */const Bb=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Fo=Oe("clock",Bb);
164/**
165 * @license lucide-react v0.546.0 - ISC
166 *
167 * This source code is licensed under the ISC license.
168 * See the LICENSE file in the root directory of this source tree.
169 */const qb=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],Ba=Oe("cloud-upload",qb);/**
170 * @license lucide-react v0.546.0 - ISC
171 *
172 * This source code is licensed under the ISC license.
173 * See the LICENSE file in the root directory of this source tree.
174 */const Vb=[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]],px=Oe("coffee",Vb);/**
175 * @license lucide-react v0.546.0 - ISC
176 *
177 * This source code is licensed under the ISC license.
178 * See the LICENSE file in the root directory of this source tree.
179 */const Gb=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],lh=Oe("copy",Gb);/**
180 * @license lucide-react v0.546.0 - ISC
181 *
182 * This source code is licensed under the ISC license.
183 * See the LICENSE file in the root directory of this source tree.
184 */const Hb=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],Eu=Oe("credit-card",Hb);/**
185 * @license lucide-react v0.546.0 - ISC
186 *
187 * This source code is licensed under the ISC license.
188 * See the LICENSE file in the root directory of this source tree.
189 */const Pb=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Ql=Oe("download",Pb);/**
190 * @license lucide-react v0.546.0 - ISC
191 *
192 * This source code is licensed under the ISC license.
193 * See the LICENSE file in the root directory of this source tree.
194 */const $b=[["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"}]],Ru=Oe("external-link",$b);/**
195 * @license lucide-react v0.546.0 - ISC
196 *
197 * This source code is licensed under the ISC license.
198 * See the LICENSE file in the root directory of this source tree.
199 */const Ib=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],Zb=Oe("facebook",Ib);/**
200 * @license lucide-react v0.546.0 - ISC
201 *
202 * This source code is licensed under the ISC license.
203 * See the LICENSE file in the root directory of this source tree.
204 */const Yb=[["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"}]],xx=Oe("file-text",Yb);/**
205 * @license lucide-react v0.546.0 - ISC
206 *
207 * This source code is licensed under the ISC license.
208 * See the LICENSE file in the root directory of this source tree.
209 */const Jb=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],Xb=Oe("flame",Jb);/**
210 * @license lucide-react v0.546.0 - ISC
211 *
212 * This source code is licensed under the ISC license.
213 * See the LICENSE file in the root directory of this source tree.
214 */const Qb=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],Kb=Oe("funnel",Qb);/**
215 * @license lucide-react v0.546.0 - ISC
216 *
217 * This source code is licensed under the ISC license.
218 * See the LICENSE file in the root directory of this source tree.
219 */const Wb=[["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"}]],eg=Oe("globe",Wb);/**
220 * @license lucide-react v0.546.0 - ISC
221 *
222 * This source code is licensed under the ISC license.
223 * See the LICENSE file in the root directory of this source tree.
224 */const tg=[["path",{d:"M19.414 14.414C21 12.828 22 11.5 22 9.5a5.5 5.5 0 0 0-9.591-3.676.6.6 0 0 1-.818.001A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.535 5.362a2 2 0 0 0 2.879.052 2.12 2.12 0 0 0-.004-3 2.124 2.124 0 1 0 3-3 2.124 2.124 0 0 0 3.004 0 2 2 
2240 0 0 0-2.828l-1.881-1.882a2.41 2.41 0 0 0-3.409 0l-1.71 1.71a2 2 0 0 1-2.828 0 2 2 0 0 1 0-2.828l2.823-2.762",key:"17lmqv"}]],hx=Oe("heart-handshake",tg);/**
225 * @license lucide-react v0.546.0 - ISC
226 *
227 * This source code is licensed under the ISC license.
228 * See the LICENSE file in the root directory of this source tree.
229 */const ag=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],fx=Oe("heart",ag);/**
230 * @license lucide-react v0.546.0 - ISC
231 *
232 * This source code is licensed under the ISC license.
233 * See the LICENSE file in the root directory of this source tree.
234 */const sg=[["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"}]],Sa=Oe("image",sg);/**
235 * @license lucide-react v0.546.0 - ISC
236 *
237 * This source code is licensed under the ISC license.
238 * See the LICENSE file in the root directory of this source tree.
239 */const lg=[["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"}]],rg=Oe("instagram",lg);/**
240 * @license lucide-react v0.546.0 - ISC
241 *
242 * This source code is licensed under the ISC license.
243 * See the LICENSE file in the root directory of this source tree.
244 */const ng=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],ig=Oe("layers",ng);/**
245 * @license lucide-react v0.546.0 - ISC
246 *
247 * This source code is licensed under the ISC license.
248 * See the LICENSE file in the root directory of this source tree.
249 */const og=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],rh=Oe("layout-grid",og);/**
250 * @license lucide-react v0.546.0 - ISC
251 *
252 * This source code is licensed under the ISC license.
253 * See the LICENSE file in the root directory of this source tree.
254 */const cg=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],nh=Oe("loader-circle",cg);/**
255 * @license lucide-react v0.546.0 - ISC
256 *
257 * This source code is licensed under the ISC license.
258 * See the LICENSE file in the root directory of this source tree.
259 */const dg=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Bo=Oe("lock",dg);/**
260 * @license lucide-react v0.546.0 - ISC
261 *
262 * This source code is licensed under the ISC license.
263 * See the LICENSE file in the root directory of this source tree.
264 */const ug=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],wl=Oe("mail",ug);/**
265 * @license lucide-react v0.546.0 - ISC
266 *
267 * This source code is licensed under the ISC license.
268 * See the LICENSE file in the root directory of this source tree.
269 */const mg=[["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"}]],Bt=Oe("map-pin",mg);/**
270 * @license lucide-react v0.546.0 - ISC
271 *
272 * This source code is licensed under the ISC license.
273 * See the LICENSE file in the root directory of this source tree.
274 */const pg=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],xg=Oe("maximize-2",pg);/**
275 * @license lucide-react v0.546.0 - ISC
276 *
277 * This source code is licensed under the ISC license.
278 * See the LICENSE file in the root directory of this source tree.
279 */const hg=[["path",{d:"M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15",key:"143lza"}],["path",{d:"M11 12 5.12 2.2",key:"qhuxz6"}],["path",{d:"m13 12 5.88-9.8",key:"hbye0f"}],["path",{d:"M8 7h8",key:"i86dvs"}],["circle",{cx:"12",cy:"17",r:"5",key:"qbz8iq"}],["path",{d:"M12 18v-2h-.5",key:"fawc4q"}]],bx=Oe("medal",hg);/**
280 * @license lucide-react v0.546.0 - ISC
281 *
282 * This source code is licensed under the ISC license.
283 * See the LICENSE file in the root directory of this source tree.
284 */const fg=[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]],gx=Oe("megaphone",fg);/**
285 * @license lucide-react v0.546.0 - ISC
286 *
287 * This source code is licensed under the ISC license.
288 * See the LICENSE file in the root directory of this source tree.
289 */const bg=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],gg=Oe("menu",bg);/**
290 * @license lucide-react v0.546.0 - ISC
291 *
292 * This source code is licensed under the ISC license.
293 * See the LICENSE file in the root directory of this source tree.
294 */const vg=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],vx=Oe("message-square",vg);/**
295 * @license lucide-react v0.546.0 - ISC
296 *
297 * This source code is licensed under the ISC license.
298 * See the LICENSE file in the root directory of this source tree.
299 */const yg=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],jg=Oe("navigation",yg);/**
300 * @license lucide-react v0.546.0 - ISC
301 *
302 * This source code is licensed under the ISC license.
303 * See the LICENSE file in the root directory of this source tree.
304 */const Ng=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],wg=Oe("pause",Ng);/**
305 * @license lucide-react v0.546.0 - ISC
306 *
307 * This source code is licensed under the ISC license.
308 * See the LICENSE file in the root directory of this source tree.
309 */const Sg=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 
3090 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],qo=Oe("phone",Sg);/**
310 * @license lucide-react v0.546.0 - ISC
311 *
312 * This source code is licensed under the ISC license.
313 * See the LICENSE file in the root directory of this source tree.
314 */const Cg=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Du=Oe("play",Cg);/**
315 * @license lucide-react v0.546.0 - ISC
316 *
317 * This source code is licensed under the ISC license.
318 * See the LICENSE file in the root directory of this source tree.
319 */const _g=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],bu=Oe("plus",_g);/**
320 * @license lucide-react v0.546.0 - ISC
321 *
322 * This source code is licensed under the ISC license.
323 * See the LICENSE file in the root directory of this source tree.
324 */const kg=[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]],Eg=Oe("printer",kg);/**
325 * @license lucide-react v0.546.0 - ISC
326 *
327 * This source code is licensed under the ISC license.
328 * See the LICENSE file in the root directory of this source tree.
329 */const Ag=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Au=Oe("radio",Ag);/**
330 * @license lucide-react v0.546.0 - ISC
331 *
332 * This source code is licensed under the ISC license.
333 * See the LICENSE file in the root directory of this source tree.
334 */const Mg=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],yx=Oe("rotate-ccw",Mg);
334/**
335 * @license lucide-react v0.546.0 - ISC
336 *
337 * This source code is licensed under the ISC license.
338 * See the LICENSE file in the root directory of this source tree.
339 */const Tg=[["path",{d:"M4 11a9 9 0 0 1 9 9",key:"pv89mb"}],["path",{d:"M4 4a16 16 0 0 1 16 16",key:"k0647b"}],["circle",{cx:"5",cy:"19",r:"1",key:"bfqh0e"}]],Lg=Oe("rss",Tg);/**
340 * @license lucide-react v0.546.0 - ISC
341 *
342 * This source code is licensed under the ISC license.
343 * See the LICENSE file in the root directory of this source tree.
344 */const Og=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],qs=Oe("save",Og);/**
345 * @license lucide-react v0.546.0 - ISC
346 *
347 * This source code is licensed under the ISC license.
348 * See the LICENSE file in the root directory of this source tree.
349 */const Ug=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],jx=Oe("search",Ug);/**
350 * @license lucide-react v0.546.0 - ISC
351 *
352 * This source code is licensed under the ISC license.
353 * See the LICENSE file in the root directory of this source tree.
354 */const zg=[["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"}]],Rg=Oe("send",zg);/**
355 * @license lucide-react v0.546.0 - ISC
356 *
357 * This source code is licensed under the ISC license.
358 * See the LICENSE file in the root directory of this source tree.
359 */const Dg=[["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"}]],Fg=Oe("share-2",Dg);/**
360 * @license lucide-react v0.546.0 - ISC
361 *
362 * This source code is licensed under the ISC license.
363 * See the LICENSE file in the root directory of this source tree.
364 */const Bg=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Va=Oe("shield-check",Bg);
364/**
365 * @license lucide-react v0.546.0 - ISC
366 *
367 * This source code is licensed under the ISC license.
368 * See the LICENSE file in the root directory of this source tree.
369 */const qg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],ih=Oe("smile",qg);/**
370 * @license lucide-react v0.546.0 - ISC
371 *
372 * This source code is licensed under the ISC license.
373 * See the LICENSE file in the root directory of this source tree.
374 */const Vg=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Ka=Oe("sparkles",Vg);/**
375 * @license lucide-react v0.546.0 - ISC
376 *
377 * This source code is licensed under the ISC license.
378 * See the LICENSE file in the root directory of this source tree.
379 */const Gg=[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]],Hg=Oe("table",Gg);/**
380 * @license lucide-react v0.546.0 - ISC
381 *
382 * This source code is licensed under the ISC license.
383 * See the LICENSE file in the root directory of this source tree.
384 */const Pg=[["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"}]],$g=Oe("tag",Pg);/**
385 * @license lucide-react v0.546.0 - ISC
386 *
387 * This source code is licensed under the ISC license.
388 * See the LICENSE file in the root directory of this source tree.
389 */const Ig=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Zg=Oe("trash-2",Ig);/**
390 * @license lucide-react v0.546.0 - ISC
391 *
392 * This source code is licensed under the ISC license.
393 * See the LICENSE file in the root directory of this source tree.
394 */const Yg=[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]],Zr=Oe("trophy",Yg);/**
395 * @license lucide-react v0.546.0 - ISC
396 *
397 * This source code is licensed under the ISC license.
398 * See the LICENSE file in the root directory of this source tree.
399 */const Jg=[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["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"}]],ri=Oe("user-check",Jg);/**
400 * @license lucide-react v0.546.0 - ISC
401 *
402 * This source code is licensed under the ISC license.
403 * See the LICENSE file in the root directory of this source tree.
404 */const Xg=[["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"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],Nx=Oe("user-plus",Xg);/**
405 * @license lucide-react v0.546.0 - ISC
406 *
407 * This source code is licensed under the ISC license.
408 * See the LICENSE file in the root directory of this source tree.
409 */const Qg=[["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"}]],Kg=Oe("user",Qg);/**
410 * @license lucide-react v0.546.0 - ISC
411 *
412 * This source code is licensed under the ISC license.
413 * See the LICENSE file in the root directory of this source tree.
414 */const Wg=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Jr=Oe("users",Wg);/**
415 * @license lucide-react v0.546.0 - ISC
416 *
417 * This source code is licensed under the ISC license.
418 * See the LICENSE file in the root directory of this source tree.
419 */const e1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
419],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Xr=Oe("x",e1),t1=({onOpenTrialModal:o,onOpenRegistrationModal:f,activeSection:c,onOpenImageManager:b,showAdminConsoleLink:k=!1})=>{const[p,g]=Z.useState(!1),[y,N]=Z.useState(!1);Z.useEffect(()=>{const m=()=>{g(window.scrollY>20)};return window.addEventListener("scroll",m),()=>window.removeEventListener("scroll",m)},[]);const C=[{label:"Accueil",href:"#accueil"},{label:"Équipes",href:"#equipes"},{label:"Créneaux",href:"#creneaux"},{label:"Bureau & Club",href:"#club"},{label:"Matchs",href:"#matchs"},{label:"Événements",href:"#evenements"},{label:"Galerie",href:"#galerie"},{label:"Gymnases",href:"#gymnases"},{label:"Inscriptions & Tarifs",href:"#inscriptions"},{label:"Contact",href:"#contact"}],v=c==="inscriptions"?{label:"S'inscrire en ligne",action:f}:c==="matchs"||c==="evenements"||c==="contact"?{label:"Payer ma cotisation",action:()=>window.location.assign("#inscriptions")}:{label:"Devenir sponsor",action:()=>window.location.assign("#soutiens-agrements-officiels")};return t.jsxs("header",{className:"fixed top-0 left-0 right-0 z-50 transition-all duration-300",children:[t.jsx("div",{className:"bg-gradient-to-r from-slate-950 via-blue-950 to-slate-950 text-slate-200 text-xs py-2 px-4 border-b border-amber-500/20 shadow-sm",children:t.jsxs("div",{className:"max-w-7xl mx-auto flex flex-wrap items-center justify-between gap-2",children:[t.jsxs("div",{className:"flex items-center gap-3 text-xs font-medium",children:[t.jsxs("span",{className:"inline-flex items-center gap-1.5 text-amber-300 bg-amber-500/20 px-2.5 py-0.5 rounded-full border border-amber-400/40 font-bold shadow-xs",children:[t.jsx("span",{className:"w-2 h-2 rounded-full bg-amber-400 animate-pulse"}),t.jsx("span",{children:"Saison 2026/2027 • 2 Séances d'Essai Gratuites"})]}),t.jsxs("span",{className:"hidden md:inline-flex items-center gap-1.5 text-slate-300",children:[t.jsx(Bt,{className:"w-3.5 h-3.5 text-amber-400"}),t.jsx("span",{children:"Valence (26000) • Gymnase Alain Zammit"})]})]}),t.jsxs("div",{className:"flex items-center gap-4 text-xs font-semibold",children:[t.jsxs("a",{href:`tel:${qe.phonePrimary.replace(/\s/g,"")}`,className:"inline-flex items-center gap-1.5 text-slate-200 hover:text-amber-300 transition-colors",children:[t.jsx(qo,{className:"w-3.5 h-3.5 text-amber-400"}),t.jsx("span",{children:qe.phonePrimary})]}),t.jsxs("a",{href:`mailto:${qe.email}`,className:"hidden sm:inline-flex items-center gap-1.5 text-slate-300 hover:text-amber-300 transition-colors",children:[t.jsx(wl,{className:"w-3.5 h-3.5 text-amber-400"}),t.jsx("span",{children:qe.email})]}),k&&t.jsxs("a",{href:"/admin",className:"inline-flex items-center gap-1.5 rounded-full border border-amber-400/40 bg-amber-400/15 px-3 py-1 text-[11px] font-bold text-amber-200 shadow-sm transition-colors hover:border-amber-300 hover:bg-amber-400/25 hover:text-white",children:[t.jsx(Bo,{className:"h-3.5 w-3.5"}),t.jsx("span",{children:"Authentification"})]})]})]})}),t.jsxs("nav",{className:`transition-all duration-300 ${p?"bg-slate-950/95 backdrop-blur-md shadow-2xl border-b border-amber-500/20 py-2.5":"bg-slate-950/90 backdrop-blur-md border-b border-slate-800/80 py-3.5"}`,children:[t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 flex items-center justify-between",children:[t.jsx("a",{href:"#accueil",className:"flex items-center gap-1.5 group transition-transform hover:scale-[1.02] shrink-0",children:t.jsx(zu,{size:"md",variant:"full"})}),t.jsxs("div",{className:"hidden lg:flex items-center gap-0.5 xl:gap-1",children:[t.jsx("span",{className:"inline-block w-[2.5px] h-5 xl:h-6 bg-gradient-to-b from-amber-300 via-orange-500 to-amber-400 transform rotate-[20deg] rounded-full shadow-[0_0_8px_rgba(245,158,11,0.65)] shrink-0 mx-1 xl:mx-1.5","aria-hidden":"true"}),C.map((m,T)=>t.jsxs(Xf.Fragment,{children:[t.jsx("a",{href:m.href,"aria-current":c===m.href.slice(1)?"page":void 0,className:`group relative px-2 xl:px-2.5 py-1.5 text-[11px] xl:text-[12.5px] font-bold rounded-xl transition-all duration-200 border flex items-center justify-center ${c===m.href.slice(1)?"border-amber-400/40 bg-gradient-to-r from-amber-500/20 via-orange-500/20 to-amber-500/10 text-amber-300 shadow-md shadow-amber-500/10":"border-transparent text-slate-200 hover:text-amber-300 hover:bg-gradient-to-r hover:from-amber-500/20 hover:via-orange-500/20 hover:to-amber-500/10 hover:border-amber-400/30 hover:shadow-md hover:shadow-amber-500/10"}`,children:t.jsx("span",{className:"inline-block transition-transform duration-200 group-hover:scale-110",children:m.label})}),t.jsx("span",{className:"inline-block w-[2.5px] h-5 xl:h-6 bg-gradient-to-b from-amber-300 via-orange-500 to-amber-400 transform rotate-[20deg] rounded-full shadow-[0_0_8px_rgba(245,158,11,0.65)] shrink-0 mx-0.5 xl:mx-1","aria-hidden":"true"})]},m.href))]}),t.jsx("div",{className:"hidden sm:flex items-center gap-3 shrink-0",children:t.jsxs("button",{onClick:v.action,className:"group relative shrink-0 whitespace-nowrap overflow-hidden rounded-xl bg-gradient-to-r from-amber-400 via-amber-500 to-orange-500 hover:from-amber-300 hover:to-orange-400 text-slate-950 font-black text-xs sm:text-sm px-4 py-2.5 shadow-lg shadow-amber-500/20 active:scale-95 transition-all duration-200 flex items-center gap-2 cursor-pointer border border-amber-300/40 hover:shadow-amber-500/40",children:[t.jsx(Ka,{className:"w-4 h-4 text-slate-950 transition-transform duration-200 group-hover:rotate-12 group-hover:scale-110"}),t.jsx("span",{className:"inline-block transition-transform duration-200 group-hover:scale-105",children:v.label})]})}),t.jsxs("div",{className:"flex items-center gap-2 lg:hidden",children:[t.jsx("button",{onClick:v.action,className:"sm:hidden bg-gradient-to-r from-amber-400 to-orange-500 text-slate-950 font-black text-xs px-3 py-1.5 rounded-lg shadow",children:"CTA club"}),t.jsx("button",{onClick:()=>N(!y),className:"p-2 text-slate-200 hover:text-white hover:bg-slate-800 rounded-xl focus:outline-none border border-slate-700","aria-label":"Menu",children:y?t.jsx(Xr,{className:"w-6 h-6"}):t.jsx(gg,{className:"w-6 h-6"})})]})]}),y&&t.jsxs("div",{className:"lg:hidden bg-slate-950/98 border-b border-amber-500/30 px-4 pt-3 pb-6 space-y-2 max-h-[80vh] overflow-y-auto backdrop-blur-xl",children:[t.jsx("div",{className:"grid grid-cols-1 gap-1",children:C.map(m=>t.jsxs("a",{href:m.href,onClick:()=>N(!1),"aria-current":c===m.href.slice(1)?"page":void 0,className:`group flex items-center justify-between px-3.5 py-2.5 text-sm font-bold rounded-xl transition-all duration-200 border ${c===m.href.slice(1)?"border-amber-400/30 bg-gradient-to-r from-amber-500/20 to-orange-500/20 text-amber-300":"border-transparent text-slate-200 hover:text-amber-300 hover:bg-gradient-to-r hover:from-amber-500/20 hover:to-orange-500/20 hover:border-amber-400/30"}`,children:[t.jsx("span",{className:"inline-block transition-transform duration-200 group-hover:scale-105",children:m.label}),t.jsx(li,{className:"w-4 h-4 text-amber-400 transition-transform duration-200 group-hover:translate-x-1"})]},m.href))}),t.jsx("div",{className:"pt-3 border-t border-slate-800",children:t.jsxs("button",{onClick:()=>{N(!1),v.action()},className:"w-full py-3 rounded-xl bg-gradient-to-r from-amber-400 via-amber-500 to-orange-500 text-slate-950 font-black text-sm text-center shadow-lg flex items-center justify-center gap-2 cursor-pointer",children:[t.jsx(Ka,{className:"w-4 h-4"}),t.jsx("span",{children:v.label})]})})]})]})]})},a1="/api/content",Yo="/api/admin/content",oh="/api/admin/image-overrides",ch="/api/admin/registrations",s1="/api/admin/matches/import",Jo={badgeText:`${qe.shortName} Volley-Ball • Depuis ${qe.foundingYear}`,headlinePrefix:"L'énergie du Volley, la chaleur d'un",headlineAccent:"Club de Cœur",headlineSuffix:"à Valence !",subtitle:"Bienvenue chez Valence ACE ! Une grande famille sportive où le plaisir du jeu et l’esprit d’équipe sont rois : des collectifs jeunes aux joutes de Prénationale FFVB et à la convivialité de nos équipes Loisirs UFOLEP.",primaryCtaLabel:"Réserver 2 Essais Gratuits",secondaryCtaLabel:"Planning & Créneaux",galleryCtaLabel:"Galerie",mediaMode:"photo",mediaTitle:"Photos & vidéos du club",mediaDescription:"Un espace éditorial pour mettre en avant les temps forts, ou passer en direct lors des matchs.",mediaExpandLabel:"Agrandir"},l1={matches:Ro,events:Zo,news:eh,standings:Io,displayedGymIds:Vs.map(o=>o.id),hero:Jo},r1=qe.logoUrl,n1=new Map(Ro.map(o=>[o.id,o.squadId])),i1=new Map(Zo.map(o=>[o.id,o])),wx=Vs.map(o=>o.id),o1=o=>({...Jo,...o||{}}),c1=o=>Array.isArray(o)&&o.length>0?o:Io,d1=o=>{if(typeof o.squadId=="string"&&o.squadId.trim())return o.squadId;const f=n1.get(o.id);if(f)return f;const c=`${o.team||""} ${o.category||""} ${o.competition||""}`.toLowerCase();if(c.includes("pré-nat")||c.includes("pre-nat")||c.includes("pré national")||c.includes("pre national"))return"prenat";if(c.includes("pré-reg")||c.includes("pre-reg")||c.includes("pré-rég")||c.includes("pre-regional")||c.includes("pre-régional"))return"prereg";if(c.includes("m18"))return"m18";if(c.includes("m15"))return"m15";if(c.includes("m13"))return"m13";if(c.includes("m11"))return"m11";if(c.includes("m9"))return"m9";const b=c.match(/ufolep\s*([1-6])/i);return b?`ufolep-${b[1]}`:c.includes("ufolep")||c.includes("loisir")?"ufolep-1":o.id},u1=o=>{var c,b;const f=i1.get(o.id);return f?{...f,...o,registrationMode:o.registrationMode??f.registrationMode,registrationStatus:o.registrationStatus??f.registrationStatus,registrationUrl:o.registrationUrl??f.registrationUrl,registrationForm:{...f.registrationForm,...o.registrationForm},registrationSummary:o.registrationSummary??f.registrationSummary,structuredData:{...f.structuredData,...o.structuredData,offers:{...(c=f.structuredData)==null?void 0:c.offers,...(b=o.structuredData)==null?void 0:b.offers}}}:o},ni=o=>({...o,displayedGymIds:Array.isArray(o.displayedGymIds)&&o.displayedGymIds.length>0?o.displayedGymIds.filter(f=>typeof f=="string"&&wx.includes(f)):wx,hero:o1(o.hero),standings:c1(o.standings),matches:Array.isArray(o.matches)?o.matches.map(f=>
419({...f,squadId:d1(f),clubLogoUrl:r1})):[],events:Array.isArray(o.events)?o.events.map(f=>u1(f)):Zo,news:Array.isArray(o.news)&&o.news.length>0?o.news:eh}),m1=o=>{const f=ni(o);return{...f,events:f.events.filter(c=>!c.archived)}},Kt=async(o,f)=>{try{return(await o.json()).error||f}catch{return f}},Wt=(o,f)=>{const c=new Headers(f==null?void 0:f.headers);return c.set("x-admin-password",o),{...f,headers:c}},Vo=()=>l1,p1=o=>{const f=o.headers.get("x-admin-role");if(f==="bureau"||f==="communication"||f==="squad_manager")return f;throw new Error("Rôle administrateur introuvable dans la réponse serveur.")},x1=async()=>{const o=await fetch(a1,{cache:"no-store"});if(!o.ok)throw new Error("Impossible de charger le contenu dynamique.");return m1(await o.json())},h1=async o=>{const f=await fetch(`${Yo}?auth=1`,Wt(o,{cache:"no-store"}));if(!f.ok)throw new Error(await Kt(f,f.status===401?"Mot de passe invalide.":"Impossible de vérifier l’accès administrateur."));return f.json()},Sx=async o=>{const f=await fetch(Yo,Wt(o,{cache:"no-store"}));if(!f.ok)throw new Error(await Kt(f,f.status===401?"Mot de passe invalide.":"Impossible de charger l’admin."));const c=await f.json();return{content:ni(c),role:p1(f),squadId:f.headers.get("x-admin-squad-id")||void 0,contactMessages:Array.isArray(c.contactMessages)?c.contactMessages:[]}},Mo=async(o,f,c)=>{const b=await fetch(Yo,Wt(o,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:f,contactMessages:c})}));if(!b.ok)throw new Error(await Kt(b,"Sauvegarde de l’admin impossible."));const k=await b.json();return{content:ni(k),contactMessages:Array.isArray(k.contactMessages)?k.contactMessages:c||[]}},f1=async(o,f)=>{const c=await fetch(`/api/admin/events/${f.id}`,Wt(o,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:f})}));if(!c.ok)throw new Error(await Kt(c,"Enregistrement de l’événement impossible."));return c.json()},b1=async(o,f)=>{const c=await fetch(`/api/admin/matches/${f.id}`,Wt(o,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({match:f})}));if(!c.ok)throw new Error(await Kt(c,"Enregistrement du match impossible."));return c.json()},g1=async(o,f)=>{const c=await fetch(`/api/admin/matches/${f}`,Wt(o,{method:"DELETE"}));if(!c.ok)throw new Error(await Kt(c,"Suppression du match impossible."));return c.json()},v1=async(o,f)=>{const c=await fetch("/api/admin/content",Wt(o,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"create-match",match:f})}));if(!c.ok)throw new Error(await Kt(c,"Création du match impossible."));return c.json()},y1=async(o,f,c)=>{const b=await fetch(s1,Wt(o,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({csvText:f,squadId:c})}));if(!b.ok)throw new Error(await Kt(b,"Import CSV des matchs impossible."));return b.json()},j1=async(o,f)=>{const c=await fetch(`/api/admin/news/${f.id}`,Wt(o,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({newsItem:f})}));if(!c.ok)throw new Error(await Kt(c,"Enregistrement de l’actualité impossible."));return c.json()},Pr=async(o,f)=>{const c=await fetch("/api/admin/content",Wt(o,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:f})}));if(!c.ok)throw new Error(await Kt(c,"Import impossible."));return c.json()},N1=async o=>{const f=await fetch(Yo,Wt(o,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"snapshot"})}));if(!f.ok)throw new Error(await Kt(f,"Création du snapshot impossible."));return f.json()},w1=async o=>{const f=await fetch(oh,Wt(o,{cache:"no-store"}));if(!f.ok)throw new Error(await Kt(f,"Impossible de charger les visuels."));return f.json()},Cx=async(o,f)=>{const c=await fetch(oh,Wt(o,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({overrides:f})}));if(!c.ok)throw new Error(await Kt(c,"Enregistrement des visuels impossible."));return c.json()},_x=async(o,f,c)=>{const b=await c.arrayBuffer(),k=Array.from(new Uint8Array(b)),p=await fetch("/api/admin/upload",Wt(o,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({folder:f,fileName:c.name,mimeType:c.type,data:k})}));if(!p.ok)throw new Error(await Kt(p,"Upload impossible."));return p.json()},S1=async o=>{const f=await fetch(ch,Wt(o,{cache:"no-store"}));if(!f.ok)throw new Error(await Kt(f,"Impossible de charger les adhésions."));const c=await f.json();return{...c,content:c.content?ni(c.content):void 0}},Kn=async(o,f,c,b)=>{const k=await fetch(ch,Wt(o,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({registrations:f,trialRequests:c,eventRegistrations:b})}));if(!k.ok)throw new Error(await Kt(k,"Enregistrement des adhesions impossible."));const p=await k.json();return{...p,content:p.content?ni(p.content):void 0}},dh=Z.createContext({content:Vo(),refreshContent:async()=>{}}
419),C1=({children:o})=>{const[f,c]=Z.useState(Vo()),b=async()=>{try{c(await x1())}catch{c(Vo())}};Z.useEffect(()=>{b()},[]);const k=Z.useMemo(()=>({content:f,refreshContent:b}),[f]);return t.jsx(dh.Provider,{value:k,children:o})},ii=()=>Z.useContext(dh),_1="vace-image-overrides",k1="image-overrides-updated",uh="__VACE_IMAGE_OVERRIDES__",mh="|focus:",Kl={x:50,y:50},ph=()=>typeof window<"u"&&typeof window.localStorage<"u",xh=o=>!!o&&typeof o=="object"&&!Array.isArray(o),Go=o=>Math.min(100,Math.max(0,Math.round(o))),Xo=(o,f)=>{if(!o)return{imageUrl:f||"",focus:Kl};const[c,b]=o.split(mh);if(!b)return{imageUrl:c||f||"",focus:Kl};const[k,p]=b.split(","),g=Number(k),y=Number(p);return{imageUrl:c||f||"",focus:{x:Number.isFinite(g)?Go(g):Kl.x,y:Number.isFinite(y)?Go(y):Kl.y}}},gu=(o,f=Kl)=>{if(!o)return"";const c={x:Go(f.x),y:Go(f.y)};return c.x===Kl.x&&c.y===Kl.y?o:`${o}${mh}${c.x},${c.y}`},Fu=()=>{if(typeof window<"u"){const o=window[uh];if(xh(o))return o}return ph()?Mu():{}},Mu=()=>{if(!ph())return{};try{const o=window.localStorage.getItem(_1);if(!o)return{};const f=JSON.parse(o);return xh(f)?f:{}}catch{return{}}},Gs=(o,f)=>{const c=Fu();return Xo(c[o],f).imageUrl},E1=(o,f)=>{const c=Fu();return Xo(c[o],f).focus},Hs=(o,f)=>{const c=E1(o,f);return`${c.x}% ${c.y}%`},kx=k1,A1=o=>{typeof window>"u"||(window[uh]=o)},Ex=(...o)=>o.reduce((f,c)=>({...f,...c}),{}),We={hero:"hero.main",team:o=>`teams.${o}`,gym:o=>`gyms.${o}`,event:o=>`events.${o}`,gallery:o=>`gallery.${o}`,staff:o=>`staff.${o}`,matchClubLogo:()=>"matches.clubLogo",matchOpponentLogo:(o,f)=>`matches.opponents.${Ax(f)}.${M1(o)}`,matchOpponentLegacySeasonLogo:(o,f)=>`matches.opponents.${Ax(f)}.${hh(o)}`,matchOpponentLegacyLogo:o=>`matches.${o}.opponentLogo`},hh=o=>o.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase(),M1=o=>{const f=o.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]+/g," ").trim();if(!f)return"unknown-opponent";const c=f.split(/\s+/).filter(Boolean),b=[/^pr[eé]?[ -]?reg$/,/^pr[eé]?[ -]?nat$/,/^m\d{1,2}$/,/^ufolep\d*$/,/^loisirs?$/,/^mixte$/,/^masculin$/,/^feminin$/,/^féminin$/,/^filles?$/,/^garcons?$/,/^garçons?$/];for(;c.length>1;){const g=c[c.length-1]||"";if(b.some(y=>y.test(g))||/^\d+$/.test(g)){c.pop();continue}break}const k=c.join(" "),p=L1(k);return hh(p)},T1=[{pattern:/\bromans\b|\bvbc romans\b|\bromans volley\b|\bromans vb\b|\bromans & bourg-les-valence\b|\bromans et bourg-les-valence\b/,canonical:"vbc-romans"},{pattern:/\bgrenoble\b|\bgrenoble vb\b|\bgrenoble vb volley\b|\bgrenoble vhb\b/,canonical:"grenoble-vb"},{pattern:/\bmontelimar\b|\bmontelimar volley\b|\bmontelimar volley 2\b/,canonical:"montelimar-volley"},{pattern:/\bcrest\b|\bcrest volley\b/,canonical:"crest-volley"},{pattern:/\bportes-les-valence\b|\bportez-les-valence\b|\busc portes-les-valence\b|\bvolley portes-les-valence\b/,canonical:"portes-les-valence"},{pattern:/\bguilherand\b|\bguilherand-granges\b/,canonical:"guilherand"},{pattern:/\bsaint-peray\b|\bsaint peray\b|\bsaint-peray mixte\b/,canonical:"saint-peray"},{pattern:/\btain-tournon\b|\btain tournon\b/,canonical:"tain-tournon"},{pattern:/\bbourg-de-peage\b|\bbourg de peage\b/,canonical:"bourg-de-peage"},{pattern:/\bmontpellier\b|\bmontpellier castelnau\b|\bmontpellier vuc\b/,canonical:"montpellier-castelnau"}],L1=o=>{const f=o.toLowerCase();for(const c of T1)if(c.pattern.test(f))return c.canonical;return o},Ax=o=>{if(!o)return"season-unknown";const f=new Date(o);if(Number.isNaN(f.getTime()))return"season-unknown";const c=f.getMonth()>=7?f.getFullYear():f.getFullYear()-1;return`${c}-${c+1}`},O1=(o,f,c)=>Xo(o[f],c),U1=(o,f,c,b)=>{const k=Fu(),p=[We.matchOpponentLogo(o,f),We.matchOpponentLegacySeasonLogo(o,f),null].filter(g=>!!g);for(const g of p){const y=O1(k,g,b);if(y.imageUrl)return y.imageUrl}return b||""},Tu=(o,f)=>{const c={...o};for(const b of f){const k=We.matchOpponentLegacyLogo(b.id),p=We.matchOpponentLegacySeasonLogo(b.opponent,b.date),g=We.matchOpponentLogo(b.opponent,b.date);!c[g]&&c[p]&&(c[g]=c[p]),!c[g]&&c[k]&&(c[g]=c[k])}return c},z1=({onOpenTrialModal:o})=>{const{content:f}=ii(),[c,b]=Z.useState("all"),[k,p]=Z.useState(!1),[g,y]=Z.useState(null),N=Z.useRef(null),C=f.news,v=C.filter(S=>c==="all"?!0:S.type===c);Z.useEffect(()=>{const S=N.current;if(!S||k)return;let j;const E=.75,A=()=>{S&&(S.scrollLeft+=E,S.scrollLeft>=S.scrollWidth/2&&(S.scrollLeft=0)),j=requestAnimationFrame(A)};return j=requestAnimationFrame(A),()=>cancelAnimationFrame(j)},[k,v]);const m=S=>{const j=N.current;if(!j)return;const E=360;j.scrollBy({left:S==="left"?-E:E,behavior:"smooth"})},T=S=>{if(S.ctaAction==="trial"){o();return}if(S.ctaAction==="zammit"||S.ctaAction==="maurin"){const j=document.getElementById("gymnases");j&&j.scrollIntoView({behavior:"smooth"});return}if(S.ctaAction){const j=document.getElementById("equipes");j&&j.scrollIntoView({behavior:"smooth"});return}y(S)},w=[...v,...v];return t.jsxs("div",{className:"w-full mt-12 pt-6 border-t border-amber-500/20",children:[t.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-3 mb-4",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-xl bg-red-950/80 border border-red-500/40 text-red-300 text-xs font-black shadow-inner",children:[t.jsxs("span",{className:"relative flex h-2.5 w-2.5",children:[t.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-red-400 opacity-75"}),t.jsx("span",{className:"relative inline-flex rounded-full h-2.5 w-2.5 bg-red-500"})]}),t.jsx("span",{className:"tracking-wider",children:"LIVE CLUB NEWS"})]}),t.jsx("span",{className:"text-xs sm:text-sm font-extrabold text-white font-display hidden sm:inline-block",children:"Prochains Matchs & Actualités de Valence ACE"})]}),t.jsxs("div",{className:"flex items-center gap-2 overflow-x-auto pb-1 sm:pb-0 scrollbar-none",children:[t.jsxs("div",{className:"flex items-center gap-1 bg-slate-900/90 p-1 rounded-xl border border-slate-800 text-xs",children:[t.jsxs("button",{onClick:()=>b("all"),className:`px-2.5 py-1 rounded-lg font-bold transition-all ${c==="all"?"bg-amber-400 text-slate-950 shadow-sm":"text-slate-400 hover:text-slate-200"}`,children:["Tout (",C.length,")"]}),t.jsx("button",{onClick:()=>b("match"),className:`px-2.5 py-1 rounded-lg font-bold transition-all ${c==="match"?"bg-amber-400 text-slate-950 shadow-sm":"text-slate-400 hover:text-slate-200"}`,children:"🏐 Matchs"}),t.jsx("button",{onClick:()=>b("result"),className:`px-2.5 py-1 rounded-lg font-bold transition-all ${c==="result"?"bg-amber-400 text-slate-950 shadow-sm":"text-slate-400 hover:text-slate-200"}`,children:"🏆 Résultats"}),t.jsx("button",{onClick:()=>b("event"),className:`px-2.5 py-1 rounded-lg font-bold transition-all ${c==="event"?"bg-amber-400 text-slate-950 shadow-sm":"text-slate-400 hover:text-slate-200"}`,children:"🎉 Événements"})]}),t.jsxs("div",{className:"flex items-center gap-1 text-slate-400",children:[t.jsx("button",{onClick:()=>p(!k),title:k?"Reprendre le défilement":"Mettre en pause",className:"p-1.5 rounded-lg bg-slate-900/80 border border-slate-800 hover:border-amber-400/50 hover:text-amber-300 transition-colors",children:k?t.jsx(Du,{className:"w-3.5 h-3.5"}):t.jsx(wg,{className:"w-3.5 h-3.5"})}),t.jsx("button",{onClick:()=>m("left"),title:"Défiler vers la gauche",className:"p-1.5 rounded-lg bg-slate-900/80 border border-slate-800 hover:border-amber-400/50 hover:text-amber-300 transition-colors",children:t.jsx(ah,{className:"w-3.5 h-3.5"})}),t.jsx("button",{onClick:()=>m("right"),title:"Défiler vers la droite",className:"p-1.5 rounded-lg bg-slate-900/80 border border-slate-800 hover:border-amber-400/50 hover:text-amber-300 transition-colors",children:t.jsx(li,{className:"w-3.5 h-3.5"})})]})]})]}),t.jsxs("div",{className:"relative group overflow-hidden rounded-2xl bg-slate-950/70 border border-slate-800/80 backdrop-blur-md p-2 shadow-2xl",onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),children:[t.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-8 bg-gradient-to-r from-[#070c1e] to-transparent z-10 pointer-events-none"}),t.jsx("div",{className:"absolute right-0 top-0 bottom-0 w-8 bg-gradient-to-l from-[#070c1e] to-transparent z-10 pointer-events-none"}),t.jsx("div",{ref:N,className:"flex gap-3 overflow-x-auto scrollbar-none py-1 px-2 select-none",style:{scrollBehavior:"auto"},children:w.map((S,j)=>{S.type;
419const E=S.type==="result",A=S.status==="highlight";return t.jsxs("div",{onClick:()=>T(S),className:`flex-shrink-0 w-[310px] sm:w-[340px] p-3.5 rounded-xl transition-all duration-200 cursor-pointer text-left border relative group/card flex flex-col justify-between ${A?"bg-gradient-to-br from-amber-950/60 via-slate-900/90 to-slate-950 border-amber-500/50 hover:border-amber-400 hover:shadow-lg hover:shadow-amber-500/10":E?"bg-gradient-to-br from-emerald-950/50 via-slate-900/90 to-slate-950 border-emerald-500/40 hover:border-emerald-400 hover:shadow-lg hover:shadow-emerald-500/10":"bg-gradient-to-br from-slate-900/90 via-slate-900/80 to-slate-950 border-slate-800 hover:border-blue-400/50 hover:bg-slate-900"}`,children:[t.jsxs("div",{children:[t.jsxs("div",{className:"flex items-center justify-between gap-2 mb-2",children:[t.jsx("span",{className:`text-[10px] font-black uppercase tracking-wider px-2 py-0.5 rounded-md border ${S.badgeColor}`,children:S.badge}),S.date&&t.jsxs("span",{className:"text-[11px] font-bold text-amber-300/90 flex items-center gap-1",children:[t.jsx(Ft,{className:"w-3 h-3 text-amber-400 shrink-0"}),t.jsxs("span",{children:[S.date," ",S.time?`• ${S.time}`:""]})]})]}),t.jsxs("h4",{className:"text-sm font-extrabold text-white group-hover/card:text-amber-300 transition-colors font-display line-clamp-1 flex items-center justify-between gap-1",children:[t.jsx("span",{children:S.headline}),t.jsx(yb,{className:"w-3.5 h-3.5 text-slate-500 group-hover/card:text-amber-300 shrink-0 transition-transform group-hover/card:translate-x-0.5 group-hover/card:-translate-y-0.5"})]}),t.jsx("p",{className:"text-[11px] text-slate-300 mt-1 line-clamp-2 leading-snug",children:S.details||S.title})]}),t.jsxs("div",{className:"mt-3 pt-2.5 border-t border-slate-800/80 flex items-center justify-between text-[10px] text-slate-400",children:[t.jsxs("div",{className:"flex items-center gap-1 truncate max-w-[210px] text-slate-300",children:[t.jsx(Bt,{className:"w-3 h-3 text-amber-400 shrink-0"}),t.jsx("span",{className:"truncate",children:S.location})]}),S.ctaText&&t.jsxs("span",{className:"text-amber-400 font-extrabold text-[10px] group-hover/card:underline shrink-0",children:[S.ctaText," →"]})]})]},`${S.id}-${j}`)})}),t.jsxs("div",{className:"flex items-center justify-between px-2 pt-1 text-[10px] text-slate-400 font-medium",children:[t.jsxs("span",{className:"flex items-center gap-1.5",children:[t.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400"}),"Survolez avec la souris ou touchez pour figer le défilement"]}),t.jsxs("span",{className:"hidden sm:inline-block text-amber-300/80 font-semibold",children:[C.length," actualités et matchs au programme"]})]})]}),g&&t.jsx("div",{className:"fixed inset-0 z-50 bg-slate-950/80 backdrop-blur-sm flex items-center justify-center p-4",children:t.jsxs("div",{className:"bg-slate-900 border border-amber-400/40 rounded-3xl p-6 max-w-md w-full shadow-2xl text-white space-y-4",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("span",{className:`text-xs font-black uppercase tracking-wider px-2.5 py-1 rounded-lg border ${g.badgeColor}`,children:g.badge}),t.jsx("button",{onClick:()=>y(null),className:"w-8 h-8 rounded-full bg-slate-800 hover:bg-slate-700 text-slate-300 flex items-center justify-center text-sm font-bold",children:"✕"})]}),t.jsxs("div",{children:[t.jsx("span",{className:"text-xs text-amber-400 font-bold uppercase tracking-wider block",children:g.title}),t.jsx("h3",{className:"text-xl font-extrabold text-white mt-1",children:g.headline})]}),t.jsxs("div",{className:"space-y-2 text-xs text-slate-300 bg-slate-950/60 p-3.5 rounded-2xl border border-slate-800",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ft,{className:"w-4 h-4 text-amber-400"}),t.jsxs("span",{children:[t.jsx("strong",{children:"Date :"})," ",g.date," ",g.time?`à ${g.time}`:""]})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Bt,{className:"w-4 h-4 text-amber-400"}),t.jsxs("span",{children:[t.jsx("strong",{children:"Lieu :"})," ",g.location]})]})]}),t.jsx("p",{className:"text-sm text-slate-200 leading-relaxed",children:g.details}),t.jsxs("div",{className:"flex gap-2 pt-2",children:[t.jsx("button",{onClick:()=>
419{if(y(null),g.ctaAction==="trial")o();else{const S=document.getElementById("equipes");S&&S.scrollIntoView({behavior:"smooth"})}},className:"flex-1 py-3 rounded-xl bg-amber-400 hover:bg-amber-300 text-slate-950 font-black text-xs transition-all shadow",children:g.ctaText||"En savoir plus"}),t.jsx("button",{onClick:()=>y(null),className:"px-4 py-3 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 font-bold text-xs",children:"Fermer"})]})]})})]})},R1="vace-teams-category-change",D1=({onOpenTrialModal:o})=>{var H,h,ie,ee,X,le,xe;const{content:f}=ii(),c="https://www.facebook.com/ValenceACE",b="https://www.instagram.com/valenceace.volley/",k="https://liguearavolley.fr/",p="https://www.ffvb.org/index.php?mduuseid=Mw%3D%3D&dsgtypid=37&page=article",[g,y]=Z.useState(0),N={...Jo,...f.hero||{}},[C,v]=Z.useState(!1),m=Gs(We.hero,qe.heroImage),T=Hs(We.hero,qe.heroImage),w=Do.slice(0,3).map(B=>({...B,displayImageUrl:Gs(We.gallery(B.id),B.imageUrl),displayImagePosition:Hs(We.gallery(B.id),B.imageUrl)})),S=w[0],j=w[1]||w[0],E=[{id:"instagram",label:"Instagram",handle:"@valenceace.volley",url:b,title:"Suivre Valence ACE sur Instagram",description:"Coulisses, photos de match, stages et temps forts de la saison.",icon:rg,iconClassName:"text-fuchsia-200",iconBoxClassName:"border-fuchsia-300/30 bg-fuchsia-500/15",cardClassName:"border-fuchsia-400/25 from-fuchsia-500/12 via-slate-900/90 to-blue-950/80 hover:border-fuchsia-300/45 hover:shadow-fuchsia-950/35",pillClassName:"text-fuchsia-100 group-hover:bg-fuchsia-500/15",eyebrowClassName:"text-fuchsia-200/90",titleHoverClassName:"group-hover:text-fuchsia-200",previewImageUrl:S==null?void 0:S.displayImageUrl,previewImagePosition:S==null?void 0:S.displayImagePosition,previewCaption:"Stories, coulisses & photos de match",previewMeta:"Dernier post club"},{id:"facebook",label:"Facebook",handle:"facebook.com/ValenceACE",url:c,title:"Retrouver le club sur Facebook",description:"Actus du club, annonces et relais des événements à venir.",icon:Zb,iconClassName:"text-sky-100",iconBoxClassName:"border-sky-300/30 bg-sky-500/15",cardClassName:"border-sky-400/25 from-sky-500/12 via-slate-900/90 to-indigo-950/80 hover:border-sky-300/45 hover:shadow-sky-950/35",pillClassName:"text-sky-100 group-hover:bg-sky-500/15",eyebrowClassName:"text-sky-100/90",titleHoverClassName:"group-hover:text-sky-100",previewImageUrl:j==null?void 0:j.displayImageUrl,previewImagePosition:j==null?void 0:j.displayImagePosition,previewCaption:"Infos club, annonces & événements",previewMeta:"Fil d’actualité"},{id:"ara-league",label:"Ligue ARA",handle:"liguearavolley.fr",url:k,title:"Suivre la Ligue AURA Volley",description:"Actus régionales, compétitions, calendriers et informations officielles de la ligue.",icon:eg,iconClassName:"text-amber-100",iconBoxClassName:"border-amber-300/30 bg-amber-500/15",cardClassName:"border-amber-400/25 from-amber-500/12 via-slate-900/90 to-orange-950/80 hover:border-amber-300/45 hover:shadow-amber-950/35",pillClassName:"text-amber-100 group-hover:bg-amber-500/15",eyebrowClassName:"text-amber-100/90",titleHoverClassName:"group-hover:text-amber-100",previewImageUrl:m,previewImagePosition:T,previewCaption:"Calendriers, championnats et vie du volley régional",previewMeta:"Source officielle"},{id:"ffvb-rss",label:"FFVB",handle:"ffvb.org / rss",url:p,title:"Consulter le flux FFVB",description:"Fil officiel FFVB pour les annonces fédérales, publications et ressources nationales.",icon:Lg,iconClassName:"text-orange-100",iconBoxClassName:"border-orange-300/30 bg-orange-500/15",cardClassName:"border-orange-400/25 from-orange-500/12 via-slate-900/90 to-rose-950/80 hover:border-orange-300/45 hover:shadow-orange-950/35",pillClassName:"text-orange-100 group-hover:bg-orange-500/15",eyebrowClassName:"text-orange-100/90",titleHoverClassName:"group-hover:text-orange-100",previewImageUrl:((H=w[2])==null?void 0:H.displayImageUrl)||(j==null?void 0:j.displayImageUrl),previewImagePosition:((h=w[2])==null?void 0:h.displayImagePosition)||(j==null?void 0:j.displayImagePosition),previewCaption:"Publications fédérales et informations nationales",previewMeta:"Flux FFVB"}],A=E[g]||E[0],O=((ie=N.mediaUrl)==null?void 0:ie.trim())||"",F=N.mediaMode||(O?"video":"photo"),$=((ee=N.mediaTitle)==null?void 0:ee.trim())||"Photos & vidéos du club",Y=((X=N.mediaDescription)==null?void 0:X.trim())||"Un espace pour les temps forts, les lives et les replays du club.",G=((le=N.mediaExpandLabel)==null?void 0:le.trim())||"Agrandir",V=((xe=N.mediaPosterUrl)==null?void 0:xe.trim())||m,K=F==="live"&&!!O,te=K?"EN DIRECT":F==="video"?"REPLAY":"GALERIE",J=K?"Live maintenant":F==="video"?"Vidéos à revoir":"Photos du club",I=
419Z.useMemo(()=>{if(!O)return"";try{const B=new URL(O),d=B.hostname.replace(/^www\./,"");if(d==="youtu.be"){const U=B.pathname.split("/").filter(Boolean)[0];return U?`https://www.youtube-nocookie.com/embed/${U}?autoplay=1&mute=1&rel=0&playsinline=1`:""}if(d.includes("youtube.com")){const U=B.searchParams.get("v")||B.pathname.split("/").filter(Boolean).pop();return U?`https://www.youtube-nocookie.com/embed/${U}?autoplay=1&mute=1&rel=0&playsinline=1`:""}return O}catch{return O}},[O]),L=B=>{var U;const d=new URL(window.location.href);d.searchParams.set("collectif",B),d.hash="equipes",window.history.pushState({},"",d.toString()),window.dispatchEvent(new CustomEvent(R1,{detail:B})),(U=document.getElementById("equipes"))==null||U.scrollIntoView({behavior:"smooth",block:"start"})};return Z.useEffect(()=>{const B=window.setInterval(()=>{y(d=>(d+1)%E.length)},4800);return()=>{window.clearInterval(B)}},[E.length]),t.jsxs("section",{id:"accueil",className:"relative min-h-[92vh] pt-32 pb-20 bg-gradient-to-b from-[#070c1e] via-[#0d1b3e] to-[#070c1e] text-white overflow-hidden flex items-center",children:[t.jsxs("div",{className:"absolute inset-0 pointer-events-none overflow-hidden",children:[t.jsx("div",{className:"absolute -top-32 left-1/2 -translate-x-1/2 w-[700px] h-[500px] bg-gradient-to-b from-amber-500/25 via-orange-500/15 to-transparent rounded-full blur-3xl"}),t.jsx("div",{className:"absolute top-1/4 -right-24 w-[500px] h-[500px] bg-blue-500/20 rounded-full blur-3xl"}),t.jsx("div",{className:"absolute bottom-10 -left-20 w-[450px] h-[450px] bg-sky-500/15 rounded-full blur-3xl"}),t.jsxs("svg",{className:"absolute inset-0 w-full h-full opacity-[0.07] stroke-amber-300",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("circle",{cx:"50%",cy:"50%",r:"450",fill:"none",strokeWidth:"1.5",strokeDasharray:"6 6"}),t.jsx("circle",{cx:"50%",cy:"50%",r:"280",fill:"none",strokeWidth:"1.5"}),t.jsx("line",{x1:"0",y1:"50%",x2:"100%",y2:"50%",strokeWidth:"2"}),t.jsx("line",{x1:"50%",y1:"0",x2:"50%",y2:"100%",strokeWidth:"1.5",strokeDasharray:"4 4"})]}),t.jsx("div",{className:"absolute inset-0 opacity-[0.12] bg-[radial-gradient(#fbbf24_1px,transparent_1px)] [background-size:24px_24px]"})]}),t.jsxs("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 w-full",children:[t.jsx("div",{className:"flex justify-center lg:justify-start mb-6",children:t.jsxs("div",{className:"inline-flex max-w-full flex-nowrap items-center gap-2 overflow-x-auto rounded-[1.35rem] border border-amber-400/40 bg-gradient-to-r from-amber-500/20 via-orange-500/20 to-blue-500/20 px-3.5 py-2 backdrop-blur-md shadow-lg shadow-amber-500/10 [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",children:[t.jsxs("span",{className:"flex shrink-0 items-center gap-2.5 whitespace-nowrap",children:[t.jsx("span",{className:"flex h-2.5 w-2.5 rounded-full bg-amber-400 animate-ping"}),t.jsx("span",{className:"text-[11px] sm:text-xs font-black tracking-wide text-amber-300 whitespace-nowrap",children:"🔥 SAISON 2026/2
419027 • 2 SÉANCES D'ESSAI 100% GRATUITES"})]}),t.jsx("span",{className:"hidden h-5 w-px shrink-0 bg-white/15 lg:block"}),t.jsx("span",{className:"inline-flex shrink-0 items-center whitespace-nowrap rounded-full border border-amber-300/20 bg-slate-950/45 px-3 py-1 text-[11px] font-black uppercase tracking-[0.22em] text-amber-100",children:"Reprise gymnase"}),t.jsx("span",{className:"inline-flex shrink-0 items-center whitespace-nowrap rounded-full border border-emerald-400/25 bg-emerald-500/10 px-3 py-1 text-[11px] font-black uppercase tracking-[0.14em] text-emerald-200",children:"Séniors FFVB & Loisirs : à partir du 24/08"}),t.jsx("span",{className:"inline-flex shrink-0 items-center whitespace-nowrap rounded-full border border-sky-400/25 bg-sky-500/10 px-3 py-1 text-[11px] font-black uppercase tracking-[0.14em] text-sky-200",children:"Jeunes FFVB : à partir du 07/09"})]})}),t.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-12 items-center",children:[t.jsxs("div",{className:"lg:col-span-7 space-y-6 text-center lg:text-left",children:[t.jsxs("div",{className:"flex flex-wrap items-center justify-center lg:justify-start gap-3",children:[t.jsxs("div",{className:"flex items-center gap-2.5 px-3 py-1.5 rounded-2xl bg-slate-900/80 border border-amber-400/30 backdrop-blur-md shadow-md",children:[t.jsx(zu,{size:"sm",variant:"badge",className:"scale-90"}),t.jsx("span",{className:"text-xs font-black uppercase tracking-wider text-amber-400",children:N.badgeText})]}),t.jsxs("span",{className:"hidden sm:inline-flex items-center gap-1 text-xs font-bold text-slate-300 bg-blue-950/60 px-3 py-1.5 rounded-2xl border border-blue-800/60",children:[t.jsx(Va,{className:"w-3.5 h-3.5 text-emerald-400"}),"Club Affilié FFVB & UFOLEP"]})]}),t.jsxs("h1",{className:"text-4xl sm:text-5xl lg:text-6xl font-black tracking-tight leading-[1.12] font-display",children:[N.headlinePrefix," ",t.jsx("span",{className:"bg-gradient-to-r from-amber-300 via-amber-400 to-orange-400 bg-clip-text text-transparent drop-shadow-sm",children:N.headlineAccent})," ",N.headlineSuffix]}),t.jsx("p",{className:"text-base sm:text-lg text-slate-200 max-w-2xl font-normal leading-relaxed",children:N.subtitle}),t.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3 pt-2",children:[t.jsxs("a",{href:"#equipes",onClick:B=>{B.preventDefault(),L("jeunes")},className:"p-3 rounded-2xl bg-gradient-to-br from-amber-500/15 to-slate-900/80 border border-amber-400/30 hover:border-amber-400 hover:scale-[1.02] transition-all text-left group",children:[t.jsx("span",{className:"text-xs font-black uppercase tracking-wider text-amber-400 block flex items-center gap-1",children:"🏐 Collectifs Jeunes"}),t.jsx("strong",{className:"text-white text-xs font-bold block mt-0.5 group-hover:text-amber-300",children:"M9/M11 Mixtes & M13-M18"}),t.jsx("span",{className:"text-[11px] text-slate-300 block",children:"Dès 7 ans • Motricité & jeu"})]}),t.jsxs("a",{href:"#equipes",onClick:B=>{B.preventDefault(),L("seniors")},className:"p-3 rounded-2xl bg-gradient-to-br from-blue-500/15 to-slate-900/80 border border-blue-400/30 hover:border-blue-400 hover:scale-[1.02] transition-all text-left group",children:[t.jsx("span",{className:"text-xs font-black uppercase tracking-wider text-blue-400 block flex items-center gap-1",children:"🏆 Compétition FFVB"}),t.jsx("strong",{className:"text-white text-xs font-bold block mt-0.5 group-hover:text-blue-300",children:"Prénat, Pré-Rég & Dép"}),t.jsx("span",{className:"text-[11px] text-slate-300 block",children:"Haut niveau & progression"})]}),t.jsxs("a",{href:"#equipes",onClick:B=>{B.preventDefault(),L("loisirs")},className:"p-3 rounded-2xl bg-gradient-to-br from-orange-500/15 to-slate-900/80 border border-orange-400/30 hover:border-orange-400 hover:scale-[1.02] transition-all text-left group",children:[t.jsx("span",{className:"text-xs font-black uppercase tracking-wider text-orange-400 block flex items-center gap-1",children:"🤝 Loisirs UFOLEP"}),t.jsx("strong",{className:"text-white text-xs font-bold block mt-0.5 group-hover:text-orange-300",children:"6 Équipes Mixtes F/H"}),t.jsx("span",{className:"text-[11px] text-slate-300 block",children:"Matchs & convivialité"})]})]}),t.jsxs("div",{className:"flex flex-wrap items-center justify-center lg:justify-start gap-3.5 pt-4",children:[t.jsxs("button",{onClick:()=>o(),className:"px-7 py-4 rounded-2xl bg-gradient-to-r from-amber-400 via-amber-500 to-orange-500 hover:from-amber-300 hover:to-orange-400 text-slate-950 font-black text-base shadow-xl shadow-amber-500/30 hover:shadow-amber-500/50 transform hover:-translate-y-0.5 active:translate-y-0 transition-all flex items-center gap-2.5 cursor-pointer border border-amber-300/40",children:[t.jsx(Ka,{className:"w-5 h-5 text-slate-950 animate-bounce"}),t.jsx("span",{children:N.primaryCtaLabel})]}),t.jsxs("a",{href:"#creneaux",className:"px-6 py-4 rounded-2xl bg-slate-900/90 hover:bg-slate-800 border border-slate-700/90 hover:border-amber-400/50 text-white font-bold text-sm sm:text-base transition-all flex items-center gap-2 backdrop-blur-md",children:[t.jsx(Ft,{className:"w-5 h-5 text-amber-400"}),t.jsx("span",{children:N.secondaryCtaLabel})]}
419),t.jsxs("a",{href:"#galerie",className:"px-5 py-4 rounded-2xl bg-blue-950/70 hover:bg-blue-900/80 border border-blue-700/60 text-blue-200 font-bold text-sm transition-all flex items-center gap-1.5",children:[t.jsx(si,{className:"w-4 h-4 text-amber-400"}),t.jsx("span",{children:N.galleryCtaLabel})]})]}),t.jsxs("div",{className:"flex flex-wrap items-center justify-center lg:justify-start gap-4 pt-1 text-xs text-slate-300 font-medium",children:[t.jsxs("span",{className:"flex items-center gap-1.5",children:[t.jsx(Ca,{className:"w-4 h-4 text-emerald-400"}),"2 essais sans engagement"]}),t.jsxs("span",{className:"flex items-center gap-1.5",children:[t.jsx(Ca,{className:"w-4 h-4 text-emerald-400"}),"Pass'Sport (-50€) & Chèques ANCV acceptés"]}),t.jsxs("span",{className:"flex items-center gap-1.5",children:[t.jsx(Ca,{className:"w-4 h-4 text-emerald-400"}),"Paiement en plusieurs fois sans frais possible"]})]})]}),t.jsxs("div",{className:"lg:col-span-5 space-y-3 lg:-mt-5",children:[t.jsxs("div",{className:"relative hidden lg:block",children:[t.jsxs("a",{href:A.url,target:"_blank",rel:"noreferrer",className:`group grid min-h-[124px] w-full grid-cols-[52px_minmax(0,1fr)_164px] items-center gap-3 rounded-[24px] border bg-gradient-to-br px-4 py-3.5 pr-14 text-left shadow-md backdrop-blur-md transition-all hover:-translate-y-0.5 ${A.cardClassName}`,children:[t.jsx("div",{className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-2xl border ${A.iconBoxClassName}`,children:t.jsx(A.icon,{className:`h-5 w-5 ${A.iconClassName}`})}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("p",{className:`text-[10px] font-black uppercase tracking-[0.22em] ${A.eyebrowClassName}`,children:"Réseaux du club"}),t.jsx("span",{className:"rounded-full border border-white/10 bg-white/5 px-2 py-0.5 text-[9px] font-bold text-slate-200",children:A.label})]}),t.jsx("h3",{className:`mt-1 text-[13px] font-black text-white font-display leading-snug transition-colors ${A.titleHoverClassName}`,children:A.title}),t.jsx("p",{className:"mt-1 text-[11px] leading-relaxed text-slate-300 line-clamp-3",children:A.description})]}),t.jsxs("div",{className:"hidden xl:flex w-[164px] shrink-0 flex-col gap-2 rounded-[20px] border border-white/10 bg-slate-950/45 p-2.5 shadow-inner",children:[t.jsxs("div",{className:"relative h-[108px] overflow-hidden rounded-2xl border border-white/10 bg-slate-900",children:[A.previewImageUrl?t.jsx("img",{src:A.previewImageUrl,alt:A.previewCaption,referrerPolicy:"no-referrer",className:"h-full w-full object-cover transition-transform duration-500 group-hover:scale-105",style:{objectPosition:A.previewImagePosition},loading:"lazy"}):null,t.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(180deg,rgba(15,23,42,0.04)_0%,rgba(15,23,42,0.68)_100%)]"}),t.jsx("span",{className:"absolute left-2 top-2 rounded-full border border-white/10 bg-slate-950/70 px-2 py-0.5 text-[8px] font-black uppercase tracking-[0.16em] text-white",children:A.previewMeta})]}),t.jsx("p",{className:"line-clamp-2 text-[10px] font-semibold leading-relaxed text-slate-300",children:A.previewCaption})]})]}),t.jsx("div",{className:"absolute right-3 top-1/2 flex -translate-y-1/2 flex-col justify-center gap-2",children:E.map((B,d)=>t.jsx("button",{type:"button",onClick:()=>y(d),"aria-label":`Afficher ${B.label}`,className:`h-2.5 w-2.5 rounded-full border transition-all ${d===g?"border-amber-300 bg-amber-400 shadow-[0_0_12px_rgba(251,191,36,0.45)]":"border-slate-500 bg-slate-700 hover:border-slate-300"}`},B.id))})]}),t.jsxs("div",{className:"relative rounded-3xl bg-gradient-to-b from-slate-900/95 via-[#0d1b3e]/90 to-slate-900/95 p-5 sm:p-6 border border-amber-500/30 shadow-2xl shadow-amber-500/10 backdrop-blur-xl space-y-4 group",children:[t.jsxs("div",{className:"relative aspect-[16/10] sm:aspect-[16/9] w-full rounded-2xl overflow-hidden bg-slate-950 border border-amber-400/30 shadow-inner",children:[O&&F!=="photo"?t.jsxs(t.Fragment,{children:[V&&t.jsx("img",{src:V,alt:$,referrerPolicy:"no-referrer",className:"absolute inset-0 h-full w-full object-cover opacity-65 blur-[1px]",style:{objectPosition:T},loading:"lazy"}),I?t.jsx("iframe",{src:I,title:$,className:"absolute inset-0 h-full w-full border-0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0}):t.jsx("img",{src:V,alt:$,referrerPolicy:"no-referrer",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-700",style:{objectPosition:T}}),t.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-[#070c1e] via-trans
419parent to-transparent"}),t.jsxs("div",{className:`absolute top-3 left-3 flex items-center gap-2 backdrop-blur-md px-3.5 py-1.5 rounded-full border text-xs font-black shadow-xl ${K?"bg-rose-950/90 border-rose-400/40 text-rose-200":F==="video"?"bg-amber-950/90 border-amber-400/40 text-amber-200":"bg-slate-950/90 border-amber-400/40 text-amber-300"}`,children:[t.jsx("span",{className:`w-2.5 h-2.5 rounded-full ${K?"bg-rose-400 animate-pulse":F==="video"?"bg-amber-400":"bg-emerald-400 animate-pulse"}`}),t.jsx("span",{children:te})]})]}):t.jsx("img",{src:m,alt:"Match officiel Valence ACE Volley-Ball",referrerPolicy:"no-referrer",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-700",style:{objectPosition:T}}),t.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-[#070c1e] via-transparent to-transparent"}),t.jsxs("div",{className:`absolute top-3 left-3 hidden sm:flex items-center gap-2 backdrop-blur-md px-3.5 py-1.5 rounded-full border text-xs font-black shadow-xl ${K?"bg-rose-950/90 border-rose-400/40 text-rose-200":F==="video"?"bg-amber-950/90 border-amber-400/40 text-amber-200":"bg-slate-950/90 border-amber-400/40 text-amber-300"}`,children:[t.jsx("span",{className:`w-2.5 h-2.5 rounded-full ${K?"bg-rose-400 animate-pulse":F==="video"?"bg-amber-400":"bg-emerald-400 animate-pulse"}`}),t.jsx("span",{children:F==="photo"?"SAISON EN COURS 2026/2027":K?"MATCH EN DIRECT":"REPLAY CLUB"})]}),t.jsxs("div",{className:"absolute top-3 right-3 hidden sm:flex items-center gap-1.5 bg-blue-950/90 backdrop-blur-md px-3 py-1.5 rounded-full border border-blue-400/40 text-[11px] font-bold text-white shadow-xl",children:[t.jsx(Bt,{className:"w-3.5 h-3.5 text-amber-400"}),t.jsx("span",{children:"Gymnase Zammit (Valence)"})]}),t.jsxs("div",{className:"absolute bottom-3 left-3 right-3 flex items-end justify-between gap-3 text-xs text-white",children:[t.jsxs("div",{className:"max-w-[70%] sm:max-w-xl",children:[O&&F!=="photo"&&t.jsx("span",{className:`mb-2 inline-flex rounded-full border px-2.5 py-1 text-[10px] font-black uppercase tracking-[0.18em] ${K?"border-rose-400/40 bg-rose-500/15 text-rose-200":"border-amber-400/40 bg-amber-500/15 text-amber-200"}`,children:J}),t.jsx("span",{className:"font-extrabold text-amber-300 font-display block text-sm drop-shadow",children:O&&F!=="photo"?$:"Gymnase Alain Zammit"}),t.jsx("span",{className:"text-[11px] text-slate-200 line-clamp-2",children:O&&F!=="photo"?Y:"3 Terrains homologués & buvette conviviale"})]}),t.jsx("div",{className:"flex shrink-0 flex-col gap-2 sm:flex-row",children:O&&F!=="photo"?t.jsxs("button",{type:"button",onClick:()=>v(!0),className:"inline-flex items-center gap-1 rounded-xl bg-white/90 px-3 py-2 text-xs font-black text-slate-950 shadow-md transition-all hover:bg-white",title:G,children:[t.jsx(xg,{className:"w-3.5 h-3.5"}),t.jsx("span",{children:G})]}):t.jsxs("a",{href:"#galerie",className:"inline-flex items-center gap-1 rounded-xl bg-gradient-to-r from-amber-400 to-orange-400 px-3 py-2 text-xs font-black text-slate-950 shadow-md transition-all hover:from-amber-300 hover:to-orange-300",title:"Voir toutes les photos",children:[t.jsx(si,{className:"w-3.5 h-3.5"}),t.jsx("span",{children:"Photos"})]})})]}),O&&F!=="photo"&&t.jsx("button",{type:"button",onClick:()=>v(!0),className:"absolute inset-0 flex items-center justify-center bg-slate-950/0 opacity-0 transition-colors group-hover:bg-slate-950/10 group-hover:opacity-100","aria-label":G,children:t.jsxs("span",{className:"flex items-center gap-2 rounded-full border border-white/15 bg-slate-950/60 px-4 py-2 text-xs font-black text-white backdrop-blur-md",children:[t.jsx(Du,{className:"h-4 w-4 text-amber-300"}),G]})})]}),t.jsx("div",{className:"grid grid-cols-3 gap-2",children:w.map((B,d)=>t.jsxs("a",{href:"#galerie",className:"relative aspect-video rounded-xl overflow-hidden border border-slate-700/80 hover:border-amber-400 transition-all group/item bg-slate-950 shadow",children:[t.jsx("img",{src:B.displayImageUrl,alt:B.title,referrerPolicy:"no-referrer",className:"w-full h-full object-cover group-hover/item:scale-110 transition-transform duration-300",style:{objectPosition:B.displayImagePosition}}),t.jsx("div",{className:"absolute inset-0 bg-slate-950/40 group-hover/item:bg-slate-950/10 transition-colors"}),t.jsx("span",{className:"absolute bottom-1 left-1.5 text-[9px] font-extrabold text-amber-300 drop-shadow truncate max-w-[90%]",children:B.tag})]},d))}),t.jsxs("div",{className:"p-3.5 rounded-2xl bg-gradient-to-r from-amber-500/20 via-orange-500/15 to-blue-500/20 border border-amber-400/30 flex items-center justify-between gap-3",children:[t.jsxs("div",{className:"flex items-center gap-2.5",children:[t.jsx("div",{className:"w-8 h-8 rounded-xl bg-amber-400 text-slate-950 flex items-center justify-center font-black text-sm shrink-0",children:"🏐"}),t.jsxs("div",{children:[t.jsx("h4",{className:"font-extrabold text-white text-xs font-display",children:"Venez tester sur le terrain !"}),t.jsx("p",{className:"text-[11px] text-amber-200",children:"Ambiance chaleureuse & encadrement bienveillant"})]})]}),t.jsx("button",{onClick:()=>o(),className:"px-3 py-1.5 rounded-xl bg-amber-400 hover:bg-amber-300 text-slate-950 font-black text-xs shrink-0 shadow transition-all cursor-pointer",children:"J'essaie"})]})]})]})]}),C&&O&&F!=="photo"&&t.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-slate-950/88 p-4 backdrop-blur-md",onClick:()=>v(!1),children:t.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":$,className:"relative w-full max-w-6xl overflow-hidden rounded-[2rem] border border-white/10 bg-slate-950 shadow-2xl",onClick:B=>B.stopPropagation(),children:[t.jsxs("div",{className:"flex items-start justify-between gap-4 border-b border-white/10 bg-slate-950/95 px-4 py-3 sm:px-5",children:[t.jsxs("div",{children:[t.jsx("p",{className:`text-[11px] font-black uppercase tracking-[0.24em] ${K?"text-rose-300":"text-amber-300"}`,children:K?"Live club":"Replay club"}),t.jsx("h3",{className:"mt-1 text-lg font-black text-white font-display",children:$}),t.jsx("p",{className:"mt-1 text-sm text-slate-400",children:Y})]}),t.jsx("button",{type:"button",onClick:()=>v(!1),className:"inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-full border border-white/10 bg-white/5 text-slate-300 transition-colors hover:bg-white/10 hover:text-white","aria-label":"Fermer le lecteur",children:t.jsx(Xr,{className:"h-5 w-5"})})]}),t.jsx("div",{className:"bg-black",children:t.jsx("div",{className:"aspect-video w-full",children:I?t.jsx("iframe",{src:I,title:$,className:"h-full w-full border-0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0}):t.jsx("div",{className:"flex h-full items-center justify-center bg-slate-950 text-slate-400",children:"Flux indisponible."})})})]})}),t.jsx(z1,{onOpenTrialModal:o})]})]})},F1=(o,f)=>Gs(We.team(o),f),Mx="vace-teams-category-change",Tx=()=>
419{if(typeof window>"u")return"all";const f=new URLSearchParams(window.location.search).get("collectif");return f==="jeunes"||f==="seniors"||f==="loisirs"?f:"all"},B1=({onOpenTrialModal:o,onOpenImageManager:f})=>{const[c,b]=Z.useState(()=>Tx()),[k,p]=Z.useState("m9"),g=Z.useMemo(()=>Ir.filter(v=>c==="all"?!0:v.category===c),[c]);Z.useEffect(()=>{const v=()=>{b(Tx())},m=T=>{const w=T.detail;(w==="jeunes"||w==="seniors"||w==="loisirs"||w==="all")&&b(w)};return v(),window.addEventListener("popstate",v),window.addEventListener(Mx,m),()=>{window.removeEventListener("popstate",v),window.removeEventListener(Mx,m)}},[]),Z.useEffect(()=>{if(g.length===0){p(null);return}g.some(m=>m.id===k)||p(g[0].id)},[k,g]);const y=v=>{p(m=>m===v?null:v)},N=v=>v==="all"?Ir.length:Ir.filter(m=>m.category===v).length,C=v=>{if(b(v),typeof window<"u"){const m=new URL(window.location.href);v==="all"?m.searchParams.delete("collectif"):m.searchParams.set("collectif",v),m.hash="equipes",window.history.replaceState(null,"",m.toString())}};return t.jsx("section",{id:"equipes",className:"py-20 bg-slate-50 border-b border-slate-200 logo-watermark-section",children:t.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-10",children:[t.jsxs("span",{className:"text-xs font-extrabold uppercase tracking-widest text-amber-800 bg-amber-100 px-3.5 py-1 rounded-full border border-amber-200 inline-flex items-center gap-1.5 shadow-sm",children:[t.jsx(ih,{className:"w-3.5 h-3.5 text-amber-600"}),t.jsxs("span",{children:["Saison 2026/2027 • ",Ir.length," Collectifs & Équipes"]})]}),t.jsx("h2",{className:"text-3xl sm:text-4xl font-extrabold text-slate-900 mt-3 font-display",children:"Nos Équipes & Groupes d'Entraînement"}),t.jsx("p",{className:"text-slate-600 mt-2 text-base",children:"Cliquez sur le bandeau d'une équipe pour afficher ses créneaux détaillés, son encadrement et réserver vos 2 séances d'essai."}),f&&t.jsx("div",{className:"mt-4 flex items-center justify-center",children:t.jsxs("button",{type:"button",onClick:f,className:"inline-flex items-center gap-2 rounded-xl border border-slate-300 bg-white px-4 py-2 text-sm font-bold text-slate-800 shadow-sm transition-colors hover:bg-slate-100 cursor-pointer",children:[t.jsx(Jr,{className:"h-4 w-4 text-amber-600"}),"Remplacer les photos des équipes"]})}),t.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-2 mt-8",children:[t.jsxs("button",{onClick:()=>C("all"),className:`px-4 py-2 rounded-xl text-xs sm:text-sm font-bold transition-all cursor-pointer ${c==="all"?"bg-slate-900 text-white shadow-md":"bg-white text-slate-700 border border-slate-200 hover:bg-slate-100"}`,children:["Tous les Collectifs (",N("all"),")"]}),t.jsxs("button",{onClick:()=>C("jeunes"),className:`px-4 py-2 rounded-xl text-xs sm:text-sm font-bold transition-all cursor-pointer ${c==="jeunes"?"bg-slate-900 text-white shadow-md":"bg-white text-slate-700 border border-slate-200 hover:bg-slate-100"}`,children:["Enfants & Ados (",N("jeunes"),")"]}),t.jsxs("button",{onClick:()=>C("seniors"),className:`px-4 py-2 rounded-xl text-xs sm:text-sm font-bold transition-all cursor-pointer ${c==="seniors"?"bg-slate-900 text-white shadow-md":"bg-white text-slate-700 border border-slate-200 hover:bg-slate-100"}`,children:["Séniors Compétition (",N("seniors"),")"]}),t.jsxs("button",{onClick:()=>C("loisirs"),className:`px-4 py-2 rounded-xl text-xs sm:text-sm font-bold transition-all cursor-pointer ${c==="loisirs"?"bg-slate-900 text-white shadow-md":"bg-white text-slate-700 border border-slate-200 hover:bg-slate-100"}`,children:["Loisirs & Détente (",N("loisirs"),")"]})]})]}),t.jsx("div",{className:"space-y-4",children:g.map(v=>{const m=k===v.id,T=F1(v.id,v.imageUrl),w=Hs(We.team(v.id),v.imageUrl);return t.jsxs("div",{className:`rounded-3xl border transition-all duration-300 overflow-hidden shadow-sm ${m?"border-amber-400 bg-white shadow-xl ring-2 ring-amber-400/20":"border-slate-200 bg-white hover:border-slate-300 hover:shadow-md"}`,children:[t.jsx("button",{type:"button",onClick:()=>y(v.id),"aria-expanded":m,className:"w-full text-left relative overflow-hidden group cursor-pointer focus:outline-none focus:ring-2 focus:ring-amber-400 focus:ring-offset-2",children:t.jsxs("div",{className:"relative h-32 sm:h-36 md:h-40 w-full overflow-hidden bg-slate-950",children:[t.jsx("img",{src:T,alt:v.name,referrerPolicy:"no-referrer",className:`w-full h-full object-cover transition-transform duration-700 ease-out ${m?"scale-105":"group-hover:scale-105 opacity-90"}`,style:{objectPosition:w},loading:"lazy"}),t.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-slate-950 via-slate-950/80 to-slate-950/40 group-hover:via-slate-950/70 transition-colors"}),t.jsxs("div",{className:"absolute inset-0 p-4 sm:p-6 flex flex-col justify-between text-white",children:[t.jsxs("div",{className:"flex items-center justify-between gap-2",children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t.jsxs("span",{className:"text-[10px] sm:text-xs font-black uppercase tracking-wider bg-amber-400 text-slate-950 px-2.5 py-0.5 rounded-full shadow",children:[v.gender," • ",v.ageRange]}),t.jsx("span",{className:"hidden sm:inline-flex text-[11px] font-medium bg-slate-900/80 text-slate-300 border border-slate-700 px-2.5 py-0.5 rounded-full backdrop-blur-sm",children:v.gymnasium})]}),t.jsxs("div",{className:`flex items-center gap-1.5 px-3 py-1 rounded-full text-xs font-bold transition-all shadow ${m?"bg-amber-400 text-slate-950":"bg-slate-900/90 text-amber-300 border border-amber-400/40 group-hover:bg-amber-400 group-hover:text-slate-950"}`,children:[t.jsx("span",{className:"hidden sm:inline",children:m?"Masquer les détails":"Voir les détails & créneaux"}),t.jsx("span",{className:"sm:hidden",children:m?"Fermer":"Infos"}),m?t.jsx(ku,{className:"w-4 h-4 shrink-0 transition-transform"}):t.jsx(Ut,{className:"w-4 h-4 shrink-0 transition-transform"})]})]}),t.jsxs("div",{className:"flex items-end justify-between gap-4",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"text-lg sm:text-2xl font-black text-white font-display tracking-tight drop-shadow-md group-hover:text-amber-300 transition-colors",children:v.name}),t.jsxs("div",{className:"flex items-center gap-3 text-xs text-slate-300 mt-1",children:[t.jsxs("span",{className:"font-medium flex items-center gap-1",children:[t.jsx(ri,{className:"w-3.5 h-3.5 text-amber-400"}),t.jsx("strong",{className:"text-white",children:v.coach})]}),t.jsx("span",{className:"hidden md:inline-block text-slate-500",children:"•"}),t.jsxs("span",{className:"hidden md:inline-flex items-center gap-1 text-slate-300",children:[t.jsx(Fo,{className:"w-3.5 h-3.5 text-amber-400"}),v.trainingSlots.length," créneau",v.trainingSlots.length>1?"x":""," / semaine"]})]})]}),t.jsx("span",{className:"text-[11px] text-amber-300/90 font-medium hidden lg:block bg-slate-950/60 px-3 py-1 rounded-lg border border-slate-800 backdrop-blur-xs",children:v.photoCaption||"Cliquez pour dérouler"})]})]})]})}),m&&t.jsx("div",{className:"p-5 sm:p-7 bg-white border-t border-slate-100 animate-fadeIn",children:t.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6",children:[t.jsxs("div",{className:"lg:col-span-7 space-y-4",children:[t.jsxs("div",{children:[t.jsx("span",{className:"text-[11px] font-extrabold uppercase tracking-wider text-slate-400 block mb-1",children:"Présentation du collectif"}),t.jsx("p",{className:"text-slate-700 text-sm leading-relaxed",children:v.description})]}),t.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 pt-2",children:[t.jsxs("div",{className:"p-3 rounded-2xl bg-slate-50 border border-slate-200/80",children:[t.jsx("span",{className:"text-[11px] font-bold text-slate-500 block mb-1",children:"Niveau & Compétition :"}),t.jsx("p",{className:"text-xs font-semibold text-slate-900",children:v.level})]}),t.jsxs("div",{className:"p-3 rounded-2xl bg-slate-50 border border-slate-200/80",children:[t.jsx("span",{className:"text-[11px] font-bold text-slate-500 block mb-1",children:"Encadrement & Responsable :"}),t.jsxs("p",{className:"text-xs font-bold text-amber-800 flex items-center gap-1.5",children:[t.jsx(ri,{className:"w-4 h-4 text-amber-600 shrink-0"}),t.jsx("span",{children:v.coach})]})]})]}),t.jsxs("div",{className:"flex items-center gap-2 text-xs text-emerald-800 bg-emerald-50 border border-emerald-200 px-3.5 py-2.5 rounded-2xl font-medium",children:[t.jsx(Ca,{className:"w-4 h-4 text-emerald-600 shrink-0"}),t.jsxs("span",{children:[t.jsx("strong",{children:"2 séances d'essai offertes et sans engagement"})," en début de saison pour découvrir le groupe !"]}
419)]})]}),t.jsxs("div",{className:"lg:col-span-5 flex flex-col justify-between space-y-4 bg-slate-50 p-4 sm:p-5 rounded-2xl border border-slate-200/80",children:[t.jsxs("div",{children:[t.jsxs("div",{className:"flex items-center justify-between mb-3",children:[t.jsxs("span",{className:"text-[11px] font-extrabold uppercase tracking-wider text-slate-500 flex items-center gap-1.5",children:[t.jsx(Ft,{className:"w-3.5 h-3.5 text-amber-600"}),t.jsx("span",{children:"Horaires des entraînements :"})]}),t.jsx("span",{className:"text-[10px] font-bold bg-amber-100 text-amber-900 px-2 py-0.5 rounded-full border border-amber-200",children:"2026 / 2027"})]}),t.jsx("div",{className:"space-y-2",children:v.trainingSlots.map((S,j)=>t.jsxs("div",{className:"p-2.5 rounded-xl bg-white border border-slate-200 shadow-xs flex items-start gap-2.5 text-xs text-slate-800",children:[t.jsx(Fo,{className:"w-4 h-4 text-amber-600 shrink-0 mt-0.5"}),t.jsxs("div",{className:"flex-1",children:[t.jsx("p",{className:"font-bold text-slate-900",children:S}),t.jsxs("p",{className:"text-[11px] text-slate-500 flex items-center gap-1 mt-0.5",children:[t.jsx(Bt,{className:"w-3 h-3 text-slate-400"}),t.jsx("span",{children:v.gymnasium})]})]})]},j))})]}),t.jsx("div",{className:"pt-2 flex flex-col sm:flex-row items-center gap-2",children:t.jsxs("button",{type:"button",onClick:()=>o(v.name),className:"w-full py-3 rounded-xl bg-gradient-to-r from-amber-400 to-amber-500 hover:from-amber-300 hover:to-amber-400 text-slate-950 font-extrabold text-xs sm:text-sm shadow-md shadow-amber-500/20 active:scale-98 transition-all flex items-center justify-center gap-2 cursor-pointer",children:[t.jsx(Ka,{className:"w-4 h-4"}),t.jsxs("span",{children:["Venir essayer (",v.name,")"]}),t.jsx(li,{className:"w-4 h-4"})]})})]})]})})]},v.id)})}),t.jsxs("div",{className:"mt-12 text-center p-6 rounded-3xl bg-slate-900 text-white shadow-lg flex flex-col sm:flex-row items-center justify-between gap-4",children:[t.jsxs("div",{className:"text-center sm:text-left",children:[t.jsx("h4",{className:"text-base sm:text-lg font-bold font-display text-white",children:"Vous souhaitez consulter la grille complète hebdomadaire ?"}),t.jsx("p",{className:"text-xs text-slate-400 mt-0.5",children:"Consultez l'occupation complète des 3 terrains du Gymnase Alain Zammit et des salles partenaires."})]}),t.jsxs("a",{href:"#creneaux",className:"px-5 py-2.5 rounded-xl bg-white/10 hover:bg-white/20 text-amber-300 hover:text-amber-200 border border-amber-400/30 text-xs font-bold transition-all shrink-0 flex items-center gap-2",children:[t.jsx("span",{children:"Voir la Grille Officielle"}),t.jsx(li,{className:"w-4 h-4"})]})]})]})})},q1=({onOpenTrialModal:o})=>{const[f,c]=Z.useState("grid"),[b,k]=Z.useState("Tous"),[p,g]=Z.useState("Tous"),[y,N]=Z.useState("Tous"),C=["Tous","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],v=["Tous","Gymnase Alain Zammit","Gymnase Denis Maurin","Gymnase Jean-François Lamour","Gymnase IND"],m=["Tous","Jeunes","Séniors","Loisirs & UFOLEP"],T=nb.filter(S=>!(b!=="Tous"&&S.day!==b||p!=="Tous"&&!S.gymnasium.includes(p.replace("Gymnase ",""))||y==="Jeunes"&&!(S.category.includes("M9")||S.category.includes("M11")||S.category.includes("M13")||S.category.includes("M15")||S.category.includes("M18")||S.category.includes("École")||S.category.includes("Jeunes"))||y==="Séniors"&&!(S.category.includes("Séniors")||S.category.includes("Prénat")||S.category.includes("Pré-Rég")||S.category.includes("Dép"))||y==="Loisirs & UFOLEP"&&!(S.category.includes("Loisir")||S.category.includes("Fit")||S.category.includes("UFOLEP")||S.category.includes("Parents")||S.category.includes("Compét’Lib")||S.category.includes("INSPE")||S.category.includes("2GVB")))),w=()=>{window.print()};return t.jsx("section",{id:"creneaux",className:"py-20 bg-slate-900 text-white relative",children:t.jsxs("div",{className:"max-w-[90rem] mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-end justify-between mb-10 gap-6",children:[t.jsxs("div",{children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-amber-400/10 text-amber-400 border border-amber-400/20 text-xs font-bold mb-3 shadow-sm",children:[t.jsx(Ft,{className:"w-3.5 h-3.5"}),t.jsx("span",{children:"VALENCE ACE • CRÉNEAUX SAISON 2026 - 2027"}),t.jsx("span",{className:"text-slate-400 font-normal",children:"| Hors vacances scolaires"})]}),t.jsx("h2",{className:"text-3xl sm:text-4xl font-extrabold text-white font-display tracking-tight",children:"Planning Officiel des Entraînements"}),t.jsxs("p",{className:"text-slate-300 text-base mt-2 max-w-3xl leading-relaxed",children:["Consultez la grille officielle d'occupation des ",t.jsx("strong",{children:"3 terrains du Gymnase Alain Zammit"}),", des créneaux de compétition au ",t.jsx("strong",{children:"Gymnase Denis Maurin"}),", ainsi que des salles annexes (JF Lamour, IND, INSPE & Omnisport)."]})]}),t.jsxs("div",{className:"flex flex-wrap items-center gap-2.5 shrink-0",children:[t.jsxs("button",{onClick:w,className:"inline-flex items-center gap-2 px-4 py-2.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-bold border border-slate-700 shadow-sm transition-all cursor-pointer",title:"Imprimer la grille officielle",children:[t.jsx(Eg,{className:"w-4 h-4 text-amber-400"}),t.jsx("span",{children:"Imprimer la grille"})]}),t.jsxs("button",{onClick:()=>o(),className:"inline-flex items-center gap-2 px-5 py-2.5 rounded-xl bg-gradient-to-r from-amber-400 to-amber-500 hover:from-amber-300 hover:to-amber-400 text-slate-950 text-xs sm:text-sm font-black shadow-lg shadow-amber-400/20 active:scale-95 transition-all cursor-pointer",children:[t.jsx(Ka,{className:"w-4 h-4 text-slate-950"}),t.jsx("span",{children:"Réserver 2 Essais Gratuits"})]})]})]}),t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4 mb-6 pb-4 border-b border-slate-800",children:[t.jsxs("div",{className:"flex items-center p-1 bg-slate-950 rounded-xl border border-slate-800",children:[t.jsxs("button",{onClick:()=>c("grid"),className:`flex items-center gap-2 px-4 py-2 rounded-lg text-xs font-bold transition-all ${f==="grid"?"bg-amber-400 text-slate-950 shadow-md shadow-amber-400/20":"text-slate-400 hover:text-white hover:bg-slate-800/60"}`,children:[t.jsx(rh,{className:"w-4 h-4"}),t.jsx("span",{children:"Grille Officielle Hebdomadaire (Terrains 1/2/3)"})]}),t.jsxs("button",{onClick:()=>c("cards"),className:`flex items-center gap-2 px-4 py-2 rounded-lg text-xs font-bold transition-all ${f==="cards"?"bg-amber-400 text-slate-950 shadow-md shadow-amber-400/20":"text-slate-400 hover:text-white hover:bg-slate-800/60"}`,children:[t.jsx(ig,{className:"w-4 h-4"}),t.jsx("span",{children:"Vue Fiches & Filtres"})]}),t.jsxs("button",{onClick:()=>c("gyms"),className:`flex items-center gap-2 px-4 py-2 rounded-lg text-xs font-bold transition-all ${f==="gyms"?"bg-amber-400 text-slate-950 shadow-md shadow-amber-400/20":"text-slate-400 hover:text-white hover:bg-slate-800/60"}`,children:[t.jsx(_u,{className:"w-4 h-4"}),t.jsx("span",{children:"Salles & Gymnases"})]})]}),t.jsxs("div",{className:"flex items-center gap-2 text-xs text-slate-400",children:[t.jsx(Va,{className:"w-4 h-4 text-emerald-400"}),t.jsx("span",{children:"Homologué Ville de Valence & FFVB"})]})]}),f==="grid"&&t.jsx("div",{className:"space-y-6",children:t.jsx("div",{className:"p-4 rounded-2xl bg-slate-950/90 border border-slate-800 shadow-2xl overflow-x-auto",children:t.jsxs("div",{className:"min-w-[980px]",children:[t.jsxs("div",{className:"flex items-center justify-between bg-gradient-to-r from-slate-900 via-blue-950 to-slate-900 p-3 rounded-xl border border-slate-800 mb-3",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("span",{className:"w-8 h-8 rounded-lg bg-amber-400 text-slate-950 font-black flex items-center justify-center text-xs",children:"ACE"}),t.jsx("span",{className:"font-extrabold text-sm tracking-wide text-white font-display uppercase",children:"Valence ACE - Créneaux Saison 2026 - 2027 (Hors vacances scolaires)"})]}),t.jsx("span",{className:"text-[11px] font-bold text-amber-400 bg-amber-400/10 px-2.5 py-1 rounded-full border border-amber-400/20",children:"Ville de Valence (26)"})]}),t.jsxs("table",{className:"w-full border-collapse text-left text-xs",children:[t.jsx("thead",{children:t.jsxs("tr",{className:"bg-slate-800 text-white font-bold border-b border-slate-700",children:[t.jsx("th",{className:"p-3 w-20 border-r border-slate-700 text-amber-400 uppercase tracking-wider text-[11px]",children:"Horaire"}),t.jsxs("th",{className:"p-2 border-r border-slate-700 text-center bg-slate-850",children:[t.jsx("div",{className:"font-extrabold text-sm text-white",children:"Lundi"}),t.jsxs("div",{className:"grid grid-cols-3 gap-1 text-[9px] text-slate-400 uppercase mt-1 font-semibold",children:[t.jsx("span",{className:"bg-slate-900/60 py-0.5 rounded",children:"T1"}),t.jsx("span",{className:"bg-slate-900/60 py-0.5 rounded",children:"T2"}),t.jsx("span",{className:"bg-slate-900/60 py-0.5 rounded",children:"T3"})]})]}),t.jsxs("th",{className:"p-2 border-r border-slate-700 text-center bg-slate-850",children:[t.jsx("div",{className:"font-extrabold text-sm text-white",children:"Mardi"}),t.jsxs("div",{className:"grid grid-cols-3 gap-1 text-[9px] text-slate-400 uppercase mt-1 font-semibold",children:[t.jsx("span",{className:"bg-slate-900/60 py-0.5 rounded",children:"T1"}),t.jsx("span",{className:"bg-slate-900/60 py-0.5 rounded",children:"T2"}),t.jsx("span",{className:"bg-slate-900/60 py-0.5 rounded",children:"T3"})]})]}),t.jsxs("th",{className:"p-2 border-r border-slate-700 text-center bg-slate-850",children:[t.jsx("div",{className:"font-extrabold text-sm text-white",children:"Mercredi"}),t.jsxs("div",{className:"grid grid-cols-3 gap-1 text-[9px] text-slate-400 uppercase mt-1 font-semibold",children:[t.jsx("span",{className:"bg-slate-900/60 py-0.5 rounded",children:"T1"}),t.jsx("span",{className:"bg-slate-900/60 py-0.5 rounded",children:"T2"}),t.jsx("span",{className:"bg-slate-900/60 py-0.5 rounded",children:"T3"})]})]}),t.jsxs("th",{className:"p-2 border-r border-slate-700 text-center bg-slate-850",children:[t.jsx("div",{className:"font-extrabold text-sm text-white",children:"Jeudi"}),t.jsxs("div",{className:"grid grid-cols-3 gap-1 text-[9px] text-slate-400 uppercase mt-1 font-semibold",children:[t.jsx("span",{className:"bg-slate-900/60 py-0.5 rounded",children:"T1"}),t.jsx("span",{className:"bg-slate-900/60 py-0.5 rounded",children:"T2"}),t.jsx("span",{className:"bg-slate-900/60 py-0.5 rounded",children:"T3"})]})]}),t.jsxs("th",{className:"p-2 border-r border-slate-700 text-center bg-slate-850",children:[t.jsx("div",{className:"font-extrabold text-sm text-white",children:"Vendredi"}),t.jsxs("div",{className:"grid grid-cols-3 gap-1 text-[9px] text-slate-400 uppercase mt-1 font-semibold",children:[t.jsx("span",{className:"bg-slate-900/60 py-0.5 rounded",children:"T1"}),t.jsx("span",{className:"bg-slate-900/60 py-0.5 rounded",children:"T2"}),t.jsx("span",{className:"bg-slate-900/60 py-0.5 rounded",children:"T3"})]})]}),t.jsxs("th",{className:"p-2 text-center bg-slate-900 w-44",children:[t.jsx("div",{className:"font-extrabold text-sm text-amber-300",children:"Samedi"}),t.jsxs("div",{className:"grid grid-cols-2 gap-1 text-[9px] text-slate-400 uppercase mt-1 font-semibold",children:[t.jsx("span",{className:"bg-slate-800 py-0.5 rounded",children:"Zammit (1/2/3)"}),t.jsx("span",{className:"bg-slate-800 py-0.5 rounded",children:"Denis Maurin"})]})]})]})}),t.jsxs("tbody",{className:"divide-y divide-slate-800",children:[t.jsxs("tr",{className:"hover:bg-slate-900/50",children:[t.jsxs("td",{className:"p-2.5 font-black text-amber-400 bg-slate-950/80 border-r border-slate-800 text-[11px] align-middle",children:["16H00",t.jsx("br",{}),t.jsx("span",{className:"text-[10px] text-slate-500 font-normal",children:"17H30/18H"})]}),t.jsx("td",{className:"p-2 border-r border-slate-800 bg-slate-800/40 text-center align-middle",children:t.jsx("div",{className:"p-2 rounded-lg bg-slate-700/50 text-slate-300 text-[11px] font-bold",children:"SCOLAIRE"})}),t.jsx("td",{className:"p-2 border-r border-slate-800 bg-slate-800/40 text-center align-middle",children:t.jsx("div",{className:"p-2 rounded-lg bg-slate-700/50 text-slate-300 text-[11px] font-bold",children:"SCOLAIRE"})}),t.jsx("td",{className:"p-2 border-r border-slate-800 bg-slate-900/60 align-middle",children:t.jsxs("div",{className:"grid grid-cols-3 gap-1",children:[t.jsxs("div",{className:"p-1.5 rounded-lg bg-sky-950/90 border border-sky-600/60 text-sky-200",children:[t.jsx("span",{className:"font-extrabold text-[10px] block text-sky-100",children:"T1: M9 Mixte"}),t.jsx("span",{className:"text-[8.5px] text-sky-300 font-medium block",children:"Mathilde"}),t.jsx("span",{className:"text-[8.5px] text-amber-400 font-bold block mt-0.5",children:"16h-17h15"})]}),t.jsxs("div",{className:"p-1.5 rounded-lg bg-amber-950/90 border border-amber-600/60 text-amber-200",children:[t.jsx("span",{className:"font-extrabold text-[10px] block text-amber-100",children:"T2: M11 Mixte"}),t.jsx("span",{className:"text-[8.5px] text-amber-300 font-medium block",children:"Céline"}),t.jsx("span",{className:"text-[8.5px] text-amber-400 font-bold block mt-0.5",children:"16h-17h15"})]}),t.jsxs("div",{className:"p-1.5 rounded-lg bg-purple-950/90 border border-purple-600/60 text-purple-200",children:[t.jsx("span",{className:"font-extrabold text-[10px] block text-purple-100",children:"T3: M13 (G)"}),t.jsx("span",{className:"text-[8.5px] text-purple-300 block",children:"Loris"}),t.jsx("span",{className:"text-[8.5px] text-amber-300 block",children:"17h-19h"})]})]})}),t.jsx("td",{className:"p-2 border-r border-slate-800 bg-slate-800/40 text-center align-middle",children:t.jsx("div",{className:"p-2 rounded-lg bg-slate-700/50 text-slate-300 text-[11px] font-bold",children:"SCOLAIRE"})}),t.jsx("td",{className:"p-2 border-r border-slate-800 bg-slate-800/40 text-center align-middle",children:t.jsx("div",{className:"p-2 rounded-lg bg-slate-700/50 text-slate-300 text-[11px] font-bold",children:"SCOLAIRE"})}),t.jsx("td",{rowSpan:3,className:"p-2.5 text-center bg-slate-950/80 align-middle",children:t.jsxs("div",{className:"p-3 rounded-xl bg-amber-500/10 border border-amber-500/30 text-amber-200 space-y-2",children:[t.jsx("span",{className:"text-xs font-black uppercase text-amber-400 block",children:"8H00 - 23H00"}),t.jsx("p",{className:"text-[10px] text-slate-300 font-medium leading-tight",children:"Matchs de Championnat FFVB & Plateaux Jeunes (aux dates réservées)"}),t.jsx("div",{className:"pt-2 border-t border-amber-500/20 text-[9px] text-amber-300 font-bold",children:"Gymnase Zammit (T 1/2/3) & Denis Maurin (T 1/2/3)"})]})})]}),t.jsxs("tr",{className:"hover:bg-slate-900/50",children:[t.jsxs("td",{className:"p-2.5 font-black text-amber-400 bg-slate-950/80 border-r border-slate-800 text-[11px] align-middle",children:["18H00",t.jsx("br",{}),t.jsx("span",{className:"text-[10px] text-slate-500 font-normal",children:"19H/20H"})]}),t.jsx("td",{className:"p-2 border-r border-slate-800 align-middle",children:t.jsxs("div",{className:"grid grid-cols-3 gap-1",children:[t.jsxs("div",{className:"p-2 rounded-lg bg-emerald-950/80 border border-emerald-600/40 text-emerald-200",children:[t.jsx("span",{className:"font-extrabold text-[10px] block",children:"M13 G / M13F"}),t.jsx("span",{className:"text-[9px] text-emerald-400 font-medium",children:"Loris (17h30-20h)"})]}),t.jsxs("div",{className:"col-span-2 p-2 rounded-lg bg-blue-950/80 border border-blue-600/40 text-blue-200",children:[t.jsx("span",{className:"font-extrabold text-[11px] block",children:"M15 / M18"}),t.jsx("span",{className:"text-[9px] text-blue-300 font-medium",children:"Guillaume (18h-20h)"})]})]})}),t.jsx("td",{className:"p-2 border-r border-slate-800 align-middle",children:t.jsxs("div",{className:"grid grid-cols-3 gap-1",children:[t.jsxs("div",{className:"col-span-2 p-2 rounded-lg bg-amber-950/70 border border-amber-500/50 text-amber-200",children:[t.jsx("span",{className:"font-extrabold text-[11px] block",children:"PRE-RÉG"}),t.jsx("span",{className:"text-[9px] text-amber-300 font-medium",children:"Nico + Hugo"})]}),t.jsxs("div",{className:"p-2 rounded-lg bg-orange-950/70 border 
419border-orange-500/50 text-orange-200",children:[t.jsx("span",{className:"font-extrabold text-[10px] block",children:"VOLLEY LOISIRS"}),t.jsx("span",{className:"text-[9px] text-orange-300 font-medium",children:"FFVolley (Service civique)"})]})]})}),t.jsx("td",{className:"p-2 border-r border-slate-800 align-middle",children:t.jsxs("div",{className:"grid grid-cols-3 gap-1",children:[t.jsxs("div",{className:"col-span-2 p-2 rounded-lg bg-indigo-950/80 border border-indigo-500/50 text-indigo-200",children:[t.jsx("span",{className:"font-extrabold text-[11px] block",children:"M15 / M18"}),t.jsx("span",{className:"text-[9px] text-indigo-300 font-medium",children:"Guillaume (18h00-20h)"})]}),t.jsx("div",{className:"p-2 rounded-lg bg-purple-950/60 border border-purple-700/40 text-purple-300 text-[10px] flex items-center justify-center font-bold",children:"M13 (jusqu'à 19h)"})]})}),t.jsx("td",{className:"p-2 border-r border-slate-800 align-middle",children:t.jsxs("div",{className:"grid grid-cols-3 gap-1",children:[t.jsxs("div",{className:"col-span-2 p-2 rounded-lg bg-amber-950/70 border border-amber-500/50 text-amber-200",children:[t.jsx("span",{className:"font-extrabold text-[11px] block",children:"PRÉ-RÉG"}),t.jsx("span",{className:"text-[9px] text-amber-300 font-medium",children:"Nico + Hugo"})]}),t.jsxs("div",{className:"p-2 rounded-lg bg-teal-950/80 border border-teal-500/50 text-teal-200",children:[t.jsx("span",{className:"font-extrabold text-[10px] block",children:"M15 / M13"}),t.jsx("span",{className:"text-[9px] text-teal-300 font-medium",children:"Club"})]})]})}),t.jsx("td",{className:"p-2 border-r border-slate-800 align-middle",children:t.jsxs("div",{className:"grid grid-cols-3 gap-1",children:[t.jsxs("div",{className:"col-span-2 p-2 rounded-lg bg-slate-800/80 border border-slate-700 text-slate-200",children:[t.jsx("span",{className:"font-extrabold text-[10px] block",children:"À la demande ou"}),t.jsx("span",{className:"text-[10px] font-black text-amber-300",children:"COMPÉT’LIB"})]}),t.jsxs("div",{className:"p-2 rounded-lg bg-orange-950/70 border border-orange-500/50 text-orange-200",children:[t.jsx("span",{className:"font-extrabold text-[10px] block",children:"FFVolley Loisirs"}),t.jsx("span",{className:"text-[9px] text-orange-300 font-medium",children:"15js"})]})]})})]}),t.jsxs("tr",{className:"hover:bg-slate-900/50",children:[t.jsxs("td",{className:"p-2.5 font-black text-amber-400 bg-slate-950/80 border-r border-slate-800 text-[11px] align-middle",children:["20H00",t.jsx("br",{}),t.jsx("span",{className:"text-[10px] text-slate-500 font-normal",children:"21H/22H"})]}),t.jsx("td",{className:"p-2 border-r border-slate-800 align-middle",children:t.jsxs("div",{className:"grid grid-cols-3 gap-1 text-center",children:[t.jsx("div",{className:"p-2 rounded-lg bg-amber-900/40 border border-amber-500/40 text-amber-200",children:t.jsx("span",{className:"font-black text-[10px] block",children:"Ufolep 1 & 2"})}),t.jsx("div",{className:"p-2 rounded-lg bg-amber-900/40 border border-amber-500/40 text-amber-200",children:t.jsx("span",{className:"font-black text-[10px] block",children:"Ufolep 3 & 4"})}),t.jsx("div",{className:"p-2 rounded-lg bg-amber-900/40 border border-amber-500/40 text-amber-200",children:t.jsx("span",{className:"font-black text-[10px] block",children:"Ufolep 5 & 6"})})]})}),t.jsx("td",{className:"p-2 border-r border-slate-800 align-middle",children:t.jsxs("div",{className:"grid grid-cols-3 gap-1",children:[t.jsxs("div",{className:"col-span-2 p-2 rounded-lg bg-blue-900/70 border border-amber-400/60 text-white",children:[t.jsx("span",{className:"font-extrabold text-[11px] block text-amber-300",children:"PRÉNATIONALE"}),t.jsx("span",{className:"text-[9px] text-slate-200 font-medium",children:"Guikatch"})]}),t.jsxs("div",{className:"p-2 rounded-lg bg-purple-950/80 border border-purple-500/50 text-purple-200 text-center",children:[t.jsx("span",{className:"font-extrabold text-[10px] block",children:"EQUIPE DEP"}),t.jsx("span",{className:"text-[9px] text-purple-300 font-medium",children:"Shivam"})]})]})}),t.jsx("td",{className:"p-2 border-r border-slate-800 align-middle",children:t.jsxs("div",{className:"grid grid-cols-3 gap-1 text-center",children:[t.jsx("div",{className:"p-2 rounded-lg bg-amber-900/40 border border-amber-500/40 text-amber-200",children:t.jsx("span",{className:"font-black text-[10px] block",children:"Ufolep 1 & 2"})}),t.jsx("div",{className:"p-2 rounded-lg bg-amber-900/40 border border-amber-500/40 text-amber-200",children:t.jsx("span",{className:"font-black text-[10px] block",children:"Ufolep 3 & 4"})}),t.jsx("div",{className:"p-2 rounded-lg bg-amber-900/40 border border-amber-500/40 text-amber-200",children:t.jsx("span",{className:"font-black text-[10px] block",children:"Ufolep 5 & 6"})})]})}),t.jsx("td",{className:"p-2 border-r border-slate-800 align-middle",children:t.jsxs("div",{className:"grid grid-cols-3 gap-1",children:[t.jsxs("div",{className:"col-span-2 p-2 rounded-lg bg-blue-900/70 border border-amber-400/60 text-white",children:[t.jsx("span",{className:"font-extrabold text-[11px] block text-amber-300",children:"PRÉNATIONALE"}),t.jsx("span",{className:"text-[9px] text-slate-200 font-medium",children:"Guikatch"})]}),t.jsxs("div",{className:"p-2 rounded-lg bg-indigo-950/80 border border-indigo-500/50 text-indigo-200 text-[9px] leading-tight",children:[t.jsx("span",{className:"font-bold text-amber-300 block",children:"SPÉ DEP OU FFV"}),t.jsx("span",{children:"Compét'lib 6/6 M/F/Mixte"})]})]})}),t.jsx("td",{className:"p-2 border-r border-slate-800 align-middle",children:t.jsxs("div",{className:"grid grid-cols-3 gap-1",children:[t.jsxs("div",{className:"col-span-2 p-2 rounded-lg bg-purple-950/80 border border-purple-500/50 text-purple-200",children:[t.jsx("span",{className:"font-extrabold text-[11px] block",children:"EQUIPE DEP"}),t.jsx("span",{className:"text-[9px] text-purple-300 font-medium",children:"Shivam"})]}),t.jsxs("div",{className:"p-2 rounded-lg bg-blue-900/70 border border-amber-400/50 text-white",children:[t.jsx("span",{className:"font-extrabold text-[10px] block text-amber-300",children:"PRENAT"}),t.jsx("span",{className:"text-[9px] text-slate-200",children:"Guikatch"})]})]})})]})]})]})]})})}),f==="cards"&&t.jsxs("div",{className:"space-y-6",children:[t.jsx("div",{className:"p-4 sm:p-6 rounded-2xl bg-slate-950/90 border border-slate-800 backdrop-blur-md space-y-4",children:t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4",children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[t.jsxs("span",{className:"text-xs font-bold text-slate-400 mr-2 flex items-center gap-1",children:[t.jsx(Ft,{className:"w-3.5 h-3.5 text-amber-400"})," Jour :"]}),C.map(S=>t.jsx("button",{onClick:()=>k(S),className:`px-3 py-1.5 rounded-lg text-xs font-bold transition-all ${b===S?"bg-amber-400 text-slate-950 shadow-md shadow-amber-400/20":"bg-slate-800 text-slate-300 hover:bg-slate-700"}`,children:S},S))]}),t.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx("span",{className:"text-xs font-bold text-slate-400",children:"Gymnase :"}),t.jsx("select",{value:p,onChange:S=>g(S.target.value),className:"bg-slate-800 border border-slate-700 text-xs text-white rounded-lg px-2.5 py-1.5 focus:outline-none focus:border-amber-400",children:v.map(S=>t.jsx("option",{value:S,children:S},S))})]}),t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx("span",{className:"text-xs font-bold text-slate-400",children:"Public :"}),t.jsx("select",{value:y,onChange:S=>N(S.target.value),className:"bg-slate-800 border border-slate-700 text-xs text-white rounded-lg px-2.5 py-1.5 focus:outline-none focus:border-amber-400",children:m.map(S=>t.jsx("option",{value:S,children:S},S))})]})]})]})}),t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:T.length>0?T.map(S=>t.jsxs("div",{className:"p-5 rounded-2xl bg-slate-800/70 border border-slate-700/80 hover:border-amber-400/60 hover:bg-slate-800 transition-all flex flex-col justify-between group",children:[t.jsxs("div",{children:[t.jsxs("div",{className:"flex items-center justify-between mb-3",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx("span",{className:"text-xs font-extrabold uppercase px-2.5 py-1 rounded-md bg-blue-600 text-white",children:S.day}),S.terrains&&t.jsx("span",{className:"text-[10px] font-bold px-2 py-0.5 rounded bg-slate-700 text-amber-300",children:S.terrains})]}),t.jsx("span",{className:`text-[10px] font-semibold px-2 py-0.5 rounded-full border ${S.gymnasium.includes("Zammit")?"bg-amber-400/10 text-amber-300 border-amber-400/30":"bg-indigo-400/10 text-indigo-300 border-indigo-400/30"}`,children:S.gymnasium.split("(")[0]})]}),t.jsxs("div",{className:"flex items-center gap-2 text-amber-400 font-extrabold text-base mb-1.5",children:[t.jsx(Fo,{className:"w-4 h-4 text-amber-400"}),t.jsx("span",{children:S.time})]}),t.jsx("h3",{className:"text-lg font-bold text-white font-display group-hover:text-amber-300 transition-colors",children:S.category}),t.jsxs("div",{className:"mt-3 space-y-1.5 text-xs text-slate-300 border-t border-slate-700/60 pt-3",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Kg,{className:"w-3.5 h-3.5 text-slate-400"}),t.jsxs("span",{children:["Encadrement : ",t.jsx("strong",{children:S.coach})]})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400"}),t.jsxs("span",{className:"text-slate-400",children:["Niveau : ",S.level]})]}),S.note&&t.jsxs("div",{className:"text-[11px] text-slate-400 italic pt-1",children:["ℹ️ ",S.note]})]})]}),t.jsxs("div",{className:"mt-5 pt-3 border-t border-slate-700/60 flex items-center justify-between",children:[t.jsxs("span",{className:"text-[11px] text-emerald-400 font-semibold flex items-center gap-1",children:[t.jsx(Yr,{className:"w-3.5 h-3.5"})," 2 essais offerts"]}),t.jsx("button",{onClick:()=>o(S.category),className:"text-xs font-bold text-amber-400 hover:text-amber-300 hover:underline flex items-center gap-1 cursor-pointer",children:"Essayer ce 
419créneau →"})]})]},S.id)):t.jsxs("div",{className:"col-span-full p-12 text-center rounded-2xl bg-slate-800/40 border border-slate-700",children:[t.jsx(Ub,{className:"w-8 h-8 text-amber-400 mx-auto mb-2"}),t.jsx("p",{className:"text-slate-300 font-bold",children:"Aucun créneau ne correspond à vos filtres."}),t.jsx("button",{onClick:()=>{k("Tous"),g("Tous"),N("Tous")},className:"mt-3 text-xs text-amber-400 hover:underline font-semibold",children:"Réinitialiser les filtres"})]})})]}),f==="gyms"&&t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:Vs.map(S=>t.jsxs("div",{className:"rounded-2xl bg-slate-950/80 border border-slate-800 overflow-hidden shadow-xl flex flex-col justify-between",children:[S.imageUrl&&t.jsxs("div",{className:"relative aspect-[16/9] w-full overflow-hidden bg-slate-900",children:[t.jsx("img",{src:S.imageUrl,alt:S.name,referrerPolicy:"no-referrer",className:"w-full h-full object-cover",loading:"lazy"}),t.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-slate-950 via-slate-950/40 to-transparent"}),t.jsx("span",{className:"absolute top-3 left-3 text-[10px] font-extrabold uppercase px-2.5 py-1 rounded-full bg-amber-400 text-slate-950",children:S.badge})]}),t.jsxs("div",{className:"p-6 flex-1 flex flex-col justify-between space-y-4",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"text-xl font-bold text-white font-display",children:S.name}),t.jsx("p",{className:"text-xs text-amber-400 font-semibold mt-0.5 mb-3",children:S.type}),t.jsxs("p",{className:"text-xs text-slate-400 flex items-start gap-1.5 mb-4",children:[t.jsx(Bt,{className:"w-3.5 h-3.5 text-amber-400 shrink-0 mt-0.5"}),t.jsx("span",{children:S.address})]}),t.jsx("div",{className:"space-y-1.5 pt-3 border-t border-slate-800 text-xs text-slate-300",children:S.features.map((j,E)=>t.jsxs("div",{className:"flex items-start gap-2",children:[t.jsx(Yr,{className:"w-3.5 h-3.5 text-emerald-400 shrink-0 mt-0.5"}),t.jsx("span",{children:j})]},E))})]}),t.jsxs("div",{className:"pt-4 border-t border-slate-800 flex items-center justify-between",children:[t.jsx("a",{href:S.mapsUrl,target:"_blank",rel:"noopener noreferrer",className:"text-xs font-bold text-amber-400 hover:text-amber-300 hover:underline flex items-center gap-1",children:"Ouvrir l'itinéraire Google Maps →"}),t.jsx("button",{onClick:()=>o(),className:"px-3 py-1.5 rounded-lg bg-blue-600 hover:bg-blue-500 text-white font-bold text-xs",children:"Venir essayer"})]})]})]},S.id))}),t.jsxs("div",{className:"mt-10 p-5 rounded-2xl bg-gradient-to-r from-blue-950/60 to-slate-950 border border-blue-800/60 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 text-xs sm:text-sm text-blue-200 shadow-lg",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("div",{className:"w-10 h-10 rounded-xl bg-blue-600/30 border border-blue-500/40 flex items-center justify-center text-xl shrink-0",children:"🏐"}),t.jsxs("div",{children:[t.jsx("p",{className:"font-bold text-white",children:"Rappel pour les séances et créneaux d'essai :"}),t.jsx("p",{className:"text-slate-300 text-xs",children:"Présentez-vous 10 minutes avant le créneau au Gymnase Zammit ou dans votre salle d'accueil avec vos baskets de salle propres et votre gourde."})]})]}),t.jsx("button",{onClick:()=>o(),className:"px-4 py-2 rounded-xl bg-amber-400 hover:bg-amber-300 text-slate-950 font-extrabold text-xs shrink-0 cursor-pointer shadow-md",children:"Tester un entraînement sans engagements"})]})]})})};var Bu={};(function o(f,c,b,k){var p=!!(f.Worker&&f.Blob&&f.Promise&&f.OffscreenCanvas&&f.OffscreenCanvasRenderingContext2D&&f.HTMLCanvasElement&&f.HTMLCanvasElement.prototype.transferControlToOffscreen&&f.URL&&f.URL.createObjectURL),g=typeof Path2D=="function"&&typeof DOMMatrix=="function",y=(function(){if(!f.OffscreenCanvas)return!1;try{var B=new OffscreenCanvas(1,1),d=B.getContext("2d");d.fillRect(0,0,1,1);var U=B.transferToImageBitmap();d.createPattern(U,"no-repeat")}catch{return!1}return!0})();function N(){}function C(B){var d=c.exports.Promise,U=d!==void 0?d:f.Promise;return typeof U=="function"?new U(B):(B(N,N),null)}
vendor: 8,674 bytes, lines 419-420
419var v=(function(B,d){return{transform:function(U){if(B)return U;if(d.has(U))return d.get(U);var re=new OffscreenCanvas(U.width,U.height),ne=re.getContext("2d");return ne.drawImage(U,0,0),d.set(U,re),re},clear:function(){d.clear()}}})(y,new Map),m=(function(){var B=Math.floor(16.666666666666668),d,U,re={},ne=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(d=function(ae){var _e=Math.random();return re[_e]=requestAnimationFrame(function Ce(Ae){ne===Ae||ne+B-1<Ae?(ne=Ae,delete re[_e],ae()):re[_e]=requestAnimationFrame(Ce)}),_e},U=function(ae){re[ae]&&cancelAnimationFrame(re[ae])}):(d=function(ae){return setTimeout(ae,B)},U=function(ae){return clearTimeout(ae)}),{frame:d,cancel:U}})(),T=(function(){var B,d,U={};function re(ne){function ae(_e,Ce){ne.postMessage({options:_e||{},callback:Ce})}ne.init=function(Ce){var Ae=Ce.transferControlToOffscreen();ne.postMessage({canvas:Ae},[Ae])},ne.fire=function(Ce,Ae,Me){if(d)return ae(Ce,null),d;var Fe=Math.random().toString(36).slice(2);return d=C(function(Te){function He(Ie){Ie.data.callback===Fe&&(delete U[Fe],ne.removeEventListener("message",He),d=null,v.clear(),Me(),Te())}ne.addEventListener("message",He),ae(Ce,Fe),U[Fe]=He.bind(null,{data:{callback:Fe}})}),d},ne.reset=function(){ne.postMessage({reset:!0});for(var Ce in U)U[Ce](),delete U[Ce]}}return function(){if(B)return B;if(!b&&p){var ne=["var CONFETTI, SIZE = {}, module = {};","("+o.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {","  if (msg.data.options) {","    CONFETTI(msg.data.options).then(function () {","      if (msg.data.callback) {","        postMessage({ callback: msg.data.callback });","      }","    });","  } else if (msg.data.reset) {","    CONFETTI && CONFETTI.reset();","  } else if (msg.data.resize) {","    SIZE.width = msg.data.resize.width;","    SIZE.height = msg.data.resize.height;","  } else if (msg.data.canvas) {","    SIZE.width = msg.data.canvas.width;","    SIZE.height = msg.data.canvas.height;","    CONFETTI = module.exports.create(msg.data.canvas);","  }","}"].join(`
420`);try{B=new Worker(URL.createObjectURL(new Blob([ne])))}catch(ae){return typeof console<"u"&&typeof console.warn=="function"&&console.warn("🎊 Could not load worker",ae),null}re(B)}return B}})(),w={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function S(B,d){return d?d(B):B}function j(B){return B!=null}function E(B,d,U){return S(B&&j(B[d])?B[d]:w[d],U)}function A(B){return B<0?0:Math.floor(B)}function O(B,d){return Math.floor(Math.random()*(d-B))+B}function F(B){return parseInt(B,16)}function $(B){return B.map(Y)}function Y(B){var d=String(B).replace(/[^0-9a-f]/gi,"");return d.length<6&&(d=d[0]+d[0]+d[1]+d[1]+d[2]+d[2]),{r:F(d.substring(0,2)),g:F(d.substring(2,4)),b:F(d.substring(4,6))}}function G(B){var d=E(B,"origin",Object);return d.x=E(d,"x",Number),d.y=E(d,"y",Number),d}function V(B){B.width=document.documentElement.clientWidth,B.height=document.documentElement.clientHeight}function K(B){var d=B.getBoundingClientRect();B.width=d.width,B.height=d.height}function te(B){var d=document.createElement("canvas");return d.style.position="fixed",d.style.top="0px",d.style.left="0px",d.style.pointerEvents="none",d.style.zIndex=B,d}function J(B,d,U,re,ne,ae,_e,Ce,Ae){B.save(),B.translate(d,U),B.rotate(ae),B.scale(re,ne),B.arc(0,0,1,_e,Ce,Ae),B.restore()}function I(B){var d=B.angle*(Math.PI/180),U=B.spread*(Math.PI/180);return{x:B.x,y:B.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:B.startVelocity*.5+Math.random()*B.startVelocity,angle2D:-d+(.5*U-Math.random()*U),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:B.color,shape:B.shape,tick:0,totalTicks:B.ticks,decay:B.decay,drift:B.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:B.gravity*3,ovalScalar:.6,scalar:B.scalar,flat:B.flat}}function L(B,d){d.x+=Math.cos(d.angle2D)*d.velocity+d.drift,d.y+=Math.sin(d.angle2D)*d.velocity+d.gravity,d.velocity*=d.decay,d.flat?(d.wobble=0,d.wobbleX=d.x+10*d.scalar,d.wobbleY=d.y+10*d.scalar,d.tiltSin=0,d.tiltCos=0,d.random=1):(d.wobble+=d.wobbleSpeed,d.wobbleX=d.x+10*d.scalar*Math.cos(d.wobble),d.wobbleY=d.y+10*d.scalar*Math.sin(d.wobble),d.tiltAngle+=.1,d.tiltSin=Math.sin(d.tiltAngle),d.tiltCos=Math.cos(d.tiltAngle),d.random=Math.random()+2);var U=d.tick++/d.totalTicks,re=d.x+d.random*d.tiltCos,ne=d.y+d.random*d.tiltSin,ae=d.wobbleX+d.random*d.tiltCos,_e=d.wobbleY+d.random*d.tiltSin;if(B.fillStyle="rgba("+d.color.r+", "+d.color.g+", "+d.color.b+", "+(1-U)+")",B.beginPath(),g&&d.shape.type==="path"&&typeof d.shape.path=="string"&&Array.isArray(d.shape.matrix))B.fill(X(d.shape.path,d.shape.matrix,d.x,d.y,Math.abs(ae-re)*.1,Math.abs(_e-ne)*.1,Math.PI/10*d.wobble));else if(d.shape.type==="bitmap"){var Ce=Math.PI/10*d.wobble,Ae=Math.abs(ae-re)*.1,Me=Math.abs(_e-ne)*.1,Fe=d.shape.bitmap.width*d.scalar,Te=d.shape.bitmap.height*d.scalar,He=new DOMMatrix([Math.cos(Ce)*Ae,Math.sin(Ce)*Ae,-Math.sin(Ce)*Me,Math.cos(Ce)*Me,d.x,d.y]);He.multiplySelf(new DOMMatrix(d.shape.matrix));var Ie=B.createPattern(v.transform(d.shape.bitmap),"no-repeat");Ie.setTransform(He),B.globalAlpha=1-U,B.fillStyle=Ie,B.fillRect(d.x-Fe/2,d.y-Te/2,Fe,Te),B.globalAlpha=1}else if(d.shape==="circle")B.ellipse?B.ellipse(d.x,d.y,Math.abs(ae-re)*d.ovalScalar,Math.abs(_e-ne)*d.ovalScalar,Math.PI/10*d.wobble,0,2*Math.PI):J(B,d.x,d.y,Math.abs(ae-re)*d.ovalScalar,Math.abs(_e-ne)*d.ovalScalar,Math.PI/10*d.wobble,0,2*Math.PI);else if(d.shape==="star")for(var x=Math.PI/2*3,pe=4*d.scalar,ue=8*d.scalar,D=d.x,R=d.y,W=5,ye=Math.PI/W;W--;)D=d.x+Math.cos(x)*ue,R=d.y+Math.sin(x)*ue,B.lineTo(D,R),x+=ye,D=d.x+Math.cos(x)*pe,R=d.y+Math.sin(x)*pe,B.lineTo(D,R),x+=ye;else B.moveTo(Math.floor(d.x),Math.floor(d.y)),B.lineTo(Math.floor(d.wobbleX),Math.floor(ne)),B.lineTo(Math.floor(ae),Math.floor(_e)),B.lineTo(Math.floor(re),Math.floor(d.wobbleY));return B.closePath(),B.fill(),d.tick<d.totalTicks}function H(B,d,U,re,ne){var ae=d.slice(),_e=B.getContext("2d"),Ce,Ae,Me=C(function(Fe){function Te(){Ce=Ae=null,_e.clearRect(0,0,re.width,re.height),v.clear(),ne(),Fe()}function He(){b&&!(re.width===k.width&&re.height===k.height)&&(re.width=B.width=k.width,re.height=B.height=k.height),!re.width&&!re.height&&(U(B),re.width=B.width,re.height=B.height),_e.clearRect(0,0,re.width,re.height),ae=ae.filter(function(Ie){return L(_e,Ie)}),ae.length?Ce=m.frame(He):Te()}Ce=m.frame(He),Ae=Te});return{addFettis:function(Fe){return ae=ae.concat(Fe),Me},canvas:B,promise:Me,reset:function(){Ce&&m.cancel(Ce),Ae&&Ae()}}}function h(B,d){var U=!B,re=!!E(d||{},"resize"),ne=!1,ae=E(d,"disableForReducedMotion",Boolean),_e=p&&!!E(d||{},"useWorker"),Ce=_e?T():null,Ae=U?V:K,Me=B&&Ce?!!B.__confetti_initialized:!1,Fe=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,Te;function He(x,pe,ue){for(var D=E(x,"particleCount",A),R=E(x,"angle",Number),W=E(x,"spread",Number),ye=E(x,"startVelocity",Number),we=E(x,"decay",Number),oe=E(x,"gravity",Number),ve=E(x,"drift",Number),Ee=E(x,"colors",$),ke=E(x,"ticks",Number),ze=E(x,"shapes"),Ze=E(x,"scalar"),Ve=!!E(x,"flat"),Ye=G(x),la=D,zt=[],_a=B.width*Ye.x,lt=B.height*Ye.y;la--;)zt.push(I({x:_a,y:lt,angle:R,spread:W,startVelocity:ye,color:Ee[la%Ee.length],shape:ze[O(0,ze.length)],ticks:ke,decay:we,gravity:oe,drift:ve,scalar:Ze,flat:Ve}));return Te?Te.addFettis(zt):(Te=H(B,zt,Ae,pe,ue),Te.promise)}function Ie(x){var pe=ae||E(x,"disableForReducedMotion",Boolean),ue=E(x,"zIndex",Number);if(pe&&Fe)return C(function(ye){ye()});U&&Te?B=Te.canvas:U&&!B&&(B=te(ue),document.body.appendChild(B)),re&&!Me&&Ae(B);var D={width:B.width,height:B.height};Ce&&!Me&&Ce.init(B),Me=!0,Ce&&(B.__confetti_initialized=!0);function R(){if(Ce){var ye={getBoundingClientRect:function(){if(!U)return B.getBoundingClientRect()}};Ae(ye),Ce.postMessage({resize:{width:ye.width,height:ye.height}});return}D.width=D.height=null}function W(){Te=null,re&&(ne=!1,f.removeEventListener("resize",R)),U&&B&&(document.body.contains(B)&&document.body.removeChild(B),B=null,Me=!1)}return re&&!ne&&(ne=!0,f.addEventListener("resize",R,!1)),Ce?Ce.fire(x,D,W):He(x,D,W)}return Ie.reset=function(){Ce&&Ce.reset(),Te&&Te.reset()},Ie}var ie;function ee(){return ie||(ie=h(null,{useWorker:!0,resize:!0})),ie}function X(B,d,U,re,ne,ae,_e){var Ce=new Path2D(B),Ae=new Path2D;Ae.addPath(Ce,new DOMMatrix(d));var Me=new Path2D;return Me.addPath(Ae,new DOMMatrix([Math.cos(_e)*ne,Math.sin(_e)*ne,-Math.sin(_e)*ae,Math.
420cos(_e)*ae,U,re])),Me}function le(B){if(!g)throw new Error("path confetti are not supported in this browser");var d,U;typeof B=="string"?d=B:(d=B.path,U=B.matrix);var re=new Path2D(d),ne=document.createElement("canvas"),ae=ne.getContext("2d");if(!U){for(var _e=1e3,Ce=_e,Ae=_e,Me=0,Fe=0,Te,He,Ie=0;Ie<_e;Ie+=2)for(var x=0;x<_e;x+=2)ae.isPointInPath(re,Ie,x,"nonzero")&&(Ce=Math.min(Ce,Ie),Ae=Math.min(Ae,x),Me=Math.max(Me,Ie),Fe=Math.max(Fe,x));Te=Me-Ce,He=Fe-Ae;var pe=10,ue=Math.min(pe/Te,pe/He);U=[ue,0,0,ue,-Math.round(Te/2+Ce)*ue,-Math.round(He/2+Ae)*ue]}return{type:"path",path:d,matrix:U}}function xe(B){var d,U=1,re="#000000",ne='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof B=="string"?d=B:(d=B.text,U="scalar"in B?B.scalar:U,ne="fontFamily"in B?B.fontFamily:ne,re="color"in B?B.color:re);var ae=10*U,_e=""+ae+"px "+ne,Ce=new OffscreenCanvas(ae,ae),Ae=Ce.getContext("2d");Ae.font=_e;var Me=Ae.measureText(d),Fe=Math.ceil(Me.actualBoundingBoxRight+Me.actualBoundingBoxLeft),Te=Math.ceil(Me.actualBoundingBoxAscent+Me.actualBoundingBoxDescent),He=2,Ie=Me.actualBoundingBoxLeft+He,x=Me.actualBoundingBoxAscent+He;Fe+=He+He,Te+=He+He,Ce=new OffscreenCanvas(Fe,Te),Ae=Ce.getContext("2d"),Ae.font=_e,Ae.fillStyle=re,Ae.fillText(d,Ie,x);var pe=1/U;return{type:"bitmap",bitmap:Ce.transferToImageBitmap(),matrix:[pe,0,0,pe,-Fe*pe/2,-Te*pe/2]}}c.exports=function(){return ee().apply(this,arguments)},c.exports.reset=function(){ee().reset()},c.exports.create=h,c.exports.shapeFromPath=le,c.exports.shapeFromText=xe})((function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}})(),Bu,!1);const oi=Bu.exports;Bu.exports.create;const V1="https://www.helloasso.com/associations/valence-ace",G1="vace-registration-draft",H1=[{id:"all",label:"Toutes"},{id:"jeunes-ffvb",label:"Jeunes FFVB"},{id:"adultes-ffvb",label:"Adultes FFVB"},{id:"ffvb",label:"FFVB"},{id:"loisirs-seniors",label:"Loisirs Seniors"}],P1=(o,f)=>{const c=o.category.toLowerCase(),b=o.id.startsWith("m"),k=c.includes("loisirs")||c.includes("ufolep"),p=c.includes("senior")&&!k;switch(f){case"jeunes-ffvb":return b;case"adultes-ffvb":return p;case"ffvb":return b||p;case"loisirs-seniors":return k;case"all":default:return!0}},$1=({onOpenTrialModal:o,onOpenRegistrationModal:f})=>{const[c,b]=Z.useState("table"),[k,p]=Z.useState("m13"),[g,y]=Z.useState("all"),[N,C]=Z.useState("m13"),[v,m]=Z.useState(!1),[T,w]=Z.useState(!1),[S,j]=Z.useState(!1),[E,A]=Z.useState(!1),[O,F]=Z.useState(!1),[$,Y]=Z.useState(!1),[G,V]=Z.useState(null),K=new Set(["m7","m9","m11","m13","m15","m18"]),te=$r.find(le=>le.id===N)||$r[3],J=K.has(te.id),I=v?te.renewalPrice:te.newPrice,L=$r.filter(le=>P1(le,g));let H=I,h=v?20:0;T&&(H-=50,h+=50),S&&(H-=20,h+=20),E&&(H-=15,h+=15),H=Math.max(0,H),Z.useEffect(()=>{J||(w(!1),j(!1))},[J]),Z.useEffect(()=>{var le;L.some(xe=>xe.id===k)||p(((le=L[0])==null?void 0:le.id)||"")},[k,L]);const ie=()=>{oi({particleCount:55,spread:65,origin:{y:.7}}),F(!0),setTimeout(()=>F(!1),5e3)},ee=[T?"Pass'Sport":null,S?"Pass'Région / Étudiant":null,E?"Reduction fratrie":null].filter(Boolean),X=async()=>{Y(!0),V(null);try{const le=typeof window>"u"?null:JSON.parse(window.localStorage.getItem(G1)||"null"),xe=await fetch("/api/payment/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({amount:H,category:te.category,label:`Cotisation Valence ACE - ${te.category}`,isRenewal:v,discounts:ee,payerName:(le==null?void 0:le.playerName)||"",payerEmail:(le==null?void 0:le.email)||""})}),B=await xe.json();if(!xe.ok||!B.url)throw new Error(B.error||"Paiement Stripe indisponible pour le moment.");window.location.href=B.url}catch(le){V(le instanceof Error?le.message:"Paiement Stripe indisponible pour le moment.")}finally{Y(!1)}};return t.jsx("section",{id:"inscriptions",className:"py-20 bg-white border-b border-slate-200 logo-watermark-section",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-12",children:[t.jsxs("span",{className:"text-xs font-extrabold uppercase tracking-widest text-emerald-800 bg-emerald-100 px-3.5 py-1 rounded-full border border-emerald-200 inline-flex items-center gap-1.5 shadow-sm",children:[t.jsx(Va,{className:"w-3.5 h-3.5 text-emerald-600"}),t.jsx("span",{children:"Saison 2026/2027 • Cotisations Officielles"})]}),t.jsx("h2",{className:"text-3xl sm:text-4xl font-extrabold text-slate-900 mt-3 font-display",children:"Grille Officielle des Tarifs & Inscriptions"}),t.jsxs("p",{className:"text-slate-600 mt-2 text-base",children:["Cotisations officielles par catégorie d'âge avec tarif ",t.jsx("strong",{children:"Nouveau"})," et tarif ",t.jsx("strong",{children:"Renouvellement"}),". Licence fédérale FFVB, assurance et encadrement inclus."]}),t.jsx("div",{className:"flex items-center justify-center gap-2 mt-8",children:t.jsxs("div",{className:"bg-slate-100 p-1 rounded-2xl border border-slate-200 flex items-center gap-1",children:[t.jsxs("button",{onClick:()=>b("table"),className:`px-4 py-2 rounded-xl text-xs sm:text-sm font-bold transition-all flex items-center gap-2 cursor-pointer ${c==="table"?"bg-slate-900 text-white shadow-sm":"text-slate-600 hover:text-slate-900 hover:bg-slate-200/60"}`,children:[t.jsx(Hg,{className:"w-4 h-4"}),t.jsx("span",{children:"Tableau Officiel des Cotisations"})]}),t.jsxs("button",{onClick:()=>b("cards"),className:`px-4 py-2 rounded-xl text-xs sm:text-sm font-bold transition-all flex items-center gap-2 cursor-pointer ${c==="cards"?"bg-slate-900 text-white shadow-sm":"text-slate-600 hover:text-slate-900 hover:bg-slate-200/60"}`,children:[t.jsx(rh,{className:"w-4 h-4"}),t.jsx("span",{children:"Vue par Cartes & Formules"})]})]})})]}),c==="table"?t.jsxs("div",{className:"mb-16 overflow-hidden rounded-3xl border border-slate-300 shadow-xl bg-white",children:[t.jsx("div",{className:"border-b border-slate-200 bg-gradient-to-r from-amber-600 via-orange-600 to-amber-700 px-5 py-4 text-white",children:t.jsxs("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-end lg:justify-between",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-extrabold uppercase tracking-[0.2em]",children:"Cotisations officielles"}),t.jsx("p",{className:"mt-1 text-sm text-amber-50/90",children:"Filtrez les catégories pour réduire la liste, puis dépliez une ligne pour voir les détails et lancer l'inscription."})]}),t.jsx("div",{className:"flex flex-wrap gap-2",children:H1.map(le=>t.jsx("button",{type:"button",onClick:()=>y(le.id),className:`rounded-full border px-3 py-2 text-[11px] font-black uppercase tracking-[0.12em] transition-colors cursor-pointer ${g===le.id?"border-white bg-white text-orange-700 shadow-sm":"border-white/30 bg-white/10 text-white hover:bg-white/20"}`,children:le.label},le.id))})]})}),t.jsx("div",{className:"divide-y divide-slate-200",children:L.map(le=>
420{const xe=k===le.id;return t.jsxs("div",{className:`${xe?"bg-amber-50/40":"bg-white"} transition-colors`,children:[t.jsxs("button",{type:"button",onClick:()=>p(B=>B===le.id?"":le.id),className:"flex w-full items-center justify-between gap-4 px-4 py-4 text-left transition-colors hover:bg-amber-50/60 sm:px-6",children:[t.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[t.jsx("span",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-slate-900 text-xs font-black text-amber-400",children:le.category.split(" ")[0]}),t.jsxs("div",{className:"min-w-0",children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t.jsx("span",{className:"truncate text-sm font-extrabold text-slate-900 sm:text-base",children:le.category}),t.jsx("span",{className:"rounded-full border border-slate-200 bg-slate-100 px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.12em] text-slate-600",children:le.birthYear}),le.popular&&t.jsx("span",{className:"rounded-full bg-amber-400 px-2.5 py-1 text-[10px] font-black uppercase tracking-[0.12em] text-slate-950",children:"Prioritaire"})]}),t.jsx("p",{className:"mt-1 line-clamp-2 text-xs text-slate-500 sm:text-sm",children:le.description})]})]}),t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[t.jsxs("div",{className:"text-right",children:[t.jsx("p",{className:"text-xs font-semibold text-slate-500",children:"Dès"}),t.jsxs("p",{className:"text-lg font-black text-slate-900 font-display",children:[le.renewalPrice," €"]})]}),t.jsx("span",{className:`flex h-10 w-10 items-center justify-center rounded-full border border-slate-200 bg-white text-slate-600 transition-transform ${xe?"rotate-180":""}`,children:t.jsx(Ut,{className:"h-5 w-5"})})]})]}),xe&&t.jsx("div",{className:"border-t border-slate-200 px-4 pb-5 pt-4 sm:px-6",children:t.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-[minmax(0,1fr)_260px]",children:[t.jsxs("div",{children:[t.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[t.jsxs("div",{className:"rounded-2xl border border-slate-200 bg-white p-4",children:[t.jsxs("div",{className:"flex items-center gap-2 text-sm font-bold text-blue-700",children:[t.jsx(Nx,{className:"h-4 w-4"}),"Nouveau"]}),t.jsxs("p",{className:"mt-2 text-2xl font-black text-slate-900 font-display",children:[le.newPrice," €"]})]}),t.jsxs("div",{className:"rounded-2xl border border-emerald-200 bg-emerald-50 p-4",children:[t.jsxs("div",{className:"flex items-center gap-2 text-sm font-bold text-emerald-700",children:[t.jsx(ri,{className:"h-4 w-4"}),"Renouvellement"]}),t.jsxs("p",{className:"mt-2 text-2xl font-black text-emerald-800 font-display",children:[le.renewalPrice," €"]}),t.jsx("p",{className:"mt-1 text-[11px] font-semibold uppercase tracking-[0.12em] text-emerald-600",children:"Réduction fidélité incluse"})]})]}),t.jsx("ul",{className:"mt-4 grid grid-cols-1 gap-2 sm:grid-cols-2",children:le.features.map((B,d)=>t.jsxs("li",{className:"flex items-start gap-2 rounded-xl border border-slate-200 bg-white px-3 py-2 text-xs text-slate-700",children:[t.jsx(Yr,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-emerald-600"}),t.jsx("span",{children:B})]},`${le.id}-${d}`))})]}),t.jsxs("div",{className:"flex flex-col justify-between rounded-[1.75rem] border border-slate-200 bg-slate-900 p-5 text-white",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-extrabold uppercase tracking-[0.18em] text-amber-300",children:"Essai & inscription"}),t.jsx("p",{className:"mt-2 text-sm text-slate-300",children:"Sélectionne cette catégorie pour réserver les 2 séances d'essai gratuites."})]}),t.jsxs("div",{className:"mt-4 space-y-3",children:[t.jsx("button",{onClick:()=>{C(le.id),o(le.category)},className:"w-full rounded-2xl bg-amber-400 px-4 py-3 text-sm font-black text-slate-950 transition-colors hover:bg-amber-300 cursor-pointer",children:"Réserver un essai"}),t.jsx("button",{type:"button",onClick:()=>C(le.id),className:"w-full rounded-2xl border border-slate-700 px-4 py-3 text-sm font-bold text-slate-200 transition-colors hover:bg-slate-800 cursor-pointer",children:"Utiliser dans le simulateur"})]})]})]})})]},le.id)})}),t.jsxs("div",{className:"p-4 bg-slate-900 text-slate-300 text-xs flex flex-wrap items-center justify-between gap-3",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ca,{className:"w-4 h-4 text-amber-400"}),t.jsxs("span",{children:[t.jsx("strong",{children:"Tarif Renouvellement :"})," 20 € de réduction pour les licenciés renouvelant leur adhésion au club."]})]}),t.jsx("div",{className:"text-slate-400",children:"Échelonnement en 3 fois sans frais & aides acceptées (Pass'Sport, ANCV)"})]})]}):t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-16",children:$r.map(le=>t.jsxs("div",{className:`rounded-3xl p-6 border flex flex-col justify-between transition-all ${le.popular?"bg-slate-900 text-white border-amber-400 shadow-xl ring-2 ring-amber-400/30":"bg-slate-50 text-slate-900 border-slate-200 hover:border-amber-300"}`,children:[t.jsxs("div",{children:[t.jsxs("div",{className:"flex items-center justify-between gap-2 mb-2",children:[t.jsx("span",{className:`text-[10px] font-extrabold uppercase tracking-wider px-2.5 py-0.5 rounded-full ${le.popular?"bg-amber-400 text-slate-950":"bg-blue-100 text-blue-900"}`,children:le.birthYear}),le.popular&&t.jsx("span",{className:"text-[10px] bg-amber-400/20 text-amber-300 border border-amber-400/30 px-2 py-0.5 rounded-full font-bold",children:"RECRUTEMENT PRIORITAIRE"})]}),t.jsx("h3",{className:`text-lg font-extrabold font-display ${le.popular?"text-white":"text-slate-900"}`,children:le.category}),t.jsx("p",{className:`text-xs mt-1 line-clamp-2 ${le.popular?"text-slate-300":"text-slate-500"}`,children:le.description}),t.jsxs("div",{className:"my-5 p-3.5 rounded-2xl bg-white/10 backdrop-blur-xs border border-white/10 space-y-1.5",children:[t.jsxs("div",{className:"flex items-center justify-between text-xs",children:[t.jsx("span",{className:le.popular?"text-slate-300":"text-slate-600",children:"Nouveau :"}),t.jsxs("strong",{className:`text-lg font-extrabold font-display ${le.popular?"text-white":"text-slate-900"}`,children:[le.newPrice," €"]})]}),t.jsxs("div",{className:"flex items-center justify-between text-xs pt-1.5 border-t border-slate-200/20",children:[t.jsx("span",{className:le.popular?"text-emerald-300":"text-emerald-700",children:"Renouvellement :"}),t.jsxs("strong",{className:"text-lg font-extrabold font-display text-emerald-400",children:[le.renewalPrice," €"]})]})]}),t.jsx("ul",{className:"space-y-2 text-xs",children:le.features.map((xe,B)=>t.jsxs("li",{className:"flex items-start gap-2",children:[t.jsx(Yr,{className:`w-3.5 h-3.5 mt-0.5 shrink-0 ${le.popular?"text-amber-400":"text-emerald-600"}`}),t.jsx("span",{className:le.popular?"text-slate-200":"text-slate-700",children:xe})]},B))})]}),t.jsx("div",{className:"mt-6 pt-4 border-t border-slate-200/20",children:t.jsx("button",{onClick:()=>{C(le.id),o(le.category)},className:`w-full py-2.5 rounded-xl text-xs font-bold transition-all cursor-pointer ${le.popular?"bg-amber-400 hover:bg-amber-300 text-slate-950 shadow-md":"bg-white hover:bg-slate-100 text-slate-900 border border-slate-300"}`,children:"Choisir cette formule"})})]},le.id))}),t.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-8 items-start mb-16",children:[t.jsxs("div",{className:"lg:col-span-6 rounded-3xl bg-gradient-to-br from-slate-900 via-slate-900 to-slate-950 p-6 sm:p-8 text-white border border-slate-800 shadow-2xl",children:[t.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[t.jsx("div",{className:"p-2.5 rounded-xl bg-amber-400/20 text-amber-400 border border-amber-400/30",children:t.jsx(Cb,{className:"w-5 h-5"})}),t.jsxs("div",{children:[t.jsx("h3",{className:"text-xl font-bold font-display text-white",children:"Simulateur de C
420otisation & Aides"}),t.jsx("p",{className:"text-xs text-slate-400",children:"Calculez précisément votre cotisation nette pour la saison 2026/2027"})]})]}),t.jsxs("div",{className:"space-y-4 text-sm",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-xs font-bold uppercase tracking-wider text-slate-400 mb-2",children:"1. Sélectionnez votre catégorie d'âge :"}),t.jsx("select",{value:N,onChange:le=>C(le.target.value),className:"w-full bg-slate-800 border border-slate-700 rounded-xl px-3.5 py-3 text-white text-sm focus:outline-none focus:border-amber-400",children:$r.map(le=>t.jsxs("option",{value:le.id,children:[le.category," (",le.birthYear,") — Nouveau : ",le.newPrice,"€ / Renouv. : ",le.renewalPrice,"€"]},le.id))})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-xs font-bold uppercase tracking-wider text-slate-400 mb-2",children:"2. Êtes-vous un nouvel adhérent ou un renouvellement ?"}),t.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[t.jsxs("button",{type:"button",onClick:()=>m(!1),className:`py-2.5 px-3 rounded-xl text-xs font-bold transition-all border flex items-center justify-center gap-1.5 cursor-pointer ${v?"bg-slate-800 text-slate-300 border-slate-700 hover:bg-slate-700":"bg-amber-400 text-slate-950 border-amber-400 shadow-md"}`,children:[t.jsx(Nx,{className:"w-3.5 h-3.5"}),t.jsxs("span",{children:["Nouveau (",te.newPrice," €)"]})]}),t.jsxs("button",{type:"button",onClick:()=>m(!0),className:`py-2.5 px-3 rounded-xl text-xs font-bold transition-all border flex items-center justify-center gap-1.5 cursor-pointer ${v?"bg-emerald-500 text-slate-950 border-emerald-500 shadow-md":"bg-slate-800 text-slate-300 border-slate-700 hover:bg-slate-700"}`,children:[t.jsx(ri,{className:"w-3.5 h-3.5"}),t.jsxs("span",{children:["Renouvellement (",te.renewalPrice," €)"]})]})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-xs font-bold uppercase tracking-wider text-slate-400 mb-2",children:"3. Cochez vos aides & réductions cumulables :"}),t.jsxs("div",{className:"space-y-2.5",children:[t.jsxs("label",{className:"flex items-center justify-between p-3 rounded-xl bg-slate-800/60 border border-slate-700 cursor-pointer hover:bg-slate-800 transition-colors",children:[t.jsxs("div",{className:"flex items-center gap-2.5",children:[t.jsx("input",{type:"checkbox",checked:T,onChange:le=>w(le.target.checked),disabled:!J,className:"w-4 h-4 rounded text-amber-400 focus:ring-amber-400 bg-slate-900 border-slate-700"}),t.jsx("span",{className:`text-xs sm:text-sm font-semibold ${J?"":"text-slate-500"}`,children:"Pass'Sport de l'État (jeunes 6-17 ans éligibles)"})]}),t.jsx("span",{className:"text-xs font-extrabold text-emerald-400 bg-emerald-400/10 px-2 py-0.5 rounded border border-emerald-400/20",children:"-50 €"})]}),t.jsxs("label",{className:"flex items-center justify-between p-3 rounded-xl bg-slate-800/60 border border-slate-700 cursor-pointer hover:bg-slate-800 transition-colors",children:[t.jsxs("div",{className:"flex items-center gap-2.5",children:[t.jsx("input",{type:"checkbox",checked:S,onChange:le=>j(le.target.checked),disabled:!J,className:"w-4 h-4 rounded text-amber-400 focus:ring-amber-400 bg-slate-900 border-slate-700"}),t.jsx("span",{className:`text-xs sm:text-sm font-semibold ${J?"":"text-slate-500"}`,children:"Pass'Région / Carte Collégien / Étudiant"})]}),t.jsx("span",{className:"text-xs font-extrabold text-emerald-400 bg-emerald-400/10 px-2 py-0.5 rounded border border-emerald-400/20",children:"-20 €"})]}),!J&&t.jsx("div",{className:"rounded-xl border border-amber-500/20 bg-amber-400/10 px-3 py-2 text-xs font-medium text-amber-200",children:"Les aides Pass'Sport et Pass'Région ne s'appliquent pas aux categories au-dessus de M18."}),t.jsxs("label",{className:"flex items-center justify-between p-3 rounded-xl bg-slate-800/60 border border-slate-700 cursor-pointer hover:bg-slate-800 transition-colors",children:[t.jsxs("div",{className:"flex items-center gap-2.5",children:[t.jsx("input",{type:"checkbox",checked:E,onChange:le=>A(le.target.checked),className:"w-4 h-4 rounded text-amber-400 focus:ring-amber-400 bg-slate-900 border-slate-700"}),t.jsx("span",{className:"text-xs sm:text-sm font-semibold",children:"Réduction Fratrie (2ème membre de la famille et +)"})]}),t.jsx("span",{className:"text-xs font-extrabold text-emerald-400 bg-emerald-400/10 px-2 py-0.5 rounded border border-emerald-400/20",children:"-15 €"})]})]})]}),t.jsxs("div",{className:"p-4 rounded-2xl bg-slate-950 border border-slate-800 mt-6 flex items-center justify-between",children:[t.jsxs("div",{children:[t.jsx("span",{className:"text-xs text-slate-400 block",children:"Total net annuel :"}),h>0&&t.jsxs("span",{className:"text-xs text-emerald-400 font-bold",children:["Vous économisez ",h," € sur l'année"]})]}),t.jsxs("div",{className:"text-right",children:[t.jsxs("span",{className:"text-3xl sm:text-4xl font-black text-amber-400 font-display",children:[H," €"]}),t.jsxs("span",{className:"text-xs text-slate-400 block",children:["ou 3 chèques de ",(H/3).toFixed(0)," €"]})]})]}),t.jsxs("button",{type:"button",onClick:ie,className:"w-full py-3.5 rounded-xl bg-gradient-to-r from-amber-400 to-amber-500 hover:from-amber-300 hover:to-amber-400 text-slate-950 font-extrabold text-sm transition-all shadow-lg shadow-amber-500/20 flex items-center justify-center gap-2 cursor-pointer",children:[t.jsx(Ka,{className:"w-4 h-4"}),t.jsx("span",{children:"Valider le tarif & Réserver 2 séances d'essai"})]}),O&&t.jsxs("div",{className:"p-3 rounded-xl bg-emerald-500/20 border border-emerald-500/30 text-emerald-300 text-xs text-center font-medium",children:["🎉 Estimation validée ! Venez tester 2 séances gratuites aux créneaux de ",te.category,"."]})]})]}),t.jsxs("div",{className:"lg:col-span-6 space-y-6",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"text-xl font-bold font-display text-slate-900",children:"Comment s'inscrire en 4 étapes simples :"}),t.jsx("p",{className:"text-sm text-slate-600 mt-1",children:"Un parcours fluide et 100% accompagné par les bénévoles et entraîneurs."})]}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"flex items-start gap-4 p-4 rounded-2xl bg-slate-50 border border-slate-200",children:[t.jsx("div",{className:"w-8 h-8 rounded-xl bg-amber-500 text-slate-950 font-black flex items-center justify-center shrink-0 text-sm shadow",children:"1"}),t.jsxs("div",{children:[t.jsx("h4",{className:"font-bold text-slate-900 text-sm",children:"Faites vos 2 séances d'essai gratuites"}),t.jsx("p",{className:"text-xs text-slate-600 mt-0.5",children:"Venez directement en salle lors des créneaux de votre catégorie avec une tenue de sport, des baskets propres pour la salle et une gourde."})]})]}),t.jsxs("div",{className:"flex items-start gap-4 p-4 rounded-2xl bg-slate-50 border border-slate-200",children:[t.jsx("div",{className:"w-8 h-8 rounded-xl bg-blue-700 text-white font-black flex items-center justify-center shrink-0 text-sm shadow",children:"2"}),t.jsxs("div",{children:[t.jsx("h4",{className:"font-bold text-slate-900 text-sm",children:"Créez votre espace MyFFvolley pour les inscriptions FFVB. Utilisez le formulaire en ligne pour Ufolep."}),t.jsx("p",{className:"text-xs text-slate-600 mt-0.5",children:"Jeunes et séniors FFVB cliquer sur MyFFVolley. Le dossier Ufolep peut être rempli via le formulaire, le renouvellement est à faire dans votre espace Ufolep LigueAsso."}),t.jsxs("div",{className:"mt-3 grid gap-3.5 md:grid-cols-3",children:[t.jsx("a",{href:"https://my.ffvolley.org/",target:"_blank",rel:"noreferrer",className:"inline-flex w-full items-center justify-center rounded-xl bg-blue-700 px-3.5 py-2 text-xs font-extrabold text-white transition-colors hover:bg-blue-800",children:"MyFFVolley"}),t.jsx("a",{href:"http://www.liguasso.org/",target:"_blank",rel:"noreferrer",className:"inline-flex w-full items-center justify-center rounded-xl border border-sky-200 bg-sky-50 px-3.5 py-2 text-xs font-extrabold text-sky-900 transition-colors hover:bg-sky-100",children:"LigueAsso"}),t.jsx("button",{type:"button",onClick:f,className:"inline-flex w-full items-center justify-center rounded-xl bg-slate-900 px-3.5 py-2 text-xs font-extrabold text-white transition-colors hover:bg-slate-800 cursor-pointer",children:"Ouvrir le formulaire d'adhésion"})]}),t.jsx("a",{href:"https://my.ffvolley.org/tutos/",target:"_blank",rel:"noreferrer",className:"mt-2 inline-flex items-center text-xs font-bold text-blue-700 transition-colors hover:text-blue-900 hover:underline",children:"Voir le tuto MyFFVolley"})]})]}),t.jsxs("div",{className:"flex items-start gap-4 p-4 rounded-2xl bg-slate-50 border border-slate-200",children:[t.jsx("div",{className:"w-8 h-8 rounded-xl bg-blue-700 text-white font-black flex items-center justify-center shrink-0 text-sm shadow",children:"3"}),t.jsxs("div",{children:[t.jsx("h4",{className:"font-bold text-slate-900 text-sm",children:"Fournissez les pièces justificatives"}),t.jsx("p",{className:"text-xs text-slate-600 mt-0.5",children:"Questionnaire de santé QS-Sport (ou certificat médical de non contre-indication), pièce d'identité et photo d'identité."})]})]}),t.jsxs("div",{className:"flex items-start gap-4 p-4 rounded-2xl bg-slate-50 border border-slate-200",children:[t.jsx("div",{className:"w-8 h-8 rounded-xl bg-emerald-600 text-white font-black flex items-center justify-center shrink-0 text-sm shadow",children:"4"}),t.jsxs("div",{children:[t.jsx("h4",{className:"font-bold text-slate-900 text-sm",children:"Réglez votre cotisation"}),t.jsx("p",{className:"text-xs text-slate-600 mt-0.5",children:"Par Stripe (Paiement Stripe en ligne indisponible) pour un paiement carte immédiat, via HelloAsso, ou toujours par chèques, virement, espèces, Chèques Vacances ANCV ou Pass'Sport."}),t.jsxs("div",{className:"mt-3 flex flex-wrap gap-2",children:[t.jsxs("button",{type:"button",onClick:()=>void X(),disabled:$||H<=0,className:"inline-flex items-center rounded-xl bg-slate-900 px-3.5 py-2 text-xs font-extrabold text-white transition-colors hover:bg-slate-800 disabled:cursor-not-allowed disabled:bg-slate-300 disabled:text-slate-500",children:[t.jsx(Eu,{className:"mr-2 h-4 w-4"}),$?"Ouverture de Stripe...":`Payer ${H} € avec Stripe`]}),t.jsxs("a",{href:V1,target:"_blank",rel:"noreferrer",className:"inline-flex items-center rounded-xl border border-emerald-200 bg-emerald-50 px-3.5 py-2 text-xs font-extrabold text-emerald-900 transition-colors hover:bg-emerald-100",children:[t.jsx(Ru,{className:"mr-2 h-4 w-4"}),"Aller sur HelloAsso"]})]}),G&&t.jsx("p",{className:"mt-2 text-xs font-semibold text-rose-600",children:G})]})]})]}),t.jsxs("div",{className:"p-4 rounded-2xl bg-blue-50 border border-blue-200 flex items-center gap-3 text-xs text-blue-900 font-medium",children:[t.jsx(Eu,{className:"w-5 h-5 text-blue-700 shrink-0"}),t.jsxs("span",{children:[t.jsx("strong",{children:"Moyens de paiement acceptés :"})," Stripe par carte bancaire, HelloAsso, virement bancaire, chèques (1 à 3 fois sans frais encaissés au fil des mois), espèces, Chèques Vacances ANCV, Pass'Sport de l'État."]})]})]})]})]})})},To=({imageUrl:o,fallbackLabel:f,alt:c,className:b,imageClassName:k})=>o?t.jsx("div",{className:b,children:t.jsx("img",{src:o,alt:c,className:k||"h-full w-full object-contain drop-shadow-[0_4px_12px_rgba(15,23,42,0.28)]"})}):t.jsx("div",{className:b,children:f}),Lx=(o,f)=>Gs(We.matchClubLogo(),f||qe.logoUrl),Ox=(o,f,c)=>U1(o,f,void 0,c),I1=o=>{if(!o)return null;const[f,c]=o.split("("),b=f.trim(),k=b.split("-").map(p=>p.trim());
420return k.length!==2?{awaySets:null,setDetails:[]}:{summary:b,homeSets:k[0],awaySets:k[1],setDetails:c?c.replace(")","").split(",").map(p=>p.trim()).filter(Boolean):[]}},Ux=o=>o==="upcoming"?"À venir":o==="live"?"En direct":"Terminé",zx=o=>o==="upcoming"?"bg-amber-400/15 text-amber-300 border-amber-300/30":o==="live"?"bg-rose-500/15 text-rose-300 border-rose-300/30":"bg-emerald-500/15 text-emerald-300 border-emerald-300/30",Z1=o=>o==="live"?"before:bg-[radial-gradient(circle_at_top_right,rgba(244,63,94,0.22),transparent_30%),radial-gradient(circle_at_bottom_left,rgba(249,115,22,0.16),transparent_35%)]":o==="upcoming"?"before:bg-[radial-gradient(circle_at_top_right,rgba(251,191,36,0.18),transparent_28%),radial-gradient(circle_at_bottom_left,rgba(37,99,235,0.14),transparent_34%)]":"before:bg-[radial-gradient(circle_at_top_right,rgba(16,185,129,0.12),transparent_28%),radial-gradient(circle_at_bottom_left,rgba(37,99,235,0.12),transparent_34%)]",Y1=o=>o==="live"?"hover:border-rose-400/55":o==="upcoming"?"hover:border-amber-400/45":"hover:border-emerald-400/45",J1=o=>{const f=o.find(k=>k.status==="live");if(f)return f;const c=o.find(k=>k.status==="upcoming"&&k.isHome);if(c)return c;const b=o.find(k=>k.status==="upcoming");return b||o[0]},Wn={lundi:{label:"Lundi",hint:"Soirée loisirs UFOLEP"},mercredi:{label:"Mercredi",hint:"Rencontres loisirs UFOLEP"},samedi:{label:"Samedi",hint:"Championnats FFVB du week-end"}},Rx=o=>{if(o==="prenat"||o==="prereg")return"samedi";if(!o.startsWith("ufolep-"))return null;const f=Number(o.replace("ufolep-",""));return Number.isNaN(f)?"mercredi":f%2===1?"lundi":"mercredi"},X1=o=>o==="samedi"?"border-amber-300/30 bg-amber-400/10 text-amber-200":o==="mercredi"?"border-blue-300/30 bg-blue-500/10 text-blue-200":"border-emerald-300/30 bg-emerald-500/10 text-emerald-200",Q1=o=>o?"border-emerald-300/40 bg-emerald-500/14 text-emerald-100 shadow-[0_0_0_1px_rgba(74,222,128,0.14)]":"border-rose-300/50 bg-gradient-to-r from-rose-500/20 to-orange-500/16 text-rose-50 shadow-[0_0_0_1px_rgba(251,113,133,0.18),0_0_18px_rgba(251,113,133,0.16)]",K1=o=>o?"border-emerald-300/40 bg-emerald-500/14 text-emerald-100 shadow-[0_0_0_1px_rgba(74,222,128,0.14)]":"border-rose-300/50 bg-gradient-to-r from-rose-500/20 to-orange-500/16 text-rose-50 shadow-[0_0_0_1px_rgba(251,113,133,0.18),0_0_18px_rgba(251,113,133,0.16)]",vu=o=>{const f=new Date(o);return Number.isNaN(f.getTime())?o:new Intl.DateTimeFormat("fr-FR").format(f)},yu=[{id:"all",label:"Tous les collectifs"},{id:"seniors",label:"Séniors",squadIds:["prenat","prereg"]},{id:"jeunes",label:"Jeunes",squadIds:["m9","m11","m13","m15","m18"]},{id:"ufolep",label:"UFOLEP",squadIds:["ufolep-1","ufolep-2","ufolep-3","ufolep-4","ufolep-5","ufolep-6"]}],W1=()=>{var Y;const{content:o}=ii(),f=o.matches,[c,b]=Z.useState("all"),[k,p]=Z.useState("all"),[g,y]=Z.useState("all"),[N,C]=Z.useState(null),v=Nl.filter(G=>f.some(V=>V.squadId===G.id)),m=yu.find(G=>G.id===k)??yu[0],T=m.squadIds?v.filter(G=>{var V;return(V=m.squadIds)==null?void 0:V.includes(G.id)}):v,w=f.filter(G=>{var J;const V=k==="all"?!0:((J=m.squadIds)==null?void 0:J.includes(G.squadId))??!1;if(c==="weekly"){const I=g==="all"?!0:G.squadId===g;return V&&I}const K=c==="all"?!0:G.status===c,te=g==="all"?!0:G.squadId===g;return K&&V&&te}),S=Z.useMemo(()=>{const G=f.filter(K=>{var I;const te=k==="all"?!0:((I=m.squadIds)==null?void 0:I.includes(K.squadId))??!1,J=g==="all"||K.squadId===g;return te&&J}),V=new Map;return G.forEach(K=>{const te=Rx(K.squadId);te&&(V.has(K.squadId)||V.set(K.squadId,{dayId:te,dayLabel:Wn[te].label,dayHint:Wn[te].hint,match:K}))}),Array.from(V.values()).sort((K,te)=>{const J=["lundi","mercredi","samedi"],I=J.indexOf(K.dayId)-J.indexOf(te.dayId);return I!==0?I:K.match.team.localeCompare(te.match.team,"fr")})},[m.squadIds,f,k,g]),j=Z.useMemo(()=>S.reduce((G,V)=>(G[V.dayId].push(V),G),{lundi:[],mercredi:[],samedi:[]}),[S]),E=J1(w.length>0?w:f),A=o.standings&&o.standings.length>0?o.standings:Io,O=g==="all"?null:A.find(G=>G.squadId===g)??null,F=g==="all"?null:((Y=v.find(G=>G.id===g))==null?void 0:Y.label)??null;if(!E)return null;const $=G=>{C(G),oi({particleCount:40,spread:50,origin:{y:.8}}),setTimeout(()=>C(null),2500)};return t.jsx("section",{id:"matchs",className:"py-20 bg-[radial-gradient(circle_at_top,_rgba(37,99,235,0.16),_transparent_32%),linear-gradient(180deg,#0b1220_0%,#0f172a_45%,#111827_100%)] text-white overflow-hidden",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs("div",{className:"flex flex-col md:flex-row md:items-end justify-between mb-12 gap-4",children:[t.jsxs("div",{children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-amber-500/10 text-amber-300 border border-amber-500/20 text-xs font-bold mb-3 shadow-[0_0_24px_rgba(251,191,36,0.12)]",children:[t.jsx(Zr,{className:"w-3.5 h-3.5"}),"Compétitions FFVB & UFOLEP"]}),t.jsx("h2",{className:"text-3xl sm:text-4xl font-extrabold text-white font-display",children:"Les Matchs du club & Résultats"}),t.jsxs("p",{className:"text-slate-300 text-base mt-2 max-w-2xl leading-relaxed",children:["Suivez le calendrier de nos équipes en championnat Pré-National, Prérégional, Départemental, Loisirs et Coupe de France. Venez encourager nos joueurs au ",t.jsx("strong",{children:"Gymnase Alain Zammit"})," ou au ",t.jsx("strong",{children:"Gymnase Denis Maurin"})," !"]})]}),t.jsxs("div",{className:"flex items-center gap-2 bg-slate-950/80 backdrop-blur-sm p-1.5 rounded-2xl border border-slate-700 self-start md:self-auto shadow-xl",children:[t.jsx("button",{onClick:()=>b("all"),className:`px-3 py-1.5 rounded-lg text-xs font-bold transition-all ${c==="all"?"bg-amber-400 text-slate-950 shadow-md":"text-slate-400 hover:text-white"}`,children:"Tous"}),t.jsx("button",{onClick:()=>b("upcoming"),className:`px-3 py-1.5 rounded-lg text-xs font-bold transition-all ${c==="upcoming"?"bg-amber-400 text-slate-950 shadow-md":"text-slate-400 hover:text-white"}`,children:"À Venir"}),t.jsx("button",{onClick:()=>b("finished"),className:`px-3 py-1.5 rounded-lg text-xs font-bold transition-all ${c==="finished"?"bg-amber-400 text-slate-950 shadow-md":"text-slate-400 hover:text-white"}`,children:"Derniers Résultats"}),t.jsx("button",{onClick:()=>b("weekly"),className:`px-3 py-1.5 rounded-lg text-xs font-bold transition-all ${c==="weekly"?"bg-amber-400 text-slate-950 shadow-md":"text-slate-400 hover:text-white"}`,children:"Vue Hebdo"})]})]}),t.jsxs("div",{className:"mb-8 flex flex-col gap-3",children:[t.jsxs("div",{className:"flex items-center gap-2 text-xs font-black uppercase tracking-[0.22em] text-slate-400",children:[t.jsx(Kb,{className:"h-3.5 w-3.5 text-amber-300"}),"Filtrer par collectif"]}),t.jsx("div",{className:"flex flex-wrap gap-2",children:yu.map(G=>t.jsx("button",{onClick:()=>{p(G.id),y("all")},className:`rounded-full border px-4 py-2 text-xs font-bold transition-all ${k===G.id?"border-amber-300 bg-amber-400 text-slate-950 shadow-lg shadow-amber-500/20":"border-slate-700 bg-slate-950/70 text-slate-300 hover:border-amber-300/40 hover:text-white"}`,children:G.label},G.id))}),k!=="all"&&T.length>0&&t.jsxs("div",{className:"flex flex-wrap gap-2",children:[t.jsxs("button",{onClick:()=>y("all"),className:`rounded-full border px-4 py-2 text-xs font-bold transition-all ${g==="all"?"border-amber-300 bg-amber-400 text-slate-950 shadow-lg shadow-amber-500/20":"border-slate-700 bg-slate-950/70 text-slate-300 hover:border-amber-300/40 hover:text-white"}`,children:["Tout ",k==="ufolep"?"UFOLEP":`le groupe ${m.label}`]}),T.map(G=>t.jsx("button",{onClick:()=>y(G.id),className:`rounded-full border px-4 py-2 text-xs font-bold transition-all ${g===G.id?"border-blue-300 bg-blue-300 text-slate-950 shadow-lg shadow-blue-500/20":"border-slate-700 bg-slate-950/70 text-slate-300 hover:border-blue-300/40 hover:text-white"}`,children:G.label},G.id))]})]}),c==="weekly"?t.jsxs("div",{className:"mb-8 overflow-hidden rounded-[32px] border border-blue-400/20 bg-[linear-gradient(135deg,rgba(30,64,175,0.18)_0%,rgba(15,23,42,0.96)_48%,rgba(251,191,36,0.12)_100%)] p-6 shadow-[0_24px_70px_rgba(15,23,42,0.45)]",children:[t.jsxs("div",{className:"flex flex-col gap-3 md:flex-row md:items-end md:justify-between",children:[t.jsxs("div",{children:[t.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-blue-400/20 bg-blue-500/10 px-3 py-1 text-[11px] font-black uppercase tracking-[0.22em] text-blue-200",children:[t.jsx(Ft,{className:"h-3.5 w-3.5"}),"Calendrier hebdomadaire"]}),t.jsx("h3",{className:"mt-3 text-2xl font-black text-white font-display sm:text-3xl",children:"La semaine type des matchs du club"}),t.jsx("p",{className:"mt-2 max-w-3xl text-sm text-slate-300",children:"Repère rapide des rendez-vous mockés de la semaine: loisirs UFOLEP en début de semaine, Pré-Reg et Pré-Nat le samedi, avec un statut distinct pour les matchs à domicile et à l'extérieur."})]}),t.jsxs("div",{className:"rounded-2xl border border-white/10 bg-slate-950/40 px-4 py-3 text-sm text-slate-300",children:[t.jsx("p",{className:"text-[10px] font-black uppercase tracking-[0.22em] text-slate-400",children:"Lecture"}),t.jsxs("div",{className:"mt-2 flex flex-wrap gap-2",children:[t.jsx("span",{className:"inline-flex rounded-full border border-emerald-300/30 bg-emerald-500/12 px-3 py-1 text-xs font-bold text-emerald-200",children:"À domicile"}),t.jsx("span",{className:"inline-flex rounded-full border border-rose-300/30 bg-rose-500/12 px-3 py-1 text-xs font-bold text-rose-200",children:"À l'extérieur"})]})]})]}),t.jsx("div",{className:"mt-6 grid grid-cols-1 gap-4 xl:grid-cols-3",children:["lundi","mercredi","samedi"].map(G=>{const V=j[G];return t.jsxs("div",{className:"rounded-[28px] border border-white/8 bg-slate-950/40 p-4 shadow-[0_18px_40px_rgba(2,6,23,0.28)]",children:[t.jsxs("div",{className:"flex items-start justify-between gap-3",children:[t.jsxs("div",{children:[t.jsx("span",{className:`inline-flex rounded-full border px-3 py-1 text-[11px] font-black uppercase tracking-[0.2em] ${X1(G)}`,children:Wn[G].label}),t.jsx("p",{className:"mt-2 text-lg font-black text-white font-display",children:Wn[G].hint})]}),t.jsxs("div",{className:"rounded-2xl border border-slate-700 bg-slate-950/70 px-3 py-2 text-right",children:[t.jsx("p",{className:"text-[10px] font-black uppercase tracking-[0.18em] text-slate-500",children:"Affiche(s)"}),t.jsx("p",{className:"mt-1 text-2xl font-black text-white font-display",children:V.length})]})]}),V.length===0?t.jsx("div",{className:"mt-4 rounded-2xl border border-dashed border-slate-700 bg-slate-950/35 px-4 py-5 text-sm text-slate-400",children:"Aucun match mocké sur ce créneau pour le filtre actif."}):t.jsx("div",{className:"mt-4 space-y-3",children:V.map(({match:K})=>t.jsxs("div",{className:"rounded-[24px] border border-slate-700/80 bg-[linear-gradient(180deg,rgba(30,41,59,0.92)_0%,rgba(15,23,42,0.98)_100%)] p-4",children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t.jsx("span",{className:"inline-flex rounded-full border border-blue-400/20 bg-blue-500/15 px-2.5 py-1 text-[10px] font-extrabold uppercase tracking-[0.03em] text-blue-200",children:K.competition}),t.jsx("span",{className:`inline-flex rounded-full border px-2.5 py-1 text-[10px] font-black uppercase tracking-[0.16em] ${Q1(K.isHome)}`,children:K.isHome?"Domicile":"Extérieur"})]}),t.jsxs("div",{className:"mt-4 flex items-start justify-between gap-3",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-lg font-black text-white font-display",children:K.team}),t.jsxs("p",{className:"mt-1 text-sm font-bold text-amber-200",children:["contre ",K.opponent]})]}),t.jsxs("div",{className:"rounded-2xl border border-slate-700 bg-slate-950/60 px-3 py-2 text-right",children:[t.jsx("p",{className:"text-[10px] font-black uppercase tracking-[0.18em] text-slate-500",children:"Horaire"}),t.jsx("p",{className:"mt-1 text-lg font-black text-white font-display",children:K.time})]})]}),t.jsxs("div",{className:"mt-4 grid grid-cols-1 gap-2 rounded-[20px] border border-slate-700/70 bg-slate-950/35 p-4 text-sm text-slate-300",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(sh,{className:"h-4 w-4 text-blue-300"}),t.jsxs("span",{children:["Rendez-vous hebdo mocké du ",t.jsx("strong",{className:"text-white",children:Wn[Rx(K.squadId)].label})]})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Bt,{className:"h-4 w-4 text-amber-300"}),t.jsx("span",{className:"truncate",children:K.location})]})]})]},`weekly-${K.id}`))})]},G)})})]}):t.jsxs("div",{className:"relative mb-8 overflow-hidden rounded-[32px] border border-amber-300/20 bg-[linear-gradient(135deg,rgba(251,191,36,0.18)_0%,rgba(30,64,175,0.22)_38%,rgba(15,23,42,0.98)_100%)] p-6 shadow-[0_24px_70px_rgba(15,23,42,0.45)] match-card-enter",children:[t.jsx("div",{className:"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_top_left,rgba(255,255,255,0.12),transparent_28%),radial-gradient(circle_at_bottom_right,rgba(251,191,36,0.18),transparent_30%)]"}),t.jsxs("div",{className:"relative grid grid-cols-1 gap-6 lg:grid-cols-[1.1fr_0.9fr] lg:items-center",children:[t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t.jsx("span",{className:"inline-flex rounded-full border border-white/15 bg-white/10 px-3 py-1 text-[11px] font-black uppercase tracking-[0.24em] text-amber-200",children:"Match du week-end"}),t.jsxs("span",{className:`inline-flex rounded-full border px-2.5 py-1 text-[10px] font-black uppercase tracking-[0.2em] ${zx(E.status)}`,children:[E.status==="live"&&t.jsx(Au,{className:"mr-1 h-3 w-3"}),Ux(E.status)]})]}),t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-bold uppercase tracking-[0.18em] text-slate-300",children:E.competition}),t.jsx("h3",{className:"mt-2 text-3xl font-black text-white font-display sm:text-4xl",children:E.team}),t.jsxs("p",{className:"mt-1 text-lg font-bold text-amber-200",children:["contre ",E.opponent]})]}),t.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[t.jsxs("div",{className:"rounded-2xl border border-white/10 bg-slate-950/35 p-4 backdrop-blur-sm",children:[t.jsx("p",{className:"text-[10px] font-black uppercase tracking-[0.24em] text-slate-400",children:"Quand"}),t.jsx("p",{className:"mt-1 text-lg font-black text-white font-display",children:vu(E.date)}),t.jsxs("p",{className:"text-sm text-slate-300",children:["Début à ",E.time]})]}),t.jsxs("div",{className:"rounded-2xl border border-white/10 bg-slate-950/35 p-4 backdrop-blur-sm",children:[t.jsx("p",{className:"text-[10px] font-black uppercase tracking-[0.24em] text-slate-400",children:"Où"}),t.jsx("p",{className:`mt-1 inline-flex rounded-full border px-3.5 py-1.5 text-[12px] font-black uppercase tracking-[0.22em] font-display ${K1(E.isHome)}`,children:E.isHome?"Domicile":"Extérieur"}),t.jsx("p",{className:"text-sm text-slate-300",children:E.location})]})]})]}),t.jsxs("div",{className:"rounded-[28px] border border-white/10 bg-slate-950/45 p-5 backdrop-blur-sm",children:[t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(To,{imageUrl:Lx(E.id,E.clubLogoUrl),fallbackLabel:"ACE",alt:"Logo Valence ACE",className:"flex h-16 w-16 items-center justify-center overflow-hidden rounded-2xl border border-transparent p-0.5 text-base font-black text-white shadow-[0_10px_24px_rgba(15,23,42,0.2)] transition-colors group-hover:border-white/12",imageClassName:"h-full w-full scale-125 object-contain drop-shadow-[0_6px_14px_rgba(15,23,42,0.32)]"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-[10px] font-black uppercase tracking-[0.24em] text-slate-400",children:"Valence ACE"}),t.jsx("p",{className:"text-xl font-black text-white font-display",children:E.team})]})]}),t.jsx("span",{className:"rounded-full border border-amber-400/25 bg-amber-400/10 px-3 py-1 text-[10px] font-black uppercase tracking-[0.32em] text-amber-300",children:"VS"})]}),t.jsxs("div",{className:"mt-5 flex items-center justify-between gap-3 rounded-2xl border border-slate-700/70 bg-slate-950/60 p-4",children:[t.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[t.jsx(To,{imageUrl:Ox(E.opponent,E.date,E.opponentLogoUrl),fall
420backLabel:"ADV",alt:`Logo ${E.opponent}`,className:"flex h-14 w-14 shrink-0 items-center justify-center overflow-hidden rounded-2xl border border-transparent p-0.5 text-sm font-black tracking-wide text-slate-200 shadow-[0_8px_18px_rgba(15,23,42,0.18)] transition-colors group-hover:border-white/12",imageClassName:"h-full w-full scale-125 object-contain drop-shadow-[0_6px_12px_rgba(15,23,42,0.28)]"}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("p",{className:"text-[10px] font-black uppercase tracking-[0.24em] text-slate-500",children:"Adversaire"}),t.jsx("p",{className:"truncate text-lg font-bold text-slate-100",children:E.opponent})]})]}),t.jsxs("a",{href:"#gymnases",className:"inline-flex items-center gap-1 rounded-xl border border-amber-300/20 bg-amber-400 px-4 py-2 text-xs font-bold text-slate-950 transition-colors hover:bg-amber-300",children:["Voir la salle",t.jsx(ai,{className:"h-3.5 w-3.5"})]})]}),t.jsxs("div",{className:"mt-4 flex flex-wrap gap-2 text-xs text-slate-300",children:[t.jsx("span",{className:"rounded-full border border-slate-600 bg-slate-900/70 px-3 py-1 font-bold",children:E.category}),t.jsx("span",{className:"rounded-full border border-slate-600 bg-slate-900/70 px-3 py-1 font-bold",children:E.isHome?"Championnat Prénational":"Déplacement club"})]})]})]})]}),O&&t.jsxs("div",{className:"mb-8 overflow-hidden rounded-[30px] border border-blue-400/20 bg-[linear-gradient(135deg,rgba(30,64,175,0.16)_0%,rgba(15,23,42,0.96)_48%,rgba(15,23,42,0.98)_100%)] shadow-[0_24px_70px_rgba(15,23,42,0.35)]",children:[t.jsxs("div",{className:"border-b border-white/8 px-6 py-5",children:[t.jsxs("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[t.jsxs("div",{children:[t.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-blue-400/20 bg-blue-500/10 px-3 py-1 text-[11px] font-black uppercase tracking-[0.22em] text-blue-200",children:[t.jsx(bx,{className:"h-3.5 w-3.5"}),"Classement du collectif"]}),t.jsx("h3",{className:"mt-3 text-2xl font-black text-white font-display",children:O.squadLabel}),t.jsx("p",{className:"mt-1 text-sm text-slate-300",children:O.championship})]}),t.jsxs("div",{className:"rounded-2xl border border-amber-300/20 bg-amber-400/10 px-4 py-3 text-right",children:[t.jsx("p",{className:"text-[10px] font-black uppercase tracking-[0.2em] text-amber-200",children:"Position actuelle"}),t.jsxs("p",{className:"mt-1 text-3xl font-black text-amber-300 font-display",children:[O.rank,"e / ",O.totalTeams]})]})]}),O.note&&t.jsx("p",{className:"mt-3 text-sm text-slate-300",children:O.note})]}),t.jsx("div",{className:"px-6 py-5",children:t.jsx("div",{className:"overflow-x-auto",children:t.jsxs("table",{className:"min-w-full text-left text-sm text-slate-200",children:[t.jsx("thead",{children:t.jsxs("tr",{className:"text-[11px] uppercase tracking-[0.18em] text-slate-400",children:[t.jsx("th",{className:"pb-3 pr-4 font-black",children:"#"}),t.jsx("th",{className:"pb-3 pr-4 font-black",children:"Équipe"}),t.jsx("th",{className:"pb-3 pr-4 font-black",children:"J"}),t.jsx("th",{className:"pb-3 pr-4 font-black",children:"V"}),t.jsx("th",{className:"pb-3 pr-4 font-black",children:"D"}),t.jsx("th",{className:"pb-3 font-black",children:"Pts"})]})}),t.jsx("tbody",{children:O.rows.map((G,V)=>{const K=G.team.toLowerCase().includes("valence ace");return t.jsxs("tr",{className:`border-t border-white/6 ${K?"bg-amber-400/10 text-white":"text-slate-300"}`,children:[t.jsx("td",{className:"py-3 pr-4 font-black",children:V+1}),t.jsx("td",{className:"py-3 pr-4 font-bold",children:G.team}),t.jsx("td",{className:"py-3 pr-4",children:G.played}),t.jsx("td",{className:"py-3 pr-4",children:G.won}),t.jsx("td",{className:"py-3 pr-4",children:G.lost}),t.jsx("td",{className:"py-3 font-black text-amber-200",children:G.points})]},`${O.squadId}-${G.team}`)})})]})})})]}),g!=="all"&&!O&&F&&t.jsxs("div",{className:"mb-8 overflow-hidden rounded-[30px] border border-slate-700/80 bg-slate-950/60 px-6 py-6 shadow-[0_20px_50px_rgba(15,23,42,0.3)]",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-slate-600 bg-slate-900/80 px-3 py-1 text-[11px] font-black uppercase tracking-[0.22em] text-slate-300",children:[t.jsx(bx,{className:"h-3.5 w-3.5 text-amber-300"}),"Classement à venir"]}),t.jsx("h3",{className:"mt-3 text-2xl font-black text-white font-display",children:F}),t.jsx("p",{className:"mt-2 max-w-3xl text-sm text-slate-300",children:"Ce collectif apparaît déjà dans le filtre résultats, mais son classement n’est pas encore mocké. On pourra le brancher à une API officielle ou à une mise à jour admin dès que vous aurez les premières données de saison."})]}),c==="weekly"?null:w.length===0?t.jsxs("div",{className:"rounded-[28px] border border-slate-700/80 bg-slate-950/60 px-6 py-10 text-center text-slate-300",children:[t.jsx("p",{className:"text-lg font-black text-white font-display",children:"Aucun match pour ce filtre"}),t.jsx("p",{className:"mt-2 text-sm text-slate-400",children:"Change de collectif ou repasse sur le filtre global pour revoir tous les résultats."})]}):t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:w.map(G=>{const V=I1(G.score),K=G.status==="finished",te=G.status==="live",J=G.status==="upcoming",I=V!=null&&V.homeSets&&(V!=null&&V.awaySets)?Number(V.homeSets)>Number(V.awaySets):!1,L=K?I?"Victoire ACE":"Défaite ACE":null,H=K?I?"border-emerald-300/30 bg-[linear-gradient(180deg,rgba(16,185,129,0.16)_0%,rgba(15,23,42,0.78)_100%)] shadow-[0_0_40px_rgba(16,185,129,0.08)]":"border-rose-300/30 bg-[linear-gradient(180deg,rgba(244,63,94,0.16)_0%,rgba(15,23,42,0.78)_100%)] shadow-[0_0_40px_rgba(244,63,94,0.08)]":"border-amber-400/20 bg-[linear-gradient(180deg,rgba(251,191,36,0.12)_0%,rgba(15,23,42,0.72)_100%)] shadow-[0_0_40px_rgba(251,191,36,0.06)]",h=K?I?"text-emerald-300":"text-rose-300":"text-amber-300";return t.jsxs("div",{className:`group relative overflow-hidden rounded-[28px] border border-slate-700/80 bg-[linear-gradient(180deg,rgba(30,41,59,0.96)_0%,rgba(15,23,42,0.98)_100%)] p-6 shadow-[0_20px_60px_rgba(2,6,23,0.45)] transition-all hover:-translate-y-1 before:pointer-events-none before:absolute before:inset-0 before:opacity-90 match-card-enter ${Z1(G.status)} ${Y1(G.status)}`,style:{animationDelay:`${Math.min(w.findIndex(ie=>ie.id===G.id)*70,420)}ms`},children:[te&&t.jsx("div",{className:"pointer-events-none absolute right-5 top-5 h-3 w-3 rounded-full bg-rose-400 shadow-[0_0_20px_rgba(244,63,94,0.85)] animate-pulse"}),t.jsxs("div",{className:"relative flex h-full flex-col justify-between gap-5",children:[t.jsxs("div",{className:"space-y-5",children:[t.jsx("div",{className:"flex items-start justify-between gap-3",children:t.jsxs("div",{className:"space-y-2",children:[t.jsx("span",{className:"inline-flex rounded-full border border-blue-400/20 bg-blue-500/15 px-3 py-1 text-[11px] font-extrabold uppercase tracking-[0.03em] text-blue-200",children:G.competition}),t.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t.jsxs("span",{className:`inline-flex rounded-full border px-2.5 py-1 text-[10px] font-black uppercase tracking-[0.2em] ${zx(G.status)}`,children:[G.status==="live"&&t.jsx(Au,{className:"mr-1 h-3 w-3"}),Ux(G.status)]}),t.jsx("span",{className:"inline-flex rounded-full border border-slate-600 bg-slate-950/70 px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] text-slate-300",children:G.isHome?"Domicile":"Extérieur"})]})]})}),t.jsxs("div",{className:`rounded-[24px] border p-4 shadow-inner shadow-slate-950/30 ${te?"border-rose-400/20 bg-rose-500/5":J?"border-amber-400/10 bg-slate-950/35":"border-white/6 bg-slate-950/35"}`,children:[t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[t.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[t.jsx(To,{imageUrl:Lx(G.id,G.clubLogoUrl),fallbackLabel:"ACE",alt:"Logo Valence ACE",className:"flex h-13 w-13 items-center justify-center overflow-hidden rounded-2xl border border-transparent p-0.5 text-sm font-black tracking-wide text-slate-200 shadow-[0_8px_18px_rgba(15,23,42,0.18)] transition-colors group-hover:border-white/12",imageClassName:"h-full w-full scale-125 object-contain drop-shadow-[0_5px_12px_rgba(15,23,42,0.28)]"}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("p",{className:"text-[10px] font-bold uppercase tracking-[0.24em] text-slate-400",children:"Valence ACE"}),t.jsx("h3",{className:"truncate text-lg font-black text-white font-display",children:G.team})]})]}),(V==null?void 0:V.homeSets)&&t.jsxs("div",{className:"text-right",children:[t.jsx("span",{className:`block text-4xl font-black leading-none font-display sm:text-5xl ${I?"text-white":"text-slate-200"}`,children:V.homeSets}),t.jsx("span",{className:"text-[10px] font-bold uppercase tracking-[0.18em] text-slate-500",children:"Sets"})]})]}),t.jsxs("div",{className:"my-4 flex items-center gap-3",children:[t.jsx("div",{className:"h-px flex-1 bg-gradient-to-r from-transparent via-slate-600 to-slate-700"}),t.jsx("span",{className:"rounded-full border border-amber-400/25 bg-amber-400/10 px-3 py-1 text-[10px] font-black uppercase tracking-[0.32em] text-amber-300",children:"VS"}),t.jsx("div",{className:"h-px flex-1 bg-gradient-to-r from-slate-700 via-slate-600 to-transparent"})]}),t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[t.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[t.jsx(To,{imageUrl:Ox(G.opponent,G.date,G.opponentLogoUrl),fallbackLabel:"ADV",alt:`Logo ${G.opponent}`,className:"flex h-13 w-13 items-center justify-center overflow-hidden rounded-2xl border border-transparent p-0.5 text-sm font-black tracking-wide text-slate-200 shadow-[0_8px_18px_rgba(15,23,42,0.18)] transition-colors group-hover:border-white/12",imageClassName:"h-full w-full scale-125 object-contain drop-shadow-[0_5px_12px_rgba(15,23,42,0.28)]"}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("p",{className:"text-[10px] font-bold uppercase tracking-[0.24em] text-slate-500",children:"Adversaire"}),t.jsx("p",{className:"truncate text-base font-bold text-slate-100",children:G.opponent})]})]}),(V==null?void 0:V.awaySets)&&t.jsxs("div",{className:"text-right",children:[t.jsx("span",{className:`block text-4xl font-black leading-none font-display sm:text-5xl ${I?"text-slate-300":"text-white"}`,children:V.awaySets}),t.jsx("span",{className:"text-[10px] font-bold uppercase tracking-[0.18em] text-slate-500",children:"Sets"})]})]})]}),V?t.jsxs("div",{className:`rounded-[24px] border p-4 ${H}`,children:[t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[t.jsxs("div",{children:[t.jsx("p",{className:`text-[10px] font-black uppercase tracking-[0.24em] ${I?"text-emerald-100/80":"text-rose-100/80"}`,children:"Score final"}),t.jsx("p",{className:`mt-1 text-3xl font-black font-display sm:text-4xl ${h}`,children:V.summary})]}),t.jsxs("div",{className:`rounded-2xl border px-3 py-2 text-right ${I?"border-emerald-300/20 bg-emerald-950/20":"border-rose-300/20 bg-rose-950/20"}`,children:[t.jsx("p",{className:"text-[10px] font-bold uppercase tracking-[0.18em] text-slate-400"}),t.jsx("p",{className:`text-sm font-bold ${h}`,children:L})]})]}),V.setDetails.length>0&&t.jsx("div",{className:"mt-3 flex flex-wrap gap-2",children:V.setDetails.map((ie,ee)=>t.jsx("span",{className:"rounded-full border border-slate-600/80 bg-slate-950/50 px-2.5 py-1 text-[11px] font-bold text-slate-200",children:ie},`${G.id}-${ie}-${ee}`))})]}):t.jsxs("div",{className:`rounded-[24px] border p-4 ${te?"border-rose-400/25 bg-rose-500/10":"border-amber-400/20 bg-amber-400/8"} ${J?"shadow-[0_0_28px_rgba(251,191,36,0.06)]":""}`,children:[t.jsx("p",{className:`text-[10px] font-black uppercase tracking-[0.24em] ${te?"text-rose-200/80":"text-amber-200/80"}`,children:te?"Match en cours":"Prochain rendez-vous"}),t.jsx("p",{className:"mt-1 text-xl font-black text-white font-display",children:vu(G.date)}),t.jsxs("p",{className:"text-sm text-slate-300",children:["Coup d'envoi à ",G.time]}),te&&t.jsx("p",{className:"mt-2 text-xs font-bold uppercase tracking-[0.18em] text-rose-300 animate-pulse",children:"Le match se joue maintenant"})]}),t.jsxs("div",{className:"grid grid-cols-1 gap-2 rounded-[20px] border border-slate-700/70 bg-slate-950/35 p-4 text-sm text-slate-300",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ft,{className:"h-4 w-4 text-blue-300"}),t.jsxs("span",{children:[vu(G.date)," à ",t.jsx("strong",{className:"text-white",children:G.time})]})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Bt,{className:"h-4 w-4 text-amber-300"}),t.jsx("span",{className:"truncate",children:G.location})]})]})]}),t.jsxs("div",{className:"flex items-center justify-between gap-3 border-t border-slate-700/60 pt-4",children:[t.jsxs("button",{onClick:()=>$(G.id),className:`inline-flex items-center gap-2 rounded-xl border px-4 py-2 text-xs font-bold transition-all cursor-pointer ${N===G.id?"scale-105 border-amber-300 bg-amber-400 text-slate-950 shadow-lg shadow-amber-500/20":"border-slate-600 bg-slate-900/70 text-slate-200 hover:border-amber-300/50 hover:text-white"}`,children:[t.jsx(Xb,{className:`h-4 w-4 ${N===G.id?"animate-bounce text-slate-950":"text-amber-300"}`}),t.jsx("span",{children:N===G.id?"Allez Valence ACE":"Encourager l’équipe"})]}),t.jsxs("a",{href:"#gymnases",className:"inline-flex items-center gap-1 text-xs font-semibold text-blue-300 transition-colors hover:text-blue-200",children:["Accès salle",t.jsx(ai,{className:"h-3.5 w-3.5"})]})]})]})]},G.id)})}),t.jsxs("div",{className:"mt-12 rounded-[28px] border border-blue-800/60 bg-[linear-gradient(135deg,rgba(30,64,175,0.45)_0%,rgba(15,23,42,0.96)_42%,rgba(146,64,14,0.25)_100%)] p-6 flex flex-col md:flex-row items-center justify-between gap-6 shadow-[0_20px_50px_rgba(15,23,42,0.35)]",children:[t.jsxs("div",{className:"space-y-1",children:[t.jsxs("h3",{className:"text-xl font-bold text-white font-display flex items-center gap-2",children:[t.jsx("span",{children:"🎺"})," Venez encourager Valence ACE à domicile !"]}),t.jsxs("p",{className:"text-sm text-slate-300",children:["Entrée libre et gratuite au ",t.jsx("strong",{children:"Gymnase Zammit"})," les samedis et dimanches de match. Buvette conviviale, crêpes et tombola club."]})]}),t.jsx("a",{href:"#gymnases",className:"px-5 py-3 rounded-xl bg-amber-400 hover:bg-amber-300 text-slate-950 font-bold text-xs sm:text-sm whitespace-nowrap shadow-lg shadow-amber-400/20 transition-all shrink-0",children:"Voir le Gymnase Zammit"})]})]})})},e2=({onOpenTrialModal:o,onOpenEventRegistration:f})=>{const{content:c}=ii(),b=v=>{const m=T=>typeof T.displayOrder=="number"&&Number.isFinite(T.displayOrder)?T.displayOrder:Number.MAX_SAFE_INTEGER;return[...v].map((T,w)=>({event:T,fallbackOrder:w+1})).sort((T,w)=>{const S=m(T.event)===Number.MAX_SAFE_INTEGER?T.fallbackOrder:m(T.event),j=m(w.event)===Number.MAX_SAFE_INTEGER?w.fallbackOrder:m(w.event);return S-j||T.fallbackOrder-w.fallbackOrder}).map(({event:T})=>T)},k=v=>{switch(v.category){case"Tournoi":return{frameClassName:"border-amber-400/60 shadow-[0_22px_60px_rgba(245,158,11,0.18)]",panelClassName:"bg-[linear-gradient(180deg,rgba(30,41,59,0.98)_0%,rgba(15,23,42,0.99)_100%)]",badgeClassName:"bg-amber-400 text-slate-950",categoryClassName:"border-amber-300/30 bg-amber-400/10 text-amber-200",accentClassName:"text-amber-300",buttonClassName:"bg-amber-400 text-slate-950 hover:bg-amber-300 shadow-[0_16px_28px_rgba(245,158,11,0.24)]"};case"Stage":return{frameClassName:"border-sky-400/55 shadow-[0_22px_60px_rgba(59,130,246,0.16)]",panelClassName:"bg-[linear-gradient(180deg,rgba(30,58,138,0.96)_0%,rgba(15,23,42,0.99)_100%)]",badgeClassName:"bg-sky-4
42000 text-slate-950",categoryClassName:"border-sky-300/30 bg-sky-400/10 text-sky-200",accentClassName:"text-sky-200",buttonClassName:"bg-sky-400 text-slate-950 hover:bg-sky-300 shadow-[0_16px_28px_rgba(59,130,246,0.24)]"};case"Solidaire":return{frameClassName:"border-emerald-400/55 shadow-[0_22px_60px_rgba(16,185,129,0.16)]",panelClassName:"bg-[linear-gradient(180deg,rgba(6,78,59,0.96)_0%,rgba(15,23,42,0.99)_100%)]",badgeClassName:"bg-emerald-400 text-slate-950",categoryClassName:"border-emerald-300/30 bg-emerald-400/10 text-emerald-200",accentClassName:"text-emerald-200",buttonClassName:"bg-emerald-400 text-slate-950 hover:bg-emerald-300 shadow-[0_16px_28px_rgba(16,185,129,0.24)]"};case"Vie du club":default:return{frameClassName:"border-blue-400/55 shadow-[0_22px_60px_rgba(37,99,235,0.16)]",panelClassName:"bg-[linear-gradient(180deg,rgba(30,41,59,0.98)_0%,rgba(15,23,42,0.99)_100%)]",badgeClassName:"bg-blue-400 text-slate-950",categoryClassName:"border-blue-300/30 bg-blue-400/10 text-blue-200",accentClassName:"text-blue-200",buttonClassName:"bg-blue-400 text-slate-950 hover:bg-blue-300 shadow-[0_16px_28px_rgba(37,99,235,0.24)]"}}},p=v=>{var T;return((T=v.registrationForm)==null?void 0:T.pricingMode)==="paid"?{label:"Payant",className:"bg-sky-100 text-sky-900 border border-sky-200"}:{label:"Gratuit",className:"bg-slate-100 text-slate-700 border border-slate-200"}},g=v=>{var Y,G,V,K;const m=(Y=v.registrationForm)==null?void 0:Y.capacityLimit,T=(G=v.registrationSummary)==null?void 0:G.activeCount,w=(V=v.registrationSummary)==null?void 0:V.receivedCount,S=(K=v.registrationSummary)==null?void 0:K.confirmedCount;if(typeof m!="number"||m<=0)return null;const j=typeof T=="number"?Math.max(T,0):0,E=Math.max(typeof w=="number"?w:j-(typeof S=="number"?Math.max(S,0):0),0),A=Math.max(typeof S=="number"?S:j-E,0),O=Math.min(j/m,1),F=Math.round(O*100),$=F>=90?{accentClassName:"text-rose-300",trackClassName:"from-rose-300 via-rose-400 to-orange-400",hintClassName:"text-rose-200",alertLabel:"Presque complet"}:F>=65?{accentClassName:"text-amber-300",trackClassName:"from-amber-300 via-amber-400 to-orange-400",hintClassName:"text-amber-200",alertLabel:"Belle dynamique"}:{accentClassName:"text-emerald-300",trackClassName:"from-emerald-300 via-emerald-400 to-teal-400",hintClassName:"text-emerald-200",alertLabel:"Places disponibles"};return{activeCount:j,receivedCount:E,confirmedCount:A,capacityLimit:m,percent:F,width:`${Math.max(F,j>0?6:0)}%`,label:`${j} dossier(s) actifs sur ${m}`,validationLabel:`${A} validé(s)`,receivedLabel:`${E} en attente`,...$}},y=v=>{var j,E,A,O,F,$,Y;const m=v.registrationStatus||"open",T=(j=v.registrationForm)==null?void 0:j.capacityLimit,w=(E=v.registrationSummary)==null?void 0:E.remainingSpots,S=typeof T=="number"&&T>0?typeof w=="number"?`${Math.max(w,0)} place(s) restante(s)`:`${T} places max`:null;switch(m){case"coming_soon":return{label:((A=v.registrationForm)==null?void 0:A.statusLabel)||"Bientot",badgeClassName:"bg-sky-100 text-sky-800 border border-sky-200",ctaLabel:"Ouverture prochaine",disabled:!0};case"full":return{label:((O=v.registrationForm)==null?void 0:O.statusLabel)||"Complet",badgeClassName:"bg-rose-100 text-rose-800 border border-rose-200",ctaLabel:"Liste complete",disabled:!0};case"closed":return{label:((F=v.registrationForm)==null?void 0:F.statusLabel)||"Ferme",badgeClassName:"bg-slate-200 text-slate-700 border border-slate-300",ctaLabel:"Inscriptions fermees",disabled:!0};case"open":default:return{label:(($=v.registrationForm)==null?void 0:$.statusLabel)||"Ouvert",badgeClassName:"bg-emerald-100 text-emerald-800 border border-emerald-200",ctaLabel:((Y=v.registrationForm)==null?void 0:Y.ctaLabel)||"Informations & Inscription",disabled:!1,helper:S}}},N=b(c.events).map(v=>({...v,imageUrl:v.imageUrl?Gs(We.event(v.id),v.imageUrl):void 0,imagePosition:Hs(We.event(v.id),v.imageUrl)})),C=v=>{if(!y(v).disabled){if(v.registrationMode==="internal"){f(v);return}if(v.registrationMode==="external"&&v.registrationUrl){window.open(v.registrationUrl,"_blank","noopener,noreferrer");return}window.location.assign("#contact")}};return t.jsx("section",{id:"evenements",className:"py-20 bg-slate-50 border-b border-slate-200 logo-watermark-section",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-14",children:[t.jsx("span",{className:"text-xs font-extrabold uppercase tracking-widest text-amber-700 bg-amber-100 px-3 py-1 rounded-full border border-amber-200",children:"Animations & Compétitions"}),t.jsx("h2",{className:"text-3xl sm:text-4xl font-extrabold text-slate-900 mt-3 font-display",children:"Événements, Tournois & Stages"}),t.jsx("p",{className:"text-slate-600 mt-2 text-base",children:"Le volley-ball se vit aussi en dehors du championnat officiel. Participez à nos tournois estivaux, nos stages vacances et nos actions caritatives."})]}),t.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 mb-12",children:N.filter(v=>
420v.highlight).map(v=>(()=>{const m=y(v),T=p(v),w=k(v),S="helper"in m?m.helper:null,j=g(v);return t.jsxs("div",{className:`overflow-hidden rounded-[32px] border bg-slate-950 transition-all duration-300 hover:-translate-y-1 flex flex-col justify-between group ${w.frameClassName}`,children:[v.imageUrl&&t.jsxs("div",{className:"relative aspect-[16/9] w-full overflow-hidden bg-slate-900",children:[t.jsx("img",{src:v.imageUrl,alt:v.title,referrerPolicy:"no-referrer",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-700",style:{objectPosition:v.imagePosition},loading:"lazy"}),t.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(180deg,rgba(15,23,42,0.1)_0%,rgba(15,23,42,0.18)_30%,rgba(15,23,42,0.88)_100%)]"}),t.jsx("div",{className:"absolute top-3 left-3",children:t.jsx("span",{className:`text-xs font-extrabold uppercase px-3 py-1 rounded-full shadow-md ${w.badgeClassName}`,children:v.badge})}),S&&t.jsx("div",{className:"absolute right-3 top-3",children:t.jsx("span",{className:"inline-flex rounded-full border border-white/15 bg-slate-950/78 px-3 py-1 text-[11px] font-black uppercase tracking-[0.14em] text-white shadow-lg backdrop-blur-sm",children:S})}),t.jsxs("div",{className:"absolute bottom-3 left-3 right-3 flex items-center justify-between gap-3 text-xs text-white",children:[t.jsx("span",{className:`inline-flex rounded-full border px-2.5 py-1 font-bold ${w.categoryClassName}`,children:v.category}),t.jsx("span",{className:"bg-slate-950/75 px-2.5 py-1 rounded-full text-[11px] text-white font-semibold border border-white/10",children:v.date})]})]}),t.jsxs("div",{className:`p-6 sm:p-7 flex-1 flex flex-col justify-between text-white ${w.panelClassName}`,children:[t.jsxs("div",{children:[!v.imageUrl&&t.jsxs("div",{className:"flex items-center justify-between mb-4 gap-3",children:[t.jsx("span",{className:`text-xs font-extrabold uppercase px-3 py-1 rounded-full ${w.badgeClassName}`,children:v.badge}),t.jsx("span",{className:`text-xs font-semibold px-2.5 py-1 rounded-full border ${w.categoryClassName}`,children:v.category})]}),t.jsx("h3",{className:`text-2xl font-extrabold text-white font-display transition-colors mb-3 ${w.accentClassName}`,children:v.title}),t.jsx("p",{className:"text-sm text-slate-200/88 leading-relaxed mb-6",children:v.description}),t.jsxs("div",{className:"space-y-3 rounded-[24px] border border-white/10 bg-slate-950/28 p-4 text-xs font-medium text-slate-100",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ft,{className:"w-4 h-4 text-blue-300 shrink-0"}),t.jsx("span",{children:v.date})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Bt,{className:"w-4 h-4 text-amber-300 shrink-0"}),t.jsx("span",{children:v.location})]})]})]}),t.jsxs("div",{className:"mt-6 pt-4 border-t border-white/10 flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t.jsx("span",{className:"text-xs text-slate-300 font-medium",children:"Ouvert à tous"}),t.jsx("span",{className:`rounded-full px-2.5 py-1 text-[11px] font-bold uppercase ${T.className}`,children:T.label}),t.jsx("span",{className:`rounded-full px-2.5 py-1 text-[11px] font-bold uppercase ${m.badgeClassName}`,children:m.label}),S?t.jsx("span",{className:"text-[11px] text-slate-400",children:S}):null]}),t.jsxs("a",{href:v.registrationMode==="external"&&v.registrationUrl?v.registrationUrl:"#evenements",onClick:E=>{E.preventDefault(),C(v)},"aria-disabled":m.disabled,className:`inline-flex items-center justify-center gap-1.5 rounded-xl px-4 py-2.5 text-xs font-extrabold transition-all ${m.disabled?"cursor-not-allowed border border-slate-700 bg-slate-900/50 text-slate-500 no-underline":w.buttonClassName}`,children:[t.jsx("span",{children:m.ctaLabel}),t.jsx(ai,{className:"w-3.5 h-3.5"})]})]}),j&&t.jsxs("div",{className:"mt-3 rounded-[20px] border border-white/10 bg-slate-950/28 px-4 py-3",children:[t.jsxs("div",{className:"flex items-center justify-between gap-3 text-[11px]",children:[t.jsx("span",{className:"font-semibold text-slate-200",children:"Progression des inscriptions"}),t.jsxs("span",{className:`font-black ${j.accentClassName}`,children:[j.percent,"%"]})]}),t.jsx("div",{className:"mt-2 h-2.5 overflow-hidden rounded-full bg-white/10",children:t.jsx("div",{className:`h-full rounded-full bg-gradient-to-r ${j.trackClassName}`,style:{width:j.width}})}),t.jsxs("div",{className:"mt-2 flex items-center justify-between gap-3 text-[11px]",children:[t.jsx("p",{className:"text-slate-400",children:j.label}),t.jsx("span",{className:`font-semibold ${j.hintClassName}`,children:j.alertLabel})]}),t.jsxs("div",{className:"mt-2 flex flex-wrap gap-2 text-[11px]",children:[t.jsx("span",{className:"rounded-full border border-emerald-300/20 bg-emerald-500/10 px-2.5 py-1 text-emerald-200",children:j.validationLabel}),t.jsx("span",{className:"rounded-full border border-amber-300/20 bg-amber-400/10 px-2.5 py-1 text-amber-200",children:j.receivedLabel})]})]})]})]},v.id)})())}),t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:N.filter(v=>
420!v.highlight).map(v=>(()=>{const m=y(v),T=p(v),w=k(v),S="helper"in m?m.helper:null,j=g(v);return t.jsxs("div",{className:`overflow-hidden rounded-[28px] border bg-slate-950 transition-all duration-300 hover:-translate-y-1 flex flex-col justify-between group ${w.frameClassName}`,children:[v.imageUrl&&t.jsxs("div",{className:"relative aspect-[16/10] w-full overflow-hidden bg-slate-900",children:[t.jsx("img",{src:v.imageUrl,alt:v.title,referrerPolicy:"no-referrer",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-700",style:{objectPosition:v.imagePosition},loading:"lazy"}),t.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(180deg,rgba(15,23,42,0.08)_0%,rgba(15,23,42,0.15)_35%,rgba(15,23,42,0.82)_100%)] transition-colors"}),t.jsxs("div",{className:"absolute left-2 top-2 flex max-w-[calc(100%-1rem)] flex-wrap items-start gap-2",children:[t.jsx("span",{className:`text-[10px] font-extrabold px-2.5 py-1 rounded-full ${w.badgeClassName}`,children:v.badge}),S&&t.jsx("span",{className:"inline-flex rounded-full border border-white/15 bg-slate-950/78 px-2.5 py-1 text-[10px] font-black uppercase tracking-[0.14em] text-white shadow-lg backdrop-blur-sm",children:S})]}),t.jsx("span",{className:`absolute bottom-2 left-2 text-[10px] font-bold px-2.5 py-1 rounded-full border ${w.categoryClassName}`,children:v.category})]}),t.jsxs("div",{className:`relative p-5 flex-1 flex flex-col justify-between text-white ${w.panelClassName}`,children:[t.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-16 bg-[linear-gradient(180deg,rgba(255,255,255,0.06),transparent)]"}),t.jsxs("div",{children:[t.jsxs("div",{className:"flex items-center justify-between mb-3 gap-2",children:[t.jsx("span",{className:"inline-flex items-center gap-1 rounded-full border border-white/10 bg-white/5 px-2.5 py-1 text-[10px] font-black uppercase tracking-[0.18em] text-slate-300",children:"Rendez-vous club"}),!v.imageUrl&&t.jsx("span",{className:`text-[10px] font-extrabold px-2.5 py-1 rounded-full ${w.badgeClassName}`,children:v.badge})]}),!v.imageUrl&&t.jsx("span",{className:`mb-3 inline-flex rounded-full border px-2.5 py-1 text-[10px] font-bold ${w.categoryClassName}`,children:v.category}),t.jsx("h4",{className:`text-xl font-bold text-white font-display mb-2 transition-colors ${w.accentClassName}`,children:v.title}),t.jsx("p",{className:"text-sm text-slate-200/85 leading-relaxed mb-4",children:v.description})]}),t.jsxs("div",{className:"pt-4 border-t border-white/10 flex flex-col gap-4",children:[t.jsx("div",{className:"rounded-[20px] border border-white/10 bg-slate-950/28 p-4 text-xs text-slate-300",children:t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsxs("span",{className:"flex items-center gap-1 font-medium",children:[t.jsx(Ft,{className:"w-3.5 h-3.5 text-blue-300"}),v.date]}),t.jsxs("span",{className:"flex items-center gap-1 font-medium",children:[t.jsx(Bt,{className:"w-3.5 h-3.5 text-amber-300"}),v.location]})]})}),t.jsxs("div",{className:"rounded-[22px] border border-white/10 bg-[linear-gradient(135deg,rgba(15,23,42,0.82),rgba(30,41,59,0.92))] p-3.5 shadow-[0_18px_32px_rgba(2,6,23,0.2)]",children:[t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-xs text-slate-300",children:[t.jsx("span",{className:"inline-flex rounded-full border border-white/10 bg-white/5 px-2.5 py-1 text-[10px] font-semibold uppercase tracking-[0.12em] text-slate-300",children:"Accès public"}),t.jsx("span",{className:`inline-flex w-fit rounded-full px-2.5 py-1 text-[10px] font-extrabold uppercase ${T.className}`,children:T.label}),t.jsx("span",{className:`inline-flex w-fit rounded-full px-2.5 py-1 text-[10px] font-extrabold uppercase ${m.badgeClassName}`,children:m.label})]}),t.jsxs("button",{type:"button",onClick:()=>C(v),disabled:m.disabled,className:`inline-flex items-center gap-1 rounded-xl px-4 py-2 text-xs font-extrabold transition-all ${m.disabled?"cursor-not-allowed border border-slate-700 bg-slate-900/50 text-slate-500":w.buttonClassName} cursor-pointer`,children:[t.jsx("span",{children:m.ctaLabel}),t.jsx(ai,{className:"w-3.5 h-3.5"})]})]}),S?t.jsxs("div",{className:"mt-3 flex items-center justify-between gap-3 rounded-2xl border border-white/8 bg-slate-950/45 px-3 py-2 text-[11px] text-slate-300",children:[t.jsx("span",{className:"font-semibold text-slate-200",children:"Capacité"}),t.jsx("span",{className:w.accentClassName,children:S})]}):null,j&&t.jsxs("div",{className:"mt-3 rounded-2xl border border-white/8 bg-slate-950/45 px-3 py-3 text-[11px] text-slate-300",children:[t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[t.jsx("span",{className:"font-semibold text-slate-200",children:"Inscriptions validées"}),t.jsxs("span",{className:j.accentClassName,children:[j.percent,"%"]})]}),t.jsx("div",{className:"mt-2 h-2 overflow-hidden rounded-full bg-white/10",children:t.jsx("div",{className:`h-full rounded-full bg-gradient-to-r ${j.trackClassName}`,style:{width:j.width}})}),t.jsxs("div",{className:"mt-2 flex items-center justify-between gap-3 text-[11px]",children:[t.jsx("p",{className:"text-slate-400",children:j.label}),t.jsx("span",{className:j.hintClassName,children:j.alertLabel})]}),t.jsxs("div",{className:"mt-2 flex flex-wrap gap-2 text-[11px]",children:[t.jsx("span",{className:"rounded-full border border-emerald-300/20 bg-emerald-500/10 px-2.5 py-1 text-emerald-200",children:j.validationLabel}),t.jsx("span",{className:"rounded-full border border-amber-300/20 bg-amber-400/10 px-2.5 py-1 text-amber-200",children:j.receivedLabel})]})]})]})]})]})]},v.id)})())}),t.jsxs("div",{className:"mt-12 rounded-2xl bg-gradient-to-r from-amber-500 via-amber-400 to-yellow-400 p-6 sm:p-8 text-slate-950 shadow-xl flex flex-col md:flex-row items-center justify-between gap-6",children:[t.jsxs("div",{className:"space-y-2 text-center md:text-left",children:[t.jsx("span",{className:"inline-block text-xs font-black uppercase tracking-wider bg-slate-950 text-white px-3 py-1 rounded-full",children:"Pôle Formation Jeunesse"}),t.jsx("h3",{className:"text-2xl font-black font-display tracking-tight",children:"Stages Volley pendant les Vacances Scolaires"}),t.jsx("p",{className:"text-sm font-medium text-slate-900 max-w-xl",children:"Perfectionnement technique, motricité, matchs à thème et préparation aux tournois régionaux pour les catégories M11, M13, M15 et M18."})]}),t.jsx("button",{onClick:()=>o("Stage Vacances Jeunes"),className:"px-6 py-3.5 rounded-xl bg-slate-950 hover:bg-slate-800 text-white font-extrabold text-xs sm:text-sm shadow-xl transition-all shrink-0 cursor-pointer",children:"Inscrire mon enfant au stage"})]})]})})},fh=({id:o,logoUrl:f,name:c,className:b="h-8 w-auto"})=>{const[k,p]=Z.useState(!1);if(Z.useEffect(()=>{p(!1)},[f]),f&&!k)return t.jsx("img",{src:f,alt:c??o,loading:"lazy",onError:()=>p(!0),className:b});switch(o){case"valence":return t.jsxs("svg",{viewBox:"0 0 220 70",className:b,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("rect",{width:"220",height:"70",rx:"10",fill:"#FFFFFF"}),t.jsx("path",{d:"M22 18L35 52H45L58 18H47L40 40L33 18H22Z",fill:"#E11D48"}),t.jsx("circle",{cx:"58",cy:"20",r:"4",fill:"#F59E0B"}),t.jsx("text",{x:"68",y:"44",fontFamily:"system-ui, -apple-system, sans-serif",fontWeight:"900",fontSize:"26",fill:"#0F172A",letterSpacing:"-0.5",children:"VALENCE"}),t.jsx("text",{x:"69",y:"58",fontFamily:"system-ui, -apple-system, sans-serif",fontWeight:"700",fontSize:"9",fill:"#E11D48",letterSpacing:"2.5",children:"VILLE SPORTIVE"})]});case"osv":return t.jsxs("svg",{viewBox:"0 0 220 70",className:b,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("rect",{width:"220",height:"70",rx:"10",fill:"#FFFFFF"}
420),t.jsx("rect",{x:"15",y:"16",width:"38",height:"38",rx:"8",fill:"#1E3A8A"}),t.jsx("path",{d:"M24 35C24 28 30 23 37 23C44 23 50 28 50 35C50 42 44 47 37 47C30 47 24 42 24 35ZM37 41C40.5 41 43.5 38.5 43.5 35C43.5 31.5 40.5 29 37 29C33.5 29 30.5 31.5 30.5 35C30.5 38.5 33.5 41 37 41Z",fill:"#F59E0B"}),t.jsx("text",{x:"62",y:"36",fontFamily:"system-ui, -apple-system, sans-serif",fontWeight:"900",fontSize:"20",fill:"#1E3A8A",letterSpacing:"-0.5",children:"OSV"}),t.jsx("text",{x:"62",y:"50",fontFamily:"system-ui, -apple-system, sans-serif",fontWeight:"700",fontSize:"8.5",fill:"#64748B",letterSpacing:"0.2",children:"OFFICE DES SPORTS VALENTINOIS"})]});case"ffvb":return t.jsxs("svg",{viewBox:"0 0 220 70",className:b,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("rect",{width:"220",height:"70",rx:"10",fill:"#FFFFFF"}),t.jsx("circle",{cx:"34",cy:"35",r:"18",fill:"#0284C7"}),t.jsx("path",{d:"M34 17C43.94 17 52 25.06 52 35C52 44.94 43.94 53 34 53",fill:"#E11D48"}),t.jsx("path",{d:"M34 17C29 25 29 45 34 53",stroke:"#FFFFFF",strokeWidth:"2.5",strokeLinecap:"round"}),t.jsx("path",{d:"M17 35C25 29 43 29 51 35",stroke:"#FFFFFF",strokeWidth:"2.5",strokeLinecap:"round"}),t.jsx("circle",{cx:"34",cy:"35",r:"18",stroke:"#0F172A",strokeWidth:"2",fill:"none"}),t.jsxs("text",{x:"62",y:"38",fontFamily:"system-ui, -apple-system, sans-serif",fontWeight:"900",fontSize:"21",fill:"#002654",letterSpacing:"-0.5",children:["FF",t.jsx("tspan",{fill:"#E11D48",children:"Volley"})]}),t.jsx("text",{x:"63",y:"51",fontFamily:"system-ui, -apple-system, sans-serif",fontWeight:"700",fontSize:"7.5",fill:"#64748B",letterSpacing:"0.8",children:"FÉDÉRATION FRANÇAISE DE VOLLEY"})]});case"ufolep":return t.jsxs("svg",{viewBox:"0 0 220 70",className:b,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("rect",{width:"220",height:"70",rx:"10",fill:"#FFFFFF"}),t.jsx("path",{d:"M18 48C18 30 26 18 42 18C48 18 53 21 54 26C51 26 46 25 42 25C30 25 26 33 26 45C26 47 26.5 48 27 49H18C18 48.7 18 48.3 18 48Z",fill:"#EA580C"}),t.jsx("circle",{cx:"44",cy:"38",r:"8",fill:"#DC2626"}),t.jsxs("text",{x:"62",y:"38",fontFamily:"system-ui, -apple-system, sans-serif",fontWeight:"900",fontSize:"23",fill:"#D97706",letterSpacing:"-1",children:["ufolep",t.jsx("tspan",{fill:"#DC2626",fontSize:"16",children:" 26"})]}),t.jsx("text",{x:"63",y:"52",fontFamily:"system-ui, -apple-system, sans-serif",fontWeight:"800",fontSize:"7.5",fill:"#475569",letterSpacing:"0.5",children:"TOUS LES SPORTS AUTREMENT"})]});case"drome":return t.jsxs("svg",{viewBox:"0 0 220 70",className:b,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("rect",{width:"220",height:"70",rx:"10",fill:"#FFFFFF"}),t.jsx("rect",{x:"16",y:"16",width:"36",height:"38",rx:"8",fill:"#0D9488"}),t.jsx("path",{d:"M22 45L34 22L46 45H39L34 33L29 45H22Z",fill:"#FFFFFF"}),t.jsx("circle",{cx:"43",cy:"22",r:"3.5",fill:"#FBBF24"}),t.jsx("text",{x:"62",y:"35",fontFamily:"system-ui, -apple-system, sans-serif",fontWeight:"900",fontSize:"19",fill:"#0F766E",letterSpacing:"-0.5",children:"la Drôme"}),t.jsx("text",{x:"62",y:"49",fontFamily:"system-ui, -apple-system, sans-serif",fontWeight:"700",fontSize:"8",fill:"#64748B",letterSpacing:"1",children:"LE DÉPARTEMENT 26"})]});case"aura":return t.jsxs("svg",{viewBox:"0 0 220 70",className:b,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("rect",{width:"220",height:"70",rx:"10",fill:"#FFFFFF"}),t.jsx("path",{d:"M18 46C24 26 36 20 48 34C52 38 54 44 54 46H45C45 42 43 38 39 36C33 32 26 36 23 46H18Z",fill:"#0284C7"}),t.jsx("path",{d:"M30 46C35 34 43 30 52 38H45C40 34 35 36 34 46H30Z",fill:"#0369A1"}),t.jsx("text",{x:"62",y:"32",fontFamily:"system-ui, -apple-system, sans-serif",fontWeight:"900",fontSize:"13",fill:"#0369A1",letterSpacing:"-0.2",children:"La Région"}),t.jsx("text",{x:"62",y:"47",fontFamily:"system-ui, -apple-system, sans-serif",fontWeight:"900",fontSize:"12",fill:"#0284C7",letterSpacing:"-0.3",children:"Auvergne-Rhône-Alpes"})]});case"cd2607":return t.jsxs("svg",{viewBox:"0 0 220 70",className:b,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("rect",{width:"220",height:"70",rx:"10",fill:"#FFFFFF"}),t.jsx("circle",{cx:"34",cy:"35",r:"18",fill:"#1E40AF"}),t.jsx("path",{d:"M22 35C22 26 30 20 34 20C38 20 46 26 46 35",stroke:"#F59E0B",strokeWidth:"2.5",strokeLinecap:"round",fill:"none"}),t.jsx("path",{d:"M34 20V50",stroke:"#FFFFFF",strokeWidth:"2",strokeLinecap:"round"}),t.jsx("text",{x:"62",y:"35",fontFamily:"system-ui, -apple-system, sans-serif",fontWeight:"900",fontSize:"16",fill:"#1E3A8A",children:"CD 26 / 07"}),t.jsx("text",{x:"62",y:"49",fontFamily:"system-ui, -apple-system, sans-serif",fontWeight:"700",fontSize:"7.5",fill:"#64748B",letterSpacing:"0.3",children:"COMITÉ DRÔME-ARDÈCHE VOLLEY"})]});case"pass_sport":return t.jsxs("svg",{viewBox:"0 0 220 70",className:b,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("rect",{width:"220",height:"70",rx:"10",fill:"#FFFFFF"}),t.jsx("rect",{x:"16",y:"16",width:"36",height:"38",rx:"8",fill:"#1E293B"}),t.jsx("text",{x:"21",y:"40",fontFamily:"system-ui, -apple-system, sans-serif",fontWeight:"900",fontSize:"14",fill:"#38BDF8",children:"50€"}),t.jsxs("text",{x:"62",y:"36",fontFamily:"system-ui, -apple-system, sans-serif",fontWeight:"900",fontSize:"19",fill:"#0F172A",letterSpacing:"-0.5",children:["pass'",t.jsx("tspan",{fill:"#0284C7",children:"Sport"})]}),t.jsx("text",{x:"62",y:"50",fontFamily:"system-ui, -apple-system, sans-serif",fontWeight:"700",fontSize:"7.5",fill:"#E11D48",letterSpacing:"0.5",children:"MINISTÈRE DES SPORTS (DÉDUCTION)"})]});case"ancv":return t.jsxs("svg",{viewBox:"0 0 220 70",className:b,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("rect",{width:"220",height:"70",rx:"10",fill:"#FFFFFF"}),t.jsx("rect",{x:"16",y:"16",width:"36",height:"38",rx:"8",fill:"#2563EB"}),t.jsx("text",{x:"20",y:"40",fontFamily:"system-ui, -apple-system, sans-serif",fontWeight:"900",fontSize:"11",fill:"#FFFFFF",children:"ancv"}),t.jsx("text",{x:"62",y:"36",fontFamily:"system-ui, -apple-system, sans-serif",fontWeight:"900",fontSize:"18",fill:"#1E3A8A",children:"ANCV"}),t.jsx("text",{x:"62",y:"49",fontFamily:"system-ui, -apple-system, sans-serif",fontWeight:"700",fontSize:"8",fill:"#64748B",letterSpacing:"0.4",children:"CHÈQUES VACANCES & SPORT"})]});default:return t.jsxs("svg",{viewBox:"0 0 220 70",className:b,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("rect",{width:"220",height:"70",rx:"10",fill:"#FFFFFF"}),t.jsx("circle",{cx:"34",cy:"35",r:"16",fill:"#F59E0B"}),t.jsx("text",{x:"62",y:"42",fontFamily:"system-ui, -apple-system, sans-serif",fontWeight:"900",fontSize:"16",fill:"#0F172A",children:"VALENCE ACE"})]})}},t2=()=>{const[o,f]=Z.useState("bureau"),[c,b]=Z.useState("bureau"),[k,p]=Z.useState(!1),g="/partenaires/dossier-sponsors-vace-2026-2027.html",y={Céline:["Mathilde & Céline"],"Guillaume Katchikian + Boris Morand":["Guikatch & Shivam"],"Nicolas Naze + Hugo Revol":["Nicolas Naze","Hugo Revol","Nico & Hugo","Nicolas & Hugo"],Shivam:["Guikatch & Shivam","Shivam & Guikatch"]},N=Cu.map(I=>{const H=Array.from(new Set([I.name,I.role,I.badge,...y[I.name]||[]].filter(
420Boolean))).map(h=>({imageUrl:Gs(We.staff(h),I.imageUrl),imagePosition:Hs(We.staff(h),I.imageUrl)})).find(h=>!!h.imageUrl);return{...I,imageUrl:(H==null?void 0:H.imageUrl)||void 0,imagePosition:(H==null?void 0:H.imagePosition)||Hs(We.staff(I.name),I.imageUrl)}}),v=["Madeline ARNAL","Guillaume Katchikian","Jonathan Kessler","Nicolas Naze"].map(I=>N.find(L=>L.name===I)).filter(I=>!!I),m=v[0],w=["Mathilde","Céline","Loris","Guillaume POMMEREAU"].map(I=>N.find(L=>L.name===I)).filter(I=>!!I),j=["Guillaume Katchikian + Boris Morand","Nicolas Naze + Hugo Revol","Shivam"].map(I=>N.find(L=>L.name===I)).filter(I=>!!I),A=["Référent UFOLEP 1","Référent UFOLEP 2","Référent UFOLEP 3","Référent UFOLEP 4","Référent UFOLEP 5","Référent UFOLEP 6"].map(I=>N.find(L=>L.name===I)).filter(I=>!!I),F=["Bénévoles, Table de Marque & Supporters"].map(I=>N.find(L=>L.name===I)).filter(I=>!!I),$=()=>{const I=Math.min(window.screen.availWidth-80,1320),L=Math.min(window.screen.availHeight-80,920),H=Math.max(20,Math.round((window.screen.availWidth-I)/2)),h=Math.max(20,Math.round((window.screen.availHeight-L)/2)),ie=window.open(g,"vace-partners-popup",`popup=yes,width=${I},height=${L},left=${H},top=${h},resizable=yes,scrollbars=yes`);if(ie){ie.focus();return}p(!0)};Z.useEffect(()=>{if(!k)return;const I=document.body.style.overflow;document.body.style.overflow="hidden";const L=H=>{H.key==="Escape"&&p(!1)};return window.addEventListener("keydown",L),()=>{document.body.style.overflow=I,window.removeEventListener("keydown",L)}},[k]);const Y={amber:{badge:"bg-amber-400 text-slate-950 border-amber-300",icon:"bg-amber-400/15 text-amber-300 border-amber-300/40",panel:"border-blue-900/60 shadow-slate-950/30"},blue:{badge:"bg-sky-300 text-slate-950 border-sky-200",icon:"bg-sky-400/15 text-sky-200 border-sky-300/30",panel:"border-blue-900/60 shadow-slate-950/30"},emerald:{badge:"bg-emerald-300 text-slate-950 border-emerald-200",icon:"bg-emerald-400/15 text-emerald-200 border-emerald-300/30",panel:"border-blue-900/60 shadow-slate-950/30"},rose:{badge:"bg-rose-300 text-slate-950 border-rose-200",icon:"bg-rose-400/15 text-rose-200 border-rose-300/30",panel:"border-blue-900/60 shadow-slate-950/30"}},G=[{id:"bureau",title:"Le Bureau",subtitle:"Les 4 fonctions de gouvernance du club",quote:"Structurer le club, soutenir les familles et faire avancer le projet associatif.",summary:"Le bureau pilote les grandes orientations, la gestion administrative et la continuité du club tout au long de la saison.",accent:"amber"},{id:"jeunes",title:"Entraîneurs des sections jeunes",subtitle:"Les éducateurs M9 à M18 du club",quote:"Former, rassurer et transmettre le plaisir du jeu dès les premiers échanges.",summary:"Des éducateurs investis pour accompagner les jeunes sur la découverte, les fondamentaux techniques et les premiers repères collectifs.",accent:"blue"},{id:"adultes",title:"Entraîneurs Adultes",subtitle:"Pôle compétition et animation des sections adultes",quote:"Exigence, intensité et plaisir de jouer pour tous les collectifs adultes.",summary:"Encadrement des équipes seniors et loisirs avec un équilibre entre progression, cohésion et performance.",accent:"emerald"},{id:"ufolep",title:"Responsables Loisirs UFOLEP",subtitle:"Coordination des équipes loisirs mixtes et des rencontres UFOLEP",quote:"Faire vivre le volley loisir avec sérieux, accueil et une vraie culture de convivialité.",summary:"Les responsables UFOLEP accompagnent l’organisation des équipes, la logistique des rencontres et l’animation de la section loisirs.",accent:"blue"},{id:"benevoles",title:"Bénévoles",subtitle:"Les forces vives qui font tourner la vie du club",quote:"Sans eux, pas de matchs, pas d’événements, pas de club qui vive aussi fort.",summary:"Buvette, accueil, table de marque, logistique et soutien en tribune: la vie associative repose sur leur engagement.",accent:"rose"}],V=[{title:"Président",member:v.find(I=>I.name==="Madeline ARNAL"),memberName:(m==null?void 0:m.name)||"Madeline ARNAL",detail:(m==null?void 0:m.role)||"Pilotage associatif et représentation du club"},{title:"Vice-Président",member:v.find(I=>I.name==="Guillaume Katchikian"),memberName:"Guillaume Katchikian",detail
420:"Soutien opérationnel et relais de gouvernance"},{title:"Trésorier",member:v.find(I=>I.name==="Jonathan Kessler"),memberName:"Jonathan Kessler",detail:"Budget, cotisations et suivi financier"},{title:"Secrétaire",member:v.find(I=>I.name==="Nicolas Naze"),memberName:"Nicolas Naze",detail:"Administration, licences et communication interne"}],K=I=>t.jsx("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-5 mt-5",children:I.map((L,H)=>t.jsxs("div",{className:"rounded-[28px] bg-white/6 border border-white/10 overflow-hidden flex flex-col sm:flex-row justify-between hover:border-amber-300/60 hover:bg-white/[0.08] hover:-translate-y-1 hover:shadow-2xl hover:shadow-slate-950/30 transition-all group duration-300 backdrop-blur-sm",children:[L.imageUrl&&t.jsxs("div",{className:"relative w-full sm:w-44 lg:w-48 shrink-0 overflow-hidden bg-slate-950",children:[t.jsx("img",{src:L.imageUrl,alt:L.name,referrerPolicy:"no-referrer",className:"w-full h-56 sm:h-full object-cover group-hover:scale-105 transition-transform duration-500",style:{objectPosition:L.imagePosition},loading:"lazy"}),t.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-[#071129] via-[#071129]/45 to-transparent"}),t.jsx("div",{className:"absolute bottom-3 left-3",children:t.jsx("span",{className:"text-[10px] font-black uppercase px-3 py-1 rounded-full bg-amber-400 text-slate-950 shadow-lg shadow-amber-500/20 border border-amber-200",children:L.badge})})]}),t.jsxs("div",{className:"p-5 sm:p-6 flex-1 flex flex-col justify-between text-white min-w-0",children:[t.jsxs("div",{children:[t.jsx("h4",{className:"text-base font-black text-white font-display group-hover:text-amber-200 transition-colors leading-tight",children:L.name}),t.jsx("p",{className:"text-xs font-bold text-amber-300 mt-1 mb-2 uppercase tracking-wide",children:L.role}),t.jsx("p",{className:"text-sm text-slate-200 leading-relaxed",children:L.description})]}),t.jsxs("div",{className:"mt-5 pt-4 border-t border-white/10 flex flex-wrap items-center justify-between gap-3",children:[t.jsxs("div",{className:"min-w-0",children:[t.jsx("span",{className:"block text-[10px] text-amber-300 uppercase font-bold tracking-wider",children:"Contact"}),t.jsx("span",{className:"font-semibold text-white text-sm break-words",children:L.contact||"Valence ACE Volley-Ball"})]}),L.contact&&L.contact.includes("@")?t.jsxs("a",{href:`mailto:${L.contact.split(" • ")[0]}`,className:"inline-flex items-center gap-2 px-4 py-2 rounded-xl bg-white/8 hover:bg-white/12 border border-white/10 text-xs font-bold text-slate-100 transition-all",children:[t.jsx(wl,{className:"w-3.5 h-3.5 text-amber-300"}),t.jsx("span",{children:"Contacter"})]}):L.contact?t.jsxs("a",{href:`tel:${L.contact.replace(/[^\d+]/g,"")}`,className:"inline-flex items-center gap-2 px-4 py-2 rounded-xl bg-white/8 hover:bg-white/12 border border-white/10 text-xs font-bold text-slate-100 transition-all",children:[t.jsx(qo,{className:"w-3.5 h-3.5 text-amber-300"}),t.jsx("span",{children:"Appeler"})]}):null]})]})]},H))}),te=[{icon:ih,title:"Un Club 100% Convivial",description:"Chez Valence ACE, le plaisir de jouer passe avant tout ! Nous cultivons la bonne humeur, le partage, le respect et les célèbres goûters et apéros d'après-match.",color:"bg-amber-500/15 text-amber-800 border-amber-300"},{icon:Jr,title:"Formation Jeunes & Pédagogie",description:"Des collectifs d’entraînement M9 et M11 mixtes aux M18 Coupe de France, Guillaume Pommereau et nos éducatrices diplômées transmettent la passion du ballon avec bienveillance.",color:"bg-blue-500/15 text-blue-800 border-blue-300"},{icon:px,title:"Loisirs & Détente UFOLEP",description:"Une section Loisirs UFOLEP mixte de 6 équipes très active pour les adultes qui veulent pratiquer le volley entre amis sans pression, avec une 3ème mi-temps chaleureuse.",color:"bg-emerald-500/15 text-emerald-800 border-emerald-300"},{icon:hx,title:"Fêtes, Barbecues & Solidarité",description:"Tournoi d'été Esti'Voll, Nuit festive du volley déguisée, et Tournoi solidaire avec Les Cardinals pour la Ligue contre le cancer : le club est une vraie famille.",color:"bg-rose-500/15 text-rose-800 border-rose-300"}],J=[{year:"2006",title:"Fondation du Club à Valence",desc:"Création de l'association loi 1901 par des passionnés désireux d'offrir une structure formatrice et accessible à tous les Valentinois."},{year:"2012",title:"Développement de l'École de Volley",desc:"Lancement des séances d'éveil moteur pour les tout-petits et structuration des collectifs poussins/benjamins."},{year:"2018",title:"Montée en Prénationale & 6 Équipes Loisirs",desc:"Éclosion de l'équipe fanion masculine au niveau régional et essor spectaculaire de la section Loisirs UFOLEP."},{year:"2026",title:"20 Ans de Passion & Projet Avenir",desc:"Célébration des 20 années d'existence : 9 collectifs actifs, 3 gymnases, affiliation FFVB et label club formateur."}];return t.jsx("section",{id:"club",className:"py-20 bg-gradient-to-b from-white via-slate-50 to-slate-100 border-b border-slate-200 logo-watermark-section",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-12",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-amber-100 border border-amber-300 text-amber-800 text-xs font-black uppercase tracking-wider mb-3",children:[t.jsx(fx,{className:"w-3.5 h-3.5 text-rose-500 fill-rose-500"}),t.jsx("span",{children:"20 Ans d'Histoire & Projet Associatif (2006 - 2026)"})]}),t.jsxs("h2",{className:"text-3xl sm:text-4xl lg:text-5xl font-black text-slate-900 font-display",children:["Le Club, Ses Valeurs & Son"," ",t.jsx("span",{className:"bg-gradient-to-r from-amber-600 to-orange-600 bg-clip-text text-transparent",children:"Bureau Directeur"})]}),t.jsxs("p",{className:"text-slate-600 mt-3 text-base sm:text-lg leading-relaxed",children:["Fondé en 2006 à Valence, ",t.jsx("strong",{children:"Valence ACE Volley-Ball"})," est une grande famille sportive portée par des bénévoles engagés, un bureau dévoué et une équipe technique diplômée."]})]}),t.jsxs("div",{className:"flex flex-wrap justify-center gap-2 mb-12",children:[t.jsxs("button",{onClick:()=>f("bureau"),className:`px-5 py-2.5 rounded-2xl font-black text-xs sm:text-sm transition-all flex items-center gap-2 cursor-pointer ${o==="bureau"?"bg-gradient-to-r from-amber-500 to-orange-500 text-slate-950 shadow-lg shadow-amber-500/20 scale-105":"bg-white text-slate-700 hover:bg-slate-100 border border-slate-200"}`,children:[t.jsx(_u,{className:"w-4 h-4"}),t.jsxs("span",{children:["Le Bureau & Dirigeants (",Cu.length,")"]})]}),t.jsxs("button",{onClick:()=>f("valeurs"),className:`px-5 py-2.5 rounded-2xl font-black text-xs sm:text-sm transition-all flex items-center gap-2 cursor-pointer ${o==="valeurs"?"bg-gradient-to-r from-amber-500 to-orange-500 text-slate-950 shadow-lg shadow-amber-500/20 scale-105":"bg-white text-slate-700 hover:bg-slate-100 border border-slate-200"}`,children:[t.jsx(fx,{className:"w-4 h-4"}),t.jsx("span",{children:"Nos 4 Piliers & Valeurs"})]}),t.jsxs("button",{onClick:()=>f("histoire"),className:`px-5 py-2.5 rounded-2xl font-black text-xs sm:text-sm transition-all flex items-center gap-2 cursor-pointer ${o==="histoire"?"bg-gradient-to-r from-amber-500 to-orange-500 text-slate-950 shadow-lg shadow-amber-500/20 scale-105":"bg-white text-slate-700 hover:bg-slate-100 border border-slate-200"}`,children:[t.jsx(Ft,{className:"w-4 h-4"}),t.jsx("span",{children:"20 Ans d'Histoire (2006-2026)"})]})]}),o==="bureau"&&t.jsx("div",{className:"space-y-10 animate-fadeIn",children:t.jsx("div",{className:"space-y-3",children:G.map(I=>{const L=c===I.id,H=Y[I.accent];return t.jsxs("div",{className:`rounded-[30px] border bg-gradient-to-br from-[#0d1735] via-[#16224b] to-[#0d1735] text-white transition-all overflow-hidden ${H.panel} ${L?"shadow-2xl -translate-y-0.5":"shadow-md"}`,children:[t.jsxs("button",{type:"button",onClick:()=>b(L?"":I.id),className:`w-full px-4 sm:px-5 text-left flex items-start justify-between gap-3 cursor-pointer transition-all ${L?"py-7":"py-4"}`,children:[t.jsxs("div",{className:"flex items-start gap-3 min-w-0 flex-1",children:[t.jsxs("div",{className:`rounded-2xl border flex items-center justify-center shrink-0 transition-all ${H.icon} ${L?"w-12 h-12 mt-1":"w-9 h-9 mt-0.5"}`,children:[I.id==="bureau"&&t.jsx(_u,{className:"w-5 h-5"}),I.id==="jeunes"&&t.jsx(Jr,{className:"w-5 h-5"}),I.id==="adultes"&&t.jsx(Zr,{className:"w-5 h-5"}),I.id==="ufolep"&&t.jsx(px,{className:"w-5 h-5"}),I.id==="benevoles"&&t.jsx(hx,{className:"w-5 h-5"})]}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("span",{className:`inline-flex px-2.5 py-1 rounded-full border text-[9px] font-black uppercase tracking-[0.16em] mb
420-1.5 ${H.badge}`,children:I.title}),t.jsx("p",{className:`font-semibold text-slate-100 leading-snug ${L?"text-base sm:text-lg":"text-sm"}`,children:I.subtitle}),t.jsxs("h3",{className:`font-black text-white font-display leading-[1.05] max-w-4xl ${L?"text-[1.35rem] sm:text-[2.25rem] mt-4":"text-lg sm:text-xl mt-2 line-clamp-2 max-w-3xl"}`,children:['"',I.quote,'"']}),L?t.jsx("p",{className:"text-sm sm:text-base text-slate-200 leading-relaxed mt-4 max-w-3xl",children:I.summary}):t.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-2 text-xs",children:[t.jsx("p",{className:"max-w-2xl text-slate-300 line-clamp-1 leading-relaxed",children:I.summary}),t.jsx("span",{className:"inline-flex items-center rounded-full border border-white/10 bg-white/5 px-2.5 py-0.5 font-bold text-amber-200",children:"Voir le détail"})]})]})]}),t.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[t.jsx("span",{className:"hidden md:inline text-[11px] font-bold text-amber-200",children:L?"Réduire":"Découvrir"}),t.jsx("div",{className:`rounded-2xl border border-white/10 bg-white/5 flex items-center justify-center transition-all ${L?"w-11 h-11":"w-9 h-9"}`,children:t.jsx(Ut,{className:`w-5 h-5 text-amber-300 transition-transform ${L?"rotate-180":""}`})})]})]}),L&&I.id==="bureau"&&t.jsxs("div",{className:"px-5 sm:px-6 pb-6 pt-2 border-t border-white/10 bg-gradient-to-b from-white/[0.03] to-transparent",children:[t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-4 mt-4",children:V.map(h=>{var ie;return t.jsxs("div",{className:"rounded-[28px] bg-white/6 border border-white/10 p-5 backdrop-blur-sm",children:[((ie=h.member)==null?void 0:ie.imageUrl)&&t.jsx("div",{className:"flex h-28 w-28 items-center justify-center overflow-hidden rounded-[22px] bg-slate-950 mb-4 border border-white/10",children:t.jsx("img",{src:h.member.imageUrl,alt:h.memberName,referrerPolicy:"no-referrer",className:"h-full w-full object-cover",style:{objectPosition:h.member.imagePosition},loading:"lazy"})}),t.jsx("span",{className:`inline-flex px-3 py-1 rounded-full border text-[10px] font-black uppercase tracking-[0.16em] ${H.badge}`,children:h.title}),t.jsx("h4",{className:"text-base font-black text-white font-display mt-3 leading-tight",children:h.memberName}),t.jsx("p",{className:"text-sm text-slate-200 mt-2 leading-relaxed",children:h.detail})]},h.title)})}),t.jsxs("div",{className:"rounded-[32px] bg-gradient-to-br from-[#0b1430] via-[#1b2a59] to-[#10193b] text-white p-8 relative overflow-hidden shadow-2xl shadow-slate-950/30 border border-white/10 mt-6",children:[t.jsx("div",{className:"absolute top-0 right-0 w-60 h-60 bg-amber-500/10 rounded-full blur-3xl pointer-events-none"}),t.jsxs("div",{className:"flex items-center justify-between gap-4 mb-4",children:[t.jsx("span",{className:"px-4 py-1.5 rounded-full bg-amber-400 text-slate-950 font-black text-xs uppercase tracking-[0.12em]",children:"Vie associative"}),t.jsxs("span",{className:"text-xs text-amber-300 font-bold flex items-center gap-1",children:[t.jsx(Ka,{className:"w-3.5 h-3.5"}),"Depuis 2006"]})]}),t.jsx("h3",{className:"text-2xl sm:text-3xl font-extrabold text-white font-display",children:'"Faire grandir les jeunes et partager des moments inoubliables"'}),t.jsx("p",{className:"text-sm text-slate-200 mt-4 leading-relaxed",children:"Le bureau s'appuie sur des bénévoles investis pour faire vivre les licences, les événements, les finances, l'accueil des familles et la coordination des temps forts du club."}),(m==null?void 0:m.imageUrl)&&t.jsxs("div",{className:"mt-8 pt-6 border-t border-slate-700/80 flex flex-wrap items-center justify-between gap-4",children:[t.jsxs("div",{className:"flex items-center gap-3.5",children:[t.jsx("img",{src:m.imageUrl,alt:m.name,referrerPolicy:"no-referrer",className:"w-14 h-14 rounded-2xl object-cover border-2 border-amber-400 shadow-md",style:{objectPosition:m.imagePosition}}),t.jsxs("div",{children:[t.jsx("h4",{className:"font-extrabold text-white text-base",children:m.name}),t.jsx("p",{className:"text-xs text-amber-400 font-bold",children:m.role})]})]}),t.jsxs("a",{href:`tel:${qe.phonePrimary.replace(/\s/g,"")}`,className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 border border-slate-600 text-xs font-bold text-slate-200 hover:text-white transition-all flex items-center gap-2",children:[t.jsx(qo,{className:"w-3.5 h-3.5 text-amber-400"}),t.jsx("span",{children:qe.phonePrimary})]})]})]})]}),L&&I.id==="jeunes"&&t.jsx("div",{className:"px-5 sm:px-6 pb-6 pt-2 border-t border-white/10 bg-gradient-to-b from-white/[0.03] to-transparent",children:K(w)}),L&&I.id==="adultes"&&t.jsx("div",{className:"px-5 sm:px-6 pb-6 pt-2 border-t border-white/10 bg-gradient-to-b from-white/[0.03] to-transparent",children:K(j)}),L&&I.id==="ufolep"&&t.jsx("div",{className:"px-5 sm:px-6 pb-6 pt-2 border-t border-white/10 bg-gradient-to-b from-white/[0.03] to-transparent",children:K(A)}),L&&I.id==="benevoles"&&t.jsx("div",{className:"px-5 sm:px-6 pb-6 pt-2 border-t border-white/10 bg-gradient-to-b from-white/[0.03] to-transparent",children:K(F)})]},I.id)})})}),o==="valeurs"&&t.jsxs("div",{className:"space-y-8 animate-fadeIn",children:[t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:te.map((I,L)=>{const H=I.icon;return t.jsx("div",{className:"p-6 rounded-3xl bg-white border border-slate-200 hover:border-amber-400 hover:shadow-xl transition-all flex flex-col justify-between group",children:t.jsxs("div",{children:[t.jsx("div",{className:`w-12 h-12 rounded-2xl flex items-center justify-center border ${I.color} mb-4 group-hover:scale-110 transition-transform`,children:t.jsx(H,{className:"w-6 h-6"})}),t.jsx("h3",{className:"text-lg font-black text-slate-900 font-display mb-2",children:I.title}),t.jsx("p",{className:"text-xs sm:text-sm text-slate-600 leading-relaxed",children:I.description})]})},L)})}),t.jsx("div",{className:"p-8 rounded-3xl bg-gradient-to-r from-slate-900 via-blue-950 to-slate-900 text-white border border-slate-800",children:t.jsxs("div",{className:"max-w-3xl",children:[t.jsx("span",{className:"text-xs font-black uppercase text-amber-400 tracking-wider block mb-2",children:"La Charte du Joueur & du Supporter"}),t.jsx("h3",{className:"text-2xl font-bold font-display",children:"Respect, Fair-Play et Plaisir Partagé"}),t.jsx("p",{className:"text-xs sm:text-sm text-slate-300 mt-2 leading-relaxed",children:"À Valence ACE, nous prônons l’accueil inconditionnel de tous les profils, le soutien indéfectible à nos arbitres bénévoles et le respect mutuel des adversaires sur tous les terrains."})]})})]}),o==="histoire"&&t.jsxs("div",{className:"space-y-8 animate-fadeIn",children:[t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:J.map((I,L)=>t.jsxs("div",{className:"p-6 rounded-3xl bg-white border border-slate-200 shadow-sm relative",children:[t.jsx("div",{className:"text-3xl font-black text-amber-500 font-display mb-2",children:I.year}),t.jsx("h4",{className:"text-base font-black text-slate-900 font-display mb-2",children:I.title}),t.jsx("p",{className:"text-xs text-slate-600 leading-relaxed",children:I.desc})]},L))}),t.jsxs("div",{className:"p-6 rounded-3xl bg-amber-50 border border-amber-200 text-amber-950 text-center max-w-2xl mx-auto",children:[t.jsx("h4",{className:"font-black text-lg font-display",children:"Un 
420immense MERCI à tous ceux qui écrivent cette histoire !"}),t.jsx("p",{className:"text-xs text-amber-800 mt-1",children:"Joueurs d'hier et d'aujourd'hui, entraîneurs, parents, supporters et partenaires municipaux."})]})]}),t.jsxs("div",{id:"soutiens-agrements-officiels",className:"mt-16 pt-10 border-t border-slate-200",children:[t.jsxs("div",{className:"text-center mb-8",children:[t.jsx("span",{className:"text-xs font-black uppercase tracking-widest text-blue-700 bg-blue-50 px-3 py-1 rounded-full border border-blue-200 inline-block mb-2",children:"Soutiens & Agréments Officiels"}),t.jsx("h3",{className:"text-xl sm:text-2xl font-black text-slate-900 font-display",children:"Nos Partenaires Institutionnels, Fédéraux & Éducatifs"}),t.jsx("p",{className:"text-xs text-slate-500 mt-1 max-w-xl mx-auto",children:"Grâce à la Ville de Valence et aux collectivités locales, nous disposons d'infrastructures et de matériel adaptés."})]}),t.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:Wx.map(I=>t.jsxs("a",{href:I.url,target:"_blank",rel:"noopener noreferrer",className:"group p-4 rounded-2xl bg-white border border-slate-200 hover:border-amber-400 hover:shadow-lg transition-all duration-300 flex items-center gap-4 text-left",children:[t.jsx("div",{className:"w-28 sm:w-32 h-14 bg-slate-50 rounded-xl p-1.5 border border-slate-100 flex items-center justify-center shrink-0 group-hover:bg-amber-50/50 transition-colors",children:t.jsx(fh,{id:I.id,logoUrl:I.logoUrl,name:I.name,className:"w-full h-full object-contain"})}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsxs("div",{className:"flex items-center justify-between gap-1",children:[t.jsx("h4",{className:"text-sm font-black text-slate-900 group-hover:text-amber-600 transition-colors truncate",children:I.name}),t.jsx(Ru,{className:"w-3.5 h-3.5 text-slate-400 group-hover:text-amber-600 shrink-0 transition-transform group-hover:translate-x-0.5 group-hover:-translate-y-0.5"})]}),t.jsx("p",{className:"text-[11px] text-slate-500 mt-0.5 line-clamp-2 leading-snug",children:I.role})]})]},I.id))}),t.jsxs("div",{className:"mt-8 flex flex-col items-center justify-center gap-3 text-center",children:[t.jsxs("button",{type:"button",onClick:$,className:"group inline-flex min-h-[4.5rem] items-center gap-4 roun
420ded-full bg-gradient-to-r from-amber-300 via-amber-400 to-orange-500 px-9 py-5 text-base font-black text-slate-950 shadow-[0_22px_55px_rgba(249,115,22,0.34)] ring-1 ring-amber-200/70 transition-all duration-200 hover:-translate-y-1 hover:scale-[1.01] hover:shadow-[0_28px_70px_rgba(249,115,22,0.42)] sm:min-h-[5rem] sm:px-12 sm:text-lg",children:[t.jsx(Ka,{className:"h-5 w-5 transition-transform duration-200 group-hover:rotate-12 group-hover:scale-110 sm:h-6 sm:w-6"}),t.jsx("span",{children:"Devenir un partenaire"}),t.jsx(ai,{className:"h-5 w-5 transition-transform duration-200 group-hover:translate-x-1 sm:h-6 sm:w-6"})]}),t.jsx("p",{className:"max-w-xl text-xs text-slate-500",children:"Devenez partenaire du club, découvrez nos offres et propositions de partenariats dans un dossier complet."})]})]}),k&&t.jsx("div",{className:"fixed inset-0 z-50 overflow-y-auto bg-slate-950/80 p-4 backdrop-blur-sm sm:p-6",onClick:()=>p(!1),children:t.jsxs("div",{role:"dialog","aria-modal":"true","aria-labelledby":"partners-modal-title",className:"relative mx-auto my-2 w-full max-w-[96rem] overflow-hidden rounded-[2rem] border border-slate-200 bg-slate-50 shadow-2xl sm:my-4",onClick:I=>I.stopPropagation(),children:[t.jsxs("div",{className:"sticky top-0 z-20 flex items-start justify-between gap-4 border-b border-slate-200 bg-white/95 px-5 py-4 backdrop-blur sm:px-6",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-[11px] font-extrabold uppercase tracking-[0.2em] text-blue-700",children:"Soutiens & agréments officiels"}),t.jsx("h3",{id:"partners-modal-title",className:"mt-1 text-lg font-black text-slate-950 sm:text-xl",children:"Partenaires institutionnels, fédéraux et privés"}),t.jsx("p",{className:"mt-2 max-w-2xl text-sm text-slate-600",children:"Le club s'appuie sur un réseau local solide pour proposer des créneaux, du matériel, un cadre compétitif et un accueil durable des jeunes comme des adultes."})]}),t.jsx("button",{type:"button",onClick:()=>p(!1),className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-slate-100 text-slate-500 transition-colors hover:bg-slate-200 hover:text-slate-900","aria-label":"Fermer la fenêtre partenaires",children:t.jsx(Xr,{className:"h-5 w-5"})})]}),t.jsx("div",{className:"p-2 sm:p-3",children:t.jsx("div",{className:"overflow-hidden rounded-[1.5rem] border border-slate-200 bg-white shadow-inner",children:t.jsx("iframe",{src:g,title:"Dossier sponsors Valence ACE Volley-Ball",className:"h-[82vh] w-full border-0 lg:h-[86vh]"})})})]})})]})})},a2=()=>{const{content:o}=ii(),[f,c]=Z.useState(null),b=Array.isArray(o==null?void 0:o.displayedGymIds)&&o.displayedGymIds.length>0?o.displayedGymIds:Vs.map(g=>g.id),k=Vs.filter(g=>b.includes(g.id)).map(g=>({...g,imageUrl:Gs(We.gym(g.id),g.imageUrl),imagePosition:Hs(We.gym(g.id),g.imageUrl)})),p=(g,y)=>{navigator.clipboard.writeText(g),c(y),setTimeout(()=>c(null),2e3)};return t.jsx("section",{id:"gymnases",className:"py-20 bg-slate-900 text-white",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[t.jsxs("span",{className:"text-xs font-extrabold uppercase tracking-widest text-amber-400 bg-amber-400/10 px-3 py-1 rounded-full border border-amber-400/20 inline-flex items-center gap-1.5",children:[t.jsx(si,{className:"w-3.5 h-3.5 text-amber-400"}),t.jsx("span",{children:"Nos Équipements à Valence"})]}),t.jsx("h2",{className:"text-3xl sm:text-4xl font-extrabold text-white mt-3 font-display",children:"Les Gymnases & Lieux d'Entraînement"}),t.jsxs("p",{className:"text-slate-400 mt-2 text-base",children:["Le club évolue principalement sur le complexe du ",t.jsx("strong",{children:"Gymnase Alain Zammit"})," (3 terrains), le ",t.jsx("strong",{children:"Gymnase Denis Maurin"})," (matchs du samedi), et les salles associées de la ",t.jsx("strong",{children:"Ville de Valence"})," (JF Lamour, IND, INSPE, Omnisport)."]})]}),t.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 mb-12",children:k.map(g=>t.jsxs("div",{className:`rounded-3xl border flex flex-col justify-between transition-all overflow-hidden group ${g.primary?"bg-slate-800/90 border-amber-400/50 ring-1 ring-amber-400/30 shadow-2xl":"bg-slate-800/60 border-slate-700 shadow-xl"}`,children:[g.imageUrl&&t.jsxs("div",{className:"relative aspect-[16/9] w-full overflow-hidden bg-slate-950 border-b border-slate-700/80",children:[t.jsx("img",{src:g.imageUrl,alt:g.name,referrerPolicy:"no-referrer",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-700",style:{objectPosition:g.imagePosition},loading:"lazy"}),t.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-slate-950 via-slate-950/30 to-transparent"}),t.jsx("div",{className:"absolute top-4 left-4",children:t.jsx("span",{className:`text-xs font-extrabold uppercase px-3 py-1 rounded-full border backdrop-blur-md shadow-md ${g.primary?"bg-amber-400/95 text-slate-950 border-amber-300 font-black":"bg-blue-600/90 text-white border-blue-400/50"}`,children:g.badge})}),t.jsxs("div",{className:"absolute bottom-3 left-4 right-4 flex items-center justify-between text-xs text-white",children:[t.jsx("span",{className:"text-slate-300 font-medium truncate",children:g.photoCaption||g.type}),t.jsx("span",{className:"text-[11px] bg-slate-900/80 px-2.5 py-0.5 rounded-full border border-slate-700 text-amber-300 shrink-0",children:"Valence (26)"})]})]}),t.jsxs("div",{className:"p-6 sm:p-7 flex-1 flex flex-col justify-between",children:[t.jsxs("div",{children:[t.jsxs("div",{className:"mb-4",children:[t.jsx("h3",{className:"text-2xl font-extrabold text-white font-display",children:g.name}
420),t.jsx("p",{className:"text-xs text-slate-400 font-medium mt-1",children:g.type})]}),t.jsxs("div",{className:"p-3.5 rounded-xl bg-slate-950/80 border border-slate-700/80 flex items-center justify-between gap-3 mb-6",children:[t.jsxs("div",{className:"flex items-center gap-2.5 text-xs sm:text-sm text-slate-200",children:[t.jsx(Bt,{className:"w-4 h-4 text-amber-400 shrink-0"}),t.jsx("span",{children:g.address})]}),t.jsx("button",{onClick:()=>p(g.address,g.id),className:"p-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs flex items-center gap-1 border border-slate-700 transition-colors shrink-0 cursor-pointer",title:"Copier l'adresse",children:f===g.id?t.jsxs(t.Fragment,{children:[t.jsx(Yr,{className:"w-3.5 h-3.5 text-emerald-400"}),t.jsx("span",{className:"text-emerald-400",children:"Copié !"})]}):t.jsxs(t.Fragment,{children:[t.jsx(lh,{className:"w-3.5 h-3.5"}),t.jsx("span",{children:"Copier"})]})})]}),t.jsxs("div",{className:"space-y-2 mb-6",children:[t.jsx("span",{className:"text-xs font-bold uppercase tracking-wider text-slate-400 block mb-2",children:"Équipements & Confort :"}),g.features.map((y,N)=>t.jsxs("div",{className:"flex items-center gap-2 text-xs text-slate-300",children:[t.jsx(Ca,{className:"w-3.5 h-3.5 text-amber-400 shrink-0"}),t.jsx("span",{children:y})]},N))]}),t.jsx("div",{className:"p-3 rounded-xl bg-slate-900 border border-slate-800 space-y-1.5 text-xs text-slate-300",children:t.jsxs("div",{className:"flex items-center gap-2 text-slate-400",children:[t.jsx(wb,{className:"w-3.5 h-3.5 text-blue-400"}),t.jsxs("span",{children:[t.jsx("strong",{children:"Accès Transports :"})," ",g.access]})]})})]}),t.jsx("div",{className:"mt-8 pt-4 border-t border-slate-700 flex items-center justify-between",children:t.jsxs("a",{href:g.mapsUrl,target:"_blank",rel:"noopener noreferrer",className:"w-full py-3 rounded-xl bg-gradient-to-r from-amber-400 to-amber-500 hover:from-amber-300 hover:to-amber-400 text-slate-950 font-bold text-xs sm:text-sm flex items-center justify-center gap-2 shadow-lg shadow-amber-500/20 transition-all cursor-pointer",children:[t.jsx(jg,{className:"w-4 h-4"}),t.jsx("span",{children:"Ouvrir l'itinéraire Google Maps"})]})})]})]},g.id))})]})})},s2=({onOpenImageManager:o})=>{const[f,c]=Z.useState("all"),[b,k]=Z.useState(null),[p,g]=Z.useState(!1),y=[{key:"matchs",title:"Matchs & Compétitions",description:"Les actions fortes, les scores serrés et les instants de tension au filet.",kicker:"Terrain & intensité"},{key:"jeunes",title:"École de Volley & Jeunes",description:"Les premiers gestes, les progrès visibles et la joie de jouer ensemble.",kicker:"Apprentissage & progression"},{key:"tournois",title:"Tournois & Esti'Voll",description:"Les formats plus libres, les événements d’été et l’énergie des journées spéciales.",kicker:"Ambiance & événements"},{key:"vie_du_club",title:"Convivialité & Festivités",description:"Les moments de vie du club, les célébrations et la culture associative.",kicker:"Vie du club"}],N=Do.map(O=>({...O,imageUrl:Gs(We.gallery(O.id),O.imageUrl),imagePosition:Hs(We.gallery(O.id),O.imageUrl)})),v=N.filter(O=>f==="all"?!0:O.category===f).filter(O=>!!O.imageUrl),m=O=>{const F=v.findIndex($=>$.id===O);F>=0&&k(F)},T=()=>{k(null)},w=()=>{b!==null&&k(O=>O>0?O-1:v.length-1)},S=()=>{b!==null&&k(O=>O<v.length-1?O+1:0)},j=O=>{navigator.clipboard.writeText(O.imageUrl),g(!0),setTimeout(()=>g(!1),2500)},E=b!==null?v[b]:null,A=O=>{const F=N.filter(K=>K.category===O.key);if(f!=="all"&&f!==O.key)return null;const $=F.find(K=>!!K.imageUrl)||F[0],G=($?F.filter(K=>K.id!==$.id):F).slice(0,4),V=F.filter(K=>!!K.imageUrl).length;return t.jsxs("article",{className:"overflow-hidden rounded-[32px] border border-slate-800 bg-slate-950/60 shadow-[0_24px_80px_rgba(15,23,42,0.35)]",children:[t.jsxs("div",{className:"flex flex-col gap-5 border-b border-slate-800/70 p-5 sm:p-6 lg:flex-row lg:items-end lg:justify-between",children:[t.jsxs("div",{className:"max-w-3xl",children:[t.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-amber-400/20 bg-amber-400/10 px-3 py-1 text-[11px] font-extrabold uppercase tracking-[0.22em] text-amber-300",children:[t.jsx(Ka,{className:"h-3.5 w-3.5"}),O.kicker]}),t.jsx("h3",{className:"mt-3 text-2xl font-extrabold text-white font-display sm:text-3xl",children:O.title}),t.jsx("p",{className:"mt-2 max-w-2xl text-sm text-slate-400 sm:text-base",children:O.description})]}),t.jsxs("button",{type:"button",onClick:()=>c(O.key),className:`inline-flex items-center gap-2 rounded-xl px-4 py-2 text-xs font-bold transition-all ${f===O.key?"bg-amber-400 text-slate-950 shadow-md shadow-amber-400/20":"bg-slate-800/80 text-slate-200 border border-slate-700 hover:bg-slate-700"}`,children:[t.jsx($g,{className:"h-4 w-4"}),V,"/",F.length," visuel",F.length>
4201?"s":""]})]}),t.jsxs("div",{className:"grid gap-4 p-5 sm:p-6 xl:grid-cols-[minmax(0,1.4fr)_minmax(300px,0.6fr)]",children:[$&&$.imageUrl?t.jsxs("button",{type:"button",onClick:()=>m($.id),className:"group relative min-h-[28rem] overflow-hidden rounded-[30px] border border-slate-800 bg-slate-900 text-left shadow-2xl transition-transform duration-300 hover:-translate-y-1",children:[t.jsxs("div",{className:"absolute inset-0",children:[t.jsx("img",{src:$.imageUrl,alt:$.title,referrerPolicy:"no-referrer",className:"h-full w-full object-cover transition-transform duration-500 group-hover:scale-[1.04]",style:{objectPosition:$.imagePosition},loading:"lazy"}),t.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-slate-950 via-slate-950/35 to-transparent"})]}),t.jsxs("div",{className:"absolute inset-x-0 top-0 flex items-start justify-between gap-3 p-4 sm:p-5",children:[t.jsx("span",{className:"rounded-full bg-amber-400/95 px-3 py-1 text-[11px] font-extrabold uppercase tracking-[0.18em] text-slate-950 shadow-lg",children:$.tag||"Valence ACE"}),t.jsx("span",{className:"rounded-full border border-white/10 bg-slate-950/65 px-3 py-1 text-[11px] font-bold text-slate-200 backdrop-blur-sm",children:"Vedette"})]}),t.jsx("div",{className:"absolute inset-x-0 bottom-0 p-5 sm:p-6",children:t.jsxs("div",{className:"max-w-2xl",children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-[11px] text-slate-300",children:[$.date&&t.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-white/10 bg-slate-950/55 px-3 py-1 backdrop-blur-sm",children:[t.jsx(Ft,{className:"h-3 w-3 text-amber-400"}),$.date]}),$.location&&t.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-white/10 bg-slate-950/55 px-3 py-1 backdrop-blur-sm",children:[t.jsx(Bt,{className:"h-3 w-3 text-blue-400"}),$.location.split(",")[0]]})]}),t.jsx("h4",{className:"mt-4 text-2xl font-extrabold text-white font-display sm:text-3xl",children:$.title}),t.jsx("p",{className:"mt-3 max-w-xl text-sm leading-6 text-slate-200/90 sm:text-base",children:$.caption})]})})]}):t.jsxs("div",{className:"flex min-h-[28rem] flex-col items-center justify-center rounded-[30px] border border-dashed border-amber-400/30 bg-slate-950/50 p-8 text-center text-slate-300 xl:col-span-2",children:[t.jsx(Sa,{className:"h-10 w-10 text-amber-400"}),t.jsx("p",{className:"mt-4 text-sm font-bold uppercase tracking-[0.24em] text-amber-300",children:"Emplacement éditorial"}),t.jsx("h4",{className:"mt-2 text-2xl font-extrabold text-white font-display",children:O.title}),t.jsx("p",{className:"mt-3 max-w-xl text-sm leading-6 text-slate-400",children:"Cette rubrique est prête à accueillir une image forte. Le slot est déjà là dans l’admin, il suffit d’y déposer un visuel."})]}),t.jsx("div",{className:"grid gap-4 sm:grid-cols-2 xl:grid-cols-1",children:G.length>0?G.map((K,te)=>K.imageUrl?t.jsx("button",{type:"button",onClick:()=>m(K.id),className:`group relative overflow-hidden rounded-[24px] border border-slate-800 bg-slate-900 text-left shadow-lg transition-all duration-300 hover:-translate-y-0.5 ${te===0?"sm:col-span-2 xl:col-span-1":""}`,children:t.jsxs("div",{className:`relative ${te===0?"aspect-[16/10]":"aspect-[4/3]"}`,children:[t.jsx("img",{src:K.imageUrl,alt:K.title,referrerPolicy:"no-referrer",className:"h-full w-full object-cover transition-transform duration-500 group-hover:scale-105",style:{objectPosition:K.imagePosition},loading:"lazy"}),t.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-slate-950 via-slate-950/25 to-transparent opacity-90"}),t.jsx("span",{className:"absolute left-3 top-3 rounded-full bg-amber-400/95 px-2.5 py-1 text-[10px] font-extrabold uppercase tracking-[0.18em] text-slate-950",children:K.tag||"Valence ACE"}),t.jsxs("div",{className:"absolute inset-x-0 bottom-0 p-4",children:[t.jsx("h4",{className:"text-sm font-bold text-white font-display line-clamp-1 group-hover:text-amber-300 transition-colors",children:K.title}),t.jsx("p",{className:"mt-1 line-clamp-2 text-[11px] leading-5 text-slate-300",children:K.caption}),t.jsxs("div",{className:"mt-2 flex flex-wrap gap-2 text-[10px] text-slate-300",children:[K.date&&t.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full bg-slate-950/60 px-2.5 py-1 backdrop-blur-sm",children:[t.jsx(Ft,{className:"h-3 w-3 text-amber-400"}),K.date]}),K.location&&t.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full bg-slate-950/60 px-2.5 py-1 backdrop-blur-sm",children:[t.jsx(Bt,{className:"h-3 w-3 text-blue-400"}),K.location.split(",")[0]]})]})]})]})},K.id):t.jsx("div",{className:`group relative overflow-hidden rounded-[24px] border border-dashed border-slate-700 bg-slate-950/55 text-left shadow-lg ${te===0?"sm:col-span-2 xl:col-span-1":""}`,children:t.jsxs("div",{className:`flex min-h-[13rem] flex-col justify-between p-4 ${te===0?"sm:min-h-[15rem]":""}`,children:[t.jsxs("div",{className:"flex items-start justify-between gap-3",children:[t.jsx("span",{className:"rounded-full border border-amber-400/25 bg-amber-400/10 px-2.5 py-1 text-[10px] font-extrabold uppercase tracking-[0.18em] text-amber-300",children:"Slot libre"}),t.jsx(Sa,{className:"h-4 w-4 text-slate-500"})]}),t.jsxs("div",{className:"mt-6",children:[t.jsx("h4",{className:"text-sm font-bold text-white font-display line-clamp-1",children:K.title}),t.jsx("p",{className:"mt-2 line-clamp-3 text-[11px] leading-5 text-slate-400",children:K.caption}),t.jsxs("div",{className:"mt-3 flex flex-wrap gap-2 text-[10px] text-slate-300",children:[K.date&&t.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full bg-slate-950/60 px-2.5 py-1 backdrop-blur-sm",children:[t.jsx(Ft,{className:"h-3 w-3 text-amber-400"}),K.date]}),K.location&&t.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full bg-slate-950/60 px-2.5 py-1 backdrop-blur-sm",children:[t.jsx(Bt,{className:"h-3 w-3 text-blue-400"}),K.location.split(",")[0]]})]})]})]})},K.id)):t.jsx("div",{className:"flex min-h-[12rem] items-center justify-center rounded-[24px] border border-dashed border-slate-700 bg-slate-950/40 p-6 text-center text-sm text-slate-400",children:"Cette rubrique est prête à accueillir un premier visuel."})})]})]}
420,O.key)};return t.jsxs("section",{id:"galerie",className:"py-20 bg-slate-900 text-white relative overflow-hidden border-b border-slate-800",children:[t.jsx("div",{className:"absolute top-0 right-0 w-96 h-96 bg-amber-500/10 rounded-full blur-3xl pointer-events-none"}),t.jsx("div",{className:"absolute bottom-0 left-0 w-96 h-96 bg-blue-600/10 rounded-full blur-3xl pointer-events-none"}),t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative",children:[t.jsxs("div",{className:"flex flex-col md:flex-row md:items-end justify-between gap-6 mb-12",children:[t.jsxs("div",{className:"max-w-2xl",children:[t.jsxs("span",{className:"text-xs font-extrabold uppercase tracking-widest text-amber-400 bg-amber-400/10 px-3.5 py-1 rounded-full border border-amber-400/20 inline-flex items-center gap-1.5 mb-3",children:[t.jsx(si,{className:"w-3.5 h-3.5 text-amber-400"}),t.jsx("span",{children:"Instants de Vie & Émotions du Club"})]}),t.jsx("h2",{className:"text-3xl sm:text-4xl font-extrabold text-white font-display",children:"Galerie Photos & Vie du Club"}),t.jsx("p",{className:"text-slate-400 mt-2 text-base",children:"Retrouvez en images l'énergie de nos entraînements, l'ambiance des tournois d'été Esti'Voll, la complicité des jeunes et la ferveur des matchs au Gymnase Zammit."})]}),o&&t.jsxs("button",{onClick:o,className:"inline-flex items-center gap-2 px-4 py-2.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-amber-300 hover:text-amber-200 border border-slate-700 hover:border-amber-400/50 text-xs font-bold transition-all shrink-0 cursor-pointer shadow-sm",title:"Gérer ou personnaliser les visuels du site",children:[t.jsx(Sa,{className:"w-4 h-4 text-amber-400"}),t.jsx("span",{children:"Personnaliser les visuels"})]})]}),t.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-10",children:[t.jsxs("button",{onClick:()=>c("all"),className:`px-4 py-2 rounded-xl text-xs sm:text-sm font-bold transition-all cursor-pointer ${f==="all"?"bg-amber-400 text-slate-950 shadow-md shadow-amber-400/20":"bg-slate-800/80 text-slate-300 border border-slate-700 hover:bg-slate-700"}`,children:["Toutes les Photos (",Do.length,")"]}),t.jsx("button",{onClick:()=>c("matchs"),className:`px-4 py-2 rounded-xl text-xs sm:text-sm font-bold transition-all cursor-pointer ${f==="matchs"?"bg-amber-400 text-slate-950 shadow-md shadow-amber-400/20":"bg-slate-800/80 text-slate-300 border border-slate-700 hover:bg-slate-700"}`,children:"Matchs & Compétitions"}),t.jsx("button",{onClick:()=>c("jeunes"),className:`px-4 py-2 rounded-xl text-xs sm:text-sm font-bold transition-all cursor-pointer ${f==="jeunes"?"bg-amber-400 text-slate-950 shadow-md shadow-amber-400/20":"bg-slate-800/80 text-slate-300 border border-slate-700 hover:bg-slate-700"}`,children:"École de Volley & Jeunes"}),t.jsx("button",{onClick:()=>c("tournois"),className:`px-4 py-2 rounded-xl text-xs sm:text-sm font-bold transition-all cursor-pointer ${f==="tournois"?"bg-amber-400 text-slate-950 shadow-md shadow-amber-400/20":"bg-slate-800/80 text-slate-300 border border-slate-700 hover:bg-slate-700"}`,children:"Tournois & Esti'Voll"}),t.jsx("button",{onClick:()=>c("vie_du_club"),className:`px-4 py-2 rounded-xl text-xs sm:text-sm font-bold transition-all cursor-pointer ${f==="vie_du_club"?"bg-amber-400 text-slate-950 shadow-md shadow-amber-400/20":"bg-slate-800/80 text-slate-300 border border-slate-700 hover:bg-slate-700"}`,children:"Convivialité & Festivités"})]}),t.jsx("div",{className:"space-y-8",children:f==="all"?y.map(O=>A(O)).filter(Boolean):y.filter(O=>O.key===f).map(O=>A(O))}),t.jsxs("div",{className:"mt-14 p-6 rounded-2xl bg-gradient-to-r from-slate-800 to-slate-850 border border-slate-700 flex flex-col sm:flex-row items-center justify-between gap-4 text-center sm:text-left",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx("div",{className:"w-12 h-12 rounded-xl bg-amber-400/20 border border-amber-400/30 flex items-center justify-center text-2xl shrink-0",children:"📸"}),t.jsxs("div",{children:[t.jsx("h4",{className:"text-base font-bold text-white font-display",children:"Vous avez des photos des matchs ou de vos enfants ?"}),t.jsx("p",{className:"text-xs text-slate-400",children:"Partagez vos clichés avec l'équipe de communication de Valence ACE pour enrichir l'album du club !"})]})]}),t.jsx("a",{href:"mailto:[email protected]?subject=Photos%20pour%20le%20site%20Valence%20ACE",className:"px-5 py-2.5 rounded-xl bg-amber-400 hover:bg-amber-300 text-slate-950 font-bold text-xs shadow-md transition-all shrink-0 cursor-pointer flex items-center gap-1.5",children:t.jsx("span",{children:"Envoyer des photos"})})]})]}),E&&t.jsxs("div",{className:"fixed inset-0 z-50 bg-slate-950/95 backdrop-blur-md flex flex-col justify-between p-4 sm:p-6 animate-fadeIn",onClick:T,children:[t.jsxs("div",{className:"flex items-center justify-between text-white w-full max-w-6xl mx-auto z-10",onClick:O=>O.stopPropagation(),children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("span",{className:"px-3 py-1 rounded-full text-xs font-extrabold uppercase bg-amber-400 text-slate-950",children:E.tag||"Valence ACE Volley"}),t.jsxs("span",{className:"text-xs text-slate-400 font-medium hidden sm:inline",children:["Photo ",b+1," / ",v.length]})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("button",{onClick:()=>j(E),className:"p-2 rounded-xl bg-slate-800/80 hover:bg-slate-700 text-slate-300 hover:text-white border border-slate-700 transition-colors flex items-center gap-1.5 text-xs font-semibold cursor-pointer",title:"Copier le lien de la photo",children:p?t.jsxs(t.Fragment,{children:[t.jsx(Yr,{className:"w-4 h-4 text-emerald-400"}),t.jsx("span",{className:"text-emerald-400",children:"Lien copié !"})]}):t.jsxs(t.Fragment,{children:[t.jsx(Fg,{className:"w-4 h-4"}),t.jsx("span",{className:"hidden sm:inline",children:"Partager"})]})}),t.jsx("button",{onClick:T,className:"p-2 rounded-xl bg-slate-800/80 hover:bg-rose-950 hover:text-rose-400 text-slate-300 border border-slate-700 transition-colors cursor-pointer",title:"Fermer (Échap)",children:t.jsx(Xr,{className:"w-5 h-5"})})]})]}),t.jsxs("div",{className:"relative flex-1 flex items-center justify-center my-4 max-w-5xl mx-auto w-full",onClick:O=>O.stopPropagation(),children:[t.jsx("button",{onClick:w,className:"absolute left-2 sm:-left-12 p-3 rounded-full bg-slate-900/80 hover:bg-slate-800 text-white border border-slate-700 shadow-xl transition-all cursor-pointer z-10",title:"Photo précédente",children:t.jsx(ah,{className:"w-6 h-6"})}),t.jsx("div",{className:"max-h-[70vh] rounded-2xl overflow-hidden border border-slate-800 shadow-2xl bg-slate-900 flex items-center justify-center",children:t.jsx("img",{src:E.imageUrl,alt:E.title,referrerPolicy:"no-referrer",className:"max-h-[70vh] w-auto object-contain rounded-2xl"})}),t.jsx("button",{onClick:S,className:"absolute right-2 sm:-right-12 p-3 rounded-full bg-slate-900/80 hover:bg-slate-800 text-white border border-slate-700 shadow-xl transition-all cursor-pointer z-10",title:"Photo suivante",children:t.jsx(li,{className:"w-6 h-6"})})]}),t.jsxs("div",{className:"w-full max-w-3xl mx-auto bg-slate-900/90 border border-slate-800 rounded-2xl p-4 text-center sm:text-left flex flex-col sm:flex-row items-center justify-between gap-3 shadow-xl",onClick:O=>O.stopPropagation(),children:[t.jsxs("div",{children:[t.jsx("h3",{className:"text-base font-bold text-white font-display",children:E.title}),t.jsx("p",{className:"text-xs text-slate-300 mt-0.5",children:E.caption})]}),t.jsxs("div",{className:"flex items-center gap-3 text-xs text-slate-400 shrink-0",children:[E.location&&t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx(Bt,{className:"w-3.5 h-3.5 text-amber-400"}),E.location]}),E.date&&t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx(Ft,{className:"w-3.5 h-3.5 text-blue-400"}),E.date]})]})]})]})]})},l2=()=>
420{const[o,f]=Z.useState({name:"",email:"",phone:"",category:"M15 / M18 Jeunes",subject:"Demande de renseignements / Inscription",message:""}),[c,b]=Z.useState(!1),[k,p]=Z.useState(!1),[g,y]=Z.useState(null),N=async C=>{C.preventDefault(),p(!0),y(null);try{const v=await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)}),m=await v.json().catch(()=>null);if(!v.ok)throw new Error((m==null?void 0:m.error)||"Envoi du message impossible.");oi({particleCount:45,spread:60,origin:{y:.7}}),b(!0),f({name:"",email:"",phone:"",category:"M15 / M18 Jeunes",subject:"Demande de renseignements / Inscription",message:""}),setTimeout(()=>{b(!1)},5e3)}catch(v){y(v instanceof Error?v.message:"Envoi du message impossible.")}finally{p(!1)}};return t.jsx("section",{id:"contact",className:"py-20 bg-slate-900 text-white relative",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[t.jsx("span",{className:"text-xs font-extrabold uppercase tracking-widest text-amber-400 bg-amber-400/10 px-3 py-1 rounded-full border border-amber-400/20",children:"Écrivez-nous ou Appelez-nous"}),t.jsx("h2",{className:"text-3xl sm:text-4xl font-extrabold text-white mt-3 font-display",children:"Contactez Valence ACE Volley-Ball"}),t.jsx("p",{className:"text-slate-400 mt-2 text-base",children:"Une question sur les créneaux, les tarifs, les stages ou une demande d'essai ? Notre équipe vous répond dans les meilleurs délais."})]}),t.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-10 items-start",children:[t.jsxs("div",{className:"lg:col-span-5 space-y-6",children:[t.jsxs("div",{className:"p-6 rounded-2xl bg-slate-800/90 border border-slate-700 space-y-3",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("div",{className:"w-10 h-10 rounded-xl bg-amber-400/10 text-amber-400 border border-amber-400/20 flex items-center justify-center",children:t.jsx(qo,{className:"w-5 h-5"})}),t.jsxs("div",{children:[t.jsx("h4",{className:"text-base font-bold text-white font-display",children:"Par Téléphone"}),t.jsx("p",{className:"text-xs text-slate-400",children:"Présidence & Secrétariat"})]})]}),t.jsxs("div",{className:"space-y-2 pt-2 text-sm",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("span",{className:"text-slate-400",children:"Madeline Arnal (Présidente) :"}),t.jsx("a",{href:`tel:${qe.phonePrimary.replace(/\s/g,"")}`,className:"font-bold text-amber-400 hover:underline",children:qe.phonePrimary})]}),t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("span",{className:"text-slate-400",children:"Permanence Club :"}),t.jsx("a",{href:`tel:${qe.phoneSecondary.replace(/\s/g,"")}`,className:"font-bold text-slate-200 hover:text-amber-400 hover:underline",children:qe.phoneSecondary})]})]})]}),t.jsxs("div",{className:"p-6 rounded-2xl bg-slate-800/90 border border-slate-700 space-y-3",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("div",{className:"w-10 h-10 rounded-xl bg-blue-500/10 text-blue-400 border border-blue-500/20 flex items-center justify-center",children:t.jsx(wl,{className:"w-5 h-5"})}),t.jsxs("div",{children:[t.jsx("h4",{className:"text-base font-bold text-white font-display",children:"Par E-mail"}),t.jsx("p",{className:"text-xs text-slate-400",children:"Réponse rapide assurée"})]})]}),t.jsxs("div",{className:"pt-2 text-sm",children:[t.jsx("a",{href:`mailto:${qe.email}`,className:"font-bold text-amber-400 hover:underline block break-all",children:qe.email}),t.jsx("span",{className:"text-xs text-slate-400 mt-1 block",children:"Responsable jeunes : [email protected]"})]})]}),t.jsxs("div",{className:"p-6 rounded-2xl bg-slate-800/90 border border-slate-700 space-y-3",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("div",{className:"w-10 h-10 rounded-xl bg-emerald-500/10 text-emerald-400 border border-emerald-500/20 flex items-center justify-center",children:t.jsx(Bt,{className:"w-5 h-5"})}),t.jsxs("div",{children:[t.jsx("h4",{className:"text-base font-bold text-white font-display",children:"Directement au Gymnase"}),t.jsx("p",{className:"text-xs text-slate-400",children:"Aux heures des entraînements"})]})]}),t.jsxs("p",{className:"text-xs text-slate-300 leading-relaxed pt-1",children:["Venez rencontrer les entraîneurs et bénévoles au ",t.jsx("strong",{children:"Gymnase Zammit"})," (12 rue Brunet) du lundi au samedi."]})]})]}),t.jsxs("div",{className:"lg:col-span-7 rounded-2xl bg-slate-800/90 border border-slate-700 p-6 sm:p-8 shadow-2xl",children:[t.jsx("h3",{className:"text-xl font-bold font-display text-white mb-1",children:"Envoyer un message au club"}),t.jsx("p",{className:"text-xs text-slate-400 mb-6",children:"Remplissez le formulaire ci-dessous et nous vous recontacterons dans les plus brefs délais."}),t.jsxs("div",{className:"mb-6 grid grid-cols-1 gap-3 md:grid-cols-3",children:[t.jsxs("div",{className:"rounded-2xl border border-slate-700 bg-slate-900/80 p-4",children:[t.jsxs("div",{className:"flex items-center gap-2 text-amber-300",children:[t.jsx(Fo,{className:"h-4 w-4"}),t.jsx("p",{className:"text-[11px] font-extrabold uppercase tracking-[0.18em]",children:"Délai"})]}),t.jsx("p",{className:"mt-2 text-sm font-bold text-white",children:"Réponse sous 48 h ouvrées"}),t.jsx("p",{className:"mt-1 text-xs text-slate-400",children:"Le bureau ou le responsable concerné reprend votre demande rapidement."})]}),t.jsxs("div",{className:"rounded-2xl border border-slate-700 bg-slate-900/80 p-4",children:[t.jsxs("div",{className:"flex items-center gap-2 text-emerald-300",children:[t.jsx(ri,{className:"h-4 w-4"}),t.jsx("p",{className:"text-[11px] font-extrabold uppercase tracking-[0.18em]",children:"Interlocuteur"})]}),t.jsx("p",{className:"mt-2 text-sm font-bold text-white",children:"Bureau et responsables sportifs"}),t.jsx("p",{className:"mt-1 text-xs text-slate-400",children:"Votre message est traité par l'équipe club adaptée au sujet transmis."})]}),t.jsxs("div",{className:"rounded-2xl border border-slate-700 bg-slate-900/80 p-4",children:[t.jsxs("div",{className:"flex items-center gap-2 text-sky-300",children:[t.jsx(Va,{className:"h-4 w-4"}),t.jsx("p",{className:"text-[11px] font-extrabold uppercase tracking-[0.18em]",children:"Données"})]}),t.jsx("p",{className:"mt-2 text-sm font-bold text-white",children:"Usage limité à votre demande"}),t.jsx("p",{className:"mt-1 text-xs text-slate-400",children:"Les informations servent uniquement au traitement du message. Voir /mentions-legales."})]})]}),c?t.jsxs("div",{className:"p-8 rounded-xl bg-emerald-500/20 border border-emerald-500/30 text-center space-y-3",children:[t.jsx("div",{className:"w-12 h-12 rounded-full bg-emerald-500 text-slate-950 flex items-center justify-center mx-auto text-xl font-bold",children:"✓"}),t.jsx("h4",{className:"text-lg font-bold text-white",children:"Merci pour votre message !"}),t.jsx("p",{className:"text-sm text-emerald-200 max-w-md mx-auto",children:"Votre message a bien été transmis à la console admin de Valence ACE. Un admin peut vous répondre depuis son adresse officielle ou par téléphone."})]}):t.jsxs("form",{onSubmit:N,className:"space-y-4 text-xs sm:text-sm",children:[g&&t.jsx("div",{className:"rounded-xl border border-rose-500/30 bg-rose-500/10 px-4 py-3 text-sm text-rose-100",children:g}),t.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-slate-300 font-semibold mb-1",children:"Votre Nom & Prénom *"}),t.jsx("input",{type:"text",required:!0,value:o.name,onChange:C=>f({...o,name:C.target.value}),placeholder:"Ex: Thomas Martin",className:"w-full bg-slate-900 border border-slate-700 rounded-xl px-3.5 py-2.5 text-white placeholder-slate-500 focus:outline-none focus:border-amber-400"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-slate-300 font-semibold mb-1",children:"Téléphone *"}),t.jsx("input",{type:"tel",required:!0,value:o.phone,onChange:C=>f({...o,phone:C.target.value}),placeholder:"Ex: 06 12 34 56 78",className:"w-full bg-slate-900 border border-slate-700 rounded-xl px-3.5 py-2.5 text-white placeholder-slate-500 focus:outline-none focus:border-amber-400"})]})]}),t.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-slate-300 font-semibold mb-1",children:"Adresse E-mail *"}),t.jsx("input",{type:"email",required:!0,value:o.email,onChange:C=>f({...o,email:C.target.value}),placeholder:"[email protected]",className:"w-full bg-slate-900 border border-slate-700 rounded-xl px-3.5 py-2.5 text-white placeholder-slate-500 focus:outline-none focus:border-amber-400"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-slate-300 font-semibold mb-1",children:"Catégorie ou groupe visé"}),t.jsxs("select",{value:o.category,onChange:C=>f({...o,category:C.target.value}),className:"w-full bg-slate-900 border border-slate-700 rounded-xl px-3.5 py-2.5 text-white focus:outline-none focus:border-amber-400",children:[t.jsx("option",{children:"École de Volley & Baby Volley (6 - 10 ans)"}),t.jsx("option",{children:"M13 Garçons & Filles (11 - 12 ans)"}),t.jsx("option",{children:"M15 Masculin (13 - 14 ans)"}),t.jsx("option",{children:"M18 Masculin & Coupe de France (15 - 17 ans)"}),t.jsx("option",{children:"Séniors Masculin (Régionale / Départementale)"}),t.jsx("option",{children:"Section Loisirs & UFOLEP Mixte"}),t.jsx("option",{children:"Fit Volley & Pratique Famille"}),t.jsx("option",{children:"Autre / Devenir bénévole ou parent accompagnateur"})]})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-slate-300 font-semibold mb-1",children:"Votre Message *"}),t.jsx("textarea",{required:!0,rows:4,value:o.message,onChange:C=>f({...o,message:C.target.value}),placeholder:"Précisez votre niveau, vos disponibilités ou toute question...",className:"w-full bg-slate-900 border border-slate-700 rounded-xl px-3.5 py-2.5 text-white placeholder-slate-500 focus:outline-none focus:border-amber-400 resize-none"})]}),t.jsx("div",{className:"pt-2",children:t.jsxs("button",{type:"submit",disabled:k,className:"w-full py-3.5 rounded-xl bg-gradient-to-r from-amber-400 via-amber-500 to-orange-500 hover:from-amber-300 hover:to-orange-400 text-slate-950 font-extrabold text-sm shadow-xl shadow-amber-500/20 transition-all flex items-center justify-center gap-2 cursor-pointer",children:[t.jsx(Rg,{className:"w-4 h-4"}),t.jsx("span",{children:k?"Envoi en cours...":"Envoyer mon message à Valence ACE"})]})})]})]})]})]})})},r2=()=>{const[o,f]=Z.useState(0),c=b=>{f(o===b?null:b)};return t.jsx("section",{className:"py-20 bg-slate-50 border-b border-slate-200 logo-watermark-section",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs("div",{className:"text-center mb-12",children:[t.jsx("span",{className:"text-xs font-extrabold uppercase tracking-widest text-blue-700 bg-blue-100 px-3 py-1 rounded-full border border-blue-200",children:"Questions Fréquentes"}),t.jsx("h2",{className:"text-3xl font-extrabold text-slate-900 mt-3 font-display",children:"Tout savoir avant de nous rejoindre"}),t.jsx("p",{className:"text-slate-600 mt-2 text-sm sm:text-base",children:"Retrouvez les réponses aux questions les plus posées par les nouveaux adhérents et parents."})]}),t.jsx("div",{className:"space-y-3",children:db.map((b,k)=>{const p=o===k;return t.jsxs("div",{className:"rounded-2xl bg-white border border-slate-200 overflow-hidden transition-all shadow-sm",children:[t.jsxs("button",{onClick:()=>c(k),className:"w-full p-5 text-left font-bold text-slate-900 flex items-center justify-between gap-4 hover:bg-slate-50 transition-colors",children:[t.jsxs("span",{className:"text-sm sm:text-base flex items-center gap-2.5",children:[t.jsx("span",{className:"w-2 h-2 rounded-full bg-blue-600"}),b.question]}),t.jsx(Ut,{className:`w-5 h-5 text-slate-400 shrink-0 transition-transform duration-200 ${p?"rotate-180 text-blue-600":""}`})]}),p&&t.jsx("div",{className:"px-5 pb-5 pt-1 text-xs sm:text-sm text-slate-600 leading-relaxed border-t border-slate-100 bg-slate-50/50",children:b.answer})]},k)})})]})})},n2=({onOpenTrialModal:o,onOpenImageManager:f,showAdminConsoleLink:c=!1})=>t.jsxs("footer",{className:"bg-slate-950 text-slate-400 text-xs border-t border-slate-800",children:[t.jsx("div",{className:"border-b border-slate-900 bg-slate-950/80 py-4 px-4",children:t.jsxs("div",{className:"max-w-7xl mx-auto flex flex-wrap items-center justify-between gap-4",children:[t.jsx("span",{className:"text-[11px] font-bold text-slate-400 uppercase tracking-wider",children:"Partenaires & Soutiens :"}),t.jsx("div",{className:"flex flex-wrap items-center gap-3",children:Wx.slice(0,6).map(b=>t.jsx("a",{href:b.url,target:"_blank",rel:"noopener noreferrer",title:`${b.name} - ${b.role}`,className:"h-8 px-2.5 py-1 rounded-lg bg-white/95 hover:bg-white border border-slate-800 hover:border-amber-400/50 transition-all flex items-center shadow-xs",children:t.jsx(fh,{id:b.id,logoUrl:b.logoUrl,name:b.name,className:"h-5 w-auto"})},b.id))})]})}),t.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16",children:t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 ga
420p-10",children:[t.jsxs("div",{className:"lg:col-span-2 space-y-4",children:[t.jsx(zu,{size:"lg",variant:"full"}),t.jsx("p",{className:"text-slate-400 text-xs leading-relaxed max-w-sm",children:"Association sportive loi 1901 fondée en 2006. Club de volley-ball de référence à Valence (Drôme), affilié FFVB et UFOLEP, axé sur la formation des jeunes, la compétition et la convivialité."}),t.jsxs("div",{className:"space-y-1.5 text-xs text-slate-300 pt-2",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Va,{className:"w-4 h-4 text-emerald-400"}),t.jsx("span",{children:"Affilié Fédération Française de Volley-Ball (FFVB)"})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Va,{className:"w-4 h-4 text-emerald-400"}),t.jsx("span",{children:"Affilié UFOLEP 26 & Adhérent Office des Sports Valentinois (OSV)"})]})]})]}),t.jsxs("div",{className:"space-y-3",children:[t.jsx("h4",{className:"text-sm font-bold text-white font-display uppercase tracking-wider",children:"Navigation"}),t.jsxs("ul",{className:"space-y-2",children:[t.jsx("li",{children:t.jsx("a",{href:"#accueil",className:"hover:text-amber-400 transition-colors",children:"Accueil"})}),t.jsx("li",{children:t.jsx("a",{href:"#club",className:"hover:text-amber-400 transition-colors",children:"Le Club & Bureau"})}),t.jsx("li",{children:t.jsx("a",{href:"#equipes",className:"hover:text-amber-400 transition-colors",children:"Nos Équipes"})}),t.jsx("li",{children:t.jsx("a",{href:"#creneaux",className:"hover:text-amber-400 transition-colors",children:"Créneaux & Horaires"})}),t.jsx("li",{children:t.jsx("a",{href:"#inscriptions",className:"hover:text-amber-400 transition-colors",children:"Inscriptions & Tarifs"})}),t.jsx("li",{children:t.jsx("a",{href:"#galerie",className:"hover:text-amber-400 transition-colors text-amber-300 font-semibold",children:"📸 Galerie Photos"})}),t.jsx("li",{children:t.jsx("a",{href:"#matchs",className:"hover:text-amber-400 transition-colors",children:"Matchs & Résultats"})})]})]}),t.jsxs("div",{className:"space-y-3",children:[t.jsx("h4",{className:"text-sm font-bold text-white font-display uppercase tracking-wider",children:"Vie du Club"}),t.jsxs("ul",{className:"space-y-2",children:[t.jsx("li",{children:t.jsx("a",{href:"#evenements",className:"hover:text-amber-400 transition-colors",children:"Tournoi Esti'Voll"})}),t.jsx("li",{children:t.jsx("a",{href:"#evenements",className:"hover:text-amber-400 transition-colors",children:"Stages Vacances Jeunes"})}),t.jsx("li",{children:t.jsx("a",{href:"#evenements",className:"hover:text-amber-400 transition-colors",children:"Tournoi Les Cardinals"})}),t.jsx("li",{children:t.jsx("a",{href:"#gymnases",className:"hover:text-amber-400 transition-colors",children:"Gymnase Zammit & Salles"})}),t.jsx("li",{children:t.jsx("a",{href:"#contact",className:"hover:text-amber-400 transition-colors",children:"Contact & Permanence"})})]})]}),t.jsxs("div",{className:"space-y-3",children:[t.jsx("h4",{className:"text-sm font-bold text-white font-display uppercase tracking-wider",children:"Coordonnées"}),t.jsxs("div",{className:"space-y-2 text-xs",children:[t.jsxs("p",{className:"text-slate-300",children:[t.jsx("strong",{className:"text-white",children:"Siège :"}),t.jsx("br",{}),qe.addressMain]}),t.jsxs("p",{children:[t.jsxs("a",{href:`tel:${qe.phonePrimary.replace(/\s/g,"")}`,className:"text-amber-400 font-bold hover:underline block",children:["📞 ",qe.phonePrimary]}),t.jsxs("span",{className:"text-slate-400",children:["Présidente : ",qe.president]})]}),t.jsx("p",{children:t.jsxs("a",{href:`mailto:${qe.email}`,className:"text-slate-300 hover:text-amber-400 break-all block",children:["✉️ ",qe.email]})})]}),t.jsx("div",{className:"pt-2",children:t.jsxs("button",{onClick:o,className:"w-full py-2.5 rounded-xl bg-amber-400 hover:bg-amber-300 text-slate-950 font-bold text-xs shadow-md transition-all cursor-pointer flex items-center justify-center gap-1.5",children:[t.jsx(Ka,{className:"w-3.5 h-3.5"}),t.jsx("span",{children:"2 Séances d'Essai Offertes"})]})}),f&&t.jsx("div",{className:"pt-1",children:t.jsxs("button",{type:"button",onClick:f,className:"inline-flex items-center gap-2 text-[11px] font-semibold text-slate-400 transition-colors hover:text-amber-300",children:[t.jsx(Bo,{className:"h-3.5 w-3.5"}),t.jsx("span",{children:"Accès admin visuels"})]})}),c&&t.jsx("div",{children:t.jsxs("a",{href:"/admin",className:"inline-flex items-center gap-2 text-[11px] font-semibold text-slate-500 transition-colors hover:text-amber-300",children:[t.jsx(Bo,{className:"h-3.5 w-3.5"}),t.jsx("span",{children:"Console admin club"})]})})]})]})}),t.jsx("div",{className:"bg-slate-950 border-t border-slate-900 py-6 text-center text-slate-500",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 flex flex-col sm:flex-row items-center justify-between gap-2 text-[11px]",children:[t.jsxs("span",{children:["© ",new Date().getFullYear()," Valence ACE Volley-Ball. Tou
420s droits réservés."]}),t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx("a",{href:"#accueil",className:"hover:text-slate-300",children:"Haut de page ↑"}),t.jsx("span",{children:"•"}),t.jsx("a",{href:"/mentions-legales",className:"hover:text-slate-300",children:"Mentions Légales & RGPD"})]})]})})]});function Lo(o){throw new Error('Could not dynamically require "'+o+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ju={exports:{}};/*!
421
422JSZip v3.10.1 - A JavaScript class for generating and reading zip files
423<http://stuartk.com/jszip>
424
425(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
426Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
427
428JSZip uses the library pako released under the MIT license :
429https://github.com/nodeca/pako/blob/main/LICENSE
430*/var Dx;function i2(){return Dx||(Dx=1,(function(o,f){(function(c){o.exports=c()})(function(){return(function c(b,k,p){function g(C,v){if(!k[C]){if(!b[C]){var m=typeof Lo=="function"&&Lo;if(!v&&m)return m(C,!0);if(y)return y(C,!0);var T=new Error("Cannot find module '"+C+"'");throw T.code="MODULE_NOT_FOUND",T}var w=k[C]={exports:{}};b[C][0].call(w.exports,function(S){var j=b[C][1][S];return g(j||S)},w,w.exports,c,b,k,p)}return k[C].exports}for(var y=typeof Lo=="function"&&Lo,N=0;N<p.length;N++)g(p[N]);return g})({1:[function(c,b,k){var p=c("./utils"),g=c("./support"),y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";k.encode=function(N){for(var C,v,m,T,w,S,j,E=[],A=0,O=N.length,F=O,$=p.getTypeOf(N)!=="string";A<N.length;)F=O-A,m=$?(C=N[A++],v=A<O?N[A++]:0,A<O?N[A++]:0):(C=N.charCodeAt(A++),v=A<O?N.charCodeAt(A++):0,A<O?N.charCodeAt(A++):0),T=C>>2,w=(3&C)<<4|v>>4,S=1<F?(15&v)<<2|m>>6:64,j=2<F?63&m:64,E.push(y.charAt(T)+y.charAt(w)+y.charAt(S)+y.charAt(j));return E.join("")},k.decode=function(N){var C,v,m,T,w,S,j=0,E=0,A="data:";if(N.substr(0,A.length)===A)throw new Error("Invalid base64 input, it looks like a data url.");var O,F=3*(N=N.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(N.charAt(N.length-1)===y.charAt(64)&&F--,N.charAt(N.length-2)===y.charAt(64)&&F--,F%1!=0)throw new Error("Invalid base64 input, bad content length.");for(O=g.uint8array?new Uint8Array(0|F):new Array(0|F);j<N.length;)C=y.indexOf(N.charAt(j++))<<2|(T=y.indexOf(N.charAt(j++)))>>4,v=(15&T)<<4|(w=y.indexOf(N.charAt(j++)))>>2,m=(3&w)<<6|(S=y.indexOf(N.charAt(j++))),O[E++]=C,w!==64&&(O[E++]=v),S!==64&&(O[E++]=m);return O}},{"./support":30,"./utils":32}],2:[function(c,b,k){var p=c("./external"),g=c("./stream/DataWorker"),y=c("./stream/Crc32Probe"),N=c("./stream/DataLengthProbe");function C(v,m,T,w,S){this.compressedSize=v,this.uncompressedSize=m,this.crc32=T,this.compression=w,this.compressedContent=S}C.prototype={getContentWorker:function(){var v=new g(p.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new N("data_length")),m=this;return v.on("end",function(){if(this.streamInfo.data_length!==m.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),v},getCompressedWorker:function(){return new g(p.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},C.createWorkerFrom=function(v,m,T){return v.pipe(new y).pipe(new N("uncompressedSize")).pipe(m.compressWorker(T)).pipe(new N("compressedSize")).withStreamInfo("compression",m)},b.exports=C},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(c,b,k){var p=c("./stream/GenericWorker");k.STORE={magic:"\0\0",compressWorker:function(){return new p("STORE compression")},uncompressWorker:function(){return new p("STORE decompression")}},k.DEFLATE=c("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(c,b,k){var p=c("./utils"),g=(function(){for(var y,N=[],C=0;C<256;C++){y=C;for(var v=0;v<8;v++)y=1&y?3988292384^y>>>1:y>>>1;N[C]=y}return N})();b.exports=function(y,N){return y!==void 0&&y.length?p.getTypeOf(y)!=="string"?(function(C,v,m,T){var w=g,S=T+m;C^=-1;for(var j=T;j<S;j++)C=C>>>8^w[255&(C^v[j])];return-1^C})(0|N,y,y.length,0):(function(C,v,m,T){var w=g,S=T+m;C^=-1;for(var j=T;j<S;j++)C=C>>>8^w[255&(C^v.charCodeAt(j))];return-1^C})(0|N,y,y.length,0):0}},{"./utils":32}],5:[function(c,b,k){k.base64=!1,k.binary=!1,k.dir=!1,k.createFolders=!0,k.date=null,k.compression=null,k.compressionOptions=null,k.comment=null,k.unixPermissions=null,k.dosPermissions=null},{}],6:[function(c,b,k){var p=null;p=typeof Promise<"u"?Promise:c("lie"),b.exports={Promise:p}},{lie:37}],7:[function(c,b,k){var p=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",g=c("pako"),y=c("./utils"),N=c("./stream/GenericWorker"),C=p?"uint8array":"array";function v(m,T){N.call(this,"FlateWorker/"+m),this._pako=null,this._pakoAction=m,this._pakoOptions=T,this.meta={}}k.magic="\b\0",y.inherits(v,N),v.prototype.processChunk=function(m){this.meta=m.meta,this._pako===null&&this._createPako(),this._pako.push(y.transformTo(C,m.data),!1)},v.prototype.flush=function(){N.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)}
vendor: 4,692 bytes, lines 430-431
430,v.prototype.cleanUp=function(){N.prototype.cleanUp.call(this),this._pako=null},v.prototype._createPako=function(){this._pako=new g[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var m=this;this._pako.onData=function(T){m.push({data:T,meta:m.meta})}},k.compressWorker=function(m){return new v("Deflate",m)},k.uncompressWorker=function(){return new v("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(c,b,k){function p(w,S){var j,E="";for(j=0;j<S;j++)E+=String.fromCharCode(255&w),w>>>=8;return E}function g(w,S,j,E,A,O){var F,$,Y=w.file,G=w.compression,V=O!==C.utf8encode,K=y.transformTo("string",O(Y.name)),te=y.transformTo("string",C.utf8encode(Y.name)),J=Y.comment,I=y.transformTo("string",O(J)),L=y.transformTo("string",C.utf8encode(J)),H=te.length!==Y.name.length,h=L.length!==J.length,ie="",ee="",X="",le=Y.dir,xe=Y.date,B={crc32:0,compressedSize:0,uncompressedSize:0};S&&!j||(B.crc32=w.crc32,B.compressedSize=w.compressedSize,B.uncompressedSize=w.uncompressedSize);var d=0;S&&(d|=8),V||!H&&!h||(d|=2048);var U=0,re=0;le&&(U|=16),A==="UNIX"?(re=798,U|=(function(ae,_e){var Ce=ae;return ae||(Ce=_e?16893:33204),(65535&Ce)<<16})(Y.unixPermissions,le)):(re=20,U|=(function(ae){return 63&(ae||0)})(Y.dosPermissions)),F=xe.getUTCHours(),F<<=6,F|=xe.getUTCMinutes(),F<<=5,F|=xe.getUTCSeconds()/2,$=xe.getUTCFullYear()-1980,$<<=4,$|=xe.getUTCMonth()+1,$<<=5,$|=xe.getUTCDate(),H&&(ee=p(1,1)+p(v(K),4)+te,ie+="up"+p(ee.length,2)+ee),h&&(X=p(1,1)+p(v(I),4)+L,ie+="uc"+p(X.length,2)+X);var ne="";return ne+=`
431\0`,ne+=p(d,2),ne+=G.magic,ne+=p(F,2),ne+=p($,2),ne+=p(B.crc32,4),ne+=p(B.compressedSize,4),ne+=p(B.uncompressedSize,4),ne+=p(K.length,2),ne+=p(ie.length,2),{fileRecord:m.LOCAL_FILE_HEADER+ne+K+ie,dirRecord:m.CENTRAL_FILE_HEADER+p(re,2)+ne+p(I.length,2)+"\0\0\0\0"+p(U,4)+p(E,4)+K+ie+I}}var y=c("../utils"),N=c("../stream/GenericWorker"),C=c("../utf8"),v=c("../crc32"),m=c("../signature");function T(w,S,j,E){N.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=S,this.zipPlatform=j,this.encodeFileName=E,this.streamFiles=w,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}y.inherits(T,N),T.prototype.push=function(w){var S=w.meta.percent||0,j=this.entriesCount,E=this._sources.length;this.accumulate?this.contentBuffer.push(w):(this.bytesWritten+=w.data.length,N.prototype.push.call(this,{data:w.data,meta:{currentFile:this.currentFile,percent:j?(S+100*(j-E-1))/j:100}}))},T.prototype.openedSource=function(w){this.currentSourceOffset=this.bytesWritten,this.currentFile=w.file.name;var S=this.streamFiles&&!w.file.dir;if(S){var j=g(w,S,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:j.fileRecord,meta:{percent:0}})}else this.accumulate=!0},T.prototype.closedSource=function(w){this.accumulate=!1;var S=this.streamFiles&&!w.file.dir,j=g(w,S,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(j.dirRecord),S)this.push({data:(function(E){return m.DATA_DESCRIPTOR+p(E.crc32,4)+p(E.compressedSize,4)+p(E.uncompressedSize,4)})(w),meta:{percent:100}});else for(this.push({data:j.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},T.prototype.flush=function(){for(var w=this.bytesWritten,S=0;S<this.dirRecords.length;S++)this.push({data:this.dirRecords[S],meta:{percent:100}});var j=this.bytesWritten-w,E=(function(A,O,F,$,Y){var G=y.transformTo("string",Y($));return m.CENTRAL_DIRECTORY_END+"\0\0\0\0"+p(A,2)+p(A,2)+p(O,4)+p(F,4)+p(G.length,2)+G})(this.dirRecords.length,j,w,this.zipComment,this.encodeFileName);this.push({data:E,meta:{percent:100}})},T.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},T.prototype.registerPrevious=function(w){this._sources.push(w);var S=this;return w.on("data",function(j){S.processChunk(j)}),w.on("end",function(){S.closedSource(S.previous.streamInfo),S._sources.length?S.prepareNextSource():S.end()}),w.on("error",function(j){S.error(j)}),this},T.prototype.resume=function(){return!!N.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},T.prototype.error=function(w){var S=this._sources;if(!N.prototype.error.call(this,w))return!1;for(var j=0;j<S.length;j++)try{S[j].error(w)}catch{}return!0},T.prototype.lock=function(){N.prototype.lock.call(this);for(var w=this._sources,S=0;S<w.length;S++)w[S].lock()}
vendor: 29,231 bytes, line 431
431,b.exports=T},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(c,b,k){var p=c("../compressions"),g=c("./ZipFileWorker");k.generateWorker=function(y,N,C){var v=new g(N.streamFiles,C,N.platform,N.encodeFileName),m=0;try{y.forEach(function(T,w){m++;var S=(function(O,F){var $=O||F,Y=p[$];if(!Y)throw new Error($+" is not a valid compression method !");return Y})(w.options.compression,N.compression),j=w.options.compressionOptions||N.compressionOptions||{},E=w.dir,A=w.date;w._compressWorker(S,j).withStreamInfo("file",{name:T,dir:E,date:A,comment:w.comment||"",unixPermissions:w.unixPermissions,dosPermissions:w.dosPermissions}).pipe(v)}),v.entriesCount=m}catch(T){v.error(T)}return v}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(c,b,k){function p(){if(!(this instanceof p))return new p;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var g=new p;for(var y in this)typeof this[y]!="function"&&(g[y]=this[y]);return g}}(p.prototype=c("./object")).loadAsync=c("./load"),p.support=c("./support"),p.defaults=c("./defaults"),p.version="3.10.1",p.loadAsync=function(g,y){return new p().loadAsync(g,y)},p.external=c("./external"),b.exports=p},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(c,b,k){var p=c("./utils"),g=c("./external"),y=c("./utf8"),N=c("./zipEntries"),C=c("./stream/Crc32Probe"),v=c("./nodejsUtils");function m(T){return new g.Promise(function(w,S){var j=T.decompressed.getContentWorker().pipe(new C);j.on("error",function(E){S(E)}).on("end",function(){j.streamInfo.crc32!==T.decompressed.crc32?S(new Error("Corrupted zip : CRC32 mismatch")):w()}).resume()})}b.exports=function(T,w){var S=this;return w=p.extend(w||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:y.utf8decode}),v.isNode&&v.isStream(T)?g.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):p.prepareContent("the loaded zip file",T,!0,w.optimizedBinaryString,w.base64).then(function(j){var E=new N(w);return E.load(j),E}).then(function(j){var E=[g.Promise.resolve(j)],A=j.files;if(w.checkCRC32)for(var O=0;O<A.length;O++)E.push(m(A[O]));return g.Promise.all(E)}).then(function(j){for(var E=j.shift(),A=E.files,O=0;O<A.length;O++){var F=A[O],$=F.fileNameStr,Y=p.resolve(F.fileNameStr);S.file(Y,F.decompressed,{binary:!0,optimizedBinaryString:!0,date:F.date,dir:F.dir,comment:F.fileCommentStr.length?F.fileCommentStr:null,unixPermissions:F.unixPermissions,dosPermissions:F.dosPermissions,createFolders:w.createFolders}),F.dir||(S.file(Y).unsafeOriginalName=$)}return E.zipComment.length&&(S.comment=E.zipComment),S})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(c,b,k){var p=c("../utils"),g=c("../stream/GenericWorker");function y(N,C){g.call(this,"Nodejs stream input adapter for "+N),this._upstreamEnded=!1,this._bindStream(C)}p.inherits(y,g),y.prototype._bindStream=function(N){var C=this;(this._stream=N).pause(),N.on("data",function(v){C.push({data:v,meta:{percent:0}})}).on("error",function(v){C.isPaused?this.generatedError=v:C.error(v)}).on("end",function(){C.isPaused?C._upstreamEnded=!0:C.end()})},y.prototype.pause=function(){return!!g.prototype.pause.call(this)&&(this._stream.pause(),!0)},y.prototype.resume=function(){return!!g.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},b.exports=y},{"../stream/GenericWorker":28,"../utils":32}],13:[function(c,b,k){var p=c("readable-stream").Readable;function g(y,N,C){p.call(this,N),this._helper=y;var v=this;y.on("data",function(m,T){v.push(m)||v._helper.pause(),C&&C(T)}).on("error",function(m){v.emit("error",m)}).on("end",function(){v.push(null)})}c("../utils").inherits(g,p),g.prototype._read=function(){this._helper.resume()},b.exports=g},{"../utils":32,"readable-stream":16}],14:[function(c,b,k){b.exports={isNode:typeof Buffer<"u",newBufferFrom:function(p,g){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(p,g);if(typeof p=="number")throw new Error('The "data" argument must not be a number');return new Buffer(p,g)},allocBuffer:function(p){if(Buffer.alloc)return Buffer.alloc(p);var g=new Buffer(p);return g.fill(0),g},isBuffer:function(p){return Buffer.isBuffer(p)},isStream:function(p){return p&&typeof p.on=="function"&&typeof p.pause=="function"&&typeof p.resume=="function"}}},{}],15:[function(c,b,k){function p(Y,G,V){var K,te=y.getTypeOf(G),J=y.extend(V||{},v);J.date=J.date||new Date,J.compression!==null&&(J.compression=J.compression.toUpperCase()),typeof J.unixPermissions=="string"&&(J.unixPermissions=parseInt(J.unixPermissions,8)),J.unixPermissions&&16384&J.unixPermissions&&(J.dir=!0),J.dosPermissions&&16&J.dosPermissions&&(J.dir=!0),J.dir&&(Y=A(Y)),J.createFolders&&(K=E(Y))&&O.call(this,K,!0);var I=te==="string"&&J.binary===!1&&J.base64===!1;V&&V.binary!==void 0||(J.binary=!I),(G instanceof m&&G.uncompressedSize===0||J.dir||!G||G.length===0)&&(J.base64=!1,J.binary=!0,G="",J.compression="STORE",te="string");var L=null;L=G instanceof m||G instanceof N?G:S.isNode&&S.isStream(G)?new j(Y,G):y.prepareContent(Y,G,J.binary,J.optimizedBinaryString,J.base64);var H=new T(Y,L,J);this.files[Y]=H}var g=c("./utf8"),y=c("./utils"),N=c("./stream/GenericWorker"),C=c("./stream/StreamHelper"),v=c("./defaults"),m=c("./compressedObject"),T=c("./zipObject"),w=c("./generate"),S=c("./nodejsUtils"),j=c("./nodejs/NodejsStreamInputAdapter"),E=function(Y){Y.slice(-1)==="/"&&(Y=Y.substring(0,Y.length-1));var G=Y.lastIndexOf("/");return 0<G?Y.substring(0,G):""},A=function(Y){return Y.slice(-1)!=="/"&&(Y+="/"),Y},O=function(Y,G){return G=G!==void 0?G:v.createFolders,Y=A(Y),this.files[Y]||p.call(this,Y,null,{dir:!0,createFolders:G}),this.files[Y]};function F(Y){return Object.prototype.toString.call(Y)==="[object RegExp]"}var $={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(Y){var G,V,K;for(G in this.files)K=this.files[G],(V=G.slice(this.root.length,G.length))&&G.slice(0,this.root.length)===this.root&&Y(V,K)},filter:function(Y){var G=[];return this.forEach(function(V,K){Y(V,K)&&G.push(K)}),G},file:function(Y,G,V){if(arguments.length!==1)return Y=this.root+Y,p.call(this,Y,G,V),this;if(F(Y)){var K=Y;return this.filter(function(J,I){return!I.dir&&K.test(J)})}var te=this.files[this.root+Y];return te&&!te.dir?te:null},folder:function(Y){if(!Y)return this;if(F(Y))return this.filter(function(te,J){return J.dir&&Y.test(te)});var G=this.root+Y,V=O.call(this,G),K=this.clone();return K.root=V.name,K},remove:function(Y){Y=this.root+Y;var G=this.files[Y];if(G||(Y.slice(-1)!=="/"&&(Y+="/"),G=this.files[Y]),G&&!G.dir)delete this.files[Y];else for(var V=this.filter(function(te,J){return J.name.slice(0,Y.length)===Y}),K=0;K<V.length;K++)delete this.files[V[K].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(Y){var G,V={};try{if((V=y.extend(Y||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:g.utf8encode})).type=V.type.toLowerCase(),V.compression=V.compression.toUpperCase(),V.type==="binarystring"&&(V.type="string"),!V.type)throw new Error("No output type specified.");y.checkSupport(V.type),V.platform!=="darwin"&&V.platform!=="freebsd"&&V.platform!=="linux"&&V.platform!=="sunos"||(V.platform="UNIX"),V.platform==="win32"&&(V.platform="DOS");var K=V.comment||this.comment||"";G=w.generateWorker(this,V,K)}catch(te){(G=new N("error")).error(te)}return new C(G,V.type||"string",V.mimeType)},generateAsync:function(Y,G){return this.generateInternalStream(Y).accumulate(G)},generateNodeStream:function(Y,G){return(Y=Y||{}).type||(Y.type="nodebuffer"),this.generateInternalStream(Y).toNodejsStream(G)}};b.exports=$},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(c,b,k){b.exports=c("stream")},{stream:void 0}],17:[function(c,b,k){var p=c("./DataReader");function g(y){p.call(this,y);for(var N=0;N<this.data.length;N++)y[N]=255&y[N]}c("../utils").inherits(g,p),g.prototype.byteAt=function(y){return this.data[this.zero+y]},g.prototype.lastIndexOfSignature=function(y){for(var N=y.charCodeAt(0),C=y.charCodeAt(1),v=y.charCodeAt(2),m=y.charCodeAt(3),T=this.length-4;0<=T;--T)if(this.data[T]===N&&this.data[T+1]===C&&this.data[T+2]===v&&this.data[T+3]===m)return T-this.zero;return-1},g.prototype.readAndCheckSignature=function(y){var N=y.charCodeAt(0),C=y.charCodeAt(1),v=y.charCodeAt(2),m=y.charCodeAt(3),T=this.readData(4);return N===T[0]&&C===T[1]&&v===T[2]&&m===T[3]},g.prototype.readData=function(y){if(this.checkOffset(y),y===0)return[];var N=this.data.slice(this.zero+this.index,this.zero+this.index+y);return this.index+=y,N},b.exports=g},{"../utils":32,"./DataReader":18}],18:[function(c,b,k){var p=c("../utils");function g(y){this.data=y,this.length=y.length,this.index=0,this.zero=0}g.prototype={checkOffset:function(y){this.checkIndex(this.index+y)},checkIndex:function(y){if(this.length<this.zero+y||y<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+y+"). Corrupted zip ?")},setIndex:function(y){this.checkIndex(y),this.index=y},skip:function(y){this.setIndex(this.index+y)},byteAt:function(){},readInt:function(y){var N,C=0;for(this.checkOffset(y),N=this.index+y-1;N>=this.index;N--)C=(C<<8)+this.byteAt(N);return this.index+=y,C},readString:function(y){return p.transformTo("string",this.readData(y))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var y=this.readInt(4);return new Date(Date.UTC(1980+(y>>25&127),(y>>21&15)-1,y>>16&31,y>>11&31,y>>5&63,(31&y)<<1))}},b.exports=g},{"../utils":32}],19:[function(c,b,k){var p=c("./Uint8ArrayReader");function g(y){p.call(this,y)}c("../utils").inherits(g,p),g.prototype.readData=function(y){this.checkOffset(y);var N=this.data.slice(this.zero+this.index,this.zero+this.index+y);return this.index+=y,N},b.exports=g},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(c,b,k){var p=c("./DataReader");function g(y){p.call(this,y)}c("../utils").inherits(g,p),g.prototype.byteAt=function(y){return this.data.charCodeAt(this.zero+y)},g.prototype.lastIndexOfSignature=function(y){return this.data.lastIndexOf(y)-this.zero},g.prototype.readAndCheckSignature=function(y){return y===this.readData(4)},g.prototype.readData=function(y){this.checkOffset(y);var N=this.data.slice(this.zero+this.index,this.zero+this.index+y);return this.index+=y,N},b.exports=g},{"../utils":32,"./DataReader":18}],21:[function(c,b,k){var p=c("./ArrayReader");function g(y){p.call(this,y)}c("../utils").inherits(g,p),g.prototype.readData=function(y){if(this.checkOffset(y),y===0)return new Uint8Array(0);var N=this.data.subarray(this.zero+this.index,this.zero+this.index+y);return this.index+=y,N},b.exports=g},{"../utils":32,"./ArrayReader":17}],22:[function(c,b,k){var p=c("../utils"),g=c("../support"),y=c("./ArrayReader"),N=c("./StringReader"),C=c("./NodeBufferReader"),v=c("./Uint8ArrayReader");b.exports=function(m){var T=p.getTypeOf(m);return p.checkSupport(T),T!=="string"||g.uint8array?T==="nodebuffer"?new C(m):g.uint8array?new v(p.transformTo("uint8array",m)):new y(p.transformTo("array",m)):new N(m)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(c,b,k){k.LOCAL_FILE_HEADER="PK��",k.CENTRAL_FILE_HEADER="PK��",k.CENTRAL_DIRECTORY_END="PK��",k.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK�\x07",k.ZIP64_CENTRAL_DIRECTORY_END="PK��",k.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(c,b,k){var p=c("./GenericWorker"),g=c("../utils");function y(N){p.call(this,"ConvertWorker to "+N),this.destType=N}g.inherits(y,p),y.prototype.processChunk=function(N){this.push({data:g.transformTo(this.destType,N.data),meta:N.meta})},b.exports=y},{"../utils":32,"./GenericWorker":28}],25:[function(c,b,k){var p=c("./GenericWorker"),g=c("../crc32");function y(){p.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}c("../utils").inherits(y,p),y.prototype.processChunk=function(N){this.streamInfo.crc32=g(N.data,this.streamInfo.crc32||0),this.push(N)},b.exports=y},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(c,b,k){var p=c("../utils"),g=c("./GenericWorker");function y(N){g.call(this,"DataLengthProbe for "+N),this.propName=N,this.withStreamInfo(N,0)}p.inherits(y,g),y.prototype.processChunk=function(N){if(N){var C=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=C+N.data.length}g.prototype.processChunk.call(this,N)},b.exports=y},{"../utils":32,"./GenericWorker":28}],27:[function(c,b,k){var p=c("../utils"),g=c("./GenericWorker");function y(N){g.call(this,"DataWorker");var C=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,N.then(function(v){C.dataIsReady=!0,C.data=v,C.max=v&&v.length||0,C.type=p.getTypeOf(v),C.isPaused||C._tickAndRepeat()},function(v){C.error(v)})}p.inherits(y,g),y.prototype.cleanUp=function(){g.prototype.cleanUp.call(this),this.data=null},y.prototype.resume=function(){return!!g.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,p.delay(this._tickAndRepeat,[],this)),!0)},y.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(p.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},y.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var N=null,C=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":N=this.data.substring(this.index,C);break;case"uint8array":N=this.data.subarray(this.index,C);break;case"array":case"nodebuffer":N=this.data.slice(this.index,C)}return this.index=C,this.push({data:N,meta:{percent:this.max?this.index/this.max*100:0}})},b.exports=y},{"../utils":32,"./GenericWorker":28}],28:[function(c,b,k){function p(g){this.name=g||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}p.prototype={push:function(g){this.emit("data",g)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(g){this.emit("error",g)}return!0},error:function(g){return!this.isFinished&&(this.isPaused?this.generatedError=g:(this.isFinished=!0,this.emit("error",g),this.previous&&this.previous.error(g),this.cleanUp()),!0)},on:function(g,y){return this._listeners[g].push(y),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(g,y){if(this._listeners[g])for(var N=0;N<this._listeners[g].length;N++)this._listeners[g][N].call(this,y)},pipe:function(g){return g.registerPrevious(this)},registerPrevious:function(g){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=g.streamInfo,this.mergeStreamInfo(),this.previous=g;var y=this;return g.on("data",function(N){y.processChunk(N)}),g.on("end",function(){y.end()}),g.on("error",function(N){y.error(N)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var g=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),g=!0),this.previous&&this.previous.resume(),!g},flush:function(){},processChunk:function(g){this.push(g)},withStreamInfo:function(g,y){return this.extraStreamInfo[g]=y,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var g in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,g)&&(this.streamInfo[g]=this.extraStreamInfo[g])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var g="Worker "+this.name;return this.previous?this.previous+" -> "+g:g}},b.exports=p},{}],29:[function(c,b,k){var p=c("../utils"),g=c("./ConvertWorker"),y=c("./GenericWorker"),N=c("../base64"),C=c("../support"),v=c("../external"),m=null;if(C.nodestream)try{m=c("../nodejs/NodejsStreamOutputAdapter")}catch{}function T(S,j){return new v.Promise(function(E,A){var O=[],F=S._internalType,$=S._outputType,Y=S._mimeType;S.on("data",function(G,V){O.push(G),j&&j(V)}).on("error",function(G){O=[],A(G)}).on("end",function(){try{var G=(function(V,K,te){switch(V){case"blob":return p.newBlob(p.transformTo("arraybuffer",K),te);case"base64":return N.encode(K);default:return p.transformTo(V,K)}})($,(function(V,K){var te,J=0,I=null,L=0;for(te=0;te<K.length;te++)L+=K[te].length;switch(V){case"string":return K.join("");case"array":return Array.prototype.concat.apply([],K);case"uint8array":for(I=new Uint8Array(L),te=0;te<K.length;te++)I.set(K[te],J),J+=K[te].length;return I;case"nodebuffer":return Buffer.concat(K);default:throw new Error("concat : unsupported type '"+V+"'")}})(F,O),Y);E(G)}catch(V){A(V)}O=[]}).resume()})}function w(S,j,E){var A=j;switch(j){case"blob":case"arraybuffer":A="uint8array";break;case"base64":A="string"}try{this._internalType=A,this._outputType=j,this._mimeType=E,p.checkSupport(A),this._worker=S.pipe(new g(A)),S.lock()}catch(O){this._worker=new y("error"),this._worker.error(O)}}w.prototype={accumulate:function(S){return T(this,S)},on:function(S,j){var E=this;return S==="data"?this._worker.on(S,function(A){j.call(E,A.data,A.meta)}):this._worker.on(S,function(){p.delay(j,arguments,E)}),this},resume:function(){return p.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(S){if(p.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new m(this,{objectMode:this._outputType!=="nodebuffer"},S)}},b.exports=w},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(c,b,k){if(k.base64=!0,k.array=!0,k.string=!0,k.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",k.nodebuffer=typeof Buffer<"u",k.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")k.blob=!1;else{var p=new ArrayBuffer(0);try{k.blob=new Blob([p],{type:"application/zip"}).size===0}catch{try{var g=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);g.append(p),k.blob=g.getBlob("application/zip").size===0}catch{k.blob=!1}}}try{k.nodestream=!!c("readable-stream").Readable}catch{k.nodestream=!1}},{"readable-stream":16}],31:[function(c,b,k){for(var p=c("./utils"),g=c("./support"),y=c("./nodejsUtils"),N=c("./stream/GenericWorker"),C=new Array(256),v=0;v<256;v++)C[v]=252<=v?6:248<=v?5:240<=v?4:224<=v?3:192<=v?2:1;C[254]=C[254]=1;function m(){N.call(this,"utf-8 decode"),this.leftOver=null}function T(){N.call(this,"utf-8 encode")}k.utf8encode=function(w){return g.nodebuffer?y.newBufferFrom(w,"utf-8"):(function(S){var j,E,A,O,F,$=S.length,Y=0;for(O=0;O<$;O++)(64512&(E=S.charCodeAt(O)))==55296&&O+1<$&&(64512&(A=S.charCodeAt(O+1)))==56320&&(E=65536+(E-55296<<10)+(A-56320),O++),Y+=E<128?1:E<2048?2:E<65536?3:4;for(j=g.uint8array?new Uint8Array(Y):new Array(Y),O=F=0;F<Y;O++)(64512&(E=S.charCodeAt(O)))==55296&&O+1<$&&(64512&(A=S.charCodeAt(O+1)))==56320&&(E=65536+(E-55296<<10)+(A-56320),O++),E<128?j[F++]=E:(E<2048?j[F++]=192|E>>>6:(E<65536?j[F++]=224|E>>>12:(j[F++]=240|E>>>18,j[F++]=128|E>>>12&63),j[F++]=128|E>>>6&63),j[F++]=128|63&E);return j})(w)},k.utf8decode=function(w){return g.nodebuffer?p.transformTo("nodebuffer",w).toString("utf-8"):(function(S){var j,E,A,O,F=S.length,$=new Array(2*F);for(j=E=0;j<F;)if((A=S[j++])<128)$[E++]=A;else if(4<(O=C[A]))$[E++]=65533,j+=O-1;else{for(A&=O===2?31:O===3?15:7;1<O&&j<F;)A=A<<6|63&S[j++],O--;1<O?$[E++]=65533:A<65536?$[E++]=A:(A-=65536,$[E++]=55296|A>>10&1023,$[E++]=56320|1023&A)}return $.length!==E&&($.subarray?$=$.subarray(0,E):$.length=E),p.applyFromCharCode($)})(w=p.transformTo(g.uint8array?"uint8array":"array",w))},p.inherits(m,N),m.prototype.processChunk=function(w){var S=p.transformTo(g.uint8array?"uint8array":"array",w.data);if(this.leftOver&&this.leftOver.length){if(g.uint8array){var j=S;(S=new Uint8Array(j.length+this.leftOver.length)).set(this.leftOver,0),S.set(j,this.leftOver.length)}else S=this.leftOver.concat(S);this.leftOver=null}var E=(function(O,F){var $;for((F=F||O.length)>O.length&&(F=O.length),$=F-1;0<=$&&(192&O[$])==128;)$--;return $<0||$===0?F:$+C[O[$]]>F?$:F})(S),A=S;E!==S.length&&(g.uint8array?(A=S.subarray(0,E),this.leftOver=S.subarray(E,S.length)):(A=S.slice(0,E),this.leftOver=S.slice(E,S.length))),this.push({data:k.utf8decode(A),meta:w.meta})},m.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:k.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},k.Utf8DecodeWorker=m,p.inherits(T,N),T.prototype.processChunk=function(w){this.push({data:k.utf8encode(w.data),meta:w.meta})},k.Utf8EncodeWorker=T},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(c,b,k){var p=c("./support"),g=c("./base64"),y=c("./nodejsUtils"),N=c("./external");function C(j){return j}function v(j,E){for(var A=0;A<j.length;++A)E[A]=255&j.charCodeAt(A);return E}c("setimmediate"),k.newBlob=function(j,E){k.checkSupport("blob");try{return new Blob([j],{type:E})}catch{try{var A=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return A.append(j),A.getBlob(E)}catch{throw new Error("Bug : can't construct the Blob.")}}};var m={stringifyByChunk:function(j,E,A){var O=[],F=0,$=j.length;if($<=A)return String.fromCharCode.apply(null,j);for(;F<$;)E==="array"||E==="nodebuffer"?O.push(String.fromCharCode.apply(null,j.slice(F,Math.min(F+A,$)))):O.push(String.fromCharCode.apply(null,j.subarray(F,Math.min(F+A,$)))),F+=A;return O.join("")},stringifyByChar:function(j){for(var E="",A=0;A<j.length;A++)E+=String.fromCharCode(j[A]);return E},applyCanBeUsed:{uint8array:(function(){try{return p.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return p.nodebuffer&&String.fromCharCode.apply(null,y.allocBuffer(1)).length===1}catch{return!1}})()}};function T(j){var E=65536,A=k.getTypeOf(j),O=!0;if(A==="uint8array"?O=m.applyCanBeUsed.uint8array:A==="nodebuffer"&&(O=m.applyCanBeUsed.nodebuffer),O)for(;1<E;)try{return m.stringifyByChunk(j,A,E)}catch{E=Math.floor(E/2)}return m.stringifyByChar(j)}function w(j,E){for(var A=0;A<j.length;A++)E[A]=j[A];return E}k.applyFromCharCode=T;var S={};S.string={string:C,array:function(j){return v(j,new Array(j.length))},arraybuffer:function(j){return S.string.uint8array(j).buffer},uint8array:function(j){return v(j,new Uint8Array(j.length))},nodebuffer:function(j){return v(j,y.allocBuffer(j.length))}},S.array={string:T,array:C,arraybuffer:function(j){return new Uint8Array(j).buffer},uint8array:function(j){return new Uint8Array(j)},nodebuffer:function(j){return y.newBufferFrom(j)}},S.arraybuffer={string:function(j){return T(new Uint8Array(j))},array:function(j){return w(new Uint8Array(j),new Array(j.byteLength))},arraybuffer:C,uint8array:function(j){return new Uint8Array(j)},nodebuffer:function(j){return y.newBufferFrom(new Uint8Array(j))}},S.uint8array={string:T,array:function(j){return w(j,new Array(j.length))},arraybuffer:function(j){return j.buffer},uint8array:C,nodebuffer:function(j){return y.newBufferFrom(j)}},S.nodebuffer={string:T,array:function(j){return w(j,new Array(j.length))},arraybuffer:function(j){return S.nodebuffer.uint8array(j).buffer},uint8array:function(j){return w(j,new Uint8Array(j.length))},nodebuffer:C},k.transformTo=function(j,E){if(E=E||"",!j)return E;k.checkSupport(j);var A=k.getTypeOf(E);return S[A][j](E)},k.resolve=function(j){for(var E=j.split("/"),A=[],O=0;O<E.length;O++){var F=E[O];F==="."||F===""&&O!==0&&O!==E.length-1||(F===".."?A.pop():A.push(F))}return A.join("/")},k.getTypeOf=function(j){return typeof j=="string"?"string":Object.prototype.toString.call(j)==="[object Array]"?"array":p.nodebuffer&&y.isBuffer(j)?"nodebuffer":p.uint8array&&j instanceof Uint8Array?"uint8array":p.arraybuffer&&j instanceof ArrayBuffer?"arraybuffer":void 0},k.checkSupport=function(j){if(!p[j.toLowerCase()])throw new Error(j+" is not supported by this platform")},k.MAX_VALUE_16BITS=65535,k.MAX_VALUE_32BITS=-1,k.pretty=function(j){var E,A,O="";for(A=0;A<(j||"").length;A++)O+="\\x"+((E=j.charCodeAt(A))<16?"0":"")+E.toString(16).toUpperCase();return O},k.delay=function(j,E,A){setImmediate(function(){j.apply(A||null,E||[])})},k.inherits=function(j,E){function A(){}A.prototype=E.prototype,j.prototype=new A},k.extend=function(){var j,E,A={};for(j=0;j<arguments.length;j++)for(E in arguments[j])Object.prototype.hasOwnProperty.call(arguments[j],E)&&A[E]===void 0&&(A[E]=arguments[j][E]);return A},k.prepareContent=function(j,E,A,O,F){return N.Promise.resolve(E).then(function($){return p.blob&&($ instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call($))!==-1)&&typeof FileReader<"u"?new N.Promise(function(Y,G){var V=new FileReader;V.onload=function(K){Y(K.target.result)},V.onerror=function(K){G(K.target.error)},V.readAsArrayBuffer($)}):$}).then(function($){var Y=k.getTypeOf($);return Y?(Y==="arraybuffer"?$=k.transformTo("uint8array",$):Y==="string"&&(F?$=g.decode($):A&&O!==!0&&($=(function(G){return v(G,p.uint8array?new Uint8Array(G.length):new Array(G.length))})($))),$):N.Promise.reject(new Error("Can't read the data of '"+j+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(c,b,k){var p=c("./reader/readerFor"),g=c("./utils"),y=c("./signature"),N=c("./zipEntry"),C=c("./support");function v(m){this.files=[],this.loadOptions=m}v.prototype={checkSignature:function(m){if(!this.reader.readAndCheckSignature(m)){this.reader.index-=4;var T=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+g.pretty(T)+", expected "+g.pretty(m)+")")}},isSignature:function(m,T){var w=this.reader.index;this.reader.setIndex(m);var S=this.reader.readString(4)===T;return this.reader.setIndex(w),S},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var m=this.reader.readData(this.zipCommentLength),T=C.uint8array?"uint8array":"array",w=g.transformTo(T,m);this.zipComment=this.loadOptions.decodeFileName(w)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var m,T,w,S=this.zip64EndOfCentralSize-44;0<S;)m=this.reader.readInt(2),T=this.reader.readInt(4),w=this.reader.readData(T),this.zip64ExtensibleData[m]={id:m,length:T,value:w}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var m,T;for(m=0;m<this.files.length;m++)T=this.files[m],this.reader.setIndex(T.localHeaderOffset),this.checkSignature(y.LOCAL_FILE_HEADER),T.readLocalPart(this.reader),T.handleUTF8(),T.processAttributes()},readCentralDir:function(){var m;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(y.CENTRAL_FILE_HEADER);)(m=new N({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(m);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var m=this.reader.lastIndexOfSignature(y.CENTRAL_DIRECTORY_END);if(m<0)throw this.isSignature(0,y.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip f
431ile ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(m);var T=m;if(this.checkSignature(y.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===g.MAX_VALUE_16BITS||this.diskWithCentralDirStart===g.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===g.MAX_VALUE_16BITS||this.centralDirRecords===g.MAX_VALUE_16BITS||this.centralDirSize===g.MAX_VALUE_32BITS||this.centralDirOffset===g.MAX_VALUE_32BITS){if(this.zip64=!0,(m=this.reader.lastIndexOfSignature(y.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(m),this.checkSignature(y.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,y.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(y.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(y.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var w=this.centralDirOffset+this.centralDirSize;this.zip64&&(w+=20,w+=12+this.zip64EndOfCentralSize);var S=T-w;if(0<S)this.isSignature(T,y.CENTRAL_FILE_HEADER)||(this.reader.zero=S);else if(S<0)throw new Error("Corrupted zip: missing "+Math.abs(S)+" bytes.")},prepareReader:function(m){this.reader=p(m)},load:function(m){this.prepareReader(m),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},b.exports=v},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(c,b,k){var p=c("./reader/readerFor"),g=c("./utils"),y=c("./compressedObject"),N=c("./crc32"),C=c("./utf8"),v=c("./compressions"),m=c("./support");function T(w,S){this.options=w,this.loadOptions=S}T.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(w){var S,j;if(w.skip(22),this.fileNameLength=w.readInt(2),j=w.readInt(2),this.fileName=w.readData(this.fileNameLength),w.skip(j),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((S=(function(E){for(var A in v)if(Object.prototype.hasOwnProperty.call(v,A)&&v[A].magic===E)return v[A];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+g.pretty(this.compressionMethod)+" unknown (inner file : "+g.transformTo("string",this.fileName)+")");this.decompressed=new y(this.compressedSize,this.uncompressedSize,this.crc32,S,w.readData(this.compressedSize))},readCentralPart:function(w){this.versionMadeBy=w.readInt(2),w.skip(2),this.bitFlag=w.readInt(2),this.compressionMethod=w.readString(2),this.date=w.readDate(),this.crc32=w.readInt(4),this.compressedSize=w.readInt(4),this.uncompressedSize=w.readInt(4);var S=w.readInt(2);if(this.extraFieldsLength=w.readInt(2),this.fileCommentLength=w.readInt(2),this.diskNumberStart=w.readInt(2),this.internalFileAttributes=w.readInt(2),this.externalFileAttributes=w.readInt(4),this.localHeaderOffset=w.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");w.skip(S),this.readExtraFields(w),this.parseZIP64ExtraField(w),this.fileComment=w.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var w=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),w==0&&(this.dosPermissions=63&this.externalFileAttributes),w==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var w=p(this.extraFields[1].value);this.uncompressedSize===g.MAX_VALUE_32BITS&&(this.uncompressedSize=w.readInt(8)),this.compressedSize===g.MAX_VALUE_32BITS&&(this.compressedSize=w.readInt(8)),this.localHeaderOffset===g.MAX_VALUE_32BITS&&
vendor: 15,479 bytes, line 431
431(this.localHeaderOffset=w.readInt(8)),this.diskNumberStart===g.MAX_VALUE_32BITS&&(this.diskNumberStart=w.readInt(4))}},readExtraFields:function(w){var S,j,E,A=w.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});w.index+4<A;)S=w.readInt(2),j=w.readInt(2),E=w.readData(j),this.extraFields[S]={id:S,length:j,value:E};w.setIndex(A)},handleUTF8:function(){var w=m.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=C.utf8decode(this.fileName),this.fileCommentStr=C.utf8decode(this.fileComment);else{var S=this.findExtraFieldUnicodePath();if(S!==null)this.fileNameStr=S;else{var j=g.transformTo(w,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(j)}var E=this.findExtraFieldUnicodeComment();if(E!==null)this.fileCommentStr=E;else{var A=g.transformTo(w,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(A)}}},findExtraFieldUnicodePath:function(){var w=this.extraFields[28789];if(w){var S=p(w.value);return S.readInt(1)!==1||N(this.fileName)!==S.readInt(4)?null:C.utf8decode(S.readData(w.length-5))}return null},findExtraFieldUnicodeComment:function(){var w=this.extraFields[25461];if(w){var S=p(w.value);return S.readInt(1)!==1||N(this.fileComment)!==S.readInt(4)?null:C.utf8decode(S.readData(w.length-5))}return null}},b.exports=T},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(c,b,k){function p(S,j,E){this.name=S,this.dir=E.dir,this.date=E.date,this.comment=E.comment,this.unixPermissions=E.unixPermissions,this.dosPermissions=E.dosPermissions,this._data=j,this._dataBinary=E.binary,this.options={compression:E.compression,compressionOptions:E.compressionOptions}}var g=c("./stream/StreamHelper"),y=c("./stream/DataWorker"),N=c("./utf8"),C=c("./compressedObject"),v=c("./stream/GenericWorker");p.prototype={internalStream:function(S){var j=null,E="string";try{if(!S)throw new Error("No output type specified.");var A=(E=S.toLowerCase())==="string"||E==="text";E!=="binarystring"&&E!=="text"||(E="string"),j=this._decompressWorker();var O=!this._dataBinary;O&&!A&&(j=j.pipe(new N.Utf8EncodeWorker)),!O&&A&&(j=j.pipe(new N.Utf8DecodeWorker))}catch(F){(j=new v("error")).error(F)}return new g(j,E,"")},async:function(S,j){return this.internalStream(S).accumulate(j)},nodeStream:function(S,j){return this.internalStream(S||"nodebuffer").toNodejsStream(j)},_compressWorker:function(S,j){if(this._data instanceof C&&this._data.compression.magic===S.magic)return this._data.getCompressedWorker();var E=this._decompressWorker();return this._dataBinary||(E=E.pipe(new N.Utf8EncodeWorker)),C.createWorkerFrom(E,S,j)},_decompressWorker:function(){return this._data instanceof C?this._data.getContentWorker():this._data instanceof v?this._data:new y(this._data)}};for(var m=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],T=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},w=0;w<m.length;w++)p.prototype[m[w]]=T;b.exports=p},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(c,b,k){(function(p){var g,y,N=p.MutationObserver||p.WebKitMutationObserver;if(N){var C=0,v=new N(S),m=p.document.createTextNode("");v.observe(m,{characterData:!0}),g=function(){m.data=C=++C%2}}else if(p.setImmediate||p.MessageChannel===void 0)g="document"in p&&"onreadystatechange"in p.document.createElement("script")?function(){var j=p.document.createElement("script");j.onreadystatechange=function(){S(),j.onreadystatechange=null,j.parentNode.removeChild(j),j=null},p.document.documentElement.appendChild(j)}:function(){setTimeout(S,0)};else{var T=new p.MessageChannel;T.port1.onmessage=S,g=function(){T.port2.postMessage(0)}}var w=[];function S(){var j,E;y=!0;for(var A=w.length;A;){for(E=w,w=[],j=-1;++j<A;)E[j]();A=w.length}y=!1}b.exports=function(j){w.push(j)!==1||y||g()}}).call(this,typeof Ao<"u"?Ao:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(c,b,k){var p=c("immediate");function g(){}var y={},N=["REJECTED"],C=["FULFILLED"],v=["PENDING"];function m(A){if(typeof A!="function")throw new TypeError("resolver must be a function");this.state=v,this.queue=[],this.outcome=void 0,A!==g&&j(this,A)}function T(A,O,F){this.promise=A,typeof O=="function"&&(this.onFulfilled=O,this.callFulfilled=this.otherCallFulfilled),typeof F=="function"&&(this.onRejected=F,this.callRejected=this.otherCallRejected)}function w(A,O,F){p(function(){var $;try{$=O(F)}catch(Y){return y.reject(A,Y)}$===A?y.reject(A,new TypeError("Cannot resolve promise with itself")):y.resolve(A,$)})}function S(A){var O=A&&A.then;if(A&&(typeof A=="object"||typeof A=="function")&&typeof O=="function")return function(){O.apply(A,arguments)}}function j(A,O){var F=!1;function $(V){F||(F=!0,y.reject(A,V))}function Y(V){F||(F=!0,y.resolve(A,V))}var G=E(function(){O(Y,$)});G.status==="error"&&$(G.value)}function E(A,O){var F={};try{F.value=A(O),F.status="success"}catch($){F.status="error",F.value=$}return F}(b.exports=m).prototype.finally=function(A){if(typeof A!="function")return this;var O=this.constructor;return this.then(function(F){return O.resolve(A()).then(function(){return F})},function(F){return O.resolve(A()).then(function(){throw F})})},m.prototype.catch=function(A){return this.then(null,A)},m.prototype.then=function(A,O){if(typeof A!="function"&&this.state===C||typeof O!="function"&&this.state===N)return this;var F=new this.constructor(g);return this.state!==v?w(F,this.state===C?A:O,this.outcome):this.queue.push(new T(F,A,O)),F},T.prototype.callFulfilled=function(A){y.resolve(this.promise,A)},T.prototype.otherCallFulfilled=function(A){w(this.promise,this.onFulfilled,A)},T.prototype.callRejected=function(A){y.reject(this.promise,A)},T.prototype.otherCallRejected=function(A){w(this.promise,this.onRejected,A)},y.resolve=function(A,O){var F=E(S,O);if(F.status==="error")return y.reject(A,F.value);var $=F.value;if($)j(A,$);else{A.state=C,A.outcome=O;for(var Y=-1,G=A.queue.length;++Y<G;)A.queue[Y].callFulfilled(O)}return A},y.reject=function(A,O){A.state=N,A.outcome=O;for(var F=-1,$=A.queue.length;++F<$;)A.queue[F].callRejected(O);return A},m.resolve=function(A){return A instanceof this?A:y.resolve(new this(g),A)},m.reject=function(A){var O=new this(g);return y.reject(O,A)},m.all=function(A){var O=this;if(Object.prototype.toString.call(A)!=="[object Array]")return this.reject(new TypeError("must be an array"));var F=A.length,$=!1;if(!F)return this.resolve([]);for(var Y=new Array(F),G=0,V=-1,K=new this(g);++V<F;)te(A[V],V);return K;function te(J,I){O.resolve(J).then(function(L){Y[I]=L,++G!==F||$||($=!0,y.resolve(K,Y))},function(L){$||($=!0,y.reject(K,L))})}},m.race=function(A){var O=this;if(Object.prototype.toString.call(A)!=="[object Array]")return this.reject(new TypeError("must be an array"));var F=A.length,$=!1;if(!F)return this.resolve([]);for(var Y=-1,G=new this(g);++Y<F;)V=A[Y],O.resolve(V).then(function(K){$||($=!0,y.resolve(G,K))},function(K){$||($=!0,y.reject(G,K))});var V;return G}},{immediate:36}],38:[function(c,b,k){var p={};(0,c("./lib/utils/common").assign)(p,c("./lib/deflate"),c("./lib/inflate"),c("./lib/zlib/constants")),b.exports=p},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(c,b,k){var p=c("./zlib/deflate"),g=c("./utils/common"),y=c("./utils/strings"),N=c("./zlib/messages"),C=c("./zlib/zstream"),v=Object.prototype.toString,m=0,T=-1,w=0,S=8;function j(A){if(!(this instanceof j))return new j(A);this.options=g.assign({level:T,method:S,chunkSize:16384,windowBits:15,memLevel:8,strategy:w,to:""},A||{});var O=this.options;O.raw&&0<O.windowBits?O.windowBits=-O.windowBits:O.gzip&&0<O.windowBits&&O.windowBits<16&&(O.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new C,this.strm.avail_out=0;var F=p.deflateInit2(this.strm,O.level,O.method,O.windowBits,O.memLevel,O.strategy);if(F!==m)throw new Error(N[F]);if(O.header&&p.deflateSetHeader(this.strm,O.header),O.dictionary){var $;if($=typeof O.dictionary=="string"?y.string2buf(O.dictionary):v.call(O.dictionary)==="[object ArrayBuffer]"?new Uint8Array(O.dictionary):O.dictionary,(F=p.deflateSetDictionary(this.strm,$))!==m)throw new Error(N[F]);this._dict_set=!0}}function E(A,O){var F=new j(O);if(F.push(A,!0),F.err)throw F.msg||N[F.err];return F.result}j.prototype.push=function(A,O){var F,$,Y=this.strm,G=this.options.chunkSize;if(this.ended)return!1;$=O===~~O?O:O===!0?4:0,typeof A=="string"?Y.input=y.string2buf(A):v.call(A)==="[object ArrayBuffer]"?Y.input=new Uint8Array(A):Y.input=A,Y.next_in=0,Y.avail_in=Y.input.length;do{if(Y.avail_out===0&&(Y.output=new g.Buf8(G),Y.next_out=0,Y.avail_out=G),(F=p.deflate(Y,$))!==1&&F!==m)return this.onEnd(F),!(this.ended=!0);Y.avail_out!==0&&(Y.avail_in!==0||$!==4&&$!==2)||(this.options.to==="string"?this.onData(y.buf2binstring(g.shrinkBuf(Y.output,Y.next_out))):this.onData(g.shrinkBuf(Y.output,Y.next_out)))}while((0<Y.avail_in||Y.avail_out===0)&&F!==1);return $===4?(F=p.deflateEnd(this.strm),this.onEnd(F),this.ended=!0,F===m):$!==2||(this.onEnd(m),!(Y.avail_out=0))},j.prototype.onData=function(A){this.chunks.push(A)},j.prototype.onEnd=function(A){A===m&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=g.flattenChunks(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg},k.Deflate=j,k.deflate=E,k.deflateRaw=function(A,O){return(O=O||{}).raw=!0,E(A,O)},k.gzip=function(A,O){return(O=O||{}).gzip=!0,E(A,O)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(c,b,k){var p=c("./zlib/inflate"),g=c("./utils/common"),y=c("./utils/strings"),N=c("./zlib/constants"),C=c("./zlib/messages"),v=c("./zlib/zstream"),m=c("./zlib/gzheader"),T=Object.prototype.toString;function w(j){if(!(this instanceof w))return new w(j);this.options=g.assign({chunkSize:16384,windowBits:0,to:""},j||{});var E=this.options;E.raw&&0<=E.windowBits&&E.windowBits<16&&(E.windowBits=-E.windowBits,E.windowBits===0&&(E.windowBits=-15)),!(0<=E.windowBits&&E.windowBits<16)||j&&j.windowBits||(E.windowBits+=32),15<E.windowBits&&E.windowBits<48&&(15&E.windowBits)==0&&(E.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new v,this.strm.avail_out=0;var A=p.inflateInit2(this.strm,E.windowBits);if(A!==N.Z_OK)throw new Error(C[A]);this.header=new m,p.inflateGetHeader(this.strm,this.header)}function S(j,E){var A=new w(E);if(A.push(j,!0),A.err)throw A.msg||C[A.err];return A.result}w.prototype.push=function(j,E){var A,O,F,$,Y,G,V=this.strm,K=this.options.chunkSize,te=this.options.dictionary,J=!1;if(this.ended)return!1;O=E===~~E?E:E===!0?N.Z_FINISH:N.Z_NO_FLUSH,typeof j=="string"?V.input=y.binstring2buf(j):T.call(j)==="[object ArrayBuffer]"?V.input=new Uint8Array(j):V.input=j,V.next_in=0,V.avail_in=V.input.length;do{if(V.avail_out===0&&(V.output=new g.Buf8(K),V.next_out=0,V.avail_out=K),(A=p.inflate(V,N.Z_NO_FLUSH))===N.Z_NEED_DICT&&te&&(G=typeof te=="string"?y.string2buf(te):T.call(te)==="[object ArrayBuffer]"?new Uint8Array(te):te,A=p.inflateSetDictionary(this.strm,G)),A===N.Z_BUF_ERROR&&J===!0&&(A=N.Z_OK,J=!1),A!==N.Z_STREAM_END&&A!==N.Z_OK)return this.onEnd(A),!(this.ended=!0);V.next_out&&(V.avail_out!==0&&A!==N.Z_STREAM_END&&(V.avail_in!==0||O!==N.Z_FINISH&&O!==N.Z_SYNC_FLUSH)||(this.options.to==="string"?(F=y.utf8border(V.output,V.next_out),$=V.next_out-F,Y=y.buf2string(V.output,F),V.next_out=$,V.avail_out=K-$,$&&g.arraySet(V.output,V.output,F,$,0),this.onData(Y)):this.onData(g.shrinkBuf(V.output,V.next_out)))),V.avail_in===0&&V.avail_out===0&&(J=!0)}while((0<V.avail_in||V.avail_out===0)&&A!==N.Z_STREAM_END);return A===N.Z_STREAM_END&&(O=N.Z_FINISH),O===N.Z_FINISH?(A=p.inflateEnd(this.strm),this.onEnd(A),this.ended=!0,A===N.Z_OK):O!==N.Z_SYNC_FLUSH||(this.onEnd(N.Z_OK),!(V.avail_out=0))},w.prototype.onData=function(j){this.chunks.push(j)},w.prototype.onEnd=function(j){j===N.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=g.flattenChunks(this.chunks)),this.chunks=[],this.err=j,this.msg=this.strm.msg},k.Inflate=w,k.inflate=S,k.inflateRaw=function(j,E){return(E=E||{}).raw=!0,S(j,E)},k.ungzip=S},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(c,b,k){var p=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";k.assign=function(N){for(var C=Array.prototype.slice.call(arguments,1);C.length;){var v=C.shift();if(v){if(typeof v!="object")throw new TypeError(v+"must be non-object");for(var m in v)v.hasOwnProperty(m)&&(N[m]=v[m])}}return N},k.shrinkBuf=function(N,C){return N.length===C?N:N.subarray?N.subarray(0,C):(N.length=C,N)};var g={arraySet:function(N,C,v,m,T){if(C.subarray&&N.subarray)N.set(C.subarray(v,v+m),T);else for(var w=0;w<m;w++)N[T+w]=C[v+w]},flattenChunks:function(N){var C,v,m,T,w,S;for(C=m=0,v=N.length;C<v;C++)m+=N[C].length;for(S=new Uint8Array(m),C=T=0,v=N.length;C<v;C++)w=N[C],S.set(w,T),T+=w.length;return S}},y={arraySet:function(N,C,v,m,T){for(var w=0;w<m;w++)N[T+w]=C[v+w]},flattenChunks:function(N){return[].concat.apply([],N)}};k.setTyped=function(N){N?(k.Buf8=Uint8Array,k.Buf16=Uint16Array,k.Buf32=Int32Array,k.assign(k,g)):(k.Buf8=Array,k.Buf16=Array,k.Buf32=Array,k.assign(k,y))},k.setTyped(p)},{}],42:[function(c,b,k){var p=c("./common"),g=!0,y=!0;try{String.fromCharCode.apply(null,[0])}catch{g=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{y=!1}for(var N=new p.Buf8(256),C=0;C<256;C++)N[C]=252<=C?6:248<=C?5:240<=C?4:224<=C?3:192<=C?2:1;function v(m,T){if(T<65537&&(m.subarray&&y||!m.subarray&&g))return String.fromCharCode.apply(null,p.shrinkBuf(m,T));for(var w="",S=0;S<T;S++)w+=String.fromCharCode(m[S]);return w}N[254]=N[254]=1,k.string2buf=function(m){var T,w,S,j,E,A=m.length,O=0;for(j=0;j<A;j++)(64512&(w=m.charCodeAt(j)))==55296&&j+1<A&&(64512&(S=m.charCodeAt(j+1)))==56320&&(w=65536+(w-55296<<10)+(S-56320),j++),O+=w<128?1:w<2048?2:w<65536?3:4;for(T=new p.Buf8(O),j=E=0;E<O;j++)(64512&(w=m.charCodeAt(j)))==55296&&j+1<A&&(64512&(S=m.charCodeAt(j+1)))==56320&&(w=65536+(w-55296<<10)+(S-56320),j++),w<128?T[E++]=w:(w<2048?T[E++]=192|w>>>6:(w<65536?T[E++]=224|w>>>12:(T[E++]=240|w>>>18,T[E++]=128|w>>>12&63),T[E++]=128|w>>>6&63),T[E++]=128|63&w);return T},k.buf2binstring=function(m){return v(m,m.length)},k.binstring2buf=function(m){for(var T=new p.Buf8(m.length),w=0,S=T.length;w<S;w++)T[w]=m.charCodeAt(w);return T},k.buf2string=function(m,T){var w,S,j,E,A=T||m.length,O=new Array(2*A);for(w=S=0;w<A;)if((j=m[w++])<128)O[S++]=j;else if(4<(E=N[j]))O[S++]=65533,w+=E-1;else{for(j&=E===2?31:E===3?15:7;1<E&&w<A;)j=j<<6|63&m[w++],E--;1<E?O[S++]=65533:j<65536?O[S++]=j:(j-=65536,O[S++]=55296|j>>10&1023,O[S++]=56320|1023&j)}return v(O,S)},k.utf8border=function(m,T){var w;for((T=T||m.length)>m.length&&(T=m.length),w=T-1;0<=w&&(192&m[w])==128;)w--;return w<0||w===0?T:w+N[m[w]]>T?w:T}},{"./common":41}],43:[function(c,b,k){b.exports=function(p,g,y,N){for(var C=65535&p|0,v=p>>>16&65535|0,m=0;y!==0;){for(y-=m=2e3<y?2e3:y;v=v+(C=C+g[N++]|0)|0,--m;);C%=65521,v%=65521}return C|v<<16|0}},{}],44:[function(c,b,k){b.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ER
vendor: 4,269 bytes, line 431
431ROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(c,b,k){var p=(function(){for(var g,y=[],N=0;N<256;N++){g=N;for(var C=0;C<8;C++)g=1&g?3988292384^g>>>1:g>>>1;y[N]=g}return y})();b.exports=function(g,y,N,C){var v=p,m=C+N;g^=-1;for(var T=C;T<m;T++)g=g>>>8^v[255&(g^y[T])];return-1^g}},{}],46:[function(c,b,k){var p,g=c("../utils/common"),y=c("./trees"),N=c("./adler32"),C=c("./crc32"),v=c("./messages"),m=0,T=4,w=0,S=-2,j=-1,E=4,A=2,O=8,F=9,$=286,Y=30,G=19,V=2*$+1,K=15,te=3,J=258,I=J+te+1,L=42,H=113,h=1,ie=2,ee=3,X=4;function le(x,pe){return x.msg=v[pe],pe}function xe(x){return(x<<1)-(4<x?9:0)}function B(x){for(var pe=x.length;0<=--pe;)x[pe]=0}function d(x){var pe=x.state,ue=pe.pending;ue>x.avail_out&&(ue=x.avail_out),ue!==0&&(g.arraySet(x.output,pe.pending_buf,pe.pending_out,ue,x.next_out),x.next_out+=ue,pe.pending_out+=ue,x.total_out+=ue,x.avail_out-=ue,pe.pending-=ue,pe.pending===0&&(pe.pending_out=0))}function U(x,pe){y._tr_flush_block(x,0<=x.block_start?x.block_start:-1,x.strstart-x.block_start,pe),x.block_start=x.strstart,d(x.strm)}function re(x,pe){x.pending_buf[x.pending++]=pe}function ne(x,pe){x.pending_buf[x.pending++]=pe>>>8&255,x.pending_buf[x.pending++]=255&pe}function ae(x,pe){var ue,D,R=x.max_chain_length,W=x.strstart,ye=x.prev_length,we=x.nice_match,oe=x.strstart>x.w_size-I?x.strstart-(x.w_size-I):0,ve=x.window,Ee=x.w_mask,ke=x.prev,ze=x.strstart+J,Ze=ve[W+ye-1],Ve=ve[W+ye];x.prev_length>=x.good_match&&(R>>=2),we>x.lookahead&&(we=x.lookahead);do if(ve[(ue=pe)+ye]===Ve&&ve[ue+ye-1]===Ze&&ve[ue]===ve[W]&&ve[++ue]===ve[W+1]){W+=2,ue++;do;while(ve[++W]===ve[++ue]&&ve[++W]===ve[++ue]&&ve[++W]===ve[++ue]&&ve[++W]===ve[++ue]&&ve[++W]===ve[++ue]&&ve[++W]===ve[++ue]&&ve[++W]===ve[++ue]&&ve[++W]===ve[++ue]&&W<ze);if(D=J-(ze-W),W=ze-J,ye<D){if(x.match_start=pe,we<=(ye=D))break;Ze=ve[W+ye-1],Ve=ve[W+ye]}}while((pe=ke[pe&Ee])>oe&&--R!=0);return ye<=x.lookahead?ye:x.lookahead}function _e(x){var pe,ue,D,R,W,ye,we,oe,ve,Ee,ke=x.w_size;do{if(R=x.window_size-x.lookahead-x.strstart,x.strstart>=ke+(ke-I)){for(g.arraySet(x.window,x.window,ke,ke,0),x.match_start-=ke,x.strstart-=ke,x.block_start-=ke,pe=ue=x.hash_size;D=x.head[--pe],x.head[pe]=ke<=D?D-ke:0,--ue;);for(pe=ue=ke;D=x.prev[--pe],x.prev[pe]=ke<=D?D-ke:0,--ue;);R+=ke}if(x.strm.avail_in===0)break;if(ye=x.strm,we=x.window,oe=x.strstart+x.lookahead,ve=R,Ee=void 0,Ee=ye.avail_in,ve<Ee&&(Ee=ve),ue=Ee===0?0:(ye.avail_in-=Ee,g.arraySet(we,ye.input,ye.next_in,Ee,oe),ye.state.wrap===1?ye.adler=N(ye.adler,we,Ee,oe):ye.state.wrap===2&&(ye.adler=C(ye.adler,we,Ee,oe)),ye.next_in+=Ee,ye.total_in+=Ee,Ee),x.lookahead+=ue,x.lookahead+x.insert>=te)for(W=x.strstart-x.insert,x.ins_h=x.window[W],x.ins_h=(x.ins_h<<x.hash_shift^x.window[W+1])&x.hash_mask;x.insert&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[W+te-1])&x.hash_mask,x.prev[W&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=W,W++,x.insert--,!(x.lookahead+x.insert<te)););}while(x.lookahead<I&&x.strm.avail_in!==0)}function Ce(x,pe){for(var ue,D;;){if(x.lookahead<I){if(_e(x),x.lookahead<I&&pe===m)return h;if(x.lookahead===0)break}if(ue=0,x.lookahead>=te&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+te-1])&x.hash_mask,ue=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart),ue!==0&&x.strstart-ue<=x.w_size-I&&(x.match_length=ae(x,ue)),x.match_length>=te)if(D=y._tr_tally(x,x.strstart-x.match_start,x.match_length-te),x.lookahead-=x.match_length,x.match_length<=x.max_lazy_match&&x.lookahead>=te){for(x.match_length--;x.strstart++,x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+te-1])&x.hash_mask,ue=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart,--x.match_length!=0;);x.strstart++}else x.strstart+=x.match_length,x.match_length=0,x.ins_h=x.window[x.strstart],x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+1])&x.hash_mask;else D=y._tr_tally(x,0,x.window[x.strstart]),x.lookahead--,x.strstart++;if(D&&(U(x,!1),x.strm.avail_out===0))return h}return x.insert=x.strstart<te-1?x.strstart:te-1,pe===T?(U(x,!0),x.strm.avail_out===0?ee:X):x.last_lit&&(U(x,!1),x.strm.avail_out===0)?h:ie}function Ae(x,pe){for(var ue,D,R;;
vendor: 35,422 bytes, line 431
431){if(x.lookahead<I){if(_e(x),x.lookahead<I&&pe===m)return h;if(x.lookahead===0)break}if(ue=0,x.lookahead>=te&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+te-1])&x.hash_mask,ue=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart),x.prev_length=x.match_length,x.prev_match=x.match_start,x.match_length=te-1,ue!==0&&x.prev_length<x.max_lazy_match&&x.strstart-ue<=x.w_size-I&&(x.match_length=ae(x,ue),x.match_length<=5&&(x.strategy===1||x.match_length===te&&4096<x.strstart-x.match_start)&&(x.match_length=te-1)),x.prev_length>=te&&x.match_length<=x.prev_length){for(R=x.strstart+x.lookahead-te,D=y._tr_tally(x,x.strstart-1-x.prev_match,x.prev_length-te),x.lookahead-=x.prev_length-1,x.prev_length-=2;++x.strstart<=R&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+te-1])&x.hash_mask,ue=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart),--x.prev_length!=0;);if(x.match_available=0,x.match_length=te-1,x.strstart++,D&&(U(x,!1),x.strm.avail_out===0))return h}else if(x.match_available){if((D=y._tr_tally(x,0,x.window[x.strstart-1]))&&U(x,!1),x.strstart++,x.lookahead--,x.strm.avail_out===0)return h}else x.match_available=1,x.strstart++,x.lookahead--}return x.match_available&&(D=y._tr_tally(x,0,x.window[x.strstart-1]),x.match_available=0),x.insert=x.strstart<te-1?x.strstart:te-1,pe===T?(U(x,!0),x.strm.avail_out===0?ee:X):x.last_lit&&(U(x,!1),x.strm.avail_out===0)?h:ie}function Me(x,pe,ue,D,R){this.good_length=x,this.max_lazy=pe,this.nice_length=ue,this.max_chain=D,this.func=R}function Fe(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=O,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new g.Buf16(2*V),this.dyn_dtree=new g.Buf16(2*(2*Y+1)),this.bl_tree=new g.Buf16(2*(2*G+1)),B(this.dyn_ltree),B(this.dyn_dtree),B(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new g.Buf16(K+1),this.heap=new g.Buf16(2*$+1),B(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new g.Buf16(2*$+1),B(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Te(x){var pe;return x&&x.state?(x.total_in=x.total_out=0,x.data_type=A,(pe=x.state).pending=0,pe.pending_out=0,pe.wrap<0&&(pe.wrap=-pe.wrap),pe.status=pe.wrap?L:H,x.adler=pe.wrap===2?0:1,pe.last_flush=m,y._tr_init(pe),w):le(x,S)}function He(x){var pe=Te(x);return pe===w&&(function(ue){ue.window_size=2*ue.w_size,B(ue.head),ue.max_lazy_match=p[ue.level].max_lazy,ue.good_match=p[ue.level].good_length,ue.nice_match=p[ue.level].nice_length,ue.max_chain_length=p[ue.level].max_chain,ue.strstart=0,ue.block_start=0,ue.lookahead=0,ue.insert=0,ue.match_length=ue.prev_length=te-1,ue.match_available=0,ue.ins_h=0})(x.state),pe}function Ie(x,pe,ue,D,R,W){if(!x)return S;var ye=1;if(pe===j&&(pe=6),D<0?(ye=0,D=-D):15<D&&(ye=2,D-=16),R<1||F<R||ue!==O||D<8||15<D||pe<0||9<pe||W<0||E<W)return le(x,S);D===8&&(D=9);var we=new Fe;return(x.state=we).strm=x,we.wrap=ye,we.gzhead=null,we.w_bits=D,we.w_size=1<<we.w_bits,we.w_mask=we.w_size-1,we.hash_bits=R+7,we.hash_size=1<<we.hash_bits,we.hash_mask=we.hash_size-1,we.hash_shift=~~((we.hash_bits+te-1)/te),we.window=new g.Buf8(2*we.w_size),we.head=new g.Buf16(we.hash_size),we.prev=new g.Buf16(we.w_size),we.lit_bufsize=1<<R+6,we.pending_buf_size=4*we.lit_bufsize,we.pending_buf=new g.Buf8(we.pending_buf_size),we.d_buf=1*we.lit_bufsize,we.l_buf=3*we.lit_bufsize,we.level=pe,we.strategy=W,we.method=ue,He(x)}p=[new Me(0,0,0,0,function(x,pe){var ue=65535;for(ue>x.pending_buf_size-5&&(ue=x.pending_buf_size-5);;){if(x.lookahead<=1){if(_e(x),x.lookahead===0&&pe===m)return h;if(x.lookahead===0)break}x.strstart+=x.lookahead,x.lookahead=0;var D=x.block_start+ue;if((x.strstart===0||x.strstart>=D)&&(x.lookahead=x.strstart-D,x.strstart=D,U(x,!1),x.strm.avail_out===0)||x.strstart-x.block_start>=x.w_size-I&&(U(x,!1),x.strm.avail_out===0))return h}return x.insert=0,pe===T?(U(x,!0),x.strm.avail_out===0?ee:X):(x.strstart>x.block_start&&(U(x,!1),x.strm.avail_out),h)}),new Me(4,4,8,4,Ce),new Me(4,5,16,8,Ce),new Me(4,6,32,32,Ce),new Me(4,4,16,16,Ae),new Me(8,16,32,32,Ae),new Me(8,16,128,128,Ae),new Me(8,32,128,256,Ae),new Me(32,128,258,1024,Ae),new Me(32,258,258,4096,Ae)],k.deflateInit=function(x,pe){return Ie(x,pe,O,15,8,0)},k.deflateInit2=Ie,k.deflateReset=He,k.deflateResetKeep=Te,k.deflateSetHeader=function(x,pe){return x&&x.state?x.state.wrap!==2?S:(x.state.gzhead=pe,w):S},k.deflate=function(x,pe){var ue,D,R,W;if(!x||!x.state||5<pe||pe<0)return x?le(x,S):S;if(D=x.state,!x.output||!x.input&&x.avail_in!==0||D.status===666&&pe!==T)return le(x,x.avail_out===0?-5:S);if(D.strm=x,ue=D.last_flush,D.last_flush=pe,D.status===L)if(D.wrap===2)x.adler=0,re(D,31),re(D,139),re(D,8),D.gzhead?(re(D,(D.gzhead.text?1:0)+(D.gzhead.hcrc?2:0)+(D.gzhead.extra?4:0)+(D.gzhead.name?8:0)+(D.gzhead.comment?16:0)),re(D,255&D.gzhead.time),re(D,D.gzhead.time>>8&255),re(D,D.gzhead.time>>16&255),re(D,D.gzhead.time>>24&255),re(D,D.level===9?2:2<=D.strategy||D.level<2?4:0),re(D,255&D.gzhead.os),D.gzhead.extra&&D.gzhead.extra.length&&(re(D,255&D.gzhead.extra.length),re(D,D.gzhead.extra.length>>8&255)),D.gzhead.hcrc&&(x.adler=C(x.adler,D.pending_buf,D.pending,0)),D.gzindex=0,D.status=69):(re(D,0),re(D,0),re(D,0),re(D,0),re(D,0),re(D,D.level===9?2:2<=D.strategy||D.level<2?4:0),re(D,3),D.status=H);else{var ye=O+(D.w_bits-8<<4)<<8;ye|=(2<=D.strategy||D.level<2?0:D.level<6?1:D.level===6?2:3)<<6,D.strstart!==0&&(ye|=32),ye+=31-ye%31,D.status=H,ne(D,ye),D.strstart!==0&&(ne(D,x.adler>>>16),ne(D,65535&x.adler)),x.adler=1}if(D.status===69)if(D.gzhead.extra){for(R=D.pending;D.gzindex<(65535&D.gzhead.extra.length)&&(D.pending!==D.pending_buf_size||(D.gzhead.hcrc&&D.pending>R&&(x.adler=C(x.adler,D.pending_buf,D.pending-R,R)),d(x),R=D.pending,D.pending!==D.pending_buf_size));)re(D,255&D.gzhead.extra[D.gzindex]),D.gzindex++;D.gzhead.hcrc&&D.pending>R&&(x.adler=C(x.adler,D.pending_buf,D.pending-R,R)),D.gzindex===D.gzhead.extra.length&&(D.gzindex=0,D.status=73)}else D.status=73;if(D.status===73)if(D.gzhead.name){R=D.pending;do{if(D.pending===D.pending_buf_size&&(D.gzhead.hcrc&&D.pending>R&&(x.adler=C(x.adler,D.pending_buf,D.pending-R,R)),d(x),R=D.pending,D.pending===D.pending_buf_size)){W=1;break}W=D.gzindex<D.gzhead.name.length?255&D.gzhead.name.charCodeAt(D.gzindex++):0,re(D,W)}while(W!==0);D.gzhead.hcrc&&D.pending>R&&(x.adler=C(x.adler,D.pending_buf,D.pending-R,R)),W===0&&(D.gzindex=0,D.status=91)}else D.status=91;if(D.status===91)if(D.gzhead.comment){R=D.pending;do{if(D.pending===D.pending_buf_size&&(D.gzhead.hcrc&&D.pending>R&&(x.adler=C(x.adler,D.pending_buf,D.pending-R,R)),d(x),R=D.pending,D.pending===D.pending_buf_size)){W=1;break}W=D.gzindex<D.gzhead.comment.length?255&D.gzhead.comment.charCodeAt(D.gzindex++):0,re(D,W)}while(W!==0);D.gzhead.hcrc&&D.pending>R&&(x.adler=C(x.adler,D.pending_buf,D.pending-R,R)),W===0&&(D.status=103)}else D.status=103;if(D.status===103&&(D.gzhead.hcrc?(D.pending+2>D.pending_buf_size&&d(x),D.pending+2<=D.pending_buf_size&&(re(D,255&x.adler),re(D,x.adler>>8&255),x.adler=0,D.status=H)):D.status=H),D.pending!==0){if(d(x),x.avail_out===0)return D.last_flush=-1,w}else if(x.avail_in===0&&xe(pe)<=xe(ue)&&pe!==T)return le(x,-5);if(D.status===666&&x.avail_in!==0)return le(x,-5);if(x.avail_in!==0||D.lookahead!==0||pe!==m&&D.status!==666){var we=D.strategy===2?(function(oe,ve){for(var Ee;;){if(oe.lookahead===0&&(_e(oe),oe.lookahead===0)){if(ve===m)return h;break}if(oe.match_length=0,Ee=y._tr_tally(oe,0,oe.window[oe.strstart]),oe.lookahead--,oe.strstart++,Ee&&(U(oe,!1),oe.strm.avail_out===0))return h}return oe.insert=0,ve===T?(U(oe,!0),oe.strm.avail_out===0?ee:X):oe.last_lit&&(U(oe,!1),oe.strm.avail_out===0)?h:ie})(D,pe):D.strategy===3?(function(oe,ve){for(var Ee,ke,ze,Ze,Ve=oe.window;;){if(oe.lookahead<=J){if(_e(oe),oe.lookahead<=J&&ve===m)return h;if(oe.lookahead===0)break}if(oe.match_length=0,oe.lookahead>=te&&0<oe.strstart&&(ke=Ve[ze=oe.strstart-1])===Ve[++ze]&&ke===Ve[++ze]&&ke===Ve[++ze]){Ze=oe.strstart+J;do;while(ke===Ve[++ze]&&ke===Ve[++ze]&&ke===Ve[++ze]&&ke===Ve[++ze]&&ke===Ve[++ze]&&ke===Ve[++ze]&&ke===Ve[++ze]&&ke===Ve[++ze]&&ze<Ze);oe.match_length=J-(Ze-ze),oe.match_length>oe.lookahead&&(oe.match_length=oe.lookahead)}if(oe.match_length>=te?(Ee=y._tr_tally(oe,1,oe.match_length-te),oe.lookahead-=oe.match_length,oe.strstart+=oe.match_length,oe.match_length=0):(Ee=y._tr_tally(oe,0,oe.window[oe.strstart]),oe.lookahead--,oe.strstart++),Ee&&(U(oe,!1),oe.strm.avail_out===0))return h}return oe.insert=0,ve===T?(U(oe,!0),oe.strm.avail_out===0?ee:X):oe.last_lit&&(U(oe,!1),oe.strm.avail_out===0)?h:ie})(D,pe):p[D.level].func(D,pe);if(we!==ee&&we!==X||(D.status=666),we===h||we===ee)return x.avail_out===0&&(D.last_flush=-1),w;if(we===ie&&(pe===1?y._tr_align(D):pe!==5&&(y._tr_stored_block(D,0,0,!1),pe===3&&(B(D.head),D.lookahead===0&&(D.strstart=0,D.block_start=0,D.insert=0))),d(x),x.avail_out===0))return D.last_flush=-1,w}return pe!==T?w:D.wrap<=0?1:(D.wrap===2?(re(D,255&x.adler),re(D,x.adler>>8&255),re(D,x.adler>>16&255),re(D,x.adler>>24&255),re(D,255&x.total_in),re(D,x.total_in>>8&255),re(D,x.total_in>>16&255),re(D,x.total_in>>24&255)):(ne(D,x.adler>>>16),ne(D,65535&x.adler)),d(x),0<D.wrap&&(D.wrap=-D.wrap),D.pending!==0?w:1)},k.deflateEnd=function(x){var pe;return x&&x.state?(pe=x.state.status)!==L&&pe!==69&&pe!==73&&pe!==91&&pe!==103&&pe!==H&&pe!==666?le(x,S):(x.state=null,pe===H?le(x,-3):w):S},k.deflateSetDictionary=function(x,pe){var ue,D,R,W,ye,we,oe,ve,Ee=pe.length;if(!x||!x.state||(W=(ue=x.state).wrap)===2||W===1&&ue.status!==L||ue.lookahead)return S;for(W===1&&(x.adler=N(x.adler,pe,Ee,0)),ue.wrap=0,Ee>=ue.w_size&&(W===0&&(B(ue.head),ue.strstart=0,ue.block_start=0,ue.insert=0),ve=new g.Buf8(ue.w_size),g.arraySet(ve,pe,Ee-ue.w_size,ue.w_size,0),pe=ve,Ee=ue.w_size),ye=x.avail_in,we=x.next_in,oe=x.input,x.avail_in=Ee,x.next_in=0,x.input=pe,_e(ue);ue.lookahead>=te;){for(D=ue.strstart,R=ue.lookahead-(te-1);ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[D+te-1])&ue.hash_mask,ue.prev[D&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=D,D++,--R;);ue.strstart=D,ue.lookahead=te-1,_e(ue)}return ue.strstart+=ue.lookahead,ue.block_start=ue.strstart,ue.insert=ue.lookahead,ue.lookahead=0,ue.match_length=ue.prev_length=te-1,ue.match_available=0,x.next_in=we,x.input=oe,x.avail_in=ye,ue.wrap=W,w},k.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(c,b,k){b.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(c,b,k){b.exports=function(p,g){var y,N,C,v,m,T,w,S,j,E,A,O,F,$,Y,G,V,K,te,J,I,L,H,h,ie;y=p.state,N=p.next_in,h=p.input,C=N+(p.avail_in-5),v=p.next_out,ie=p.output,m=v-(g-p.avail_out),T=v+(p.avail_out-257),w=y.dmax,S=y.wsize,j=y.whave,E=y.wnext,A=y.window,O=y.hold,F=y.bits,$=y.lencode,Y=y.distcode,G=(1<<y.lenbits)-1,V=(1<<y.distbits)-1;e:do{F<15&&(O+=h[N++]<<F,F+=8,O+=h[N++]<<F,F+=8),K=$[O&G];t:for(;;){if(O>>>=te=K>>>24,F-=te,(te=K>>>16&255)===0)ie[v++]=65535&K;else{if(!(16&te)){if((64&te)==0){K=$[(65535&K)+(O&(1<<te)-1)];continue t}if(32&te){y.mode=12;break e}p.msg="invalid literal/length code",y.mode=30;break e}J=65535&K,(te&=15)&&(F<te&&(O+=h[N++]<<F,F+=8),J+=O&(1<<te)-1,O>>>=te,F-=te),F<15&&(O+=h[N++]<<F,F+=8,O+=h[N++]<<F,F+=8),K=Y[O&V];a:for(;;){if(O>>>=te=K>>>24,F-=te,!(16&(te=K>>>16&255))){if((64&te)==0){K=Y[(65535&K)+(O&(1<<te)-1)];continue a}p.msg="invalid distance code",y.mode=30;break e}if(I=65535&K,F<(te&=15)&&(O+=h[N++]<<F,(F+=8)<te&&(O+=h[N++]<<F,F+=8)),w<(I+=O&(1<<te)-1)){p.msg="invalid distance too far back",y.mode=30;break e}if(O>>>=te,F-=te,(te=v-m)<I){if(j<(te=I-te)&&y.sane){p.msg="invalid distance too far back",y.mode=30;break e}if(H=A,(L=0)===E){if(L+=S-te,te<J){for(J-=te;ie[v++]=A[L++],--te;);L=v-I,H=ie}}else if(E<te){if(L+=S+E-te,(te-=E)<J){for(J-=te;ie[v++]=A[L++],--te;);if(L=0,E<J){for(J-=te=E;ie[v++]=A[L++],--te;);L=v-I,H=ie}}}else if(L+=E-te,te<J){for(J-=te;ie[v++]=A[L++],--te;);L=v-I,H=ie}for(;2<J;)ie[v++]=H[L++],ie[v++]=H[L++],ie[v++]=H[L++],J-=3;J&&(ie[v++]=H[L++],1<J&&(ie[v++]=H[L++]))}else{for(L=v-I;ie[v++]=ie[L++],ie[v++]=ie[L++],ie[v++]=ie[L++],2<(J-=3););J&&(ie[v++]=ie[L++],1<J&&(ie[v++]=ie[L++]))}break}}break}}while(N<C&&v<T);N-=J=F>>3,O&=(1<<(F-=J<<3))-1,p.next_in=N,p.next_out=v,p.avail_in=N<C?C-N+5:5-(N-C),p.avail_out=v<T?T-v+257:257-(v-T),y.hold=O,y.bits=F}},{}],49:[function(c,b,k){var p=c("../utils/common"),g=c("./adler32"),y=c("./crc32"),N=c("./inffast"),C=c("./inftrees"),v=1,m=2,T=0,w=-2,S=1,j=852,E=592;function A(L){return(L>>>24&255)+(L>>>8&65280)+((65280&L)<<8)+((255&L)<<24)}function O(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new p.Buf16(320),this.work=new p.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function F(L){var H;return L&&L.state?(H=L.state,L.total_in=L.total_out=H.total=0,L.msg="",H.wrap&&(L.adler=1&H.wrap),H.mode=S,H.last=0,H.havedict=0,H.dmax=32768,H.head=null,H.hold=0,H.bits=0,H.lencode=H.lendyn=new p.Buf32(j),H.distcode=H.distdyn=new p.Buf32(E),H.sane=1,H.back=-1,T):w}function $(L){var H;return L&&L.state?((H=L.state).wsize=0,H.whave=0,H.wnext=0,F(L)):w}function Y(L,H){var h,ie;return L&&L.state?(ie=L.state,H<0?(h=0,H=-H):(h=1+(H>>4),H<48&&(H&=15)),H&&(H<8||15<H)?w:(ie.window!==null&&ie.wbits!==H&&(ie.window=null),ie.wrap=h,ie.wbits=H,$(L))):w}function G(L,H){var h,ie;return L?(ie=new O,(L.state=ie).window=null,(h=Y(L,H))!==T&&(L.state=null),h):w}var V,K,te=!0;function J(L){if(te){var H;for(V=new p.Buf32(512),K=new p.Buf32(32),H=0;H<144;)L.lens[H++]=8;for(;H<256;)L.lens[H++]=9;for(;H<280;)L.lens[H++]=7;for(;H<288;)L.lens[H++]=8;for(C(v,L.lens,0,288,V,0,L.work,{bits:9}),H=0;H<32;)L.lens[H++]=5;C(m,L.lens,0,32,K,0,L.work,{bits:5}),te=!1}L.lencode=V,L.lenbits=9,L.distcode=K,L.distbits=5}function I(L,H,h,ie){var ee,X=L.state;return X.window===null&&(X.wsize=1<<X.wbits,X.wnext=0,X.whave=0,X.window=new p.Buf8(X.wsize)),ie>=X.wsize?(p.arraySet(X.window,H,h-X.wsize,X.wsize,0),X.wnext=0,X.whave=X.wsize):(ie<(ee=X.wsize-X.wnext)&&(ee=ie),p.arraySet(X.window,H,h-ie,ee,X.wnext),(ie-=ee)?(p.arraySet(X.window,H,h-ie,ie,0),X.wnext=ie,X.whave=X.wsize):(X.wnext+=ee,X.wnext===X.wsize&&(X.wnext=0),X.whave<X.wsize&&(X.whave+=ee))),0}k.inflateReset=$,k.inflateReset2=Y,k.inflateResetKeep=F,k.inflateInit=function(L){return G(L,15)},k.inflateInit2=G,k.inflate=function(L,H){var h,ie,ee,X,le,xe,B,d,U,re,ne,ae,_e,Ce,Ae,Me,Fe,Te,He,Ie,x,pe,ue,D,R=0,W=new p.Buf8(4),ye=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!L||!L.state||!L.output||!L.input&&L.avail_in!==0)return w;(h=L.state).mode===12&&(h.mode=13),le=L.next_out,ee=L.output,B=L.avail_out,X=L.next_in,ie=L.input,xe=L.avail_in,d=h.hold,U=h.bits,re=xe,ne=B,pe=T;e:for(;;)switch(h.mode){case S:if(h.wrap===0){h.mode=13;break}for(;U<16;){if(xe===0)break e;xe--,d+=ie[X++]<<U,U+=8}if(2&h.wrap&&d===35615){W[h.check=0]=255&d,W[1]=d>>>8&255,h.check=y(h.check,W,2,0),U=d=0,h.mode=2;break}if(h.flags=0,h.head&&(h.head.done=!1),!(1&h.wrap)||(((255&d)<<8)+(d>>8))%31){L.msg="incorrect header check",h.mode=30;break}if((15&d)!=8){L.msg="unknown compression method",h.mode=30;break}if(U-=4,x=8+(15&(d>>>=4)),h.wbits===0)h.wbits=x;else if(x>h.wbits){L.msg="invalid window size",h.mode=30;break}h.dmax=1<<x,L.adler=h.check=1,h.mode=512&d?10:12,U=d=0;break;case 2:for(;U<16;){if(xe===0)break e;xe--,d+=ie[X++]<<U,U+=8}if(h.flags=d,(255&h.flags)!=8){L.msg="unknown compression method",h.mode=30;break}if(57344&h.flags){L.msg="unknown header flags set",h.mode=30;break}h.head&&(h.head.text=d>>8&1),512&h.flags&&(W[0]=255&d,W[1]=d>>>8&255,h.check=y(h.check,W,2,0)),U=d=0,h.mode=3;case 3:for(;U<32;){if(xe===0)break e;xe--,d+=ie[X++]<<U,U+=8}h.head&&(h.head.time=d),512&h.flags&&(W[0]=255&d,W[1]=d>>>8&255,W[2]=d>>>16&255,W[3]=d>>>24&255,h.check=y(h.check,W,4,0)),U=d=0,h.mode=4;case 4:for(;U<16;){if(xe===0)break e;xe--,d+=ie[X++]<<U,U+=8}h.head&&(h.head.xflags=255&d,h.head.os=d>>8),512&h.flags&&(W[0]=255&d,W[1]=d>>>8&255,h.check=y(h.check,W,2,0)),U=d=0,h.mode=5;case 5:if(1024&h.flags){for(;U<16;){if(xe===0)break e;xe--,d+=ie[X++]<<U,U+=8}h.length=d,h.head&&(h.head.extra_len=d),512&h.flags&&(W[0]=255&d,W[1]=d>>>8&255,h.check=y(h.check,W,2,0)),U=d=0}else h.head&&(h.head.extra=null);h.mode=6;case 6:if(1024&h.flags&&(xe<(ae=h.length)&&(ae=xe),ae&&(h.head&&(x=h.head.extra_len-h.length,h.head.extra||(h.head.extra=new Array(h.head.extra_len)),p.arraySet(h.head.extra,ie,X,ae,x)),512&h.flags&&(h.check=y(h.check,ie,ae,X)),xe-=ae,X+=ae,h.length-=ae),h.length))break e;h.length=0,h.mode=7;case 7:if(2048&h.flags){if(xe===0)break e;for(ae=0;x=ie[X+ae++],h.head&&x&&h.length<65536&&(h.head.name+=String.fromCharCode(x)),x&&ae<xe;);if(512&h.flags&&(h.check=y(h.check,ie,ae,X)),xe-=ae,X+=ae,x)break e}else h.head&&(h.head.name=null);h.length=0,h.mode=8;case 8:if(4096&h.flags){if(xe===0)break e;for(ae=0;x=ie[X+ae++],h.head&&x&&h.length<65536&&(h.head.comment+=String.fromCharCode(x)),x&&ae<xe;);if(512&h.flags&&(h.check=y(h.check,ie,ae,X)),xe-=ae,X+=ae,x)break e}else h.head&&(h.head.comment=null);h.mode=9;case 9:if(512&h.flags){for(;U<16;){if(xe===0)break e;xe--,d+=ie[X++]<<U,U+=8}if(d!==(65535&h.check)){L.msg="header crc mismatch",h.mode=30;break}U=d=0}h.head&&(h.head.hcrc=h.flags>>9&1,h.head.done=!0),L.adler=h.check=0,h.mode=12;break;case 10:for(;U<32;){if(xe===0)break e;xe--,d+=ie[X++]<<U,U+=8}L.adler=h.check=A(d),U=d=0,h.mode=11;case 11:if(h.havedict===0)return L.next_out=le,L.avail_out=B,L.next_in=X,L.avail_in=xe,h.hold=d,h.bits=U,2;L.adler=h.check=1,h.mode=12;case 12:if(H===5||H===6)break e;case 13:if(h.last){d>>>=7&U,U-=7&U,h.mode=27;break}for(;U<3;){if(xe===0)break e;xe--,d+=ie[X++]<<U,U+=8}switch(h.last=1&d,U-=1,3&(d>>>=1)){case 0:h.mode=14;break;case 1:if(J(h),h.mode=20,H!==6)break;d>>>=2,U-=2;break e;case 2:h.mode=17;break;case 3:L.msg="invalid block type",h.mode=30}d>>>=2,U-=2;break;case 14:for(d>>>=7&U,U-=7&U;U<32;){if(xe===0)break e;xe--,d+=ie[X++]<<U,U+=8}if((65535&d)!=(d>>>16^65535)){L.msg="invalid stored block lengths",h.mode=30;break}if(h.length=65535&d,U=d=0,h.mode=15,H===6)break e;case 15:h.mode=16;case 16:if(ae=h.length){if(xe<ae&&(ae=xe),B<ae&&(ae=B),ae===0)break e;p.arraySet(ee,ie,X,ae,le),xe-=ae,X+=ae,B-=ae,le+=ae,h.length-=ae;break}h.mode=12;break;case 17:for(;U<14;){if(xe===0)break e;xe--,d+=ie[X++]<<U,U+=8}if(h.nlen=257+(31&d),d>>>=5,U-=5,h.ndist=1+(31&d),d>>>=5,U-=5,h.ncode=4+(15&d),d>>>=4,U-=4,286<h.nlen||30<h.ndist){L.msg="too many length or distance symbols",h.mode=30;break}h.have=0,h.mode=18;case 18:for(;h.have<h.ncode;){for(;U<3;){if(xe===0)break e;xe--,d+=ie[X++]<<U,U+=8}h.lens[ye[h.have++]]=7&d,d>>>=3,U-=3}for(;h.have<19;)h.lens[ye[h.have++]]=0;if(h.lencode=h.lendyn,h.lenbits=7,ue={bits:h.lenbits},pe=C(0,h.lens,0,19,h.lencode,0,h.work,ue),h.lenbits=ue.bits,pe){L.msg="invalid code lengths set",h.mode=30;break}h.have=0,h.mode=19;case 19:for(;h.have<h.nlen+h.ndist;){for(;Me=(R=h.lencode[d&(1<<h.lenbits)-1])>>>16&255,Fe=65535&R,!((Ae=R>>>24)<=U);){if(xe===0)break e;xe--,d+=ie[X++]<<U,U+=8}if(Fe<16)d>>>=Ae,U-=Ae,h.lens[h.have++]=Fe;else{if(Fe===16){for(D=Ae+2;U<D;){if(xe===0)break e;xe--,d+=ie[X++]<<U,U+=8}if(d>>>=Ae,U-=Ae,h.have===0){L.msg="invalid bit length repeat",h.mode=30;break}x=h.lens[h.have-1],ae=3+(3&d),d>>>=2,U-=2}else if(Fe===17){for(D=Ae+3;U<D;){if(xe===0)break e;xe--,d+=ie[X++]<<U,U+=8}U-=Ae,x=0,ae=3+(7&(d>>>=Ae)),d>>>=3,U-=3}else{for(D=Ae+7;U<D;){if(xe===0)break e;xe--,d+=ie[X++]<<U,U+=8}U-=Ae,x=0,ae=11+(127&(d>>>=Ae)),d>>>=7,U-=7}if(h.have+ae>h.nlen+h.ndist){L.msg="invalid bit length repeat",h.mode=30;break}for(;ae--;)h.lens[h.have++]=x}}if(h.mode===30)break;if(h.lens[256]===0){L.msg="invalid code -- missing end-of-block",h.mode=30;break}if(h.lenbits=9,ue={bits:h.lenbits},pe=C(v,h.lens,0,h.nlen,h.lencode,0,h.work,ue),h.lenbits=ue.bits,pe){L.msg="invalid literal/lengths set",h.mode=30;break}if(h.distbits=6,h.distcode=h.distdyn,ue={bits:h.distbits},pe=C(m,h.lens,h.nlen,h.ndist,h.distcode,0,h.work,ue),h.distbits=ue.bits,pe){L.msg="invalid distances set",h.mode=30;break}if(h.mode=20,H===6)break e;case 20:h.mode=21;case 21:if(6<=xe&&258<=B){L.next_out=le,L.avail_out=B,L.next_in=X,L.avail_in=xe,h.hold=d,h.bits=U,N(L,ne),le=L.next_out,ee=L.output,B=L.avail_out,X=L.next_in,ie=L.input,xe=L.avail_in,d=h.hold,U=h.bits,h.mode===12&&(h.back=-1);break}for(h.back=0;Me=(R=h.lencode[d&(1<<h.lenbits)-1])>>>16&255,Fe=65535&R,!((Ae=R>>>24)<=U);){if(xe===0)break e;xe--,d+=ie[X++]<<U,U+=8}if(Me&&(240&Me)==0){for(Te=Ae,He=Me,Ie=Fe;Me=(R=h.lencode[Ie+((d&(1<<Te+He)-1)>>Te)])>>>16&255,Fe=65535&R,!(Te+(Ae=R>>>24)<=U);){if(xe===0)break e;xe--,d+=ie[X++]<<U,U+=8}d>>>=Te,U-=Te,h.back+=Te}if(d>>>=Ae,U-=Ae,h.back+=Ae,h.length=Fe,Me===0){h.mode=26;break}if(32&Me){h.back=-1,h.mode=12;break}if(64&Me){L.msg="invalid literal/length code",h.mode=30;break}h.extra=15&Me,h.mode=22;case 22:if(h.extra){for(D=h.extra;U<D;){if(xe===0)break e;xe--,d+=ie[X++]<<U,U+=8}h.length+=d&(1<<h.extra)-1,d>>>=h.extra,U-=h.extra,h.back+=h.extra}h.was=h.length,h.mode=23;case 23:for(;Me=(R=h.distcode[d&(1<<h.distbits)-1])>>>16&255,Fe=65535&R,!((Ae=R>>>24)<=U);){if(xe===0)break e;xe--,d+=ie[X++]<<U,U+=8}if((240&Me)==0){for(Te=Ae,He=Me,Ie=Fe;Me=(R=h.distcode[Ie+((d&(1<<Te+He)-1)>>Te)])>>>16&255,Fe=65535&R,!(Te+(Ae=R>>>24)<=U);){if(xe===0)break e;xe--,d+=ie[X++]<<U,U+=8}d>>>=Te,U-=Te,h.back+=Te}if(d>>>=Ae,U-=Ae,h.back+=Ae,64&Me){L.msg="invalid distance code",h.mode=30;break}h.offset=Fe,h.extra=15&Me,h.mode=24;case 24:if(h.extra){for(D=h.extra;U<D;){if(xe===0)break e;xe--,d+=ie[X++]<<U,U+=8}h.offset+=d&(1<<h.extra)-1,d>>>=h.extra,U-=h.extra,h.back+=h.extra}if(h.offset>h.dmax){L.msg="invalid distance too far back",h.mode=30;break}h.mode=25;case 25:if(B===0)break e;if(ae=ne-B,h.offset>ae){if((ae=h.offset-ae)>h.whave&&h.sane){L.msg="invalid distance too far back",h.mode=30;break}_e=ae>h.wnext?(ae-=h.wnext,h.wsize-ae):h.wnext-ae,ae>h.length&&(ae=h.length),Ce=h.window}else Ce=ee,_e=le-h.offset,ae=h.length;for(B<ae&&(ae=B),B-=ae,h.length-=ae;ee[le++]=Ce[_e++],--ae;);h.length===0&&(h.mode=21);break;case 26:if(B===0)break e;ee[le++]=h.length,B--,h.mode=21;break;case 27:if(h.wrap){for(;U<32;){if(xe===0)break e;xe--,d|=ie[X++]<<U,U+=8}if(ne-=B,L.total_out+=ne,h.total+=ne,ne&&(L.adler=h.check=h.flags?y(h.check,ee,ne,le-ne):g(h.check,ee,ne,le-ne)),ne=B,(h.flags?d:A(d))!==h.check){L.msg="incorrect data check",h.mode=30;break}U=d=0}h.mode=28;case 28:if(h.wrap&&h.flags){for(;U<32;){if(xe===0)break e;xe--,d+=ie[X++]<<U,U+=8}if(d!==(4294967295&h.total)){L.msg="incorrect length check",h.mode=30;break}U=d=0}h.mode=29;case 29:pe=1;break e;case 30:pe=-3;break e;case 31:return-4;case 32:default:return w}return L.next_out=le,L.avail_out=B,L.next_in=X,L.avail_in=xe,h.hold=d,h.bits=U,(h.wsize||ne!==L.avail_out&&h.mode<30&&(h.mode<27||H!==4))&&I(L,L.output,L.next_out,ne-L.avail_out)?(h.mode=31,-4):(re-=L.avail_in,ne-=L.avail_out,L.total_in+=re,L.total_out+=ne,h.total+=ne,h.wrap&&ne&&(L.adler=h.check=h.flags?y(h.check,ee,ne,L.next_out-ne):g(h.check,ee,ne,L.next_out-ne)),L.data_type=h.bits+(h.last?64:0)+(h.mode===12?128:0)+(h.mode===20||h.mode===15?256:0),(re==0&&ne===0||H===4)&&pe===T&&(pe=-5),pe)},k.inflateEnd=function(L){if(!L||!L.state)return w;var H=L.state;return H.window&&(H.window=null),L.state=null,T},k.inflateGetHeader=function(L,H){var h;return L&&L.state?(2&(h=L.state).wrap)==0?w:((h.head=H).done=!1,T):w},k.inflateSetDictionary=function(L,H){var h,ie=H.length;return L&&L.state?(h=L.state).wrap!==0&&h.mode!==11?w:h.mode===11&&g(1,H,ie,0)!==h.check?-3:I(L,H,ie,ie)?(h.mode=31,-4):(h.havedict=1,T):w},k.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(c,b,k){var p=c("../utils/common"),g=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],y=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],N=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],C=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];b.exports=function(v,m,T,w,S,j,E,A){var O,F,$,Y,G,V,K,te,J,I=A.bits,L=0,H=0,h=0,ie=0,ee=0,X=0,le=0,xe=0,B=0,d=0,U=null,re=0,ne=new p.Buf16(16),ae=new p.Buf16(16),_e=null,Ce=0;for(L=0;L<=15;L++)ne[L]=0;for(H=0;H<w;H++)ne[m[T+H]]++;for(ee=I,ie=15;1<=ie&&ne[ie]===0;ie--);if(ie<ee&&(ee=ie),ie===0)return S[j++]=20971520,S[j++]=20971520,A.bits=1,0;for(h=1;h<ie&&ne[h]===0;h++);for(ee<h&&(ee=h),L=xe=1;L<=15;L++)if(xe<<=1,(xe-=ne[L])<0)return-1;if(0<xe&&(v===0||ie!==1))return-1;for(ae[1]=0,L=1;L<15;L++)ae[L+1]=ae[L]+ne[L];for(H=0;H<w;H++)m[T+H]!==0&&(E[ae[m[T+H]]++]=H);if(V=v===0?(U=_e=E,19):v===1?(U=g,re-=257,_e=y,Ce-=257,256):(U=N,_e=C,-1),L=h,G=j,le=H=d=0,$=-1,Y=(B=1<<(X=ee))-1,v===1&&852<B||v===2&&592<B)return 1;for(;;){for(K=L-le,J=E[H]<V?(te=0,E[H]):E[H]>V?(te=_e[Ce+E[H]],U[re+E[H]]):(te=96,0),O=1<<L-le,h=F=1<<X;S[G+(d>>le)+(F-=O)]=K<<24|te<<16|J|0,F!==0;);for(O=1<<L-1;d&O;)O>>=1;if(O!==0?(d&=O-1,d+=O):d=0,H++,--ne[L]==0){if(L===ie)break;L=m[T+E[H]]}if(ee<L&&(d&Y)!==$){for(le===0&&(le=ee),G+=h,xe=1<<(X=L-le);X+le<ie&&!((xe-=ne[X+le])<=0);)X++,xe<<=1;if(B+=1<<X,v===1&&852<B||v===2&&592<B)return 1;S[$=d&Y]=ee<<24|X<<16|G-j|0}}return d!==0&&(S[G+d]=L-le<<24|64<<16|0),A.bits=ee,0}},{"../utils/common":41}],51:[function(c,b,k){b.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(c,b,k){var p=c("../utils/common"),g=0,y=1;function N(R){for(var W=R.length;0<=--W;)R[W]=0}var C=0,v=29,m=256,T=m+1+v,w=30,S=19,j=2*T+1,E=15,A=16,O=7,F=256,$=16,Y=17,G=18,V=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],K=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],te=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],J=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],I=new Array(2*(T+2));N(I);var L=new Array(2*w);N(L);var H=new Array(512);N(H);var h=new Array(256);N(h);var ie=new Array(v);N(ie);var ee,X,le,xe=new Array(w);function B(R,W,ye,we,oe){this.static_tree=R,this.extra_bits=W,this.extra_base=ye,this.elems=we,this.max_length=oe,this.has_stree=R&&R.length}function d(R,W){this.dyn_tree=R,this.max_code=0,this.stat_desc=W}function U(R){return R<256?H[R]:H[256+(R>>>7)]}function re(R,W){R.pending_buf[R.pending++]=255&W,R.pending_buf[R.pending++]=W>>>8&255}function ne(R,W,ye){R.bi_valid>A-ye?(R.bi_buf|=W<<R.bi_valid&65535,re(R,R.bi_buf),R.bi_buf=W>>A-R.bi_valid,R.bi_valid+=ye-A):(R.bi_buf|=W<<R.bi_valid&65535,R.bi_valid+=ye)}function ae(R,W,ye){ne(R,ye[2*W],ye[2*W+1])}function _e(R,W){for(var ye=0;ye|=1&R,R>>>=1,ye<<=1,0<--W;);return ye>>>1}function Ce(R,W,ye){var we,oe,ve=new Array(E+1),Ee=0;for(we=1;we<=E;we++)ve[we]=Ee=Ee+ye[we-1]<<1;for(oe=0;oe<=W;oe++){var ke=R[2*oe+1];ke!==0&&(R[2*oe]=_e(ve[ke]++,ke))}}function Ae(R){var W;for(W=0;W<T;W++)R.dyn_ltree[2*W]=0;for(W=0;W<w;W++)R.dyn_dtree[2*W]=0;for(W=0;W<S;W++)R.bl_tree[2*W]=0;R.dyn_ltree[2*F]=1,R.opt_len=R.static_len=0,R.last_lit=R.matches=0}function Me(R){8<R.bi_valid?re(R,R.bi_buf):0<R.bi_valid&&(R.pending_buf[R.pending++]=R.bi_buf),R.bi_buf=0,R.bi_valid=0}function Fe(R,W,ye,we){var oe=2*W,ve=2*ye;return R[oe]<R[ve]||R[oe]===R[ve]&&we[W]<=we[ye]}function Te(R,W,ye){for(var we=R.heap[ye],oe=ye<<1;oe<=R.heap_len&&(oe<R.heap_len&&Fe(W,R.heap[oe+1],R.heap[oe],R.depth)&&oe++,!Fe(W,we,R.heap[oe],R.depth));)R.heap[ye]=R.heap[oe],ye=oe,oe<<=1;R.heap[ye]=we}function He(R,W,ye){var we,oe,ve,Ee,ke=0;if(R.last_lit!==0)for(;we=R.pending_buf[R.d_buf+2*ke]<<8|R.pending_buf[R.d_buf+2*ke+1],oe=R.pending_buf[R.l_buf+ke],ke++,we===0?ae(R,oe,W):(ae(R,(ve=h[oe])+m+1,W),(Ee=V[ve])!==0&&ne(R,oe-=ie[ve],Ee),ae(R,ve=U(--we),ye),(Ee=K[ve])!==0&&ne(R,we-=xe[ve],Ee)),ke<R.last_lit;);ae(R,F,W)}function Ie(R,W){var ye,we,oe,ve=W.dyn_tree,Ee=W.stat_desc.static_tree,ke=W.stat_desc.has_stree,ze=W.stat_desc.elems,Ze=-1;for(R.heap_len=0,R.heap_max=j,ye=0;ye<ze;ye++)ve[2*ye]!==0?(R.heap[++R.heap_len]=Ze=ye,R.depth[ye]=0):ve[2*ye+1]=0;for(;R.heap_len<2;)ve[2*(oe=R.heap[++R.heap_len]=Ze<2?++Ze:0)]=1,R.depth[oe]=0,R.opt_len--,ke&&(R.static_len-=Ee[2*oe+1]);for(W.max_code=Ze,ye=R.heap_len>>1;1<=ye;ye--)Te(R,ve,ye);for(oe=ze;ye=R.heap[1],R.heap[1]=R.heap[R.heap_len--],Te(R,ve,1),we=R.heap[1],R.heap[--R.heap_max]=ye,R.heap[--R.heap_max]=we,ve[2*oe]=ve[2*ye]+ve[2*we],R.depth[oe]=(R.depth[ye]>=R.depth[we]?R.depth[ye]:R.depth[we])+1,ve[2*ye+1]=ve[2*we+1]=oe,R.heap[1]=oe++,Te(R,ve,1),2<=R.heap_len;);R.heap[--R.heap_max]=R.heap[1],(function(Ve,Ye){var la,zt,_a,lt,Nt,ra,xt=Ye.dyn_tree,Wl=Ye.max_code,er=Ye.stat_desc.static_tree,tr=Ye.stat_desc.has_stree,Ps=Ye.stat_desc.extra_bits,Wa=Ye.stat_desc.extra_base,ka=Ye.stat_desc.max_length,ea=0;for(lt=0;lt<=E;lt++)Ve.bl_count[lt]=0;for(xt[2*Ve.heap[Ve.heap_max]+1]=0,la=Ve.heap_max+1;la<j;la++)ka<(lt=xt[2*xt[2*(zt=Ve.heap[la])+1]+1]+1)&&(lt=ka,ea++),xt[2*zt+1]=lt,Wl<zt||(Ve.bl_count[lt]++,Nt=0,Wa<=zt&&(Nt=Ps[zt-Wa]),ra=xt[2*zt],Ve.opt_len+=ra*(lt+Nt),tr&&(Ve.static_len+=ra*(er[2*zt+1]+Nt)));if(ea!==0){do{for(lt=ka-1;Ve.bl_count[lt]===0;)lt--;Ve.bl_count[lt]--,Ve.bl_count[lt+1]+=2,Ve.bl_count[ka]--,ea-=2}while(0<ea);for(lt=ka;lt!==0;lt--)for(zt=Ve.bl_count[lt];zt!==0;)Wl<(_a=Ve.heap[--la])||(xt[2*_a+1]!==lt&&(Ve.opt_len+=(lt-xt[2*_a+1])*xt[2*_a],xt[2*_a+1]=lt),zt--)}})(R,W),Ce(ve,Ze,R.bl_count)}function x(R,W,ye){var we,oe,ve=-1,Ee=W[1],ke=0,ze=7,Ze=4;for(Ee===0&&(ze=138,Ze=3),W[2*(ye+1)+1]=65535,we=0;we<=ye;we++)oe=Ee,Ee=W[2*(we+1)+1],++ke<ze&&oe===Ee||(ke<Ze?R.bl_tree[2*oe]+=ke:oe!==0?(oe!==ve&&R.bl_tree[2*oe]++,R.bl_tree[2*$]++):ke<=10?R.bl_tree[2*Y]++:R.bl_tree[2*G]++,ve=oe,Ze=(ke=0)===Ee?(ze=138,3):oe===Ee?(ze=6,3):(ze=7,4))}function pe(R,W,ye){var we,oe,ve=-1,Ee=W[1],ke=0,ze=7,Ze=4;for(Ee===0&&(ze=138,Ze=3),we=0;we<=ye;we++)if(oe=Ee,Ee=W[2*(we+1)+1],!(++ke<ze&&oe===Ee)){if(ke<Ze)for(;ae(R,oe,R.bl_tree),--ke!=0;);else oe!==0?(oe!==ve&&(ae(R,oe,R.bl_tree),ke--),ae(R,$,R.bl_tree),ne(R,ke-3,2)):ke<=10?(ae(R,Y,R.bl_tree),ne(R,ke-3,3)):(ae(R,G,R.bl_tree),ne(R,ke-11,7));ve=oe,Ze=(ke=0)===Ee?(ze=138,3):oe===Ee?(ze=6,3):(ze=7,4)}}N(xe);var ue=!1;function D(R,W,ye,we){ne(R,(C<<1)+(we?1:0),3),(function(oe,ve,Ee,ke){Me(oe),re(oe,Ee),re(oe,~Ee),p.arraySet(oe.pending_buf,oe.window,ve,Ee,oe.pending),oe.pending+=Ee})(R,W,ye)}k._tr_init=function(R){ue||((function(){var W,ye,we,oe,ve,Ee=new Array(E+1);for(oe=we=0;oe<v-1;oe++)for(ie[oe]=we,W=0;W<1<<V[oe];W++)h[we++]=oe;for(h[we-1]=oe,oe=ve=0;oe<16;oe++)for(xe[oe]=ve,W=0;W<1<<K[oe];W++)H[ve++]=oe;for(ve>>=7;oe<w;oe++)for(xe[oe]=ve<<7,W=0;W<1<<K[oe]-7;W++)H[256+ve++]=oe;for(ye=0;ye<=E;ye++)Ee[ye]=0;for(W=0;W<=143;)I[2*W+1]=8,W++,Ee[8]++;for(;W<=255;)I[2*W+1]=9,W++,Ee[9]++;for(;W<=279;)I[2*W+1]=7,W++,Ee[7]++;for(;W<=287;)I[2*W+1]=8,W++,Ee[8]++;for(Ce(I,T+1,Ee),W=0;W<w;W++)L[2*W+1]=5,L[2*W]=_e(W,5);ee=new B(I,V,m+1,T,E),X=new B(L,K,0,w,E),le=new B(new Array(0),te,0,S,O)})(),ue=!0),R.l_desc=new d(R.dyn_ltree,ee),R.d_desc=new d(R.dyn_dtree,X),R.bl_desc=new d(R.bl_tree,le),R.bi_buf=0,R.bi_valid=0,Ae(R)},k._tr_stored_block=D,k._tr_flush_block=function(R,W,ye,we){var oe,ve,Ee=0;0<R.level?(R.strm.data_type===2&&(R.strm.data_type=(function(ke){var ze,Ze=4093624447;for(ze=0;ze<=31;ze++,Ze>>>=1)if(1&Ze&&ke.dyn_ltree[2*ze]!==0)return g;if(ke.dyn_ltree[18]!==0||ke.dyn_ltree[20]!==0||ke.dyn_ltree[26]!==0)return y;for(ze=32;ze<m;ze++)if(ke.dyn_ltree[2*ze]!==0)return y;return g})(R)),Ie(R,R.l_desc),Ie(R,R.d_desc),Ee=(function(ke){var ze;for(x(ke,ke.dyn_ltree,ke.l_desc.max_code),x(ke,ke.dyn_dtree,ke.d_desc.max_code),Ie(ke,ke.bl_desc),ze=S-1;3<=ze&&ke.bl_tree[2*J[ze]+1]===0;ze--);return ke.opt_len+=3*(ze+1)+5+5+4,ze})(R),oe=R.opt_len+3+7>>>3,(ve=R.static_len+3+7>>>3)<=oe&&(oe=ve)):oe=ve=ye+5,ye+4<=oe&&W!==-1?D(R,W,ye,we):R.strategy===4||ve===oe?(ne(R,2+(we?1:0),3),He(R,I,L)):(ne(R,4+(we?1:0),3),(function(ke,ze,Ze,Ve){var Ye;for(ne(ke,ze-257,5),ne(ke,Ze-1,5),ne(ke,Ve-4,4),Ye=0;Ye<Ve;Ye++)ne(ke,ke.bl_tree[2*J[Ye]+1],3);pe(ke,ke.dyn_ltree,ze-1),pe(ke,ke.dyn_dtree,Ze-1)})(R,R.l_desc.max_code+1,R.d_desc.max_code+1,Ee+1),He(R,R.dyn_ltree,R.dyn_dtree)),Ae(R),we&&Me(R)},k._tr_tally=function(R,W,ye){return R.pending_buf[R.d_buf+2*R.last_lit]=W>>>8&255,R.pending_buf[R.d_buf+2*R.last_lit+1]=255&W,R.pending_buf[R.l_buf+R.last_lit]=255&ye,R.last_lit++,W===0?R.dyn_ltree[2*ye]++:(R.matches++,W--,R.dyn_ltree[2*(h[ye]+m+1)]++,R.dyn_dtree[2*U(W)]++),R.last_lit===R.lit_bufsize-1},k._tr_align=function(R){ne(R,2,3),ae(R,F,I),(function(W){W.bi_valid===16?(re(W,W.bi_buf),W.bi_buf=0,W.bi_valid=0):8<=W.bi_valid&&(W.pending_buf[W.pending++]=255&W.bi_buf,W.bi_buf>>=8,W.bi_valid-=8)})(R)}},{"../utils/common":41}],53:[function(c,b,k){b.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(c,b,k){(function(p){(function(g,y){if(!g.setImmediate){var N,C,v,m,T=1,w={},S=!1,j=g.document,E=Object.getPrototypeOf&&Object.getPrototypeOf(g);E=E&&E.setTimeout?E:g,N={}.toString.call(g.process)==="[object process]"?function($){process.nextTick(function(){O($)})}:(function(){if(g.postMessage&&!g.importScripts){var $=!0,Y=g.onmessage;return g.onmessage=function(){$=!1},g.postMessage("","*"),g.onmessage=Y,$}})()?(m="setImmediate$"+Math.random()+"$",g.addEventListener?g.addEventListener("message",F,!1):g.attachEvent("onmessage",F),function($){g.postMessage(m+$,"*")}):g.MessageChannel?((v=new MessageChannel).port1.onmessage=function($){O($.data)},function($){v.port2.postMessage($)}):j&&"onreadystatechange"in j.createElement("script")?(C=j.documentElement,function($){var Y=j.createElement("script");Y.onreadystatechange=function(){O($),Y.onreadystatechange=null,C.removeChild(Y),Y=null},C.appendChild(Y)}):function($){setTimeout(O,0,$)},E.setImmediate=function($){typeof $!="function"&&($=new Function(""+$));for(var Y=new Array(arguments.length-1),G=0;G<Y.length;G++)Y[G]=arguments[G+1];var V={callback:$,args:Y};return w[T]=V,N(T),T++},E.clearImmediate=A}function A($){delete w[$]}function O($){if(S)setTimeout(O,0,$);else{var Y=w[$];if(Y){S=!0;try{(function(G){var V=G.callback,K=G.args;switch(K.length){case 0:V();break;case 1:V(K[0]);break;case 2:V(K[0],K[1]);break;case 3:V(K[0],K[1],K[2]);break;default:V.apply(y,K)}})(Y)}finally{A($),S=!1}}}}
431function F($){$.source===g&&typeof $.data=="string"&&$.data.indexOf(m)===0&&O(+$.data.slice(m.length))}})(typeof self>"u"?p===void 0?this:p:self)}).call(this,typeof Ao<"u"?Ao:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(ju)),ju.exports}var o2=i2();const c2=Qx(o2),bh="/api/registration",d2="/api/registration/upload",u2="/api/event-registration",m2="/api/event-payment/checkout",Qo=async(o,f)=>{try{return(await o.json()).error||f}catch{return f}},fv=async o=>{const f=await fetch(bh,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)});if(!f.ok)throw new Error(await Qo(f,"Transmission de l’adhésion impossible."));return f.json()},p2=async o=>{const f=await fetch(bh,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({submissionType:"trial-request",...o})});if(!f.ok)throw new Error(await Qo(f,"Transmission de la demande d’essai impossible."));return f.json()},x2=async o=>{const f=await fetch(u2,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)});if(!f.ok)throw new Error(await Qo(f,"Transmission de l’inscription evenement impossible."));return f.json()},h2=async(o,f)=>{const c=await fetch(m2,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({eventId:o,eventRegistrationId:f})}),b=await c.json();if(!c.ok||!b.url)throw new Error(b.error||"Paiement Stripe événement indisponible pour le moment.");return b.url},bv=async(o,f)=>{const c=await o.arrayBuffer(),b=Array.from(new Uint8Array(c)),k=await fetch(d2,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({folder:"registrations/supporting-documents",label:f,fileName:o.name,mimeType:o.type,data:b})});if(!k.ok)throw new Error(await Qo(k,"Upload du document impossible."));return k.json()},gt=o=>o?"Oui":"Non",gv=async o=>{const{jsPDF:f}=await $o(async()=>{const{jsPDF:w}=await import("./jspdf.es.min-B-PNNrVO.js").then(S=>S.j);return{jsPDF:w}},[]),c=new f({unit:"pt",format:"a4"}),b=c.internal.pageSize.getWidth(),k=c.internal.pageSize.getHeight(),p=42,g=b-p*2;let y=p;const N=w=>{y+w<=k-p||(c.addPage(),y=p)},C=w=>{N(30),c.setFillColor(15,23,42),c.roundedRect(p,y,g,26,10,10,"F"),c.setTextColor(245,158,11),c.setFont("helvetica","bold"),c.setFontSize(13),c.text(w,p+14,y+17),y+=38,c.setTextColor(15,23,42)},v=(w,S)=>{const j=`${w}: ${S||"Non renseigne"}`,E=c.splitTextToSize(j,g);N(E.length*14+4),c.setFont("helvetica","normal"),c.setFontSize(11),c.text(E,p,y),y+=E.length*14+4},m=w=>{const S=c.splitTextToSize(w,g-16);N(S.length*14+4),c.circle(p+4,y-4,2,"F"),c.text(S,p+14,y),y+=S.length*14+4};c.setFillColor(15,23,42),c.rect(0,0,b,92,"F"),c.setTextColor(245,158,11),c.setFont("helvetica","bold"),c.setFontSize(22),c.text("VALENCE ACE VOLLEY-BALL",p,42),c.setTextColor(255,255,255),c.setFontSize(11),c.text("Preuve d'adhesion en ligne - Saison 2026/2027",p,62),c.text(`Genere le ${ti(o.signedAt)}`,p,78),y=118,c.setTextColor(15,23,42),C("Identite du licencie"),v("Nom et prenom",o.playerName),v("Categorie",o.category),v("Date de naissance",ti(o.birthDate)),v("Telephone",o.phone),v("Email",o.email),v("Adresse",o.address),v("Statut FFVB / UFOLEP",o.ffvbOrUfolepStatus),C("Responsables legaux"),v("Licencie mineur",gt(o.isMinor)),v("Responsable(s)",o.guardianNames||"Non applicable"),v("Telephone responsable",o.guardianPhone||"Non applicable"),v("Email responsable",o.guardianEmail||"Non applicable"),v("Adresse responsable",o.guardianAddress||"Non applicable"),C("Pieces et attestations"),v("Document medical",o.medicalDocument),v("Piece d'identite declaree",gt(o.identityDocumentProvided)),v("Photo d'identite declaree",gt(o.photoProvided)),v("Nombre de pieces jointes",String(o.attachments.length)),o.attachments.forEach(w=>{m(`${w.label} - ${w.fileName} - ${w.url}`)}),C("Engagements"),m(`Controle anti-dopage accepte: ${gt(o.antiDopingAccepted)}`),m(`Droit a l'image accepte: ${gt(o.imageRightsAccepted)}`),m(`Mesures d'urgence autorisees: ${gt(o.emergencyCareAccepted)}`),m(`Regles du club acceptees: ${gt(o.clubRulesAccepted)}`),m(`Respect des engagements: ${gt(o.respectCommitmentsAccepted)}`),m(`Refus des violences: ${gt(o.violencePreventionAccepted)}`),m(`Soutien benevole / accompagnement: ${gt(o.volunteerSupportAccepted)}`),m(`Consentement donnees: ${gt(o.privacyAccepted)}`),m(`Exactitude des informations: ${gt(o.accuracyConfirmed)}`),C("Signatures"),v("Signataire joueur",o.playerSignatureName),v("Signataire responsable legal",o.guardianSignatureName||"Non applicable"),v("Date de signature",ti(o.signedAt));const T=110;N(T+24),Po(c,p,y,"Signature joueur",o.playerSignatureDataUrl,o.playerSignatureName),Po(c,p+g/2+8,y,"Signature responsable",o.guardianSignatureDataUrl,o.guardianSignatureName||"Non applicable"),y+=T+20,C("Commentaires"),v("Observations",o.notes||"Aucun commentaire"),c.save(`adhesion-valence-ace-${Ho(o.playerName||"prereinscription")}.pdf`)},f2=async o=>{(await gh(o)).save(`archive-dossier-${Ho(o.playerName||o.id)}-${o.id}.pdf`)},b2=async o=>{if(o.length===0)throw new Error("Aucun dossier à exporter pour ce filtre.");const{jsPDF:f}=await $o(async()=>{const{jsPDF:b}=await import("./jspdf.es.min-B-PNNrVO.js").then(k=>k.j);return{jsPDF:b}},[]),c=new f({unit:"pt",format:"a4"});o.forEach((b,k)=>{k>0&&c.addPage(),vh(c,b)}),c.save(`archive-dossiers-filtres-${new Date().toISOString().slice(0,10)}.pdf`)},g2=async o=>{if(o.length===0)throw new Error("Aucun dossier à exporter pour ce filtre.");const f=new c2,c=f.folder("pdf-dossiers"),b=f.folder("pieces-jointes");if(!c||!b)throw new Error("Création de l’archive ZIP impossible.");f.file("dossiers.csv",y2(o)),await Promise.all(o.map(async p=>{const g=await gh(p),y=`${Ho(p.playerName||p.id)}-${p.id}`;c.file(`${y}.pdf`,g.output("arraybuffer")),await Promise.all(p.attachments.map(async(N,C)=>{const v=await j2(N);v&&b.file(`${y}/${String(C+1).padStart(2,"0")}-${Ho(N.label||N.fileName||"piece")}${N2(N.fileName)}`,v)}))}
431));const k=await f.generateAsync({type:"blob"});w2(k,`archive-dossiers-filtres-${new Date().toISOString().slice(0,10)}.zip`)},gh=async o=>{const{jsPDF:f}=await $o(async()=>{const{jsPDF:b}=await import("./jspdf.es.min-B-PNNrVO.js").then(k=>k.j);return{jsPDF:b}},[]),c=new f({unit:"pt",format:"a4"});return vh(c,o),c},vh=(o,f)=>{const c=o.internal.pageSize.getWidth(),b=o.internal.pageSize.getHeight(),k=42,p=c-k*2;let g=k;const y=T=>{g+T<=b-k||(o.addPage(),g=k)},N=T=>{y(30),o.setFillColor(15,23,42),o.roundedRect(k,g,p,26,10,10,"F"),o.setTextColor(245,158,11),o.setFont("helvetica","bold"),o.setFontSize(13),o.text(T,k+14,g+17),g+=38,o.setTextColor(15,23,42)},C=(T,w)=>{const S=`${T}: ${w||"Non renseigne"}`,j=o.splitTextToSize(S,p);y(j.length*14+4),o.setFont("helvetica","normal"),o.setFontSize(11),o.text(j,k,g),g+=j.length*14+4},v=T=>{const w=o.splitTextToSize(T,p-16);y(w.length*14+4),o.circle(k+4,g-4,2,"F"),o.text(w,k+14,g),g+=w.length*14+4};o.setFillColor(15,23,42),o.rect(0,0,c,92,"F"),o.setTextColor(245,158,11),o.setFont("helvetica","bold"),o.setFontSize(22),o.text("VALENCE ACE VOLLEY-BALL",k,42),o.setTextColor(255,255,255),o.setFontSize(11),o.text("Archive dossier adhesion - Console admin",k,62),o.text(`Genere le ${new Date().toLocaleDateString("fr-FR")}`,k,78),g=118,o.setTextColor(15,23,42),N("Suivi administratif"),C("Reference dossier",f.id),C("Statut dossier",f.status),C("Cree le",Fx(f.createdAt)),C("Mis a jour le",Fx(f.updatedAt)),C("Discipline",yh(f.category)),C("Paiement",f.paymentStatus?v2(f.paymentStatus):"Non renseigne"),C("Montant paiement",typeof f.paymentAmount=="number"?`${f.paymentAmount} EUR`:"Non renseigne"),C("Mode paiement",f.paymentProvider||"Non renseigne"),N("Identite du licencie"),C("Nom et prenom",f.playerName),C("Categorie",f.category),C("Date de naissance",ti(f.birthDate)),C("Telephone",f.phone),C("Email",f.email),C("Adresse",f.address),C("Statut FFVB / UFOLEP",f.ffvbOrUfolepStatus),N("Responsables legaux"),C("Licencie mineur",gt(f.isMinor)),C("Responsable(s)",f.guardianNames||"Non applicable"),C("Telephone responsable",f.guardianPhone||"Non applicable"),C("Email responsable",f.guardianEmail||"Non applicable"),C("Adresse responsable",f.guardianAddress||"Non applicable"),N("Pieces et attestations"),C("Document medical",f.medicalDocument),C("Piece d'identite declaree",gt(f.identityDocumentProvided)),C("Photo d'identite declaree",gt(f.photoProvided)),C("Nombre de pieces jointes",String(f.attachments.length)),f.attachments.forEach(T=>{v(`${T.label} - ${T.fileName} - ${T.url}`)}),N("Engagements"),v(`Controle anti-dopage accepte: ${gt(f.antiDopingAccepted)}`),v(`Droit a l'image accepte: ${gt(f.imageRightsAccepted)}`),v(`Mesures d'urgence autorisees: ${gt(f.emergencyCareAccepted)}`),v(`Regles du club acceptees: ${gt(f.clubRulesAccepted)}`),v(`Respect des engagements: ${gt(f.respectCommitmentsAccepted)}`),v(`Refus des violences: ${gt(f.violencePreventionAccepted)}`),v(`Soutien benevole / accompagnement: ${gt(f.volunteerSupportAccepted)}`),v(`Consentement donnees: ${gt(f.privacyAccepted)}`),v(`Exactitude des informations: ${gt(f.accuracyConfirmed)}`),N("Signatures"),C("Signataire joueur",f.playerSignatureName),C("Signataire responsable legal",f.guardianSignatureName||"Non applicable"),C("Date de signature",ti(f.signedAt));const m=110;y(m+24),Po(o,k,g,"Signature joueur",f.playerSignatureDataUrl,f.playerSignatureName),Po(o,k+p/2+8,g,"Signature responsable",f.guardianSignatureDataUrl,f.guardianSignatureName||"Non applicable"),g+=m+20,N("Notes bureau"),C("Observations",f.notes||"Aucune note")},Ho=o=>o.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase(),ti=o=>{if(!o)return"Non renseignee";const[f,c,b]=o.split("-");return!f||!c||!b?o:`${b}/${c}/${f}`},Fx=o=>{if(!o)return"Non renseignee";const f=new Date(o);return Number.isNaN(f.getTime())?o:f.toLocaleString("fr-FR")},yh=o=>o.toLowerCase().includes("ufolep")||o.toLowerCase().includes("loisirs")?"UFOLEP":"FFVB",v2=o=>{switch(o){case"paid":return"Paye";case"cancelled":return"Annule";case"initiated":default:return"Initie"}},y2=o=>{const f=o.map(b=>({id:b.id,createdAt:b.createdAt,updatedAt:b.updatedAt,status:b.status,paymentStatus:b.paymentStatus||"",paymentProvider:b.paymentProvider||"",paymentAmount:typeof b.paymentAmount=="number"?String(b.paymentAmount):"",discipline:yh(b.category),playerName:b.playerName,category:b.category,birthDate:b.birthDate,phone:b.phone,email:b.email,isMinor:b.isMinor?"Oui":"Non",guardianNames:b.guardianNames,guardianPhone:b.guardianPhone,guardianEmail:b.guardianEmail,ffvbOrUfolepStatus:b.ffvbOrUfolepStatus,signedAt:b.signedAt,attachmentsCount:String(b.attachments.length),attachmentUrls:b.attachments.map(k=>k.url).join(" | "),notes:b.notes.replaceAll(`
432`," ")})),c=Object.keys(f[0]||{id:"",createdAt:"",updatedAt:"",status:"",paymentStatus:"",paymentProvider:"",paymentAmount:"",discipline:"",playerName:"",category:"",birthDate:"",phone:"",email:"",isMinor:"",guardianNames:"",guardianPhone:"",guardianEmail:"",ffvbOrUfolepStatus:"",signedAt:"",attachmentsCount:"",attachmentUrls:"",notes:""});return[c.join(";"),...f.map(b=>c.map(k=>escapeCsvValue(String(b[k]||""))).join(";"))].join(`
433`)},j2=async o=>{if(!o.url)return null;try{const f=await fetch(o.url);return f.ok?f.blob():null}catch{return null}},N2=o=>(o.includes(".")?o.slice(o.lastIndexOf(".")):"")||".bin",w2=(o,f)=>{const c=URL.createObjectURL(o),b=document.createElement("a");b.href=c,b.download=f,b.click(),URL.revokeObjectURL(c)},Po=(o,f,c,b,k,p)=>{if(o.setDrawColor(203,213,225),o.roundedRect(f,c,240,96,10,10,"S"),o.setFont("helvetica","bold"),o.setFontSize(11),o.text(b,f+12,c+18),o.setFont("helvetica","normal"),o.setFontSize(9),o.text(p||"Non applicable",f+12,c+96-12),k)try{o.addImage(k,"PNG",f+12,c+26,216,46,void 0,"FAST")}catch{o.setFontSize(9),o.text("Signature non integrable",f+12,c+44)}else o.setFontSize(9),o.text("Aucune signature dessinee",f+12,c+44)},S2=({isOpen:o,onClose:f,initialCategory:c})=>{const b=Z.useRef(null),k=Z.useRef(null),p=Z.useRef(null),g=Z.useRef(null),[y,N]=Z.useState(""),[C,v]=Z.useState(""),[m,T]=Z.useState(""),[w,S]=Z.useState(c||"M15 Masculin (13 - 14 ans)"),[j,E]=Z.useState(""),[A,O]=Z.useState("Débutant / Pratique occasionnelle"),[F,$]=Z.useState(!1),[Y,G]=Z.useState(null),[V,K]=Z.useState(!1);if(Z.useEffect(()=>{c&&S(c)},[c]),Z.useEffect(()=>{if(!o)return;const I=document.body.style.overflow;k.current=document.activeElement instanceof HTMLElement?document.activeElement:null,document.body.style.overflow="hidden",
433window.requestAnimationFrame(()=>{var H,h;F?(H=g.current)==null||H.focus():(h=p.current)==null||h.focus()});const L=H=>{if(H.key==="Escape"){J();return}if(H.key!=="Tab"||!b.current)return;const h=b.current.querySelectorAll('a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])');if(h.length===0){H.preventDefault(),b.current.focus();return}const ie=h[0],ee=h[h.length-1],X=document.activeElement;H.shiftKey&&X===ie?(H.preventDefault(),ee.focus()):!H.shiftKey&&X===ee&&(H.preventDefault(),ie.focus())};return window.addEventListener("keydown",L),()=>{var H;document.body.style.overflow=I,window.removeEventListener("keydown",L),(H=k.current)==null||H.focus()}},[o,F]),!o)return null;const te=async I=>{I.preventDefault(),G(null),K(!0);try{await p2({playerName:y,email:C,phone:m,category:w,birthYear:j,experience:A}),oi({particleCount:70,spread:70,origin:{y:.6}}),$(!0)}catch(L){G(L instanceof Error?L.message:"Transmission de la demande d’essai impossible.")}finally{K(!1)}},J=()=>{$(!1),G(null),f()};return t.jsx("div",{className:"fixed inset-0 z-50 bg-slate-950/82 backdrop-blur-md flex items-center justify-center p-4 overflow-y-auto",onClick:J,children:t.jsxs("div",{ref:b,role:"dialog","aria-modal":"true","aria-labelledby":"trial-modal-title","aria-describedby":"trial-modal-description",tabIndex:-1,className:"relative my-8 w-full max-w-lg overflow-hidden rounded-[32px] border border-amber-200/70 bg-[linear-gradient(180deg,rgba(255,251,235,0.98)_0%,rgba(255,255,255,0.98)_18%,rgba(248,250,252,0.98)_100%)] p-6 shadow-[0_32px_90px_rgba(15,23,42,0.28)] sm:p-8",onClick:I=>I.stopPropagation(),children:[t.jsx("div",{className:"absolute inset-x-0 top-0 h-28 bg-[radial-gradient(circle_at_top_left,rgba(245,158,11,0.28),transparent_58%),radial-gradient(circle_at_top_right,rgba(37,99,235,0.16),transparent_42%)] pointer-events-none"}),t.jsx("button",{type:"button",onClick:J,className:"absolute top-5 right-5 z-10 flex h-9 w-9 items-center justify-center rounded-full border border-amber-200 bg-white/85 text-slate-500 transition-colors hover:border-amber-300 hover:bg-amber-50 hover:text-slate-900 cursor-pointer","aria-label":"Fermer la réservation d'essai",children:t.jsx(Xr,{className:"w-5 h-5"})}),F?t.jsxs("div",{className:"relative space-y-4 py-6 text-center",children:[t.jsx("div",{className:"mx-auto flex h-16 w-16 items-center justify-center rounded-full border border-emerald-200 bg-emerald-100 text-emerald-600 text-3xl font-bold shadow-sm",children:"🏐"}),t.jsx("h3",{className:"text-2xl font-extrabold text-slate-900 font-display",children:"Vos 2 séances d'essai sont réservées !"}),t.jsxs("p",{className:"text-sm text-slate-600 leading-relaxed max-w-sm mx-auto",children:["Merci ",t.jsx("strong",{children:y})," ! Votre demande d'essai pour ",t.jsx("strong",{children:w})," a bien été transmise au club et est visible dans la console admin. Vous pouvez maintenant être recontacté pour fixer le créneau."]}),t.jsxs("div",{className:"rounded-[24px] border border-amber-200 bg-[linear-gradient(135deg,rgba(255,247,237,0.98),rgba(255,251,235,0.98))] p-4 text-left text-xs space-y-2 text-slate-800 shadow-sm",children:[t.jsx("span",{className:"font-bold text-amber-900 block text-sm",children:"🎒 Ce qu'il faut apporter le jour J :"}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ca,{className:"w-4 h-4 text-emerald-600 shrink-0"}),t.jsx("span",{children:"Tenue de sport confortable"})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ca,{className:"w-4 h-4 text-emerald-600 shrink-0"}),t.jsx("span",{children:"Baskets d'intérieur propres (semelles non marquantes)"})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ca,{className:"w-4 h-4 text-emerald-600 shrink-0"}),t.jsx("span",{children:"Gourde d'eau"})]})]}),t.jsx("div",{className:"pt-2",children:t.jsx("button",{ref:g,onClick:J,className:"w-full rounded-xl bg-[linear-gradient(135deg,#1d4ed8_0%,#0f172a_100%)] py-3.5 text-sm font-bold text-white shadow-[0_18px_35px_rgba(29,78,216,0.22)] transition-all hover:brightness-105 cursor-pointer",children:"C'est noté, à bientôt sur le terrain !"})})]}):t.jsxs("div",{children:[t.jsxs("div",{className:"relative mb-6 overflow-hidden rounded-[28px] border border-amber-200/70 bg-[linear-gradient(135deg,rgba(255,247,237,0.95),rgba(255,255,255,0.98))] p-5 shadow-sm",children:[t.jsx("div",{className:"absolute inset-y-0 right-0 w-40 bg-[radial-gradient(circle_at_center,rgba(37,99,235,0.10),transparent_70%)] pointer-events-none"}),t.jsx("div",{className:"relative flex items-center gap-2.5 mb-2",children:t.jsx("span",{className:"rounded-full bg-amber-100 px-3 py-1 text-xs font-black uppercase text-amber-800 ring-1 ring-amber-200",children:"100% Gratuit & Sans engagement"})}),t.jsx("h3",{id:"trial-modal-title",className:"text-2xl font-black text-slate-900 font-display",children:"Réserver 2 Séances d'Essai"}),t.jsx("p",{id:"trial-modal-description",className:"mt-1 text-xs text-slate-600",children:"Venez tester l'ambiance et le niveau avant de vous engager. Nos entraîneurs vous guideront dès la première minute."})]}),t.jsxs("form",{onSubmit:te,className:"space-y-3.5 text-xs sm:text-sm",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Nom et Prénom du joueur / de la joueuse *"}),t.jsx("input",{ref:p,type:"text",required:!0,value:y,onChange:I=>N(I.target.value),placeholder:"Ex: Emma Laurent",className:"w-full rounded-xl border border-slate-200 bg-white/90 p-2.5 text-slate-900 outline-none transition-colors focus:border-amber-400 focus:bg-white focus:ring-2 focus:ring-amber-100"})]}),t.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Téléphone de contact *"}),t.jsx("input",{type:"tel",required:!0,value:m,onChange:I=>T(I.target.value),placeholder:"06 12 34 56 78",className:"w-full rounded-xl border border-slate-200 bg-white/90 p-2.5 text-slate-900 outline-none transition-colors focus:border-amber-400 focus:bg-white focus:ring-2 focus:ring-amber-100"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"E-mail *"}),t.jsx("input",{type:"email",required:!0,value:C,onChange:I=>v(I.target.value),placeholder:"[email protected]",className:"w-full rounded-xl border border-slate-200 bg-white/90 p-2.5 text-slate-900 outline-none transition-colors focus:border-amber-400 focus:bg-white focus:ring-2 focus:ring-amber-100"})]})]}),t.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Catégorie souhaitée *"}),t.jsxs("select",{value:w,onChange:I=>S(I.target.value),className:"w-full rounded-xl border border-slate-200 bg-white/90 p-2.5 text-slate-900 outline-none transition-colors focus:border-amber-400 focus:bg-white focus:ring-2 focus:ring-amber-100",children:[Ir.map(I=>t.jsx("option",{value:I.name,children:I.name},I.id)),t.jsx("option",{value:"Stage Vacances Jeunes",children:"Stage Vacances Jeunes (Masculin)"})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Niveau actuel"}),t.jsxs("select",{value:A,onChange:I=>O(I.target.value),className:"w-full rounded-xl border border-slate-200 bg-white/90 p-2.5 text-slate-900 outline-none transition-colors focus:border-amber-400 focus:bg-white focus:ring-2 focus:ring-amber-100",children:[t.jsx("option",{children:"Débutant complet"}),t.jsx("option",{children:"Pratique occasionnelle / Loisir"}),t.jsx("option",{children:"Déjà licencié en club (1-3 ans)"}),t.jsx("option",{children:"Compétiteur confirmé (Régionale / Nationale)"})]})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Année de naissance"}),t.jsx("input",{type:"text",value:j,onChange:I=>E(I.target.value),placeholder:"Ex: 2012",className:"w-full border border-slate-300 rounded-xl p-2.5 text-slate-900 focus:outline-none focus:border-blue-600"})]}),t.jsxs("div",{className:"rounded-[22px] border border-amber-200 bg-[linear-gradient(135deg,rgba(255,247,237,0.98),rgba(255,251,235,0.98))] p-3 text-[11px] leading-tight text-amber-900 shadow-sm",children:[t.jsx("strong",{children:"ℹ️ Précision mixité :"})," Les collectifs jeunes ",t.jsx("strong",{children:"M9 et M11"})," ainsi que la section ",t.jsx("strong",{children:"Championnat Loisirs UFOLEP"})," sont mixtes (filles et garçons / femmes et hommes). Les sections M13, M15/M18 et séniors FFVB sont masculines."]}),t.jsxs("div",{className:"flex items-center gap-2 rounded-[22px] border border-sky-200 bg-[linear-gradient(135deg,rgba(224,242,254,0.88),rgba(255,255,255,0.96))] p-3 text-xs text-sky-900 shadow-sm",children:[t.jsx(Va,{className:"w-4 h-4 text-blue-700 shrink-0"}),t.jsx("span",{children:"Séances couvertes par la garantie d'accueil FFVB / UFOLEP."})]}),Y&&t.jsx("div",{className:"rounded-xl border border-rose-200 bg-rose-50 px-3 py-2 text-xs text-rose-700",children:Y}),t.jsx("div",{className:"pt-2",children:t.jsxs("button",{type:"submit",disabled:V,className:"flex w-full items-center justify-center gap-2 rounded-xl bg-gradient-to-r from-amber-400 via-amber-500 to-orange-500 py-3.5 text-sm font-extrabold text-slate-950 shadow-xl shadow-amber-500/25 transition-all hover:from-amber-300 hover:to-orange-400 cursor-pointer disabled:cursor-not-allowed disabled:opacity-60",children:[t.jsx(Ka,{className:"w-4 h-4"}),t.jsx("span",{children:V?"Transmission en cours...":"Confirmer mes 2 séances d'essai"})]})})]})]})]})})},C2=({event:o,isOpen:f,onClose:c})=>{var Me,Fe,Te,He,Ie,x,pe,ue,D,R,W,ye,we,oe;const b=Z.useRef(null),k=Z.useRef(null),p=Z.useRef(null),g=Z.useRef(null),[y,N]=Z.useState(""),[C,v]=Z.useState(""),[m,T]=Z.useState(""),[w,S]=Z.useState(""),[j,E]=Z.useState(""),[A,O]=Z.useState("1"),[F,$]=Z.useState(""),[Y,G]=Z.useState(!1),[V,K]=Z.useState(!1),[te,J]=Z.useState(null),[I,L]=Z.useState(null),[H,h]=Z.useState(!1),[ie,ee]=Z.useState(!1);if(Z.useEffect(()=>{if(!f)return;const ve=document.body.style.overflow;g.current=document.activeElement instanceof HTMLElement?document.activeElement:null,document.body.style.overflow="hidden",
433window.requestAnimationFrame(()=>{var ke;return(ke=p.current)==null?void 0:ke.focus()});const Ee=ke=>{ke.key==="Escape"&&_e()};return window.addEventListener("keydown",Ee),()=>{var ke;document.body.style.overflow=ve,window.removeEventListener("keydown",Ee),(ke=g.current)==null||ke.focus()}},[f]),Z.useEffect(()=>{f||(N(""),v(""),T(""),S(""),E(""),O("1"),$(""),G(!1),K(!1),J(null),L(null),ee(!1))},[f,o==null?void 0:o.id]),!f||!o)return null;const X={Tournoi:{panelBorder:"border-amber-200/70",panelBackground:"bg-[linear-gradient(180deg,rgba(255,251,235,0.98)_0%,rgba(255,255,255,0.98)_18%,rgba(248,250,252,0.98)_100%)]",topGlow:"bg-[radial-gradient(circle_at_top_left,rgba(245,158,11,0.28),transparent_58%),radial-gradient(circle_at_top_right,rgba(37,99,235,0.16),transparent_42%)]",heroFallback:"bg-[linear-gradient(135deg,rgba(255,247,237,0.95),rgba(255,255,255,0.98))]",heroAccent:"bg-[radial-gradient(circle_at_center,rgba(37,99,235,0.10),transparent_70%)]",primaryBadge:"bg-amber-100 text-amber-800 ring-amber-200",categoryBadge:"bg-white text-slate-700 ring-slate-200",statusPaidBadge:"bg-sky-100 text-sky-900 ring-sky-200",statusFreeBadge:"bg-emerald-100 text-emerald-800 ring-emerald-200",summaryCard:"border-amber-200 bg-[linear-gradient(135deg,rgba(255,247,237,0.98),rgba(255,251,235,0.98))] text-amber-900"},Stage:{panelBorder:"border-sky-200/70",panelBackground:"bg-[linear-gradient(180deg,rgba(239,246,255,0.98)_0%,rgba(255,255,255,0.98)_18%,rgba(248,250,252,0.98)_100%)]",topGlow:"bg-[radial-gradient(circle_at_top_left,rgba(59,130,246,0.24),transparent_56%),radial-gradient(circle_at_top_right,rgba(245,158,11,0.18),transparent_42%)]",heroFallback:"bg-[linear-gradient(135deg,rgba(239,246,255,0.96),rgba(255,255,255,0.98))]",heroAccent:"bg-[radial-gradient(circle_at_center,rgba(14,165,233,0.14),transparent_70%)]",primaryBadge:"bg-sky-100 text-sky-900 ring-sky-200",categoryBadge:"bg-white text-slate-700 ring-slate-200",statusPaidBadge:"bg-amber-100 text-amber-900 ring-amber-200",statusFreeBadge:"bg-emerald-100 text-emerald-800 ring-emerald-200",summaryCard:"border-sky-200 bg-[linear-gradient(135deg,rgba(224,242,254,0.9),rgba(255,255,255,0.98))] text-sky-950"},"Vie du club":{panelBorder:"border-rose-200/70",panelBackground:"bg-[linear-gradient(180deg,rgba(255,241,242,0.98)_0%,rgba(255,255,255,0.98)_18%,rgba(248,250,252,0.98)_100%)]",topGlow:"bg-[radial-gradient(circle_at_top_left,rgba(244,63,94,0.18),transparent_56%),radial-gradient(circle_at_top_right,rgba(251,191,36,0.14),transparent_42%)]",heroFallback:"bg-[linear-gradient(135deg,rgba(255,241,242,0.96),rgba(255,255,255,0.98))]",heroAccent:"bg-[radial-gradient(circle_at_center,rgba(244,63,94,0.12),transparent_70%)]",primaryBadge:"bg-rose-100 text-rose-900 ring-rose-200",categoryBadge:"bg-white text-slate-700 ring-slate-200",statusPaidBadge:"bg-sky-100 text-sky-900 ring-sky-200",statusFreeBadge:"bg-emerald-100 text-emerald-800 ring-emerald-200",summaryCard:"border-rose-200 bg-[linear-gradient(135deg,rgba(255,241,242,0.92),rgba(255,255,255,0.98))] text-rose-950"},Solidaire:{panelBorder:"border-emerald-200/70",panelBackground:"bg-[linear-gradient(180deg,rgba(236,253,245,0.98)_0%,rgba(255,255,255,0.98)_18%,rgba(248,250,252,0.98)_100%)]",topGlow:"bg-[radial-gradient(circle_at_top_left,rgba(16,185,129,0.22),transparent_56%),radial-gradient(circle_at_top_right,rgba(250,204,21,0.14),transparent_42%)]",heroFallback:"bg-[linear-gradient(135deg,rgba(236,253,245,0.96),rgba(255,255,255,0.98))]",heroAccent:"bg-[radial-gradient(circle_at_center,rgba(16,185,129,0.12),transparent_70%)]",primaryBadge:"bg-emerald-100 text-emerald-900 ring-emerald-200",categoryBadge:"bg-white text-slate-700 ring-slate-200",statusPaidBadge:"bg-sky-100 text-sky-900 ring-sky-200",statusFreeBadge:"bg-emerald-100 text-emerald-800 ring-emerald-200",summaryCard:"border-emerald-200 bg-[linear-gradient(135deg,rgba(236,253,245,0.94),rgba(255,255,255,0.98))] text-emerald-950"}}[o.category],le=o.registrationStatus||"open",xe=le==="open",B=((Me=o.registrationForm)==null?void 0:Me.pricingMode)==="paid",d=(Fe=o.registrationForm)==null?void 0:Fe.bankTransferUrl,U=(Te=o.registrationForm)==null?void 0:Te.paymentAmount,re=o.imageUrl?Gs(We.event(o.id),o.imageUrl):void 0,ne=Hs(We.event(o.id),o.imageUrl),ae=le==="coming_soon"?"Les inscriptions ouvriront prochainement pour cet événement.":le==="full"?"Cet événement est actuellement complet.":le==="closed"?"Les inscriptions sont fermées pour cet événement.":null,_e=()=>{c()},Ce=async ve=>{ve.preventDefault(),L(null),h(!0);try{const Ee=await x2({eventId:o.id,eventTitle:o.title,participantName:y,email:C,phone:m,birthYear:w,teamOrClub:j,participantsCount:Number(A||"1"),notes:F,privacyAccepted:Y});J(Ee.eventRegistrationId),oi({particleCount:70,spread:70,origin:{y:.6}}),K(!0)}catch(Ee){L(Ee instanceof Error?Ee.message:"Transmission impossible.")}finally{h(!1)}},Ae=async()=>
433{if(te){L(null),ee(!0);try{const ve=await h2(o.id,te);window.location.href=ve}catch(ve){L(ve instanceof Error?ve.message:"Paiement Stripe événement indisponible."),ee(!1)}}};return t.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-slate-950/82 p-4 backdrop-blur-md overflow-y-auto",onClick:_e,children:t.jsxs("div",{ref:b,role:"dialog","aria-modal":"true","aria-labelledby":"event-registration-title",className:`relative my-8 w-full max-w-2xl overflow-hidden rounded-[32px] border ${X.panelBorder} ${X.panelBackground} p-6 shadow-[0_32px_90px_rgba(15,23,42,0.28)] sm:p-8`,onClick:ve=>ve.stopPropagation(),children:[t.jsx("div",{className:`absolute inset-x-0 top-0 h-28 ${X.topGlow} pointer-events-none`}),t.jsx("button",{type:"button",onClick:_e,className:"absolute right-5 top-5 flex h-9 w-9 items-center justify-center rounded-full border border-amber-200 bg-white/85 text-slate-500 transition-colors hover:border-amber-300 hover:bg-amber-50 hover:text-slate-900 cursor-pointer","aria-label":"Fermer le formulaire d'inscription événement",children:t.jsx(Xr,{className:"h-5 w-5"})}),V?t.jsxs("div",{className:"relative space-y-5 py-6 text-center",children:[t.jsx("div",{className:"mx-auto flex h-16 w-16 items-center justify-center rounded-full border border-emerald-200 bg-emerald-100 text-emerald-600 shadow-sm",children:t.jsx(Ca,{className:"h-8 w-8"})}),t.jsxs("div",{children:[t.jsx("h3",{className:"font-display text-2xl font-black text-slate-900",children:"Inscription envoyée"}),t.jsx("p",{className:"mt-2 text-sm text-slate-600",children:((He=o.registrationForm)==null?void 0:He.successMessage)||"Votre demande a bien été transmise au club."})]}),B?t.jsxs("div",{className:"rounded-[24px] border border-sky-200 bg-[linear-gradient(135deg,rgba(224,242,254,0.9),rgba(255,255,255,0.96))] p-4 text-left text-sm text-sky-950 shadow-sm",children:[t.jsx("p",{className:"font-bold",children:"Règlement en attente"}),t.jsxs("p",{className:"mt-1 text-xs text-sky-900/80",children:["Votre inscription est enregistrée. Vous pouvez maintenant finaliser le paiement Stripe spécifique à cet événement",typeof U=="number"&&U>0?` (${U} €)`:""," ou demander le RIB pour un virement."]}),t.jsxs("div",{className:"mt-4 flex flex-col gap-3 sm:flex-row",children:[typeof U=="number"&&U>0?t.jsx("button",{type:"button",onClick:()=>void Ae(),disabled:ie,className:"rounded-xl bg-sky-700 px-4 py-2.5 text-sm font-bold text-white shadow-sm transition-colors hover:bg-sky-800 disabled:cursor-not-allowed disabled:opacity-60 cursor-pointer",children:ie?"Ouverture de Stripe...":((Ie=o.registrationForm)==null?void 0:Ie.stripePaymentButtonLabel)||"Payer en ligne avec Stripe"}):null,d?t.jsx("button",{type:"button",onClick:()=>window.open(d,"_blank","noopener,noreferrer"),className:"rounded-xl border border-amber-300 bg-white px-4 py-2.5 text-sm font-bold text-amber-900 transition-colors hover:bg-amber-50 cursor-pointer",children:((x=o.registrationForm)==null?void 0:x.bankTransferButtonLabel)||"RIB / virement bancaire"}):null]})]}):null,I&&t.jsx("p",{className:"rounded-2xl border border-rose-200 bg-rose-50 px-4 py-3 text-sm text-rose-700",children:I}),t.jsx("button",{type:"button",onClick:_e,className:"w-full rounded-xl bg-slate-900 py-3.5 text-sm font-bold text-white shadow-md transition-colors hover:bg-slate-800 cursor-pointer",children:"Fermer"})]}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:`relative mb-6 overflow-hidden rounded-[28px] border ${X.panelBorder} ${X.heroFallback} shadow-sm`,children:re?t.jsxs("div",{className:"relative h-44 w-full overflow-hidden border-b border-white/20 bg-slate-900 sm:h-52",children:[t.jsx("img",{src:re,alt:o.title,referrerPolicy:"no-referrer",className:"h-full w-full object-cover",style:{objectPosition:ne}}),t.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(180deg,rgba(15,23,42,0.18)_0%,rgba(15,23,42,0.58)_62%,rgba(15,23,42,0.82)_100%)]"}),t.jsxs("div",{className:"absolute inset-x-0 bottom-0 p-5 sm:p-6",children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t.jsx("span",{className:`rounded-full px-3 py-1 text-xs font-black uppercase shadow-sm ${X.primaryBadge}`,children:o.badge}),t.jsx("span",{className:`rounded-full px-3 py-1 text-xs font-bold shadow-sm ${X.categoryBadge}`,children:o.category}),t.jsx("span",{className:`rounded-full px-3 py-1 text-xs font-bold shadow-sm ${B?X.statusPaidBadge:X.statusFreeBadge}`,children:B?"Événement payant • règlement séparé":"Événement gratuit"})]}),t.jsx("h3",{id:"event-registration-title",className:"mt-4 font-display text-2xl font-black text-white sm:text-[2rem]",children:((pe=o.registrationForm)==null?void 0:pe.ctaLabel)||"Informations & Inscription"}),t.jsx("p",{className:"mt-2 max-w-xl text-sm text-slate-100/90",children:((ue=o.registrationForm)==null?void 0:ue.intro)||o.description})]})]}):t.jsxs("div",{className:"relative p-5 sm:p-6",children:[t.jsx("div",{className:`absolute inset-y-0 right-0 w-40 ${X.heroAccent} pointer-events-none`}),t.jsxs("div",{className:"relative flex flex-wrap items-center gap-2",children:[t.jsx("span",{className:`rounded-full px-3 py-1 text-xs font-black uppercase ring-1 ${X.primaryBadge}`,children:o.badge}),t.jsx("span",{className:`rounded-full px-3 py-1 text-xs font-bold ring-1 ${X.categoryBadge}`,children:o.category}),t.jsx("span",{className:`rounded-full px-3 py-1 text-xs font-bold ring-1 ${B?X.statusPaidBadge:X.statusFreeBadge}`,children:B?"Événement payant • règlement séparé":"Événement gratuit"})]}),t.jsx("h3",{id:"event-registration-title",className:"mt-4 font-display text-2xl font-black text-slate-900",children:((D=o.registrationForm)==null?void 0:D.ctaLabel)||"Informations & Inscription"}),t.jsx("p",{className:"mt-2 max-w-xl text-sm text-slate-600",children:((R=o.registrationForm)==null?void 0:R.intro)||o.description})]})}),t.jsxs("div",{className:"mt-5 grid grid-cols-1 gap-3 rounded-[24px] border border-slate-200/80 bg-white/80 p-4 text-sm text-slate-700 shadow-sm sm:grid-cols-3",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ft,{className:"h-4 w-4 text-blue-600"}),t.jsx("span",{children:o.date})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Bt,{className:"h-4 w-4 text-amber-600"}),t.jsx("span",{children:o.location})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Jr,{className:"h-4 w-4 text-emerald-600"}),t.jsx("span",{children:((W=o.registrationForm)==null?void 0:W.capacityLabel)||"Places selon disponibilités"})]})]}),!xe&&ae?t.jsx("div",{className:"mt-6 rounded-[24px] border border-amber-200 bg-[linear-gradient(135deg,rgba(255,247,237,0.98),rgba(254,249,195,0.75))] p-4 text-sm text-amber-900 shadow-sm",children:ae}):null,t.jsxs("form",{ref:k,onSubmit:Ce,className:"mt-6 space-y-4 text-sm",children:[t.jsxs("div",{children:[t.jsx("label",{className:"mb-1 block font-bold text-slate-700",children:"Nom et prénom *"}),t.jsx("input",{ref:p,type:"text",required:!0,value:y,onChange:ve=>N(ve.target.value),className:"w-full rounded-xl border border-slate-200 bg-white/90 p-3 text-slate-900 outline-none transition-colors focus:border-amber-400 focus:bg-white focus:ring-2 focus:ring-amber-100",placeholder:"Ex: Camille Martin"})]}),t.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[t.jsxs("div",{children:[t.jsx("label",{className:"mb-1 block font-bold text-slate-700",children:"Téléphone *"}),t.jsx("input",{type:"tel",required:!0,value:m,onChange:ve=>T(ve.target.value),className:"w-full rounded-xl border border-slate-200 bg-white/90 p-3 text-slate-900 outline-none transition-colors focus:border-amber-400 focus:bg-white focus:ring-2 focus:ring-amber-100",placeholder:"06 12 34 56 78"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"mb-1 block font-bold text-slate-700",children:"Email *"}),t.jsx("input",{type:"email",required:!0,value:C,onChange:ve=>v(ve.target.value),className:"w-full rounded-xl border border-slate-200 bg-white/90 p-3 text-slate-900 outline-none transition-colors focus:border-amber-400 focus:bg-white focus:ring-2 focus:ring-amber-100",placeholder:"[email protected]"})]})]}),t.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-3",children:[t.jsxs("div",{children:[t.jsx("label",{className:"mb-1 block font-bold text-slate-700",children:"Année de naissance"}),t.jsx("input",{type:"text",value:w,onChange:ve=>S(ve.target.value),className:"w-full rounded-xl border border-slate-200 bg-white/90 p-3 text-slate-900 outline-none transition-colors focus:border-amber-400 focus:bg-white focus:ring-2 focus:ring-amber-100",placeholder:"2009"})]}),t.jsxs("div",{className:"sm:col-span-2",children:[t.jsx("label",{className:"mb-1 block font-bold text-slate-700",children:"Club / équipe / groupe"}),t.jsx("input",{type:"text",value:j,onChange:ve=>E(ve.target.value),className:"w-full rounded-xl border border-slate-200 bg-white/90 p-3 text-slate-900 outline-none transition-colors focus:border-amber-400 focus:bg-white focus:ring-2 focus:ring-amber-100",placeholder:"Valence ACE / équipe loisir / famille..."})]})]}),t.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-[160px_minmax(0,1fr)]",children:[t.jsxs("div",{children:[t.jsx("label",{className:"mb-1 block font-bold text-slate-700",children:"Participants"}),t.jsx("input",{type:"number",min:"1",max:"20",value:A,onChange:ve=>O(ve.target.value),className:"w-full rounded-xl border border-slate-200 bg-white/90 p-3 text-slate-900 outline-none transition-colors focus:border-amber-400 focus:bg-white focus:ring-2 focus:ring-amber-100"})]}),t.jsxs("div",{className:`rounded-[24px] border p-4 text-xs shadow-sm ${X.summaryCard}`,children:[t.jsx("p",{className:"font-bold",children:((ye=o.registrationForm)==null?void 0:ye.priceLabel)||"Informations tarifaires communiquées par le club"}),t.jsx("p",{className:"mt-1",children:"Votre demande est enregistrée puis consultable par le bureau dans la console admin."})]})]}),B?t.jsx("div",{className:"rounded-[24px] border border-sky-200 bg-[linear-gradient(135deg,rgba(224,242,254,0.88),rgba(255,255,255,0.96))] p-4 text-sm text-sky-950 shadow-sm",children:t.jsx("div",{className:"flex flex-col gap-3",children:t.jsxs("div",{children:[t.jsx("p",{className:"font-bold",children:"Événement payant"}),t.jsxs("p",{className:"mt-1 text-xs text-sky-900/80",children:["Le paiement Stripe devient disponible juste après validation de votre inscription, afin de rattacher le règlement au bon dossier",typeof U=="number"&&U>0?` (${U} €)`:"","."]})]})})}):null,t.jsxs("div",{children:[t.jsx("label",{className:"mb-1 block font-bold text-slate-700",children:"Précisions utiles"}),t.jsx("textarea",{rows:4,value:F,onChange:ve=>$(ve.target.value),className:"w-full rounded-xl border border-slate-200 bg-white/90 p-3 text-slate-900 outline-none transition-colors focus:border-amber-400 focus:bg-white focus:ring-2 focus:ring-amber-100",placeholder:"Disponibilités, équipe complète, besoin d'informations complémentaires..."})]}),t.jsxs("label",{className:"flex items-start gap-3 rounded-[24px] border border-slate-200 bg-white/75 p-4 text-xs text-slate-700 shadow-sm",children:[t.jsx("input",{type:"checkbox",checked:Y,onChange:ve=>
433G(ve.target.checked),className:"mt-0.5 h-4 w-4 rounded border-slate-300"}),t.jsx("span",{children:"J’accepte que mes informations soient utilisées par le club uniquement pour traiter cette inscription événement et me recontacter si nécessaire."})]}),I&&t.jsx("p",{className:"rounded-2xl border border-rose-200 bg-rose-50 px-4 py-3 text-sm text-rose-700",children:I}),t.jsx("button",{type:"submit",disabled:H||!Y||!xe,className:"w-full rounded-xl bg-[linear-gradient(135deg,#1d4ed8_0%,#0f172a_100%)] py-3.5 text-sm font-bold text-white shadow-[0_18px_35px_rgba(29,78,216,0.22)] transition-all hover:brightness-105 disabled:cursor-not-allowed disabled:opacity-60 cursor-pointer",children:xe?H?"Envoi en cours...":((we=o.registrationForm)==null?void 0:we.ctaLabel)||"Valider mon inscription":((oe=o.registrationForm)==null?void 0:oe.statusLabel)||"Inscriptions indisponibles"})]})]})]})})},jh=Z.createContext({overrides:{},refreshOverrides:async()=>{}}),_2="/api/image-overrides",k2="/image-overrides.json",E2=({children:o})=>{const[f,c]=Z.useState(()=>Mu()),b=g=>{A1(g),c(g)},k=async()=>{const g=Mu();try{const y=await fetch(`${_2}?t=${Date.now()}`,{cache:"no-store"});if(!y.ok)throw new Error("API indisponible");const N=await y.json();b(Tu(Ex(N,g),Ro))}catch{try{const y=await fetch(`${k2}?t=${Date.now()}`,{cache:"no-store"});if(!y.ok){b(g);return}const N=await y.json();b(Tu(Ex(N,g),Ro))}catch{b(g)}}};Z.useEffect(()=>{k();const g=()=>{k()};return window.addEventListener(kx,g),()=>{window.removeEventListener(kx,g)}},[]);const p=Z.useMemo(()=>({overrides:f,refreshOverrides:k}),[f]);return t.jsx(jh.Provider,{value:p,children:o})},A2=()=>Z.useContext(jh),Nu="vace-admin-password",Bx="vace-admin-role",M2=["Tournoi","Stage","Vie du club","Solidaire"],T2=["none","internal","external"],L2=["open","coming_soon","full","closed"],O2=["free","paid"],U2=["upcoming","live","finished"],z2=["match","result","event","news"],R2=["upcoming","finished","urgent","highlight"],qx=["received","incomplete","validated","follow-up"],D2=["received","confirmed","waitlist","cancelled"],F2=["received","contacted","scheduled","closed"],Vx=[10,25,50],tt={events:{cardActive:"border-blue-400/40 bg-blue-500/10",cardIdle:"border-slate-800 bg-slate-900/60 hover:border-blue-400/25 hover:bg-blue-500/5",icon:"text-blue-300",pillActive:"bg-blue-500/90 text-white",pillIdle:"border border-slate-700 bg-slate-900 text-slate-200 hover:border-blue-400/25 hover:bg-slate-800"},matches:{cardActive:"border-amber-400/40 bg-amber-400/10",cardIdle:"border-slate-800 bg-slate-900/60 hover:border-amber-400/25 hover:bg-amber-400/5",icon:"text-amber-300",pillActive:"bg-amber-400 text-slate-950",pillIdle:"border border-slate-700 bg-slate-900 text-slate-200 hover:border-amber-400/25 hover:bg-slate-800"},news:{cardActive:"border-emerald-400/40 bg-emerald-500/10",cardIdle:"border-slate-800 bg-slate-900/60 hover:border-emerald-400/25 hover:bg-emerald-500/5",icon:"text-emerald-300",pillActive:"bg-emerald-500/90 text-white",pillIdle:"border border-slate-700 bg-slate-900 text-slate-200 hover:border-emerald-400/25 hover:bg-slate-800"},standings:{cardActive:"border-blue-400/40 bg-blue-500/10",cardIdle:"border-slate-800 bg-slate-900/60 hover:border-blue-400/25 hover:bg-blue-500/5",icon:"text-blue-300",pillActive:"bg-blue-400 text-slate-950",pillIdle:"border border-slate-700 bg-slate-900 text-slate-200 hover:border-blue-400/25 hover:bg-slate-800"},media:{cardActive:"border-slate-300/30 bg-slate-800/95",cardIdle:"border-slate-800 bg-slate-900/60 hover:border-slate-500/35 hover:bg-slate-800/80",icon:"text-slate-200",pillActive:"bg-slate-200 text-slate-950",pillIdle:"border border-slate-700 bg-slate-900 text-slate-200 hover:border-slate-500/35 hover:bg-slate-800"},registrations:{cardActive:"border-fuchsia-400/40 bg-fuchsia-500/10",cardIdle:"border-slate-800 bg-slate-900/60 hover:border-fuchsia-400/25 hover:bg-fuchsia-500/5",icon:"text-fuchsia-200",pillActive:"bg-fuchsia-500/90 text-white",pillIdle:"border border-slate-700 bg-slate-900 text-slate-200 hover:border-fuchsia-400/25 hover:bg-slate-800"},messages:{cardActive:"border-cyan-400/40 bg-cyan-500/10",cardIdle:"border-slate-800 bg-slate-900/60 hover:border-cyan-400/25 hover:bg-cyan-500/5",icon:"text-cyan-300",pillActive:"bg-cyan-500/90 text-white",pillIdle:"border border-slate-700 bg-slate-900 text-slate-200 hover:border-cyan-400/25 hover:bg-slate-800"}},B2=["bg-amber-500/20 text-amber-300 border-amber-400/40","bg-blue-500/20 text-blue-300 border-blue-400/40","bg-emerald-500/20 text-emerald-300 border-emerald-400/40","bg-orange-500/20 text-orange-300 border-orange-400/40","bg-rose-500/20 text-rose-300 border-rose-400/40","bg-amber-400 text-slate-950 font-black border-amber-300"],Nh=()=>`event-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,q2=()=>`match-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,qa=o=>{const f=o instanceof Date?o:new Date(o);if(Number.isNaN(f.getTime()))return"Saison inconnue";const c=f.getMonth()>=7?f.getFullYear():f.getFullYear()-1;return`${c}/${c+1}`},V2=(o,f)=>{const c=Number(o.split("/")[0]||0);return Number(f.split("/")[0]||0)-c}
433,Gx=qa(new Date),G2=o=>{var f;switch(o){case"prenat":return{team:"Pré-Nat",category:"Séniors Masculin",competition:"Championnat Régional FFVB"};case"prereg":return{team:"Pré-Reg",category:"Séniors Masculin",competition:"Championnat Pré-Régional FFVB"};case"m18":return{team:"M18 Masculin",category:"Jeunes M18",competition:"Compétition M18"};case"m15":return{team:"M15 Masculin",category:"Jeunes M15",competition:"Compétition M15"};case"m13":return{team:"M13 Masculin",category:"Jeunes M13",competition:"Compétition M13"};case"m11":return{team:"M11 Mixte",category:"Jeunes M11",competition:"Plateau M11"};case"m9":return{team:"M9 Mixte",category:"Jeunes M9",competition:"Plateau M9"};default:return o.startsWith("ufolep-")?{team:`Loisirs UFOLEP ${o.split("-")[1]||"?"}`,category:"Loisir",competition:"Championnat UFOLEP Drôme"}:{team:((f=Nl.find(c=>c.id===o))==null?void 0:f.label)||"Nouveau match",category:"",competition:""}}},H2=o=>{const f=G2(o);return{id:q2(),squadId:o,team:f.team,category:f.category,opponent:"",clubLogoUrl:qe.logoUrl,opponentLogoUrl:"",date:"",time:"",location:"",isHome:!0,status:"upcoming",competition:f.competition}},Hx=o=>({...Jo,...o||{}}),P2=()=>({id:Nh(),title:"Nouvel événement",category:"Vie du club",date:"",location:"",description:"",badge:"Nouveau",highlight:!1,registrationMode:"none",registrationStatus:"open",registrationForm:{pricingMode:"free",ctaLabel:"Informations & Inscription"},archived:!1}),qu=o=>({...o,rows:o.rows.map(f=>({...f}))}),ei=o=>(Array.isArray(o)&&o.length>0?o:Io).map(qu),$2=()=>({team:"",played:0,won:0,lost:0,points:0}),Oo=o=>typeof o.displayOrder=="number"&&Number.isFinite(o.displayOrder)?o.displayOrder:Number.MAX_SAFE_INTEGER,wu=o=>[...o].map((f,c)=>({event:f,fallbackOrder:c+1})).sort((f,c)=>{const b=Oo(f.event)===Number.MAX_SAFE_INTEGER?f.fallbackOrder:Oo(f.event),k=Oo(c.event)===Number.MAX_SAFE_INTEGER?c.fallbackOrder:Oo(c.event);return b-k||f.fallbackOrder-c.fallbackOrder}).map(({event:f})=>f),Px=o=>{const f=o.map(c=>c.displayOrder).filter(c=>typeof c=="number"&&Number.isFinite(c));return(f.length>0?Math.max(...f):0)+1},I2=o=>o.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase(),Z2=({onExit:o})=>{var Qs,yi;const[f,c]=Z.useState("events"),[b,k]=Z.useState(""),[p,g]=Z.useState(""),[y,N]=Z.useState(null),[C,v]=Z.useState(null),[m,T]=Z.useState(null),[w,S]=Z.useState([]),[j,E]=Z.useState([]),[A,O]=Z.useState([]),[F,$]=Z.useState([]),[Y,G]=Z.useState(null),[V,K]=Z.useState({}),[te,J]=Z.useState(null),[I,L]=Z.useState(null),[H,h]=Z.useState(!1),[ie,ee]=Z.useState(""),[X,le]=Z.useState(""),[xe,B]=Z.useState(""),[d,U]=Z.useState("all"),[re,ne]=Z.useState(""),[ae,_e]=Z.useState("all"),[Ce,Ae]=Z.useState("all"),[Me,Fe]=Z.useState("all"),[Te,He]=Z.useState(Gx),[Ie,x]=Z.useState("all"),[pe,ue]=Z.useState("all"),[D,R]=Z.useState("all"),[W,ye]=Z.useState("createdAt-desc"),[we,oe]=Z.useState(1),[ve,Ee]=Z.useState(1),[ke,ze]=Z.useState(1),[Ze,Ve]=Z.useState(1),[Ye,la]=Z.useState(25),[zt,_a]=Z.useState([]),[lt,Nt]=Z.useState([]),[ra,xt]=Z.useState([]),[Wl,er]=Z.useState([]),[tr,Ps]=Z.useState(!1),[Wa,ka]=Z.useState(!0),[ea,ar]=Z.useState(!0),[$s,Ko]=Z.useState(!1),[Wo,ci]=Z.useState(!0),[Ga,sr]=Z.useState({}),[Qr,Is]=Z.useState(!1),[Ha,lr]=Z.useState(!1),[Kr,Wr]=Z.useState(!1),[di,Ea]=Z.useState(!1),{refreshOverrides:vt}=A2(),It=!!p,Aa=y==="bureau"||y==="communication",Pa=y==="bureau",en=y==="bureau",fs=y==="bureau",tn=y==="bureau"||y==="communication",bs=y==="bureau"||y==="communication"||y==="squad_manager",xa=y==="squad_manager",$a=C?((Qs=Nl.find(n=>n.id===C))==null?void 0:Qs.label)||C:null,Zt=xa?C:d!=="all"?d:null,Sl=Zt?((yi=Nl.find(n=>n.id===Zt))==null?void 0:yi.label)||Zt:null,es=Z.useMemo(()=>{if(xa)return["matches","messages"];const n=["events","matches","standings"];return Aa&&n.push("news"),y!=="communication"&&n.push("messages"),n.push("media"),Pa&&n.push("registrations"),n},[Aa,Pa,xa]),it=Z.useMemo(()=>({eventsCount:(m==null?void 0:m.events.length)||0,activeEventsCount:(m==null?void 0:m.events.filter(n=>!n.archived).length)||0,archivedEventsCount:(m==null?void 0:m.events.filter(n=>!!n.archived).length)||0,matchesCount:(m==null?void 0:m.matches.length)||0,newsCount:(m==null?void 0:m.news.length)||0,registrationsCount:w.length||0,trialRequestsCount:j.filter(n=>!n.archived).length||0,archivedTrialRequestsCount:j.filter(n=>!!n.archived).length||0,eventRegistrationsCount:A.length||0,contactMessagesCount:F.length||0,unreadContactMessagesCount:F.filter(n=>!n.readAt).length||0}),[m,F,A.length,w.length,j]),rr=Z.useMemo(()=>wu((m==null?void 0:m.events.filter(n=>!n.archived))||[]),[m]),nr=Z.useMemo(()=>wu((m==null?void 0:m.events.filter(n=>!!n.archived))||[]),[m]),gs=Z.useMemo(()=>{const n=new Set([Gx,...w.map(_=>qa(_.createdAt)),...j.map(_=>qa(_.createdAt)),...A.map(_=>qa(_.createdAt))]);return Array.from(n).sort(V2)},[A,w,j]),ts=Z.useMemo(()=>
433{if(!m)return[];const n=xe.trim().toLowerCase();return m.matches.filter(_=>{const z=d==="all"||_.squadId===d,q=!n||[_.team,_.opponent,_.competition,_.location,_.date].join(" ").toLowerCase().includes(n);return z&&q})},[m,xe,d]),an=Z.useMemo(()=>{const n=ei(m==null?void 0:m.standings),_=re.trim().toLowerCase();return _?n.filter(z=>[z.squadLabel,z.squadId,z.championship,z.note||"",...z.rows.map(q=>q.team)].join(" ").toLowerCase().includes(_)):n},[m==null?void 0:m.standings,re]),Rt=Z.useMemo(()=>{const n=ie.trim().toLowerCase();return w.filter(z=>{const q=Te==="all"||qa(z.createdAt)===Te,be=!n||[z.playerName,z.category,z.email,z.id,z.status].join(" ").toLowerCase().includes(n),fe=ae==="all"||z.status===ae,Ne=Ce==="all"||z.category===Ce,St=pe==="all"||hs(z.category)===pe,cs=D==="all"||(D==="unknown"?!z.paymentStatus:z.paymentStatus===D);return q&&be&&fe&&Ne&&St&&cs}).sort((z,q)=>{switch(W){case"createdAt-asc":return z.createdAt.localeCompare(q.createdAt);case"playerName-asc":return z.playerName.localeCompare(q.playerName,"fr");case"playerName-desc":return q.playerName.localeCompare(z.playerName,"fr");case"status-asc":return z.status.localeCompare(q.status,"fr")||q.createdAt.localeCompare(z.createdAt);case"createdAt-desc":default:return q.createdAt.localeCompare(z.createdAt)}})},[Ce,pe,D,ie,Te,W,ae,w]),Yt=Z.useMemo(()=>{const n=ie.trim().toLowerCase();return[...j].filter(_=>{if(_.archived)return!1;const z=Te==="all"||qa(_.createdAt)===Te,q=!n||[_.playerName,_.category,_.email,_.phone,_.status,_.id].join(" ").toLowerCase().includes(n),be=ae==="all"||_.status===ae,fe=Me==="all"||_.category===Me,Ne=pe==="all"||hs(_.category)===pe;return z&&q&&be&&fe&&Ne}).sort((_,z)=>z.createdAt.localeCompare(_.createdAt))},[pe,ie,Te,ae,Me,j]),as=Z.useMemo(()=>{const n=ie.trim().toLowerCase();return[...j].filter(_=>!!_.archived).filter(_=>{const z=Te==="all"||qa(_.createdAt)===Te,q=!n||[_.playerName,_.category,_.email,_.phone,_.status,_.id,_.archivedAt||""].join(" ").toLowerCase().includes(n),be=ae==="all"||_.status===ae,fe=Me==="all"||_.category===Me,Ne=pe==="all"||hs(_.category)===pe;return z&&q&&be&&fe&&Ne}).sort((_,z)=>(z.archivedAt||z.createdAt).localeCompare(_.archivedAt||_.createdAt))},[pe,ie,Te,ae,Me,j]),vs=Z.useMemo(()=>{const n=ie.trim().toLowerCase();return A.filter(_=>{const z=Te==="all"||qa(_.createdAt)===Te,q=!n||[_.eventTitle,_.participantName,_.email,_.phone,_.status,_.id].join(" ").toLowerCase().includes(n),be=Ie==="all"||_.eventId===Ie;return z&&q&&be}).sort((_,z)=>z.createdAt.localeCompare(_.createdAt))},[Ie,A,ie,Te]),qt=Z.useMemo(()=>{const n=X.trim().toLowerCase();return[...F].filter(_=>n?[_.name,_.email,_.phone,_.category,_.subject,_.message,_.status,_.id].join(" ").toLowerCase().includes(n):!0).sort((_,z)=>z.createdAt.localeCompare(_.createdAt))},[X,F]),Ma=Z.useMemo(()=>Array.from(new Set([...w.map(n=>n.category),...j.map(n=>n.category)])).sort((n,_)=>n.localeCompare(_,"fr")),[w,j]),na=Z.useMemo(()=>Array.from(new Map(((m==null?void 0:m.events)||[]).map(n=>[n.id,n.title])).entries()),[m]),ta=Z.useMemo(()=>{const n=ie.trim().toLowerCase(),_=w.filter(z=>{const q=Te==="all"||qa(z.createdAt)===Te,be=!n||[z.playerName,z.category,z.email,z.id,z.status].join(" ").toLowerCase().includes(n),fe=Ce==="all"||z.category===Ce;return q&&be&&fe});return{ffvb:_.filter(z=>hs(z.category)==="ffvb").length,ufolep:_.filter(z=>hs(z.category)==="ufolep").length,received:_.filter(z=>z.status==="received").length,incomplete:_.filter(z=>z.status==="incomplete").length,validated:_.filter(z=>z.status==="validated").length,"follow-up":_.filter(z=>z.status==="follow-up").length,paid:_.filter(z=>z.paymentStatus==="paid").length,initiated:_.filter(z=>z.paymentStatus==="initiated").length,cancelled:_.filter(z=>z.paymentStatus==="cancelled").length,unknown:_.filter(z=>!z.paymentStatus).length}},[Ce,ie,Te,w]),ec=Z.useMemo(()=>{const n=(we-1)*Ye;return Rt.slice(n,n+Ye)},[Ye,Rt,we]),sn=Z.useMemo(()=>{const n=(ve-1)*Ye;return Yt.slice(n,n+Ye)},[Ye,Yt,ve]),ui=Z.useMemo(()=>{const n=(ke-1)*Ye;return as.slice(n,n+Ye)},[Ye,as,ke]),ir=Z.useMemo(()=>{const n=(Ze-1)*Ye;return qt.slice(n,n+Ye)},[Ye,Ze,qt]),Zs=Math.max(1,Math.ceil(Rt.length/Ye)),Lt=Math.max(1,Math.ceil(Yt.length/Ye)),ss=Math.max(1,Math.ceil(as.length/Ye)),ys=Math.max(1,Math.ceil(qt.length/Ye));Z.useEffect(()=>{_a(n=>n.filter(_=>m==null?void 0:m.events.some(z=>z.id===_)))},[m]),Z.useEffect(()=>{Nt(n=>n.filter(_=>Rt.some(z=>z.id===_)))},[Rt]),Z.useEffect(()=>{xt(n=>n.filter(_=>Yt.some(z=>z.id===_)))},[Yt]),Z.useEffect(()=>{er(n=>n.filter(_=>qt.some(z=>z.id===_)))},[qt]),Z.useEffect(()=>{oe(1),Ee(1),ze(1),Ve(1)},[Ye,X,Ce,pe,D,ie,Te,W,ae,Me]),Z.useEffect(()=>{we>Zs&&oe(Zs)},[we,Zs]),Z.useEffect(()=>{ve>Lt&&Ee(Lt)},[ve,Lt]),Z.useEffect(()=>{ke>ss&&ze(ss)},[ke,ss]),Z.useEffect(()=>{Ze>ys&&Ve(ys)},[Ze,ys]);const Ia=(n,_)=>Xo(V[n],_),Jt=(n,_)=>Ia(n,_).imageUrl,js=(n,_)=>{const z=Ga[n]||Ia(n,_).focus;return`${z.x}% ${z.y}%`},mi=n=>n.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase(),Ns=async n=>{h(!0),J(null);try{const _=await h1(n);let z=null,q=Vo();try{z=await Sx(n),q=z.content}catch{z=null}const be=(z==null?void 0:z.role)||_.role,fe=(z==null?void 0:z.squadId)||_.squadId||void 0;z&&be==="bureau"&&(S([]),E([]),O([])),T(q),$([]),lr(!1),K({}),Is(!1),N(be),v(fe||null),g(n),U(be==="squad_manager"&&fe?fe:"all"),c(be==="squad_manager"?"matches":"events"),window.sessionStorage.setItem(Nu,n),window.sessionStorage.setItem(Bx,be)}catch(_){J(_ instanceof Error?_.message:"Chargement impossible.")}finally{h(!1)}},pi=async(n,_)=>
433{if(n){_!=null&&_.silent||h(!0),J(null),G(null);try{const z=await S1(n);S(z.registrations),E(z.trialRequests),O(z.eventRegistrations),G(z.warning||null)}catch(z){G(null),J(z instanceof Error?z.message:"Chargement des dossiers impossible.")}finally{_!=null&&_.silent||h(!1)}}};Z.useEffect(()=>{const n=window.sessionStorage.getItem(Nu);n&&Ns(n)},[]),Z.useEffect(()=>{es.includes(f)||c(es[0]||"events")},[f,es]),Z.useEffect(()=>{if(f!=="registrations"||y!=="bureau"||!p)return;pi(p,{silent:!1});const n=window.setInterval(()=>{pi(p,{silent:!0})},15e3);return()=>{window.clearInterval(n)}},[f,y,p]),Z.useEffect(()=>{if(f!=="messages"||!p||Ha)return;let n=!1;return(async()=>{J(null),Wr(!0);try{const z=await Sx(p);if(n)return;$(z.contactMessages||[]),N(z.role),v(z.squadId||null),lr(!0)}catch(z){n||J(z instanceof Error?z.message:"Chargement des messages de contact impossible.")}finally{n||Wr(!1)}})(),()=>{n=!0}},[f,Ha,p]),Z.useEffect(()=>{if(f!=="media"||y==="squad_manager"||!p||Qr)return;let n=!1;return(async()=>{h(!0),J(null);try{const z=Tu(await w1(p),(m==null?void 0:m.matches)||[]);if(n)return;K(z),Is(!0),await vt()}catch(z){n||J(z instanceof Error?z.message:"Chargement des visuels impossible.")}finally{n||h(!1)}})(),()=>{n=!0}},[f,y,Qr,p,vt]);const rt=(n,_)=>{T(z=>z&&{...z,events:z.events.map(q=>q.id===n?{...q,..._}:q)})},ia=(n,_)=>{T(z=>z&&{...z,matches:z.matches.map(q=>q.id===n?{...q,..._}:q)})},Vt=(n,_)=>{T(z=>z&&{...z,news:z.news.map(q=>q.id===n?{...q,..._}:q)})},Cl=(n,_)=>{T(z=>{if(!z)return z;const q=ei(z.standings);return{...z,standings:q.map(be=>be.squadId===n?qu({...be,..._}):be)}})},_l=(n,_,z)=>{T(q=>{if(!q)return q;const be=ei(q.standings);return{...q,standings:be.map(fe=>fe.squadId!==n?fe:{...fe,rows:fe.rows.map((Ne,St)=>St===_?{...Ne,...z}:Ne)})}})},or=n=>{T(_=>{if(!_)return _;const z=ei(_.standings);return{..._,standings:z.map(q=>q.squadId===n?{...q,rows:[...q.rows,$2()]}:q)}})},Za=(n,_)=>{T(z=>{if(!z)return z;const q=ei(z.standings);return{...z,standings:q.map(be=>be.squadId!==n?be:{...be,rows:be.rows.filter((fe,Ne)=>Ne!==_)})}})},wt=n=>{T(_=>_&&{..._,hero:Hx({..._.hero,...n})})},kl=n=>{if(n==="live"){wt({mediaMode:"live",mediaTitle:"Live match du club",mediaDescription:"Suivez la rencontre en direct depuis le gymnase.",mediaExpandLabel:"Agrandir le live"});return}if(n==="video"){wt({mediaMode:"video",mediaTitle:"Replays & highlights",mediaDescription:"Best-of, résumés de match et vidéos club à revoir en grand.",mediaExpandLabel:"Agrandir les replays"});return}wt({mediaMode:"photo",mediaUrl:"",mediaTitle:"Photos & vidéos du club",mediaDescription:"Un espace éditorial pour mettre en avant les temps forts.",mediaExpandLabel:"Agrandir"})},Ys=async n=>{if(!p||!m||y!=="bureau")return;const _=Array.isArray(m.displayedGymIds)&&m.displayedGymIds.length>0?m.displayedGymIds:Vs.map(fe=>fe.id),q=_.includes(n)?_.filter(fe=>fe!==n):[..._,n];if(q.length===0){J("Au moins un gymnase doit rester affiché en front.");return}const be={...m,displayedGymIds:Vs.map(fe=>fe.id).filter(fe=>q.includes(fe))};h(!0),J(null);try{const fe=await Pr(p,be);T(fe),L("Affichage front des gymnases mis à jour.")}catch(fe){J(fe instanceof Error?fe.message:"Mise à jour des gymnases impossible.")}finally{h(!1)}},ws=n=>{const _=A.filter(Ne=>Ne.eventId===n),z=_.filter(Ne=>Ne.status==="received").length,q=_.filter(Ne=>Ne.status==="confirmed").length,be=_.filter(Ne=>Ne.status==="waitlist").length,fe=_.filter(Ne=>Ne.status==="cancelled").length;return{total:_.length,received:z,confirmed:q,waitlist:be,cancelled:fe,active:z+q}},xi=async n=>{n.preventDefault(),L(null),await Ns(b.trim())},ln=n=>{_a(_=>_.includes(n)?_.filter(z=>z!==n):[..._,n])},hi=async n=>{var _,z;if(p){h(!0),J(null);try{const q=ws(n.id),be=(_=n.registrationForm)==null?void 0:_.capacityLimit,fe=!!((z=n.registrationForm)!=null&&z.autoCloseWhenFull)&&typeof be=="number"&&be>0&&q.active>=be,Ne=fe&&n.registrationStatus!=="full"?{...n,registrationStatus:"full"}:n;await f1(p,Ne),rt(n.id,Ne),L(fe?`Événement « ${n.title} » enregistré et basculé automatiquement sur complet.`:`Événement « ${n.title} » enregistré.`)}catch(q){J(q instanceof Error?q.message:"Enregistrement impossible.")}finally{h(!1)}}},El=async()=>
433{if(!p||!m||!fs)return;const n={...P2(),displayOrder:Px(m.events)},_={...m,events:[n,...m.events]};h(!0),J(null);try{const z=await Pr(p,_);T(z),L(`Nouvel événement « ${n.title} » créé.`)}catch(z){J(z instanceof Error?z.message:"Création impossible.")}finally{h(!1)}},Ya=async n=>{if(!p||!m||!fs)return;const _={...n,id:Nh(),title:`${n.title} (copie)`,displayOrder:Px(m.events),highlight:!1,archived:!1,archivedAt:void 0,registrationSummary:void 0,structuredData:n.structuredData?{...n.structuredData,offers:n.structuredData.offers?{...n.structuredData.offers}:void 0}:void 0,registrationForm:n.registrationForm?{...n.registrationForm}:void 0},z={...m,events:[_,...m.events]};h(!0),J(null);try{const q=await Pr(p,z);T(q),L(`Événement dupliqué depuis « ${n.title} ».`)}catch(q){J(q instanceof Error?q.message:"Duplication impossible.")}finally{h(!1)}},cr=async(n,_)=>{if(!p||!m||!tn)return;const z=m.events.filter(Ct=>!!Ct.archived==!!n.archived),q=wu(z),be=q.findIndex(Ct=>Ct.id===n.id);if(be<0)return;const fe=be+_;if(fe<0||fe>=q.length)return;const Ne=[...q],[St]=Ne.splice(be,1);if(!St)return;Ne.splice(fe,0,St);const cs=new Map(Ne.map((Ct,ds)=>[Ct.id,ds+1])),Ss={...m,events:m.events.map(Ct=>cs.has(Ct.id)?{...Ct,displayOrder:cs.get(Ct.id)}:Ct)};h(!0),J(null);try{const Ct=await Pr(p,Ss);T(Ct),L(`Priorité mise à jour pour « ${n.title} ».`)}catch(Ct){J(Ct instanceof Error?Ct.message:"Réorganisation impossible.")}finally{h(!1)}},Al=async(n,_)=>{if(!p||!m||!fs)return;const z={...m,events:m.events.map(q=>q.id===n.id?{...q,archived:_,archivedAt:_?new Date().toISOString():void 0}:q)};h(!0),J(null);try{const q=await Pr(p,z);T(q),L(_?`Événement « ${n.title} » masqué du front.`:`Événement « ${n.title} » remis en front.`)}catch(q){J(q instanceof Error?q.message:"Archivage impossible.")}finally{h(!1)}},ls=async n=>{if(p){h(!0),J(null);try{await b1(p,{...n,clubLogoUrl:n.clubLogoUrl||qe.logoUrl}),L(`Match « ${n.team} » enregistré.`)}catch(_){J(_ instanceof Error?_.message:"Enregistrement impossible.")}finally{h(!1)}}},rn=async()=>{if(!(!p||!m)){h(!0),J(null);try{const n=await Mo(p,m,Ha?F:void 0);T(n.content),Ha&&$(n.contactMessages||[]),L("Hero enregistré.")}catch(n){J(n instanceof Error?n.message:"Enregistrement du hero impossible.")}finally{h(!1)}}},Ml=async()=>{if(!(!p||!m)){h(!0),J(null);try{const n=await Mo(p,m,Ha?F:void 0);T(n.content),Ha&&$(n.contactMessages||[]),L("Classement enregistré.")}catch(n){J(n instanceof Error?n.message:"Enregistrement du classement impossible.")}finally{h(!1)}}},fi=async n=>{if(!(!p||!m||!bs||!window.confirm(`Supprimer définitivement le match « ${n.team} » ? Cette action est irréversible.`))){h(!0),J(null);try{await g1(p,n.id),T(z=>z&&{...z,matches:z.matches.filter(q=>q.id!==n.id)}),L(`Match « ${n.team} » supprimé.`)}catch(z){J(z instanceof Error?z.message:"Suppression impossible.")}finally{h(!1)}}},dr=async()=>{var z;if(!p||!m||!bs)return;const n=xa?C:d!=="all"?d:(z=Nl[0])==null?void 0:z.id;if(!n){J("Aucun collectif disponible pour créer un match.");return}const _=H2(n);h(!0),J(null);try{const q=await v1(p,_);T(be=>be&&{...be,matches:[q.match,...be.matches]}),U(n),L(`Nouveau match « ${q.match.team} » créé.`)}catch(q){J(q instanceof Error?q.message:"Création impossible.")}finally{h(!1)}},ur=async n=>{var z;const _=(z=n.target.files)==null?void 0:z[0];if(!(!_||!p)){if(!Zt){J("Sélectionne un collectif avant d’importer le CSV."),n.target.value="";return}h(!0),J(null);try{const q=await _.text(),be=await y1(p,q,Zt);T(be.content),U(Zt),L(`CSV importé pour ${Sl||Zt} (${be.importedCount} match(s)).`)}catch(q){J(q instanceof Error?q.message:"Import CSV des matchs impossible.")}finally{n.target.value="",h(!1)}}},bi=async n=>{var z;const _=(z=n.target.files)==null?void 0:z[0];if(!(!_||!p||!m)){h(!0),J(null);try{const q=await _.text(),be=Y2(q),fe={...m,standings:be},Ne=await Mo(p,fe,Ha?F:void 0);T(Ne.content),Ha&&$(Ne.contactMessages||[]),L(`Classement importé (${be.length} collectif(s)).`)}catch(q){J(q instanceof Error?q.message:"Import CSV du classement impossible.")}finally{n.target.value="",h(!1)}}},Xt=async n=>{if(p){h(!0),J(null);try{await j1(p,n),L(`Actualité « ${n.headline} » enregistrée.`)}catch(_){J(_ instanceof Error?_.message:"Enregistrement impossible.")}finally{h(!1)}}},rs=async(n,_,z)=>{var be;const q=(be=z.target.files)==null?void 0:be[0];if(!(!q||!p)){h(!0),J(null);try{const fe=await _x(p,n,q);_(fe.imageUrl),L(`Image uploadée vers ${fe.imageUrl}.`)}catch(fe){J(fe instanceof Error?fe.message:"Upload impossible.")}finally{z.target.value="",h(!1)}}},Tl=n=>{var Ss,Ct,ds,Ks,ji,zl,un,mn,xr,hr,pn,xn,hn,Ni,wi,Si,Ci;
433const _=zt.includes(n.id),z=ws(n.id),q=(Ss=n.registrationForm)==null?void 0:Ss.capacityLimit,be=typeof q=="number"&&q>0,fe=be?z.active:z.total,Ne=be&&fe>=q,St=be?Math.min(100,Math.round(fe/q*100)):null,cs=typeof n.displayOrder=="number"?n.displayOrder:"auto";return t.jsxs("div",{className:"rounded-[28px] border border-slate-800 bg-slate-900/70 p-5",children:[t.jsxs("div",{className:"mb-3 flex flex-wrap items-center justify-end gap-2 text-xs",children:[t.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full border border-cyan-400/20 bg-cyan-500/10 px-3 py-1 font-bold text-cyan-200",children:["Priorité ",cs]}),tn&&t.jsxs("span",{className:"inline-flex overflow-hidden rounded-full border border-cyan-300/20 bg-slate-950/60",children:[t.jsx("button",{type:"button",onClick:()=>void cr(n,-1),disabled:H,className:"flex h-6 w-6 items-center justify-center text-cyan-200 hover:bg-cyan-500/20 disabled:cursor-not-allowed disabled:opacity-50","aria-label":"Monter la priorité",children:t.jsx(ku,{className:"h-3.5 w-3.5"})}),t.jsx("button",{type:"button",onClick:()=>void cr(n,1),disabled:H,className:"flex h-6 w-6 items-center justify-center border-l border-cyan-300/20 text-cyan-200 hover:bg-cyan-500/20 disabled:cursor-not-allowed disabled:opacity-50","aria-label":"Baisser la priorité",children:t.jsx(Ut,{className:"h-3.5 w-3.5"})})]})]}),t.jsxs("button",{type:"button",onClick:()=>ln(n.id),className:"flex w-full items-start justify-between gap-4 text-left cursor-pointer",children:[t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-xs",children:[t.jsx("span",{className:"rounded-full border border-slate-700 bg-slate-950 px-3 py-1 font-bold text-slate-300",children:n.id}),n.archived?t.jsx("span",{className:"rounded-full border border-rose-400/20 bg-rose-500/10 px-3 py-1 font-bold text-rose-200",children:"Masqué du front"}):t.jsx("span",{className:"rounded-full border border-emerald-400/20 bg-emerald-500/10 px-3 py-1 font-bold text-emerald-200",children:"Visible en front"}),t.jsxs("span",{className:"rounded-full border border-amber-400/20 bg-amber-400/10 px-3 py-1 font-bold text-amber-200",children:[z.total," inscription(s)"]}),t.jsxs("span",{className:"rounded-full border border-blue-400/20 bg-blue-500/10 px-3 py-1 font-bold text-blue-200",children:["Reçues ",z.received]}),t.jsxs("span",{className:"rounded-full border border-emerald-400/20 bg-emerald-500/10 px-3 py-1 font-bold text-emerald-200",children:["Confirmées ",z.confirmed]}),t.jsxs("span",{className:"rounded-full border border-orange-400/20 bg-orange-500/10 px-3 py-1 font-bold text-orange-200",children:["Attente ",z.waitlist]}),t.jsxs("span",{className:"rounded-full border border-slate-600 bg-slate-800 px-3 py-1 font-bold text-slate-300",children:["Annulées ",z.cancelled]}),be?t.jsxs("span",{className:`rounded-full border px-3 py-1 font-bold ${Ne?"border-rose-400/30 bg-rose-500/10 text-rose-200":"border-cyan-400/30 bg-cyan-500/10 text-cyan-200"}`,children:["Seuil ",fe,"/",q]}):null,St!==null?t.jsxs("span",{className:"rounded-full border border-violet-400/20 bg-violet-500/10 px-3 py-1 font-bold text-violet-200",children:["Remplissage ",St,"%"]}):null]}),t.jsxs("div",{className:"mt-3 flex flex-col gap-1 sm:flex-row sm:flex-wrap sm:items-center sm:gap-3",children:[t.jsx("p",{className:"text-sm font-black text-white",children:n.title}),t.jsx("span",{className:"text-sm text-slate-400",children:n.date||"Date à renseigner"}),t.jsx("span",{className:"text-sm text-slate-500",children:n.location||"Lieu à renseigner"})]}),t.jsxs("p",{className:"mt-2 text-xs text-slate-400",children:[n.category," • ",n.highlight?"Mis en avant":"Carte standard"," • ",n.registrationMode||"none"]})]}),t.jsx("span",{className:`mt-1 flex h-10 w-10 items-center justify-center rounded-full border border-slate-700 bg-slate-900 text-slate-300 transition-transform ${_?"rotate-180":""}`,children:t.jsx(Ut,{className:"h-4 w-4"})})]}),_&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"mt-4 grid grid-cols-1 gap-4 border-t border-slate-800 pt-4 lg:grid-cols-2",children:[t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Titre"}),t.jsx("input",{value:n.title,onChange:Le=>rt(n.id,{title:Le.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Catégorie"}),t.jsx("select",{value:n.category,onChange:Le=>rt(n.id,{category:Le.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none",children:M2.map(Le=>t.jsx("option",{value:Le,children:Le},Le))})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Date"}),t.jsx("input",{value:n.date,onChange:Le=>rt(n.id,{date:Le.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Lieu"}),t.jsx("input",{value:n.location,onChange:Le=>rt(n.id,{location:Le.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm lg:col-span-2",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Description"}),t.jsx("textarea",{value:n.description,onChange:Le=>rt(n.id,{description:Le.target.value}),rows:4,className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Badge"}),t.jsx("input",{value:n.badge,onChange:Le=>rt(n.id,{badge:Le.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"flex items-center gap-3 rounded-xl border border-slate-800 bg-slate-950 px-4 py-3 text-sm",children:[t.jsx("input",{type:"checkbox",checked:!!n.highlight,onChange:Le=>rt(n.id,{highlight:Le.target.checked})}),t.jsx("span",{className:"font-semibold text-slate-300",children:"Mettre en avant"})]})]}),t.jsxs("div",{className:"mt-5 rounded-2xl border border-blue-400/20 bg-blue-500/5 p-4",children:[t.jsxs("div",{className:"mb-4",children:[t.jsx("h3",{className:"text-sm font-black text-white",children:"Inscription événement"}),t.jsx("p",{className:"mt-1 text-xs text-slate-400",children:"Choisir le type d'inscription associé à la carte: interne, externe ou aucun."})]}),t.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-2",children:[t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Mode d'inscription"}),t.jsx("select",{value:n.registrationMode||"none",onChange:Le=>rt(n.id,{registrationMode:Le.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none",children:T2.map(Le=>t.jsx("option",{value:Le,children:Le},Le))})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Ouverture des inscriptions"}),t.jsx("select",{value:n.registrationStatus||"open",onChange:Le=>rt(n.id,{registrationStatus:Le.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none",children:L2.map(Le=>t.jsx("option",{value:Le,children:Le},Le))})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Lien externe"}),t.jsx("input",{value:n.registrationUrl||"",onChange:Le=>rt(n.id,{registrationUrl:Le.target.value||void 0}),placeholder:"https://...",className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Texte CTA"}),t.jsx("input",{value:((Ct=n.registrationForm)==null?void 0:Ct.ctaLabel)||"",onChange:Le=>rt(n.id,{registrationForm:{...n.registrationForm,ctaLabel:Le.target.value||void 0}}),placeholder:"Informations & Inscription",className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Statut tarifaire"}),t.jsx("select",{value:((ds=n.registrationForm)==null?void 0:ds.pricingMode)||"free",onCh
433ange:Le=>rt(n.id,{registrationForm:{...n.registrationForm,pricingMode:Le.target.value}}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none",children:O2.map(Le=>t.jsx("option",{value:Le,children:Le==="paid"?"payant":"gratuit"},Le))})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Label prix / participation"}),t.jsx("input",{value:((Ks=n.registrationForm)==null?void 0:Ks.priceLabel)||"",onChange:Le=>rt(n.id,{registrationForm:{...n.registrationForm,priceLabel:Le.target.value||void 0}}),placeholder:"Participation libre, tarif communiqué...",className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Montant Stripe (€)"}),t.jsx("input",{type:"number",min:"1",step:"0.01",value:((ji=n.registrationForm)==null?void 0:ji.paymentAmount)??"",onChange:Le=>rt(n.id,{registrationForm:{...n.registrationForm,paymentAmount:Le.target.value?Number(Le.target.value):void 0}}),placeholder:"Ex: 65",className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Lien de règlement"}),t.jsx("input",{value:((zl=n.registrationForm)==null?void 0:zl.paymentUrl)||"",onChange:Le=>rt(n.id,{registrationForm:{...n.registrationForm,paymentUrl:Le.target.value||void 0}}),placeholder:"https://... ou /inscription#paiement",className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Libellé bouton règlement"}),t.jsx("input",{value:((un=n.registrationForm)==null?void 0:un.paymentButtonLabel)||"",onChange:Le=>rt(n.id,{registrationForm:{...n.registrationForm,paymentButtonLabel:Le.target.value||void 0}}),placeholder:"Règlement",className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Lien Stripe"}),t.jsx("input",{value:((mn=n.registrationForm)==null?void 0:mn.stripePaymentUrl)||"",onChange:Le=>rt(n.id,{registrationForm:{...n.registrationForm,stripePaymentUrl:Le.target.value||void 0}}),placeholder:"https://checkout.stripe.com/... ou /inscription#paiement",className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Libellé bouton Stripe"}),t.jsx("input",{value:((xr=n.registrationForm)==null?void 0:xr.stripePaymentButtonLabel)||"",onChange:Le=>rt(n.id,{registrationForm:{...n.registrationForm,stripePaymentButtonLabel:Le.target.value||void 0}}),placeholder:"Payer en ligne avec Stripe",className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Lien RIB / virement"}),t.jsx("input",{value:((hr=n.registrationForm)==null?void 0:hr.bankTransferUrl)||"",onChange:Le=>rt(n.id,{registrationForm:{...n.registrationForm,bankTransferUrl:Le.target.value||void 0}}),placeholder:"https://... ou /contact",className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Libellé bouton RIB / virement"}),t.jsx("input",{value:((pn=n.registrationForm)==null?void 0:pn.bankTransferButtonLabel)||"",onChange:Le=>rt(n.id,{registrationForm:{...n.registrationForm,bankTransferButtonLabel:Le.target.value||void 0}}),placeholder:"RIB / virement bancaire",className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm lg:col-span-2",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Texte d'introduction du formulaire"}),t.jsx("textarea",{value:((xn=n.registrationForm)==null?void 0:xn.intro)||"",onChange:Le=>rt(n.id,{registrationForm:{...n.registrationForm,intro:Le.target.value||void 0}}),rows:3,className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Label capacité"}),t.jsx("input",{value:((hn=n.registrationForm)==null?void 0:hn.capacityLabel)||"",onChange:Le=>rt(n.id,{registrationForm:{...n.registrationForm,capacityLabel:Le.target.value||void 0}}),placeholder:"Places limitées, selon créneaux...",className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Seuil d'inscriptions"}),t.jsx("input",{type:"number",min:"1",value:((Ni=n.registrationForm)==null?void 0:Ni.capacityLimit)??"",onChange:Le=>rt(n.id,{registrationForm:{...n.registrationForm,capacityLimit:Le.target.value?Number(Le.target.value):void 0}}),placeholder:"Ex: 60",className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Message de succès"}),t.jsx("input",{value:((wi=n.registrationForm)==null?void 0:wi.successMessage)||"",onChange:Le=>
433rt(n.id,{registrationForm:{...n.registrationForm,successMessage:Le.target.value||void 0}}),placeholder:"Votre demande a bien été enregistrée...",className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Libellé du statut"}),t.jsx("input",{value:((Si=n.registrationForm)==null?void 0:Si.statusLabel)||"",onChange:Le=>rt(n.id,{registrationForm:{...n.registrationForm,statusLabel:Le.target.value||void 0}}),placeholder:"Ouvert / Bientôt / Complet...",className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"flex items-center gap-3 rounded-xl border border-slate-800 bg-slate-950 px-4 py-3 text-sm lg:col-span-2",children:[t.jsx("input",{type:"checkbox",checked:!!((Ci=n.registrationForm)!=null&&Ci.autoCloseWhenFull),onChange:Le=>rt(n.id,{registrationForm:{...n.registrationForm,autoCloseWhenFull:Le.target.checked}})}),t.jsx("span",{className:"font-semibold text-slate-300",children:"Basculer automatiquement sur complet quand le seuil est atteint"})]})]}),be?t.jsx("p",{className:`mt-4 text-xs ${Ne?"text-rose-200":"text-slate-400"}`,children:Ne?"Le seuil est atteint. En mode auto, l’événement passera sur complet lors de l’enregistrement.":`${Math.max(q-fe,0)} place(s) restante(s) avant bascule.`}):t.jsx("p",{className:"mt-4 text-xs text-slate-400",children:"Aucun seuil configuré: le compteur reste informatif."})]}),t.jsx("div",{className:"mt-5 rounded-2xl border border-slate-800 bg-slate-950/60 p-4",children:t.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx("div",{className:"flex h-24 w-36 items-center justify-center overflow-hidden rounded-2xl bg-slate-900",children:n.imageUrl?t.jsx("img",{src:n.imageUrl,alt:n.title,className:"h-full w-full object-cover"}):t.jsx(Sa,{className:"h-8 w-8 text-slate-500"})}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.18em] text-slate-500",children:"Image section événement"}),t.jsx("p",{className:"mt-1 max-w-md truncate text-sm text-amber-300",children:n.imageUrl||"Aucune image"})]})]}),t.jsxs("label",{className:"inline-flex cursor-pointer items-center gap-2 rounded-xl bg-amber-400 px-4 py-2 text-xs font-black text-slate-950 hover:bg-amber-300",children:[t.jsx(Ba,{className:"h-4 w-4"}),"Uploader l'image",t.jsx("input",{type:"file",accept:"image/*",className:"hidden",onChange:Le=>rs(`events/${n.id}`,aa=>rt(n.id,{imageUrl:aa}),Le)})]})]})}),t.jsxs("div",{className:"mt-5 flex flex-wrap justify-end gap-2",children:[t.jsxs("button",{type:"button",onClick:()=>void Ya(n),disabled:H||!fs,className:"inline-flex items-center gap-2 rounded-xl border border-slate-700 bg-slate-950 px-4 py-2 text-sm font-black text-slate-200 hover:bg-slate-800 disabled:cursor-not-allowed disabled:opacity-50",children:[t.jsx(lh,{className:"h-4 w-4"}),"Dupliquer"]}),t.jsxs("button",{type:"button",onClick:()=>void Al(n,!n.archived),disabled:H||!fs,className:"inline-flex items-center gap-2 rounded-xl border border-amber-400/30 bg-amber-400/10 px-4 py-2 text-sm font-black text-amber-200 hover:bg-amber-400/20 disabled:cursor-not-allowed disabled:opacity-50",children:[n.archived?t.jsx(yx,{className:"h-4 w-4"}):t.jsx(mx,{className:"h-4 w-4"}),n.archived?"Remettre en front":"Masquer du front"]}),t.jsxs("button",{onClick:()=>hi(n),disabled:H,className:"inline-flex items-center gap-2 rounded-xl bg-blue-500 px-4 py-2 text-sm font-black text-white hover:bg-blue-400 disabled:cursor-not-allowed disabled:opacity-50",children:[t.jsx(qs,{className:"h-4 w-4"}),"Enregistrer l'événement"]})]})]})]},n.id)},Ll=n=>{const _=n.rows.length>0;return t.jsxs("div",{className:"rounded-[28px] border border-slate-800 bg-slate-900/70 p-5",children:[t.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-start lg:justify-between",children:[t.jsxs("div",{className:"space-y-3",children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-xs",children:[t.jsx("span",{className:"rounded-full border border-slate-700 bg-slate-950 px-3 py-1 font-bold text-slate-300",children:n.squadId}),t.jsxs("span",{className:"rounded-full border border-blue-400/20 bg-blue-500/10 px-3 py-1 font-bold text-blue-200",children:[n.rank,"/",n.totalTeams]})]}),t.jsxs("div",{children:[t.jsx("h3",{className:"text-lg font-black text-white",children:n.squadLabel}),t.jsx("p",{className:"mt-1 text-sm text-slate-400",children:n.championship}),n.note?t.jsx("p",{className:"mt-2 text-sm text-slate-300",children:n.note}):t.jsx("p",{className:"mt-2 text-sm text-slate-500",children:"Aucune note rédigée pour le moment."})]})]}),t.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t.jsxs("button",{type:"button",onClick:()=>or(n.squadId),disabled:H,className:"inline-flex items-center gap-2 rounded-xl border border-slate-700 bg-slate-950 px-4 py-2 text-sm font-black text-slate-200 hover:bg-slate-800 disabled:cursor-not-allowed disabled:opacity-50",children:[t.jsx(bu,{className:"h-4 w-4"}),"Ajouter une ligne"]}),t.jsxs("button",{type:"button",onClick:()=>void Ml(),disabled:H,className:"inline-flex items-center gap-2 rounded-xl bg-blue-500 px-4 py-2 text-sm font-black text-white hover:bg-blue-400 disabled:cursor-not-allowed disabled:opacity-50",children:[t.jsx(qs,{className:"h-4 w-4"}),"Enregistrer"]})]})]}),t.jsxs("div",{className:"mt-5 grid grid-cols-1 gap-4 lg:grid-cols-2",children:[t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Libellé collectif"}),t.jsx("input",{value:n.squadLabel,onChange:z=>Cl(n.squadId,{squadLabel:z.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Championnat"}),t.jsx("input",{value:n.championship,onChange:z=>Cl(n.squadId,{championship:z.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Position"}),t.jsx("input",{type:"number",min:"1",value:n.rank,onChange:z=>Cl(n.squadId,{rank:Number(z.target.value)||1}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Nombre d'équipes"}),t.jsx("input",{type:"number",min:"1",value:n.totalTeams,onChange:z=>Cl(n.squadId,{totalTeams:Number(z.target.value)||1}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm lg:col-span-2",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Note"}),t.jsx("textarea",{value:n.note||"",onChange:z=>Cl(n.squadId,{note:z.target.value||void 0}),rows:3,className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]})]}),t.jsx("div",{className:"mt-5 overflow-hidden rounded-2xl border border-slate-800",children:t.jsxs("table",{className:"w-full border-collapse text-sm",children:[t.jsx("thead",{className:"bg-slate-950/80 text-xs uppercase tracking-[0.16em] text-slate-400",children:t.jsxs("tr",{children:[t.jsx("th",{className:"px-3 py-3 text-left font-black",children:"Équipe"}),t.jsx("th",{className:"px-3 py-3 text-center font-black",children:"J"}),t.jsx("th",{className:"px-3 py-3 text-center font-black",children:"G"}),t.jsx("th",{className:"px-3 py-3 text-center font-black",children:"P"}),t.jsx("th",{className:"px-3 py-3 text-center font-black",children:"Pts"}),t.jsx("th",{className:"px-3 py-3 text-right font-black",children:"Actions"})]})}),t.jsx("tbody",{children:_?n.rows.map((z,q)=>t.jsxs("tr",{className:"border-t border-slate-800 bg-slate-950/40",children:[t.jsx("td",{className:"px-3 py-2",children:t.jsx("input",{value:z.team,onChange:be=>_l(n.squadId,q,{team:be.target.value}),className:"w-full rounded-lg border border-slate-700 bg-slate-950 px-2 py-1.5 outline-none"})}),t.jsx("td",{className:"px-3 py-2",children:t.jsx("input",{type:"number",min:"0",value:z.played,onChange:be=>_l(n.squadId,q,{played:Number(be.target.value)||0}),className:"w-20 rounded-lg border border-slate-700 bg-slate-950 px-2 py-1.5 text-center outline-none"})}),t.jsx("td",{className:"px-3 py-2",children:t.jsx("input",{type:"number",min:"0",value:z.won,onChange:be=>_l(n.squadId,q,{won:Number(be.target.value)||0}),className:"w-20 rounded-lg border border-slate-700 bg-slate-950 px-2 py-1.5 text-center outline-none"})}),t.jsx("td",{className:"px-3 py-2",children:t.jsx("input",{type:"number",min:"0",value:z.lost,onChange:be=>_l(n.squadId,q,{lost:Number(be.target.value)||0}),className:"w-20 rounded-lg border border-slate-700 bg-slate-950 px-2 py-1.5 text-center outline-none"})}),t.jsx("td",{className:"px-3 py-2",children:t.jsx("input",{type:"number",min:"0",value:z.points,onChange:be=>_l(n.squadId,q,{points:Number(be.target.value)||0}),className:"w-20 rounded-lg border border-slate-700 bg-slate-950 px-2 py-1.5 text-center outline-none"})}),t.jsx("td",{className:"px-3 py-2 text-right",children:t.jsx("button",{type:"button",onClick:()=>Za(n.squadId,q),disabled:H,className:"rounded-lg border border-rose-400/30 bg-rose-500/10 px-3 py-1.5 text-xs font-bold text-rose-200 hover:bg-rose-500/20 disabled:cursor-not-allowed disabled:opacity-50",children:"Supprimer"})})]},`${n.squadId}-${q}`)):t.jsx("tr",{className:"border-t border-slate-800 bg-slate-950/40",children:t.jsx("td",{colSpan:6,className:"px-3 py-5 text-center text-sm text-slate-400",children:"Aucune ligne pour ce classement."})})})]})})]},n.squadId)},gi=()=>{window.sessionStorage.removeItem(Nu),window.sessionStorage.removeItem(Bx),g(""),N(null),v(null),k(""),T(null),S([]),E([]),O([]),G(null),K({}),Is(!1),J(null),L(null)},Ol=async(n,_)=>{if(p){h(!0),J(null);try{const z=await Cx(p,n);K(z),Is(!0),await vt(),L(_)}catch(z){J(z instanceof Error?z.message:"Enregistrement des visuels impossible.")}finally{h(!1)}}},mr=async(n,_,z,q)=>{if(!p)return;const be=Ia(_),fe=Ga[_]||be.focus;h(!0),J(null);try{const Ne=await _x(p,n,q),St={...V,[_]:gu(Ne.imageUrl,fe)},cs=await Cx(p,St);K(cs),Is(!0),sr(Ss=>({...Ss,[_]:fe})),await vt(),L(`Visuel mis à jour pour ${z}.`)}catch(Ne){J(Ne instanceof Error?Ne.message:"Upload impossible.")}h(!1)},ha=async(n,_,z,q)=>{var fe;const be=(fe=q.target.files)==null?void 0:fe[0];if(be)try{await mr(n,_,z,be)}finally{q.target.value=""}},pr=async(n,_,z,q)=>{var fe;q.preventDefault(),Ea(!1);const be=(fe=q.dataTransfer.files)==null?void 0:fe[0];be&&await mr(n,_,z,be)},ns=async(n,_)=>{const z={...V};delete z[n],sr(q=>{const be={...q};return delete be[n],be}),await Ol(z,`Override supprimé pour ${_}. Retour au visuel par défaut.`)},vi=(n,_,z,q)=>{const be=Ga[n]||Ia(n,q).focus;sr(fe=>({...fe,[n]:{...be,[_]:z}}))},tc=async(n,_,z)=>{if(!p)return;const{imageUrl:q,focus:be}=Ia(n,z),fe=Ga[n]||be;if(!q){J("Aucune image disponible pour ajuster le cadrage.");return}const Ne={...V,[n]:gu(q,fe)};await Ol(Ne,`Cadrage enregistré pour ${_}.`)},ac=async(n,_,z)=>{if(!p)return;const{imageUrl:q}=Ia(n,z);
433if(sr(fe=>({...fe,[n]:{x:50,y:50}})),!q)return;const be={...V,[n]:gu(q,{x:50,y:50})};await Ol(be,`Cadrage réinitialisé pour ${_}.`)},is=(n,_,z)=>{const q=Ga[n]||Ia(n,z).focus,be=Jt(n,z);return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"mt-4 rounded-2xl border border-slate-800 bg-slate-900/70 p-3",children:[t.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.16em] text-slate-400",children:"Zone utile"}),t.jsxs("div",{className:"mt-3 grid grid-cols-1 gap-3 sm:grid-cols-2",children:[t.jsxs("label",{className:"space-y-2 text-xs text-slate-300",children:[t.jsxs("span",{className:"flex items-center justify-between gap-2",children:[t.jsx("span",{children:"Horizontal"}),t.jsxs("strong",{className:"text-white",children:[q.x,"%"]})]}),t.jsx("input",{type:"range",min:"0",max:"100",step:"1",value:q.x,onChange:fe=>vi(n,"x",Number(fe.target.value),z),className:"w-full accent-amber-400"})]}),t.jsxs("label",{className:"space-y-2 text-xs text-slate-300",children:[t.jsxs("span",{className:"flex items-center justify-between gap-2",children:[t.jsx("span",{children:"Vertical"}),t.jsxs("strong",{className:"text-white",children:[q.y,"%"]})]}),t.jsx("input",{type:"range",min:"0",max:"100",step:"1",value:q.y,onChange:fe=>vi(n,"y",Number(fe.target.value),z),className:"w-full accent-amber-400"})]})]})]}),t.jsxs("div",{className:"flex flex-wrap gap-2",children:[t.jsx("button",{type:"button",onClick:()=>void tc(n,_,z),disabled:!be||H,className:"rounded-xl border border-amber-400/30 bg-amber-500/10 px-4 py-2 text-xs font-bold text-amber-200 hover:bg-amber-500/20 disabled:cursor-not-allowed disabled:opacity-50",children:"Enregistrer le cadrage"}),t.jsx("button",{type:"button",onClick:()=>void ac(n,_,z),disabled:!be||H,className:"rounded-xl border border-sky-400/30 bg-sky-500/10 px-4 py-2 text-xs font-bold text-sky-200 hover:bg-sky-500/20 disabled:cursor-not-allowed disabled:opacity-50",children:"Reset cadrage"})]})]})},sc=()=>{if(!m)return;const n={exportedAt:new Date().toISOString(),content:m},_=new Blob([JSON.stringify(n,null,2)],{type:"application/json"}),z=URL.createObjectURL(_),q=document.createElement("a");q.href=z,q.download=`vace-admin-backup-${new Date().toISOString().slice(0,10)}.json`,q.click(),URL.revokeObjectURL(z),L("Sauvegarde exportée.")},lc=async()=>{if(p){h(!0),J(null);try{const n=await N1(p);L(`Snapshot créé le ${new Date(n.createdAt).toLocaleString("fr-FR")} (${n.snapshotId}).`)}catch(n){J(n instanceof Error?n.message:"Création du snapshot impossible.")}finally{h(!1)}}},rc=async n=>{var z;const _=(z=n.target.files)==null?void 0:z[0];if(!(!_||!p)){h(!0),J(null);try{const q=await _.text(),be=JSON.parse(q),fe="content"in be&&be.content?be.content:be;if(!Array.isArray(fe.matches)||!Array.isArray(fe.events)||!Array.isArray(fe.news))throw new Error("Le fichier de sauvegarde est invalide.");const Ne=await Pr(p,fe);T(Ne),L("Sauvegarde importée avec succès.")}catch(q){J(q instanceof Error?q.message:"Import impossible.")}finally{n.target.value="",h(!1)}}},Js=(n,_)=>{S(z=>z.map(q=>q.id===n?{...q,..._,updatedAt:new Date().toISOString()}:q))},nc=async n=>{if(p){h(!0),J(null);try{const _=w.map(q=>q.id===n.id?n:q),z=await Kn(p,_,j,A);S(z.registrations),E(z.trialRequests),O(z.eventRegistrations),z.content&&T(z.content),L(`Dossier ${n.id} mis à jour.`)}catch(_){J(_ instanceof Error?_.message:"Enregistrement du dossier impossible.")}finally{h(!1)}}},os=(n,_)=>{E(z=>z.map(q=>q.id===n?{...q,..._,updatedAt:new Date().toISOString()}:q))},ic=async n=>{if(p){h(!0),J(null);try{const _=new Date().toISOString(),z=j.map(be=>be.id===n.id?{...n,status:"closed",archived:!0,archivedAt:_,updatedAt:_}:be),q=await Kn(p,w,z,A);S(q.registrations),E(q.trialRequests),O(q.eventRegistrations),q.content&&T(q.content),L(`Demande d'essai ${n.id} archivée.`)}catch(_){J(_ instanceof Error?_.message:"Archivage de la demande d’essai impossible.")}finally{h(!1)}}},oc=async n=>{if(p){h(!0),J(null);try{const _=new Date().toISOString(),z=j.map(be=>be.id===n.id?{...n,archived:!1,archivedAt:void 0,updatedAt:_}:be),q=await Kn(p,w,z,A);S(q.registrations),E(q.trialRequests),O(q.eventRegistrations),q.content&&T(q.content),L(`Demande d'essai ${n.id} restaurée.`)}catch(_){J(_ instanceof Error?_.message:"Restauration de la demande d’essai impossible.")}finally{h(!1)}}},cc=n=>{Nt(_=>_.includes(n)?_.filter(z=>z!==n):[..._,n])},dc=n=>{xt(_=>_.includes(n)?_.filter(z=>z!==n):[..._,n])},nn=n=>{er(_=>_.includes(n)?_.filter(z=>z!==n):[..._,n])},uc=async n=>{if(!(!p||!m)){h(!0),J(null);try{const _=F.map(q=>q.id===n.id?{...q,readAt:q.readAt?null:new Date().toISOString(),updatedAt:new Date().toISOString()}:q),z=await Mo(p,m,_);$(z.contactMessages),T(z.content),L(`Message ${n.id} mis à jour.`)}catch(_){J(_ instanceof Error?_.message:"Enregistrement du message impossible.")}finally{h(!1)}}},on=n=>{ue(n)},Ul=n=>{_e(n)},Xs=n=>
433{R(n)},mc=async n=>{try{await f2(n),L(`Archive PDF générée pour ${n.playerName}.`)}catch(_){J(_ instanceof Error?_.message:"Export PDF du dossier impossible.")}},pc=async()=>{try{await b2(Rt),L(`PDF groupé généré pour ${Rt.length} dossier(s).`)}catch(n){J(n instanceof Error?n.message:"Export PDF groupé impossible.")}},xc=async()=>{try{await g2(Rt),L(`Archive ZIP générée pour ${Rt.length} dossier(s).`)}catch(n){J(n instanceof Error?n.message:"Export ZIP des dossiers impossible.")}},hc=()=>{const n=qt.map(Ne=>({id:Ne.id,createdAt:Ne.createdAt,updatedAt:Ne.updatedAt,readStatus:Ne.readAt?"Lu":"Non lu",readAt:Ne.readAt||"",status:Ne.status,name:Ne.name,email:Ne.email,phone:Ne.phone,category:Ne.category,subject:Ne.subject,message:Ne.message,notes:Ne.notes||""})),_=Object.keys(n[0]||{id:"",createdAt:"",updatedAt:"",readStatus:"",readAt:"",status:"",name:"",email:"",phone:"",category:"",subject:"",message:"",notes:""}),z=[_.join(";"),...n.map(Ne=>_.map(St=>Uo(String(Ne[St]||""))).join(";"))],q=new Blob([z.join(`
434`)],{type:"text/csv;charset=utf-8"}),be=URL.createObjectURL(q),fe=document.createElement("a");fe.href=be,fe.download=`vace-messages-contact-${new Date().toISOString().slice(0,10)}.csv`,fe.click(),URL.revokeObjectURL(be),L("Export CSV des messages généré.")},fc=async n=>{if(p){h(!0),J(null);try{const _=j.map(q=>q.id===n.id?n:q),z=await Kn(p,w,_,A);S(z.registrations),E(z.trialRequests),O(z.eventRegistrations),z.content&&T(z.content),L(`Demande d'essai ${n.id} mise à jour.`)}catch(_){J(_ instanceof Error?_.message:"Enregistrement de la demande d’essai impossible.")}finally{h(!1)}}},bc=()=>{const n=Rt.map(Ne=>({id:Ne.id,createdAt:Ne.createdAt,updatedAt:Ne.updatedAt,status:Ne.status,playerName:Ne.playerName,category:Ne.category,birthDate:Ne.birthDate,phone:Ne.phone,email:Ne.email,isMinor:Ne.isMinor?"Oui":"Non",guardianNames:Ne.guardianNames,guardianPhone:Ne.guardianPhone,guardianEmail:Ne.guardianEmail,ffvbOrUfolepStatus:Ne.ffvbOrUfolepStatus,signedAt:Ne.signedAt,attachmentsCount:String(Ne.attachments.length),notes:Ne.notes.replaceAll(`
435`," ")})),_=Object.keys(n[0]||{id:"",createdAt:"",updatedAt:"",status:"",playerName:"",category:"",birthDate:"",phone:"",email:"",isMinor:"",guardianNames:"",guardianPhone:"",guardianEmail:"",ffvbOrUfolepStatus:"",signedAt:"",attachmentsCount:"",notes:""}),z=[_.join(";"),...n.map(Ne=>_.map(St=>Uo(String(Ne[St]||""))).join(";"))],q=new Blob([z.join(`
436`)],{type:"text/csv;charset=utf-8"}),be=URL.createObjectURL(q),fe=document.createElement("a");fe.href=be,fe.download=`vace-adhesions-${new Date().toISOString().slice(0,10)}.csv`,fe.click(),URL.revokeObjectURL(be),L("Export CSV des adhésions généré.")},gc=()=>{const n=Yt.map(Ne=>({id:Ne.id,createdAt:Ne.createdAt,updatedAt:Ne.updatedAt,status:Ne.status,playerName:Ne.playerName,category:Ne.category,discipline:Su(hs(Ne.category)),email:Ne.email,phone:Ne.phone,birthYear:Ne.birthYear,experience:Ne.experience,notes:Ne.notes.replaceAll(`
437`," ")})),_=Object.keys(n[0]||{id:"",createdAt:"",updatedAt:"",status:"",playerName:"",category:"",discipline:"",email:"",phone:"",birthYear:"",experience:"",notes:""}),z=[_.join(";"),...n.map(Ne=>_.map(St=>Uo(String(Ne[St]||""))).join(";"))],q=new Blob([z.join(`
438`)],{type:"text/csv;charset=utf-8"}),be=URL.createObjectURL(q),fe=document.createElement("a");fe.href=be,fe.download=`vace-demandes-essai-${new Date().toISOString().slice(0,10)}.csv`,fe.click(),URL.revokeObjectURL(be),L("Export CSV des demandes d’essai généré.")},vc=()=>{const n=A.map(Ne=>({id:Ne.id,createdAt:Ne.createdAt,updatedAt:Ne.updatedAt,status:Ne.status,eventId:Ne.eventId,eventTitle:Ne.eventTitle,participantName:Ne.participantName,email:Ne.email,phone:Ne.phone,birthYear:Ne.birthYear,teamOrClub:Ne.teamOrClub,participantsCount:String(Ne.participantsCount),notes:Ne.notes.replaceAll(`
439`," "),adminNotes:Ne.adminNotes.replaceAll(`
440`," "),privacyAccepted:Ne.privacyAccepted?"Oui":"Non"})),_=Object.keys(n[0]||{id:"",createdAt:"",updatedAt:"",status:"",eventId:"",eventTitle:"",participantName:"",email:"",phone:"",birthYear:"",teamOrClub:"",participantsCount:"",notes:"",adminNotes:"",privacyAccepted:""}),z=[_.join(";"),...n.map(Ne=>_.map(St=>Uo(String(Ne[St]||""))).join(";"))],q=new Blob([z.join(`
441`)],{type:"text/csv;charset=utf-8"}),be=URL.createObjectURL(q),fe=document.createElement("a");fe.href=be,fe.download=`vace-inscriptions-evenements-${new Date().toISOString().slice(0,10)}.csv`,fe.click(),URL.revokeObjectURL(be),L("Export CSV des inscriptions événement généré.")},cn=(n,_)=>{O(z=>z.map(q=>q.id===n?{...q,..._,updatedAt:new Date().toISOString()}:q))},dn=async n=>{if(p){h(!0),J(null);try{const _=A.map(q=>q.id===n.id?n:q),z=await Kn(p,w,j,_);S(z.registrations),E(z.trialRequests),O(z.eventRegistrations),z.content&&T(z.content),L(`Inscription événement ${n.id} mise à jour.`)}catch(_){J(_ instanceof Error?_.message:"Enregistrement de l’inscription événement impossible.")}finally{h(!1)}}};return!It||!m?t.jsx("div",{className:"min-h-screen bg-[radial-gradient(circle_at_top,_rgba(245,158,11,0.12),transparent_30%),linear-gradient(180deg,#020617_0%,#0f172a_100%)] px-4 py-10 text-white",children:t.jsxs("div",{className:"mx-auto max-w-xl rounded-[32px] border border-white/10 bg-slate-950/70 p-8 shadow-[0_30px_80px_rgba(2,6,23,0.45)] backdrop-blur-sm",children:[t.jsxs("button",{onClick:o,className:"inline-flex items-center gap-2 text-sm font-semibold text-slate-300 hover:text-white",children:[t.jsx(zo,{className:"h-4 w-4"}),"Retour au site"]}),t.jsxs("div",{className:"mt-8 space-y-4 text-center",children:[t.jsx("div",{className:"mx-auto flex h-16 w-16 items-center justify-center rounded-3xl border border-amber-400/30 bg-amber-400/10 text-amber-300",children:t.jsx(Va,{className:"h-8 w-8"})}),t.jsx("h1",{className:"text-3xl font-black font-display",children:"Console admin club"}),t.jsx("p",{className:"text-sm text-slate-300",children:"Gestion des événements, résultats, affiches et logos de matchs depuis une interface simple pour contributeurs non techniques."})]}),t.jsxs("form",{onSubmit:xi,className:"mt-8 space-y-4",children:[t.jsxs("label",{className:"block space-y-2 text-sm font-semibold text-slate-200",children:[t.jsx("span",{children:"Mot de passe administrateur"}),t.jsxs("div",{className:"flex items-center gap-3 rounded-2xl border border-slate-700 bg-slate-900/80 px-4 py-3",children:[t.jsx(Bo,{className:"h-4 w-4 text-amber-300"}),t.jsx("input",{type:"password",value:b,onChange:n=>k(n.target.value),className:"w-full bg-transparent text-white outline-none placeholder:text-slate-500",placeholder:"ADMIN_PASSWORD"})]})]}),t.jsx("div",{className:"rounded-2xl border border-slate-800 bg-slate-900/70 px-4 py-3 text-sm text-slate-300",children:"Utilise soit ADMIN_PASSWORD pour le niveau bureau, soit ADMIN_COM_PASSWORD pour le niveau com'."}),t.jsxs("button",{type:"submit",disabled:H||!b.trim(),className:"inline-flex w-full items-center justify-center gap-2 rounded-2xl bg-amber-400 px-4 py-3 text-sm font-black text-slate-950 transition-colors hover:bg-amber-300 disabled:cursor-not-allowed disabled:opacity-50",children:[H?t.jsx(nh,{className:"h-4 w-4 animate-spin"}):t.jsx(Va,{className:"h-4 w-4"}),"Ouvrir l'administration"]}),te&&t.jsx("p",{className:"rounded-2xl border border-rose-400/30 bg-rose-500/10 px-4 py-3 text-sm text-rose-100",children:te})]})]})}):t.jsx("div",{className:"min-h-screen bg-slate-950 px-4 py-8 text-white",children:t.jsxs("div",{className:"mx-auto max-w-6xl space-y-6",children:[t.jsxs("div",{className:"flex flex-col gap-4 roun
441ded-[32px] border border-white/10 bg-slate-900/70 p-6 shadow-[0_24px_70px_rgba(2,6,23,0.45)] lg:flex-row lg:items-center lg:justify-between",children:[t.jsxs("div",{children:[t.jsxs("button",{onClick:o,className:"inline-flex items-center gap-2 text-sm font-semibold text-slate-300 hover:text-white",children:[t.jsx(zo,{className:"h-4 w-4"}),"Retour au site"]}),t.jsx("h1",{className:"mt-3 text-3xl font-black font-display",children:"Administration contenus club"}),t.jsx("p",{className:"mt-1 text-sm text-slate-300",children:"Événements, images de sections événements, affiches et résultats des matchs."})]}),t.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[t.jsx("span",{className:`rounded-full px-3 py-1 text-xs font-bold ${y==="bureau"?"border border-emerald-400/30 bg-emerald-500/10 text-emerald-200":y==="communication"?"border border-sky-400/30 bg-sky-500/10 text-sky-200":"border border-amber-400/30 bg-amber-500/10 text-amber-200"}`,children:y==="bureau"?"Accès bureau":y==="communication"?"Accès com'":`Accès collectif${$a?` · ${$a}`:""}`}),t.jsxs("span",{className:"rounded-full border border-blue-400/30 bg-blue-500/10 px-3 py-1 text-xs font-bold text-blue-200",children:[it.eventsCount," événements"]}),t.jsxs("span",{className:"rounded-full border border-amber-400/30 bg-amber-400/10 px-3 py-1 text-xs font-bold text-amber-200",children:[it.matchesCount," matchs"]}),Aa&&t.jsxs("span",{className:"rounded-full border border-emerald-400/30 bg-emerald-500/10 px-3 py-1 text-xs font-bold text-emerald-200",children:[it.newsCount," actus"]}),t.jsxs("span",{className:"rounded-full border border-cyan-400/30 bg-cyan-500/10 px-3 py-1 text-xs font-bold text-cyan-200",children:[it.contactMessagesCount," messages"]}),Pa&&t.jsxs("span",{className:"rounded-full border border-fuchsia-400/30 bg-fuchsia-500/10 px-3 py-1 text-xs font-bold text-fuchsia-200",children:[it.registrationsCount," adhésions"]}),Pa&&t.jsxs("span",{className:"rounded-full border border-sky-400/30 bg-sky-500/10 px-3 py-1 text-xs font-bold text-sky-200",children:[it.trialRequestsCount," essais en cours"]}),Pa&&t.jsxs("span",{className:"rounded-full border border-slate-400/30 bg-slate-500/10 px-3 py-1 text-xs font-bold text-slate-200",children:[it.archivedTrialRequestsCount," archivés"]}),en&&t.jsxs("button",{onClick:sc,className:"inline-flex items-center gap-2 rounded-xl border border-slate-700 px-4 py-2 text-xs font-bold text-slate-200 hover:bg-slate-800",children:[t.jsx(Ql,{className:"h-4 w-4"}),"Exporter"]}),t.jsxs("button",{onClick:()=>{gi(),o()},className:"inline-flex items-center gap-2 rounded-xl border border-rose-400/30 bg-rose-500/10 px-4 py-2 text-xs font-bold text-rose-200 hover:bg-rose-500/20",children:[t.jsx(zo,{className:"h-4 w-4"}),"Déconnexion"]}),en&&t.jsxs("button",{onClick:()=>void lc(),disabled:H,className:"inline-flex items-center gap-2 rounded-xl border border-emerald-400/30 bg-emerald-500/10 px-4 py-2 text-xs font-bold text-emerald-200 hover:bg-emerald-500/20 disabled:cursor-not-allowed disabled:opacity-50",children:[t.jsx(xx,{className:"h-4 w-4"}),"Créer un snapshot"]}),en&&t.jsxs("label",{className:"inline-flex cursor-pointer items-center gap-2 rounded-xl border border-slate-700 px-4 py-2 text-xs font-bold text-slate-200 hover:bg-slate-800",children:[t.jsx(Ba,{className:"h-4 w-4"}),"Importer",t.jsx("input",{type:"file",accept:"application/json",className:"hidden",onChange:rc})]}),t.jsx("button",{onClick:gi,className:"rounded-xl border border-slate-700 px-4 py-2 text-xs font-bold text-slate-200 hover:bg-slate-800",children:"Se déconnecter"})]})]}),t.jsxs("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-3",children:[t.jsxs("button",{onClick:()=>c("events"),className:`rounded-2xl border p-4 text-left transition-colors ${f==="events"?tt.events.cardActive:tt.events.cardIdle}`,children:[t.jsx(Ft,{className:`h-5 w-5 ${tt.events.icon}`}),t.jsx("p",{className:"mt-3 text-sm font-black text-white",children:"Événements"}),t.jsx("p",{className:"mt-1 text-xs text-slate-400",children:"Dates, lieux, descriptifs et visuels de la section événements."})]}),t.jsxs("button",{onClick:()=>c("matches"),className:`rounded-2xl border p-4 text-left transition-colors ${f==="matches"?tt.matches.cardActive:tt.matches.cardIdle}`,children:[t.jsx(Zr,{className:`h-5 w-5 ${tt.matches.icon}`}),t.jsx("p",{className:"mt-3 text-sm font-black text-white",children:"Matchs & résultats"}),t.jsx("p",{className:"mt-1 text-xs text-slate-400",children:"Affiches, statuts, scores et logos des clubs."})]}),t.jsxs("button",{onClick:()=>c("standings"),className:`rounded-2xl border p-4 text-left transition-colors ${f==="standings"?tt.standings.cardActive:tt.standings.cardIdle}`,children:[t.jsx(Zr,{className:`h-5 w-5 ${tt.standings.icon}`}),t.jsx("p",{className:"mt-3 text-sm font-black text-white",children:"Classement"}),t.jsx("p",{className:"mt-1 text-xs text-slate-400",children:"Édition manuelle et import CSV des standings."})]}),Aa&&t.jsxs("button",{onClick:()=>c("news"),className:`rounded-2xl border p-4 text-left transition-colors ${f==="news"?tt.news.cardActive:tt.news.cardIdle}`,children:[t.jsx(gx,{className:`h-5 w-5 ${tt.news.icon}`}),t.jsx("p",{className:"mt-3 text-sm font-black text-white",children:"Bandeau de news"}),t.jsx("p",{className:"mt-1 text-xs text-slate-400",children:"Messages live du hero, rappels essais, annonces et résultats."})]}),y!=="communication"&&t.jsxs("button",{onClick:()=>c("messages"),className:`rounded-2xl border p-4 text-left transition-colors ${f==="messages"?tt.messages.cardActive:tt.messages.cardIdle}`,children:[t.jsx(vx,{className:`h-5 w-5 ${tt.messages.icon}`}),t.jsx("p",{className:"mt-3 text-sm font-black text-white",children:"Messages du club"}),t.jsx("p",{className:"mt-1 text-xs text-slate-400",children:"Inbox partagée pour tous les messages transmis depuis le formulaire contact."})]}),t.jsxs("button",{onClick:()=>c("media"),className:`rounded-2xl border p-4 text-left transition-colors ${f==="media"?tt.media.cardActive:tt.media.cardIdle}`,children:[t.jsx(Sa,{className:`h-5 w-5 ${tt.media.icon}`}),t.jsx("p",{className:"mt-3 text-sm font-black text-white",children:"Visuels du site"}),t.jsx("p",{className:"mt-1 text-xs text-slate-400",children:"Gymnases, galerie photo et portraits club & bureau."})]}),Pa&&t.jsxs("button",{onClick:()=>c("registrations"),className:`rounded-2xl border p-4 text-left transition-colors ${f==="registrations"?tt.registrations.cardActive:tt.registrations.cardIdle}`,children:[t.jsx(Jr,{className:`h-5 w-5 ${tt.registrations.icon}`}),t.jsx("p",{className:"mt-3 text-sm font-black text-white",children:"Adhésions"}),t.jsx("p",{className:"mt-1 text-xs text-slate-400",children:"Dossiers reçus, statuts, signatures et pièces jointes."})]})]}),t.jsxs("div",{className:"flex flex-wrap gap-2",children:[t.jsxs("button",{onClick:()=>c("events"),className:`rounded-xl px-4 py-2 text-sm font-bold transition-colors ${f==="events"?tt.events.pillActive:tt.events.pillIdle}`,children:[t.jsx(Ft,{className:"mr-2 inline h-4 w-4"}),"Événements"]}),t.jsxs("button",{onClick:()=>c("matches"),className:`rounded-xl px-4 py-2 text-sm font-bold transition-colors ${f==="matches"?tt.matches.pillActive:tt.matches.pillIdle}`,children:[t.jsx(Zr,{className:"mr-2 inline h-4 w-4"}),"Matchs & résultats"]}),t.jsxs("button",{onClick:()=>c("standings"),className:`rounded-xl px-4 py-2 text-sm font-bold transition-colors ${f==="standings"?tt.standings.pillActive:tt.standings.pillIdle}`,children:[t.jsx(Zr,{className:"mr-2 inline h-4 w-4"}),"Classement"]}),Aa&&t.jsxs("button",{onClick:()=>c("news"),className:`rounded-xl px-4 py-2 text-sm font-bold transition-colors ${f==="news"?tt.news.pillActive:tt.news.pillIdle}`,children:[t.jsx(gx,{className:"mr-2 inline h-4 w-4"}),"Bandeau de news"]}),y!=="communication"&&t.jsxs("button",{onClick:()=>c("messages"),className:`rounded-xl px-4 py-2 text-sm font-bold transition-colors ${f==="messages"?tt.messages.pillActive:tt.messages.pillIdle}`,children:[t.jsx(vx,{className:"mr-2 inline h-4 w-4"}),"Messages"]}),t.jsxs("button",{onClick:()=>c("media"),className:`rounded-xl px-4 py-2 text-sm font-bold transition-colors ${f==="media"?tt.media.pillActive:tt.media.pillIdle}`,children:[t.jsx(Sa,{className:"mr-2 inline h-4 w-4"}),"Visuels"]}),Pa&&t.jsxs("button",{onClick:()=>c("registrations"),className:`rounded-xl px-4 py-2 text-sm font-bold transition-colors ${f==="registrations"?tt.registrations.pillActive:tt.registrations.pillIdle}`,children:[t.jsx(Jr,{className:"mr-2 inline h-4 w-4"}),"Adhésions"]})]}),I&&t.jsx("div",{className:"rounded-2xl border border-emerald-400/30 bg-emerald-500/10 px-4 py-3 text-sm text-emerald-100",children:I}),te&&t.jsx("div",{className:"rounded-2xl border border-rose-400/30 bg-rose-500/10 px-4 py-3 text-sm text-rose-100",children:te}),f==="events"&&t.jsxs("div",{className:"grid grid-cols-1 gap-5",children:[t.jsxs("div",{className:"rounded-2xl border border-blue-400/20 bg-blue-500/10 p-4 text-sm text-slate-200",children:[t.jsx("p",{className:"font-bold text-blue-200",children:"Conseil édition événements"}),t.jsx("p",{className:"mt-1 text-slate-300",children:"Commence par le titre, la date et le lieu. Coche Mettre en avant pour les gros rendez-vous qui doivent remonter en tête de section."})]}),t.jsxs("div",{className:"rounded-[28px] border border-slate-800 bg-slate-900/70 p-5",children:[t.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-black text-white",children:"Catalogue événements"}),t.jsxs("p",{className:"mt-1 text-sm text-slate-400",children:[it.activeEventsCount," actif(s) en front • ",it.archivedEventsCount," archivé(s)"]})]}),t.jsxs("button",{type:"button",onClick:()=>void El(),disabled:H||!fs,className:"inline-flex items-center justify-center gap-2 rounded-xl bg-blue-500 px-4 py-2 text-sm font-black text-white hover:bg-blue-400 disabled:cursor-not-allowed disabled:opacity-50",children:[t.jsx(bu,{className:"h-4 w-4"}),"Créer un événement"]})]}),fs?null:t.jsx("p",{className:"mt-3 text-xs text-slate-500",children:"Création, duplication, archivage et suppression réservés au rôle bureau."})]}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"flex items-center justify-between gap-4",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"text-lg font-black text-white",children:"Événements actifs"}),t.jsx("p",{className:"mt-1 text-sm text-slate-400",children:"Ces événements restent visibles sur le site public."})]}),t.jsx("span",{className:"rounded-full border border-emerald-400/30 bg-emerald-500/10 px-3 py-1 text-xs font-bold text-emerald-200",children:rr.length})]}),rr.length>0?rr.map(n=>Tl(n)):t.jsx("div",{className:"rounded-2xl border border-slate-800 bg-slate-900/60 px-4 py-6 text-sm text-slate-400",children:"Aucun événement actif pour le moment."})]}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"flex items-center justify-between gap-4",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"text-lg font-black text-white",children:"Événements archivés"}),t.jsx("p",{className:"mt-1 text-sm text-slate-400",children:"Conservés en admin mais masqués du front tant qu'ils ne sont pas restaurés."})]}),t.jsx("span",{className:"rounded-full border border-rose-400/30 bg-rose-500/10 px-3 py-1 text-xs font-bold text-rose-200",children:nr.length})]}),nr.length>0?nr.map(n=>Tl(n)):t.jsx("div",{className:"rounded-2xl border border-slate-800 bg-slate-900/60 px-4 py-6 text-sm text-slate-400",children:"Aucun événement archivé."})]})]}),f==="matches"&&t.jsxs("div",{className:"grid grid-cols-1 gap-5",children:[t.jsxs("div",{className:"rounded-2xl border border-amber-400/20 bg-amber-400/10 p-4 text-sm text-slate-200",children:[t.jsx("p",{className:"font-bold text-amber-200",children:"Conseil édition matchs"}),t.jsx("p",{className:"mt-1 text-slate-300",children:"Utilise upcoming avant le match, live pendant, finished après. Pour le score, garde le format 3 - 1 (25-21, 22-25, 25-18, 25-20)."})]}),t.jsxs("div",{className:"rounded-[28px] border border-slate-800 bg-slate-900/70 p-5",children:[t.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between",children:[t.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:min-w-[34rem] lg:flex-1",children:[t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Recherche rapide"}),t.jsx("input",{value:xe,onChange:n=>B(n.target.value),placeholder:"Équipe, adversaire, compétition, salle...",className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Collectif"}),t.jsxs("select",{value:d,onChange:n=>U(n.target.value),disabled:xa,className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none disabled:cursor-not-allowed disabled:opacity-60",children:[t.jsx("option",{value:"all",children:"Tous les collectifs"}),Nl.map(n=>t.jsx("option",{value:n.id,children:n.label},n.id))]})]})]}),t.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-end",children:[t.jsxs("div",{className:"rounded-2xl border border-slate-700 bg-slate-950/80 px-4 py-3 text-sm text-slate-300",children:[t.jsx("p",{className:"text-[11px] font-black uppercase tracking-[0.2em] text-slate-500",children:"Matchs affichés"}),t.jsx("p",{className:"mt-1 text-2xl font-black text-white font-display",children:ts.length})]}),t.jsxs("label",{className:`inline-flex items-center justify-center gap-2 rounded-xl border px-4 py-2 text-sm font-black transition-colors ${Zt?"curs
441or-pointer border-emerald-400/30 bg-emerald-500/10 text-emerald-200 hover:bg-emerald-500/20":"cursor-not-allowed border-slate-700 bg-slate-900 text-slate-500"}`,children:[t.jsx(Ba,{className:"h-4 w-4"}),"Importer CSV",t.jsx("input",{type:"file",accept:".csv,text/csv",className:"hidden",onChange:ur,disabled:!Zt||H})]}),t.jsxs("button",{type:"button",onClick:()=>void dr(),disabled:H||!bs,className:"inline-flex items-center justify-center gap-2 rounded-xl bg-amber-400 px-4 py-2 text-sm font-black text-slate-950 hover:bg-amber-300 disabled:cursor-not-allowed disabled:opacity-50",children:[t.jsx(bu,{className:"h-4 w-4"}),"Créer un match"]})]})]}),!xa&&t.jsxs("div",{className:"mt-4 flex flex-wrap gap-2",children:[t.jsx("button",{type:"button",onClick:()=>U("all"),className:`rounded-full border px-3 py-1.5 text-xs font-bold transition-colors ${d==="all"?"border-amber-300 bg-amber-400 text-slate-950":"border-slate-700 bg-slate-950 text-slate-300 hover:border-amber-300/30 hover:text-white"}`,children:"Tous"}),Nl.map(n=>{const _=m.matches.filter(z=>z.squadId===n.id).length;return _===0?null:t.jsxs("button",{type:"button",onClick:()=>U(n.id),className:`rounded-full border px-3 py-1.5 text-xs font-bold transition-colors ${d===n.id?"border-blue-300 bg-blue-400 text-slate-950":"border-slate-700 bg-slate-950 text-slate-300 hover:border-blue-300/30 hover:text-white"}`,children:[n.label," · ",_]},n.id)})]}),xa&&$a&&t.jsxs("p",{className:"mt-4 text-xs text-amber-200",children:["Ce compte est limité au collectif ",$a,". Les autres fiches ne sont ni visibles ni modifiables."]}),!xa&&d==="all"?t.jsx("p",{className:"mt-4 text-xs text-slate-500",children:"Pour créer plus vite un match M9, M11 ou UFOLEP, sélectionne d'abord le collectif concerné."}):null,t.jsx("p",{className:"mt-3 text-xs text-slate-500",children:"L’import CSV remplace tous les matchs du collectif sélectionné. Colonnes supportées : team, opponent, date, time, location, competition, status, isHome, score, clubLogoUrl, opponentLogoUrl."})]}),ts.map(n=>t.jsxs("div",{className:"rounded-[28px] border border-slate-800 bg-slate-900/70 p-5",children:[t.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-2",children:[t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Collectif"}),t.jsx("select",{value:n.squadId,onChange:_=>ia(n.id,{squadId:_.target.value}),disabled:xa,className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none disabled:cursor-not-allowed disabled:opacity-60",children:Nl.map(_=>t.jsx("option",{value:_.id,children:_.label},_.id))})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Équipe"}),t.jsx("input",{value:n.team,onChange:_=>ia(n.id,{team:_.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Adversaire"}),t.jsx("input",{value:n.opponent,onChange:_=>ia(n.id,{opponent:_.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Date"}),t.jsx("input",{value:n.date,onChange:_=>ia(n.id,{date:_.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Heure"}),t.jsx("input",{value:n.time,onChange:_=>ia(n.id,{time:_.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm lg:col-span-2",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Lieu"}),t.jsx("input",{value:n.location,onChange:_=>ia(n.id,{location:_.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Compétition"}),t.jsx("input",{value:n.competition,onChange:_=>ia(n.id,{competition:_.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Statut"}),t.jsx("select",{value:n.status,onChange:_=>ia(n.id,{status:_.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none",children:U2.map(_=>t.jsx("option",{value:_,children:_},_))})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Score"}),t.jsx("input",{value:n.score||"",onChange:_=>ia(n.id,{score:_.target.value||void 0}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none",placeholder:"3 - 1 (25-21, 22-25...)"})]}),t.jsxs("label",{className:"flex items-center gap-3 rounded-xl border border-slate-800 bg-slate-950 px-4 py-3 text-sm",children:[t.jsx("input",{type:"checkbox",checked:n.isHome,onChange:_=>ia(n.id,{isHome:_.target.checked})}),t.jsx("span",{className:"font-semibold text-slate-300",children:"Match à domicile"})]})]}),t.jsxs("div",{className:"mt-5 grid grid-cols-1 gap-4 lg:grid-cols-2",children:[t.jsx("div",{className:"rounded-2xl border border-slate-800 bg-slate-950/60 p-4",children:t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx("div",{className:"flex h-20 w-20 items-center justify-center overflow-hidden rounded-2xl bg-white p-2",children:t.jsx("img",{src:qe.logoUrl,alt:"Logo Valence ACE",className:"h-full w-full object-contain"})}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.18em] text-slate-500",children:"Logo club"}),t.jsx("p",{className:"mt-1 max-w-sm truncate text-sm text-amber-300",children:qe.logoUrl}),t.jsx("p",{className:"mt-1 text-xs text-slate-500",children:"Appliqué automatiquement sur tous les matchs."})]})]})}),t.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-950/60 p-4",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx("div",{className:"flex h-20 w-20 items-center justify-center overflow-hidden rounded-2xl bg-white p-2",children:n.opponentLogoUrl?t.jsx("img",{src:n.opponentLogoUrl,alt:`Logo ${n.opponent}`,className:"h-full w-full object-contain"}):t.jsx(Sa,{className:"h-8 w-8 text-slate-500"})}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.18em] text-slate-500",children:"Logo adversaire"}),t.jsx("p",{className:"mt-1 max-w-sm truncate text-sm text-amber-300",children:n.opponentLogoUrl||"Aucun logo"})]})]}),t.jsxs("label",{className:"mt-4 inline-flex cursor-pointer items-center gap-2 rounded-xl bg-amber-400 px-4 py-2 text-xs font-black text-slate-950 hover:bg-amber-300",children:[t.jsx(Ba,{className:"h-4 w-4"}),"Uploader le logo adverse",t.jsx("input",{type:"file",accept:"image/*",className:"hidden",onChange:_=>rs(`matches/opponents/${I2(n.opponent)}/${n.date||"season-unknown"}`,z=>ia(n.id,{opponentLogoUrl:z}),_)})]})]})]}),t.jsx("div",{className:"mt-5 flex justify-end",children:t.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[t.jsxs("button",{type:"button",onClick:()=>fi(n),disabled:H,className:"inline-flex items-center gap-2 rounded-xl border border-rose-400/30 bg-rose-500/10 px-4 py-2 text-sm font-black text-rose-200 hover:bg-rose-500/20 disabled:cursor-not-allowed disabled:opacity-50",children:[t.jsx(Zg,{className:"h-4 w-4"}),"Supprimer le match"]}),t.jsxs("button",{onClick:()=>ls(n),disabled:H,className:"inline-flex items-center gap-2 rounded-xl bg-blue-500 px-4 py-2 text-sm font-black text-white hover:bg-blue-400 disabled:cursor-not-allowed disabled:opacity-50",children:[t.jsx(qs,{className:"h-4 w-4"}),"Enregistrer le match"]})]})})]},n.id)),ts.length===0&&t.jsxs("div",{className:"rounded-[28px] border border-slate-800 bg-slate-900/70 px-6 py-10 text-center text-slate-300",children:[t.jsx("p",{className:"text-lg font-black text-white font-display",children:"Aucun match ne correspond au filtre"}),t.jsx("p",{className:"mt-2 text-sm text-slate-400",children:"Élargis le collectif sélectionné ou vide la recherche pour retrouver l’ensemble des fiches éditables."})]})]}),f==="standings"&&t.jsxs("div",{className:"grid grid-cols-1 gap-5",children:[t.jsxs("div",{className:"rounded-2xl border border-blue-400/20 bg-blue-500/10 p-4 text-sm text-slate-200",children:[t.jsx("p",{className:"font-bold text-blue-200",children:"Conseil édition classement"}),t.jsx("p",{className:"mt-1 text-slate-300",children:"Tu peux corriger le libellé d’un collectif, la position, les points ou les lignes du tableau directement ici. L’import CSV remplace tout le classement du site."})]}),t.jsxs("div",{className:"rounded-[28px] border border-slate-800 bg-slate-900/70 p-5",children:[t.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between",children:[t.jsxs("label",{className:"space-y-2 text-sm lg:min-w-[24rem] lg:flex-1",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Recherche rapide"}),t.jsx("input",{value:re,onChange:n=>ne(n.target.value),placeholder:"Collectif, championnat, équipe...",className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-end",children:[t.jsxs("div",{className:"rounded-2xl border border-slate-700 bg-slate-950/80 px-4 py-3 text-sm text-slate-300",children:[t.jsx("p",{className:"text-[11px] font-black uppercase tracking-[0.2em] text-slate-500",children:"Collectifs affichés"}),t.jsx("p",{className:"mt-1 text-2xl font-black text-white font-display",children:an.length})]}),t.jsxs("label",{className:"inline-flex cursor-pointer items-center justify-center gap-2 rounded-xl border border-emerald-400/30 bg-emerald-500/10 px-4 py-2 text-sm font-black text-emerald-200 hover:bg-emerald-500/20",children:[t.jsx(Ba,{className:"h-4 w-4"}),"Importer CSV",t.jsx("input",{type:"file",accept:".csv,text/csv",className:"hidden",onChange:bi,disabled:H})]}),t.jsxs("button",{type:"button",onClick:()=>void Ml(),disabled:H,className:"inline-flex items-center justify-center gap-2 rounded-xl bg-blue-500 px-4 py-2 text-sm font-black text-white hover:bg-blue-400 disabled:cursor-not-allowed disabled:opacity-50",children:[t.jsx(qs,{className:"h-4 w-4"}),"Enregistrer tout"]})]})]}),t.jsx("p",{className:"mt-3 text-xs text-slate-500",children:"Colonnes CSV supportées: squadId, squadLabel, championship, rank, totalTeams, note, team, played, won, lost, points. Les lignes d’un même squadId sont regroupées dans un même collectif."})]}),t.jsxs("div",{className:"space-y-4",children:[an.map(n=>Ll(n)),an.length===0&&t.jsxs("div",{className:"rounded-[28px] border border-slate-800 bg-slate-900/70 px-6 py-10 text-center text-slate-300",children:[t.jsx("p",{className:"text-lg font-black text-white font-display",children:"Aucun classement ne correspond au filtre"}),t.jsx("p",{className:"mt-2 text-sm text-slate-400",children:"Vide la recherche ou importe un CSV pour retrouver les standings du club."})]})]})]}),f==="news"&&t.jsxs("div",{className:"grid grid-cols-1 gap-5",children:[t.jsxs("div",{className:"rounded-2xl border border-emerald-400/20 bg-emerald-500/10 p-4 text-sm text-slate-200",children:[t.jsx("p",{className:"font-bold text-emerald-200",children:"Conseil édition actualités"}),t.jsx("p",{className:"mt-1 text-slate-300",children:"Le titre s'affiche dans le bandeau live. Il sert surtout de repère dans la fiche détaillée. Garder des badges courts."})]}),m.news.map(n=>t.jsxs("div",{className:"rounded-[28px] border border-slate-800 bg-slate-900/70 p-5",children:[t.jsxs("div",{className:"mb-4 flex flex-wrap items-center gap-2",children:[t.jsx("span",{className:"rounded-full border border-slate-700 bg-slate-950 px-3 py-1 text-[11px] font-bold uppercase text-slate-300",children:n.id}),t.jsx("span",{className:"rounded-full border border-emerald-400/20 bg-emerald-500/10 px-3 py-1 text-[11px] font-bold uppercase text-emerald-200",children:n.type}),n.status&&t.jsx("span",{className:"rounded-full border border-amber-400/20 bg-amber-400/10 px-3 py-1 text-[11px] font-bold uppercase text-amber-200",children:n.status})]}),t.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-2",children:[t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Titre interne"}),t.jsx("input",{value:n.title,onChange:_=>Vt(n.id,{title:_.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Headline visible"}),t.jsx("input",{value:n.headline,onChange:_=>Vt(n.id,{headline:_.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Type"}
441),t.jsx("select",{value:n.type,onChange:_=>Vt(n.id,{type:_.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none",children:z2.map(_=>t.jsx("option",{value:_,children:_},_))})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Statut"}),t.jsx("select",{value:n.status||"upcoming",onChange:_=>Vt(n.id,{status:_.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none",children:R2.map(_=>t.jsx("option",{value:_,children:_},_))})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Date"}),t.jsx("input",{value:n.date,onChange:_=>Vt(n.id,{date:_.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Heure ou complément"}),t.jsx("input",{value:n.time||"",onChange:_=>Vt(n.id,{time:_.target.value||void 0}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm lg:col-span-2",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Lieu"}),t.jsx("input",{value:n.location,onChange:_=>Vt(n.id,{location:_.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm lg:col-span-2",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Détails"}),t.jsx("textarea",{value:n.details||"",onChange:_=>Vt(n.id,{details:_.target.value||void 0}),rows:3,className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Badge"}),t.jsx("input",{value:n.badge,onChange:_=>Vt(n.id,{badge:_.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Style badge"}),t.jsx("input",{value:n.badgeColor,onChange:_=>Vt(n.id,{badgeColor:_.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsx("div",{className:"lg:col-span-2 flex flex-wrap gap-2",children:B2.map(_=>t.jsx("button",{type:"button",onClick:()=>Vt(n.id,{badgeColor:_}),className:"rounded-full border border-slate-700 bg-slate-950 px-3 py-1 text-[11px] font-bold text-slate-200 hover:border-amber-400/40 hover:text-white",children:"Appliquer un preset"},`${n.id}-${_}`))}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Texte bouton"}),t.jsx("input",{value:n.ctaText||"",onChange:_=>Vt(n.id,{ctaText:_.target.value||void 0}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Action bouton"}),t.jsx("input",{value:n.ctaAction||"",onChange:_=>Vt(n.id,{ctaAction:_.target.value||void 0}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none",placeholder:"trial, zammit, seniors-prenat..."})]})]}),t.jsxs("div",{className:"mt-5 rounded-2xl border border-slate-800 bg-slate-950/60 p-4 text-sm text-slate-300",children:[t.jsx("p",{className:"font-bold text-white",children:"Aperçu éditeur"}),t.jsx("p",{className:"mt-2 text-amber-300",children:n.badge}),t.jsx("p",{className:"mt-1 text-lg font-black text-white",children:n.headline}),t.jsxs("p",{className:"mt-1 text-slate-400",children:[n.date,n.time?` • ${n.time}`:""]}),n.details&&t.jsx("p",{className:"mt-2 text-slate-300",children:n.details}),t.jsxs("div",{className:"mt-3 flex items-center gap-2 text-xs text-emerald-300",children:[t.jsx(Ca,{className:"h-4 w-4"}),"Utilise cette carte pour vérifier que le message reste court et lisible."]})]}),t.jsx("div",{className:"mt-5 flex justify-end",children:t.jsxs("button",{onClick:()=>Xt(n),disabled:H,className:"inline-flex items-center gap-2 rounded-xl bg-blue-500 px-4 py-2 text-sm font-black text-white hover:bg-blue-400 disabled:cursor-not-allowed disabled:opacity-50",children:[t.jsx(qs,{className:"h-4 w-4"}),"Enregistrer l'actualité"]})})]},n.id))]}),f==="media"&&t.jsxs("div",{className:"grid grid-cols-1 gap-5",children:[t.jsxs("div",{className:"rounded-2xl border border-fuchsia-400/20 bg-fuchsia-500/10 p-4 text-sm text-slate-200",children:[t.jsx("p",{className:"font-bold text-fuchsia-200",children:"Comportement des visuels"}),t.jsx("p",{className:"mt-1 text-slate-300",children:"Chaque upload crée une URL persistée qui surcharge l’URL hardcodée du projet au rendu. Le visuel source reste dans le code comme fallback tant que l’override existe ou après suppression."})]}),t.jsxs("details",{open:!0,className:`space-y-4 rounded-[28px] border bg-slate-900/70 p-5 transition-colors ${di?"border-amber-300/60 bg-amber-400/10":"border-slate-800"}`,onDragOver:n=>{n.preventDefault(),Ea(!0)},onDragLeave:()=>Ea(!1),onDrop:n=>
441{pr("logos/clubs",We.matchClubLogo(),"logo club global",n)},children:[t.jsx("summary",{className:"list-none cursor-pointer",children:t.jsxs("div",{className:"flex items-start justify-between gap-3",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"text-lg font-black text-white",children:"Logo club global"}),t.jsx("p",{className:"mt-1 text-sm text-slate-400",children:"Dépose ici un nouveau logo Valence ACE. Il s’appliquera à tous les matchs sans toucher aux fiches une par une."})]}),t.jsx("span",{className:"rounded-full border border-slate-700 bg-slate-950 px-3 py-1 text-xs font-bold text-slate-200",children:"Déplier"})]})}),t.jsxs("div",{className:"flex gap-2",children:[t.jsxs("label",{className:"inline-flex cursor-pointer items-center gap-2 rounded-xl bg-amber-400 px-4 py-2 text-xs font-black text-slate-950 hover:bg-amber-300",children:[t.jsx(Ba,{className:"h-4 w-4"}),"Importer",t.jsx("input",{type:"file",accept:"image/*",className:"hidden",onChange:n=>ha("logos/clubs",We.matchClubLogo(),"logo club global",n)})]}),t.jsx("button",{type:"button",onClick:()=>ns(We.matchClubLogo(),"logo club global"),disabled:!V[We.matchClubLogo()]||H,className:"rounded-xl border border-slate-700 px-4 py-2 text-xs font-bold text-slate-200 hover:bg-slate-800 disabled:cursor-not-allowed disabled:opacity-50",children:"Revenir au défaut"})]}),t.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-[160px_minmax(0,1fr)] lg:items-center",children:[t.jsx("div",{className:"flex h-32 items-center justify-center overflow-hidden rounded-2xl border border-slate-800 bg-white p-4",children:t.jsx("img",{src:Jt(We.matchClubLogo(),qe.logoUrl),alt:"Logo Valence ACE",className:"h-full w-full object-contain",referrerPolicy:"no-referrer"})}),t.jsxs("div",{className:"space-y-3 rounded-2xl border border-dashed border-slate-700 bg-slate-950/60 p-4 text-sm text-slate-300",children:[t.jsx("p",{className:"font-bold text-white",children:"Zone de dépôt"}),t.jsx("p",{children:"Glisse un fichier image ici ou utilise le bouton Importer. Le fichier est stocké côté console, puis appliqué comme logo commun pour tous les matchs."}),t.jsxs("p",{className:"text-xs text-slate-500",children:["Chemin actuel: ",Jt(We.matchClubLogo(),qe.logoUrl)]}),t.jsx("p",{className:"text-xs text-amber-300",children:V[We.matchClubLogo()]?"Override actif":"Logo par défaut du projet"})]})]})]}),t.jsxs("details",{open:!0,className:"space-y-4 rounded-[28px] border border-slate-800 bg-slate-900/70 p-5",children:[t.jsx("summary",{className:"list-none cursor-pointer",children:t.jsxs("div",{className:"flex items-start justify-between gap-3",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"text-lg font-black text-white",children:"Hero de l’accueil"}),t.jsx("p",{className:"mt-1 text-sm text-slate-400",children:"Texte principal éditable du bandeau d’accueil. Les changements sont sauvegardés dans le contenu du site."})]}),t.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full border border-slate-700 bg-slate-950 px-3 py-1 text-xs font-bold text-slate-200",children:[t.jsx(ku,{className:"h-3.5 w-3.5"}),"Réduire"]})]})}),(()=>{var be;const n=Hx(m.hero),_=((be=n.mediaUrl)==null?void 0:be.trim())||"",z=n.mediaMode==="live"||n.mediaMode==="video",q=!z||!!_;return t.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-2",children:[t.jsxs("div",{className:"lg:col-span-2 flex flex-col gap-3 rounded-2xl border border-slate-800 bg-slate-950/60 p-4 sm:flex-row sm:items-center sm:justify-between",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-black text-white",children:"Enregistrement du hero"}),t.jsx("p",{className:`mt-1 text-xs ${q?"text-emerald-300":"text-amber-300"}`,children:q?z?"Le mode média est prêt à être enregistré.":"Le hero peut être enregistré.":"URL YouTube requise pour enregistrer un mode live ou vidéo."})]}),t.jsxs("button",{type:"button",onClick:()=>void rn(),disabled:H||!q,className:"inline-flex items-center gap-2 rounded-xl bg-blue-500 px-4 py-2 text-sm font-black text-white hover:bg-blue-400 disabled:cursor-not-allowed disabled:opacity-50",children:[t.jsx(qs,{className:"h-4 w-4"}),"Enregistrer le hero"]})]}),t.jsxs("label",{className:"space-y-2 text-sm lg:col-span-2",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Badge haut de page"}),t.jsx("input",{value:n.badgeText,onChange:fe=>wt({badgeText:fe.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Début du titre"}),t.jsx("input",{value:n.headlinePrefix,onChange:fe=>wt({headlinePrefix:fe.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Accent du titre"}),t.jsx("input",{value:n.headlineAccent,onChange:fe=>wt({headlineAccent:fe.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm lg:col-span-2",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Fin du titre"}),t.jsx("input",{value:n.headlineSuffix,onChange:fe=>wt({headlineSuffix:fe.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm lg:col-span-2",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Sous-titre"}),t.jsx("textarea",{value:n.subtitle,onChange:fe=>wt({subtitle:fe.target.value}),rows:4,className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Bouton principal"}),t.jsx("input",{value:n.primaryCtaLabel,onChange:fe=>wt({primaryCtaLabel:fe.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Bouton planning"}),t.jsx("input",{value:n.secondaryCtaLabel,onChange:fe=>wt({secondaryCtaLabel:fe.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm lg:col-span-2",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Bouton galerie"}),t.jsx("input",{value:n.galleryCtaLabel,onChange:fe=>wt({galleryCtaLabel:fe.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("div",{className:"lg:col-span-2 rounded-2xl border border-slate-800 bg-slate-950/60 p-4",children:[t.jsxs("div",{className:"flex flex-col gap-1 sm:flex-row sm:items-center sm:justify-between",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-black text-white",children:"Média live / vidéo"}),t.jsx("p",{className:"mt-1 text-xs text-slate-500",children:"Colle un lien YouTube ou YouTube Live. Si le champ reste vide, le hero garde son mode photo."})]}),t.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t.jsxs("button",{type:"button",onClick:()=>kl("live"),className:"inline-flex items-center gap-2 rounded-full border border-rose-400/30 bg-rose-500/10 px-3 py-1 text-[11px] font-black uppercase tracking-[0.16em] text-rose-200 transition-colors hover:bg-rose-500/20",children:[t.jsx(Au,{className:"h-3.5 w-3.5"}),"Activer le stream"]}),t.jsxs("button",{type:"button",onClick:()=>kl("video"),className:"inline-flex items-center gap-2 rounded-full border border-amber-400/30 bg-amber-500/10 px-3 py-1 text-[11px] font-black uppercase tracking-[0.16em] text-amber-200 transition-colors hover:bg-amber-500/20",children:[t.jsx(Du,{className:"h-3.5 w-3.5"}),"Vidéo replays"]}),t.jsxs("button",{type:"button",onClick:()=>kl("photo"),className:"inline-flex items-center gap-2 rounded-full border border-slate-700 bg-slate-900 px-3 py-1 text-[11px] font-black uppercase tracking-[0.16em] text-slate-200 transition-colors hover:bg-slate-800",children:[t.jsx(si,{className:"h-3.5 w-3.5"}),"Mode photo"]}),t.jsx("span",{className:`inline-flex items-center rounded-full px-3 py-1 text-[11px] font-black uppercase tracking-[0.16em] ${n.mediaMode==="live"?"border border-rose-400/30 bg-rose-500/10 text-rose-200":n.mediaMode==="video"?"border border-amber-400/30 bg-amber-500/10 text-amber-200":"border border-slate-700 bg-slate-900 text-slate-300"}`,children:n.mediaMode==="live"?"Mode live":n.mediaMode==="video"?"Mode vidéo":"Mode photo"}),t.jsx("span",{className:`inline-flex items-center rounded-full px-3 py-1 text-[11px] font-black uppercase tracking-[0.16em] ${q?"border border-emerald-400/30 bg-emerald-500/10 text-emerald-200":"border border-amber-400/30 bg-amber-500/10 text-amber-200"}`,children:q?"Stream prêt":"URL requise"})]})]}),t.jsxs("div",{className:"mt-4 grid grid-cols-1 gap-4 lg:grid-cols-2",children:[t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Mode d’affichage"}),t.jsxs("select",{value:n.mediaMode||"photo",onChange:fe=>wt({mediaMode:fe.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none",children:[t.jsx("option",{value:"photo",children:"Photo"}),t.jsx("option",{value:"video",children:"Vidéo"}),t.jsx("option",{value:"live",children:"Live"})]})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Lien YouTube / Live"}),t.jsx("input",{value:n.mediaUrl||"",onChange:fe=>wt({mediaUrl:fe.target.value}),placeholder:"https://www.youtube.com/watch?v=...",className:`w-full rounded-xl border bg-slate-950 px-3 py-2 outline-none ${q?"border-slate-700":"border-amber-400/50 ring-1 ring-amber-400/20"}`}),!q&&t.jsx("p",{className:"text-[11px] font-semibold text-amber-300",children:"Renseigne une URL YouTube pour rendre le mode actif."})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Titre média"}),t.jsx("input",{value:n.mediaTitle||"",onChange:fe=>wt({mediaTitle:fe.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Accroche média"}),t.jsx("input",{value:n.mediaDescription||"",onChange:fe=>wt({mediaDescription:fe.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Visuel de repli"}),t.jsx("input",{value:n.mediaPosterUrl||"",onChange:fe=>wt({mediaPosterUrl:fe.target.value}),placeholder:"Optionnel, sinon l'image hero reste affichée",className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Bouton d’agrandissement"}),t.jsx("input",{value:n.mediaExpandLabel||"",onChange:fe=>wt({mediaExpandLabel:fe.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]})]})]}),t.jsxs("div",{className:"lg:col-span-2 rounded-2xl border border-slate-800 bg-slate-950/60 p-4 text-sm text-slate-300",children:[t.jsx("p",{className:"font-bold text-white",children:"Aperçu rapide"}),t.jsx("p",{className:"mt-2 text-amber-300",children:n.badgeText}),t.jsxs("p",{className:"mt-1 text-lg font-black text-white",children:[n.headlinePrefix," ",t.jsx("span",{className:"text-amber-300",children:n.headlineAccent})," ",n.headlineSuffix]}),t.jsx("p",{className:"mt-2 text-slate-400",children:n.subtitle})]})]})})()]}),t.jsxs("details",{className:"space-y-4 rounded-[28px] border border-slate-800 bg-slate-900/70 p-5",children:[t.jsx("summary",{className:"list-none cursor-pointer",children:t.jsxs("div",{className:"flex items-start justify-between gap-3",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"text-lg font-black text-white",children:"Accueil"}),t.jsx("p",{className:"mt-1 text-sm text-slate-400",children:"Image principale du hero, utilisée comme visuel dominant de la page d’accueil."})]}),t.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full border border-slate-700 bg-slate-950 px-3 py-1 text-xs font-bold text-slate-200",children:[t.jsx(Ut,{className:"h-3.5 w-3.5"}),"Cliquer pour ouvrir"]})]})}),(()=>{const n=We.hero,_=Jt(n,qe.heroImage),z=!!V[n];return t.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-950/60 p-4",children:[t.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-center",children:[t.jsx("div",{className:"flex h-28 w-full max-w-[18rem] items-center justify-center overflow-hidden rounded-2xl bg-slate-900",children:_?t.jsx("img",{src:_,alt:"Hero du site",className:"h-full w-full object-cover",style:{objectPosition:js(n,qe.heroImage)}}):t.jsx(Sa,{className:"h-8 w-8 text-slate-500"})}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("p",{className:"text-sm font-black text-white",children:"Image hero"}),t.jsx("p",{className:"mt-1 truncate text-sm text-amber-300",children:_||"Aucune image"}),t.jsx("p",{className:"mt-1 text-xs text-slate-500",children:z?"Override actif":"Image par défaut du projet"})]})]}),t.jsxs("div",{className:"mt-4 flex flex-wrap gap-2",children:[t.jsxs("label",{className:"inline-flex cursor-pointer items-center gap-2 rounded-xl bg-amber-400 px-4 py-2 text-xs font-black text-slate-950 hover:bg-amber-300",children:[t.jsx(Ba,{className:"h-4 w-4"}),"Uploader",t.jsx("input",{type:"file",accept:"image/*",className:"hidden",onChange:q=>ha("hero",n,"image hero",q)})]}),is(n,"image hero",qe.heroImage),t.jsx("button",{type:"button",onClick:()=>ns(n,"image hero"),disabled:!z||H,className:"rounded-xl border border-slate-700 px-4 py-2 text-xs font-bold text-slate-200 hover:bg-slate-800 disabled:cursor-not-allowed disabled:opacity-50",children:"Revenir au défaut"})]})]})})()]}),t.jsxs("details",{className:"space-y-4 rounded-[28px] border border-slate-800 bg-slate-900/70 p-5",children:[t.jsx("summary",{className:"list-none cursor-pointer",children:t.jsxs("div",{className:"flex items-start justify-between gap-3",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"text-lg font-black text-white",children:"Photos d'équipes"}),t.jsx("p",{className:"mt-1 text-sm text-slate-400",children:"Visuels des collectifs et équipes affichés dans la section équipes."})]}),t.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full border border-slate-700 bg-slate-950 px-3 py-1 text-xs font-bold text-slate-200",children:[t.jsx(Ut,{className:"h-3.5 w-3.5"}),"Cliquer pour ouvrir"]})]})}),t.jsx("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-2",children:Ir.map(n=>{const _=We.team(n.id),z=Jt(_,n.imageUrl),q=!!V[_];return t.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-950/60 p-4",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx("div",{className:"flex h-24 w-36 items-center justify-center overflow-hidden rounded-2xl bg-slate-900",children:z?t.jsx("img",{src:z,alt:n.name,className:"h-full w-full object-cover",style:{objectPosition:js(_,n.imageUrl)}}):t.jsx(Sa,{className:"h-8 w-8 text-slate-500"})}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("p",{className:"text-sm font-black text-white",children:n.name}),t.jsx("p",{className:"mt-1 text-xs uppercase tracking-[0.18em] text-slate-500",children:n.category}),t.jsx("p",{className:"mt-1 truncate text-sm text-amber-300",children:z||"Aucune image"}),t.jsx("p",{className:"mt-1 text-xs text-slate-500",children:q?"Override actif":"Image par défaut du projet"})]})]}),t.jsxs("div",{className:"mt-4 flex flex-wrap gap-2",children:[t.jsxs("label",{className:"inline-flex cursor-pointer items-center gap-2 rounded-xl bg-amber-400 px-4 py-2 text-xs font-black text-slate-950 hover:bg-amber-300",children:[t.jsx(
441Ba,{className:"h-4 w-4"}),"Uploader",t.jsx("input",{type:"file",accept:"image/*",className:"hidden",onChange:be=>ha(`teams/${n.id}`,_,n.name,be)})]}),is(_,n.name,n.imageUrl),t.jsx("button",{type:"button",onClick:()=>ns(_,n.name),disabled:!q||H,className:"rounded-xl border border-slate-700 px-4 py-2 text-xs font-bold text-slate-200 hover:bg-slate-800 disabled:cursor-not-allowed disabled:opacity-50",children:"Revenir au défaut"})]})]},n.id)})})]}),t.jsxs("details",{className:"space-y-4 rounded-[28px] border border-slate-800 bg-slate-900/70 p-5",children:[t.jsx("summary",{className:"list-none cursor-pointer",children:t.jsxs("div",{className:"flex items-start justify-between gap-3",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"text-lg font-black text-white",children:"Gymnases"}),t.jsx("p",{className:"mt-1 text-sm text-slate-400",children:"Mettez à jour les photos de salle sans toucher aux données statiques, et choisissez ceux à afficher en front."})]}),t.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full border border-slate-700 bg-slate-950 px-3 py-1 text-xs font-bold text-slate-200",children:[t.jsx(Ut,{className:"h-3.5 w-3.5"}),"Cliquer pour ouvrir"]})]})}),t.jsx("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-2",children:Vs.map(n=>{const _=We.gym(n.id),z=Jt(_,n.imageUrl),q=!!V[_],fe=(Array.isArray(m==null?void 0:m.displayedGymIds)&&m.displayedGymIds.length>0?m.displayedGymIds:Vs.map(Ne=>Ne.id)).includes(n.id);return t.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-950/60 p-4",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx("div",{className:"flex h-24 w-36 items-center justify-center overflow-hidden rounded-2xl bg-slate-900",children:z?t.jsx("img",{src:z,alt:n.name,className:"h-full w-full object-cover",style:{objectPosition:js(_,n.imageUrl)}}):t.jsx(Sa,{className:"h-8 w-8 text-slate-500"})}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("p",{className:"text-sm font-black text-white",children:n.name}),t.jsx("p",{className:"mt-1 text-xs uppercase tracking-[0.18em] text-slate-500",children:fe?"Affiché en front":"Masqué en front"}),t.jsx("p",{className:"mt-1 truncate text-sm text-amber-300",children:z||"Aucune image"}),t.jsx("p",{className:"mt-1 text-xs text-slate-500",children:q?"Override actif":"Image par défaut du projet"})]})]}),t.jsxs("label",{className:`mt-4 flex items-center justify-between gap-3 rounded-2xl border px-4 py-3 text-sm ${fe?"border-emerald-400/30 bg-emerald-500/10 text-emerald-100":"border-slate-800 bg-slate-900/70 text-slate-300"}`,children:[t.jsxs("div",{children:[t.jsx("p",{className:"font-black",children:"Afficher dans la section Gymnases"}),t.jsx("p",{className:"mt-1 text-xs text-slate-400",children:"Commande front pilotée depuis l'admin bureau."})]}),t.jsx("input",{type:"checkbox",checked:fe,disabled:H||y!=="bureau",onChange:()=>void Ys(n.id),className:"h-4 w-4 rounded border-slate-600 bg-slate-950 text-emerald-400 focus:ring-emerald-400 disabled:cursor-not-allowed disabled:opacity-50"})]}),t.jsxs("div",{className:"mt-4 flex flex-wrap gap-2",children:[t.jsxs("label",{className:"inline-flex cursor-pointer items-center gap-2 rounded-xl bg-amber-400 px-4 py-2 text-xs font-black text-slate-950 hover:bg-amber-300",children:[t.jsx(Ba,{className:"h-4 w-4"}),"Uploader",t.jsx("input",{type:"file",accept:"image/*",className:"hidden",onChange:Ne=>ha(`gyms/${n.id}`,_,n.name,Ne)})]}),is(_,n.name,n.imageUrl),t.jsx("button",{type:"button",onClick:()=>ns(_,n.name),disabled:!q||H,className:"rounded-xl border border-slate-700 px-4 py-2 text-xs font-bold text-slate-200 hover:bg-slate-800 disabled:cursor-not-allowed disabled:opacity-50",children:"Revenir au défaut"})]})]},n.id)})})]}),t.jsxs("details",{className:"space-y-4 rounded-[28px] border border-slate-800 bg-slate-900/70 p-5",children:[t.jsx("summary",{className:"list-none cursor-pointer",children:t.jsxs("div",{className:"flex items-start justify-between gap-3",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"text-lg font-black text-white",children:"Le club & bureau"}),t.jsx("p",{className:"mt-1 text-sm text-slate-400",children:"Portraits du bureau affichés sur le site."})]}),t.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full border border-slate-700 bg-slate-950 px-3 py-1 text-xs font-bold text-slate-200",children:[t.jsx(Ut,{className:"h-3.5 w-3.5"}),"Cliquer pour ouvrir"]})]})}),t.jsx("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-2",children:Cu.map(n=>{const _=We.staff(n.name),z=Jt(_,n.imageUrl),q=!!V[_];return t.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-950/60 p-4",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx("div",{className:"flex h-24 w-24 items-center justify-center overflow-hidden rounded-2xl bg-slate-900",children:z?t.jsx("img",{src:z,alt:n.name,className:"h-full w-full object-cover",style:{objectPosition:js(_,n.imageUrl)}}):t.jsx(Sa,{className:"h-8 w-8 text-slate-500"})}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("p",{className:"text-sm font-black text-white",children:n.name}),t.jsx("p",{className:"mt-1 text-sm text-slate-300",children:n.role}),t.jsx("p",{className:"mt-1 truncate text-sm text-amber-300",children:z||"Aucune image"}),t.jsx("p",{className:"mt-1 text-xs text-slate-500",children:q?"Override actif":"Image par défaut du projet"})]})]}),is(_,n.name,n.imageUrl),t.jsxs("div",{className:"mt-4 flex flex-wrap gap-2",children:[t.jsxs("label",{className:"inline-flex cursor-pointer items-center gap-2 rounded-xl bg-amber-400 px-4 py-2 text-xs font-black text-slate-950 hover:bg-amber-300",children:[t.jsx(Ba,{className:"h-4 w-4"}),"Uploader",t.jsx("input",{type:"file",accept:"image/*",className:"hidden",onChange:be=>ha(`staff/${mi(n.name)}`,_,n.name,be)})]}),t.jsx("button",{type:"button",onClick:()=>ns(_,n.name),disabled:!q||H,className:"rounded-xl border border-slate-700 px-4 py-2 text-xs font-bold text-slate-200 hover:bg-slate-800 disabled:cursor-not-allowed disabled:opacity-50",children:"Revenir au défaut"})]})]},n.name)})})]}),t.jsxs("details",{className:"space-y-4 rounded-[28px] border border-slate-800 bg-slate-900/70 p-5",children:[t.jsx("summary",{className:"list-none cursor-pointer",children:t.jsxs("div",{className:"flex items-start justify-between gap-3",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"text-lg font-black text-white",children:"Événements"}),t.jsx("p",{className:"mt-1 text-sm text-slate-400",children:"Visuels des tournois, stages et temps forts du club."})]}),t.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full border border-slate-700 bg-slate-950 px-3 py-1 text-xs font-bold text-slate-200",children:[t.jsx(Ut,{className:"h-3.5 w-3.5"}),"Cliquer pour ouvrir"]})]})}),t.jsx("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-2",children:m==null?void 0:m.events.map(n=>{const _=We.event(n.id),z=Jt(_,n.imageUrl),q=!!V[_];return t.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-950/60 p-4",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx("div",{className:"flex h-24 w-36 items-center justify-center overflow-hidden rounded-2xl bg-slate-900",children:z?t.jsx("img",{src:z,alt:n.title,className:"h-full w-full object-cover",style:{objectPosition:js(_,n.imageUrl)}}):t.jsx(Sa,{className:"h-8 w-8 text-slate-500"})}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("p",{className:"text-sm font-black text-white",children:n.title}),t.jsx("p",{className:"mt-1 text-xs uppercase tracking-[0.18em] text-slate-500",children:n.category}),t.jsx("p",{className:"mt-1 truncate text-sm text-amber-300",children:z||"Aucune image"}),t.jsx("p",{className:"mt-1 text-xs text-slate-500",children:q?"Override actif":"Image par défaut du projet"})]})]}),is(_,n.title,n.imageUrl),t.jsxs("div",{className:"mt-4 flex flex-wrap gap-2",children:[t.jsxs("label",{className:"inline-flex cursor-pointer items-center gap-2 rounded-xl bg-amber-400 px-4 py-2 text-xs font-black text-slate-950 hover:bg-amber-300",children:[t.jsx(Ba,{className:"h-4 w-4"}),"Uploader",t.jsx("input",{type:"file",accept:"image/*",className:"hidden",onChange:be=>ha(`events/${n.id}`,_,n.title,be)})]}),t.jsx("button",{type:"button",onClick:()=>ns(_,n.title),disabled:!q||H,className:"rounded-xl border border-slate-700 px-4 py-2 text-xs font-bold text-slate-200 hover:bg-slate-800 disabled:cursor-not-allowed disabled:opacity-50",children:"Revenir au défaut"})]})]},n.id)})})]}),t.jsxs("details",{className:"space-y-4 rounded-[28px] border border-slate-800 bg-slate-900/70 p-5",children:[t.jsx("summary",{className:"list-none cursor-pointer",children:t.jsxs("div",{className:"flex items-start justify-between gap-3",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"text-lg font-black text-white",children:"Galerie photo"}),t.jsx("p",{className:"mt-1 text-sm text-slate-400",children:"Chaque photo uploadée remplace visuellement le visuel statique correspondant, sans l’effacer du code."})]}),t.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full border border-slate-700 bg-slate-950 px-3 py-1 text-xs font-bold text-slate-200",children:[t.jsx(Ut,{className:"h-3.5 w-3.5"}),"Cliquer pour ouvrir"]})]})}),t.jsx("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-2",children:Do.map(n=>{const _=We.gallery(n.id),z=Jt(_,n.imageUrl),q=!!V[_];return t.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-950/60 p-4",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx("div",{className:"flex h-24 w-36 items-center justify-center overflow-hidden rounded-2xl bg-slate-900",children:z?t.jsx("img",{src:z,alt:n.title,className:"h-full w-full object-cover",style:{objectPosition:js(_,n.imageUrl)}}):t.jsx(Sa,{className:"h-8 w-8 text-slate-500"})}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("p",{className:"text-sm font-black text-white",children:n.title}),t.jsx("p",{className:"mt-1 text-xs uppercase tracking-[0.18em] text-slate-500",children:n.category}),t.jsx("p",{className:"mt-1 truncate text-sm text-amber-300",children:z||"Aucune image"}),t.jsx("p",{className:"mt-1 text-xs text-slate-500",children:q?"Override actif":"Image par défaut du projet"})]})]}),t.jsxs("div",{className:"mt-4 flex flex-wrap gap-2",children:[t.jsxs("label",{className:"inline-flex cursor-pointer items-center gap-2 rounded-xl bg-amber-400 px-4 py-2 text-xs font-black text-slate-950 hover:bg-amber-300",children:[t.jsx(Ba,{className:"h-4 w-4"}),"Uploader",t.jsx("input",{type:"file",accept:"image/*",className:"hidden",onChange:be=>ha(`gallery/${n.id}`,_,n.title,be)})]}),is(_,n.title,n.imageUrl),t.jsx("button",{type:"button",onClick:()=>ns(_,n.title),disabled:!q||H,className:"rounded-xl border border-slate-700 px-4 py-2 text-xs font-bold text-slate-200 hover:bg-slate-800 disabled:cursor-not-allowed disabled:opacity-50",children:"Revenir au défaut"})]})]},n.id)})})]})]}),f==="messages"&&t.jsxs("div",{className:"grid grid-cols-1 gap-5",children:[t.jsxs("div",{className:"rounded-2xl border border-cyan-400/20 bg-cyan-500/10 p-4 text-sm text-slate-200",children:[t.jsx("p",{className:"font-bold text-cyan-200",children:"Inbox admin des messages club"}),t.jsx("p",{className:"mt-1 text-slate-300",children:"Les messages envoyés depuis le formulaire contact arrivent ici pour tous les admins connectés. La réponse peut ensuite partir depuis le mail officiel de l’admin concerné."})]}),t.jsxs("div",{className:"rounded-[28px] border border-cyan-400/25 bg-cyan-500/[0.06] p-5 shadow-[0_18px_40px_rgba(34,211,238,0.08)]",children:[t.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-black text-white",children:"Messages reçus"}),t.jsx("p",{className:"mt-1 text-sm text-slate-400",children:"Filtre par nom, email, sujet, catégorie ou contenu du message."})]}),t.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t.jsxs("span",{className:"rounded-full border border-cyan-400/30 bg-cyan-500/10 px-3 py-1 text-xs font-bold text-cyan-200",children:[qt.length," message(s)"]}),t.jsxs("span",{className:"rounded-full border border-slate-700 bg-slate-900 px-3 py-1 text-xs font-bold text-slate-200",children:[it.unreadContactMessagesCount," non lu(s)"]}),t.jsxs("button",{type:"button",onClick:hc,disabled:qt.length===0,className:"inline-flex items-center justify-center gap-2 rounded-xl border border-cyan-400/30 bg-cyan-500/10 px-4 py-2 text-xs font-bold text-cyan-200 hover:bg-cyan-500/20 disabled:cursor-not-allowed disabled:opacity-50",children:[t.jsx(Ql,{className:"h-4 w-4"}),"Export CSV"]})]})]}),t.jsxs("div",{className:"mt-4 grid grid-cols-1 gap-3 lg:grid-cols-[minmax(0,1fr)_220px]",children:[t.jsxs("label",{className:"flex items-center gap-3 rounded-2xl border border-slate-700 bg-slate-950/80 px-4 py-3 text-sm text-slate-200",children:[t.jsx(jx,{className:"h-4 w-4 text-cyan-300"}),t.jsx("input",{value:X,onChange:n=>le(n.target.value),placeholder:"Rechercher un message...",className:"w-full bg-transparent outline-none placeholder:text-slate-500"})]}),t.jsxs("label",{className:"inline-flex items-center gap-2 rounded-2xl border border-slate-700 bg-slate-950/80 px-4 py-3 text-sm text-slate-200",children:[t.jsx("span",{children:"Par page"}),t.jsx("select",{value:Ye,onChange:n=>la(Number(n.target.value)),className:"bg-transparent text-slate-200 outline-none",children:Vx.map(n=>t.jsx("option",{value:n,children:n},n))})]})]}),t.jsxs("div",{className:"mt-4 space-y-4 border-t border-cyan-400/15 pt-4",children:[Kr&&qt.length===0&&t.jsx("div",{className:"rounded-2xl border border-cyan-400/20 bg-cyan-500/10 px-4 py-3 text-sm text-cyan-100",children:"Chargement des messages en cours..."}),ir.map(n=>
441{const _=Wl.includes(n.id),z=new Date(n.createdAt).toLocaleString("fr-FR"),q=encodeURIComponent(`Re: ${n.subject}`),be=encodeURIComponent(`Bonjour ${n.name},
442
443Merci pour votre message reçu via le site Valence ACE.
444
445${n.message}
446
447---
448${n.name}
449${n.email}
450${n.phone}`);return t.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-950/60 p-4",children:[t.jsxs("button",{type:"button",onClick:()=>nn(n.id),className:"flex w-full items-start justify-between gap-4 text-left cursor-pointer",children:[t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t.jsx("span",{className:"rounded-full border border-slate-700 bg-slate-950 px-3 py-1 text-[11px] font-bold uppercase text-slate-300",children:n.id}),t.jsx("span",{className:"rounded-full border border-cyan-400/20 bg-cyan-500/10 px-3 py-1 text-[11px] font-bold uppercase text-cyan-200",children:n.category}),t.jsx("span",{className:`rounded-full px-3 py-1 text-[11px] font-bold uppercase ${n.readAt?"border border-emerald-400/30 bg-emerald-500/10 text-emerald-200":"border border-amber-400/30 bg-amber-400/10 text-amber-200"}`,children:n.readAt?"Lu":"Non lu"}),t.jsx("span",{className:`rounded-full px-3 py-1 text-[11px] font-bold uppercase ${K2(n.status)}`,children:Q2(n.status)})]}),t.jsx("p",{className:"mt-3 text-sm font-black text-white",children:n.subject}),t.jsxs("div",{className:"mt-2 flex flex-col gap-1 sm:flex-row sm:flex-wrap sm:items-center sm:gap-3",children:[t.jsx("p",{className:"text-sm text-slate-200",children:n.name}),t.jsx("span",{className:"text-sm text-slate-400",children:n.email}),t.jsx("span",{className:"text-sm text-slate-500",children:n.phone})]}),t.jsxs("p",{className:"mt-2 text-xs text-slate-400",children:["Reçu le ",z]})]}),t.jsx("span",{className:`mt-1 flex h-10 w-10 items-center justify-center rounded-full border border-slate-700 bg-slate-900 text-slate-300 transition-transform ${_?"rotate-180":""}`,children:t.jsx(Ut,{className:"h-4 w-4"})})]}),_&&t.jsx("div",{className:"mt-4 space-y-4 border-t border-slate-800 pt-4",children:t.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-2",children:[t.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-900/80 p-4 text-sm text-slate-300",children:[t.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.2em] text-slate-500",children:"Message"}),t.jsx("p",{className:"mt-2 whitespace-pre-wrap leading-6 text-slate-200",children:n.message})]}),t.jsxs("div",{className:"space-y-3 rounded-2xl border border-slate-800 bg-slate-900/80 p-4 text-sm text-slate-300",children:[t.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.2em] text-slate-500",children:"Actions"}),t.jsxs("p",{children:[t.jsx("span",{className:"font-semibold text-slate-200",children:"Email:"})," ",n.email]}),t.jsxs("p",{children:[t.jsx("span",{className:"font-semibold text-slate-200",children:"Téléphone:"})," ",n.phone]}),t.jsxs("p",{children:[t.jsx("span",{className:"font-semibold text-slate-200",children:"Catégorie:"})," ",n.category]}),t.jsxs("a",{href:`mailto:${n.email}?subject=${q}&body=${be}`,className:"inline-flex items-center gap-2 rounded-xl bg-cyan-400 px-4 py-2 text-sm font-black text-slate-950 hover:bg-cyan-300",children:[t.jsx(wl,{className:"h-4 w-4"}),"Répondre par email"]}),t.jsxs("button",{type:"button",onClick:()=>void uc(n),className:"inline-flex items-center gap-2 rounded-xl border border-slate-700 px-4 py-2 text-sm font-black text-slate-200 hover:bg-slate-800",children:[t.jsx(Ca,{className:"h-4 w-4"}),n.readAt?"Marquer non lu":"Marquer lu"]})]})]})})]},n.id)}),qt.length===0&&t.jsxs("div",{className:"rounded-2xl border border-dashed border-slate-700 bg-slate-950/40 p-6 text-center text-sm text-slate-400",children:[t.jsx("p",{className:"text-base font-black text-white",children:"Aucun message pour ce filtre."}),t.jsx("p",{className:"mt-2",children:"Les messages envoyés depuis le formulaire de contact apparaîtront ici dès leur soumission."})]}),qt.length>0&&t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 rounded-2xl border border-slate-800 bg-slate-950/40 px-4 py-3 text-sm text-slate-300",children:[t.jsxs("p",{children:["Page ",Ze," sur ",ys," • ",qt.length," message(s) au total"]}),t.jsxs("div",{className:"flex gap-2",children:[t.jsx("button",{type:"button",onClick:()=>Ve(n=>Math.max(1,n-1)),disabled:Ze===1,className:"rounded-xl border border-slate-700 px-3 py-2 font-bold text-slate-200 hover:bg-slate-800 disabled:cursor-not-allowed disabled:opacity-50",children:"Précédent"}),t.jsx("button",{type:"button",onClick:()=>Ve(n=>Math.min(ys,n+1)),disabled:Ze===ys,className:"rounded-xl border border-slate-700 px-3 py-2 font-bold text-slate-200 hover:bg-slate-800 disabled:cursor-not-allowed disabled:opacity-50",children:"Suivant"})]})]})]})]})]}),f==="registrations"&&t.jsxs("div",{className:"grid grid-cols-1 gap-5",children:[t.jsxs("div",{className:"rounded-2xl border border-fuchsia-400/20 bg-fuchsia-500/10 p-4 text-sm text-slate-200",children:[t.jsx("p",{className:"font-bold text-fuchsia-200",children:"Suivi des dossiers"}),t.jsx("p",{className:"mt-1 text-slate-300",children:"Chaque formulaire soumis apparaît ici. Le bureau peut ensuite traiter les dossiers depuis cette vue."})]}),Y&&t.jsxs("div",{className:"rounded-2xl border border-amber-400/30 bg-amber-400/10 p-4 text-sm text-amber-100",children:[t.jsx("p",{className:"font-bold text-amber-200",children:"Chargement partiel"}),t.jsx("p",{className:"mt-1 text-amber-50/90",children:Y})]}),t.jsxs("div",{className:"rounded-[28px] border border-slate-800 bg-slate-900/70 p-5",children:[t.jsxs("div",{className:"grid grid-cols-1 gap-3 lg:grid-cols-[minmax(0,1fr)_220px_220px_220px_180px]",children:[t.jsxs("label",{className:"flex items-center gap-3 rounded-2xl border border-slate-700 bg-slate-950/80 px-4 py-3 text-sm text-slate-200",children:[t.jsx(jx,{className:"h-4 w-4 text-amber-300"}),t.jsx("input",{value:ie,onChange:n=>ee(n.target.value),placeholder:"Rechercher par nom, catégorie, email, statut...",className:"w-full bg-transparent outline-none placeholder:text-slate-500"})]}),t.jsxs("select",{value:ae,onChange:n=>_e(n.target.value),className:"rounded-2xl border border-slate-700 bg-slate-950/80 px-4 py-3 text-sm text-slate-200 outline-none",children:[t.jsx("option",{value:"all",children:"Tous les statuts"}),qx.map(n=>t.jsx("option",{value:n,children:n},n))]}),t.jsxs("select",{value:Ce,onChange:n=>Ae(n.target.value),className:"rounded-2xl border border-slate-700 bg-slate-950/80 px-4 py-3 text-sm text-slate-200 outline-none",children:[t.jsx("option",{value:"all",children:"Toutes les catégories"}),Ma.map(n=>t.jsx("option",{value:n,children:n},n))]}),t.jsxs("select",{value:Te,onChange:n=>He(n.target.value),className:"rounded-2xl border border-slate-700 bg-slate-950/80 px-4 py-3 text-sm text-slate-200 outline-none",children:[t.jsx("option",{value:"all",children:"Toutes les saisons"}),gs.map(n=>t.jsx("option",{value:n,children:n},n))]}
450),t.jsxs("select",{value:pe,onChange:n=>ue(n.target.value),className:"rounded-2xl border border-slate-700 bg-slate-950/80 px-4 py-3 text-sm text-slate-200 outline-none",children:[t.jsx("option",{value:"all",children:"FFVB + UFOLEP"}),t.jsx("option",{value:"ffvb",children:"FFVB"}),t.jsx("option",{value:"ufolep",children:"UFOLEP"})]})]}),t.jsxs("div",{className:"mt-3 grid grid-cols-1 gap-3 lg:grid-cols-[220px_auto_auto_auto]",children:[t.jsxs("select",{value:W,onChange:n=>ye(n.target.value),className:"rounded-2xl border border-slate-700 bg-slate-950/80 px-4 py-3 text-sm text-slate-200 outline-none",children:[t.jsx("option",{value:"createdAt-desc",children:"Tri: plus récents d'abord"}),t.jsx("option",{value:"createdAt-asc",children:"Tri: plus anciens d'abord"}),t.jsx("option",{value:"playerName-asc",children:"Tri: nom A → Z"}),t.jsx("option",{value:"playerName-desc",children:"Tri: nom Z → A"}),t.jsx("option",{value:"status-asc",children:"Tri: statut"})]}),t.jsxs("button",{type:"button",onClick:()=>void pc(),className:"inline-flex items-center justify-center gap-2 rounded-2xl border border-blue-400/30 bg-blue-500/10 px-4 py-3 text-sm font-bold text-blue-200 hover:bg-blue-500/20",children:[t.jsx(xx,{className:"h-4 w-4"}),"PDF filtré"]}),t.jsxs("button",{type:"button",onClick:()=>void xc(),className:"inline-flex items-center justify-center gap-2 rounded-2xl border border-fuchsia-400/30 bg-fuchsia-500/10 px-4 py-3 text-sm font-bold text-fuchsia-200 hover:bg-fuchsia-500/20",children:[t.jsx(Ql,{className:"h-4 w-4"}),"ZIP archivage"]}),t.jsxs("button",{type:"button",onClick:vc,className:"inline-flex items-center justify-center gap-2 rounded-2xl border border-amber-400/30 bg-amber-400/10 px-4 py-3 text-sm font-bold text-amber-200 hover:bg-amber-400/20",children:[t.jsx(Ql,{className:"h-4 w-4"}),"CSV événements"]}),t.jsxs("button",{type:"button",onClick:bc,className:"inline-flex items-center justify-center gap-2 rounded-2xl border border-emerald-400/30 bg-emerald-500/10 px-4 py-3 text-sm font-bold text-emerald-200 hover:bg-emerald-500/20 lg:justify-self-end",children:[t.jsx(Ql,{className:"h-4 w-4"}),"Export CSV"]})]}),t.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-2 text-xs",children:[t.jsxs("button",{type:"button",onClick:()=>on("all"),className:`rounded-full border px-3 py-1 font-bold transition-colors ${pe==="all"?"border-fuchsia-400/30 bg-fuchsia-500/10 text-fuchsia-200":"border-slate-700 bg-slate-900 text-slate-300 hover:bg-slate-800"}`,children:["Tous ",ta.all]}),t.jsxs("button",{type:"button",onClick:()=>on("ffvb"),className:`rounded-full border px-3 py-1 font-bold transition-colors ${pe==="ffvb"?"border-indigo-400/30 bg-indigo-500/10 text-indigo-200":"border-slate-700 bg-slate-900 text-slate-300 hover:bg-slate-800"}`,children:["FFVB ",ta.ffvb]}),t.jsxs("button",{type:"button",onClick:()=>on("ufolep"),className:`rounded-full border px-3 py-1 font-bold transition-colors ${pe==="ufolep"?"border-emerald-400/30 bg-emerald-500/10 text-emerald-200":"border-slate-700 bg-slate-900 text-slate-300 hover:bg-slate-800"}`,children:["UFOLEP ",ta.ufolep]}),t.jsxs("button",{type:"button",onClick:()=>Ul("received"),className:`rounded-full border px-3 py-1 font-bold transition-colors ${ae==="received"?"border-blue-400/30 bg-blue-500/10 text-blue-200":"border-slate-700 bg-slate-900 text-slate-300 hover:bg-slate-800"}`,children:["Reçus ",ta.received]}),t.jsxs("button",{type:"button",onClick:()=>Ul("incomplete"),className:`rounded-full border px-3 py-1 font-bold transition-colors ${ae==="incomplete"?"border-rose-400/30 bg-rose-500/10 text-rose-200":"border-slate-700 bg-slate-900 text-slate-300 hover:bg-slate-800"}`,children:["Incomplets ",ta.incomplete]}),t.jsxs("button",{type:"button",onClick:()=>Ul("validated"),className:`rounded-full border px-3 py-1 font-bold transition-colors ${ae==="validated"?"border-emerald-400/30 bg-emerald-500/10 text-emerald-200":"border-slate-700 bg-slate-900 text-slate-300 hover:bg-slate-800"}`,children:["Validés ",ta.validated]}),t.jsxs("button",{type:"button",onClick:()=>Ul("follow-up"),className:`rounded-full border px-3 py-1 font-bold transition-colors ${ae==="follow-up"?"border-amber-400/30 bg-amber-400/10 text-amber-200":"border-slate-700 bg-slate-900 text-slate-300 hover:bg-slate-800"}`,children:["Relances ",ta["follow-up"]]}),t.jsx("button",{type:"button",onClick:()=>Ul("all"),className:`rounded-full border px-3 py-1 font-bold transition-colors ${ae==="all"?"border-slate-400/30 bg-slate-700/40 text-white":"border-slate-700 bg-slate-900 text-slate-300 hover:bg-slate-800"}`,children:"Reset statut"})]}),t.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-2 text-xs",children:[t.jsxs("button",{type:"button",onClick:()=>Xs("all"),className:`rounded-full border px-3 py-1 font-bold transition-colors ${D==="all"?"border-sky-400/30 bg-sky-500/10 text-sky-200":"border-slate-700 bg-slate-900 text-slate-300 hover:bg-slate-800"}`,children:["Tous paiements ",ta.all]}),t.jsxs("button",{type:"button",onClick:()=>Xs("paid"),className:`rounded-full border px-3 py-1 font-bold transition-colors ${D==="paid"?"border-emerald-400/30 bg-emerald-500/10 text-emerald-200":"border-slate-700 bg-slate-900 text-slate-300 hover:bg-slate-800"}`,children:["Payés ",ta.paid]}),t.jsxs("button",{type:"button",onClick:()=>Xs("initiated"),className:`rounded-full border px-3 py-1 font-bold transition-colors ${D==="initiated"?"border-sky-400/30 bg-sky-500/10 text-sky-200":"border-slate-700 bg-slate-900 text-slate-300 hover:bg-slate-800"}`,children:["Initiés ",ta.initiated]}),t.jsxs("button",{type:"button",onClick:()=>Xs("cancelled"),className:`rounded-full border px-3 py-1 font-bold transition-colors ${D==="cancelled"?"border-rose-400/30 bg-rose-500/10 text-rose-200":"border-slate-700 bg-slate-900 text-slate-300 hover:bg-slate-800"}`,children:["Annulés ",ta.cancelled]}),t.jsxs("button",{type:"button",onClick:()=>Xs("unknown"),className:`rounded-full border px-3 py-1 font-bold transition-colors ${D==="unknown"?"border-slate-400/30 bg-slate-700/40 text-white":"border-slate-700 bg-slate-900 text-slate-300 hover:bg-slate-800"}`,children:["Sans info ",ta.unknown]})]}),t.jsxs("div",{className:"mt-3 flex flex-wrap gap-2 text-xs text-slate-300",children:[t.jsxs("span",{className:"rounded-full border border-fuchsia-400/20 bg-fuchsia-500/10 px-3 py-1 font-bold text-fuchsia-200",children:[Rt.length," dossier(s)"]}),t.jsxs("span",{className:"rounded-full border border-sky-400/20 bg-sky-500/10 px-3 py-1 font-bold text-sky-200",children:[Yt.length," essai(s)"]}),t.jsxs("span",{className:"rounded-full border border-amber-400/20 bg-amber-400/10 px-3 py-1 font-bold text-amber-200",children:[vs.length," inscription(s) événement"]}),t.jsx("span",{className:"rounded-full border border-slate-700 bg-slate-900 px-3 py-1",children:"Vue compacte par défaut, cliquer pour ouvrir un dossier."}),t.jsxs("label",{className:"inline-flex items-center gap-2 rounded-full border border-slate-700 bg-slate-900 px-3 py-1",children:[t.jsx("span",{children:"Par page"}),t.jsx("select",{value:Ye,onChange:n=>la(Number(n.target.value)),className:"bg-transparent text-slate-200 outline-none",children:Vx.map(n=>t.jsx("option",{value:n,children:n},n))})]})]})]}),t.jsxs("div",{className:"rounded-[28px] border border-amber-400/25 bg-amber-400/[0.06] p-5 shadow-[0_18px_40px_rgba(245,158,11,0.08)]",children:[t.jsxs("button",{type:"button",onClick:()=>ka(n=>!n),className:"flex w-full items-center justify-between gap-3 text-left cursor-pointer",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"text-lg font-black text-white",children:"Inscriptions événements"}),t.jsx("p",{className:"mt-1 text-sm text-amber-100/70",children:"Demandes envoyées depuis le formulaire dédié des cartes événement."})]}),t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsxs("span",{className:"rounded-full border border-amber-400/30 bg-amber-400/10 px-3 py-1 text-xs font-bold text-amber-200",children:[vs.length," inscription(s)"]}),t.jsx("span",{className:`flex h-10 w-10 items-center justify-center rounded-full border border-amber-400/25 bg-slate-900/70 text-amber-200 transition-transform ${Wa?"rotate-180":""}`,children:t.jsx(Ut,{className:"h-4 w-4"})})]})]}),Wa&&t.jsxs("div",{className:"mt-4 space-y-4 border-t border-amber-400/15 pt-4",children:[t.jsxs("div",{className:"grid grid-cols-1 gap-3 lg:grid-cols-[minmax(0,1fr)_280px]",children:[t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Recherche"}),t.jsx("input",{value:ie,onChange:n=>ee(n.target.value),placeholder:"Nom, email, téléphone, événement...",className:"w-full rounded-2xl border border-slate-700 bg-slate-950/80 px-4 py-3 text-sm text-slate-200 outline-none placeholder:text-slate-500"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Événement"}),t.jsxs("select",{value:Ie,onChange:n=>x(n.target.value),className:"w-full rounded-2xl border border-slate-700 bg-slate-950/80 px-4 py-3 text-sm text-slate-200 outline-none",children:[t.jsx("option",{value:"all",children:"Tous les événements"}),na.map(([n,_])=>t.jsx("option",{value:n,children:_},n))]})]})]}),t.jsxs("div",{className:"space-y-4",children:[vs.map(n=>t.jsx("div",{className:"rounded-2xl border border-slate-800 bg-slate-950/60 p-4",children:t.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-[minmax(0,1fr)_220px]",children:[t.jsxs("div",{children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t.jsx("span",{className:"rounded-full border border-slate-700 bg-slate-950 px-3 py-1 text-[11px] font-bold uppercase text-slate-300",children:n.id}),t.jsxs("span",{className:"rounded-full border border-sky-400/20 bg-sky-500/10 px-3 py-1 text-[11px] font-bold uppercase text-sky-200",children:["Saison ",qa(n.createdAt)]}),t.jsx("span",{className:"rounded-full border border-amber-400/20 bg-amber-400/10 px-3 py-1 text-[11px] font-bold uppercase text-amber-200",children:n.eventTitle}),t.jsxs("span",{className:"rounded-full border border-blue-400/20 bg-blue-500/10 px-3 py-1 text-[11px] font-bold uppercase text-blue-200",children:[n.participantsCount," participant(s)"]}),n.paymentStatus?t.jsxs("span",{className:`rounded-full px-3 py-1 text-[11px] font-bold uppercase ${tv(n.paymentStatus,n.paymentProvider)}`,children:["Paiement ",ev(n.paymentStatus,n.paymentProvider)]}):null]}),t.jsx("p",{className:"mt-3 text-sm font-black text-white",children:n.participantName}),t.jsxs("p",{className:"mt-1 text-sm text-slate-400",children:[n.email," • ",n.phone]}),t.jsxs("p",{className:"mt-2 text-xs text-slate-500",children:["Créé le ",new Date(n.createdAt).toLocaleStr
450ing("fr-FR")," • ",n.birthYear||"Année non renseignée"," • ",n.teamOrClub||"Club non renseigné"," • ",W2(n.paymentProvider),typeof n.paymentAmount=="number"?` • ${n.paymentAmount} €`:""]}),n.notes?t.jsx("p",{className:"mt-3 rounded-2xl border border-slate-800 bg-slate-900 px-3 py-3 text-sm text-slate-300",children:n.notes}):null]}),t.jsxs("div",{className:"space-y-3",children:[t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Statut"}),t.jsx("select",{value:n.status,onChange:_=>cn(n.id,{status:_.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none",children:D2.map(_=>t.jsx("option",{value:_,children:_},_))})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Notes bureau"}),t.jsx("textarea",{value:n.adminNotes,onChange:_=>cn(n.id,{adminNotes:_.target.value}),rows:4,className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsx("button",{type:"button",onClick:()=>cn(n.id,{paymentProvider:"bank_transfer",paymentStatus:"paid",paymentUpdatedAt:new Date().toISOString()}),className:"inline-flex w-full items-center justify-center gap-2 rounded-xl border border-emerald-400/30 bg-emerald-500/10 px-4 py-2.5 text-sm font-black text-emerald-200 hover:bg-emerald-500/20",children:"Marquer payé hors ligne"}),t.jsxs("button",{type:"button",onClick:()=>void dn(n),disabled:H,className:"inline-flex w-full items-center justify-center gap-2 rounded-xl bg-amber-400 px-4 py-2.5 text-sm font-black text-slate-950 hover:bg-amber-300 disabled:cursor-not-allowed disabled:opacity-60",children:[t.jsx(qs,{className:"h-4 w-4"}),"Enregistrer"]})]})]})},n.id)),vs.length===0?t.jsx("p",{className:"text-sm text-slate-400",children:"Aucune inscription événement pour ce filtre."}):null]})]})]}),t.jsxs("div",{className:"rounded-[28px] border border-sky-400/25 bg-sky-500/[0.06] p-5 shadow-[0_18px_40px_rgba(14,165,233,0.08)]",children:[t.jsxs("button",{type:"button",onClick:()=>ar(n=>!n),className:"flex w-full items-center justify-between gap-3 text-left cursor-pointer",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"text-lg font-black text-white",children:"Demandes d'essai"}),t.jsx("p",{className:"mt-1 text-sm text-sky-100/70",children:"Demandes envoyées depuis le formulaire d'essai."})]}),t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsxs("span",{className:"rounded-full border border-sky-400/30 bg-sky-500/10 px-3 py-1 text-xs font-bold text-sky-200",children:[Yt.length," demande(s)"]}),t.jsx("span",{className:`flex h-10 w-10 items-center justify-center rounded-full border border-sky-400/25 bg-slate-900/70 text-sky-200 transition-transform ${ea?"rotate-180":""}`,children:t.jsx(Ut,{className:"h-4 w-4"})})]})]}),ea&&t.jsxs("div",{className:"mt-4 space-y-4 border-t border-sky-400/15 pt-4",children:[t.jsxs("div",{className:"grid grid-cols-1 gap-3 lg:grid-cols-[minmax(0,1fr)_260px]",children:[t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Catégorie"}),t.jsxs("select",{value:Me,onChange:n=>Fe(n.target.value),className:"w-full rounded-2xl border border-slate-700 bg-slate-950/80 px-4 py-3 text-sm text-slate-200 outline-none",children:[t.jsx("option",{value:"all",children:"Toutes les catégories"}),Ma.map(n=>t.jsx("option",{value:n,children:n},n))]})]}),t.jsxs("button",{type:"button",onClick:gc,disabled:Yt.length===0,className:"inline-flex items-center justify-center gap-2 rounded-2xl border border-sky-400/30 bg-sky-500/10 px-4 py-3 text-sm font-bold text-sky-200 hover:bg-sky-500/20 disabled:cursor-not-allowed disabled:opacity-50",children:[t.jsx(Ql,{className:"h-4 w-4"}),"CSV essais en cours"]})]}),t.jsxs("div",{className:"flex flex-wrap gap-2 text-xs text-slate-300",children:[t.jsxs("span",{className:"rounded-full border border-sky-400/20 bg-sky-500/10 px-3 py-1 font-bold text-sky-200",children:["En cours ",Yt.length]}),t.jsxs("span",{className:"rounded-full border border-slate-700 bg-slate-900 px-3 py-1 font-bold text-slate-300",children:["Archivées ",as.length]})]}),sn.map(n=>
450{const _=ra.includes(n.id),z=qa(n.createdAt);return t.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-950/60 p-4",children:[t.jsxs("button",{type:"button",onClick:()=>dc(n.id),className:"flex w-full items-start justify-between gap-4 text-left cursor-pointer",children:[t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t.jsx("span",{className:"rounded-full border border-slate-700 bg-slate-950 px-3 py-1 text-[11px] font-bold uppercase text-slate-300",children:n.id}),t.jsxs("span",{className:"rounded-full border border-sky-400/20 bg-sky-500/10 px-3 py-1 text-[11px] font-bold uppercase text-sky-200",children:["Saison ",z]}),t.jsx("span",{className:"rounded-full border border-blue-400/20 bg-blue-500/10 px-3 py-1 text-[11px] font-bold uppercase text-blue-200",children:n.category}),t.jsx("span",{className:`rounded-full px-3 py-1 text-[11px] font-bold uppercase ${Xx(n.status)}`,children:Jx(n.status)}),t.jsx("span",{className:`rounded-full border px-3 py-1 text-[11px] font-bold uppercase ${Zx(hs(n.category))}`,children:Su(hs(n.category))})]}),t.jsxs("div",{className:"mt-3 flex flex-col gap-1 sm:flex-row sm:flex-wrap sm:items-center sm:gap-3",children:[t.jsx("p",{className:"text-sm font-black text-white",children:n.playerName}),t.jsx("span",{className:"text-sm text-slate-400",children:n.email}),t.jsx("span",{className:"text-sm text-slate-500",children:n.phone})]}),t.jsxs("p",{className:"mt-2 text-xs text-slate-400",children:["Créé le ",new Date(n.createdAt).toLocaleString("fr-FR")," • ",n.birthYear||"Année non renseignée"," • ",n.experience||"Niveau non renseigné"]})]}),t.jsx("span",{className:`mt-1 flex h-10 w-10 items-center justify-center rounded-full border border-slate-700 bg-slate-900 text-slate-300 transition-transform ${_?"rotate-180":""}`,children:t.jsx(Ut,{className:"h-4 w-4"})})]}),_&&t.jsxs("div",{className:"mt-4 grid grid-cols-1 gap-4 border-t border-slate-800 pt-4 lg:grid-cols-2",children:[t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Joueur / joueuse"}),t.jsx("input",{value:n.playerName,onChange:q=>os(n.id,{playerName:q.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Statut"}),t.jsx("select",{value:n.status,onChange:q=>os(n.id,{status:q.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none",children:F2.map(q=>t.jsx("option",{value:q,children:q},q))})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Téléphone"}),t.jsx("input",{value:n.phone,onChange:q=>os(n.id,{phone:q.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Email"}),t.jsx("input",{value:n.email,onChange:q=>os(n.id,{email:q.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Année de naissance"}),t.jsx("input",{value:n.birthYear,onChange:q=>os(n.id,{birthYear:q.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Niveau actuel"}),t.jsx("input",{value:n.experience,onChange:q=>os(n.id,{experience:q.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm lg:col-span-2",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Notes bureau"}),t.jsx("textarea",{value:n.notes,onChange:q=>os(n.id,{notes:q.target.value}),rows:3,className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]})]}),_&&t.jsxs("div",{className:"mt-4 flex flex-wrap items-center justify-between gap-3 text-sm text-slate-300",children:[t.jsxs("a",{href:`mailto:${n.email}`,className:"inline-flex items-center gap-2 text-amber-300 hover:text-amber-200",children:[t.jsx(wl,{className:"h-4 w-4"}),"Contacter la demande"]}),t.jsxs("div",{className:"flex flex-wrap gap-2",children:[t.jsxs("button",{type:"button",onClick:()=>void ic(n),disabled:H,className:"inline-flex items-center gap-2 rounded-xl border border-slate-700 bg-slate-900 px-4 py-2 text-sm font-black text-slate-200 hover:bg-slate-800 disabled:cursor-not-allowed disabled:opacity-50",children:[t.jsx(mx,{className:"h-4 w-4"}),"Archiver"]}),t.jsxs("button",{type:"button",onClick:()=>void fc(n),disabled:H,className:"inline-flex items-center gap-2 rounded-xl bg-blue-500 px-4 py-2 text-sm font-black text-white hover:bg-blue-400 disabled:cursor-not-allowed disabled:opacity-50",children:[t.jsx(qs,{className:"h-4 w-4"}),"Enregistrer la demande"]})]})]})]},n.id)}),Yt.length===0&&t.jsxs("div",{className:"rounded-2xl border border-dashed border-slate-700 bg-slate-950/40 p-6 text-center text-sm text-slate-400",children:[t.jsx("p",{className:"text-base font-black text-white",children:"Aucune demande d'essai en cours pour ce filtre."}),t.jsx("p",{className:"mt-2",children:"Quand un visiteur réserve un essai, sa demande apparaît ici avec ses coordonnées, sa catégorie et son niveau."}),t.jsxs("div",{className:"mt-4 flex flex-wrap justify-center gap-2 text-xs text-slate-300",children:[t.jsx("span",{className:"rounded-full border border-slate-700 bg-slate-900 px-3 py-1",children:"1. Vérifier les filtres"}),t.jsx("span",{className:"rounded-full border border-slate-700 bg-slate-900 px-3 py-1",children:"2. Contrôler le parcours public Essai"}),t.jsx("span",{className:"rounded-full border border-slate-700 bg-slate-900 px-3 py-1",children:"3. Recontacter dès réception"})]})]}),Yt.length>0&&t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 rounded-2xl border border-slate-800 bg-slate-950/40 px-4 py-3 text-sm text-slate-300",children:[t.jsxs("p",{children:["Page ",ve," sur ",Lt," • ",Yt.length," demande(s) en cours"]}),t.jsxs("div",{className:"flex gap-2",children:[t.jsx("button",{type:"button",onClick:()=>Ee(n=>Math.max(1,n-1)),disabled:ve===1,className:"rounded-xl border border-slate-700 px-3 py-2 font-bold text-slate-200 hover:bg-slate-800 disabled:cursor-not-allowed disabled:opacity-50",children:"Précédent"}),t.jsx("button",{type:"button",onClick:()=>Ee(n=>Math.min(Lt,n+1)),disabled:ve===Lt,className:"rounded-xl border border-slate-700 px-3 py-2 font-bold text-slate-200 hover:bg-slate-800 disabled:cursor-not-allowed disabled:opacity-50",children:"Suivant"})]})]}),t.jsxs("div",{className:"rounded-[24px] border border-slate-800 bg-slate-950/40 p-4",children:[t.jsxs("button",{type:"button",onClick:()=>Ko(n=>!n),className:"flex w-full items-center justify-between gap-3 text-left cursor-pointer",children:[t.jsxs("div",{children:[t.jsx("h4",{className:"text-base font-black text-white",children:"Dossier d’archivage"}),t.jsx("p",{className:"mt-1 text-sm text-slate-400",children:"Demandes traitées, retirées du flux en cours mais toujours consultables."})]}),t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsxs("span",{className:"rounded-full border border-slate-700 bg-slate-900 px-3 py-1 text-xs font-bold text-slate-300",children:[as.length," archivée(s)"]}),t.jsx("span",{className:`flex h-10 w-10 items-center justify-center rounded-full border border-slate-700 bg-slate-900 text-slate-300 transition-transform ${$s?"rotate-180":""}`,children:t.jsx(Ut,{className:"h-4 w-4"})})]})]}),$s&&t.jsxs("div",{className:"mt-4 space-y-4 border-t border-slate-800 pt-4",children:[ui.map(n=>
450{const _=n.archivedAt?new Date(n.archivedAt).toLocaleString("fr-FR"):"Date d’archivage non renseignée";return t.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-950/60 p-4",children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t.jsx("span",{className:"rounded-full border border-slate-700 bg-slate-950 px-3 py-1 text-[11px] font-bold uppercase text-slate-300",children:n.id}),t.jsx("span",{className:"rounded-full border border-rose-400/20 bg-rose-500/10 px-3 py-1 text-[11px] font-bold uppercase text-rose-200",children:"Archivé"}),t.jsx("span",{className:"rounded-full border border-blue-400/20 bg-blue-500/10 px-3 py-1 text-[11px] font-bold uppercase text-blue-200",children:n.category}),t.jsx("span",{className:`rounded-full px-3 py-1 text-[11px] font-bold uppercase ${Xx(n.status)}`,children:Jx(n.status)}),t.jsxs("span",{className:"rounded-full border border-slate-700 bg-slate-900 px-3 py-1 text-[11px] font-bold uppercase text-slate-300",children:["Archivé le ",_]})]}),t.jsxs("div",{className:"mt-3 grid grid-cols-1 gap-2 text-sm text-slate-300 sm:grid-cols-2",children:[t.jsx("p",{className:"font-black text-white",children:n.playerName}),t.jsx("p",{children:n.email}),t.jsx("p",{children:n.phone}),t.jsx("p",{children:n.experience||"Niveau non renseigné"})]}),t.jsxs("p",{className:"mt-2 text-xs text-slate-500",children:["Créé le ",new Date(n.createdAt).toLocaleString("fr-FR")," • ",n.birthYear||"Année non renseignée"]}),t.jsxs("div",{className:"mt-4 flex flex-wrap items-center justify-between gap-3 text-sm text-slate-300",children:[t.jsx("p",{className:"text-slate-400",children:n.notes?n.notes:"Aucune note bureau."}),t.jsx("div",{className:"flex flex-wrap gap-2",children:t.jsxs("button",{type:"button",onClick:()=>void oc(n),disabled:H,className:"inline-flex items-center gap-2 rounded-xl border border-slate-700 bg-slate-900 px-4 py-2 text-sm font-black text-slate-200 hover:bg-slate-800 disabled:cursor-not-allowed disabled:opacity-50",children:[t.jsx(yx,{className:"h-4 w-4"}),"Restaurer"]})})]})]},n.id)}),as.length===0&&t.jsxs("div",{className:"rounded-2xl border border-dashed border-slate-700 bg-slate-950/40 p-6 text-center text-sm text-slate-400",children:[t.jsx("p",{className:"text-base font-black text-white",children:"Aucune demande archivée pour ce filtre."}),t.jsx("p",{className:"mt-2",children:"Les demandes traitées apparaîtront ici après archivage."})]}),as.length>0&&t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 rounded-2xl border border-slate-800 bg-slate-950/40 px-4 py-3 text-sm text-slate-300",children:[t.jsxs("p",{children:["Page ",ke," sur ",ss," • ",as.length," demande(s) archivée(s)"]}),t.jsxs("div",{className:"flex gap-2",children:[t.jsx("button",{type:"button",onClick:()=>ze(n=>Math.max(1,n-1)),disabled:ke===1,className:"rounded-xl border border-slate-700 px-3 py-2 font-bold text-slate-200 hover:bg-slate-800 disabled:cursor-not-allowed disabled:opacity-50",children:"Précédent"}),t.jsx("button",{type:"button",onClick:()=>ze(n=>Math.min(ss,n+1)),disabled:ke===ss,className:"rounded-xl border border-slate-700 px-3 py-2 font-bold text-slate-200 hover:bg-slate-800 disabled:cursor-not-allowed disabled:opacity-50",children:"Suivant"})]})]})]})]})]})]}),t.jsxs("div",{className:"rounded-[28px] border border-fuchsia-400/25 bg-fuchsia-500/[0.06] p-5 shadow-[0_18px_40px_rgba(217,70,239,0.08)]",children:[t.jsxs("button",{type:"button",onClick:()=>Ps(n=>!n),className:"flex w-full items-center justify-between gap-3 text-left cursor-pointer",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"text-lg font-black text-white",children:"Dossiers d'adhésion"}),t.jsx("p",{className:"mt-1 text-sm text-fuchsia-100/70",children:"Formulaires complets avec pièces jointes, signatures et suivi de paiement."})]}),t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsxs("span",{className:"rounded-full border border-fuchsia-400/30 bg-fuchsia-500/10 px-3 py-1 text-xs font-bold text-fuchsia-200",children:[Rt.length," dossier(s)"]}),t.jsx("span",{className:`flex h-10 w-10 items-center justify-center rounded-full border border-fuchsia-400/25 bg-slate-900/70 text-fuchsia-200 transition-transform ${tr?"rotate-180":""}`,children:t.jsx(Ut,{className:"h-4 w-4"})})]})]}),tr&&t.jsxs("div",{className:"mt-4 space-y-4 border-t border-fuchsia-400/15 pt-4",children:[ec.map(n=>
450{const _=lt.includes(n.id),z=qa(n.createdAt);return t.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-950/60 p-4",children:[t.jsxs("button",{type:"button",onClick:()=>cc(n.id),className:"flex w-full items-start justify-between gap-4 text-left cursor-pointer",children:[t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t.jsx("span",{className:"rounded-full border border-slate-700 bg-slate-950 px-3 py-1 text-[11px] font-bold uppercase text-slate-300",children:n.id}),t.jsxs("span",{className:"rounded-full border border-sky-400/20 bg-sky-500/10 px-3 py-1 text-[11px] font-bold uppercase text-sky-200",children:["Saison ",z]}),t.jsx("span",{className:"rounded-full border border-blue-400/20 bg-blue-500/10 px-3 py-1 text-[11px] font-bold uppercase text-blue-200",children:n.category}),t.jsx("span",{className:`rounded-full px-3 py-1 text-[11px] font-bold uppercase ${J2(n.status)}`,children:Yx(n.status)}),t.jsx("span",{className:`rounded-full border px-3 py-1 text-[11px] font-bold uppercase ${Zx(hs(n.category))}`,children:Su(hs(n.category))}),n.paymentStatus&&t.jsxs("span",{className:`rounded-full px-3 py-1 text-[11px] font-bold uppercase ${Sh(n.paymentStatus)}`,children:["Paiement ",Lu(n.paymentStatus)]})]}),t.jsxs("div",{className:"mt-3 flex flex-col gap-1 sm:flex-row sm:flex-wrap sm:items-center sm:gap-3",children:[t.jsx("p",{className:"text-sm font-black text-white",children:n.playerName}),t.jsx("span",{className:"text-sm text-slate-400",children:n.email}),t.jsx("span",{className:"text-sm text-slate-500",children:n.phone})]}),t.jsxs("p",{className:"mt-2 text-xs text-slate-400",children:["Créé le ",new Date(n.createdAt).toLocaleString("fr-FR")," • Naissance ",n.birthDate||"non renseignée"," • ",n.isMinor?"Mineur":"Majeur"," • ",n.paymentProvider||"Paiement non renseigné"]})]}),t.jsx("span",{className:`mt-1 flex h-10 w-10 items-center justify-center rounded-full border border-slate-700 bg-slate-900 text-slate-300 transition-transform ${_?"rotate-180":""}`,children:t.jsx(Ut,{className:"h-4 w-4"})})]}),_&&t.jsxs("div",{className:"mt-4 grid grid-cols-1 gap-4 border-t border-slate-800 pt-4 lg:grid-cols-2",children:[t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Licencié"}),t.jsx("input",{value:n.playerName,onChange:q=>Js(n.id,{playerName:q.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Statut du dossier"}),t.jsx("select",{value:n.status,onChange:q=>Js(n.id,{status:q.target.value}),className:`w-full rounded-xl px-3 py-2 font-semibold outline-none ${X2(n.status)}`,children:qx.map(q=>t.jsx("option",{value:q,children:Yx(q)},q))})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Téléphone"}),t.jsx("input",{value:n.phone,onChange:q=>Js(n.id,{phone:q.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Email"}),t.jsx("input",{value:n.email,onChange:q=>Js(n.id,{email:q.target.value}),className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm lg:col-span-2",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Adresse"}),t.jsx("textarea",{value:n.address,onChange:q=>Js(n.id,{address:q.target.value}),rows:2,className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]}),t.jsxs("label",{className:"space-y-2 text-sm lg:col-span-2",children:[t.jsx("span",{className:"font-semibold text-slate-300",children:"Notes bureau"}),t.jsx("textarea",{value:n.notes,onChange:q=>Js(n.id,{notes:q.target.value}),rows:3,className:"w-full rounded-xl border border-slate-700 bg-slate-950 px-3 py-2 outline-none"})]})]}),_&&t.jsxs("div",{className:"mt-5 grid grid-cols-1 gap-4 xl:grid-cols-3",children:[t.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-950/60 p-4 text-sm text-slate-300",children:[t.jsx("p",{className:"font-bold text-white",children:"Pièces jointes"}),t.jsx("div",{className:"mt-3 space-y-2",children:n.attachments.length>0?n.attachments.map(q=>t.jsxs("a",{href:q.url,target:"_blank",rel:"noreferrer",className:"block rounded-xl border border-slate-800 bg-slate-900 px-3 py-2 text-amber-300 hover:text-amber-200",children:[q.label," • ",q.fileName]},`${n.id}-${q.url}`)):t.jsx("p",{className:"text-slate-500",children:"Aucune pièce jointe."})})]}),t.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-950/60 p-4 text-sm text-slate-300",children:[t.jsx("p",{className:"font-bold text-white",children:"Signatures"}),t.jsxs("div",{className:"mt-3 grid grid-cols-1 gap-3",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-xs uppercase tracking-[0.18em] text-slate-500",children:"Joueur"}),n.playerSignatureDataUrl?t.jsx("img",{src:n.playerSignatureDataUrl,alt:n.playerSignatureName,className:"mt-2 h-20 w-full rounded-xl bg-white object-contain"}):t.jsx("p",{className:"mt-2 text-slate-500",children:"Non fournie"})]}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs uppercase tracking-[0.18em] text-slate-500",children:"Responsable légal"}),n.guardianSignatureDataUrl?t.jsx("img",{src:n.guardianSignatureDataUrl,alt:n.guardianSignatureName||"Responsable légal",className:"mt-2 h-20 w-full rounded-xl bg-white object-contain"}):t.jsx("p",{className:"mt-2 text-slate-500",children:"Non fournie"})]})]})]}),t.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-950/60 p-4 text-sm text-slate-300",children:[t.jsx("p",{className:"font-bold text-white",children:"Récapitulatif"}),t.jsxs("div",{className:"mt-3 space-y-2 text-sm",children:[t.jsxs("p",{children:[t.jsx("strong",{className:"text-slate-100",children:"Date naissance:"})," ",n.birthDate]}),t.jsxs("p",{children:[t.jsx("strong",{className:"text-slate-100",children:"Statut licence:"})," ",n.ffvbOrUfolepStatus]}),t.jsxs("p",{children:[t.jsx("strong",{className:"text-slate-100",children:"Mineur:"})," ",n.isMinor?"Oui":"Non"]}),t.jsxs("p",{children:[t.jsx("strong",{className:"text-slate-100",children:"Responsable:"})," ",n.guardianNames||"Non applicable"]}),t.jsxs("p",{children:[t.jsx("strong",{className:"text-slate-100",children:"Paiement:"})," ",n.paymentStatus?`${Lu(n.paymentStatus)}${n.paymentAmount?` - ${n.paymentAmount} €`:""}`:"Non renseigne"]}),t.jsxs("p",{children:[t.jsx("strong",{className:"text-slate-100",children:"Mode:"})," ",n.paymentProvider||"Non renseigne"]}),t.jsxs("a",{href:`mailto:${n.email}`,className:"inline-flex items-center gap-2 text-amber-300 hover:text-amber-200",children:[t.jsx(wl,{className:"h-4 w-4"}),"Contacter le dossier"]})]})]})]}),_&&t.jsx("div",{className:"mt-5 flex justify-end",children:t.jsxs("div",{className:"flex flex-wrap justify-end gap-2",children:[t.jsxs("button",{type:"button",onClick:()=>void mc(n),className:"inline-flex items-center gap-2 rounded-xl border border-emerald-400/30 bg-emerald-500/10 px-4 py-2 text-sm font-black text-emerald-200 hover:bg-emerald-500/20",children:[t.jsx(Ql,{className:"h-4 w-4"}),"Exporter le PDF"]}),t.jsxs("button",{onClick:()=>void nc(n),disabled:H,className:"inline-flex items-center gap-2 rounded-xl bg-blue-500 px-4 py-2 text-sm font-black text-white hover:bg-blue-400 disabled:cursor-not-allowed disabled:opacity-50",children:[t.jsx(qs,{className:"h-4 w-4"}),"Enregistrer le dossier"]})]})})]},n.id)}),Rt.length===0&&t.jsxs("div",{className:"rounded-2xl border border-dashed border-slate-700 bg-slate-950/40 p-6 text-center text-sm text-slate-400",children:[t.jsx("p",{className:"text-base font-black text-white",children:"Aucun dossier d'adhésion pour ce filtre."}),t.jsx("p",{className:"mt-2",children:"Les dossiers complets envoyés depuis le formulaire en ligne apparaissent ici avec pièces jointes, signatures et suivi de paiement."}),t.jsxs("div",{className:"mt-4 flex flex-wrap justify-center gap-2 text-xs text-slate-300",children:[t.jsx("span",{className:"rounded-full border border-slate-700 bg-slate-900 px-3 py-1",children:"1. Vérifier les filtres"}),t.jsx("span",{className:"rounded-full border border-slate-700 bg-slate-900 px-3 py-1",children:"2. Tester le formulaire d'adhésion"}),t.jsx("span",{className:"rounded-full border border-slate-700 bg-slate-900 px-3 py-1",children:"3. Contrôler l'envoi des pièces et le paiement"})]})]}),Rt.length>0&&t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 rounded-2xl border border-slate-800 bg-slate-950/40 px-4 py-3 text-sm text-slate-300",children:[t.jsxs("p",{children:["Page ",we," sur ",Zs," • ",Rt.length," dossier(s) au total"]}),t.jsxs("div",{className:"flex gap-2",children:[t.jsx("button",{type:"button",onClick:()=>oe(n=>Math.max(1,n-1)),disabled:we===1,className:"rounded-xl border border-slate-700 px-3 py-2 font-bold text-slate-200 hover:bg-slate-800 disabled:cursor-not-allowed disabled:opacity-50",children:"Précédent"}),t.jsx("button",{type:"button",onClick:()=>oe(n=>Math.min(Zs,n+1)),disabled:we===Zs,className:"rounded-xl border border-slate-700 px-3 py-2 font-bold text-slate-200 hover:bg-slate-800 disabled:cursor-not-allowed disabled:opacity-50",children:"Suivant"})]})]})]})]})]})]})})},Uo=o=>`"${o.replaceAll('"','""')}"`,Y2=o=>{const f=o.replace(/\uFEFF/g,"").replaceAll(`\r
451`,`
452`).replaceAll("\r",`
453`).trim();if(!f)throw new Error("Le fichier CSV du classement est vide.");const c=f.split(`
454`).filter(N=>N.trim().length>0);if(c.length<2)throw new Error("Le fichier CSV du classement doit contenir au moins un en-tête et une ligne de données.");const b=c[0].includes(";")?";":",",k=$x(c[0],b).map(wh),p=c.slice(1).map(N=>{const C=$x(N,b);return k.reduce((v,m,T)=>(v[m]=C[T]||"",v),{})}).filter(N=>Object.values(N).some(C=>C.trim().length>0));if(p.length===0)throw new Error("Aucune ligne exploitable n’a été trouvée dans le CSV du classement.");const g=new Map;for(const N of p){const C=pa(N,["squadid","squad_id","collectif","teamgroup","groupe"]),v=pa(N,["squadlabel","label","squad","collectiflabel","teamlabel"])||C,m=pa(N,["championship","competition","championnat"]),T=pa(N,["team","equipe","équipe"]),w=v.trim(),S=C.trim()||Ix(w||m||"standings"),j=S||Ix(w);if(!j)continue;const E=g.get(j)||{squadId:j,squadLabel:w||S,championship:m.trim(),rank:jl(pa(N,["rank","position"]),1),totalTeams:jl(pa(N,["totalteams","teams","nbteams","nombreequipes"]),1),note:pa(N,["note","commentaire"])||void 0,rows:[]};E.squadLabel=w||E.squadLabel,E.championship=m.trim()||E.championship,E.rank=jl(pa(N,["rank","position"]),E.rank),E.totalTeams=jl(pa(N,["totalteams","teams","nbteams","nombreequipes"]),E.totalTeams),E.note=pa(N,["note","commentaire"])||E.note,T.trim().length>
4540&&E.rows.push({team:T.trim(),played:jl(pa(N,["played","joue","joués","joues"]),0),won:jl(pa(N,["won","gagnes","gagnés","victoires"]),0),lost:jl(pa(N,["lost","perdus","defaites","défaites"]),0),points:jl(pa(N,["points","pts"]),0)}),g.set(j,E)}const y=Array.from(g.values()).map(qu);if(y.length===0)throw new Error("Le CSV du classement n’a produit aucun collectif valide.");return y},$x=(o,f)=>{const c=[];let b="",k=!1;for(let p=0;p<o.length;p+=1){const g=o[p];if(g==='"'){const y=o[p+1];if(k&&y==='"'){b+='"',p+=1;continue}k=!k;continue}if(g===f&&!k){c.push(b.trim()),b="";continue}b+=g}return c.push(b.trim()),c},pa=(o,f)=>{for(const c of f){const b=o[c];if(typeof b=="string"&&b.trim().length>0)return b.trim();const k=wh(c);if(k!==c){const p=o[k];if(typeof p=="string"&&p.trim().length>0)return p.trim()}}return""},jl=(o,f)=>{const c=Number.parseInt(o,10);return Number.isFinite(c)&&c>=0?c:f},wh=o=>o.trim().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""),Ix=o=>o.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase(),hs=o=>{const f=o.toLowerCase();return f.includes("ufolep")||f.includes("loisirs")?"ufolep":"ffvb"},Su=o=>o==="ufolep"?"UFOLEP":"FFVB",Zx=o=>o==="ufolep"?"border-emerald-400/30 bg-emerald-500/10 text-emerald-200":"border-indigo-400/30 bg-indigo-500/10 text-indigo-200",Yx=o=>{switch(o){case"received":return"Recu";case"incomplete":return"Incomplet";case"validated":return"Valide";case"follow-up":return"Relance";default:return o}},J2=o=>{switch(o){case"received":return"border border-blue-400/30 bg-blue-500/10 text-blue-200";case"incomplete":return"border border-rose-400/30 bg-rose-500/10 text-rose-200";case"validated":return"border border-emerald-400/30 bg-emerald-500/10 text-emerald-200";case"follow-up":return"border border-amber-400/30 bg-amber-400/10 text-amber-200";default:return"border border-slate-700 bg-slate-900 text-slate-200"}},X2=o=>{switch(o){case"received":return"border border-blue-400/30 bg-blue-500/10 text-blue-200";case"incomplete":return"border border-rose-400/30 bg-rose-500/10 text-rose-200";case"validated":return"border border-emerald-400/30 bg-emerald-500/10 text-emerald-200";case"follow-up":return"border border-amber-400/30 bg-amber-400/10 text-amber-200";default:return"border border-slate-700 bg-slate-900 text-slate-200"}},Jx=o=>{switch(o){case"received":return"Recu";case"contacted":return"Contacte";case"scheduled":return"Planifie";case"closed":return"Clos";default:return o}},Xx=o=>{switch(o){case"received":return"border border-blue-400/30 bg-blue-500/10 text-blue-200";case"contacted":return"border border-amber-400/30 bg-amber-400/10 text-amber-200";case"scheduled":return"border border-emerald-400/30 bg-emerald-500/10 text-emerald-200";case"closed":return"border border-slate-600 bg-slate-800 text-slate-200";default:return"border border-slate-700 bg-slate-900 text-slate-200"}},Q2=o=>{switch(o){case"received":return"Recu";case"in-progress":return"En cours";case"answered":return"Repondu";case"closed":return"Clos";default:return o}},K2=o=>{switch(o){case"received":return"border border-cyan-400/30 bg-cyan-500/10 text-cyan-200";case"in-progress":return"border border-amber-400/30 bg-amber-400/10 text-amber-200";case"answered":return"border border-emerald-400/30 bg-emerald-500/10 text-emerald-200";case"closed":return"border border-slate-600 bg-slate-800 text-slate-200";default:return"border border-slate-700 bg-slate-900 text-slate-200"}},Lu=o=>{switch(o){case"paid":return"paye";case"cancelled":return"annule";case"initiated":default:return"initie"}},Sh=o=>{switch(o){case"paid":return"border border-emerald-400/30 bg-emerald-500/10 text-emerald-200";case"cancelled":return"border border-rose-400/30 bg-rose-500/10 text-rose-200";case"initiated":default:return"border border-sky-400/30 bg-sky-500/10 text-sky-200"}},W2=o=>{switch(o){case"stripe":return"Paiement Stripe";case"bank_transfer":return"Paiement hors ligne";default:return"Paiement non renseigné"}},ev=(o,f)=>o==="paid"&&f==="bank_transfer"?"paye hors ligne":o==="paid"&&f==="stripe"?"paye stripe":Lu(o),tv=(o,f)=>o==="paid"&&f==="bank_transfer"?"border border-amber-400/30 bg-amber-400/10 text-amber-200":Sh(o),av=({onBackHome:o})=>t.jsx("div",{className:"min-h-screen bg-slate-950 px-4 py-10 text-white",children:t.jsxs("div",{className:"mx-auto max-w-4xl space-y-6",children:[t.jsxs("button",{onClick:o,className:"inline-flex items-center gap-2 text-sm font-semibold text-slate-300 transition-colors hover:text-white",children:[t.jsx(zo,{className:"h-4 w-4"}),"Retour au site"]}),t.jsx("div",{className:"rounded-[2rem] border border-white/10 bg-slate-900/80 p-6 shadow-[0_24px_70px_rgba(2,6,23,0.45)] sm:p-8",children:t.jsxs("div",{className:"max-w-3xl",children:[t.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full border border-amber-400/20 bg-amber-400/10 px-3 py-1 text-[11px] font-extrabold uppercase tracking-[0.2em] text-amber-300",children:[t.jsx(Va,{className:"h-3.5 w-3.5"}),"Informations légales et données personnelles"]}),t.jsx("h1",{className:"mt-4 text-3xl font-black font-display text-white sm:text-4xl",children:"Mentions légales & RGPD"}),t.jsx("p",{className:"mt-3 text-sm leading-relaxed text-slate-300 sm:text-base",children:"Cette page présente les informations de référence du site Valence ACE Volley-Ball, les usages des formulaires de contact, d'essai et d'adhésion en ligne, ainsi que les engagements du club sur la protection des données personnelles."})]})}),t.jsxs("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-2",children:[t.jsxs("section",{className:"rounded-[2rem] border border-white/10 bg-slate-900/70 p-6",children:[t.jsx("h2",{className:"text-xl font-black text-white",children:"Éditeur du site"}),t.jsxs("div",{className:"mt-4 space-y-3 text-sm text-slate-300",children:[t.jsxs("p",{children:[t.jsx("strong",{className:"text-white",children:"Association :"})," ",qe.name]}),t.jsxs("p",{children:[t.jsx("strong",{className:"text-white",children:"Statut :"})," Association sportive loi 1901"]}),t.jsxs("p",{children:[t.jsx("strong",{className:"text-white",children:"Adresse :"})," ",qe.addressMain]}),t.jsxs("p",{children:[t.jsx("strong",{className:"text-white",children:"Email :"})," ",t.jsx("a",{href:`mailto:${qe.email}`,className:"text-amber-300 hover:text-amber-200",children:qe.email})]}),t.jsxs("p",{children:[t.jsx("strong",{className:"text-white",children:"Téléphone :"})," ",t.jsx("a",{href:`tel:${qe.phonePrimary.replace(/\s/g,"")}`,className:"text-amber-300 hover:text-amber-200",children:qe.phonePrimary})]}),t.jsxs("p",{children:[t.jsx("strong",{className:"text-white",children:"Directrice de publication :"})," ",qe.president]})]})]}),t.jsxs("section",{className:"rounded-[2rem] border border-white/10 bg-slate-900/70 p-6",children:[t.jsx("h2",{className:"text-xl font-black text-white",children:"Hébergement et exploitation"}),t.jsxs("div",{className:"mt-4 space-y-3 text-sm text-slate-300",children:[t.jsxs("p",{children:[t.jsx("strong",{className:"text-white",children:"Hébergement public :"}
454)," infrastructure Vercel lorsque le site est déployé en ligne."]}),t.jsxs("p",{children:[t.jsx("strong",{className:"text-white",children:"Exploitation locale :"})," environnement technique interne utilisé par le club pour l'administration et la préparation des contenus."]}),t.jsxs("p",{children:[t.jsx("strong",{className:"text-white",children:"Finalité du site :"})," informer sur la vie du club, recueillir des demandes d'essai, faciliter l'adhésion et orienter vers les solutions de paiement."]})]})]})]}),t.jsxs("section",{className:"rounded-[2rem] border border-white/10 bg-slate-900/70 p-6 sm:p-8",children:[t.jsx("h2",{className:"text-xl font-black text-white",children:"Protection des données personnelles"}),t.jsxs("div",{className:"mt-5 grid grid-cols-1 gap-4 md:grid-cols-3",children:[t.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-950/60 p-4",children:[t.jsxs("div",{className:"flex items-center gap-2 text-amber-300",children:[t.jsx(sh,{className:"h-4 w-4"}),t.jsx("p",{className:"text-xs font-extrabold uppercase tracking-[0.18em]",children:"Durée utile"})]}),t.jsx("p",{className:"mt-3 text-sm text-slate-300",children:"Les données sont conservées le temps nécessaire au traitement de la demande, au suivi d'essai, à la gestion de l'adhésion et aux obligations administratives du club."})]}),t.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-950/60 p-4",children:[t.jsxs("div",{className:"flex items-center gap-2 text-emerald-300",children:[t.jsx(Va,{className:"h-4 w-4"}),t.jsx("p",{className:"text-xs font-extrabold uppercase tracking-[0.18em]",children:"Usage limité"})]}),t.jsx("p",{className:"mt-3 text-sm text-slate-300",children:"Les formulaires servent uniquement au contact club, à l'organisation des essais, au suivi des dossiers d'adhésion et à la coordination administrative interne."})]}),t.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-950/60 p-4",children:[t.jsxs("div",{className:"flex items-center gap-2 text-sky-300",children:[t.jsx(wl,{className:"h-4 w-4"}),t.jsx("p",{className:"text-xs font-extrabold uppercase tracking-[0.18em]",children:"Vos droits"})]}),t.jsxs("p",{className:"mt-3 text-sm text-slate-300",children:["Vous pouvez demander l'accès, la rectification ou la suppression de vos données en écrivant à ",qe.email,"."]})]})]}),t.jsxs("div",{className:"mt-6 space-y-4 text-sm leading-relaxed text-slate-300",children:[t.jsxs("p",{children:[t.jsx("strong",{className:"text-white",children:"Formulaire de contact :"})," les données transmises servent à répondre à votre message et à vous recontacter par email ou téléphone."]}),t.jsxs("p",{children:[t.jsx("strong",{className:"text-white",children:"Demandes d'essai :"})," les informations saisies permettent au bureau et aux responsables sportifs d'organiser la prise de contact et la planification des séances offertes."]}),t.jsxs("p",{children:[t.jsx("strong",{className:"text-white",children:"Adhésion en ligne :"})," les données du dossier, signatures et pièces jointes sont traitées pour instruire l'inscription sportive, suivre les documents requis et gérer le lien administratif avec le club."]}),t.jsxs("p",{children:[t.jsx("strong",{className:"text-white",children:"Paiement :"})," les paiements natifs par carte sont traités via Stripe Checkout. Le club ne stocke pas les numéros de carte bancaire sur le site."]}),t.jsxs("p",{children:[t.jsx("strong",{className:"text-white",children:"Brouillon local :"})," un brouillon du formulaire d'adhésion peut être enregistré sur l'appareil utilisé afin de faciliter la reprise ultérieure. Ce brouillon reste lié au navigateur concerné."]})]})]}),t.jsxs("section",{className:"rounded-[2rem] border border-white/10 bg-slate-900/70 p-6 sm:p-8",children:[t.jsx("h2",{className:"text-xl font-black text-white",children:"Contact club"}),t.jsxs("div",{className:"mt-4 grid grid-cols-1 gap-4 md:grid-cols-3",children:[t.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-950/60 p-4 text-sm text-slate-300",children:[t.jsx(Bt,{className:"h-4 w-4 text-amber-300"}),t.jsx("p",{className:"mt-3 font-bold text-white",children:"Adresse"}),t.jsx("p",{className:"mt-1",children:qe.addressMain})]}),t.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-950/60 p-4 text-sm text-slate-300",children:[t.jsx(wl,{className:"h-4 w-4 text-amber-300"}),t.jsx("p",{className:"mt-3 font-bold text-white",children:"Email principal"}),t.jsx("a",{href:`mailto:${qe.email}`,className:"mt-1 block text-amber-300 hover:text-amber-200",children:qe.email})]}),t.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-950/60 p-4 text-sm text-slate-300",children:[t.jsx(Va,{className:"h-4 w-4 text-amber-300"}),t.jsx("p",{className:"mt-3 font-bold text-white",children:"Interlocutrice"}),t.jsx("p",{className:"mt-1",children:qe.president})]})]})]})]})}),sv="vace-registration-draft",lv=({onBackHome:o,onOpenRegistrationModal:f})=>{const[c,b]=Z.useState(!0),[k,p]=Z.useState(null),[g,y]=Z.useState(null),N=Z.useMemo(()=>new URLSearchParams(window.location.search),[]),C=N.get("payment"),v=N.get("scope"),m=N.get("session_id")||"";Z.useEffect(()=>
454{if(C!=="stripe-success"){b(!1);return}const S=async()=>{try{const j=v==="event"?`/api/event-payment/checkout?session_id=${encodeURIComponent(m)}`:`/api/payment/checkout?session_id=${encodeURIComponent(m)}`,E=await fetch(j,{cache:"no-store"}),A=await E.json();if(!E.ok)throw new Error(A.error||"Confirmation du paiement impossible.");A.paymentStatus==="paid"&&typeof window<"u"&&v!=="event"&&window.localStorage.removeItem(sv),y(A)}catch(j){p(j instanceof Error?j.message:"Confirmation du paiement impossible.")}finally{b(!1)}};if(!m){p("Session Stripe manquante."),b(!1);return}S()},[C,v,m]);const T=C==="stripe-cancelled",w=(g==null?void 0:g.paymentStatus)==="paid";return t.jsx("div",{className:"min-h-screen bg-[radial-gradient(circle_at_top,_rgba(30,64,175,0.16),transparent_35%),linear-gradient(180deg,#eff6ff_0%,#f8fafc_100%)] px-4 py-16 text-slate-900",children:t.jsxs("div",{className:"mx-auto max-w-3xl rounded-[2rem] border border-slate-200 bg-white p-8 shadow-[0_30px_80px_rgba(15,23,42,0.12)]",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("div",{className:`flex h-14 w-14 items-center justify-center rounded-2xl ${w?"bg-emerald-100 text-emerald-700":T?"bg-amber-100 text-amber-700":"bg-slate-100 text-slate-600"}`,children:c?t.jsx(nh,{className:"h-7 w-7 animate-spin"}):w?t.jsx(Ca,{className:"h-7 w-7"}):t.jsx(Db,{className:"h-7 w-7"})}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-extrabold uppercase tracking-[0.2em] text-blue-900",children:v==="event"?"Paiement événement":"Paiement cotisation"}),t.jsx("h1",{className:"text-2xl font-black font-display text-slate-900",children:c?"Verification du paiement Stripe...":w?"Paiement confirme":T?"Paiement annule":"Retour de paiement"})]})]}),t.jsxs("div",{className:"mt-8 rounded-3xl border border-slate-200 bg-slate-50 p-5 text-sm text-slate-700",children:[c&&t.jsx("p",{children:v==="event"?"Nous vérifions la session Stripe et mettons à jour l’inscription événement correspondante.":"Nous verifions la session Stripe et mettons a jour le dossier d'adhesion si un email ou un nom correspondent."}),!c&&w&&g&&t.jsxs("div",{className:"space-y-2",children:[t.jsx("p",{className:"font-bold text-emerald-800",children:"Le paiement a bien ete recu."}),t.jsxs("p",{children:[t.jsx("strong",{children:"Montant :"})," ",g.amountTotal," €"]}),t.jsxs("p",{children:[t.jsx("strong",{children:v==="event"?"Événement :":"Categorie :"})," ",v==="event"?g.eventTitle||g.category||"Événement club":g.category||"Cotisation club"]}),t.jsxs("p",{children:[t.jsx("strong",{children:"Email :"})," ",g.customerEmail||"Non renseigne"]})]}),!c&&T&&t.jsxs("div",{className:"space-y-2",children:[t.jsx("p",{className:"font-bold text-amber-800",children:"Le paiement a ete interrompu avant validation."}),t.jsx("p",{children:v==="event"?"Vous pouvez revenir sur le site et reprendre le règlement plus tard si besoin.":"Vous pouvez reprendre votre inscription, payer plus tard sur HelloAsso, ou revenir au simulateur."})]}),!c&&k&&t.jsxs("div",{className:"space-y-2",children:[t.jsx("p",{className:"font-bold text-rose-700",children:"La confirmation automatique a echoue."}),t.jsx("p",{children:k})]})]}),t.jsxs("div",{className:"mt-8 flex flex-wrap gap-3",children:[t.jsx("button",{type:"button",onClick:o,className:"inline-flex items-center rounded-2xl bg-slate-900 px-4 py-3 text-sm font-black text-white transition-colors hover:bg-slate-800",children:"Revenir au site"}),v!=="event"?t.jsx("button",{type:"button",onClick:f,className:"inline-flex items-center rounded-2xl bg-blue-700 px-4 py-3 text-sm font-black text-white transition-colors hover:bg-blue-800",children:"Completer le formulaire"}):null,v!=="event"?t.jsxs("a",{href:"https://www.helloasso.com/associations/valence-ace",target:"_blank",rel:"noreferrer",className:"inline-flex items-center rounded-2xl border border-emerald-200 bg-emerald-50 px-4 py-3 text-sm font-black text-emerald-900 transition-colors hover:bg-emerald-100",children:[t.jsx(Ru,{className:"mr-2 h-4 w-4"}),"Payer sur HelloAsso"]}):null]}),t.jsxs("div",{className:"mt-6 flex items-center gap-2 text-xs text-slate-500",children:[t.jsx(Eu,{className:"h-4 w-4"}),v==="event"?"Le statut du paiement Stripe est maintenant visible sur l’inscription événement dans la console admin.":"Si le dossier d'adhesion a deja ete saisi avec le meme email, l'admin voit maintenant le statut du paiement Stripe."]})]})})},rv=()=>!0,nv=()=>!1,iv=o=>o==="/admin",ov=o=>o==="/paiement/retour",cv=o=>o==="/mentions-legales",dv=Z.lazy(()=>$o(()=>import("./OnlineRegistrationModal-BTuiog75.js"),[]).then(o=>({default:o.OnlineRegistrationModal})));function uv(){const[o,f]=Z.useState(!1),[c,b]=Z.useState(void 0),[k,p]=Z.useState(!1),[g,y]=Z.useState(!1),[N,C]=Z.useState(null),[v,m]=Z.useState(!1),[T,w]=Z.useState("accueil"),[S,j]=Z.useState(()=>window.location.pathname),E=nv(),A=rv();Z.useEffect(()=>{const J=()=>{j(window.location.pathname)};return window.addEventListener("popstate",J),()=>window.removeEventListener("popstate",J)},[]),Z.useEffect(()=>{if(S!=="/")return;const J=["accueil","equipes","creneaux","club","matchs","evenements","galerie","gymnases","inscriptions","contact"],I=new IntersectionObserver(H=>{var ie,ee;const h=H.filter(X=>X.isIntersecting).sort((X,le)=>le.intersectionRatio-X.intersectionRatio);
454(ee=(ie=h[0])==null?void 0:ie.target)!=null&&ee.id&&w(h[0].target.id)},{root:null,rootMargin:"-25% 0px -55% 0px",threshold:[.15,.35,.6]});return J.map(H=>document.getElementById(H)).filter(H=>!!H).forEach(H=>I.observe(H)),()=>{I.disconnect()}},[S]),Z.useEffect(()=>{const J=document.getElementById("vace-events-jsonld");J&&J.remove();const I=window.location.origin,L=Zo.map(h=>pv(h,I)),H=document.createElement("script");return H.id="vace-events-jsonld",H.type="application/ld+json",H.text=JSON.stringify({"@context":"https://schema.org","@graph":L}),document.head.appendChild(H),()=>{H.remove()}},[]);const O=J=>{b(J),f(!0)},F=()=>{f(!1),b(void 0)},$=()=>{p(!0)},Y=()=>{p(!1)},G=J=>{C(J),y(!0)},V=()=>{y(!1),C(null)},K=()=>{window.history.pushState({},"","/"),j(window.location.pathname)},te=()=>{window.history.pushState({},"","/#inscriptions"),j(window.location.pathname)};return iv(S)?t.jsx(Z2,{onExit:K}):ov(S)?t.jsx(lv,{onBackHome:te,onOpenRegistrationModal:$}):cv(S)?t.jsx(av,{onBackHome:te}):t.jsxs("div",{className:"min-h-screen bg-slate-50 text-slate-900 flex flex-col selection:bg-amber-400 selection:text-slate-950",children:[t.jsx(t1,{onOpenTrialModal:O,onOpenRegistrationModal:$,activeSection:T,showAdminConsoleLink:A}),t.jsxs("main",{className:"flex-1",children:[t.jsx(D1,{onOpenTrialModal:O}),t.jsx(B1,{onOpenTrialModal:O}),t.jsx(q1,{onOpenTrialModal:O}),t.jsx(t2,{}),t.jsx(W1,{}),t.jsx(e2,{onOpenTrialModal:O,onOpenEventRegistration:G}),t.jsx(s2,{}),t.jsx(a2,{}),t.jsx($1,{onOpenTrialModal:O,onOpenRegistrationModal:$}),t.jsx(r2,{}),t.jsx(l2,{})]}),t.jsx(n2,{onOpenTrialModal:()=>O(),onOpenImageManager:void 0,showAdminConsoleLink:A}),t.jsx(S2,{isOpen:o,onClose:F,initialCategory:c}),t.jsx(C2,{event:N,isOpen:g,onClose:V}),k&&t.jsx(Z.Suspense,{fallback:null,children:t.jsx(dv,{isOpen:k,onClose:Y,tariffs:$r})}),E]})}const Ou={janvier:"01",fevrier:"02",février:"02",mars:"03",avril:"04",mai:"05",juin:"06",juillet:"07",aout:"08",août:"08",septembre:"09",octobre:"10",novembre:"11",decembre:"12",décembre:"12"},mv=o=>{const c=o.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().match(/(?:lundi|mardi|mercredi|jeudi|vendredi|samedi|dimanche)?\s*(\d{1,2})\s+([a-z]+)\s+(\d{4})/i);if(!c)return;const[,b,k,p]=c,g=Ou[k];if(g)return`${p}-${g}-${b.padStart(2,"0")}`},pv=(o,f)=>{var g;const c=mv(o.date),b=hv(o.date),k=(g=o.structuredData)!=null&&g.offers?{"@type":"Offer",url:new URL(o.structuredData.offers.url,f).toString(),...typeof o.structuredData.offers.price=="number"?{price:o.structuredData.offers.price.toFixed(2)}:{},...o.structuredData.offers.priceCurrency?{priceCurrency:o.structuredData.offers.priceCurrency}:{},...o.structuredData.offers.availability?{availability:o.structuredData.offers.availability}:{},...o.structuredData.offers.validFrom?{validFrom:o.structuredData.offers.validFrom}:{},...o.structuredData.offers.category?{category:o.structuredData.offers.category}:{}}:void 0,p={"@id":`${f}/#${o.id}`,name:o.title,description:o.description,url:`${f}/#evenements`,image:o.imageUrl?[o.imageUrl]:void 0,location:{"@type":"Place",name:o.location,address:{"@type":"PostalAddress",streetAddress:qe.addressMain,addressLocality:"Valence",postalCode:"26000",addressCountry:"FR"}},organizer:{"@type":"SportsClub",name:qe.name,email:qe.email,telephone:qe.phonePrimary},...k?{offers:k}:{}};return xv(o.date,o.title)?{"@type":"EventSeries",...p}:{"@type":"Event",...p,eventAttendanceMode:"https://schema.org/OfflineEventAttendanceMode",eventStatus:"https://schema.org/EventScheduled",...c?{startDate:c}:{},...b||{}}},xv=(o,f)=>{const c=o.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),b=f.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();return c.includes("chaque vacances scolaires")||b.includes("stages vacances scolaires")},hv=o=>{const c=o.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().match(/([a-z]+)\s*\/\s*([a-z]+)\s+(\d{4})/i);if(!c)return;const[,b,k,p]=c,g=Ou[b],y=Ou[k];if(!g||!y)return;const N=new Date(Number(p),Number(y),0).getDate();return{startDate:`${p}-${g}-01`,endDate:`${p}-${y}-${String(N).padStart(2,"0")}`}}
454;sb.createRoot(document.getElementById("root")).render(t.jsx(Z.StrictMode,{children:t.jsx(C1,{children:t.jsx(E2,{children:t.jsx(uv,{})})})}));export{zu as C,Ql as D,nh as L,Va as S,ri as U,Xr as X,$o as _,Fo as a,Ca as b,Oe as c,gv as d,Rg as e,oi as f,Ut as g,Ao as h,Qx as i,t as j,Z as r,fv as s,bv as u};

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.